UNICORE Resource Broker Client Plugin
1.5α1

org.eurogrid.broker.client
Class BrokerResourceDAGMaker

java.lang.Object
  |
  +--org.eurogrid.broker.client.BrokerResourceDAGMaker

public class BrokerResourceDAGMaker
extends Object

Helper class that constructs a TaskResourceDAG for an AbstractJob

Version:
$Revision: 1.7 $, $Date: 2004/02/17 11:32:40 $
Author:
Jon MacLaren
See Also:
TaskResourceDAG

Method Summary
 TaskResourceDAG getDAG()
          Returns the DAG being constructed
 HashMap getIDMap()
          Returns the AAIdentifier to ExecuteTask map
 TaskResource getTaskResource(AbstractAction action)
          gets the TaskResource for a particular task, constructing it if it's not already in the map
 void produceDAG(ActionGroup ag)
          Produce a TaskResourceDAG (and ID Map)
 void setDAG(TaskResourceDAG thedag)
          set the DAG which is built up - should be called before getTaskResource is invoked
 void setIDMap(HashMap themap)
          set the AAIdentifier to the ExecuteTask map which is built up - should be called before getTaskResource is invoked
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getDAG

public TaskResourceDAG getDAG()
Returns the DAG being constructed

Returns:
The DAG which will be built up

getIDMap

public HashMap getIDMap()
Returns the AAIdentifier to ExecuteTask map

Returns:
The map being built up

getTaskResource

public TaskResource getTaskResource(AbstractAction action)
gets the TaskResource for a particular task, constructing it if it's not already in the map

Returns:
The (possibly new) TaskResource object

produceDAG

public void produceDAG(ActionGroup ag)
Produce a TaskResourceDAG (and ID Map)

Parameters:
ag - An ActionGroup (maybe an AbstractJob)

setDAG

public void setDAG(TaskResourceDAG thedag)
set the DAG which is built up - should be called before getTaskResource is invoked

Parameters:
thedag - The DAG which will be built up

setIDMap

public void setIDMap(HashMap themap)
set the AAIdentifier to the ExecuteTask map which is built up - should be called before getTaskResource is invoked

Parameters:
themap - The map which will be built up

UNICORE Resource Broker Client Plugin
1.5α1

Submit a bug or feature
Copyright © 2002-2004 University of Manchester, U.K. See license.terms for details.