Skip to content

Commit

Permalink
getCompositionType, getParticipantType
Browse files Browse the repository at this point in the history
  • Loading branch information
steve-hickman-epistimis committed Jan 22, 2024
1 parent e6b5324 commit 506b86f
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,17 @@ public ConceptualParticipant conv2Participant(ConceptualCharacteristic character
return (ConceptualParticipant)characteristic;
}

@Override
public ConceptualComposableElement getCompositionType(ConceptualComposition comp) {
// TODO Auto-generated method stub
return comp.getType();
}
@Override
public ConceptualEntity getParticipantType(ConceptualParticipant part) {
// TODO Auto-generated method stub
return part.getType();
}

@Override
public boolean isContainer(UddlElement obj) {
// TODO Auto-generated method stub
Expand All @@ -109,5 +120,4 @@ public EList<? extends UddlElement> getElement(ConceptualDataModel obj) {
return obj.getElement();
}


}
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,6 @@ public abstract class EntityProcessor<ComposableElement extends UddlElement,
abstract public Entity getSpecializes(Entity ent);

abstract public boolean isAssociation(Entity ent);

abstract public Association conv2Association(Entity ent);

abstract public EList<Composition> getComposition(Entity obj);
Expand All @@ -99,6 +98,9 @@ public abstract class EntityProcessor<ComposableElement extends UddlElement,

abstract public Composition conv2Composition(Characteristic characteristic);
abstract public Participant conv2Participant(Characteristic characteristic);
abstract public ComposableElement getCompositionType(Composition comp);
abstract public Entity getParticipantType(Participant part);


abstract public boolean isContainer(UddlElement obj);
abstract public Container conv2Container(UddlElement obj);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
import com.epistimis.uddl.uddl.LogicalComposableElement;
import com.epistimis.uddl.uddl.LogicalComposition;
import com.epistimis.uddl.uddl.LogicalDataModel;
import com.epistimis.uddl.uddl.LogicalElement;
import com.epistimis.uddl.uddl.LogicalEntity;
import com.epistimis.uddl.uddl.LogicalMeasurement;
import com.epistimis.uddl.uddl.LogicalParticipant;
Expand Down Expand Up @@ -89,6 +88,18 @@ public LogicalParticipant conv2Participant(LogicalCharacteristic characteristic)
return (LogicalParticipant)characteristic;
}

@Override
public LogicalComposableElement getCompositionType(LogicalComposition comp) {
// TODO Auto-generated method stub
return comp.getType();
}

@Override
public LogicalEntity getParticipantType(LogicalParticipant part) {
// TODO Auto-generated method stub
return part.getType();
}

@Override
public boolean isContainer(UddlElement obj) {
// TODO Auto-generated method stub
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,18 @@ public PlatformParticipant conv2Participant(PlatformCharacteristic characteristi
return (PlatformParticipant)characteristic;
}

@Override
public PlatformComposableElement getCompositionType(PlatformComposition comp) {
// TODO Auto-generated method stub
return comp.getType();
}

@Override
public PlatformEntity getParticipantType(PlatformParticipant part) {
// TODO Auto-generated method stub
return part.getType();
}

@Override
public boolean isContainer(UddlElement obj) {
// TODO Auto-generated method stub
Expand All @@ -106,4 +118,5 @@ public EList<? extends UddlElement> getElement(PlatformDataModel obj) {
return obj.getElement();
}


}

0 comments on commit 506b86f

Please sign in to comment.