-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathEdgeFactory.H
37 lines (31 loc) · 1.08 KB
/
EdgeFactory.H
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
/****************************************************************
EdgeFactory.H
Copyright (C)2013 William H. Majoros ([email protected]).
This is OPEN SOURCE SOFTWARE governed by the Gnu General Public
License (GPL) version 3, as described at www.opensource.org.
****************************************************************/
#ifndef INCL_EdgeFactory_H
#define INCL_EdgeFactory_H
#include "Edge.H"
#include "EvidenceFilter.H"
class EdgeFactory {
public:
virtual ~EdgeFactory() {}
virtual PhasedEdge *newPhasedEdge(double scorePhase0,double scorePhase1,
double scorePhase2,SignalPtr left,
SignalPtr right);
virtual NonPhasedEdge *newNonPhasedEdge(double score,SignalPtr left,
SignalPtr right);
};
class FilteredEdgeFactory : public EdgeFactory {
public:
FilteredEdgeFactory(EvidenceFilter *);
virtual ~FilteredEdgeFactory();
virtual PhasedEdge *newPhasedEdge(double scorePhase0,double scorePhase1,
double scorePhase2,SignalPtr left,
SignalPtr right);
void setEvidence(EvidenceFilter *);
protected:
EvidenceFilter *filter;
};
#endif