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 -
Method Summary
Modifier and TypeMethodDescriptionprotected SumoTraciResult
constructResult
(Status status, Object... objects) This method is called during reading the command response when all readers have been executed.Methods inherited from class org.eclipse.mosaic.fed.sumo.bridge.traci.AbstractTraciCommand
execute, executeAndReturn, executeAndReturnList, read, write
-
Constructor Details
-
SimulationTraciRequest
public SimulationTraciRequest()Creates a newSimulationTraciRequest
object.
-
-
Method Details
-
execute
public SumoTraciResult execute(Bridge bridge, String messageId, byte[] messageContent) throws CommandException, InternalFederateException - Specified by:
execute
in interfaceSimulationTraciRequest
- Throws:
CommandException
InternalFederateException
-
constructResult
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
-