Package com.google.devtools.depan.graph.api

Examples of com.google.devtools.depan.graph.api.DirectedRelation


   * @param forward true to match in the forward direction.
   * @param backward true to match in the backward direction.
   */
  public void addRelation(Relation rel, boolean forward, boolean backward) {
    if (map.containsKey(rel)) {
      DirectedRelation d = map.get(rel);
      d.setMatchForward(d.matchForward() || forward);
      d.setMatchBackward(d.matchBackward() || backward);
    } else {
      map.put(rel, new BasicDirectedRelation(rel, forward, backward));         
    }
  }
View Full Code Here


   */
  @Override
  public String toString() {
    StringBuilder result = new StringBuilder();
    for (Entry<Relation, DirectedRelation> entry : map.entrySet()) {
      DirectedRelation directedRelation = entry.getValue();
      String relationText = toString(directedRelation);

      if (!relationText.isEmpty()) {
        result.append(" ");
        result.append(relationText);
View Full Code Here

TOP

Related Classes of com.google.devtools.depan.graph.api.DirectedRelation

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.