Resolve given variable

def resolve(self, parameters):
        """ Resolve given variable """
        if self.default_value == DUMMY_VALUE:
            if self.name in parameters:
                return parameters[self.name]
            else:
                raise VelException(f"Undefined parameter: {self.name}")
        else:
            return parameters.get(self.name, self.default_value)