CPD Results
The following document contains the results of PMD's CPD 7.3.0.
Duplications
File | Line |
---|---|
nl/tudelft/simulation/examples/dsol/animation/gis/EsriCsvSwingApplication.java | 49 |
nl/tudelft/simulation/examples/dsol/animation/gis/EsriXmlSwingApplication.java | 49 |
public EsriCsvSwingApplication(final String title, final DsolPanel panel, final DsolAnimationGisTab animationTab) throws RemoteException, IllegalArgumentException, DsolException { super(panel, title, animationTab); panel.enableSimulationControlButtons(); } /** */ private static final long serialVersionUID = 1L; /** * @param args String[]; arguments, expected to be empty * @throws SimRuntimeException on error * @throws RemoteException on error * @throws NamingException on error * @throws DsolException when simulator is not an animator */ public static void main(final String[] args) throws SimRuntimeException, RemoteException, NamingException, DsolException { DevsRealTimeAnimator.TimeDouble simulator = new DevsRealTimeAnimator.TimeDouble("EsriSwingApplication", 0.001); EmptyModel model = new EmptyModel(simulator); Replication<Double> replication = new SingleReplication<Double>("rep1", 0.0, 0.0, 1000000.0); simulator.initialize(model, replication); DsolPanel panel = new DsolPanel(new RealTimeControlPanel.TimeDouble(model, simulator)); Bounds2d mapBounds = new Bounds2d(4.355, 4.386, 51.995, 52.005); DsolAnimationGisTab animationTab = new DsolAnimationGisTab(mapBounds, simulator); animationTab.getAnimationPanel().setRenderableScale( new RenderableScale(Math.cos(Math.toRadians(mapBounds.midPoint().getY())), 1.0 / 111319.24)); animationTab.addAllToggleGISButtonText("MAP LAYERS", model.getGisMap(), "hide or show this GIS layer"); new EsriCsvSwingApplication("EsriSwingApplication", panel, animationTab); |
File | Line |
---|---|
nl/tudelft/simulation/dsol/demo/event/mm1/MM1Model.java | 75 |
nl/tudelft/simulation/dsol/demo/flow/mm1/MM1Model.java | 62 |
InputParameterMap generatorMap = new InputParameterMap("generator", "Generator", "Generator", 1.0); generatorMap.add(new InputParameterDouble("intervalTime", "Average interval time", "Average interval time", 1.0, 1.0)); generatorMap.add(new InputParameterDouble("startTime", "Generator start time", "Generator start time", 0.0, 2.0)); generatorMap.add(new InputParameterInteger("batchSize", "Batch size", "batch size", 1, 3.0)); this.inputParameterMap.add(generatorMap); InputParameterMap resourceMap = new InputParameterMap("resource", "Resource", "Resource", 2.0); resourceMap.add(new InputParameterInteger("capacity", "Resource capacity", "Resource capacity", 1, 1.0)); resourceMap.add(new InputParameterDouble("serviceTime", "Average service time", "Average service time", 0.9, 2.0)); this.inputParameterMap.add(resourceMap); } |
File | Line |
---|---|
nl/tudelft/simulation/examples/dsol/animation/gis/EsriCsvSwingApplication.java | 68 |
nl/tudelft/simulation/examples/dsol/animation/gis/OsmSwingApplication.java | 68 |
DevsRealTimeAnimator.TimeDouble simulator = new DevsRealTimeAnimator.TimeDouble("EsriSwingApplication", 0.001); EmptyModel model = new EmptyModel(simulator); Replication<Double> replication = new SingleReplication<Double>("rep1", 0.0, 0.0, 1000000.0); simulator.initialize(model, replication); DsolPanel panel = new DsolPanel(new RealTimeControlPanel.TimeDouble(model, simulator)); Bounds2d mapBounds = new Bounds2d(4.355, 4.386, 51.995, 52.005); DsolAnimationGisTab animationTab = new DsolAnimationGisTab(mapBounds, simulator); animationTab.getAnimationPanel().setRenderableScale( new RenderableScale(Math.cos(Math.toRadians(mapBounds.midPoint().getY())), 1.0 / 111319.24)); animationTab.addAllToggleGISButtonText("MAP LAYERS", model.getGisMap(), "hide or show this GIS layer"); |
File | Line |
---|---|
nl/tudelft/simulation/examples/dsol/animation/gis/EsriXmlSwingApplication.java | 68 |
nl/tudelft/simulation/examples/dsol/animation/gis/OsmSwingApplication.java | 68 |
DevsRealTimeAnimator.TimeDouble simulator = new DevsRealTimeAnimator.TimeDouble("EsriSwingApplication", 0.001); EmptyModel model = new EmptyModel(simulator); Replication<Double> replication = new SingleReplication<Double>("rep1", 0.0, 0.0, 1000000.0); simulator.initialize(model, replication); DsolPanel panel = new DsolPanel(new RealTimeControlPanel.TimeDouble(model, simulator)); Bounds2d mapBounds = new Bounds2d(4.355, 4.386, 51.995, 52.005); DsolAnimationGisTab animationTab = new DsolAnimationGisTab(mapBounds, simulator); animationTab.getAnimationPanel().setRenderableScale( new RenderableScale(Math.cos(Math.toRadians(mapBounds.midPoint().getY())), 1.0 / 111319.24)); animationTab.addAllToggleGISButtonText("MAP LAYERS", model.getGisMap(), "hide or show this GIS layer"); |