Skip to content

Commit 9427947

Browse files
committed
Minor improvements in elevator example
1 parent 4316990 commit 9427947

File tree

14 files changed

+97
-20
lines changed

14 files changed

+97
-20
lines changed

JSimpleSim/.gitignore

Lines changed: 0 additions & 4 deletions
This file was deleted.

JSimpleSim/.settings/org.eclipse.jdt.ui.prefs

Lines changed: 40 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
cleanup.add_all=false
12
cleanup.add_default_serial_version_id=true
23
cleanup.add_generated_serial_version_id=false
34
cleanup.add_missing_annotations=true
@@ -11,26 +12,54 @@ cleanup.always_use_blocks=true
1112
cleanup.always_use_parentheses_in_expressions=true
1213
cleanup.always_use_this_for_non_static_field_access=false
1314
cleanup.always_use_this_for_non_static_method_access=false
15+
cleanup.arrays_fill=false
16+
cleanup.bitwise_conditional_expression=false
17+
cleanup.boolean_literal=false
18+
cleanup.break_loop=false
19+
cleanup.collection_cloning=false
20+
cleanup.comparison_statement=false
1421
cleanup.convert_functional_interfaces=true
1522
cleanup.convert_to_enhanced_for_loop=false
23+
cleanup.convert_to_enhanced_for_loop_if_loop_var_used=false
24+
cleanup.convert_to_switch_expressions=false
1625
cleanup.correct_indentation=true
26+
cleanup.double_negation=false
27+
cleanup.else_if=false
28+
cleanup.embedded_if=false
29+
cleanup.evaluate_nullable=false
1730
cleanup.format_source_code=true
1831
cleanup.format_source_code_changes_only=false
32+
cleanup.hash=false
33+
cleanup.if_condition=false
1934
cleanup.insert_inferred_type_arguments=false
20-
cleanup.make_local_variable_final=true
35+
cleanup.instanceof=false
36+
cleanup.join=false
37+
cleanup.lazy_logical_operator=false
38+
cleanup.make_local_variable_final=false
2139
cleanup.make_parameters_final=false
2240
cleanup.make_private_fields_final=true
2341
cleanup.make_type_abstract_if_missing_method=false
2442
cleanup.make_variable_declarations_final=true
43+
cleanup.map_cloning=false
44+
cleanup.merge_conditional_blocks=false
2545
cleanup.never_use_blocks=false
2646
cleanup.never_use_parentheses_in_expressions=false
47+
cleanup.no_string_creation=false
48+
cleanup.no_super=true
49+
cleanup.number_suffix=false
50+
cleanup.objects_equals=false
2751
cleanup.organize_imports=true
52+
cleanup.overridden_assignment=false
53+
cleanup.precompile_regex=false
54+
cleanup.primitive_serialization=false
55+
cleanup.pull_up_assignment=false
2856
cleanup.push_down_negation=false
2957
cleanup.qualify_static_field_accesses_with_declaring_class=false
3058
cleanup.qualify_static_member_accesses_through_instances_with_declaring_class=true
3159
cleanup.qualify_static_member_accesses_through_subtypes_with_declaring_class=true
3260
cleanup.qualify_static_member_accesses_with_declaring_class=true
3361
cleanup.qualify_static_method_accesses_with_declaring_class=false
62+
cleanup.redundant_falling_through_block_end=false
3463
cleanup.remove_private_constructors=true
3564
cleanup.remove_redundant_modifiers=true
3665
cleanup.remove_redundant_semicolons=true
@@ -47,19 +76,29 @@ cleanup.remove_unused_private_fields=true
4776
cleanup.remove_unused_private_members=false
4877
cleanup.remove_unused_private_methods=true
4978
cleanup.remove_unused_private_types=true
79+
cleanup.simplify_lambda_expression_and_method_ref=false
5080
cleanup.sort_members=false
5181
cleanup.sort_members_all=false
82+
cleanup.strictly_equal_or_different=false
83+
cleanup.stringbuilder=false
84+
cleanup.switch=false
85+
cleanup.ternary_operator=false
86+
cleanup.try_with_resource=false
5287
cleanup.use_anonymous_class_creation=false
5388
cleanup.use_autoboxing=true
5489
cleanup.use_blocks=false
5590
cleanup.use_blocks_only_for_return_and_throw=false
91+
cleanup.use_directly_map_method=false
5692
cleanup.use_lambda=true
5793
cleanup.use_parentheses_in_expressions=true
5894
cleanup.use_this_for_non_static_field_access=true
5995
cleanup.use_this_for_non_static_field_access_only_if_necessary=true
6096
cleanup.use_this_for_non_static_method_access=false
6197
cleanup.use_this_for_non_static_method_access_only_if_necessary=true
6298
cleanup.use_unboxing=true
99+
cleanup.use_var=false
100+
cleanup.useless_continue=false
101+
cleanup.useless_return=false
63102
cleanup_profile=_DEVS
64103
cleanup_settings_version=2
65104
eclipse.preferences.version=1

