Getting the status of a command.

Hi,

I'm wondering what the easiest way is to get a commands status
because i want to report it using a reporting-component.

I noticed there is a Status enumeration defined in the
DispatchInterface. But i can't find a general method to access this
status (except for successively asking the command if it is ready,
executed, valid, accepted etc., that's what I'm doing now.)

Ruben

Getting the status of a command.

On Thursday 11 October 2007 14:54:57 Ruben Smits wrote:
> Hi,
>
> I'm wondering what the easiest way is to get a commands status
> because i want to report it using a reporting-component.
>
> I noticed there is a Status enumeration defined in the
> DispatchInterface. But i can't find a general method to access this
> status (except for successively asking the command if it is ready,
> executed, valid, accepted etc., that's what I'm doing now.)

This is indeed a bug. The DispatchInterface and the 'Command' class should
have a 'getState' or similar which returns the enum. Otherwise, it's not much
use having this enum in a public interface, and as you mention, querrying
status is more cumbersome without.

Peter