Examples of EdgeDirection


Examples of com.clarkparsia.pellet.rules.rete.WME.EdgeDirection

  }
 
  public boolean activate(Edge edge) {
    Individual subject = initNode();
    Node object = initObjectNode();
    EdgeDirection dir = edgeMatches(edge);
    if (dir != null && (dir == EdgeDirection.FORWARD ? edge.getFrom() : edge.getTo()).isSame(subject) && (dir == EdgeDirection.BACKWARD ? edge.getFrom() : edge.getTo()).isSame(object)) {
      activate(WME.createEdge(edge, dir));
      return true;
    }
    return false;
View Full Code Here

Examples of com.clarkparsia.pellet.rules.rete.WME.EdgeDirection

    return WME.createEdge(edge, dir);
   
  }
 
  public boolean activate(Edge edge) { 
    EdgeDirection dir = edgeMatches(edge);
    if (dir != null) {
      if (dir == EdgeDirection.BOTH) {
        activate(createEdge(edge, EdgeDirection.FORWARD))
//        activate(createEdge(edge, EdgeDirection.BACKWARD)); 
      }
View Full Code Here

Examples of com.clarkparsia.pellet.rules.rete.WME.EdgeDirection

      super(abox, role, subjectName);
    }
 
  public boolean activate(Edge edge) {
    Individual subject = initNode();
    EdgeDirection dir = edgeMatches(edge);
    if (dir != null && (dir == EdgeDirection.FORWARD ? edge.getFrom() : edge.getTo()).isSame(subject)) {
      activate(WME.createEdge(edge, dir));
      return true;
    }
    return false;
View Full Code Here

Examples of com.clarkparsia.pellet.rules.rete.WME.EdgeDirection

  public AlphaFixedObjectEdgeNode(ABox abox, Role role, ATermAppl object) {
      super(abox, role, object);
    }
 
  public boolean activate(Edge edge) {
    EdgeDirection dir = edgeMatches(edge);
    Node object = initNode();
    if (dir != null && (dir == EdgeDirection.FORWARD ? edge.getTo() : edge.getFrom()).isSame(object)) { 
      activate(WME.createEdge(edge, dir));
      return true;
    }
View Full Code Here

Examples of org.gephi.io.importer.api.EdgeDirection

        if (edgeDraftImpl.isSelfLoop()) {
            selfLoops++;
        }

        //Direction
        EdgeDirection direction = edgeDraftImpl.getDirection();
        if (direction != null) {
            //Counting
            switch (direction) {
                case DIRECTED:
                    directedEdgesCount++;
View Full Code Here

Examples of org.gephi.io.importer.api.EdgeDirection

            edgeTypeSets[type] = new Long2ObjectOpenHashMap<int[]>();
        }
    }

    private long getLongId(EdgeDraftImpl edge) {
        EdgeDirection direction = edge.getDirection();
        boolean directed = edgeDefault.equals(EdgeDirectionDefault.DIRECTED)
                || (!edgeDefault.equals(EdgeDirectionDefault.UNDIRECTED) && direction != null && direction == EdgeDirection.DIRECTED);
        return getLongId(edge.getSource(), edge.getTarget(), directed);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.