Dynamo

 

componen-level design

Page history last edited by fatma 1 yr ago
ReadPresentationDate(  )
Algorithm :
 the coordinator  input the start date
Read the start date
If the start date is not a date type
Print error message
 
 the coordinator  input the end date
Read the end date
If the end date is not a date type
Print error message
 
           daterange<- startdate,end date
which that daterange is an array 
……………………
 
ReadStudentInfo(  )
 
algorithm: 
read the projecrtname
read the studentID and copmare it with inital value in the system
if(true studentID)
save all info. as astudent
and invisible staffid bottun
else
read staffID and copmare it with inital value in the system
ReadStaffInfo( projectname)
 
take any project name or the current project name and count the student that regist in the same project name(every 5 student in the project)
 
if ( count <=5 & have the same projectname)
{
readAgenda(agenda) 
 the student  input there exclusion's
 Read exclusion
ReadExclusion(exclusion)
 
 the student input her preference
Read preference
Readpreference(preference)
IsInDateRang (DateRang, PreforExcSet) 
count ++}
 
…………………..
 
 
ReadStaffInfo( projectname  )
algorithm: 
read the projecrtname
read the studentID and copmare it with inital value in the system
if(true staffID)
save all info. as astudent
and invisible staffid bottun
else
error msg"you are not a student or a staff" 
count  1 staff of the same project name and save info.
 if  ( count <=1 & have the same projectname)
{the staff  input her agenda
Read agenda
readAgenda(agenda)
 
  
 
the  staff  input her exclusion
 Read exclusion
ReadExclusion(exclusion)
 
 the student input her preference
Read preference
Readpreference(preference)
IsInDateRang (DateRang, PreforExcSet) 
count ++}
 
 
…………….
 
 
ReadAgenda(agenda)
algorithm 
Read the agenda , or "*" if there is not agenda , or "-" to exit entering
While agenda is not "-" and day is less than 8
Copy agenda into personalAgendas[day][1] , and don't copy agenda if it is "*"
 
 
 
ReadExclusion(exclusion)
algorithm:
Read the exclusion , or "*" to stop
While exclusion is not "*" and there is a space in the exclusionSet array
Copy the exclusion in the exclusionSet
 
 
ReadPreference(preference)
algorithm:
Read the preference , or "*" to stop
While preference is not "*" and there is a space in the preferenceSet array
Copy the preference in the preferenceSet
 
 
 
 
HaDeeL 
 
_____________________________________________
 
 
 
 
 
 
 
 ياهديــــــــــــــــــــــــل , يا فاطـــــــــــــــــــــــــــمه ترى صححت شغلكم وياريت تعدلون عليه بســـــــــــــــــــــــــــــــــــــــــــــرررررررررررررررررعه

 

اريج انا ماشيه  صح بس انت مو فاهمه فكرتي انه نقابل كل كود بالفيجوال بيسك بعدين :فاطمه  

Algorthims  are:    

 

1- Enter the period time by the coordinator...

 

2- Enter the (personal agendas, exclusion set, preference set) for student /staff...

 

3- Compare the info. Sets that have been entered by student/staff with period time...

 

4- Conflict info. & solve it..

 

5- Display result to the user...

 

and we have an extra algorthims we need..

 

 

 

أريج الحارثي

 

 


 

 

 

 

يابنات انا طلبت مني اريج اترك هالجزئيه لانك تفرغتي لها يافاطمه وراح اتجه للانترودكشن والديزاين وبالتوفيق   ريــــــــــــم القحطانـــــــي

 

-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

 

 

 fATmA Al BluWe

 

 

 

 ملاحظه مهمه :احنا مادققنا مره في كتابه الالقورثم ,كتبنا الاشياء اللي نحس انها مره مهمه لان فيه بعض الاشياء ماتوضح الا من خلال البرمجه

 

 

 بس حبيت ان الاستاذه لطيفه تعرف اننا ماتعمقنا مره   

 

 

 

 

 

 

 

 

IsInDateRang (DateRang, PreforExcSet) -> Boolean

 

 

 

Algorithm:

 

 

 انتي يافاطمه كانك طولتي الحل وهو يجي باختصار (يعني لما قلتي صح المفروض خلاص يرجع صح من الالقورثم ككل واذا كان غير صح يطبع المسج ويجبره يدخل مفضل \غير مفضل مره اخرى) وانا شايفه انك ما حطيتي كل الالقورثم الاخرى بداخل هذه الالقورثم لان زي ما قلتلك هي الاساس اللي يمشي عليه السيستم والا شلون راح يتاكد ومع ذلك يعمل عادي (ياريت تنادين الالقورثم الثانيه فيها)

 

