[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

Question
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

9.0

Do I use inheritance/provider model or other

Asked by GuitarRich in C# Programming Language, .NET, Microsoft Visual C#.Net

Tags: Inheritance, C#, Provider Model, Abstract

Ok - I have an interesting problem to solve. In my new project the company has a number of tracking devices - these are GPS trackers that report information back to a central server so that they can be live tracked online. These devices will also be setup via a control panel on the website to change various options on the device etc...

Now the functionality of each device is essentially the same - there are a few extra features in some but not many - the core is the same. However - as is usually the case the data stream they report and the stream to change device settings is different for every single device!

So what I would like to do is have a single interface for the the application to talk to and recieve data from - so a single class with all the common properties etc... and not have to know anything about each device. Then the interface can control working out how to send/recieve data from the specific device.

I've looked into the provider model and it looks similar to what I want - but it seems that each implementation I have seen only use one method - like the asp.net membership model or SqlDataProvider etc... I've not seen it where multiple providers are used in the same application at the same time!

Or should I just use an interface - create that in my program and then have a backend engine that casts the interface to the specific device object and that object knows how to read/write to the device?

Or does anyone have another clever idea :)

Thanks in advance!
[+][-]05/27/09 05:19 AM, ID: 24482105Accepted Solution

Your question has an Asker Certified™ answer! GuitarRich verified that this solution worked for them--which means it will likely work for you, too. Click to view the solution free for 30-days now.

About this solution

Zones: C# Programming Language, .NET, Microsoft Visual C#.Net
Tags: Inheritance, C#, Provider Model, Abstract
Sign Up Now!
Solution Provided By: PockyMaster
Participating Experts: 1
Solution Grade: B
 
 
Loading Advertisement...
20100308-EE-VQP-140 - Hierarchy / EE_QW_3_20080625
Your technology problems solved.
Close See Plans and Pricing. Try it FREE for 30 days.