Package dispatch
Class Dispatcher
- java.lang.Object
-
- dispatch.Dispatcher
-
public class Dispatcher extends Object
-
-
Field Summary
Fields Modifier and Type Field Description float
current_time
PriorityQueue<AbstractEvent>
events
Scenario
scenario
float
stop_time
boolean
verbose
-
Constructor Summary
Constructors Constructor Description Dispatcher()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
dispatch_events_to_stop()
void
initialize()
void
print_events()
void
register_event(AbstractEvent event)
void
remove_events_for_recipient(Class<? extends AbstractEvent> clazz, Object recipient)
void
remove_events_of_type(Class<? extends AbstractEvent> clazz)
void
set_continue_simulation(boolean x)
void
set_scenario(Scenario scenario)
void
set_stop_time(float stop_time)
void
stop()
-
-
-
Field Detail
-
scenario
public Scenario scenario
-
current_time
public float current_time
-
stop_time
public float stop_time
-
events
public PriorityQueue<AbstractEvent> events
-
verbose
public boolean verbose
-
-
Method Detail
-
set_stop_time
public void set_stop_time(float stop_time)
-
set_scenario
public void set_scenario(Scenario scenario)
-
initialize
public void initialize() throws OTMException
- Throws:
OTMException
-
set_continue_simulation
public void set_continue_simulation(boolean x)
-
remove_events_of_type
public void remove_events_of_type(Class<? extends AbstractEvent> clazz)
-
remove_events_for_recipient
public void remove_events_for_recipient(Class<? extends AbstractEvent> clazz, Object recipient)
-
register_event
public void register_event(AbstractEvent event)
-
dispatch_events_to_stop
public void dispatch_events_to_stop() throws OTMException
- Throws:
OTMException
-
stop
public void stop()
-
print_events
public void print_events()
-
-