|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectkaos.core.csi.KAoSActorImpl
kaos.core.csi.request.ObligationRequestReceiverImpl
kaos.notification.NotifyAgent
public class NotifyAgent
Field Summary | |
---|---|
protected java.util.Vector |
_controlledActions
|
protected EmailClient |
_emailClient
|
protected boolean |
_enforcerEnabled
|
protected JabberClient |
_imClient
|
protected NotifyWnd |
_notifyWnd
|
protected PagerClient |
_pagerClient
|
protected PolicyChecking |
_policyChecking
|
protected java.util.Vector |
_policyTriggerActions
|
protected QueryState |
_queryState
|
protected java.util.Hashtable |
_sentNotifications
|
static java.lang.String |
DEFAULT_PORT
|
static java.lang.String |
LOCAL_HOST
|
static java.lang.String |
TRANSPORT_PROPERTY_KEY
|
Fields inherited from class kaos.core.csi.KAoSActorImpl |
---|
_actorDesc, _autoCommit, _lctr, _logger, _preferredTransportName, _propertiesToModify, _registered, _registration, _transports, _transportSupport |
Constructor Summary | |
---|---|
NotifyAgent(java.lang.String[] args)
|
Method Summary | |
---|---|
void |
addEnforcedAction(java.lang.String actionClassDaml)
|
void |
addOntologicalAttribute(java.lang.String ontAttribute)
Add an ontological attribute the component is associated with. |
boolean |
checkObligations(ActionInstanceDescription aid)
This method checks whether any obligation policies are triggered by the aid |
boolean |
getEnabledStatus()
Return 'true/false', indicating the 'enabled/disabled' status of the component. |
java.lang.String |
getName()
Return the (unique) name of this KAoSExtensionComponent object. |
java.util.List |
getOntologicalAttributes()
Return the associated ontological concepts for the KAoSExtensionComponent object. |
static java.lang.String |
lookupAgentNickname(java.lang.String agentUUID)
|
static void |
main(java.lang.String[] args)
Start the NotificationAgent in a specified domain with the given agent nickname. |
void |
NotificationAction(ActionInstanceDescription obligationAID,
ActionInstanceDescription triggerAID)
Implements the receiveMessage method mandated by the MessageListener interface. |
void |
notify(NotifyRequest nReq)
Entry point to the notification process. |
protected boolean |
recipientIsURI(NotifyRequest nReq)
returns true if the recipient in the NotifyRequest is a URI, implying an ontology ref. |
protected void |
removeAgent()
Called to perform cleanup activities before the agent is terminated. |
protected void |
removeAgentFromKAoS()
|
protected void |
sendDefaultNotification(NotifyRequest nReq)
Called when the NotifyReqest includes both a recipient and a mode Sends the requested notification without checking obligation policies |
void |
setEnabledStatus(boolean status)
Set 'true/false', indicating the 'enabled/disabled' status of the component. |
void |
setName(java.lang.String name)
Set the (unique) name of this KAoSExtensionComponents object. |
void |
setOntologicalConcepts(java.util.Vector concepts)
Set the associated ontological concepts for the KAoSExtensionComponent object. |
void |
setProperties(ServiceProperties props)
Set the properties of this component, if there are any. |
void |
start()
|
void |
updateTriggerCondition(ActionInfo triggerCondition)
|
Methods inherited from class kaos.core.csi.request.ObligationRequestReceiverImpl |
---|
processObligationRequest, receiveMessage |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String TRANSPORT_PROPERTY_KEY
public static final java.lang.String LOCAL_HOST
public static final java.lang.String DEFAULT_PORT
protected EmailClient _emailClient
protected JabberClient _imClient
protected PagerClient _pagerClient
protected java.util.Hashtable _sentNotifications
protected NotifyWnd _notifyWnd
protected QueryState _queryState
protected java.util.Vector _controlledActions
protected java.util.Vector _policyTriggerActions
protected boolean _enforcerEnabled
protected PolicyChecking _policyChecking
Constructor Detail |
---|
public NotifyAgent(java.lang.String[] args) throws java.lang.Exception
java.lang.Exception
Method Detail |
---|
public java.util.List getOntologicalAttributes()
getOntologicalAttributes
in interface KAoSExtensionComponent
public void addOntologicalAttribute(java.lang.String ontAttribute)
addOntologicalAttribute
in interface KAoSExtensionComponent
ontAttribute
- String containing the name of the ontological attribute.public void setOntologicalConcepts(java.util.Vector concepts)
concepts
- Vector containing names of the concepts the KAoSExtensionComponent is associated with.public java.lang.String getName()
getName
in interface KAoSExtensionComponent
getName
in interface KAoSActor
getName
in class KAoSActorImpl
public void setName(java.lang.String name)
setName
in interface KAoSExtensionComponent
setName
in class KAoSActorImpl
name
- String containing the name of this component.public void setEnabledStatus(boolean status)
setEnabledStatus
in interface KAoSExtensionComponent
status
- boolean parameter to set the 'enabled/disabled' status topublic boolean getEnabledStatus()
getEnabledStatus
in interface KAoSExtensionComponent
public void setProperties(ServiceProperties props)
setProperties
in interface KAoSExtensionComponent
setProperties
in class KAoSActorImpl
props
- ServiceProperties (optionally) specifying
additional ontological properties of the component.public void addEnforcedAction(java.lang.String actionClassDaml)
public boolean checkObligations(ActionInstanceDescription aid)
aid
- ActionInstanceDescription to check obligations about
public static void main(java.lang.String[] args)
public void start() throws java.lang.Exception
java.lang.Exception
protected void removeAgentFromKAoS()
protected void removeAgent()
public void NotificationAction(ActionInstanceDescription obligationAID, ActionInstanceDescription triggerAID)
MessageListener
,
TransportMessage
,
"JAS Specification, Section(s) 3.4.2, 4.7.2"public void notify(NotifyRequest nReq)
nReq
- protected void sendDefaultNotification(NotifyRequest nReq)
nReq
- public void updateTriggerCondition(ActionInfo triggerCondition)
protected boolean recipientIsURI(NotifyRequest nReq)
nReq
- public static java.lang.String lookupAgentNickname(java.lang.String agentUUID)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |