gov.sandia.cognition.framework.lite
Class BooleanActivatableCogxel

java.lang.Object
  extended by gov.sandia.cognition.util.AbstractCloneableSerializable
      extended by gov.sandia.cognition.framework.DefaultCogxel
          extended by gov.sandia.cognition.framework.lite.BooleanActivatableCogxel
All Implemented Interfaces:
Activatable, ActivatableCogxel, Cogxel, CloneableSerializable, Serializable, Cloneable

public class BooleanActivatableCogxel
extends DefaultCogxel
implements ActivatableCogxel

BooleanActivatableCogxel extends the DefaultCogxel class to add an "activated" flag.

Since:
1.0
Author:
Jonathan McClain
See Also:
Serialized Form

Constructor Summary
BooleanActivatableCogxel(BooleanActivatableCogxel other)
          Creates copy of the given cogxel.
BooleanActivatableCogxel(SemanticIdentifier identifier)
          Creates a new instance of BooleanActivatableCogxel.
BooleanActivatableCogxel(SemanticIdentifier identifier, boolean activated)
          Creates a new instance of BooleanActivatableCogxel.
BooleanActivatableCogxel(SemanticIdentifier identifier, double activation)
          Creates a new instance of BooleanActivatableCogxel.
BooleanActivatableCogxel(SemanticIdentifier identifier, double activation, boolean activated)
          Creates a new instance of BooleanActivatableCogxel.
 
Method Summary
 boolean isActivated()
          Returns whether or not the object is isActivated.
 void setActivated(boolean activated)
          Sets a boolean indicating whether the cogxel is activated.
 
Methods inherited from class gov.sandia.cognition.framework.DefaultCogxel
clone, getActivation, getSemanticIdentifier, getSemanticLabel, setActivation
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface gov.sandia.cognition.framework.Cogxel
clone, getActivation, getSemanticIdentifier, getSemanticLabel, setActivation
 

Constructor Detail

BooleanActivatableCogxel

public BooleanActivatableCogxel(BooleanActivatableCogxel other)
Creates copy of the given cogxel.

Parameters:
other - The cogxel to copy.

BooleanActivatableCogxel

public BooleanActivatableCogxel(SemanticIdentifier identifier)
Creates a new instance of BooleanActivatableCogxel. Default activation is 0.0. Default flag is false.

Parameters:
identifier - The SemanticIdentifier for the cogxel.

BooleanActivatableCogxel

public BooleanActivatableCogxel(SemanticIdentifier identifier,
                                double activation)
Creates a new instance of BooleanActivatableCogxel. Default flag is false.

Parameters:
identifier - The SemanticIdentifier for the cogxel.
activation - The initial activation for the cogxel.

BooleanActivatableCogxel

public BooleanActivatableCogxel(SemanticIdentifier identifier,
                                boolean activated)
Creates a new instance of BooleanActivatableCogxel. Default activation is 0.0.

Parameters:
identifier - The SemanticIdentifier for the cogxel.
activated - A boolean indicating whether the cogxel is activated or not.

BooleanActivatableCogxel

public BooleanActivatableCogxel(SemanticIdentifier identifier,
                                double activation,
                                boolean activated)
Creates a new instance of BooleanActivatableCogxel.

Parameters:
identifier - The SemanticIdentifier for the cogxel.
activation - The initial activation for the cogxel.
activated - A boolean indicating whether the cogxel is activated or not.
Method Detail

isActivated

public boolean isActivated()
Returns whether or not the object is isActivated.

Specified by:
isActivated in interface Activatable
Returns:
True if isActivated, false otherwise.

setActivated

public void setActivated(boolean activated)
Sets a boolean indicating whether the cogxel is activated.

Parameters:
activated - True if activated, false otherwise.