org.sintef.mofscript.runtime
Class RuleExecutionStack

java.lang.Object
  extended by org.sintef.mofscript.runtime.RuleExecutionStack

public class RuleExecutionStack
extends java.lang.Object

The rule execution stack

Author:
jol

Constructor Summary
RuleExecutionStack()
          Default constructor
 
Method Summary
 void addOutputMessageListener(ExecutionMessageListener listener)
          ProductionExecution method
 void clearAll()
          Clears the env stack and the resources
 void clearOutputMessageListeners()
          ProductionExecution method
 ExecutionEnvironment getCurrentEnvironment()
          Looks at the object at the top of the env stack without removing it from the stack.
 java.util.Vector getProducedResources()
           
 boolean isRootEnvironment()
          Checs if the environment is the root
 void notifyOutputMessage(java.lang.String notification)
          ProductionExecution method
 ExecutionEnvironment peekParent()
           
 ExecutionEnvironment popEnvironment()
          Gets the environment on top of the stack, returns it and removes it from the env stack
 void pushEnvironment(ExecutionEnvironment env)
           
 void removeOutputMessageListener(ExecutionMessageListener listener)
          ProductionExecution method
 void safeClear()
          Safe clearance
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RuleExecutionStack

public RuleExecutionStack()
Default constructor

Method Detail

pushEnvironment

public void pushEnvironment(ExecutionEnvironment env)
Parameters:
env -

popEnvironment

public ExecutionEnvironment popEnvironment()
Gets the environment on top of the stack, returns it and removes it from the env stack

Returns:

getProducedResources

public java.util.Vector getProducedResources()
Returns:
A (String) list of produced resources (files) (their names)

getCurrentEnvironment

public ExecutionEnvironment getCurrentEnvironment()
Looks at the object at the top of the env stack without removing it from the stack.

Returns:

peekParent

public ExecutionEnvironment peekParent()
Returns:

isRootEnvironment

public boolean isRootEnvironment()
Checs if the environment is the root

Returns:

clearAll

public void clearAll()
Clears the env stack and the resources


safeClear

public void safeClear()
Safe clearance


addOutputMessageListener

public void addOutputMessageListener(ExecutionMessageListener listener)
ProductionExecution method

Parameters:
listener -

removeOutputMessageListener

public void removeOutputMessageListener(ExecutionMessageListener listener)
ProductionExecution method

Parameters:
listener -

clearOutputMessageListeners

public void clearOutputMessageListeners()
ProductionExecution method

Parameters:
listener -

notifyOutputMessage

public void notifyOutputMessage(java.lang.String notification)
ProductionExecution method

Parameters:
listener -