00001 /*---------------------------------------------------------------------------*/ 00010 /*---------------------------------------------------------------------------*/ 00011 #ifndef TREENODE_H 00012 #define TREENODE_H 00013 #include <cstdio> 00014 #include <cstdlib> 00015 #include <cmath> 00016 #include <cassert> 00017 00018 /**********************************************************/ 00019 /*******************TreeNode class*************************/ 00020 /**********************************************************/ 00022 class TreeNode 00023 { 00024 public: 00026 int timeLevel; 00028 int g2VertexIndex; 00030 int g2MTIndex; 00032 int g1VertexIndex; 00034 int g1MTIndex; 00036 int branch; 00038 float nodeCost; 00040 float weightMTinTLDiffCost; 00042 float TL1TL2DivCost; 00044 float flowDiffCost; 00046 float divDiffCost; 00048 float MIDiffCost; 00050 float divMTaMTbCost; 00052 float timeCost; 00053 00054 00055 TreeNode(){ 00056 00057 timeLevel=-1; 00058 g2VertexIndex=-1; 00059 g2MTIndex=-1; 00060 g1VertexIndex=-1; 00061 g1MTIndex=-1; 00062 branch=-1; 00063 nodeCost=-1; 00064 00065 } 00066 00067 virtual~TreeNode(){ 00068 00069 } 00070 00071 }; 00072 #endif 00073