org.almendra.janet.cas.commands
Class DeregisterAgentCommand

java.lang.Object
  extended by org.almendra.janet.cas.commands.AbstractAgentCommand
      extended by org.almendra.janet.cas.commands.DeregisterAgentCommand
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, ICommand

public class DeregisterAgentCommand
extends AbstractAgentCommand

See Also:
Serialized Form

Field Summary
static java.lang.String QualifiedName
           
 
Fields inherited from class org.almendra.janet.cas.commands.AbstractAgentCommand
agentPath
 
Fields inherited from interface org.almendra.janet.cas.scheduling.ICommand
ApplicationMaxPriority, ApplicationMinPriority, InterruptPriority, SystemPriority
 
Constructor Summary
protected DeregisterAgentCommand()
          Creates a new DeregisterAgentCommand object.
  DeregisterAgentCommand(AgentPath agentPath)
          Creates a new DeregisterAgentCommand object.
 
Method Summary
 java.lang.Object clone()
          Make sure the user can rely on a command to be cloneable.
 java.lang.String getQualifiedName()
          Answer the fully qualified name of the command, e.g. package and class name.
 java.lang.String toLogString()
          Return a string printing a command onto a string used for logging.
 
Methods inherited from class org.almendra.janet.cas.commands.AbstractAgentCommand
getAgentPath, getPriority
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

QualifiedName

public static final java.lang.String QualifiedName
See Also:
Constant Field Values
Constructor Detail

DeregisterAgentCommand

protected DeregisterAgentCommand()
Creates a new DeregisterAgentCommand object.


DeregisterAgentCommand

public DeregisterAgentCommand(AgentPath agentPath)
Creates a new DeregisterAgentCommand object.

Method Detail

getQualifiedName

public java.lang.String getQualifiedName()
Description copied from interface: ICommand
Answer the fully qualified name of the command, e.g. package and class name.

Returns:

toLogString

public java.lang.String toLogString()
Description copied from interface: ICommand
Return a string printing a command onto a string used for logging.

Returns:

clone

public java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
Description copied from interface: ICommand
Make sure the user can rely on a command to be cloneable. Needed by the system to clone commands in simulated mode which is necessary so that every agent receives a command with a pointer of its own which is the case in distributed mode anyway.

Specified by:
clone in interface ICommand
Overrides:
clone in class AbstractAgentCommand
Returns:
Throws:
java.lang.CloneNotSupportedException