com.uppaal.model.core2
Class AbstractTemplate

java.lang.Object
  extended by com.uppaal.model.core2.Element
      extended by com.uppaal.model.core2.Node
          extended by com.uppaal.model.core2.AbstractTemplate
All Implemented Interfaces:
Serializable, Cloneable
Direct Known Subclasses:
LscTemplate, Template

public abstract class AbstractTemplate
extends Node

AbstractTemplate has two subclasses: Template (for TA) and LscTemplate (for LSC)

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.uppaal.model.core2.Node
first, next, previous
 
Fields inherited from class com.uppaal.model.core2.Element
listeners, properties, prototype
 
Constructor Summary
AbstractTemplate(Element prototype)
           
 
Method Summary
 void accept(Visitor visitor)
          Accept a visitor.
 Object clone()
          Returns a deep clone of the node.
abstract  Element getPrototypeFromParent(Element parent)
          Return the proper prototype for this element stored in the parent.
 AbstractTemplate getTemplate()
          Returns the template of this element.
 
Methods inherited from class com.uppaal.model.core2.Node
getFirst, getLast, getNext, getPrevious, insert, move, remove, setPrototype
 
Methods inherited from class com.uppaal.model.core2.Element
acceptSafe, addListener, getColor, getDocument, getLocalProperty, getParent, getProperties, getProperty, getPropertyValue, getPrototype, getX, getY, hasFlag, importInto, isPropertyLocal, removeListener, setProperties, setProperty, setPropertyFromPath
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractTemplate

public AbstractTemplate(Element prototype)
Method Detail

clone

public Object clone()
             throws CloneNotSupportedException
Description copied from class: Node
Returns a deep clone of the node. The sibling references of the clone are set to null.

Overrides:
clone in class Node
Throws:
CloneNotSupportedException

getTemplate

public AbstractTemplate getTemplate()
Description copied from class: Element
Returns the template of this element.

Overrides:
getTemplate in class Element

accept

public void accept(Visitor visitor)
            throws Exception
Description copied from class: Element
Accept a visitor. This method is specialised in every subclass. Part of the visitor pattern.

Overrides:
accept in class Node
Throws:
Exception

getPrototypeFromParent

public abstract 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


Copyright © 2012 Uppsala University and Aalborg University. All Rights Reserved.