Class SimulationTraciRequest
- java.lang.Object
-
- org.eclipse.mosaic.fed.sumo.bridge.traci.AbstractTraciCommand<SumoTraciResult>
-
- org.eclipse.mosaic.fed.sumo.bridge.traci.SimulationTraciRequest
-
- All Implemented Interfaces:
SimulationTraciRequest
public class SimulationTraciRequest extends AbstractTraciCommand<SumoTraciResult> implements SimulationTraciRequest
Implementation for a byte array message from the simulation.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.eclipse.mosaic.fed.sumo.bridge.traci.AbstractTraciCommand
AbstractTraciCommand.TraciCommandResultReaderBuilder, AbstractTraciCommand.TraciCommandWriterBuilder
-
-
Constructor Summary
Constructors Constructor Description SimulationTraciRequest()
Creates a newSimulationTraciRequest
object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected SumoTraciResult
constructResult(Status status, Object... objects)
This method is called during reading the command response when all readers have been executed.SumoTraciResult
execute(Bridge bridge, String messageId, byte[] messageContent)
-
Methods inherited from class org.eclipse.mosaic.fed.sumo.bridge.traci.AbstractTraciCommand
execute, executeAndReturn, executeAndReturnList, read, write
-
-
-
-
Constructor Detail
-
SimulationTraciRequest
public SimulationTraciRequest()
Creates a newSimulationTraciRequest
object.
-
-
Method Detail
-
execute
public SumoTraciResult execute(Bridge bridge, String messageId, byte[] messageContent) throws CommandException, InternalFederateException
- Specified by:
execute
in interfaceSimulationTraciRequest
- Throws:
CommandException
InternalFederateException
-
constructResult
protected SumoTraciResult constructResult(Status status, Object... objects)
Description copied from class:AbstractTraciCommand
This method is called during reading the command response when all readers have been executed. The results of the readers are passed to this method.- Specified by:
constructResult
in classAbstractTraciCommand<SumoTraciResult>
- Parameters:
status
- the status of the responseobjects
- the objects created by the configured readers- Returns:
- the final result constructed from the passed objects
-
-