public class LaArDetector extends it.polito.appeal.traci.TraciObject<LaArDetector.Variable> implements it.polito.appeal.traci.StepAdvanceListener
| Modifier and Type | Class and Description |
|---|---|
static class |
LaArDetector.Variable
Enumerates all the read queries.
|
| Modifier and Type | Method and Description |
|---|---|
Lane |
getLane()
Executes an instance of
ReadObjectVarQuery relative to this query,
and returns the corresponding value. |
Double |
getLength()
Executes an instance of
ReadObjectVarQuery relative to this query,
and returns the corresponding value. |
Double |
getMeanSpeed()
Executes an instance of
ReadObjectVarQuery relative to this query,
and returns the corresponding value. |
Double |
getPosition()
Executes an instance of
ReadObjectVarQuery relative to this query,
and returns the corresponding value. |
Integer |
getVehicleNumber()
Executes an instance of
ReadObjectVarQuery relative to this query,
and returns the corresponding value. |
Set<Vehicle> |
getVehicles()
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.ReadObjectVarQuery<Lane> |
queryReadLane() |
it.polito.appeal.traci.ReadObjectVarQuery<Double> |
queryReadLastStepMeanSpeed() |
it.polito.appeal.traci.ReadObjectVarQuery<Integer> |
queryReadLastStepVehicleNumber() |
it.polito.appeal.traci.ReadObjectVarQuery<Set<Vehicle>> |
queryReadLastStepVehicles() |
it.polito.appeal.traci.ReadObjectVarQuery<Double> |
queryReadLengthInLane() |
it.polito.appeal.traci.ReadObjectVarQuery<Double> |
queryReadPositionInLane() |
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.ReadObjectVarQuery<Lane> queryReadLane()
ReadObjectVarQuery relative to this query.public Lane getLane() throws IOException
ReadObjectVarQuery relative to this query,
and returns the corresponding value.IOExceptionpublic it.polito.appeal.traci.ReadObjectVarQuery<Integer> queryReadLastStepVehicleNumber()
ReadObjectVarQuery relative to this query.public Integer getVehicleNumber() throws IOException
ReadObjectVarQuery relative to this query,
and returns the corresponding value.IOExceptionpublic it.polito.appeal.traci.ReadObjectVarQuery<Double> queryReadLastStepMeanSpeed()
ReadObjectVarQuery relative to this query.public Double getMeanSpeed() throws IOException
ReadObjectVarQuery relative to this query,
and returns the corresponding value.IOExceptionpublic it.polito.appeal.traci.ReadObjectVarQuery<Set<Vehicle>> queryReadLastStepVehicles()
ReadObjectVarQuery relative to this query.public Set<Vehicle> getVehicles() throws IOException
ReadObjectVarQuery relative to this query,
and returns the corresponding value.IOExceptionpublic it.polito.appeal.traci.ReadObjectVarQuery<Double> queryReadPositionInLane()
ReadObjectVarQuery relative to this query.public Double getPosition() throws IOException
ReadObjectVarQuery relative to this query,
and returns the corresponding value.IOExceptionpublic it.polito.appeal.traci.ReadObjectVarQuery<Double> queryReadLengthInLane()
ReadObjectVarQuery relative to this query.public Double getLength() throws IOException
ReadObjectVarQuery relative to this query,
and returns the corresponding value.IOExceptionCopyright © 2015 Politecnico di Torino. All rights reserved.