public class POI extends it.polito.appeal.traci.TraciObject<POI.Variable> implements it.polito.appeal.traci.StepAdvanceListener
| Modifier and Type | Class and Description |
|---|---|
static class |
POI.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 |
changePosition(Point2D value)
Execute an instance of ChangePositionQuery set to the given value.
|
void |
changeType(String value)
Execute an instance of ChangeObjectVarQuery.ChangeStringQ set to the given value.
|
Color |
getColor()
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. |
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.ChangePositionQuery |
queryChangePosition() |
it.polito.appeal.traci.ChangeObjectVarQuery.ChangeStringQ |
queryChangeType() |
it.polito.appeal.traci.ReadObjectVarQuery<Color> |
queryReadColor() |
it.polito.appeal.traci.ReadObjectVarQuery<Point2D> |
queryReadPosition() |
it.polito.appeal.traci.ReadObjectVarQuery<String> |
queryReadType() |
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<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.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<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.ChangeColorQuery queryChangeColor()
ChangeColorQuery relative to this query.public void changeColor(Color value) throws IOException
IOExceptionpublic it.polito.appeal.traci.ChangeObjectVarQuery.ChangeStringQ queryChangeType()
ChangeObjectVarQuery.ChangeStringQ relative to this query.public void changeType(String value) throws IOException
IOExceptionpublic it.polito.appeal.traci.ChangePositionQuery queryChangePosition()
ChangePositionQuery relative to this query.public void changePosition(Point2D value) throws IOException
IOExceptionCopyright © 2015 Politecnico di Torino. All rights reserved.