public class MeMeDetector extends it.polito.appeal.traci.TraciObject<MeMeDetector.Variable> implements it.polito.appeal.traci.StepAdvanceListener
| Modifier and Type | Class and Description |
|---|---|
static class |
MeMeDetector.Variable
Enumerates all the read queries.
|
| Modifier and Type | Method and Description |
|---|---|
Double |
getMeanSpeed()
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<Double> |
queryReadLastStepMeanSpeed() |
it.polito.appeal.traci.ReadObjectVarQuery<Integer> |
queryReadLastStepVehicleNumber() |
it.polito.appeal.traci.ReadObjectVarQuery<Set<Vehicle>> |
queryReadLastStepVehicles() |
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<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.IOExceptionCopyright © 2015 Politecnico di Torino. All rights reserved.