org.jactr.modules.pm.motor.managers
Class MuscleState

java.lang.Object
  extended by org.jactr.modules.pm.motor.managers.MuscleState
All Implemented Interfaces:
ISlotContainer, IUniqueSlotContainer

public class MuscleState
extends java.lang.Object
implements IUniqueSlotContainer


Constructor Summary
MuscleState(org.commonreality.identifier.IIdentifier identifier, java.lang.String name, IChunk freeChunk)
           
 
Method Summary
 void addSlot(ISlot slot)
          Adds a slot
 boolean canModify()
           
 org.commonreality.identifier.IIdentifier getIdentifier()
           
 java.lang.String getName()
           
 double[] getPosition(double[] container)
           
 ISlot getSlot(java.lang.String slotName)
          return the actual named slot.
 java.util.Collection<? extends ISlot> getSlots()
          return a duplicate copy of all the slots
 java.util.Collection<ISlot> getSlots(java.util.Collection<ISlot> slots)
           
 java.util.Collection<IConditionalSlot> matchesStatus(java.util.Collection<IConditionalSlot> slots, java.util.Map<java.lang.String,java.lang.Object> bindings)
           
 void removeSlot(ISlot slot)
          remove a slot
 void set(IChunk chunk, java.lang.String... slotNames)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MuscleState

public MuscleState(org.commonreality.identifier.IIdentifier identifier,
                   java.lang.String name,
                   IChunk freeChunk)
Method Detail

getIdentifier

public org.commonreality.identifier.IIdentifier getIdentifier()

getName

public java.lang.String getName()

toString

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

set

public void set(IChunk chunk,
                java.lang.String... slotNames)

getPosition

public double[] getPosition(double[] container)

getSlot

public ISlot getSlot(java.lang.String slotName)
Description copied from interface: IUniqueSlotContainer
return the actual named slot. this is the backing slot, changes to it are propogated throughout the model

Specified by:
getSlot in interface IUniqueSlotContainer
Returns:

addSlot

public void addSlot(ISlot slot)
Description copied from interface: ISlotContainer
Adds a slot

Specified by:
addSlot in interface ISlotContainer
Parameters:
slot - The feature to be added to the ISlot attribute

canModify

public boolean canModify()

getSlots

public java.util.Collection<? extends ISlot> getSlots()
Description copied from interface: ISlotContainer
return a duplicate copy of all the slots

Specified by:
getSlots in interface ISlotContainer
Returns:
The slots value

getSlots

public java.util.Collection<ISlot> getSlots(java.util.Collection<ISlot> slots)
Specified by:
getSlots in interface ISlotContainer

removeSlot

public void removeSlot(ISlot slot)
Description copied from interface: ISlotContainer
remove a slot

Specified by:
removeSlot in interface ISlotContainer
Parameters:
slot - Description of Parameter

matchesStatus

public java.util.Collection<IConditionalSlot> matchesStatus(java.util.Collection<IConditionalSlot> slots,
                                                            java.util.Map<java.lang.String,java.lang.Object> bindings)
                                                     throws CannotMatchException
Throws:
CannotMatchException