|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object blog.OriginVar
public class OriginVar
A variable whose value is the POP application satisfied by a given object identifier. The POP application is represented as a NumberVar.
Constructor Summary | |
---|---|
OriginVar(ObjectIdentifier id)
Creates a new variable representing the origin of the given object identifier. |
Method Summary | |
---|---|
void |
ensureDetAndSupported(InstantiatingEvalContext instantiator)
Ensures that the partial world underlying the given InstantiatingEvalContext is complete enough to determine the value of this variable and to determine its probability distribution conditional on its parents. |
boolean |
equals(java.lang.Object o)
Two OriginVars are equal if they are for the same object identifier. |
BasicVar |
getFirstUninstParent(PartialWorld w)
Returns the first parent of this variable that is uninstantiated in the given partial world. |
ObjectIdentifier |
getIdentifier()
Returns the identifier that this OriginVar applies to. |
java.util.Set |
getParents(PartialWorld w)
Returns the set of parents of this variable in the given partial world. |
java.lang.Object |
getValue(PartialWorld w)
Returns the value of this random variable in the given world. |
int |
hashCode()
|
boolean |
isDetermined(PartialWorld w)
Returns true if the given world is complete enough to determine the value of this random variable. |
Timestep |
timestep()
Returns the timestep that this variable is associated with, or null if it is atemporal. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public OriginVar(ObjectIdentifier id)
Method Detail |
---|
public ObjectIdentifier getIdentifier()
public boolean isDetermined(PartialWorld w)
isDetermined
in interface BayesNetVar
public java.lang.Object getValue(PartialWorld w)
getValue
in interface BayesNetVar
java.lang.IllegalArgumentException
- if the given partial world is not
complete enough to determine the
value of this variablepublic java.util.Set getParents(PartialWorld w)
getParents
in interface BayesNetVar
public BasicVar getFirstUninstParent(PartialWorld w)
BayesNetVar
getFirstUninstParent
in interface BayesNetVar
public void ensureDetAndSupported(InstantiatingEvalContext instantiator)
ensureDetAndSupported
in interface BayesNetVar
public Timestep timestep()
BayesNetVar
timestep
in interface BayesNetVar
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |