|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectup.Rule
up.UnaryRule
public class UnaryRule
A unary rule of a PCFG. This is a rule of the form A → B.
Constructor Summary | |
---|---|
UnaryRule(int lhs,
int rhs)
Constructs a new unary rule. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
Tests whether this rule is equal to the specified object. |
int |
getLHS()
Returns the left-hand side of this rule. |
int |
getRHS()
Returns the right-hand side of this rule. |
int |
hashCode()
Returns the hash code of this rule. |
Methods inherited from class up.Rule |
---|
getScore, setScore |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public UnaryRule(int lhs, int rhs)
lhs
- the left-hand side of the new rulerhs
- the right-hand side of the new ruleMethod Detail |
---|
public int getLHS()
Rule
getLHS
in class Rule
public int getRHS()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- the object to compare with
true
iff this rule is equal to the specified objectpublic int hashCode()
hashCode
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |