Skip to content

Commit

Permalink
modes: Changes target property value of clock-sync
Browse files Browse the repository at this point in the history
from initial to init to prevent clash with new keyword for modes.
  • Loading branch information
a-sr committed Dec 16, 2021
1 parent 30825eb commit dfc0547
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion org.lflang/src/org/lflang/TargetConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public class TargetConfig {
* The mode of clock synchronization to be used in federated programs.
* The default is 'initial'.
*/
public ClockSyncMode clockSync = ClockSyncMode.INITIAL;
public ClockSyncMode clockSync = ClockSyncMode.INIT;

/**
* Clock sync options.
Expand Down
6 changes: 3 additions & 3 deletions org.lflang/src/org/lflang/TargetProperty.java
Original file line number Diff line number Diff line change
Expand Up @@ -752,7 +752,7 @@ public enum UnionType implements TargetPropertyType {
CoordinationType.CENTRALIZED),
LOGGING_UNION(Arrays.asList(LogLevel.values()), LogLevel.INFO),
CLOCK_SYNC_UNION(Arrays.asList(ClockSyncMode.values()),
ClockSyncMode.INITIAL),
ClockSyncMode.INIT),
DOCKER_UNION(Arrays.asList(PrimitiveType.BOOLEAN, DictionaryType.DOCKER_DICT),
null),
TRACING_UNION(Arrays.asList(PrimitiveType.BOOLEAN, DictionaryType.TRACING_DICT),
Expand Down Expand Up @@ -985,8 +985,8 @@ public String toString() {
* @author{Edward A. Lee <eal@berkeley.edu>}
*/
public enum ClockSyncMode {
OFF, INITIAL, ON;

OFF, INIT, ON; // TODO Discuss initial in now a mode keyword (same as startup) and cannot be used as target property value, thus changed it to init
// FIXME I could not test if this change breaks anything

/**
* Return the name in lower case.
Expand Down

0 comments on commit dfc0547

Please sign in to comment.