GreenhouseControls
2018-01-16 16:53:00 1 举报
java编程思想P209 innerclasses
作者其他创作
大纲/内容
Bell
+ Bell(delayTime)+ action():void+ toString():String
内部类
ThermostatNight
+ ThermostatNight(delayTime)+ action():void+ toString():String
ThermostatDay
+ ThermostatDay(delayTime)+ action():void+ toString():String
GreenhouseControls
- light:boolean = false- water:boolean = false- thermostat:boolean =false
Restart
+ eventList:Event[]
Terminate
+ Terminate(delayTime)+ action():void+ toString():String
WaterOn
+ WaterOn(delayTime)+ action():void+ toString():String
Controller
- eventList:List = new ArrayList()
+ addEvent(Event):void + run():void
Event
- eventTime:long # delayTime:long
+ Event(eventTime)+ start():void+ ready():boolean+ action():void
LightOn
+ LightOn(delayTime)+ action():void+ toString():String
WaterOff
+ WaterOff(delayTime)+ action():void+ toString():String
LightOff
+ LightOff(delayTime)+ action():void+ toString():String
收藏
0 条评论
下一页
为你推荐
查看更多
抱歉,暂无相关内容