Skip to content

Commit

Permalink
Merge branch 'release/2022-01'
Browse files Browse the repository at this point in the history
  • Loading branch information
ivan-gomes committed Feb 5, 2022
2 parents 5505bad + af5e608 commit e906017
Show file tree
Hide file tree
Showing 10 changed files with 127 additions and 26 deletions.
6 changes: 6 additions & 0 deletions app/org/omg/sysml/metamodel/AcceptActionUsage.java
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,10 @@

public interface AcceptActionUsage extends ActionUsage, SysMLType {
Expression getReceiverArgument();

ReferenceUsage getPayloadParameter();

Expression getPayloadArgument();

TriggerKind getTriggerKind();
}
4 changes: 2 additions & 2 deletions app/org/omg/sysml/metamodel/ForLoopActionUsage.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
import java.util.Set;

public interface ForLoopActionUsage extends LoopActionUsage, SysMLType {
ReferenceUsage getLoopVariable();

Expression getSeqArgument();

ReferenceUsage getLoopVariable();
}
2 changes: 1 addition & 1 deletion app/org/omg/sysml/metamodel/SendActionUsage.java
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,5 @@
public interface SendActionUsage extends ActionUsage, SysMLType {
Expression getReceiverArgument();

Expression getItemsArgument();
Expression getPayloadArgument();
}
29 changes: 29 additions & 0 deletions app/org/omg/sysml/metamodel/TriggerKind.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
/*
* SysML v2 REST/HTTP Pilot Implementation
* Copyright (C) 2020 InterCAX LLC
* Copyright (C) 2020 California Institute of Technology ("Caltech")
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*
* @license LGPL-3.0-or-later <http://spdx.org/licenses/LGPL-3.0-or-later>
*/

package org.omg.sysml.metamodel;

