School Work

sd lab

Description
sd lab vtu
Categories
Published
of 36
All materials on our website are shared by users. If you have any questions about copyright issues, please report us to resolve them. We are always happy to assist you.
Related Documents
Share
Transcript
  T O C E NAME : PRASANNA SANTHANA KUMAR S USN: 1OY12MCA13  1. Publisher-Subscriber USECASE DIAGRAM PATTERN INSTANCE Software Desi! a#orator$ %1&MCA'() De*t of MCA+ ' t,  Se- . /0Setio! Page | 1  T O C E NAME : PRASANNA SANTHANA KUMAR S USN: 1OY12MCA13C ASS DIAGRAMSEUENCE DIAGRAM Software Desi! a#orator$ %1&MCA'() De*t of MCA+ ' t,  Se- . /0Setio! Page | 2  T O C E NAME : PRASANNA SANTHANA KUMAR S USN: 1OY12MCA13ACTI4ITY DIAGRAM:  5a6a Co7e I-*8e-e!tatio!: CLASS 1:- Weatherstation.java  public class weatherstation { public static void main(String []args { !eather ata wd#new !eather ata($ CurrentCondition ispla% ccd#new CurrentCondition ispla%(wd$ &orecast ispla% 'd#new &orecast ispla%(wd$ wdsetmeasurement()*'+ ,'+ .*/'$ wdsetmeasurement()0'+ *'+ 020'$ 33 wdsetmeasurement()0'+ 2*'+ 020'$ 44CLASS 0:- WeatherData.java import 5avautil6bservable$ public class !eather ata e7tends 6bservable { private &loat 8emprature$ Software Desi! a#orator$ %1&MCA'() De*t of MCA+ ' t   ,  Se- . /0Setio! Page | 3  T O C E NAME : PRASANNA SANTHANA KUMAR S USN: 1OY12MCA13  public &loat get8emprature({return 8emprature$4 public void set8emprature(&loat the8emprature {8emprature # the8emprature$ 4 private &loat 9ressure$ public &loat get9ressure( {return 9ressure$4 public void set9ressure(&loat the9ressure {9ressure # the9ressure$4 private &loat umidit%$ public &loat getumidit%( {return umidit%$4 public void setumidit%(&loat theumidit% {umidit% # theumidit%$4 public !eather ata( {4 public void measurementchanged( { thissetChanged($ thisnoti'%6bservers($ 33call update method o' each observer 4 public void setmeasurement(&loat temp+&loat hum+&loat p {this8emprature#temp$thisumidit%#hum$this9ressure#p$ thismeasurementchanged($44CLASS .:- ForecastDisplay.java import 5avautil6bservable$import 5avautil6bserver$ public class &orecast ispla% implements 6bserver Software Desi! a#orator$ %1&MCA'() De*t of MCA+ ' t   ,  Se- . /0Setio! Page | 4
We Need Your Support
Thank you for visiting our website and your interest in our free products and services. We are nonprofit website to share and download documents. To the running of this website, we need your help to support us.

Thanks to everyone for your continued support.

No, Thanks