|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectagent.core.communication.Message
public class Message
Contain of relevant methods for communication using OWL or RDF models
| Field Summary | |
|---|---|
private static Logger |
log
|
| Constructor Summary | |
|---|---|
Message()
|
|
| Method Summary | |
|---|---|
static void |
addProperties(Model m,
Resource r)
Recursive method which move resource with all properties recursively into new model |
static ACLMessage |
createInformMessage(Agent sender,
java.lang.String recieverName,
Resource r)
This method creates ACL Inform message containing of RDF of some Jena RDF Resource |
static ACLMessage |
createQueryMessage(Agent sender,
java.lang.String recieverName,
java.lang.String query)
This method creates ACL Query message |
static java.lang.String |
getXML(Resource r,
java.lang.String space,
java.lang.String strRes)
Recursive method which writes resource with all properties recursively into string and returns it |
static java.lang.String |
model2RDF(Model model)
This method returns XML/RDF text representation of RDF Model |
static void |
register(Agent a,
java.lang.String agentType)
This method register agent with directory facilitator |
static Model |
resource2Model(Resource r,
Model model)
|
static java.lang.String |
resource2RDF(Resource resource)
This method returns XML/RDF text representation of RDF Resource |
static java.lang.String |
resource2RDF(Resource r,
Model model)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static Logger log
| Constructor Detail |
|---|
public Message()
| Method Detail |
|---|
public static java.lang.String resource2RDF(Resource resource)
resource - Jena Resourcepublic static java.lang.String model2RDF(Model model)
model - Jena Model
public static java.lang.String resource2RDF(Resource r,
Model model)
public static Model resource2Model(Resource r,
Model model)
public static java.lang.String getXML(Resource r,
java.lang.String space,
java.lang.String strRes)
space - is just to track levels of XMLr - resource which should be converted to XML text
public static void addProperties(Model m,
Resource r)
m - represents model where properties should be put inr - resource which properties shouldbe added
public static ACLMessage createQueryMessage(Agent sender,
java.lang.String recieverName,
java.lang.String query)
sender - Agent which sends messagerecieverName - string name of Agent which recieve the messagequery - SPARQL query
public static ACLMessage createInformMessage(Agent sender,
java.lang.String recieverName,
Resource r)
sender - Agent which sends messagerecieverName - string name of Agent which recieve the messager - RDF Jena Resouce
public static void register(Agent a,
java.lang.String agentType)
a - Agent which registersagentType - string description of agent type
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||