A C F G I K M N O P R S U V

A

aktbus.core - package aktbus.core
 
aktbus.kqml - package aktbus.kqml
 
AktBusReceiver - class aktbus.core.AktBusReceiver.
The AktBusReceiver class receives an AktMessage through a socket.
AktBusReceiver() - Constructor for class aktbus.core.AktBusReceiver
Creates an AktBusReceiver object that listens to a free port.
AktBusReceiver(int) - Constructor for class aktbus.core.AktBusReceiver
Creates an AktBusReceiver object that listens to a certain port.
AktMessage - class aktbus.core.AktMessage.
The AKTMessage class represents an AKT message according to the AKT-Bus white paper.
AktMessage() - Constructor for class aktbus.core.AktMessage
Creates an empty AktMessage.
AktMessage(InputSource) - Constructor for class aktbus.core.AktMessage
Constructs an AktMessage by reading from an org.xml.sax.InputSource.
AktMessage(String) - Constructor for class aktbus.core.AktMessage
Constructs an AktMessage by parsing an XML string.
AktMessage(String, String, String) - Constructor for class aktbus.core.AktMessage
Creates an AktMessage with <aktbus:SimpleContent>, using String for URLs.
AktMessage(URL, URL, boolean, String) - Constructor for class aktbus.core.AktMessage
A general constructor that creates an AktMessage.
AktMessage(URL, URL, Node) - Constructor for class aktbus.core.AktMessage
Creates an AktMessage using the sender and reciever URIs and appends the content node as the content of the message.
AktMessage(URL, URL, String) - Constructor for class aktbus.core.AktMessage
Creates an AktMessage from a String.
AktMessageWithExtra - class aktbus.core.AktMessageWithExtra.
The AktMessageWithExtra class is used to encapsulate information in an HTTP request, which usually contains a request path and an AktMessage in its body.
AktMessageWithExtra() - Constructor for class aktbus.core.AktMessageWithExtra
 
AktMessageWithPath - class aktbus.core.AktMessageWithPath.
The AktMessageWithPath class is used to encapsulate information in an HTTP request, which usually contains a request path and an AktMessage in its body.
AktMessageWithPath() - Constructor for class aktbus.core.AktMessageWithPath
 

C

close_connection() - Method in class aktbus.core.AktMessageWithExtra
Close all socket & streams.
close() - Method in class aktbus.core.AktBusReceiver
Shutdown the receiver and release the port in use.
createDOM(XmlDocument, URL, URL, Node) - Method in class aktbus.core.AktMessage
Creates an AktMessage as an XmlDocument, with proper header information and Node content as the message content.

F

find_element_node(ElementNode, String) - Method in class aktbus.core.AktMessage
Search for an ElementNode with a given tag-name under a subtree by depth-first-search.
find_element_node(String) - Method in class aktbus.core.AktMessage
Given the tag, find an ElementNode in an AktMessage object by depth-first-search.

G

get_element_node_text(ElementNode, String) - Method in class aktbus.core.AktMessage
Get the value of the 1st TextNode after a certain ElementNode.
get_element_node_text(String) - Method in class aktbus.core.AktMessage
Get the value of the 1st TextNode under a certain ElementNode, start search from the root.
get_first_child_node(ElementNode, int) - Method in class aktbus.core.AktMessage
Get the first child node of a specific type under the current ElementNode.
get_first_child_node(ElementNode, String, int) - Method in class aktbus.core.AktMessage
Get the first child node matching an optional node_name & type.
get_next_sibling_node(ElementNode, int) - Method in class aktbus.core.AktMessage
Find the next sibling of an ElementNode with a specific type.
get_next_sibling_node(ElementNode, String, int) - Method in class aktbus.core.AktMessage
Find the next sibling of an com.sun.xml.tree.ElementNode with a specific type, matching an optional node_name.
get_parameter_map() - Method in class aktbus.kqml.KqmlMessage
Returns the set of KQML parameters as a java.util.Map of KqmlParam.
get_parameter_set() - Method in class aktbus.kqml.KqmlMessage
Return the set of KQML parameters as a java.util.Collection of KqmlParam.
get_performative() - Method in class aktbus.kqml.KqmlMessage
Get the performative of a KqmlMessage.
get_port() - Method in class aktbus.core.AktBusReceiver
Returns the local port number that the AktBusReceiver is listening to.
get_receiver() - Method in class aktbus.core.AktMessage
Find the receiver URI in an AktMessage and return it as a String.
get_sender() - Method in class aktbus.core.AktMessage
Find the sender URI in an AktMessage and return it as a String.
get_simple_message() - Method in class aktbus.core.AktMessage
Find the content of the <aktbus:hasSimpleMessage> element.
get_subtree_text(Node) - Method in class aktbus.core.AktMessage
Return the subtree under the given node as a String.
get_subtree_text(Node, boolean) - Method in class aktbus.core.AktMessage
Return the subtree under the given node as a String with optional entity references translation.

I

in_stream - Variable in class aktbus.core.AktMessageWithExtra
The input stream where the incoming request is read.
initialise_namespace() - Method in class aktbus.core.AktMessage
Initialise the field name_space to contain the HashMap of default XML name space definition.
initialise_namespace() - Method in class aktbus.kqml.KqmlMessage
Initialise name space Map, overridding the one in AktMessage.

K

