VEXPController.cpp 2.47 KB
Newer Older
legoc's avatar
legoc committed
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
/*
 * Nomad Instrument Control Software
 *
 * Copyright 2011 Institut Laue-Langevin
 *
 * Licensed under the EUPL, Version 1.1 only (the "License");
 * You may not use this work except in compliance with the Licence.
 * You may obtain a copy of the Licence at:
 *
 * http://joinup.ec.europa.eu/software/page/eupl
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the Licence is distributed on an "AS IS" basis,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the Licence for the specific language governing permissions and
 * limitations under the Licence.
 */

#include "VEXPController.h"
#include "controllers/common/family/Families.h"

namespace vexp {

const string VEXPController::TYPE = "vexp_controller";

VEXPController::VEXPController(const string& name) :
	ExperimentController(name) {

	setFamily(family::HIDDEN);

	as.init(this, NOSAVE, "as", "AS");
	bs.init(this, NOSAVE, "bs", "BS");
	cs.init(this, NOSAVE, "cs", "CS");
	aa.init(this, NOSAVE, "aa", "AA");
	bb.init(this, NOSAVE, "bb", "BB");
	cc.init(this, NOSAVE, "cc", "CC");
	ax.init(this, NOSAVE, "ax", "AX");
	ay.init(this, NOSAVE, "ay", "AY");
	az.init(this, NOSAVE, "az", "AZ");
	bx.init(this, NOSAVE, "bx", "BX");
	by.init(this, NOSAVE, "by", "BY");
	bz.init(this, NOSAVE, "bz", "BZ");
	u.init(this, NOSAVE, "Umatrix");
	b.init(this, NOSAVE, "Bmatrix");

	qh.init(this, NOSAVE, "qh", "QH");
	qk.init(this, NOSAVE, "qk", "QK");
	ql.init(this, NOSAVE, "ql", "QL");
	en.init(this, NOSAVE, "en", "EN");
	qm.init(this, NOSAVE, "qm", "QM");

	tasSettings.init(this, "tas_settings");
	sample.init(this, "sample");
	scattering.init(this, "scattering");
	incidentBeam.init(this, "incident_beam");
	scatteredBeam.init(this, "scattered_beam");
}

VEXPController::~VEXPController() {
}

void VEXPController::postConfiguration() {

	registerPropertyCopierByUpdate(tasSettings->as, as);
	registerPropertyCopierByUpdate(tasSettings->bs, bs);
	registerPropertyCopierByUpdate(tasSettings->cs, cs);
	registerPropertyCopierByUpdate(tasSettings->aa, aa);
	registerPropertyCopierByUpdate(tasSettings->bb, bb);
	registerPropertyCopierByUpdate(tasSettings->cc, cc);
	registerPropertyCopierByUpdate(tasSettings->ax, ax);
	registerPropertyCopierByUpdate(tasSettings->ax, ax);
	registerPropertyCopierByUpdate(tasSettings->ax, ax);
	registerPropertyCopierByUpdate(tasSettings->bx, bx);
	registerPropertyCopierByUpdate(tasSettings->bx, bx);
	registerPropertyCopierByUpdate(tasSettings->bx, bx);

}

}