|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbe.ac.ulg.montefiore.run.totem.domain.model.impl.DomainValidatorImpl
public class DomainValidatorImpl
A DomainValidator can check and force some characteristics on a Domain
Creation date: 19-Jan-2005 18:40:51
| Constructor Summary | |
|---|---|
DomainValidatorImpl(Domain domain)
|
|
| Method Summary | |
|---|---|
void |
forceConnected()
Removes nodes and links that are not in the connected set of maximum size so that the graph is connected. |
void |
forceDuplexConnected()
Checks that all the nodes of the topology have at least an outlink and an inlink. |
void |
forceIGPInfo()
Adds the IGP information if not present. |
void |
forceLoopFree()
This method removes all the loops present in the topology. |
void |
forceNoMultiGraph()
Remove multiple links. |
java.util.List<java.util.List<Path>> |
getEqualCostMultiPath()
Returns a list containing lists of paths. |
java.util.List<java.util.List<Path>> |
getEqualCostMultiPath(java.lang.String algo)
Returns a list containing lists of paths. |
boolean |
isConnected()
Checks if the graph is connected. |
boolean |
isDualConnected()
Check if there exist at least two link coming into and going out of each node. |
boolean |
isDuplexConnected()
Checks that all the nodes of the topology have at least an outlink and an inlink. |
boolean |
isEqualCostMultiPath()
Check if there exists equal cost multi path in the topology |
boolean |
isIGPInfo()
Verify if an IGP information section is present |
boolean |
isLoopFree()
This method return true if the domain contains NO loop links. |
boolean |
isMultiGraph()
Check if multiple links exists |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DomainValidatorImpl(Domain domain)
| Method Detail |
|---|
public boolean isIGPInfo()
isIGPInfo in interface DomainValidator
public boolean isConnected()
throws NodeNotFoundException
isConnected in interface DomainValidatorNodeNotFoundException
public boolean isLoopFree()
throws NodeNotFoundException
isLoopFree in interface DomainValidatorNodeNotFoundException
public boolean isDuplexConnected()
throws NodeNotFoundException,
LinkNotFoundException
IllegalArgumentException if the topology isn't connected.
isDuplexConnected in interface DomainValidatorNodeNotFoundException
LinkNotFoundException
public boolean isDualConnected()
throws NodeNotFoundException
isDualConnected in interface DomainValidatorNodeNotFoundException
public boolean isMultiGraph()
throws NodeNotFoundException
isMultiGraph in interface DomainValidatorNodeNotFoundException
public boolean isEqualCostMultiPath()
throws NoRouteToHostException,
RoutingException
isEqualCostMultiPath in interface DomainValidatorNoRouteToHostException
RoutingException
public java.util.List<java.util.List<Path>> getEqualCostMultiPath()
throws NoRouteToHostException,
RoutingException
DomainValidator
getEqualCostMultiPath in interface DomainValidatorNoRouteToHostException
RoutingException
public java.util.List<java.util.List<Path>> getEqualCostMultiPath(java.lang.String algo)
throws NoRouteToHostException,
RoutingException,
NoSuchAlgorithmException
DomainValidator
getEqualCostMultiPath in interface DomainValidatorNoRouteToHostException
RoutingException
NoSuchAlgorithmException - If the given algorithm cannot be found.public void forceIGPInfo()
forceIGPInfo in interface DomainValidator
public void forceConnected()
throws NodeNotFoundException,
LinkNotFoundException
forceConnected in interface DomainValidatorNodeNotFoundException
LinkNotFoundException
public void forceLoopFree()
throws NodeNotFoundException,
LinkNotFoundException
forceLoopFree in interface DomainValidatorNodeNotFoundException
LinkNotFoundException
public void forceDuplexConnected()
throws NodeNotFoundException,
LinkNotFoundException,
LinkAlreadyExistException
IllegalArgumentException if the topology isn't connected.
forceDuplexConnected in interface DomainValidatorNodeNotFoundException
LinkNotFoundException
LinkAlreadyExistExceptionpublic void forceNoMultiGraph()
forceNoMultiGraph in interface DomainValidator
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||