Package com.clarkparsia.pellet.rules.rete.WME

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


    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

      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

  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

TOP

Related Classes of com.clarkparsia.pellet.rules.rete.WME.EdgeDirection

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.