*/
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()) {
switch(command.getId()) {
case SubscribeSimulationValueRetrivalCommandGenerator.ID:
ResponseCommandReader responseCommand = ResponseCommandReader.fromCommand(command);