Need a small JAVA project

Đã hoàn thành Đã đăng vào 3 năm trước Thanh toán khi bàn giao
Đã hoàn thành Thanh toán khi bàn giao

This is a small project

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, 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.

In the program for this assignment, class names have been specified. You must use the supplied class name for both class and source file name (i.e. Animal will be in a file [login to view URL]). If a program specifies multiple classes, then each class should be in its own separate source file.

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.

[login to view URL]:

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

The greenhouse should be able to restart the process if either of 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.

Java Kiến trúc phần mềm

ID dự án: #24757371

Về dự án

13 đề xuất Dự án từ xa 3 năm trước đang mở

Được trao cho:

expertjavagiant

Hi Friend, I have huge experience in java development and i worked on many this kind of assignment. I reviewed your assignment description and it's looking good to me and i will do this. You can see from my profile reg Thêm

$85 CAD trong 2 ngày
(68 Đánh Giá)
6.7

13 freelancer chào giá trung bình$131 cho công việc này

it2051229

Hi there, I do Java programming. I went through your requirements and I would like to do this project if given the opportunity. Let me know if you are interested so I can have further details.

$60 CAD trong 1 ngày
(1252 Nhận xét)
7.8
indiasofttel

Hello Sir, I am expert java developer with 9 years of experience developing java project. I worked for various Student for many university to developing their assignments . Your assignment details I reviewed and it's f Thêm

$135 CAD trong 3 ngày
(95 Nhận xét)
6.5
mohjib092

Hi there, Expert here, Sir i have read your project details i can provide you quality work on time Can you please come to the chat box so we can easily discuss about project details. Thank You

$250 CAD trong 2 ngày
(8 Nhận xét)
4.3
engrkhanzain

Please see recent review regarding JAVA https://www.freelancer.in/projects/java/JAVA-CRUD-Functionality-Project-24383437/reviews I am Electrical Engineer, I have experience of 7 years in Java, C++, spring java, Webserv Thêm

$130 CAD trong 5 ngày
(24 Nhận xét)
4.6
hayteekeys

helllo, I have worked both full time and part time as a Windows desktop/embedded *C/C++(MT4, 5)/C#/PYTHON/arduino developer for over 7 years now, I have done many simple and complex projects with Visual Studio and C+ Thêm

$30 CAD trong 1 ngày
(8 Nhận xét)
4.3
chenjianjx

Hi, This is a half-day job for me, a java programmer with 10+ years experience. And I'm willing to do it for you at a lower price than average because I need reputation in this platform. Just one questi Thêm

$128 CAD trong 1 ngày
(1 Nhận xét)
3.0
naveedkhan1727

Sir I am very interesting in your project. you can see from my profile i did only Java projects. I did Masters in Computer Science. I have experience of 7 years in Spring Java, Web Services, Hibernate, Appache cxf, Mi Thêm

$175 CAD trong 3 ngày
(4 Nhận xét)
2.0
falcothmane

Hello, Hope you're doing well. I can do your assignment. I guarantee you to do it with the best practice and the application of design patterns to have a clean code. Waiting your message, Best regards,

$250 CAD trong 3 ngày
(1 Nhận xét)
1.0
nehagautam869

have a total of 10+ years of experience in software development with reputed companies like IBM, Infosys

$167 CAD trong 6 ngày
(0 Nhận xét)
0.0
BANZARAGSHA

Hello High Quality & Fast Delivery is promised. I have read very carefully and i am a new freelancer. I am a full stack web developer and I am interested in your project. As a web expert, I am very confident with my sk Thêm

$100 CAD trong 7 ngày
(0 Nhận xét)
0.0
dsartori

Hi, I have significant commercial development experience with 17+ years writing Java. I am on holiday now so looking for something to do. The code looks like a simple problem that would be fun to code. Thanks Dave

$50 CAD trong 2 ngày
(0 Nhận xét)
0.0