Class InstructionGraph

    • Field Summary

      • Fields inherited from class java.util.AbstractList

        modCount
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method 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()  
      • Methods inherited from class java.util.ArrayList

        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
      • Methods inherited from class java.util.AbstractCollection

        containsAll, toString
      • Methods inherited from class java.lang.Object

        finalize, getClass, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface java.util.Collection

        parallelStream, stream, toArray
      • Methods inherited from interface java.util.List

        containsAll
    • Constructor Detail

      • InstructionGraph

        public InstructionGraph()
    • Method Detail

      • fromJson

        public static InstructionGraph fromJson​(java.lang.String jsonRepresentation)
                                         throws java.io.IOException
        Throws:
        java.io.IOException
      • addNode

        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)
      • getNodeByName

        public InstructionNode getNodeByName​(java.lang.String name)
      • getDataForUnit

        public IDataset getDataForUnit​(ai.libs.jaicore.basic.sets.Pair<java.lang.String,​java.lang.Integer> unit)
                                throws InstructionFailedException,
                                       java.lang.InterruptedException
        Recursively computes the data for a node in the graph
        Parameters:
        unit -
        Returns:
        Throws:
        InstructionFailedException
        java.lang.InterruptedException
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface java.util.Collection<InstructionNode>
        Specified by:
        hashCode in interface java.util.List<InstructionNode>
        Overrides:
        hashCode in class java.util.ArrayList<InstructionNode>
      • equals

        public boolean equals​(java.lang.Object obj)
        Specified by:
        equals in interface java.util.Collection<InstructionNode>
        Specified by:
        equals in interface java.util.List<InstructionNode>
        Overrides:
        equals in class java.util.ArrayList<InstructionNode>