Interface Action

  • All Implemented Interfaces:
    com.embabel.common.core.types.HasInfoString , com.embabel.common.core.types.Named , com.embabel.plan.Step

    
    public interface Action
     implements Step
                        

    An Action is a step that does something, and hence may have a cost as well as a value.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      Double netValue(WorldState state) Net value of performing this action in the given world state
      abstract Function1<WorldState, Double> getCost() Cost of performing this action Must be between 0 and 1 1 is the most expensive imaginable.
      • Methods inherited from class com.embabel.common.core.types.HasInfoString

        infoString
      • Methods inherited from class com.embabel.plan.Step

        getName, getValue
      • Methods inherited from class java.lang.Object

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

    • Method Detail

      • getCost

         abstract Function1<WorldState, Double> getCost()

        Cost of performing this action Must be between 0 and 1 1 is the most expensive imaginable.