FRAMES NO FRAMES

Class IloActivityShiftParam

Definition file: ilsched/iloactivityparam.h
Include file: <ilsched/iloscheduler.h>

Parameters are used to change the default behavior of activities and resources. By default, an activity deals with all shifts. Instances of IloActivityShiftParam are used to define the set of ignored types of shifts for activities.

For more information, see Shift Object Semantic and Parameter Classes.

See Also:

Constructor Summary
public IloActivityShiftParam()
public IloActivityShiftParam(IloActivityShiftParamI * impl)
public IloActivityShiftParam(const IloEnv env, const char * name=0)
Method Summary
public voidaddIgnoredShiftType(const IloIntSet types) const
public voidaddIgnoredShiftType(IloInt type) const
public voidclearIgnoredShiftType() const
public IloActivityShiftParamI *getImpl() const
public IloBoolhasIgnoredShiftType() const
public IloBoolisIgnoredShiftType(IloInt type) const
public voidremoveIgnoredShiftType(const IloIntSet types) const
public voidremoveIgnoredShiftType(IloInt type) const
Constructor Detail

IloActivityShiftParam

public IloActivityShiftParam()
This constructor creates an instance that is empty, that is, one whose handle pointer is null. You must assign it a value before you access it. Any attempt to access it before assignment leads to undefined behaviour.

IloActivityShiftParam

public IloActivityShiftParam(IloActivityShiftParamI * impl)
This constructor creates an instance of the handle class from the pointer to an instance of the implementation class.

IloActivityShiftParam

public IloActivityShiftParam(const IloEnv env, const char * name=0)

This constructor creates an instance of IloActivityShiftParam with the default values. No shifts are ignored.


Method Detail

addIgnoredShiftType

public void addIgnoredShiftType(const IloIntSet types) const

This member function adds the set of types types to the set of ignored shift types of the invoking parameter.


addIgnoredShiftType

public void addIgnoredShiftType(IloInt type) const

This member function adds the type type to the set of ignored shift types of the invoking parameter.


clearIgnoredShiftType

public void clearIgnoredShiftType() const

This member function empties the set of ignored shift types of the invoking parameter.


getImpl

public IloActivityShiftParamI * getImpl() const
This member function returns a pointer to the implementation object of the invoking handle.

hasIgnoredShiftType

public IloBool hasIgnoredShiftType() const

This member function returns IloTrue if the set of ignored shift types is not empty.


isIgnoredShiftType

public IloBool isIgnoredShiftType(IloInt type) const

This member function returns IloTrue if the type type belongs to the set of ignored shift types of the invoking parameter. Otherwise, it returns IloFalse.


removeIgnoredShiftType

public void removeIgnoredShiftType(const IloIntSet types) const

This member function removes the set of types types from the set of ignored shift types of the invoking parameter.


removeIgnoredShiftType

public void removeIgnoredShiftType(IloInt type) const

This member function removes the type type from the set of ignored shift types of the invoking parameter.