T
- type of object being mappedpublic class HashMapper<T> extends java.lang.Object implements LabelledSetRangeMapper<T>
Constructor and Description |
---|
HashMapper(AppContext conn,
RangeMapper<T> r,
HashLabeller<T,java.lang.Number> l) |
Modifier and Type | Method and Description |
---|---|
AppContext |
getContext() |
java.util.Vector<java.lang.String> |
getLabels()
What are the labels corresponding to the Sets
|
float |
getOverlapp(T o,
java.util.Date start,
java.util.Date end)
get the contribution of the object to the specified time period.
|
int |
getSet(T o)
which dataset/plot does this object contribute to.
|
int |
nSets()
How many sets can the mapper map to
|
boolean |
overlapps(T o,
java.util.Date start,
java.util.Date end)
does this object overlap with the specified time period.
|
public HashMapper(AppContext conn, RangeMapper<T> r, HashLabeller<T,java.lang.Number> l)
public AppContext getContext()
public java.util.Vector<java.lang.String> getLabels()
Labelled
public float getOverlapp(T o, java.util.Date start, java.util.Date end) throws java.lang.Exception
RangeMapper
getOverlapp
in interface RangeMapper<T>
start
- period start as Dateend
- period end as Datejava.lang.Exception
public int getSet(T o)
SetRangeMapper
getSet
in interface SetRangeMapper<T>
public int nSets()
Labelled
public boolean overlapps(T o, java.util.Date start, java.util.Date end)
RangeMapper
overlapps
in interface RangeMapper<T>
start
- period start as Dateend
- period end as Date