public class LargestK
extends java.lang.Object
| Constructor and Description |
|---|
LargestK(PetriNet petriNet)
Class constructor.
|
| Modifier and Type | Method and Description |
|---|---|
long |
computeGreatestCommonDivisor(long dividend,
long divisor)
Compute the greatest common divisor of two numbers
Using euclidean algorithm
Note: Order does not matter.
|
long |
computeLargestK()
Compute the largest k for which M0 is a k-marking
Note: Using current marking
|
public LargestK(PetriNet petriNet)
petriNet - Net which will be usedpublic long computeGreatestCommonDivisor(long dividend,
long divisor)
dividend - value1divisor - value2public long computeLargestK()