Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
monticore
EmbeddedMontiArc
simulators
simulation
Commits
c8b1a982
Commit
c8b1a982
authored
Aug 23, 2019
by
Bernhard Rumpe
Browse files
BR-sy
parent
a0df41c4
Pipeline
#175557
failed with stage
in 18 seconds
Changes
218
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
c8b1a982
# (c) https://github.com/MontiCore/monticore
#
stages
:
...
...
.travis.yml
View file @
c8b1a982
# (c) https://github.com/MontiCore/monticore
script
:
-
git checkout ${TRAVIS_BRANCH}
-
mvn -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn -B clean install cobertura:cobertura org.eluder.coveralls:coveralls-maven-plugin:report --settings "settings.xml"
...
...
README.md
View file @
c8b1a982
<!-- (c) https://github.com/MontiCore/monticore -->
# Simulation


...
...
api/src/main/java/simulation/api/main.java
View file @
c8b1a982
/**
*
* ******************************************************************************
* MontiCAR Modeling Family, www.se-rwth.de
* Copyright (c) 2017, Software Engineering Group at RWTH Aachen,
* All rights reserved.
*
* This project is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3.0 of the License, or (at your option) any later version.
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this project. If not, see <http://www.gnu.org/licenses/>.
* *******************************************************************************
*/
/* (c) https://github.com/MontiCore/monticore */
package
simulation.api
;
import
simulation.simulator.*
;
...
...
compile.bat
View file @
c8b1a982
@rem (c) https://github.com/MontiCore/monticore
mvn
clean
install
-DskipTests -s
settings
.xml
environment/license/se/license.txt
View file @
c8b1a982
******************************************************************************
MontiCAR Modeling Family, www.se-rwth.de
Copyright (c) 2017, Software Engineering Group at RWTH Aachen,
All rights reserved.
/* (c) https://github.com/MontiCore/monticore */
This project is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 3.0 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
The license generally applicable for this project
can be found under https://github.com/MontiCore/monticore.
You should have received a copy of the GNU Lesser General Public
License along with this project. If not, see <http://www.gnu.org/licenses/>.
*******************************************************************************
environment/pom.xml
View file @
c8b1a982
<?xml version="1.0" encoding="UTF-8"?>
<!--
******************************************************************************
MontiCAR Modeling Family, www.se-rwth.de
Copyright (c) 2017, Software Engineering Group at RWTH Aachen,
All rights reserved.
This project is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 3.0 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this project. If not, see <http://www.gnu.org/licenses/>.
*******************************************************************************
-->
<!-- (c) https://github.com/MontiCore/monticore -->
<project
xmlns=
"http://maven.apache.org/POM/4.0.0"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation=
"http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
>
<modelVersion>
4.0.0
</modelVersion>
...
...
environment/src/main/java/simulation/environment/World.java
View file @
c8b1a982
/**
*
* ******************************************************************************
* MontiCAR Modeling Family, www.se-rwth.de
* Copyright (c) 2017, Software Engineering Group at RWTH Aachen,
* All rights reserved.
*
* This project is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3.0 of the License, or (at your option) any later version.
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this project. If not, see <http://www.gnu.org/licenses/>.
* *******************************************************************************
*/
/* (c) https://github.com/MontiCore/monticore */
package
simulation.environment
;
import
commons.map.ControllerContainer
;
...
...
@@ -178,4 +159,4 @@ public interface World {
public
abstract
List
<
Long
>
getChangedTrafficSignals
();
public
abstract
IControllerNode
getRandomNode
();
}
\ No newline at end of file
}
environment/src/main/java/simulation/environment/WorldModel.java
View file @
c8b1a982
/**
*
* ******************************************************************************
* MontiCAR Modeling Family, www.se-rwth.de
* Copyright (c) 2017, Software Engineering Group at RWTH Aachen,
* All rights reserved.
*
* This project is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3.0 of the License, or (at your option) any later version.
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this project. If not, see <http://www.gnu.org/licenses/>.
* *******************************************************************************
*/
/* (c) https://github.com/MontiCore/monticore */
package
simulation.environment
;
...
...
@@ -507,4 +488,4 @@ public class WorldModel implements World{
return
streets
.
get
(
street
).
getNodes
().
get
(
r
.
nextInt
(
streets
.
get
(
street
).
getNodes
().
size
()));
}
}
}
\ No newline at end of file
}
environment/src/main/java/simulation/environment/geometry/DetailedMapConstructor.java
View file @
c8b1a982
/**
*
* ******************************************************************************
* MontiCAR Modeling Family, www.se-rwth.de
* Copyright (c) 2017, Software Engineering Group at RWTH Aachen,
* All rights reserved.
*
* This project is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3.0 of the License, or (at your option) any later version.
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this project. If not, see <http://www.gnu.org/licenses/>.
* *******************************************************************************
*/
/* (c) https://github.com/MontiCore/monticore */
package
simulation.environment.geometry
;
import
commons.map.IControllerNode
;
...
...
@@ -61,4 +42,4 @@ public class DetailedMapConstructor implements PathListener {
}
return
result
;
}
}
\ No newline at end of file
}
environment/src/main/java/simulation/environment/geometry/StreetSignPositioner.java
View file @
c8b1a982
/**
*
* ******************************************************************************
* MontiCAR Modeling Family, www.se-rwth.de
* Copyright (c) 2017, Software Engineering Group at RWTH Aachen,
* All rights reserved.
*
* This project is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3.0 of the License, or (at your option) any later version.
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this project. If not, see <http://www.gnu.org/licenses/>.
* *******************************************************************************
*/
/* (c) https://github.com/MontiCore/monticore */
package
simulation.environment.geometry
;
import
javafx.geometry.Point3D
;
...
...
@@ -74,4 +55,4 @@ public class StreetSignPositioner {
}
}
}
\ No newline at end of file
}
environment/src/main/java/simulation/environment/geometry/height/AllZeroGenerator.java
View file @
c8b1a982
/**
*
* ******************************************************************************
* MontiCAR Modeling Family, www.se-rwth.de
* Copyright (c) 2017, Software Engineering Group at RWTH Aachen,
* All rights reserved.
*
* This project is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3.0 of the License, or (at your option) any later version.
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this project. If not, see <http://www.gnu.org/licenses/>.
* *******************************************************************************
*/
/* (c) https://github.com/MontiCore/monticore */
package
simulation.environment.geometry.height
;
import
javafx.geometry.Point2D
;
...
...
@@ -70,4 +51,4 @@ public class AllZeroGenerator implements HeightGenerator{
public
void
setLongLatToMetersConverter
(
ApproximateConverter
longLatToMeterConverter
)
{
// Empty
}
}
\ No newline at end of file
}
environment/src/main/java/simulation/environment/geometry/height/ConcentricCircleGenerator.java
View file @
c8b1a982
/**
*
* ******************************************************************************
* MontiCAR Modeling Family, www.se-rwth.de
* Copyright (c) 2017, Software Engineering Group at RWTH Aachen,
* All rights reserved.
*
* This project is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3.0 of the License, or (at your option) any later version.
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this project. If not, see <http://www.gnu.org/licenses/>.
* *******************************************************************************
*/
/* (c) https://github.com/MontiCore/monticore */
package
simulation.environment.geometry.height
;
import
javafx.geometry.Point2D
;
...
...
@@ -241,4 +222,4 @@ public class ConcentricCircleGenerator implements HeightGenerator{
public
int
getNumberOfIntervals
()
{
return
this
.
numberOfIntervals
;
}
}
\ No newline at end of file
}
environment/src/main/java/simulation/environment/geometry/height/HeightGenerator.java
View file @
c8b1a982
/**
*
* ******************************************************************************
* MontiCAR Modeling Family, www.se-rwth.de
* Copyright (c) 2017, Software Engineering Group at RWTH Aachen,
* All rights reserved.
*
* This project is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3.0 of the License, or (at your option) any later version.
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this project. If not, see <http://www.gnu.org/licenses/>.
* *******************************************************************************
*/
/* (c) https://github.com/MontiCore/monticore */
package
simulation.environment.geometry.height
;
import
javafx.geometry.Point2D
;
...
...
@@ -47,4 +28,4 @@ public interface HeightGenerator {
public
abstract
double
getHeightMapDeltaY
();
public
abstract
void
setLongLatToMetersConverter
(
ApproximateConverter
longLatToMeterConverter
);
}
\ No newline at end of file
}
environment/src/main/java/simulation/environment/geometry/height/SRTMHeightGenerator.java
View file @
c8b1a982
/**
*
* ******************************************************************************
* MontiCAR Modeling Family, www.se-rwth.de
* Copyright (c) 2017, Software Engineering Group at RWTH Aachen,
* All rights reserved.
*
* This project is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3.0 of the License, or (at your option) any later version.
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this project. If not, see <http://www.gnu.org/licenses/>.
* *******************************************************************************
*/
/* (c) https://github.com/MontiCore/monticore */
package
simulation.environment.geometry.height
;
import
javafx.geometry.Point2D
;
...
...
environment/src/main/java/simulation/environment/geometry/height/StaticHeightGenerator.java
View file @
c8b1a982
/**
*
* ******************************************************************************
* MontiCAR Modeling Family, www.se-rwth.de
* Copyright (c) 2017, Software Engineering Group at RWTH Aachen,
* All rights reserved.
*
* This project is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3.0 of the License, or (at your option) any later version.
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this project. If not, see <http://www.gnu.org/licenses/>.
* *******************************************************************************
*/
/* (c) https://github.com/MontiCore/monticore */
package
simulation.environment.geometry.height
;
import
javafx.geometry.Point2D
;
...
...
@@ -72,4 +53,4 @@ public class StaticHeightGenerator implements HeightGenerator {
public
void
setLongLatToMetersConverter
(
ApproximateConverter
longLatToMeterConverter
)
{
// Empty
}
}
\ No newline at end of file
}
environment/src/main/java/simulation/environment/geometry/osmadapter/EnvObjectGeomContainer.java
View file @
c8b1a982
/**
*
* ******************************************************************************
* MontiCAR Modeling Family, www.se-rwth.de
* Copyright (c) 2017, Software Engineering Group at RWTH Aachen,
* All rights reserved.
*
* This project is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3.0 of the License, or (at your option) any later version.
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this project. If not, see <http://www.gnu.org/licenses/>.
* *******************************************************************************
*/
/* (c) https://github.com/MontiCore/monticore */
package
simulation.environment.geometry.osmadapter
;
import
commons.simulation.PhysicalObject
;
...
...
@@ -85,4 +66,4 @@ public interface EnvObjectGeomContainer {
* @return returns the corresponding EnvObject
*/
public
abstract
EnvObject
getObject
();
}
\ No newline at end of file
}
environment/src/main/java/simulation/environment/geometry/osmadapter/GeomStreet.java
View file @
c8b1a982
/**
*
* ******************************************************************************
* MontiCAR Modeling Family, www.se-rwth.de
* Copyright (c) 2017, Software Engineering Group at RWTH Aachen,
* All rights reserved.
*
* This project is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3.0 of the License, or (at your option) any later version.
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this project. If not, see <http://www.gnu.org/licenses/>.
* *******************************************************************************
*/
/* (c) https://github.com/MontiCore/monticore */
package
simulation.environment.geometry.osmadapter
;
import
commons.simulation.PhysicalObject
;
...
...
@@ -183,4 +164,4 @@ public class GeomStreet implements EnvObjectGeomContainer {
public
SplineDeterminator
getDeterminator
()
{
return
this
.
deter
;
}
}
\ No newline at end of file
}
environment/src/main/java/simulation/environment/geometry/osmadapter/LinearSplineDeterminator.java
View file @
c8b1a982
/**
*
* ******************************************************************************
* MontiCAR Modeling Family, www.se-rwth.de
* Copyright (c) 2017, Software Engineering Group at RWTH Aachen,
* All rights reserved.
*
* This project is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3.0 of the License, or (at your option) any later version.
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this project. If not, see <http://www.gnu.org/licenses/>.
* *******************************************************************************
*/
/* (c) https://github.com/MontiCore/monticore */
package
simulation.environment.geometry.osmadapter
;
import
javafx.geometry.Point3D
;
...
...
@@ -107,4 +88,4 @@ public class LinearSplineDeterminator extends SplineDeterminator{
splines
.
put
(
k
,
new
LinearInterpolator
(
p1
,
p2
,
EnvStreet
.
STREET_WIDTH
,
n1
.
getOsmId
(),
n2
.
getOsmId
(),
true
));
}
}
}
\ No newline at end of file
}
environment/src/main/java/simulation/environment/geometry/osmadapter/SplineDeterminator.java
View file @
c8b1a982
/**
*
* ******************************************************************************
* MontiCAR Modeling Family, www.se-rwth.de
* Copyright (c) 2017, Software Engineering Group at RWTH Aachen,
* All rights reserved.
*
* This project is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3.0 of the License, or (at your option) any later version.
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this project. If not, see <http://www.gnu.org/licenses/>.
* *******************************************************************************
*/
/* (c) https://github.com/MontiCore/monticore */
package
simulation.environment.geometry.osmadapter
;
import
commons.simulation.PhysicalObject
;
...
...
@@ -240,4 +221,4 @@ public abstract class SplineDeterminator {
public
Spline
getSplineForPoints
(
Point3D
p1
,
Point3D
p2
)
{
return
this
.
splines
.
get
(
new
Key
(
p1
,
p2
));
}
}
\ No newline at end of file
}
Prev
1
2
3
4
5
…
11
Next
Write
Preview
Supports
Markdown
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