Codota Logo
Edge.getDepends
Code IndexAdd Codota to your IDE (free)

How to use
getDepends
method
in
openllet.core.boxes.abox.Edge

Best Java code snippets using openllet.core.boxes.abox.Edge.getDepends (Showing top 20 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
LocalDateTime l =
  • Codota Iconnew LocalDateTime()
  • Codota IconLocalDateTime.now()
  • Codota IconDateTimeFormatter formatter;String text;formatter.parseLocalDateTime(text)
  • Smart code suggestions by Codota
}
origin: Galigator/openllet

@Override
public DependencySet getDepends()
{
  return _edge.getDepends();
}
origin: Galigator/openllet

@Override
public DependencySet getDepends()
{
  return _edge.getDepends();
}
origin: Galigator/openllet

public DependencySet getDepends(final boolean doExplanation)
{
  DependencySet ds = DependencySet.INDEPENDENT;
  for (final Edge e : this)
    ds = ds.union(e.getDepends(), doExplanation);
  return ds;
}
origin: Galigator/openllet

public DependencySet getDepends(final boolean doExplanation)
{
  DependencySet ds = DependencySet.INDEPENDENT;
  for (final Edge e : this)
    ds = ds.union(e.getDepends(), doExplanation);
  return ds;
}
origin: Galigator/openllet

public DependencyEntry(final DependencyEntry that)
{
  _types.addAll(that._types); //TODO:may need to perform a deep copy here
  _merges.addAll(that._merges); //TODO:may need to perform a deep copy here
  for (final Edge next : that._edges) //copy edge depenedencies
    _edges.add(new DefaultEdge(next.getRole(), next.getFrom(), next.getTo(), next.getDepends()));
  _branchAdds.addAll(that._branchAdds); //TODO:may need to perform a deep copy here
  _branchCloses.addAll(that._branchCloses); //TODO:may need to perform a deep copy here
  _clash = that._clash; //TODO:may need to perform a deep copy here
}
origin: Galigator/openllet

public DependencyEntry(final DependencyEntry that)
{
  _types.addAll(that._types); //TODO:may need to perform a deep copy here
  _merges.addAll(that._merges); //TODO:may need to perform a deep copy here
  for (final Edge next : that._edges) //copy edge depenedencies
    _edges.add(new DefaultEdge(next.getRole(), next.getFrom(), next.getTo(), next.getDepends()));
  _branchAdds.addAll(that._branchAdds); //TODO:may need to perform a deep copy here
  _branchCloses.addAll(that._branchCloses); //TODO:may need to perform a deep copy here
  _clash = that._clash; //TODO:may need to perform a deep copy here
}
origin: Galigator/openllet

public EdgeList sort()
{
  final EdgeList sorted = new EdgeList(this);
  sort((e1, e2) -> e1.getDepends().max() - e2.getDepends().max());
  return sorted;
}
origin: Galigator/openllet

public EdgeList sort()
{
  final EdgeList sorted = new EdgeList(this);
  sort((e1, e2) -> e1.getDepends().max() - e2.getDepends().max());
  return sorted;
}
origin: Galigator/openllet

public CachedOutEdge(final Edge edge)
{
  super(edge.getRole(), edge.getToName(), edge.getDepends());
}
origin: Galigator/openllet

public CachedInEdge(final Edge edge)
{
  super(edge.getRole(), edge.getFromName(), edge.getDepends());
}
origin: Galigator/openllet

  @Override
  public String toString()
  {
    final boolean isFwd = _dir == EdgeDirection.FORWARD;
    return String.format("%s%s-%s-%s%s %s", _edge.getFrom(), isFwd ? "" : "<", _edge.getRole(), isFwd ? ">" : "", _edge.getTo(), _edge.getDepends());
  }
}
origin: Galigator/openllet

  @Override
  public String toString()
  {
    final boolean isFwd = _dir == EdgeDirection.FORWARD;
    return String.format("%s%s-%s-%s%s %s", _edge.getFrom(), isFwd ? "" : "<", _edge.getRole(), isFwd ? ">" : "", _edge.getTo(), _edge.getDepends());
  }
}
origin: Galigator/openllet

private static Bool checkSelfClash(final KnowledgeBase kb, final ATermAppl self, final CachedNode root, final CachedNode otherRoot)
{
  final Role r = kb.getRole(self.getArgument(0));
  for (final Edge e : otherRoot.getOutEdges())
    if (e.getRole().isSubRoleOf(r) && e.getToName().equals(otherRoot.getName()))
    {
      if (_logger.isLoggable(Level.FINE))
        _logger.fine(root + " has not(" + self + ") " + otherRoot + " has self edge");
      final boolean allIndependent = root.isIndependent() && otherRoot.isIndependent() && e.getDepends().isIndependent();
      return allIndependent ? Bool.FALSE : Bool.UNKNOWN;
    }
  return null;
}
origin: Galigator/openllet

