1
//------------------------------------------------------------------------------
3
// This file is part of Toolkit for Conceptual Modeling (TCM).
4
// (c) copyright 1996, Vrije Universiteit Amsterdam.
5
// Author: Frank Dehne (frank@cs.vu.nl).
7
// TCM is free software; you can redistribute it and/or modify
8
// it under the terms of the GNU General Public License as published by
9
// the Free Software Foundation; either version 2 of the License, or
10
// (at your option) any later version.
12
// TCM is distributed in the hope that it will be useful,
13
// but WITHOUT ANY WARRANTY; without even the implied warranty of
14
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
// GNU General Public License for more details.
17
// You should have received a copy of the GNU General Public License
18
// along with TCM; if not, write to the Free Software
19
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
21
//-----------------------------------------------------------------------------
22
#ifndef _DATAPROCESS_H
23
#define _DATAPROCESS_H
25
#include "dfprocess.h"
27
/// data process (DF) node class.
28
class DataProcess: public DFProcess {
29
/*@Doc: {\large {\bf scope:} TDFD} */
32
DataProcess(DFGraph *g);
34
int GetClassType() const {return Code::DATA_PROCESS;}
36
Subject *Clone() {return new DataProcess(*this);}
38
enum ActivationType {UNSPECIFIED, STIMULUS, TRIGGER, TIME};
40
void WriteMembers(OutputFile *f);
42
bool ReadMembers(InputFile *f, double format);
44
bool SetReferences(AssocList *);
46
bool IsProcessGroup() const {return processGroup;}
48
bool IsInstantaneous() const {return instantaneous;}
50
void SetInstantaneous(bool b);
52
void SetProcessGroup(bool b);
54
const string *GetMinispec() const {return &minispec;}
56
void SetMinispec(const string *s);
58
ActivationType GetActivationMechanism() const {
59
return activationMechanism;}
61
void SetActivationMechanism(ActivationType a);
63
const string *GetStimulus() const {return &stimulus;}
65
void SetStimulus(const string *s);
67
const string *GetTimeExpression() const {return &timeExpression;}
69
void SetTimeExpression(const string *s);
71
static void ActivationType2String(ActivationType a, string *s);
73
static ActivationType String2ActivationType(const string *s);
80
ActivationType activationMechanism;
82
string timeExpression;