public interface IProcessModelParser
Modifier and Type | Method and Description |
---|---|
List<Resource> |
getAllResources()
Returns all available resources.
|
Integer[] |
getAllStartEventIndexes()
Returns start event indexes for all models
|
DistributionInfo |
getArrivalRateDistributionInfo()
Gets distribution information for arrival rate.
|
TimeTable |
getArrivalRateTimeTable()
Return timetable with conditions in which time range process instances are
created
|
Collaboration[] |
getCollaborations()
Returns all collaborations between elements in the process model
|
double |
getEdgeProbability(String edgeId)
Returns branching probability for an edge
|
double |
getElementCostThreshold(String elementId)
Return cost threshold for element.
|
DistributionInfo |
getElementDurationInformation(String elementId)
Returns duration info for element in the process model
|
double |
getElementDurationThreshold(String elementId)
Return duration threshold for element in seconds.
|
double |
getElementFixedCost(String elementId)
Return fixed (constant) cost for executing element
|
String |
getElementSimpleName(Integer verticeIndex)
Returns a simple (human-friendly) name for element
|
int |
getErrorHandlerActivity(int processIndex,
int subProcessIndex,
String errorCode)
Returns index of error handler event
|
EventAction |
getEventAction(Integer vertex)
Returns action/trigger for event
|
EventType |
getEventType(Integer vertex)
Returns type of the event for element
|
int |
getFirstProcessInstanceForStats()
First process instance to start calculating statistics from (included).
|
Graph |
getGraph()
Returns process graph
|
int |
getLastProcessInstanceForStats()
Last process instance to calculate statistics from (excluded).
|
String |
getModelElementId(Integer vertex)
Returns id from the model for a vertice index
|
Integer |
getParentBoundaryActivity(Integer boundaryEventIndex)
Returns index of activity to which the boundary event is assigned
|
String |
getProcessId(Integer verticeIndex)
Returns process id for given element
|
Integer[] |
getStartEventIndexesForMainProcess()
Returns start event indexes for the main process model
|
Date |
getStartTime()
Returns the start timestamp for simulation.
|
Integer[] |
getSubProcessStartActivityIndexes(Integer verticeIndex)
Returns indexes of start events for sub-process
|
String |
getTaskResourceId(String activityId)
Returns resource name for the activity
|
int |
getTotalProcessInstances()
Returns total number of process instances to create
|
boolean |
isApplicable()
Detect if parser can be applied to the BP model and contains parser specific
simulation info
|
boolean |
isChoice(Integer verticeIndex)
Returns if element is XOR gateway
|
boolean |
isEventGateway(Integer verticeIndex)
Returns if element is event based gateway
|
boolean |
isInterruptingEvent(Integer verticeIndex)
Returns if given event is an interrupting event
|
boolean |
isOR(Integer verticeIndex)
Returns if element is an OR gateway
|
boolean |
isParallel(Integer verticeIndex)
Returns if element is parallel gateway
|
boolean |
isSubProcess(Integer verticeIndex)
Returns if element is a sub-process
|
boolean |
isTask(String name)
Returns if element is a task
|
void |
parse()
Parse the model
|
void |
setFiles(List<String> fileNames)
Set input file names to parse
|
void |
setInputStreams(List<InputStream> inputStreams)
Set input streams to parse
|
Graph getGraph()
Collaboration[] getCollaborations()
int getErrorHandlerActivity(int processIndex, int subProcessIndex, String errorCode)
processIndex
- index of parent processsubProcessIndex
- index of sub-processerrorCode
- event code to handleEventAction getEventAction(Integer vertex)
vertex
- element indexEventType getEventType(Integer vertex)
vertex
- element indexString getModelElementId(Integer vertex)
vertex
- element index from process graphInteger getParentBoundaryActivity(Integer boundaryEventIndex)
boundaryEventIndex
- index of a boundary eventString getProcessId(Integer verticeIndex)
verticeIndex
- index of elementString getElementSimpleName(Integer verticeIndex)
verticeIndex
- index of elementInteger[] getAllStartEventIndexes()
Integer[] getStartEventIndexesForMainProcess() throws ProcessValidationException
ProcessValidationException
Integer[] getSubProcessStartActivityIndexes(Integer verticeIndex)
verticeIndex
- index of sub-process activityboolean isInterruptingEvent(Integer verticeIndex)
verticeIndex
- index of an eventboolean isChoice(Integer verticeIndex)
vertex
- element index from process graphboolean isEventGateway(Integer verticeIndex)
vertex
- element index from process graphboolean isParallel(Integer verticeIndex)
verticeIndex
- element index from process graphboolean isOR(Integer verticeIndex)
verticeIndex
- index of an elementboolean isTask(String name)
name
- name of the taskboolean isSubProcess(Integer verticeIndex)
verticeIndex
- index of elementList<Resource> getAllResources() throws ProcessValidationException
ProcessValidationException
- if exception occurs during resource
parsingDistributionInfo getArrivalRateDistributionInfo()
double getEdgeProbability(String edgeId) throws ProcessValidationException
edgeId
- edge id from the modeProcessValidationException
DistributionInfo getElementDurationInformation(String elementId)
activityId
- element identifier in the process modelString getTaskResourceId(String activityId)
activityId
- activity id from the process modelint getTotalProcessInstances()
Date getStartTime() throws ProcessValidationException
ProcessValidationException
TimeTable getArrivalRateTimeTable() throws ProcessValidationException
ProcessValidationException
double getElementFixedCost(String elementId)
elementId
- id of the element in the process modeldouble getElementCostThreshold(String elementId)
elementId
- id of the element in the process modeldouble getElementDurationThreshold(String elementId)
elementId
- id of the element in the process modelvoid parse() throws ModelParseException, ProcessValidationException
boolean isApplicable()
void setInputStreams(List<InputStream> inputStreams)
inputStreams
- list of input streams to parsevoid setFiles(List<String> fileNames)
fileNames
- list of file names to parseint getFirstProcessInstanceForStats()
int getLastProcessInstanceForStats()
Copyright © 2020 Pivotal Software, Inc.. All rights reserved.