This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes Java in General and the fly likes how to generate the graph by taking a sample data plspost the code for it Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Java in General
Bookmark "how to generate the graph by taking a sample data plspost the code for it" Watch "how to generate the graph by taking a sample data plspost the code for it" New topic
Author

how to generate the graph by taking a sample data plspost the code for it

srinu malgireddy
Greenhorn

Joined: Jul 24, 2007
Posts: 5
Write a program that reads a file with 2 columns:
- time in minutes for the x axis
- value (e.g. temperature, heart freq.) for the y axis

Plot the last m minutes, the y axis shall have a range from min...max.
Start with parameter values m=5, speed s=1, min=20, max=120.
After m=5 minutes, the graphical display shall plot the curve of the
last 5 minutes. In other words, you have to implement a sliding window
with a 5 minute history. This way of displaying measurements is common
for many medical instruments.
The speed s is useful for testing, 1=real time, 10=10 times faster.
To implement the real time behaviour, you have to let the program wait the
time interval between two values. The time interval is not constant.

Any OO programming languages and any graphical libraries are fine,
as long as they are available for Windows and Linux. Examples are
Java, C++, QT, SDL, TCL/TK, Flash, .NET/mono.


A sample file looks like this (lines 1..3 are always comments):
-------8<-------cut-here-------8<-------
Logfile of program temperature_monitor.cpp
Temp sensor #42, range 30..60 degrees Celsius
2007-06-21 20:30
0.017737 45.2
0.045122 42.7
0.073591 43.1
[...]
-------8<-------cut-here-------8<-------

You can download the test data file here:
http://alf42.dyndns.org/oost/temp_testdata_2007-06-21


An axample how the output can look like is here:
http://alf42.dyndns.org/oost/temperature_diagram_example.gif

Thanks & Regards
srinu
Manuel Leiria
Ranch Hand

Joined: Jul 13, 2007
Posts: 171
Sounds great! And exactly where are you stuck?


Manuel Leiria<br /> <br />--------------<br />Peace cannot be kept by force; it can only be achieved by understanding. <br /> Albert Einstein
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42047
    
  64
Are you asking us to do your homework for you? Have you expended any effort on this yourself?


Ping & DNS - my free Android networking tools app
srinu malgireddy
Greenhorn

Joined: Jul 24, 2007
Posts: 5
i have tried i am basically ABAP developer but this cant be done in ABAP .so i shld use java but i am not so good at java so i am asking for the experts to help
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

If you tried posting this in the Jobs Offered forum you might be able to find a contractor willing to quote for this work.

If you are not asking for code to be written for you, then to get help here you really need to explain what you have done so far and where you are stuck.

(See here if you are not sure how to use these forums)
[ July 24, 2007: Message edited by: Paul Sturrock ]

JavaRanch FAQ HowToAskQuestionsOnJavaRanch
Manuel Leiria
Ranch Hand

Joined: Jul 13, 2007
Posts: 171
Is it for a web application?
srinu malgireddy
Greenhorn

Joined: Jul 24, 2007
Posts: 5
no its not a webapplication . i am an student doing my masters this was one of the assignment given by my one of the professor i am not having good knowledge in java so i could not made it in that.i tried it in dotnet but there i could not change the values on the xaxis and yaxis in the graph
 
GeeCON Prague 2014
 
subject: how to generate the graph by taking a sample data plspost the code for it