com.cra.figaro.library

decision

package decision

Visibility
  1. Public
  2. All

Type Members

  1. class AlgorithmDecisionException extends AlgorithmException

  2. abstract class CachingDecision[T, U] extends Decision[T, U]

    Abstract class for a CachingDecision.

    Abstract class for a CachingDecision. It is abstract because makePolicy has not been defined yet.

  3. abstract class Decision[T, U] extends Chain[T, U] with PolicyMaker[T, U]

    A Decision class represents a decision that takes in a single parent element, applies a function (aka a policy) on the value of the parent, and returns a decision element.

    A Decision class represents a decision that takes in a single parent element, applies a function (aka a policy) on the value of the parent, and returns a decision element. A decision is essentially a chain, with the added capability to change the function in the chain. If your decision has more than one parent, you can create an element tuple of the parents and use the tuple as the input to the decision.

  4. class DecisionIllegalArgumentException extends IllegalArgumentException

  5. case class DecisionSample(weightedUtil: Double, weight: Double) extends Product with Serializable

    Convenience class to handle the output of decision inference algorithms.

    Convenience class to handle the output of decision inference algorithms. Contains a weighted utility and the weight

    weightedUtil

    The utility multiplied by its weight

  6. trait ExactPolicyMaker[T, U] extends PolicyMaker[T, U]

    Trait that implements an exact policy.

  7. class IllegalDecisionNetwork extends DecisionIllegalArgumentException

  8. class IllegalUtilityNodeException extends AlgorithmDecisionException

  9. abstract class NonCachingDecision[T, U] extends Decision[T, U]

    Abstract class for a NonCachingDecision.

    Abstract class for a NonCachingDecision. It is abstract because makePolicy has not been defined yet.

  10. class ParentValueNotFoundException extends AlgorithmDecisionException

  11. trait PolicyMaker[T, U] extends AnyRef

    Trait that defines how to make a policy for a particular decision.

    Trait that defines how to make a policy for a particular decision. All decision elements must implement this trait by defining makePolicy. The default usage of caching and noncaching decisions provide implementations of the makePolicy function. If you want a different policy, you must define makePolicy.

Value Members

  1. object CachingDecision

  2. object Decision

    By default, creating a Decision uses a Caching decision and an exact policy.

    By default, creating a Decision uses a Caching decision and an exact policy. See NonCachingDecision for approximate policies.

  3. object DecisionUtil

    Utility functions that are used in decision inference.

  4. object NonCachingDecision

Ungrouped