kaos.core.tutorial
Class SimpleAgent

java.lang.Object
  extended by kaos.core.csi.KAoSActorImpl
      extended by kaos.core.tutorial.SimpleAgent
All Implemented Interfaces:
KAoSActor
Direct Known Subclasses:
SimpleAgentHuman, SimpleAgentRobot

public class SimpleAgent
extends KAoSActorImpl


Field Summary
 
Fields inherited from class kaos.core.csi.KAoSActorImpl
_actorDesc, _autoCommit, _lctr, _logger, _preferredTransportName, _propertiesToModify, _registered, _registration, _transports, _transportSupport
 
Constructor Summary
SimpleAgent(java.lang.String[] args)
           
SimpleAgent(java.lang.String name, java.util.Vector domainNames)
           
 
Method Summary
 ActionInstanceDescription buildActionInstanceDescription(java.lang.String action, java.util.HashMap properties)
           
 void ChangeStateAction(java.lang.String newStatePlace)
           
 void CommunicationAction(java.util.HashMap properties)
           
 void CommunicationAction(java.lang.String message, java.lang.String receiverName)
           
protected  void enforcePolicies(ActionInstanceDescription aid)
           
protected  java.util.List<AgentCapability> getAgentCapabilities()
          define properties that describe what capabilities the agent has
 void LoginAction(java.lang.String password)
           
static void main(java.lang.String[] args)
           
 void Move(java.lang.String requestor)
           
 void receiveMessage(java.io.Serializable messageContent, KAoSActor sender)
          Receive the specified message content from the given KAoSActor.
 void sendMessage(java.lang.String message, java.lang.String receiverName)
           
protected  void setEntityOntologicalType()
          define the type of entity the agent is
 
Methods inherited from class kaos.core.csi.KAoSActorImpl
addCapability, addOntologicalType, addOntologicalType, addProperty, addProperty, addPropertyValue, addTransport, commitPropertyValues, deregisterFromKAoS, equals, getAgentDescription, getCapabilities, getConceptMappingName, getDomainNames, getEntityOntologicalTypeNames, getEntityOntologicalTypes, getGUID, getName, getProperties, getProperty, getPropertyValue, getTransport, getTransports, hashCode, initialize, initialize, initialize, isAutoPropertyValueCommit, isGuarded, isRegistered, logMessage, logMessage, printTransportMessage, receiveMessage, registerWithKAoS, removeCapability, removeOntologicalType, removeProperty, removePropertyValue, removeTransport, sendMessage, setAutoPropertyValueCommit, setCapabilities, setConceptMappingName, setGUID, setMyDescription, setName, setOntologicalTypes, setProperties, setPropertyValue, setRegistered
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleAgent

public SimpleAgent(java.lang.String[] args)
            throws java.lang.Exception
Throws:
java.lang.Exception

SimpleAgent

public SimpleAgent(java.lang.String name,
                   java.util.Vector domainNames)
            throws java.lang.Exception
Throws:
java.lang.Exception
Method Detail

setEntityOntologicalType

protected void setEntityOntologicalType()
define the type of entity the agent is


getAgentCapabilities

protected java.util.List<AgentCapability> getAgentCapabilities()
define properties that describe what capabilities the agent has


receiveMessage

public void receiveMessage(java.io.Serializable messageContent,
                           KAoSActor sender)
Description copied from interface: KAoSActor
Receive the specified message content from the given KAoSActor.

Specified by:
receiveMessage in interface KAoSActor
Overrides:
receiveMessage in class KAoSActorImpl
Parameters:
messageContent - Serializable containing the received message.
sender - KAoSActor representing the sender.

CommunicationAction

public void CommunicationAction(java.util.HashMap properties)
                         throws java.lang.Exception
Throws:
java.lang.Exception

CommunicationAction

public void CommunicationAction(java.lang.String message,
                                java.lang.String receiverName)
                         throws java.lang.Exception
Throws:
java.lang.Exception

buildActionInstanceDescription

public ActionInstanceDescription buildActionInstanceDescription(java.lang.String action,
                                                                java.util.HashMap properties)

enforcePolicies

protected void enforcePolicies(ActionInstanceDescription aid)
                        throws java.lang.Exception
Throws:
java.lang.Exception

Move

public void Move(java.lang.String requestor)
          throws java.lang.Exception
Throws:
java.lang.Exception

sendMessage

public void sendMessage(java.lang.String message,
                        java.lang.String receiverName)
                 throws java.lang.Exception
Overrides:
sendMessage in class KAoSActorImpl
Throws:
java.lang.Exception

LoginAction

public void LoginAction(java.lang.String password)
                 throws java.lang.Exception
Throws:
java.lang.Exception

ChangeStateAction

public void ChangeStateAction(java.lang.String newStatePlace)
                       throws java.lang.Exception
Parameters:
newStatePlace -
Throws:
java.lang.Exception

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
Throws:
java.lang.Exception