public class

LazyActionStateTransitionFunction

extends Object
implements TransitionFunction<A, S>
java.lang.Object
   ↳ es.usc.citius.hipster.model.function.impl.LazyActionStateTransitionFunction<A, S>

Class Overview

Implementation of a TransitionFunction generates an java.lang.Iterable of Transition which are instantiated in a lazy way, as the elements are iterated by the algorithms, and not in advance. This class is used for problems with explicit actions.

Summary

Public Constructors
LazyActionStateTransitionFunction(ActionFunction<A, S> af, ActionStateTransitionFunction<A, S> tf)
Main constructor which initializes this class with the transition functions.
Public Methods
Iterable<Transition<A, S>> transitionsFrom(S state)
Generate the outgoing transitions from a state.
[Expand]
Inherited Methods
From class java.lang.Object
From interface es.usc.citius.hipster.model.function.TransitionFunction

Public Constructors

public LazyActionStateTransitionFunction (ActionFunction<A, S> af, ActionStateTransitionFunction<A, S> tf)

Main constructor which initializes this class with the transition functions.

Parameters
af function which computes the actions applicable in each state
tf function which computes the state after applying an action in a concrete state

Public Methods

public Iterable<Transition<A, S>> transitionsFrom (S state)

Generate the outgoing transitions from a state.

Parameters
state current state
Returns
  • set of transitions from the current state