Class AbstractCondition

  • All Implemented Interfaces:
    it.unibo.alchemist.model.Condition , java.io.Serializable

    
    public abstract class AbstractCondition<T>
     implements Condition<T>
                        
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
      public final Node<T> node
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      Node<T> getNode() Override if your Condition can return a more specific type of node.
      final ListSet<out Dependency> getInboundDependencies() How to override: if you intend your condition to be potentially changed by any change in the context, return null.
      Condition<T> cloneCondition(Node<T> node, Reaction<T> reaction) How to override: create a new action of your concrete subtype.
      String toString()
      • Methods inherited from class it.unibo.alchemist.model.Condition

        getContext, getNode, getPropensityContribution, isValid, reactionReady
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AbstractCondition

        AbstractCondition(Node<T> node)
        Parameters:
        node - the node this Condition belongs to
    • Method Detail

      • getNode

         Node<T> getNode()

        Override if your Condition can return a more specific type of node. The typical way is to cast the call to super.getNode().

      • getInboundDependencies

         final ListSet<out Dependency> getInboundDependencies()

        How to override: if you intend your condition to be potentially changed by any change in the context, return null.