Class DefaultGraphElement

    • Field Summary

      Fields 
      Modifier and Type Field Description
      static int INVALID_POSITION  
      static int INVALID_SIZE  
      private java.lang.String name  
      private net.ssehub.easy.varModel.confModel.IDecisionVariable var  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected DefaultGraphElement​(net.ssehub.easy.varModel.confModel.IDecisionVariable var)
      Creates a graph element.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected int getIntValue​(java.lang.String name, int value, int invalid)
      Returns an int value from a nested value of var, giving rise to a local value if not considered invalid.
      java.lang.String getName()
      Returns the name of the element.
      protected java.lang.String getNameVarName()
      Returns the IVML variable name of the name of the element.
      protected java.lang.String getStringValue​(java.lang.String name, java.lang.String value)
      Returns a String value from a nested value of var, giving rise to a local value if not considered invalid (null or empty).
      net.ssehub.easy.varModel.confModel.IDecisionVariable getVariable()
      Returns the underlying IVML variable.
      void setName​(java.lang.String name)
      Changes the name of the element.
      • Methods inherited from class java.lang.Object

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

      • var

        private net.ssehub.easy.varModel.confModel.IDecisionVariable var
      • name

        private java.lang.String name
    • Constructor Detail

      • DefaultGraphElement

        protected DefaultGraphElement​(net.ssehub.easy.varModel.confModel.IDecisionVariable var)
        Creates a graph element.
        Parameters:
        var - the underlying decision variable
    • Method Detail

      • getNameVarName

        protected java.lang.String getNameVarName()
        Returns the IVML variable name of the name of the element.
        Returns:
        the variable name
      • getStringValue

        protected java.lang.String getStringValue​(java.lang.String name,
                                                  java.lang.String value)
        Returns a String value from a nested value of var, giving rise to a local value if not considered invalid (null or empty).
        Parameters:
        name - the name of the nested variable of var
        value - the local value
        Returns:
        the value
      • getIntValue

        protected int getIntValue​(java.lang.String name,
                                  int value,
                                  int invalid)
        Returns an int value from a nested value of var, giving rise to a local value if not considered invalid.
        Parameters:
        name - the name of the nested variable of var
        value - the local value
        invalid - when to consider value as invalid
        Returns:
        the value