Package com.artelys.kalis
Class KUnaryResource
- java.lang.Object
-
- com.artelys.kalis.KResource
-
- com.artelys.kalis.KUnaryResource
-
public class KUnaryResource extends KResource
Unary Resource
Unary resources can process only one task at a time.
The following schema shows an example with three tasks A,B and C executing
on a disjunctive resource and on a cumulative resource with resource usage 3
for task A, 1 for task B and 1 for task C :
Tasks may require, provide, consume and produce resources :
- A task requires a resource if some amount of the resource capacity must be made available for the execution of the activity. The capacity is renewable which means that the required capacity is available after the end of the task.
- A task provides a resource if some amount of the resource capacity is made available through the execution of the task. The capacity is renewable which means that the provided capacity is available only during the execution of the task.
- A task consumes a resource if some amount of the resource capacity must be made available for the execution of the task and the capacity is non-renewable which means that the consumed capacity if no longer available at the end of the task.
- A task produces a resource if some amount of the resource capacity is made available through the execution of the task and the capacity is non-renewable which means that the produced capacity is definitively available after the starting of the task.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
KUnaryResource.PropagationHint
Propagation Hint Attributes
-
Field Summary
-
Fields inherited from class com.artelys.kalis.KResource
swigCMemOwn
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
KUnaryResource(long cPtr, boolean cMemoryOwn)
KUnaryResource(KSchedule s, java.lang.String name)
Constructor
KUnaryResource(KSchedule s, java.lang.String name, int propagation)
Constructor
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
delete()
protected void
finalize()
protected static long
getCPtr(KUnaryResource obj)
-
Methods inherited from class com.artelys.kalis.KResource
addIdleTimeSteps, addTask, close, getCopyPtr, getCPtr, getDisjunctionInvolving, getDURVar, getESTVar, getFirstDisjunctionWithUnknownStatus, getIndex, getInitialCapacity, getInitialCapacityAt, getIsInstantiated, getLCTVar, getLocalSlack, getMaxAvailability, getMaxAvailabilityAt, getMinimumTasksDuration, getMinUsage, getMinUsageAt, getName, getNumberOfTasks, getResourceIPtr, getSchedule, getSlackVar, getStartBasedDuration, getTask, getTimeTable, isIdleTimeStep, print, print, printResourceGantt, printResourceGantt, printTaskGantt, printTaskGantt, setDuration, setDurationWithIdleTimes, setInitialCapacityBetween, setMaxAvailabilityBetween, setMinUsageBetween, setName, setResourceIPtr, setSetupTime, setSetupTime, setStartBasedDuration, updateDurationWithIdleTimes
-
-
-
-
Constructor Detail
-
KUnaryResource
protected KUnaryResource(long cPtr, boolean cMemoryOwn)
-
KUnaryResource
public KUnaryResource(KSchedule s, java.lang.String name, int propagation)
Constructor
- Parameters:
s
- the schedulename
- name for this resourcepropagation
- propagation scheme @see KUnaryResource#PropagationHint
-
KUnaryResource
public KUnaryResource(KSchedule s, java.lang.String name)
Constructor
- Parameters:
s
- the schedulename
- name for this resource- See Also:
KUnaryResource#PropagationHint
-
-
Method Detail
-
getCPtr
protected static long getCPtr(KUnaryResource obj)
-
-