7 #define _USE_MATH_DEFINES 26 disUptodate = DBL_MAX;
42 double proportions[2];
47 indexOfRootVertex = -1;
53 return indexOfRootVertex == -1
54 && indexOfCurEdge == -1
55 && indexOfAncestor == -1;
59 assert(!fDirectParenIsPseudoSource);
60 if (fDirectParentEdgeOnLeft)
87 virtual void Initialize();
88 virtual void Dispose();
89 virtual void Propagate();
90 virtual void CollectExperimentalResults();
92 virtual void AddIntoQueueOfPseudoSources(
const QuoteInfoAtVertex& quoteOfPseudoSource);
93 virtual void AddIntoQueueOfWindows(
QuoteWindow& quoteW);
94 virtual bool UpdateTreeDepthBackWithChoice();
97 bool IsTooNarrowWindow(
const Window& w)
const;
98 void ComputeChildrenOfPseudoSource(
int indexOfParentVertex);
99 void ComputeChildrenOfPseudoSourceFromPseudoSource(
int indexOfParentVertex);
100 void ComputeChildrenOfPseudoSourceFromWindow(
int indexOfParentVertex);
101 void CreateIntervalChildOfPseudoSource(
int source,
int subIndexOfIncidentEdge,
double propL = 0,
double propR = 1);
102 void FillVertChildOfPseudoSource(
int source,
int subIndexOfVert);
103 void ComputeChildrenOfSource();
104 void ComputeChildrenOfSource(
int indexOfSourceVert,
double dis);
105 void ComputeTheOnlyLeftChild(
const Window& w);
106 void ComputeTheOnlyLeftTrimmedChild(
const Window& w);
107 void ComputeLeftTrimmedChildWithParent(
const Window& w);
108 void ComputeTheOnlyRightChild(
const Window& w);
109 void ComputeTheOnlyRightTrimmedChild(
const Window& w);
110 void ComputeRightTrimmedChildWithParent(
const Window& w);
111 void ComputeChildrenOfWindow(
QuoteWindow& quoteParentWindow);
117 CChen_Han(
const CRichModel& model,
const map<int, double>& sources,
const set<int> &destinations);
124 void OutputExperimentalResults()
const;
pair< double, double > coordOfPseudoSource
bool operator<(const QuoteWindow &another) const
const CEdge & Edge(int edgeIndex) const
bool fDirectParenIsPseudoSource
queue< QuoteInfoAtVertex > m_QueueForPseudoSources
bool fBrachParentIsPseudoSource
queue< QuoteWindow > m_QueueForWindows
__int64 GetMaxLenOfPseudoSourceQueue() const
bool fDirectParentEdgeOnLeft
__int64 m_nCountOfWindows
int GetDirectParentEdge(const CRichModel &model) const
__int64 GetTotalNumOfWindows() const
__int64 m_nMaxLenOfPseudoSourceQueue
vector< InfoAtAngle > m_InfoAtAngles
__int64 GetMaxLenOfWindowQueue() const
__int64 m_nMaxLenOfWindowQueue