com.kuka.roboticsAPI.controllerModel.mapping
Class AbstractMapperTable<T extends MappingToken<?>>

java.lang.Object
  extended by com.kuka.roboticsAPI.controllerModel.mapping.AbstractMapperTable<T>
Type Parameters:
T - The mapping token type on which the table works.
Direct Known Subclasses:
SunriseMapperTable

public abstract class AbstractMapperTable<T extends MappingToken<?>>
extends Object

Provides mapping of types to mappers responsible for these types.

This element is an undocumented internal feature. It is not intended to be used by applications as it might change or be removed in future versions.

Constructor Summary
protected AbstractMapperTable()
          Creates a new empty mapper table.
 
Method Summary
 AbstractMapper<T> findMapper(Object obj)
          Finds a mapper for the object which should be mapped.
abstract  AbstractMapperConfiguration<T> getConfiguration()
          Gets the configuration that is backed up by this table.
 void register(Class<?> clazz, AbstractMapper<T> mapper)
          Registers the given class and the given mapper in this table.
 void startMapping(T info)
          Starts the mapping of a command in a SPR or more.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractMapperTable

protected AbstractMapperTable()
Creates a new empty mapper table.

Method Detail

getConfiguration

public abstract AbstractMapperConfiguration<T> getConfiguration()
Gets the configuration that is backed up by this table. This can be used to load additional mappers from some xml file.

Returns:
The configuration object.
This element is an undocumented internal feature. It is not intended to be used by applications as it might change or be removed in future versions.

findMapper

public AbstractMapper<T> findMapper(Object obj)
Finds a mapper for the object which should be mapped. Throws an exception if no mapper is found.

Parameters:
obj - Object to be mapped.
Returns:
The command mapper for the current mapping information.
This element is an undocumented internal feature. It is not intended to be used by applications as it might change or be removed in future versions.

startMapping

public void startMapping(T info)
Starts the mapping of a command in a SPR or more. The mapping information contains some additional information concerning to mapping process.

Parameters:
info - The mapping information for the current mapping process.
This element is an undocumented internal feature. It is not intended to be used by applications as it might change or be removed in future versions.

register

public void register(Class<?> clazz,
                     AbstractMapper<T> mapper)
Registers the given class and the given mapper in this table.

Parameters:
clazz - The class.
mapper - The mapper.
This element is an undocumented internal feature. It is not intended to be used by applications as it might change or be removed in future versions.


Copyright © 2019. All rights reserved.