Class CausalConflictFlaw

java.lang.Object
FAtiMA.Core.plans.CausalConflictFlaw
All Implemented Interfaces:
Serializable

public class CausalConflictFlaw extends Object implements Serializable
Represents a threat to a causal conflict A --p--> B. It means that exists a Step S, that can occur between A and B in the plan and that has ~p as effect
Author:
Joao Dias
See Also:
  • Constructor Details

    • CausalConflictFlaw

      public CausalConflictFlaw(CausalLink link, Integer step, Effect eff)
      Creates a new CausalConflictFlaw
      Parameters:
      link - - the CausalLink referenced by the threat
      step - - the id of the Step that threatens the CausalLink
      eff - - the effect of the Step that threatens the CausalLink
  • Method Details

    • GetCausalLink

      public CausalLink GetCausalLink()
      Gets the CausalLink referenced by the threat
      Returns:
      the threatened CausalLink
    • GetEffect

      public Effect GetEffect()
      Gets the effect that threatens the CausalLink
      Returns:
      the Effect that threatens the CausalLink
    • GetStep

      public Integer GetStep()
      Gets the Step that threatens the CausalLink
      Returns:
      the ID in the Plan of the step that threatens the CausalLink
    • toString

      public String toString()
      Overrides:
      toString in class Object