|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.processmining.framework.models.hlprocess.Distribution
org.processmining.exporting.petrinet.cpnexport.HLImplementation.HLDistribution.HLPoissonDistribution
public class HLPoissonDistribution
Represents a poisson distribution that can be readily displayed as it maintains its own GUI panel.
The distribution will be graphically represented by one spinner representing the intensity value.
Changes performed via the GUI will be immedeately propagated to the internally held property values.
getDistributionPanel
,
Serialized FormNested Class Summary |
---|
Nested classes/interfaces inherited from class org.processmining.framework.models.hlprocess.Distribution |
---|
Distribution.DistributionEnum |
Constructor Summary | |
---|---|
HLPoissonDistribution(double intensity)
Creates a negative exponential distribution based on an intensity value |
|
HLPoissonDistribution(GUIPropertyDoubleTextField intensity)
Creates a negative exponential distribution based on an intensity value. |
Method Summary | |
---|---|
boolean |
checkValuesOfTimeParameters(java.lang.String info)
Check whether parameters, which can be related to time, in the Distribution will get value '0' when these are rounded. |
java.lang.Object |
clone()
Implementing classes have to override the clone method |
boolean |
equals(java.lang.Object obj)
Determines when two distribution objects are the same. |
java.lang.String |
getCpnDistributionFunction()
Returns the cpn-specific distribution function (cpn syntax). |
javax.swing.JPanel |
getDistributionPanel()
Creates GUI panel representing this distribution, ready to display in some settings dialog. |
Distribution.DistributionEnum |
getDistributionType()
Indicates the type of this distribution. |
double |
getIntensity()
Returns the intensity value of this negative exponential distribution |
int |
hashCode()
Retrieves the hashcode for the object. |
void |
timeMultiplicationValue(double value)
Defines the factor with which the values in the distribution that refer to time need to be multiplicated with |
java.lang.String |
toString()
|
void |
writeDistributionToDot(java.lang.String boxId,
java.lang.String nodeId,
java.lang.String addText,
java.io.Writer bw)
Writes the distribution to dot. |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public HLPoissonDistribution(double intensity)
intensity
- double the intensity value. Remark that the intensity value
always needs to be equal or greater than 0.public HLPoissonDistribution(GUIPropertyDoubleTextField intensity)
intensity
- GUIPropertyDoubleMethod Detail |
---|
public double getIntensity()
public java.lang.String getCpnDistributionFunction()
Distribution
getCpnDistributionFunction
in class Distribution
public javax.swing.JPanel getDistributionPanel()
Distribution
getDistributionPanel
in class Distribution
public Distribution.DistributionEnum getDistributionType()
Distribution
getDistributionType
in class Distribution
public java.lang.Object clone()
Distribution
clone
in class Distribution
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object obj)
Distribution
equals
in class Distribution
obj
- Object the object to compare with
true
when the two distribution objects are the same object
and that the values for all the parameters of the particalur distribution are the same.
false
otherwisepublic int hashCode()
Distribution
hashCode
in class Distribution
public void writeDistributionToDot(java.lang.String boxId, java.lang.String nodeId, java.lang.String addText, java.io.Writer bw) throws java.io.IOException
Distribution
writeDistributionToDot
in class Distribution
boxId
- the identifier of the box (in the DOT file) in which the parameters and other relevant information of the distribution
will be written.nodeId
- the identifier of the node (in the DOT file) to which the box that will be created has to be connected.
""
has to be provided if the box that will be created does not need to be connected to another node in the DOT file.addText
- additional text that needs to be filled in at the beginning of the boxbw
- Writer the BufferedWriter used to stream the data to the file
java.io.IOException
public void timeMultiplicationValue(double value)
Distribution
timeMultiplicationValue
in class Distribution
value
- doublepublic boolean checkValuesOfTimeParameters(java.lang.String info)
Distribution
checkValuesOfTimeParameters
in class Distribution
info
- Additional information to be displayed when a warning is issued.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |