jigcell.compare.impl
Class EvaluationCallStack

java.lang.Object
  extended by jigcell.compare.impl.EvaluationCallStack
All Implemented Interfaces:
IEvaluationCallStack

public final class EvaluationCallStack
extends java.lang.Object
implements IEvaluationCallStack

The call stack for an IProgrammableDataGenerator evaluation.

This code is licensed under the DARPA BioCOMP Open Source License. See LICENSE for more details.

Author:
Nicholas Allen

Field Summary
private  java.util.List frameList
          Stack frames
private  IDataGenerator origin
          Generator that will hold the final result
 
Constructor Summary
EvaluationCallStack()
          Creates a new call stack.
EvaluationCallStack(IDataGenerator origin)
          Creates a new call stack.
 
Method Summary
 java.util.List getFrames()
          A list of the stack frames.
 IDataGenerator getOrigin()
          The generator that will hold the final result or null if this is not available.
 IProgrammableDataGenerator popFrame()
          Removes the top frame from the stack.
 void pushFrame(IProgrammableDataGenerator generator)
          Adds a new frame to the stack.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

origin

private IDataGenerator origin
Generator that will hold the final result


frameList

private java.util.List frameList
Stack frames

Constructor Detail

EvaluationCallStack

public EvaluationCallStack()
Creates a new call stack.


EvaluationCallStack

public EvaluationCallStack(IDataGenerator origin)
Creates a new call stack.

Parameters:
origin - Generator that will hold the final result
Method Detail

getFrames

public java.util.List getFrames()
A list of the stack frames. Each element of the list will be an IProgrammableDataGenerator.

Specified by:
getFrames in interface IEvaluationCallStack

getOrigin

public IDataGenerator getOrigin()
The generator that will hold the final result or null if this is not available.

Specified by:
getOrigin in interface IEvaluationCallStack

popFrame

public IProgrammableDataGenerator popFrame()
Removes the top frame from the stack.

Specified by:
popFrame in interface IEvaluationCallStack

pushFrame

public void pushFrame(IProgrammableDataGenerator generator)
Adds a new frame to the stack.

Specified by:
pushFrame in interface IEvaluationCallStack
Parameters:
generator - Stack frame

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object