Parsing Engine

danbikel.parser
Class CountsTrio

java.lang.Object
  extended by danbikel.parser.CountsTrio
All Implemented Interfaces:
Serializable

public class CountsTrio
extends Object
implements Serializable

Class for grouping the three counts tables necessary for counting transitions, histories and unique transitions (or diversity counts for the history events).

Implementation note: The three tables are stored internally as two objects, a CountsTable and a BiCountsTable object. These two objects are available from the transition() and history() accessor methods, respectively.

See Also:
Serialized Form

Field Summary
static int diversity
          The constant to be used as an index when adding or retrieving diversity counts from the BiCountsTable returned by history().
static int hist
          The constant to be used as an index when adding or retrieving history counts from the BiCountsTable returned by history().
 
Method Summary
 BiCountsTable history()
          Gets the CountsTable for histories counts and diversity statistics.
 CountsTable transition()
          Gets the CountsTable for transitions.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

hist

public static final int hist
The constant to be used as an index when adding or retrieving history counts from the BiCountsTable returned by history().

See Also:
Constant Field Values

diversity

public static final int diversity
The constant to be used as an index when adding or retrieving diversity counts from the BiCountsTable returned by history().

See Also:
Constant Field Values
Method Detail

transition

public CountsTable transition()
Gets the CountsTable for transitions.

Returns:
the transitions CountsTable.

history

public BiCountsTable history()
Gets the CountsTable for histories counts and diversity statistics.

Returns:
the histories CountsTable.

Parsing Engine

Author: Dan Bikel.