blog
Class DefaultPartialWorld

java.lang.Object
  extended by blog.AbstractPartialWorld
      extended by blog.DefaultPartialWorld
All Implemented Interfaces:
PartialWorld, java.lang.Cloneable
Direct Known Subclasses:
WorldInProgress

public class DefaultPartialWorld
extends AbstractPartialWorld
implements java.lang.Cloneable

Straightforward implementation of AbstractPartialWorld.


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
DefaultPartialWorld()
          Creates a new DefaultPartialWorld with no instantiated variables.
DefaultPartialWorld(java.util.Set idTypes)
          Creates a new DefaultPartialWorld with no instantiated variables and no identifiers.
 
Method Summary
 java.lang.Object clone()
           
 
Methods inherited from class blog.AbstractPartialWorld
addDerivedVar, addIdentifierForPOPApp, addListener, assertedIdToPOPAppMap, assertIdentifier, assertIdentifier, basicVarToValueMap, cloneFields, derivedVarToValueMap, getAssertedIdentifiers, getAssertedIdsForPOPApp, getBayesNet, getDerivedVars, getIdTypes, getInstantiatedVars, getInverseTuples, getLogProbOfValue, getPOPAppSatisfied, getProbOfValue, getSatisfiers, getValue, getVarsWithArg, getVarsWithValue, isOverloaded, objToUsesAsArgMap, objToUsesAsValueMap, popAppToAssertedIdsMap, print, removeDerivedVar, removeIdentifier, removeListener, setValue, toString, truncateList, truncateNumberList, updateBayesNet, updateParentsAndProbs, varToLogProbMap, varToUninstParentMap
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DefaultPartialWorld

public DefaultPartialWorld()
Creates a new DefaultPartialWorld with no instantiated variables. This world will not use object identifiers for any types.


DefaultPartialWorld

public DefaultPartialWorld(java.util.Set idTypes)
Creates a new DefaultPartialWorld with no instantiated variables and no identifiers.

Parameters:
idTypes - Set of Type objects for types that will be represented with object identifiers
Method Detail

clone

public java.lang.Object clone()
Overrides:
clone in class java.lang.Object