Graph documentation: Stopwatch

Documentation [Watch]: Application for timing events. Stopwatch allows the user to start, stop and reset the timing device.

Graph picture: Stopwatch

Graph dictionary

ObjectType of objectDocumentation
Action 
Action   
Action 
Action   
Action 
Action   
Down 
Button   
Mode 
Button   
Up 
Button   
  
DisplayFn   
running 
DisplayFn   
stopwatch 
Icon   
Start [Watch] 
Start [Watch]   
Running 
State [Watch]  In this state the stopwatch is running and the current running time is shown on display (calculated in the 'running' DisplayFn from sysTime - startTime). 
Stopped 
State [Watch]  In this state the Stopwatch is stopped and current stop time is shown on the display. 
Stop [Watch] 
Stop [Watch]   
startTime 
Variable  Variable that stores the start time of the running stopwatch. 
stopTime 
Variable  Variable that stores the current stop time: how many seconds had elapsed when the stopwatch was stopped. 
sysTime 
VariableRef  This is the underlying system's real clock, unaffected by changing clockOffset to set the time the running Watch perceives. 


: Action

Properties:

Action relationships:
In roleIn relationshipWith object(s)In role
: Action : Transition Down : Event  
 Stopped : From  
 Stopped : To
: ActionBody  : Set startTime : Get  
 startTime : Minus  
 stopTime : Set

Action links:
Link typeGraph's name
Decompositionnone
Explosionsnone


: Action

Properties:

Action relationships:
In roleIn relationshipWith object(s)In role
: Action : Transition Up : Event  
 Stopped : From  
 Running : To
: ActionBody  : Set sysTime : Get  
 stopTime : Minus  
 startTime : Set
: ActionBody  : Icon stopwatch On: Boolean

Action links:
Link typeGraph's name
Decompositionnone
Explosionsnone


: Action

Properties:

Action relationships:
In roleIn relationshipWith object(s)In role
: Action : Transition Up : Event  
 Running : From  
 Stopped : To
: ActionBody  : Set sysTime : Get  
 startTime : Minus  
 stopTime : Set
: ActionBody  : Icon stopwatch Off: Boolean

Action links:
Link typeGraph's name
Decompositionnone
Explosionsnone


Down: Button

Properties:
Name [Watch]Down 

Down relationships:
In roleIn relationshipWith object(s)In role
: Event : Transition Action : Action  
 Stopped : From  
 Stopped : To

Down links:
Link typeGraph's name
Decompositionnone
Explosionsnone


Mode: Button

Properties:
Name [Watch]Mode 

Mode relationships:
In roleIn relationshipWith object(s)In role
: Event : Transition Stopped : From  
 Stop [Watch] : To
: Event : Transition Running : From  
 Stop [Watch] : To

Mode links:
Link typeGraph's name
Decompositionnone
Explosionsnone


Up: Button

Properties:
Name [Watch]Up 

Up relationships:
In roleIn relationshipWith object(s)In role
: Event : Transition Action : Action  
 Stopped : From  
 Running : To
: Event : Transition Action : Action  
 Running : From  
 Stopped : To

Up links:
Link typeGraph's name
Decompositionnone
Explosionsnone


: DisplayFn

Properties:
Name [Watch] 
Obligatory time unitSECOND 

relationships:
In roleIn relationshipWith object(s)In role
: DisplayFnBody : Set stopTime : Get

links:
Link typeGraph's name
Decompositionnone
Explosionsnone


running: DisplayFn

Properties:
Name [Watch]running 
Obligatory time unitSECOND 

running relationships:
In roleIn relationshipWith object(s)In role
: DisplayFnBody : Set sysTime : Get  
 startTime : Minus

running links:
Link typeGraph's name
Decompositionnone
Explosionsnone


stopwatch: Icon

Properties:
IconIDstopwatch 

stopwatch relationships:
In roleIn relationshipWith object(s)In role
Off: Boolean  : Icon Action : ActionBody
On: Boolean  : Icon Action : ActionBody

