edu.memphis.ccrg.lida.globalworkspace
Class CoalitionImpl

java.lang.Object
  extended by edu.memphis.ccrg.lida.framework.shared.activation.ActivatibleImpl
      extended by edu.memphis.ccrg.lida.globalworkspace.CoalitionImpl
All Implemented Interfaces:
Activatible, Coalition, java.io.Serializable

public class CoalitionImpl
extends ActivatibleImpl
implements Coalition

Default implementation of Coalition. Wraps content entering the GlobalWorkspace to compete for consciousness. Extends ActivatibleImpl. Contains reference to the AttentionCodelet that created it.

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface edu.memphis.ccrg.lida.framework.shared.activation.Activatible
DEFAULT_ACTIVATIBLE_REMOVAL_THRESHOLD, DEFAULT_ACTIVATION
 
Constructor Summary
CoalitionImpl(NodeStructure content, double activation, AttentionCodelet codelet)
          Constructs a coalition with content and sets activation to be equal to the normalized sum of the activation of the Linkables in the NodeStructure times the activation of the creating AttentionCodelet
 
Method Summary
 boolean equals(java.lang.Object o)
           
 BroadcastContent getContent()
          Returns the content of the coalition
 AttentionCodelet getCreatingAttentionCodelet()
          Returns the attention codelet that creates this coalition
 long getId()
          Returns id
 int hashCode()
           
 
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 java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, 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
 

Constructor Detail

CoalitionImpl

public CoalitionImpl(NodeStructure content,
                     double activation,
                     AttentionCodelet codelet)
Constructs a coalition with content and sets activation to be equal to the normalized sum of the activation of the Linkables in the NodeStructure times the activation of the creating AttentionCodelet

Parameters:
content - conscious content
activation - activation of creating attention codelet
codelet - The AttentionCodelet that created this Coalition
See Also:
AttentionCodeletImpl
Method Detail

getContent

public BroadcastContent getContent()
Description copied from interface: Coalition
Returns the content of the coalition

Specified by:
getContent in interface Coalition
Returns:
The Content of the coalition

getCreatingAttentionCodelet

public AttentionCodelet getCreatingAttentionCodelet()
Description copied from interface: Coalition
Returns the attention codelet that creates this coalition

Specified by:
getCreatingAttentionCodelet in interface Coalition
Returns:
The attention codelet which creates this coalition

getId

public long getId()
Description copied from interface: Coalition
Returns id

Specified by:
getId in interface Coalition
Returns:
unique id

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object