Skip to content

Commit

Permalink
Merge branch 'release/2019-12'
Browse files Browse the repository at this point in the history
  • Loading branch information
ivan-gomes committed Jan 7, 2020
2 parents 29eeead + 2eff66e commit 23954b3
Show file tree
Hide file tree
Showing 180 changed files with 16,772 additions and 1,503 deletions.
9 changes: 0 additions & 9 deletions app/org/omg/sysml/metamodel/ConjugatedEndPortMembership.java

This file was deleted.

11 changes: 11 additions & 0 deletions app/org/omg/sysml/metamodel/ConjugatedPortDefinition.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
package org.omg.sysml.metamodel;

import java.util.Collection;
import java.util.List;
import java.util.Set;

public interface ConjugatedPortDefinition extends PortDefinition, MofObject {
PortDefinition getOriginalPortDefinition();

PortConjugation getOwnedPortConjugator();
}
11 changes: 11 additions & 0 deletions app/org/omg/sysml/metamodel/ConjugatedPortTyping.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
package org.omg.sysml.metamodel;

import java.util.Collection;
import java.util.List;
import java.util.Set;

public interface ConjugatedPortTyping extends FeatureTyping, MofObject {
PortDefinition getOriginalPortDefinition();

ConjugatedPortDefinition getConjugatedPortDefinition();
}
13 changes: 13 additions & 0 deletions app/org/omg/sysml/metamodel/Conjugation.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
package org.omg.sysml.metamodel;

import java.util.Collection;
import java.util.List;
import java.util.Set;

