public class Check
extends java.lang.Object
| Constructor and Description |
|---|
Check()
Class constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
addAttribute(java.lang.String attribute)
Add an attribute
|
java.lang.String |
getBestMatch()
Get best match
Useful if no complete match was found
|
int |
getCounter()
Get counter
|
PetriNet |
getPn() |
PetriNet |
search(int maxSeconds)
Search for a net which fulfills all attributes
|
void |
setGenerator(java.lang.String name)
Set which generator will be used
|
void |
setPn(PetriNet pn)
Set net
|
public void addAttribute(java.lang.String attribute)
throws UnsupportedAttributeException
attribute - attributeUnsupportedAttributeException - unsupported attributepublic void setGenerator(java.lang.String name)
throws UnsupportedGeneratorException
name - name of generatorUnsupportedGeneratorException - unsupported generatorpublic PetriNet search(int maxSeconds) throws AttributeFormatException, UnsupportedAttributeException
maxSeconds - stop after maxSeconds or if petri net was foundAttributeFormatException - Attribute format exceptionUnsupportedAttributeException - Unsupported attribute exceptionpublic PetriNet getPn()
public void setPn(PetriNet pn)
pn - netpublic java.lang.String getBestMatch()
public int getCounter()