public class PlgParameters
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
PlgParameters.PATTERN
This enum describe the set of all possible patterns
|
Constructor and Description |
---|
PlgParameters(int ANDBranches,
ProbabilityDistribution ANDbranchesDistribution,
int XORBranches,
ProbabilityDistribution XORbranchesDistribution,
int loopPercent,
int singleActivityPercent,
int sequencePercent,
int ANDPercent,
int XORPercent,
int deep,
ProbabilityDistribution andExecDistribution,
ProbabilityDistribution xorExecDistribution)
Class constructor.
|
Modifier and Type | Method and Description |
---|---|
int |
getAndBranches()
Get the AND branches parameter
|
ProbabilityDistribution |
getAndExecDistribution()
Get the current distribution for the AND construct
|
int |
getANDPercent()
Get the current value of the AND percent parameter
|
int |
getDeep()
Get the current value of the maximum deep parameter
|
int |
getLoopPercent()
Get the current value of the loop percent parameter
|
boolean |
getLoopPresence()
This method is used for the definition of the presence of a loop
|
PlgParameters.PATTERN |
getRandomActionInAloneSeqAndXor()
This method returns a random pattern randomly selected between:
Single activity
Sequence pattern
AND pattern
XOR pattern
The selection is done according to the given probabilities
|
PlgParameters.PATTERN |
getRandomActionInSeqAndXor()
This method returns a random pattern randomly selected between:
Sequence pattern
AND pattern
XOR pattern
The selection is done according to the given probabilities
|
int |
getRandomAndBranches()
This method return the number of AND branches to generate, according to
the probability given
|
int |
getRandomXorBranches()
This method return the number of XOR branches to generate, according to
the probability given
|
int |
getSequencePercent()
Get the current value of the sequence percent parameter
|
int |
getSingleActivityPercent()
Get the current value of the single activity percent parameter
|
int |
getXorBranches()
Get the XOR branches parameter
|
ProbabilityDistribution |
getXorExecDistribution()
Get the current distribution for the XOR construct
|
int |
getXORPercent()
Get the current value of the XOR percent parameter
|
static boolean |
randomFromPercent(int successPercent)
This method generates boolean values with respect to the given
probability
|
void |
setAndBranches(int andBranches,
ProbabilityDistribution ANDbranchesDistribution)
Set the AND branches parameter
|
void |
setAndExecDistribution(ProbabilityDistribution andExecDistribution)
Set the distribution for the AND costructs
|
void |
setANDPercent(int andPercent)
Set the AND percent parameter
|
void |
setDeep(int deep)
Set the maximum deepanche parameter
|
void |
setLoopPercent(int loopPercent)
Set the loop percentual parameter
|
void |
setSequencePercent(int sequencePercent)
Set the sequence percent parameter
|
void |
setSingleActivityPercent(int singleActivityPercent)
Set the single activity percentual parameter
|
void |
setXorBranches(int xorBranches,
ProbabilityDistribution XORbranchesDistribution)
Set the XOR branches parameter
|
void |
setXorExecDistribution(ProbabilityDistribution xorExecDistribution)
Set the distribution for the XOR costructs
|
void |
setXORPercent(int xorPercent)
Set the XOR percent parameter
|
public PlgParameters(int ANDBranches, ProbabilityDistribution ANDbranchesDistribution, int XORBranches, ProbabilityDistribution XORbranchesDistribution, int loopPercent, int singleActivityPercent, int sequencePercent, int ANDPercent, int XORPercent, int deep, ProbabilityDistribution andExecDistribution, ProbabilityDistribution xorExecDistribution)
ANDBranches
- the maximum number of AND branches (must be > 1)ANDbranchesDistribution
- XORBranches
- the maximum number of XOR branches (must be > 1)XORbranchesDistribution
- loopPercent
- the loop probability (must be >= 0 and <= 100)singleActivityPercent
- the probability of single activity (must
be >= 0 and <= 100)sequencePercent
- he probability of sequence activity (must be
>= 0 and <= 100)ANDPercent
- the probability of AND split-join (must be >= 0 and
<= 100)XORPercent
- the probability of XOR split-join (must be >= 0 and
<= 100)emptyPercent
- the probability of an empty pattern (must be >= 0
and <= 100)deep
- the maximum network deepandExecDistribution
- xorExecDistribution
- public static boolean randomFromPercent(int successPercent)
successPercent
- the percent probability of successpublic void setAndBranches(int andBranches, ProbabilityDistribution ANDbranchesDistribution)
andBranches
- the maximum number of AND branchesANDbranchesDistribution
- public int getAndBranches()
public void setXorBranches(int xorBranches, ProbabilityDistribution XORbranchesDistribution)
xorBranches
- the maximum number of XOR branchesXORbranchesDistribution
- public int getXorBranches()
public void setLoopPercent(int loopPercent)
loopPercent
- public int getLoopPercent()
public void setSingleActivityPercent(int singleActivityPercent)
singleActivityPercent
- public int getSingleActivityPercent()
public void setSequencePercent(int sequencePercent)
sequencePercent
- public int getSequencePercent()
public void setANDPercent(int andPercent)
andPercent
- public int getANDPercent()
public void setXORPercent(int xorPercent)
xorPercent
- public int getXORPercent()
public void setDeep(int deep)
deep
- public int getDeep()
public void setAndExecDistribution(ProbabilityDistribution andExecDistribution)
andExecDistribution
- public ProbabilityDistribution getAndExecDistribution()
public void setXorExecDistribution(ProbabilityDistribution xorExecDistribution)
xorExecDistribution
- public ProbabilityDistribution getXorExecDistribution()
public int getRandomAndBranches()
public int getRandomXorBranches()
public boolean getLoopPresence()
public PlgParameters.PATTERN getRandomActionInSeqAndXor()
public PlgParameters.PATTERN getRandomActionInAloneSeqAndXor()