and.Mapping
Class Association

java.lang.Object
  extended by and.Mapping.Association
All Implemented Interfaces:
java.io.Serializable

public class Association
extends java.lang.Object
implements java.io.Serializable

Class representing an association between a tasks list and a cluster on which they are mapped, or between a task and a computing node

See Also:
Serialized Form

Constructor Summary
Association()
          Default constructor.
Association(Cluster _c, java.util.ArrayList<GTask> _at)
          Constructor.
Association(GNode _g, GTask _t)
          Constructor.
 
Method Summary
 Cluster getCluster()
          Return the associated cluster.
 GNode getGNode()
          Return the associated computing node.
 java.util.ArrayList<GTask> getGtask()
          Return the associated tasks list.
 GTask getGTask()
          Return the associated task.
 void setGNode(GNode _g)
          Replace the GNode of the association.
 void setGtask(GTask _t)
          Replace the GTask of the association.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Association

public Association()
Default constructor.


Association

public Association(Cluster _c,
                   java.util.ArrayList<GTask> _at)
Constructor.

Parameters:
_c - Associated cluster
_at - Tasks list

Association

public Association(GNode _g,
                   GTask _t)
Constructor.

Parameters:
_g - Associated computing node
_t - Associated task
Method Detail

getCluster

public Cluster getCluster()
Return the associated cluster.

Returns:
The associated cluster

getGtask

public java.util.ArrayList<GTask> getGtask()
Return the associated tasks list.

Returns:
The associated tasks list

getGNode

public GNode getGNode()
Return the associated computing node.

Returns:
The associated node

getGTask

public GTask getGTask()
Return the associated task.

Returns:
The associated task

setGNode

public void setGNode(GNode _g)
Replace the GNode of the association.

Parameters:
_g - The replacing GNode

setGtask

public void setGtask(GTask _t)
Replace the GTask of the association.

Parameters:
_t - The replacing GTask