All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.swrlapi.drools.owl.classes.OIOCE Maven / Gradle / Ivy

There is a newer version: 2.1.2
Show newest version
package org.swrlapi.drools.owl.classes;

import org.checkerframework.checker.nullness.qual.NonNull;
import org.checkerframework.dataflow.qual.SideEffectFree;
import org.swrlapi.builtins.arguments.SWRLClassExpressionBuiltInArgument;
import org.swrlapi.drools.extractors.DroolsSWRLBuiltInArgumentExtractor;
import org.swrlapi.drools.owl.core.DroolsNarySet;
import org.swrlapi.exceptions.TargetSWRLRuleEngineException;

import java.util.Set;

/**
 * This class represents an OWL object intersection of class expression in Drools.
 *
 * @see org.semanticweb.owlapi.model.OWLObjectIntersectionOf
 */
public class OIOCE extends DroolsNarySet implements CE
{
  private static final long serialVersionUID = 1L;

  public OIOCE(@NonNull String ceid, @NonNull Set elements)
  {
    super(ceid, elements);
  }

  @NonNull @Override public String getceid()
  {
    return getID();
  }

  @NonNull public Set getceids() { return getElements(); }

  @NonNull @SideEffectFree @Override public String toString()
  {
    return "OIOCE" + super.toString();
  }

  @NonNull @Override public SWRLClassExpressionBuiltInArgument extract(
    @NonNull DroolsSWRLBuiltInArgumentExtractor extractor) throws TargetSWRLRuleEngineException
  {
    return extractor.extract(this);
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy