public class CheckAttributes
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
void |
addAttribute(java.lang.String attribute)
Add attribute
|
void |
check()
Check actual net
|
java.util.Set<java.lang.String> |
getAttributes()
Get attributes
|
java.lang.String |
getBestMatch()
Get best match
Useful if no complete match was found
|
int |
getMarkingFactor()
Get marking factor
|
int |
getScore()
Get actual score
|
boolean |
isFinished()
search finished?
|
void |
setMarkingFactor(int markingFactor)
set marking factor
Note: normally not used, will be calculated by check
|
void |
setPetriNet(PetriNet petriNet)
Set net
|
public void setPetriNet(PetriNet petriNet)
petriNet - netpublic void check()
throws AttributeFormatException,
UnsupportedAttributeException
AttributeFormatException - Attribute format exceptionUnsupportedAttributeException - Unsupported attribute exceptionpublic java.util.Set<java.lang.String> getAttributes()
public void addAttribute(java.lang.String attribute)
attribute - attributepublic int getScore()
public boolean isFinished()
public int getMarkingFactor()
public void setMarkingFactor(int markingFactor)
markingFactor - marking factorpublic java.lang.String getBestMatch()