org.griphyn.cPlanner.classes
Class Data

java.lang.Object
  extended by org.griphyn.cPlanner.classes.Data
All Implemented Interfaces:
Cloneable
Direct Known Subclasses:
ADag, AuthenticateRequest, DagInfo, GraphNode, GraphNode, LRCResult, Namespace, NameValue, Partition, PCRelation, PegasusFile, PlannerMetrics, PlannerOptions, Profile, ReplicaLocation, ReplicaStore, SubInfo, WorkflowMetrics

public abstract class Data
extends Object
implements Cloneable

This is the container for all the Data classes.

Version:
$Revision: 50 $
Author:
Karan Vahi, Gaurang Mehta

Field Summary
 LogManager mLogger
          The LogManager object which is used to log all the messages.
 String mLogMsg
          The String which stores the message to be stored.
 
Constructor Summary
Data()
          The default constructor.
 
Method Summary
 String setToString(Set s, String delim)
          A small helper method that displays the contents of a Set in a String.
abstract  String toString()
          Returns the String version of the data object, which is in human readable form.
 String vectorToString(String heading, Vector vector)
          It converts the contents of the Vector to a String and returns it.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

mLogger

public LogManager mLogger
The LogManager object which is used to log all the messages.

See Also:
LogManager

mLogMsg

public String mLogMsg
The String which stores the message to be stored.

Constructor Detail

Data

public Data()
The default constructor.

Method Detail

toString

public abstract String toString()
Returns the String version of the data object, which is in human readable form.

Overrides:
toString in class Object

vectorToString

public String vectorToString(String heading,
                             Vector vector)
It converts the contents of the Vector to a String and returns it. For this to work , all the objects making up the vector should be having a valid toString() method.

Parameters:
heading - The heading you want to give to the text which is printed
vector - The Vector whose elements you want to print

setToString

public String setToString(Set s,
                          String delim)
A small helper method that displays the contents of a Set in a String.

Parameters:
delim - The delimited between the members of the set.
Returns:
String


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