locked
Maths design pattern(s) RRS feed

  • Question

  • User-1640306907 posted

    Hi

    This is the most appropriate forum I could find so I hope this post is in the right place.

    I have to develop a web service to do some calculations. It will call other services and connect to a SQL database. I know how to do this with WCF and will find a suitable way to talk to the DB.

    My question is around the internal mathematics. Essentially, I am receiving some numbers then based on this and data from the web services and database, I will generate an output (more numbers), probably persisting some information. What is the recommended way to structure the core mathematical work?

    I understand the need for proper design patterns but cannot think what is the most appropriate setup for something like this. It is really just a big bunch of sums.

    I hope my question is not too vague.

    Thanks in advance.

    Monday, May 10, 2010 10:46 PM

Answers

  • User1113735518 posted

    Create one entity class and  one business class. You write the all your business logics inside the business class including calling WS.

    You populate the input data and send them to business class. once all calculations are over, populate the output data to entities and send back to UI.

    Please let me know if you need more info.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, May 11, 2010 1:50 AM

All replies

  • User1113735518 posted

    Create one entity class and  one business class. You write the all your business logics inside the business class including calling WS.

    You populate the input data and send them to business class. once all calculations are over, populate the output data to entities and send back to UI.

    Please let me know if you need more info.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, May 11, 2010 1:50 AM
  • User1295861604 posted

    Hi,

    Please check the below link, it will help you with the existing Design Pattern for the Math system.

    http://mathematicstoolkit.codeplex.com/

    http://mathnet.codeplex.com/ 

    Tuesday, May 11, 2010 1:55 AM
  • User1295861604 posted

    Hi,

    Also check this link too.. 

    http://ascend.codeplex.com/

    Tuesday, May 11, 2010 2:00 AM