UnCoVer (Using Coverability for Verification)
|
This abstract class serves as a schema of an enumerator taking a rule and a graph and enumerating all minimal pushout complements wrt. More...
#include <MinPOCEnumerator.h>
Public Member Functions | |
virtual | ~MinPOCEnumerator () |
Destroys this instance of the enumerator. | |
virtual bool | ended () const =0 |
Returns true, iff the last element was already enumerated, i.e. More... | |
virtual MinPOCEnumerator & | operator++ ()=0 |
Computes the next minimal pushout complement if any. More... | |
virtual graphs::Hypergraph_sp | operator* () const =0 |
Returns the last computed minimal pushout complement. More... | |
virtual bool | resetWith (graphs::AnonRule_csp rule, IDType ruleID, graphs::Hypergraph_csp graph)=0 |
Initializes this enumerator to compute all minimal pushout complements for the given rule and graph. More... | |
bool | resetWith (graphs::Rule_csp rule, graphs::Hypergraph_csp graph) |
Initializes this enumerator to compute all minimal pushout complements for the given rule and graph. More... | |
void | setResultHandler (BackwardResultHandler_sp resHandler) |
Set the BackwardResultHandler used by this enumerator to the given one. More... | |
void | setPreparedGTS (PreparedGTS_csp gts) |
Set the PreparedGTS used by this enumerator to the given one. More... | |
Protected Member Functions | |
MinPOCEnumerator () | |
Initializes this enumerator. | |
Protected Attributes | |
BackwardResultHandler_sp | resultHandler |
Stores the BackwardResultHandler used by this enumerator. | |
PreparedGTS_csp | prepGTS |
Stores a pointer to the PrepareGTS from which the rules will be taken, which are used to initialize this enumerator. | |
This abstract class serves as a schema of an enumerator taking a rule and a graph and enumerating all minimal pushout complements wrt.
some order. Since we need to know the original rule from which a rule was prepared, a reference to the prepared GTS is stored to provide this information. This class has to be concretized for each order to be compatible with the backward search.
|
pure virtual |
Returns true, iff the last element was already enumerated, i.e.
no new graph could be computed, when operator++() was called the last time. If this function returns true, a call of operator*() will return null.
Implemented in SubgraphPOCEnumerator, and MinorPOCEnumerator.
|
pure virtual |
Returns the last computed minimal pushout complement.
If this enumerator has ended, this function will return null.
Implemented in SubgraphPOCEnumerator, and MinorPOCEnumerator.
|
pure virtual |
Computes the next minimal pushout complement if any.
Implemented in SubgraphPOCEnumerator, and MinorPOCEnumerator.
|
pure virtual |
Initializes this enumerator to compute all minimal pushout complements for the given rule and graph.
When this function is called, any previous computation by this enumerator will be discarded.
rule | the rule used for the pushout complement computation |
ruleID | the rule ID which will be displayed in the logs |
graph | the graph (pushout object) used for the POC computation |
Implemented in SubgraphPOCEnumerator, and MinorPOCEnumerator.
|
inline |
Initializes this enumerator to compute all minimal pushout complements for the given rule and graph.
When this function is called, any previous computation by this enumerator will be discarded.
rule | the rule used for pushout complement computation |
graph | the graph used for pushout complement computation |
|
inline |
Set the PreparedGTS used by this enumerator to the given one.
gts | the new PreparedGTS to be used |
|
inline |
Set the BackwardResultHandler used by this enumerator to the given one.
resHandler | the BackwardResultHandler to be used |