summaryrefslogtreecommitdiff
path: root/src/main/SAP.h
blob: 8b0c1aad5de796326c0ffcbbb6a9199e5e03daca (plain) (blame)
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
/*
 * SAP.h
 *
 *  Created on: May 24, 2011
 *      Author: jakob
 */

#ifndef SAP_H_
#define SAP_H_

#include <vector>
#include "InteractionDetector.h"
#include "Particle.h"
#include "Element.h"

namespace vhc {

class SAP {

private:
	vector<Particle*> particles;
	element->localpos
	particle->localpos

public:

	//static const double THRESHOLD_RADIUS;

	SAP();
	virtual ~SAP();

	virtual void applyInteractions();
	virtual void acceleratorClosed();

	virtual void react(const ParticleAddedEvent& event) = 0;
	virtual void react(const ParticleRemovedEvent& event) = 0;
};

}

#endif /* SAP_H_ */