stopwatch links:
Link typeGraph's name
Decompositionnone
Explosionsnone


: Start [Watch]

Properties:

Start [Watch] relationships:
In roleIn relationshipWith object(s)In role
: From : Transition Stopped : To

Start [Watch] links:
Link typeGraph's name
Decompositionnone
Explosionsnone


Running: State [Watch]

Properties:
Name [Watch]Running 
DisplayFnRefrunning 
Time unit 
Documentation [Watch]In this state the stopwatch is running and the current running time is shown on display (calculated in the 'running' DisplayFn from sysTime - startTime). 

Running relationships:
In roleIn relationshipWith object(s)In role
: From : Transition Action : Action  
 Up : Event  
 Stopped : To
: From : Transition Mode : Event  
 Stop [Watch] : To
: To : Transition Action : Action  
 Up : Event  
 Stopped : From

Running links:
Link typeGraph's name
Decompositionnone
Explosionsnone


Stopped: State [Watch]

Properties:
Name [Watch]Stopped 
DisplayFnRef 
Time unit 
Documentation [Watch]In this state the Stopwatch is stopped and current stop time is shown on the display. 

Stopped relationships:
In roleIn relationshipWith object(s)In role
: From : Transition Mode : Event  
 Stop [Watch] : To
: From : Transition Action : Action  
 Down : Event  
 Stopped : To
: From : Transition Action : Action  
 Up : Event  
 Running : To
: To : Transition Action : Action  
 Up : Event  
 Running : From
: To : Transition Action : Action  
 Down : Event  
 Stopped : From
: To : Transition Start [Watch] : From

Stopped links:
Link typeGraph's name
Decompositionnone
Explosionsnone


: Stop [Watch]

Properties:

Stop [Watch] relationships:
In roleIn relationshipWith object(s)In role
: To : Transition Mode : Event  
 Running : From
: To : Transition Mode : Event  
 Stopped : From

Stop [Watch] links:
Link typeGraph's name
Decompositionnone
Explosionsnone


startTime: Variable

Properties:
Name [Watch]startTime 
TypeMETime 
Documentation [Watch]Variable that stores the start time of the running stopwatch. 

startTime relationships:
In roleIn relationshipWith object(s)In role
: Get : Set Action : ActionBody  
 startTime : Minus  
 stopTime : Set
: Minus : Set Action : ActionBody  
 startTime : Get  
 stopTime : Set
: Minus : Set Action : ActionBody  
 sysTime : Get  
 stopTime : Set
: Minus : Set running : DisplayFnBody  
 sysTime : Get
: Set : Set Action : ActionBody  
 sysTime : Get  
 stopTime : Minus

startTime links:
Link typeGraph's name
Decompositionnone
Explosionsnone


stopTime: Variable

Properties:
Name [Watch]stopTime 
TypeMETime 
Documentation [Watch]Variable that stores the current stop time: how many seconds had elapsed when the stopwatch was stopped. 

stopTime relationships:
In roleIn relationshipWith object(s)In role
: Get : Set  : DisplayFnBody
: Minus : Set Action : ActionBody  
 sysTime : Get  
 startTime : Set
: Set : Set Action : ActionBody  
 sysTime : Get  
 startTime : Minus
: Set : Set Action : ActionBody  
 startTime : Get  
 startTime : Minus

stopTime links:
Link typeGraph's name
Decompositionnone
Explosionsnone


sysTime: VariableRef

Properties:
Name [Watch]sysTime 
TypeMETime 
Documentation [Watch]This is the underlying system's real clock, unaffected by changing clockOffset to set the time the running Watch perceives. 

sysTime relationships:
In roleIn relationshipWith object(s)In role
: Get : Set Action : ActionBody  
 stopTime : Minus  
 startTime : Set
: Get : Set running : DisplayFnBody  
 startTime : Minus
: Get : Set Action : ActionBody  
 startTime : Minus  
 stopTime : Set

sysTime links:
Link typeGraph's name
Decompositionnone
Explosionsnone