Skip to content

Commit e2ff8c8

Browse files
Work on direction
1 parent 164fcea commit e2ff8c8

File tree

1 file changed

+21
-3
lines changed

1 file changed

+21
-3
lines changed

include/network/direction.h

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,25 @@
11
#ifndef NETWORK_DIRECTION_H
22
#define NETWORK_DIRECTION_H
33

4-
// Use the Direction class from the fields folder
5-
#include "fields/direction.h"
4+
#include "network/model.h"
5+
#include "network/activation.h"
6+
#include "network/link.h"
7+
#include "network/neuron.h"
8+
#include "network/synapse.h"
9+
#include "network/bs_type.h"
10+
#include "network/transition.h"
611

7-
#endif // NETWORK_DIRECTION_H
12+
class Direction {
13+
public:
14+
virtual ~Direction() = default;
15+
virtual Direction* invert() = 0;
16+
virtual Neuron* getNeuron(Model* m, Synapse* s) = 0;
17+
virtual Activation* getActivation(Link* l) = 0;
18+
virtual int getOrder() = 0;
19+
virtual BSType* transition(BSType* s, Transition* t) = 0;
20+
virtual void write(DataOutput* out) = 0;
21+
22+
static Direction* read(DataInput* in);
23+
};
24+
25+
#endif // NETWORK_DIRECTION_H

0 commit comments

Comments
 (0)