check If  all PreforExcSet in DateRang

  

Return true

 

Else

 

Return false

 هنا المفروض ان السيتم يجبر الطالب او الموظف انه يدخل ايام جديده للمفضل\الغير مفضل ونعيد مناداه هذه الالقورثم من جديد 

المفروض ما احط ولا ارقورثم فيها لانها فقط تختبر ,المفروض هديل هي اللي تنادي هذي الداله عند اي قراءه لاي ايام مفضله او غير مفضله

--------------------------

 

Compare (StuPref&ExcSets, StaffPref&ExcSets, stuPersonalAgenda, staffPersonalAgenda, ProjecName, DateRange)

 

 

 هنا ما استخدمتي اسم المشروع لازم تستخدمينه (يعني لما يشوف السيستم المفضل\ غيرمفضل  يروح على اساس اسم المشروع الواحد اللي فيه 5 طالبات لنفس الاسم وعلى اساسه راح يقارن المفضل\غيرمفضل لهم ويطلع المشترك بينهم) لكن ما اعتقد اننا نحتاج الفتره لاننا خلاص عملناها في الخطوة السابقه

 

انا ترى ماتعمقت مره وقلت يروح للمشروع اللي فيه خمس طالبات قلت انه يروح يشوفهم كلهم ,بس اشوف انه في وقت الاكواد   ,ودخلت اسم المشروع والمدى اللازم للعرض علشان ارسلهم كبراميتر للداله اللي توجد وقت مناسب

كمان شغله ما فهمتها ايش قصدك بالمتغير الاول بحيث فيه المفضل \غير مفضل للطالب مو على اساس  من قبل لازم تكونين مسويه القورثم تعملك هالشغله وتطلعلك هالنتيجه؟؟؟؟ نفس الكلام للموظف ,او قصدك يجيب المفضل لحال والغير لحال بعدين تعملين هالالقورثم لكن طريقتك في هالالقورثم صيحه بس نا قصها اللي قلتلك عليه

Algorithm:

 

 

 

Compare between a student preferences set with all student preferences sets and then with preferences set of staff

 

If  there are some of them equal put it in   CommonPrefSet array

 

Else Print there is no CommonPrefSet

 

 

 

Compare between a student exclusions set with all student exclusions sets and then with exclusions set of staff

 

If there are some of them equal put it  

 

 

 

Else Print there is no CommonExcfSet array

 

 

 

Compare between all free times in a student personal agenda with all students personal agendas and then with

 

Personal agenda of staff

 

