org.demac.management
Class Directive

java.lang.Object
  extended by org.demac.management.Directive
Direct Known Subclasses:
AbortDirective, ProcessDirective, SearchDirective, StatusDirective

public abstract class Directive
extends java.lang.Object

This class represents a Directive. A Directive is used to characterize a specific request (e.g. getting the status) for a process.


Constructor Summary
Directive(java.lang.String pID, java.lang.String requestID, java.lang.String requestDevice)
           
 
Method Summary
 boolean equals(java.lang.Object o)
          Compares the argument to the receiver and returns true if they have the same values for getProcessID() getKind() and getRequestID().
abstract  java.lang.String getKind()
          Method to get the kind of request.
 java.lang.String getProcessID()
          Method to get the unique identifier of the corresponding process.
 java.lang.String getRequestDevice()
          Method to get the unique identifier of the requesting device.
 java.lang.String getRequestID()
          Method to get the identifier for the request.
 int hashCode()
          Answers an integer hash code for the receiver.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Directive

public Directive(java.lang.String pID,
                 java.lang.String requestID,
                 java.lang.String requestDevice)
Method Detail

getProcessID

public java.lang.String getProcessID()
Method to get the unique identifier of the corresponding process.

Returns:
String the unique identifier as a String.

getRequestDevice

public java.lang.String getRequestDevice()
Method to get the unique identifier of the requesting device.

Returns:
the UUID of the requesting device.

getRequestID

public java.lang.String getRequestID()
Method to get the identifier for the request.

Returns:
the request identifier as a String

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object
See Also:
Object.toString()

getKind

public abstract java.lang.String getKind()
Method to get the kind of request.

Returns:
a String representation of the kind of request.

hashCode

public int hashCode()
Answers an integer hash code for the receiver. Two directives have the same hash code if they have the same values getProcessID() getKind(), getRequestID().

Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object o)
Compares the argument to the receiver and returns true if they have the same values for getProcessID() getKind() and getRequestID().

Overrides:
equals in class java.lang.Object