0.10.8-alpha
ca.uqac.lif.cep.PipeCrawler Class Referenceabstract

An object that visits every processor in a chain, from a processor used as a starting point. More...

Public Member Functions

synchronized void crawl (Processor start)
 Crawls a graph from some starting point. More...
 
abstract void visit (Processor p)
 Do something on a processor. More...
 

Static Protected Attributes

static final int s_maxCrawls = 10000
 The maximum number of loops that the crawler can do during a traversal. More...
 

Detailed Description

An object that visits every processor in a chain, from a processor used as a starting point.

Currently, this crawler is only used to clone GroupProcessors.

Author
Sylvain Hallé
Since
0.3

Definition at line 33 of file PipeCrawler.java.

Member Function Documentation

◆ crawl()

synchronized void ca.uqac.lif.cep.PipeCrawler.crawl ( Processor  start)

Crawls a graph from some starting point.

Parameters
startThe processor to start fromS

Definition at line 47 of file PipeCrawler.java.

◆ visit()

abstract void ca.uqac.lif.cep.PipeCrawler.visit ( Processor  p)
abstract

Do something on a processor.

Upon a call to crawl(Processor), this method is called exactly once for every reachable processor in the pipe graph.

Parameters
pA processor

Member Data Documentation

◆ s_maxCrawls

final int ca.uqac.lif.cep.PipeCrawler.s_maxCrawls = 10000
staticprotected

The maximum number of loops that the crawler can do during a traversal.

This is intended as a safety measure to make sure that method crawl(Processor) always terminates.

Definition at line 40 of file PipeCrawler.java.


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