Trull

edu.luc.cs.trull.demo.wristwatch
Class DateModel

java.lang.Object
  extended by edu.luc.cs.trull.demo.wristwatch.DateModel
All Implemented Interfaces:
DateConstants

public class DateModel
extends java.lang.Object
implements DateConstants

The passive data model of the wristwatch.


Field Summary
private  int day
           
private  int month
           
private  int time
           
 
Fields inherited from interface edu.luc.cs.trull.demo.wristwatch.DateConstants
HOURS_PER_DAY, MIN_PER_HOUR, MONTHS_PER_YEAR, SEC_PER_DAY, SEC_PER_HOUR, SEC_PER_MIN, SEC_PER_TICK
 
Constructor Summary
DateModel()
           
 
Method Summary
(package private)  int daysPerMonth()
           
 int getDay()
           
 int getMonth()
           
 int getTime()
           
 void incrementDay()
           
 void incrementSecond()
           
 void setDay(int newday)
           
 void setMonth(int newmonth)
           
 void setTime(int newtime)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

day

private int day

month

private int month

time

private int time
Constructor Detail

DateModel

public DateModel()
Method Detail

daysPerMonth

final int daysPerMonth()

getDay

public int getDay()

getMonth

public int getMonth()

getTime

public int getTime()

incrementDay

public void incrementDay()

incrementSecond

public void incrementSecond()

setDay

public void setDay(int newday)

setMonth

public void setMonth(int newmonth)

setTime

public void setTime(int newtime)

Trull

http://www.cs.luc.edu/trull/