Skip to content

Commit 809441a

Browse files
Merge branch 'code-differently:main' into feature/myless07
2 parents f270478 + a1029f6 commit 809441a

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+7977
-1
lines changed
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# The Astral Compass
2+
This is a fictional system for a fantasy nation that my friends and I created a while back, called the Mayou Kuni.
3+
4+
## User Story 1
5+
6+
***As a*** space pilot, ***I want*** the system to calculate the fastest and safest route ***so that*** I avoid hazards like asteroid fields or black holes.
7+
### Acceptance Criteria
8+
- If a hazard is detected, the system issues an audible and visual alert ASAP.
9+
- The alert identifies the hazard type, like an Asteroid Belt, Enemy Territory, etc.
10+
- The system highlights the hazard location on the compass map.
11+
- If no safe alternative exists, the system displays a warning that the risk is unavoidable.
12+
13+
## User Story 2 (with a fantasy twist)
14+
15+
***As a*** navigator, ***I want*** to align my course with favorable star constellations ***so that*** my journey is blessed and protected.
16+
### Acceptance Criteria
17+
- Navigation map shows constellation alignments for the chosen route.
18+
- Navigator can toggle "favorable path” view.
19+
- If alignment is poor, system recommends an alternate departure time/route.
20+
- Alignments are based on dynamic celestial cycles and updated daily.
21+
22+
## User Story 3
23+
24+
***As a*** ship engineer, ***I want*** the system to calculate fuel and supply requirements for a plotted route ***so that*** I can prepare the ship properly.
25+
### Acceptance Criteria
26+
- When a course is plotted, the system displays estimated fuel and supply needs.
27+
- System shows real-time impact of changes.
28+
- If the power setup could damage the system, the system gives a warning.
29+
- Engineer can increase or decrease power to engines, shields, or weapons individually.
30+
31+
## Definition of “done”
32+
- Test coverage meets the team’s agreed threshold.
33+
- All Acceptance Criteria are met.
34+
- Feature integrates with existing ship systems (navigation map, engineering console, pilot display).
35+
- Alerts, warnings, and logs appear in the correct locations.
36+
- Feature has been tested in simulation (normal conditions, hazardous conditions, emergencies).
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
package com.codedifferently.lesson9.dataprovider;
2+
3+
import java.util.Map;
4+
import org.springframework.stereotype.Service;
5+
6+
@Service
7+
public class JoyBrownProvider extends DataProvider {
8+
public String getProviderName() {
9+
return "joybrown";
10+
}
11+
12+
public Map<String, Class> getColumnTypeByName() {
13+
return Map.of(
14+
"column1", Integer.class,
15+
"column2", Double.class,
16+
"column3", Long.class,
17+
"column4", Boolean.class,
18+
"column5", Short.class,
19+
"column6", String.class,
20+
"column7", Float.class);
21+
}
22+
}
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
package com.codedifferently.lesson9.dataprovider;
2+
3+
import java.util.Map;
4+
import org.springframework.stereotype.Service;
5+
6+
@Service
7+
public class LindaQuinoaProvider extends DataProvider {
8+
public String getProviderName() {
9+
return "lindaquinoa";
10+
}
11+
12+
public Map<String, Class> getColumnTypeByName() {
13+
return Map.of(
14+
"column1", String.class,
15+
"column2", Short.class,
16+
"column3", Double.class,
17+
"column4", Boolean.class,
18+
"column5", Long.class,
19+
"column6", Integer.class,
20+
"column7", Float.class);
21+
}
22+
}
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
package com.codedifferently.lesson9.dataprovider;
2+
3+
import java.util.Map;
4+
import org.springframework.stereotype.Service;
5+
6+
@Service
7+
public class MarthaOfuaniProvider extends DataProvider {
8+
public String getProviderName() {
9+
return "marthaofuani";
10+
}
11+
12+
public Map<String, Class> getColumnTypeByName() {
13+
return Map.of(
14+
"column1", String.class,
15+
"column2", Long.class,
16+
"column3", Short.class,
17+
"column4", Boolean.class,
18+
"column5", Double.class,
19+
"column6", Float.class,
20+
"column7", Integer.class);
21+
}
22+
}
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
package com.codedifferently.lesson9.dataprovider;
2+
3+
import java.util.Map;
4+
import org.springframework.stereotype.Service;
5+
6+
@Service
7+
public class NicoleJacksonProvider extends DataProvider {
8+
public String getProviderName() {
9+
return "nicolejackson";
10+
}
11+
12+
public Map<String, Class> getColumnTypeByName() {
13+
return Map.of(
14+
"column1", Short.class,
15+
"column2", Float.class,
16+
"column3", Double.class,
17+
"column4", Boolean.class,
18+
"column5", String.class,
19+
"column6", Long.class,
20+
"column7", Integer.class);
21+
}
22+
}
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
package com.codedifferently.lesson9.dataprovider;
2+
3+
import java.util.Map;
4+
import org.springframework.stereotype.Service;
5+
6+
@Service
7+
public class TaliaCrockettProvider extends DataProvider {
8+
public String getProviderName() {
9+
return "taliacrockett";
10+
}
11+
12+
public Map<String, Class> getColumnTypeByName() {
13+
return Map.of(
14+
"column1", Double.class,
15+
"column2", Short.class,
16+
"column3", Boolean.class,
17+
"column4", String.class,
18+
"column5", Float.class,
19+
"column6", Integer.class,
20+
"column7", Long.class);
21+
}
22+
}
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
package com.codedifferently.lesson9.dataprovider;
2+
3+
import java.util.Map;
4+
import org.springframework.stereotype.Service;
5+
6+
@Service
7+
public class TrinitieJacksonProvider extends DataProvider {
8+
public String getProviderName() {
9+
return "trinitiejackson";
10+
}
11+
12+
public Map<String, Class> getColumnTypeByName() {
13+
return Map.of(
14+
"column1", String.class,
15+
"column2", Double.class,
16+
"column3", Float.class,
17+
"column4", Integer.class,
18+
"column5", Long.class,
19+
"column6", Short.class,
20+
"column7", Boolean.class);
21+
}
22+
}
Lines changed: 92 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,92 @@
1+
[
2+
{
3+
"column1": "1613313243",
4+
"column2": "2.5606743987173506E307",
5+
"column3": "7302492895904108544",
6+
"column4": "false",
7+
"column5": "10566",
8+
"column6": "4e53wf07",
9+
"column7": "1.439348E38"
10+
},
11+
{
12+
"column1": "1652656553",
13+
"column2": "8.66551792634509E307",
14+
"column3": "3880162544588408832",
15+
"column4": "true",
16+
"column5": "21245",
17+
"column6": "sdc79zoj5eb",
18+
"column7": "2.1569136E38"
19+
},
20+
{
21+
"column1": "529015899",
22+
"column2": "1.6810800936773526E308",
23+
"column3": "4424752615189679616",
24+
"column4": "false",
25+
"column5": "1567",
26+
"column6": "36mfevuqa9",
27+
"column7": "2.6671113E38"
28+
},
29+
{
30+
"column1": "1061837687",
31+
"column2": "7.315716538396507E307",
32+
"column3": "4247251165728849920",
33+
"column4": "true",
34+
"column5": "2226",
35+
"column6": "ms16d8oik",
36+
"column7": "3.2288556E38"
37+
},
38+
{
39+
"column1": "1835842034",
40+
"column2": "1.3567868514255486E308",
41+
"column3": "6428337532100037632",
42+
"column4": "true",
43+
"column5": "20215",
44+
"column6": "f3vth6bqcsz",
45+
"column7": "2.111126E38"
46+
},
47+
{
48+
"column1": "1838750780",
49+
"column2": "1.286567821033584E308",
50+
"column3": "4452066420814761472",
51+
"column4": "false",
52+
"column5": "30261",
53+
"column6": "xsvpgdho",
54+
"column7": "2.7230056E38"
55+
},
56+
{
57+
"column1": "117624674",
58+
"column2": "8.837731792097747E307",
59+
"column3": "8854458493267490816",
60+
"column4": "false",
61+
"column5": "21339",
62+
"column6": "7tcrhku19pm6",
63+
"column7": "2.5390835E38"
64+
},
65+
{
66+
"column1": "252811968",
67+
"column2": "2.0311044967242048E307",
68+
"column3": "3700496879054423552",
69+
"column4": "false",
70+
"column5": "28521",
71+
"column6": "aexdg0nm8",
72+
"column7": "8.537431E37"
73+
},
74+
{
75+
"column1": "919820969",
76+
"column2": "7.616472952339029E307",
77+
"column3": "6350783557768525824",
78+
"column4": "false",
79+
"column5": "17467",
80+
"column6": "ch1l6nt0v",
81+
"column7": "1.9726118E38"
82+
},
83+
{
84+
"column1": "1033829449",
85+
"column2": "5.441472807888749E307",
86+
"column3": "5219181125566679040",
87+
"column4": "true",
88+
"column5": "889",
89+
"column6": "ne6b7q",
90+
"column7": "2.385522E38"
91+
}
92+
]
Lines changed: 92 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,92 @@
1+
[
2+
{
3+
"column1": "n0tb49",
4+
"column2": "20298",
5+
"column3": "1.329057876206183E308",
6+
"column4": "true",
7+
"column5": "974404167178527872",
8+
"column6": "1516819386",
9+
"column7": "2.1796733E38"
10+
},
11+
{
12+
"column1": "yg9ej8w4d",
13+
"column2": "17836",
14+
"column3": "1.2358749522580945E308",
15+
"column4": "true",
16+
"column5": "1648404604083823872",
17+
"column6": "453737249",
18+
"column7": "1.5042721E38"
19+
},
20+
{
21+
"column1": "doyxsw9lki",
22+
"column2": "22451",
23+
"column3": "7.205200740810172E306",
24+
"column4": "true",
25+
"column5": "622535578036738816",
26+
"column6": "46362806",
27+
"column7": "1.2559121E38"
28+
},
29+
{
30+
"column1": "m4b706p",
31+
"column2": "18710",
32+
"column3": "1.2140637147104933E308",
33+
"column4": "true",
34+
"column5": "8273954902468373504",
35+
"column6": "1915757220",
36+
"column7": "4.9683496E37"
37+
},
38+
{
39+
"column1": "broqp9ls3w",
40+
"column2": "15244",
41+
"column3": "9.644939653382145E307",
42+
"column4": "false",
43+
"column5": "2804392054586315776",
44+
"column6": "1925347041",
45+
"column7": "1.4578594E38"
46+
},
47+
{
48+
"column1": "5r9uk",
49+
"column2": "4722",
50+
"column3": "1.7042629189725907E308",
51+
"column4": "false",
52+
"column5": "8093988572794799104",
53+
"column6": "338395907",
54+
"column7": "1.9735768E38"
55+
},
56+
{
57+
"column1": "f2gkd8hj",
58+
"column2": "3222",
59+
"column3": "1.2404362361130724E308",
60+
"column4": "false",
61+
"column5": "3130095644912364032",
62+
"column6": "1520349255",
63+
"column7": "5.6239603E37"
64+
},
65+
{
66+
"column1": "nyu1dz",
67+
"column2": "28536",
68+
"column3": "1.5114710420645798E308",
69+
"column4": "true",
70+
"column5": "8183151353097919488",
71+
"column6": "2097314960",
72+
"column7": "1.7987185E38"
73+
},
74+
{
75+
"column1": "npbegvcihzx3",
76+
"column2": "12684",
77+
"column3": "4.194802096876055E307",
78+
"column4": "true",
79+
"column5": "232139064889784000",
80+
"column6": "1099896683",
81+
"column7": "3.1537893E38"
82+
},
83+
{
84+
"column1": "3wqlx",
85+
"column2": "22260",
86+
"column3": "6.982660232645491E307",
87+
"column4": "false",
88+
"column5": "6228929030743519232",
89+
"column6": "1709382302",
90+
"column7": "7.703307E37"
91+
}
92+
]

0 commit comments

Comments
 (0)