Interaction on the backend #158
-
Hi, I'm creating a management tool for my company, and we need a solver. Apart from import export via XML, is there a way to interact directly by programming since they are on the same server. I think, 2 month ago when a search on the web, i might see a way by calling a url, but i don't find it. Does it exist ? Thank you by advance |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
If you just need a solver, you do not need to use UniTime, just the CPSolver library. See https://github.com/UniTime/cpsolver. It contains the solver framework (see org.cpsolver.ifs package), a few examples (org.cpsolver.ifs.examples, see Constraint Solver Examples), and a course timetabling, examination timetabling, student scheduling and instructor scheduling solvers that UniTime is using. If you are interested in the course timetabling solver, for example, there is also a command line interface (see the org.cpsolver.coursett.Test class). If you want to interface with UniTime, we do have a set of APIs available, see bit.ly/unitime44api for more details. |
Beta Was this translation helpful? Give feedback.
Yes, most of the APIs were created to get data from UniTime, though there are some that can make changes (e.g., Rooms API -- see the RoomsConnector for the implementation). They are usually added to fulfill a certain business need (they are not meant to cover the whole UniTime data model). You can also use one of our XML interfaces and use the Data Exchange API to import the file.
See the Instructor Assignment Imports scripts as an example of a script that imports data. There are two scripts, both taking a CSV file and importing instructors and their teaching preferences and teaching requests respectively for the instructor scheduling module (see the Instructor Scheduling Manual for more …