|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectkaos.core.csi.util.xmlSupport.XMLToCSILink
public class XMLToCSILink
Field Summary | |
---|---|
static java.lang.String |
DOMAIN_FOR_ALL_TCP_BASED_PROTOCOL
|
Method Summary | |
---|---|
void |
authorizeActions(java.util.Hashtable authorizations,
ResponseSender responseSender)
{Authorizations={http://ontology.ihmc.us/Action.owl#CommunicationAction={Actor=urn:KAoS#Entity1, Properties={http://ontology.ihmc.us/Action.owl#hasDestination=urn:KAoS#Allowed}}}} |
static XMLToCSILink |
getInstance(java.lang.String transportName)
Retrieve an instance of XMLToCSILink. |
static void |
main(java.lang.String[] argv)
Main program entry point. |
void |
onAborted(java.util.Calendar time,
java.lang.Object reason,
java.lang.String actionID,
java.lang.String robotID)
This method is invoked when the requested action is aborted. |
void |
onAccepted(java.util.Calendar time,
java.lang.Object acceptInfo,
java.lang.String actionID,
java.lang.String robotID)
This method is invoked when the request is accepted by the robot. |
void |
onCompleted(java.util.Calendar time,
java.lang.Object result,
java.lang.String actionID,
java.lang.String robotID)
This method is invoked upon completion of the request byt the requested robot. |
void |
onRefused(java.util.Calendar time,
java.lang.Object reason,
java.lang.String actionID,
java.lang.String robotID)
This method is invoked when the request is refused by the robot. |
void |
onStarted(java.util.Calendar time,
java.lang.Object startedInfo,
java.lang.String actionID,
java.lang.String robotID)
This method is invoked when the robot starts the requested action. |
void |
receiveKAoSStatus(java.lang.String statusMsg,
java.lang.String actionID,
java.lang.String robotID)
Receive a status message describing the execution of the requested action. |
void |
register(java.util.Hashtable registrations)
|
void |
registerTCPDomain()
|
void |
requestAction(ResponseSender responseSender,
java.lang.String xmlString,
java.lang.String xmlTransmissionType)
|
void |
requestCommand(ResponseSender responseSender,
java.util.Hashtable commands)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String DOMAIN_FOR_ALL_TCP_BASED_PROTOCOL
Method Detail |
---|
public static XMLToCSILink getInstance(java.lang.String transportName) throws java.lang.Exception
transportName
- String specifying the name of the transport to use for communication with the KAoS Directory Service.
java.lang.Exception
public void requestAction(ResponseSender responseSender, java.lang.String xmlString, java.lang.String xmlTransmissionType)
public void authorizeActions(java.util.Hashtable authorizations, ResponseSender responseSender)
authorizations
- responseSender
- public void register(java.util.Hashtable registrations) throws DirectoryFailure, AlreadyRegisteredException, GuardInstantiationException
DirectoryFailure
AlreadyRegisteredException
GuardInstantiationException
public void requestCommand(ResponseSender responseSender, java.util.Hashtable commands)
public void onAccepted(java.util.Calendar time, java.lang.Object acceptInfo, java.lang.String actionID, java.lang.String robotID)
FeedbackReceiver
onAccepted
in interface FeedbackReceiver
time
- Calendar time of acceptance.acceptInfo
- Object containing additional (optional) info about the acceptance.actionID
- String containing the id of the requested action/information.robotID
- String containing the name of the robot performing the action.public void onRefused(java.util.Calendar time, java.lang.Object reason, java.lang.String actionID, java.lang.String robotID)
FeedbackReceiver
onRefused
in interface FeedbackReceiver
time
- Calendar time of refusal.reason
- Object containing the reason for refusing the request.actionID
- String containing the id of the requested action/information.robotID
- String containing the name of the robot performing the action.public void onCompleted(java.util.Calendar time, java.lang.Object result, java.lang.String actionID, java.lang.String robotID)
FeedbackReceiver
onCompleted
in interface FeedbackReceiver
time
- Calendar time of information/action completion.result
- Object containing the result of the requested action.actionID
- String containing the id of the requested action/information.robotID
- String containing the name of the robot performing the action.public void onStarted(java.util.Calendar time, java.lang.Object startedInfo, java.lang.String actionID, java.lang.String robotID)
FeedbackReceiver
onStarted
in interface FeedbackReceiver
time
- Calendar time of starting an action.startedInfo
- Object containing additional (optional) info about the start of the action.actionID
- String containing the id of the requested action/information.robotID
- String containing the name of the robot performing the action.public void onAborted(java.util.Calendar time, java.lang.Object reason, java.lang.String actionID, java.lang.String robotID)
FeedbackReceiver
onAborted
in interface FeedbackReceiver
time
- Calendar time of aborting an action.reason
- Object containing the reason for aborting an action.actionID
- String containing the id of the requested action/information.robotID
- String containing the name of the robot performing the action.public void receiveKAoSStatus(java.lang.String statusMsg, java.lang.String actionID, java.lang.String robotID)
FeedbackReceiver
receiveKAoSStatus
in interface FeedbackReceiver
statusMsg
- Object containing the result of the requested action/information.actionID
- String containing the id of the requested action/information.robotID
- String containing the name of the robot performing the action.public void registerTCPDomain() throws DirectoryFailure
DirectoryFailure
public static void main(java.lang.String[] argv) throws java.lang.Exception
java.lang.Exception
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |