public class OCBCModelImpl extends java.lang.Object implements OCBCModel, java.io.Serializable
Constructor and Description |
---|
OCBCModelImpl() |
OCBCModelImpl(java.lang.String name) |
OCBCModelImpl(java.lang.String name,
org.jgraph.JGraph graph) |
OCBCModelImpl(java.lang.String name,
org.jgraph.JGraph graph,
java.util.List<MyOriginalCell> graphCells,
java.util.List<ClassNode> allClasses,
java.util.List<ActivityNode> allActivities,
java.util.List<ClassEdge> allClassRelations,
java.util.List<ActivityEdge> allActivityRelations,
java.util.List<AOCEdge> allAOCRelations,
java.util.List<CrelOCEdge> allCrelOCRelations,
java.util.List<CrelRTEdge> allCrelRTRelations) |
Modifier and Type | Method and Description |
---|---|
void |
addActivity(ActivityNode activityNode)
add one activity into the set of all activities in the model
|
void |
addClass(ClassNode classNode)
add one class into the set of all classes in the model
|
void |
addSequentialActivityPair(java.lang.String sourceActivityId,
java.lang.String targetActivityId,
java.lang.String relationType) |
java.lang.String |
checkTwoClassesIfRelated(java.lang.String firstClassNodeId,
java.lang.String secondClassNodeId)
check if two class are related, i.e., there exist a class relation between the two classes
if yes, return the class relation id; if no, return null
|
java.lang.Object |
clone()
Clones this event, i.e.
|
void |
deleteActivity(ActivityNode activityNode)
delete one activity from the set of all activities in the model
|
void |
deleteClass(ClassNode classNode)
delete one class from the set of all classes in the model
|
java.util.Map<java.lang.String,java.util.List<java.lang.String>> |
generateActivityVSRelatedClassListMap()
create a map to record all related class for each activity in the OCBC model
|
java.util.Map<java.lang.String,java.util.List<java.lang.String>> |
generateClassVSRelatedActivityListMap()
create a map to record all related activity for each class in the OCBC model
|
void |
generateTypeVSClassRelationMap() |
ActivityNode |
getActivityById(java.lang.String id)
returns one activity of the id in the model
|
ActivityEdge |
getActivityRelationById(java.lang.String id)
returns one activity relation of the id in the model
|
java.util.List<ActivityEdge> |
getActivityRelationFamilyA(java.lang.String refActicityId,
java.lang.String tarActivityId,
java.lang.String classId)
returns the set of all activity relations with the same reference activity,
target activity and class
|
java.util.List<ActivityEdge> |
getActivityRelationFamilyB(java.lang.String refActicityId,
java.lang.String tarActivityId,
java.lang.String classRelationId)
returns the set of all activity relations with the same reference activity,
target activity and class relation
|
java.util.List<ActivityNode> |
getAllActivities()
returns the set of all activities in the model
|
java.util.List<java.lang.String> |
getAllActivityNames()
returns the set of all activity names in the model
|
java.util.List<ActivityEdge> |
getAllActivityRelations()
returns the set of all activity relations in the model
|
java.util.List<AOCEdge> |
getAllAOCRelations()
returns the set of all AOC relations in the model
|
java.util.List<ClassNode> |
getAllClasses()
returns the set of all classes in the model
|
java.util.List<java.lang.String> |
getAllClassNames()
returns the set of all class names in the model
|
java.util.List<ClassEdge> |
getAllClassRelations()
returns the set of all class relations in the model
|
java.util.List<CrelOCEdge> |
getAllCrelOCRelations()
returns the set of all crelOC relations in the model
|
java.util.List<CrelRTEdge> |
getAllCrelRTRelations()
returns the set of all crelRT relations in the model
|
AOCEdge |
getAOCRelationByActivityIdAndClassId(java.lang.String activityId,
java.lang.String classId)
returns one aoc relation of the activity id and class id in the model
|
ClassNode |
getClassById(java.lang.String id)
returns one class of the id in the model
|
ClassNode |
getClassByName(java.lang.String uniqueClassName)
returns one class of the input name in the model
|
ClassEdge |
getClassRelationById(java.lang.String id)
returns one class relation of the id in the model
|
ClassEdge |
getClassRelationByTwoClassNodes(java.lang.String firstClassNodeId,
java.lang.String secondClassNodeId)
get the class relation which has the input two class nodes
if yes, return the class relation id; if no, return null
|
CrelOCEdge |
getCrelOCRelationByActivityEdgeAndClass(java.lang.String activityEdgeIdInput,
java.lang.String ClassIdInput)
returns the crel oc relaton with the activity edge and class
|
CrelRTEdge |
getCrelRTRelationByActivityEdgeAndClassEdge(java.lang.String activityEdgeIdInput,
java.lang.String ClassEdgeIdInput)
returns the crel rt relaton with the activity edge and class edge
|
org.jgraph.JGraph |
getGraph()
returns the graph of a model
|
java.util.List<MyOriginalCell> |
getGraphCells()
returns the cells of a graph of a model
|
mxGraph |
getGraphX()
returns the graphX of a model
|
OCBCModelDiscovery |
getModelDiscovery() |
ModelDiscoveryResult |
getModelDiscoveryResult() |
java.lang.String |
getModelEnvironment() |
org.w3c.dom.Document |
getModelFile()
get the file of a model
|
java.lang.String |
getModelName()
returns the name of a model
|
java.lang.String |
getModelSource() |
XOCLog |
getModelSourceLog() |
java.lang.String |
getModelString()
get the string of a model
|
java.lang.String |
getModelVersion()
returns the version of a model
|
MyOriginalCell |
getNodeCellById(java.lang.String Id) |
java.util.List<MEdgeCell> |
getRelatedEdgeCellsForOneCell(MyOriginalCell cell)
get related edge cells for one class cell
|
java.util.List<org.processmining.framework.util.Pair<java.lang.String,java.lang.String>> |
getSequentialActivityPairList() |
java.util.List<java.lang.String> |
getTransitiveRelationIdList() |
java.util.Map<java.lang.String,ClassEdge> |
getTypeVSClassRelationMap() |
static org.jgraph.JGraph |
initializeGraph() |
static mxGraph |
initializeGraphX() |
static void |
main(java.lang.String[] str) |
void |
removeModelActivityEdge(java.lang.String activityEdgeId) |
void |
setAllActivities(java.util.List<ActivityNode> allActivities)
sets the set of all activities in the model
|
void |
setAllActivityRelations(java.util.List<ActivityEdge> allActivityRelations)
sets the set of all activity relations in the model
|
void |
setAllAOCRelations(java.util.List<AOCEdge> allAOCRelations)
sets the set of all AOC relations in the model
|
void |
setAllClasses(java.util.List<ClassNode> allClasses)
sets the set of all classes in the model
|
void |
setAllClassRelations(java.util.List<ClassEdge> allClassRelations)
sets the set of all class relations in the model
|
void |
setAllCrelOCRelations(java.util.List<CrelOCEdge> allCrelOCRelations)
sets the set of all crelOC relations in the model
|
void |
setAllCrelRTRelations(java.util.List<CrelRTEdge> allCrelRTRelations)
sets the set of all crelRT relations in the model
|
void |
setGraph(org.jgraph.JGraph graph)
sets the graph of a model
|
void |
setGraphCells(java.util.List<MyOriginalCell> graphCells)
sets the cells of a graph of a model
|
void |
setGraphX(mxGraph graphX)
sets the graphX of a model
|
void |
setModelDiscovery(OCBCModelDiscovery modelDiscovery) |
void |
setModelDiscoveryResult(ModelDiscoveryResult modelDiscoveryResult) |
void |
setModelEnvironment(java.lang.String environment) |
void |
setModelFile(org.w3c.dom.Document modelFile)
sets the file of a model
|
void |
setModelName(java.lang.String name)
sets the name of a model
|
void |
setModelSource(java.lang.String source) |
void |
setModelSourceLog(XOCLog sourceLog) |
void |
setModelString(java.lang.String modelString)
sets the string of a model
|
void |
setModelVersion(java.lang.String version)
sets the version of a model
|
void |
setTransitiveRelationIdList(java.util.List<java.lang.String> transitiveRelationIdList) |
java.lang.String |
transformCardinalityPairListToActicityType(java.util.List<org.processmining.framework.util.Pair<java.lang.Integer,java.lang.Integer>> acticvityCardinalityPairList) |
java.util.List<java.lang.String> |
transformCardinalityPairListToActivityTypeList(java.util.List<org.processmining.framework.util.Pair<java.lang.Integer,java.lang.Integer>> acticvityCardinalityPairList) |
java.util.Map<java.lang.String,java.lang.Double> |
transformCardinalityPairListToActivityTypeVSConfidence(java.util.List<org.processmining.framework.util.Pair<java.lang.Integer,java.lang.Integer>> activityCardinalityPairList) |
java.util.Map<java.lang.String,java.lang.Integer> |
transformCardinalityPairListToConstraintVSNumMap(java.util.List<org.processmining.framework.util.Pair<java.lang.Integer,java.lang.Integer>> acticvityCardinalityPairList) |
public OCBCModelImpl(java.lang.String name, org.jgraph.JGraph graph, java.util.List<MyOriginalCell> graphCells, java.util.List<ClassNode> allClasses, java.util.List<ActivityNode> allActivities, java.util.List<ClassEdge> allClassRelations, java.util.List<ActivityEdge> allActivityRelations, java.util.List<AOCEdge> allAOCRelations, java.util.List<CrelOCEdge> allCrelOCRelations, java.util.List<CrelRTEdge> allCrelRTRelations)
public OCBCModelImpl(java.lang.String name, org.jgraph.JGraph graph)
public OCBCModelImpl(java.lang.String name)
public OCBCModelImpl()
public static org.jgraph.JGraph initializeGraph()
public static mxGraph initializeGraphX()
public java.lang.String getModelEnvironment()
getModelEnvironment
in interface OCBCModel
public void setModelEnvironment(java.lang.String environment)
setModelEnvironment
in interface OCBCModel
public java.lang.String getModelSource()
getModelSource
in interface OCBCModel
public void setModelSource(java.lang.String source)
setModelSource
in interface OCBCModel
public XOCLog getModelSourceLog()
getModelSourceLog
in interface OCBCModel
public void setModelSourceLog(XOCLog sourceLog)
setModelSourceLog
in interface OCBCModel
public ModelDiscoveryResult getModelDiscoveryResult()
getModelDiscoveryResult
in interface OCBCModel
public void setModelDiscoveryResult(ModelDiscoveryResult modelDiscoveryResult)
setModelDiscoveryResult
in interface OCBCModel
public OCBCModelDiscovery getModelDiscovery()
getModelDiscovery
in interface OCBCModel
public void setModelDiscovery(OCBCModelDiscovery modelDiscovery)
setModelDiscovery
in interface OCBCModel
public java.util.List<java.lang.String> getTransitiveRelationIdList()
getTransitiveRelationIdList
in interface OCBCModel
public void setTransitiveRelationIdList(java.util.List<java.lang.String> transitiveRelationIdList)
setTransitiveRelationIdList
in interface OCBCModel
public java.lang.String getModelVersion()
OCBCModel
getModelVersion
in interface OCBCModel
public void setModelVersion(java.lang.String version)
OCBCModel
setModelVersion
in interface OCBCModel
public org.w3c.dom.Document getModelFile()
OCBCModel
getModelFile
in interface OCBCModel
public void setModelFile(org.w3c.dom.Document modelFile)
OCBCModel
setModelFile
in interface OCBCModel
public java.lang.String getModelString()
OCBCModel
getModelString
in interface OCBCModel
public void setModelString(java.lang.String modelString)
OCBCModel
setModelString
in interface OCBCModel
public java.lang.String getModelName()
OCBCModel
getModelName
in interface OCBCModel
public void setModelName(java.lang.String name)
OCBCModel
setModelName
in interface OCBCModel
public org.jgraph.JGraph getGraph()
public void setGraph(org.jgraph.JGraph graph)
public mxGraph getGraphX()
public void setGraphX(mxGraph graphX)
public java.util.List<MyOriginalCell> getGraphCells()
getGraphCells
in interface OCBCModel
public void setGraphCells(java.util.List<MyOriginalCell> graphCells)
setGraphCells
in interface OCBCModel
name
- public java.util.List<ClassNode> getAllClasses()
OCBCModel
getAllClasses
in interface OCBCModel
public java.util.List<java.lang.String> getAllClassNames()
getAllClassNames
in interface OCBCModel
public ClassNode getClassByName(java.lang.String uniqueClassName)
OCBCModel
getClassByName
in interface OCBCModel
public ClassNode getClassById(java.lang.String id)
OCBCModel
getClassById
in interface OCBCModel
public AOCEdge getAOCRelationByActivityIdAndClassId(java.lang.String activityId, java.lang.String classId)
OCBCModel
getAOCRelationByActivityIdAndClassId
in interface OCBCModel
public java.util.List<ActivityNode> getAllActivities()
OCBCModel
getAllActivities
in interface OCBCModel
public ActivityNode getActivityById(java.lang.String id)
OCBCModel
getActivityById
in interface OCBCModel
public java.util.List<java.lang.String> getAllActivityNames()
getAllActivityNames
in interface OCBCModel
public java.util.List<ClassEdge> getAllClassRelations()
OCBCModel
getAllClassRelations
in interface OCBCModel
public ClassEdge getClassRelationById(java.lang.String id)
getClassRelationById
in interface OCBCModel
public java.util.List<ActivityEdge> getAllActivityRelations()
OCBCModel
getAllActivityRelations
in interface OCBCModel
public ActivityEdge getActivityRelationById(java.lang.String id)
OCBCModel
getActivityRelationById
in interface OCBCModel
public java.util.Map<java.lang.String,java.util.List<java.lang.String>> generateClassVSRelatedActivityListMap()
generateClassVSRelatedActivityListMap
in interface OCBCModel
public java.util.Map<java.lang.String,java.util.List<java.lang.String>> generateActivityVSRelatedClassListMap()
generateActivityVSRelatedClassListMap
in interface OCBCModel
public java.util.List<AOCEdge> getAllAOCRelations()
OCBCModel
getAllAOCRelations
in interface OCBCModel
public java.util.List<CrelOCEdge> getAllCrelOCRelations()
OCBCModel
getAllCrelOCRelations
in interface OCBCModel
public java.util.List<CrelRTEdge> getAllCrelRTRelations()
OCBCModel
getAllCrelRTRelations
in interface OCBCModel
public java.util.List<org.processmining.framework.util.Pair<java.lang.String,java.lang.String>> getSequentialActivityPairList()
getSequentialActivityPairList
in interface OCBCModel
public void setAllClasses(java.util.List<ClassNode> allClasses)
OCBCModel
setAllClasses
in interface OCBCModel
public void setAllActivities(java.util.List<ActivityNode> allActivities)
OCBCModel
setAllActivities
in interface OCBCModel
public void setAllClassRelations(java.util.List<ClassEdge> allClassRelations)
OCBCModel
setAllClassRelations
in interface OCBCModel
public void setAllActivityRelations(java.util.List<ActivityEdge> allActivityRelations)
OCBCModel
setAllActivityRelations
in interface OCBCModel
public void setAllAOCRelations(java.util.List<AOCEdge> allAOCRelations)
OCBCModel
setAllAOCRelations
in interface OCBCModel
public void setAllCrelOCRelations(java.util.List<CrelOCEdge> allCrelOCRelations)
OCBCModel
setAllCrelOCRelations
in interface OCBCModel
public void setAllCrelRTRelations(java.util.List<CrelRTEdge> allCrelRTRelations)
OCBCModel
setAllCrelRTRelations
in interface OCBCModel
public void addClass(ClassNode classNode)
public void addActivity(ActivityNode activityNode)
addActivity
in interface OCBCModel
public void deleteClass(ClassNode classNode)
deleteClass
in interface OCBCModel
public void deleteActivity(ActivityNode activityNode)
deleteActivity
in interface OCBCModel
public java.util.List<MEdgeCell> getRelatedEdgeCellsForOneCell(MyOriginalCell cell)
getRelatedEdgeCellsForOneCell
in interface OCBCModel
public java.lang.Object clone()
public java.lang.String transformCardinalityPairListToActicityType(java.util.List<org.processmining.framework.util.Pair<java.lang.Integer,java.lang.Integer>> acticvityCardinalityPairList)
transformCardinalityPairListToActicityType
in interface OCBCModel
public java.util.List<java.lang.String> transformCardinalityPairListToActivityTypeList(java.util.List<org.processmining.framework.util.Pair<java.lang.Integer,java.lang.Integer>> acticvityCardinalityPairList)
transformCardinalityPairListToActivityTypeList
in interface OCBCModel
public java.util.Map<java.lang.String,java.lang.Double> transformCardinalityPairListToActivityTypeVSConfidence(java.util.List<org.processmining.framework.util.Pair<java.lang.Integer,java.lang.Integer>> activityCardinalityPairList)
transformCardinalityPairListToActivityTypeVSConfidence
in interface OCBCModel
public java.util.Map<java.lang.String,java.lang.Integer> transformCardinalityPairListToConstraintVSNumMap(java.util.List<org.processmining.framework.util.Pair<java.lang.Integer,java.lang.Integer>> acticvityCardinalityPairList)
transformCardinalityPairListToConstraintVSNumMap
in interface OCBCModel
acticvityCardinalityPairList
- public java.lang.String checkTwoClassesIfRelated(java.lang.String firstClassNodeId, java.lang.String secondClassNodeId)
checkTwoClassesIfRelated
in interface OCBCModel
public ClassEdge getClassRelationByTwoClassNodes(java.lang.String firstClassNodeId, java.lang.String secondClassNodeId)
getClassRelationByTwoClassNodes
in interface OCBCModel
firstClassNodeId
- secondClassNodeId
- public void removeModelActivityEdge(java.lang.String activityEdgeId)
removeModelActivityEdge
in interface OCBCModel
public void addSequentialActivityPair(java.lang.String sourceActivityId, java.lang.String targetActivityId, java.lang.String relationType)
addSequentialActivityPair
in interface OCBCModel
public MyOriginalCell getNodeCellById(java.lang.String Id)
getNodeCellById
in interface OCBCModel
public java.util.List<ActivityEdge> getActivityRelationFamilyA(java.lang.String refActicityId, java.lang.String tarActivityId, java.lang.String classId)
getActivityRelationFamilyA
in interface OCBCModel
public java.util.List<ActivityEdge> getActivityRelationFamilyB(java.lang.String refActicityId, java.lang.String tarActivityId, java.lang.String classRelationId)
getActivityRelationFamilyB
in interface OCBCModel
public CrelOCEdge getCrelOCRelationByActivityEdgeAndClass(java.lang.String activityEdgeIdInput, java.lang.String ClassIdInput)
getCrelOCRelationByActivityEdgeAndClass
in interface OCBCModel
public CrelRTEdge getCrelRTRelationByActivityEdgeAndClassEdge(java.lang.String activityEdgeIdInput, java.lang.String ClassEdgeIdInput)
getCrelRTRelationByActivityEdgeAndClassEdge
in interface OCBCModel
public void generateTypeVSClassRelationMap()
generateTypeVSClassRelationMap
in interface OCBCModel
public java.util.Map<java.lang.String,ClassEdge> getTypeVSClassRelationMap()
getTypeVSClassRelationMap
in interface OCBCModel
public static void main(java.lang.String[] str) throws java.io.FileNotFoundException
java.io.FileNotFoundException