kaos.core.tutorial
Class SimpleAgent
java.lang.Object
kaos.core.csi.KAoSActorImpl
kaos.core.tutorial.SimpleAgent
- All Implemented Interfaces:
- KAoSActor
- Direct Known Subclasses:
- SimpleAgentHuman, SimpleAgentRobot
public class SimpleAgent
- extends KAoSActorImpl
Constructor Summary |
SimpleAgent(java.lang.String[] args)
|
SimpleAgent(java.lang.String name,
java.util.Vector domainNames)
|
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 |
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
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