|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--pipe.modules.invariantAnalysis.InvariantAnalysis
| Field Summary | |
private IntMatrix |
IncidenceMatrix
|
private static java.lang.String |
MODULE_NAME
|
private IntMatrix |
PInvariants
|
private IntMatrix |
TInvariants
|
| Constructor Summary | |
InvariantAnalysis()
|
|
| Method Summary | |
int[] |
alphaCoef(int k,
int[] j)
adjust linear combination coefficients according to sign if sign(j) <> sign(k) then alpha = abs(j) beta = abs(k) if sign(j) == sign(k) then alpha = -abs(j) beta = abs(k) |
int[] |
betaCoef(int chk,
int n)
adjust linear combination coefficients according to sign if sign(j) <> sign(k) then alpha = abs(j) beta = abs(k) if sign(j) == sign(k) then alpha = -abs(j) beta = abs(k) |
int |
effectiveSetLength(int[] pSet)
find the number of non-zero elements in a set |
java.lang.String |
findNetInvariants(int[] M0)
Find the net invariants. |
java.lang.String |
findPEquations(int[] initialMarking)
Find the P equations of the net. |
java.lang.String |
findPInvariants(int[] M0)
Find the P invariants. |
java.lang.String |
findTInvariants(int[] M0)
Find the T invariants. |
IntMatrix |
findVectors(IntMatrix C)
Transform a matrix to obtain the minimal generating set of vectors. |
java.lang.String |
fixedWidthDoubletoString(double x,
int w,
int d)
Format double with Fw.d. |
java.lang.String |
getConclusionsP()
Draw conclusions based on the P Invariants. |
java.lang.String |
getConclusionsT()
Draw conclusions based on the T Invariants. |
java.lang.String |
getName()
|
boolean |
isEmptySet(int[] pSet)
check if an array is empty (only zeros) |
private void |
print(java.lang.String s)
Shorten spelling of print. |
void |
printArray(int[] a)
used to display intermiadiate results for checking |
void |
resetArray(int[] a)
|
void |
run(DataLayer dataObj)
Call the methods that find the net invariants. |
int[] |
uniteSets(int[] A,
int[] B)
Unite two sets (arrays of integers) so that if there is a common entry in the arrays it appears only once, and all the entries of each array appear in the union. |
| Methods inherited from class java.lang.Object |
|
| Field Detail |
private IntMatrix IncidenceMatrix
private IntMatrix PInvariants
private IntMatrix TInvariants
private static final java.lang.String MODULE_NAME
| Constructor Detail |
public InvariantAnalysis()
| Method Detail |
public java.lang.String getName()
getName in interface Modulepublic void run(DataLayer dataObj)
run in interface ModuledataObj - A dataLayer type object with all the information about the petri net
param initialMarking An array with the initial marking of the petri net.
param array A double array of ints describing the incidence matrix of the PT Netpublic java.lang.String findNetInvariants(int[] M0)
M0 - An array containing the initial marking of the net.public java.lang.String findPInvariants(int[] M0)
M0 - An array containing the initial marking of the net.public java.lang.String getConclusionsP()
public java.lang.String getConclusionsT()
public java.lang.String findTInvariants(int[] M0)
M0 - An array containing the initial marking of the net.public java.lang.String findPEquations(int[] initialMarking)
initialMarking - An array containing the initial marking of the net.public IntMatrix findVectors(IntMatrix C)
C - The matrix to transform.public int effectiveSetLength(int[] pSet)
pSet - The set count the number of non-zero elements.
public int[] alphaCoef(int k,
int[] j)
k - The column index of the first coefficientj - The column indices of the remaining coefficients
public int[] betaCoef(int chk,
int n)
chk - The first coefficientn - The length of one rowpublic void resetArray(int[] a)
public int[] uniteSets(int[] A,
int[] B)
A - The first set to unite.B - The second set to unite.public boolean isEmptySet(int[] pSet)
pSet - The set to check if it is empty.public void printArray(int[] a)
a - The array to print.private void print(java.lang.String s)
s - The string to print.
public java.lang.String fixedWidthDoubletoString(double x,
int w,
int d)
x - The format of the string.w - The length of the string.d - The number of fraction digits.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||