|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectzeus.concepts.FIPA_Service_Description
provide a datatype that is used to hold the service descriptions and provide matching services for them
| Field Summary | |
private java.util.Vector |
language
|
private java.lang.String |
name
|
private java.util.Vector |
ontology
|
private java.lang.String |
ownership
|
private java.util.Vector |
properties
|
private java.util.Vector |
protocol
|
private java.util.Vector |
services
|
private java.lang.String |
type
|
| Constructor Summary | |
FIPA_Service_Description()
|
|
FIPA_Service_Description(AbsConcept description)
this takes a service description in the form of a parse tree from the JADE_SL parser, and then pulls the leaves off and puts it into this nice datastructure |
|
| Method Summary | |
(package private) void |
debug(java.lang.String str)
debug method - prints to the system, or not depending on if this is activated (commented out) or not |
java.util.Vector |
getLanguage()
|
java.lang.String |
getName()
|
java.util.Vector |
getOntology()
|
java.lang.String |
getOwnership()
|
java.util.Vector |
getProperties()
|
java.util.Vector |
getProtocol()
|
java.util.Vector |
getServices()
|
java.lang.String |
getType()
|
static void |
main(java.lang.String[] argv)
for debug |
boolean |
match(ContentElement matcher)
match checks to see if the thing sent to it matches (according to generalx == specificx criteria) with it This method assumes that this object is the general case and the toMatchTo object is the specific case, so toMatchTo can have fields that are null here and still match to this. |
void |
setAgentcitiesProperties(java.lang.String classification,
java.lang.String domain,
java.lang.String scope)
setAgentcitiesProperties is called with three parameters to make the service registration in the DF carry the metadata required for service lookup in agentcities. |
void |
setLanguage(java.util.Vector language)
|
void |
setName(java.lang.String name)
|
void |
setOntology(java.util.Vector ontology)
|
void |
setOwnership(java.lang.String ownership)
|
void |
setProperties(java.util.Vector props)
|
void |
setProtocol(java.util.Vector protocol)
|
void |
setServices(java.util.Vector services)
|
void |
setType(java.lang.String type)
|
java.lang.String |
toString()
returns a String representation of the service description, formatted into SL |
boolean |
vecMatch(java.util.Vector vec1,
java.util.Vector vec2)
checks through the elements of both vectors ans tries to find if they contain the same thing |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
private java.lang.String name
private java.lang.String type
private java.util.Vector services
private java.util.Vector protocol
private java.util.Vector ontology
private java.util.Vector language
private java.lang.String ownership
private java.util.Vector properties
| Constructor Detail |
public FIPA_Service_Description()
public FIPA_Service_Description(AbsConcept description)
| Method Detail |
public void setType(java.lang.String type)
public java.lang.String getType()
public void setOwnership(java.lang.String ownership)
public java.lang.String getOwnership()
public void setProperties(java.util.Vector props)
public java.util.Vector getProperties()
public void setName(java.lang.String name)
public java.lang.String getName()
public void setServices(java.util.Vector services)
public java.util.Vector getServices()
public void setProtocol(java.util.Vector protocol)
public java.util.Vector getProtocol()
public void setOntology(java.util.Vector ontology)
public java.util.Vector getOntology()
public void setLanguage(java.util.Vector language)
public java.util.Vector getLanguage()
public void setAgentcitiesProperties(java.lang.String classification,
java.lang.String domain,
java.lang.String scope)
domain - is a string that indicates the type of domain that the
service applies toscope - is the geographic range of the service; is it useful only
within 2 miles of a particular place for example?public java.lang.String toString()
toString in interface ContentElementpublic static void main(java.lang.String[] argv)
void debug(java.lang.String str)
public boolean match(ContentElement matcher)
match in interface ContentElement
public boolean vecMatch(java.util.Vector vec1,
java.util.Vector vec2)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||