Package actuator
Class ActuatorFlowToLinks
- java.lang.Object
-
- actuator.AbstractActuator
-
- actuator.ActuatorFlowToLinks
-
- All Implemented Interfaces:
InterfaceScenarioElement
,Pokable
public class ActuatorFlowToLinks extends AbstractActuator
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class actuator.AbstractActuator
AbstractActuator.Type
-
-
Field Summary
Fields Modifier and Type Field Description Map<Long,Double>
outlink2flows
List<Long>
rcids
Map<Long,Double>
remain_outlink2flows
double
remain_total_outlink2flows
double
total_outlink2flows
double
total_unactuated_split
Set<Long>
unactuated_links_without_splits
Map<Long,Double>
unactuated_splits
-
Fields inherited from class actuator.AbstractActuator
commids, dt, id, initialized, myController, target
-
-
Constructor Summary
Constructors Constructor Description ActuatorFlowToLinks(Scenario scenario, Actuator jact)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AbstractActuator.Type
getType()
void
initialize(Scenario scenario, float timestamp, boolean override_targets)
void
process_command(InterfaceCommand command, float timestamp)
void
reset_totals(float timestamp)
void
update_splits(Map<Long,Double> outlink2split)
void
validate_post_init(OTMErrorLog errorLog)
void
validate_pre_init(OTMErrorLog errorLog)
-
-
-
Constructor Detail
-
ActuatorFlowToLinks
public ActuatorFlowToLinks(Scenario scenario, Actuator jact) throws OTMException
- Throws:
OTMException
-
-
Method Detail
-
getType
public AbstractActuator.Type getType()
- Specified by:
getType
in classAbstractActuator
-
validate_pre_init
public void validate_pre_init(OTMErrorLog errorLog)
- Overrides:
validate_pre_init
in classAbstractActuator
-
initialize
public void initialize(Scenario scenario, float timestamp, boolean override_targets) throws OTMException
- Overrides:
initialize
in classAbstractActuator
- Throws:
OTMException
-
validate_post_init
public void validate_post_init(OTMErrorLog errorLog)
- Overrides:
validate_post_init
in classAbstractActuator
-
process_command
public void process_command(InterfaceCommand command, float timestamp) throws OTMException
- Specified by:
process_command
in classAbstractActuator
- Throws:
OTMException
-
reset_totals
public void reset_totals(float timestamp)
-
-