|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object blog.AbstractPartialWorld blog.PartialWorldDiff
public class PartialWorldDiff
Represents a PartialWorld as a set of differences relative to an
underlying "saved" PartialWorld. Note that the a PartialWorldDiff uses
separate common ground identifiers than its underlying world,
although the asserted identifiers in the underlying world are still
asserted in the PartialWorldDiff unless they are removed with
removeIdentifier
.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface blog.PartialWorld |
---|
PartialWorld.EmptyPartialWorld |
Field Summary |
---|
Fields inherited from class blog.AbstractPartialWorld |
---|
assertedIdToPOPApp, basicVarToValue, bayesNet, commIdToPOPApp, derivedVarToValue, dirtyVars, idTypes, listeners, objToUsesAsArg, objToUsesAsValue, popAppToAssertedIds, popAppToCommIds, varToLogProb, varToUninstParent |
Fields inherited from interface blog.PartialWorld |
---|
EMPTY_INST, UNDET |
Constructor Summary | |
---|---|
PartialWorldDiff(PartialWorld underlying)
Creates a new PartialWorldDiff with the given underlying world. |
|
PartialWorldDiff(PartialWorld underlying,
PartialWorld toCopy)
Creates a new PartialWorldDiff whose underlying world is underlying , and whose current version is set equal
to toCopy . |
Method Summary | |
---|---|
void |
addDiffListener(WorldDiffListener listener)
Adds the given object to the list of listeners that will be notified when this PartialWorldDiff is saved or reverted. |
java.util.Set |
getChangedVars()
Returns the set of variables that have different values in the current world than they do in the saved world. |
java.util.Set |
getIdsWithChangedPOPApps()
Returns the set of object identifiers that are asserted in either this world or the saved world, and that satisfy a different POP application in this world than in the saved world. |
java.util.Set |
getNewlyBarrenVars()
Returns the set of variables that are barren in this world but either are not in the graph or are not barren in the saved world. |
java.util.Set |
getNewlyFloatingIds()
Returns the set of identifiers that are floating in this world and not the saved world. |
java.util.Set |
getNewlyOverloadedNumberVars()
Returns the set of number variables that are overloaded in this world but not the saved world. |
java.util.Set |
getObjsWithChangedUsesAsValue()
Returns the set of objects that serve as values for a different set of basic RVs in this world than they do in the saved world. |
java.util.Set |
getPOPAppsWithChangedIds()
Returns the set of POP applications whose set of asserted identifiers is different in this world from in the saved world. |
PartialWorld |
getSaved()
Returns the saved version of this world. |
java.util.Set |
getVarsWithChangedMultipliers()
Returns the set of number variables that yield different probability multipliers in this world than they do in the saved world. |
java.util.Set |
getVarsWithChangedProbs()
Returns the Set of BayesNetVar objects V such that the probability P(V | parents(V)) is not the same in this world as in the saved world. |
void |
removeDiffListener(WorldDiffListener listener)
Removes the given object from the list of listeners that will be notified when this PartialWorldDiff is saved or reverted. |
void |
revert()
Changes this world to equal the saved version. |
void |
save()
Changes the saved version of this world to equal the current version. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public PartialWorldDiff(PartialWorld underlying)
public PartialWorldDiff(PartialWorld underlying, PartialWorld toCopy)
underlying
, and whose current version is set equal
to toCopy
.
Method Detail |
---|
public PartialWorld getSaved()
public void save()
public void revert()
public java.util.Set getChangedVars()
public java.util.Set getObjsWithChangedUsesAsValue()
public java.util.Set getIdsWithChangedPOPApps()
public java.util.Set getPOPAppsWithChangedIds()
public java.util.Set getVarsWithChangedProbs()
public java.util.Set getNewlyBarrenVars()
public java.util.Set getNewlyFloatingIds()
public java.util.Set getNewlyOverloadedNumberVars()
public java.util.Set getVarsWithChangedMultipliers()
public void addDiffListener(WorldDiffListener listener)
public void removeDiffListener(WorldDiffListener listener)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |