Package actuator
Class ActuatorSignal
- java.lang.Object
-
- actuator.AbstractActuator
-
- actuator.ActuatorSignal
-
- All Implemented Interfaces:
core.InterfaceScenarioElement
,dispatch.Pokable
public class ActuatorSignal extends AbstractActuator
Actuator for signalized intersections. Defines a set of phases that can be individually actuated by a controller.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class actuator.AbstractActuator
AbstractActuator.Type
-
-
Field Summary
Fields Modifier and Type Field Description Map<Long,actuator.SignalPhase>
signal_phases
-
Fields inherited from class actuator.AbstractActuator
commids, dt, id, initialized, myController, target
-
-
Constructor Summary
Constructors Constructor Description ActuatorSignal(Scenario scenario, jaxb.Actuator jaxb_actuator)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description actuator.SignalPhase
get_phase(long phase_id)
AbstractActuator.Type
getType()
void
initialize(Scenario scenario, float timestamp, boolean override_targets)
void
process_command(control.command.InterfaceCommand command, float timestamp)
void
validate_post_init(error.OTMErrorLog errorLog)
void
validate_pre_init(error.OTMErrorLog errorLog)
-
-
-
Constructor Detail
-
ActuatorSignal
public ActuatorSignal(Scenario scenario, jaxb.Actuator jaxb_actuator) throws error.OTMException
- Throws:
error.OTMException
-
-
Method Detail
-
getType
public AbstractActuator.Type getType()
- Specified by:
getType
in classAbstractActuator
-
validate_pre_init
public void validate_pre_init(error.OTMErrorLog errorLog)
- Overrides:
validate_pre_init
in classAbstractActuator
-
validate_post_init
public void validate_post_init(error.OTMErrorLog errorLog)
- Overrides:
validate_post_init
in classAbstractActuator
-
initialize
public void initialize(Scenario scenario, float timestamp, boolean override_targets) throws error.OTMException
- Overrides:
initialize
in classAbstractActuator
- Throws:
error.OTMException
-
process_command
public void process_command(control.command.InterfaceCommand command, float timestamp) throws error.OTMException
- Specified by:
process_command
in classAbstractActuator
- Throws:
error.OTMException
-
get_phase
public actuator.SignalPhase get_phase(long phase_id)
-
-