Package jason.stdlib
Class log
java.lang.Object
jason.asSemantics.DefaultInternalAction
jason.stdlib.log
- All Implemented Interfaces:
InternalAction
,Serializable
@Manual(literal=".log(level,arg0[,arg1,...])",
hint="used for logging messages",
argsHint={"log level: severe, warning, info, fine, finer or finest (see java.util.logging)","the terms to be logged","the term to be concatenated with prior one [optional]"},
argsType={"term","term","term"},
examples=".log(info,\"Created artifact counter\"): prints to the log the referred message with level INFO.",
seeAlso={"jason.stdlib.print","jason.stdlib.println"})
public class log
extends DefaultInternalAction
Internal action: .log(level, args...)
.
Description: used for printing messages to the log
Examples:
-
.log(info,"Created artifact counter",N)
: prints to the log the referred message.
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
checkArguments
(Term[] args) static InternalAction
create()
execute
(TransitionSystem ts, Unifier un, Term[] args) Executes the internal action.protected String
Methods inherited from class jason.asSemantics.DefaultInternalAction
canBeUsedInContext, destroy, getMaxArgs, getMinArgs, prepareArguments, suspendIntention
-
Constructor Details
-
log
public log()
-
-
Method Details
-
create
-
getNewLine
-
checkArguments
- Overrides:
checkArguments
in classDefaultInternalAction
- Throws:
JasonException
-
execute
Description copied from interface:InternalAction
Executes the internal action. It should return a Boolean or an Iterator. A true boolean return means that the IA was successfully executed. An Iterator result means that there is more than one answer for this IA (e.g. see member internal action). - Specified by:
execute
in interfaceInternalAction
- Overrides:
execute
in classDefaultInternalAction
- Throws:
Exception
-