Package control.commodity
Class ControllerFlowToLinks
- java.lang.Object
-
- control.AbstractController
-
- control.commodity.ControllerFlowToLinks
-
- All Implemented Interfaces:
InterfaceEventWriter,InterfaceScenarioElement,Pokable
public class ControllerFlowToLinks extends AbstractController
This controller is used to specify the flow that goes to a branch in a splitting node as absolute values instead of split ratios. Example: Coupled with this actuator:100,200 100,300 The actuator enables the control of flow of commodity 0 from link 2 to links 4 and 5. The controller defines profiles of flow to be sent, in units veh/hr. The start times and dt's of the profiles all equal the start time and dt of the controller. Each link (linkin) can have at most one actuator of this type per commodity.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class control.AbstractController
AbstractController.Algorithm
-
-
Field Summary
Fields Modifier and Type Field Description Map<Long,Profile1D>outlink2profile-
Fields inherited from class control.AbstractController
actuator_by_usage, actuators, command, dt, end_time, event_output, id, scenario, sensor_by_usage, sensors, start_time, type
-
-
Constructor Summary
Constructors Constructor Description ControllerFlowToLinks(Scenario scenario, Controller jcon)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Classget_actuator_class()voidupdate_command(Dispatcher dispatcher)voidvalidate_pre_init(OTMErrorLog errorLog)-
Methods inherited from class control.AbstractController
get_command_for_actuator_id, get_command_for_actuator_usage, getId, getSEType, initialize, is_inbuilt, poke, set_event_output, to_jaxb, validate_post_init
-
-
-
-
Constructor Detail
-
ControllerFlowToLinks
public ControllerFlowToLinks(Scenario scenario, Controller jcon) throws OTMException
- Throws:
OTMException
-
-
Method Detail
-
get_actuator_class
public Class get_actuator_class()
- Specified by:
get_actuator_classin classAbstractController
-
validate_pre_init
public void validate_pre_init(OTMErrorLog errorLog)
- Overrides:
validate_pre_initin classAbstractController
-
update_command
public void update_command(Dispatcher dispatcher) throws OTMException
- Specified by:
update_commandin classAbstractController- Throws:
OTMException
-
-