Interface Row<I>
-
- Type Parameters:
I
- input symbol type
public interface Row<I>
A row in an observation table. Minimally, a row consists of a prefix (the row label) and a unique identifier in its observation table which remains constant throughout the whole process.Apart from that, a row is also associated with contents (via an integer id). The prefix of a row may be either a short or long prefix. In the former case, the row will also have successor rows (one-step futures) associated with it.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Word<I>
getLabel()
Retrieves the label of this row.int
getRowContentId()
Retrieves the unique identifier associated with the content of this row (may be-1
if this row has not yet been initialized).int
getRowId()
Retrieves the unique row identifier associated with this row.Row<I>
getSuccessor(int pos)
Retrieves the successor row for this short label row and the given alphabet symbol (by index).boolean
isShortPrefixRow()
Retrieves whether this row is a short or a long prefix row.
-
-
-
Method Detail
-
getRowId
int getRowId()
Retrieves the unique row identifier associated with this row.- Returns:
- the row identifier
- See Also:
ObservationTable.numberOfRows()
-
getRowContentId
int getRowContentId()
Retrieves the unique identifier associated with the content of this row (may be-1
if this row has not yet been initialized).- Returns:
- the row content identifier
- See Also:
ObservationTable.numberOfDistinctRows()
-
isShortPrefixRow
boolean isShortPrefixRow()
Retrieves whether this row is a short or a long prefix row.- Returns:
true
if this row is a short prefix row,false
otherwise.
-
-