Package i5.las2peer.testing
Class TestAgent
java.lang.Object
i5.las2peer.security.AgentImpl
i5.las2peer.testing.TestAgent
- All Implemented Interfaces:
Agent
,MessageReceiver
,XmlAble
,Cloneable
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
receiveMessage
(Message message, AgentContext c) Hook to be called by the node where this agent is registered to, when the node receives a message destined to this agent.Returns a XML representation of this object.Methods inherited from class i5.las2peer.security.AgentImpl
cloneLocked, createFromXml, createFromXml, createFromXml, createFromXml, createSignature, decryptSymmetricKey, encryptPrivateKey, equals, getEncodedPrivate, getIdentifier, getPublicKey, getResponsibleForAgentSafeId, getRunningAtNode, isLocked, lockPrivateKey, notifyRegistrationTo, notifyUnregister, signContent, unlockPrivateKey
-
Constructor Details
-
TestAgent
- Throws:
AgentOperationFailedException
-
-
Method Details
-
toXmlString
Description copied from interface:XmlAble
Returns a XML representation of this object.- Returns:
- a XML String representation
- Throws:
SerializationException
-
receiveMessage
Description copied from class:AgentImpl
Hook to be called by the node where this agent is registered to, when the node receives a message destined to this agent.- Specified by:
receiveMessage
in interfaceMessageReceiver
- Specified by:
receiveMessage
in classAgentImpl
- Throws:
MessageException
-