2009/06/30
Last week, I tried to redesign the Agent class for my thinking.
These were my works,
1. I visualized existing class diagram with Doxygen
2. I understood the attributes and methods in exisiting class
3. I tried to redesign those attributes and methods for my thinking, but I could not organize my thinking yet.
And so, I will continue to redesign the Agent class in this week.
By the way, I studied the "pure virtual funtion."
In C++, pure virtual functions are declared using a special syntax [ =0 ] as below.
virtual type func-name( parameter-list ) = 0;
ex) virtual void Initialize() = 0;
The pure virtual function declaration in abstract_class provides only the prototype of the method.
Abstract class itself cannnot make objects.
We have to ( or can ) redefine the function in each sub_class.
These were my works,
1. I visualized existing class diagram with Doxygen
2. I understood the attributes and methods in exisiting class
3. I tried to redesign those attributes and methods for my thinking, but I could not organize my thinking yet.
And so, I will continue to redesign the Agent class in this week.
By the way, I studied the "pure virtual funtion."
In C++, pure virtual functions are declared using a special syntax [ =0 ] as below.
virtual type func-name( parameter-list ) = 0;
ex) virtual void Initialize() = 0;
The pure virtual function declaration in abstract_class provides only the prototype of the method.
Abstract class itself cannnot make objects.
We have to ( or can ) redefine the function in each sub_class.



