Ejemplo n.º 1
0
 private void aggregator_node_activation(AggregatorNode node, Token tok, WME w)
 {
     Token new_token = make_token(node, tok, w);
     node.Items.AddToFront(new_token);
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Adds the aggregator.
 /// </summary>
 /// <param name="m">The m.</param>
 public void AddAggregator(Aggregator m)
 {
     AggregatorNode new_production = new AggregatorNode(m.Label);
     new_production.Aggregator = m;
     AddProduction(new_production, m.lhs);
     m.AggregatorNode = new_production;
 }