choco.cp.solver.constraints.global.scheduling.trees
Class CumTreeT<T extends ITask>
java.lang.Object
choco.kernel.common.opres.graph.ProperBinaryTree
choco.cp.solver.constraints.global.scheduling.trees.AbstractVilimTree
choco.cp.solver.constraints.global.scheduling.trees.CumTreeT<T>
- All Implemented Interfaces:
- IThetaTree, IVilimTree, IDotty, ITree
public final class CumTreeT<T extends ITask>
- extends AbstractVilimTree
- Since:
- version 2.0.0
- Version:
- 2.0.3
- Author:
- Arnaud Malapert
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.kernel.common.IDotty |
toDotty |
rsc
protected final ICumulativeResource<T extends ITask> rsc
CumTreeT
public CumTreeT(ICumulativeResource<T> rsc)
insert
public void insert(ITask task)
getEnergy
public long getEnergy()
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
getTime
public int getTime()
setMode
public void setMode(IVilimTree.TreeMode mode)
- Specified by:
setMode
in interface IVilimTree
- Overrides:
setMode
in class AbstractVilimTree
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.