kaos.brahms.blik.example
Class BLIKExample
java.lang.Object
kaos.core.csi.KAoSActorImpl
kaos.brahms.blik.example.BLIKExample
- All Implemented Interfaces:
- KAoSActor, TriggerConditionListener
public class BLIKExample
- extends KAoSActorImpl
- implements TriggerConditionListener
$Revision: 1.5 $
Constructor Summary |
BLIKExample(java.lang.String guid,
java.lang.String name,
java.util.Vector domainNames,
Transport transport,
BLIK blik)
|
Methods inherited from class kaos.core.csi.KAoSActorImpl |
addCapability, addOntologicalType, addProperty, addPropertyValue, addTransport, commitPropertyValues, equals, getAgentDescription, getCapabilities, getConceptMappingName, getDomainNames, getEntityOntologicalTypeNames, getEntityOntologicalTypes, getGUID, getName, getProperties, getProperty, getPropertyValue, getTransport, getTransports, hashCode, isAutoPropertyValueCommit, isGuarded, isRegistered, logMessage, logMessage, printTransportMessage, receiveMessage, removeCapability, removeOntologicalType, removeProperty, removePropertyValue, removeTransport, sendMessage, setAutoPropertyValueCommit, setCapabilities, setConceptMappingName, setGUID, setName, setOntologicalTypes, setProperties, setPropertyValue, setRegistered |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
_blik
protected BLIK _blik
BLIKExample
public BLIKExample(java.lang.String guid,
java.lang.String name,
java.util.Vector domainNames,
Transport transport,
BLIK blik)
throws java.lang.Exception
- Throws:
java.lang.Exception
updateTriggerCondition
public void updateTriggerCondition(BasicActionDescription triggerBasicAD)
- Description copied from interface:
TriggerConditionListener
- This method is called by Guard upon receiving an obligation policy containing the specified triggerACD.
The listener will now start monitoring agent actions in order to detect the occurrence of the trigger condition.
- Specified by:
updateTriggerCondition
in interface TriggerConditionListener
- Parameters:
triggerBasicAD
- BasicActionDescription describes the trigger condition the listener has registered for.
receiveMessage
public void receiveMessage(java.io.Serializable messageContent,
KAoSActor sender)
- 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 - the sender of the received message.
sendMsgToAgent
public void sendMsgToAgent(java.lang.String receiveName)
main
public static void main(java.lang.String[] args)
throws java.lang.Exception
- Throws:
java.lang.Exception