and.Mapping
Class Graph

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

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

Class representing the interaction graph of an application

See Also:
Serialized Form

Constructor Summary
Graph()
          Default constructor.
 
Method Summary
 void addGTask(GTask t)
          Add a task in the interaction graph.
 double getAverageDep()
          Return the average of dependencies of tasks in the graph.
 java.util.ArrayList<GTask> getGraph()
          Return the graph in a tasks list form.
 int getNbGTask()
          Return the amount of tasks in the graph.
 void print()
          Print the graph in a text version.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Graph

public Graph()
Default constructor.

Method Detail

getNbGTask

public int getNbGTask()
Return the amount of tasks in the graph.

Returns:
The amount of tasks

addGTask

public void addGTask(GTask t)
Add a task in the interaction graph.

Parameters:
t - Task to be add

getGraph

public java.util.ArrayList<GTask> getGraph()
Return the graph in a tasks list form.

Returns:
The tasks list

getAverageDep

public double getAverageDep()
Return the average of dependencies of tasks in the graph.

Returns:
The average of dependencies

print

public void print()
Print the graph in a text version.