public class ProcessScheduler extends Object implements IProcessScheduler
| Constructor and Description |
|---|
ProcessScheduler(BPSimulator bpSimulator)
Constructor with BPSimulator
|
| Modifier and Type | Method and Description |
|---|---|
void |
checkForEnabledOrJoinActivities(ProcessActivity fromActivity)
Checks if completion or suspension of activity enables OR joins and processes
the enabled OR joins
|
protected SubProcessInstance |
createSubProcessInstance(int subProcessIndex,
ProcessInstance parentProcess)
Creates an instance of a sub-process.
|
int |
getTotalProcessedEvents()
Returns number of processes events in the simulation
|
void |
initProcessInstance(Date completionTime)
Creates a new process instance with given start/completion time for the start
event.
|
void |
processActivities(List<ProcessActivity> activities)
Processes a list of activities to he handled at the same time.
|
void |
setPostConditions(PostConditionTable postConditions) |
void |
setPreConditions(PreConditionTable preConditions) |
void |
setProcessLogger(IProcessLogger processLogger) |
void |
setResourceManager(IResourceManager resourceManager) |
public ProcessScheduler(BPSimulator bpSimulator)
bpSimulator - instance of BPSimulator that can be used to accessed the
modelpublic void processActivities(List<ProcessActivity> activities) throws BPSimulatorException, InterruptedException
IProcessSchedulerprocessActivities in interface IProcessScheduleractivities - Activities to processBPSimulatorExceptionInterruptedExceptionpublic void checkForEnabledOrJoinActivities(ProcessActivity fromActivity) throws BPSimulatorException, InterruptedException
fromActivity - activity to check forBPSimulatorExceptionInterruptedExceptionpublic void setResourceManager(IResourceManager resourceManager)
public void setProcessLogger(IProcessLogger processLogger)
public void setPreConditions(PreConditionTable preConditions)
public void setPostConditions(PostConditionTable postConditions)
public void initProcessInstance(Date completionTime) throws BPSimulatorException
completionTime - time when start event of the instance should be
completedBPSimulatorExceptionprotected SubProcessInstance createSubProcessInstance(int subProcessIndex, ProcessInstance parentProcess) throws BPSimulatorException
subProcessIndex - element index of the sub-process activityparentProcess - process instance that starts the sub-processBPSimulatorExceptionpublic int getTotalProcessedEvents()
Copyright © 2020 Pivotal Software, Inc.. All rights reserved.