edu.toronto.cs.mvset
Class JADDMvSetFactory.JADDMvSet

java.lang.Object
  extended by edu.toronto.cs.mvset.AbstractMvSet
      extended by edu.toronto.cs.mvset.JADDMvSetFactory.JADDMvSet
All Implemented Interfaces:
MvSet
Enclosing class:
JADDMvSetFactory

public class JADDMvSetFactory.JADDMvSet
extends AbstractMvSet


Field Summary
 
Fields inherited from interface edu.toronto.cs.mvset.MvSet
EQ, EXISTS, FORALL, GEQ, IMPL, INFO_AND, INFO_OR, JOIN, LEQ, MEET, NEG
 
Constructor Summary
JADDMvSetFactory.JADDMvSet(MDDNode _mdd)
           
 
Method Summary
 MvSet cofactor(AlgebraValue[] r)
          Restricts the MvSet to a particular L^n (or set of permutations on L^n if r is not total)
 MvSet cofactor(int argIdx, AlgebraValue value)
          Restricts an argument h (x_0, x_1, x_2, ...) = f (x_0, ..., value, ...) where value is substituted at argIdx
 boolean equals(JADDMvSetFactory.JADDMvSet v)
           
 boolean equals(java.lang.Object o)
           
 AlgebraValue evaluate(AlgebraValue[] values)
          Evaluates this function on an input result = f (values [0], values [1], ...)
 MvSet existAbstract(MvSet _cube)
           
 AlgebraValue[][] expandToArray()
           
 MvSet forallAbstract(MvSet _cube)
           
 IAlgebra getAlgebra()
          get the lattice for the MvSet
 MvSetFactory getFactory()
          gets the factory
 java.util.BitSet getImage()
           
 MDDNode getMddNode()
           
 java.util.Set getPreImageArray(AlgebraValue v)
          Evaluates this function with respect to a state Note that we have a small discreptancy between what we mean by states since here a state may contain primed and unprimed variables and thus represent a transition rather than a state
 AlgebraValue getValue()
           
 int hashCode()
           
 boolean isConstant()
           
 MvSet ptwiseCompare(int op, MvSet g)
          Ptwise compare: <=, >=, =.
 MvSet ptwiseCompose(int op, MvSet g)
          Creates a pointwise composition op is an operator: L x L -> L f is the current mv-set result h (x) = f (x) op g (x)
 MvSet ptwiseNeg()
          Creates a ptwise negation h (x) = \neg f (x)
 MvSet renameArgs(int[] newArgs)
          Renames the arguments.
 int size()
          Returns number of nodes
 DaVinciGraph toDaVinci()
           
 
Methods inherited from class edu.toronto.cs.mvset.AbstractMvSet
and, cofactor, cubeIterator, eq, geq, impl, infoAnd, infoNot, infoOr, leq, mintermIterator, not, or, reorder, toMvRelation
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JADDMvSetFactory.JADDMvSet

public JADDMvSetFactory.JADDMvSet(MDDNode _mdd)
Method Detail

isConstant

public boolean isConstant()

getValue

public AlgebraValue getValue()

ptwiseCompose

public MvSet ptwiseCompose(int op,
                           MvSet g)
Creates a pointwise composition op is an operator: L x L -> L f is the current mv-set result h (x) = f (x) op g (x)


ptwiseCompare

public MvSet ptwiseCompare(int op,
                           MvSet g)
Description copied from interface: MvSet
Ptwise compare: <=, >=, =.


ptwiseNeg

public MvSet ptwiseNeg()
Creates a ptwise negation h (x) = \neg f (x)


size

public int size()
Description copied from interface: MvSet
Returns number of nodes

Specified by:
size in interface MvSet
Overrides:
size in class AbstractMvSet

cofactor

public MvSet cofactor(int argIdx,
                      AlgebraValue value)
Restricts an argument h (x_0, x_1, x_2, ...) = f (x_0, ..., value, ...) where value is substituted at argIdx


cofactor

public MvSet cofactor(AlgebraValue[] r)
Description copied from interface: MvSet
Restricts the MvSet to a particular L^n (or set of permutations on L^n if r is not total)


getPreImageArray

public java.util.Set getPreImageArray(AlgebraValue v)
Description copied from interface: MvSet
Evaluates this function with respect to a state Note that we have a small discreptancy between what we mean by states since here a state may contain primed and unprimed variables and thus represent a transition rather than a state

Specified by:
getPreImageArray in interface MvSet
Overrides:
getPreImageArray in class AbstractMvSet

existAbstract

public MvSet existAbstract(MvSet _cube)

forallAbstract

public MvSet forallAbstract(MvSet _cube)

renameArgs

public MvSet renameArgs(int[] newArgs)
Renames the arguments. newArgs is a map from old args to new so that h (x) = f (newArgs [0], newArgs [1], ...)


evaluate

public AlgebraValue evaluate(AlgebraValue[] values)
Evaluates this function on an input result = f (values [0], values [1], ...)


getAlgebra

public IAlgebra getAlgebra()
get the lattice for the MvSet


getImage

public java.util.BitSet getImage()
Specified by:
getImage in interface MvSet
Overrides:
getImage in class AbstractMvSet

getMddNode

public MDDNode getMddNode()

getFactory

public MvSetFactory getFactory()
Description copied from interface: MvSet
gets the factory


equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

equals

public boolean equals(JADDMvSetFactory.JADDMvSet v)

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

expandToArray

public AlgebraValue[][] expandToArray()
Overrides:
expandToArray in class AbstractMvSet

toDaVinci

public DaVinciGraph toDaVinci()
Specified by:
toDaVinci in interface MvSet
Overrides:
toDaVinci in class AbstractMvSet