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,java.io.Serializable,java.lang.Cloneable
public class Ritual extends FAtiMA.Core.goals.ActivePursuitGoal- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Ritual(FAtiMA.Core.wellFormedNames.Name description)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidAddLink(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)java.lang.Objectclone()Clones this ActivePursuitGoal, returning an equal copy.java.util.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()java.util.ArrayList<FAtiMA.Core.plans.Plan>getPlans(FAtiMA.Core.AgentModel am)floatgetProbability(FAtiMA.Core.AgentModel am)java.util.ArrayList<FAtiMA.Core.wellFormedNames.Symbol>GetRoles()voidMakeGround(FAtiMA.Core.wellFormedNames.Substitution subst)Applies a set of substitutions to the object, grounding it.voidMakeGround(java.util.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.java.lang.StringtoString()-
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, updateEffectsProbability
-
Methods inherited from class FAtiMA.Core.goals.Goal
DecreaseImportanceOfFailure, DecreaseImportanceOfSuccess, GenerateGoalStatus, GetActivationEvent, getAppliedSubstitutions, GetCancelEvent, GetFailureEvent, GetImportanceOfFailure, GetImportanceOfSuccess, getKey, getName, GetSuccessEvent, GroundConditionList, IncreaseImportanceOfFailure, IncreaseImportanceOfSuccess, isGrounded, SetImportanceOfFailure, SetImportanceOfSuccess
-
-
-
-
Method Detail
-
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
public java.util.ArrayList<FAtiMA.Core.wellFormedNames.Symbol> GetRoles()
-
BuildPlan
public void BuildPlan(FAtiMA.Core.AgentModel am)
-
getPlans
public java.util.ArrayList<FAtiMA.Core.plans.Plan> getPlans(FAtiMA.Core.AgentModel am)
- Overrides:
getPlansin classFAtiMA.Core.goals.ActivePursuitGoal
-
getPlan
public FAtiMA.Core.plans.Plan getPlan()
-
toString
public java.lang.String 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
public void MakeGround(java.util.ArrayList<FAtiMA.Core.wellFormedNames.Substitution> bindings)
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
public java.lang.Object 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 java.util.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
-
-