request.java
来自「发布/订阅系统路由重配算法,可应用于ad hoc环境」· Java 代码 · 共 56 行
JAVA
56 行
/* * project: RebecaSim * package: broker * file: Request.java * * version: 0.1 * date: 13.05.2005 * * This software is part of the diploma thesis "Ein adaptives Brokernetz * für Publish/Subscribe Systeme". */package com;import broker.Broker;/** * TODO Insert class description here. * * @version 13.05.2005 * @author parzy */public class Request extends Message{ private Broker[] path; private double[] costs; public Request(Broker[] path, double[] costs) { this(path, costs, Message.HEURISTIC); } public Request(Broker[] path, double[] costs, int type){ super(type); this.path = path; this.costs = costs; } /** * @return Returns the costs. */ public double[] getCosts() { return costs; } /** * @param costs The costs to set. */ public void setCosts(double[] costs) { this.costs = costs; } /** * @return Returns the path. */ public Broker[] getPath() { return path; }}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?