Event
- class ontologysim.ProductionSimulation.sim.Event.Event(simCore)
Bases:
object
manages and creates event in ontology
- add_location_to_event(event_onto, location_onto)
adding a location onto to event
- Parameters:
event_onto –
location_onto –
- add_machine_to_event(event_onto, machine_onto)
add machine onto to event
- Parameters:
event_onto –
machine_onto –
- add_position_to_event(event_onto, position_onto)
adding position onto to event
- Parameters:
event_onto –
position_onto –
- add_process_to_event(event_onto, prod_process_onto)
add process onto to event
- Parameters:
event_onto –
prod_process_onto –
- add_product_to_event(event_onto, product_onto)
adding a product onto to event
- Parameters:
event_onto –
product_onto –
- add_service_to_event(event_onto, service_onto)
add service to event
- Parameters:
event_onto –
service_onto –
- add_task_to_event(event_onto, task_onto)
adding a task onto to event
- Parameters:
event_onto –
task_onto –
- add_to_logger(event_onto)
adds a event_onto to a logger, transforms event onto to event_logger onto when the logger holds more than 2000 values, then the values are saved in a csv or database
- Parameters:
event_onto –
- add_to_short_term_logger(event_onto, position_onto)
adding an event to a short term logger and removes another event if the position is already registered add the logger
- Parameters:
event_onto –
position_onto –
- add_transport_to_event(event_onto, transport_onto)
adding transport onto to event
- Parameters:
event_onto –
transport_onto –
- createEvent(time, type, time_diff)
creates an event in onto
- Parameters:
time – double
type – str
time_diff – double
- Returns:
onto
- delete_event(event_onto)
destroy an event onto
- Parameters:
event_onto –
- getNextEvent()
calculates next event
- Returns:
- getNumberOfEvents()
returns the number of events, which have a time > current time
- Returns:
int
- removeProperties_Event(prop_name, event_onto)
removes connection with prop_name, properties of event_onto
- Parameters:
prop_name – type
event_onto – event onto
- removeProperties_EventLogger(prop_name, eventInstance)
removes connection with prop_name of a eventLogger
- Parameters:
prop_name – str
eventInstance – event_logger
- remove_from_event_list(event_onto)
removes event form event list
- Parameters:
event_onto – event onto
- store_event(event_onto)
resets all values of an event, does not delete the event
- Parameters:
event_onto – onto
- swapProperties_EventLogger(prop_name, eventInstance, event_onto)
transforming all connection of the event onto to a event_logger
- Parameters:
prop_name – str
eventInstance – event_logger
event_onto – event_instance