The Artima Developer Community
Sponsored Link •

Design Forum
designing application program

3 replies on 1 page. Most recent reply: Apr 26, 2002 7:49 AM by vinod

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 3 replies on 1 page
Sangeeta N

Posts: 1
Nickname: sangeeta
Registered: Apr, 2002

designing application program Posted: Apr 17, 2002 12:48 AM
Reply to this message Reply
Advertisement
Hi!
I want to write a JAVA program for a data mining algorithm. The algorithm reads the user provided database, collects attributes (columns in the db table)of which one attribute is the decision attribute. A statistical measure is applied on the decision attribute by which the records are grouped. Based on the decision attribute value, the output is to generate a 'RULE'.

I've the manual application of the algorithm on a database. What I need now is to develop a Java program.
Can anybody help and guide me on how to approach and design the application?


chohan

Posts: 2
Nickname: chohan
Registered: Apr, 2002

Re: designing application program Posted: Apr 18, 2002 10:21 AM
Reply to this message Reply
Okay here is what I think you can do:
- Create a Database Handling Object say DataHandler that is an abstraction for all Database handling activities for your program.
You can further diving the DB handling functionality based on your other requirements so that you can reuse that again.
Make sure to write interface for it first.

- Create an Object called RulePrinter that implements an interface Printer containing methods like print() etc.
This is to write your Rules generated by RuleGenerator object (read below).

- Create an Object that takes care of your Rule Making process. You may call it RuleGenerator or something.
This Object is composed of (has members) DataHandler interface and Printer interface.Also add other members as required.
Write method to process rule based on certain input. In nutshell add Business Logic in this class.

- Create a driver class that drives the program.

More detailed design cannot be based on the limited input that was provided. But if you follow these steps, you should be good to go.

Thomas SMETS

Posts: 307
Nickname: tsmets
Registered: Apr, 2002

Re: designing application program Posted: Apr 18, 2002 4:52 PM
Reply to this message Reply
I seem to like the post of chohan I have seen today !
:-D
I can only add one more thing :
Where ever you can use interfaces & factories?
These will help you later on to add more functionnalities to you software !

Thomas,

vinod

Posts: 22
Nickname: vinod
Registered: Feb, 2002

Re: designing application program Posted: Apr 26, 2002 7:49 AM
Reply to this message Reply
hi,

I did not the point, what rule is. If u can provide me some in put on this i can help u in a better way i hope.

vinod,
catchvinod@hotmail.com

Flat View: This topic has 3 replies on 1 page
Topic: designing application program Previous Topic   Next Topic Topic: Wrapping a blocking call in a non-blocking one ...

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use