Ejemplo n.º 1
0
 public Event(Func <Node, Graph, Graph, double> reqPossible,
              Func <Node, Graph, Graph, bool> reqGuaranteed,
              Action <Node, Graph, Graph> outcome)
 {
     if (reqPossible != null)
     {
         ReqPossible.Add(reqPossible);
     }
     if (reqGuaranteed != null)
     {
         ReqGuaranteed.Add(reqGuaranteed);
     }
     Outcome.Add(outcome);
 }
Ejemplo n.º 2
0
 public void AddReqGuaranteed(Func <Node, Graph, Graph, bool> req)
 {
     ReqGuaranteed.Add(req);
 }