Package org.wymiwyg.knobot.relations

Examples of org.wymiwyg.knobot.relations.DirectRelationIterator


      unOrdered = "true".equals(request.getRequestURI()
          .getParameterValues("unOrdered")[0]);
    } catch (Exception ex) {
    }
    RelationIterator itemIterator;
    itemIterator = new DirectRelationIterator(resource);
    if (!onlyDirect) {
      itemIterator = new IndirectRelationIterator(
          (CSRelationIterator) itemIterator, minimalRelevance);
    }
    if (!unOrdered) {
View Full Code Here


     * @param minimalRelevance
     * @param i
     */
    static private void addComments(Resource item, Model resultModel, List acceptLanguagesStringList, int recursion, float minimalRelevance) {
        RelationIterator itemIterator;
        itemIterator = new DirectRelationIterator(item);
        /*
         * itemIterator = new StrengthSortedRelationIterator(
         * (CSRelationIterator) itemIterator);
         */
        while (itemIterator.hasNext()) {
View Full Code Here

   * @return
   */
  protected RelationIterator getItemsIterator(
      RequestParameters requestParameters, Resource resource, EnhancedRequest ehRequest) {
    RelationIterator itemIterator;
    itemIterator = new DirectRelationIterator(resource);
    if (!requestParameters.getOnlyDirect()) {
      itemIterator = new IndirectRelationIterator(
          (CSRelationIterator) itemIterator, requestParameters
              .getMinimalRelevance());
    }
View Full Code Here

   *                   resource for the target to be removed (lower than
   *                   resourceThreshold)
   */
  private void antiggregate(Resource resource, Model removedModel,
      float resourceThreshold, float otherThreshold) {
    RelationIterator iter = new DirectRelationIterator(resource);
    int pos = 0;
    OUTER: while (iter.hasNext()) {
      Relation current = iter.nextRelation();
      if (++pos > 20) {
        //if (current.getCurrentComparativeStrength() <
        // resourceThreshold) {
        Resource target = current.getTarget();
        if (target == null) {
View Full Code Here

TOP

Related Classes of org.wymiwyg.knobot.relations.DirectRelationIterator

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.