Package jason.stdlib

Class print

All Implemented Interfaces:
InternalAction, java.io.Serializable

@Manual(literal=".print(arg0[,arg1,...])",
        hint="prints messages to the console where the system is running, this console output is configured on logging.properties file",
        argsHint={"the term to be printed out","the term to be concatenated with prior one and printed out [optional]"},
        argsType={"term","term"},
        examples=".print(1,X,\"bla\"): prints out the concatenation of the string representations of the number 1, content of variable X, and the string \"bla\"",
        seeAlso={"jason.stdlib.println","jason.stdlib.printf"})
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:

  • +arg[0] ... +arg[n] (any term): the terms to be printed out.

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".
See Also:
println, printf, Serialized Form
  • Field Details

  • Constructor Details

    • print

      public print()
  • Method Details