This repository has been archived by the owner on Jan 13, 2025. It is now read-only.
-
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
8 changed files
with
464 additions
and
57 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
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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package com.team766.framework3; | ||
|
||
/** | ||
* Policies for how to handle a Rule's action when the action completes or the Rule stops triggering. | ||
*/ | ||
public enum RulePersistence { | ||
/** | ||
* When the action completes, don't do anything. Any Mechanism reservations that the action held | ||
* are released. Also, the action may continue running after the Rule stops triggering. | ||
*/ | ||
ONCE, | ||
/** | ||
* When the action completes, don't do anything but retain the Mechanism reservations that the | ||
* action held until the Rule stops triggering. If the Rule stops triggering before the action | ||
* has completed, then the action will be terminated. | ||
*/ | ||
ONCE_AND_HOLD, | ||
/** | ||
* When the action completes, start executing the action again, until the Rule stops triggering. | ||
* The action will be terminated when the Rule stops triggering. | ||
*/ | ||
REPEATEDLY, | ||
} |
Oops, something went wrong.