org.almendra.janet.cas.monitor.commands
Class AbstractConsumerCommand
java.lang.Object
org.almendra.janet.cas.monitor.commands.AbstractConsumerCommand
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable, ICommand
- Direct Known Subclasses:
- DisplayAttributeCommand, SetMaskCommand, UnsetMaskCommand
public abstract class AbstractConsumerCommand
- extends java.lang.Object
- implements ICommand, java.io.Serializable
- See Also:
- Serialized Form
Field Summary |
protected java.lang.String |
nodeName
|
Method Summary |
java.lang.Object |
clone()
Make sure the user can rely on a command to be cloneable. |
java.lang.String |
getNodeName()
|
int |
getPriority()
Answer the priority of the command. |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
nodeName
protected java.lang.String nodeName
AbstractConsumerCommand
public AbstractConsumerCommand()
- Creates a new
AbstractConsumerCommand
object.
AbstractConsumerCommand
public AbstractConsumerCommand(java.lang.String nodeName)
- Creates a new
AbstractConsumerCommand
object.
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 java.lang.Object
- Returns:
-
- Throws:
java.lang.CloneNotSupportedException
getPriority
public int getPriority()
- Description copied from interface:
ICommand
- Answer the priority of the command.
- Specified by:
getPriority
in interface ICommand
- Returns:
getNodeName
public java.lang.String getNodeName()
- Returns:
- Returns the nodeName.