Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
vadere
vadere
Commits
2ff675e2
Commit
2ff675e2
authored
Nov 12, 2016
by
Jakob Schöttl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Extract constant for default ID value
parent
a765d581
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
3 deletions
+5
-3
VadereState/src/org/vadere/state/attributes/Attributes.java
VadereState/src/org/vadere/state/attributes/Attributes.java
+2
-0
VadereState/src/org/vadere/state/attributes/scenario/AttributesSource.java
...rg/vadere/state/attributes/scenario/AttributesSource.java
+1
-1
VadereState/src/org/vadere/state/attributes/scenario/AttributesStairs.java
...rg/vadere/state/attributes/scenario/AttributesStairs.java
+1
-1
VadereState/src/org/vadere/state/attributes/scenario/AttributesTarget.java
...rg/vadere/state/attributes/scenario/AttributesTarget.java
+1
-1
No files found.
VadereState/src/org/vadere/state/attributes/Attributes.java
View file @
2ff675e2
...
...
@@ -17,4 +17,6 @@ package org.vadere.state.attributes;
*
*/
public
abstract
class
Attributes
extends
DefaultSealable
{
/** Used for default ID values of some scenario elements. */
protected
static
final
int
ID_NOT_SET
=
-
1
;
}
VadereState/src/org/vadere/state/attributes/scenario/AttributesSource.java
View file @
2ff675e2
...
...
@@ -14,7 +14,7 @@ public class AttributesSource extends Attributes {
public
static
final
String
CONSTANT_DISTRIBUTION
=
ConstantDistribution
.
class
.
getName
();
public
static
final
int
NO_MAX_SPAWN_NUMBER_TOTAL
=
-
1
;
private
int
id
=
-
1
;
private
int
id
=
ID_NOT_SET
;
/** Shape and position. */
private
VShape
shape
=
null
;
...
...
VadereState/src/org/vadere/state/attributes/scenario/AttributesStairs.java
View file @
2ff675e2
...
...
@@ -19,7 +19,7 @@ import org.vadere.util.geometry.shapes.VShape;
public
class
AttributesStairs
extends
Attributes
{
private
VShape
shape
=
null
;
private
int
id
=
-
1
;
private
int
id
=
ID_NOT_SET
;
private
int
treadCount
=
1
;
private
Vector2D
upwardDirection
=
new
Vector2D
(
1.0
,
0.0
);
...
...
VadereState/src/org/vadere/state/attributes/scenario/AttributesTarget.java
View file @
2ff675e2
...
...
@@ -10,7 +10,7 @@ import org.vadere.util.geometry.shapes.VShape;
*/
public
class
AttributesTarget
extends
Attributes
{
private
int
id
=
-
1
;
private
int
id
=
ID_NOT_SET
;
/**
* True: elements are removed from the simulation after entering.
* False: the target id is removed from the target id list, but the element remains.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment