jopt.js.api.variable
Interface JsVariableFactory

All Superinterfaces:
jopt.csp.variable.CspVariableFactory

public interface JsVariableFactory
extends jopt.csp.variable.CspVariableFactory


Method Summary
 Activity createActivity(java.lang.String name, int id, int est, int lst, int duration)
          Creates an activity
 Activity createActivity(java.lang.String name, int id, int est, int lst, int durMin, int durMax)
          Creates an activity
 Resource createDiscreteResource(java.lang.String name, int startTime, int endTime, int capacity)
          Creates a discrete resource
 Resource createDiscreteResource(java.lang.String name, int startTime, int endTime, int[] capacity)
          Creates a discrete resource
 Resource createGranularDiscreteResource(java.lang.String name, int startTime, int endTime, int[] capacity, int bucketSize, int offset)
          Creates a granular discrete resource
 Resource createGranularDiscreteResource(java.lang.String name, int startTime, int endTime, int capacity, int bucketSize, int offset)
          Creates a granular discrete resource
 Resource createGranularUnaryResource(java.lang.String name, int startTime, int endTime, int bucketSize, int offset)
          Creates a granular unary resource
 Resource createUnaryResource(java.lang.String name, int startTime, int endTime)
          Creates a unary resource
 
Methods inherited from interface jopt.csp.variable.CspVariableFactory
booleanVar, booleanVar, booleanVar, doubleVar, doubleVar, doubleVar, floatVar, floatVar, floatVar, genericBoolean, genericBoolean, genericBoolean, genericBoolean, genericBooleanConst, genericBooleanConst, genericDouble, genericDouble, genericDouble, genericDouble, genericDoubleConst, genericDoubleConst, genericDoubleConst, genericDoubleConst, genericFloat, genericFloat, genericFloat, genericFloat, genericFloatConst, genericFloatConst, genericFloatConst, genericFloatConst, genericIndex, genericInt, genericInt, genericInt, genericInt, genericIntConst, genericIntConst, genericIntConst, genericIntConst, genericLong, genericLong, genericLong, genericLong, genericLongConst, genericLongConst, genericLongConst, genericLongConst, getDefaultPrecision, getMath, getSetConstraints, intSetVar, intVar, intVar, intVar, intVar, intVar, longVar, longVar, longVar, longVar, setDefaultPrecision
 

Method Detail

createActivity

public Activity createActivity(java.lang.String name,
                               int id,
                               int est,
                               int lst,
                               int durMin,
                               int durMax)
Creates an activity

Parameters:
name - name of the activity
id - id of this activity
est - earliest start time
lst - latest start time
durMin - minimum duration
durMax - maximum duration

createActivity

public Activity createActivity(java.lang.String name,
                               int id,
                               int est,
                               int lst,
                               int duration)
Creates an activity

Parameters:
name - name of the activity
id - id of this activity
est - earliest start time
lst - latest start time
duration - duration

createUnaryResource

public Resource createUnaryResource(java.lang.String name,
                                    int startTime,
                                    int endTime)
Creates a unary resource

Parameters:
name - name of the resource
startTime - earliest time that the resource is available to be used
endTime - latest time that the resource is available to be used

createDiscreteResource

public Resource createDiscreteResource(java.lang.String name,
                                       int startTime,
                                       int endTime,
                                       int capacity)
Creates a discrete resource

Parameters:
name - names of the resource
startTime - earliest time that the resource is available to be used
endTime - latest time that the resource is available to be used
capacity - amount of resource available

createDiscreteResource

public Resource createDiscreteResource(java.lang.String name,
                                       int startTime,
                                       int endTime,
                                       int[] capacity)
Creates a discrete resource

Parameters:
name - names of the resource
startTime - earliest time that the resource is available to be used
endTime - latest time that the resource is available to be used
capacity - amount of resource available per time interval

createGranularUnaryResource

public Resource createGranularUnaryResource(java.lang.String name,
                                            int startTime,
                                            int endTime,
                                            int bucketSize,
                                            int offset)
Creates a granular unary resource

Parameters:
name - name of the resource
startTime - earliest time that the resource is available to be used
endTime - latest time that the resource is available to be used
bucketSize - size of the bucket that encapsulates time
offset - the offset from the first time interval that the bucket should start

createGranularDiscreteResource

public Resource createGranularDiscreteResource(java.lang.String name,
                                               int startTime,
                                               int endTime,
                                               int capacity,
                                               int bucketSize,
                                               int offset)
Creates a granular discrete resource

Parameters:
name - names of the resource
startTime - earliest time that the resource is available to be used
endTime - latest time that the resource is available to be used
capacity - amount of resource available
bucketSize - size of the bucket that encapsulates time
offset - the offset from the first time interval that the bucket should start

createGranularDiscreteResource

public Resource createGranularDiscreteResource(java.lang.String name,
                                               int startTime,
                                               int endTime,
                                               int[] capacity,
                                               int bucketSize,
                                               int offset)
Creates a granular discrete resource

Parameters:
name - names of the resource
startTime - earliest time that the resource is available to be used
endTime - latest time that the resource is available to be used
capacity - amount of resource available per time interval
bucketSize - size of the bucket that encapsulates time
offset - the offset from the first time interval that the bucket should start