public class AvatarStateStore extends Object implements NamedStateStore
Modifier and Type | Field and Description |
---|---|
List<RegulatoryNode> |
allnodes |
List<RegulatoryNode> |
inodes |
NamedStateList |
instates
list of named states associated with input components
|
List<RegulatoryNode> |
nodes |
NamedStateList |
nstates
list of named states associated with non-input components
|
NamedStateList |
oracles
list of named states associated with oracles
|
Constructor and Description |
---|
AvatarStateStore(List<byte[]> initialstates,
List<byte[]> initialIStates,
List<byte[]> _oracles,
RegulatoryGraph graph)
Creates a named state store given a set of states from common and input components and the current graph
|
AvatarStateStore(List<byte[]> initialstates,
RegulatoryGraph graph)
Creates a named state store given a set of states and the current graph
|
AvatarStateStore(List<byte[]> states,
String[] namestates,
List<byte[]> istates,
String[] inamestates,
List<byte[]> _oracles,
String[] onames,
RegulatoryGraph graph)
Creates a named state store given a set of states, their names and the current graph
|
AvatarStateStore(List<RegulatoryNode> _nodes,
List<RegulatoryNode> _inodes,
List<RegulatoryNode> _allnodes,
NamedStateList _states,
NamedStateList _istates,
NamedStateList _oracles)
Creates a named state store based on node info and the list of named states for common and input components
|
AvatarStateStore(RegulatoryGraph graph) |
Modifier and Type | Method and Description |
---|---|
void |
addOracle(Map<String,List<byte[]>> oracle)
Adds an oracle as a set of named state-patterns
|
void |
addOracle(NamedStateList _oracles) |
void |
addStateList(NamedStateList states,
NamedStateList istates,
NamedStateList _oracles)
Adds a list of named states of common and input components
|
AvatarStateStore |
clone() |
Map |
getInitialState() |
Map |
getInputState() |
List<String> |
getNames(boolean input)
Gathers all the names of the stored states
|
List<String> |
getOracleNames() |
Map |
getOracleState() |
public NamedStateList nstates
public NamedStateList instates
public NamedStateList oracles
public List<RegulatoryNode> nodes
public List<RegulatoryNode> inodes
public List<RegulatoryNode> allnodes
public AvatarStateStore(List<byte[]> initialstates, RegulatoryGraph graph)
initialstates
- the states to be stored (including input and non-input components)graph
- the regulatory graphpublic AvatarStateStore(RegulatoryGraph graph)
public AvatarStateStore(List<byte[]> initialstates, List<byte[]> initialIStates, List<byte[]> _oracles, RegulatoryGraph graph)
initialstates
- list with the states of non-input componentsinitialIStates
- list with the states of input componentsgraph
- the regulatory graphpublic AvatarStateStore(List<byte[]> states, String[] namestates, List<byte[]> istates, String[] inamestates, List<byte[]> _oracles, String[] onames, RegulatoryGraph graph)
states
- list with the states of non-input componentsnamestates
- list with the names of the previous statesistates
- list with the states of input componentsinamestates
- list with the names of the previous statesgraph
- the regulatory graphpublic AvatarStateStore(List<RegulatoryNode> _nodes, List<RegulatoryNode> _inodes, List<RegulatoryNode> _allnodes, NamedStateList _states, NamedStateList _istates, NamedStateList _oracles)
_nodes
- ordered set with non-input components_inodes
- ordered set with input components_allnodes
- ordered set with all components_states
- the list of named states of non-input components_istates
- the list of named states of input components_oracles
- public AvatarStateStore clone()
public void addOracle(Map<String,List<byte[]>> oracle)
oracle
- the list of named oracles as a map (name and the corresponding set of state-patterns)public void addStateList(NamedStateList states, NamedStateList istates, NamedStateList _oracles)
states
- the list of named states associated with non-input componentsistates
- the list of named states associated with input components_oracles
- public void addOracle(NamedStateList _oracles)
public Map getInitialState()
getInitialState
in interface NamedStateStore
public Map getInputState()
getInputState
in interface NamedStateStore
public Map getOracleState()
public List<String> getNames(boolean input)
input
- true if the names of states associated with input components is to return (false otherwise)Copyright © 2005–2020. All rights reserved.