feat: début ocl
This commit is contained in:
parent
5aac55353c
commit
7f2bcd1c79
|
@ -196,6 +196,7 @@ public class GAMEParser extends AbstractContentAssistParser {
|
|||
builder.put(grammarAccess.getConditionObjetAccess().getObjetAssignment_0(), "rule__ConditionObjet__ObjetAssignment_0");
|
||||
builder.put(grammarAccess.getConditionObjetAccess().getComparateurAssignment_1(), "rule__ConditionObjet__ComparateurAssignment_1");
|
||||
builder.put(grammarAccess.getConditionObjetAccess().getNombreAssignment_2(), "rule__ConditionObjet__NombreAssignment_2");
|
||||
builder.put(grammarAccess.getNomAccess().getNomAssignment(), "rule__Nom__NomAssignment");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -524,6 +524,31 @@ finally {
|
|||
restoreStackSize(stackSize);
|
||||
}
|
||||
|
||||
// Entry rule entryRuleNom
|
||||
entryRuleNom
|
||||
:
|
||||
{ before(grammarAccess.getNomRule()); }
|
||||
ruleNom
|
||||
{ after(grammarAccess.getNomRule()); }
|
||||
EOF
|
||||
;
|
||||
|
||||
// Rule Nom
|
||||
ruleNom
|
||||
@init {
|
||||
int stackSize = keepStackSize();
|
||||
}
|
||||
:
|
||||
(
|
||||
{ before(grammarAccess.getNomAccess().getNomAssignment()); }
|
||||
(rule__Nom__NomAssignment)
|
||||
{ after(grammarAccess.getNomAccess().getNomAssignment()); }
|
||||
)
|
||||
;
|
||||
finally {
|
||||
restoreStackSize(stackSize);
|
||||
}
|
||||
|
||||
rule__ConditionTest__Alternatives
|
||||
@init {
|
||||
int stackSize = keepStackSize();
|
||||
|
@ -11957,9 +11982,9 @@ rule__Explorateur__ConnaissancesAssignment_8_0
|
|||
}
|
||||
:
|
||||
(
|
||||
{ before(grammarAccess.getExplorateurAccess().getConnaissancesSTRINGTerminalRuleCall_8_0_0()); }
|
||||
RULE_STRING
|
||||
{ after(grammarAccess.getExplorateurAccess().getConnaissancesSTRINGTerminalRuleCall_8_0_0()); }
|
||||
{ before(grammarAccess.getExplorateurAccess().getConnaissancesNomParserRuleCall_8_0_0()); }
|
||||
ruleNom
|
||||
{ after(grammarAccess.getExplorateurAccess().getConnaissancesNomParserRuleCall_8_0_0()); }
|
||||
)
|
||||
;
|
||||
finally {
|
||||
|
@ -11972,9 +11997,9 @@ rule__Explorateur__ConnaissancesAssignment_8_1_1
|
|||
}
|
||||
:
|
||||
(
|
||||
{ before(grammarAccess.getExplorateurAccess().getConnaissancesSTRINGTerminalRuleCall_8_1_1_0()); }
|
||||
RULE_STRING
|
||||
{ after(grammarAccess.getExplorateurAccess().getConnaissancesSTRINGTerminalRuleCall_8_1_1_0()); }
|
||||
{ before(grammarAccess.getExplorateurAccess().getConnaissancesNomParserRuleCall_8_1_1_0()); }
|
||||
ruleNom
|
||||
{ after(grammarAccess.getExplorateurAccess().getConnaissancesNomParserRuleCall_8_1_1_0()); }
|
||||
)
|
||||
;
|
||||
finally {
|
||||
|
@ -11987,9 +12012,9 @@ rule__Explorateur__ObjetsAssignment_14_0
|
|||
}
|
||||
:
|
||||
(
|
||||
{ before(grammarAccess.getExplorateurAccess().getObjetsSTRINGTerminalRuleCall_14_0_0()); }
|
||||
RULE_STRING
|
||||
{ after(grammarAccess.getExplorateurAccess().getObjetsSTRINGTerminalRuleCall_14_0_0()); }
|
||||
{ before(grammarAccess.getExplorateurAccess().getObjetsNomParserRuleCall_14_0_0()); }
|
||||
ruleNom
|
||||
{ after(grammarAccess.getExplorateurAccess().getObjetsNomParserRuleCall_14_0_0()); }
|
||||
)
|
||||
;
|
||||
finally {
|
||||
|
@ -12002,9 +12027,9 @@ rule__Explorateur__ObjetsAssignment_14_1_1
|
|||
}
|
||||
:
|
||||
(
|
||||
{ before(grammarAccess.getExplorateurAccess().getObjetsSTRINGTerminalRuleCall_14_1_1_0()); }
|
||||
RULE_STRING
|
||||
{ after(grammarAccess.getExplorateurAccess().getObjetsSTRINGTerminalRuleCall_14_1_1_0()); }
|
||||
{ before(grammarAccess.getExplorateurAccess().getObjetsNomParserRuleCall_14_1_1_0()); }
|
||||
ruleNom
|
||||
{ after(grammarAccess.getExplorateurAccess().getObjetsNomParserRuleCall_14_1_1_0()); }
|
||||
)
|
||||
;
|
||||
finally {
|
||||
|
@ -12077,9 +12102,9 @@ rule__Lieu__NomAssignment_3
|
|||
}
|
||||
:
|
||||
(
|
||||
{ before(grammarAccess.getLieuAccess().getNomSTRINGTerminalRuleCall_3_0()); }
|
||||
RULE_STRING
|
||||
{ after(grammarAccess.getLieuAccess().getNomSTRINGTerminalRuleCall_3_0()); }
|
||||
{ before(grammarAccess.getLieuAccess().getNomNomParserRuleCall_3_0()); }
|
||||
ruleNom
|
||||
{ after(grammarAccess.getLieuAccess().getNomNomParserRuleCall_3_0()); }
|
||||
)
|
||||
;
|
||||
finally {
|
||||
|
@ -12137,9 +12162,9 @@ rule__Lieu__PersonnesAssignment_20_0
|
|||
}
|
||||
:
|
||||
(
|
||||
{ before(grammarAccess.getLieuAccess().getPersonnesSTRINGTerminalRuleCall_20_0_0()); }
|
||||
RULE_STRING
|
||||
{ after(grammarAccess.getLieuAccess().getPersonnesSTRINGTerminalRuleCall_20_0_0()); }
|
||||
{ before(grammarAccess.getLieuAccess().getPersonnesNomParserRuleCall_20_0_0()); }
|
||||
ruleNom
|
||||
{ after(grammarAccess.getLieuAccess().getPersonnesNomParserRuleCall_20_0_0()); }
|
||||
)
|
||||
;
|
||||
finally {
|
||||
|
@ -12152,9 +12177,9 @@ rule__Lieu__PersonnesAssignment_20_1_1
|
|||
}
|
||||
:
|
||||
(
|
||||
{ before(grammarAccess.getLieuAccess().getPersonnesSTRINGTerminalRuleCall_20_1_1_0()); }
|
||||
RULE_STRING
|
||||
{ after(grammarAccess.getLieuAccess().getPersonnesSTRINGTerminalRuleCall_20_1_1_0()); }
|
||||
{ before(grammarAccess.getLieuAccess().getPersonnesNomParserRuleCall_20_1_1_0()); }
|
||||
ruleNom
|
||||
{ after(grammarAccess.getLieuAccess().getPersonnesNomParserRuleCall_20_1_1_0()); }
|
||||
)
|
||||
;
|
||||
finally {
|
||||
|
@ -12197,9 +12222,9 @@ rule__Lieu__ObjetsAssignment_33_0
|
|||
}
|
||||
:
|
||||
(
|
||||
{ before(grammarAccess.getLieuAccess().getObjetsSTRINGTerminalRuleCall_33_0_0()); }
|
||||
RULE_STRING
|
||||
{ after(grammarAccess.getLieuAccess().getObjetsSTRINGTerminalRuleCall_33_0_0()); }
|
||||
{ before(grammarAccess.getLieuAccess().getObjetsNomParserRuleCall_33_0_0()); }
|
||||
ruleNom
|
||||
{ after(grammarAccess.getLieuAccess().getObjetsNomParserRuleCall_33_0_0()); }
|
||||
)
|
||||
;
|
||||
finally {
|
||||
|
@ -12212,9 +12237,9 @@ rule__Lieu__ObjetsAssignment_33_1_1
|
|||
}
|
||||
:
|
||||
(
|
||||
{ before(grammarAccess.getLieuAccess().getObjetsSTRINGTerminalRuleCall_33_1_1_0()); }
|
||||
RULE_STRING
|
||||
{ after(grammarAccess.getLieuAccess().getObjetsSTRINGTerminalRuleCall_33_1_1_0()); }
|
||||
{ before(grammarAccess.getLieuAccess().getObjetsNomParserRuleCall_33_1_1_0()); }
|
||||
ruleNom
|
||||
{ after(grammarAccess.getLieuAccess().getObjetsNomParserRuleCall_33_1_1_0()); }
|
||||
)
|
||||
;
|
||||
finally {
|
||||
|
@ -12227,9 +12252,9 @@ rule__Lieu__ConnaissancesAssignment_39_0
|
|||
}
|
||||
:
|
||||
(
|
||||
{ before(grammarAccess.getLieuAccess().getConnaissancesSTRINGTerminalRuleCall_39_0_0()); }
|
||||
RULE_STRING
|
||||
{ after(grammarAccess.getLieuAccess().getConnaissancesSTRINGTerminalRuleCall_39_0_0()); }
|
||||
{ before(grammarAccess.getLieuAccess().getConnaissancesNomParserRuleCall_39_0_0()); }
|
||||
ruleNom
|
||||
{ after(grammarAccess.getLieuAccess().getConnaissancesNomParserRuleCall_39_0_0()); }
|
||||
)
|
||||
;
|
||||
finally {
|
||||
|
@ -12242,9 +12267,9 @@ rule__Lieu__ConnaissancesAssignment_39_1_1
|
|||
}
|
||||
:
|
||||
(
|
||||
{ before(grammarAccess.getLieuAccess().getConnaissancesSTRINGTerminalRuleCall_39_1_1_0()); }
|
||||
RULE_STRING
|
||||
{ after(grammarAccess.getLieuAccess().getConnaissancesSTRINGTerminalRuleCall_39_1_1_0()); }
|
||||
{ before(grammarAccess.getLieuAccess().getConnaissancesNomParserRuleCall_39_1_1_0()); }
|
||||
ruleNom
|
||||
{ after(grammarAccess.getLieuAccess().getConnaissancesNomParserRuleCall_39_1_1_0()); }
|
||||
)
|
||||
;
|
||||
finally {
|
||||
|
@ -12257,9 +12282,9 @@ rule__Chemin__LieuInAssignment_3
|
|||
}
|
||||
:
|
||||
(
|
||||
{ before(grammarAccess.getCheminAccess().getLieuInSTRINGTerminalRuleCall_3_0()); }
|
||||
RULE_STRING
|
||||
{ after(grammarAccess.getCheminAccess().getLieuInSTRINGTerminalRuleCall_3_0()); }
|
||||
{ before(grammarAccess.getCheminAccess().getLieuInNomParserRuleCall_3_0()); }
|
||||
ruleNom
|
||||
{ after(grammarAccess.getCheminAccess().getLieuInNomParserRuleCall_3_0()); }
|
||||
)
|
||||
;
|
||||
finally {
|
||||
|
@ -12272,9 +12297,9 @@ rule__Chemin__LieuOutAssignment_7
|
|||
}
|
||||
:
|
||||
(
|
||||
{ before(grammarAccess.getCheminAccess().getLieuOutSTRINGTerminalRuleCall_7_0()); }
|
||||
RULE_STRING
|
||||
{ after(grammarAccess.getCheminAccess().getLieuOutSTRINGTerminalRuleCall_7_0()); }
|
||||
{ before(grammarAccess.getCheminAccess().getLieuOutNomParserRuleCall_7_0()); }
|
||||
ruleNom
|
||||
{ after(grammarAccess.getCheminAccess().getLieuOutNomParserRuleCall_7_0()); }
|
||||
)
|
||||
;
|
||||
finally {
|
||||
|
@ -12332,9 +12357,9 @@ rule__Chemin__ConnaissancesAssignment_24_0
|
|||
}
|
||||
:
|
||||
(
|
||||
{ before(grammarAccess.getCheminAccess().getConnaissancesSTRINGTerminalRuleCall_24_0_0()); }
|
||||
RULE_STRING
|
||||
{ after(grammarAccess.getCheminAccess().getConnaissancesSTRINGTerminalRuleCall_24_0_0()); }
|
||||
{ before(grammarAccess.getCheminAccess().getConnaissancesNomParserRuleCall_24_0_0()); }
|
||||
ruleNom
|
||||
{ after(grammarAccess.getCheminAccess().getConnaissancesNomParserRuleCall_24_0_0()); }
|
||||
)
|
||||
;
|
||||
finally {
|
||||
|
@ -12347,9 +12372,9 @@ rule__Chemin__ConnaissancesAssignment_24_1_1
|
|||
}
|
||||
:
|
||||
(
|
||||
{ before(grammarAccess.getCheminAccess().getConnaissancesSTRINGTerminalRuleCall_24_1_1_0()); }
|
||||
RULE_STRING
|
||||
{ after(grammarAccess.getCheminAccess().getConnaissancesSTRINGTerminalRuleCall_24_1_1_0()); }
|
||||
{ before(grammarAccess.getCheminAccess().getConnaissancesNomParserRuleCall_24_1_1_0()); }
|
||||
ruleNom
|
||||
{ after(grammarAccess.getCheminAccess().getConnaissancesNomParserRuleCall_24_1_1_0()); }
|
||||
)
|
||||
;
|
||||
finally {
|
||||
|
@ -12362,9 +12387,9 @@ rule__Chemin__ObjetsRecusAssignment_30_0
|
|||
}
|
||||
:
|
||||
(
|
||||
{ before(grammarAccess.getCheminAccess().getObjetsRecusSTRINGTerminalRuleCall_30_0_0()); }
|
||||
RULE_STRING
|
||||
{ after(grammarAccess.getCheminAccess().getObjetsRecusSTRINGTerminalRuleCall_30_0_0()); }
|
||||
{ before(grammarAccess.getCheminAccess().getObjetsRecusNomParserRuleCall_30_0_0()); }
|
||||
ruleNom
|
||||
{ after(grammarAccess.getCheminAccess().getObjetsRecusNomParserRuleCall_30_0_0()); }
|
||||
)
|
||||
;
|
||||
finally {
|
||||
|
@ -12377,9 +12402,9 @@ rule__Chemin__ObjetsRecusAssignment_30_1_1
|
|||
}
|
||||
:
|
||||
(
|
||||
{ before(grammarAccess.getCheminAccess().getObjetsRecusSTRINGTerminalRuleCall_30_1_1_0()); }
|
||||
RULE_STRING
|
||||
{ after(grammarAccess.getCheminAccess().getObjetsRecusSTRINGTerminalRuleCall_30_1_1_0()); }
|
||||
{ before(grammarAccess.getCheminAccess().getObjetsRecusNomParserRuleCall_30_1_1_0()); }
|
||||
ruleNom
|
||||
{ after(grammarAccess.getCheminAccess().getObjetsRecusNomParserRuleCall_30_1_1_0()); }
|
||||
)
|
||||
;
|
||||
finally {
|
||||
|
@ -12392,9 +12417,9 @@ rule__Chemin__ObjetsConsoAssignment_36_0
|
|||
}
|
||||
:
|
||||
(
|
||||
{ before(grammarAccess.getCheminAccess().getObjetsConsoSTRINGTerminalRuleCall_36_0_0()); }
|
||||
RULE_STRING
|
||||
{ after(grammarAccess.getCheminAccess().getObjetsConsoSTRINGTerminalRuleCall_36_0_0()); }
|
||||
{ before(grammarAccess.getCheminAccess().getObjetsConsoNomParserRuleCall_36_0_0()); }
|
||||
ruleNom
|
||||
{ after(grammarAccess.getCheminAccess().getObjetsConsoNomParserRuleCall_36_0_0()); }
|
||||
)
|
||||
;
|
||||
finally {
|
||||
|
@ -12407,9 +12432,9 @@ rule__Chemin__ObjetsConsoAssignment_36_1_1
|
|||
}
|
||||
:
|
||||
(
|
||||
{ before(grammarAccess.getCheminAccess().getObjetsConsoSTRINGTerminalRuleCall_36_1_1_0()); }
|
||||
RULE_STRING
|
||||
{ after(grammarAccess.getCheminAccess().getObjetsConsoSTRINGTerminalRuleCall_36_1_1_0()); }
|
||||
{ before(grammarAccess.getCheminAccess().getObjetsConsoNomParserRuleCall_36_1_1_0()); }
|
||||
ruleNom
|
||||
{ after(grammarAccess.getCheminAccess().getObjetsConsoNomParserRuleCall_36_1_1_0()); }
|
||||
)
|
||||
;
|
||||
finally {
|
||||
|
@ -12452,9 +12477,9 @@ rule__Objet__NomAssignment_3
|
|||
}
|
||||
:
|
||||
(
|
||||
{ before(grammarAccess.getObjetAccess().getNomSTRINGTerminalRuleCall_3_0()); }
|
||||
RULE_STRING
|
||||
{ after(grammarAccess.getObjetAccess().getNomSTRINGTerminalRuleCall_3_0()); }
|
||||
{ before(grammarAccess.getObjetAccess().getNomNomParserRuleCall_3_0()); }
|
||||
ruleNom
|
||||
{ after(grammarAccess.getObjetAccess().getNomNomParserRuleCall_3_0()); }
|
||||
)
|
||||
;
|
||||
finally {
|
||||
|
@ -12542,9 +12567,9 @@ rule__Transformation__ObjetsInAssignment_8_0
|
|||
}
|
||||
:
|
||||
(
|
||||
{ before(grammarAccess.getTransformationAccess().getObjetsInSTRINGTerminalRuleCall_8_0_0()); }
|
||||
RULE_STRING
|
||||
{ after(grammarAccess.getTransformationAccess().getObjetsInSTRINGTerminalRuleCall_8_0_0()); }
|
||||
{ before(grammarAccess.getTransformationAccess().getObjetsInNomParserRuleCall_8_0_0()); }
|
||||
ruleNom
|
||||
{ after(grammarAccess.getTransformationAccess().getObjetsInNomParserRuleCall_8_0_0()); }
|
||||
)
|
||||
;
|
||||
finally {
|
||||
|
@ -12557,9 +12582,9 @@ rule__Transformation__ObjetsInAssignment_8_1_1
|
|||
}
|
||||
:
|
||||
(
|
||||
{ before(grammarAccess.getTransformationAccess().getObjetsInSTRINGTerminalRuleCall_8_1_1_0()); }
|
||||
RULE_STRING
|
||||
{ after(grammarAccess.getTransformationAccess().getObjetsInSTRINGTerminalRuleCall_8_1_1_0()); }
|
||||
{ before(grammarAccess.getTransformationAccess().getObjetsInNomParserRuleCall_8_1_1_0()); }
|
||||
ruleNom
|
||||
{ after(grammarAccess.getTransformationAccess().getObjetsInNomParserRuleCall_8_1_1_0()); }
|
||||
)
|
||||
;
|
||||
finally {
|
||||
|
@ -12572,9 +12597,9 @@ rule__Transformation__ObjetsOutAssignment_14_0
|
|||
}
|
||||
:
|
||||
(
|
||||
{ before(grammarAccess.getTransformationAccess().getObjetsOutSTRINGTerminalRuleCall_14_0_0()); }
|
||||
RULE_STRING
|
||||
{ after(grammarAccess.getTransformationAccess().getObjetsOutSTRINGTerminalRuleCall_14_0_0()); }
|
||||
{ before(grammarAccess.getTransformationAccess().getObjetsOutNomParserRuleCall_14_0_0()); }
|
||||
ruleNom
|
||||
{ after(grammarAccess.getTransformationAccess().getObjetsOutNomParserRuleCall_14_0_0()); }
|
||||
)
|
||||
;
|
||||
finally {
|
||||
|
@ -12587,9 +12612,9 @@ rule__Transformation__ObjetsOutAssignment_14_1_1
|
|||
}
|
||||
:
|
||||
(
|
||||
{ before(grammarAccess.getTransformationAccess().getObjetsOutSTRINGTerminalRuleCall_14_1_1_0()); }
|
||||
RULE_STRING
|
||||
{ after(grammarAccess.getTransformationAccess().getObjetsOutSTRINGTerminalRuleCall_14_1_1_0()); }
|
||||
{ before(grammarAccess.getTransformationAccess().getObjetsOutNomParserRuleCall_14_1_1_0()); }
|
||||
ruleNom
|
||||
{ after(grammarAccess.getTransformationAccess().getObjetsOutNomParserRuleCall_14_1_1_0()); }
|
||||
)
|
||||
;
|
||||
finally {
|
||||
|
@ -12602,9 +12627,9 @@ rule__Connaissance__NomAssignment_3
|
|||
}
|
||||
:
|
||||
(
|
||||
{ before(grammarAccess.getConnaissanceAccess().getNomSTRINGTerminalRuleCall_3_0()); }
|
||||
RULE_STRING
|
||||
{ after(grammarAccess.getConnaissanceAccess().getNomSTRINGTerminalRuleCall_3_0()); }
|
||||
{ before(grammarAccess.getConnaissanceAccess().getNomNomParserRuleCall_3_0()); }
|
||||
ruleNom
|
||||
{ after(grammarAccess.getConnaissanceAccess().getNomNomParserRuleCall_3_0()); }
|
||||
)
|
||||
;
|
||||
finally {
|
||||
|
@ -12662,9 +12687,9 @@ rule__Personne__NomAssignment_3
|
|||
}
|
||||
:
|
||||
(
|
||||
{ before(grammarAccess.getPersonneAccess().getNomSTRINGTerminalRuleCall_3_0()); }
|
||||
RULE_STRING
|
||||
{ after(grammarAccess.getPersonneAccess().getNomSTRINGTerminalRuleCall_3_0()); }
|
||||
{ before(grammarAccess.getPersonneAccess().getNomNomParserRuleCall_3_0()); }
|
||||
ruleNom
|
||||
{ after(grammarAccess.getPersonneAccess().getNomNomParserRuleCall_3_0()); }
|
||||
)
|
||||
;
|
||||
finally {
|
||||
|
@ -12752,9 +12777,9 @@ rule__Interaction__ConnaissancesAssignment_8_0
|
|||
}
|
||||
:
|
||||
(
|
||||
{ before(grammarAccess.getInteractionAccess().getConnaissancesSTRINGTerminalRuleCall_8_0_0()); }
|
||||
RULE_STRING
|
||||
{ after(grammarAccess.getInteractionAccess().getConnaissancesSTRINGTerminalRuleCall_8_0_0()); }
|
||||
{ before(grammarAccess.getInteractionAccess().getConnaissancesNomParserRuleCall_8_0_0()); }
|
||||
ruleNom
|
||||
{ after(grammarAccess.getInteractionAccess().getConnaissancesNomParserRuleCall_8_0_0()); }
|
||||
)
|
||||
;
|
||||
finally {
|
||||
|
@ -12767,9 +12792,9 @@ rule__Interaction__ConnaissancesAssignment_8_1_1
|
|||
}
|
||||
:
|
||||
(
|
||||
{ before(grammarAccess.getInteractionAccess().getConnaissancesSTRINGTerminalRuleCall_8_1_1_0()); }
|
||||
RULE_STRING
|
||||
{ after(grammarAccess.getInteractionAccess().getConnaissancesSTRINGTerminalRuleCall_8_1_1_0()); }
|
||||
{ before(grammarAccess.getInteractionAccess().getConnaissancesNomParserRuleCall_8_1_1_0()); }
|
||||
ruleNom
|
||||
{ after(grammarAccess.getInteractionAccess().getConnaissancesNomParserRuleCall_8_1_1_0()); }
|
||||
)
|
||||
;
|
||||
finally {
|
||||
|
@ -12782,9 +12807,9 @@ rule__Interaction__ObjetsRecusAssignment_14_0
|
|||
}
|
||||
:
|
||||
(
|
||||
{ before(grammarAccess.getInteractionAccess().getObjetsRecusSTRINGTerminalRuleCall_14_0_0()); }
|
||||
RULE_STRING
|
||||
{ after(grammarAccess.getInteractionAccess().getObjetsRecusSTRINGTerminalRuleCall_14_0_0()); }
|
||||
{ before(grammarAccess.getInteractionAccess().getObjetsRecusNomParserRuleCall_14_0_0()); }
|
||||
ruleNom
|
||||
{ after(grammarAccess.getInteractionAccess().getObjetsRecusNomParserRuleCall_14_0_0()); }
|
||||
)
|
||||
;
|
||||
finally {
|
||||
|
@ -12797,9 +12822,9 @@ rule__Interaction__ObjetsRecusAssignment_14_1_1
|
|||
}
|
||||
:
|
||||
(
|
||||
{ before(grammarAccess.getInteractionAccess().getObjetsRecusSTRINGTerminalRuleCall_14_1_1_0()); }
|
||||
RULE_STRING
|
||||
{ after(grammarAccess.getInteractionAccess().getObjetsRecusSTRINGTerminalRuleCall_14_1_1_0()); }
|
||||
{ before(grammarAccess.getInteractionAccess().getObjetsRecusNomParserRuleCall_14_1_1_0()); }
|
||||
ruleNom
|
||||
{ after(grammarAccess.getInteractionAccess().getObjetsRecusNomParserRuleCall_14_1_1_0()); }
|
||||
)
|
||||
;
|
||||
finally {
|
||||
|
@ -12812,9 +12837,9 @@ rule__Interaction__ObjetsConsoAssignment_20_0
|
|||
}
|
||||
:
|
||||
(
|
||||
{ before(grammarAccess.getInteractionAccess().getObjetsConsoSTRINGTerminalRuleCall_20_0_0()); }
|
||||
RULE_STRING
|
||||
{ after(grammarAccess.getInteractionAccess().getObjetsConsoSTRINGTerminalRuleCall_20_0_0()); }
|
||||
{ before(grammarAccess.getInteractionAccess().getObjetsConsoNomParserRuleCall_20_0_0()); }
|
||||
ruleNom
|
||||
{ after(grammarAccess.getInteractionAccess().getObjetsConsoNomParserRuleCall_20_0_0()); }
|
||||
)
|
||||
;
|
||||
finally {
|
||||
|
@ -12827,9 +12852,9 @@ rule__Interaction__ObjetsRecusAssignment_20_1_1
|
|||
}
|
||||
:
|
||||
(
|
||||
{ before(grammarAccess.getInteractionAccess().getObjetsRecusSTRINGTerminalRuleCall_20_1_1_0()); }
|
||||
RULE_STRING
|
||||
{ after(grammarAccess.getInteractionAccess().getObjetsRecusSTRINGTerminalRuleCall_20_1_1_0()); }
|
||||
{ before(grammarAccess.getInteractionAccess().getObjetsRecusNomParserRuleCall_20_1_1_0()); }
|
||||
ruleNom
|
||||
{ after(grammarAccess.getInteractionAccess().getObjetsRecusNomParserRuleCall_20_1_1_0()); }
|
||||
)
|
||||
;
|
||||
finally {
|
||||
|
@ -12902,9 +12927,9 @@ rule__Action__ConnaissancesAssignment_12_0
|
|||
}
|
||||
:
|
||||
(
|
||||
{ before(grammarAccess.getActionAccess().getConnaissancesSTRINGTerminalRuleCall_12_0_0()); }
|
||||
RULE_STRING
|
||||
{ after(grammarAccess.getActionAccess().getConnaissancesSTRINGTerminalRuleCall_12_0_0()); }
|
||||
{ before(grammarAccess.getActionAccess().getConnaissancesNomParserRuleCall_12_0_0()); }
|
||||
ruleNom
|
||||
{ after(grammarAccess.getActionAccess().getConnaissancesNomParserRuleCall_12_0_0()); }
|
||||
)
|
||||
;
|
||||
finally {
|
||||
|
@ -12917,9 +12942,9 @@ rule__Action__ConnaissancesAssignment_12_1_1
|
|||
}
|
||||
:
|
||||
(
|
||||
{ before(grammarAccess.getActionAccess().getConnaissancesSTRINGTerminalRuleCall_12_1_1_0()); }
|
||||
RULE_STRING
|
||||
{ after(grammarAccess.getActionAccess().getConnaissancesSTRINGTerminalRuleCall_12_1_1_0()); }
|
||||
{ before(grammarAccess.getActionAccess().getConnaissancesNomParserRuleCall_12_1_1_0()); }
|
||||
ruleNom
|
||||
{ after(grammarAccess.getActionAccess().getConnaissancesNomParserRuleCall_12_1_1_0()); }
|
||||
)
|
||||
;
|
||||
finally {
|
||||
|
@ -12932,9 +12957,9 @@ rule__Action__ObjetsRecusAssignment_18_0
|
|||
}
|
||||
:
|
||||
(
|
||||
{ before(grammarAccess.getActionAccess().getObjetsRecusSTRINGTerminalRuleCall_18_0_0()); }
|
||||
RULE_STRING
|
||||
{ after(grammarAccess.getActionAccess().getObjetsRecusSTRINGTerminalRuleCall_18_0_0()); }
|
||||
{ before(grammarAccess.getActionAccess().getObjetsRecusNomParserRuleCall_18_0_0()); }
|
||||
ruleNom
|
||||
{ after(grammarAccess.getActionAccess().getObjetsRecusNomParserRuleCall_18_0_0()); }
|
||||
)
|
||||
;
|
||||
finally {
|
||||
|
@ -12947,9 +12972,9 @@ rule__Action__ObjetsRecusAssignment_18_1_1
|
|||
}
|
||||
:
|
||||
(
|
||||
{ before(grammarAccess.getActionAccess().getObjetsRecusSTRINGTerminalRuleCall_18_1_1_0()); }
|
||||
RULE_STRING
|
||||
{ after(grammarAccess.getActionAccess().getObjetsRecusSTRINGTerminalRuleCall_18_1_1_0()); }
|
||||
{ before(grammarAccess.getActionAccess().getObjetsRecusNomParserRuleCall_18_1_1_0()); }
|
||||
ruleNom
|
||||
{ after(grammarAccess.getActionAccess().getObjetsRecusNomParserRuleCall_18_1_1_0()); }
|
||||
)
|
||||
;
|
||||
finally {
|
||||
|
@ -12962,9 +12987,9 @@ rule__Action__ObjetsConsoAssignment_24_0
|
|||
}
|
||||
:
|
||||
(
|
||||
{ before(grammarAccess.getActionAccess().getObjetsConsoSTRINGTerminalRuleCall_24_0_0()); }
|
||||
RULE_STRING
|
||||
{ after(grammarAccess.getActionAccess().getObjetsConsoSTRINGTerminalRuleCall_24_0_0()); }
|
||||
{ before(grammarAccess.getActionAccess().getObjetsConsoNomParserRuleCall_24_0_0()); }
|
||||
ruleNom
|
||||
{ after(grammarAccess.getActionAccess().getObjetsConsoNomParserRuleCall_24_0_0()); }
|
||||
)
|
||||
;
|
||||
finally {
|
||||
|
@ -12977,9 +13002,9 @@ rule__Action__ObjetsConsoAssignment_24_1_1
|
|||
}
|
||||
:
|
||||
(
|
||||
{ before(grammarAccess.getActionAccess().getObjetsConsoSTRINGTerminalRuleCall_24_1_1_0()); }
|
||||
RULE_STRING
|
||||
{ after(grammarAccess.getActionAccess().getObjetsConsoSTRINGTerminalRuleCall_24_1_1_0()); }
|
||||
{ before(grammarAccess.getActionAccess().getObjetsConsoNomParserRuleCall_24_1_1_0()); }
|
||||
ruleNom
|
||||
{ after(grammarAccess.getActionAccess().getObjetsConsoNomParserRuleCall_24_1_1_0()); }
|
||||
)
|
||||
;
|
||||
finally {
|
||||
|
@ -13112,9 +13137,9 @@ rule__ConditionConnaissance__ConnaissanceAssignment
|
|||
}
|
||||
:
|
||||
(
|
||||
{ before(grammarAccess.getConditionConnaissanceAccess().getConnaissanceSTRINGTerminalRuleCall_0()); }
|
||||
RULE_STRING
|
||||
{ after(grammarAccess.getConditionConnaissanceAccess().getConnaissanceSTRINGTerminalRuleCall_0()); }
|
||||
{ before(grammarAccess.getConditionConnaissanceAccess().getConnaissanceNomParserRuleCall_0()); }
|
||||
ruleNom
|
||||
{ after(grammarAccess.getConditionConnaissanceAccess().getConnaissanceNomParserRuleCall_0()); }
|
||||
)
|
||||
;
|
||||
finally {
|
||||
|
@ -13127,9 +13152,9 @@ rule__NOTConditionConnaissance__ConnaissanceAssignment_1
|
|||
}
|
||||
:
|
||||
(
|
||||
{ before(grammarAccess.getNOTConditionConnaissanceAccess().getConnaissanceSTRINGTerminalRuleCall_1_0()); }
|
||||
RULE_STRING
|
||||
{ after(grammarAccess.getNOTConditionConnaissanceAccess().getConnaissanceSTRINGTerminalRuleCall_1_0()); }
|
||||
{ before(grammarAccess.getNOTConditionConnaissanceAccess().getConnaissanceNomParserRuleCall_1_0()); }
|
||||
ruleNom
|
||||
{ after(grammarAccess.getNOTConditionConnaissanceAccess().getConnaissanceNomParserRuleCall_1_0()); }
|
||||
)
|
||||
;
|
||||
finally {
|
||||
|
@ -13142,9 +13167,9 @@ rule__ConditionObjet__ObjetAssignment_0
|
|||
}
|
||||
:
|
||||
(
|
||||
{ before(grammarAccess.getConditionObjetAccess().getObjetSTRINGTerminalRuleCall_0_0()); }
|
||||
RULE_STRING
|
||||
{ after(grammarAccess.getConditionObjetAccess().getObjetSTRINGTerminalRuleCall_0_0()); }
|
||||
{ before(grammarAccess.getConditionObjetAccess().getObjetNomParserRuleCall_0_0()); }
|
||||
ruleNom
|
||||
{ after(grammarAccess.getConditionObjetAccess().getObjetNomParserRuleCall_0_0()); }
|
||||
)
|
||||
;
|
||||
finally {
|
||||
|
@ -13181,6 +13206,21 @@ finally {
|
|||
restoreStackSize(stackSize);
|
||||
}
|
||||
|
||||
rule__Nom__NomAssignment
|
||||
@init {
|
||||
int stackSize = keepStackSize();
|
||||
}
|
||||
:
|
||||
(
|
||||
{ before(grammarAccess.getNomAccess().getNomSTRINGTerminalRuleCall_0()); }
|
||||
RULE_STRING
|
||||
{ after(grammarAccess.getNomAccess().getNomSTRINGTerminalRuleCall_0()); }
|
||||
)
|
||||
;
|
||||
finally {
|
||||
restoreStackSize(stackSize);
|
||||
}
|
||||
|
||||
RULE_ID : '^'? ('a'..'z'|'A'..'Z'|'_') ('a'..'z'|'A'..'Z'|'_'|'0'..'9')*;
|
||||
|
||||
RULE_INT : ('0'..'9')+;
|
||||
|
|
|
@ -1086,10 +1086,10 @@ public class InternalGAMELexer extends Lexer {
|
|||
try {
|
||||
int _type = RULE_ID;
|
||||
int _channel = DEFAULT_TOKEN_CHANNEL;
|
||||
// InternalGAME.g:13184:9: ( ( '^' )? ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )* )
|
||||
// InternalGAME.g:13184:11: ( '^' )? ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )*
|
||||
// InternalGAME.g:13224:9: ( ( '^' )? ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )* )
|
||||
// InternalGAME.g:13224:11: ( '^' )? ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )*
|
||||
{
|
||||
// InternalGAME.g:13184:11: ( '^' )?
|
||||
// InternalGAME.g:13224:11: ( '^' )?
|
||||
int alt1=2;
|
||||
int LA1_0 = input.LA(1);
|
||||
|
||||
|
@ -1098,7 +1098,7 @@ public class InternalGAMELexer extends Lexer {
|
|||
}
|
||||
switch (alt1) {
|
||||
case 1 :
|
||||
// InternalGAME.g:13184:11: '^'
|
||||
// InternalGAME.g:13224:11: '^'
|
||||
{
|
||||
match('^');
|
||||
|
||||
|
@ -1116,7 +1116,7 @@ public class InternalGAMELexer extends Lexer {
|
|||
recover(mse);
|
||||
throw mse;}
|
||||
|
||||
// InternalGAME.g:13184:40: ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )*
|
||||
// InternalGAME.g:13224:40: ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )*
|
||||
loop2:
|
||||
do {
|
||||
int alt2=2;
|
||||
|
@ -1165,10 +1165,10 @@ public class InternalGAMELexer extends Lexer {
|
|||
try {
|
||||
int _type = RULE_INT;
|
||||
int _channel = DEFAULT_TOKEN_CHANNEL;
|
||||
// InternalGAME.g:13186:10: ( ( '0' .. '9' )+ )
|
||||
// InternalGAME.g:13186:12: ( '0' .. '9' )+
|
||||
// InternalGAME.g:13226:10: ( ( '0' .. '9' )+ )
|
||||
// InternalGAME.g:13226:12: ( '0' .. '9' )+
|
||||
{
|
||||
// InternalGAME.g:13186:12: ( '0' .. '9' )+
|
||||
// InternalGAME.g:13226:12: ( '0' .. '9' )+
|
||||
int cnt3=0;
|
||||
loop3:
|
||||
do {
|
||||
|
@ -1182,7 +1182,7 @@ public class InternalGAMELexer extends Lexer {
|
|||
|
||||
switch (alt3) {
|
||||
case 1 :
|
||||
// InternalGAME.g:13186:13: '0' .. '9'
|
||||
// InternalGAME.g:13226:13: '0' .. '9'
|
||||
{
|
||||
matchRange('0','9');
|
||||
|
||||
|
@ -1214,10 +1214,10 @@ public class InternalGAMELexer extends Lexer {
|
|||
try {
|
||||
int _type = RULE_STRING;
|
||||
int _channel = DEFAULT_TOKEN_CHANNEL;
|
||||
// InternalGAME.g:13188:13: ( ( '\"' ( '\\\\' . | ~ ( ( '\\\\' | '\"' ) ) )* '\"' | '\\'' ( '\\\\' . | ~ ( ( '\\\\' | '\\'' ) ) )* '\\'' ) )
|
||||
// InternalGAME.g:13188:15: ( '\"' ( '\\\\' . | ~ ( ( '\\\\' | '\"' ) ) )* '\"' | '\\'' ( '\\\\' . | ~ ( ( '\\\\' | '\\'' ) ) )* '\\'' )
|
||||
// InternalGAME.g:13228:13: ( ( '\"' ( '\\\\' . | ~ ( ( '\\\\' | '\"' ) ) )* '\"' | '\\'' ( '\\\\' . | ~ ( ( '\\\\' | '\\'' ) ) )* '\\'' ) )
|
||||
// InternalGAME.g:13228:15: ( '\"' ( '\\\\' . | ~ ( ( '\\\\' | '\"' ) ) )* '\"' | '\\'' ( '\\\\' . | ~ ( ( '\\\\' | '\\'' ) ) )* '\\'' )
|
||||
{
|
||||
// InternalGAME.g:13188:15: ( '\"' ( '\\\\' . | ~ ( ( '\\\\' | '\"' ) ) )* '\"' | '\\'' ( '\\\\' . | ~ ( ( '\\\\' | '\\'' ) ) )* '\\'' )
|
||||
// InternalGAME.g:13228:15: ( '\"' ( '\\\\' . | ~ ( ( '\\\\' | '\"' ) ) )* '\"' | '\\'' ( '\\\\' . | ~ ( ( '\\\\' | '\\'' ) ) )* '\\'' )
|
||||
int alt6=2;
|
||||
int LA6_0 = input.LA(1);
|
||||
|
||||
|
@ -1235,10 +1235,10 @@ public class InternalGAMELexer extends Lexer {
|
|||
}
|
||||
switch (alt6) {
|
||||
case 1 :
|
||||
// InternalGAME.g:13188:16: '\"' ( '\\\\' . | ~ ( ( '\\\\' | '\"' ) ) )* '\"'
|
||||
// InternalGAME.g:13228:16: '\"' ( '\\\\' . | ~ ( ( '\\\\' | '\"' ) ) )* '\"'
|
||||
{
|
||||
match('\"');
|
||||
// InternalGAME.g:13188:20: ( '\\\\' . | ~ ( ( '\\\\' | '\"' ) ) )*
|
||||
// InternalGAME.g:13228:20: ( '\\\\' . | ~ ( ( '\\\\' | '\"' ) ) )*
|
||||
loop4:
|
||||
do {
|
||||
int alt4=3;
|
||||
|
@ -1254,7 +1254,7 @@ public class InternalGAMELexer extends Lexer {
|
|||
|
||||
switch (alt4) {
|
||||
case 1 :
|
||||
// InternalGAME.g:13188:21: '\\\\' .
|
||||
// InternalGAME.g:13228:21: '\\\\' .
|
||||
{
|
||||
match('\\');
|
||||
matchAny();
|
||||
|
@ -1262,7 +1262,7 @@ public class InternalGAMELexer extends Lexer {
|
|||
}
|
||||
break;
|
||||
case 2 :
|
||||
// InternalGAME.g:13188:28: ~ ( ( '\\\\' | '\"' ) )
|
||||
// InternalGAME.g:13228:28: ~ ( ( '\\\\' | '\"' ) )
|
||||
{
|
||||
if ( (input.LA(1)>='\u0000' && input.LA(1)<='!')||(input.LA(1)>='#' && input.LA(1)<='[')||(input.LA(1)>=']' && input.LA(1)<='\uFFFF') ) {
|
||||
input.consume();
|
||||
|
@ -1287,10 +1287,10 @@ public class InternalGAMELexer extends Lexer {
|
|||
}
|
||||
break;
|
||||
case 2 :
|
||||
// InternalGAME.g:13188:48: '\\'' ( '\\\\' . | ~ ( ( '\\\\' | '\\'' ) ) )* '\\''
|
||||
// InternalGAME.g:13228:48: '\\'' ( '\\\\' . | ~ ( ( '\\\\' | '\\'' ) ) )* '\\''
|
||||
{
|
||||
match('\'');
|
||||
// InternalGAME.g:13188:53: ( '\\\\' . | ~ ( ( '\\\\' | '\\'' ) ) )*
|
||||
// InternalGAME.g:13228:53: ( '\\\\' . | ~ ( ( '\\\\' | '\\'' ) ) )*
|
||||
loop5:
|
||||
do {
|
||||
int alt5=3;
|
||||
|
@ -1306,7 +1306,7 @@ public class InternalGAMELexer extends Lexer {
|
|||
|
||||
switch (alt5) {
|
||||
case 1 :
|
||||
// InternalGAME.g:13188:54: '\\\\' .
|
||||
// InternalGAME.g:13228:54: '\\\\' .
|
||||
{
|
||||
match('\\');
|
||||
matchAny();
|
||||
|
@ -1314,7 +1314,7 @@ public class InternalGAMELexer extends Lexer {
|
|||
}
|
||||
break;
|
||||
case 2 :
|
||||
// InternalGAME.g:13188:61: ~ ( ( '\\\\' | '\\'' ) )
|
||||
// InternalGAME.g:13228:61: ~ ( ( '\\\\' | '\\'' ) )
|
||||
{
|
||||
if ( (input.LA(1)>='\u0000' && input.LA(1)<='&')||(input.LA(1)>='(' && input.LA(1)<='[')||(input.LA(1)>=']' && input.LA(1)<='\uFFFF') ) {
|
||||
input.consume();
|
||||
|
@ -1357,12 +1357,12 @@ public class InternalGAMELexer extends Lexer {
|
|||
try {
|
||||
int _type = RULE_ML_COMMENT;
|
||||
int _channel = DEFAULT_TOKEN_CHANNEL;
|
||||
// InternalGAME.g:13190:17: ( '/*' ( options {greedy=false; } : . )* '*/' )
|
||||
// InternalGAME.g:13190:19: '/*' ( options {greedy=false; } : . )* '*/'
|
||||
// InternalGAME.g:13230:17: ( '/*' ( options {greedy=false; } : . )* '*/' )
|
||||
// InternalGAME.g:13230:19: '/*' ( options {greedy=false; } : . )* '*/'
|
||||
{
|
||||
match("/*");
|
||||
|
||||
// InternalGAME.g:13190:24: ( options {greedy=false; } : . )*
|
||||
// InternalGAME.g:13230:24: ( options {greedy=false; } : . )*
|
||||
loop7:
|
||||
do {
|
||||
int alt7=2;
|
||||
|
@ -1387,7 +1387,7 @@ public class InternalGAMELexer extends Lexer {
|
|||
|
||||
switch (alt7) {
|
||||
case 1 :
|
||||
// InternalGAME.g:13190:52: .
|
||||
// InternalGAME.g:13230:52: .
|
||||
{
|
||||
matchAny();
|
||||
|
||||
|
@ -1417,12 +1417,12 @@ public class InternalGAMELexer extends Lexer {
|
|||
try {
|
||||
int _type = RULE_SL_COMMENT;
|
||||
int _channel = DEFAULT_TOKEN_CHANNEL;
|
||||
// InternalGAME.g:13192:17: ( '//' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )? )
|
||||
// InternalGAME.g:13192:19: '//' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )?
|
||||
// InternalGAME.g:13232:17: ( '//' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )? )
|
||||
// InternalGAME.g:13232:19: '//' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )?
|
||||
{
|
||||
match("//");
|
||||
|
||||
// InternalGAME.g:13192:24: (~ ( ( '\\n' | '\\r' ) ) )*
|
||||
// InternalGAME.g:13232:24: (~ ( ( '\\n' | '\\r' ) ) )*
|
||||
loop8:
|
||||
do {
|
||||
int alt8=2;
|
||||
|
@ -1435,7 +1435,7 @@ public class InternalGAMELexer extends Lexer {
|
|||
|
||||
switch (alt8) {
|
||||
case 1 :
|
||||
// InternalGAME.g:13192:24: ~ ( ( '\\n' | '\\r' ) )
|
||||
// InternalGAME.g:13232:24: ~ ( ( '\\n' | '\\r' ) )
|
||||
{
|
||||
if ( (input.LA(1)>='\u0000' && input.LA(1)<='\t')||(input.LA(1)>='\u000B' && input.LA(1)<='\f')||(input.LA(1)>='\u000E' && input.LA(1)<='\uFFFF') ) {
|
||||
input.consume();
|
||||
|
@ -1455,7 +1455,7 @@ public class InternalGAMELexer extends Lexer {
|
|||
}
|
||||
} while (true);
|
||||
|
||||
// InternalGAME.g:13192:40: ( ( '\\r' )? '\\n' )?
|
||||
// InternalGAME.g:13232:40: ( ( '\\r' )? '\\n' )?
|
||||
int alt10=2;
|
||||
int LA10_0 = input.LA(1);
|
||||
|
||||
|
@ -1464,9 +1464,9 @@ public class InternalGAMELexer extends Lexer {
|
|||
}
|
||||
switch (alt10) {
|
||||
case 1 :
|
||||
// InternalGAME.g:13192:41: ( '\\r' )? '\\n'
|
||||
// InternalGAME.g:13232:41: ( '\\r' )? '\\n'
|
||||
{
|
||||
// InternalGAME.g:13192:41: ( '\\r' )?
|
||||
// InternalGAME.g:13232:41: ( '\\r' )?
|
||||
int alt9=2;
|
||||
int LA9_0 = input.LA(1);
|
||||
|
||||
|
@ -1475,7 +1475,7 @@ public class InternalGAMELexer extends Lexer {
|
|||
}
|
||||
switch (alt9) {
|
||||
case 1 :
|
||||
// InternalGAME.g:13192:41: '\\r'
|
||||
// InternalGAME.g:13232:41: '\\r'
|
||||
{
|
||||
match('\r');
|
||||
|
||||
|
@ -1507,10 +1507,10 @@ public class InternalGAMELexer extends Lexer {
|
|||
try {
|
||||
int _type = RULE_WS;
|
||||
int _channel = DEFAULT_TOKEN_CHANNEL;
|
||||
// InternalGAME.g:13194:9: ( ( ' ' | '\\t' | '\\r' | '\\n' )+ )
|
||||
// InternalGAME.g:13194:11: ( ' ' | '\\t' | '\\r' | '\\n' )+
|
||||
// InternalGAME.g:13234:9: ( ( ' ' | '\\t' | '\\r' | '\\n' )+ )
|
||||
// InternalGAME.g:13234:11: ( ' ' | '\\t' | '\\r' | '\\n' )+
|
||||
{
|
||||
// InternalGAME.g:13194:11: ( ' ' | '\\t' | '\\r' | '\\n' )+
|
||||
// InternalGAME.g:13234:11: ( ' ' | '\\t' | '\\r' | '\\n' )+
|
||||
int cnt11=0;
|
||||
loop11:
|
||||
do {
|
||||
|
@ -1564,8 +1564,8 @@ public class InternalGAMELexer extends Lexer {
|
|||
try {
|
||||
int _type = RULE_ANY_OTHER;
|
||||
int _channel = DEFAULT_TOKEN_CHANNEL;
|
||||
// InternalGAME.g:13196:16: ( . )
|
||||
// InternalGAME.g:13196:18: .
|
||||
// InternalGAME.g:13236:16: ( . )
|
||||
// InternalGAME.g:13236:18: .
|
||||
{
|
||||
matchAny();
|
||||
|
||||
|
|
File diff suppressed because it is too large
Load diff
Binary file not shown.
|
@ -203,6 +203,9 @@ public abstract class AbstractGAMEProposalProvider extends TerminalsProposalProv
|
|||
public void completeConditionObjet_Nombre(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
|
||||
}
|
||||
public void completeNom_Nom(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
|
||||
}
|
||||
|
||||
public void complete_Jeu(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
// subclasses may override
|
||||
|
@ -261,4 +264,7 @@ public abstract class AbstractGAMEProposalProvider extends TerminalsProposalProv
|
|||
public void complete_Comparateur(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
// subclasses may override
|
||||
}
|
||||
public void complete_Nom(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
// subclasses may override
|
||||
}
|
||||
}
|
||||
|
|
|
@ -5,6 +5,27 @@
|
|||
<projects>
|
||||
</projects>
|
||||
<buildSpec>
|
||||
<buildCommand>
|
||||
<name>org.eclipse.ocl.pivot.ui.oclbuilder</name>
|
||||
<arguments>
|
||||
<dictionary>
|
||||
<key>disabledExtensions</key>
|
||||
<value>*,essentialocl</value>
|
||||
</dictionary>
|
||||
<dictionary>
|
||||
<key>disabledPaths</key>
|
||||
<value>bin/**,target/**</value>
|
||||
</dictionary>
|
||||
<dictionary>
|
||||
<key>enabledExtensions</key>
|
||||
<value>ecore,ocl,oclinecore,oclstdlib,uml</value>
|
||||
</dictionary>
|
||||
<dictionary>
|
||||
<key>enabledPaths</key>
|
||||
<value>**</value>
|
||||
</dictionary>
|
||||
</arguments>
|
||||
</buildCommand>
|
||||
<buildCommand>
|
||||
<name>org.eclipse.xtext.ui.shared.xtextBuilder</name>
|
||||
<arguments>
|
||||
|
@ -30,5 +51,6 @@
|
|||
<nature>org.eclipse.xtext.ui.shared.xtextNature</nature>
|
||||
<nature>org.eclipse.jdt.core.javanature</nature>
|
||||
<nature>org.eclipse.pde.PluginNature</nature>
|
||||
<nature>org.eclipse.ocl.pivot.ui.oclnature</nature>
|
||||
</natures>
|
||||
</projectDescription>
|
||||
|
|
14
workspace/fr.n7.xtext.game/model/GAME.ocl
Normal file
14
workspace/fr.n7.xtext.game/model/GAME.ocl
Normal file
|
@ -0,0 +1,14 @@
|
|||
import 'generated/GAME.ecore'
|
||||
|
||||
package gAME
|
||||
|
||||
context Explorateur
|
||||
inv negativeQuantity: self.tailleInventaire >= 0
|
||||
|
||||
context Objet
|
||||
inv negativeQuantity: self.taille >= 0
|
||||
|
||||
context Nom
|
||||
inv CorrectNom: self.nom.matches('[a-zA-Z]([a-zA-Z0-9]|_)*')
|
||||
|
||||
endpackage
|
|
@ -17,10 +17,10 @@
|
|||
</eClassifiers>
|
||||
<eClassifiers xsi:type="ecore:EClass" name="Explorateur">
|
||||
<eStructuralFeatures xsi:type="ecore:EAttribute" name="tailleInventaire" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EAttribute" name="connaissances" unique="false"
|
||||
upperBound="-1" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EAttribute" name="objets" unique="false"
|
||||
upperBound="-1" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EReference" name="connaissances" upperBound="-1"
|
||||
eType="#//Nom" containment="true"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EReference" name="objets" upperBound="-1"
|
||||
eType="#//Nom" containment="true"/>
|
||||
</eClassifiers>
|
||||
<eClassifiers xsi:type="ecore:EClass" name="Territoire">
|
||||
<eStructuralFeatures xsi:type="ecore:EReference" name="lieux" upperBound="-1"
|
||||
|
@ -29,42 +29,44 @@
|
|||
eType="#//Chemin" containment="true"/>
|
||||
</eClassifiers>
|
||||
<eClassifiers xsi:type="ecore:EClass" name="Lieu">
|
||||
<eStructuralFeatures xsi:type="ecore:EAttribute" name="nom" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EReference" name="nom" eType="#//Nom" containment="true"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EReference" name="deposable" eType="#//Condition"
|
||||
containment="true"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EReference" name="depart" eType="#//Condition"
|
||||
containment="true"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EReference" name="fin" eType="#//Condition"
|
||||
containment="true"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EAttribute" name="personnes" unique="false"
|
||||
upperBound="-1" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EReference" name="personnes" upperBound="-1"
|
||||
eType="#//Nom" containment="true"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EReference" name="descriptions" upperBound="-1"
|
||||
eType="#//Description" containment="true"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EAttribute" name="objets" unique="false"
|
||||
upperBound="-1" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EAttribute" name="connaissances" unique="false"
|
||||
upperBound="-1" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EReference" name="objets" upperBound="-1"
|
||||
eType="#//Nom" containment="true"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EReference" name="connaissances" upperBound="-1"
|
||||
eType="#//Nom" containment="true"/>
|
||||
</eClassifiers>
|
||||
<eClassifiers xsi:type="ecore:EClass" name="Chemin">
|
||||
<eStructuralFeatures xsi:type="ecore:EAttribute" name="lieuIn" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EAttribute" name="lieuOut" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EReference" name="lieuIn" eType="#//Nom"
|
||||
containment="true"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EReference" name="lieuOut" eType="#//Nom"
|
||||
containment="true"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EReference" name="ouvert" eType="#//Condition"
|
||||
containment="true"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EReference" name="visible" eType="#//Condition"
|
||||
containment="true"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EReference" name="obligatoire" eType="#//Condition"
|
||||
containment="true"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EAttribute" name="connaissances" unique="false"
|
||||
upperBound="-1" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EAttribute" name="objetsRecus" unique="false"
|
||||
upperBound="-1" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EAttribute" name="objetsConso" unique="false"
|
||||
upperBound="-1" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EReference" name="connaissances" upperBound="-1"
|
||||
eType="#//Nom" containment="true"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EReference" name="objetsRecus" upperBound="-1"
|
||||
eType="#//Nom" containment="true"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EReference" name="objetsConso" upperBound="-1"
|
||||
eType="#//Nom" containment="true"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EReference" name="descriptions" upperBound="-1"
|
||||
eType="#//Description" containment="true"/>
|
||||
</eClassifiers>
|
||||
<eClassifiers xsi:type="ecore:EClass" name="Objet">
|
||||
<eStructuralFeatures xsi:type="ecore:EAttribute" name="nom" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EReference" name="nom" eType="#//Nom" containment="true"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EAttribute" name="taille" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EReference" name="visible" eType="#//Condition"
|
||||
containment="true"/>
|
||||
|
@ -74,20 +76,20 @@
|
|||
<eClassifiers xsi:type="ecore:EClass" name="Transformation">
|
||||
<eStructuralFeatures xsi:type="ecore:EReference" name="condition" eType="#//Condition"
|
||||
containment="true"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EAttribute" name="objetsIn" unique="false"
|
||||
upperBound="-1" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EAttribute" name="objetsOut" unique="false"
|
||||
upperBound="-1" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EReference" name="objetsIn" upperBound="-1"
|
||||
eType="#//Nom" containment="true"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EReference" name="objetsOut" upperBound="-1"
|
||||
eType="#//Nom" containment="true"/>
|
||||
</eClassifiers>
|
||||
<eClassifiers xsi:type="ecore:EClass" name="Connaissance">
|
||||
<eStructuralFeatures xsi:type="ecore:EAttribute" name="nom" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EReference" name="nom" eType="#//Nom" containment="true"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EReference" name="visible" eType="#//Condition"
|
||||
containment="true"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EReference" name="descriptions" upperBound="-1"
|
||||
eType="#//Description" containment="true"/>
|
||||
</eClassifiers>
|
||||
<eClassifiers xsi:type="ecore:EClass" name="Personne">
|
||||
<eStructuralFeatures xsi:type="ecore:EAttribute" name="nom" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EReference" name="nom" eType="#//Nom" containment="true"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EReference" name="visible" eType="#//Condition"
|
||||
containment="true"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EReference" name="obligatoire" eType="#//Condition"
|
||||
|
@ -98,12 +100,12 @@
|
|||
<eClassifiers xsi:type="ecore:EClass" name="Interaction">
|
||||
<eStructuralFeatures xsi:type="ecore:EReference" name="visible" eType="#//Condition"
|
||||
containment="true"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EAttribute" name="connaissances" unique="false"
|
||||
upperBound="-1" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EAttribute" name="objetsRecus" unique="false"
|
||||
upperBound="-1" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EAttribute" name="objetsConso" unique="false"
|
||||
upperBound="-1" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EReference" name="connaissances" upperBound="-1"
|
||||
eType="#//Nom" containment="true"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EReference" name="objetsRecus" upperBound="-1"
|
||||
eType="#//Nom" containment="true"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EReference" name="objetsConso" upperBound="-1"
|
||||
eType="#//Nom" containment="true"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EReference" name="actions" upperBound="-1"
|
||||
eType="#//Action" containment="true"/>
|
||||
</eClassifiers>
|
||||
|
@ -112,12 +114,12 @@
|
|||
containment="true"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EReference" name="finInteraction" eType="#//Condition"
|
||||
containment="true"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EAttribute" name="connaissances" unique="false"
|
||||
upperBound="-1" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EAttribute" name="objetsRecus" unique="false"
|
||||
upperBound="-1" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EAttribute" name="objetsConso" unique="false"
|
||||
upperBound="-1" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EReference" name="connaissances" upperBound="-1"
|
||||
eType="#//Nom" containment="true"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EReference" name="objetsRecus" upperBound="-1"
|
||||
eType="#//Nom" containment="true"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EReference" name="objetsConso" upperBound="-1"
|
||||
eType="#//Nom" containment="true"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EReference" name="descriptions" upperBound="-1"
|
||||
eType="#//Description" containment="true"/>
|
||||
</eClassifiers>
|
||||
|
@ -136,14 +138,19 @@
|
|||
</eClassifiers>
|
||||
<eClassifiers xsi:type="ecore:EClass" name="ConditionTest"/>
|
||||
<eClassifiers xsi:type="ecore:EClass" name="ConditionConnaissance" eSuperTypes="#//ConditionTest">
|
||||
<eStructuralFeatures xsi:type="ecore:EAttribute" name="connaissance" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EReference" name="connaissance" eType="#//Nom"
|
||||
containment="true"/>
|
||||
</eClassifiers>
|
||||
<eClassifiers xsi:type="ecore:EClass" name="NOTConditionConnaissance" eSuperTypes="#//ConditionTest">
|
||||
<eStructuralFeatures xsi:type="ecore:EAttribute" name="connaissance" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EReference" name="connaissance" eType="#//Nom"
|
||||
containment="true"/>
|
||||
</eClassifiers>
|
||||
<eClassifiers xsi:type="ecore:EClass" name="ConditionObjet" eSuperTypes="#//ConditionTest">
|
||||
<eStructuralFeatures xsi:type="ecore:EAttribute" name="objet" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EReference" name="objet" eType="#//Nom" containment="true"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EAttribute" name="comparateur" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EAttribute" name="nombre" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt"/>
|
||||
</eClassifiers>
|
||||
<eClassifiers xsi:type="ecore:EClass" name="Nom">
|
||||
<eStructuralFeatures xsi:type="ecore:EAttribute" name="nom" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
|
||||
</eClassifiers>
|
||||
</ecore:EPackage>
|
||||
|
|
|
@ -16,69 +16,69 @@
|
|||
</genClasses>
|
||||
<genClasses ecoreClass="GAME.ecore#//Explorateur">
|
||||
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute GAME.ecore#//Explorateur/tailleInventaire"/>
|
||||
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute GAME.ecore#//Explorateur/connaissances"/>
|
||||
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute GAME.ecore#//Explorateur/objets"/>
|
||||
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference GAME.ecore#//Explorateur/connaissances"/>
|
||||
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference GAME.ecore#//Explorateur/objets"/>
|
||||
</genClasses>
|
||||
<genClasses ecoreClass="GAME.ecore#//Territoire">
|
||||
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference GAME.ecore#//Territoire/lieux"/>
|
||||
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference GAME.ecore#//Territoire/chemins"/>
|
||||
</genClasses>
|
||||
<genClasses ecoreClass="GAME.ecore#//Lieu">
|
||||
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute GAME.ecore#//Lieu/nom"/>
|
||||
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference GAME.ecore#//Lieu/nom"/>
|
||||
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference GAME.ecore#//Lieu/deposable"/>
|
||||
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference GAME.ecore#//Lieu/depart"/>
|
||||
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference GAME.ecore#//Lieu/fin"/>
|
||||
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute GAME.ecore#//Lieu/personnes"/>
|
||||
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference GAME.ecore#//Lieu/personnes"/>
|
||||
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference GAME.ecore#//Lieu/descriptions"/>
|
||||
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute GAME.ecore#//Lieu/objets"/>
|
||||
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute GAME.ecore#//Lieu/connaissances"/>
|
||||
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference GAME.ecore#//Lieu/objets"/>
|
||||
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference GAME.ecore#//Lieu/connaissances"/>
|
||||
</genClasses>
|
||||
<genClasses ecoreClass="GAME.ecore#//Chemin">
|
||||
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute GAME.ecore#//Chemin/lieuIn"/>
|
||||
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute GAME.ecore#//Chemin/lieuOut"/>
|
||||
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference GAME.ecore#//Chemin/lieuIn"/>
|
||||
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference GAME.ecore#//Chemin/lieuOut"/>
|
||||
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference GAME.ecore#//Chemin/ouvert"/>
|
||||
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference GAME.ecore#//Chemin/visible"/>
|
||||
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference GAME.ecore#//Chemin/obligatoire"/>
|
||||
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute GAME.ecore#//Chemin/connaissances"/>
|
||||
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute GAME.ecore#//Chemin/objetsRecus"/>
|
||||
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute GAME.ecore#//Chemin/objetsConso"/>
|
||||
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference GAME.ecore#//Chemin/connaissances"/>
|
||||
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference GAME.ecore#//Chemin/objetsRecus"/>
|
||||
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference GAME.ecore#//Chemin/objetsConso"/>
|
||||
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference GAME.ecore#//Chemin/descriptions"/>
|
||||
</genClasses>
|
||||
<genClasses ecoreClass="GAME.ecore#//Objet">
|
||||
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute GAME.ecore#//Objet/nom"/>
|
||||
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference GAME.ecore#//Objet/nom"/>
|
||||
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute GAME.ecore#//Objet/taille"/>
|
||||
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference GAME.ecore#//Objet/visible"/>
|
||||
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference GAME.ecore#//Objet/descriptions"/>
|
||||
</genClasses>
|
||||
<genClasses ecoreClass="GAME.ecore#//Transformation">
|
||||
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference GAME.ecore#//Transformation/condition"/>
|
||||
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute GAME.ecore#//Transformation/objetsIn"/>
|
||||
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute GAME.ecore#//Transformation/objetsOut"/>
|
||||
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference GAME.ecore#//Transformation/objetsIn"/>
|
||||
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference GAME.ecore#//Transformation/objetsOut"/>
|
||||
</genClasses>
|
||||
<genClasses ecoreClass="GAME.ecore#//Connaissance">
|
||||
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute GAME.ecore#//Connaissance/nom"/>
|
||||
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference GAME.ecore#//Connaissance/nom"/>
|
||||
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference GAME.ecore#//Connaissance/visible"/>
|
||||
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference GAME.ecore#//Connaissance/descriptions"/>
|
||||
</genClasses>
|
||||
<genClasses ecoreClass="GAME.ecore#//Personne">
|
||||
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute GAME.ecore#//Personne/nom"/>
|
||||
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference GAME.ecore#//Personne/nom"/>
|
||||
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference GAME.ecore#//Personne/visible"/>
|
||||
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference GAME.ecore#//Personne/obligatoire"/>
|
||||
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference GAME.ecore#//Personne/interactions"/>
|
||||
</genClasses>
|
||||
<genClasses ecoreClass="GAME.ecore#//Interaction">
|
||||
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference GAME.ecore#//Interaction/visible"/>
|
||||
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute GAME.ecore#//Interaction/connaissances"/>
|
||||
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute GAME.ecore#//Interaction/objetsRecus"/>
|
||||
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute GAME.ecore#//Interaction/objetsConso"/>
|
||||
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference GAME.ecore#//Interaction/connaissances"/>
|
||||
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference GAME.ecore#//Interaction/objetsRecus"/>
|
||||
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference GAME.ecore#//Interaction/objetsConso"/>
|
||||
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference GAME.ecore#//Interaction/actions"/>
|
||||
</genClasses>
|
||||
<genClasses ecoreClass="GAME.ecore#//Action">
|
||||
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference GAME.ecore#//Action/visible"/>
|
||||
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference GAME.ecore#//Action/finInteraction"/>
|
||||
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute GAME.ecore#//Action/connaissances"/>
|
||||
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute GAME.ecore#//Action/objetsRecus"/>
|
||||
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute GAME.ecore#//Action/objetsConso"/>
|
||||
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference GAME.ecore#//Action/connaissances"/>
|
||||
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference GAME.ecore#//Action/objetsRecus"/>
|
||||
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference GAME.ecore#//Action/objetsConso"/>
|
||||
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference GAME.ecore#//Action/descriptions"/>
|
||||
</genClasses>
|
||||
<genClasses ecoreClass="GAME.ecore#//Description">
|
||||
|
@ -93,15 +93,18 @@
|
|||
</genClasses>
|
||||
<genClasses ecoreClass="GAME.ecore#//ConditionTest"/>
|
||||
<genClasses ecoreClass="GAME.ecore#//ConditionConnaissance">
|
||||
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute GAME.ecore#//ConditionConnaissance/connaissance"/>
|
||||
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference GAME.ecore#//ConditionConnaissance/connaissance"/>
|
||||
</genClasses>
|
||||
<genClasses ecoreClass="GAME.ecore#//NOTConditionConnaissance">
|
||||
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute GAME.ecore#//NOTConditionConnaissance/connaissance"/>
|
||||
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference GAME.ecore#//NOTConditionConnaissance/connaissance"/>
|
||||
</genClasses>
|
||||
<genClasses ecoreClass="GAME.ecore#//ConditionObjet">
|
||||
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute GAME.ecore#//ConditionObjet/objet"/>
|
||||
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference GAME.ecore#//ConditionObjet/objet"/>
|
||||
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute GAME.ecore#//ConditionObjet/comparateur"/>
|
||||
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute GAME.ecore#//ConditionObjet/nombre"/>
|
||||
</genClasses>
|
||||
<genClasses ecoreClass="GAME.ecore#//Nom">
|
||||
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute GAME.ecore#//Nom/nom"/>
|
||||
</genClasses>
|
||||
</genPackages>
|
||||
</genmodel:GenModel>
|
||||
|
|
Binary file not shown.
|
@ -75,40 +75,40 @@ public interface Action extends EObject
|
|||
void setFinInteraction(Condition value);
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>Connaissances</b></em>' attribute list.
|
||||
* The list contents are of type {@link java.lang.String}.
|
||||
* Returns the value of the '<em><b>Connaissances</b></em>' containment reference list.
|
||||
* The list contents are of type {@link fr.n7.xtext.gAME.Nom}.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Connaissances</em>' attribute list.
|
||||
* @return the value of the '<em>Connaissances</em>' containment reference list.
|
||||
* @see fr.n7.xtext.gAME.GAMEPackage#getAction_Connaissances()
|
||||
* @model unique="false"
|
||||
* @model containment="true"
|
||||
* @generated
|
||||
*/
|
||||
EList<String> getConnaissances();
|
||||
EList<Nom> getConnaissances();
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>Objets Recus</b></em>' attribute list.
|
||||
* The list contents are of type {@link java.lang.String}.
|
||||
* Returns the value of the '<em><b>Objets Recus</b></em>' containment reference list.
|
||||
* The list contents are of type {@link fr.n7.xtext.gAME.Nom}.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Objets Recus</em>' attribute list.
|
||||
* @return the value of the '<em>Objets Recus</em>' containment reference list.
|
||||
* @see fr.n7.xtext.gAME.GAMEPackage#getAction_ObjetsRecus()
|
||||
* @model unique="false"
|
||||
* @model containment="true"
|
||||
* @generated
|
||||
*/
|
||||
EList<String> getObjetsRecus();
|
||||
EList<Nom> getObjetsRecus();
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>Objets Conso</b></em>' attribute list.
|
||||
* The list contents are of type {@link java.lang.String}.
|
||||
* Returns the value of the '<em><b>Objets Conso</b></em>' containment reference list.
|
||||
* The list contents are of type {@link fr.n7.xtext.gAME.Nom}.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Objets Conso</em>' attribute list.
|
||||
* @return the value of the '<em>Objets Conso</em>' containment reference list.
|
||||
* @see fr.n7.xtext.gAME.GAMEPackage#getAction_ObjetsConso()
|
||||
* @model unique="false"
|
||||
* @model containment="true"
|
||||
* @generated
|
||||
*/
|
||||
EList<String> getObjetsConso();
|
||||
EList<Nom> getObjetsConso();
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>Descriptions</b></em>' containment reference list.
|
||||
|
|
|
@ -34,48 +34,48 @@ import org.eclipse.emf.ecore.EObject;
|
|||
public interface Chemin extends EObject
|
||||
{
|
||||
/**
|
||||
* Returns the value of the '<em><b>Lieu In</b></em>' attribute.
|
||||
* Returns the value of the '<em><b>Lieu In</b></em>' containment reference.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Lieu In</em>' attribute.
|
||||
* @see #setLieuIn(String)
|
||||
* @return the value of the '<em>Lieu In</em>' containment reference.
|
||||
* @see #setLieuIn(Nom)
|
||||
* @see fr.n7.xtext.gAME.GAMEPackage#getChemin_LieuIn()
|
||||
* @model
|
||||
* @model containment="true"
|
||||
* @generated
|
||||
*/
|
||||
String getLieuIn();
|
||||
Nom getLieuIn();
|
||||
|
||||
/**
|
||||
* Sets the value of the '{@link fr.n7.xtext.gAME.Chemin#getLieuIn <em>Lieu In</em>}' attribute.
|
||||
* Sets the value of the '{@link fr.n7.xtext.gAME.Chemin#getLieuIn <em>Lieu In</em>}' containment reference.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @param value the new value of the '<em>Lieu In</em>' attribute.
|
||||
* @param value the new value of the '<em>Lieu In</em>' containment reference.
|
||||
* @see #getLieuIn()
|
||||
* @generated
|
||||
*/
|
||||
void setLieuIn(String value);
|
||||
void setLieuIn(Nom value);
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>Lieu Out</b></em>' attribute.
|
||||
* Returns the value of the '<em><b>Lieu Out</b></em>' containment reference.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Lieu Out</em>' attribute.
|
||||
* @see #setLieuOut(String)
|
||||
* @return the value of the '<em>Lieu Out</em>' containment reference.
|
||||
* @see #setLieuOut(Nom)
|
||||
* @see fr.n7.xtext.gAME.GAMEPackage#getChemin_LieuOut()
|
||||
* @model
|
||||
* @model containment="true"
|
||||
* @generated
|
||||
*/
|
||||
String getLieuOut();
|
||||
Nom getLieuOut();
|
||||
|
||||
/**
|
||||
* Sets the value of the '{@link fr.n7.xtext.gAME.Chemin#getLieuOut <em>Lieu Out</em>}' attribute.
|
||||
* Sets the value of the '{@link fr.n7.xtext.gAME.Chemin#getLieuOut <em>Lieu Out</em>}' containment reference.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @param value the new value of the '<em>Lieu Out</em>' attribute.
|
||||
* @param value the new value of the '<em>Lieu Out</em>' containment reference.
|
||||
* @see #getLieuOut()
|
||||
* @generated
|
||||
*/
|
||||
void setLieuOut(String value);
|
||||
void setLieuOut(Nom value);
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>Ouvert</b></em>' containment reference.
|
||||
|
@ -144,40 +144,40 @@ public interface Chemin extends EObject
|
|||
void setObligatoire(Condition value);
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>Connaissances</b></em>' attribute list.
|
||||
* The list contents are of type {@link java.lang.String}.
|
||||
* Returns the value of the '<em><b>Connaissances</b></em>' containment reference list.
|
||||
* The list contents are of type {@link fr.n7.xtext.gAME.Nom}.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Connaissances</em>' attribute list.
|
||||
* @return the value of the '<em>Connaissances</em>' containment reference list.
|
||||
* @see fr.n7.xtext.gAME.GAMEPackage#getChemin_Connaissances()
|
||||
* @model unique="false"
|
||||
* @model containment="true"
|
||||
* @generated
|
||||
*/
|
||||
EList<String> getConnaissances();
|
||||
EList<Nom> getConnaissances();
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>Objets Recus</b></em>' attribute list.
|
||||
* The list contents are of type {@link java.lang.String}.
|
||||
* Returns the value of the '<em><b>Objets Recus</b></em>' containment reference list.
|
||||
* The list contents are of type {@link fr.n7.xtext.gAME.Nom}.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Objets Recus</em>' attribute list.
|
||||
* @return the value of the '<em>Objets Recus</em>' containment reference list.
|
||||
* @see fr.n7.xtext.gAME.GAMEPackage#getChemin_ObjetsRecus()
|
||||
* @model unique="false"
|
||||
* @model containment="true"
|
||||
* @generated
|
||||
*/
|
||||
EList<String> getObjetsRecus();
|
||||
EList<Nom> getObjetsRecus();
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>Objets Conso</b></em>' attribute list.
|
||||
* The list contents are of type {@link java.lang.String}.
|
||||
* Returns the value of the '<em><b>Objets Conso</b></em>' containment reference list.
|
||||
* The list contents are of type {@link fr.n7.xtext.gAME.Nom}.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Objets Conso</em>' attribute list.
|
||||
* @return the value of the '<em>Objets Conso</em>' containment reference list.
|
||||
* @see fr.n7.xtext.gAME.GAMEPackage#getChemin_ObjetsConso()
|
||||
* @model unique="false"
|
||||
* @model containment="true"
|
||||
* @generated
|
||||
*/
|
||||
EList<String> getObjetsConso();
|
||||
EList<Nom> getObjetsConso();
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>Descriptions</b></em>' containment reference list.
|
||||
|
|
|
@ -23,25 +23,25 @@ package fr.n7.xtext.gAME;
|
|||
public interface ConditionConnaissance extends ConditionTest
|
||||
{
|
||||
/**
|
||||
* Returns the value of the '<em><b>Connaissance</b></em>' attribute.
|
||||
* Returns the value of the '<em><b>Connaissance</b></em>' containment reference.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Connaissance</em>' attribute.
|
||||
* @see #setConnaissance(String)
|
||||
* @return the value of the '<em>Connaissance</em>' containment reference.
|
||||
* @see #setConnaissance(Nom)
|
||||
* @see fr.n7.xtext.gAME.GAMEPackage#getConditionConnaissance_Connaissance()
|
||||
* @model
|
||||
* @model containment="true"
|
||||
* @generated
|
||||
*/
|
||||
String getConnaissance();
|
||||
Nom getConnaissance();
|
||||
|
||||
/**
|
||||
* Sets the value of the '{@link fr.n7.xtext.gAME.ConditionConnaissance#getConnaissance <em>Connaissance</em>}' attribute.
|
||||
* Sets the value of the '{@link fr.n7.xtext.gAME.ConditionConnaissance#getConnaissance <em>Connaissance</em>}' containment reference.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @param value the new value of the '<em>Connaissance</em>' attribute.
|
||||
* @param value the new value of the '<em>Connaissance</em>' containment reference.
|
||||
* @see #getConnaissance()
|
||||
* @generated
|
||||
*/
|
||||
void setConnaissance(String value);
|
||||
void setConnaissance(Nom value);
|
||||
|
||||
} // ConditionConnaissance
|
||||
|
|
|
@ -25,26 +25,26 @@ package fr.n7.xtext.gAME;
|
|||
public interface ConditionObjet extends ConditionTest
|
||||
{
|
||||
/**
|
||||
* Returns the value of the '<em><b>Objet</b></em>' attribute.
|
||||
* Returns the value of the '<em><b>Objet</b></em>' containment reference.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Objet</em>' attribute.
|
||||
* @see #setObjet(String)
|
||||
* @return the value of the '<em>Objet</em>' containment reference.
|
||||
* @see #setObjet(Nom)
|
||||
* @see fr.n7.xtext.gAME.GAMEPackage#getConditionObjet_Objet()
|
||||
* @model
|
||||
* @model containment="true"
|
||||
* @generated
|
||||
*/
|
||||
String getObjet();
|
||||
Nom getObjet();
|
||||
|
||||
/**
|
||||
* Sets the value of the '{@link fr.n7.xtext.gAME.ConditionObjet#getObjet <em>Objet</em>}' attribute.
|
||||
* Sets the value of the '{@link fr.n7.xtext.gAME.ConditionObjet#getObjet <em>Objet</em>}' containment reference.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @param value the new value of the '<em>Objet</em>' attribute.
|
||||
* @param value the new value of the '<em>Objet</em>' containment reference.
|
||||
* @see #getObjet()
|
||||
* @generated
|
||||
*/
|
||||
void setObjet(String value);
|
||||
void setObjet(Nom value);
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>Comparateur</b></em>' attribute.
|
||||
|
|
|
@ -28,26 +28,26 @@ import org.eclipse.emf.ecore.EObject;
|
|||
public interface Connaissance extends EObject
|
||||
{
|
||||
/**
|
||||
* Returns the value of the '<em><b>Nom</b></em>' attribute.
|
||||
* Returns the value of the '<em><b>Nom</b></em>' containment reference.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Nom</em>' attribute.
|
||||
* @see #setNom(String)
|
||||
* @return the value of the '<em>Nom</em>' containment reference.
|
||||
* @see #setNom(Nom)
|
||||
* @see fr.n7.xtext.gAME.GAMEPackage#getConnaissance_Nom()
|
||||
* @model
|
||||
* @model containment="true"
|
||||
* @generated
|
||||
*/
|
||||
String getNom();
|
||||
Nom getNom();
|
||||
|
||||
/**
|
||||
* Sets the value of the '{@link fr.n7.xtext.gAME.Connaissance#getNom <em>Nom</em>}' attribute.
|
||||
* Sets the value of the '{@link fr.n7.xtext.gAME.Connaissance#getNom <em>Nom</em>}' containment reference.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @param value the new value of the '<em>Nom</em>' attribute.
|
||||
* @param value the new value of the '<em>Nom</em>' containment reference.
|
||||
* @see #getNom()
|
||||
* @generated
|
||||
*/
|
||||
void setNom(String value);
|
||||
void setNom(Nom value);
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>Visible</b></em>' containment reference.
|
||||
|
|
|
@ -50,27 +50,27 @@ public interface Explorateur extends EObject
|
|||
void setTailleInventaire(int value);
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>Connaissances</b></em>' attribute list.
|
||||
* The list contents are of type {@link java.lang.String}.
|
||||
* Returns the value of the '<em><b>Connaissances</b></em>' containment reference list.
|
||||
* The list contents are of type {@link fr.n7.xtext.gAME.Nom}.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Connaissances</em>' attribute list.
|
||||
* @return the value of the '<em>Connaissances</em>' containment reference list.
|
||||
* @see fr.n7.xtext.gAME.GAMEPackage#getExplorateur_Connaissances()
|
||||
* @model unique="false"
|
||||
* @model containment="true"
|
||||
* @generated
|
||||
*/
|
||||
EList<String> getConnaissances();
|
||||
EList<Nom> getConnaissances();
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>Objets</b></em>' attribute list.
|
||||
* The list contents are of type {@link java.lang.String}.
|
||||
* Returns the value of the '<em><b>Objets</b></em>' containment reference list.
|
||||
* The list contents are of type {@link fr.n7.xtext.gAME.Nom}.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Objets</em>' attribute list.
|
||||
* @return the value of the '<em>Objets</em>' containment reference list.
|
||||
* @see fr.n7.xtext.gAME.GAMEPackage#getExplorateur_Objets()
|
||||
* @model unique="false"
|
||||
* @model containment="true"
|
||||
* @generated
|
||||
*/
|
||||
EList<String> getObjets();
|
||||
EList<Nom> getObjets();
|
||||
|
||||
} // Explorateur
|
||||
|
|
|
@ -185,6 +185,15 @@ public interface GAMEFactory extends EFactory
|
|||
*/
|
||||
ConditionObjet createConditionObjet();
|
||||
|
||||
/**
|
||||
* Returns a new object of class '<em>Nom</em>'.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return a new object of class '<em>Nom</em>'.
|
||||
* @generated
|
||||
*/
|
||||
Nom createNom();
|
||||
|
||||
/**
|
||||
* Returns the package supported by this factory.
|
||||
* <!-- begin-user-doc -->
|
||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -52,40 +52,40 @@ public interface Interaction extends EObject
|
|||
void setVisible(Condition value);
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>Connaissances</b></em>' attribute list.
|
||||
* The list contents are of type {@link java.lang.String}.
|
||||
* Returns the value of the '<em><b>Connaissances</b></em>' containment reference list.
|
||||
* The list contents are of type {@link fr.n7.xtext.gAME.Nom}.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Connaissances</em>' attribute list.
|
||||
* @return the value of the '<em>Connaissances</em>' containment reference list.
|
||||
* @see fr.n7.xtext.gAME.GAMEPackage#getInteraction_Connaissances()
|
||||
* @model unique="false"
|
||||
* @model containment="true"
|
||||
* @generated
|
||||
*/
|
||||
EList<String> getConnaissances();
|
||||
EList<Nom> getConnaissances();
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>Objets Recus</b></em>' attribute list.
|
||||
* The list contents are of type {@link java.lang.String}.
|
||||
* Returns the value of the '<em><b>Objets Recus</b></em>' containment reference list.
|
||||
* The list contents are of type {@link fr.n7.xtext.gAME.Nom}.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Objets Recus</em>' attribute list.
|
||||
* @return the value of the '<em>Objets Recus</em>' containment reference list.
|
||||
* @see fr.n7.xtext.gAME.GAMEPackage#getInteraction_ObjetsRecus()
|
||||
* @model unique="false"
|
||||
* @model containment="true"
|
||||
* @generated
|
||||
*/
|
||||
EList<String> getObjetsRecus();
|
||||
EList<Nom> getObjetsRecus();
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>Objets Conso</b></em>' attribute list.
|
||||
* The list contents are of type {@link java.lang.String}.
|
||||
* Returns the value of the '<em><b>Objets Conso</b></em>' containment reference list.
|
||||
* The list contents are of type {@link fr.n7.xtext.gAME.Nom}.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Objets Conso</em>' attribute list.
|
||||
* @return the value of the '<em>Objets Conso</em>' containment reference list.
|
||||
* @see fr.n7.xtext.gAME.GAMEPackage#getInteraction_ObjetsConso()
|
||||
* @model unique="false"
|
||||
* @model containment="true"
|
||||
* @generated
|
||||
*/
|
||||
EList<String> getObjetsConso();
|
||||
EList<Nom> getObjetsConso();
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>Actions</b></em>' containment reference list.
|
||||
|
|
|
@ -33,26 +33,26 @@ import org.eclipse.emf.ecore.EObject;
|
|||
public interface Lieu extends EObject
|
||||
{
|
||||
/**
|
||||
* Returns the value of the '<em><b>Nom</b></em>' attribute.
|
||||
* Returns the value of the '<em><b>Nom</b></em>' containment reference.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Nom</em>' attribute.
|
||||
* @see #setNom(String)
|
||||
* @return the value of the '<em>Nom</em>' containment reference.
|
||||
* @see #setNom(Nom)
|
||||
* @see fr.n7.xtext.gAME.GAMEPackage#getLieu_Nom()
|
||||
* @model
|
||||
* @model containment="true"
|
||||
* @generated
|
||||
*/
|
||||
String getNom();
|
||||
Nom getNom();
|
||||
|
||||
/**
|
||||
* Sets the value of the '{@link fr.n7.xtext.gAME.Lieu#getNom <em>Nom</em>}' attribute.
|
||||
* Sets the value of the '{@link fr.n7.xtext.gAME.Lieu#getNom <em>Nom</em>}' containment reference.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @param value the new value of the '<em>Nom</em>' attribute.
|
||||
* @param value the new value of the '<em>Nom</em>' containment reference.
|
||||
* @see #getNom()
|
||||
* @generated
|
||||
*/
|
||||
void setNom(String value);
|
||||
void setNom(Nom value);
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>Deposable</b></em>' containment reference.
|
||||
|
@ -121,16 +121,16 @@ public interface Lieu extends EObject
|
|||
void setFin(Condition value);
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>Personnes</b></em>' attribute list.
|
||||
* The list contents are of type {@link java.lang.String}.
|
||||
* Returns the value of the '<em><b>Personnes</b></em>' containment reference list.
|
||||
* The list contents are of type {@link fr.n7.xtext.gAME.Nom}.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Personnes</em>' attribute list.
|
||||
* @return the value of the '<em>Personnes</em>' containment reference list.
|
||||
* @see fr.n7.xtext.gAME.GAMEPackage#getLieu_Personnes()
|
||||
* @model unique="false"
|
||||
* @model containment="true"
|
||||
* @generated
|
||||
*/
|
||||
EList<String> getPersonnes();
|
||||
EList<Nom> getPersonnes();
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>Descriptions</b></em>' containment reference list.
|
||||
|
@ -145,27 +145,27 @@ public interface Lieu extends EObject
|
|||
EList<Description> getDescriptions();
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>Objets</b></em>' attribute list.
|
||||
* The list contents are of type {@link java.lang.String}.
|
||||
* Returns the value of the '<em><b>Objets</b></em>' containment reference list.
|
||||
* The list contents are of type {@link fr.n7.xtext.gAME.Nom}.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Objets</em>' attribute list.
|
||||
* @return the value of the '<em>Objets</em>' containment reference list.
|
||||
* @see fr.n7.xtext.gAME.GAMEPackage#getLieu_Objets()
|
||||
* @model unique="false"
|
||||
* @model containment="true"
|
||||
* @generated
|
||||
*/
|
||||
EList<String> getObjets();
|
||||
EList<Nom> getObjets();
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>Connaissances</b></em>' attribute list.
|
||||
* The list contents are of type {@link java.lang.String}.
|
||||
* Returns the value of the '<em><b>Connaissances</b></em>' containment reference list.
|
||||
* The list contents are of type {@link fr.n7.xtext.gAME.Nom}.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Connaissances</em>' attribute list.
|
||||
* @return the value of the '<em>Connaissances</em>' containment reference list.
|
||||
* @see fr.n7.xtext.gAME.GAMEPackage#getLieu_Connaissances()
|
||||
* @model unique="false"
|
||||
* @model containment="true"
|
||||
* @generated
|
||||
*/
|
||||
EList<String> getConnaissances();
|
||||
EList<Nom> getConnaissances();
|
||||
|
||||
} // Lieu
|
||||
|
|
|
@ -23,25 +23,25 @@ package fr.n7.xtext.gAME;
|
|||
public interface NOTConditionConnaissance extends ConditionTest
|
||||
{
|
||||
/**
|
||||
* Returns the value of the '<em><b>Connaissance</b></em>' attribute.
|
||||
* Returns the value of the '<em><b>Connaissance</b></em>' containment reference.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Connaissance</em>' attribute.
|
||||
* @see #setConnaissance(String)
|
||||
* @return the value of the '<em>Connaissance</em>' containment reference.
|
||||
* @see #setConnaissance(Nom)
|
||||
* @see fr.n7.xtext.gAME.GAMEPackage#getNOTConditionConnaissance_Connaissance()
|
||||
* @model
|
||||
* @model containment="true"
|
||||
* @generated
|
||||
*/
|
||||
String getConnaissance();
|
||||
Nom getConnaissance();
|
||||
|
||||
/**
|
||||
* Sets the value of the '{@link fr.n7.xtext.gAME.NOTConditionConnaissance#getConnaissance <em>Connaissance</em>}' attribute.
|
||||
* Sets the value of the '{@link fr.n7.xtext.gAME.NOTConditionConnaissance#getConnaissance <em>Connaissance</em>}' containment reference.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @param value the new value of the '<em>Connaissance</em>' attribute.
|
||||
* @param value the new value of the '<em>Connaissance</em>' containment reference.
|
||||
* @see #getConnaissance()
|
||||
* @generated
|
||||
*/
|
||||
void setConnaissance(String value);
|
||||
void setConnaissance(Nom value);
|
||||
|
||||
} // NOTConditionConnaissance
|
||||
|
|
48
workspace/fr.n7.xtext.game/src-gen/fr/n7/xtext/gAME/Nom.java
Normal file
48
workspace/fr.n7.xtext.game/src-gen/fr/n7/xtext/gAME/Nom.java
Normal file
|
@ -0,0 +1,48 @@
|
|||
/**
|
||||
* generated by Xtext 2.23.0
|
||||
*/
|
||||
package fr.n7.xtext.gAME;
|
||||
|
||||
import org.eclipse.emf.ecore.EObject;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* A representation of the model object '<em><b>Nom</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
*
|
||||
* <p>
|
||||
* The following features are supported:
|
||||
* </p>
|
||||
* <ul>
|
||||
* <li>{@link fr.n7.xtext.gAME.Nom#getNom <em>Nom</em>}</li>
|
||||
* </ul>
|
||||
*
|
||||
* @see fr.n7.xtext.gAME.GAMEPackage#getNom()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
public interface Nom extends EObject
|
||||
{
|
||||
/**
|
||||
* Returns the value of the '<em><b>Nom</b></em>' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Nom</em>' attribute.
|
||||
* @see #setNom(String)
|
||||
* @see fr.n7.xtext.gAME.GAMEPackage#getNom_Nom()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
String getNom();
|
||||
|
||||
/**
|
||||
* Sets the value of the '{@link fr.n7.xtext.gAME.Nom#getNom <em>Nom</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @param value the new value of the '<em>Nom</em>' attribute.
|
||||
* @see #getNom()
|
||||
* @generated
|
||||
*/
|
||||
void setNom(String value);
|
||||
|
||||
} // Nom
|
|
@ -29,26 +29,26 @@ import org.eclipse.emf.ecore.EObject;
|
|||
public interface Objet extends EObject
|
||||
{
|
||||
/**
|
||||
* Returns the value of the '<em><b>Nom</b></em>' attribute.
|
||||
* Returns the value of the '<em><b>Nom</b></em>' containment reference.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Nom</em>' attribute.
|
||||
* @see #setNom(String)
|
||||
* @return the value of the '<em>Nom</em>' containment reference.
|
||||
* @see #setNom(Nom)
|
||||
* @see fr.n7.xtext.gAME.GAMEPackage#getObjet_Nom()
|
||||
* @model
|
||||
* @model containment="true"
|
||||
* @generated
|
||||
*/
|
||||
String getNom();
|
||||
Nom getNom();
|
||||
|
||||
/**
|
||||
* Sets the value of the '{@link fr.n7.xtext.gAME.Objet#getNom <em>Nom</em>}' attribute.
|
||||
* Sets the value of the '{@link fr.n7.xtext.gAME.Objet#getNom <em>Nom</em>}' containment reference.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @param value the new value of the '<em>Nom</em>' attribute.
|
||||
* @param value the new value of the '<em>Nom</em>' containment reference.
|
||||
* @see #getNom()
|
||||
* @generated
|
||||
*/
|
||||
void setNom(String value);
|
||||
void setNom(Nom value);
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>Taille</b></em>' attribute.
|
||||
|
|
|
@ -29,26 +29,26 @@ import org.eclipse.emf.ecore.EObject;
|
|||
public interface Personne extends EObject
|
||||
{
|
||||
/**
|
||||
* Returns the value of the '<em><b>Nom</b></em>' attribute.
|
||||
* Returns the value of the '<em><b>Nom</b></em>' containment reference.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Nom</em>' attribute.
|
||||
* @see #setNom(String)
|
||||
* @return the value of the '<em>Nom</em>' containment reference.
|
||||
* @see #setNom(Nom)
|
||||
* @see fr.n7.xtext.gAME.GAMEPackage#getPersonne_Nom()
|
||||
* @model
|
||||
* @model containment="true"
|
||||
* @generated
|
||||
*/
|
||||
String getNom();
|
||||
Nom getNom();
|
||||
|
||||
/**
|
||||
* Sets the value of the '{@link fr.n7.xtext.gAME.Personne#getNom <em>Nom</em>}' attribute.
|
||||
* Sets the value of the '{@link fr.n7.xtext.gAME.Personne#getNom <em>Nom</em>}' containment reference.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @param value the new value of the '<em>Nom</em>' attribute.
|
||||
* @param value the new value of the '<em>Nom</em>' containment reference.
|
||||
* @see #getNom()
|
||||
* @generated
|
||||
*/
|
||||
void setNom(String value);
|
||||
void setNom(Nom value);
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>Visible</b></em>' containment reference.
|
||||
|
|
|
@ -50,27 +50,27 @@ public interface Transformation extends EObject
|
|||
void setCondition(Condition value);
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>Objets In</b></em>' attribute list.
|
||||
* The list contents are of type {@link java.lang.String}.
|
||||
* Returns the value of the '<em><b>Objets In</b></em>' containment reference list.
|
||||
* The list contents are of type {@link fr.n7.xtext.gAME.Nom}.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Objets In</em>' attribute list.
|
||||
* @return the value of the '<em>Objets In</em>' containment reference list.
|
||||
* @see fr.n7.xtext.gAME.GAMEPackage#getTransformation_ObjetsIn()
|
||||
* @model unique="false"
|
||||
* @model containment="true"
|
||||
* @generated
|
||||
*/
|
||||
EList<String> getObjetsIn();
|
||||
EList<Nom> getObjetsIn();
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>Objets Out</b></em>' attribute list.
|
||||
* The list contents are of type {@link java.lang.String}.
|
||||
* Returns the value of the '<em><b>Objets Out</b></em>' containment reference list.
|
||||
* The list contents are of type {@link fr.n7.xtext.gAME.Nom}.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Objets Out</em>' attribute list.
|
||||
* @return the value of the '<em>Objets Out</em>' containment reference list.
|
||||
* @see fr.n7.xtext.gAME.GAMEPackage#getTransformation_ObjetsOut()
|
||||
* @model unique="false"
|
||||
* @model containment="true"
|
||||
* @generated
|
||||
*/
|
||||
EList<String> getObjetsOut();
|
||||
EList<Nom> getObjetsOut();
|
||||
|
||||
} // Transformation
|
||||
|
|
|
@ -7,6 +7,7 @@ import fr.n7.xtext.gAME.Action;
|
|||
import fr.n7.xtext.gAME.Condition;
|
||||
import fr.n7.xtext.gAME.Description;
|
||||
import fr.n7.xtext.gAME.GAMEPackage;
|
||||
import fr.n7.xtext.gAME.Nom;
|
||||
|
||||
import java.util.Collection;
|
||||
|
||||
|
@ -21,7 +22,6 @@ import org.eclipse.emf.ecore.InternalEObject;
|
|||
import org.eclipse.emf.ecore.impl.ENotificationImpl;
|
||||
import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
|
||||
|
||||
import org.eclipse.emf.ecore.util.EDataTypeEList;
|
||||
import org.eclipse.emf.ecore.util.EObjectContainmentEList;
|
||||
import org.eclipse.emf.ecore.util.InternalEList;
|
||||
|
||||
|
@ -66,34 +66,34 @@ public class ActionImpl extends MinimalEObjectImpl.Container implements Action
|
|||
protected Condition finInteraction;
|
||||
|
||||
/**
|
||||
* The cached value of the '{@link #getConnaissances() <em>Connaissances</em>}' attribute list.
|
||||
* The cached value of the '{@link #getConnaissances() <em>Connaissances</em>}' containment reference list.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getConnaissances()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected EList<String> connaissances;
|
||||
protected EList<Nom> connaissances;
|
||||
|
||||
/**
|
||||
* The cached value of the '{@link #getObjetsRecus() <em>Objets Recus</em>}' attribute list.
|
||||
* The cached value of the '{@link #getObjetsRecus() <em>Objets Recus</em>}' containment reference list.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getObjetsRecus()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected EList<String> objetsRecus;
|
||||
protected EList<Nom> objetsRecus;
|
||||
|
||||
/**
|
||||
* The cached value of the '{@link #getObjetsConso() <em>Objets Conso</em>}' attribute list.
|
||||
* The cached value of the '{@link #getObjetsConso() <em>Objets Conso</em>}' containment reference list.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getObjetsConso()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected EList<String> objetsConso;
|
||||
protected EList<Nom> objetsConso;
|
||||
|
||||
/**
|
||||
* The cached value of the '{@link #getDescriptions() <em>Descriptions</em>}' containment reference list.
|
||||
|
@ -232,11 +232,11 @@ public class ActionImpl extends MinimalEObjectImpl.Container implements Action
|
|||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public EList<String> getConnaissances()
|
||||
public EList<Nom> getConnaissances()
|
||||
{
|
||||
if (connaissances == null)
|
||||
{
|
||||
connaissances = new EDataTypeEList<String>(String.class, this, GAMEPackage.ACTION__CONNAISSANCES);
|
||||
connaissances = new EObjectContainmentEList<Nom>(Nom.class, this, GAMEPackage.ACTION__CONNAISSANCES);
|
||||
}
|
||||
return connaissances;
|
||||
}
|
||||
|
@ -247,11 +247,11 @@ public class ActionImpl extends MinimalEObjectImpl.Container implements Action
|
|||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public EList<String> getObjetsRecus()
|
||||
public EList<Nom> getObjetsRecus()
|
||||
{
|
||||
if (objetsRecus == null)
|
||||
{
|
||||
objetsRecus = new EDataTypeEList<String>(String.class, this, GAMEPackage.ACTION__OBJETS_RECUS);
|
||||
objetsRecus = new EObjectContainmentEList<Nom>(Nom.class, this, GAMEPackage.ACTION__OBJETS_RECUS);
|
||||
}
|
||||
return objetsRecus;
|
||||
}
|
||||
|
@ -262,11 +262,11 @@ public class ActionImpl extends MinimalEObjectImpl.Container implements Action
|
|||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public EList<String> getObjetsConso()
|
||||
public EList<Nom> getObjetsConso()
|
||||
{
|
||||
if (objetsConso == null)
|
||||
{
|
||||
objetsConso = new EDataTypeEList<String>(String.class, this, GAMEPackage.ACTION__OBJETS_CONSO);
|
||||
objetsConso = new EObjectContainmentEList<Nom>(Nom.class, this, GAMEPackage.ACTION__OBJETS_CONSO);
|
||||
}
|
||||
return objetsConso;
|
||||
}
|
||||
|
@ -300,6 +300,12 @@ public class ActionImpl extends MinimalEObjectImpl.Container implements Action
|
|||
return basicSetVisible(null, msgs);
|
||||
case GAMEPackage.ACTION__FIN_INTERACTION:
|
||||
return basicSetFinInteraction(null, msgs);
|
||||
case GAMEPackage.ACTION__CONNAISSANCES:
|
||||
return ((InternalEList<?>)getConnaissances()).basicRemove(otherEnd, msgs);
|
||||
case GAMEPackage.ACTION__OBJETS_RECUS:
|
||||
return ((InternalEList<?>)getObjetsRecus()).basicRemove(otherEnd, msgs);
|
||||
case GAMEPackage.ACTION__OBJETS_CONSO:
|
||||
return ((InternalEList<?>)getObjetsConso()).basicRemove(otherEnd, msgs);
|
||||
case GAMEPackage.ACTION__DESCRIPTIONS:
|
||||
return ((InternalEList<?>)getDescriptions()).basicRemove(otherEnd, msgs);
|
||||
}
|
||||
|
@ -351,15 +357,15 @@ public class ActionImpl extends MinimalEObjectImpl.Container implements Action
|
|||
return;
|
||||
case GAMEPackage.ACTION__CONNAISSANCES:
|
||||
getConnaissances().clear();
|
||||
getConnaissances().addAll((Collection<? extends String>)newValue);
|
||||
getConnaissances().addAll((Collection<? extends Nom>)newValue);
|
||||
return;
|
||||
case GAMEPackage.ACTION__OBJETS_RECUS:
|
||||
getObjetsRecus().clear();
|
||||
getObjetsRecus().addAll((Collection<? extends String>)newValue);
|
||||
getObjetsRecus().addAll((Collection<? extends Nom>)newValue);
|
||||
return;
|
||||
case GAMEPackage.ACTION__OBJETS_CONSO:
|
||||
getObjetsConso().clear();
|
||||
getObjetsConso().addAll((Collection<? extends String>)newValue);
|
||||
getObjetsConso().addAll((Collection<? extends Nom>)newValue);
|
||||
return;
|
||||
case GAMEPackage.ACTION__DESCRIPTIONS:
|
||||
getDescriptions().clear();
|
||||
|
@ -427,25 +433,4 @@ public class ActionImpl extends MinimalEObjectImpl.Container implements Action
|
|||
return super.eIsSet(featureID);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public String toString()
|
||||
{
|
||||
if (eIsProxy()) return super.toString();
|
||||
|
||||
StringBuilder result = new StringBuilder(super.toString());
|
||||
result.append(" (connaissances: ");
|
||||
result.append(connaissances);
|
||||
result.append(", objetsRecus: ");
|
||||
result.append(objetsRecus);
|
||||
result.append(", objetsConso: ");
|
||||
result.append(objetsConso);
|
||||
result.append(')');
|
||||
return result.toString();
|
||||
}
|
||||
|
||||
} //ActionImpl
|
||||
|
|
|
@ -7,6 +7,7 @@ import fr.n7.xtext.gAME.Chemin;
|
|||
import fr.n7.xtext.gAME.Condition;
|
||||
import fr.n7.xtext.gAME.Description;
|
||||
import fr.n7.xtext.gAME.GAMEPackage;
|
||||
import fr.n7.xtext.gAME.Nom;
|
||||
|
||||
import java.util.Collection;
|
||||
|
||||
|
@ -21,7 +22,6 @@ import org.eclipse.emf.ecore.InternalEObject;
|
|||
import org.eclipse.emf.ecore.impl.ENotificationImpl;
|
||||
import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
|
||||
|
||||
import org.eclipse.emf.ecore.util.EDataTypeEList;
|
||||
import org.eclipse.emf.ecore.util.EObjectContainmentEList;
|
||||
import org.eclipse.emf.ecore.util.InternalEList;
|
||||
|
||||
|
@ -49,44 +49,24 @@ import org.eclipse.emf.ecore.util.InternalEList;
|
|||
public class CheminImpl extends MinimalEObjectImpl.Container implements Chemin
|
||||
{
|
||||
/**
|
||||
* The default value of the '{@link #getLieuIn() <em>Lieu In</em>}' attribute.
|
||||
* The cached value of the '{@link #getLieuIn() <em>Lieu In</em>}' containment reference.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getLieuIn()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected static final String LIEU_IN_EDEFAULT = null;
|
||||
protected Nom lieuIn;
|
||||
|
||||
/**
|
||||
* The cached value of the '{@link #getLieuIn() <em>Lieu In</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getLieuIn()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected String lieuIn = LIEU_IN_EDEFAULT;
|
||||
|
||||
/**
|
||||
* The default value of the '{@link #getLieuOut() <em>Lieu Out</em>}' attribute.
|
||||
* The cached value of the '{@link #getLieuOut() <em>Lieu Out</em>}' containment reference.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getLieuOut()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected static final String LIEU_OUT_EDEFAULT = null;
|
||||
|
||||
/**
|
||||
* The cached value of the '{@link #getLieuOut() <em>Lieu Out</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getLieuOut()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected String lieuOut = LIEU_OUT_EDEFAULT;
|
||||
protected Nom lieuOut;
|
||||
|
||||
/**
|
||||
* The cached value of the '{@link #getOuvert() <em>Ouvert</em>}' containment reference.
|
||||
|
@ -119,34 +99,34 @@ public class CheminImpl extends MinimalEObjectImpl.Container implements Chemin
|
|||
protected Condition obligatoire;
|
||||
|
||||
/**
|
||||
* The cached value of the '{@link #getConnaissances() <em>Connaissances</em>}' attribute list.
|
||||
* The cached value of the '{@link #getConnaissances() <em>Connaissances</em>}' containment reference list.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getConnaissances()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected EList<String> connaissances;
|
||||
protected EList<Nom> connaissances;
|
||||
|
||||
/**
|
||||
* The cached value of the '{@link #getObjetsRecus() <em>Objets Recus</em>}' attribute list.
|
||||
* The cached value of the '{@link #getObjetsRecus() <em>Objets Recus</em>}' containment reference list.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getObjetsRecus()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected EList<String> objetsRecus;
|
||||
protected EList<Nom> objetsRecus;
|
||||
|
||||
/**
|
||||
* The cached value of the '{@link #getObjetsConso() <em>Objets Conso</em>}' attribute list.
|
||||
* The cached value of the '{@link #getObjetsConso() <em>Objets Conso</em>}' containment reference list.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getObjetsConso()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected EList<String> objetsConso;
|
||||
protected EList<Nom> objetsConso;
|
||||
|
||||
/**
|
||||
* The cached value of the '{@link #getDescriptions() <em>Descriptions</em>}' containment reference list.
|
||||
|
@ -185,7 +165,7 @@ public class CheminImpl extends MinimalEObjectImpl.Container implements Chemin
|
|||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public String getLieuIn()
|
||||
public Nom getLieuIn()
|
||||
{
|
||||
return lieuIn;
|
||||
}
|
||||
|
@ -195,13 +175,16 @@ public class CheminImpl extends MinimalEObjectImpl.Container implements Chemin
|
|||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public void setLieuIn(String newLieuIn)
|
||||
public NotificationChain basicSetLieuIn(Nom newLieuIn, NotificationChain msgs)
|
||||
{
|
||||
String oldLieuIn = lieuIn;
|
||||
Nom oldLieuIn = lieuIn;
|
||||
lieuIn = newLieuIn;
|
||||
if (eNotificationRequired())
|
||||
eNotify(new ENotificationImpl(this, Notification.SET, GAMEPackage.CHEMIN__LIEU_IN, oldLieuIn, lieuIn));
|
||||
{
|
||||
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, GAMEPackage.CHEMIN__LIEU_IN, oldLieuIn, newLieuIn);
|
||||
if (msgs == null) msgs = notification; else msgs.add(notification);
|
||||
}
|
||||
return msgs;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -210,7 +193,29 @@ public class CheminImpl extends MinimalEObjectImpl.Container implements Chemin
|
|||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public String getLieuOut()
|
||||
public void setLieuIn(Nom newLieuIn)
|
||||
{
|
||||
if (newLieuIn != lieuIn)
|
||||
{
|
||||
NotificationChain msgs = null;
|
||||
if (lieuIn != null)
|
||||
msgs = ((InternalEObject)lieuIn).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - GAMEPackage.CHEMIN__LIEU_IN, null, msgs);
|
||||
if (newLieuIn != null)
|
||||
msgs = ((InternalEObject)newLieuIn).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - GAMEPackage.CHEMIN__LIEU_IN, null, msgs);
|
||||
msgs = basicSetLieuIn(newLieuIn, msgs);
|
||||
if (msgs != null) msgs.dispatch();
|
||||
}
|
||||
else if (eNotificationRequired())
|
||||
eNotify(new ENotificationImpl(this, Notification.SET, GAMEPackage.CHEMIN__LIEU_IN, newLieuIn, newLieuIn));
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public Nom getLieuOut()
|
||||
{
|
||||
return lieuOut;
|
||||
}
|
||||
|
@ -220,13 +225,38 @@ public class CheminImpl extends MinimalEObjectImpl.Container implements Chemin
|
|||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public void setLieuOut(String newLieuOut)
|
||||
public NotificationChain basicSetLieuOut(Nom newLieuOut, NotificationChain msgs)
|
||||
{
|
||||
String oldLieuOut = lieuOut;
|
||||
Nom oldLieuOut = lieuOut;
|
||||
lieuOut = newLieuOut;
|
||||
if (eNotificationRequired())
|
||||
eNotify(new ENotificationImpl(this, Notification.SET, GAMEPackage.CHEMIN__LIEU_OUT, oldLieuOut, lieuOut));
|
||||
{
|
||||
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, GAMEPackage.CHEMIN__LIEU_OUT, oldLieuOut, newLieuOut);
|
||||
if (msgs == null) msgs = notification; else msgs.add(notification);
|
||||
}
|
||||
return msgs;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public void setLieuOut(Nom newLieuOut)
|
||||
{
|
||||
if (newLieuOut != lieuOut)
|
||||
{
|
||||
NotificationChain msgs = null;
|
||||
if (lieuOut != null)
|
||||
msgs = ((InternalEObject)lieuOut).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - GAMEPackage.CHEMIN__LIEU_OUT, null, msgs);
|
||||
if (newLieuOut != null)
|
||||
msgs = ((InternalEObject)newLieuOut).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - GAMEPackage.CHEMIN__LIEU_OUT, null, msgs);
|
||||
msgs = basicSetLieuOut(newLieuOut, msgs);
|
||||
if (msgs != null) msgs.dispatch();
|
||||
}
|
||||
else if (eNotificationRequired())
|
||||
eNotify(new ENotificationImpl(this, Notification.SET, GAMEPackage.CHEMIN__LIEU_OUT, newLieuOut, newLieuOut));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -385,11 +415,11 @@ public class CheminImpl extends MinimalEObjectImpl.Container implements Chemin
|
|||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public EList<String> getConnaissances()
|
||||
public EList<Nom> getConnaissances()
|
||||
{
|
||||
if (connaissances == null)
|
||||
{
|
||||
connaissances = new EDataTypeEList<String>(String.class, this, GAMEPackage.CHEMIN__CONNAISSANCES);
|
||||
connaissances = new EObjectContainmentEList<Nom>(Nom.class, this, GAMEPackage.CHEMIN__CONNAISSANCES);
|
||||
}
|
||||
return connaissances;
|
||||
}
|
||||
|
@ -400,11 +430,11 @@ public class CheminImpl extends MinimalEObjectImpl.Container implements Chemin
|
|||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public EList<String> getObjetsRecus()
|
||||
public EList<Nom> getObjetsRecus()
|
||||
{
|
||||
if (objetsRecus == null)
|
||||
{
|
||||
objetsRecus = new EDataTypeEList<String>(String.class, this, GAMEPackage.CHEMIN__OBJETS_RECUS);
|
||||
objetsRecus = new EObjectContainmentEList<Nom>(Nom.class, this, GAMEPackage.CHEMIN__OBJETS_RECUS);
|
||||
}
|
||||
return objetsRecus;
|
||||
}
|
||||
|
@ -415,11 +445,11 @@ public class CheminImpl extends MinimalEObjectImpl.Container implements Chemin
|
|||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public EList<String> getObjetsConso()
|
||||
public EList<Nom> getObjetsConso()
|
||||
{
|
||||
if (objetsConso == null)
|
||||
{
|
||||
objetsConso = new EDataTypeEList<String>(String.class, this, GAMEPackage.CHEMIN__OBJETS_CONSO);
|
||||
objetsConso = new EObjectContainmentEList<Nom>(Nom.class, this, GAMEPackage.CHEMIN__OBJETS_CONSO);
|
||||
}
|
||||
return objetsConso;
|
||||
}
|
||||
|
@ -449,12 +479,22 @@ public class CheminImpl extends MinimalEObjectImpl.Container implements Chemin
|
|||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case GAMEPackage.CHEMIN__LIEU_IN:
|
||||
return basicSetLieuIn(null, msgs);
|
||||
case GAMEPackage.CHEMIN__LIEU_OUT:
|
||||
return basicSetLieuOut(null, msgs);
|
||||
case GAMEPackage.CHEMIN__OUVERT:
|
||||
return basicSetOuvert(null, msgs);
|
||||
case GAMEPackage.CHEMIN__VISIBLE:
|
||||
return basicSetVisible(null, msgs);
|
||||
case GAMEPackage.CHEMIN__OBLIGATOIRE:
|
||||
return basicSetObligatoire(null, msgs);
|
||||
case GAMEPackage.CHEMIN__CONNAISSANCES:
|
||||
return ((InternalEList<?>)getConnaissances()).basicRemove(otherEnd, msgs);
|
||||
case GAMEPackage.CHEMIN__OBJETS_RECUS:
|
||||
return ((InternalEList<?>)getObjetsRecus()).basicRemove(otherEnd, msgs);
|
||||
case GAMEPackage.CHEMIN__OBJETS_CONSO:
|
||||
return ((InternalEList<?>)getObjetsConso()).basicRemove(otherEnd, msgs);
|
||||
case GAMEPackage.CHEMIN__DESCRIPTIONS:
|
||||
return ((InternalEList<?>)getDescriptions()).basicRemove(otherEnd, msgs);
|
||||
}
|
||||
|
@ -505,10 +545,10 @@ public class CheminImpl extends MinimalEObjectImpl.Container implements Chemin
|
|||
switch (featureID)
|
||||
{
|
||||
case GAMEPackage.CHEMIN__LIEU_IN:
|
||||
setLieuIn((String)newValue);
|
||||
setLieuIn((Nom)newValue);
|
||||
return;
|
||||
case GAMEPackage.CHEMIN__LIEU_OUT:
|
||||
setLieuOut((String)newValue);
|
||||
setLieuOut((Nom)newValue);
|
||||
return;
|
||||
case GAMEPackage.CHEMIN__OUVERT:
|
||||
setOuvert((Condition)newValue);
|
||||
|
@ -521,15 +561,15 @@ public class CheminImpl extends MinimalEObjectImpl.Container implements Chemin
|
|||
return;
|
||||
case GAMEPackage.CHEMIN__CONNAISSANCES:
|
||||
getConnaissances().clear();
|
||||
getConnaissances().addAll((Collection<? extends String>)newValue);
|
||||
getConnaissances().addAll((Collection<? extends Nom>)newValue);
|
||||
return;
|
||||
case GAMEPackage.CHEMIN__OBJETS_RECUS:
|
||||
getObjetsRecus().clear();
|
||||
getObjetsRecus().addAll((Collection<? extends String>)newValue);
|
||||
getObjetsRecus().addAll((Collection<? extends Nom>)newValue);
|
||||
return;
|
||||
case GAMEPackage.CHEMIN__OBJETS_CONSO:
|
||||
getObjetsConso().clear();
|
||||
getObjetsConso().addAll((Collection<? extends String>)newValue);
|
||||
getObjetsConso().addAll((Collection<? extends Nom>)newValue);
|
||||
return;
|
||||
case GAMEPackage.CHEMIN__DESCRIPTIONS:
|
||||
getDescriptions().clear();
|
||||
|
@ -550,10 +590,10 @@ public class CheminImpl extends MinimalEObjectImpl.Container implements Chemin
|
|||
switch (featureID)
|
||||
{
|
||||
case GAMEPackage.CHEMIN__LIEU_IN:
|
||||
setLieuIn(LIEU_IN_EDEFAULT);
|
||||
setLieuIn((Nom)null);
|
||||
return;
|
||||
case GAMEPackage.CHEMIN__LIEU_OUT:
|
||||
setLieuOut(LIEU_OUT_EDEFAULT);
|
||||
setLieuOut((Nom)null);
|
||||
return;
|
||||
case GAMEPackage.CHEMIN__OUVERT:
|
||||
setOuvert((Condition)null);
|
||||
|
@ -591,9 +631,9 @@ public class CheminImpl extends MinimalEObjectImpl.Container implements Chemin
|
|||
switch (featureID)
|
||||
{
|
||||
case GAMEPackage.CHEMIN__LIEU_IN:
|
||||
return LIEU_IN_EDEFAULT == null ? lieuIn != null : !LIEU_IN_EDEFAULT.equals(lieuIn);
|
||||
return lieuIn != null;
|
||||
case GAMEPackage.CHEMIN__LIEU_OUT:
|
||||
return LIEU_OUT_EDEFAULT == null ? lieuOut != null : !LIEU_OUT_EDEFAULT.equals(lieuOut);
|
||||
return lieuOut != null;
|
||||
case GAMEPackage.CHEMIN__OUVERT:
|
||||
return ouvert != null;
|
||||
case GAMEPackage.CHEMIN__VISIBLE:
|
||||
|
@ -612,29 +652,4 @@ public class CheminImpl extends MinimalEObjectImpl.Container implements Chemin
|
|||
return super.eIsSet(featureID);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public String toString()
|
||||
{
|
||||
if (eIsProxy()) return super.toString();
|
||||
|
||||
StringBuilder result = new StringBuilder(super.toString());
|
||||
result.append(" (lieuIn: ");
|
||||
result.append(lieuIn);
|
||||
result.append(", lieuOut: ");
|
||||
result.append(lieuOut);
|
||||
result.append(", connaissances: ");
|
||||
result.append(connaissances);
|
||||
result.append(", objetsRecus: ");
|
||||
result.append(objetsRecus);
|
||||
result.append(", objetsConso: ");
|
||||
result.append(objetsConso);
|
||||
result.append(')');
|
||||
return result.toString();
|
||||
}
|
||||
|
||||
} //CheminImpl
|
||||
|
|
|
@ -5,10 +5,13 @@ package fr.n7.xtext.gAME.impl;
|
|||
|
||||
import fr.n7.xtext.gAME.ConditionConnaissance;
|
||||
import fr.n7.xtext.gAME.GAMEPackage;
|
||||
import fr.n7.xtext.gAME.Nom;
|
||||
|
||||
import org.eclipse.emf.common.notify.Notification;
|
||||
import org.eclipse.emf.common.notify.NotificationChain;
|
||||
|
||||
import org.eclipse.emf.ecore.EClass;
|
||||
import org.eclipse.emf.ecore.InternalEObject;
|
||||
|
||||
import org.eclipse.emf.ecore.impl.ENotificationImpl;
|
||||
|
||||
|
@ -28,24 +31,14 @@ import org.eclipse.emf.ecore.impl.ENotificationImpl;
|
|||
public class ConditionConnaissanceImpl extends ConditionTestImpl implements ConditionConnaissance
|
||||
{
|
||||
/**
|
||||
* The default value of the '{@link #getConnaissance() <em>Connaissance</em>}' attribute.
|
||||
* The cached value of the '{@link #getConnaissance() <em>Connaissance</em>}' containment reference.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getConnaissance()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected static final String CONNAISSANCE_EDEFAULT = null;
|
||||
|
||||
/**
|
||||
* The cached value of the '{@link #getConnaissance() <em>Connaissance</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getConnaissance()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected String connaissance = CONNAISSANCE_EDEFAULT;
|
||||
protected Nom connaissance;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
|
@ -74,7 +67,7 @@ public class ConditionConnaissanceImpl extends ConditionTestImpl implements Cond
|
|||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public String getConnaissance()
|
||||
public Nom getConnaissance()
|
||||
{
|
||||
return connaissance;
|
||||
}
|
||||
|
@ -84,13 +77,54 @@ public class ConditionConnaissanceImpl extends ConditionTestImpl implements Cond
|
|||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public void setConnaissance(String newConnaissance)
|
||||
public NotificationChain basicSetConnaissance(Nom newConnaissance, NotificationChain msgs)
|
||||
{
|
||||
String oldConnaissance = connaissance;
|
||||
Nom oldConnaissance = connaissance;
|
||||
connaissance = newConnaissance;
|
||||
if (eNotificationRequired())
|
||||
eNotify(new ENotificationImpl(this, Notification.SET, GAMEPackage.CONDITION_CONNAISSANCE__CONNAISSANCE, oldConnaissance, connaissance));
|
||||
{
|
||||
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, GAMEPackage.CONDITION_CONNAISSANCE__CONNAISSANCE, oldConnaissance, newConnaissance);
|
||||
if (msgs == null) msgs = notification; else msgs.add(notification);
|
||||
}
|
||||
return msgs;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public void setConnaissance(Nom newConnaissance)
|
||||
{
|
||||
if (newConnaissance != connaissance)
|
||||
{
|
||||
NotificationChain msgs = null;
|
||||
if (connaissance != null)
|
||||
msgs = ((InternalEObject)connaissance).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - GAMEPackage.CONDITION_CONNAISSANCE__CONNAISSANCE, null, msgs);
|
||||
if (newConnaissance != null)
|
||||
msgs = ((InternalEObject)newConnaissance).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - GAMEPackage.CONDITION_CONNAISSANCE__CONNAISSANCE, null, msgs);
|
||||
msgs = basicSetConnaissance(newConnaissance, msgs);
|
||||
if (msgs != null) msgs.dispatch();
|
||||
}
|
||||
else if (eNotificationRequired())
|
||||
eNotify(new ENotificationImpl(this, Notification.SET, GAMEPackage.CONDITION_CONNAISSANCE__CONNAISSANCE, newConnaissance, newConnaissance));
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case GAMEPackage.CONDITION_CONNAISSANCE__CONNAISSANCE:
|
||||
return basicSetConnaissance(null, msgs);
|
||||
}
|
||||
return super.eInverseRemove(otherEnd, featureID, msgs);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -120,7 +154,7 @@ public class ConditionConnaissanceImpl extends ConditionTestImpl implements Cond
|
|||
switch (featureID)
|
||||
{
|
||||
case GAMEPackage.CONDITION_CONNAISSANCE__CONNAISSANCE:
|
||||
setConnaissance((String)newValue);
|
||||
setConnaissance((Nom)newValue);
|
||||
return;
|
||||
}
|
||||
super.eSet(featureID, newValue);
|
||||
|
@ -137,7 +171,7 @@ public class ConditionConnaissanceImpl extends ConditionTestImpl implements Cond
|
|||
switch (featureID)
|
||||
{
|
||||
case GAMEPackage.CONDITION_CONNAISSANCE__CONNAISSANCE:
|
||||
setConnaissance(CONNAISSANCE_EDEFAULT);
|
||||
setConnaissance((Nom)null);
|
||||
return;
|
||||
}
|
||||
super.eUnset(featureID);
|
||||
|
@ -154,26 +188,9 @@ public class ConditionConnaissanceImpl extends ConditionTestImpl implements Cond
|
|||
switch (featureID)
|
||||
{
|
||||
case GAMEPackage.CONDITION_CONNAISSANCE__CONNAISSANCE:
|
||||
return CONNAISSANCE_EDEFAULT == null ? connaissance != null : !CONNAISSANCE_EDEFAULT.equals(connaissance);
|
||||
return connaissance != null;
|
||||
}
|
||||
return super.eIsSet(featureID);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public String toString()
|
||||
{
|
||||
if (eIsProxy()) return super.toString();
|
||||
|
||||
StringBuilder result = new StringBuilder(super.toString());
|
||||
result.append(" (connaissance: ");
|
||||
result.append(connaissance);
|
||||
result.append(')');
|
||||
return result.toString();
|
||||
}
|
||||
|
||||
} //ConditionConnaissanceImpl
|
||||
|
|
|
@ -5,10 +5,13 @@ package fr.n7.xtext.gAME.impl;
|
|||
|
||||
import fr.n7.xtext.gAME.ConditionObjet;
|
||||
import fr.n7.xtext.gAME.GAMEPackage;
|
||||
import fr.n7.xtext.gAME.Nom;
|
||||
|
||||
import org.eclipse.emf.common.notify.Notification;
|
||||
import org.eclipse.emf.common.notify.NotificationChain;
|
||||
|
||||
import org.eclipse.emf.ecore.EClass;
|
||||
import org.eclipse.emf.ecore.InternalEObject;
|
||||
|
||||
import org.eclipse.emf.ecore.impl.ENotificationImpl;
|
||||
|
||||
|
@ -30,24 +33,14 @@ import org.eclipse.emf.ecore.impl.ENotificationImpl;
|
|||
public class ConditionObjetImpl extends ConditionTestImpl implements ConditionObjet
|
||||
{
|
||||
/**
|
||||
* The default value of the '{@link #getObjet() <em>Objet</em>}' attribute.
|
||||
* The cached value of the '{@link #getObjet() <em>Objet</em>}' containment reference.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getObjet()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected static final String OBJET_EDEFAULT = null;
|
||||
|
||||
/**
|
||||
* The cached value of the '{@link #getObjet() <em>Objet</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getObjet()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected String objet = OBJET_EDEFAULT;
|
||||
protected Nom objet;
|
||||
|
||||
/**
|
||||
* The default value of the '{@link #getComparateur() <em>Comparateur</em>}' attribute.
|
||||
|
@ -116,7 +109,7 @@ public class ConditionObjetImpl extends ConditionTestImpl implements ConditionOb
|
|||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public String getObjet()
|
||||
public Nom getObjet()
|
||||
{
|
||||
return objet;
|
||||
}
|
||||
|
@ -126,13 +119,38 @@ public class ConditionObjetImpl extends ConditionTestImpl implements ConditionOb
|
|||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public void setObjet(String newObjet)
|
||||
public NotificationChain basicSetObjet(Nom newObjet, NotificationChain msgs)
|
||||
{
|
||||
String oldObjet = objet;
|
||||
Nom oldObjet = objet;
|
||||
objet = newObjet;
|
||||
if (eNotificationRequired())
|
||||
eNotify(new ENotificationImpl(this, Notification.SET, GAMEPackage.CONDITION_OBJET__OBJET, oldObjet, objet));
|
||||
{
|
||||
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, GAMEPackage.CONDITION_OBJET__OBJET, oldObjet, newObjet);
|
||||
if (msgs == null) msgs = notification; else msgs.add(notification);
|
||||
}
|
||||
return msgs;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public void setObjet(Nom newObjet)
|
||||
{
|
||||
if (newObjet != objet)
|
||||
{
|
||||
NotificationChain msgs = null;
|
||||
if (objet != null)
|
||||
msgs = ((InternalEObject)objet).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - GAMEPackage.CONDITION_OBJET__OBJET, null, msgs);
|
||||
if (newObjet != null)
|
||||
msgs = ((InternalEObject)newObjet).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - GAMEPackage.CONDITION_OBJET__OBJET, null, msgs);
|
||||
msgs = basicSetObjet(newObjet, msgs);
|
||||
if (msgs != null) msgs.dispatch();
|
||||
}
|
||||
else if (eNotificationRequired())
|
||||
eNotify(new ENotificationImpl(this, Notification.SET, GAMEPackage.CONDITION_OBJET__OBJET, newObjet, newObjet));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -185,6 +203,22 @@ public class ConditionObjetImpl extends ConditionTestImpl implements ConditionOb
|
|||
eNotify(new ENotificationImpl(this, Notification.SET, GAMEPackage.CONDITION_OBJET__NOMBRE, oldNombre, nombre));
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case GAMEPackage.CONDITION_OBJET__OBJET:
|
||||
return basicSetObjet(null, msgs);
|
||||
}
|
||||
return super.eInverseRemove(otherEnd, featureID, msgs);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
|
@ -216,7 +250,7 @@ public class ConditionObjetImpl extends ConditionTestImpl implements ConditionOb
|
|||
switch (featureID)
|
||||
{
|
||||
case GAMEPackage.CONDITION_OBJET__OBJET:
|
||||
setObjet((String)newValue);
|
||||
setObjet((Nom)newValue);
|
||||
return;
|
||||
case GAMEPackage.CONDITION_OBJET__COMPARATEUR:
|
||||
setComparateur((String)newValue);
|
||||
|
@ -239,7 +273,7 @@ public class ConditionObjetImpl extends ConditionTestImpl implements ConditionOb
|
|||
switch (featureID)
|
||||
{
|
||||
case GAMEPackage.CONDITION_OBJET__OBJET:
|
||||
setObjet(OBJET_EDEFAULT);
|
||||
setObjet((Nom)null);
|
||||
return;
|
||||
case GAMEPackage.CONDITION_OBJET__COMPARATEUR:
|
||||
setComparateur(COMPARATEUR_EDEFAULT);
|
||||
|
@ -262,7 +296,7 @@ public class ConditionObjetImpl extends ConditionTestImpl implements ConditionOb
|
|||
switch (featureID)
|
||||
{
|
||||
case GAMEPackage.CONDITION_OBJET__OBJET:
|
||||
return OBJET_EDEFAULT == null ? objet != null : !OBJET_EDEFAULT.equals(objet);
|
||||
return objet != null;
|
||||
case GAMEPackage.CONDITION_OBJET__COMPARATEUR:
|
||||
return COMPARATEUR_EDEFAULT == null ? comparateur != null : !COMPARATEUR_EDEFAULT.equals(comparateur);
|
||||
case GAMEPackage.CONDITION_OBJET__NOMBRE:
|
||||
|
@ -282,9 +316,7 @@ public class ConditionObjetImpl extends ConditionTestImpl implements ConditionOb
|
|||
if (eIsProxy()) return super.toString();
|
||||
|
||||
StringBuilder result = new StringBuilder(super.toString());
|
||||
result.append(" (objet: ");
|
||||
result.append(objet);
|
||||
result.append(", comparateur: ");
|
||||
result.append(" (comparateur: ");
|
||||
result.append(comparateur);
|
||||
result.append(", nombre: ");
|
||||
result.append(nombre);
|
||||
|
|
|
@ -7,6 +7,7 @@ import fr.n7.xtext.gAME.Condition;
|
|||
import fr.n7.xtext.gAME.Connaissance;
|
||||
import fr.n7.xtext.gAME.Description;
|
||||
import fr.n7.xtext.gAME.GAMEPackage;
|
||||
import fr.n7.xtext.gAME.Nom;
|
||||
|
||||
import java.util.Collection;
|
||||
|
||||
|
@ -42,24 +43,14 @@ import org.eclipse.emf.ecore.util.InternalEList;
|
|||
public class ConnaissanceImpl extends MinimalEObjectImpl.Container implements Connaissance
|
||||
{
|
||||
/**
|
||||
* The default value of the '{@link #getNom() <em>Nom</em>}' attribute.
|
||||
* The cached value of the '{@link #getNom() <em>Nom</em>}' containment reference.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getNom()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected static final String NOM_EDEFAULT = null;
|
||||
|
||||
/**
|
||||
* The cached value of the '{@link #getNom() <em>Nom</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getNom()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected String nom = NOM_EDEFAULT;
|
||||
protected Nom nom;
|
||||
|
||||
/**
|
||||
* The cached value of the '{@link #getVisible() <em>Visible</em>}' containment reference.
|
||||
|
@ -108,7 +99,7 @@ public class ConnaissanceImpl extends MinimalEObjectImpl.Container implements Co
|
|||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public String getNom()
|
||||
public Nom getNom()
|
||||
{
|
||||
return nom;
|
||||
}
|
||||
|
@ -118,13 +109,38 @@ public class ConnaissanceImpl extends MinimalEObjectImpl.Container implements Co
|
|||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public void setNom(String newNom)
|
||||
public NotificationChain basicSetNom(Nom newNom, NotificationChain msgs)
|
||||
{
|
||||
String oldNom = nom;
|
||||
Nom oldNom = nom;
|
||||
nom = newNom;
|
||||
if (eNotificationRequired())
|
||||
eNotify(new ENotificationImpl(this, Notification.SET, GAMEPackage.CONNAISSANCE__NOM, oldNom, nom));
|
||||
{
|
||||
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, GAMEPackage.CONNAISSANCE__NOM, oldNom, newNom);
|
||||
if (msgs == null) msgs = notification; else msgs.add(notification);
|
||||
}
|
||||
return msgs;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public void setNom(Nom newNom)
|
||||
{
|
||||
if (newNom != nom)
|
||||
{
|
||||
NotificationChain msgs = null;
|
||||
if (nom != null)
|
||||
msgs = ((InternalEObject)nom).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - GAMEPackage.CONNAISSANCE__NOM, null, msgs);
|
||||
if (newNom != null)
|
||||
msgs = ((InternalEObject)newNom).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - GAMEPackage.CONNAISSANCE__NOM, null, msgs);
|
||||
msgs = basicSetNom(newNom, msgs);
|
||||
if (msgs != null) msgs.dispatch();
|
||||
}
|
||||
else if (eNotificationRequired())
|
||||
eNotify(new ENotificationImpl(this, Notification.SET, GAMEPackage.CONNAISSANCE__NOM, newNom, newNom));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -202,6 +218,8 @@ public class ConnaissanceImpl extends MinimalEObjectImpl.Container implements Co
|
|||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case GAMEPackage.CONNAISSANCE__NOM:
|
||||
return basicSetNom(null, msgs);
|
||||
case GAMEPackage.CONNAISSANCE__VISIBLE:
|
||||
return basicSetVisible(null, msgs);
|
||||
case GAMEPackage.CONNAISSANCE__DESCRIPTIONS:
|
||||
|
@ -242,7 +260,7 @@ public class ConnaissanceImpl extends MinimalEObjectImpl.Container implements Co
|
|||
switch (featureID)
|
||||
{
|
||||
case GAMEPackage.CONNAISSANCE__NOM:
|
||||
setNom((String)newValue);
|
||||
setNom((Nom)newValue);
|
||||
return;
|
||||
case GAMEPackage.CONNAISSANCE__VISIBLE:
|
||||
setVisible((Condition)newValue);
|
||||
|
@ -266,7 +284,7 @@ public class ConnaissanceImpl extends MinimalEObjectImpl.Container implements Co
|
|||
switch (featureID)
|
||||
{
|
||||
case GAMEPackage.CONNAISSANCE__NOM:
|
||||
setNom(NOM_EDEFAULT);
|
||||
setNom((Nom)null);
|
||||
return;
|
||||
case GAMEPackage.CONNAISSANCE__VISIBLE:
|
||||
setVisible((Condition)null);
|
||||
|
@ -289,7 +307,7 @@ public class ConnaissanceImpl extends MinimalEObjectImpl.Container implements Co
|
|||
switch (featureID)
|
||||
{
|
||||
case GAMEPackage.CONNAISSANCE__NOM:
|
||||
return NOM_EDEFAULT == null ? nom != null : !NOM_EDEFAULT.equals(nom);
|
||||
return nom != null;
|
||||
case GAMEPackage.CONNAISSANCE__VISIBLE:
|
||||
return visible != null;
|
||||
case GAMEPackage.CONNAISSANCE__DESCRIPTIONS:
|
||||
|
@ -298,21 +316,4 @@ public class ConnaissanceImpl extends MinimalEObjectImpl.Container implements Co
|
|||
return super.eIsSet(featureID);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public String toString()
|
||||
{
|
||||
if (eIsProxy()) return super.toString();
|
||||
|
||||
StringBuilder result = new StringBuilder(super.toString());
|
||||
result.append(" (nom: ");
|
||||
result.append(nom);
|
||||
result.append(')');
|
||||
return result.toString();
|
||||
}
|
||||
|
||||
} //ConnaissanceImpl
|
||||
|
|
|
@ -5,19 +5,23 @@ package fr.n7.xtext.gAME.impl;
|
|||
|
||||
import fr.n7.xtext.gAME.Explorateur;
|
||||
import fr.n7.xtext.gAME.GAMEPackage;
|
||||
import fr.n7.xtext.gAME.Nom;
|
||||
|
||||
import java.util.Collection;
|
||||
|
||||
import org.eclipse.emf.common.notify.Notification;
|
||||
import org.eclipse.emf.common.notify.NotificationChain;
|
||||
|
||||
import org.eclipse.emf.common.util.EList;
|
||||
|
||||
import org.eclipse.emf.ecore.EClass;
|
||||
import org.eclipse.emf.ecore.InternalEObject;
|
||||
|
||||
import org.eclipse.emf.ecore.impl.ENotificationImpl;
|
||||
import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
|
||||
|
||||
import org.eclipse.emf.ecore.util.EDataTypeEList;
|
||||
import org.eclipse.emf.ecore.util.EObjectContainmentEList;
|
||||
import org.eclipse.emf.ecore.util.InternalEList;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
|
@ -57,24 +61,24 @@ public class ExplorateurImpl extends MinimalEObjectImpl.Container implements Exp
|
|||
protected int tailleInventaire = TAILLE_INVENTAIRE_EDEFAULT;
|
||||
|
||||
/**
|
||||
* The cached value of the '{@link #getConnaissances() <em>Connaissances</em>}' attribute list.
|
||||
* The cached value of the '{@link #getConnaissances() <em>Connaissances</em>}' containment reference list.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getConnaissances()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected EList<String> connaissances;
|
||||
protected EList<Nom> connaissances;
|
||||
|
||||
/**
|
||||
* The cached value of the '{@link #getObjets() <em>Objets</em>}' attribute list.
|
||||
* The cached value of the '{@link #getObjets() <em>Objets</em>}' containment reference list.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getObjets()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected EList<String> objets;
|
||||
protected EList<Nom> objets;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
|
@ -128,11 +132,11 @@ public class ExplorateurImpl extends MinimalEObjectImpl.Container implements Exp
|
|||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public EList<String> getConnaissances()
|
||||
public EList<Nom> getConnaissances()
|
||||
{
|
||||
if (connaissances == null)
|
||||
{
|
||||
connaissances = new EDataTypeEList<String>(String.class, this, GAMEPackage.EXPLORATEUR__CONNAISSANCES);
|
||||
connaissances = new EObjectContainmentEList<Nom>(Nom.class, this, GAMEPackage.EXPLORATEUR__CONNAISSANCES);
|
||||
}
|
||||
return connaissances;
|
||||
}
|
||||
|
@ -143,15 +147,33 @@ public class ExplorateurImpl extends MinimalEObjectImpl.Container implements Exp
|
|||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public EList<String> getObjets()
|
||||
public EList<Nom> getObjets()
|
||||
{
|
||||
if (objets == null)
|
||||
{
|
||||
objets = new EDataTypeEList<String>(String.class, this, GAMEPackage.EXPLORATEUR__OBJETS);
|
||||
objets = new EObjectContainmentEList<Nom>(Nom.class, this, GAMEPackage.EXPLORATEUR__OBJETS);
|
||||
}
|
||||
return objets;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case GAMEPackage.EXPLORATEUR__CONNAISSANCES:
|
||||
return ((InternalEList<?>)getConnaissances()).basicRemove(otherEnd, msgs);
|
||||
case GAMEPackage.EXPLORATEUR__OBJETS:
|
||||
return ((InternalEList<?>)getObjets()).basicRemove(otherEnd, msgs);
|
||||
}
|
||||
return super.eInverseRemove(otherEnd, featureID, msgs);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
|
@ -188,11 +210,11 @@ public class ExplorateurImpl extends MinimalEObjectImpl.Container implements Exp
|
|||
return;
|
||||
case GAMEPackage.EXPLORATEUR__CONNAISSANCES:
|
||||
getConnaissances().clear();
|
||||
getConnaissances().addAll((Collection<? extends String>)newValue);
|
||||
getConnaissances().addAll((Collection<? extends Nom>)newValue);
|
||||
return;
|
||||
case GAMEPackage.EXPLORATEUR__OBJETS:
|
||||
getObjets().clear();
|
||||
getObjets().addAll((Collection<? extends String>)newValue);
|
||||
getObjets().addAll((Collection<? extends Nom>)newValue);
|
||||
return;
|
||||
}
|
||||
super.eSet(featureID, newValue);
|
||||
|
@ -254,10 +276,6 @@ public class ExplorateurImpl extends MinimalEObjectImpl.Container implements Exp
|
|||
StringBuilder result = new StringBuilder(super.toString());
|
||||
result.append(" (tailleInventaire: ");
|
||||
result.append(tailleInventaire);
|
||||
result.append(", connaissances: ");
|
||||
result.append(connaissances);
|
||||
result.append(", objets: ");
|
||||
result.append(objets);
|
||||
result.append(')');
|
||||
return result.toString();
|
||||
}
|
||||
|
|
|
@ -83,6 +83,7 @@ public class GAMEFactoryImpl extends EFactoryImpl implements GAMEFactory
|
|||
case GAMEPackage.CONDITION_CONNAISSANCE: return createConditionConnaissance();
|
||||
case GAMEPackage.NOT_CONDITION_CONNAISSANCE: return createNOTConditionConnaissance();
|
||||
case GAMEPackage.CONDITION_OBJET: return createConditionObjet();
|
||||
case GAMEPackage.NOM: return createNom();
|
||||
default:
|
||||
throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
|
||||
}
|
||||
|
@ -304,6 +305,18 @@ public class GAMEFactoryImpl extends EFactoryImpl implements GAMEFactory
|
|||
return conditionObjet;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public Nom createNom()
|
||||
{
|
||||
NomImpl nom = new NomImpl();
|
||||
return nom;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
|
|
|
@ -19,6 +19,7 @@ import fr.n7.xtext.gAME.Interaction;
|
|||
import fr.n7.xtext.gAME.Jeu;
|
||||
import fr.n7.xtext.gAME.Lieu;
|
||||
import fr.n7.xtext.gAME.NOTConditionConnaissance;
|
||||
import fr.n7.xtext.gAME.Nom;
|
||||
import fr.n7.xtext.gAME.Objet;
|
||||
import fr.n7.xtext.gAME.Personne;
|
||||
import fr.n7.xtext.gAME.Territoire;
|
||||
|
@ -165,6 +166,13 @@ public class GAMEPackageImpl extends EPackageImpl implements GAMEPackage
|
|||
*/
|
||||
private EClass conditionObjetEClass = null;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
private EClass nomEClass = null;
|
||||
|
||||
/**
|
||||
* Creates an instance of the model <b>Package</b>, registered with
|
||||
* {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package
|
||||
|
@ -333,9 +341,9 @@ public class GAMEPackageImpl extends EPackageImpl implements GAMEPackage
|
|||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public EAttribute getExplorateur_Connaissances()
|
||||
public EReference getExplorateur_Connaissances()
|
||||
{
|
||||
return (EAttribute)explorateurEClass.getEStructuralFeatures().get(1);
|
||||
return (EReference)explorateurEClass.getEStructuralFeatures().get(1);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -344,9 +352,9 @@ public class GAMEPackageImpl extends EPackageImpl implements GAMEPackage
|
|||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public EAttribute getExplorateur_Objets()
|
||||
public EReference getExplorateur_Objets()
|
||||
{
|
||||
return (EAttribute)explorateurEClass.getEStructuralFeatures().get(2);
|
||||
return (EReference)explorateurEClass.getEStructuralFeatures().get(2);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -399,9 +407,9 @@ public class GAMEPackageImpl extends EPackageImpl implements GAMEPackage
|
|||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public EAttribute getLieu_Nom()
|
||||
public EReference getLieu_Nom()
|
||||
{
|
||||
return (EAttribute)lieuEClass.getEStructuralFeatures().get(0);
|
||||
return (EReference)lieuEClass.getEStructuralFeatures().get(0);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -443,9 +451,9 @@ public class GAMEPackageImpl extends EPackageImpl implements GAMEPackage
|
|||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public EAttribute getLieu_Personnes()
|
||||
public EReference getLieu_Personnes()
|
||||
{
|
||||
return (EAttribute)lieuEClass.getEStructuralFeatures().get(4);
|
||||
return (EReference)lieuEClass.getEStructuralFeatures().get(4);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -465,9 +473,9 @@ public class GAMEPackageImpl extends EPackageImpl implements GAMEPackage
|
|||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public EAttribute getLieu_Objets()
|
||||
public EReference getLieu_Objets()
|
||||
{
|
||||
return (EAttribute)lieuEClass.getEStructuralFeatures().get(6);
|
||||
return (EReference)lieuEClass.getEStructuralFeatures().get(6);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -476,9 +484,9 @@ public class GAMEPackageImpl extends EPackageImpl implements GAMEPackage
|
|||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public EAttribute getLieu_Connaissances()
|
||||
public EReference getLieu_Connaissances()
|
||||
{
|
||||
return (EAttribute)lieuEClass.getEStructuralFeatures().get(7);
|
||||
return (EReference)lieuEClass.getEStructuralFeatures().get(7);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -498,9 +506,9 @@ public class GAMEPackageImpl extends EPackageImpl implements GAMEPackage
|
|||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public EAttribute getChemin_LieuIn()
|
||||
public EReference getChemin_LieuIn()
|
||||
{
|
||||
return (EAttribute)cheminEClass.getEStructuralFeatures().get(0);
|
||||
return (EReference)cheminEClass.getEStructuralFeatures().get(0);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -509,9 +517,9 @@ public class GAMEPackageImpl extends EPackageImpl implements GAMEPackage
|
|||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public EAttribute getChemin_LieuOut()
|
||||
public EReference getChemin_LieuOut()
|
||||
{
|
||||
return (EAttribute)cheminEClass.getEStructuralFeatures().get(1);
|
||||
return (EReference)cheminEClass.getEStructuralFeatures().get(1);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -553,9 +561,9 @@ public class GAMEPackageImpl extends EPackageImpl implements GAMEPackage
|
|||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public EAttribute getChemin_Connaissances()
|
||||
public EReference getChemin_Connaissances()
|
||||
{
|
||||
return (EAttribute)cheminEClass.getEStructuralFeatures().get(5);
|
||||
return (EReference)cheminEClass.getEStructuralFeatures().get(5);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -564,9 +572,9 @@ public class GAMEPackageImpl extends EPackageImpl implements GAMEPackage
|
|||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public EAttribute getChemin_ObjetsRecus()
|
||||
public EReference getChemin_ObjetsRecus()
|
||||
{
|
||||
return (EAttribute)cheminEClass.getEStructuralFeatures().get(6);
|
||||
return (EReference)cheminEClass.getEStructuralFeatures().get(6);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -575,9 +583,9 @@ public class GAMEPackageImpl extends EPackageImpl implements GAMEPackage
|
|||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public EAttribute getChemin_ObjetsConso()
|
||||
public EReference getChemin_ObjetsConso()
|
||||
{
|
||||
return (EAttribute)cheminEClass.getEStructuralFeatures().get(7);
|
||||
return (EReference)cheminEClass.getEStructuralFeatures().get(7);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -608,9 +616,9 @@ public class GAMEPackageImpl extends EPackageImpl implements GAMEPackage
|
|||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public EAttribute getObjet_Nom()
|
||||
public EReference getObjet_Nom()
|
||||
{
|
||||
return (EAttribute)objetEClass.getEStructuralFeatures().get(0);
|
||||
return (EReference)objetEClass.getEStructuralFeatures().get(0);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -674,9 +682,9 @@ public class GAMEPackageImpl extends EPackageImpl implements GAMEPackage
|
|||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public EAttribute getTransformation_ObjetsIn()
|
||||
public EReference getTransformation_ObjetsIn()
|
||||
{
|
||||
return (EAttribute)transformationEClass.getEStructuralFeatures().get(1);
|
||||
return (EReference)transformationEClass.getEStructuralFeatures().get(1);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -685,9 +693,9 @@ public class GAMEPackageImpl extends EPackageImpl implements GAMEPackage
|
|||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public EAttribute getTransformation_ObjetsOut()
|
||||
public EReference getTransformation_ObjetsOut()
|
||||
{
|
||||
return (EAttribute)transformationEClass.getEStructuralFeatures().get(2);
|
||||
return (EReference)transformationEClass.getEStructuralFeatures().get(2);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -707,9 +715,9 @@ public class GAMEPackageImpl extends EPackageImpl implements GAMEPackage
|
|||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public EAttribute getConnaissance_Nom()
|
||||
public EReference getConnaissance_Nom()
|
||||
{
|
||||
return (EAttribute)connaissanceEClass.getEStructuralFeatures().get(0);
|
||||
return (EReference)connaissanceEClass.getEStructuralFeatures().get(0);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -751,9 +759,9 @@ public class GAMEPackageImpl extends EPackageImpl implements GAMEPackage
|
|||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public EAttribute getPersonne_Nom()
|
||||
public EReference getPersonne_Nom()
|
||||
{
|
||||
return (EAttribute)personneEClass.getEStructuralFeatures().get(0);
|
||||
return (EReference)personneEClass.getEStructuralFeatures().get(0);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -817,9 +825,9 @@ public class GAMEPackageImpl extends EPackageImpl implements GAMEPackage
|
|||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public EAttribute getInteraction_Connaissances()
|
||||
public EReference getInteraction_Connaissances()
|
||||
{
|
||||
return (EAttribute)interactionEClass.getEStructuralFeatures().get(1);
|
||||
return (EReference)interactionEClass.getEStructuralFeatures().get(1);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -828,9 +836,9 @@ public class GAMEPackageImpl extends EPackageImpl implements GAMEPackage
|
|||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public EAttribute getInteraction_ObjetsRecus()
|
||||
public EReference getInteraction_ObjetsRecus()
|
||||
{
|
||||
return (EAttribute)interactionEClass.getEStructuralFeatures().get(2);
|
||||
return (EReference)interactionEClass.getEStructuralFeatures().get(2);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -839,9 +847,9 @@ public class GAMEPackageImpl extends EPackageImpl implements GAMEPackage
|
|||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public EAttribute getInteraction_ObjetsConso()
|
||||
public EReference getInteraction_ObjetsConso()
|
||||
{
|
||||
return (EAttribute)interactionEClass.getEStructuralFeatures().get(3);
|
||||
return (EReference)interactionEClass.getEStructuralFeatures().get(3);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -894,9 +902,9 @@ public class GAMEPackageImpl extends EPackageImpl implements GAMEPackage
|
|||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public EAttribute getAction_Connaissances()
|
||||
public EReference getAction_Connaissances()
|
||||
{
|
||||
return (EAttribute)actionEClass.getEStructuralFeatures().get(2);
|
||||
return (EReference)actionEClass.getEStructuralFeatures().get(2);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -905,9 +913,9 @@ public class GAMEPackageImpl extends EPackageImpl implements GAMEPackage
|
|||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public EAttribute getAction_ObjetsRecus()
|
||||
public EReference getAction_ObjetsRecus()
|
||||
{
|
||||
return (EAttribute)actionEClass.getEStructuralFeatures().get(3);
|
||||
return (EReference)actionEClass.getEStructuralFeatures().get(3);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -916,9 +924,9 @@ public class GAMEPackageImpl extends EPackageImpl implements GAMEPackage
|
|||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public EAttribute getAction_ObjetsConso()
|
||||
public EReference getAction_ObjetsConso()
|
||||
{
|
||||
return (EAttribute)actionEClass.getEStructuralFeatures().get(4);
|
||||
return (EReference)actionEClass.getEStructuralFeatures().get(4);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -1037,9 +1045,9 @@ public class GAMEPackageImpl extends EPackageImpl implements GAMEPackage
|
|||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public EAttribute getConditionConnaissance_Connaissance()
|
||||
public EReference getConditionConnaissance_Connaissance()
|
||||
{
|
||||
return (EAttribute)conditionConnaissanceEClass.getEStructuralFeatures().get(0);
|
||||
return (EReference)conditionConnaissanceEClass.getEStructuralFeatures().get(0);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -1059,9 +1067,9 @@ public class GAMEPackageImpl extends EPackageImpl implements GAMEPackage
|
|||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public EAttribute getNOTConditionConnaissance_Connaissance()
|
||||
public EReference getNOTConditionConnaissance_Connaissance()
|
||||
{
|
||||
return (EAttribute)notConditionConnaissanceEClass.getEStructuralFeatures().get(0);
|
||||
return (EReference)notConditionConnaissanceEClass.getEStructuralFeatures().get(0);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -1081,9 +1089,9 @@ public class GAMEPackageImpl extends EPackageImpl implements GAMEPackage
|
|||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public EAttribute getConditionObjet_Objet()
|
||||
public EReference getConditionObjet_Objet()
|
||||
{
|
||||
return (EAttribute)conditionObjetEClass.getEStructuralFeatures().get(0);
|
||||
return (EReference)conditionObjetEClass.getEStructuralFeatures().get(0);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -1108,6 +1116,28 @@ public class GAMEPackageImpl extends EPackageImpl implements GAMEPackage
|
|||
return (EAttribute)conditionObjetEClass.getEStructuralFeatures().get(2);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public EClass getNom()
|
||||
{
|
||||
return nomEClass;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public EAttribute getNom_Nom()
|
||||
{
|
||||
return (EAttribute)nomEClass.getEStructuralFeatures().get(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
|
@ -1149,69 +1179,69 @@ public class GAMEPackageImpl extends EPackageImpl implements GAMEPackage
|
|||
|
||||
explorateurEClass = createEClass(EXPLORATEUR);
|
||||
createEAttribute(explorateurEClass, EXPLORATEUR__TAILLE_INVENTAIRE);
|
||||
createEAttribute(explorateurEClass, EXPLORATEUR__CONNAISSANCES);
|
||||
createEAttribute(explorateurEClass, EXPLORATEUR__OBJETS);
|
||||
createEReference(explorateurEClass, EXPLORATEUR__CONNAISSANCES);
|
||||
createEReference(explorateurEClass, EXPLORATEUR__OBJETS);
|
||||
|
||||
territoireEClass = createEClass(TERRITOIRE);
|
||||
createEReference(territoireEClass, TERRITOIRE__LIEUX);
|
||||
createEReference(territoireEClass, TERRITOIRE__CHEMINS);
|
||||
|
||||
lieuEClass = createEClass(LIEU);
|
||||
createEAttribute(lieuEClass, LIEU__NOM);
|
||||
createEReference(lieuEClass, LIEU__NOM);
|
||||
createEReference(lieuEClass, LIEU__DEPOSABLE);
|
||||
createEReference(lieuEClass, LIEU__DEPART);
|
||||
createEReference(lieuEClass, LIEU__FIN);
|
||||
createEAttribute(lieuEClass, LIEU__PERSONNES);
|
||||
createEReference(lieuEClass, LIEU__PERSONNES);
|
||||
createEReference(lieuEClass, LIEU__DESCRIPTIONS);
|
||||
createEAttribute(lieuEClass, LIEU__OBJETS);
|
||||
createEAttribute(lieuEClass, LIEU__CONNAISSANCES);
|
||||
createEReference(lieuEClass, LIEU__OBJETS);
|
||||
createEReference(lieuEClass, LIEU__CONNAISSANCES);
|
||||
|
||||
cheminEClass = createEClass(CHEMIN);
|
||||
createEAttribute(cheminEClass, CHEMIN__LIEU_IN);
|
||||
createEAttribute(cheminEClass, CHEMIN__LIEU_OUT);
|
||||
createEReference(cheminEClass, CHEMIN__LIEU_IN);
|
||||
createEReference(cheminEClass, CHEMIN__LIEU_OUT);
|
||||
createEReference(cheminEClass, CHEMIN__OUVERT);
|
||||
createEReference(cheminEClass, CHEMIN__VISIBLE);
|
||||
createEReference(cheminEClass, CHEMIN__OBLIGATOIRE);
|
||||
createEAttribute(cheminEClass, CHEMIN__CONNAISSANCES);
|
||||
createEAttribute(cheminEClass, CHEMIN__OBJETS_RECUS);
|
||||
createEAttribute(cheminEClass, CHEMIN__OBJETS_CONSO);
|
||||
createEReference(cheminEClass, CHEMIN__CONNAISSANCES);
|
||||
createEReference(cheminEClass, CHEMIN__OBJETS_RECUS);
|
||||
createEReference(cheminEClass, CHEMIN__OBJETS_CONSO);
|
||||
createEReference(cheminEClass, CHEMIN__DESCRIPTIONS);
|
||||
|
||||
objetEClass = createEClass(OBJET);
|
||||
createEAttribute(objetEClass, OBJET__NOM);
|
||||
createEReference(objetEClass, OBJET__NOM);
|
||||
createEAttribute(objetEClass, OBJET__TAILLE);
|
||||
createEReference(objetEClass, OBJET__VISIBLE);
|
||||
createEReference(objetEClass, OBJET__DESCRIPTIONS);
|
||||
|
||||
transformationEClass = createEClass(TRANSFORMATION);
|
||||
createEReference(transformationEClass, TRANSFORMATION__CONDITION);
|
||||
createEAttribute(transformationEClass, TRANSFORMATION__OBJETS_IN);
|
||||
createEAttribute(transformationEClass, TRANSFORMATION__OBJETS_OUT);
|
||||
createEReference(transformationEClass, TRANSFORMATION__OBJETS_IN);
|
||||
createEReference(transformationEClass, TRANSFORMATION__OBJETS_OUT);
|
||||
|
||||
connaissanceEClass = createEClass(CONNAISSANCE);
|
||||
createEAttribute(connaissanceEClass, CONNAISSANCE__NOM);
|
||||
createEReference(connaissanceEClass, CONNAISSANCE__NOM);
|
||||
createEReference(connaissanceEClass, CONNAISSANCE__VISIBLE);
|
||||
createEReference(connaissanceEClass, CONNAISSANCE__DESCRIPTIONS);
|
||||
|
||||
personneEClass = createEClass(PERSONNE);
|
||||
createEAttribute(personneEClass, PERSONNE__NOM);
|
||||
createEReference(personneEClass, PERSONNE__NOM);
|
||||
createEReference(personneEClass, PERSONNE__VISIBLE);
|
||||
createEReference(personneEClass, PERSONNE__OBLIGATOIRE);
|
||||
createEReference(personneEClass, PERSONNE__INTERACTIONS);
|
||||
|
||||
interactionEClass = createEClass(INTERACTION);
|
||||
createEReference(interactionEClass, INTERACTION__VISIBLE);
|
||||
createEAttribute(interactionEClass, INTERACTION__CONNAISSANCES);
|
||||
createEAttribute(interactionEClass, INTERACTION__OBJETS_RECUS);
|
||||
createEAttribute(interactionEClass, INTERACTION__OBJETS_CONSO);
|
||||
createEReference(interactionEClass, INTERACTION__CONNAISSANCES);
|
||||
createEReference(interactionEClass, INTERACTION__OBJETS_RECUS);
|
||||
createEReference(interactionEClass, INTERACTION__OBJETS_CONSO);
|
||||
createEReference(interactionEClass, INTERACTION__ACTIONS);
|
||||
|
||||
actionEClass = createEClass(ACTION);
|
||||
createEReference(actionEClass, ACTION__VISIBLE);
|
||||
createEReference(actionEClass, ACTION__FIN_INTERACTION);
|
||||
createEAttribute(actionEClass, ACTION__CONNAISSANCES);
|
||||
createEAttribute(actionEClass, ACTION__OBJETS_RECUS);
|
||||
createEAttribute(actionEClass, ACTION__OBJETS_CONSO);
|
||||
createEReference(actionEClass, ACTION__CONNAISSANCES);
|
||||
createEReference(actionEClass, ACTION__OBJETS_RECUS);
|
||||
createEReference(actionEClass, ACTION__OBJETS_CONSO);
|
||||
createEReference(actionEClass, ACTION__DESCRIPTIONS);
|
||||
|
||||
descriptionEClass = createEClass(DESCRIPTION);
|
||||
|
@ -1227,15 +1257,18 @@ public class GAMEPackageImpl extends EPackageImpl implements GAMEPackage
|
|||
conditionTestEClass = createEClass(CONDITION_TEST);
|
||||
|
||||
conditionConnaissanceEClass = createEClass(CONDITION_CONNAISSANCE);
|
||||
createEAttribute(conditionConnaissanceEClass, CONDITION_CONNAISSANCE__CONNAISSANCE);
|
||||
createEReference(conditionConnaissanceEClass, CONDITION_CONNAISSANCE__CONNAISSANCE);
|
||||
|
||||
notConditionConnaissanceEClass = createEClass(NOT_CONDITION_CONNAISSANCE);
|
||||
createEAttribute(notConditionConnaissanceEClass, NOT_CONDITION_CONNAISSANCE__CONNAISSANCE);
|
||||
createEReference(notConditionConnaissanceEClass, NOT_CONDITION_CONNAISSANCE__CONNAISSANCE);
|
||||
|
||||
conditionObjetEClass = createEClass(CONDITION_OBJET);
|
||||
createEAttribute(conditionObjetEClass, CONDITION_OBJET__OBJET);
|
||||
createEReference(conditionObjetEClass, CONDITION_OBJET__OBJET);
|
||||
createEAttribute(conditionObjetEClass, CONDITION_OBJET__COMPARATEUR);
|
||||
createEAttribute(conditionObjetEClass, CONDITION_OBJET__NOMBRE);
|
||||
|
||||
nomEClass = createEClass(NOM);
|
||||
createEAttribute(nomEClass, NOM__NOM);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -1282,69 +1315,69 @@ public class GAMEPackageImpl extends EPackageImpl implements GAMEPackage
|
|||
|
||||
initEClass(explorateurEClass, Explorateur.class, "Explorateur", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
|
||||
initEAttribute(getExplorateur_TailleInventaire(), ecorePackage.getEInt(), "tailleInventaire", null, 0, 1, Explorateur.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
||||
initEAttribute(getExplorateur_Connaissances(), ecorePackage.getEString(), "connaissances", null, 0, -1, Explorateur.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
||||
initEAttribute(getExplorateur_Objets(), ecorePackage.getEString(), "objets", null, 0, -1, Explorateur.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
||||
initEReference(getExplorateur_Connaissances(), this.getNom(), null, "connaissances", null, 0, -1, Explorateur.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
||||
initEReference(getExplorateur_Objets(), this.getNom(), null, "objets", null, 0, -1, Explorateur.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
||||
|
||||
initEClass(territoireEClass, Territoire.class, "Territoire", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
|
||||
initEReference(getTerritoire_Lieux(), this.getLieu(), null, "lieux", null, 0, -1, Territoire.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
||||
initEReference(getTerritoire_Chemins(), this.getChemin(), null, "chemins", null, 0, -1, Territoire.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
||||
|
||||
initEClass(lieuEClass, Lieu.class, "Lieu", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
|
||||
initEAttribute(getLieu_Nom(), ecorePackage.getEString(), "nom", null, 0, 1, Lieu.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
||||
initEReference(getLieu_Nom(), this.getNom(), null, "nom", null, 0, 1, Lieu.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
||||
initEReference(getLieu_Deposable(), this.getCondition(), null, "deposable", null, 0, 1, Lieu.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
||||
initEReference(getLieu_Depart(), this.getCondition(), null, "depart", null, 0, 1, Lieu.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
||||
initEReference(getLieu_Fin(), this.getCondition(), null, "fin", null, 0, 1, Lieu.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
||||
initEAttribute(getLieu_Personnes(), ecorePackage.getEString(), "personnes", null, 0, -1, Lieu.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
||||
initEReference(getLieu_Personnes(), this.getNom(), null, "personnes", null, 0, -1, Lieu.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
||||
initEReference(getLieu_Descriptions(), this.getDescription(), null, "descriptions", null, 0, -1, Lieu.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
||||
initEAttribute(getLieu_Objets(), ecorePackage.getEString(), "objets", null, 0, -1, Lieu.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
||||
initEAttribute(getLieu_Connaissances(), ecorePackage.getEString(), "connaissances", null, 0, -1, Lieu.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
||||
initEReference(getLieu_Objets(), this.getNom(), null, "objets", null, 0, -1, Lieu.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
||||
initEReference(getLieu_Connaissances(), this.getNom(), null, "connaissances", null, 0, -1, Lieu.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
||||
|
||||
initEClass(cheminEClass, Chemin.class, "Chemin", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
|
||||
initEAttribute(getChemin_LieuIn(), ecorePackage.getEString(), "lieuIn", null, 0, 1, Chemin.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
||||
initEAttribute(getChemin_LieuOut(), ecorePackage.getEString(), "lieuOut", null, 0, 1, Chemin.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
||||
initEReference(getChemin_LieuIn(), this.getNom(), null, "lieuIn", null, 0, 1, Chemin.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
||||
initEReference(getChemin_LieuOut(), this.getNom(), null, "lieuOut", null, 0, 1, Chemin.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
||||
initEReference(getChemin_Ouvert(), this.getCondition(), null, "ouvert", null, 0, 1, Chemin.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
||||
initEReference(getChemin_Visible(), this.getCondition(), null, "visible", null, 0, 1, Chemin.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
||||
initEReference(getChemin_Obligatoire(), this.getCondition(), null, "obligatoire", null, 0, 1, Chemin.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
||||
initEAttribute(getChemin_Connaissances(), ecorePackage.getEString(), "connaissances", null, 0, -1, Chemin.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
||||
initEAttribute(getChemin_ObjetsRecus(), ecorePackage.getEString(), "objetsRecus", null, 0, -1, Chemin.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
||||
initEAttribute(getChemin_ObjetsConso(), ecorePackage.getEString(), "objetsConso", null, 0, -1, Chemin.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
||||
initEReference(getChemin_Connaissances(), this.getNom(), null, "connaissances", null, 0, -1, Chemin.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
||||
initEReference(getChemin_ObjetsRecus(), this.getNom(), null, "objetsRecus", null, 0, -1, Chemin.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
||||
initEReference(getChemin_ObjetsConso(), this.getNom(), null, "objetsConso", null, 0, -1, Chemin.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
||||
initEReference(getChemin_Descriptions(), this.getDescription(), null, "descriptions", null, 0, -1, Chemin.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
||||
|
||||
initEClass(objetEClass, Objet.class, "Objet", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
|
||||
initEAttribute(getObjet_Nom(), ecorePackage.getEString(), "nom", null, 0, 1, Objet.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
||||
initEReference(getObjet_Nom(), this.getNom(), null, "nom", null, 0, 1, Objet.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
||||
initEAttribute(getObjet_Taille(), ecorePackage.getEInt(), "taille", null, 0, 1, Objet.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
||||
initEReference(getObjet_Visible(), this.getCondition(), null, "visible", null, 0, 1, Objet.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
||||
initEReference(getObjet_Descriptions(), this.getDescription(), null, "descriptions", null, 0, -1, Objet.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
||||
|
||||
initEClass(transformationEClass, Transformation.class, "Transformation", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
|
||||
initEReference(getTransformation_Condition(), this.getCondition(), null, "condition", null, 0, 1, Transformation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
||||
initEAttribute(getTransformation_ObjetsIn(), ecorePackage.getEString(), "objetsIn", null, 0, -1, Transformation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
||||
initEAttribute(getTransformation_ObjetsOut(), ecorePackage.getEString(), "objetsOut", null, 0, -1, Transformation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
||||
initEReference(getTransformation_ObjetsIn(), this.getNom(), null, "objetsIn", null, 0, -1, Transformation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
||||
initEReference(getTransformation_ObjetsOut(), this.getNom(), null, "objetsOut", null, 0, -1, Transformation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
||||
|
||||
initEClass(connaissanceEClass, Connaissance.class, "Connaissance", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
|
||||
initEAttribute(getConnaissance_Nom(), ecorePackage.getEString(), "nom", null, 0, 1, Connaissance.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
||||
initEReference(getConnaissance_Nom(), this.getNom(), null, "nom", null, 0, 1, Connaissance.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
||||
initEReference(getConnaissance_Visible(), this.getCondition(), null, "visible", null, 0, 1, Connaissance.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
||||
initEReference(getConnaissance_Descriptions(), this.getDescription(), null, "descriptions", null, 0, -1, Connaissance.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
||||
|
||||
initEClass(personneEClass, Personne.class, "Personne", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
|
||||
initEAttribute(getPersonne_Nom(), ecorePackage.getEString(), "nom", null, 0, 1, Personne.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
||||
initEReference(getPersonne_Nom(), this.getNom(), null, "nom", null, 0, 1, Personne.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
||||
initEReference(getPersonne_Visible(), this.getCondition(), null, "visible", null, 0, 1, Personne.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
||||
initEReference(getPersonne_Obligatoire(), this.getCondition(), null, "obligatoire", null, 0, 1, Personne.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
||||
initEReference(getPersonne_Interactions(), this.getInteraction(), null, "interactions", null, 0, -1, Personne.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
||||
|
||||
initEClass(interactionEClass, Interaction.class, "Interaction", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
|
||||
initEReference(getInteraction_Visible(), this.getCondition(), null, "visible", null, 0, 1, Interaction.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
||||
initEAttribute(getInteraction_Connaissances(), ecorePackage.getEString(), "connaissances", null, 0, -1, Interaction.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
||||
initEAttribute(getInteraction_ObjetsRecus(), ecorePackage.getEString(), "objetsRecus", null, 0, -1, Interaction.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
||||
initEAttribute(getInteraction_ObjetsConso(), ecorePackage.getEString(), "objetsConso", null, 0, -1, Interaction.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
||||
initEReference(getInteraction_Connaissances(), this.getNom(), null, "connaissances", null, 0, -1, Interaction.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
||||
initEReference(getInteraction_ObjetsRecus(), this.getNom(), null, "objetsRecus", null, 0, -1, Interaction.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
||||
initEReference(getInteraction_ObjetsConso(), this.getNom(), null, "objetsConso", null, 0, -1, Interaction.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
||||
initEReference(getInteraction_Actions(), this.getAction(), null, "actions", null, 0, -1, Interaction.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
||||
|
||||
initEClass(actionEClass, Action.class, "Action", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
|
||||
initEReference(getAction_Visible(), this.getCondition(), null, "visible", null, 0, 1, Action.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
||||
initEReference(getAction_FinInteraction(), this.getCondition(), null, "finInteraction", null, 0, 1, Action.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
||||
initEAttribute(getAction_Connaissances(), ecorePackage.getEString(), "connaissances", null, 0, -1, Action.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
||||
initEAttribute(getAction_ObjetsRecus(), ecorePackage.getEString(), "objetsRecus", null, 0, -1, Action.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
||||
initEAttribute(getAction_ObjetsConso(), ecorePackage.getEString(), "objetsConso", null, 0, -1, Action.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
||||
initEReference(getAction_Connaissances(), this.getNom(), null, "connaissances", null, 0, -1, Action.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
||||
initEReference(getAction_ObjetsRecus(), this.getNom(), null, "objetsRecus", null, 0, -1, Action.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
||||
initEReference(getAction_ObjetsConso(), this.getNom(), null, "objetsConso", null, 0, -1, Action.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
||||
initEReference(getAction_Descriptions(), this.getDescription(), null, "descriptions", null, 0, -1, Action.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
||||
|
||||
initEClass(descriptionEClass, Description.class, "Description", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
|
||||
|
@ -1360,16 +1393,19 @@ public class GAMEPackageImpl extends EPackageImpl implements GAMEPackage
|
|||
initEClass(conditionTestEClass, ConditionTest.class, "ConditionTest", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
|
||||
|
||||
initEClass(conditionConnaissanceEClass, ConditionConnaissance.class, "ConditionConnaissance", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
|
||||
initEAttribute(getConditionConnaissance_Connaissance(), ecorePackage.getEString(), "connaissance", null, 0, 1, ConditionConnaissance.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
||||
initEReference(getConditionConnaissance_Connaissance(), this.getNom(), null, "connaissance", null, 0, 1, ConditionConnaissance.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
||||
|
||||
initEClass(notConditionConnaissanceEClass, NOTConditionConnaissance.class, "NOTConditionConnaissance", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
|
||||
initEAttribute(getNOTConditionConnaissance_Connaissance(), ecorePackage.getEString(), "connaissance", null, 0, 1, NOTConditionConnaissance.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
||||
initEReference(getNOTConditionConnaissance_Connaissance(), this.getNom(), null, "connaissance", null, 0, 1, NOTConditionConnaissance.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
||||
|
||||
initEClass(conditionObjetEClass, ConditionObjet.class, "ConditionObjet", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
|
||||
initEAttribute(getConditionObjet_Objet(), ecorePackage.getEString(), "objet", null, 0, 1, ConditionObjet.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
||||
initEReference(getConditionObjet_Objet(), this.getNom(), null, "objet", null, 0, 1, ConditionObjet.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
||||
initEAttribute(getConditionObjet_Comparateur(), ecorePackage.getEString(), "comparateur", null, 0, 1, ConditionObjet.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
||||
initEAttribute(getConditionObjet_Nombre(), ecorePackage.getEInt(), "nombre", null, 0, 1, ConditionObjet.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
||||
|
||||
initEClass(nomEClass, Nom.class, "Nom", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
|
||||
initEAttribute(getNom_Nom(), ecorePackage.getEString(), "nom", null, 0, 1, Nom.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
||||
|
||||
// Create resource
|
||||
createResource(eNS_URI);
|
||||
}
|
||||
|
|
|
@ -7,6 +7,7 @@ import fr.n7.xtext.gAME.Action;
|
|||
import fr.n7.xtext.gAME.Condition;
|
||||
import fr.n7.xtext.gAME.GAMEPackage;
|
||||
import fr.n7.xtext.gAME.Interaction;
|
||||
import fr.n7.xtext.gAME.Nom;
|
||||
|
||||
import java.util.Collection;
|
||||
|
||||
|
@ -21,7 +22,6 @@ import org.eclipse.emf.ecore.InternalEObject;
|
|||
import org.eclipse.emf.ecore.impl.ENotificationImpl;
|
||||
import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
|
||||
|
||||
import org.eclipse.emf.ecore.util.EDataTypeEList;
|
||||
import org.eclipse.emf.ecore.util.EObjectContainmentEList;
|
||||
import org.eclipse.emf.ecore.util.InternalEList;
|
||||
|
||||
|
@ -55,34 +55,34 @@ public class InteractionImpl extends MinimalEObjectImpl.Container implements Int
|
|||
protected Condition visible;
|
||||
|
||||
/**
|
||||
* The cached value of the '{@link #getConnaissances() <em>Connaissances</em>}' attribute list.
|
||||
* The cached value of the '{@link #getConnaissances() <em>Connaissances</em>}' containment reference list.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getConnaissances()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected EList<String> connaissances;
|
||||
protected EList<Nom> connaissances;
|
||||
|
||||
/**
|
||||
* The cached value of the '{@link #getObjetsRecus() <em>Objets Recus</em>}' attribute list.
|
||||
* The cached value of the '{@link #getObjetsRecus() <em>Objets Recus</em>}' containment reference list.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getObjetsRecus()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected EList<String> objetsRecus;
|
||||
protected EList<Nom> objetsRecus;
|
||||
|
||||
/**
|
||||
* The cached value of the '{@link #getObjetsConso() <em>Objets Conso</em>}' attribute list.
|
||||
* The cached value of the '{@link #getObjetsConso() <em>Objets Conso</em>}' containment reference list.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getObjetsConso()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected EList<String> objetsConso;
|
||||
protected EList<Nom> objetsConso;
|
||||
|
||||
/**
|
||||
* The cached value of the '{@link #getActions() <em>Actions</em>}' containment reference list.
|
||||
|
@ -171,11 +171,11 @@ public class InteractionImpl extends MinimalEObjectImpl.Container implements Int
|
|||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public EList<String> getConnaissances()
|
||||
public EList<Nom> getConnaissances()
|
||||
{
|
||||
if (connaissances == null)
|
||||
{
|
||||
connaissances = new EDataTypeEList<String>(String.class, this, GAMEPackage.INTERACTION__CONNAISSANCES);
|
||||
connaissances = new EObjectContainmentEList<Nom>(Nom.class, this, GAMEPackage.INTERACTION__CONNAISSANCES);
|
||||
}
|
||||
return connaissances;
|
||||
}
|
||||
|
@ -186,11 +186,11 @@ public class InteractionImpl extends MinimalEObjectImpl.Container implements Int
|
|||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public EList<String> getObjetsRecus()
|
||||
public EList<Nom> getObjetsRecus()
|
||||
{
|
||||
if (objetsRecus == null)
|
||||
{
|
||||
objetsRecus = new EDataTypeEList<String>(String.class, this, GAMEPackage.INTERACTION__OBJETS_RECUS);
|
||||
objetsRecus = new EObjectContainmentEList<Nom>(Nom.class, this, GAMEPackage.INTERACTION__OBJETS_RECUS);
|
||||
}
|
||||
return objetsRecus;
|
||||
}
|
||||
|
@ -201,11 +201,11 @@ public class InteractionImpl extends MinimalEObjectImpl.Container implements Int
|
|||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public EList<String> getObjetsConso()
|
||||
public EList<Nom> getObjetsConso()
|
||||
{
|
||||
if (objetsConso == null)
|
||||
{
|
||||
objetsConso = new EDataTypeEList<String>(String.class, this, GAMEPackage.INTERACTION__OBJETS_CONSO);
|
||||
objetsConso = new EObjectContainmentEList<Nom>(Nom.class, this, GAMEPackage.INTERACTION__OBJETS_CONSO);
|
||||
}
|
||||
return objetsConso;
|
||||
}
|
||||
|
@ -237,6 +237,12 @@ public class InteractionImpl extends MinimalEObjectImpl.Container implements Int
|
|||
{
|
||||
case GAMEPackage.INTERACTION__VISIBLE:
|
||||
return basicSetVisible(null, msgs);
|
||||
case GAMEPackage.INTERACTION__CONNAISSANCES:
|
||||
return ((InternalEList<?>)getConnaissances()).basicRemove(otherEnd, msgs);
|
||||
case GAMEPackage.INTERACTION__OBJETS_RECUS:
|
||||
return ((InternalEList<?>)getObjetsRecus()).basicRemove(otherEnd, msgs);
|
||||
case GAMEPackage.INTERACTION__OBJETS_CONSO:
|
||||
return ((InternalEList<?>)getObjetsConso()).basicRemove(otherEnd, msgs);
|
||||
case GAMEPackage.INTERACTION__ACTIONS:
|
||||
return ((InternalEList<?>)getActions()).basicRemove(otherEnd, msgs);
|
||||
}
|
||||
|
@ -283,15 +289,15 @@ public class InteractionImpl extends MinimalEObjectImpl.Container implements Int
|
|||
return;
|
||||
case GAMEPackage.INTERACTION__CONNAISSANCES:
|
||||
getConnaissances().clear();
|
||||
getConnaissances().addAll((Collection<? extends String>)newValue);
|
||||
getConnaissances().addAll((Collection<? extends Nom>)newValue);
|
||||
return;
|
||||
case GAMEPackage.INTERACTION__OBJETS_RECUS:
|
||||
getObjetsRecus().clear();
|
||||
getObjetsRecus().addAll((Collection<? extends String>)newValue);
|
||||
getObjetsRecus().addAll((Collection<? extends Nom>)newValue);
|
||||
return;
|
||||
case GAMEPackage.INTERACTION__OBJETS_CONSO:
|
||||
getObjetsConso().clear();
|
||||
getObjetsConso().addAll((Collection<? extends String>)newValue);
|
||||
getObjetsConso().addAll((Collection<? extends Nom>)newValue);
|
||||
return;
|
||||
case GAMEPackage.INTERACTION__ACTIONS:
|
||||
getActions().clear();
|
||||
|
@ -354,25 +360,4 @@ public class InteractionImpl extends MinimalEObjectImpl.Container implements Int
|
|||
return super.eIsSet(featureID);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public String toString()
|
||||
{
|
||||
if (eIsProxy()) return super.toString();
|
||||
|
||||
StringBuilder result = new StringBuilder(super.toString());
|
||||
result.append(" (connaissances: ");
|
||||
result.append(connaissances);
|
||||
result.append(", objetsRecus: ");
|
||||
result.append(objetsRecus);
|
||||
result.append(", objetsConso: ");
|
||||
result.append(objetsConso);
|
||||
result.append(')');
|
||||
return result.toString();
|
||||
}
|
||||
|
||||
} //InteractionImpl
|
||||
|
|
|
@ -7,6 +7,7 @@ import fr.n7.xtext.gAME.Condition;
|
|||
import fr.n7.xtext.gAME.Description;
|
||||
import fr.n7.xtext.gAME.GAMEPackage;
|
||||
import fr.n7.xtext.gAME.Lieu;
|
||||
import fr.n7.xtext.gAME.Nom;
|
||||
|
||||
import java.util.Collection;
|
||||
|
||||
|
@ -21,7 +22,6 @@ import org.eclipse.emf.ecore.InternalEObject;
|
|||
import org.eclipse.emf.ecore.impl.ENotificationImpl;
|
||||
import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
|
||||
|
||||
import org.eclipse.emf.ecore.util.EDataTypeEList;
|
||||
import org.eclipse.emf.ecore.util.EObjectContainmentEList;
|
||||
import org.eclipse.emf.ecore.util.InternalEList;
|
||||
|
||||
|
@ -48,24 +48,14 @@ import org.eclipse.emf.ecore.util.InternalEList;
|
|||
public class LieuImpl extends MinimalEObjectImpl.Container implements Lieu
|
||||
{
|
||||
/**
|
||||
* The default value of the '{@link #getNom() <em>Nom</em>}' attribute.
|
||||
* The cached value of the '{@link #getNom() <em>Nom</em>}' containment reference.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getNom()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected static final String NOM_EDEFAULT = null;
|
||||
|
||||
/**
|
||||
* The cached value of the '{@link #getNom() <em>Nom</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getNom()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected String nom = NOM_EDEFAULT;
|
||||
protected Nom nom;
|
||||
|
||||
/**
|
||||
* The cached value of the '{@link #getDeposable() <em>Deposable</em>}' containment reference.
|
||||
|
@ -98,14 +88,14 @@ public class LieuImpl extends MinimalEObjectImpl.Container implements Lieu
|
|||
protected Condition fin;
|
||||
|
||||
/**
|
||||
* The cached value of the '{@link #getPersonnes() <em>Personnes</em>}' attribute list.
|
||||
* The cached value of the '{@link #getPersonnes() <em>Personnes</em>}' containment reference list.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getPersonnes()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected EList<String> personnes;
|
||||
protected EList<Nom> personnes;
|
||||
|
||||
/**
|
||||
* The cached value of the '{@link #getDescriptions() <em>Descriptions</em>}' containment reference list.
|
||||
|
@ -118,24 +108,24 @@ public class LieuImpl extends MinimalEObjectImpl.Container implements Lieu
|
|||
protected EList<Description> descriptions;
|
||||
|
||||
/**
|
||||
* The cached value of the '{@link #getObjets() <em>Objets</em>}' attribute list.
|
||||
* The cached value of the '{@link #getObjets() <em>Objets</em>}' containment reference list.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getObjets()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected EList<String> objets;
|
||||
protected EList<Nom> objets;
|
||||
|
||||
/**
|
||||
* The cached value of the '{@link #getConnaissances() <em>Connaissances</em>}' attribute list.
|
||||
* The cached value of the '{@link #getConnaissances() <em>Connaissances</em>}' containment reference list.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getConnaissances()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected EList<String> connaissances;
|
||||
protected EList<Nom> connaissances;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
|
@ -164,7 +154,7 @@ public class LieuImpl extends MinimalEObjectImpl.Container implements Lieu
|
|||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public String getNom()
|
||||
public Nom getNom()
|
||||
{
|
||||
return nom;
|
||||
}
|
||||
|
@ -174,13 +164,38 @@ public class LieuImpl extends MinimalEObjectImpl.Container implements Lieu
|
|||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public void setNom(String newNom)
|
||||
public NotificationChain basicSetNom(Nom newNom, NotificationChain msgs)
|
||||
{
|
||||
String oldNom = nom;
|
||||
Nom oldNom = nom;
|
||||
nom = newNom;
|
||||
if (eNotificationRequired())
|
||||
eNotify(new ENotificationImpl(this, Notification.SET, GAMEPackage.LIEU__NOM, oldNom, nom));
|
||||
{
|
||||
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, GAMEPackage.LIEU__NOM, oldNom, newNom);
|
||||
if (msgs == null) msgs = notification; else msgs.add(notification);
|
||||
}
|
||||
return msgs;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public void setNom(Nom newNom)
|
||||
{
|
||||
if (newNom != nom)
|
||||
{
|
||||
NotificationChain msgs = null;
|
||||
if (nom != null)
|
||||
msgs = ((InternalEObject)nom).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - GAMEPackage.LIEU__NOM, null, msgs);
|
||||
if (newNom != null)
|
||||
msgs = ((InternalEObject)newNom).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - GAMEPackage.LIEU__NOM, null, msgs);
|
||||
msgs = basicSetNom(newNom, msgs);
|
||||
if (msgs != null) msgs.dispatch();
|
||||
}
|
||||
else if (eNotificationRequired())
|
||||
eNotify(new ENotificationImpl(this, Notification.SET, GAMEPackage.LIEU__NOM, newNom, newNom));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -339,11 +354,11 @@ public class LieuImpl extends MinimalEObjectImpl.Container implements Lieu
|
|||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public EList<String> getPersonnes()
|
||||
public EList<Nom> getPersonnes()
|
||||
{
|
||||
if (personnes == null)
|
||||
{
|
||||
personnes = new EDataTypeEList<String>(String.class, this, GAMEPackage.LIEU__PERSONNES);
|
||||
personnes = new EObjectContainmentEList<Nom>(Nom.class, this, GAMEPackage.LIEU__PERSONNES);
|
||||
}
|
||||
return personnes;
|
||||
}
|
||||
|
@ -369,11 +384,11 @@ public class LieuImpl extends MinimalEObjectImpl.Container implements Lieu
|
|||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public EList<String> getObjets()
|
||||
public EList<Nom> getObjets()
|
||||
{
|
||||
if (objets == null)
|
||||
{
|
||||
objets = new EDataTypeEList<String>(String.class, this, GAMEPackage.LIEU__OBJETS);
|
||||
objets = new EObjectContainmentEList<Nom>(Nom.class, this, GAMEPackage.LIEU__OBJETS);
|
||||
}
|
||||
return objets;
|
||||
}
|
||||
|
@ -384,11 +399,11 @@ public class LieuImpl extends MinimalEObjectImpl.Container implements Lieu
|
|||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public EList<String> getConnaissances()
|
||||
public EList<Nom> getConnaissances()
|
||||
{
|
||||
if (connaissances == null)
|
||||
{
|
||||
connaissances = new EDataTypeEList<String>(String.class, this, GAMEPackage.LIEU__CONNAISSANCES);
|
||||
connaissances = new EObjectContainmentEList<Nom>(Nom.class, this, GAMEPackage.LIEU__CONNAISSANCES);
|
||||
}
|
||||
return connaissances;
|
||||
}
|
||||
|
@ -403,14 +418,22 @@ public class LieuImpl extends MinimalEObjectImpl.Container implements Lieu
|
|||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case GAMEPackage.LIEU__NOM:
|
||||
return basicSetNom(null, msgs);
|
||||
case GAMEPackage.LIEU__DEPOSABLE:
|
||||
return basicSetDeposable(null, msgs);
|
||||
case GAMEPackage.LIEU__DEPART:
|
||||
return basicSetDepart(null, msgs);
|
||||
case GAMEPackage.LIEU__FIN:
|
||||
return basicSetFin(null, msgs);
|
||||
case GAMEPackage.LIEU__PERSONNES:
|
||||
return ((InternalEList<?>)getPersonnes()).basicRemove(otherEnd, msgs);
|
||||
case GAMEPackage.LIEU__DESCRIPTIONS:
|
||||
return ((InternalEList<?>)getDescriptions()).basicRemove(otherEnd, msgs);
|
||||
case GAMEPackage.LIEU__OBJETS:
|
||||
return ((InternalEList<?>)getObjets()).basicRemove(otherEnd, msgs);
|
||||
case GAMEPackage.LIEU__CONNAISSANCES:
|
||||
return ((InternalEList<?>)getConnaissances()).basicRemove(otherEnd, msgs);
|
||||
}
|
||||
return super.eInverseRemove(otherEnd, featureID, msgs);
|
||||
}
|
||||
|
@ -457,7 +480,7 @@ public class LieuImpl extends MinimalEObjectImpl.Container implements Lieu
|
|||
switch (featureID)
|
||||
{
|
||||
case GAMEPackage.LIEU__NOM:
|
||||
setNom((String)newValue);
|
||||
setNom((Nom)newValue);
|
||||
return;
|
||||
case GAMEPackage.LIEU__DEPOSABLE:
|
||||
setDeposable((Condition)newValue);
|
||||
|
@ -470,7 +493,7 @@ public class LieuImpl extends MinimalEObjectImpl.Container implements Lieu
|
|||
return;
|
||||
case GAMEPackage.LIEU__PERSONNES:
|
||||
getPersonnes().clear();
|
||||
getPersonnes().addAll((Collection<? extends String>)newValue);
|
||||
getPersonnes().addAll((Collection<? extends Nom>)newValue);
|
||||
return;
|
||||
case GAMEPackage.LIEU__DESCRIPTIONS:
|
||||
getDescriptions().clear();
|
||||
|
@ -478,11 +501,11 @@ public class LieuImpl extends MinimalEObjectImpl.Container implements Lieu
|
|||
return;
|
||||
case GAMEPackage.LIEU__OBJETS:
|
||||
getObjets().clear();
|
||||
getObjets().addAll((Collection<? extends String>)newValue);
|
||||
getObjets().addAll((Collection<? extends Nom>)newValue);
|
||||
return;
|
||||
case GAMEPackage.LIEU__CONNAISSANCES:
|
||||
getConnaissances().clear();
|
||||
getConnaissances().addAll((Collection<? extends String>)newValue);
|
||||
getConnaissances().addAll((Collection<? extends Nom>)newValue);
|
||||
return;
|
||||
}
|
||||
super.eSet(featureID, newValue);
|
||||
|
@ -499,7 +522,7 @@ public class LieuImpl extends MinimalEObjectImpl.Container implements Lieu
|
|||
switch (featureID)
|
||||
{
|
||||
case GAMEPackage.LIEU__NOM:
|
||||
setNom(NOM_EDEFAULT);
|
||||
setNom((Nom)null);
|
||||
return;
|
||||
case GAMEPackage.LIEU__DEPOSABLE:
|
||||
setDeposable((Condition)null);
|
||||
|
@ -537,7 +560,7 @@ public class LieuImpl extends MinimalEObjectImpl.Container implements Lieu
|
|||
switch (featureID)
|
||||
{
|
||||
case GAMEPackage.LIEU__NOM:
|
||||
return NOM_EDEFAULT == null ? nom != null : !NOM_EDEFAULT.equals(nom);
|
||||
return nom != null;
|
||||
case GAMEPackage.LIEU__DEPOSABLE:
|
||||
return deposable != null;
|
||||
case GAMEPackage.LIEU__DEPART:
|
||||
|
@ -556,27 +579,4 @@ public class LieuImpl extends MinimalEObjectImpl.Container implements Lieu
|
|||
return super.eIsSet(featureID);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public String toString()
|
||||
{
|
||||
if (eIsProxy()) return super.toString();
|
||||
|
||||
StringBuilder result = new StringBuilder(super.toString());
|
||||
result.append(" (nom: ");
|
||||
result.append(nom);
|
||||
result.append(", personnes: ");
|
||||
result.append(personnes);
|
||||
result.append(", objets: ");
|
||||
result.append(objets);
|
||||
result.append(", connaissances: ");
|
||||
result.append(connaissances);
|
||||
result.append(')');
|
||||
return result.toString();
|
||||
}
|
||||
|
||||
} //LieuImpl
|
||||
|
|
|
@ -5,10 +5,13 @@ package fr.n7.xtext.gAME.impl;
|
|||
|
||||
import fr.n7.xtext.gAME.GAMEPackage;
|
||||
import fr.n7.xtext.gAME.NOTConditionConnaissance;
|
||||
import fr.n7.xtext.gAME.Nom;
|
||||
|
||||
import org.eclipse.emf.common.notify.Notification;
|
||||
import org.eclipse.emf.common.notify.NotificationChain;
|
||||
|
||||
import org.eclipse.emf.ecore.EClass;
|
||||
import org.eclipse.emf.ecore.InternalEObject;
|
||||
|
||||
import org.eclipse.emf.ecore.impl.ENotificationImpl;
|
||||
|
||||
|
@ -28,24 +31,14 @@ import org.eclipse.emf.ecore.impl.ENotificationImpl;
|
|||
public class NOTConditionConnaissanceImpl extends ConditionTestImpl implements NOTConditionConnaissance
|
||||
{
|
||||
/**
|
||||
* The default value of the '{@link #getConnaissance() <em>Connaissance</em>}' attribute.
|
||||
* The cached value of the '{@link #getConnaissance() <em>Connaissance</em>}' containment reference.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getConnaissance()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected static final String CONNAISSANCE_EDEFAULT = null;
|
||||
|
||||
/**
|
||||
* The cached value of the '{@link #getConnaissance() <em>Connaissance</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getConnaissance()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected String connaissance = CONNAISSANCE_EDEFAULT;
|
||||
protected Nom connaissance;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
|
@ -74,7 +67,7 @@ public class NOTConditionConnaissanceImpl extends ConditionTestImpl implements N
|
|||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public String getConnaissance()
|
||||
public Nom getConnaissance()
|
||||
{
|
||||
return connaissance;
|
||||
}
|
||||
|
@ -84,13 +77,54 @@ public class NOTConditionConnaissanceImpl extends ConditionTestImpl implements N
|
|||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public void setConnaissance(String newConnaissance)
|
||||
public NotificationChain basicSetConnaissance(Nom newConnaissance, NotificationChain msgs)
|
||||
{
|
||||
String oldConnaissance = connaissance;
|
||||
Nom oldConnaissance = connaissance;
|
||||
connaissance = newConnaissance;
|
||||
if (eNotificationRequired())
|
||||
eNotify(new ENotificationImpl(this, Notification.SET, GAMEPackage.NOT_CONDITION_CONNAISSANCE__CONNAISSANCE, oldConnaissance, connaissance));
|
||||
{
|
||||
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, GAMEPackage.NOT_CONDITION_CONNAISSANCE__CONNAISSANCE, oldConnaissance, newConnaissance);
|
||||
if (msgs == null) msgs = notification; else msgs.add(notification);
|
||||
}
|
||||
return msgs;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public void setConnaissance(Nom newConnaissance)
|
||||
{
|
||||
if (newConnaissance != connaissance)
|
||||
{
|
||||
NotificationChain msgs = null;
|
||||
if (connaissance != null)
|
||||
msgs = ((InternalEObject)connaissance).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - GAMEPackage.NOT_CONDITION_CONNAISSANCE__CONNAISSANCE, null, msgs);
|
||||
if (newConnaissance != null)
|
||||
msgs = ((InternalEObject)newConnaissance).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - GAMEPackage.NOT_CONDITION_CONNAISSANCE__CONNAISSANCE, null, msgs);
|
||||
msgs = basicSetConnaissance(newConnaissance, msgs);
|
||||
if (msgs != null) msgs.dispatch();
|
||||
}
|
||||
else if (eNotificationRequired())
|
||||
eNotify(new ENotificationImpl(this, Notification.SET, GAMEPackage.NOT_CONDITION_CONNAISSANCE__CONNAISSANCE, newConnaissance, newConnaissance));
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case GAMEPackage.NOT_CONDITION_CONNAISSANCE__CONNAISSANCE:
|
||||
return basicSetConnaissance(null, msgs);
|
||||
}
|
||||
return super.eInverseRemove(otherEnd, featureID, msgs);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -120,7 +154,7 @@ public class NOTConditionConnaissanceImpl extends ConditionTestImpl implements N
|
|||
switch (featureID)
|
||||
{
|
||||
case GAMEPackage.NOT_CONDITION_CONNAISSANCE__CONNAISSANCE:
|
||||
setConnaissance((String)newValue);
|
||||
setConnaissance((Nom)newValue);
|
||||
return;
|
||||
}
|
||||
super.eSet(featureID, newValue);
|
||||
|
@ -137,7 +171,7 @@ public class NOTConditionConnaissanceImpl extends ConditionTestImpl implements N
|
|||
switch (featureID)
|
||||
{
|
||||
case GAMEPackage.NOT_CONDITION_CONNAISSANCE__CONNAISSANCE:
|
||||
setConnaissance(CONNAISSANCE_EDEFAULT);
|
||||
setConnaissance((Nom)null);
|
||||
return;
|
||||
}
|
||||
super.eUnset(featureID);
|
||||
|
@ -154,26 +188,9 @@ public class NOTConditionConnaissanceImpl extends ConditionTestImpl implements N
|
|||
switch (featureID)
|
||||
{
|
||||
case GAMEPackage.NOT_CONDITION_CONNAISSANCE__CONNAISSANCE:
|
||||
return CONNAISSANCE_EDEFAULT == null ? connaissance != null : !CONNAISSANCE_EDEFAULT.equals(connaissance);
|
||||
return connaissance != null;
|
||||
}
|
||||
return super.eIsSet(featureID);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public String toString()
|
||||
{
|
||||
if (eIsProxy()) return super.toString();
|
||||
|
||||
StringBuilder result = new StringBuilder(super.toString());
|
||||
result.append(" (connaissance: ");
|
||||
result.append(connaissance);
|
||||
result.append(')');
|
||||
return result.toString();
|
||||
}
|
||||
|
||||
} //NOTConditionConnaissanceImpl
|
||||
|
|
|
@ -0,0 +1,180 @@
|
|||
/**
|
||||
* generated by Xtext 2.23.0
|
||||
*/
|
||||
package fr.n7.xtext.gAME.impl;
|
||||
|
||||
import fr.n7.xtext.gAME.GAMEPackage;
|
||||
import fr.n7.xtext.gAME.Nom;
|
||||
|
||||
import org.eclipse.emf.common.notify.Notification;
|
||||
|
||||
import org.eclipse.emf.ecore.EClass;
|
||||
|
||||
import org.eclipse.emf.ecore.impl.ENotificationImpl;
|
||||
import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* An implementation of the model object '<em><b>Nom</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
* <p>
|
||||
* The following features are implemented:
|
||||
* </p>
|
||||
* <ul>
|
||||
* <li>{@link fr.n7.xtext.gAME.impl.NomImpl#getNom <em>Nom</em>}</li>
|
||||
* </ul>
|
||||
*
|
||||
* @generated
|
||||
*/
|
||||
public class NomImpl extends MinimalEObjectImpl.Container implements Nom
|
||||
{
|
||||
/**
|
||||
* The default value of the '{@link #getNom() <em>Nom</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getNom()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected static final String NOM_EDEFAULT = null;
|
||||
|
||||
/**
|
||||
* The cached value of the '{@link #getNom() <em>Nom</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getNom()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected String nom = NOM_EDEFAULT;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
protected NomImpl()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
protected EClass eStaticClass()
|
||||
{
|
||||
return GAMEPackage.Literals.NOM;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public String getNom()
|
||||
{
|
||||
return nom;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public void setNom(String newNom)
|
||||
{
|
||||
String oldNom = nom;
|
||||
nom = newNom;
|
||||
if (eNotificationRequired())
|
||||
eNotify(new ENotificationImpl(this, Notification.SET, GAMEPackage.NOM__NOM, oldNom, nom));
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public Object eGet(int featureID, boolean resolve, boolean coreType)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case GAMEPackage.NOM__NOM:
|
||||
return getNom();
|
||||
}
|
||||
return super.eGet(featureID, resolve, coreType);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public void eSet(int featureID, Object newValue)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case GAMEPackage.NOM__NOM:
|
||||
setNom((String)newValue);
|
||||
return;
|
||||
}
|
||||
super.eSet(featureID, newValue);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public void eUnset(int featureID)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case GAMEPackage.NOM__NOM:
|
||||
setNom(NOM_EDEFAULT);
|
||||
return;
|
||||
}
|
||||
super.eUnset(featureID);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public boolean eIsSet(int featureID)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case GAMEPackage.NOM__NOM:
|
||||
return NOM_EDEFAULT == null ? nom != null : !NOM_EDEFAULT.equals(nom);
|
||||
}
|
||||
return super.eIsSet(featureID);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public String toString()
|
||||
{
|
||||
if (eIsProxy()) return super.toString();
|
||||
|
||||
StringBuilder result = new StringBuilder(super.toString());
|
||||
result.append(" (nom: ");
|
||||
result.append(nom);
|
||||
result.append(')');
|
||||
return result.toString();
|
||||
}
|
||||
|
||||
} //NomImpl
|
|
@ -6,6 +6,7 @@ package fr.n7.xtext.gAME.impl;
|
|||
import fr.n7.xtext.gAME.Condition;
|
||||
import fr.n7.xtext.gAME.Description;
|
||||
import fr.n7.xtext.gAME.GAMEPackage;
|
||||
import fr.n7.xtext.gAME.Nom;
|
||||
import fr.n7.xtext.gAME.Objet;
|
||||
|
||||
import java.util.Collection;
|
||||
|
@ -43,24 +44,14 @@ import org.eclipse.emf.ecore.util.InternalEList;
|
|||
public class ObjetImpl extends MinimalEObjectImpl.Container implements Objet
|
||||
{
|
||||
/**
|
||||
* The default value of the '{@link #getNom() <em>Nom</em>}' attribute.
|
||||
* The cached value of the '{@link #getNom() <em>Nom</em>}' containment reference.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getNom()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected static final String NOM_EDEFAULT = null;
|
||||
|
||||
/**
|
||||
* The cached value of the '{@link #getNom() <em>Nom</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getNom()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected String nom = NOM_EDEFAULT;
|
||||
protected Nom nom;
|
||||
|
||||
/**
|
||||
* The default value of the '{@link #getTaille() <em>Taille</em>}' attribute.
|
||||
|
@ -129,7 +120,7 @@ public class ObjetImpl extends MinimalEObjectImpl.Container implements Objet
|
|||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public String getNom()
|
||||
public Nom getNom()
|
||||
{
|
||||
return nom;
|
||||
}
|
||||
|
@ -139,13 +130,38 @@ public class ObjetImpl extends MinimalEObjectImpl.Container implements Objet
|
|||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public void setNom(String newNom)
|
||||
public NotificationChain basicSetNom(Nom newNom, NotificationChain msgs)
|
||||
{
|
||||
String oldNom = nom;
|
||||
Nom oldNom = nom;
|
||||
nom = newNom;
|
||||
if (eNotificationRequired())
|
||||
eNotify(new ENotificationImpl(this, Notification.SET, GAMEPackage.OBJET__NOM, oldNom, nom));
|
||||
{
|
||||
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, GAMEPackage.OBJET__NOM, oldNom, newNom);
|
||||
if (msgs == null) msgs = notification; else msgs.add(notification);
|
||||
}
|
||||
return msgs;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public void setNom(Nom newNom)
|
||||
{
|
||||
if (newNom != nom)
|
||||
{
|
||||
NotificationChain msgs = null;
|
||||
if (nom != null)
|
||||
msgs = ((InternalEObject)nom).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - GAMEPackage.OBJET__NOM, null, msgs);
|
||||
if (newNom != null)
|
||||
msgs = ((InternalEObject)newNom).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - GAMEPackage.OBJET__NOM, null, msgs);
|
||||
msgs = basicSetNom(newNom, msgs);
|
||||
if (msgs != null) msgs.dispatch();
|
||||
}
|
||||
else if (eNotificationRequired())
|
||||
eNotify(new ENotificationImpl(this, Notification.SET, GAMEPackage.OBJET__NOM, newNom, newNom));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -248,6 +264,8 @@ public class ObjetImpl extends MinimalEObjectImpl.Container implements Objet
|
|||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case GAMEPackage.OBJET__NOM:
|
||||
return basicSetNom(null, msgs);
|
||||
case GAMEPackage.OBJET__VISIBLE:
|
||||
return basicSetVisible(null, msgs);
|
||||
case GAMEPackage.OBJET__DESCRIPTIONS:
|
||||
|
@ -290,7 +308,7 @@ public class ObjetImpl extends MinimalEObjectImpl.Container implements Objet
|
|||
switch (featureID)
|
||||
{
|
||||
case GAMEPackage.OBJET__NOM:
|
||||
setNom((String)newValue);
|
||||
setNom((Nom)newValue);
|
||||
return;
|
||||
case GAMEPackage.OBJET__TAILLE:
|
||||
setTaille((Integer)newValue);
|
||||
|
@ -317,7 +335,7 @@ public class ObjetImpl extends MinimalEObjectImpl.Container implements Objet
|
|||
switch (featureID)
|
||||
{
|
||||
case GAMEPackage.OBJET__NOM:
|
||||
setNom(NOM_EDEFAULT);
|
||||
setNom((Nom)null);
|
||||
return;
|
||||
case GAMEPackage.OBJET__TAILLE:
|
||||
setTaille(TAILLE_EDEFAULT);
|
||||
|
@ -343,7 +361,7 @@ public class ObjetImpl extends MinimalEObjectImpl.Container implements Objet
|
|||
switch (featureID)
|
||||
{
|
||||
case GAMEPackage.OBJET__NOM:
|
||||
return NOM_EDEFAULT == null ? nom != null : !NOM_EDEFAULT.equals(nom);
|
||||
return nom != null;
|
||||
case GAMEPackage.OBJET__TAILLE:
|
||||
return taille != TAILLE_EDEFAULT;
|
||||
case GAMEPackage.OBJET__VISIBLE:
|
||||
|
@ -365,9 +383,7 @@ public class ObjetImpl extends MinimalEObjectImpl.Container implements Objet
|
|||
if (eIsProxy()) return super.toString();
|
||||
|
||||
StringBuilder result = new StringBuilder(super.toString());
|
||||
result.append(" (nom: ");
|
||||
result.append(nom);
|
||||
result.append(", taille: ");
|
||||
result.append(" (taille: ");
|
||||
result.append(taille);
|
||||
result.append(')');
|
||||
return result.toString();
|
||||
|
|
|
@ -6,6 +6,7 @@ package fr.n7.xtext.gAME.impl;
|
|||
import fr.n7.xtext.gAME.Condition;
|
||||
import fr.n7.xtext.gAME.GAMEPackage;
|
||||
import fr.n7.xtext.gAME.Interaction;
|
||||
import fr.n7.xtext.gAME.Nom;
|
||||
import fr.n7.xtext.gAME.Personne;
|
||||
|
||||
import java.util.Collection;
|
||||
|
@ -43,24 +44,14 @@ import org.eclipse.emf.ecore.util.InternalEList;
|
|||
public class PersonneImpl extends MinimalEObjectImpl.Container implements Personne
|
||||
{
|
||||
/**
|
||||
* The default value of the '{@link #getNom() <em>Nom</em>}' attribute.
|
||||
* The cached value of the '{@link #getNom() <em>Nom</em>}' containment reference.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getNom()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected static final String NOM_EDEFAULT = null;
|
||||
|
||||
/**
|
||||
* The cached value of the '{@link #getNom() <em>Nom</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getNom()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected String nom = NOM_EDEFAULT;
|
||||
protected Nom nom;
|
||||
|
||||
/**
|
||||
* The cached value of the '{@link #getVisible() <em>Visible</em>}' containment reference.
|
||||
|
@ -119,7 +110,7 @@ public class PersonneImpl extends MinimalEObjectImpl.Container implements Person
|
|||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public String getNom()
|
||||
public Nom getNom()
|
||||
{
|
||||
return nom;
|
||||
}
|
||||
|
@ -129,13 +120,38 @@ public class PersonneImpl extends MinimalEObjectImpl.Container implements Person
|
|||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public void setNom(String newNom)
|
||||
public NotificationChain basicSetNom(Nom newNom, NotificationChain msgs)
|
||||
{
|
||||
String oldNom = nom;
|
||||
Nom oldNom = nom;
|
||||
nom = newNom;
|
||||
if (eNotificationRequired())
|
||||
eNotify(new ENotificationImpl(this, Notification.SET, GAMEPackage.PERSONNE__NOM, oldNom, nom));
|
||||
{
|
||||
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, GAMEPackage.PERSONNE__NOM, oldNom, newNom);
|
||||
if (msgs == null) msgs = notification; else msgs.add(notification);
|
||||
}
|
||||
return msgs;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public void setNom(Nom newNom)
|
||||
{
|
||||
if (newNom != nom)
|
||||
{
|
||||
NotificationChain msgs = null;
|
||||
if (nom != null)
|
||||
msgs = ((InternalEObject)nom).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - GAMEPackage.PERSONNE__NOM, null, msgs);
|
||||
if (newNom != null)
|
||||
msgs = ((InternalEObject)newNom).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - GAMEPackage.PERSONNE__NOM, null, msgs);
|
||||
msgs = basicSetNom(newNom, msgs);
|
||||
if (msgs != null) msgs.dispatch();
|
||||
}
|
||||
else if (eNotificationRequired())
|
||||
eNotify(new ENotificationImpl(this, Notification.SET, GAMEPackage.PERSONNE__NOM, newNom, newNom));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -263,6 +279,8 @@ public class PersonneImpl extends MinimalEObjectImpl.Container implements Person
|
|||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case GAMEPackage.PERSONNE__NOM:
|
||||
return basicSetNom(null, msgs);
|
||||
case GAMEPackage.PERSONNE__VISIBLE:
|
||||
return basicSetVisible(null, msgs);
|
||||
case GAMEPackage.PERSONNE__OBLIGATOIRE:
|
||||
|
@ -307,7 +325,7 @@ public class PersonneImpl extends MinimalEObjectImpl.Container implements Person
|
|||
switch (featureID)
|
||||
{
|
||||
case GAMEPackage.PERSONNE__NOM:
|
||||
setNom((String)newValue);
|
||||
setNom((Nom)newValue);
|
||||
return;
|
||||
case GAMEPackage.PERSONNE__VISIBLE:
|
||||
setVisible((Condition)newValue);
|
||||
|
@ -334,7 +352,7 @@ public class PersonneImpl extends MinimalEObjectImpl.Container implements Person
|
|||
switch (featureID)
|
||||
{
|
||||
case GAMEPackage.PERSONNE__NOM:
|
||||
setNom(NOM_EDEFAULT);
|
||||
setNom((Nom)null);
|
||||
return;
|
||||
case GAMEPackage.PERSONNE__VISIBLE:
|
||||
setVisible((Condition)null);
|
||||
|
@ -360,7 +378,7 @@ public class PersonneImpl extends MinimalEObjectImpl.Container implements Person
|
|||
switch (featureID)
|
||||
{
|
||||
case GAMEPackage.PERSONNE__NOM:
|
||||
return NOM_EDEFAULT == null ? nom != null : !NOM_EDEFAULT.equals(nom);
|
||||
return nom != null;
|
||||
case GAMEPackage.PERSONNE__VISIBLE:
|
||||
return visible != null;
|
||||
case GAMEPackage.PERSONNE__OBLIGATOIRE:
|
||||
|
@ -371,21 +389,4 @@ public class PersonneImpl extends MinimalEObjectImpl.Container implements Person
|
|||
return super.eIsSet(featureID);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public String toString()
|
||||
{
|
||||
if (eIsProxy()) return super.toString();
|
||||
|
||||
StringBuilder result = new StringBuilder(super.toString());
|
||||
result.append(" (nom: ");
|
||||
result.append(nom);
|
||||
result.append(')');
|
||||
return result.toString();
|
||||
}
|
||||
|
||||
} //PersonneImpl
|
||||
|
|
|
@ -5,6 +5,7 @@ package fr.n7.xtext.gAME.impl;
|
|||
|
||||
import fr.n7.xtext.gAME.Condition;
|
||||
import fr.n7.xtext.gAME.GAMEPackage;
|
||||
import fr.n7.xtext.gAME.Nom;
|
||||
import fr.n7.xtext.gAME.Transformation;
|
||||
|
||||
import java.util.Collection;
|
||||
|
@ -20,7 +21,8 @@ import org.eclipse.emf.ecore.InternalEObject;
|
|||
import org.eclipse.emf.ecore.impl.ENotificationImpl;
|
||||
import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
|
||||
|
||||
import org.eclipse.emf.ecore.util.EDataTypeEList;
|
||||
import org.eclipse.emf.ecore.util.EObjectContainmentEList;
|
||||
import org.eclipse.emf.ecore.util.InternalEList;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
|
@ -50,24 +52,24 @@ public class TransformationImpl extends MinimalEObjectImpl.Container implements
|
|||
protected Condition condition;
|
||||
|
||||
/**
|
||||
* The cached value of the '{@link #getObjetsIn() <em>Objets In</em>}' attribute list.
|
||||
* The cached value of the '{@link #getObjetsIn() <em>Objets In</em>}' containment reference list.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getObjetsIn()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected EList<String> objetsIn;
|
||||
protected EList<Nom> objetsIn;
|
||||
|
||||
/**
|
||||
* The cached value of the '{@link #getObjetsOut() <em>Objets Out</em>}' attribute list.
|
||||
* The cached value of the '{@link #getObjetsOut() <em>Objets Out</em>}' containment reference list.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getObjetsOut()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected EList<String> objetsOut;
|
||||
protected EList<Nom> objetsOut;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
|
@ -146,11 +148,11 @@ public class TransformationImpl extends MinimalEObjectImpl.Container implements
|
|||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public EList<String> getObjetsIn()
|
||||
public EList<Nom> getObjetsIn()
|
||||
{
|
||||
if (objetsIn == null)
|
||||
{
|
||||
objetsIn = new EDataTypeEList<String>(String.class, this, GAMEPackage.TRANSFORMATION__OBJETS_IN);
|
||||
objetsIn = new EObjectContainmentEList<Nom>(Nom.class, this, GAMEPackage.TRANSFORMATION__OBJETS_IN);
|
||||
}
|
||||
return objetsIn;
|
||||
}
|
||||
|
@ -161,11 +163,11 @@ public class TransformationImpl extends MinimalEObjectImpl.Container implements
|
|||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public EList<String> getObjetsOut()
|
||||
public EList<Nom> getObjetsOut()
|
||||
{
|
||||
if (objetsOut == null)
|
||||
{
|
||||
objetsOut = new EDataTypeEList<String>(String.class, this, GAMEPackage.TRANSFORMATION__OBJETS_OUT);
|
||||
objetsOut = new EObjectContainmentEList<Nom>(Nom.class, this, GAMEPackage.TRANSFORMATION__OBJETS_OUT);
|
||||
}
|
||||
return objetsOut;
|
||||
}
|
||||
|
@ -182,6 +184,10 @@ public class TransformationImpl extends MinimalEObjectImpl.Container implements
|
|||
{
|
||||
case GAMEPackage.TRANSFORMATION__CONDITION:
|
||||
return basicSetCondition(null, msgs);
|
||||
case GAMEPackage.TRANSFORMATION__OBJETS_IN:
|
||||
return ((InternalEList<?>)getObjetsIn()).basicRemove(otherEnd, msgs);
|
||||
case GAMEPackage.TRANSFORMATION__OBJETS_OUT:
|
||||
return ((InternalEList<?>)getObjetsOut()).basicRemove(otherEnd, msgs);
|
||||
}
|
||||
return super.eInverseRemove(otherEnd, featureID, msgs);
|
||||
}
|
||||
|
@ -222,11 +228,11 @@ public class TransformationImpl extends MinimalEObjectImpl.Container implements
|
|||
return;
|
||||
case GAMEPackage.TRANSFORMATION__OBJETS_IN:
|
||||
getObjetsIn().clear();
|
||||
getObjetsIn().addAll((Collection<? extends String>)newValue);
|
||||
getObjetsIn().addAll((Collection<? extends Nom>)newValue);
|
||||
return;
|
||||
case GAMEPackage.TRANSFORMATION__OBJETS_OUT:
|
||||
getObjetsOut().clear();
|
||||
getObjetsOut().addAll((Collection<? extends String>)newValue);
|
||||
getObjetsOut().addAll((Collection<? extends Nom>)newValue);
|
||||
return;
|
||||
}
|
||||
super.eSet(featureID, newValue);
|
||||
|
@ -275,23 +281,4 @@ public class TransformationImpl extends MinimalEObjectImpl.Container implements
|
|||
return super.eIsSet(featureID);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public String toString()
|
||||
{
|
||||
if (eIsProxy()) return super.toString();
|
||||
|
||||
StringBuilder result = new StringBuilder(super.toString());
|
||||
result.append(" (objetsIn: ");
|
||||
result.append(objetsIn);
|
||||
result.append(", objetsOut: ");
|
||||
result.append(objetsOut);
|
||||
result.append(')');
|
||||
return result.toString();
|
||||
}
|
||||
|
||||
} //TransformationImpl
|
||||
|
|
|
@ -166,6 +166,11 @@ public class GAMEAdapterFactory extends AdapterFactoryImpl
|
|||
return createConditionObjetAdapter();
|
||||
}
|
||||
@Override
|
||||
public Adapter caseNom(Nom object)
|
||||
{
|
||||
return createNomAdapter();
|
||||
}
|
||||
@Override
|
||||
public Adapter defaultCase(EObject object)
|
||||
{
|
||||
return createEObjectAdapter();
|
||||
|
@ -457,6 +462,21 @@ public class GAMEAdapterFactory extends AdapterFactoryImpl
|
|||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new adapter for an object of class '{@link fr.n7.xtext.gAME.Nom <em>Nom</em>}'.
|
||||
* <!-- begin-user-doc -->
|
||||
* This default implementation returns null so that we can easily ignore cases;
|
||||
* it's useful to ignore a case when inheritance will catch all the cases anyway.
|
||||
* <!-- end-user-doc -->
|
||||
* @return the new adapter.
|
||||
* @see fr.n7.xtext.gAME.Nom
|
||||
* @generated
|
||||
*/
|
||||
public Adapter createNomAdapter()
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new adapter for the default case.
|
||||
* <!-- begin-user-doc -->
|
||||
|
|
|
@ -202,6 +202,13 @@ public class GAMESwitch<T> extends Switch<T>
|
|||
if (result == null) result = defaultCase(theEObject);
|
||||
return result;
|
||||
}
|
||||
case GAMEPackage.NOM:
|
||||
{
|
||||
Nom nom = (Nom)theEObject;
|
||||
T result = caseNom(nom);
|
||||
if (result == null) result = defaultCase(theEObject);
|
||||
return result;
|
||||
}
|
||||
default: return defaultCase(theEObject);
|
||||
}
|
||||
}
|
||||
|
@ -494,6 +501,22 @@ public class GAMESwitch<T> extends Switch<T>
|
|||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the result of interpreting the object as an instance of '<em>Nom</em>'.
|
||||
* <!-- begin-user-doc -->
|
||||
* This implementation returns null;
|
||||
* returning a non-null result will terminate the switch.
|
||||
* <!-- end-user-doc -->
|
||||
* @param object the target of the switch.
|
||||
* @return the result of interpreting the object as an instance of '<em>Nom</em>'.
|
||||
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
|
||||
* @generated
|
||||
*/
|
||||
public T caseNom(Nom object)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the result of interpreting the object as an instance of '<em>EObject</em>'.
|
||||
* <!-- begin-user-doc -->
|
||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -1086,10 +1086,10 @@ public class InternalGAMELexer extends Lexer {
|
|||
try {
|
||||
int _type = RULE_ID;
|
||||
int _channel = DEFAULT_TOKEN_CHANNEL;
|
||||
// InternalGAME.g:3395:9: ( ( '^' )? ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )* )
|
||||
// InternalGAME.g:3395:11: ( '^' )? ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )*
|
||||
// InternalGAME.g:3471:9: ( ( '^' )? ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )* )
|
||||
// InternalGAME.g:3471:11: ( '^' )? ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )*
|
||||
{
|
||||
// InternalGAME.g:3395:11: ( '^' )?
|
||||
// InternalGAME.g:3471:11: ( '^' )?
|
||||
int alt1=2;
|
||||
int LA1_0 = input.LA(1);
|
||||
|
||||
|
@ -1098,7 +1098,7 @@ public class InternalGAMELexer extends Lexer {
|
|||
}
|
||||
switch (alt1) {
|
||||
case 1 :
|
||||
// InternalGAME.g:3395:11: '^'
|
||||
// InternalGAME.g:3471:11: '^'
|
||||
{
|
||||
match('^');
|
||||
|
||||
|
@ -1116,7 +1116,7 @@ public class InternalGAMELexer extends Lexer {
|
|||
recover(mse);
|
||||
throw mse;}
|
||||
|
||||
// InternalGAME.g:3395:40: ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )*
|
||||
// InternalGAME.g:3471:40: ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )*
|
||||
loop2:
|
||||
do {
|
||||
int alt2=2;
|
||||
|
@ -1165,10 +1165,10 @@ public class InternalGAMELexer extends Lexer {
|
|||
try {
|
||||
int _type = RULE_INT;
|
||||
int _channel = DEFAULT_TOKEN_CHANNEL;
|
||||
// InternalGAME.g:3397:10: ( ( '0' .. '9' )+ )
|
||||
// InternalGAME.g:3397:12: ( '0' .. '9' )+
|
||||
// InternalGAME.g:3473:10: ( ( '0' .. '9' )+ )
|
||||
// InternalGAME.g:3473:12: ( '0' .. '9' )+
|
||||
{
|
||||
// InternalGAME.g:3397:12: ( '0' .. '9' )+
|
||||
// InternalGAME.g:3473:12: ( '0' .. '9' )+
|
||||
int cnt3=0;
|
||||
loop3:
|
||||
do {
|
||||
|
@ -1182,7 +1182,7 @@ public class InternalGAMELexer extends Lexer {
|
|||
|
||||
switch (alt3) {
|
||||
case 1 :
|
||||
// InternalGAME.g:3397:13: '0' .. '9'
|
||||
// InternalGAME.g:3473:13: '0' .. '9'
|
||||
{
|
||||
matchRange('0','9');
|
||||
|
||||
|
@ -1214,10 +1214,10 @@ public class InternalGAMELexer extends Lexer {
|
|||
try {
|
||||
int _type = RULE_STRING;
|
||||
int _channel = DEFAULT_TOKEN_CHANNEL;
|
||||
// InternalGAME.g:3399:13: ( ( '\"' ( '\\\\' . | ~ ( ( '\\\\' | '\"' ) ) )* '\"' | '\\'' ( '\\\\' . | ~ ( ( '\\\\' | '\\'' ) ) )* '\\'' ) )
|
||||
// InternalGAME.g:3399:15: ( '\"' ( '\\\\' . | ~ ( ( '\\\\' | '\"' ) ) )* '\"' | '\\'' ( '\\\\' . | ~ ( ( '\\\\' | '\\'' ) ) )* '\\'' )
|
||||
// InternalGAME.g:3475:13: ( ( '\"' ( '\\\\' . | ~ ( ( '\\\\' | '\"' ) ) )* '\"' | '\\'' ( '\\\\' . | ~ ( ( '\\\\' | '\\'' ) ) )* '\\'' ) )
|
||||
// InternalGAME.g:3475:15: ( '\"' ( '\\\\' . | ~ ( ( '\\\\' | '\"' ) ) )* '\"' | '\\'' ( '\\\\' . | ~ ( ( '\\\\' | '\\'' ) ) )* '\\'' )
|
||||
{
|
||||
// InternalGAME.g:3399:15: ( '\"' ( '\\\\' . | ~ ( ( '\\\\' | '\"' ) ) )* '\"' | '\\'' ( '\\\\' . | ~ ( ( '\\\\' | '\\'' ) ) )* '\\'' )
|
||||
// InternalGAME.g:3475:15: ( '\"' ( '\\\\' . | ~ ( ( '\\\\' | '\"' ) ) )* '\"' | '\\'' ( '\\\\' . | ~ ( ( '\\\\' | '\\'' ) ) )* '\\'' )
|
||||
int alt6=2;
|
||||
int LA6_0 = input.LA(1);
|
||||
|
||||
|
@ -1235,10 +1235,10 @@ public class InternalGAMELexer extends Lexer {
|
|||
}
|
||||
switch (alt6) {
|
||||
case 1 :
|
||||
// InternalGAME.g:3399:16: '\"' ( '\\\\' . | ~ ( ( '\\\\' | '\"' ) ) )* '\"'
|
||||
// InternalGAME.g:3475:16: '\"' ( '\\\\' . | ~ ( ( '\\\\' | '\"' ) ) )* '\"'
|
||||
{
|
||||
match('\"');
|
||||
// InternalGAME.g:3399:20: ( '\\\\' . | ~ ( ( '\\\\' | '\"' ) ) )*
|
||||
// InternalGAME.g:3475:20: ( '\\\\' . | ~ ( ( '\\\\' | '\"' ) ) )*
|
||||
loop4:
|
||||
do {
|
||||
int alt4=3;
|
||||
|
@ -1254,7 +1254,7 @@ public class InternalGAMELexer extends Lexer {
|
|||
|
||||
switch (alt4) {
|
||||
case 1 :
|
||||
// InternalGAME.g:3399:21: '\\\\' .
|
||||
// InternalGAME.g:3475:21: '\\\\' .
|
||||
{
|
||||
match('\\');
|
||||
matchAny();
|
||||
|
@ -1262,7 +1262,7 @@ public class InternalGAMELexer extends Lexer {
|
|||
}
|
||||
break;
|
||||
case 2 :
|
||||
// InternalGAME.g:3399:28: ~ ( ( '\\\\' | '\"' ) )
|
||||
// InternalGAME.g:3475:28: ~ ( ( '\\\\' | '\"' ) )
|
||||
{
|
||||
if ( (input.LA(1)>='\u0000' && input.LA(1)<='!')||(input.LA(1)>='#' && input.LA(1)<='[')||(input.LA(1)>=']' && input.LA(1)<='\uFFFF') ) {
|
||||
input.consume();
|
||||
|
@ -1287,10 +1287,10 @@ public class InternalGAMELexer extends Lexer {
|
|||
}
|
||||
break;
|
||||
case 2 :
|
||||
// InternalGAME.g:3399:48: '\\'' ( '\\\\' . | ~ ( ( '\\\\' | '\\'' ) ) )* '\\''
|
||||
// InternalGAME.g:3475:48: '\\'' ( '\\\\' . | ~ ( ( '\\\\' | '\\'' ) ) )* '\\''
|
||||
{
|
||||
match('\'');
|
||||
// InternalGAME.g:3399:53: ( '\\\\' . | ~ ( ( '\\\\' | '\\'' ) ) )*
|
||||
// InternalGAME.g:3475:53: ( '\\\\' . | ~ ( ( '\\\\' | '\\'' ) ) )*
|
||||
loop5:
|
||||
do {
|
||||
int alt5=3;
|
||||
|
@ -1306,7 +1306,7 @@ public class InternalGAMELexer extends Lexer {
|
|||
|
||||
switch (alt5) {
|
||||
case 1 :
|
||||
// InternalGAME.g:3399:54: '\\\\' .
|
||||
// InternalGAME.g:3475:54: '\\\\' .
|
||||
{
|
||||
match('\\');
|
||||
matchAny();
|
||||
|
@ -1314,7 +1314,7 @@ public class InternalGAMELexer extends Lexer {
|
|||
}
|
||||
break;
|
||||
case 2 :
|
||||
// InternalGAME.g:3399:61: ~ ( ( '\\\\' | '\\'' ) )
|
||||
// InternalGAME.g:3475:61: ~ ( ( '\\\\' | '\\'' ) )
|
||||
{
|
||||
if ( (input.LA(1)>='\u0000' && input.LA(1)<='&')||(input.LA(1)>='(' && input.LA(1)<='[')||(input.LA(1)>=']' && input.LA(1)<='\uFFFF') ) {
|
||||
input.consume();
|
||||
|
@ -1357,12 +1357,12 @@ public class InternalGAMELexer extends Lexer {
|
|||
try {
|
||||
int _type = RULE_ML_COMMENT;
|
||||
int _channel = DEFAULT_TOKEN_CHANNEL;
|
||||
// InternalGAME.g:3401:17: ( '/*' ( options {greedy=false; } : . )* '*/' )
|
||||
// InternalGAME.g:3401:19: '/*' ( options {greedy=false; } : . )* '*/'
|
||||
// InternalGAME.g:3477:17: ( '/*' ( options {greedy=false; } : . )* '*/' )
|
||||
// InternalGAME.g:3477:19: '/*' ( options {greedy=false; } : . )* '*/'
|
||||
{
|
||||
match("/*");
|
||||
|
||||
// InternalGAME.g:3401:24: ( options {greedy=false; } : . )*
|
||||
// InternalGAME.g:3477:24: ( options {greedy=false; } : . )*
|
||||
loop7:
|
||||
do {
|
||||
int alt7=2;
|
||||
|
@ -1387,7 +1387,7 @@ public class InternalGAMELexer extends Lexer {
|
|||
|
||||
switch (alt7) {
|
||||
case 1 :
|
||||
// InternalGAME.g:3401:52: .
|
||||
// InternalGAME.g:3477:52: .
|
||||
{
|
||||
matchAny();
|
||||
|
||||
|
@ -1417,12 +1417,12 @@ public class InternalGAMELexer extends Lexer {
|
|||
try {
|
||||
int _type = RULE_SL_COMMENT;
|
||||
int _channel = DEFAULT_TOKEN_CHANNEL;
|
||||
// InternalGAME.g:3403:17: ( '//' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )? )
|
||||
// InternalGAME.g:3403:19: '//' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )?
|
||||
// InternalGAME.g:3479:17: ( '//' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )? )
|
||||
// InternalGAME.g:3479:19: '//' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )?
|
||||
{
|
||||
match("//");
|
||||
|
||||
// InternalGAME.g:3403:24: (~ ( ( '\\n' | '\\r' ) ) )*
|
||||
// InternalGAME.g:3479:24: (~ ( ( '\\n' | '\\r' ) ) )*
|
||||
loop8:
|
||||
do {
|
||||
int alt8=2;
|
||||
|
@ -1435,7 +1435,7 @@ public class InternalGAMELexer extends Lexer {
|
|||
|
||||
switch (alt8) {
|
||||
case 1 :
|
||||
// InternalGAME.g:3403:24: ~ ( ( '\\n' | '\\r' ) )
|
||||
// InternalGAME.g:3479:24: ~ ( ( '\\n' | '\\r' ) )
|
||||
{
|
||||
if ( (input.LA(1)>='\u0000' && input.LA(1)<='\t')||(input.LA(1)>='\u000B' && input.LA(1)<='\f')||(input.LA(1)>='\u000E' && input.LA(1)<='\uFFFF') ) {
|
||||
input.consume();
|
||||
|
@ -1455,7 +1455,7 @@ public class InternalGAMELexer extends Lexer {
|
|||
}
|
||||
} while (true);
|
||||
|
||||
// InternalGAME.g:3403:40: ( ( '\\r' )? '\\n' )?
|
||||
// InternalGAME.g:3479:40: ( ( '\\r' )? '\\n' )?
|
||||
int alt10=2;
|
||||
int LA10_0 = input.LA(1);
|
||||
|
||||
|
@ -1464,9 +1464,9 @@ public class InternalGAMELexer extends Lexer {
|
|||
}
|
||||
switch (alt10) {
|
||||
case 1 :
|
||||
// InternalGAME.g:3403:41: ( '\\r' )? '\\n'
|
||||
// InternalGAME.g:3479:41: ( '\\r' )? '\\n'
|
||||
{
|
||||
// InternalGAME.g:3403:41: ( '\\r' )?
|
||||
// InternalGAME.g:3479:41: ( '\\r' )?
|
||||
int alt9=2;
|
||||
int LA9_0 = input.LA(1);
|
||||
|
||||
|
@ -1475,7 +1475,7 @@ public class InternalGAMELexer extends Lexer {
|
|||
}
|
||||
switch (alt9) {
|
||||
case 1 :
|
||||
// InternalGAME.g:3403:41: '\\r'
|
||||
// InternalGAME.g:3479:41: '\\r'
|
||||
{
|
||||
match('\r');
|
||||
|
||||
|
@ -1507,10 +1507,10 @@ public class InternalGAMELexer extends Lexer {
|
|||
try {
|
||||
int _type = RULE_WS;
|
||||
int _channel = DEFAULT_TOKEN_CHANNEL;
|
||||
// InternalGAME.g:3405:9: ( ( ' ' | '\\t' | '\\r' | '\\n' )+ )
|
||||
// InternalGAME.g:3405:11: ( ' ' | '\\t' | '\\r' | '\\n' )+
|
||||
// InternalGAME.g:3481:9: ( ( ' ' | '\\t' | '\\r' | '\\n' )+ )
|
||||
// InternalGAME.g:3481:11: ( ' ' | '\\t' | '\\r' | '\\n' )+
|
||||
{
|
||||
// InternalGAME.g:3405:11: ( ' ' | '\\t' | '\\r' | '\\n' )+
|
||||
// InternalGAME.g:3481:11: ( ' ' | '\\t' | '\\r' | '\\n' )+
|
||||
int cnt11=0;
|
||||
loop11:
|
||||
do {
|
||||
|
@ -1564,8 +1564,8 @@ public class InternalGAMELexer extends Lexer {
|
|||
try {
|
||||
int _type = RULE_ANY_OTHER;
|
||||
int _channel = DEFAULT_TOKEN_CHANNEL;
|
||||
// InternalGAME.g:3407:16: ( . )
|
||||
// InternalGAME.g:3407:18: .
|
||||
// InternalGAME.g:3483:16: ( . )
|
||||
// InternalGAME.g:3483:18: .
|
||||
{
|
||||
matchAny();
|
||||
|
||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -17,6 +17,7 @@ import fr.n7.xtext.gAME.Interaction;
|
|||
import fr.n7.xtext.gAME.Jeu;
|
||||
import fr.n7.xtext.gAME.Lieu;
|
||||
import fr.n7.xtext.gAME.NOTConditionConnaissance;
|
||||
import fr.n7.xtext.gAME.Nom;
|
||||
import fr.n7.xtext.gAME.Objet;
|
||||
import fr.n7.xtext.gAME.Personne;
|
||||
import fr.n7.xtext.gAME.Territoire;
|
||||
|
@ -86,6 +87,9 @@ public class GAMESemanticSequencer extends AbstractDelegatingSemanticSequencer {
|
|||
case GAMEPackage.NOT_CONDITION_CONNAISSANCE:
|
||||
sequence_NOTConditionConnaissance(context, (NOTConditionConnaissance) semanticObject);
|
||||
return;
|
||||
case GAMEPackage.NOM:
|
||||
sequence_Nom(context, (Nom) semanticObject);
|
||||
return;
|
||||
case GAMEPackage.OBJET:
|
||||
sequence_Objet(context, (Objet) semanticObject);
|
||||
return;
|
||||
|
@ -111,9 +115,9 @@ public class GAMESemanticSequencer extends AbstractDelegatingSemanticSequencer {
|
|||
* (
|
||||
* visible=Condition
|
||||
* finInteraction=Condition
|
||||
* (connaissances+=STRING connaissances+=STRING*)?
|
||||
* (objetsRecus+=STRING objetsRecus+=STRING*)?
|
||||
* (objetsConso+=STRING objetsConso+=STRING*)?
|
||||
* (connaissances+=Nom connaissances+=Nom*)?
|
||||
* (objetsRecus+=Nom objetsRecus+=Nom*)?
|
||||
* (objetsConso+=Nom objetsConso+=Nom*)?
|
||||
* descriptions+=Description
|
||||
* descriptions+=Description*
|
||||
* )
|
||||
|
@ -129,14 +133,14 @@ public class GAMESemanticSequencer extends AbstractDelegatingSemanticSequencer {
|
|||
*
|
||||
* Constraint:
|
||||
* (
|
||||
* lieuIn=STRING
|
||||
* lieuOut=STRING
|
||||
* lieuIn=Nom
|
||||
* lieuOut=Nom
|
||||
* ouvert=Condition
|
||||
* visible=Condition
|
||||
* obligatoire=Condition
|
||||
* (connaissances+=STRING connaissances+=STRING*)?
|
||||
* (objetsRecus+=STRING objetsRecus+=STRING*)?
|
||||
* (objetsConso+=STRING objetsConso+=STRING*)?
|
||||
* (connaissances+=Nom connaissances+=Nom*)?
|
||||
* (objetsRecus+=Nom objetsRecus+=Nom*)?
|
||||
* (objetsConso+=Nom objetsConso+=Nom*)?
|
||||
* descriptions+=Description
|
||||
* descriptions+=Description*
|
||||
* )
|
||||
|
@ -152,7 +156,7 @@ public class GAMESemanticSequencer extends AbstractDelegatingSemanticSequencer {
|
|||
* ConditionConnaissance returns ConditionConnaissance
|
||||
*
|
||||
* Constraint:
|
||||
* connaissance=STRING
|
||||
* connaissance=Nom
|
||||
*/
|
||||
protected void sequence_ConditionConnaissance(ISerializationContext context, ConditionConnaissance semanticObject) {
|
||||
if (errorAcceptor != null) {
|
||||
|
@ -160,7 +164,7 @@ public class GAMESemanticSequencer extends AbstractDelegatingSemanticSequencer {
|
|||
errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, GAMEPackage.Literals.CONDITION_CONNAISSANCE__CONNAISSANCE));
|
||||
}
|
||||
SequenceFeeder feeder = createSequencerFeeder(context, semanticObject);
|
||||
feeder.accept(grammarAccess.getConditionConnaissanceAccess().getConnaissanceSTRINGTerminalRuleCall_0(), semanticObject.getConnaissance());
|
||||
feeder.accept(grammarAccess.getConditionConnaissanceAccess().getConnaissanceNomParserRuleCall_0(), semanticObject.getConnaissance());
|
||||
feeder.finish();
|
||||
}
|
||||
|
||||
|
@ -183,7 +187,7 @@ public class GAMESemanticSequencer extends AbstractDelegatingSemanticSequencer {
|
|||
* ConditionObjet returns ConditionObjet
|
||||
*
|
||||
* Constraint:
|
||||
* (objet=STRING comparateur=Comparateur nombre=INT)
|
||||
* (objet=Nom comparateur=Comparateur nombre=INT)
|
||||
*/
|
||||
protected void sequence_ConditionObjet(ISerializationContext context, ConditionObjet semanticObject) {
|
||||
if (errorAcceptor != null) {
|
||||
|
@ -195,7 +199,7 @@ public class GAMESemanticSequencer extends AbstractDelegatingSemanticSequencer {
|
|||
errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, GAMEPackage.Literals.CONDITION_OBJET__NOMBRE));
|
||||
}
|
||||
SequenceFeeder feeder = createSequencerFeeder(context, semanticObject);
|
||||
feeder.accept(grammarAccess.getConditionObjetAccess().getObjetSTRINGTerminalRuleCall_0_0(), semanticObject.getObjet());
|
||||
feeder.accept(grammarAccess.getConditionObjetAccess().getObjetNomParserRuleCall_0_0(), semanticObject.getObjet());
|
||||
feeder.accept(grammarAccess.getConditionObjetAccess().getComparateurComparateurParserRuleCall_1_0(), semanticObject.getComparateur());
|
||||
feeder.accept(grammarAccess.getConditionObjetAccess().getNombreINTTerminalRuleCall_2_0(), semanticObject.getNombre());
|
||||
feeder.finish();
|
||||
|
@ -219,7 +223,7 @@ public class GAMESemanticSequencer extends AbstractDelegatingSemanticSequencer {
|
|||
* Connaissance returns Connaissance
|
||||
*
|
||||
* Constraint:
|
||||
* (nom=STRING visible=Condition descriptions+=Description descriptions+=Description*)
|
||||
* (nom=Nom visible=Condition descriptions+=Description descriptions+=Description*)
|
||||
*/
|
||||
protected void sequence_Connaissance(ISerializationContext context, Connaissance semanticObject) {
|
||||
genericSequencer.createSequence(context, semanticObject);
|
||||
|
@ -252,7 +256,7 @@ public class GAMESemanticSequencer extends AbstractDelegatingSemanticSequencer {
|
|||
* Explorateur returns Explorateur
|
||||
*
|
||||
* Constraint:
|
||||
* (tailleInventaire=INT (connaissances+=STRING connaissances+=STRING*)? (objets+=STRING objets+=STRING*)?)
|
||||
* (tailleInventaire=INT (connaissances+=Nom connaissances+=Nom*)? (objets+=Nom objets+=Nom*)?)
|
||||
*/
|
||||
protected void sequence_Explorateur(ISerializationContext context, Explorateur semanticObject) {
|
||||
genericSequencer.createSequence(context, semanticObject);
|
||||
|
@ -266,9 +270,9 @@ public class GAMESemanticSequencer extends AbstractDelegatingSemanticSequencer {
|
|||
* Constraint:
|
||||
* (
|
||||
* visible=Condition
|
||||
* (connaissances+=STRING connaissances+=STRING*)?
|
||||
* (objetsRecus+=STRING objetsRecus+=STRING*)?
|
||||
* (objetsConso+=STRING objetsRecus+=STRING*)?
|
||||
* (connaissances+=Nom connaissances+=Nom*)?
|
||||
* (objetsRecus+=Nom objetsRecus+=Nom*)?
|
||||
* (objetsConso+=Nom objetsRecus+=Nom*)?
|
||||
* actions+=Action
|
||||
* actions+=Action*
|
||||
* )
|
||||
|
@ -303,15 +307,15 @@ public class GAMESemanticSequencer extends AbstractDelegatingSemanticSequencer {
|
|||
*
|
||||
* Constraint:
|
||||
* (
|
||||
* nom=STRING
|
||||
* nom=Nom
|
||||
* deposable=Condition
|
||||
* depart=Condition
|
||||
* fin=Condition
|
||||
* (personnes+=STRING personnes+=STRING*)?
|
||||
* (personnes+=Nom personnes+=Nom*)?
|
||||
* descriptions+=Description
|
||||
* descriptions+=Description*
|
||||
* (objets+=STRING objets+=STRING*)?
|
||||
* (connaissances+=STRING connaissances+=STRING*)?
|
||||
* (objets+=Nom objets+=Nom*)?
|
||||
* (connaissances+=Nom connaissances+=Nom*)?
|
||||
* )
|
||||
*/
|
||||
protected void sequence_Lieu(ISerializationContext context, Lieu semanticObject) {
|
||||
|
@ -325,7 +329,7 @@ public class GAMESemanticSequencer extends AbstractDelegatingSemanticSequencer {
|
|||
* NOTConditionConnaissance returns NOTConditionConnaissance
|
||||
*
|
||||
* Constraint:
|
||||
* connaissance=STRING
|
||||
* connaissance=Nom
|
||||
*/
|
||||
protected void sequence_NOTConditionConnaissance(ISerializationContext context, NOTConditionConnaissance semanticObject) {
|
||||
if (errorAcceptor != null) {
|
||||
|
@ -333,7 +337,25 @@ public class GAMESemanticSequencer extends AbstractDelegatingSemanticSequencer {
|
|||
errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, GAMEPackage.Literals.NOT_CONDITION_CONNAISSANCE__CONNAISSANCE));
|
||||
}
|
||||
SequenceFeeder feeder = createSequencerFeeder(context, semanticObject);
|
||||
feeder.accept(grammarAccess.getNOTConditionConnaissanceAccess().getConnaissanceSTRINGTerminalRuleCall_1_0(), semanticObject.getConnaissance());
|
||||
feeder.accept(grammarAccess.getNOTConditionConnaissanceAccess().getConnaissanceNomParserRuleCall_1_0(), semanticObject.getConnaissance());
|
||||
feeder.finish();
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Contexts:
|
||||
* Nom returns Nom
|
||||
*
|
||||
* Constraint:
|
||||
* nom=STRING
|
||||
*/
|
||||
protected void sequence_Nom(ISerializationContext context, Nom semanticObject) {
|
||||
if (errorAcceptor != null) {
|
||||
if (transientValues.isValueTransient(semanticObject, GAMEPackage.Literals.NOM__NOM) == ValueTransient.YES)
|
||||
errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, GAMEPackage.Literals.NOM__NOM));
|
||||
}
|
||||
SequenceFeeder feeder = createSequencerFeeder(context, semanticObject);
|
||||
feeder.accept(grammarAccess.getNomAccess().getNomSTRINGTerminalRuleCall_0(), semanticObject.getNom());
|
||||
feeder.finish();
|
||||
}
|
||||
|
||||
|
@ -343,7 +365,7 @@ public class GAMESemanticSequencer extends AbstractDelegatingSemanticSequencer {
|
|||
* Objet returns Objet
|
||||
*
|
||||
* Constraint:
|
||||
* (nom=STRING taille=INT visible=Condition descriptions+=Description descriptions+=Description*)
|
||||
* (nom=Nom taille=INT visible=Condition descriptions+=Description descriptions+=Description*)
|
||||
*/
|
||||
protected void sequence_Objet(ISerializationContext context, Objet semanticObject) {
|
||||
genericSequencer.createSequence(context, semanticObject);
|
||||
|
@ -355,7 +377,7 @@ public class GAMESemanticSequencer extends AbstractDelegatingSemanticSequencer {
|
|||
* Personne returns Personne
|
||||
*
|
||||
* Constraint:
|
||||
* (nom=STRING visible=Condition obligatoire=Condition (interactions+=Interaction interactions+=Interaction*)?)
|
||||
* (nom=Nom visible=Condition obligatoire=Condition (interactions+=Interaction interactions+=Interaction*)?)
|
||||
*/
|
||||
protected void sequence_Personne(ISerializationContext context, Personne semanticObject) {
|
||||
genericSequencer.createSequence(context, semanticObject);
|
||||
|
@ -379,7 +401,7 @@ public class GAMESemanticSequencer extends AbstractDelegatingSemanticSequencer {
|
|||
* Transformation returns Transformation
|
||||
*
|
||||
* Constraint:
|
||||
* (condition=Condition (objetsIn+=STRING objetsIn+=STRING*)? (objetsOut+=STRING objetsOut+=STRING*)?)
|
||||
* (condition=Condition (objetsIn+=Nom objetsIn+=Nom*)? (objetsOut+=Nom objetsOut+=Nom*)?)
|
||||
*/
|
||||
protected void sequence_Transformation(ISerializationContext context, Transformation semanticObject) {
|
||||
genericSequencer.createSequence(context, semanticObject);
|
||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -18,8 +18,8 @@ Jeu:
|
|||
Explorateur:
|
||||
'{'
|
||||
'"taille"' ':' tailleInventaire=INT ','
|
||||
'"connaissances"' ':' '[' (connaissances+=STRING (',' connaissances+=STRING)*)? ']' ','
|
||||
'"objets"' ':' '[' (objets+=STRING (',' objets+=STRING)*)? ']'
|
||||
'"connaissances"' ':' '[' (connaissances+=Nom (',' connaissances+=Nom)*)? ']' ','
|
||||
'"objets"' ':' '[' (objets+=Nom (',' objets+=Nom)*)? ']'
|
||||
'}'
|
||||
;
|
||||
|
||||
|
@ -32,34 +32,34 @@ Territoire:
|
|||
|
||||
Lieu:
|
||||
'{'
|
||||
'"nom"' ':' nom=STRING ','
|
||||
'"nom"' ':' nom=Nom ','
|
||||
'"deposable"' ':' deposable=Condition ','
|
||||
'"depart"' ':' depart=Condition ','
|
||||
'"fin"' ':' fin=Condition ','
|
||||
'"personnes"' ':' '[' (personnes+=STRING (',' personnes+=STRING)*)? ']' ','
|
||||
'"personnes"' ':' '[' (personnes+=Nom (',' personnes+=Nom)*)? ']' ','
|
||||
'"descriptions"' ':' '[' descriptions+=Description (',' descriptions+=Description)* ']' ','
|
||||
'"objets"' ':' '[' (objets+=STRING (',' objets+=STRING)*)? ']' ','
|
||||
'"connaissances"' ':' '[' (connaissances+=STRING (',' connaissances+=STRING)*)? ']'
|
||||
'"objets"' ':' '[' (objets+=Nom (',' objets+=Nom)*)? ']' ','
|
||||
'"connaissances"' ':' '[' (connaissances+=Nom (',' connaissances+=Nom)*)? ']'
|
||||
'}'
|
||||
;
|
||||
|
||||
Chemin:
|
||||
'{'
|
||||
'"lieu_in"' ':' lieuIn=STRING ','
|
||||
'"lieu_out"' ':' lieuOut=STRING ','
|
||||
'"lieu_in"' ':' lieuIn=Nom ','
|
||||
'"lieu_out"' ':' lieuOut=Nom ','
|
||||
'"ouvert"' ':' ouvert=Condition ','
|
||||
'"visible"' ':' visible=Condition ','
|
||||
'"obligatoire"' ':' obligatoire=Condition ','
|
||||
'"connaissances"' ':' '[' (connaissances+=STRING (',' connaissances+=STRING)*)? ']' ','
|
||||
'"objets_recus"' ':' '[' (objetsRecus+=STRING (',' objetsRecus+=STRING)*)? ']' ','
|
||||
'"objets_conso"' ':' '[' (objetsConso+=STRING (',' objetsConso+=STRING)*)? ']' ','
|
||||
'"connaissances"' ':' '[' (connaissances+=Nom (',' connaissances+=Nom)*)? ']' ','
|
||||
'"objets_recus"' ':' '[' (objetsRecus+=Nom (',' objetsRecus+=Nom)*)? ']' ','
|
||||
'"objets_conso"' ':' '[' (objetsConso+=Nom (',' objetsConso+=Nom)*)? ']' ','
|
||||
'"descriptions"' ':' '[' descriptions+=Description (',' descriptions+=Description)* ']'
|
||||
'}'
|
||||
;
|
||||
|
||||
Objet:
|
||||
'{'
|
||||
'"nom"' ':' nom=STRING ','
|
||||
'"nom"' ':' nom=Nom ','
|
||||
'"taille"' ':' taille=INT ','
|
||||
'"visible"' ':' visible=Condition ','
|
||||
'"descriptions"' ':' '[' descriptions+=Description (',' descriptions+=Description)* ']'
|
||||
|
@ -69,14 +69,14 @@ Objet:
|
|||
Transformation:
|
||||
'{'
|
||||
'"condition"' ':' condition=Condition ','
|
||||
'"objets_in"' ':' '[' (objetsIn+=STRING (',' objetsIn+=STRING)*)? ']' ','
|
||||
'"objets_out"' ':' '[' (objetsOut+=STRING (',' objetsOut+=STRING)*)? ']' ','
|
||||
'"objets_in"' ':' '[' (objetsIn+=Nom (',' objetsIn+=Nom)*)? ']' ','
|
||||
'"objets_out"' ':' '[' (objetsOut+=Nom (',' objetsOut+=Nom)*)? ']' ','
|
||||
'}'
|
||||
;
|
||||
|
||||
Connaissance:
|
||||
'{'
|
||||
'"nom"' ':' nom=STRING ','
|
||||
'"nom"' ':' nom=Nom ','
|
||||
'"visible"' ':' visible=Condition ','
|
||||
'"descriptions"' ':' '[' descriptions+=Description (',' descriptions+=Description)* ']'
|
||||
'}'
|
||||
|
@ -84,7 +84,7 @@ Connaissance:
|
|||
|
||||
Personne:
|
||||
'{'
|
||||
'"nom"' ':' nom=STRING ','
|
||||
'"nom"' ':' nom=Nom ','
|
||||
'"visible"' ':' visible=Condition ','
|
||||
'"obligatoire"' ':' obligatoire=Condition ','
|
||||
'"interactions"' ':' '[' (interactions+=Interaction (',' interactions+=Interaction)*)? ']'
|
||||
|
@ -94,9 +94,9 @@ Personne:
|
|||
Interaction:
|
||||
'{'
|
||||
'"visible"' ':' visible=Condition ','
|
||||
'"connaissances"' ':' '[' (connaissances+=STRING (',' connaissances+=STRING)*)? ']' ','
|
||||
'"objets_recus"' ':' '[' (objetsRecus+=STRING (',' objetsRecus+=STRING)*)? ']' ','
|
||||
'"objets_conso"' ':' '[' (objetsConso+=STRING (',' objetsRecus+=STRING)*)? ']' ','
|
||||
'"connaissances"' ':' '[' (connaissances+=Nom (',' connaissances+=Nom)*)? ']' ','
|
||||
'"objets_recus"' ':' '[' (objetsRecus+=Nom (',' objetsRecus+=Nom)*)? ']' ','
|
||||
'"objets_conso"' ':' '[' (objetsConso+=Nom (',' objetsRecus+=Nom)*)? ']' ','
|
||||
'"actions"' ':' '[' actions+=Action (',' actions+=Action)* ']'
|
||||
'}'
|
||||
;
|
||||
|
@ -105,9 +105,9 @@ Action:
|
|||
'{'
|
||||
'"visible"' ':' visible=Condition ','
|
||||
'"fin_interaction"' ':' finInteraction=Condition ','
|
||||
'"connaissances"' ':' '[' (connaissances+=STRING (',' connaissances+=STRING)*)? ']' ','
|
||||
'"objets_recus"' ':' '[' (objetsRecus+=STRING (',' objetsRecus+=STRING)*)? ']' ','
|
||||
'"objets_conso"' ':' '[' (objetsConso+=STRING (',' objetsConso+=STRING)*)? ']' ','
|
||||
'"connaissances"' ':' '[' (connaissances+=Nom (',' connaissances+=Nom)*)? ']' ','
|
||||
'"objets_recus"' ':' '[' (objetsRecus+=Nom (',' objetsRecus+=Nom)*)? ']' ','
|
||||
'"objets_conso"' ':' '[' (objetsConso+=Nom (',' objetsConso+=Nom)*)? ']' ','
|
||||
'"descriptions"' ':' '[' descriptions+=Description (',' descriptions+=Description)* ']'
|
||||
'}'
|
||||
;
|
||||
|
@ -132,17 +132,21 @@ ConditionTest:
|
|||
;
|
||||
|
||||
ConditionConnaissance:
|
||||
connaissance=STRING
|
||||
connaissance=Nom
|
||||
;
|
||||
|
||||
NOTConditionConnaissance:
|
||||
'!' connaissance=STRING
|
||||
'!' connaissance=Nom
|
||||
;
|
||||
|
||||
ConditionObjet:
|
||||
objet=STRING comparateur=Comparateur nombre=INT
|
||||
objet=Nom comparateur=Comparateur nombre=INT
|
||||
;
|
||||
|
||||
Comparateur:
|
||||
'<' | '>' | '==' | '<=' | '>=' | '!='
|
||||
;
|
||||
|
||||
Nom:
|
||||
nom=STRING
|
||||
;
|
||||
|
|
Binary file not shown.
Loading…
Reference in a new issue