|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.processmining.exporting.petrinet.cpnexport.HLImplementation.HLTransition
public class HLTransition
Defines the data operations that are available for a high-level activity. For this implementation of the HighLevelActivity and the implementation of the HighLevelProcess the following usage contracts exists.
Nested Class Summary | |
---|---|
static class |
HLTransition.ModificationType
An enumeration type for whether a data attribute that is linked to a transition has to be resampled or reused |
Constructor Summary | |
---|---|
HLTransition(HLPetriNet parent)
Default constructor. |
Method Summary | |
---|---|
void |
addDataAttribute(HighLevelDataAttribute att)
Adds a new data attribute to this activity. |
java.lang.Object |
clone()
Makes a shallow copy of the object |
boolean |
equals(java.lang.Object obj)
Determines when two highLevelActivities are the same. |
void |
existsDataDependency(boolean dep)
Indicate whether a data dependency exists for this transition |
void |
existsProbabilityDependency(boolean dep)
Indicate whether a possibility dependency exists for this transition |
java.util.List<HighLevelDataAttribute> |
getDataAttributes()
Retrieves the list of data attributes available for this activity. |
Distribution |
getExecutionTime()
Retrieves the distribution of the execution time for this activity. |
int |
getFrequencyDependency()
Sets the frequency dependency specified for this activity. |
javax.swing.JPanel |
getFrequencyPanel()
A panel representing this activity as a frequency dependency. |
HighLevelGroup |
getGroup()
Retrieves the group for this activity. |
HLTransition.ModificationType |
getModificationTypeForDataAttribute(HighLevelDataAttribute att)
Retrieves for the specified data attribute its modification type |
java.lang.String |
getName()
Retrieves the name of the activity |
javax.swing.JPanel |
getPanel()
Retrieves the GUI panel representing this object. |
Distribution |
getSojournTime()
Retrieves the distribution of the sojourn time for this activity. |
Distribution |
getWaitingTime()
Retrieves the distribution of the waiting time for this activity. |
boolean |
hasDataDependency()
Retrieves whether a data dependency exists for this transition |
int |
hashCode()
Retrieves the hashcode for the object. |
boolean |
hasProbabilityDependency()
Retrieves whether a probability dependency exists for this transition |
java.lang.Object |
partialClone()
Partially clones the object. |
void |
removeAllDataAttributes()
Remove all data attributes from this transition. |
boolean |
removeDataAttribute(HighLevelDataAttribute att)
Removes the given data attribute from this activity. |
void |
removeGroup()
Removes the group from this activity. |
boolean |
removeGroup(HighLevelGroup grp)
Removes the given group from this activity. |
void |
setExecutionTime(Distribution dist)
Provides a distribution of the execution time for this activity. |
void |
setFrequencyDependency(int freq)
Adds a frequency dependency to this activity. Note that it is assumed that the frequency value is not modified via this method anymore as soon as it is displayed as a GUI property for manual manupulation. |
void |
setGroup(HighLevelGroup group)
Defines a group for this activity. |
void |
setModificationType(HighLevelDataAttribute att,
HLTransition.ModificationType modType)
Sets the modification type for the specified data attribute. |
void |
setName(java.lang.String name)
Sets the name of the activity |
void |
setParentProcess(HighLevelProcess parent)
Sets the parent process for this transition |
void |
setSojournTime(Distribution dist)
Provides a distribution of the sojourn time for this activity. |
void |
setWaitingTime(Distribution dist)
Provides a distribution of the waiting time for this activity. |
java.lang.String |
toString()
Returns the name of this high level transtion. |
void |
updateGUI()
This method will be called as soon as the associated GUI property has changed. |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public HLTransition(HLPetriNet parent)
parent
- the petri net based simulation modelMethod Detail |
---|
public void setName(java.lang.String name)
HighLevelActivity
setName
in interface HighLevelActivity
name
- String the namepublic java.lang.String getName()
HighLevelActivity
getName
in interface HighLevelActivity
public void setParentProcess(HighLevelProcess parent)
setParentProcess
in interface HighLevelActivity
parent
- HLPetriNet the parent processpublic java.lang.Object clone()
clone
in interface HighLevelActivity
clone
in class java.lang.Object
public java.lang.Object partialClone()
partialClone
in interface HighLevelActivity
public void setExecutionTime(Distribution dist)
HighLevelActivity
setExecutionTime
in interface HighLevelActivity
dist
- the distribution of the execution timeHighLevelActivity.setWaitingTime(Distribution)
,
HighLevelActivity.setSojournTime(Distribution)
,
HighLevelProcess#setTimeUnit()
public Distribution getExecutionTime()
HighLevelActivity
getExecutionTime
in interface HighLevelActivity
HighLevelActivity.getWaitingTime()
,
HighLevelActivity.getSojournTime()
,
HighLevelProcess.getTimeUnit()
public void setWaitingTime(Distribution dist)
HighLevelActivity
setWaitingTime
in interface HighLevelActivity
dist
- the distribution of the waiting timeHighLevelActivity.setExecutionTime(Distribution)
,
HighLevelActivity.setSojournTime(Distribution)
,
HighLevelProcess#setTimeUnit()
public Distribution getWaitingTime()
HighLevelActivity
getWaitingTime
in interface HighLevelActivity
HighLevelActivity.getExecutionTime()
,
HighLevelActivity.getSojournTime()
,
HighLevelProcess.getTimeUnit()
public void setSojournTime(Distribution dist)
HighLevelActivity
setSojournTime
in interface HighLevelActivity
dist
- the distribution of the sojourn timeHighLevelActivity.setExecutionTime(Distribution)
,
HighLevelActivity.setWaitingTime(Distribution)
,
HighLevelProcess#setTimeUnit()
public Distribution getSojournTime()
HighLevelActivity
getSojournTime
in interface HighLevelActivity
HighLevelActivity.getExecutionTime()
,
HighLevelActivity.getWaitingTime()
,
HighLevelProcess.getTimeUnit()
public void setFrequencyDependency(int freq)
setFrequencyDependency
in interface HighLevelActivity
freq
- the frequency dependency to be addedHighLevelProcess#addDataDependency(DataDependency)
,
HighLevelProcess#addProbabilityDependency(ProbabilityDependency)
public int getFrequencyDependency()
HighLevelActivity
getFrequencyDependency
in interface HighLevelActivity
HighLevelProcess.getDataDependencies()
,
HighLevelProcess.getProbabilityDependencies()
public void addDataAttribute(HighLevelDataAttribute att)
HighLevelActivity
addDataAttribute
in interface HighLevelActivity
att
- the attributed to be addedpublic boolean removeDataAttribute(HighLevelDataAttribute att)
HighLevelActivity
removeDataAttribute
in interface HighLevelActivity
att
- the attribute to be removed
true
if the data attribute was found and removed,
false
otherwisepublic java.util.List<HighLevelDataAttribute> getDataAttributes()
HighLevelActivity
getDataAttributes
in interface HighLevelActivity
public void setGroup(HighLevelGroup group)
HighLevelActivity
setGroup
in interface HighLevelActivity
group
- the group of resources that may execute this activitypublic HighLevelGroup getGroup()
HighLevelActivity
getGroup
in interface HighLevelActivity
Null
otherwisepublic void setModificationType(HighLevelDataAttribute att, HLTransition.ModificationType modType)
att
- HighLevelDataAttribute the data attribute for which we want to define the
modification typemodType
- ModificationType the modification type for the data attributepublic HLTransition.ModificationType getModificationTypeForDataAttribute(HighLevelDataAttribute att)
att
- HighLevelDataAttribute the data attribute for which we want to
obtain its modification type
null
if the data attribute is not defined for this HLTransitionpublic void updateGUI()
GuiNotificationTarget
updateGUI
in interface GuiNotificationTarget
public javax.swing.JPanel getPanel()
GuiDisplayable
getPanel
in interface GuiDisplayable
public void removeAllDataAttributes()
removeAllDataAttributes
in interface HighLevelActivity
public void existsDataDependency(boolean dep)
dep
- boolean true
if yes, false
otherwisepublic boolean hasDataDependency()
true
if a data dependency exists, false
otherwisepublic void existsProbabilityDependency(boolean dep)
dep
- boolean true
if yes, false
otherwisepublic boolean hasProbabilityDependency()
true
if a probability dependency exists, false
otherwisepublic javax.swing.JPanel getFrequencyPanel()
public java.lang.String toString()
toString
in interface HighLevelActivity
toString
in class java.lang.Object
public boolean removeGroup(HighLevelGroup grp)
removeGroup
in interface HighLevelActivity
grp
- the group to be removed
true
if the group was found and removed, false
otherwisepublic void removeGroup()
public boolean equals(java.lang.Object obj)
HighLevelActivity
equals
in interface HighLevelActivity
equals
in class java.lang.Object
obj
- Object
public int hashCode()
HighLevelActivity
hashCode
in interface HighLevelActivity
hashCode
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |