jAER project on SourceForge

net.sf.jaer.aemapper
Class LUTMapper

java.lang.Object
  extended by java.util.AbstractMap<K,V>
      extended by java.util.HashMap<java.lang.Integer,int[]>
          extended by net.sf.jaer.aemapper.LUTMapper
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.util.Map<java.lang.Integer,int[]>, AEMap

public class LUTMapper
extends java.util.HashMap<java.lang.Integer,int[]>
implements AEMap

Class that holds a lookup table mapper.

Author:
tobi
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class java.util.AbstractMap
java.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>
 
Constructor Summary
LUTMapper()
           
 
Method Summary
 void addToMapping(int src, int[] toAdd)
           
 void clearMapping(int src)
           
 int[] getMapping(int src)
          get the array of destination addresses for a source address
 void setMapping(int src, int[] dest)
           
 
Methods inherited from class java.util.HashMap
clear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, values
 
Methods inherited from class java.util.AbstractMap
equals, hashCode, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Map
equals, hashCode
 

Constructor Detail

LUTMapper

public LUTMapper()
Method Detail

setMapping

public void setMapping(int src,
                       int[] dest)

getMapping

public int[] getMapping(int src)
Description copied from interface: AEMap
get the array of destination addresses for a source address

Specified by:
getMapping in interface AEMap
Parameters:
src - the source address
Returns:
array of destination addresses

addToMapping

public void addToMapping(int src,
                         int[] toAdd)

clearMapping

public void clearMapping(int src)

jAER project on SourceForge