public static ScenarioCommandCodec fromCommand(Command command) throws IOException {
TraciInputStream payload = command.getPayload();
int flag = payload.readByte();
int domain = payload.readByte();
int domainID = payload.readInt();
int variable = payload.readByte();
int valueDataType = payload.readByte();
Object value = payload.readTraciObject(valueDataType);