private static Bool checkSelfClash(final KnowledgeBase kb, final ATermAppl self, final CachedNode root, final CachedNode otherRoot)
{
  final Role r = kb.getRole(self.getArgument(0));
  for (final Edge e : otherRoot.getOutEdges())
    if (e.getRole().isSubRoleOf(r) && e.getToName().equals(otherRoot.getName()))
    {
      if (_logger.isLoggable(Level.FINE))
        _logger.fine(root + " has not(" + self + ") " + otherRoot + " has self edge");
      final boolean allIndependent = root.isIndependent() && otherRoot.isIndependent() && e.getDepends().isIndependent();
      return allIndependent ? Bool.FALSE : Bool.UNKNOWN;
    }
  return null;
}
origin: Galigator/openllet

public DependencySet check(final Individual node1, final Node node2)
{
  final EdgeList list = node1.getRNeighborEdges(_role);
  for (int i = 0, n = list.size(); i < n; i++)
  {
    final Edge edge = list.get(i);
    if (edge.getNeighbor(node1).equals(node2))
      return edge.getDepends();
  }
  return null;
}
origin: Galigator/openllet

public DependencySet check(final Individual node1, final Node node2)
{
  final EdgeList list = node1.getRNeighborEdges(_role);
  for (int i = 0, n = list.size(); i < n; i++)
  {
    final Edge edge = list.get(i);
    if (edge.getNeighbor(node1).equals(node2))
      return edge.getDepends();
  }
  return null;
}
origin: Galigator/openllet

protected void addOutEdge(final Edge edge)
{
  setChanged(ALL);
  setChanged(MAX);
  _applyNext[MAX] = 0;
  if (edge.getRole().isBottom())
    _abox.setClash(Clash.bottomProperty(edge.getFrom(), edge.getDepends(), edge.getRole().getName()));
  else
    _outEdges.add(edge);
}
origin: Galigator/openllet

protected void addOutEdge(final Edge edge)
{
  setChanged(ALL);
  setChanged(MAX);
  _applyNext[MAX] = 0;
  if (edge.getRole().isBottom())
    _abox.setClash(Clash.bottomProperty(edge.getFrom(), edge.getDepends(), edge.getRole().getName()));
  else
    _outEdges.add(edge);
}
origin: Galigator/openllet

protected WME createEdge(final Edge edge, final EdgeDirection dir)
{
  if (_doExplanation)
  {
    final DependencySet ds = dir == EdgeDirection.FORWARD ? _role.getExplainSub(edge.getRole().getName()) : _role.getInverse().getExplainSub(edge.getRole().getName());
    if (!ds.getExplain().isEmpty())
      return WME.createEdge(new DefaultEdge(edge.getRole(), edge.getFrom(), edge.getTo(), edge.getDepends().union(ds, _doExplanation)), dir);
  }
  return WME.createEdge(edge, dir);
}
origin: Galigator/openllet

protected WME createEdge(final Edge edge, final EdgeDirection dir)
{
  if (_doExplanation)
  {
    final DependencySet ds = dir == EdgeDirection.FORWARD ? _role.getExplainSub(edge.getRole().getName()) : _role.getInverse().getExplainSub(edge.getRole().getName());
    if (!ds.getExplain().isEmpty())
      return WME.createEdge(new DefaultEdge(edge.getRole(), edge.getFrom(), edge.getTo(), edge.getDepends().union(ds, _doExplanation)), dir);
  }
  return WME.createEdge(edge, dir);
}
openllet.core.boxes.aboxEdgegetDepends

Popular methods of Edge

  • getToName
  • getFrom
  • getFromName
  • getNeighbor
    Given a node upon which this edge is incident, the opposite incident _node is returned.
  • getRole
  • getTo
  • setDepends

Popular in Java

  • Reactive rest calls using spring rest template
  • addToBackStack (FragmentTransaction)
  • getApplicationContext (Context)
  • findViewById (Activity)
  • Point (java.awt)
    A point representing a location in (x, y) coordinate space, specified in integer precision.
  • DateFormat (java.text)
    Formats or parses dates and times.This class provides factories for obtaining instances configured f
  • ExecutorService (java.util.concurrent)
    An Executor that provides methods to manage termination and methods that can produce a Future for tr
  • HttpServletRequest (javax.servlet.http)
    Extends the javax.servlet.ServletRequest interface to provide request information for HTTP servlets.
  • Project (org.apache.tools.ant)
    Central representation of an Ant project. This class defines an Ant project with all of its targets,
  • IsNull (org.hamcrest.core)
    Is the value null?
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now