lafagnosticuifoundation/clockanim/ddesign/CLOCK.MDL
changeset 33 b3425bf29f82
parent 0 2f259fa3e83a
equal deleted inserted replaced
21:558113899881 33:b3425bf29f82
    33 	subsystem  	"<Top Level>"
    33 	subsystem  	"<Top Level>"
    34 	logical_models 	(list unit_reference_list
    34 	logical_models 	(list unit_reference_list
    35 	    (object Class "CClock"
    35 	    (object Class "CClock"
    36 		documentation 	
    36 		documentation 	
    37 |This class has the following properties:-
    37 |This class has the following properties:-
       
    38 
    38 |(i) RWindow * pointing to a window owned elsewhere;
    39 |(i) RWindow * pointing to a window owned elsewhere;
       
    40 
    39 |(ii) CPeriodic * pointing to a periodic timer owned by the class;
    41 |(ii) CPeriodic * pointing to a periodic timer owned by the class;
       
    42 
    40 |(iii) TPoint storing the position of the centre of the clock;
    43 |(iii) TPoint storing the position of the centre of the clock;
       
    44 
    41 |(iv) TDateTime storing the date and time;
    45 |(iv) TDateTime storing the date and time;
       
    46 
    42 |(v) TSize iSize;
    47 |(v) TSize iSize;
       
    48 
    43 |(vi) TUint iNumTicksPerUpdate.
    49 |(vi) TUint iNumTicksPerUpdate.
    44 		
    50 		
    45 		fields     	(list has_relationship_list
    51 		fields     	(list has_relationship_list
    46 		    (object Has_Relationship
    52 		    (object Has_Relationship
    47 			supplier   	"CPeriodic"))
    53 			supplier   	"CPeriodic"))
    94 	    (object Class "CPeriodic"
   100 	    (object Class "CPeriodic"
    95 		documentation 	"Provided by E32.")
   101 		documentation 	"Provided by E32.")
    96 	    (object Class "CAnalogueDial"
   102 	    (object Class "CAnalogueDial"
    97 		documentation 	
   103 		documentation 	
    98 |Properties:
   104 |Properties:
       
   105 
    99 |(i) RBitmap iDialFace;
   106 |(i) RBitmap iDialFace;
       
   107 
   100 |(iii) a list of CHands.
   108 |(iii) a list of CHands.
       
   109 
   101 |(iv) CAnalogueDial *
   110 |(iv) CAnalogueDial *
   102 		
   111 		
   103 		fields     	(list has_relationship_list
   112 		fields     	(list has_relationship_list
   104 		    (object Has_Relationship
   113 		    (object Has_Relationship
   105 			supplier   	"CAnalogueDialHand"
   114 			supplier   	"CAnalogueDialHand"
   113 			supplier   	"TClockMathsUtils"))
   122 			supplier   	"TClockMathsUtils"))
   114 		abstract   	TRUE)
   123 		abstract   	TRUE)
   115 	    (object Class "CAnalogueDialHand"
   124 	    (object Class "CAnalogueDialHand"
   116 		documentation 	
   125 		documentation 	
   117 |This class models the behaviour of a clock hand, NOT its visual appearance. It has the following properties:-
   126 |This class models the behaviour of a clock hand, NOT its visual appearance. It has the following properties:-
       
   127 
   118 |(i) TPoint storing the position of the tip of the hand
   128 |(i) TPoint storing the position of the tip of the hand
       
   129 
   119 |(ii) TUint storing how long one revolution of the dial takes;
   130 |(ii) TUint storing how long one revolution of the dial takes;
       
   131 
   120 |(iii) TUint storing how many updates per second are required;
   132 |(iii) TUint storing how many updates per second are required;
       
   133 
   121 |Appearance and behaviour have been separated out since the former is decided upon by the USER-programmer, whereas the latter is determined by the SUBCLASSER-programmer.
   134 |Appearance and behaviour have been separated out since the former is decided upon by the USER-programmer, whereas the latter is determined by the SUBCLASSER-programmer.
   122 		
   135 		
   123 		fields     	(list has_relationship_list
   136 		fields     	(list has_relationship_list
   124 		    (object Has_Relationship
   137 		    (object Has_Relationship
   125 			supplier   	"CHandAppearance"
   138 			supplier   	"CHandAppearance"
   129 		    (object Association
   142 		    (object Association
   130 			supplier   	"CHandAppearance")))
   143 			supplier   	"CHandAppearance")))
   131 	    (object Class "CHandAppearance"
   144 	    (object Class "CHandAppearance"
   132 		documentation 	
   145 		documentation 	
   133 |This class is solely concerned with the visual form of the hand on the screen (see documentation on class "CAnalogueDialHand"). It has the following properties:
   146 |This class is solely concerned with the visual form of the hand on the screen (see documentation on class "CAnalogueDialHand"). It has the following properties:
       
   147 
   134 |(i) TUint storing the length of the hand (i.e the distance from the centre to the furthest point);
   148 |(i) TUint storing the length of the hand (i.e the distance from the centre to the furthest point);
       
   149 
   135 |(ii) TUint storing the length backwards (i.e. the distance the hand extends the other way).
   150 |(ii) TUint storing the length backwards (i.e. the distance the hand extends the other way).
   136 		
   151 		
   137 		superclasses 	(list inheritance_relationship_list
   152 		superclasses 	(list inheritance_relationship_list
   138 		    (object Inheritance_Relationship
   153 		    (object Inheritance_Relationship
   139 			supplier   	"CVectorDrawing")))
   154 			supplier   	"CVectorDrawing")))