public void Add(M_Article article, OpenNode <T> openNode) { if (openNode.GetOpenNode().GetType() != typeof(StockExchangeDemand)) { throw new MrpRunException("An open provider can only be a StockExchangeDemand."); } InitOpenProvidersDictionary(article); _openNodes[article].Push(openNode); }
public void Remove(OpenNode <T> node) { _openNodes[node.GetArticle()].Remove(node); }