Class Condition

    • Constructor Detail

      • Condition

        public Condition​(Element prototype)
        Parameters:
        prototype -
    • Method Detail

      • accept

        public void accept​(Visitor visitor)
                    throws Exception
        Description copied from class: Element
        Accept a visitor. This method is specialized in every subclass. Part of the visitor pattern.
        Overrides:
        accept in class Node
        Parameters:
        visitor - - The visitor
        Throws:
        Exception - the visitor threw an exception.
      • getPrototypeFromParent

        public Element getPrototypeFromParent​(Element parent)
        Description copied from class: Element
        Return the proper prototype for this element stored in the parent. This is used by importInto().
        Overrides:
        getPrototypeFromParent in class Element
        Parameters:
        parent - - The parent element
        Returns:
        - The property
      • getWidth

        public int getWidth()
      • addAnchor

        public void addAnchor​(InstanceLine anchor)
        Parameters:
        anchor - an anchoring instance line to be added.
      • removeAnchor

        public void removeAnchor​(InstanceLine anchor)
      • isHot

        public boolean isHot()
        Overrides:
        isHot in class LscElement
        Returns:
        if this condition is "hot".
      • setAnchors

        public void setAnchors​(ArrayList<InstanceLine> anchors)
        Parameters:
        anchors - the anchors to set
      • getXMLLabelKinds

        public String[] getXMLLabelKinds()
        Description copied from class: Element
        Returns possible XML label kinds this element supports.
        Overrides:
        getXMLLabelKinds in class Element
        Returns: