ls
Class StateSet

java.lang.Object
  |
  +--ls.StateSet

public class StateSet
extends java.lang.Object

Title: StateSet.java Description: This class's primary purpose is for summing over a set of vertexes. Copyright: Copyright (c) 2000 Company: KSU / KDD


Constructor Summary
StateSet(Clique newClique)
          this constructor will create a new StateSet and set the number of sums to 1
 
Method Summary
 void add(Node chanceBlock)
          add will add a chanceblock to the stateset.
 void addToSum(int index, double value)
           
 Clique getClique()
          returns the clique.
 int getIndex(CliqueSet cliqueSet)
          getIndex will compute which summand is requested by matching up the configuration of the given cliqueSet to the set of chanceBlocks.
 int getNumberOfValues()
          getNumberOfValues returns the number of summands this StateSet contains
 java.lang.String getOutput(int index)
           
 java.util.Vector getSets()
          getSets returns the set of StateObjects.
 double getSum(int index)
          getSum returns the requested summand
 java.lang.String report()
           
 void setSum(int index, double value)
          setSum sets the requested summand to a new value
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StateSet

public StateSet(Clique newClique)
this constructor will create a new StateSet and set the number of sums to 1
Parameters:
newClique - the clique prime for return purposes.
Method Detail

getSets

public java.util.Vector getSets()
getSets returns the set of StateObjects.
Returns:
sets - the collection of StateObjects

getClique

public Clique getClique()
returns the clique.
Returns:
clique - the clique.

getNumberOfValues

public int getNumberOfValues()
getNumberOfValues returns the number of summands this StateSet contains
Returns:
numberOfValues - the number of summands in this StateSet

add

public void add(Node chanceBlock)
add will add a chanceblock to the stateset.
Parameters:
chanceBlock - the new chanceBlock

getIndex

public int getIndex(CliqueSet cliqueSet)
getIndex will compute which summand is requested by matching up the configuration of the given cliqueSet to the set of chanceBlocks.
Parameters:
cliqueSet - the cliqueSet to be matched up
Returns:
int - the index requested.

getSum

public double getSum(int index)
getSum returns the requested summand
Parameters:
index - the requested summand number

getOutput

public java.lang.String getOutput(int index)

setSum

public void setSum(int index,
                   double value)
setSum sets the requested summand to a new value
Parameters:
index - the requested summand
value - the new value

addToSum

public void addToSum(int index,
                     double value)

report

public java.lang.String report()