__init__(self,
name='
' ,
duedate=' inf ' ,
weight=1)
(Constructor)
| source code
|
OptSeq activity class.
You can create an activity object by adding an activity to a model
(using Model.addActivity) instead of by using an Activity
constructor.
-
Arguments:
-
name: Name of activity. Remark that strings in OptSeq are
restricted to a-z, A-Z, 0-9,[],_ and @. Also you cannot use
"source" and "sink" for the name of an
activity.
-
duedate(optional): Duedate of activity. A non-nagative integer or
string "inf."
-
weight(optional): Panalty of one unit of tardiness. Positive
integer.
|