org.jbpm.sim.entity
Class TaskInstanceEntity

java.lang.Object
  extended by desmoj.core.simulator.NamedObject
      extended by desmoj.core.simulator.ModelComponent
          extended by desmoj.core.simulator.Schedulable
              extended by desmoj.core.simulator.Entity
                  extended by org.jbpm.sim.entity.ResourceUsingEntity
                      extended by org.jbpm.sim.entity.TaskInstanceEntity

public class TaskInstanceEntity
extends ResourceUsingEntity


Constructor Summary
TaskInstanceEntity(desmoj.core.simulator.Model owner, TaskInstance taskInstance)
           
 
Method Summary
 void doEnd()
          start the "work", whatever it is (for example start working on a TaskInstance)
protected  void doStart()
          start the "work", whatever it is (for example start working on a TaskInstance)
 java.lang.Object getEntityObject()
           
protected  ResourceRequirement[] getRequiredResources()
           
 TaskInstance getTaskInstance()
           
 void startTaskAndScheduleCompletion()
           
 
Methods inherited from class org.jbpm.sim.entity.ResourceUsingEntity
acquireResourcesAndStart, end, getJbpmModel, getWaitTime, getWorkTime, releaseResources, resourceReleased, start
 
Methods inherited from class desmoj.core.simulator.Entity
getPriority, isEqual, isLarger, isLargerOrEqual, isNotEqual, isSimProcess, isSmaller, isSmallerOrEqual, numQueues, schedule, scheduleAfter, scheduleBefore, setPriority
 
Methods inherited from class desmoj.core.simulator.Schedulable
cancel, isCurrent, isScheduled, nextEntity, nextEvent, nextSchedulable, rename, reSchedule, scheduledAt
 
Methods inherited from class desmoj.core.simulator.ModelComponent
current, currentEntity, currentEvent, currentModel, currentSimProcess, currentTime, debugIsOn, debugOff, debugOn, epsilon, getModel, isExperimentCompatible, isModelCompatible, sendDebugNote, sendMessage, sendTraceNote, sendWarning, skipTraceNote, skipTraceNote, traceIsOn, traceOff, traceOn
 
Methods inherited from class desmoj.core.simulator.NamedObject
getName, getQuotedName, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TaskInstanceEntity

public TaskInstanceEntity(desmoj.core.simulator.Model owner,
                          TaskInstance taskInstance)
Method Detail

getEntityObject

public java.lang.Object getEntityObject()
Specified by:
getEntityObject in class ResourceUsingEntity
Returns:
the correct type name for this entity (for example Task #47), not the name of this instance (for example TaskInstance #347)

getTaskInstance

public TaskInstance getTaskInstance()

doStart

protected void doStart()
Description copied from class: ResourceUsingEntity
start the "work", whatever it is (for example start working on a TaskInstance)

Specified by:
doStart in class ResourceUsingEntity

startTaskAndScheduleCompletion

public void startTaskAndScheduleCompletion()

getRequiredResources

protected ResourceRequirement[] getRequiredResources()
Specified by:
getRequiredResources in class ResourceUsingEntity

doEnd

public void doEnd()
Description copied from class: ResourceUsingEntity
start the "work", whatever it is (for example start working on a TaskInstance)

Specified by:
doEnd in class ResourceUsingEntity


Copyright © 2010 JBoss Community. All Rights Reserved.