Exemple #1
0
 public Option <IFsmActionRule <A> > Rule(IRuleKey key)
 {
     if (RuleIndex.TryGetValue(key.Hash, out IFsmActionRule <A> dst))
     {
         return(some(dst));
     }
     else
     {
         return(default);
Exemple #2
0
 public Option <ITransitionRule <E, S> > Rule(IRuleKey key)
 {
     if (RuleIndex.TryGetValue(key.Hash, out ITransitionRule <E, S> dst))
     {
         return(some(dst));
     }
     else
     {
         return(default);
Exemple #3
0
 /// <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);