org.umu.macow.pdp.jena.imperative
Class ForceRemoveIndividualBuiltin

java.lang.Object
  extended by org.umu.macow.pdp.jena.imperative.ForceRemoveIndividualBuiltin
All Implemented Interfaces:
com.hp.hpl.jena.reasoner.rulesys.Builtin

public class ForceRemoveIndividualBuiltin
extends java.lang.Object
implements com.hp.hpl.jena.reasoner.rulesys.Builtin

User: jmalcaraz@um.es - University Of Murcia


Constructor Summary
ForceRemoveIndividualBuiltin()
           
 
Method Summary
 boolean bodyCall(com.hp.hpl.jena.graph.Node[] args, int length, com.hp.hpl.jena.reasoner.rulesys.RuleContext context)
          This is the code that will be executed in case of this built-in appears in the body of the rule.
 int getArgLength()
          Return the number of params of this built-in.
 java.lang.String getName()
          Returns the name of the built-in
 java.lang.String getURI()
          Returns the URI for the built-in
 void headAction(com.hp.hpl.jena.graph.Node[] args, int length, com.hp.hpl.jena.reasoner.rulesys.RuleContext context)
          This is the code that will be executed in case of this built-in appears in the head of the rule.
 boolean isMonotonic()
          Return false because is not a monotonic built-in
 boolean isSafe()
          Return false because no is a safe built-in
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ForceRemoveIndividualBuiltin

public ForceRemoveIndividualBuiltin()
Method Detail

getName

public java.lang.String getName()
Returns the name of the built-in

Specified by:
getName in interface com.hp.hpl.jena.reasoner.rulesys.Builtin
Returns:
the name of the built-in ("deleteIndividual")

getURI

public java.lang.String getURI()
Returns the URI for the built-in

Specified by:
getURI in interface com.hp.hpl.jena.reasoner.rulesys.Builtin
Returns:
Return http://www.um.es/builtin#deleteIndividual

getArgLength

public int getArgLength()
Return the number of params of this built-in. In this case always return 1.

Specified by:
getArgLength in interface com.hp.hpl.jena.reasoner.rulesys.Builtin
Returns:
Return "1" that is the unique mandatory params that receive the built-in

bodyCall

public boolean bodyCall(com.hp.hpl.jena.graph.Node[] args,
                        int length,
                        com.hp.hpl.jena.reasoner.rulesys.RuleContext context)
This is the code that will be executed in case of this built-in appears in the body of the rule.

Specified by:
bodyCall in interface com.hp.hpl.jena.reasoner.rulesys.Builtin
Parameters:
args - This is the instantied params
length - The lenght of the param array
context - This is the rule context.

headAction

public void headAction(com.hp.hpl.jena.graph.Node[] args,
                       int length,
                       com.hp.hpl.jena.reasoner.rulesys.RuleContext context)
This is the code that will be executed in case of this built-in appears in the head of the rule.

Specified by:
headAction in interface com.hp.hpl.jena.reasoner.rulesys.Builtin
Parameters:
args - This is the instantied params
length - The lenght of the param array
context - This is the rule context.

isSafe

public boolean isSafe()
Return false because no is a safe built-in

Specified by:
isSafe in interface com.hp.hpl.jena.reasoner.rulesys.Builtin
Returns:
Return false always

isMonotonic

public boolean isMonotonic()
Return false because is not a monotonic built-in

Specified by:
isMonotonic in interface com.hp.hpl.jena.reasoner.rulesys.Builtin
Returns:
Return false always