Class ConfigurationAas.GraphWalker

  • Enclosing class:
    ConfigurationAas

    private static class ConfigurationAas.GraphWalker
    extends java.lang.Object
    Traverses a graph.
    Author:
    Holger Eichelberger, SSE
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private GraphWalker​(net.ssehub.easy.varModel.confModel.IDecisionVariable var)
      Creates a new instance.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      private ConfigurationAas.IipNode createNode​(net.ssehub.easy.varModel.confModel.IDecisionVariable elt)
      Creates a node and registers it in the resulting graph.
      private ConfigurationAas.IipGraph getResult()
      Returns the created graph.
      private void traverseConnectors​(net.ssehub.easy.varModel.confModel.IDecisionVariable var, ConfigurationAas.IipNode from)
      Traverses the connectors stored as nested elements in var.
      private void traverseNodes​(net.ssehub.easy.varModel.confModel.IDecisionVariable var)
      Traverses the nodes stored as nested elements in var.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • GraphWalker

        private GraphWalker​(net.ssehub.easy.varModel.confModel.IDecisionVariable var)
        Creates a new instance.
        Parameters:
        var - the variable to start the traversal
    • Method Detail

      • traverseNodes

        private void traverseNodes​(net.ssehub.easy.varModel.confModel.IDecisionVariable var)
        Traverses the nodes stored as nested elements in var.
        Parameters:
        var - the variable representing the nodes
      • traverseConnectors

        private void traverseConnectors​(net.ssehub.easy.varModel.confModel.IDecisionVariable var,
                                        ConfigurationAas.IipNode from)
        Traverses the connectors stored as nested elements in var.
        Parameters:
        var - the variable representing the nodes
        from - the node where this call originates, the start node of edges to be created
      • createNode

        private ConfigurationAas.IipNode createNode​(net.ssehub.easy.varModel.confModel.IDecisionVariable elt)
        Creates a node and registers it in the resulting graph.
        Parameters:
        elt - the variable representing the node
        Returns:
        the created node