KqmlMessage - class aktbus.kqml.KqmlMessage.
Representing a KQML message as a subclass of AktMessage.
KqmlMessage(String) - Constructor for class aktbus.kqml.KqmlMessage
Construct a KqmlMessage by parsing a String.
KqmlMessage(String, Collection) - Constructor for class aktbus.kqml.KqmlMessage
Create a KqmlMessage from a java.util.Collection of KqmlParam.
KqmlMessage(String, KqmlParam[]) - Constructor for class aktbus.kqml.KqmlMessage
Construct a KqmlMessage from a performative (in a String) and an array of KqmlParam.
KqmlMessage(String, Map) - Constructor for class aktbus.kqml.KqmlMessage
Create a KqmlMessage from a java.util.Map of KqmlParam.
KqmlMessageReceiver - class aktbus.kqml.KqmlMessageReceiver.
Extending the aktbus.core.AktBusReceiver class to receive a KqmlMessage.
KqmlMessageReceiver(int) - Constructor for class aktbus.kqml.KqmlMessageReceiver
Construct a KqmlMessageReceiver object, listening to a certain port.
KqmlParam - class aktbus.kqml.KqmlParam.
A KQML parameter which has a name and a value.
KqmlParam(String, Node) - Constructor for class aktbus.kqml.KqmlParam
Construct a KqmlParam, taking a org.w3c.org.dom.Node (w/ its subtree underneath) as its value.
KqmlParam(String, String) - Constructor for class aktbus.kqml.KqmlParam
Construct a KqmlParam with a String value.
KqmlParam(String, XmlDocument) - Constructor for class aktbus.kqml.KqmlParam
Construct a KqmlParam, taking an XML document as its value.

M

message - Variable in class aktbus.core.AktMessageWithExtra
The AktMessage object in a HTTP request.
message - Variable in class aktbus.core.AktMessageWithPath
The AktMessage object in a HTTP request.

N

name - Variable in class aktbus.kqml.KqmlParam
The name of the KQML parameter in a String.
name_space - Variable in class aktbus.core.AktMessage
 

O

out_stream - Variable in class aktbus.core.AktMessageWithExtra
The output stream for send a piggy-packed reply.

P

path - Variable in class aktbus.core.AktMessageWithExtra
The request path in a HTTP request.
path - Variable in class aktbus.core.AktMessageWithPath
The request path in a HTTP request.
print_node_type(Node) - Static method in class aktbus.core.AktMessage
Print out the type of a node according to the org.w3c.dom.Node class.
print_tree_type(Node) - Method in class aktbus.core.AktMessage
Print out all nodes' type in the XML tree.

R

receive_message() - Method in class aktbus.core.AktBusReceiver
Receive and return an AktMessage.
receive_message(int, Class) - Method in class aktbus.core.AktBusReceiver
Receive and return an AktMessage with timeout and expect a reply of a certain class.
receive_with_extra() - Method in class aktbus.core.AktBusReceiver
Waits and receive an AktMessageWithExtra.
receive_with_extra(int, Class) - Method in class aktbus.core.AktBusReceiver
Waits and receive an AktMessageWithExtra with timeout.
receive_with_extra(int, String) - Method in class aktbus.core.AktBusReceiver
Waits and receive an AktMessageWithExtra with timeout.
receive() - Method in class aktbus.core.AktBusReceiver
Waits and receive an AktMessageWithPath.
receive(int, Class) - Method in class aktbus.core.AktBusReceiver
Waits and receive an AktMessageWithPath with timeout.
receive(int, String) - Method in class aktbus.core.AktBusReceiver
Waits and receive an AktMessageWithPath with timeout.

S

send_and_receive() - Method in class aktbus.core.AktMessage
Send to receiver and waits for reply from the same connection.
send_and_receive(URL, int, Class) - Method in class aktbus.core.AktMessage
Send to receiver and waits for reply from the same connection.
send() - Method in class aktbus.core.AktMessage
Send an AktMessage with blocking, using specified receiver URI in the AktMessage object.
send(int) - Method in class aktbus.core.AktMessage
Send to the receiver as specified in the AktMessage, with timeout.
send(URL, int) - Method in class aktbus.core.AktMessage
Sends an AktMessage to a certain recipient.

U

ugly_write() - Method in class aktbus.core.AktMessage
Ugly-printing an AktMessage to stdout without any translation of escape char (entity reference).
ugly_write(boolean) - Method in class aktbus.core.AktMessage
Ugly-printing an AktMessage to stdout.
ugly_write(OutputStream) - Method in class aktbus.core.AktMessage
Ugly-printing an AktMessage to an OutputStream.
ugly_write(OutputStream, boolean) - Method in class aktbus.core.AktMessage
Ugly-printing an AktMessage to a OutputStream.
ugly_write(Writer) - Method in class aktbus.core.AktMessage
Ugly-printing an AktMessage to a Writer.
ugly_write(Writer, boolean) - Method in class aktbus.core.AktMessage
Ugly-printing an AktMessage to a Writer.
ugly_write(Writer, String) - Method in class aktbus.core.AktMessage
Ugly-printing an AktMessage to a Writer, using a certain encoding.
ugly_write(Writer, String, boolean) - Method in class aktbus.core.AktMessage
Ugly-printing an AktMessage to a Writer, using a certain encoding.

V

value - Variable in class aktbus.kqml.KqmlParam
The value of the KQML parameter.

A C F G I K M N O P R S U V