public class CompactStateSet extends AbstractStateSet
Constructor and Description |
---|
CompactStateSet(List<org.colomoto.biolqm.NodeInfo> vars)
Creates an empty state-set
|
CompactStateSet(String hashkey,
List<org.colomoto.biolqm.NodeInfo> vars,
AbstractStateSet stateset)
Creates a state-set with the given list of states and their probability of occurrence
|
CompactStateSet(String hashkey,
List<org.colomoto.biolqm.NodeInfo> vars,
List<byte[]> noncompactstates)
Creates a state-set with the given list of states and their probability of occurrence
|
Modifier and Type | Method and Description |
---|---|
boolean |
contains(State state)
Checks whether a given state is contained in the state-set
|
Collection<String> |
getKeys() |
List<byte[]> |
getStates()
Accesses the states in the state-set
|
boolean |
isEmpty()
Checks whether there are states in the state-set
|
int |
size() |
String |
toString() |
getKey, setKey
public CompactStateSet(List<org.colomoto.biolqm.NodeInfo> vars)
public CompactStateSet(String hashkey, List<org.colomoto.biolqm.NodeInfo> vars, AbstractStateSet stateset)
hashkey
- key identifying the state-set (state-sets with the same states share the same key)vars
- lists the componentsthe
- set of states to be compactedpublic CompactStateSet(String hashkey, List<org.colomoto.biolqm.NodeInfo> vars, List<byte[]> noncompactstates)
hashkey
- key identifying the state-set (state-sets with the same states share the same key)vars
- lists the componentsstatepatterns
- a list of patterns representing the states of a given state setpublic List<byte[]> getStates()
public boolean isEmpty()
public boolean contains(State state)
AbstractStateSet
contains
in class AbstractStateSet
state
- state to be checkedpublic int size()
size
in class AbstractStateSet
public Collection<String> getKeys()
getKeys
in class AbstractStateSet
Copyright © 2005–2020. All rights reserved.