Class LinkConfig


  • public class LinkConfig
    extends Object
    • Constructor Detail

      • LinkConfig

        public LinkConfig()
        Default constructor
      • LinkConfig

        public LinkConfig​(SingleDciConfig[] dciList,
                          List<Long> objectStatusList,
                          int colorSource,
                          int color,
                          int routing,
                          long[] bendPoints,
                          boolean useActiveThresholds,
                          boolean isLocked)
        Constructor for creating XML
        Parameters:
        dciList -
        objectStatusList -
        colorSource -
        color -
        routing -
        bendPoints -
        useActiveThresholds -
        isLocked -
    • Method Detail

      • createFromXml

        public static LinkConfig createFromXml​(String xml)
                                        throws Exception
        Create DCI list object from XML document
        Parameters:
        xml - XML document
        Returns:
        deserialized object
        Throws:
        Exception - if the object cannot be fully deserialized
      • createXml

        public String createXml()
                         throws Exception
        Create XML from configuration.
        Returns:
        XML document
        Throws:
        Exception - if the schema for the object is not valid
      • getObjectStatusList

        public List<Long> getObjectStatusList()
        Returns:
        the objectStatusList
      • setObjectStatusList

        public void setObjectStatusList​(List<Long> objectStatusList)
        Parameters:
        objectStatusList - the objectStatusList to set
      • setDciList

        public void setDciList​(SingleDciConfig[] dciList)
        Parameters:
        dciList - the dciList to set
      • getColor

        public int getColor()
        Returns:
        the color
      • setColor

        public void setColor​(int color)
        Parameters:
        color - the color to set
      • getRouting

        public int getRouting()
        Returns:
        the routing
      • setRouting

        public void setRouting​(int routing)
        Parameters:
        routing - the routing to set
      • getBendPoints

        public long[] getBendPoints()
        Returns:
        the bendPoints
      • setBendPoints

        public void setBendPoints​(long[] bendPoints)
        Parameters:
        bendPoints - the bendPoints to set
      • setUseActiveThresholds

        public void setUseActiveThresholds​(boolean useActiveThresholds)
        Parameters:
        useActiveThresholds - set use active thresholds
      • isUseActiveThresholds

        public boolean isUseActiveThresholds()
        Returns:
        are active thresholds used
      • isLocked

        public boolean isLocked()
      • setLocked

        public void setLocked​(boolean isLocked)
        Parameters:
        isLocked - set link locked or unlocked
      • getColorSource

        public int getColorSource()
        Returns:
        the colorSource
      • setColorSource

        public void setColorSource​(int colorSource)
        Parameters:
        colorSource - the colorSource to set