edu.usc.alfa.xalfa.ast.primitive
Class ConstituentNode

java.lang.Object
  extended byedu.usc.alfa.xalfa.ast.Node
      extended byedu.usc.alfa.xalfa.ast.NamedNode
          extended byedu.usc.alfa.xalfa.ast.primitive.ConstituentNode
Direct Known Subclasses:
BirelayNode, ParticleNode, RelayNode

public abstract class ConstituentNode
extends NamedNode

A constituent in Alfa is the abstract representation of a possibly hierarchical component or connector. Each constituent has interfaces, and some behavior/behavioral constraint. If a constituent is an instance, it has a backing template.


Constructor Summary
ConstituentNode(java.lang.String ID, java.lang.String name)
          Creates a new instance of ConstituentNode
 
Method Summary
 PortalGroupNode[] getPortalGroups()
          Getter for property portalGroups.
 StructuralConstraintNode[] getStructuralConstraints()
          Getter for property structureConstraints.
 ConstituentNode getTemplate()
          Getter for property template.
 void setPortalGroups(PortalGroupNode[] portalGroups)
          Setter for property portalGroups.
 void setStructuralConstraints(StructuralConstraintNode[] structureConstraints)
          Setter for property structureConstraints.
 void setTemplate(ConstituentNode template)
          Setter for property template.
 java.lang.String toDebugString(int level)
          Generate debug information for this node.
 
Methods inherited from class edu.usc.alfa.xalfa.ast.NamedNode
getName
 
Methods inherited from class edu.usc.alfa.xalfa.ast.Node
accept, equals, getID, getTabs, hashCode, nodeSequenceString, nodeSequenceString, toDebugString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConstituentNode

public ConstituentNode(java.lang.String ID,
                       java.lang.String name)
Creates a new instance of ConstituentNode

Method Detail

toDebugString

public java.lang.String toDebugString(int level)
Description copied from class: Node
Generate debug information for this node. Nesting levels are provided so that hierarchical information can be easily debugged. Typically, debugging information includes values of various parameters and the debugging information for internal objects

Specified by:
toDebugString in class Node
Parameters:
level - The level of visual nesting to produce in the output
Returns:
A String containing debugging information about the object.

getPortalGroups

public PortalGroupNode[] getPortalGroups()
Getter for property portalGroups.

Returns:
Value of property portalGroups.

setPortalGroups

public void setPortalGroups(PortalGroupNode[] portalGroups)
Setter for property portalGroups.

Parameters:
portalGroups - New value of property portalGroups.

getStructuralConstraints

public StructuralConstraintNode[] getStructuralConstraints()
Getter for property structureConstraints.

Returns:
Value of property structureConstraints.

setStructuralConstraints

public void setStructuralConstraints(StructuralConstraintNode[] structureConstraints)
Setter for property structureConstraints.

Parameters:
structureConstraints - New value of property structureConstraints.

getTemplate

public ConstituentNode getTemplate()
Getter for property template.

Returns:
Value of property template.

setTemplate

public void setTemplate(ConstituentNode template)
Setter for property template.

Parameters:
template - New value of property template.