Difference between revisions of "Wristwatch Example"

From WeizmannWiki
Jump to: navigation, search
Line 1: Line 1:
We will present each of the requirements text, and the LSC created from them.   
+
We will present each of the requirements text, and the LSC created from them. 
  
 
== Requirements  ==
 
== Requirements  ==
Line 7: Line 7:
 
{| width="100%" border="1" align="left" cellpadding="1" cellspacing="1"
 
{| width="100%" border="1" align="left" cellpadding="1" cellspacing="1"
 
|-
 
|-
| when the user clicks the d_button, if the display mode is time, the display mode changes to date, otherwise if the display mode is date, the display mode changes to time.  
+
| when the user clicks the d_button, if the display mode is time, the display mode changes to date, otherwise if the display mode is date, the display mode changes to time.
 
| [[Image:WatchModes.png|thumb|left|70px|LSC]]
 
| [[Image:WatchModes.png|thumb|left|70px|LSC]]
 
|-
 
|-
| when the user clicks the a_button, if the display mode is time, the display mode changes to alarm, otherwise if the display mode is alarm, the display mode changes to chime, otherwise if the display mode is chime, the display mode changes to stopwatch, otherwise if the display mode is stopwatch, the display mode changes to time.  
+
| when the user clicks the a_button, if the display mode is time, the display mode changes to alarm, otherwise if the display mode is alarm, the display mode changes to chime, otherwise if the display mode is chime, the display mode changes to stopwatch, otherwise if the display mode is stopwatch, the display mode changes to time.
 
| [[Image:Modes.png|thumb|left|70px|LSC]]
 
| [[Image:Modes.png|thumb|left|70px|LSC]]
 
|-
 
|-
| when the user clicks the c_button , if the display mode is alarm then the display mode changes to "alarm minutes" , otherwise if the display mode is "alarm minutes" then the display mode changes to "alarm hours" , otherwise if the display mode is "alarm hours" then the display mode changes to alarm  
+
| when the user clicks the c_button , if the display mode is alarm then the display mode changes to "alarm minutes" , otherwise if the display mode is "alarm minutes" then the display mode changes to "alarm hours" , otherwise if the display mode is "alarm hours" then the display mode changes to alarm
 
| [[Image:ModesAlarm.png|thumb|left|70px|LSC]]
 
| [[Image:ModesAlarm.png|thumb|left|70px|LSC]]
 
|-
 
|-
| when the user clicks the b_button, if the display mode is “alarm minutes”, the display mode changes to alarm  
+
| when the user clicks the b_button, if the display mode is “alarm minutes”, the display mode changes to alarm
 
| [[Image:ModeAlarmEnd.png|thumb|left|70px|LSC]]
 
| [[Image:ModeAlarmEnd.png|thumb|left|70px|LSC]]
 
|-
 
|-
| when the user clicks the b_button, if the display mode is “alarm hours” , the display mode changes to alarm  
+
| when the user clicks the b_button, if the display mode is “alarm hours” , the display mode changes to alarm
 
| [[Image:ModeAlarmHoursEnd.png|thumb|left|70px|LSC]]
 
| [[Image:ModeAlarmHoursEnd.png|thumb|left|70px|LSC]]
 
|-
 
|-
| when the user clicks the a_button , if the display mode is "alarm minutes" , the alarm increases in one minute , otherwise if the display mode is "alarm hours" , the alarm increases by one hour  
+
| when the user clicks the a_button , if the display mode is "alarm minutes" , the alarm increases in one minute , otherwise if the display mode is "alarm hours" , the alarm increases by one hour
 
| [[Image:IncreaseTime.png|thumb|left|70px|LSC]]
 
| [[Image:IncreaseTime.png|thumb|left|70px|LSC]]
 
|-
 
|-
| when the user clicks the c_button , if the display mode is time , the display mode changes to update and the update type changes to seconds  
+
| when the user clicks the c_button , if the display mode is time , the display mode changes to update and the update type changes to seconds
 
| [[Image:UpdateSeconds.png|thumb|left|70px|LSC]]
 
| [[Image:UpdateSeconds.png|thumb|left|70px|LSC]]
 
|}
 
|}
Line 33: Line 33:
 
