be.ac.ulg.montefiore.run.totem.domain.simplifiedDomain
Class SimplifiedPath

java.lang.Object
  extended by be.ac.ulg.montefiore.run.totem.domain.simplifiedDomain.SimplifiedPath
Direct Known Subclasses:
ExtendedPath

public class SimplifiedPath
extends java.lang.Object

Define a simple path as a list of link or node int ID.

Creation date: 26-Jan-2005 16:52:30

Author:
Fabian Skivee (skivee@run.montefiore.ulg.ac.be)

Field Summary
protected  SimplifiedDomain domain
           
protected  int[] linkIdPath
           
 
Constructor Summary
SimplifiedPath()
           
SimplifiedPath(SimplifiedDomain domain, java.util.ArrayList<java.lang.Integer> linkIdPath)
           
SimplifiedPath(SimplifiedDomain domain, int[] linkIdPath)
           
 
Method Summary
 Path convert(Domain domain)
           
 boolean equals(java.lang.Object o)
           
 boolean equals(SimplifiedPath p2)
           
 SimplifiedDomain getDomain()
           
 int[] getLinkIdPath()
           
 int hashCode()
           
 boolean isDisjoint(SimplifiedPath p2)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

linkIdPath

protected int[] linkIdPath

domain

protected SimplifiedDomain domain
Constructor Detail

SimplifiedPath

public SimplifiedPath()

SimplifiedPath

public SimplifiedPath(SimplifiedDomain domain,
                      int[] linkIdPath)

SimplifiedPath

public SimplifiedPath(SimplifiedDomain domain,
                      java.util.ArrayList<java.lang.Integer> linkIdPath)
Method Detail

getLinkIdPath

public int[] getLinkIdPath()

getDomain

public SimplifiedDomain getDomain()

isDisjoint

public boolean isDisjoint(SimplifiedPath p2)
                   throws LinkNotFoundException
Throws:
LinkNotFoundException

equals

public boolean equals(SimplifiedPath p2)

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

convert

public Path convert(Domain domain)
             throws LinkNotFoundException,
                    NodeNotFoundException,
                    InvalidPathException
Throws:
LinkNotFoundException
NodeNotFoundException
InvalidPathException

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2004-2007 Research Unit in Networking, All Rights Reserved.