-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathLightVertex.H
More file actions
51 lines (46 loc) · 1.36 KB
/
LightVertex.H
File metadata and controls
51 lines (46 loc) · 1.36 KB
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
38
39
40
41
42
43
44
45
46
47
48
49
50
/****************************************************************
LightVertex.H
Copyright (C)2013 William H. Majoros (martiandna@gmail.com).
This is OPEN SOURCE SOFTWARE governed by the Gnu General Public
License (GPL) version 3, as described at www.opensource.org.
****************************************************************/
#ifndef INCL_LightVertex_H
#define INCL_LightVertex_H
#include <iostream>
#include "BOOM/Vector.H"
#include "SignalType.H"
#include "BOOM/Strand.H"
using namespace std;
using namespace BOOM;
class LightEdge;
class LightVertex {
public:
LightVertex(const String &substrate,SignalType,int begin,int end,
float score,Strand,int ID);
void addEdgeIn(LightEdge *);
void addEdgeOut(LightEdge *);
SignalType getType() const;
inline SignalType getSignalType() const { return getType(); }
int getBegin() const;
int getEnd() const;
int getID() const;
float getScore() const;
void setScore(float);
Strand getStrand() const;
Vector<LightEdge*> &getEdgesIn();
Vector<LightEdge*> &getEdgesOut();
void printOn(ostream &,String vertexType="vertex");
bool isSupported() const;
void setSupport(bool);
protected:
Vector<LightEdge*> edgesIn, edgesOut;
SignalType type;
float score;
Strand strand;
int begin, end;
int ID;
String substrate;
bool supported;
};
ostream &operator<<(ostream &,const LightVertex &);
#endif