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.
- Loading branch information
Showing
10 changed files
with
58 additions
and
10 deletions.
There are no files selected for viewing
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 { | ||
} |