-
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.
139 java client side needs demo projects (#151)
* [#139] Built basic first demo project - morse code transmitter * [#139] Cleaned up interface for demo * [#139] Fixed issue in notifications in model * [#139] Implemented API for notifications * [#139] Removed logicalSeperator field from notifications in model * [#139] Finished notification API for client side * [#139] Made Morse code translator demo work * [#139] Improved throughput speed with increased serial speed * [#139] Added nice cli to morse demo * [#139] Add rx/tx pin choosing, simple version of Morse main * [#139] Changed Morse CLI to use command line arguments * [#139] Built first attempt at timeouts * [#139] Added logging and trimmed generated Zscript * [#139] Further compacting Zscript produced by morse demo * [#139] Added first thread barriers around Nodes * [#139] Implemented bitset approach to command timeouts, completed implementation of timeouts * [#139] Added callback threadpool * [#139] Fixed Exception catching across callback threadpools * [#139] Implemented parse fail handling
- Loading branch information
1 parent
fb9dbf4
commit a65d2e1
Showing
56 changed files
with
2,226 additions
and
285 deletions.
There are no files selected for viewing
4 changes: 4 additions & 0 deletions
4
...b/client-command-api/src/main/java/net/zscript/javaclient/commandbuilder/Respondable.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 net.zscript.javaclient.commandbuilder; | ||
|
||
public interface Respondable<T extends ZscriptResponse> { | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,4 +21,5 @@ public boolean isValid() { | |
public OptionalInt getField(char key) { | ||
return expression.getField(key); | ||
} | ||
|
||
} |
11 changes: 11 additions & 0 deletions
11
...src/main/java/net/zscript/javaclient/commandbuilder/notifications/NotificationHandle.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,11 @@ | ||
package net.zscript.javaclient.commandbuilder.notifications; | ||
|
||
import java.util.List; | ||
|
||
import net.zscript.javaclient.commandbuilder.ZscriptResponse; | ||
|
||
public abstract class NotificationHandle { | ||
public abstract <T extends ZscriptResponse> NotificationSection<T> getSection(NotificationSectionId<T> response); | ||
|
||
public abstract List<NotificationSection<?>> getSections(); | ||
} |
9 changes: 9 additions & 0 deletions
9
...api/src/main/java/net/zscript/javaclient/commandbuilder/notifications/NotificationId.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,9 @@ | ||
package net.zscript.javaclient.commandbuilder.notifications; | ||
|
||
public abstract class NotificationId<T extends NotificationHandle> { | ||
public abstract int getId(); | ||
|
||
public abstract Class<T> getHandleType(); | ||
|
||
public abstract T newHandle(); | ||
} |
17 changes: 17 additions & 0 deletions
17
...rc/main/java/net/zscript/javaclient/commandbuilder/notifications/NotificationSection.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,17 @@ | ||
package net.zscript.javaclient.commandbuilder.notifications; | ||
|
||
import net.zscript.javaclient.commandPaths.ZscriptFieldSet; | ||
import net.zscript.javaclient.commandbuilder.Respondable; | ||
import net.zscript.javaclient.commandbuilder.ZscriptResponse; | ||
import net.zscript.javaclient.commandbuilder.commandnodes.ResponseCaptor; | ||
import net.zscript.javareceiver.tokenizer.ZscriptExpression; | ||
|
||
public abstract class NotificationSection<T extends ZscriptResponse> implements Respondable<T> { | ||
public abstract Class<T> getResponseType(); | ||
|
||
public void setCaptor(ResponseCaptor<T> captor) { | ||
captor.setSource(this); | ||
} | ||
|
||
public abstract T parseResponse(ZscriptExpression expression); | ||
} |
6 changes: 6 additions & 0 deletions
6
.../main/java/net/zscript/javaclient/commandbuilder/notifications/NotificationSectionId.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,6 @@ | ||
package net.zscript.javaclient.commandbuilder.notifications; | ||
|
||
import net.zscript.javaclient.commandbuilder.ZscriptResponse; | ||
|
||
public class NotificationSectionId<T extends ZscriptResponse> { | ||
} |
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
Oops, something went wrong.