|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--gov.sns.tools.correlator.Correlation
Correlation is a generic container of correlated records.
| Constructor Summary | |
Correlation(java.util.Map newRecordTable,
UnivariateStatistics newTimeStatistics)
Creates new Correlation |
|
| Method Summary | |
boolean |
contains(Correlation correlation)
Check whether this correlation contains all of the records of a specified correlation. |
java.lang.Object |
getRecord(java.lang.String name)
Get the record identified by the source name (same one registered with the correlator). |
java.util.Collection |
getRecords()
Get a collection of the records in the correlation. |
boolean |
isCorrelated(java.lang.String sourceName)
Check if the named source is among the correlated. |
java.util.Date |
meanDate()
Convenience method to get a Java date for a given time stamp by averaging the dates of the records. |
double |
meanTimeInSeconds()
Average time of the time stamps from the records in seconds since the Java epoch |
java.util.Collection |
names()
Get the collection of names each of which identifies a record. |
int |
numRecords()
Get the number of records correlated. |
java.lang.String |
toString()
String representation of the correlation useful for printing |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public Correlation(java.util.Map newRecordTable,
UnivariateStatistics newTimeStatistics)
| Method Detail |
public boolean isCorrelated(java.lang.String sourceName)
sourceName - A name uniquely identifying a source (and record)
public int numRecords()
public java.util.Collection names()
public final java.util.Collection getRecords()
getRecord(java.lang.String)public final java.lang.Object getRecord(java.lang.String name)
name - The name that identifies the desired record.
public boolean contains(Correlation correlation)
correlation - The correlation to test for being contained within this
public double meanTimeInSeconds()
public java.util.Date meanDate()
public java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||