Class ToString
java.lang.Object
com.semedy.reasoner.builtin.functional.ToString
- All Implemented Interfaces:
Builtin,FunctionalBuiltin
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()frees up allocated resourcesclone the builtinbooleanGiven the input tuple and the instantiated arguments.voidcall back function.String[]get descriptions for the different argumentsintgetArity()get the arity of the builtinget a description for the builtingetName()get the name of the builtingetType()get the type of the builtinlongthe weight of the builtin.voidinitialize the builtinbooleanisEvaluable(BitSet arg0, BitSet arg1, Object[] arg2) is builtin evaluable with a certain instantiation of variablesbooleanis it a builtin for internal use onlyobjectGeneratingArguments(BitSet arg0, BitSet arg1, Object[] arg2) In which argument position are new objects createdbooleandoes the builtin read the symbol tablevoidsetProperties(Properties arg0) set the sytem propertiesvoidsetSymbolTable(SymbolTable symbols) set the symbol tablebooleandoes the builtin write into the symbol table
-
Constructor Details
-
ToString
public ToString()
-
-
Method Details
-
clear
public void clear()Description copied from interface:Builtinfrees up allocated resources -
cloneBuiltin
Description copied from interface:Builtinclone the builtin- Specified by:
cloneBuiltinin interfaceBuiltin- Returns:
- the cloned built-in
-
evaluationFinished
public void evaluationFinished()Description copied from interface:Builtincall back function. Is called when the whole evaluation has been finished- Specified by:
evaluationFinishedin interfaceBuiltin
-
getArgumentDescriptions
Description copied from interface:Builtinget descriptions for the different arguments- Specified by:
getArgumentDescriptionsin interfaceBuiltin- Returns:
- a description of the arguments of the built-in
-
getArity
public int getArity()Description copied from interface:Builtinget the arity of the builtin -
getDescription
Description copied from interface:Builtinget a description for the builtin- Specified by:
getDescriptionin interfaceBuiltin- Returns:
- a description of the built-in
-
getName
Description copied from interface:Builtinget the name of the builtin -
getType
Description copied from interface:Builtinget the type of the builtin -
getWeight
Description copied from interface:Builtinthe weight of the builtin. Determines when the builtin is executed in a rule -
init
Description copied from interface:Builtininitialize the builtin -
isEvaluable
Description copied from interface:Builtinis builtin evaluable with a certain instantiation of variables- Specified by:
isEvaluablein interfaceBuiltin- Parameters:
arg0- , which arguments are groundarg1- , which variables are instantiatedarg2- , the arguments- Returns:
- was it evaluable
-
isInternal
public boolean isInternal()Description copied from interface:Builtinis it a builtin for internal use only- Specified by:
isInternalin interfaceBuiltin- Returns:
-
objectGeneratingArguments
Description copied from interface:BuiltinIn which argument position are new objects created- Specified by:
objectGeneratingArgumentsin interfaceBuiltin- Parameters:
arg0- , ground argument positionsarg1- , instantiated variablesarg2- , arguments of the literal- Returns:
- each bit indicates the argument position where new objects are created
-
readsSymbolTable
public boolean readsSymbolTable()Description copied from interface:Builtindoes the builtin read the symbol table- Specified by:
readsSymbolTablein interfaceBuiltin- Returns:
- true if it reads the symbol table
-
setProperties
Description copied from interface:Builtinset the sytem properties- Specified by:
setPropertiesin interfaceBuiltin- Parameters:
arg0- , properties
-
setSymbolTable
Description copied from interface:Builtinset the symbol table- Specified by:
setSymbolTablein interfaceBuiltin- Parameters:
symbols- , the symbol table
-
writesSymbolTable
public boolean writesSymbolTable()Description copied from interface:Builtindoes the builtin write into the symbol table- Specified by:
writesSymbolTablein interfaceBuiltin- Returns:
- true if it writes to the symbol table
-
evaluate
Description copied from interface:FunctionalBuiltinGiven the input tuple and the instantiated arguments. The evaluation substitutes variables of the input tuple by concrete values- Specified by:
evaluatein interfaceFunctionalBuiltin- Parameters:
input- , the codes of the input valuesgrounds- , which input arguments are ground- Returns:
- Throws:
IOExceptionReasoningException
-