kaos.brahms.blik.example
Class BLIKExample

java.lang.Object
  extended by kaos.core.csi.KAoSActorImpl
      extended by kaos.brahms.blik.example.BLIKExample
All Implemented Interfaces:
KAoSActor, TriggerConditionListener

public class BLIKExample
extends KAoSActorImpl
implements TriggerConditionListener

$Revision: 1.5 $


Field Summary
protected  BLIK _blik
           
 
Fields inherited from class kaos.core.csi.KAoSActorImpl
_autoCommit, _lctr, _logger, _propertiesToModify, _registered, _registration, _transports, _transportSupport
 
Constructor Summary
BLIKExample(java.lang.String guid, java.lang.String name, java.util.Vector domainNames, Transport transport, BLIK blik)
           
 
Method Summary
static void main(java.lang.String[] args)
           
 void receiveMessage(java.io.Serializable messageContent, KAoSActor sender)
          Receive the specified message content from the given KAoSActor.
 void sendMsgToAgent(java.lang.String receiveName)
           
 void updateTriggerCondition(BasicActionDescription triggerBasicAD)
          This method is called by Guard upon receiving an obligation policy containing the specified triggerACD.
 
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
 

Field Detail

_blik

protected BLIK _blik
Constructor Detail

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
Method Detail

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