org.glite.jdl
Class DagAd

java.lang.Object
  extended by org.glite.jdl.Ad
      extended by org.glite.jdl.DagAd

public class DagAd
extends Ad

This class is not yet functional

Version:
0.1
Author:
Alessandro Maraschini

Field Summary
static int STRING_CURRENT
          Used to print the current DagAd
static int STRING_MULTI_LINES
          Used to print the DagAd over multi lines
static int STRING_NO_NODES
          Used to print the simple DagAd without nodes
static int STRING_SUBMISSION
          Used to print the submission DagAd
 
Fields inherited from class org.glite.jdl.Ad
jobAd, TYPE_AD, TYPE_BOOL, TYPE_EXPRESSION, TYPE_INTEGER, TYPE_REAL, TYPE_STRING, TYPE_UNKNOWN
 
Constructor Summary
DagAd()
          The default empty constructor
 
Method Summary
 void addDependency(String jobFather, String jobSon)
          Add the couple father, son to the DagAd dependencies
 void addNode(Node node)
          Add a new Ad with the specified String node
 void check()
           
 void removeDependency(String jobFather, String jobSon)
          Remove the couple father, son from the DagAd dependencies if it has been already set
 void removeNode(String node)
          Remove the specified job from the DagAd
 void setAttribute(String attrName, condor.classad.Expr attrValue)
          Set an Expr Attribute to the DagAd.
 String toString(int level)
          Return the Dag into a string representation
 
Methods inherited from class org.glite.jdl.Ad
addAttribute, addAttribute, addAttribute, addAttribute, addAttribute, appendValue, attributes, clear, clone, copy, delAttribute, fromFile, fromRecord, fromString, getAd, getAdValue, getBooleanValue, getConstant, getDoubleValue, getIntValue, getStringValue, getType, getValue, hasAttribute, isSet, lookup, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, size, toString, toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

STRING_CURRENT

public static int STRING_CURRENT
Used to print the current DagAd


STRING_SUBMISSION

public static int STRING_SUBMISSION
Used to print the submission DagAd


STRING_NO_NODES

public static int STRING_NO_NODES
Used to print the simple DagAd without nodes


STRING_MULTI_LINES

public static int STRING_MULTI_LINES
Used to print the DagAd over multi lines

Constructor Detail

DagAd

public DagAd()
The default empty constructor

Method Detail

toString

public String toString(int level)
Return the Dag into a string representation

See Also:
STRING_CURRENT, STRING_SUBMISSION, STRING_NO_NODES, STRING_MULTI_LINES

addNode

public void addNode(Node node)
             throws Exception
Add a new Ad with the specified String node

Parameters:
nodeValue - - the value of the node
Throws:
Exception

removeNode

public void removeNode(String node)
                throws NoSuchFieldException
Remove the specified job from the DagAd

Throws:
NoSuchFieldException

addDependency

public void addDependency(String jobFather,
                          String jobSon)
                   throws NoSuchFieldException,
                          JobAdException,
                          Exception
Add the couple father, son to the DagAd dependencies

Throws:
NoSuchFieldException
JobAdException
Exception

removeDependency

public void removeDependency(String jobFather,
                             String jobSon)
                      throws NoSuchFieldException
Remove the couple father, son from the DagAd dependencies if it has been already set

Throws:
NoSuchFieldException

setAttribute

public void setAttribute(String attrName,
                         condor.classad.Expr attrValue)
                  throws IllegalArgumentException
Set an Expr Attribute to the DagAd. Thie method is called by fromString and fromFile while building the DagAd

Overrides:
setAttribute in class Ad
Parameters:
attrName - the name of the attribute to be set
attrValue - the value for the attribute to be set
Throws:
IllegalArgumentException

check

public void check()
           throws Exception
Throws:
Exception


Copyright © 2013 EMI - European Middleware Initiative. All Rights Reserved.