All Downloads are FREE. Search and download functionalities are using the official Maven repository.

de.scravy.machina.StateMachine Maven / Gradle / Ivy

Go to download

A finite state machine library that features true stateless state machines.

There is a newer version: 1.3.1
Show newest version
package de.scravy.machina;

import java.util.List;

public interface StateMachine {

  /**
   * Get the transitions defined in this state machine.
   *
   * @since 1.0.0
   * @return A List of Transitions
   */
  List> getTransitions();

  /**
   * Get the class that the events of this state machine inherit from.
   *
   * @since 1.0.0
   * @return The class that the events of this state machine inherit from.
   */
  Class getEventClass();

  /**
   * Get the class that the event types of this state machine inherit from.
   *
   * @since 1.0.0
   * @return The class that the event types of this state machine inherit from.
   */
  Class getEventTypeClass();

  /**
   * The class that the states of this state machine inherit from.
   *
   * @since 1.0.0
   * @return Get the class that the states of this state machine inherit from.
   */
  Class getStateClass();

  S getInitialState();

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy