public class Vehicle extends it.polito.appeal.traci.TraciObject<Vehicle.Variable> implements it.polito.appeal.traci.StepAdvanceListener
| Modifier and Type | Class and Description |
|---|---|
static class |
Vehicle.Variable
Enumerates all the read queries.
|
| Modifier and Type | Method and Description |
|---|---|
void |
changeColor(Color value)
Execute an instance of ChangeColorQuery set to the given value.
|
void |
changeLaneChangeMode(Integer value)
Execute an instance of ChangeObjectVarQuery.ChangeIntegerQ set to the given value.
|
void |
changeLaneIndex(it.polito.appeal.traci.LaneIndexQueryParameter value)
Execute an instance of ChangeLaneIndexQuery set to the given value.
|
void |
changeRoute(List<Edge> value)
Execute an instance of ChangeRouteQuery set to the given value.
|
void |
changeSpeed(Double value)
Execute an instance of ChangeSpeedQuery set to the given value.
|
void |
changeTarget(Edge value)
Execute an instance of ChangeTargetQuery set to the given value.
|
Double |
getCo2Emission()
Executes an instance of
ReadObjectVarQuery relative to this query,
and returns the corresponding value. |
Double |
getCoEmission()
Executes an instance of
ReadObjectVarQuery relative to this query,
and returns the corresponding value. |
Color |
getColor()
Executes an instance of
ReadObjectVarQuery relative to this query,
and returns the corresponding value. |
Edge |
getCurrentEdge()
Executes an instance of
ReadObjectVarQuery relative to this query,
and returns the corresponding value. |
List<Edge> |
getCurrentRoute()
Executes an instance of
ReadObjectVarQuery relative to this query,
and returns the corresponding value. |
Double |
getFuelConsumption()
Executes an instance of
ReadObjectVarQuery relative to this query,
and returns the corresponding value. |
Double |
getHcEmission()
Executes an instance of
ReadObjectVarQuery relative to this query,
and returns the corresponding value. |
Lane |
getLaneId()
Executes an instance of
ReadObjectVarQuery relative to this query,
and returns the corresponding value. |
Integer |
getLaneIndex()
Executes an instance of
ReadObjectVarQuery relative to this query,
and returns the corresponding value. |
Double |
getLanePosition()
Executes an instance of
ReadObjectVarQuery relative to this query,
and returns the corresponding value. |
Double |
getNoiseEmission()
Executes an instance of
ReadObjectVarQuery relative to this query,
and returns the corresponding value. |
Double |
getNoxEmission()
Executes an instance of
ReadObjectVarQuery relative to this query,
and returns the corresponding value. |
Double |
getPmxEmission()
Executes an instance of
ReadObjectVarQuery relative to this query,
and returns the corresponding value. |
Point2D |
getPosition()
Executes an instance of
ReadObjectVarQuery relative to this query,
and returns the corresponding value. |
Double |
getSpeed()
Executes an instance of
ReadObjectVarQuery relative to this query,
and returns the corresponding value. |
String |
getType()
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.ChangeColorQuery |
queryChangeColor() |
it.polito.appeal.traci.ChangeObjectVarQuery.ChangeIntegerQ |
queryChangeLaneChangeMode() |
it.polito.appeal.traci.ChangeLaneIndexQuery |
queryChangeLaneIndex() |
it.polito.appeal.traci.ChangeMaxSpeedQuery |
queryChangeMaxSpeed() |
it.polito.appeal.traci.ChangeRouteQuery |
queryChangeRoute() |
it.polito.appeal.traci.ChangeSpeedQuery |
queryChangeSpeed() |
it.polito.appeal.traci.ChangeTargetQuery |
queryChangeTarget() |
it.polito.appeal.traci.ReadObjectVarQuery<Double> |
queryReadCO2Emission() |
it.polito.appeal.traci.ReadObjectVarQuery<Double> |
queryReadCOEmission() |
it.polito.appeal.traci.ReadObjectVarQuery<Color> |
queryReadColor() |
it.polito.appeal.traci.ReadObjectVarQuery<Edge> |
queryReadCurrentEdge() |
it.polito.appeal.traci.ReadObjectVarQuery<Lane> |
queryReadCurrentLane() |
it.polito.appeal.traci.ReadObjectVarQuery<Integer> |
queryReadCurrentLaneIndex() |
it.polito.appeal.traci.ReadObjectVarQuery<List<Edge>> |
queryReadCurrentRoute() |
it.polito.appeal.traci.ReadObjectVarQuery<Double> |
queryReadFuelConsumption() |
it.polito.appeal.traci.ReadObjectVarQuery<Double> |
queryReadHCEmission() |
it.polito.appeal.traci.ReadObjectVarQuery<Double> |
queryReadLanePosition() |
it.polito.appeal.traci.ReadObjectVarQuery<Double> |
queryReadNoiseEmission() |
it.polito.appeal.traci.ReadObjectVarQuery<Double> |
queryReadNOXEmission() |
it.polito.appeal.traci.ReadObjectVarQuery<Double> |
queryReadPMXEmission() |
it.polito.appeal.traci.ReadObjectVarQuery<Point2D> |
queryReadPosition() |
it.polito.appeal.traci.ReadObjectVarQuery<Double> |
queryReadSpeed() |
it.polito.appeal.traci.ReadObjectVarQuery<String> |
queryReadType() |
it.polito.appeal.traci.RerouteQuery |
queryReroute() |
it.polito.appeal.traci.ChangeEdgeTravelTimeQuery |
querySetEdgeTravelTime() |
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<Double> queryReadSpeed()
ReadObjectVarQuery relative to this query.public Double getSpeed() throws IOException
ReadObjectVarQuery relative to this query,
and returns the corresponding value.IOExceptionpublic it.polito.appeal.traci.ReadObjectVarQuery<Point2D> queryReadPosition()
ReadObjectVarQuery relative to this query.public Point2D getPosition() throws IOException
ReadObjectVarQuery relative to this query,
and returns the corresponding value.IOExceptionpublic it.polito.appeal.traci.ReadObjectVarQuery<Double> queryReadLanePosition()
ReadObjectVarQuery relative to this query.public Double getLanePosition() throws IOException
ReadObjectVarQuery relative to this query,
and returns the corresponding value.IOExceptionpublic it.polito.appeal.traci.ReadObjectVarQuery<Integer> queryReadCurrentLaneIndex()
ReadObjectVarQuery relative to this query.public Integer getLaneIndex() throws IOException
ReadObjectVarQuery relative to this query,
and returns the corresponding value.IOExceptionpublic it.polito.appeal.traci.ReadObjectVarQuery<Lane> queryReadCurrentLane()
ReadObjectVarQuery relative to this query.public Lane getLaneId() throws IOException
ReadObjectVarQuery relative to this query,
and returns the corresponding value.IOExceptionpublic it.polito.appeal.traci.ReadObjectVarQuery<List<Edge>> queryReadCurrentRoute()
ReadObjectVarQuery relative to this query.public List<Edge> getCurrentRoute() throws IOException
ReadObjectVarQuery relative to this query,
and returns the corresponding value.IOExceptionpublic it.polito.appeal.traci.ReadObjectVarQuery<Edge> queryReadCurrentEdge()
ReadObjectVarQuery relative to this query.public Edge getCurrentEdge() throws IOException
ReadObjectVarQuery relative to this query,
and returns the corresponding value.IOExceptionpublic it.polito.appeal.traci.ReadObjectVarQuery<Double> queryReadCO2Emission()
ReadObjectVarQuery relative to this query.public Double getCo2Emission() throws IOException
ReadObjectVarQuery relative to this query,
and returns the corresponding value.IOExceptionpublic it.polito.appeal.traci.ReadObjectVarQuery<Double> queryReadCOEmission()
ReadObjectVarQuery relative to this query.public Double getCoEmission() throws IOException
ReadObjectVarQuery relative to this query,
and returns the corresponding value.IOExceptionpublic it.polito.appeal.traci.ReadObjectVarQuery<Double> queryReadHCEmission()
ReadObjectVarQuery relative to this query.public Double getHcEmission() throws IOException
ReadObjectVarQuery relative to this query,
and returns the corresponding value.IOExceptionpublic it.polito.appeal.traci.ReadObjectVarQuery<Double> queryReadPMXEmission()
ReadObjectVarQuery relative to this query.public Double getPmxEmission() throws IOException
ReadObjectVarQuery relative to this query,
and returns the corresponding value.IOExceptionpublic it.polito.appeal.traci.ReadObjectVarQuery<Double> queryReadNOXEmission()
ReadObjectVarQuery relative to this query.public Double getNoxEmission() throws IOException
ReadObjectVarQuery relative to this query,
and returns the corresponding value.IOExceptionpublic it.polito.appeal.traci.ReadObjectVarQuery<Double> queryReadFuelConsumption()
ReadObjectVarQuery relative to this query.public Double getFuelConsumption() throws IOException
ReadObjectVarQuery relative to this query,
and returns the corresponding value.IOExceptionpublic it.polito.appeal.traci.ReadObjectVarQuery<Double> queryReadNoiseEmission()
ReadObjectVarQuery relative to this query.public Double getNoiseEmission() throws IOException
ReadObjectVarQuery relative to this query,
and returns the corresponding value.IOExceptionpublic it.polito.appeal.traci.ReadObjectVarQuery<Color> queryReadColor()
ReadObjectVarQuery relative to this query.public Color getColor() throws IOException
ReadObjectVarQuery relative to this query,
and returns the corresponding value.IOExceptionpublic it.polito.appeal.traci.ReadObjectVarQuery<String> queryReadType()
ReadObjectVarQuery relative to this query.public String getType() throws IOException
ReadObjectVarQuery relative to this query,
and returns the corresponding value.IOExceptionpublic it.polito.appeal.traci.ChangeEdgeTravelTimeQuery querySetEdgeTravelTime()
ChangeEdgeTravelTimeQuery relative to this query.public it.polito.appeal.traci.RerouteQuery queryReroute()
RerouteQuery relative to this query.public it.polito.appeal.traci.ChangeLaneIndexQuery queryChangeLaneIndex()
ChangeLaneIndexQuery relative to this query.public void changeLaneIndex(it.polito.appeal.traci.LaneIndexQueryParameter value)
throws IOException
IOExceptionpublic it.polito.appeal.traci.ChangeColorQuery queryChangeColor()
ChangeColorQuery relative to this query.public void changeColor(Color value) throws IOException
IOExceptionpublic it.polito.appeal.traci.ChangeTargetQuery queryChangeTarget()
ChangeTargetQuery relative to this query.public void changeTarget(Edge value) throws IOException
IOExceptionpublic it.polito.appeal.traci.ChangeMaxSpeedQuery queryChangeMaxSpeed()
ChangeMaxSpeedQuery relative to this query.public it.polito.appeal.traci.ChangeRouteQuery queryChangeRoute()
ChangeRouteQuery relative to this query.public void changeRoute(List<Edge> value) throws IOException
IOExceptionpublic it.polito.appeal.traci.ChangeSpeedQuery queryChangeSpeed()
ChangeSpeedQuery relative to this query.public void changeSpeed(Double value) throws IOException
IOExceptionpublic it.polito.appeal.traci.ChangeObjectVarQuery.ChangeIntegerQ queryChangeLaneChangeMode()
ChangeObjectVarQuery.ChangeIntegerQ relative to this query.public void changeLaneChangeMode(Integer value) throws IOException
IOExceptionCopyright © 2015 Politecnico di Torino. All rights reserved.