1
//////////////////////////////////////////////////////////////////////////////////
2
// This file is part of Toolkit for Conceptual Modeling (TCM).
3
// (c) copyright 2001, Universiteit Twente.
4
// Author: Rik Eshuis (eshuis@cs.utwente.nl).
6
// TCM is free software; you can redistribute it and/or modify
7
// it under the terms of the GNU General Public License as published by
8
// the Free Software Foundation; either version 2 of the License, or
9
// (at your option) any later version.
11
// TCM is distributed in the hope that it will be useful,
12
// but WITHOUT ANY WARRANTY; without even the implied warranty of
13
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
// GNU General Public License for more details.
16
// You should have received a copy of the GNU General Public License
17
// along with TCM; if not, write to the Free Software
18
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
20
////////////////////////////////////////////////////////////////////////////////
21
#include "adsactivity.h"
22
#include "outputfile.h"
23
#include "adsvariable.h"
25
ADSActivity::ADSActivity(string str){
32
ADSActivity::ADSActivity(const ADSActivity ©){
39
ADSActivity::~ADSActivity(){}
41
bool ADSActivity::operator==(const ADSActivity &comp) const{
46
string ADSActivity::GetName(void){
51
void ADSActivity::AddUpdate(ADSVar *v){
53
for (ul.first();!ul.done();ul.next()){
54
if (*ul.cur()==*v) {b=False;break;}
60
void ADSActivity::RemoveUpdate(ADSVar *v){
65
void ADSActivity::Write(OutputFile *ofile){
67
(* ofile)<< "\t{ Basic activity : " << s << " }\n";
70
void ADSActivity::Write(){
72
std::cout<< "\t{ Basic activity : " << s << " }\n";
73
for (ul.first();!ul.done();ul.next()){
74
ul.cur()->WriteScreen();