TUDelft-CITG / OpenCLSim

Rule driven scheduling of cyclic activities for in-depth comparison of alternative operating strategies.
https://openclsim.readthedocs.io
MIT License
14 stars 18 forks source link

Add a general Installation class #17

Closed AnneHommelberg closed 6 years ago

AnneHommelberg commented 6 years ago

The current afsluitdijk example (Example 21 - Automatically generated sites and activities), contains a class called Installation which runs the simulation. It checks whether conditions are satisfied, and if so uses a "mover" to move content from the origin container to the destination. This code should be generalized and added to the digital_twin package, either through a similar class, general method, etc.

AnneHommelberg commented 6 years ago

The current code for Processor.process contains logic to request resources from the origin and destination (if necessary). The HasContainer class currently contains a total_requested field to "reserve" space in a container before moving to pick it up or drop it off.

We should look into redesigning both these concepts. Should the Installation class (or its new equivalent) take care of this instead?

AnneHommelberg commented 6 years ago

Created Activity class in model.py.