choco.cp.solver.constraints.global.scheduling.trees
Class DisjTreeTL

java.lang.Object
  extended by choco.kernel.common.opres.graph.ProperBinaryTree
      extended by choco.cp.solver.constraints.global.scheduling.trees.AbstractVilimTree
          extended by choco.cp.solver.constraints.global.scheduling.trees.DisjTreeTL
All Implemented Interfaces:
IThetaLambdaTree, IThetaTree, IVilimTree, IDotty, ITree
Direct Known Subclasses:
AltDisjTreeTL

public class DisjTreeTL
extends AbstractVilimTree
implements IThetaLambdaTree

Since:
version 2.0.0
Version:
2.0.3
Author:
Arnaud Malapert

Nested Class Summary
protected  class DisjTreeTL.DisjStatusTL
           
 
Nested classes/interfaces inherited from interface choco.cp.solver.constraints.global.scheduling.trees.IVilimTree
IVilimTree.TreeMode
 
Constructor Summary
DisjTreeTL(List<? extends ITask> tasks)
           
 
Method Summary
 int getGrayTime()
           
protected  DisjTreeTL.DisjStatusTL getNodeStatus(IBinaryNode node)
           
 Object getResponsibleTask()
           
protected  ThetaLambdaStatus getRootStatus()
           
 int getTime()
           
 void insert(ITask task)
           
 boolean insertInLambda(IRTask rtask)
           
 boolean insertInTheta(IRTask rtask)
          insert the task into the tree.
 boolean insertInTheta(ITask task)
          insert the task into the tree (optional operation).
 boolean removeFromLambda(ITask task)
           
 boolean removeFromTheta(ITask task)
           
 boolean removeFromThetaAndInsertInLambda(IRTask rtask)
           
 boolean removeFromThetaAndInsertInLambda(ITask task)
          remove from the set thea and insert the atsk into lambda (optional operation).
 
Methods inherited from class choco.cp.solver.constraints.global.scheduling.trees.AbstractVilimTree
applySort, contains, getLeaf, getMode, getTaskComparator, insertTask, remove, reset, setMode, sort, toDotty
 
Methods inherited from class choco.kernel.common.opres.graph.ProperBinaryTree
fireTreeChanged, fireTreeChanged, getDepth, getNbInternalNodes, getNbLeaves, getRoot, insert, isLeftOrRight, remove, removeLast, setRoot
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface choco.cp.solver.constraints.global.scheduling.trees.IThetaTree
insertInTheta, insertInTheta, removeFromTheta
 
Methods inherited from interface choco.cp.solver.constraints.global.scheduling.trees.IVilimTree
contains, getMode, remove, reset, setMode, sort
 
Methods inherited from interface choco.kernel.common.IDotty
toDotty
 
Methods inherited from interface choco.kernel.common.opres.graph.ITree
getDepth, getNbInternalNodes, getNbLeaves
 

Constructor Detail

DisjTreeTL

public DisjTreeTL(List<? extends ITask> tasks)
Method Detail

getRootStatus

protected final ThetaLambdaStatus getRootStatus()

getNodeStatus

protected final DisjTreeTL.DisjStatusTL getNodeStatus(IBinaryNode node)

getGrayTime

public final int getGrayTime()
Specified by:
getGrayTime in interface IThetaLambdaTree

getResponsibleTask

public final Object getResponsibleTask()
Specified by:
getResponsibleTask in interface IThetaLambdaTree

insertInLambda

public final boolean insertInLambda(IRTask rtask)
Specified by:
insertInLambda in interface IThetaLambdaTree

removeFromLambda

public final boolean removeFromLambda(ITask task)
Specified by:
removeFromLambda in interface IThetaLambdaTree

removeFromThetaAndInsertInLambda

public final boolean removeFromThetaAndInsertInLambda(ITask task)
Description copied from interface: IThetaLambdaTree
remove from the set thea and insert the atsk into lambda (optional operation). If some additional information is needed, it throws an UnsupportedOperationException and you should use IThetaLambdaTree.removeFromThetaAndInsertInLambda(IRTask)

Specified by:
removeFromThetaAndInsertInLambda in interface IThetaLambdaTree
Returns:
true if it succeeds

removeFromThetaAndInsertInLambda

public final boolean removeFromThetaAndInsertInLambda(IRTask rtask)
Specified by:
removeFromThetaAndInsertInLambda in interface IThetaLambdaTree

getTime

public final int getTime()
Specified by:
getTime in interface IVilimTree

insert

public void insert(ITask task)
Specified by:
insert in interface IVilimTree

insertInTheta

public boolean insertInTheta(ITask task)
Description copied from interface: IThetaTree
insert the task into the tree (optional operation). If some additional information is needed, it throws an UnsupportedOperationException and you should use IThetaTree.insertInTheta(IRTask)

Specified by:
insertInTheta in interface IThetaTree
Returns:
true if it succeeds

insertInTheta

public final boolean insertInTheta(IRTask rtask)
Description copied from interface: IThetaTree
insert the task into the tree.

Specified by:
insertInTheta in interface IThetaTree
Returns:
true if it succeeds

removeFromTheta

public final boolean removeFromTheta(ITask task)
Specified by:
removeFromTheta in interface IThetaTree


Copyright © 2012. All Rights Reserved.