Skip to content

pseudo_code_instantiation_methods

Yirmandias edited this page Jul 21, 2021 · 1 revision

Pseudo code for getting instantiated methods

We assume that methods have arguments in the same order as the task

Code:

GetMethodInstances(methods, task_args)
    instanceList <- {}
    
    for m in methods
        q <- number of params
        method_args <- arguments of the method

        if len(task_args) < q //there is more arguments
        paramList = EvaluateParameters(m.parameters, mArgs, tArgs) //

        ....



Clone this wiki locally