コード例 #1
0
ファイル: Model.cs プロジェクト: saegeoff/BFE.Net
 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();
        }