edu.memphis.ccrg.lida.globalworkspace
Class CoalitionImpl
java.lang.Object
edu.memphis.ccrg.lida.framework.shared.activation.ActivatibleImpl
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
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 |
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
Linkable
s in the NodeStructure
times the activation of the creating AttentionCodelet
- Parameters:
content
- conscious contentactivation
- activation of creating attention codeletcodelet
- The AttentionCodelet
that created this Coalition- See Also:
AttentionCodeletImpl
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