Package FAtiMA.culture
Class Ritual
java.lang.Object
FAtiMA.Core.goals.Goal
FAtiMA.Core.goals.ActivePursuitGoal
FAtiMA.culture.Ritual
- All Implemented Interfaces:
FAtiMA.Core.plans.IPlanningOperator,FAtiMA.Core.wellFormedNames.IGroundable,Serializable,Cloneable
public class Ritual
extends FAtiMA.Core.goals.ActivePursuitGoal
- See Also:
-
Field Summary
Fields inherited from class FAtiMA.Core.goals.ActivePursuitGoal
_active, _agent, _effects, _failureConditions, _familiarity, _id, _numberOfTries, _preConditions, _probability, _probabilityDetermined, _successConditions, _urgency, alfaFields inherited from class FAtiMA.Core.goals.Goal
_appliedSubstitutions, _baseIOF, _baseIOS, _dynamicIOF, _dynamicIOS, _goalID, _key, _name, ACTIVATIONEVENT, FAILUREEVENT, goalCounter, GOALDROPED, GOALFAILURE, GOALSUCCESS, IMPORTANCEOFFAILURE, IMPORTANCEOFSUCCESS, SUCCESSEVENT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAddLink(int before, int after) voidAddRole(FAtiMA.Core.wellFormedNames.Symbol role) voidAddStep(FAtiMA.Core.AgentModel am, FAtiMA.Core.wellFormedNames.Name actionName, FAtiMA.Core.wellFormedNames.Name role) voidBuildPlan(FAtiMA.Core.AgentModel am) clone()Clones this ActivePursuitGoal, returning an equal copy.ArrayList<FAtiMA.Core.wellFormedNames.SubstitutionSet>findMatchWithStep(FAtiMA.Core.wellFormedNames.Symbol agent, FAtiMA.Core.wellFormedNames.Name stepName) protected FAtiMA.Core.sensorEffector.EventgenerateEventDescription(short goalEventType) FAtiMA.Core.plans.PlangetPlan()ArrayList<FAtiMA.Core.plans.Plan>getPlans(FAtiMA.Core.AgentModel am) floatgetProbability(FAtiMA.Core.AgentModel am) ArrayList<FAtiMA.Core.wellFormedNames.Symbol>GetRoles()voidMakeGround(FAtiMA.Core.wellFormedNames.Substitution subst) Applies a set of substitutions to the object, grounding it.voidMakeGround(ArrayList<FAtiMA.Core.wellFormedNames.Substitution> bindings) Applies a set of substitutions to the object, grounding it.voidReplaceUnboundVariables(int variableID) Replaces all unbound variables in the object by applying a numeric identifier to each one.toString()Methods inherited from class FAtiMA.Core.goals.ActivePursuitGoal
AddCondition, addEffect, CheckFailure, CheckIntegrity, checkPreconditions, CheckSuccess, equals, getAgent, getEffect, getEffects, GetFailureConditions, GetGoalUrgency, getID, getNameWithCharactersOrdered, GetNumberOfTries, getPrecondition, getPreconditions, GetPreconditions, GetProbability, GetSuccessConditions, getUncertainty, IncrementNumberOfTries, mayContainSelf, setID, SetProbability, setUncertainty, setUrgency, updateEffectsProbabilityMethods inherited from class FAtiMA.Core.goals.Goal
DecreaseImportanceOfFailure, DecreaseImportanceOfSuccess, GenerateGoalStatus, GetActivationEvent, getAppliedSubstitutions, GetCancelEvent, GetFailureEvent, GetImportanceOfFailure, GetImportanceOfSuccess, getKey, getName, GetSuccessEvent, GroundConditionList, IncreaseImportanceOfFailure, IncreaseImportanceOfSuccess, isGrounded, SetImportanceOfFailure, SetImportanceOfSuccessMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface FAtiMA.Core.wellFormedNames.IGroundable
isGroundedMethods inherited from interface FAtiMA.Core.plans.IPlanningOperator
getName
-
Constructor Details
-
Ritual
public Ritual(FAtiMA.Core.wellFormedNames.Name description)
-
-
Method Details
-
AddStep
public void AddStep(FAtiMA.Core.AgentModel am, FAtiMA.Core.wellFormedNames.Name actionName, FAtiMA.Core.wellFormedNames.Name role) -
AddLink
public void AddLink(int before, int after) -
AddRole
public void AddRole(FAtiMA.Core.wellFormedNames.Symbol role) -
GetRoles
-
BuildPlan
public void BuildPlan(FAtiMA.Core.AgentModel am) -
getPlans
- Overrides:
getPlansin classFAtiMA.Core.goals.ActivePursuitGoal
-
getPlan
public FAtiMA.Core.plans.Plan getPlan() -
toString
- Overrides:
toStringin classFAtiMA.Core.goals.ActivePursuitGoal
-
ReplaceUnboundVariables
public void ReplaceUnboundVariables(int variableID) Replaces all unbound variables in the object by applying a numeric identifier to each one. For example, the variable [x] becomes [x4] if the received ID is 4. Attention, this method modifies the original object.- Specified by:
ReplaceUnboundVariablesin interfaceFAtiMA.Core.wellFormedNames.IGroundable- Overrides:
ReplaceUnboundVariablesin classFAtiMA.Core.goals.ActivePursuitGoal- Parameters:
variableID- - the identifier to be applied- Throws:
FAtiMA.Core.exceptions.InvalidReplaceUnboundVariableException
-
MakeGround
Applies a set of substitutions to the object, grounding it. Example: Applying the substitution "[X]/John" in the name "Weak([X])" returns "Weak(John)". Attention, this method modifies the original object.- Specified by:
MakeGroundin interfaceFAtiMA.Core.wellFormedNames.IGroundable- Overrides:
MakeGroundin classFAtiMA.Core.goals.ActivePursuitGoal- Parameters:
bindings- - A list of substitutions of the type "[Variable]/value"- See Also:
-
Substitution
-
MakeGround
public void MakeGround(FAtiMA.Core.wellFormedNames.Substitution subst) Applies a set of substitutions to the object, grounding it. Example: Applying the substitution "[X]/John" in the name "Weak([X])" returns "Weak(John)". Attention, this method modifies the original object.- Specified by:
MakeGroundin interfaceFAtiMA.Core.wellFormedNames.IGroundable- Overrides:
MakeGroundin classFAtiMA.Core.goals.ActivePursuitGoal- Parameters:
subst- - a substitution of the type "[Variable]/value"- See Also:
-
Substitution
-
clone
Clones this ActivePursuitGoal, returning an equal copy. If this clone is changed afterwards, the original object remains the same.- Specified by:
clonein interfaceFAtiMA.Core.plans.IPlanningOperator- Overrides:
clonein classFAtiMA.Core.goals.ActivePursuitGoal- Returns:
- The Goal's copy.
-
findMatchWithStep
public ArrayList<FAtiMA.Core.wellFormedNames.SubstitutionSet> findMatchWithStep(FAtiMA.Core.wellFormedNames.Symbol agent, FAtiMA.Core.wellFormedNames.Name stepName) -
getProbability
public float getProbability(FAtiMA.Core.AgentModel am) - Specified by:
getProbabilityin interfaceFAtiMA.Core.plans.IPlanningOperator- Overrides:
getProbabilityin classFAtiMA.Core.goals.ActivePursuitGoal
-
generateEventDescription
protected FAtiMA.Core.sensorEffector.Event generateEventDescription(short goalEventType) - Overrides:
generateEventDescriptionin classFAtiMA.Core.goals.Goal
-