resultsfactory.java
来自「p2p仿真器。开发者可以工作在覆盖层中进行创造和测试逻辑算法或者创建和测试新的服」· Java 代码 · 共 54 行
JAVA
54 行
package planet.commonapi.results;import planet.commonapi.Id;import planet.commonapi.exception.InitializationException;/** * Its objective is build any required element to build a graph. * <br><br> * Any future implementation must contain the no argument constructor. * <br><br> * @author <a href="mailto: jordi.pujol@estudiants.urv.es">Jordi Pujol</a> * 21/02/2005 */public interface ResultsFactory extends java.io.Serializable{ /** * Sets the initial values for this ResultsFactory. * @param resultsEdge Class reference of the current ResultsEdge implementation. * @param resultsConstraint Class reference of the current ResultsConstraint * implementation. * @param resultsGenerator Class reference of the current ResultsGenerator * implementation. * @return The same instance once it has been updated. * @throws InitializationException if some error occurs during the * initialization process. */ public ResultsFactory setValues(Class resultsEdge, Class resultsConstraint, Class resultsGenerator) throws InitializationException; /** * Build an edge with the specified values. * @param source Source node Id. * @param target Destination node Id. * @param directed true when the edge is directed. false in other case. * @param fill Fill color in "#RRGGBB" format. * @return An instance of the required Edge implementation. * @throws InitializationException if an error occurs during the initialization. */ public ResultsEdge buildEdge(Id source, Id target, boolean directed, String fill) throws InitializationException; /** * Builds the Generator specified in the properties file. * @return The required Generator. * @throws InitializationException if an error occurs during the initialization. */ public ResultsGenerator buildGenerator() throws InitializationException ; /** * Build the Constraint specified in the properties file. * @return The Constraint. * @throws InitializationException if an error occurs during the initialization. */ public ResultsConstraint buildConstraint() throws InitializationException ; }
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?