Click here to Skip to main content
15,902,810 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
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 
"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."

Just a wee bit messy indeed!

In the real world, control systems like these consist of multiple plcs and hardware error checking, etc. This program is meant to be a model, so someone could set certain variables into the system, and have the computer run at accelerated time to see what the long term result would be. Later on, I want to add a vehicle capacity component. We'd be able to get a riders per hour count (based on real world boarding averages), and then say, change a dispatch interval, or change a rule somewhere and see what the longterm effects on rider counts would be.

Back to the ride control system

I think the best design would make the vehicles their own individual processes. A main "dispatch" process would give vehicles a "go" to proceed into the ride. The vehicles would also be able to fire events to the dispatch, and the dispatch would respond with either a user message or response broadcast, or both.
I'm thinking the logic and rules for movement should be included in the environment, not the vehicle itself. The vehicles own logic and rules pertain to whether or not it will "listen" to a dispatch command. For example if a vehicle is powered down, it is still exists in a zone, but will not respond to a "go" from dispatch. It may still respond to a "power up" command from the user.
There also has to be a continuous "go" broadcast from the dispatch process to all zones. And that broadcast should have the ability to change to "nogo", "pause" or "stop" depending on either user input or as a response to an event. The dispatch could take an event such as a vehicle taking too long to exit a zone, or intruding on a safety zone and broadcast "nogo" to all vehicles, then prompt the user for appropriate action.

I'm off to school, more discussion later on.
Thanks to everyone who has responded so far.
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 
AnswerRe: How can I read a 'gif' file Pin
KaЯl2-Oct-03 4:44
KaЯl2-Oct-03 4:44 
Generalautorun USB flash memory stick Pin
closecall1-Oct-03 19:49
closecall1-Oct-03 19:49 
GeneralMaking an Application Still Image-Aware Pin
shlim881-Oct-03 16:31
shlim881-Oct-03 16:31 

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.