|
Parsing Engine | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdanbikel.parser.Transition
public class Transition
Represents the transition from a particular history to a particular future, to be used when computing the conditional probability of seeing a particular future in the context of a particular history.
Constructor Summary | |
---|---|
Transition(Event future,
Event history)
Constructs this transition with the specified future and history events. |
Method Summary | |
---|---|
Transition |
copy()
Returns a deep copy of this Transition object. |
Transition |
copyCanonical(Map canonicalFutures,
Map canonicalHistories)
Returns a copy of this object with canonical versions of the history and future events. |
boolean |
equals(Object obj)
Returns true if obj is an instance of
Transition and has future and history components that
are respectively equal to this object's future and history components. |
Event |
future()
Gets the future event of this transition object. |
int |
hashCode()
Returns the hash code of this transition object, based on the hash codes of its component history and future events. |
int |
hashCode(int historyHashCode)
Returns the hash code for this object using the specified hash code for the history event. |
Event |
history()
Gets the history event of this transition object. |
void |
setFuture(Event future)
Sets the future event of this transition. |
void |
setHistory(Event history)
Sets the history event of this transition. |
String |
toString()
Returns a human-readable string representation of this transition. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Transition(Event future, Event history)
future
- the future eventhistory
- the history eventMethod Detail |
---|
public Event future()
public Event history()
public void setFuture(Event future)
public void setHistory(Event history)
public int hashCode()
hashCode
in class Object
public int hashCode(int historyHashCode)
history().hashCode()
, its behavior is
undefined.
historyHashCode
- the value of history().hashCode()
public boolean equals(Object obj)
true
if obj
is an instance of
Transition
and has future and history components that
are respectively equal to this object's future and history components.
equals
in class Object
public String toString()
toString
in class Object
public Transition copy()
Transition
object.
public Transition copyCanonical(Map canonicalFutures, Map canonicalHistories)
canonicalFutures
- a reflexive map by which to find a canonical
version of the future in this Transition
;
if one is not found, then this object's future
is added to the mapcanonicalHistories
- a reflexivve map by which to find a canonical
version of the history in this Transition
; if one is not found, then this
object's history
is added to the map
|
Parsing Engine | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |