bcds.phison.ra
Class Null<V,E>

java.lang.Object
  extended by bcds.phison.ra.RoutingAlgBase<V,E>
      extended by bcds.phison.ra.Null<V,E>
All Implemented Interfaces:
RoutingAlg<V,E>, WithEnvParams

public class Null<V,E>
extends RoutingAlgBase<V,E>
implements RoutingAlg<V,E>

This is a "null" router: Everything is rejected, no matter what. Thus, it can be used to disable a certain traffic demand, for example, without needing to regenerate the traffic file.

Author:
Juan Segovia S.

Constructor Summary
Null()
          Default constructor.
Null(TED<V,E> ted, Environ env)
          Constructor.
 
Method Summary
 Path<V,E> run(V src, V dest, int rq_cap)
          Always returns null.
 
Methods inherited from class bcds.phison.ra.RoutingAlgBase
buildPathFromParentNodes, commitBackupPath, commitWorkingPath, dumpState, getBackupPath, getCost, getEnviron, getEnvParams, getName, getTED, getWorkingPath, offersProtection, setBackupPath, setRequest, setup, setWorkingPath, topologyHasChanged, uncommitBackupPath, uncommitWorkingPath
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface bcds.phison.ra.RoutingAlg
commitBackupPath, commitWorkingPath, dumpState, getBackupPath, getCost, getName, getWorkingPath, offersProtection, setup, topologyHasChanged, uncommitBackupPath, uncommitWorkingPath
 
Methods inherited from interface bcds.phison.WithEnvParams
getEnviron, getEnvParams
 

Constructor Detail

Null

public Null()
Default constructor.


Null

public Null(TED<V,E> ted,
            Environ env)
Constructor. Its sole purpose is to offer the familiar (ted, env) constructor.

Method Detail

run

public Path<V,E> run(V src,
                     V dest,
                     int rq_cap)
Always returns null.

Specified by:
run in interface RoutingAlg<V,E>