{| width="100%" border="1" align="left" cellpadding="1" cellspacing="1"
 
{| width="100%" border="1" align="left" cellpadding="1" cellspacing="1"
 
|-
 
|-
| when the user clicks the c_button , if the update type is seconds , the update type changes to minutes otherwise if the update type is minutes , the update type changes to hours otherwise if the update type is hours , the update type changes to date otherwise if the update type is date, the display mode changes to time and the update type changes to none  
+
| when the user clicks the c_button , if the update type is seconds , the update type changes to minutes otherwise if the update type is minutes , the update type changes to hours otherwise if the update type is hours , the update type changes to date otherwise if the update type is date, the display mode changes to time and the update type changes to none
 
| [[Image:UpdateType.png|thumb|left|70px|LSC]]
 
| [[Image:UpdateType.png|thumb|left|70px|LSC]]
 
|-
 
|-
| when the update type changes , if the update type equals seconds , the display blinks seconds , otherwise if the update type equals minutes , the display blinks minutes , otherwise the display blinks none  
+
| when the update type changes , if the update type equals seconds , the display blinks seconds , otherwise if the update type equals minutes , the display blinks minutes , otherwise the display blinks none
 
| [[Image:UpdateTypeBlink.png|thumb|left|70px|LSC]]
 
| [[Image:UpdateTypeBlink.png|thumb|left|70px|LSC]]
 
|-
 
|-
| when the update type changes, the display mode changes to update  
+
| when the update type changes, the display mode changes to update
 
| [[Image:UpdateTypeChange.png|thumb|left|70px|LSC]]
 
| [[Image:UpdateTypeChange.png|thumb|left|70px|LSC]]
 
|}
 
|}
Line 45: Line 45:
 
=== Time  ===
 
=== Time  ===
  
{| width="100%" align="left" cellpadding="1" cellspacing="1"
+
{| width="100%" border="1" align="left" cellpadding="1" cellspacing="1"
 
|-
 
|-
| when the clock ticks, the time increases by one second  
+
| when the clock ticks, the time increases by one second
| [[Image:TimeTicks.png|thumb|left|70px|LSC]]
+
| [[Image:TimeTicks.png|thumb|left|50px|LSC]]
 
|-
 
|-
| when the time value changes, if the display mode is time, the display text changes to time value  
+
| when the time value changes, if the display mode is time, the display text changes to time value
| [[Image:ShowTime.png|thumb|left|70px|LSC]]
+
| [[Image:ShowTime.png|thumb|left|50px|LSC]]
 
|}
 
|}
  
Line 58: Line 58:
 
{| width="100%" border="1" align="left" cellpadding="1" cellspacing="1"
 
{| width="100%" border="1" align="left" cellpadding="1" cellspacing="1"
 
|-
 
|-
| when the user clicks the b_button, if the light state is on , the light state turns to off , otherwise if the light state is off , the light state turns to on  
+
| when the user clicks the b_button, if the light state is on , the light state turns to off , otherwise if the light state is off , the light state turns to on
 
| [[Image:LightState.png|thumb|left|70px|LSC]]
 
| [[Image:LightState.png|thumb|left|70px|LSC]]
 
|}
 
|}
  
<br>  
+
<br>
  
 
=== Alarm  ===
 
=== Alarm  ===
Line 68: Line 68:
 
{| width="100%" border="1" align="left" cellpadding="1" cellspacing="1"
 
{| width="100%" border="1" align="left" cellpadding="1" cellspacing="1"
 
|-
 
|-
| when the time value changes , if the time value equals the alarm value and the alarm state is enabled then the beeper state turns to on  
+
| when the time value changes , if the time value equals the alarm value and the alarm state is enabled then the beeper state turns to on
 
| [[Image:AlarmState.png|thumb|left|LSC]]
 
| [[Image:AlarmState.png|thumb|left|LSC]]
 
|}
 
|}
  
