jade.core
Interface HorizontalCommand

All Superinterfaces:
Command, Serializable, java.io.Serializable
All Known Implementing Classes:
GenericCommand

public interface HorizontalCommand
extends Command, Serializable

The HorizontalCommand interface represents those kernel-level commands that are exchanged among the slices of a given JADE service, and they are sent across the network by the platform IMTP.

Author:
Giovanni Rimassa - FRAMeTech s.r.l.

Method Summary
 java.lang.String getInteraction()
          Query the interaction this command object is a part of.
 java.lang.String getService()
          Access the service object this command belongs to.
 
Methods inherited from interface jade.core.Command
getCredentials, getName, getParam, getParams, getPrincipal, getReturnValue, setCredentials, setPrincipal, setReturnValue
 

Method Detail

getService

public java.lang.String getService()
Access the service object this command belongs to. A command object belongs exactly to one single service.

Specified by:
getService in interface Command
Returns:
The name of a Service object, such that this command is one of the allowed commands for that service.

getInteraction

public java.lang.String getInteraction()
Query the interaction this command object is a part of. A command object is part of exactly one single interaction. Some services can generate interactions made by many commands, which can be grouped together because calling getInteraction() on them yields the same result.

Returns:
A String serving as a service-unique identifier for the interaction of this command object.


JADE