Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## ve
Class FactorStoreSequential

    java.lang.Object
      |
      +--ve.FactorStore
            |
            +--ve.FactorStoreSequential

public class FactorStoreSequential
extends FactorStore

a place to store factors during computation using a given elimination ordering

Inner Class Summary
`private class` | `FactorStoreSequential.FacItr`

Field Summary
`private Factor[][]` | `buckets`
`private int[]` | `bucketSize`
`private int` | `factorMaxSize`
`private Factor[]` | `finalFactors`
`private Variable` | `last`
`private int` | `numFinalFactors`
`private Variable[]` | `theVariables`
`private int` | `varPos`
`private java.util.Hashtable` | `varToBucketIndex`

Constructor Summary
`FactorStoreSequential(Variable[] toSumOut, Factor[] initialFactors, int numInitFactors)` generate a factor store containing the given initial factors and initial variables.

Method Summary
`void` | `addFactor(Factor newFactor)`
`private void` | `addtoBuckets(Factor fac)` adds a factor to the appropriate bucket
`FactorIterator` | `emunFactorsRemaining()` Returns an iterator over the the remaining factors.
`FactorIterator` | `emunFactorsRemoved()` Returns an iterator over the factors that contain the variable var.
`boolean` | `hasNext()`
`Variable` | `next()`

Methods inherited from class java.lang.Object
`, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait`

Field Detail

### theVariables

    private Variable[] theVariables

### varPos

    private int varPos

### factorMaxSize

    private int factorMaxSize

### last

    private Variable last

### buckets

    private Factor[][] buckets

### bucketSize

    private int[] bucketSize

### varToBucketIndex

    private java.util.Hashtable varToBucketIndex

### finalFactors

    private Factor[] finalFactors

### numFinalFactors

    private int numFinalFactors

Constructor Detail

### FactorStoreSequential

    public FactorStoreSequential(Variable[] toSumOut,
                                 Factor[] initialFactors,
                                 int numInitFactors)

  generate a factor store containing the given initial factors and initial variables.

Method Detail

### hasNext

    public boolean hasNext()

  Overrides:
    `hasNext` in class `FactorStore`

### next

    public Variable next()

  Overrides:
    `next` in class `FactorStore`

### addFactor

    public void addFactor(Factor newFactor)

  Overrides:
    `addFactor` in class `FactorStore`

### addtoBuckets

    private void addtoBuckets(Factor fac)

  adds a factor to the appropriate bucket

### emunFactorsRemoved

    public FactorIterator emunFactorsRemoved()

  Returns an iterator over the factors that contain the variable var.
  Overrides:
    `emunFactorsRemoved` in class `FactorStore`

### emunFactorsRemaining

    public FactorIterator emunFactorsRemaining()

  Returns an iterator over the the remaining factors.
  Overrides:
    `emunFactorsRemaining` in class `FactorStore`

Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD