Scheduled Model¶
This module contains the definition of a scheduled model. It has the definition of the ScheduledModel that allows is used by the scheduler to sort events by time.
Example
Creating a scheduled model:
model = ScheduledModel(model, Time(2))
-
class
gsf.dynamic_system.future_event_list.scheduled_model.ScheduledModel(_model: BaseModel, _time: Time)¶ Bases:
objectEvent scheduled
It contains a model and the time where an autonomous event will be executed.
-
_time¶ Time to be executed the event.
- Type
Time
-
decrease_time()¶ Decreases the time of the scheduled model.
- Parameters
time (int) – Time variation.
-
get_model()¶ Gets the scheduled model.
-
get_time()¶ Gets the time of the scheduled model.
-