edu.memphis.ccrg.lida.actionselection
Class AgentActionImpl

java.lang.Object
  extended by edu.memphis.ccrg.lida.actionselection.AgentActionImpl
All Implemented Interfaces:
AgentAction, java.io.Serializable

public abstract class AgentActionImpl
extends java.lang.Object
implements AgentAction

Abstract implmementation of AgentAction

Author:
Javier Snaider
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface edu.memphis.ccrg.lida.actionselection.AgentAction
AgentAction.Topology
 
Constructor Summary
AgentActionImpl()
          Default constructor
AgentActionImpl(java.lang.String label)
           
 
Method Summary
 FrameworkModule getAssociatedModule()
           
 java.lang.Object getContent()
           
 long getId()
           
 java.lang.String getLabel()
           
 void setAssociatedModule(FrameworkModule module)
          Sets an associated FrameworkModule.
 void setContent(java.lang.Object content)
           
 void setLabel(java.lang.String label)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface edu.memphis.ccrg.lida.actionselection.AgentAction
performAction, toString
 

Constructor Detail

AgentActionImpl

public AgentActionImpl()
Default constructor


AgentActionImpl

public AgentActionImpl(java.lang.String label)
Parameters:
label - label
Method Detail

setContent

public void setContent(java.lang.Object content)
Specified by:
setContent in interface AgentAction
Parameters:
content - the content to set.

getContent

public java.lang.Object getContent()
Specified by:
getContent in interface AgentAction
Returns:
the action content.

getLabel

public java.lang.String getLabel()
Specified by:
getLabel in interface AgentAction
Returns:
the action label.

setLabel

public void setLabel(java.lang.String label)
Specified by:
setLabel in interface AgentAction
Parameters:
label - the action label to set.

setAssociatedModule

public void setAssociatedModule(FrameworkModule module)
Description copied from interface: AgentAction
Sets an associated FrameworkModule.

Specified by:
setAssociatedModule in interface AgentAction
Parameters:
module - the module to be associated.

getAssociatedModule

public FrameworkModule getAssociatedModule()
Specified by:
getAssociatedModule in interface AgentAction
Returns:
the associated module

getId

public long getId()
Specified by:
getId in interface AgentAction
Returns:
the id