Generated on Wed Apr 29 2015 11:51:41 for GGL-4.1.2 by doxygen 1.8.3.1
Public Member Functions | Protected Attributes
ggl::MR_ApplyRule Class Reference

Graph Grammar Rule application for each reported match. More...

#include <MR_ApplyRule.hh>

Inheritance diagram for ggl::MR_ApplyRule:
Inheritance graph
[legend]

Public Member Functions

 MR_ApplyRule (Graph_Storage &storage, const bool addEachComponent=false)
 
virtual void reportHit (const sgm::Pattern_Interface &pattern, const sgm::Graph_Interface &target, const sgm::Match &match)
 
virtual ~MR_ApplyRule ()
 

Protected Attributes

const bool addEachComponent
 
Graph_Storagestorage
 
const bool undirectedRule
 we apply undirected rules or not More...
 

Detailed Description

     A sgm::Match_Reporter implementation that applies a graph grammar ggl::Rule
     to a graph and generates the resulting graph. The new graph is added
     to a specified container for further handling like storage or output.
     The pattern graph has to be an instance of ggl::LeftSidePattern.
Author
Martin Mann (c) 2008 http://www.bioinf.uni-freiburg.de/~mmann/

Definition at line 27 of file MR_ApplyRule.hh.

Constructor & Destructor Documentation

ggl::MR_ApplyRule::MR_ApplyRule ( Graph_Storage storage,
const bool  addEachComponent = false 
)

Construction of a MR_ApplyRule object that adds the resulting graphs to the given Graph_Storage object.

Parameters
storagethe Graph_Storage object to add the results to
addEachComponentif set to true, than all components of the Rules LeftSidePattern are matched to an own target graph copy if two components map to the same target graph. NOTE: only important for rules with multi-component LeftSidePattern!
virtual ggl::MR_ApplyRule::~MR_ApplyRule ( )
virtual

Member Function Documentation

virtual void ggl::MR_ApplyRule::reportHit ( const sgm::Pattern_Interface pattern,
const sgm::Graph_Interface target,
const sgm::Match match 
)
virtual

Applies the Rule represented by the pattern onto the matched subgraph of target and adds the resulting graph to the internal Graph_Storage object. NOTE: It is assumed that pattern is an instance of ggl::LeftSidePattern!

Parameters
patternthe pattern graph that was searched for
targetthe graph the pattern was found within
matchcontains the indices of the matched pattern nodes in the target graph. match[i] corresponds to the mapping of the i-th vertex in the pattern graph.

Implements sgm::Match_Reporter.

Field Documentation

const bool ggl::MR_ApplyRule::addEachComponent
protected

if set to true, than all components of the Rules LeftSidePattern are matched to an own target graph copy if two components map to the same target graph.

Definition at line 43 of file MR_ApplyRule.hh.

Graph_Storage& ggl::MR_ApplyRule::storage
protected

the storage to that "reportHit(..)" adds the resulting graphs after the application of a rule to a matched target graph.

Definition at line 33 of file MR_ApplyRule.hh.

const bool ggl::MR_ApplyRule::undirectedRule
protected

Definition at line 36 of file MR_ApplyRule.hh.


The documentation for this class was generated from the following file: