-
Notifications
You must be signed in to change notification settings - Fork 24
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
16 changed files
with
1,797 additions
and
11 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
9 changes: 9 additions & 0 deletions
9
...src/main/java/fr/insee/eno/core/exceptions/business/LunaticVariableConflictException.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 fr.insee.eno.core.exceptions.business; | ||
|
||
public class LunaticVariableConflictException extends RuntimeException { | ||
|
||
public LunaticVariableConflictException(String message) { | ||
super(message); | ||
} | ||
|
||
} |
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
eno-core/src/main/java/fr/insee/eno/core/model/sequence/RoundaboutSequence.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 fr.insee.eno.core.model.sequence; | ||
|
||
import datacollection33.SequenceType; | ||
import fr.insee.eno.core.annotations.Contexts.Context; | ||
import fr.insee.eno.core.annotations.DDI; | ||
import fr.insee.eno.core.parameter.Format; | ||
import lombok.Getter; | ||
import lombok.Setter; | ||
|
||
/** | ||
* Special kind of sequence that describes a "roundabout". | ||
* A roundabout is like a loop with refinements. | ||
* In DDI, the roundabout is described as a DDI loop, with a DDI sequence that encapsulates it. | ||
* In Lunatic, roundabout components are resolved in a dedicated processing. | ||
*/ | ||
@Getter | ||
@Setter | ||
@Context(format = Format.DDI, type = SequenceType.class) | ||
public class RoundaboutSequence extends AbstractSequence { | ||
|
||
/** DDI reference of the loop. | ||
* Note: mapped as the id of the first control construct reference. */ | ||
@DDI("getControlConstructReferenceArray(0).getIDArray(0).getStringValue()") | ||
private String loopReference; | ||
|
||
/** Boolean that describes if the completed occurrences should be locked or not. | ||
* In DDI, this is modeled by the presence or not of a ComputationItem among the control construct references. */ | ||
@DDI("!getControlConstructReferenceList().?[#this.getTypeOfObject().toString() == 'ComputationItem'].isEmpty()") | ||
private Boolean locked; | ||
|
||
} |
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.