edu.memphis.ccrg.lida.actionselection
Class BehaviorImpl

java.lang.Object
  extended by edu.memphis.ccrg.lida.framework.initialization.InitializableImpl
      extended by edu.memphis.ccrg.lida.framework.shared.activation.ActivatibleImpl
          extended by edu.memphis.ccrg.lida.actionselection.BehaviorImpl
All Implemented Interfaces:
Behavior, Initializable, Activatible, ProceduralUnit

public class BehaviorImpl
extends ActivatibleImpl
implements Behavior

Default implementation of Behavior

Author:
Ryan J. McCall, Javier Snaider

Field Summary
 
Fields inherited from interface edu.memphis.ccrg.lida.framework.shared.activation.Activatible
DEFAULT_ACTIVATIBLE_REMOVAL_THRESHOLD, DEFAULT_ACTIVATION
 
Constructor Summary
BehaviorImpl()
          Construct a new behavior with default parameters
 
Method Summary
 Action getAction()
          Gets action.
 java.util.Collection<Condition> getAddingList()
          Gets adding list.
 java.util.Collection<Condition> getContextConditions()
          Gets context conditions.
 java.util.Collection<Condition> getDeletingList()
          Gets deleting list.
 int getId()
          Gets scheme's id.
 java.lang.String getLabel()
          Gets the label.
 Scheme getScheme()
          Gets the scheme underlying the behavior.
 void setId(int id)
          Sets unique identifier for Scheme.
 void setLabel(java.lang.String l)
          Sets Scheme's label
 void setScheme(Scheme s)
          Gets the scheme underlying the behavior.
 java.lang.String toString()
           
 
Methods inherited from class edu.memphis.ccrg.lida.framework.shared.activation.ActivatibleImpl
decay, excite, getActivatibleRemovalThreshold, getActivation, getDecayStrategy, getExciteStrategy, getTotalActivation, isRemovable, setActivatibleRemovalThreshold, setActivation, setDecayStrategy, setExciteStrategy
 
Methods inherited from class edu.memphis.ccrg.lida.framework.initialization.InitializableImpl
containsParameter, getParam, getParameters, init, init
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface edu.memphis.ccrg.lida.framework.shared.activation.Activatible
decay, excite, getActivatibleRemovalThreshold, getActivation, getDecayStrategy, getExciteStrategy, getTotalActivation, isRemovable, setActivatibleRemovalThreshold, setActivation, setDecayStrategy, setExciteStrategy
 
Methods inherited from interface edu.memphis.ccrg.lida.framework.initialization.Initializable
containsParameter, getParam, getParameters, init, init
 

Constructor Detail

BehaviorImpl

public BehaviorImpl()
Construct a new behavior with default parameters

Method Detail

setId

public void setId(int id)
Description copied from interface: ProceduralUnit
Sets unique identifier for Scheme. Should be used by ElementFactory only.

Specified by:
setId in interface ProceduralUnit
Parameters:
id - unique identifier for this scheme

getId

public int getId()
Description copied from interface: ProceduralUnit
Gets scheme's id.

Specified by:
getId in interface ProceduralUnit
Returns:
unique identifier for this scheme

getScheme

public Scheme getScheme()
Description copied from interface: Behavior
Gets the scheme underlying the behavior.

Specified by:
getScheme in interface Behavior
Returns:
the generating scheme

setScheme

public void setScheme(Scheme s)
Description copied from interface: Behavior
Gets the scheme underlying the behavior.

Specified by:
setScheme in interface Behavior
Parameters:
s - the new generating scheme

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getContextConditions

public java.util.Collection<Condition> getContextConditions()
Description copied from interface: ProceduralUnit
Gets context conditions.

Specified by:
getContextConditions in interface ProceduralUnit
Returns:
the context's conditions

getAddingList

public java.util.Collection<Condition> getAddingList()
Description copied from interface: ProceduralUnit
Gets adding list.

Specified by:
getAddingList in interface ProceduralUnit
Returns:
the adding list

getDeletingList

public java.util.Collection<Condition> getDeletingList()
Description copied from interface: ProceduralUnit
Gets deleting list.

Specified by:
getDeletingList in interface ProceduralUnit
Returns:
the deleting list

getAction

public Action getAction()
Description copied from interface: ProceduralUnit
Gets action.

Specified by:
getAction in interface ProceduralUnit
Returns:
the Action this unit contains

getLabel

public java.lang.String getLabel()
Description copied from interface: ProceduralUnit
Gets the label.

Specified by:
getLabel in interface ProceduralUnit
Returns:
label of the unit

setLabel

public void setLabel(java.lang.String l)
Description copied from interface: ProceduralUnit
Sets Scheme's label

Specified by:
setLabel in interface ProceduralUnit
Parameters:
l - a String