cz.cuni.amis.pogamut.ut2004.communication.messages.custom
Class ControlMessageMapper<T extends ICustomControlMessage>

Package class diagram package ControlMessageMapper
java.lang.Object
  extended by cz.cuni.amis.pogamut.ut2004.communication.messages.custom.ControlMessageMapper<T>
Type Parameters:
T -

public class ControlMessageMapper<T extends ICustomControlMessage>
extends Object

Reads definition of ICustomControlMessage implementation interpreting ControlMessageType, ControlMessageField and ControlMessageSimType. and provides deserialize(ControlMessage) method for auto-mapping of ControlMessage onto custom ICustomControlMessage.

Author:
Jimmy

Nested Class Summary
static interface ControlMessageMapper.ControlMessageGetter<T>
           
 
Field Summary
static ControlMessageMapper.ControlMessageGetter<Double>[] getterBooleans
           
static ControlMessageMapper.ControlMessageGetter<Double>[] getterDoubles
           
static ControlMessageMapper.ControlMessageGetter<Integer>[] getterIntegers
           
static ControlMessageMapper.ControlMessageGetter<Double>[] getterStrings
           
 
Constructor Summary
ControlMessageMapper(Class<T> customControlMessageClass)
           
 
Method Summary
 T deserialize(ControlMessage message)
           
 Class<T> getDescriptor()
           
 String getType()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

getterIntegers

public static final ControlMessageMapper.ControlMessageGetter<Integer>[] getterIntegers

getterDoubles

public static final ControlMessageMapper.ControlMessageGetter<Double>[] getterDoubles

getterStrings

public static final ControlMessageMapper.ControlMessageGetter<Double>[] getterStrings

getterBooleans

public static final ControlMessageMapper.ControlMessageGetter<Double>[] getterBooleans
Constructor Detail

ControlMessageMapper

public ControlMessageMapper(Class<T> customControlMessageClass)
Method Detail

getDescriptor

public Class<T> getDescriptor()

getType

public String getType()

deserialize

public T deserialize(ControlMessage message)


Copyright © 2013 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.