org.almendra.janet.cas.monitor.commands
Class DisplayAttributeCommand
java.lang.Object
org.almendra.janet.cas.monitor.commands.AbstractConsumerCommand
org.almendra.janet.cas.monitor.commands.DisplayAttributeCommand
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable, ICommand
public class DisplayAttributeCommand
- extends AbstractConsumerCommand
- implements ICommand, java.io.Serializable
- See Also:
- Serialized Form
Method Summary |
void |
add(DisplayAttributeCommand.Entry entry)
|
void |
add(java.util.List entries)
|
java.lang.Object |
clone()
Make sure the user can rely on a command to be cloneable. |
java.util.List |
getEntries()
|
int |
getPriority()
Answer the priority of the command. |
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 java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
QualifiedName
public static final java.lang.String QualifiedName
- See Also:
- Constant Field Values
OperationIncrement
public static final int OperationIncrement
- See Also:
- Constant Field Values
OperationDecrement
public static final int OperationDecrement
- See Also:
- Constant Field Values
entries
protected java.util.List entries
DisplayAttributeCommand
protected DisplayAttributeCommand()
- Creates a new
DisplayAttributeCommand
object.
DisplayAttributeCommand
public DisplayAttributeCommand(java.lang.String nodeName)
DisplayAttributeCommand
public DisplayAttributeCommand(java.lang.String nodeName,
java.util.List entries)
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.
- Specified by:
getQualifiedName
in interface ICommand
- Returns:
getPriority
public int getPriority()
- Description copied from interface:
ICommand
- Answer the priority of the command.
- Specified by:
getPriority
in interface ICommand
- Overrides:
getPriority
in class AbstractConsumerCommand
- Returns:
toLogString
public java.lang.String toLogString()
- Description copied from interface:
ICommand
- Return a string printing a command onto a string used for logging.
- Specified by:
toLogString
in interface ICommand
- 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 AbstractConsumerCommand
- Returns:
-
- Throws:
java.lang.CloneNotSupportedException
add
public void add(DisplayAttributeCommand.Entry entry)
- Parameters:
entry
-
add
public void add(java.util.List entries)
getEntries
public java.util.List getEntries()
- Returns:
- Returns the entries.