Пример #1
0
        public VertexNodeStateContextContainer <V> Copy()
        {
            var container = new VertexNodeStateContextContainer <V>();

            foreach (var nodeStateContext in this.Values)
            {
                container.Values.Add(nodeStateContext.Key, nodeStateContext.Value.Copy <V>(nodeStateContext.Value, ContextFactory));
            }
            return(container);
        }
Пример #2
0
 public NodeStateContextContainerFacade(EdgeNodeStateContextContainer <E> edgeNodeStateContextContainer,
                                        VertexNodeStateContextContainer <V> vertexNodeStateContextContainer)
 {
     EdgeNodeStateContextContainer   = edgeNodeStateContextContainer;
     VertexNodeStateContextContainer = vertexNodeStateContextContainer;
 }
Пример #3
0
 //NodeStateContextContainerFacade Copy<T>(NodeStateContextContainerFactory<T>)
 public NodeStateContextContainerFacade()
 {
     EdgeNodeStateContextContainer   = new EdgeNodeStateContextContainer <E>();
     VertexNodeStateContextContainer = new VertexNodeStateContextContainer <V>();
 }