public interface Conjugation extends Relationship, MofObject {
Type getOriginalType();

Type getConjugatedType();

Type getOwningType();
}
2 changes: 2 additions & 0 deletions app/org/omg/sysml/metamodel/Definition.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,6 @@ public interface Definition extends Classifier, MofObject {
Collection<? extends Property> getProperty();

Collection<? extends ActionUsage> getOwnedAction();

Collection<? extends StateUsage> getOwnedState();
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
import java.util.List;
import java.util.Set;

public interface EndPortMembership extends EndFeatureMembership, PortMembership, MofObject {

public interface ExhibitStateUsage extends StateUsage, MofObject {
StateUsage getExhibitedState();
}
11 changes: 11 additions & 0 deletions app/org/omg/sysml/metamodel/PortConjugation.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
package org.omg.sysml.metamodel;

import java.util.Collection;
import java.util.List;
import java.util.Set;

public interface PortConjugation extends Conjugation, MofObject {
PortDefinition getOriginalPortDefinition();

ConjugatedPortDefinition getConjugatedPortDefinition();
}
2 changes: 1 addition & 1 deletion app/org/omg/sysml/metamodel/PortDefinition.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@
import java.util.Set;

public interface PortDefinition extends Definition, MofObject {

ConjugatedPortDefinition getConjugatedPortDefinition();
}
2 changes: 1 addition & 1 deletion app/org/omg/sysml/metamodel/PortUsage.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import java.util.List;
import java.util.Set;

public interface PortUsage extends Usage, Feature, MofObject {
public interface PortUsage extends Usage, MofObject {
PortDefinition getPortDefinition();

Definition getPortOwningDefinition();
Expand Down
7 changes: 7 additions & 0 deletions app/org/omg/sysml/metamodel/StateActionKind.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
package org.omg.sysml.metamodel;

public enum StateActionKind {
ENTRY,
DO,
EXIT
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
import java.util.List;
import java.util.Set;

public interface PortMembership extends FeatureMembership, MofObject {
PortUsage getMemberPort();
public interface StateActionMembership extends FeatureMembership, MofObject {
StateActionKind getKind();
}
9 changes: 9 additions & 0 deletions app/org/omg/sysml/metamodel/StateDefinition.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
package org.omg.sysml.metamodel;

import java.util.Collection;
import java.util.List;
import java.util.Set;

public interface StateDefinition extends Definition, Behavior, MofObject {
Collection<? extends StateUsage> getState();
}
13 changes: 13 additions & 0 deletions app/org/omg/sysml/metamodel/StateUsage.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
package org.omg.sysml.metamodel;

import java.util.Collection;
import java.util.List;
import java.util.Set;

public interface StateUsage extends Step, Usage, MofObject {
Usage getStateOwningUsage();

Definition getStateOwningDefinition();

Collection<? extends Behavior> getStateDefinition();
}
7 changes: 7 additions & 0 deletions app/org/omg/sysml/metamodel/TransitionFeatureKind.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
package org.omg.sysml.metamodel;

public enum TransitionFeatureKind {
TRIGGER,
GUARD,
EFFECT
}
9 changes: 9 additions & 0 deletions app/org/omg/sysml/metamodel/TransitionFeatureMembership.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
package org.omg.sysml.metamodel;

import java.util.Collection;
import java.util.List;
import java.util.Set;

public interface TransitionFeatureMembership extends FeatureMembership, MofObject {
TransitionFeatureKind getKind();
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
import java.util.List;
import java.util.Set;

public interface ConjugatedPortMembership extends PortMembership, MofObject {
public interface TransitionStep extends Step, MofObject {

}
10 changes: 10 additions & 0 deletions app/org/omg/sysml/metamodel/Type.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,14 @@ public interface Type extends Package, MofObject {
Collection<? extends Feature> getOwnedEndFeature();

Boolean getIsSufficient();

Conjugation getOwnedConjugator();

Boolean getIsConjugated();

Conjugation getConjugator();

List<? extends FeatureMembership> getFeatureMembership();

Collection<? extends Feature> getInheritedFeature();
}
2 changes: 2 additions & 0 deletions app/org/omg/sysml/metamodel/Usage.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,6 @@ public interface Usage extends Feature, MofObject {
Collection<? extends Property> getProperty();

Collection<? extends ActionUsage> getNestedAction();

Collection<? extends StateUsage> getNestedState();
}
136 changes: 136 additions & 0 deletions app/org/omg/sysml/metamodel/impl/AcceptActionUsageImpl.java
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,32 @@ public void setNestedAction(Collection<ActionUsage> nestedAction) {



// @info.archinnov.achilles.annotations.Transient
// @info.archinnov.achilles.annotations.Column("nestedState")
private Collection<StateUsage> nestedState;

@JsonGetter
@JsonSerialize(contentUsing = MofObjectSerializer.class)
// @javax.persistence.Transient
@ManyToAny(metaDef = "StateUsageMetaDef", metaColumn = @javax.persistence.Column(name = "attributeType"), fetch = FetchType.LAZY)
@JoinTable(name = "AcceptActionUsage_nestedState",
joinColumns = @JoinColumn(name = "classId"),
inverseJoinColumns = @JoinColumn(name = "attributeId"))
public Collection<StateUsage> getNestedState() {
if (nestedState == null) {
nestedState = new ArrayList<>();
}
return nestedState;
}

@JsonSetter
@JsonDeserialize(contentUsing = MofObjectDeserializer.class, contentAs = StateUsageImpl.class)
public void setNestedState(Collection<StateUsage> nestedState) {
this.nestedState = nestedState;
}



// @info.archinnov.achilles.annotations.Transient
// @info.archinnov.achilles.annotations.Column("behavior")
private Collection<Behavior> behavior;
Expand Down Expand Up @@ -921,6 +947,116 @@ public void setIsSufficient(Boolean isSufficient) {



// @info.archinnov.achilles.annotations.Transient
// @info.archinnov.achilles.annotations.Column("ownedConjugator")
private Conjugation ownedConjugator;

@JsonGetter
@JsonSerialize(using = MofObjectSerializer.class)
// @javax.persistence.Transient
@Any(metaDef = "ConjugationMetaDef", metaColumn = @javax.persistence.Column(name = "ownedConjugatorType"), fetch = FetchType.LAZY)
@JoinColumn(name = "ownedConjugatorId", table = "AcceptActionUsage")
public Conjugation getOwnedConjugator() {
return ownedConjugator;
}

@JsonSetter
@JsonDeserialize(using = MofObjectDeserializer.class, as = ConjugationImpl.class)
public void setOwnedConjugator(Conjugation ownedConjugator) {
this.ownedConjugator = ownedConjugator;
}



// @info.archinnov.achilles.annotations.Transient
// @info.archinnov.achilles.annotations.Column("isConjugated")
private Boolean isConjugated;

@JsonGetter
// @javax.persistence.Transient
@javax.persistence.Column(name = "isConjugated", table = "AcceptActionUsage")
public Boolean getIsConjugated() {
return isConjugated;
}

@JsonSetter
public void setIsConjugated(Boolean isConjugated) {
this.isConjugated = isConjugated;
}



// @info.archinnov.achilles.annotations.Column("conjugator")
private Conjugation conjugator;

@JsonGetter
@JsonSerialize(using = MofObjectSerializer.class)
@Any(metaDef = "ConjugationMetaDef", metaColumn = @javax.persistence.Column(name = "conjugatorType"), fetch = FetchType.LAZY)
@JoinColumn(name = "conjugatorId", table = "AcceptActionUsage")
public Conjugation getConjugator() {
return conjugator;
}

@JsonSetter
@JsonDeserialize(using = MofObjectDeserializer.class, as = ConjugationImpl.class)
public void setConjugator(Conjugation conjugator) {
this.conjugator = conjugator;
}



// @info.archinnov.achilles.annotations.Transient
// @info.archinnov.achilles.annotations.Column("featureMembership")
private List<FeatureMembership> featureMembership;

@JsonGetter
@JsonSerialize(contentUsing = MofObjectSerializer.class)
// @javax.persistence.Transient
@ManyToAny(metaDef = "FeatureMembershipMetaDef", metaColumn = @javax.persistence.Column(name = "attributeType"), fetch = FetchType.LAZY)
@JoinTable(name = "AcceptActionUsage_featureMembership",
joinColumns = @JoinColumn(name = "classId"),
inverseJoinColumns = @JoinColumn(name = "attributeId"))
public List<FeatureMembership> getFeatureMembership() {
if (featureMembership == null) {
featureMembership = new ArrayList<>();
}
return featureMembership;
}

@JsonSetter
@JsonDeserialize(contentUsing = MofObjectDeserializer.class, contentAs = FeatureMembershipImpl.class)
public void setFeatureMembership(List<FeatureMembership> featureMembership) {
this.featureMembership = featureMembership;
}



// @info.archinnov.achilles.annotations.Transient
// @info.archinnov.achilles.annotations.Column("inheritedFeature")
private Collection<Feature> inheritedFeature;

@JsonGetter
@JsonSerialize(contentUsing = MofObjectSerializer.class)
// @javax.persistence.Transient
@ManyToAny(metaDef = "FeatureMetaDef", metaColumn = @javax.persistence.Column(name = "attributeType"), fetch = FetchType.LAZY)
@JoinTable(name = "AcceptActionUsage_inheritedFeature",
joinColumns = @JoinColumn(name = "classId"),
inverseJoinColumns = @JoinColumn(name = "attributeId"))
public Collection<Feature> getInheritedFeature() {
if (inheritedFeature == null) {
inheritedFeature = new ArrayList<>();
}
return inheritedFeature;
}

@JsonSetter
@JsonDeserialize(contentUsing = MofObjectDeserializer.class, contentAs = FeatureImpl.class)
public void setInheritedFeature(Collection<Feature> inheritedFeature) {
this.inheritedFeature = inheritedFeature;
}



// @info.archinnov.achilles.annotations.Transient
// @info.archinnov.achilles.annotations.Column("membership")
private List<Membership> membership;
Expand Down
Loading

0 comments on commit 23954b3

Please sign in to comment.