public class Task
extends Object
Scenario
. The following table lists the required and
optional properties of a task.
Required? | Name | Description | Quantity |
---|---|---|---|
yes | action | A MINER action | 1..N |
no | name | The name of the task | 0..1 |
no | description | The description of the task | 0..1 |
no | deltaStart | Start offset of the task w.r.t its parent scenario | 0..1 |
no | duration | The duration of the task | 0..1 |
no | keyword | The keywords of the task | 0..N |
Constructor and Description |
---|
Task()
Default constructor.
|
Task(String name)
Creates a new task and set its name.
|
Modifier and Type | Method and Description |
---|---|
Action |
addAction()
Creates a new MINER action and adds it to this task.
|
Action |
addAction(Action action)
Adds a MINER action to this task.
|
Action |
addAction(String name)
Creates a new MINER action with the given
name and adds it
to this task. |
void |
addKeyword(String keyword)
Adds a keyword for this task.
|
Action |
getActionByName(String actionName)
Finds an action named
actionName that is part of this task. |
Collection<Action> |
getActions()
Gets all actions that are included in this task.
|
Date |
getCreated()
Gets the date when the Task was initially created.
|
double |
getDeltaStart()
Gets the offset in [s] between the start time of the parent task
and this action.
|
String |
getDescription()
Gets the description of the task.
|
double |
getDuration()
Gets the duration in [s] of the task.
|
int |
getID()
Gets the ID that identifies the task at the MINER core.
|
List<String> |
getKeywords()
Gets the keywords of this task.
|
Date |
getModified()
Gets the date when the task was last modified.
|
String |
getName()
Gets the name of the task.
|
void |
setDeltaStart(double deltastart)
Specifies that the task should start
deltaStart [s]
later than its parent scenario. |
void |
setDescription(String description)
Sets the description of the task.
|
void |
setDuration(double duration)
Sets the duration of this Task in [s].
|
void |
setName(String name)
Sets the name of the task.
|
public Task()
public Task(String name)
name
- the namepublic void setName(String name)
name
- the namepublic String getName()
public void setDescription(String description)
description
- the descriptionpublic String getDescription()
public void setDeltaStart(double deltastart)
deltaStart
[s]
later than its parent scenario. If this method is not used (or if
deltaStart==0
) the parent scenario and this task start at
the same time.deltastart
- the offset in secondspublic double getDeltaStart()
public void setDuration(double duration)
duration==0
) then the Task runs as long as its parent
Scenario.duration
- the duration in secondspublic double getDuration()
public void addKeyword(String keyword)
keyword
- the keywordpublic List<String> getKeywords()
public Action addAction()
public Action addAction(String name)
name
and adds it
to this task.name
- the name of the actionpublic Action addAction(Action action)
action
- the MINER actionaction
public Date getCreated()
public Date getModified()
public int getID()
public Collection<Action> getActions()
public Action getActionByName(String actionName)
actionName
that is part of this task.actionName
- the name of action to search forCopyright (c) Salzburg Research Forschungsgesellschaft mbH. All rights reserved.