zeus.concepts
Class FIPA_Service_Description

java.lang.Object
  extended byzeus.concepts.FIPA_Service_Description
All Implemented Interfaces:
ContentElement

public class FIPA_Service_Description
extends java.lang.Object
implements ContentElement

provide a datatype that is used to hold the service descriptions and provide matching services for them

Version:
various, but actively used from 1.3 on.
Author:
Simon Thompson

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

name

private java.lang.String name

type

private java.lang.String type

services

private java.util.Vector services

protocol

private java.util.Vector protocol

ontology

private java.util.Vector ontology

language

private java.util.Vector language

ownership

private java.lang.String ownership

properties

private java.util.Vector properties
Constructor Detail

FIPA_Service_Description

public FIPA_Service_Description()

FIPA_Service_Description

public 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 Detail

setType

public void setType(java.lang.String type)

getType

public java.lang.String getType()

setOwnership

public void setOwnership(java.lang.String ownership)

getOwnership

public java.lang.String getOwnership()

setProperties

public void setProperties(java.util.Vector props)

getProperties

public java.util.Vector getProperties()

setName

public void setName(java.lang.String name)

getName

public java.lang.String getName()

setServices

public void setServices(java.util.Vector services)

getServices

public java.util.Vector getServices()

setProtocol

public void setProtocol(java.util.Vector protocol)

getProtocol

public java.util.Vector getProtocol()

setOntology

public void setOntology(java.util.Vector ontology)

getOntology

public java.util.Vector getOntology()

setLanguage

public void setLanguage(java.util.Vector language)

getLanguage

public java.util.Vector getLanguage()

setAgentcitiesProperties

public 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.

Parameters:
domain - is a string that indicates the type of domain that the service applies to
scope - is the geographic range of the service; is it useful only within 2 miles of a particular place for example?

toString

public java.lang.String toString()
returns a String representation of the service description, formatted into SL

Specified by:
toString in interface ContentElement

main

public static void main(java.lang.String[] argv)
for debug


debug

void debug(java.lang.String str)
debug method - prints to the system, or not depending on if this is activated (commented out) or not


match

public 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.

Specified by:
match in interface ContentElement

vecMatch

public 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



Copyright © 2000-2003 BT Exact Technologies. All Rights Reserved.