public class InstructionGraph extends java.util.ArrayList<InstructionNode>
Constructor and Description |
---|
InstructionGraph() |
InstructionGraph(InstructionGraph toClone) |
Modifier and Type | Method and Description |
---|---|
InstructionNode |
addNode(java.lang.String name,
Instruction instruction) |
InstructionNode |
addNode(java.lang.String name,
Instruction instruction,
java.util.List<ai.libs.jaicore.basic.sets.Pair<java.lang.String,java.lang.Integer>> inputs) |
boolean |
equals(java.lang.Object obj) |
static InstructionGraph |
fromJson(java.lang.String jsonRepresentation) |
IDataset |
getDataForUnit(ai.libs.jaicore.basic.sets.Pair<java.lang.String,java.lang.Integer> unit)
Recursively computes the data for a node in the graph
|
InstructionNode |
getNodeByName(java.lang.String name) |
int |
hashCode() |
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, forEach, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSize
public InstructionGraph()
public InstructionGraph(InstructionGraph toClone)
public static InstructionGraph fromJson(java.lang.String jsonRepresentation) throws java.io.IOException
java.io.IOException
public InstructionNode addNode(java.lang.String name, Instruction instruction)
public InstructionNode addNode(java.lang.String name, Instruction instruction, java.util.List<ai.libs.jaicore.basic.sets.Pair<java.lang.String,java.lang.Integer>> inputs)
public InstructionNode getNodeByName(java.lang.String name)
public IDataset getDataForUnit(ai.libs.jaicore.basic.sets.Pair<java.lang.String,java.lang.Integer> unit) throws InstructionFailedException, java.lang.InterruptedException
unit
- InstructionFailedException
java.lang.InterruptedException
public int hashCode()
hashCode
in interface java.util.Collection<InstructionNode>
hashCode
in interface java.util.List<InstructionNode>
hashCode
in class java.util.AbstractList<InstructionNode>
public boolean equals(java.lang.Object obj)
equals
in interface java.util.Collection<InstructionNode>
equals
in interface java.util.List<InstructionNode>
equals
in class java.util.AbstractList<InstructionNode>