Package de.uni_marburg.mdo_over.model
Class Span
- java.lang.Object
-
- de.uni_marburg.mdo_over.model.Span
-
public class Span extends Object
-
-
Constructor Summary
Constructors Constructor Description Span(ModelGraphMapping domainToFirstCodomain, ModelGraphMapping domainToSecondCodomain)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcalculatePushout()Calculates the pushout and the mappings to it from the codomains of the current span.ModelGraphgetDomain()ModelGraphMappinggetDomainToFirstCodomain()ModelGraphMappinggetDomainToSecondCodomain()ModelGraphgetFirstCodomain()ModelGraphMappinggetFirstCodomainToPushout()Returns the mapping from the first codomain to the pushout.ModelGraphgetPushout()Returns the pushout graph for the span.ModelGraphgetSecondCodomain()ModelGraphMappinggetSecondCodomainToPushout()Returns the mapping from the second codomain to the pushout.
-
-
-
Constructor Detail
-
Span
public Span(ModelGraphMapping domainToFirstCodomain, ModelGraphMapping domainToSecondCodomain)
-
-
Method Detail
-
getPushout
public ModelGraph getPushout() throws GraphManipulationException
Returns the pushout graph for the span. Calculates the pushout if no pushout has been calculated, yet.- Returns:
- the pushout graph
- Throws:
GraphManipulationException- thrown if a valid pushout graph could not be constructed
-
getFirstCodomainToPushout
public ModelGraphMapping getFirstCodomainToPushout() throws GraphManipulationException
Returns the mapping from the first codomain to the pushout. Calculates the pushout if no pushout has been calculated, yet.- Returns:
- mapping from the first codomain to the pushout
- Throws:
GraphManipulationException- thrown if a valid pushout graph could not be constructed
-
getSecondCodomainToPushout
public ModelGraphMapping getSecondCodomainToPushout() throws GraphManipulationException
Returns the mapping from the second codomain to the pushout. Calculates the pushout if no pushout has been calculated, yet.- Returns:
- mapping from the second codomain to the pushout
- Throws:
GraphManipulationException- thrown if a valid pushout graph could not be constructed
-
calculatePushout
public void calculatePushout() throws GraphManipulationExceptionCalculates the pushout and the mappings to it from the codomains of the current span.- Throws:
GraphManipulationException- thrown if a valid pushout graph could not be constructed
-
getFirstCodomain
public ModelGraph getFirstCodomain()
-
getSecondCodomain
public ModelGraph getSecondCodomain()
-
getDomain
public ModelGraph getDomain()
-
getDomainToFirstCodomain
public ModelGraphMapping getDomainToFirstCodomain()
-
getDomainToSecondCodomain
public ModelGraphMapping getDomainToSecondCodomain()
-
-