public class VehicleType extends it.polito.appeal.traci.TraciObject<VehicleType.Variable> implements it.polito.appeal.traci.StepAdvanceListener
| Modifier and Type | Class and Description |
|---|---|
static class |
VehicleType.Variable
Enumerates all the read queries.
|
| Modifier and Type | Method and Description |
|---|---|
void |
changeAccel(Double value)
Execute an instance of ChangeObjectVarQuery.ChangeDoubleQ set to the given value.
|
Double |
getAccel()
Executes an instance of
ReadObjectVarQuery relative to this query,
and returns the corresponding value. |
Double |
getDecel()
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 |
getMaxspeed()
Executes an instance of
ReadObjectVarQuery relative to this query,
and returns the corresponding value. |
Double |
getMingap()
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.ChangeObjectVarQuery.ChangeDoubleQ |
queryChangeAccel() |
it.polito.appeal.traci.ChangeDecelQuery |
queryChangeDecel() |
it.polito.appeal.traci.ChangeMaxSpeedQuery |
queryChangeMaxSpeed() |
it.polito.appeal.traci.ChangeMinGapQuery |
queryChangeMinGap() |
it.polito.appeal.traci.ReadObjectVarQuery<Double> |
queryReadAccel() |
it.polito.appeal.traci.ReadObjectVarQuery<Double> |
queryReadDecel() |
it.polito.appeal.traci.ReadObjectVarQuery<Double> |
queryReadLength() |
it.polito.appeal.traci.ReadObjectVarQuery<Double> |
queryReadMaxSpeed() |
it.polito.appeal.traci.ReadObjectVarQuery<Double> |
queryReadMinGap() |
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> queryReadLength()
ReadObjectVarQuery relative to this query.public Double getLength() throws IOException
ReadObjectVarQuery relative to this query,
and returns the corresponding value.IOExceptionpublic it.polito.appeal.traci.ReadObjectVarQuery<Double> queryReadAccel()
ReadObjectVarQuery relative to this query.public Double getAccel() throws IOException
ReadObjectVarQuery relative to this query,
and returns the corresponding value.IOExceptionpublic it.polito.appeal.traci.ReadObjectVarQuery<Double> queryReadDecel()
ReadObjectVarQuery relative to this query.public Double getDecel() throws IOException
ReadObjectVarQuery relative to this query,
and returns the corresponding value.IOExceptionpublic it.polito.appeal.traci.ReadObjectVarQuery<Double> queryReadMaxSpeed()
ReadObjectVarQuery relative to this query.public Double getMaxspeed() throws IOException
ReadObjectVarQuery relative to this query,
and returns the corresponding value.IOExceptionpublic it.polito.appeal.traci.ReadObjectVarQuery<Double> queryReadMinGap()
ReadObjectVarQuery relative to this query.public Double getMingap() throws IOException
ReadObjectVarQuery relative to this query,
and returns the corresponding value.IOExceptionpublic it.polito.appeal.traci.ChangeObjectVarQuery.ChangeDoubleQ queryChangeAccel()
ChangeObjectVarQuery.ChangeDoubleQ relative to this query.public void changeAccel(Double value) throws IOException
IOExceptionpublic it.polito.appeal.traci.ChangeDecelQuery queryChangeDecel()
ChangeDecelQuery relative to this query.public it.polito.appeal.traci.ChangeMaxSpeedQuery queryChangeMaxSpeed()
ChangeMaxSpeedQuery relative to this query.public it.polito.appeal.traci.ChangeMinGapQuery queryChangeMinGap()
ChangeMinGapQuery relative to this query.Copyright © 2015 Politecnico di Torino. All rights reserved.