public abstract Command toCommand() throws IOException;
public Command performSingleResponseSynchronousRequest(DataInputStream inputStream, DataOutputStream outputStream) throws IOException, TraciException {
Message message = new Message(this);
List<Command> commands = message.performSynchronousRequest(inputStream, outputStream);
if(0 == commands.size()) {
throw new IOException("TraCI request returned no command");
}
return commands.get(0);
}