public class ground extends DefaultInternalAction
Internal action: .ground
.
Description: checks whether the argument is ground, i.e., it has no free variables. Numbers, Strings, and Atoms are always ground.
Parameters:
Examples:
.ground(b(10))
: true.
.ground(10)
: true.
.ground(X)
: false if X is free or bound to a term with free variables.
.ground(a(X))
: false if X is free or bound to a term with free variables.
.ground([a,b,c])
: true.
.ground([a,b,c(X)])
: false if X is free or bound to a term with free variables.
Constructor and Description |
---|
ground() |
Modifier and Type | Method and Description |
---|---|
static InternalAction |
create() |
java.lang.Object |
execute(TransitionSystem ts,
Unifier un,
Term[] args)
Executes the internal action.
|
int |
getMaxArgs() |
int |
getMinArgs() |
canBeUsedInContext, checkArguments, destroy, prepareArguments, suspendIntention
public static InternalAction create()
public int getMinArgs()
getMinArgs
in class DefaultInternalAction
public int getMaxArgs()
getMaxArgs
in class DefaultInternalAction
public java.lang.Object execute(TransitionSystem ts, Unifier un, Term[] args) throws java.lang.Exception
InternalAction
execute
in interface InternalAction
execute
in class DefaultInternalAction
java.lang.Exception