ve
Class FactorStoredPretend

java.lang.Object
  |
  +--ve.Factor
        |
        +--ve.FactorStoredPretend
Direct Known Subclasses:
FactorSumOutPretend

public class FactorStoredPretend
extends Factor

This the the class of stored factors, but we only pretend to store them. This is useful for, for example, finding the elimination oredering an algorithm would have used.


Inner Class Summary
private  class FactorStoredPretend.Itr
           
 
Field Summary
(package private)  int size
           
 
Fields inherited from class ve.Factor
BY_ASSIGN, BY_CPT, BY_DETERMINISTIC, BY_EXPANDING, BY_GENRULE, BY_MAXIMIZING, BY_MULTIPLYING, BY_NORMALIZING, BY_OBSERVED, BY_PLUS, BY_REORDERING, BY_SAVEIT, BY_SUM_OUT, BY_UNIFORM, BY_UPDATABLE, BY_V_ELIM, howCreatedVal, savingForTracing, thesize, variables
 
Constructor Summary
FactorStoredPretend(Variable[] vars, int how)
          constructs a factor with the given variables.
 
Method Summary
 EltsIterator iterator()
          Returns an iterator over the values of the factor.
 
Methods inherited from class ve.Factor
allOnes, contains, display, getName, getSavingForTracing, getVariables, howCreated, isRedundant, isRedundant, print, print, printVariables, setSavingForTracing, size, toString
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait
 

Field Detail

size

int size
Constructor Detail

FactorStoredPretend

public FactorStoredPretend(Variable[] vars,
                           int how)
constructs a factor with the given variables.
Parameters:
vars - the list of variables
how - an integer representing how the factor was created
Method Detail

iterator

public EltsIterator iterator()
Description copied from class: Factor
Returns an iterator over the values of the factor.
Overrides:
iterator in class Factor