public class TrafficLight extends it.polito.appeal.traci.TraciObject<TrafficLight.Variable> implements it.polito.appeal.traci.StepAdvanceListener
| Modifier and Type | Class and Description |
|---|---|
static class |
TrafficLight.Variable
Enumerates all the read queries.
|
| Modifier and Type | Method and Description |
|---|---|
void |
changeCompleteProgramDefinition(it.polito.appeal.traci.Logic value)
Execute an instance of ChangeCompleteProgramQuery set to the given value.
|
void |
changeLightsState(it.polito.appeal.traci.TLState value)
Execute an instance of ChangeLightsStateQuery set to the given value.
|
void |
changePhaseDuration(Integer value)
Execute an instance of ChangeObjectVarQuery.ChangeIntegerQ set to the given value.
|
void |
changePhaseIndex(Integer value)
Execute an instance of ChangeObjectVarQuery.ChangeIntegerQ set to the given value.
|
void |
changeProgram(String value)
Execute an instance of ChangeObjectVarQuery.ChangeStringQ set to the given value.
|
Integer |
getDefaultCurrentPhaseDuration()
Executes an instance of
ReadObjectVarQuery relative to this query,
and returns the corresponding value. |
void |
nextStep(double step)
Callback for step advancement.
|
it.polito.appeal.traci.ChangeCompleteProgramQuery |
queryChangeCompleteProgramDefinition() |
it.polito.appeal.traci.ChangeLightsStateQuery |
queryChangeLightsState() |
it.polito.appeal.traci.ChangeObjectVarQuery.ChangeIntegerQ |
queryChangePhaseDuration() |
it.polito.appeal.traci.ChangeObjectVarQuery.ChangeIntegerQ |
queryChangePhaseIndex() |
it.polito.appeal.traci.ChangeObjectVarQuery.ChangeStringQ |
queryChangeProgram() |
it.polito.appeal.traci.ReadObjectVarQuery.IntegerQ |
queryReadAssumedNextSwitchTime() |
it.polito.appeal.traci.ReadCompleteDefinitionQuery |
queryReadCompleteDefinition() |
it.polito.appeal.traci.LaneListQuery |
queryReadControlledLanes() |
it.polito.appeal.traci.ReadControlledLinksQuery |
queryReadControlledLinks() |
it.polito.appeal.traci.ReadObjectVarQuery.IntegerQ |
queryReadCurrentPhase() |
it.polito.appeal.traci.ReadObjectVarQuery.StringQ |
queryReadCurrentProgram() |
it.polito.appeal.traci.ReadObjectVarQuery<Integer> |
queryReadDefaultCurrentPhaseDuration() |
it.polito.appeal.traci.ReadTLStateQuery |
queryReadState() |
public void nextStep(double step)
it.polito.appeal.traci.StepAdvanceListenernextStep in interface it.polito.appeal.traci.StepAdvanceListenerstep - the new simulation time, in secondspublic it.polito.appeal.traci.ReadTLStateQuery queryReadState()
ReadTLStateQuery relative to this query.public it.polito.appeal.traci.ReadObjectVarQuery<Integer> queryReadDefaultCurrentPhaseDuration()
ReadObjectVarQuery relative to this query.public Integer getDefaultCurrentPhaseDuration() throws IOException
ReadObjectVarQuery relative to this query,
and returns the corresponding value.IOExceptionpublic it.polito.appeal.traci.LaneListQuery queryReadControlledLanes()
LaneListQuery relative to this query.public it.polito.appeal.traci.ReadControlledLinksQuery queryReadControlledLinks()
ReadControlledLinksQuery relative to this query.public it.polito.appeal.traci.ReadObjectVarQuery.IntegerQ queryReadCurrentPhase()
ReadObjectVarQuery.IntegerQ relative to this query.public it.polito.appeal.traci.ReadObjectVarQuery.StringQ queryReadCurrentProgram()
ReadObjectVarQuery.StringQ relative to this query.public it.polito.appeal.traci.ReadCompleteDefinitionQuery queryReadCompleteDefinition()
ReadCompleteDefinitionQuery relative to this query.public it.polito.appeal.traci.ReadObjectVarQuery.IntegerQ queryReadAssumedNextSwitchTime()
ReadObjectVarQuery.IntegerQ relative to this query.public it.polito.appeal.traci.ChangeLightsStateQuery queryChangeLightsState()
ChangeLightsStateQuery relative to this query.public void changeLightsState(it.polito.appeal.traci.TLState value)
throws IOException
IOExceptionpublic it.polito.appeal.traci.ChangeObjectVarQuery.ChangeIntegerQ queryChangePhaseIndex()
ChangeObjectVarQuery.ChangeIntegerQ relative to this query.public void changePhaseIndex(Integer value) throws IOException
IOExceptionpublic it.polito.appeal.traci.ChangeObjectVarQuery.ChangeStringQ queryChangeProgram()
ChangeObjectVarQuery.ChangeStringQ relative to this query.public void changeProgram(String value) throws IOException
IOExceptionpublic it.polito.appeal.traci.ChangeObjectVarQuery.ChangeIntegerQ queryChangePhaseDuration()
ChangeObjectVarQuery.ChangeIntegerQ relative to this query.public void changePhaseDuration(Integer value) throws IOException
IOExceptionpublic it.polito.appeal.traci.ChangeCompleteProgramQuery queryChangeCompleteProgramDefinition()
ChangeCompleteProgramQuery relative to this query.public void changeCompleteProgramDefinition(it.polito.appeal.traci.Logic value)
throws IOException
IOExceptionCopyright © 2015 Politecnico di Torino. All rights reserved.