Go to Post I can't help looking at the new center piece my wife put on the dinning room table and think to myself, "non-functional decoration" - DarrinMunter [more]
Home
Go Back   Chief Delphi > Technical > Programming > Java
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 26-01-2013, 20:35
Arhowk's Avatar
Arhowk Arhowk is offline
FiM CSA
AKA: Jake Niman
FRC #1684 (The Chimeras) (5460 Mentor)
 
Join Date: Jan 2013
Rookie Year: 2013
Location: Lapeer
Posts: 542
Arhowk is a splendid one to beholdArhowk is a splendid one to beholdArhowk is a splendid one to beholdArhowk is a splendid one to beholdArhowk is a splendid one to beholdArhowk is a splendid one to behold
Extending command groups

Lets say I make a command group with two commands:

commandA
commandB

in commandA, commandA executes commandC. commandA finishes before commandC does. following me?

now heres the thing. i want commandC to finish executing before commandB starts. So the flow of events is this

commandA -> commandC (if certain conditions are met) -> commandB

i dont want to put commandC in the commandgroup because commandC could be looped over and over again
Reply With Quote
  #2   Spotlight this post!  
Unread 26-01-2013, 20:54
arithehun arithehun is offline
Registered User
AKA: Ari Falkner
FRC #3024
Team Role: Programmer
 
Join Date: Feb 2011
Rookie Year: 2011
Location: Ashland, Oregon
Posts: 27
arithehun is an unknown quantity at this point
Re: Extending command groups

You could call "isFinished()" in CommandC at the end of the execute method...
Reply With Quote
  #3   Spotlight this post!  
Unread 26-01-2013, 20:55
Arhowk's Avatar
Arhowk Arhowk is offline
FiM CSA
AKA: Jake Niman
FRC #1684 (The Chimeras) (5460 Mentor)
 
Join Date: Jan 2013
Rookie Year: 2013
Location: Lapeer
Posts: 542
Arhowk is a splendid one to beholdArhowk is a splendid one to beholdArhowk is a splendid one to beholdArhowk is a splendid one to beholdArhowk is a splendid one to beholdArhowk is a splendid one to behold
Re: Extending command groups

Quote:
Originally Posted by arithehun View Post
You could call "isFinished()" in CommandC at the end of the execute method...
I dont follow
Reply With Quote
  #4   Spotlight this post!  
Unread 26-01-2013, 21:15
arithehun arithehun is offline
Registered User
AKA: Ari Falkner
FRC #3024
Team Role: Programmer
 
Join Date: Feb 2011
Rookie Year: 2011
Location: Ashland, Oregon
Posts: 27
arithehun is an unknown quantity at this point
Re: Extending command groups

Oh, I'm saying you could do that to prevent a loop.
Reply With Quote
  #5   Spotlight this post!  
Unread 26-01-2013, 23:48
Arhowk's Avatar
Arhowk Arhowk is offline
FiM CSA
AKA: Jake Niman
FRC #1684 (The Chimeras) (5460 Mentor)
 
Join Date: Jan 2013
Rookie Year: 2013
Location: Lapeer
Posts: 542
Arhowk is a splendid one to beholdArhowk is a splendid one to beholdArhowk is a splendid one to beholdArhowk is a splendid one to beholdArhowk is a splendid one to beholdArhowk is a splendid one to behold
Re: Extending command groups

Quote:
Originally Posted by arithehun View Post
Oh, I'm saying you could do that to prevent a loop.
I have no idea what your talking about. I dont want to prevent any loop?

commandC goes to ->
commandD goes to ->
commandE checks for conditions, if false than repeat commandc if true than go to commandB->

except my group has about 50 commands in it
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 10:09.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi