public class YPDTask extends YPDNode implements org.processmining.models.shapes.Decorated
Modifier and Type | Field and Description |
---|---|
static int |
BRANCHINGBOXWIDTH |
static int |
MAXLABELCHAR |
static int |
MINHEIGHT |
static int |
PADDINGFROMBOXTOTEXT
GUI RELATED VARIABLES
|
static int |
STANDARDHEIGHT |
static int |
STANDARDWIDTH |
static int |
TEXTHEIGHT |
Constructor and Description |
---|
YPDTask(org.processmining.models.graphbased.directed.AbstractDirectedGraph<YPDNode,YPDEdge<? extends YPDNode,? extends YPDNode>> net,
java.lang.String label)
Default constructor
|
Modifier and Type | Method and Description |
---|---|
void |
addAllNodeMapping(java.util.Set<org.deckfour.xes.classification.XEventClass> setOfEventClass)
Add all eventclass ini setOfEventClass to this node
|
boolean |
addNodeMapping(org.deckfour.xes.classification.XEventClass newEventClass)
Add a new eventClass to this node
|
void |
decorate(java.awt.Graphics2D g2d,
double x,
double y,
double width,
double height)
GUI related methods
|
void |
decrementActivationFreq()
decrement number of times where there is an event which correspond to
this node
|
void |
decrementANDJOINrf()
decrement frequency of ANDJOIN by 1
|
void |
decrementANDSPLITrf()
decrement frequency of ANDSPLIT by 1
|
void |
decrementFreqCaseHasThisNode()
decrement frequency of cases in which this node occurs
|
void |
decrementInitializationFreq()
decrement number of times the node is executed first in a case
|
void |
decrementNumberOfPerformer()
decrement number of resources which perform an activity in this node
|
void |
decrementORJOINrf()
decrement frequency of ORJOIN by 1
|
void |
decrementORSPLITrf()
decrement frequency of ORSPLIT
|
void |
decrementTerminationFreq()
decrement number of times the node is executed last in a case
|
void |
decrementXORJOINrf()
decrement frequency of XORJOIN by 1
|
void |
decrementXORSPLITrf()
decrement frequency of XORSPLIT by 1
|
int |
getActivationFreq() |
int |
getAggregatedEventClassFreq()
get the sum of frequency of event classes which refer to this node
|
int |
getANDJOINrf()
get frequency of ANDJOIN
|
int |
getANDSPLITrf()
get frequency of ANDSPLIT
|
double |
getAvgThroughput()
get average throughput of this node
|
java.awt.Shape[] |
getBranchingIndicatorBoxes(double x,
double y,
double heightOfSplitBoxes)
return branching indicator box
|
int |
getDivider() |
java.util.List<org.deckfour.xes.classification.XEventClass> |
getEventClasses() |
int |
getEventClassFrequency(org.deckfour.xes.classification.XEventClass eventClass,
int frequency)
get frequency of event class
|
int |
getFreqCaseHasThisNode() |
java.util.List<java.lang.Integer> |
getFreqEventClasses() |
java.lang.String |
getInfo()
return info for this node
|
int |
getInitializationFreq() |
java.lang.String |
getLabel()
get Label of the node
|
int |
getMaxFreqEventClass() |
int |
getNumberOfCases() |
int |
getNumberOfPerformer() |
int |
getORJOINrf()
get frequency of ORJOIN
|
int |
getORSPLITrf()
get frequency of ORSPLIT
|
double |
getSynchronizationTime()
get average synchronization time of this node
|
double |
getSynchronizationTimeHigh() |
double |
getSynchronizationTimeLow() |
int |
getTerminationFreq() |
double |
getThroughputTimeHigh() |
double |
getThroughputTimeLow() |
int |
getTimesCancelledByOtherTask() |
int |
getTimesCancelledByUser() |
int |
getTimesCancelledOutOtherActiveNodes() |
double |
getWaitingTime()
get average waiting time of this node
|
double |
getWaitingTimeHigh() |
double |
getWaitingTimeLow() |
int |
getXORJOINrf()
get frequency of XORJOIN
|
int |
getXORSPLITrf()
get frequency of XORSPLIT
|
boolean |
hasEventClass(org.deckfour.xes.classification.XEventClass eventClass)
return true if current eventClassMapping contains eventClass
|
void |
incrementActivationFreq()
increment number of times where there is an event which correspond to
this node
|
void |
incrementANDJOINrf()
increment frequency of ANDJOIN by 1
|
void |
incrementANDSPLITrf()
increment frequency of ANDSPLIT by 1
|
void |
incrementCancelledByOtherTask() |
void |
incrementCancelledByUser() |
void |
incrementCancelledOutOtherActiveNodes() |
void |
incrementFreqCaseHasThisNode()
increment frequency of cases in which this node occurs
|
void |
incrementInitializationFreq()
increment number of times the node is executed first in a case
|
void |
incrementNumberOfPerformer()
increment number of resources which perform an activity in this node
|
void |
incrementORJOINrf()
increment frequency of ORJOIN by 1
|
void |
incrementORSPLITrf()
increment frequency of ORSPLIT
|
void |
incrementTerminationFreq()
increment number of times the node is executed last in a case
|
void |
incrementXORJOINrf()
increment frequency of XORJOIN by 1
|
void |
incrementXORSPLITrf()
increment frequency of XORSPLIT by 1
|
boolean |
isHasCancellationSet() |
void |
removeAllMapping()
Remove all mapping of this node
|
void |
removeNodeMapping(org.deckfour.xes.classification.XEventClass removedEventClass)
Remove an event class from this node
|
void |
setActivationFreq(int activationFreq) |
void |
setANDJOINrf(int nrf)
set frequency of ANDJOIN
|
void |
setANDSPLITrf(int trf)
set frequency of ANDSPLIT
|
void |
setAvgThroughput(double avgThroughput)
set average throughput of this node
|
void |
setDivider(int divider) |
void |
setEventClasses(java.util.List<org.deckfour.xes.classification.XEventClass> eventClasses) |
boolean |
setEventClassFrequency(org.deckfour.xes.classification.XEventClass eventClass,
int frequency)
set frequency of event class
|
void |
setFreqCaseHasThisNode(int freqCaseHasThisNode) |
void |
setFreqEventClasses(java.util.List<java.lang.Integer> freqEventClasses) |
void |
setHasCancellationSet(boolean hasCancellationSet) |
void |
setInitializationFreq(int initializationFreq) |
void |
setLabel(java.lang.String newLabel)
set Label of the node
|
void |
setMaxFreqEventClass(int maxFreqEventClass) |
void |
setNumberOfCases(int numberOfCases) |
void |
setNumberOfPerformer(int numberOfPerformer) |
void |
setORJOINrf(int nrf)
set frequency of ORJOIN
|
void |
setORSPLITrf(int trf)
set frequency of ORSPLIT
|
void |
setSynchronizationTime(double synchronizationTime)
set average synchronization time of this node
|
void |
setSynchronizationTimeHigh(double synchronizationTimeHigh) |
void |
setSynchronizationTimeLow(double synchronizationTimeLow) |
void |
setTerminationFreq(int terminationFreq) |
void |
setThroughputTimeHigh(double throughputTimeHigh) |
void |
setThroughputTimeLow(double throughputTimeLow) |
void |
setTimesCancelledByOtherTask(int timesCancelledByOtherTask) |
void |
setTimesCancelledByUser(int timesCancelledByUser) |
void |
setTimesCancelledOutOtherActiveNodes(int timesCancelledOutOtherActiveNodes) |
void |
setToolTip(java.lang.String newTooltip) |
void |
setWaitingTime(double waitingTime)
set average waiting time of this node
|
void |
setWaitingTimeHigh(double waitingTimeHigh) |
void |
setWaitingTimeLow(double waitingTimeLow) |
void |
setXORJOINrf(int nrf)
set frequency of XORJOIN
|
void |
setXORSPLITrf(int trf)
set frequency of XORSPLIT
|
void |
updateNodeSize()
method to update node size after there is any modification to its
frequency value
|
getGraph, getVisiblePredecessors, getVisibleSuccessors
compareTo
equals, getId, hashCode
getAttributeMap, toString
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait
getId
public static final int PADDINGFROMBOXTOTEXT
public static final int TEXTHEIGHT
public static final int BRANCHINGBOXWIDTH
public static final int STANDARDWIDTH
public static final int STANDARDHEIGHT
public static final int MINHEIGHT
public static final int MAXLABELCHAR
public int getANDJOINrf()
public void setANDJOINrf(int nrf)
nrf
- public void incrementANDJOINrf()
public void decrementANDJOINrf()
public int getORJOINrf()
public void setORJOINrf(int nrf)
nrf
- public void incrementORJOINrf()
public void decrementORJOINrf()
public int getXORJOINrf()
public void setXORJOINrf(int nrf)
nrf
- public void incrementXORJOINrf()
public void decrementXORJOINrf()
public int getANDSPLITrf()
public void setANDSPLITrf(int trf)
trf
- public void incrementANDSPLITrf()
public void decrementANDSPLITrf()
public int getORSPLITrf()
public void setORSPLITrf(int trf)
trf
- public void incrementORSPLITrf()
public void decrementORSPLITrf()
public int getXORSPLITrf()
public void setXORSPLITrf(int trf)
trf
- public void incrementXORSPLITrf()
public void decrementXORSPLITrf()
public double getAvgThroughput()
public void setAvgThroughput(double avgThroughput)
avgThroughput
- public double getWaitingTime()
public void setWaitingTime(double waitingTime)
waitingTime
- public double getSynchronizationTime()
public void setSynchronizationTime(double synchronizationTime)
synchronizationTime
- public java.util.List<org.deckfour.xes.classification.XEventClass> getEventClasses()
public void setEventClasses(java.util.List<org.deckfour.xes.classification.XEventClass> eventClasses)
eventClasses
- the eventClasses to setpublic java.util.List<java.lang.Integer> getFreqEventClasses()
public void setFreqEventClasses(java.util.List<java.lang.Integer> freqEventClasses)
freqEventClasses
- the freqEventClasses to setpublic int getFreqCaseHasThisNode()
public void setFreqCaseHasThisNode(int freqCaseHasThisNode)
freqCaseHasThisNode
- the freqCaseHasThisNode to setpublic void incrementFreqCaseHasThisNode()
public void decrementFreqCaseHasThisNode()
public double getThroughputTimeLow()
public void setThroughputTimeLow(double throughputTimeLow)
throughputTimeLow
- the throughputTimeLow to setpublic double getThroughputTimeHigh()
public void setThroughputTimeHigh(double throughputTimeHigh)
throughputTimeHigh
- the throughputTimeHigh to setpublic double getWaitingTimeLow()
public void setWaitingTimeLow(double waitingTimeLow)
waitingTimeLow
- the waitingTimeLow to setpublic double getWaitingTimeHigh()
public void setWaitingTimeHigh(double waitingTimeHigh)
waitingTimeHigh
- the waitingTimeHigh to setpublic double getSynchronizationTimeLow()
public void setSynchronizationTimeLow(double synchronizationTimeLow)
synchronizationTimeLow
- the synchronizationTimeLow to setpublic double getSynchronizationTimeHigh()
public void setSynchronizationTimeHigh(double synchronizationTimeHigh)
synchronizationTimeHigh
- the synchronizationTimeHigh to setpublic java.lang.String getLabel()
getLabel
in interface org.processmining.models.graphbased.directed.DirectedGraphElement
getLabel
in class org.processmining.models.graphbased.AbstractGraphElement
public void setLabel(java.lang.String newLabel)
newLabel
- public boolean addNodeMapping(org.deckfour.xes.classification.XEventClass newEventClass)
newEventClass
- public void addAllNodeMapping(java.util.Set<org.deckfour.xes.classification.XEventClass> setOfEventClass)
setOfEventClass
- public void removeNodeMapping(org.deckfour.xes.classification.XEventClass removedEventClass)
removedEventClass
- public void removeAllMapping()
public boolean setEventClassFrequency(org.deckfour.xes.classification.XEventClass eventClass, int frequency)
eventClass
- frequency
- public int getEventClassFrequency(org.deckfour.xes.classification.XEventClass eventClass, int frequency)
eventClass
- frequency
- public java.lang.String getInfo()
public boolean hasEventClass(org.deckfour.xes.classification.XEventClass eventClass)
eventClass
- public int getAggregatedEventClassFreq()
public int getInitializationFreq()
public void setInitializationFreq(int initializationFreq)
initializationFreq
- the initializationFreq to setpublic int getTerminationFreq()
public void setTerminationFreq(int terminationFreq)
terminationFreq
- the terminationFreq to setpublic void incrementTerminationFreq()
public void incrementInitializationFreq()
public void decrementTerminationFreq()
public void decrementInitializationFreq()
public int getNumberOfPerformer()
public void setNumberOfPerformer(int numberOfPerformer)
numberOfPerformer
- the numberOfPerformer to setpublic void incrementNumberOfPerformer()
public void decrementNumberOfPerformer()
public int getNumberOfCases()
public void setNumberOfCases(int numberOfCases)
numberOfCases
- the numberOfCases to setpublic int getMaxFreqEventClass()
public void setMaxFreqEventClass(int maxFreqEventClass)
maxFreqEventClass
- the maxFreqEventClass to setpublic int getDivider()
public void setDivider(int divider)
divider
- the divider to setpublic void decorate(java.awt.Graphics2D g2d, double x, double y, double width, double height)
decorate
in interface org.processmining.models.shapes.Decorated
public java.awt.Shape[] getBranchingIndicatorBoxes(double x, double y, double heightOfSplitBoxes)
x
- y
- heightOfSplitBoxes
- public void updateNodeSize()
public int getActivationFreq()
public void setActivationFreq(int activationFreq)
activationFreq
- the activationFreq to setpublic void incrementActivationFreq()
public void decrementActivationFreq()
public void setToolTip(java.lang.String newTooltip)
public void setTimesCancelledByOtherTask(int timesCancelledByOtherTask)
public int getTimesCancelledByOtherTask()
public void setTimesCancelledOutOtherActiveNodes(int timesCancelledOutOtherActiveNodes)
public int getTimesCancelledOutOtherActiveNodes()
public void setTimesCancelledByUser(int timesCancelledByUser)
public int getTimesCancelledByUser()
public void incrementCancelledOutOtherActiveNodes()
public void incrementCancelledByUser()
public void incrementCancelledByOtherTask()
public void setHasCancellationSet(boolean hasCancellationSet)
public boolean isHasCancellationSet()