net.sf.opendse.model
Class Routings<T extends Task,R extends Resource,L extends Link>

java.lang.Object
  extended by net.sf.opendse.model.Routings<T,R,L>
Type Parameters:
T - the type of task
R - the type of resource
L - the type of edge (in the architecture)

public class Routings<T extends Task,R extends Resource,L extends Link>
extends java.lang.Object

The Routings maps Task elements to a subgraph of the Architecture consisting of Resource vertices and Edge edges.


Field Summary
protected  java.util.Map<T,Architecture<R,L>> map
           
 
Constructor Summary
Routings()
           
 
Method Summary
 Architecture<R,L> get(T task)
          Gets a routing for a task
 java.util.Collection<Architecture<R,L>> getRoutings()
          Returns all routings.
 java.util.Set<T> getTasks()
          Returns all tasks that have a routing.
 Architecture<R,L> remove(T task)
          Removes the routing.
 void set(T task, Architecture<R,L> routing)
          Sets the routing for a task.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

map

protected java.util.Map<T extends Task,Architecture<R extends Resource,L extends Link>> map
Constructor Detail

Routings

public Routings()
Method Detail

set

public void set(T task,
                Architecture<R,L> routing)
Sets the routing for a task.

Parameters:
task - the task
routing - the routing

get

public Architecture<R,L> get(T task)
Gets a routing for a task

Parameters:
task - the task
Returns:
the routing

remove

public Architecture<R,L> remove(T task)
Removes the routing.

Parameters:
task - the communication task
Returns:
the routing

getTasks

public java.util.Set<T> getTasks()
Returns all tasks that have a routing.

Returns:
all tasks

getRoutings

public java.util.Collection<Architecture<R,L>> getRoutings()
Returns all routings.

Returns:
all routings