|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectLBJ2.infer.FirstOrderVariable
public class FirstOrderVariable
Represents a classifier application. An inference algorithm may change the value returned by the classifier application when satisfying constraints.
| Field Summary | |
|---|---|
private Learner |
classifier
The classifier being applied. |
private java.lang.Object |
example
The classifier is applied to this example object. |
private ScoreSet |
scores
The scores of the possible values this variable might be set to. |
private java.lang.String |
value
The value imposed on the classifier when applied to the example. |
| Constructor Summary | |
|---|---|
FirstOrderVariable(Learner c,
java.lang.Object e)
Initializing constructor. |
|
| Method Summary | |
|---|---|
java.lang.Object |
clone()
This method returns a shallow clone. |
boolean |
equals(java.lang.Object o)
Two FirstOrderVariables are equivalent when their
classifiers are equivalent and they store the same example object. |
Learner |
getClassifier()
Retrieves the classifier. |
java.lang.Object |
getExample()
Retrieves the example object. |
double |
getScore()
Retrieves the score of the current value of this variable. |
ScoreSet |
getScores()
Retrieves all the scores for the values this variable may take. |
java.lang.String |
getValue()
Retrieves the value this variable currently takes. |
int |
hashCode()
The hash code of a FirstOrderVariable is the hash code of
the string representation of the classifier plus the system's hash code
for the example object. |
void |
setExample(java.lang.Object e)
Sets the example object. |
void |
setValue(java.lang.String v)
Sets the value of this variable. |
java.lang.String |
toString()
Returns a string representation of this variable. |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private Learner classifier
private java.lang.Object example
private ScoreSet scores
private java.lang.String value
| Constructor Detail |
|---|
public FirstOrderVariable(Learner c,
java.lang.Object e)
c - The classifier being applied.e - The classifier is applied to this example object.| Method Detail |
|---|
public Learner getClassifier()
public java.lang.Object getExample()
public java.lang.String getValue()
public void setValue(java.lang.String v)
v - The new value of this variable.public void setExample(java.lang.Object e)
e - The new example object.public double getScore()
public ScoreSet getScores()
public java.lang.String toString()
toString in class java.lang.Objectpublic int hashCode()
FirstOrderVariable is the hash code of
the string representation of the classifier plus the system's hash code
for the example object.
hashCode in class java.lang.ObjectFirstOrderVariable.public boolean equals(java.lang.Object o)
FirstOrderVariables are equivalent when their
classifiers are equivalent and they store the same example object.
equals in class java.lang.Objecto - The object to test equivalence with.
true iff this object is equivalent to the
argument object.public java.lang.Object clone()
clone in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||