Overview  Package   Class  Tree  Index 

be.lassi.lanbox.commands
Class Command

java.lang.Object
  extended by be.lassi.lanbox.commands.Command
Direct Known Subclasses:
LanboxCommand, Script

public abstract class Command
extends java.lang.Object

Lanbox command.


Constructor Summary
Command()
           
 
Method Summary
 void add(CommandListener listener)
          Adds a listener that will notified of command completion.
 void appendCommand(java.lang.StringBuilder b)
          Appends a textual description of the command.
 void appendCommandDetail(java.lang.StringBuilder b)
           
 void appendResponse(java.lang.StringBuilder b)
          Appends a textual description of the command reponse.
 java.lang.String getCommandString()
          Gets a textual representation of this command.
 int hashCode()
          
 void notifyListeners()
           
 java.lang.String toString()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Command

public Command()
Method Detail

add

public void add(CommandListener listener)
Adds a listener that will notified of command completion.

Parameters:
listener - the command listener to be added

appendCommand

public void appendCommand(java.lang.StringBuilder b)
Appends a textual description of the command.

Parameters:
b - the string builder to which to append

appendCommandDetail

public void appendCommandDetail(java.lang.StringBuilder b)

appendResponse

public void appendResponse(java.lang.StringBuilder b)
Appends a textual description of the command reponse.

Parameters:
b - the string builder to which to append

getCommandString

public java.lang.String getCommandString()
Gets a textual representation of this command.

Returns:
a textual representation of this command

hashCode

public int hashCode()

Overrides:
hashCode in class java.lang.Object

notifyListeners

public void notifyListeners()

toString

public java.lang.String toString()

Overrides:
toString in class java.lang.Object

Overview  Package   Class  Tree  Index 
Lighting Assistant 1.2