/// <summary> /// Visits and handles the effect. /// </summary> /// <param name="effect">Effect.</param> public void Visit(ObjectAssignEffect effect) { IAtom groundedFunctionAtom = GroundingManager.GroundAtomDeep(effect.FunctionAtom, Substitution, State); ITerm value = GroundingManager.GroundTermDeep(effect.Value, Substitution, State); ConstantTerm constantTermValue = (ConstantTerm)value; State.AssignObjectFunction(groundedFunctionAtom, constantTermValue.NameId); }
/// <summary> /// Visits and handles the effect. /// </summary> /// <param name="effect">Effect.</param> public void Visit(ObjectAssignEffect effect) { }
/// <summary> /// Visits and handles the effect. /// </summary> /// <param name="effect">Effect.</param> public void Visit(ObjectAssignEffect effect) { ObjectFunctionAssignmentEffects.Add(effect); }