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

java.lang.Object
  extended byedu.usc.alfa.xalfa.ast.Node
      extended byedu.usc.alfa.xalfa.ast.NamedNode
          extended byedu.usc.alfa.xalfa.ast.primitive.PortalGroupNode
Direct Known Subclasses:
InterfaceNode, TwoWayNode

public abstract class PortalGroupNode
extends NamedNode

A portal group is the abstract representation for partitions of portals, either interfaces or twoways. Every portal group contains one or more portals.


Constructor Summary
PortalGroupNode(java.lang.String ID, java.lang.String label)
          Creates a new instance of InterfaceNode
 
Method Summary
 void accept(edu.usc.alfa.xalfa.visitor.NodeVisitor v)
          The visitor method to analyze xAlfa objects.
 PortalNode[] getPortals()
           
 PortalGroupNode getTemplate()
          Getter for property template.
 void setPortals(PortalNode[] portals)
          Setter for property portals.
 void setTemplate(PortalGroupNode template)
          Setter for property template.
 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.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

PortalGroupNode

public PortalGroupNode(java.lang.String ID,
                       java.lang.String label)
Creates a new instance of InterfaceNode

Method Detail

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.

getPortals

public PortalNode[] getPortals()
Returns:
PortalNode[] an array containing the portals in this group

setPortals

public void setPortals(PortalNode[] portals)
Setter for property portals.

Parameters:
portals - New value of property portals.

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.

toString

public java.lang.String toString()

getTemplate

public PortalGroupNode getTemplate()
Getter for property template.

Returns:
Value of property template.

setTemplate

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

Parameters:
template - New value of property template.