If (there are some of them equal put it in CommonPresonaAgendas array

   

 

Else Print there are no CommonPresonaAgendas

 

 

FindSlot (CommonPrefSet, CommonExcSet, CommonPresonaAgendas, ProjecName, DateRange)

 

 

 

-------------------------------------------------

 

                                                                //هنا ايضا تعرض معلومات التعارض

 

 

 

FindSlot (CommonPrefSet, CommonExcSet, CommonPresonaAgendas, ProjecName, DateRange)

 

 

 

Algorithm:

 

 

 

Choose any date in date rang and any time in CommonPresonaAgendas

 

If (there are no dates in DateRange or this date and time belong to CommonExcSet)

 

if no date in date rang Print  Conflict error Msg : there are no dates in DateRange: expand DateRange !!

ReadPresentationDate(  )

 

if this date and time belong to CommonExcSet  Exclusions setsPrint  Conflict error Msg :: this date and time belong to CommonExcSet, remove some CommonExcSet

ReadExclusion(exclusion)

 

 

 

                                                                                                                                                        المفروض لا      هنا بعدها المفروض على طول ينادي الالقورثم الاولى الكبيره اللي اسمها    isindaterange

 

Else If (this date and time not belong to CommonPrefSet)

 

Print error Msg "Conflict: this date and time not belong to preferences sets:

 

 

 

 

ReadPreference(preference)

 

                  هنا بعد المفروض على طول ينادي الالقورثم الاولى الكبيره اللي اسمها                                                                                                                                                       

 المفروض لاisindaterange

Else     ProjectDate&Time<-this date and time and allocate it for this ProjecName

 اوكي انتي  مشيتي صح لما وصلتي هالسطر ما ادري ايش قصدك ??

اقصد انه خلاص لقى لهم وقت ويوم يحجزه لهم

------------------------------------------

 

DisplayProjectPresentaionSchedule ( )

 

 لا هنا المفروض تعطي المستخدم النتيجه النهائيه لعرض المشروع لطالبات التخرج (بالنسبه للمتغيرات اوكي خذي اسم المشروع, والنتيجه النهائيه التي وصل اليها السيستم لعرض ذلك المشروع)

 

Algorithm:

 لا اشوفه كذا صح

 

 

 for all  presentations schedules

 

print ProjectDate&Time and ProjectName  

 

 

   

 

 

  fATmA Al BluWe

 

 

 

 

 

 

 

Comments (17)

profile picture

Hadeel said

at 9:24 pm on Apr 23, 2008

PersonalAgendas array
افترضت انه عندي مصفوفه مكونه من 8 صفوف .. 7 لايام الاسبوع و واحد لاسم اليوم .. و عمودين واحد للايام و واحد للعمل ..

___________

exclusionSet array

يكون عندي مصفوفه عشان اخزن فيها الاستثتاءات لانها مجموعة استثناءات

_________________

باقي فقره 4و 5
ان شاء الله بسويها بكرى

..

انتظر تعليقاتكم عالشغل

برضو عندي ملاحظه على اللي سويت انا .. مدري وش رايكم

لو نحط functions تقرأ
:

personal agenda , exclusion set , preference set

لاني بحتاجها للـ

student , staff


profile picture

Areej said

at 2:14 pm on Apr 24, 2008

اللحين مو احنا نعمل هالفقره على اساس بعد ما نقرأ كل المتطلبات ومن ثم نحط جميع العمليات الممكنه ثم نشرحها انا ما اعتقد ان لكل متطلب نشرحله بهالطريقه (يعني ان كل متطلب شرح لحال وإلا حنا بنعمل العمليات في النهايه!!! ).....هل انا على صواب ياريت تردون باسرع وقت؟؟؟؟

profile picture

ghaddoo_21@... said

at 5:22 pm on Apr 24, 2008

صح كلامك ياأريج أول نقرأالمتطلبات كلها بعدين نحدد العمليات اللي راح نحتاجها لأن الفقرة الثانية والثالثة نفس العملية يعني لهالمتطلبين عملية وحدة فقط

profile picture

Areej said

at 5:35 pm on Apr 24, 2008

ايوه حتى انا شايفه كذا خلاص ياهديل سوي ال algorithm
عليها كلها

profile picture

fatma said

at 5:51 pm on Apr 24, 2008

هلا اريج انا مو عارفه ايش تقصدين بالعمليات

profile picture

fatma said

at 6:00 pm on Apr 24, 2008

حلو هديل شغلك معقول جدااا

profile picture

Areej said

at 6:08 pm on Apr 24, 2008

يا فاطمه انا قصدي ما نمسك كل متطلب بل كل المتطلبات نعمل عليها ال
algorithm

profile picture

omnia_missi said

at 6:28 pm on Apr 24, 2008

مثل ماقلتلك ياريج اعتقد انه عليها كلها افضل من انا نمسك كل متطلب

profile picture

fatma said

at 5:33 am on Apr 25, 2008

هديل ياليت ترجعين لشغلك مره تانيه وتستفيدين من الاشياء اللي سويتها لاني حسيت ان بعض الاشياء عندك ناقصه

profile picture

fatma said

at 5:34 am on Apr 25, 2008

يالله تعبت مره اريج انتظر ردك مرررررررره

profile picture

omnia_missi said

at 8:54 am on Apr 25, 2008

رتبت الصفحة بس خلصتوا منها؟؟؟

profile picture

Reem Almutairy said

at 1:13 pm on Apr 25, 2008

اريج وش فايدة
operation
هنا المطلوب Algorthim

profile picture

Reem Almutairy said

at 1:19 pm on Apr 25, 2008

حلو شغلك فاطمة بس اذا ممكن تحطين التايب
أقصد int,string
عشان يصير حلك كامل ان شاء الله

profile picture

Areej said

at 2:08 pm on Apr 25, 2008

ما اتوقع اننا نحتاج في الالقورثم النوع اعتقد انه يكون عالمرحله القادمه

profile picture

Areej said

at 2:10 pm on Apr 25, 2008

الله يعطيك العافيه يا فطووم شغلك مرره حلو لكن عندي بعض الملاحظات ياريت تشوفينها وتعدلين عليها باسرع وقت ممكن ,,,, شكرا مره ثانيه

profile picture

Hadeel said

at 6:43 pm on Apr 25, 2008

هلا اريج ..... شوفي تعديلي .. احس انه كذا صح ان شاء الله ... معليش ماعرفت ارجع التعديل لنفس المكان كل مره يحطه لي فوق ...

profile picture

Areej said

at 8:25 pm on Apr 25, 2008

اوكي مافيه مشكله,, انا اشوف انه صحيح ان شاء الله ومعقول ,,شكرا

You don't have permission to comment on this page.