本文整理汇总了C++中Experiment::GetYScale方法的典型用法代码示例。如果您正苦于以下问题:C++ Experiment::GetYScale方法的具体用法?C++ Experiment::GetYScale怎么用?C++ Experiment::GetYScale使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Experiment
的用法示例。
在下文中一共展示了Experiment::GetYScale方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: main
//.........这里部分代码省略.........
FILE *BPMXidata = fopen(datapath,"a");
sprintf(datapath,"outputs/DB%d.dat.asd.2",GraphMapInconsistentHeuristic::HN);
FILE *ASD2data = fopen(datapath,"a");
sprintf(datapath,"outputs/DB%d.dat.asd.2.bpmx",GraphMapInconsistentHeuristic::HN);
FILE *ASD2bpmxdata = fopen(datapath,"a");
sprintf(datapath,"outputs/DB%d.dat.asd.2.bpmxinf",GraphMapInconsistentHeuristic::HN);
FILE *ASD2bpmxinfdata = fopen(datapath,"a");
sprintf(datapath,"outputs/DB%d.dat.DP",GraphMapInconsistentHeuristic::HN);
FILE *DPdata = fopen(datapath,"a");
sprintf(datapath,"outputs/DB%d.dat.DP.bpmx",GraphMapInconsistentHeuristic::HN);
FILE *DPbpmxdata = fopen(datapath,"a");
sprintf(datapath,"outputs/DB%d.dat.DPDL2MX",GraphMapInconsistentHeuristic::HN);
FILE *DPDL2MXdata = fopen(datapath,"a");
sprintf(datapath,"outputs/DB%d.dat.NULL",GraphMapInconsistentHeuristic::HN);
FILE *NULLdata = fopen(datapath,"a");
for(int iexp=0;iexp<sl->GetNumExperiments();iexp++)
{
Experiment exp = sl->GetNthExperiment(iexp);
char mname[1024];
//xyLoc locstart, locgoal;
struct timeval t0,t1;
exp.GetMapName(mname);
if((string)(mname)==currentMap && exp.GetXScale()==currentScaleX && exp.GetYScale()==currentScaleY){
// rebuild the map,g,env only when necessary
}
else {
if(mp != 0) {
delete mp;
//delete g;
//delete heuristic;
delete env;
}
mp = new Map(mname);
if(exp.GetXScale() <= 0) {
printf("Invalid scaling\n");
//exit(-1);
delete mp;
continue;
}
currentMap = (string)(mname);
currentScaleX = exp.GetXScale();
currentScaleY = exp.GetYScale();
mp->scale(exp.GetXScale(), exp.GetYScale());
g = GraphSearchConstants::GetGraph(mp);
heuristic = new GraphMapInconsistentHeuristic(mp, g);
env = new GraphEnvironment(g,heuristic); //
}
//mp = new Map(mname);
//// need to scale the map !
//if(exp.GetXScale() <= 0) {
// printf("Invalid scaling\n");
// exit(-1);
//}