public NetworkModelService()
 {
     nm = new NetworkModel();
     GenericDataAccess.NetworkModel = nm;
     ResourceIterator.NetworkModel  = nm;
     InitializeHosts();
 }
Пример #2
0
 public void Start()
 {
     StartHosts();
     nm = new NetworkModel();
     GenericDataAccess.NetworkModel = nm;
     nm.Initialize();
 }
Пример #3
0
        public UpdateResult Apply(Delta delta)
        {
            NetworkModel networkModelCopy = new NetworkModel(networkModel);
            UpdateResult updateResult     = networkModel.ApplyDelta(delta);

            if (updateResult.Result == ResultType.Failed)
            {
                networkModel = networkModelCopy;
                return(updateResult);
            }

            return(updateResult);
        }
 public NetworkModelDeepCopy()
 {
     networkModel = new NetworkModel();
 }
 public void Rollback()
 {
     networkModel = networkModelCopy;
 }
Пример #6
0
 public NetworkModel(NetworkModel networkModel)
 {
     networkDataModel = new Dictionary <DMSType, Container>(networkModel.networkDataModel);
     resourcesDescs   = networkModel.resourcesDescs;
 }