public static <D, R> MapMapping<D, R> create(Map<D, R> map) { return new MapMapping<>(map); }
public static <D, R> Mapping<D, R> fromMap(Map<D, R> map) { return new MapMapping<>(map); } }
/** * Creates a {@link MutableMapping} allowing to associate arbitrary data with this transition system's states. The * returned mapping maintains the association even when the transition system is modified. * * @return the mutable mapping */ @Nonnull default <V> MutableMapping<S, V> createDynamicStateMapping() { return new MapMapping<>(); }
@Nonnull default <V> MutableMapping<N, V> createDynamicNodeMapping() { return new MapMapping<>(); }
@Nonnull default <V> MutableMapping<N, V> createStaticNodeMapping() { return new MapMapping<>(); }
/** * Creates a {@link MutableMapping} allowing to associate arbitrary data with this transition system's states. The * returned mapping is however only guaranteed to work correctly if the transition system is not modified. * * @return the mutable mapping */ @Nonnull default <V> MutableMapping<S, V> createStaticStateMapping() { return new MapMapping<>(); }
/** * Creates a {@link MutableMapping} allowing to associate arbitrary data with this transition system's states. The * returned mapping is however only guaranteed to work correctly if the transition system is not modified. * * @return the mutable mapping */ @Nonnull default <V> MutableMapping<S, V> createStaticStateMapping() { return new MapMapping<>(new HashMap<S, V>()); }
@Nonnull default <V> MutableMapping<N, V> createDynamicNodeMapping() { return new MapMapping<>(new HashMap<N, V>()); }
/** * Creates a {@link MutableMapping} allowing to associate arbitrary data with this transition system's states. The * returned mapping maintains the association even when the transition system is modified. * * @return the mutable mapping */ @Nonnull default <V> MutableMapping<S, V> createDynamicStateMapping() { return new MapMapping<>(new HashMap<S, V>()); }
@Nonnull default <V> MutableMapping<N, V> createStaticNodeMapping() { return new MapMapping<>(new HashMap<N, V>()); }
@Override public void resume(final MealyDHCState<I, O> state) { this.splitters = state.getSplitters(); this.accessSequences = new MapMapping<>(state.getAccessSequences()); this.hypothesis = state.getHypothesis(); }