JSimpleSim/src/org/simplesim/examples/elevator/DynamicMain.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
public class DynamicMain {
4040

4141
/**
42-
* @param args
42+
* Example main method on how to set up a dynamic simulation model
4343
*/
4444
public static void main(String[] args) {
4545
final DynamicModel model=new DynamicModel();

JSimpleSim/src/org/simplesim/examples/elevator/StaticMain.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,11 @@
1616
import org.simplesim.simulator.SequentialDESimulator;
1717
import org.simplesim.simulator.Simulator;
1818

19-
/**
20-
*
21-
*
22-
*/
2319
public class StaticMain {
2420

21+
/**
22+
* Example main method on how to set up a static simulation model
23+
*/
2524
public static void main(String[] args) {
2625
final StaticModel model=new StaticModel();
2726

JSimpleSim/src/org/simplesim/examples/elevator/dyn/DynamicElevator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
/**
2222
* Part of the dynamic elevator example
2323
*
24-
* @see org.simplesim.elevator.DynamicMain DynamicMain
24+
* @see org.simplesim.examples.elevator.DynamicMain DynamicMain
2525
*
2626
*/
2727
public final class DynamicElevator extends RoutingAgent<ElevatorState, Elevator.Event> implements Elevator {

JSimpleSim/src/org/simplesim/examples/elevator/dyn/DynamicModel.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
/**
1111
* Part of the dynamic elevator example
1212
*
13-
* @see org.simplesim.elevator.DynamicMain DynamicMain
13+
* @see org.simplesim.examples.elevator.DynamicMain DynamicMain
1414
*
1515
*/
1616
public class DynamicModel extends RoutingDomain {

JSimpleSim/src/org/simplesim/examples/elevator/dyn/DynamicVisitor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
/**
2929
* Part of the dynamic elevator example
3030
*
31-
* @see org.simplesim.elevator.DynamicMain DynamicMain
31+
* @see org.simplesim.examples.elevator.DynamicMain DynamicMain
3232
*
3333
*/
3434
public final class DynamicVisitor extends RoutingAgent<VisitorState, Visitor.Event> implements Visitor {

JSimpleSim/src/org/simplesim/examples/elevator/dyn/Floor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
*
1818
* The Floor class models one story of the building and contains the level of the floor
1919
*
20-
* @see org.simplesim.elevator.DynamicMain DynamicMain
20+
* @see org.simplesim.examples.elevator.DynamicMain DynamicMain
2121
*
2222
*/
2323
public final class Floor extends RoutingDomain {
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
/*
2+
* JSimpleSim is a framework to build multi-agent systems in a quick and easy way. This software is published as open
3+
* source and licensed under the terms of GNU GPLv3.
4+
*
5+
* Contributors: - Rene Kuhlemann - development and initial implementation
6+
*/
7+
package org.simplesim.examples.elevator.shared;
8+
9+
/**
10+
*
11+
*
12+
*/
13+
public class ElevatorMessage {
14+
15+
}

JSimpleSim/src/org/simplesim/examples/elevator/stat/StaticElevator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
/**
2929
* Part of the static elevator example
3030
*
31-
* @see org.simplesim.elevator.StaticMain StaticMain
31+
* @see org.simplesim.examples.elevator.StaticMain StaticMain
3232
*
3333
*/
3434
public final class StaticElevator extends AbstractAgent<ElevatorState, Elevator.Event> implements Elevator {

0 commit comments

Comments
 (0)