* Subscribe to the automatical retrival of simulation values after each step in SUMO.
* The values currently contain the simulation time and list of loaded, started and arrived verhicles.
* @throws Exception if the subscription returned an error
*/
public void subscribeToSimulationValues() throws Exception {
SubscribeSimulationValueRetrivalCommandGenerator simulationValue = new SubscribeSimulationValueRetrivalCommandGenerator(
ModelManager.getInstance().getSimulationStartTime() * 1000, ModelManager.getInstance().getSimulationEndTime() * 1000);
Message message = new Message(simulationValue);
message.writeToStream(this.outputStream);
Message response = Message.readFromStream(this.inputStream);
for (Command command:response.getCommands()) {