/** * Create a new <code>DFSearch</code>. */ public CMSSearchComponents(IComponentDescription componentdescription, IComponentDescription[] results) { this.componentdescription = componentdescription; setComponentDescriptions(results); }
/** * Create a df service description. * @param name The name. * @param type The type. * @param ownership The ownership. * @return The service description. */ public IDFServiceDescription createDFServiceDescription(String name, String type, String ownership) { return new DFServiceDescription(name, type, ownership); }
/** * Create a new <code>DFSearch</code>. */ public DFSearch(IDFComponentDescription dfcomponentdescription, IDFComponentDescription[] results) { this(); this.dfcomponentdescription = dfcomponentdescription; setResults(results); }
/** * Create a df component description. * @param component The component. * @param service The service. * @return The df component description. */ public IDFComponentDescription createDFComponentDescription(IComponentIdentifier component, IDFServiceDescription service) { DFComponentDescription ret = new DFComponentDescription(); ret.setName(component); if(service!=null) ret.addService(service); return ret; }
/** * Create a search constraints object. * @param maxresults The maximum number of results. * @param maxdepth The maximal search depth. * @return The search constraints. */ public ISearchConstraints createSearchConstraints(int maxresults, int maxdepth) { SearchConstraints ret = new SearchConstraints(); ret.setMaxResults(maxresults); ret.setMaxDepth(maxdepth); return ret; }
/** * @param obj * @return true if obj is an ComponentDescription and both are equal * @see java.lang.Object#equals(java.lang.Object) */ public boolean equals(Object obj) { if(!(obj instanceof DFComponentDescription)) return false; DFComponentDescription ad = (DFComponentDescription)obj; return eq(ad.name, name) && eq(ad.leasetime, leasetime) && eq(ad.languages, languages) && eq(ad.ontologies, ontologies) && eq(ad.protocols, protocols) && eq(ad.services, services); }
/** * @param obj * @return true if obj is an ServiceDescription and both are equal * @see java.lang.Object#equals(java.lang.Object) */ public boolean equals(Object obj) { if(!(obj instanceof DFServiceDescription)) return false; DFServiceDescription sd = (DFServiceDescription)obj; return eq(sd.name, name) && eq(sd.ownership, ownership) && eq(sd.type, type) && eq(sd.languages, languages) && eq(sd.ontologies, ontologies) && eq(sd.protocols, protocols) && eq(sd.properties, properties); }
/** * Create a df component description. * @param component The component. * @param service The service. * @return The df component description. */ public IDFComponentDescription createDFComponentDescription(IComponentIdentifier component, IDFServiceDescription service) { DFComponentDescription ret = new DFComponentDescription(); ret.setName(component); if(service!=null) ret.addService(service); return ret; }
/** * Create a search constraints object. * @param maxresults The maximum number of results. * @param maxdepth The maximal search depth. * @return The search constraints. */ public ISearchConstraints createSearchConstraints(int maxresults, int maxdepth) { SearchConstraints ret = new SearchConstraints(); ret.setMaxResults(maxresults); ret.setMaxDepth(maxdepth); return ret; }
/** * Create a df service description. * @param name The name. * @param type The type. * @param ownership The ownership. * @return The service description. */ public IDFServiceDescription createDFServiceDescription(String name, String type, String ownership) { return new DFServiceDescription(name, type, ownership); }
/** * Create a new <code>DFSearch</code>. */ public CMSSearchComponents(IComponentDescription componentdescription, IComponentDescription[] results) { this.componentdescription = componentdescription; setComponentDescriptions(results); }
/** * Create a new <code>DFSearch</code>. */ public DFSearch(IDFComponentDescription dfcomponentdescription, IDFComponentDescription[] results) { this(); this.dfcomponentdescription = dfcomponentdescription; setResults(results); }
/** * @param obj * @return true if obj is an ComponentDescription and both are equal * @see java.lang.Object#equals(java.lang.Object) */ public boolean equals(Object obj) { if(!(obj instanceof DFComponentDescription)) return false; DFComponentDescription ad = (DFComponentDescription)obj; return eq(ad.name, name) && eq(ad.leasetime, leasetime) && eq(ad.languages, languages) && eq(ad.ontologies, ontologies) && eq(ad.protocols, protocols) && eq(ad.services, services); }
/** * @param obj * @return true if obj is an ServiceDescription and both are equal * @see java.lang.Object#equals(java.lang.Object) */ public boolean equals(Object obj) { if(!(obj instanceof DFServiceDescription)) return false; DFServiceDescription sd = (DFServiceDescription)obj; return eq(sd.name, name) && eq(sd.ownership, ownership) && eq(sd.type, type) && eq(sd.languages, languages) && eq(sd.ontologies, ontologies) && eq(sd.protocols, protocols) && eq(sd.properties, properties); }
/** * Create a search constraints object. * @param maxresults The maximum number of results. * @param maxdepth The maximal search depth. * @return The search constraints. */ public ISearchConstraints createSearchConstraints(int maxresults, int maxdepth) { SearchConstraints ret = new SearchConstraints(); ret.setMaxResults(maxresults); ret.setMaxDepth(maxdepth); return ret; }
/** * Create a df service description. * @param name The name. * @param type The type. * @param ownership The ownership. * @return The service description. */ public IDFServiceDescription createDFServiceDescription(String name, String type, String ownership) { return new DFServiceDescription(name, type, ownership); }