randoop
Class Execution

Object
  extended by Execution

public final class Execution
extends Object

Represents the unfolding execution of a sequence. This is essentially a wrapper around List<ExecutionOutcome>. Stores information in a list of ExecutionOutcome objects, one for each statement in the sequence.


Field Summary
Modifier and Type Field and Description
protected  Sequence owner
           
protected  List<ExecutionOutcome> theList
           
 
Constructor Summary
Constructor and Description
Execution(Sequence owner)
          Create an Execution to store the execution results of the given sequence.
Execution(Sequence owner, List<ExecutionOutcome> theList)
          Construct an Execution directly from the given arguments.
 
Method Summary
Modifier and Type Method and Description
 ExecutionOutcome get(int i)
          Get the outcome in the i-th slot.
 void set(int i, ExecutionOutcome outcome)
          Set the i-th slot to the given outcome.
 int size()
          The size of the list.
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

theList

protected final List<ExecutionOutcome> theList

owner

protected final Sequence owner
Constructor Detail

Execution

public Execution(Sequence owner)
Create an Execution to store the execution results of the given sequence. The list of outcomes is initialized to NotExecuted for every statement.


Execution

public Execution(Sequence owner,
                 List<ExecutionOutcome> theList)
Construct an Execution directly from the given arguments. Do not use this constructor! (Unless you know what you're doing.)

Method Detail

size

public int size()
The size of the list.


set

public void set(int i,
                ExecutionOutcome outcome)
Set the i-th slot to the given outcome.


get

public ExecutionOutcome get(int i)
Get the outcome in the i-th slot.