|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jopt.csp.spi.arcalgorithm.domain.AbstractDomain jopt.js.spi.domain.resource.ResourceDomain
Base resource domain class. This is used as the basis of all other resource domains.
Method Summary | |
void |
clearDelta()
|
abstract jopt.csp.util.IntIntervalSet |
findAvailIntervals(int start,
int end,
int quantity)
Returns a set indicating the intervals that this resource is available in the given quantity within the specified range |
abstract jopt.csp.util.IntIntervalSet |
findAvailIntervals(int operationID,
int start,
int end,
int quantity)
Returns a set indicating the intervals that this resource is available to the given operation in the given quantity within the specified range |
jopt.csp.spi.arcalgorithm.domain.IntDomain |
getBeginTime()
Returns an IntDomain representing the first time that this resource will actually be used |
jopt.csp.spi.arcalgorithm.domain.IntDomain |
getCompleteTime()
Returns an IntDomain representing the last time that this resource will actually be used |
java.lang.Object |
getDomainState()
|
jopt.csp.spi.arcalgorithm.domain.IntDomain |
getMakeSpan()
Returns an IntDomain representing the length of time that this resource is in use |
int |
getNumberOfOperationsAssigned()
Returns the number of operations currently assigned to the resource |
jopt.csp.spi.arcalgorithm.domain.IntDomain |
getNumOps()
Returns an IntDomain representing the number of operations that use this resource |
int |
getResourceEnd()
This obtains the last point for which this resource is, or ever was, available |
int |
getResourceStart()
Obtains the first point for which this resource is, or ever was, available |
abstract int |
getTotalCapacityAvailable()
This method will return the total amount of resource available. |
abstract int |
getType()
Returns an int representing the type of resource this is domain represents |
boolean |
isBound()
Returns true since this is always in a valid state by the nature of the domain |
boolean |
isBuilt()
Determines if this domain is in "built" status |
abstract boolean |
isResourceAvailable(int operationID,
int start,
int end,
int quantity)
Determines whether the resource is available in the specified quantity between specified start and end times for the given operation |
boolean |
isUsed()
Checks to see if any operation requires the use of this resource at any time. |
abstract int |
maxAvailableResource(int start,
int end)
Gives the highest consistently available amount of this resource over the given range |
abstract int |
maxAvailableResource(int operationID,
int start,
int end)
Gives the highest consistently available amount of this resource over the given range for the given operation |
abstract int |
maxAvailableResource(int operationID,
int start,
int end,
int minDur)
Gives the highest consistently available amount of this resource over the given range for the given operation and assuming that the reource will be used for at least the specified duration |
boolean |
needsPropagation()
Returns whether or not this class has been altered, thus rendering its arcs in need of propagation |
abstract void |
registerAllocatedOperation(int opID,
int est,
int let,
int minDur)
Lets the resource know that although a specific time has not necessary been decided, the specified operation will use this resource. |
void |
restoreDomainState(java.lang.Object state)
|
void |
setActualOperationTimeline(int operationID,
jopt.csp.util.IntIntervalSet timeline)
Registers the amount of time the specified operation will be using this resource |
void |
setBuilt(boolean built)
Sets the built status of this domain |
void |
setChoicePointStack(jopt.csp.spi.solver.ChoicePointStack cps)
|
void |
setNeedsPropagation(boolean needsPropagation)
Sets the nnedsPropagation flag to the given boolean |
void |
setPotentialOperationTimeline(int operationID,
jopt.csp.util.IntIntervalSet timeline)
Indicates the time during which the specified operation may be using this resource |
java.lang.String |
toString()
|
Methods inherited from class jopt.csp.spi.arcalgorithm.domain.AbstractDomain |
addDomainChangeListener, addRangeChangeListener, addValueChangeListener, changed, clone, removeDomainChangeListener, removeRangeChangeListener, removeValueChangeListener |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface jopt.csp.spi.solver.ChoicePointDataSource |
choicePointStackSet |
Methods inherited from interface jopt.csp.spi.solver.ChoicePointEntryListener |
afterChoicePointPopEvent, afterChoicePointPushEvent, beforeChoicePointPopEvent, beforeChoicePointPushEvent |
Method Detail |
public boolean isBuilt()
public void setBuilt(boolean built)
built
- boolean indication whether or not the problem has been builtpublic jopt.csp.spi.arcalgorithm.domain.IntDomain getNumOps()
public jopt.csp.spi.arcalgorithm.domain.IntDomain getMakeSpan()
public jopt.csp.spi.arcalgorithm.domain.IntDomain getBeginTime()
public jopt.csp.spi.arcalgorithm.domain.IntDomain getCompleteTime()
public abstract jopt.csp.util.IntIntervalSet findAvailIntervals(int start, int end, int quantity)
start
- start of interval inquired aboutend
- end of interval inquired aboutquantity
- amound of resource required
public abstract jopt.csp.util.IntIntervalSet findAvailIntervals(int operationID, int start, int end, int quantity)
operationID
- operation for whome we are checking the availabilitystart
- start of interval inquired aboutend
- end of interval inquired aboutquantity
- amound of resource required
public abstract boolean isResourceAvailable(int operationID, int start, int end, int quantity)
operationID
- the operationID of the operation in questionstart
- start of interval being inquired aboutend
- end of interval being inquired aboutquantity
- quantity of resource needed
public abstract int maxAvailableResource(int start, int end)
start
- start of range being inquired aboutend
- end of range being inquired about
public abstract int maxAvailableResource(int operationID, int start, int end)
operationID
- the operationID of the operation in questionstart
- start of range being inquired aboutend
- end of range being inquired about
public abstract int maxAvailableResource(int operationID, int start, int end, int minDur)
operationID
- the operationID of the operation in questionstart
- start of range being inquired aboutend
- end of range being inquired aboutminDur
- the minimum duration
public void setChoicePointStack(jopt.csp.spi.solver.ChoicePointStack cps)
setChoicePointStack
in interface jopt.csp.spi.solver.ChoicePointDataSource
public int getNumberOfOperationsAssigned()
public void setPotentialOperationTimeline(int operationID, jopt.csp.util.IntIntervalSet timeline) throws jopt.csp.variable.PropagationFailureException
operationID
- id of operationtimeline
- times potentially being used
jopt.csp.variable.PropagationFailureException
public void setActualOperationTimeline(int operationID, jopt.csp.util.IntIntervalSet timeline) throws jopt.csp.variable.PropagationFailureException
operationID
- id of operationtimeline
- times being used
jopt.csp.variable.PropagationFailureException
public abstract int getType()
public int getResourceStart()
public int getResourceEnd()
public abstract int getTotalCapacityAvailable()
public boolean isUsed()
public abstract void registerAllocatedOperation(int opID, int est, int let, int minDur) throws jopt.csp.variable.PropagationFailureException
opID
- operation id of operation using resourceest
- earliest start timelet
- latest end timeminDur
- minimum duration
jopt.csp.variable.PropagationFailureException
public boolean isBound()
isBound
in interface jopt.csp.spi.arcalgorithm.domain.Domain
public java.lang.String toString()
public boolean needsPropagation()
public void setNeedsPropagation(boolean needsPropagation)
needsPropagation
- boolean to set the needs Propagation flagpublic void clearDelta()
clearDelta
in interface jopt.csp.spi.arcalgorithm.domain.Domain
public java.lang.Object getDomainState()
getDomainState
in interface jopt.csp.spi.arcalgorithm.domain.Domain
public void restoreDomainState(java.lang.Object state)
restoreDomainState
in interface jopt.csp.spi.arcalgorithm.domain.Domain
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |