Constructor and Description |
---|
Task(java.lang.String _name,
java.lang.Float _u)
Instantiates a new task.
|
Task(java.lang.String _name,
java.lang.Float _c,
java.lang.Float _d,
java.lang.Float _t,
java.lang.Float _offset,
Bin _owner)
Instantiates a new task.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Task o) |
java.lang.String |
getId()
Gets the id.
|
Bin |
getOwner()
Gets the owner.
|
java.lang.Float |
getT()
Gets the t.
|
java.lang.Float |
getU()
Gets the u.
|
void |
setOwner(Bin owner)
Sets the owner.
|
void |
setT(java.lang.Float t)
Sets the t.
|
void |
switchToDual()
Switch to dual.
|
java.lang.String |
toString() |
public Task(java.lang.String _name, java.lang.Float _c, java.lang.Float _d, java.lang.Float _t, java.lang.Float _offset, Bin _owner)
_name
- the name_c
- the c_d
- the d_t
- the t_offset
- the offset_owner
- the ownerpublic Task(java.lang.String _name, java.lang.Float _u)
_name
- the name_u
- the upublic void setOwner(Bin owner)
owner
- the new ownerpublic void setT(java.lang.Float t)
t
- the new tpublic Bin getOwner()
public java.lang.Float getT()
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.Float getU()
public java.lang.String getId()
public void switchToDual()