Main Menu

FET WITH JAVA

Started by it.manveer.singh, September 05, 2009, 03:03:54 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

it.manveer.singh

Okay !
   Actually I don't know about privacy law. Thanks for this. Can you tell me in TimeTableGenerateForm.cpp. You are going to generate time table of all activities. That means you are calling all functions of generate.cpp generatepre.cpp and solution.cpp. I don't want to use Thread, just want simple functions like start and stop with run. And also tell me about timeTableviewTeachersForm.cpp. Is it getting data from any input file that you have store some where, or getting data from other sources.
Please help.

Liviu Lalescu

QuoteOkay !
   Actually I don't know about privacy law. Thanks for this. Can you tell me in TimeTableGenerateForm.cpp. You are going to generate time table of all activities. That means you are calling all functions of generate.cpp generatepre.cpp and solution.cpp. I don't want to use Thread, just want simple functions like start and stop with run. And also tell me about timeTableviewTeachersForm.cpp. Is it getting data from any input file that you have store some where, or getting data from other sources.
Please help.

To generate without thread, see fet.cpp, command line version. You need to call Generate::generate with threaded=false.

Timetable view teachers uses a matrix, teachers timetable.

it.manveer.singh

Yes,
 You have used teachersTimeTable. But in your program there should be atleast declaration of teachersTimeTable matrix as rows and column.

Liviu Lalescu

QuoteYes,
 You have used teachersTimeTable. But in your program there should be atleast declaration of teachersTimeTable matrix as rows and column.

There is teachers_timetable_weekly, search where it is declared.

it.manveer.singh

Hello,
The timeTableGenerateForm.cpp is generating time table means. Is it setting each rows and column of matrix with respective data. Data means teachersTimeTable, subjectTimeTable, RoomsTimeTable, SectionTimeTable etc.
 Is timetablegenerateForm.cpp main part of fet. why we use timetablegeneratemultipleform. cpp. Please help.

Liviu Lalescu

No, the part setting the timetable is in TimetableExport::getTeachersTimetable.

it.manveer.singh

hello,
Please tell about detailActivity(teachersTimetableTable->currentRow(), teachersTimetableTable->currentColumn()); in timetableviewteachersform.cpp. Just tell teachersTimeTableTable->currentRow(), from where are you getting ?
In teachers_timetable_weekly is not working in this function.

it.manveer.singh

hello,
 Can you please tell one thing after clicking on generate new label in fet main form, which will generate the timetable. May be it can be teachersTimeTable, SubjectTimeTable, and roomTimetable. During this execution, is the fet storing or saving this generated data in any files.
please help. Then when we are using timeTableViewTeacherForm.cpp to display the data into table, we are getting data from there.
Please help.

Liviu Lalescu

Quotehello,
Please tell about detailActivity(teachersTimetableTable->currentRow(), teachersTimetableTable->currentColumn()); in timetableviewteachersform.cpp. Just tell teachersTimeTableTable->currentRow(), from where are you getting ?
In teachers_timetable_weekly is not working in this function.

I am getting this from gt.rules.internalActivitiesList, where the activity index is teachers_timetable_weekly[tch][d][h].

Liviu Lalescu

Quotehello,
 Can you please tell one thing after clicking on generate new label in fet main form, which will generate the timetable. May be it can be teachersTimeTable, SubjectTimeTable, and roomTimetable. During this execution, is the fet storing or saving this generated data in any files.
please help. Then when we are using timeTableViewTeacherForm.cpp to display the data into table, we are getting data from there.
Please help.

The timetable is computed only if user presses "Stop" or the timetable is finished.

it.manveer.singh

Yes it is.
  But You are saving this timetable anywhere may be in directory or any xml file. If yes please tell.

Thanks
Manveer

Liviu Lalescu

QuoteYes it is.
  But You are saving this timetable anywhere may be in directory or any xml file. If yes please tell.

Thanks
Manveer

I am saving it in timetableexport.cpp, function TimetableExport::writeSimulationResults().

it.manveer.singh

Hello,
  You said you are saving your data into timetableexport.cpp, function TimetableExport::writeSimulationResults(). But you are getting with data from solution.cpp class. In all operation you never used generatePre.cpp. but only one function from generate.cpp generate(INF, maxsecond, timeexceeded, threaded). Please explain it.

Liviu Lalescu

QuoteHello,
  You said you are saving your data into timetableexport.cpp, function TimetableExport::writeSimulationResults(). But you are getting with data from solution.cpp class. In all operation you never used generatePre.cpp. but only one function from generate.cpp generate(INF, maxsecond, timeexceeded, threaded). Please explain it.

Generate modifies Solution. GeneratePre computes the arrays listed in the beginning of file generate_pre.cpp. generate.cpp has many functions, each one is used. generate(INF, max...) calls other functions from generate.cpp

it.manveer.singh

Can you tell me,
 How to save generate time table data into database. That data comes from solution.cpp. I don't want to use xml file to save time table data.