public class WorkflowPlanner extends SimEntity
| Modifier and Type | Field and Description |
|---|---|
protected WorkflowParser |
parser
The workflow parser.
|
protected java.util.List<Task> |
taskList
The task list.
|
| Constructor and Description |
|---|
WorkflowPlanner(java.lang.String name)
Created a new WorkflowPlanner object.
|
WorkflowPlanner(java.lang.String name,
int schedulers) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
finishExecution()
Send an internal event communicating the end of the simulation.
|
ClusteringEngine |
getClusteringEngine()
Gets the clustering engine
|
int |
getClusteringEngineId()
Gets the clustering engine id
|
java.util.List<Task> |
getTaskList()
Gets the task list.
|
WorkflowEngine |
getWorkflowEngine()
Gets the workflow engine
|
int |
getWorkflowEngineId()
Gets the workflow engine id
|
WorkflowParser |
getWorkflowParser()
Gets the workflow parser
|
void |
processEvent(SimEvent ev)
Processes events available for this Broker.
|
protected void |
processOtherEvent(SimEvent ev)
Overrides this method when making a new and different type of Broker.
|
protected void |
setTaskList(java.util.List<Task> taskList)
Sets the task list.
|
void |
shutdownEntity()
This method is invoked by the
Simulation before the simulation finishes. |
void |
startEntity()
This method is invoked by the
Simulation class when the simulation is started. |
cancelEvent, clone, getEventBuffer, getId, getName, getNextEvent, getNextEvent, getState, numEventsWaiting, numEventsWaiting, pause, run, schedule, schedule, schedule, schedule, scheduleFirst, scheduleFirst, scheduleFirst, scheduleFirst, scheduleFirstNow, scheduleFirstNow, scheduleFirstNow, scheduleFirstNow, scheduleNow, scheduleNow, scheduleNow, scheduleNow, selectEvent, send, send, send, send, sendNow, sendNow, sendNow, sendNow, setEventBuffer, setId, setState, waitForEventprotected java.util.List<Task> taskList
protected WorkflowParser parser
public WorkflowPlanner(java.lang.String name)
throws java.lang.Exception
name - name to be associated with this entity (as required by
Sim_entity class from simjava package)java.lang.Exception - the exceptionpublic WorkflowPlanner(java.lang.String name,
int schedulers)
throws java.lang.Exception
java.lang.Exceptionpublic int getClusteringEngineId()
public ClusteringEngine getClusteringEngine()
public WorkflowParser getWorkflowParser()
public int getWorkflowEngineId()
public WorkflowEngine getWorkflowEngine()
public void processEvent(SimEvent ev)
processEvent in class SimEntityev - a SimEvent objectprotected void processOtherEvent(SimEvent ev)
#body() for incoming unknown tags.ev - a SimEvent objectprotected void finishExecution()
public void shutdownEntity()
SimEntitySimulation before the simulation finishes. If you want
to save data in log files this is the method in which the corresponding code would be placed.shutdownEntity in class SimEntitypublic void startEntity()
SimEntitySimulation class when the simulation is started. This
method should be responsible for starting the entity up.startEntity in class SimEntitypublic java.util.List<Task> getTaskList()
T - the generic typeprotected void setTaskList(java.util.List<Task> taskList)
T - the generic typecloudletList - the new task list