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
IProcessScheduler
processActivities
in interface IProcessScheduler
activities
- Activities to processBPSimulatorException
InterruptedException
public void checkForEnabledOrJoinActivities(ProcessActivity fromActivity) throws BPSimulatorException, InterruptedException
fromActivity
- activity to check forBPSimulatorException
InterruptedException
public 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
completedBPSimulatorException
protected SubProcessInstance createSubProcessInstance(int subProcessIndex, ProcessInstance parentProcess) throws BPSimulatorException
subProcessIndex
- element index of the sub-process activityparentProcess
- process instance that starts the sub-processBPSimulatorException
public int getTotalProcessedEvents()
Copyright © 2020 Pivotal Software, Inc.. All rights reserved.