Пример #1
0
 private Model(SerializationInfo info, StreamingContext context)
 {
     elements           = info.GetValue <ElementCollection>("elements");
     rigidElements      = info.GetValue <RigidElementCollection>("rigidElements");
     nodes              = info.GetValue <NodeCollection>("nodes");
     settlementLoadCase = info.GetValue <LoadCase>("settlementLoadCase");
 }
Пример #2
0
        private Model(SerializationInfo info, StreamingContext context)
        {
            elements    = (ElementCollection)info.GetValue("elements", typeof(ElementCollection));
            mpcElements = (MpcElementCollection)info.GetValue("mpcElements", typeof(MpcElementCollection));

            rigidElements  = (RigidElementCollection)info.GetValue("rigidElements", typeof(RigidElementCollection));
            telepathyLinks = (TelepathyLinkCollection)info.GetValue("telepathyLinks", typeof(TelepathyLinkCollection));

            nodes = (NodeCollection)info.GetValue("nodes", typeof(NodeCollection));
            settlementLoadCase = (LoadCase)info.GetValue("settlementLoadCase", typeof(LoadCase));
        }
Пример #3
0
        protected Model(SerializationInfo info, StreamingContext context)
        {
            Elements    = (ElementCollection)info.GetValue("elements", typeof(ElementCollection));
            MpcElements = (MpcElementCollection)info.GetValue("mpcElements", typeof(MpcElementCollection));

            rigidElements = (RigidElementCollection)info.GetValue("rigidElements", typeof(RigidElementCollection));
            //telepathyLinks = (TelepathyLinkCollection)info.GetValue("telepathyLinks", typeof(TelepathyLinkCollection));

            Nodes = (NodeCollection)info.GetValue("nodes", typeof(NodeCollection));
            settlementLoadCase = (LoadCase)info.GetValue("settlementLoadCase", typeof(LoadCase));

            InitPool();
        }