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

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
              extended byedu.usc.alfa.xalfa.ast.primitive.ParticleNode

public class ParticleNode
extends ConstituentNode

A particle is the most flexible kind of constituent which allows its use in either connectors or components. Each particle has either a further decomposition or a concrete behavior or a behavioral constraint.


Constructor Summary
ParticleNode(java.lang.String ID, java.lang.String name)
          Creates a new instance of ParticleNode
ParticleNode(java.lang.String ID, java.lang.String name, ParticleNode inherits)
          Creates a new instance of CompositeParticleNode
 
Method Summary
 void accept(edu.usc.alfa.xalfa.visitor.NodeVisitor v)
          The visitor method to analyze xAlfa objects.
 ConcreteBehaviorNode getBehavior()
          Getter for property behavior.
 BehavioralConstraintNode[] getBehavioralConstraints()
          Getter for property behaviorConstraints.
 ConstituentNode[] getConstituents()
          Getter for property constituents.
 DuctNode[] getDucts()
          Getter for property ducts.
 ParticleNode getInherits()
          Getter for property inherits.
 LinkNode[] getLinks()
          Getter for property links.
 void setBehavior(ConcreteBehaviorNode behavior)
          Setter for property behavior.
 void setBehavioralConstraints(BehavioralConstraintNode[] behaviorConstraints)
          Setter for property behaviorConstraints.
 void setConstituents(ConstituentNode[] constituents)
          Setter for property constituents.
 void setDucts(DuctNode[] ducts)
          Setter for property ducts.
 void setLinks(LinkNode[] links)
          Setter for property links.
 java.lang.String toDebugString(int level)
          Generate debug information for this node.
 java.lang.String toString()
           
 
Methods inherited from class edu.usc.alfa.xalfa.ast.primitive.ConstituentNode
getPortalGroups, getStructuralConstraints, getTemplate, setPortalGroups, setStructuralConstraints, setTemplate
 
Methods inherited from class edu.usc.alfa.xalfa.ast.NamedNode
getName
 
Methods inherited from class edu.usc.alfa.xalfa.ast.Node
equals, getID, getTabs, hashCode, nodeSequenceString, nodeSequenceString, toDebugString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ParticleNode

public ParticleNode(java.lang.String ID,
                    java.lang.String name,
                    ParticleNode inherits)
Creates a new instance of CompositeParticleNode


ParticleNode

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

Method Detail

getInherits

public ParticleNode getInherits()
Getter for property inherits.

Returns:
Value of property inherits.

getConstituents

public ConstituentNode[] getConstituents()
Getter for property constituents.

Returns:
Value of property constituents.

setConstituents

public void setConstituents(ConstituentNode[] constituents)
Setter for property constituents.

Parameters:
constituents - New value of property constituents.

setDucts

public void setDucts(DuctNode[] ducts)
Setter for property ducts.

Parameters:
ducts - New value of property ducts.

getDucts

public DuctNode[] getDucts()
Getter for property ducts.

Returns:
Value of property ducts.

getBehavioralConstraints

public BehavioralConstraintNode[] getBehavioralConstraints()
Getter for property behaviorConstraints.

Returns:
Value of property behaviorConstraints.

setBehavioralConstraints

public void setBehavioralConstraints(BehavioralConstraintNode[] behaviorConstraints)
Setter for property behaviorConstraints.

Parameters:
behaviorConstraints - New value of property behaviorConstraints.

accept

public void accept(edu.usc.alfa.xalfa.visitor.NodeVisitor v)
Description copied from class: Node
The visitor method to analyze xAlfa objects. This method is part of the Visitor pattern from GOF.

Specified by:
accept in class Node
Parameters:
v - Node Visitor that wants to visit this node.

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

Overrides:
toDebugString in class ConstituentNode

getBehavior

public ConcreteBehaviorNode getBehavior()
Getter for property behavior.

Returns:
Value of property behavior.

setBehavior

public void setBehavior(ConcreteBehaviorNode behavior)
Setter for property behavior.

Parameters:
behavior - New value of property behavior.

getLinks

public LinkNode[] getLinks()
Getter for property links.

Returns:
Value of property links.

setLinks

public void setLinks(LinkNode[] links)
Setter for property links.

Parameters:
links - New value of property links.

toString

public java.lang.String toString()