public Option <IFsmActionRule <A> > Rule(IRuleKey key) { if (RuleIndex.TryGetValue(key.Hash, out IFsmActionRule <A> dst)) { return(some(dst)); } else { return(default);
public Option <ITransitionRule <E, S> > Rule(IRuleKey key) { if (RuleIndex.TryGetValue(key.Hash, out ITransitionRule <E, S> dst)) { return(some(dst)); } else { return(default);
/// <summary> /// Searches for the output rule given a key /// </summary> /// <param name="key">The rule key</param> public Option <IOutputRule <E, S, O> > Rule(IRuleKey key) { if (RuleIndex.TryGetValue(key.Hash, out IOutputRule <E, S, O> dst)) { return(some(dst)); } else { return(default);