forked from aligungr/UERANSIM
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request aligungr#139 from aligungr/dev
Dev
- Loading branch information
Showing
14 changed files
with
58 additions
and
24 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 31 additions & 0 deletions
31
ueransim/src/main/java/tr/havelsan/ueransim/app/api/gnb/app/GnbAppTask.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
package tr.havelsan.ueransim.app.api.gnb.app; | ||
|
||
import tr.havelsan.ueransim.app.itms.Itms; | ||
import tr.havelsan.ueransim.app.itms.ItmsTask; | ||
import tr.havelsan.ueransim.app.itms.wrappers.InitialSctpReadyWrapper; | ||
import tr.havelsan.ueransim.app.structs.simctx.GnbSimContext; | ||
|
||
public class GnbAppTask extends ItmsTask { | ||
|
||
private final GnbSimContext ctx; | ||
private boolean initialSctpReady; | ||
|
||
public GnbAppTask(Itms itms, int taskId, GnbSimContext ctx) { | ||
super(itms, taskId); | ||
this.ctx = ctx; | ||
} | ||
|
||
@Override | ||
public void main() { | ||
while (true) { | ||
var msg = ctx.itms.receiveMessage(this); | ||
if (msg instanceof InitialSctpReadyWrapper) { | ||
initialSctpReady = true; | ||
} | ||
} | ||
} | ||
|
||
public boolean isInitialSctpReady() { | ||
return initialSctpReady; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 4 additions & 0 deletions
4
ueransim/src/main/java/tr/havelsan/ueransim/app/itms/wrappers/InitialSctpReadyWrapper.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
package tr.havelsan.ueransim.app.itms.wrappers; | ||
|
||
public class InitialSctpReadyWrapper { | ||
} |