|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectkaos.core.csi.BasicKAoSActorImpl
public class BasicKAoSActorImpl
$Revision: 1.7 $
| Field Summary | |
|---|---|
protected KAoSAgentDescription |
_actorDesc
|
protected Logger |
_logger
|
protected boolean |
_registered
|
protected java.util.Hashtable |
_transports
|
| Constructor Summary | |
|---|---|
BasicKAoSActorImpl(KAoSAgentDescription desc)
Instantiates a description of a KAoSActor. |
|
| Method Summary | |
|---|---|
KAoSAgentDescription |
getAgentDescription()
|
java.util.List |
getCapabilities()
Obtain the collection of AgentCapabilities of this KAoSActor. |
java.lang.String |
getConceptMappingName()
Get the name of the concept mapping between the entity system's ontological concepts and KAoS ontology. |
java.util.List |
getDomainNames()
Returns a List of String containing the names of domains the actor is registered in. |
java.util.Set<java.lang.String> |
getEntityOntologicalTypeNames()
Obtain the collection of just names of ontological types of KAoS entity described by this KAoSActor. |
java.util.Map |
getEntityOntologicalTypes()
Obtain the collection of ontological types of this KAoSActor. |
java.lang.String |
getGUID()
Obtain the actor's globally unique identifier. |
java.lang.String |
getName()
Obtain the actor's name. |
java.util.Hashtable |
getProperties()
Returns a Hashtable containing a mapping of actor properties. |
Property |
getProperty(java.lang.String name)
Return the property, whose name is specified |
java.lang.Object |
getPropertyValue(Property property)
Return the value of the given property |
Transport |
getTransport(java.lang.String name)
Return the Transport, whose name is specified. |
java.util.List |
getTransports()
Return the List of valid Transports. |
boolean |
isGuarded()
Obtain guarded/unguarded status of this KAoSActor. |
boolean |
isRegistered()
Obtain registered/unregistered status of this KAoSActor. |
protected void |
logMessage(java.lang.String msg,
java.lang.Exception e,
int logLevel)
|
protected void |
logMessage(java.lang.String msg,
int logLevel)
|
void |
receiveMessage(java.io.Serializable messageContent,
KAoSActor sender)
Receive the specified message content from the given KAoSActor. |
void |
sendMessage(java.io.Serializable messageContent,
KAoSActor receiver)
Send the specified message content to the given KAoSActor. |
void |
setRegistered(boolean registered)
Set the registered/unregistered status of this KAoSActor. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected KAoSAgentDescription _actorDesc
protected Logger _logger
protected java.util.Hashtable _transports
protected boolean _registered
| Constructor Detail |
|---|
public BasicKAoSActorImpl(KAoSAgentDescription desc)
| Method Detail |
|---|
public java.lang.String getConceptMappingName()
getConceptMappingName in interface KAoSActorpublic java.util.List getDomainNames()
getDomainNames in interface KAoSActorpublic java.lang.String getGUID()
getGUID in interface KAoSActorpublic java.lang.String getName()
getName in interface KAoSActorpublic java.util.Map getEntityOntologicalTypes()
getEntityOntologicalTypes in interface KAoSActorpublic java.util.Set<java.lang.String> getEntityOntologicalTypeNames()
getEntityOntologicalTypeNames in interface KAoSActorpublic boolean isGuarded()
isGuarded in interface KAoSActorpublic void setRegistered(boolean registered)
setRegistered in interface KAoSActorregistered - boolean indicating whether the KAoSActor has been registered in the KAoS DS.public boolean isRegistered()
isRegistered in interface KAoSActorpublic java.util.List getCapabilities()
getCapabilities in interface KAoSActorpublic java.util.Hashtable getProperties()
getProperties in interface KAoSActorpublic Property getProperty(java.lang.String name)
getProperty in interface KAoSActorname - String containing the name of the property to be returned.public java.lang.Object getPropertyValue(Property property)
getPropertyValue in interface KAoSActorproperty - Property, whose value is to be returned.
public void sendMessage(java.io.Serializable messageContent,
KAoSActor receiver)
throws NotLocatableException,
TransportFailure
sendMessage in interface KAoSActormessageContent - Serializable containing the message to be sent out.receiver - KAoSAgentDescription containing the description of the receiver.
NotLocatableException - when the receiver cannot be located.
TransportFailure - when the transport system fails.
public void receiveMessage(java.io.Serializable messageContent,
KAoSActor sender)
receiveMessage in interface KAoSActormessageContent - Serializable containing the received message.sender - KAoSAgentDescription containing the description of the sender.public java.util.List getTransports()
getTransports in interface KAoSActorpublic Transport getTransport(java.lang.String name)
getTransport in interface KAoSActorname - String containing the Transport name to be retrieved.
public KAoSAgentDescription getAgentDescription()
protected void logMessage(java.lang.String msg,
int logLevel)
protected void logMessage(java.lang.String msg,
java.lang.Exception e,
int logLevel)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||