public enum TriggerKind {
ACCEPT,
WHEN,
AT,
AFTER
}
60 changes: 60 additions & 0 deletions app/org/omg/sysml/metamodel/impl/AcceptActionUsageImpl.java
Original file line number Diff line number Diff line change
Expand Up @@ -2322,6 +2322,48 @@ public void setParameter(List<Feature> parameter) {



// @info.archinnov.achilles.annotations.Transient
// @info.archinnov.achilles.annotations.Column("payloadArgument")
private Expression payloadArgument;

@JsonGetter
@JsonSerialize(using = DataSerializer.class)
// @javax.persistence.Transient
@Any(metaDef = "ExpressionMetaDef", metaColumn = @javax.persistence.Column(name = "payloadArgumentType"), fetch = FetchType.LAZY)
@JoinColumn(name = "payloadArgumentId", table = "AcceptActionUsage")
public Expression getPayloadArgument() {
return payloadArgument;
}

@JsonSetter
@JsonDeserialize(using = DataDeserializer.class, as = ExpressionImpl.class)
public void setPayloadArgument(Expression payloadArgument) {
this.payloadArgument = payloadArgument;
}



// @info.archinnov.achilles.annotations.Transient
// @info.archinnov.achilles.annotations.Column("payloadParameter")
private ReferenceUsage payloadParameter;

@JsonGetter
@JsonSerialize(using = DataSerializer.class)
// @javax.persistence.Transient
@Any(metaDef = "ReferenceUsageMetaDef", metaColumn = @javax.persistence.Column(name = "payloadParameterType"), fetch = FetchType.LAZY)
@JoinColumn(name = "payloadParameterId", table = "AcceptActionUsage")
public ReferenceUsage getPayloadParameter() {
return payloadParameter;
}

@JsonSetter
@JsonDeserialize(using = DataDeserializer.class, as = ReferenceUsageImpl.class)
public void setPayloadParameter(ReferenceUsage payloadParameter) {
this.payloadParameter = payloadParameter;
}



// @info.archinnov.achilles.annotations.Column("portionKind")
// @info.archinnov.achilles.annotations.Enumerated(info.archinnov.achilles.annotations.Enumerated.Encoding.NAME)
private PortionKind portionKind;
Expand Down Expand Up @@ -2402,6 +2444,24 @@ public void setReceiverArgument(Expression receiverArgument) {



// @info.archinnov.achilles.annotations.Column("triggerKind")
// @info.archinnov.achilles.annotations.Enumerated(info.archinnov.achilles.annotations.Enumerated.Encoding.NAME)
private TriggerKind triggerKind;

@JsonGetter
@javax.persistence.Enumerated(EnumType.STRING)
@javax.persistence.Column(name = "triggerKind", table = "AcceptActionUsage")
public TriggerKind getTriggerKind() {
return triggerKind;
}

@JsonSetter
public void setTriggerKind(TriggerKind triggerKind) {
this.triggerKind = triggerKind;
}



// @info.archinnov.achilles.annotations.Transient
// @info.archinnov.achilles.annotations.Column("type")
private List<Type> type;
Expand Down
42 changes: 21 additions & 21 deletions app/org/omg/sysml/metamodel/impl/SendActionUsageImpl.java
Original file line number Diff line number Diff line change
Expand Up @@ -852,27 +852,6 @@ public void setIsVariation(Boolean isVariation) {



// @info.archinnov.achilles.annotations.Transient
// @info.archinnov.achilles.annotations.Column("itemsArgument")
private Expression itemsArgument;

@JsonGetter
@JsonSerialize(using = DataSerializer.class)
// @javax.persistence.Transient
@Any(metaDef = "ExpressionMetaDef", metaColumn = @javax.persistence.Column(name = "itemsArgumentType"), fetch = FetchType.LAZY)
@JoinColumn(name = "itemsArgumentId", table = "SendActionUsage")
public Expression getItemsArgument() {
return itemsArgument;
}

@JsonSetter
@JsonDeserialize(using = DataDeserializer.class, as = ExpressionImpl.class)
public void setItemsArgument(Expression itemsArgument) {
this.itemsArgument = itemsArgument;
}



// @info.archinnov.achilles.annotations.Transient
// @info.archinnov.achilles.annotations.Column("member")
private List<Element> member;
Expand Down Expand Up @@ -2343,6 +2322,27 @@ public void setParameter(List<Feature> parameter) {



// @info.archinnov.achilles.annotations.Transient
// @info.archinnov.achilles.annotations.Column("payloadArgument")
private Expression payloadArgument;

@JsonGetter
@JsonSerialize(using = DataSerializer.class)
// @javax.persistence.Transient
@Any(metaDef = "ExpressionMetaDef", metaColumn = @javax.persistence.Column(name = "payloadArgumentType"), fetch = FetchType.LAZY)
@JoinColumn(name = "payloadArgumentId", table = "SendActionUsage")
public Expression getPayloadArgument() {
return payloadArgument;
}

@JsonSetter
@JsonDeserialize(using = DataDeserializer.class, as = ExpressionImpl.class)
public void setPayloadArgument(Expression payloadArgument) {
this.payloadArgument = payloadArgument;
}



// @info.archinnov.achilles.annotations.Column("portionKind")
// @info.archinnov.achilles.annotations.Enumerated(info.archinnov.achilles.annotations.Enumerated.Encoding.NAME)
private PortionKind portionKind;
Expand Down
2 changes: 1 addition & 1 deletion build.sbt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name := """SysML-v2-API-Services"""
organization := "org.omg"

version := "2021-12"
version := "2022-01"

javacOptions ++= Seq("-source", "11", "-target", "11", "-Xlint")

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
import org.omg.sysml.metamodel.Subsetting;
import org.omg.sysml.metamodel.TextualRepresentation;
import org.omg.sysml.metamodel.TransitionUsage;
import org.omg.sysml.metamodel.TriggerKind;
import org.omg.sysml.metamodel.Type;
import org.omg.sysml.metamodel.TypeFeaturing;
import org.omg.sysml.metamodel.Usage;
Expand All @@ -70,6 +71,7 @@ public abstract class AcceptActionUsageImpl_ extends org.omg.sysml.lifecycle.imp
public static volatile SingularAttribute<AcceptActionUsageImpl, Boolean> isUnique;
public static volatile ListAttribute<AcceptActionUsageImpl, Usage> nestedUsage;
public static volatile CollectionAttribute<AcceptActionUsageImpl, Subsetting> ownedSubsetting;
public static volatile SingularAttribute<AcceptActionUsageImpl, TriggerKind> triggerKind;
public static volatile ListAttribute<AcceptActionUsageImpl, Type> type;
public static volatile ListAttribute<AcceptActionUsageImpl, RequirementUsage> nestedRequirement;
public static volatile ListAttribute<AcceptActionUsageImpl, Feature> output;
Expand Down Expand Up @@ -161,6 +163,7 @@ public abstract class AcceptActionUsageImpl_ extends org.omg.sysml.lifecycle.imp
public static final String IS_UNIQUE = "isUnique";
public static final String NESTED_USAGE = "nestedUsage";
public static final String OWNED_SUBSETTING = "ownedSubsetting";
public static final String TRIGGER_KIND = "triggerKind";
public static final String TYPE = "type";
public static final String NESTED_REQUIREMENT = "nestedRequirement";
public static final String OUTPUT = "output";
Expand Down
3 changes: 3 additions & 0 deletions public/jsonld/metamodel/AcceptActionUsage.jsonld
Original file line number Diff line number Diff line change
Expand Up @@ -101,10 +101,13 @@
"owningType": {"@type": "@id"},
"owningUsage": {"@type": "@id"},
"parameter": {"@type": "@id"},
"payloadArgument": {"@type": "@id"},
"payloadParameter": {"@type": "@id"},
"portionKind": {"@type": "@vocab"},
"portioningFeature": {"@type": "@id"},
"qualifiedName": {"@type": "xsd:string"},
"receiverArgument": {"@type": "@id"},
"triggerKind": {"@type": "@vocab"},
"type": {"@type": "@id"},
"usage": {"@type": "@id"},
"variant": {"@type": "@id"},
Expand Down
2 changes: 1 addition & 1 deletion public/jsonld/metamodel/SendActionUsage.jsonld
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@
"isSufficient": {"@type": "xsd:boolean"},
"isUnique": {"@type": "xsd:boolean"},
"isVariation": {"@type": "xsd:boolean"},
"itemsArgument": {"@type": "@id"},
"member": {"@type": "@id"},
"membership": {"@type": "@id"},
"multiplicity": {"@type": "@id"},
Expand Down Expand Up @@ -102,6 +101,7 @@
"owningType": {"@type": "@id"},
"owningUsage": {"@type": "@id"},
"parameter": {"@type": "@id"},
"payloadArgument": {"@type": "@id"},
"portionKind": {"@type": "@vocab"},
"portioningFeature": {"@type": "@id"},
"qualifiedName": {"@type": "xsd:string"},
Expand Down

0 comments on commit e906017

Please sign in to comment.