一个模拟器中的java元组数据结构
我想创建一个名为Neighbor的元组数据结构,但有一个错误“(和[expected],在我添加()或[]之后仍然是一个错误,你能帮我吗
这里是源代码
protected Tuple<Map<DTNHost, Set<DTNHost>>,ArrayList<Double>> neighborhood;
protected SimBetRouterWithFairRouting(SimBetRouterWithFairRouting proto) {
neighboursNode = new HashMap<DTNHost, Set<DTNHost>>();
indirectNode= new ArrayList<DTNHost>();
directNode= new ArrayList<DTNHost>();
this.rLambda = proto.rLambda;
this.rSigma = proto.rSigma;
this.a = proto.a;
this.centrality = proto.centrality.replicate();
this.similarity = proto.similarity.replicate();
neighborsHistory = new HashMap<DTNHost, ArrayList<Double>>();
//这里是错误
neighborhood = new Tuple<HashMap<DTNHost, Set<DTNHost>>, ArrayList<Double>>;
}
共 (0) 个答案