I am beginner in UML. The following is a UML object-model diagram that shows a single object called Timer, which has attributes minutes and seconds of type integer, as well as public operations tick() and reset().
The correspondig C Structure is:
struct Timer_t {
int mins; /*## attribute mins */
int secs; /*## attribute secs */
};
/* Operations */
/*## operation reset() */
void Timer_reset();
/*## operation tick() */
void Timer_tick();
With respect to this diagram I would like to understand the physical interpretation of the following:
1- 1 at the top left (Is it no. of instances that will be instantiated during the lifetime of the application?)
2- <<Singleton>> (If it is stereotype to highlight that the object is an instance of a singleton class, then why do we also mention 1 at the top left?)
source : UML for C Programmers
