Skip to content
This repository has been archived by the owner on Sep 9, 2024. It is now read-only.

Commit

Permalink
Rename elevatorAlgorithm to elevatorControl
Browse files Browse the repository at this point in the history
  • Loading branch information
tordnat committed Mar 16, 2024
1 parent e5171de commit ce396ff
Show file tree
Hide file tree
Showing 17 changed files with 27 additions and 27 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build_go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,6 @@ jobs:

- name: Test
run: |
go test -v elevatorAlgorithm/hra
go test -v elevatorControl/hra
go test -v orderSync/orderSync_test.go
go test -v elevatorAlgorithm/orders/orders_test.go
go test -v elevatorControl/orders/orders_test.go
6 changes: 3 additions & 3 deletions elevatorAlgorithm/fsm/fsm.go → elevatorControl/fsm/fsm.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package fsm

import (
"elevatorAlgorithm/elevator"
"elevatorAlgorithm/orders"
"elevatorAlgorithm/timer"
"elevatorControl/elevator"
"elevatorControl/orders"
"elevatorControl/timer"
"elevatorDriver/elevio"
"log"
"networkDriver/peers"
Expand Down
2 changes: 1 addition & 1 deletion elevatorAlgorithm/go.mod → elevatorControl/go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module elevatorAlgorithm
module elevatorControl

require elevatorDriver v0.0.0

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package hra

import (
"elevatorAlgorithm/elevator"
"elevatorControl/elevator"
"encoding/json"
"fmt"
"os/exec"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package hra_test

import (
"elevatorAlgorithm/hra"
"elevatorControl/hra"
"fmt"
"testing"
)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package orders

import (
"elevatorAlgorithm/elevator"
"elevatorControl/elevator"
"elevatorDriver/elevio"
)

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package orders_test

import (
"elevatorAlgorithm/elevator"
"elevatorAlgorithm/orders"
"elevatorControl/elevator"
"elevatorControl/orders"
"elevatorDriver/elevio"
"testing"
)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package requests

import (
"elevatorAlgorithm/elevator"
"elevatorControl/elevator"
"elevatorDriver/elevio"
)

Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package requests_test

import (
"elevatorAlgorithm/elevator"
"elevatorAlgorithm/fsm"
"elevatorAlgorithm/requests"
"elevatorAlgorithm/timer"
"elevatorControl/elevator"
"elevatorControl/fsm"
"elevatorControl/requests"
"elevatorControl/timer"
"elevatorDriver/elevio"
"testing"
)
Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ require elevatorDriver v0.0.0

replace elevatorDriver => ./elevatorDriver

require elevatorAlgorithm v0.0.0
require elevatorControl v0.0.0

replace elevatorAlgorithm => ./elevatorAlgorithm
replace elevatorControl => ./elevatorControl

require elevatorMusic v0.0.0

Expand Down
6 changes: 3 additions & 3 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ package main
import (
"elevator-project/cmd"
"elevator-project/orderSync"
"elevatorAlgorithm/elevator"
"elevatorAlgorithm/fsm"
"elevatorAlgorithm/orders"
"elevatorControl/elevator"
"elevatorControl/fsm"
"elevatorControl/orders"
"elevatorDriver/elevio"
"fmt"
"log"
Expand Down
6 changes: 3 additions & 3 deletions orderSync/orderSync.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package orderSync

import (
"elevatorAlgorithm/elevator"
"elevatorAlgorithm/hra"
"elevatorAlgorithm/orders"
"elevatorControl/elevator"
"elevatorControl/hra"
"elevatorControl/orders"
"elevatorDriver/elevio"
"elevatorDriver/lights"
"log"
Expand Down
2 changes: 1 addition & 1 deletion orderSync/orderSync_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package orderSync_test

import (
"elevator-project/orderSync"
"elevatorAlgorithm/elevator"
"elevatorControl/elevator"
"elevatorDriver/elevio"
"testing"
)
Expand Down
2 changes: 1 addition & 1 deletion scripts/create_and_start_elevatorservice.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ mkdir -p $CONFIG_FILE_PATH/
echo "Building project and moving resources to $CONFIG_FILE_PATH"
go build -o $CONFIG_FILE_PATH/distributedElevator main.go
cp scripts/launch_elevator.sh $CONFIG_FILE_PATH
cp elevatorAlgorithm/hra/hall_request_assigner $CONFIG_FILE_PATH
cp elevatorControl/hra/hall_request_assigner $CONFIG_FILE_PATH
echo "Installing systemd service $SERVICE_NAME"
cp scripts/$SERVICE_FILE_NAME $SERVICE_FILE_PATH

Expand Down
2 changes: 1 addition & 1 deletion scripts/install_deps.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

HRA_INSTALL_PATH="elevatorAlgorithm/hra"
HRA_INSTALL_PATH="elevatorControl/hra"
echo "Building project and moving hall_request_assigner to $HRA_INSTALL_PATH"

WORKING_DIR=$(pwd)
Expand Down

0 comments on commit ce396ff

Please sign in to comment.