<br> TODO - Should have a link from the Example Page.  
+
<br> TODO - Should have a link from the Example Page.
  
 
== Download the Wrist Watch Example  ==
 
== Download the Wrist Watch Example  ==
  
The following zip files contain...  
+
The following zip files contain...
  
[[Media:WristWatchExampleSwingGUI.zip|WristWatchExampleSwingGUI.zip]] <br> [[Media:WristWatchExampleSystemModelGUI.zip|WristWatchExampleSystemModelGUI.zip]]  
+
[[Media:WristWatchExampleSwingGUI.zip|WristWatchExampleSwingGUI.zip]] <br> [[Media:WristWatchExampleSystemModelGUI.zip|WristWatchExampleSystemModelGUI.zip]]
  
 
== Installation Instructions  ==
 
== Installation Instructions  ==
  
#Extract the downloaded file. The zip includes an executable jar and a properties file - ToDO: extend this and add image of the extracted folder.  
+
#Extract the downloaded file. The zip includes an executable jar and a properties file - ToDO: extend this and add image of the extracted folder.
 
#Double click the jar and start playing
 
#Double click the jar and start playing

Revision as of 13:38, 6 February 2013

We will present each of the requirements text, and the LSC created from them. 

Requirements

Watch Modes

when the user clicks the d_button, if the display mode is time, the display mode changes to date, otherwise if the display mode is date, the display mode changes to time.
LSC
when the user clicks the a_button, if the display mode is time, the display mode changes to alarm, otherwise if the display mode is alarm, the display mode changes to chime, otherwise if the display mode is chime, the display mode changes to stopwatch, otherwise if the display mode is stopwatch, the display mode changes to time.
LSC
when the user clicks the c_button , if the display mode is alarm then the display mode changes to "alarm minutes" , otherwise if the display mode is "alarm minutes" then the display mode changes to "alarm hours" , otherwise if the display mode is "alarm hours" then the display mode changes to alarm
LSC
when the user clicks the b_button, if the display mode is “alarm minutes”, the display mode changes to alarm
LSC
when the user clicks the b_button, if the display mode is “alarm hours” , the display mode changes to alarm
LSC
when the user clicks the a_button , if the display mode is "alarm minutes" , the alarm increases in one minute , otherwise if the display mode is "alarm hours" , the alarm increases by one hour
LSC
when the user clicks the c_button , if the display mode is time , the display mode changes to update and the update type changes to seconds
LSC

Updates

when the user clicks the c_button , if the update type is seconds , the update type changes to minutes otherwise if the update type is minutes , the update type changes to hours otherwise if the update type is hours , the update type changes to date otherwise if the update type is date, the display mode changes to time and the update type changes to none
LSC
when the update type changes , if the update type equals seconds , the display blinks seconds , otherwise if the update type equals minutes , the display blinks minutes , otherwise the display blinks none
LSC
when the update type changes, the display mode changes to update
LSC

Time

when the clock ticks, the time increases by one second
LSC
when the time value changes, if the display mode is time, the display text changes to time value
LSC

Light

when the user clicks the b_button, if the light state is on , the light state turns to off , otherwise if the light state is off , the light state turns to on
LSC


Alarm

when the time value changes , if the time value equals the alarm value and the alarm state is enabled then the beeper state turns to on
LSC


TODO - Should have a link from the Example Page.

Download the Wrist Watch Example

The following zip files contain...

WristWatchExampleSwingGUI.zip
WristWatchExampleSystemModelGUI.zip

Installation Instructions

  1. Extract the downloaded file. The zip includes an executable jar and a properties file - ToDO: extend this and add image of the extracted folder.
  2. Double click the jar and start playing