edu.isi.pegasus.planner.transfer.refiner
Class Chain.TransferChain

java.lang.Object
  extended by edu.isi.pegasus.planner.transfer.refiner.Chain.TransferChain
Enclosing class:
Chain

private class Chain.TransferChain
extends Object

A shallow container class, that contains the list of the names of the transfer jobs and can return the last job in the list.


Field Summary
private  LinkedList mChain
          The linked list that maintians the chain of names of the transfer jobs.
 
Constructor Summary
Chain.TransferChain()
          The default constructor.
 
Method Summary
 void add(String name)
          Adds to the end of the chain.
 String getLast()
          Returns the last element in the chain.
 String toString()
          Returns the textual description of the object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

mChain

private LinkedList mChain
The linked list that maintians the chain of names of the transfer jobs.

Constructor Detail

Chain.TransferChain

public Chain.TransferChain()
The default constructor.

Method Detail

add

public void add(String name)
Adds to the end of the chain. Allows null to be added.

Parameters:
name - the name of the transfer job.

getLast

public String getLast()
Returns the last element in the chain.

Returns:
the last element in the chain, null if the chain is empty

toString

public String toString()
Returns the textual description of the object.

Overrides:
toString in class Object
Returns:
the textual description.


Copyright © 2011 The University of Southern California. All Rights Reserved.