net.sf.opendse.model
Class Models.DirectedLink

java.lang.Object
  extended by net.sf.opendse.model.Models.DirectedLink
Enclosing class:
Models

public static class Models.DirectedLink
extends java.lang.Object

The DirectedLink is a Link wrapper that contains the source Resource and destination Resource.


Constructor Summary
Models.DirectedLink(Link l, Resource r0, Resource r1)
          Constructs a DirectedLink.
 
Method Summary
 Resource getDest()
          Returns the destination Resource.
 Link getLink()
          Returns the wrapped Link.
 Resource getSource()
          Returns the source Resource.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Models.DirectedLink

public Models.DirectedLink(Link l,
                           Resource r0,
                           Resource r1)
Constructs a DirectedLink.

Parameters:
l - the link
r0 - the source
r1 - the destination
Method Detail

getLink

public Link getLink()
Returns the wrapped Link.

Returns:
the link

getSource

public Resource getSource()
Returns the source Resource.

Returns:
the source resource

getDest

public Resource getDest()
Returns the destination Resource.

Returns:
the destination resource