Class Diagram
2018-05-13 21:12:58 7 举报
uml
作者其他创作
大纲/内容
ElectricityScannerDao(control)
+ElectricityMeter readData(String uuid)+Integer fakeData()
GasMeter(Entity)
+ getUsedGas()+ setUsedGas()+ getLatestGas()+ setLastestGas()+ addData()+ getHistory()+ getTodayHistory()+ getWeekHistory()+ getMonHistory()
ConsumerDao(control)
+void saveData(Consumer consumer)+ Consumer readData(String uuid)
File文件
ProviderDao
+ saveData(Provider provider) + Provider readData()
ElectricityScanner(entity)
- Consumer consumer- ElectricityScannerDao ElectricityScannerDao
+ getConsumer()+ setConsumer()+ startScanner()+ scan()+ run()
Consumer(Entity)
- String name- String id- String password- ElectricityMeter electricitymeter- GasMeter gasMeter- Integer electricityBudget- Integer gasBudget
+ getName()+ setName()+ getID()+ setID()+ getPassword()+ setPassword()+ getElectricityMeter()+ setElectricityMeter()+ getGasMeter()+ setGasMeter()+ getElectricityBudget()+ setElectricityBudget()+ getGasBudget()+ setGasBudget()
UuidUtil(entity)
+getUUID()
ElectricityMeter(Entity)
+ getUsedElectricity()+ setUsedElectricity()+ getLatestElectricity()+ setLastestElectricity()+ addData()+ getHistory()+ getTodayHistory()+ getWeekHistory()+ getMonHistory()
GasScanner(entity)
TimeUtil(entity)
+getTimesmorning()+getTimesnight()+getTimesWeekmorning+getTimesWeeknight()+getTimesMonthmorning()+getTimeMonthnight()
Provider(Entity)
- Double gasTariff- Double electricTariff- String name- String password- List consumerslist
GasScannerDao(control)
+GasMeter readData(String uuid)+Integer fakeData()
收藏
收藏
0 条评论
下一页