Package jason.stdlib

Class assertz

java.lang.Object
All Implemented Interfaces:
InternalAction, java.io.Serializable

@Manual(literal=".assertz(belief)",
        hint="adds a new belief using prolog like rules",
        argsHint="the belief that will be added in the end the base",
        argsType="literal",
        examples=".assertz(q): adds q at the end of the belief base",
        seeAlso={"jason.stdlib.asserta","jason.stdlib.abolish"})
public class assertz
extends DefaultInternalAction

Internal action: .assertz.

Description: adds a new belief as the "+>" operator. However, it can be used in prolog like rules.

Parameters:

  • + belief (literal): the belief that will be added at the end of the belief base.

Examples:

  • .assertz(q): adds q at the end of the belief base.
See Also:
asserta, abolish, Serialized Form