|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.kuka.roboticsAPI.controllerModel.mapping.AbstractMapper<T>
T - The mapping token type on which the mapper works.public abstract class AbstractMapper<T extends MappingToken<?>>
Base class for all mappers for commands targeting a Sunrise controller.
| Constructor Summary | |
|---|---|
AbstractMapper()
|
|
| Method Summary | |
|---|---|
protected void |
beforeMap(T info)
Will be called immediately before mapping. |
protected AbstractMapperTable<T> |
getMapperTable()
Gets the MapperTable in which this mapper is registered. |
abstract Collection<Class<?>> |
getMappingTypes()
Gets the mapping types which this mapper can map. |
protected abstract void |
map(T info)
This method is called when the mapper should map a command for which it is registered. |
void |
performMapping(T info)
Performs the mapping. |
void |
register(AbstractMapperTable<T> table)
Registers the current mapper to participate in a mapping process. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractMapper()
| Method Detail |
|---|
protected AbstractMapperTable<T> getMapperTable()
public final void performMapping(T info)
info - The mapping information for the current mapping process.protected void beforeMap(T info)
info - The mapping information for the current mapping process.protected abstract void map(T info)
info - The mapping information for the current mapping process.public abstract Collection<Class<?>> getMappingTypes()
null is
not allowed.public final void register(AbstractMapperTable<T> table)
This method must be called manually if the mapper was not added to a Sunrise controller through the config file.
table - The table in which the mapper should be registered.
null is not allowed.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||