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()
Labelledpublic float getOverlapp(T o, java.util.Date start, java.util.Date end) throws java.lang.Exception
RangeMappergetOverlapp in interface RangeMapper<T>start - period start as Dateend - period end as Datejava.lang.Exceptionpublic int getSet(T o)
SetRangeMappergetSet in interface SetRangeMapper<T>public int nSets()
Labelledpublic boolean overlapps(T o, java.util.Date start, java.util.Date end)
RangeMapperoverlapps in interface RangeMapper<T>start - period start as Dateend - period end as Date