我是 Java 新手,所以我的问题对你来说可能很简单。但我一直在努力解决这个问题。
我不是在写我的代码。它来自 MATSim。他们的代码有两个版本:一个来自 2009 年,另一个来自 2013 年。
请看这个截图:
如果 tis 图片不起作用,请通过高音扬声器查看:ScreenShot
我已经下载了 2013 版本并根据指南添加了它的库。但是 Eclipse 中的代码是 2009 年的代码,正如您所见,该代码所需的一些类已从 2013 库中删除。
***>>>>>>For example, this one is not in the library:..... import org.matsim.core.scoring.PlanScorer;<<<<<<<<<<<***
import org.matsim.knowledges.Knowledges;
import org.matsim.locationchoice.constrained.LocationMutatorwChoiceSet;
import org.matsim.locationchoice.constrained.ManageSubchains;
import org.matsim.locationchoice.constrained.SubChain;
import org.matsim.planomat.Planomat;
import org.matsim.planomat.costestimators.DepartureDelayAverageCalculator;
import org.matsim.planomat.costestimators.LegTravelTimeEstimatorFactory;
import org.matsim.population.algorithms.PlanAlgorithm;
**>>>>>>> or these specific classes: ..... import playground.mfeil.MDSAM.ActivityTypeFinder;
import playground.mfeil.config.PlanomatXConfigGroup;<<<<<<<<<<**
幸运的是,我从他们的档案中找到了他们的 .java 文件。我尝试将它们放在 .jar 文件夹中,并通过 >>> properties/Java Build Path 将它们添加到库中。但这对我不起作用。
我想知道你是否在这件事上帮助我。如果你知道怎么做,请帮助我如何更改上述代码中的文件路径。仅手动更改路径就足够了吗?
非常感谢您的帮助。
谢谢你,索玛耶