SimulationResponseReceiver receiver = SimulationResponseReceiver.readFromStream(this.inputStream);
System.out.println("number of status responses: " + receiver.getNumberOfResponses());
for(Command command : receiver.getCommands()) {
switch(command.getId()) {
case SimulationStepCommandGenerator2.ID:
ResponseCommandReader responseCommand = ResponseCommandReader.fromCommand(command);;
if(responseCommand.getResult() != 0) {
throw new IOException("TraCI reported an error.");
}
break;
case ResponseSimulationValueCommandReader.ID:
ResponseSimulationValueCommandReader simulationValues = ResponseSimulationValueCommandReader.fromCommand(command);