jade.domain.FIPAAgentManagement
Class SearchConstraints
java.lang.Object
|
+--jade.domain.FIPAAgentManagement.SearchConstraints
- public class SearchConstraints
- extends java.lang.Object
This class models a search constraint.
- Version:
- $Date: 2003/03/10 15:38:45 $ $Revision: 2.4 $
- Author:
- Fabio Bellifemine - CSELT S.p.A.
- See Also:
FIPAManagementOntology
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
SearchConstraints
public SearchConstraints()
- Constructor. Creates a new SearchConstraints by setting default value, as defined
by FIPA, for max_depth (i.e. 0 that corresponds to no propagation of the search
to the federated DFs) and max_results (i.e. 1 result only to be returned).
Furthermore, a new globally unique identifier is created for the value of
search_id.
WARNING: When the same object is reused for several searches, it is
recommended to call the method
renewSearchId
in order
to create a new globally unique identifier. Otherwise, the DF might reply
with a FAILURE having received already the same search.
renewSearchId
public void renewSearchId()
- Regenerate the value of search_id as a globally unique identifier.
This call is recommended in order to reuse the same object for several
searches. Otherwise, the DF might reply with a FAILURe having received
already the same search.
setSearchId
public void setSearchId(java.lang.String searchId)
getSearchId
public java.lang.String getSearchId()
- return null if it has not been set
setMaxDepth
public void setMaxDepth(java.lang.Long l)
getMaxDepth
public java.lang.Long getMaxDepth()
- return null if it has not been set
setMaxResults
public void setMaxResults(java.lang.Long l)
getMaxResults
public java.lang.Long getMaxResults()
- return null if it has not been set