Click here to Skip to main content
16,010,553 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: how to set the height of a truetype font ? Pin
JP GOBLET4-Oct-03 5:34
JP GOBLET4-Oct-03 5:34 
GeneralAccessing document properties from a VC++ application Pin
jopett1-Oct-03 21:15
jopett1-Oct-03 21:15 
GeneralRe: Accessing document properties from a VC++ application Pin
Michael P Butler2-Oct-03 1:32
Michael P Butler2-Oct-03 1:32 
GeneralRe: Accessing document properties from a VC++ application Pin
jopett2-Oct-03 20:57
jopett2-Oct-03 20:57 
GeneralRide Control System Pin
immanis1-Oct-03 20:54
immanis1-Oct-03 20:54 
GeneralRe: Ride Control System Pin
immanis1-Oct-03 22:58
immanis1-Oct-03 22:58 
GeneralRe: Ride Control System Pin
jhwurmbach1-Oct-03 23:44
jhwurmbach1-Oct-03 23:44 
GeneralRe: Ride Control System Pin
David Chamberlain2-Oct-03 3:09
David Chamberlain2-Oct-03 3:09 
From the computing standpoint, the overall strategy for a system like this is typically: 1) collect current state data, 2) evaluate system conditions, 3) provide control output. The collection of data from your vehicles and zone sensors already seems to be handled, so you should know what variables you have that define the system "state." The output of control back to the vehicles or to zone-changing controllers is also a finite set of items, and you should know what those are and how they contribute to the system state.

The logic for evaluating the current system state to determine what the next state should be can be described by ... a state transition scheme. Whether this is a large and cumbersome diagram, or a set of "rules," doesn't really matter. In the field of artificial intelligence, you can create a set of if...then rules to describe input conditions that affect output control, and this is a perfectly good method of determining your logic.

When it comes to programming all of this, sure, you could use a rule-based interpretive kind of language, or code the logic into methods within a class, distinguishing of course between vehicle objects, zone objects, input sensor objects, output controller objects, etc. The overall control of these objects, and their interaction, may become a bit messy, depending on how your control logic is formed, because many times the control logic spans many objects and any individual object may not have visibility over the state of other objects. Coordinating the interaction of these separate objects that need visibility of other objects' state can be tricky, and another approach may make more sense.

If you want each object to retain its independence and be an instance of a class, then you will need other classes that have visibility over all these other objects - the "business rules" class, for example. This is where you would put the control logic.

While timing is another consideration, typical Windows environments are able to keep up with a continual stream of inputs and outputs. But, if you depend on microsecond level timing, then Windows may not be the best choice, as the "real time" aspect isn't there. You don't have precise control over process timing, so by definition Windows isn't "real-time." It may be fast enough to keep up, which then makes it operate in "real-time," but this depends on how tight your time frame is.

Is any of this dependent on MFC? No. There are much larger issues to consider. If there is going to be a user interface, either for monitoring or control, then MFC would certainly provide some answers. But, again, there are other issues to consider.

That's my two cents worth.

Dave

"You can say that again." -- Dept. of Redundancy Dept.
GeneralRe: Ride Control System Pin
jhwurmbach2-Oct-03 5:36
jhwurmbach2-Oct-03 5:36 
GeneralRe: Ride Control System Pin
David Chamberlain2-Oct-03 6:31
David Chamberlain2-Oct-03 6:31 
GeneralRe: Ride Control System Pin
immanis2-Oct-03 5:47
immanis2-Oct-03 5:47 
GeneralRe: Ride Control System Pin
David Chamberlain2-Oct-03 6:49
David Chamberlain2-Oct-03 6:49 
GeneralRe: Ride Control System Pin
immanis2-Oct-03 9:07
immanis2-Oct-03 9:07 
GeneralRe: Ride Control System Pin
David Chamberlain2-Oct-03 9:52
David Chamberlain2-Oct-03 9:52 
GeneralRe: Ride Control System Pin
immanis2-Oct-03 12:21
immanis2-Oct-03 12:21 
GeneralRe: Ride Control System Pin
David Chamberlain3-Oct-03 3:10
David Chamberlain3-Oct-03 3:10 
GeneralRe: Ride Control System Pin
immanis3-Oct-03 6:23
immanis3-Oct-03 6:23 
GeneralRe: Ride Control System Pin
David Chamberlain3-Oct-03 6:57
David Chamberlain3-Oct-03 6:57 
GeneralRe: Ride Control System Pin
immanis3-Oct-03 10:18
immanis3-Oct-03 10:18 
GeneralRe: Ride Control System Pin
immanis2-Oct-03 13:30
immanis2-Oct-03 13:30 
GeneralClose a document programatically Pin
Kok Meng Cheong1-Oct-03 20:51
Kok Meng Cheong1-Oct-03 20:51 
GeneralRe: Close a document programatically Pin
David Crow2-Oct-03 3:22
David Crow2-Oct-03 3:22 
GeneralRe: Close a document programatically Pin
Kok Meng Cheong2-Oct-03 15:13
Kok Meng Cheong2-Oct-03 15:13 
GeneralRe: Close a document programatically Pin
David Crow3-Oct-03 2:56
David Crow3-Oct-03 2:56 
QuestionHow can I read a 'gif' file Pin
Anonymous1-Oct-03 20:28
Anonymous1-Oct-03 20:28 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.