Find Jobs
Hire Freelancers

Greenhouse Controls

$10-30 USD

Finalizat
Data postării: aproape 10 ani în urmă

$10-30 USD

Plata la predare
Write and submit one complete Java program to solve the following requirements. Your program will employ packages (that is, source directories), and contain multiple source files. Because you are using packages, much of your code should be in a directory named “Greenhouse.” You should be able to compile your code using the command “javac Greenhouse\*.java” from a directory just below the Greenhouse directory. Greenhouse is a house in which many events could happen, for example, doors may open and close, windows may open and close, fans may turn on or off, lights may turn on or off, an alarm may sound, the thermostat may turn on or off, watering machines may start or stop, and so on. Each event has its own timer and jobs (Hint: use a superclass with separate subclasses, and a thread); for example, the alarm may sound five times when the thermostat has failed, and the fans may not come on until this situation is resolved, even if the fans are supposed to be on. Different events may have different priorities. At the very beginning, a greenhouse (i.e., an object/instance of the Greenhouse class) has to read the operating plan from the file greenhouse_plan.txt. The contents and format of the file are listed below. Note: You cannot alter the format of this file, but you may add additional events when testing. priority=*,10 priority=Light,5 priority=Bell,1 priority=Thermostat,2 event=Thermostat,1000,* event=Light,1000,1000 priority=Water,5 event=Water,3000,5000 test=Bell,1000 failed=Thermostat,7000 event=Water,8000,5000 event=Fan,10000,2000 Of course, the greenhouse should be able to restart the process if two conditions are met: (1) the user asks the greenhouse to do so; (2) the greenhouse catches an exception when doing jobs according to [login to view URL] – for example, if an event is not able to start because no specific event class is implemented. If the second condition occurs, the greenhouse will restart the process, skipping the instruction that caused the problem. Provide the means to read classes from the file, and create classes from their names (Hint: [login to view URL]()). Use the same methods to provide the capability to add new Event classes, and to modify any Event classes without recompiling the Greenhouse class. Note: You should not use inner classes for designing and developing Event classes. Test your program by adding at least two Event classes, and make any necessary changes to greenhouse_plan.txt. Before the greenhouse restarts everything, it first has to turn off all events. You may need to use ArrayList or Vector to store the events (and scheduling information). Doing so will avoid the need for additional variables to represent different events, and will also allow you to have new Event classes anytime you want.
ID-ul proiectului: 5959615

Despre proiect

6 propuneri
Proiect la distanță
Activ: 10 ani în urmă

Vrei să câștigi bani?

Avantajele de a licita pe platforma Freelancer

Stabilește bugetul și intervalul temporal
Îți primești plata pentru serviciile prestate
Evidențiază-ți propunerea
Te înregistrezi și licitezi gratuit pentru proiecte
Acordat utilizatorului:
Avatarul utilizatorului
Conceptually, this program does not require very hard coding from algorithmic point of view. This can be approached using simple concepts of classes, methods and their properties. I have done several projects like that. Though your requirements is only to develop command line based program, it can be developed with AWT control that interactively displays the current GreenHouse state. message me to discuss more about it, if you are interested. Thanks!
$20 USD în 1 zi
5,0 (2 recenzii)
1,3
1,3
6 freelanceri plasează o ofertă medie de $39 USD pentru proiect
Avatarul utilizatorului
Hi, I am Java expert and can surely help you here with this project. I have a lot of experience in helping students with their assignments and tutoring. Please communicate to discuss further. Thank you. Regards Anshu
$30 USD în 1 zi
4,7 (376 recenzii)
7,4
7,4
Avatarul utilizatorului
Hi there, We're 4 senior developers who have over 100 completed projects and were qualified by this site (you can see more about us via our profile page), Could you please share me details? I'll check and let you know my estimate time and effort for this task. Best regards, Duc Nguyen
$35 USD în 1 zi
4,9 (268 recenzii)
6,6
6,6
Avatarul utilizatorului
I have 15+ years of experience in Java and Web technologies. If you wish to take this forward, please PM me here on Freelancer. If I am not available online do send me a mail on neelancer at outlook dot com. Looking forward to hearing from you.
$40 USD în 1 zi
4,9 (15 recenzii)
5,2
5,2
Avatarul utilizatorului
Hi. Certainly i can code it for you with that price. I did completed 100% projects for all my employers and they are very satisfied with my code. You can check it in my profile. Hope we have a deal. Thank you!
$100 USD în 3 zile
4,9 (16 recenzii)
3,9
3,9
Avatarul utilizatorului
Hi...I am experienced java developer and i can do your task on today. i have read your requirements so i can do it quickly Thank you
$10 USD în 0 zi
0,0 (1 recenzie)
0,0
0,0

Despre client

Steagul NIGERIA
Lagos, Nigeria
5,0
1
Membru din feb. 11, 2004

Verificarea clientului

Mulțumim! Ți-am trimis prin e-mail linkul pe care trebuie să-l accesezi pentru a revendica creditul gratuit.
A apărut o eroare la trimiterea e-mailului. Încearcă din nou.
Utilizatori înregistrați Totalul proiectelor postate
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Se încarcă previzualizarea
S-a oferit permisiunea de depistare a locației.
Ți-a expirat sesiunea pentru conectare sau te-ai deconectat. Conectează-te din nou.