Skip to content
Snippets Groups Projects
Commit eea39f47 authored by Stefan Herrnleben's avatar Stefan Herrnleben
Browse files

add opposite relationship for entity types in dni metamodel

parent 7fca4d13
No related branches found
No related tags found
No related merge requests found
......@@ -68,7 +68,7 @@ class Node extends Entity {
refers Node isHostedOn opposite hosts
contains End end opposite node
contains Intermediate intermediate opposite node
refers NodeType entityType
refers NodeType entityType opposite entities
}
class End extends Identifier {
......@@ -105,7 +105,7 @@ class Link extends Entity {
}
return name
}
refers LinkType entityType
refers LinkType entityType opposite entities
}
class NetworkInterface extends AddressableEntity, NamedElement, Entity {
......@@ -121,7 +121,7 @@ class NetworkInterface extends AddressableEntity, NamedElement, Entity {
// }
return name
}
refers NetworkInterfaceType entityType
refers NetworkInterfaceType entityType opposite entities
}
class NetworkTraffic {
......@@ -278,7 +278,7 @@ interface PerformanceSpecification {
class PerformanceLink extends PerformanceSpecification {
contains Dependency[1] propagationDelay
contains Dependency[1] maxSupportedBandwidth
refers LinkPerformanceType entityType
refers LinkPerformanceType entityType opposite entities
}
class PerformanceNetworkInterface extends PerformanceSpecification {
......@@ -286,7 +286,7 @@ class PerformanceNetworkInterface extends PerformanceSpecification {
int[1] MTU = "1500"
contains Dependency[1] packetProcessingTime
contains Variable[1] interfaceThroughput
refers NetworkInterfacePerformanceType entityType
refers NetworkInterfacePerformanceType entityType opposite entities
}
class SdnFlowRule {
......@@ -333,12 +333,12 @@ class IntermediatePerformance extends PerformanceSpecification {
contains Dependency[1] forwardingBandwidthBPS
// contains Dependency[1] switchingCapacityPPS
contains Dependency[1] switchingCapacityPPS // changed 23.06.2016 - just rename
refers IntermediatePerformanceType entityType
refers IntermediatePerformanceType entityType opposite entities
}
class EndPerformance extends PerformanceSpecification {
contains Dependency[1] softwareLayersDelay
refers EndPerformanceType entityType
refers EndPerformanceType entityType opposite entities
}
class PerformanceSdnNode extends PerformanceSpecification {
......@@ -348,7 +348,7 @@ class PerformanceSdnNode extends PerformanceSpecification {
// contains IntermediatePerformance hardwareSwitchingIntermediatePerformance //to describe hardware mode of the SDN switch. Null means no software mode.
contains IntermediatePerformance softwareSwitchingPerformance // changed 23.06.2016 - just rename
contains IntermediatePerformance hardwareSwitchingPerformance // changed 23.06.2016 - just rename
refers SdnNodePerformanceType entityType
refers SdnNodePerformanceType entityType opposite entities
}
interface DNIUnit {
......@@ -425,6 +425,9 @@ class ExponentialFunction extends Function {
double lambda
}
//
// Entity Types
//
class EntityTypes {
contains AbstractEntityType[] types
}
......@@ -433,25 +436,33 @@ abstract class AbstractEntityType extends Entity {
}
class NodeType extends AbstractEntityType {
refers Node[] entities opposite entityType
}
class EndPerformanceType extends AbstractEntityType {
refers EndPerformance[] entities opposite entityType
}
class IntermediatePerformanceType extends AbstractEntityType {
refers IntermediatePerformance[] entities opposite entityType
}
class SdnNodePerformanceType extends AbstractEntityType {
refers PerformanceSdnNode[] entities opposite entityType
}
class NetworkInterfaceType extends AbstractEntityType {
refers NetworkInterface[] entities opposite entityType
}
class NetworkInterfacePerformanceType extends AbstractEntityType {
refers PerformanceNetworkInterface[] entities opposite entityType
}
class LinkType extends AbstractEntityType {
refers Link[] entities opposite entityType
}
class LinkPerformanceType extends AbstractEntityType {
refers PerformanceLink[] entities opposite entityType
}
......@@ -429,3 +429,13 @@ _UI_DNIModelWizard_description = Create a new DNI model
_UI_DNIEditorFilenameDefaultBase = My
_UI_DNIEditorFilenameExtensions = dni
_UI_EntityType_type = Entity Type
_UI_NodeType_nodes_feature = Nodes
_UI_NodeType_entities_feature = Entities
_UI_EndPerformanceType_entities_feature = Entities
_UI_IntermediatePerformanceType_entities_feature = Entities
_UI_SdnNodePerformanceType_entities_feature = Entities
_UI_NetworkInterfaceType_entities_feature = Entities
_UI_NetworkInterfacePerformanceType_entities_feature = Entities
_UI_LinkType_entities_feature = Entities
_UI_LinkPerformanceType_entities_feature = Entities
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment