be.ac.ulg.montefiore.run.totem.repository.SAMTE.model
Class SAMTESolution

java.lang.Object
  extended by be.ac.ulg.montefiore.run.totem.repository.SAMTE.model.SAMTESolution
All Implemented Interfaces:
HeuristicSolution, SASolution, java.lang.Cloneable

public class SAMTESolution
extends java.lang.Object
implements SASolution

Creation date: 25-Feb-2005 12:20:23

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

Constructor Summary
SAMTESolution(ObjectiveFunction of, TrafficMatrix tm, SimplifiedDomain sDomain)
           
 
Method Summary
 boolean addLsp(ExtendedPath ePath)
           
 java.lang.Object clone()
          Clone deeply a solution
 void display()
          Display a solution.
 void displayFull()
           
 double evaluate()
          Evaluate the solution using the objective function
 SimplifiedDomain getDomain()
           
 double[] getLinkLoad()
           
 LinkLoadComputation getLlc()
           
 java.util.List<ExtendedPath> getLspList()
           
 ObjectiveFunction getObjectiveFunction()
          Get the objective function
 SimplifiedPath getPath(int srcNode, int dstNode)
           
 double[] getRelativeLinkLoad()
           
 long getTimeToManageLSPList()
           
 TrafficMatrix getTm()
           
 boolean initStructure()
           
 boolean removeLsp(ExtendedPath path)
           
 boolean removeLsp(int number)
           
 void resetTime()
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SAMTESolution

public SAMTESolution(ObjectiveFunction of,
                     TrafficMatrix tm,
                     SimplifiedDomain sDomain)
Method Detail

getLlc

public LinkLoadComputation getLlc()

getDomain

public SimplifiedDomain getDomain()

getTm

public TrafficMatrix getTm()

getTimeToManageLSPList

public long getTimeToManageLSPList()

resetTime

public void resetTime()

initStructure

public boolean initStructure()
                      throws java.lang.Exception
Throws:
java.lang.Exception

getLspList

public java.util.List<ExtendedPath> getLspList()

removeLsp

public boolean removeLsp(int number)
                  throws java.lang.Exception
Throws:
java.lang.Exception

removeLsp

public boolean removeLsp(ExtendedPath path)
                  throws java.lang.Exception
Throws:
java.lang.Exception

getLinkLoad

public double[] getLinkLoad()

getRelativeLinkLoad

public double[] getRelativeLinkLoad()

getPath

public SimplifiedPath getPath(int srcNode,
                              int dstNode)

addLsp

public boolean addLsp(ExtendedPath ePath)
               throws java.lang.Exception
Throws:
java.lang.Exception

evaluate

public double evaluate()
Evaluate the solution using the objective function

Specified by:
evaluate in interface HeuristicSolution
Returns:
the score of the solution

display

public void display()
Display a solution. Use for debug

Specified by:
display in interface HeuristicSolution

displayFull

public void displayFull()
                 throws java.lang.Exception
Throws:
java.lang.Exception

getObjectiveFunction

public ObjectiveFunction getObjectiveFunction()
Get the objective function

Specified by:
getObjectiveFunction in interface HeuristicSolution
Returns:

clone

public java.lang.Object clone()
Clone deeply a solution

Specified by:
clone in interface HeuristicSolution
Overrides:
clone in class java.lang.Object
Returns:


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