org.sintef.mofscript.runtime
Class RuleExecutionStack

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

public class RuleExecutionStack
extends java.lang.Object


Constructor Summary
RuleExecutionStack()
           
 
Method Summary
 void addOutputMessageListener(ExecutionMessageListener listener)
          ProductionExecution methods
 void clearAll()
           
 void clearOutputMessageListeners()
           
 ExecutionEnvironment getCurrentEnvironment()
           
 java.util.Vector getProducedResources()
           
 boolean isRootEnvironment()
           
 void notifyOutputMessage(java.lang.String notification)
           
 ExecutionEnvironment peekParent()
           
 ExecutionEnvironment popEnvironment()
           
 void pushEnvironment(ExecutionEnvironment env)
           
 void removeOutputMessageListener(ExecutionMessageListener listener)
           
 void safeClear()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RuleExecutionStack

public RuleExecutionStack()
Method Detail

pushEnvironment

public void pushEnvironment(ExecutionEnvironment env)

popEnvironment

public ExecutionEnvironment popEnvironment()

getProducedResources

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

getCurrentEnvironment

public ExecutionEnvironment getCurrentEnvironment()

peekParent

public ExecutionEnvironment peekParent()
Returns:

isRootEnvironment

public boolean isRootEnvironment()
Returns:

clearAll

public void clearAll()

safeClear

public void safeClear()

addOutputMessageListener

public void addOutputMessageListener(ExecutionMessageListener listener)
ProductionExecution methods

Parameters:
listener -

removeOutputMessageListener

public void removeOutputMessageListener(ExecutionMessageListener listener)

clearOutputMessageListeners

public void clearOutputMessageListeners()

notifyOutputMessage

public void notifyOutputMessage(java.lang.String notification)