org.ourgrid.common.spec.semantic
Class GDFSemanticActions

java.lang.Object
  extended by org.ourgrid.common.spec.semantic.GDFSemanticActions
All Implemented Interfaces:
SemanticActions

public class GDFSemanticActions
extends java.lang.Object
implements SemanticActions

This entity is the set of actions that the GRID grammar uses to build a answer to the compilation of sources wrote in this language. Created on Jul 8, 2004


Constructor Summary
GDFSemanticActions()
          The Constructor
 
Method Summary
 void action1()
          This action: Sets the read line mode
 void action12()
          This action: Sets the final result LIST object.
 void action13()
          This action: Mount the actualPeer and inserts it at the list of peers.
 void action14()
          This action: Sets the mode to NORMAL
 void action2()
          This action: Puts the value string for a attribute at the top of the stack.
 void action3()
          This action: Puts the name string for a attribute at the top of the stack.
 void action5()
          This action: Inserts the actual remote GUMP specification at the list of peers.
 void action7()
          This action: Insert the actualPeer attributes at the map.
 int getOperationalMode()
           
 java.util.List<PeerSpec> getResult()
          Used to return the result of the compilation process, after execute all the semantic actions necessary and defined by a grammar definition.
 void performAction(java.lang.String action, Token token)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GDFSemanticActions

public GDFSemanticActions()
The Constructor

Method Detail

performAction

public void performAction(java.lang.String action,
                          Token token)
                   throws SemanticException
Specified by:
performAction in interface SemanticActions
Throws:
SemanticException
See Also:
SemanticActions.performAction(java.lang.String, org.ourgrid.common.spec.token.Token)

getOperationalMode

public int getOperationalMode()
Specified by:
getOperationalMode in interface SemanticActions
See Also:
SemanticActions.getOperationalMode()

getResult

public java.util.List<PeerSpec> getResult()
Description copied from interface: SemanticActions
Used to return the result of the compilation process, after execute all the semantic actions necessary and defined by a grammar definition.

Specified by:
getResult in interface SemanticActions
Returns:
A list with all the objects constructed as answer of the compilation This is a generic way of giving a answer because each language needs a different answer structure.
See Also:
SemanticActions.getResult()

action1

public void action1()
This action: Sets the read line mode


action2

public void action2()
             throws SemanticException
This action: Puts the value string for a attribute at the top of the stack.

Throws:
SemanticException

action3

public void action3()
This action: Puts the name string for a attribute at the top of the stack.


action5

public void action5()
This action: Inserts the actual remote GUMP specification at the list of peers.


action7

public void action7()
This action: Insert the actualPeer attributes at the map.


action12

public void action12()
This action: Sets the final result LIST object.


action13

public void action13()
              throws SemanticException
This action: Mount the actualPeer and inserts it at the list of peers.

Throws:
SemanticException

action14

public void action14()
This action: Sets the mode to NORMAL