public class print extends println implements InternalAction
Internal action: .print
.
Description: used for printing messages to the console where the system is running. It receives any number of parameters, which can be not only strings but also any AgentSpeak term (including variables). Terms are made ground according to the current unifying function before being printed out. No new line is printed after the parameters.
The precise format and output device of the message is defined
by the Java logging configuration as defined in the
logging.properties
file in the project directory.
Parameters:
Example:
.print(1,X,"bla")
: prints out to the console the
concatenation of the string representations of the number 1, of the value of
variable X, and the string "bla".println
,
Serialized FormConstructor and Description |
---|
print() |
Modifier and Type | Method and Description |
---|---|
static InternalAction |
create() |
protected java.lang.String |
getNewLine() |
argsToString, execute
canBeUsedInContext, checkArguments, destroy, getMaxArgs, getMinArgs, prepareArguments, suspendIntention
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
canBeUsedInContext, destroy, execute, prepareArguments, suspendIntention
public static InternalAction create()
protected java.lang.String getNewLine()
getNewLine
in class println