Package jason.stdlib

Class asserta

All Implemented Interfaces:
InternalAction, Serializable

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

Internal action: .asserta.

Description: adds a new belief as the "+" (or "+invalid input: '<'") operator. However, it can be used in prolog like rules.

Parameters:

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

Examples:

  • .asserta(p): adds p at the beggining of the belief base.
See Also: