gecco.server.core
Class ActionDefinition

java.lang.Object
  |
  +--gecco.server.core.ActionDefinition

public class ActionDefinition
extends Object

Represents a definition of an Action, as defined in the configuration files.

Author:
Henrik Bäärnhielm, Karl Hasselström, Henrik Hägerström.

Field Summary
 Class actionClass
          The class that implements the action.
 String argumentType
          The argument type of the action.
 String description
          Description of the action.
 boolean isInstantaneous
          Flag to indicate if the action is normal or instantaneous.
 String name
          The name of the action.
 
Constructor Summary
ActionDefinition(String _name, Class _actionClass, String _description, String _argumentType)
          Constructor for the ActionDefinition object
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

name

public String name
The name of the action.

actionClass

public Class actionClass
The class that implements the action.

description

public String description
Description of the action. This is the string that the client sees.

argumentType

public String argumentType
The argument type of the action. Can be void, point or unit.

isInstantaneous

public boolean isInstantaneous
Flag to indicate if the action is normal or instantaneous.
Constructor Detail

ActionDefinition

public ActionDefinition(String _name,
                        Class _actionClass,
                        String _description,
                        String _argumentType)
Constructor for the ActionDefinition object
Parameters:
_name - The name of the action.
_actionClass - The class of the action.
_description - The description of the action.
_argumentType - The argument type of the action.