org.micropsi.comp.messages
Class MActionResponse

java.lang.Object
  extended byorg.micropsi.comp.messages.MActionResponse
All Implemented Interfaces:
MessageIF

public class MActionResponse
extends java.lang.Object
implements MessageIF


Constructor Summary
protected MActionResponse()
           
  MActionResponse(java.lang.String agentName, double success, long ticket)
           
 
Method Summary
 void addBodyPropertyChange(MPerceptionValue bpc)
           
 void clearBodyPropertyChanges()
           
 java.lang.String getAgentName()
          Returns the agentName.
 java.util.ArrayList getBodyPropertyChanges()
           
 int getMessageType()
           
 java.lang.String getPropertyChangeValue(java.lang.String propertyKey)
           
 double getSuccess()
          Returns the success.
 long getTicket()
           
 void setAgentName(java.lang.String agentName)
          Sets the agentName.
 void setSuccess(double success)
          Sets the success.
 void setTicket(long ticket)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MActionResponse

protected MActionResponse()

MActionResponse

public MActionResponse(java.lang.String agentName,
                       double success,
                       long ticket)
Method Detail

getMessageType

public int getMessageType()
Specified by:
getMessageType in interface MessageIF
See Also:
MessageIF.getMessageType()

getSuccess

public double getSuccess()
Returns the success.

Returns:
double

getAgentName

public java.lang.String getAgentName()
Returns the agentName.

Returns:
String

setAgentName

public void setAgentName(java.lang.String agentName)
Sets the agentName.

Parameters:
agentName - The agentName to set

setSuccess

public void setSuccess(double success)
Sets the success.

Parameters:
success - The success to set

getBodyPropertyChanges

public java.util.ArrayList getBodyPropertyChanges()

clearBodyPropertyChanges

public void clearBodyPropertyChanges()

addBodyPropertyChange

public void addBodyPropertyChange(MPerceptionValue bpc)

getPropertyChangeValue

public java.lang.String getPropertyChangeValue(java.lang.String propertyKey)
Parameters:
propertyKey -
Returns:
can be null

getTicket

public long getTicket()

setTicket

public void setTicket(long ticket)

(c) by Micropsi Project: http://www.cognitive-agents.org

.