public interface

ActionStateTransitionFunction

es.usc.citius.hipster.model.function.ActionStateTransitionFunction<A, S>

Class Overview

Interface to define a transition function that takes an action and a concrete state and returns the new state. For example, in the 8-Puzzle, this function takes a board with a concrete configuration and a valid action, and returns the new board resulting of moving the empty tile in the direction that corresponds to the action applied.

Summary

Public Methods
abstract S apply(A action, S state)
Apply an action to a state and return the resultant state.

Public Methods

public abstract S apply (A action, S state)

Apply an action to a state and return the resultant state.

Parameters
action action to apply
state state where the actions is applied to
Returns
  • the new resultant action