Exemplo n.º 1
0
 public static void OutputTestMatrix(DenseMatrix ds)
 {
     Serialization<DenseMatrix> dt2Xml = new Serialization<DenseMatrix>();
     dt2Xml.XMLSerialization(_matrixFilePath, ds);
 }
Exemplo n.º 2
0
 //TunnelHealIndex = new AHPIndexHierarchy()
 //{
 //    Name = "TunnelHealth",
 //    IndexType = AHPIndexValueType.SingleValue
 //};
 //AHPIndexHierarchy testLevel1 = new AHPIndexHierarchy()
 //{
 //    Name = "Level1",
 //    IndexType = AHPIndexValueType.SingleValue
 //};
 //TunnelHealIndex.Children.Add(testLevel1);
 //testLevel1.Parent = TunnelHealIndex;
 //AHPIndexHierarchy testLevel2Node1 = new AHPIndexHierarchy()
 //{
 //    Name = "level2Node1",
 //    IndexType = AHPIndexValueType.Text
 //};
 //AHPIndexHierarchy testLevel2Node2 = new AHPIndexHierarchy()
 //{
 //    Name = "level2Node2",
 //    IndexType = AHPIndexValueType.SeriesValue
 //};
 //testLevel1.Children.Add(testLevel2Node1);
 //testLevel1.Children.Add(testLevel2Node2);
 //testLevel2Node1.Parent = testLevel1;
 //testLevel2Node1.Parent = testLevel1;
 public static void OutputIndexHierarchyXml(AHPIndexHierarchy TunnelHealIndex)
 {
     Serialization<AHPIndexHierarchy> AHPIndex2Xml = new Serialization<AHPIndexHierarchy>();
     AHPIndex2Xml.XMLSerialization(_hierarchyFilePath, TunnelHealIndex);
 }
Exemplo n.º 3
0
 public static void OutputMatrixXml(JudgementMatrixsGroup judgementMatrixInfos)
 {
     Serialization<JudgementMatrixsGroup> Matrix2Xml = new Serialization<JudgementMatrixsGroup>();
        // string _matrixFilePath = Directory.GetCurrentDirectory().ToString() + @"tools\Hierarchy.xml";
     Matrix2Xml.XMLSerialization(_matrixFilePath, judgementMatrixInfos);
 }
Exemplo n.º 4
0
 public static void OutputDatatable(DataTable dt)
 {
     Serialization<DataTable> dt2Xml = new Serialization<DataTable>();
     dt2Xml.XMLSerialization(_matrixFilePath, dt);
 }