forked from ecell/ecell3-spatiocyte
-
Notifications
You must be signed in to change notification settings - Fork 0
/
MoleculePopulateProcess.hpp
103 lines (98 loc) · 3.36 KB
/
MoleculePopulateProcess.hpp
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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
//::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
//
// This file is part of E-Cell Simulation Environment package
//
// Copyright (C) 2006-2009 Keio University
//
//::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
//
//
// E-Cell is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public
// License as published by the Free Software Foundation; either
// version 2 of the License, or (at your option) any later version.
//
// E-Cell is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
// See the GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public
// License along with E-Cell -- see the file COPYING.
// If not, write to the Free Software Foundation, Inc.,
// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
//
//END_HEADER
//
// written by Satya Arjunan <satya.arjunan@gmail.com>
// E-Cell Project, Institute for Advanced Biosciences, Keio University.
//
#ifndef __MoleculePopulateProcess_hpp
#define __MoleculePopulateProcess_hpp
#include "SpatiocyteProcess.hpp"
#include "MoleculePopulateProcessInterface.hpp"
LIBECS_DM_CLASS_EXTRA_1(MoleculePopulateProcess, SpatiocyteProcess, MoleculePopulateProcessInterface)
{
public:
LIBECS_DM_OBJECT(MoleculePopulateProcess, Process)
{
INHERIT_PROPERTIES(Process);
PROPERTYSLOT_SET_GET(Integer, Priority);
PROPERTYSLOT_SET_GET(Real, OriginX);
PROPERTYSLOT_SET_GET(Real, OriginY);
PROPERTYSLOT_SET_GET(Real, OriginZ);
PROPERTYSLOT_SET_GET(Real, GaussianSigma);
PROPERTYSLOT_SET_GET(Real, ResetTime);
PROPERTYSLOT_SET_GET(Real, UniformRadiusX);
PROPERTYSLOT_SET_GET(Real, UniformRadiusY);
PROPERTYSLOT_SET_GET(Real, UniformRadiusZ);
}
MoleculePopulateProcess():
Priority(0),
GaussianSigma(0),
OriginX(0),
OriginY(0),
OriginZ(0),
ResetTime(libecs::INF),
UniformRadiusX(1),
UniformRadiusY(1),
UniformRadiusZ(1) {}
virtual ~MoleculePopulateProcess() {}
SIMPLE_SET_GET_METHOD(Integer, Priority);
SIMPLE_SET_GET_METHOD(Real, OriginX);
SIMPLE_SET_GET_METHOD(Real, OriginY);
SIMPLE_SET_GET_METHOD(Real, OriginZ);
SIMPLE_SET_GET_METHOD(Real, GaussianSigma);
SIMPLE_SET_GET_METHOD(Real, ResetTime);
SIMPLE_SET_GET_METHOD(Real, UniformRadiusX);
SIMPLE_SET_GET_METHOD(Real, UniformRadiusY);
SIMPLE_SET_GET_METHOD(Real, UniformRadiusZ);
virtual void initializeSecond();
virtual void populateGaussian(Species*);
virtual void populateUniformDense(Species*, unsigned int[], unsigned int*);
virtual void populateUniformSparse(Species* aSpecies);
virtual void populateUniformRanged(Species* aSpecies);
virtual void populateUniformOnDiffuseVacant(Species* aSpecies);
virtual void fire();
virtual void initializeFourth()
{
theStepInterval = ResetTime;
theTime = theStepInterval;
thePriorityQueue->move(theQueueID);
}
virtual int getPriority()
{
return Priority;
}
protected:
int Priority;
double GaussianSigma;
double OriginX;
double OriginY;
double OriginZ;
double ResetTime;
double UniformRadiusX;
double UniformRadiusY;
double UniformRadiusZ;
};
#endif /* __MoleculePopulateProcess_hpp */