private static void SaveValueInputBuffer(ValueInputPort p, NodeState to) { if (p.Values != null) { to.WriteValue(to.PortValues, p.Name, p.Values.Clone()); } }
private static void LoadValueInputBuffer(NodeState from, ValueInputPort to) { if (to.Values != null) { var values = (ConcurrentTreeBag <TimeLocatedValue>)from.PortValues[to.Name]; to.Values = values.Clone(); } }
protected virtual void ValueAvailable(ValueInputPort port) { }