Interface EdgeAction<S extends AgentState>

Type Parameters:
S - the type of the agent state
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface EdgeAction<S extends AgentState>
Represents an edge action that operates on an agent state and returns a result.
  • Method Summary

    Modifier and Type
    Method
    Description
    apply(S t)
    Applies this action to the given agent state.
  • Method Details

    • apply

      String apply(S t) throws Exception
      Applies this action to the given agent state.
      Parameters:
      t - the agent state
      Returns:
      a result of the action
      Throws:
      Exception - if an error occurs during the action