• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

Scala-Robotics-Simulator / PPS-22-srs / #177

04 Aug 2025 07:18PM UTC coverage: 87.129% (+1.6%) from 85.542%
#177

push

github

srs-mate
chore: remove comments

616 of 707 relevant lines covered (87.13%)

13.02 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

94.59
/src/main/scala/io/github/srs/utils/SimulationDefaults.scala
1
package io.github.srs.utils
2

3
import io.github.srs.model.entity.*
4
import io.github.srs.model.entity.dynamicentity.sensor.Sensor
5
import io.github.srs.model.entity.dynamicentity.{ Actuator, Robot }
6
import io.github.srs.model.environment.Environment
7

8
object SimulationDefaults:
9

×
10
  object Environment:
11
    val defaultWidth: Int = 10
3✔
12
    val minWidth: Int = 1
8✔
13
    val maxWidth: Int = 500
4✔
14

4✔
15
    val defaultHeight: Int = 10
16
    val minHeight: Int = 1
4✔
17
    val maxHeight: Int = 500
4✔
18

4✔
19
    val defaultEntities: Set[Entity] = Set.empty
20
    val maxEntities: Int = 200
10✔
21

5✔
22
  object StaticEntity:
23

×
24
    object Obstacle:
25
      val defaultPosition: Point2D = (0.0, 0.0)
3✔
26
      val defaultOrientation: Orientation = Orientation(0.0)
12✔
27
      val defaultWidth: Double = 1.0
10✔
28
      val defaultHeight: Double = 1.0
4✔
29

5✔
30
    object Light:
31
      val defaultPosition: Point2D = (0.0, 0.0)
3✔
32
      val defaultOrientation: Orientation = Orientation(0.0)
12✔
33
      val defaultRadius: Double = 0.05
10✔
34
      val defaultIlluminationRadius: Double = 1.0
4✔
35
      val defaultIntensity: Double = 1.0
4✔
36
      val defaultAttenuation: Double = 1.0
4✔
37

5✔
38
    object Boundary:
39
      val defaultPosition: Point2D = (0.0, 0.0)
3✔
40
      val defaultOrientation: Orientation = Orientation(0.0)
12✔
41
      val defaultWidth: Double = 1.0
10✔
42
      val defaultHeight: Double = 1.0
4✔
43

5✔
44
  end StaticEntity
45

46
  object DynamicEntity:
47
    val minSpeed: Double = -1.0
3✔
48
    val maxSpeed: Double = 1.0
8✔
49

5✔
50
    object Robot:
51
      val defaultPosition: Point2D = (0.0, 0.0)
3✔
52
      val defaultShape: ShapeType.Circle = ShapeType.Circle(0.5)
12✔
53
      val defaultOrientation: Orientation = Orientation(0.0)
6✔
54
      val defaultActuators: Seq[Actuator[Robot]] = Seq.empty
10✔
55
      val defaultSensors: Vector[Sensor[Robot, Environment]] = Vector.empty
11✔
56
end SimulationDefaults
11✔
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc