public class time extends DefaultInternalAction
Internal action: .time(HH,MM,SS)
.
Description: gets the current time (hour, minute, and seconds).
Parameters:
Examples:
.time(H,M,S)
: unifies H with the current hour, M
with the current minutes, and S with the current seconds..time(15,_,_)
: succeeds if it is now 3pm or a bit later
but not yet 4pm.date
,
function time
,
Serialized FormConstructor and Description |
---|
time() |
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