Klasse ModelLayer
java.lang.Object
alps.java.api.StandardPASS.PASSProcessModelElement
alps.java.api.ALPS.ALPSModelElement
alps.java.api.ALPS.ALPSModelElements.ModelLayer
- Alle implementierten Schnittstellen:
IModelLayer
,IALPSModelElement
,ICapsuleCallback
,IGraphCallback
,IParseablePASSProcessModelElement
,IAbstractElement
,IExtendingElement<IModelLayer>
,IImplementingElement
,IImplementingElementT<IModelLayer>
,IPASSProcessModelElement
,IPrioritizableElement
,IContainableElement<IPASSProcessModel>
,IValueChangedObserver<IPASSProcessModelElement>
,IValueChangedPublisher<IPASSProcessModelElement>
Class that represents a model layer
-
Verschachtelte Klassen - Übersicht
Von Klasse geerbte verschachtelte Klassen/Schnittstellen alps.java.api.StandardPASS.PASSProcessModelElement
PASSProcessModelElement.ConnectedElementsSetSpecification, PASSProcessModelElement.ObserverInformType
Von Schnittstelle geerbte verschachtelte Klassen/Schnittstellen alps.java.api.ALPS.ALPSModelElements.IModelLayer
IModelLayer.LayerType
-
Feldübersicht
Modifizierer und TypFeldBeschreibungprivate final String
private final String
Name of the class, needed for parsingprotected String
protected IModelLayer
protected IExtendsFunctionalityCapsule<IModelLayer>
protected IImplementsFunctionalityCapsule<IModelLayer>
protected boolean
protected IModelLayer.LayerType
protected IPASSProcessModel
protected int
Von Klasse geerbte Felder alps.java.api.StandardPASS.PASSProcessModelElement
additionalAttributeTriples, additionalElements, additionalIncompleteTriples, BASE_URI_PLACEHOLDER, CANNOT_PARSE, comments, customLocale, EXAMPLE_BASE_URI, exportGraph, exportSubjectNodeName, guid, modelComponentID, modelComponentLabels, observerList, parsingStarted
-
Konstruktorübersicht
KonstruktorBeschreibungModelLayer
(IPASSProcessModel model) ModelLayer
(IPASSProcessModel model, String labelForID) ModelLayer
(IPASSProcessModel model, String labelForID, String comment, String additionalLabel, List<IIncompleteTriple> additionalAttribute) -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoid
addElement
(IPASSProcessModelElement element) Adds an IPASSProcessModelElement to the layer.void
addImplementedInterface
(IModelLayer implementedInterface) adds an implemented interfacevoid
addImplementedInterfaceIDReference
(String implementedInterfaceID) Adds an implemented interfaceprotected void
public static CultureInfo customCulture = new CultureInfo("en-US"); static PASSProcessModelElement(){ customCulture.NumberFormat.NumberDecimalSeparator = "Returns the container this element belongs to "out" methodboolean
getContainedBy
(IPASSProcessModel model) getElement
(String id) Returns a dictionary of all elements saved in the model layerprotected String
getFullySpecifiedSubject
(int numberOfElement) Returns a fully specified subject depending on its positionReturns the interfaces implemented by this instanceReturns the interfaces implemented by this instancegetInputPoolConstraint
(int numberOfElement) Returns an input pool constraint depending on its positiongetInputPoolConstraintHandlingStrategy
(int numberOfElement) Returns a input pool constraint handling strategy depending on its positiongetInterfaceSubject
(int numberOfElement) Returns an interface subject depending on its position (inside the list of interface subjects in the layer)Returns the layer type for the current layergetMessageExchange
(int numberOfElement) Returns a message exchange depending on its positiongetMessageExchangeList
(int numberOfElement) Returns the message exchange list depending on its positiongetMessageSenderTypeConstraint
(int numberOfElement) Returns a message sender type constraint depending on its positiongetMessageSpecification
(int numberOfElement) Returns a message specification depending on its positiongetMessageTypeConstraint
(int numberOfElement) Returns a message type constraint depending on its positiongetMultiSubject
(int numberOfElement) Returns a multi subject depending on its positionint
Returns the priority number of the transitiongetSenderTypeConstraint
(int numberOfElement) Returns a sender type constraint depending on its positiongetSingleSubject
(int numberOfElement) Returns a single subject depending on its positionboolean
Checks whether the element is abstract or notboolean
void
notifyModelComponentIDChanged
(String oldID, String newID) protected boolean
parseAttribute
(String predicate, String objectContent, String lang, String dataType, IParseablePASSProcessModelElement element) Gets called while parsing a triple from a set of triples where this element is subject.boolean
removeContainedElement
(String modelComponentID) Deletes an element depending on its id, if it is contained inside the layerboolean
removeContainedElement
(String modelComponentID, int removeCascadeDepth) Deletes an element depending on its id, if it is contained inside the layervoid
Removes this element from its containervoid
Removes a specified interface from the set of implemented interfaces.void
removeImplementedInterfaces
(String id, int removeCascadeDepth) Removes a specified interface from the set of implemented interfaces.void
removeImplementedInterfacesIDReference
(String implementedInterfaceID) Removes a specified interface from the set of implemented interfaces.void
setContainedBy
(IPASSProcessModel container) Sets the container for this elementvoid
setExtendedElement
(IModelLayer element) void
setExtendedElementID
(String elementID) void
setExtendedLayer
(IModelLayer extendedLayer) void
setExtendedLayer
(IModelLayer extendedLayer, int removeCascadeDepth) void
setImplementedInterfaces
(Set<IModelLayer> implementedInterface) Sets the set of implemented interfaces for the instancevoid
setImplementedInterfaces
(Set<IModelLayer> implementedInterface, int removeCascadeDepth) Sets the set of implemented interfaces for the instancevoid
setImplementedInterfacesIDReferences
(Set<String> implementedInterfacesIDs) Sets the set of implemented interfaces for the instancevoid
setIsAbstract
(boolean isAbstract) Marks/Unmarks the element as abstracvoid
setLayerType
(IModelLayer.LayerType layerType) Method that sets the layertype of the Modellayer When the layertype of a modellayer is GUARD it cannot be changed back to EXTENSION.void
setPriorityNumber
(int nonNegativInteger) Sets the priority number of the transition, must be greater than or equal to 0protected void
successfullyParsedElement
(IParseablePASSProcessModelElement parsedElement) void
updateAdded
(IPASSProcessModelElement update, IPASSProcessModelElement caller) void
updateRemoved
(IPASSProcessModelElement update, IPASSProcessModelElement caller) void
updateRemoved
(IPASSProcessModelElement update, IPASSProcessModelElement caller, int removeCascadeDepth) Von Klasse geerbte Methoden alps.java.api.StandardPASS.PASSProcessModelElement
addComment, addComment, addElementWithUnspecifiedRelation, addIncompleteTriples, addModelComponentLabel, addModelComponentLabel, addTriple, addTriple, addTriples, canParse, clearComments, clearModelComponentLabels, completeIncompleteTriple, completeObject, containsTriple, createUniqueModelComponentID, createUniqueModelComponentID, createUniqueModelComponentID, equals, getBaseURI, getComments, getDictionaryOfAllAvailableElements, getElementsWithUnspecifiedRelation, getIncompleteTriple, getIncompleteTriples, getModelComponentID, getModelComponentLabels, getModelComponentLabelsAsStrings, getModelComponentLabelsAsStrings, getSubjectName, getTriple, getTriples, getUriModelComponentID, informObserverAboutConnectedObjects, informObserverAboutConnectedObjects, invalidateTriplesContainingString, notifyTriple, parseAttribute, parseAttribute, publishElementAdded, publishElementRemoved, publishElementRemoved, publishNewModelComponentID, register, removeElementWithUnspecifiedRelation, removeFromEverything, removeFromEverything, removeModelComponentLabel, removeTriple, replaceTriple, setElementsWithUnspecifiedRelation, setExportGraph, setExportXMLName, setModelComponentID, setModelComponentLabels, unregister, unregister
Von Klasse geerbte Methoden java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Von Schnittstelle geerbte Methoden alps.java.api.StandardPASS.IPASSProcessModelElement
addComment, addElementWithUnspecifiedRelation, addModelComponentLabel, clearComments, clearModelComponentLabels, createUniqueModelComponentID, createUniqueModelComponentID, createUniqueModelComponentID, getComments, getElementsWithUnspecifiedRelation, getModelComponentID, getModelComponentLabels, getModelComponentLabelsAsStrings, getModelComponentLabelsAsStrings, getUriModelComponentID, removeElementWithUnspecifiedRelation, removeFromEverything, removeFromEverything, removeModelComponentLabel, setElementsWithUnspecifiedRelation, setModelComponentID, setModelComponentLabels
Von Schnittstelle geerbte Methoden alps.java.api.util.IValueChangedPublisher
register, unregister, unregister
-
Felddetails
-
elements
-
implCapsule
-
extendsCapsule
-
priorityNumber
protected int priorityNumber -
model
-
layerType
-
isAbstractType
protected boolean isAbstractType -
extendedLayer
-
ABSTRACT_NAME
- Siehe auch:
-
className
Name of the class, needed for parsing- Siehe auch:
-
exportClassname
-
-
Konstruktordetails
-
ModelLayer
public ModelLayer() -
ModelLayer
public ModelLayer(IPASSProcessModel model, String labelForID, String comment, String additionalLabel, List<IIncompleteTriple> additionalAttribute) -
ModelLayer
-
ModelLayer
-
-
Methodendetails
-
getParsedInstance
- Angegeben von:
getParsedInstance
in SchnittstelleIParseablePASSProcessModelElement
- Setzt außer Kraft:
getParsedInstance
in KlasseALPSModelElement
-
getClassName
Beschreibung aus Klasse kopiert:PASSProcessModelElement
public static CultureInfo customCulture = new CultureInfo("en-US"); static PASSProcessModelElement(){ customCulture.NumberFormat.NumberDecimalSeparator = "."; }- Angegeben von:
getClassName
in SchnittstelleIParseablePASSProcessModelElement
- Setzt außer Kraft:
getClassName
in KlasseALPSModelElement
- Gibt zurück:
- The name of the current class
-
getExportTag
- Setzt außer Kraft:
getExportTag
in KlasseALPSModelElement
-
getElements
Returns a dictionary of all elements saved in the model layer- Angegeben von:
getElements
in SchnittstelleIModelLayer
- Gibt zurück:
-
getElement
- Angegeben von:
getElement
in SchnittstelleIModelLayer
- Gibt zurück:
-
checkLayerTypes
protected void checkLayerTypes() -
setLayerType
Method that sets the layertype of the Modellayer When the layertype of a modellayer is GUARD it cannot be changed back to EXTENSION.- Angegeben von:
setLayerType
in SchnittstelleIModelLayer
- Parameter:
layerType
-
-
getLayerType
Beschreibung aus Schnittstelle kopiert:IModelLayer
Returns the layer type for the current layer- Angegeben von:
getLayerType
in SchnittstelleIModelLayer
- Gibt zurück:
-
setIsAbstract
public void setIsAbstract(boolean isAbstract) Beschreibung aus Schnittstelle kopiert:IAbstractElement
Marks/Unmarks the element as abstrac- Angegeben von:
setIsAbstract
in SchnittstelleIAbstractElement
- Parameter:
isAbstract
- whether the element is abstract or not
-
isAbstract
public boolean isAbstract()Beschreibung aus Schnittstelle kopiert:IAbstractElement
Checks whether the element is abstract or not- Angegeben von:
isAbstract
in SchnittstelleIAbstractElement
- Gibt zurück:
- the result of the check
-
removeContainedElement
Beschreibung aus Schnittstelle kopiert:IModelLayer
Deletes an element depending on its id, if it is contained inside the layer- Angegeben von:
removeContainedElement
in SchnittstelleIModelLayer
- Parameter:
modelComponentID
- the id of the elementremoveCascadeDepth
- Parses the depth of a cascading delete for elements that are connected to the currently deleted one- Gibt zurück:
-
removeContainedElement
Beschreibung aus Schnittstelle kopiert:IModelLayer
Deletes an element depending on its id, if it is contained inside the layer- Angegeben von:
removeContainedElement
in SchnittstelleIModelLayer
- Parameter:
modelComponentID
- the id of the element- Gibt zurück:
-
addElement
Adds an IPASSProcessModelElement to the layer. Only elements of typeIFullySpecifiedSubject
,IInterfaceSubject
,IMultiSubject
,ISingleSubject
,IMessageExchange
,IInputPoolConstraint
,IMessageSenderTypeConstraint
,IMessageTypeConstraint
,ISenderTypeConstraint
,IInputPoolConstraintHandlingStrategy
,IMessageExchangeList
,IMessageSpecification
are allowed to be added.- Angegeben von:
addElement
in SchnittstelleIModelLayer
- Parameter:
element
- The element that will be added
-
getFullySpecifiedSubject
Returns a fully specified subject depending on its position- Angegeben von:
getFullySpecifiedSubject
in SchnittstelleIModelLayer
- Parameter:
numberOfElement
- the position in the list of subjects- Gibt zurück:
-
getInterfaceSubject
Beschreibung aus Schnittstelle kopiert:IModelLayer
Returns an interface subject depending on its position (inside the list of interface subjects in the layer)- Angegeben von:
getInterfaceSubject
in SchnittstelleIModelLayer
- Parameter:
numberOfElement
-- Gibt zurück:
-
getMultiSubject
Returns a multi subject depending on its position- Angegeben von:
getMultiSubject
in SchnittstelleIModelLayer
- Parameter:
numberOfElement
-- Gibt zurück:
-
getSingleSubject
Returns a single subject depending on its position- Angegeben von:
getSingleSubject
in SchnittstelleIModelLayer
- Parameter:
numberOfElement
-- Gibt zurück:
-
getMessageExchange
Returns a message exchange depending on its position- Angegeben von:
getMessageExchange
in SchnittstelleIModelLayer
- Parameter:
numberOfElement
-- Gibt zurück:
-
getInputPoolConstraint
Returns an input pool constraint depending on its position- Angegeben von:
getInputPoolConstraint
in SchnittstelleIModelLayer
- Parameter:
numberOfElement
-- Gibt zurück:
- The object
-
getMessageSenderTypeConstraint
Returns a message sender type constraint depending on its position- Angegeben von:
getMessageSenderTypeConstraint
in SchnittstelleIModelLayer
- Parameter:
numberOfElement
-- Gibt zurück:
- The object
-
getSenderTypeConstraint
Returns a sender type constraint depending on its position- Angegeben von:
getSenderTypeConstraint
in SchnittstelleIModelLayer
- Parameter:
numberOfElement
-- Gibt zurück:
- The object
-
getMessageTypeConstraint
Returns a message type constraint depending on its position- Angegeben von:
getMessageTypeConstraint
in SchnittstelleIModelLayer
- Parameter:
numberOfElement
-- Gibt zurück:
- The object
-
getInputPoolConstraintHandlingStrategy
public IInputPoolConstraintHandlingStrategy getInputPoolConstraintHandlingStrategy(int numberOfElement) Returns a input pool constraint handling strategy depending on its position- Angegeben von:
getInputPoolConstraintHandlingStrategy
in SchnittstelleIModelLayer
- Parameter:
numberOfElement
-- Gibt zurück:
- The object
-
getMessageExchangeList
Returns the message exchange list depending on its position- Angegeben von:
getMessageExchangeList
in SchnittstelleIModelLayer
- Parameter:
numberOfElement
-- Gibt zurück:
- the object
-
getMessageSpecification
Returns a message specification depending on its position- Angegeben von:
getMessageSpecification
in SchnittstelleIModelLayer
- Parameter:
numberOfElement
-- Gibt zurück:
- The object
-
successfullyParsedElement
- Setzt außer Kraft:
successfullyParsedElement
in KlassePASSProcessModelElement
-
parseAttribute
protected boolean parseAttribute(String predicate, String objectContent, String lang, String dataType, IParseablePASSProcessModelElement element) Beschreibung aus Klasse kopiert:PASSProcessModelElement
Gets called while parsing a triple from a set of triples where this element is subject. The predicate and objectContent are derived directly from the triple, lang and dataType might be null (they will never both be NonNull at the same time) If the object specifies an uri to another element and the collection of all available elements contains this element, the element is passed as well- Setzt außer Kraft:
parseAttribute
in KlassePASSProcessModelElement
- Parameter:
predicate
- the predicate contained by the tripleobjectContent
- the content of the object contained by the triplelang
- the lang attribute of the object if one was specifieddataType
- the datatype attribute of the object if one was specifiedelement
- the element the objectContent points to (if it does and the element exists)- Gibt zurück:
-
updateAdded
- Angegeben von:
updateAdded
in SchnittstelleIValueChangedObserver<IPASSProcessModelElement>
- Setzt außer Kraft:
updateAdded
in KlassePASSProcessModelElement
-
updateRemoved
public void updateRemoved(IPASSProcessModelElement update, IPASSProcessModelElement caller, int removeCascadeDepth) - Angegeben von:
updateRemoved
in SchnittstelleIValueChangedObserver<IPASSProcessModelElement>
- Setzt außer Kraft:
updateRemoved
in KlassePASSProcessModelElement
-
updateRemoved
- Angegeben von:
updateRemoved
in SchnittstelleIValueChangedObserver<IPASSProcessModelElement>
- Setzt außer Kraft:
updateRemoved
in KlassePASSProcessModelElement
-
getAllConnectedElements
public Set<IPASSProcessModelElement> getAllConnectedElements(PASSProcessModelElement.ConnectedElementsSetSpecification specification) - Setzt außer Kraft:
getAllConnectedElements
in KlassePASSProcessModelElement
-
setPriorityNumber
public void setPriorityNumber(int nonNegativInteger) Beschreibung aus Schnittstelle kopiert:IPrioritizableElement
Sets the priority number of the transition, must be greater than or equal to 0- Angegeben von:
setPriorityNumber
in SchnittstelleIPrioritizableElement
- Parameter:
nonNegativInteger
- the priority number
-
getPriorityNumber
public int getPriorityNumber()Beschreibung aus Schnittstelle kopiert:IPrioritizableElement
Returns the priority number of the transition- Angegeben von:
getPriorityNumber
in SchnittstelleIPrioritizableElement
- Gibt zurück:
- the priority number
-
getContainedBy
-
setContainedBy
Beschreibung aus Schnittstelle kopiert:IContainableElement
Sets the container for this element- Angegeben von:
setContainedBy
in SchnittstelleIContainableElement<IPASSProcessModel>
- Parameter:
container
- the container class
-
getContainedBy
Beschreibung aus Schnittstelle kopiert:IContainableElement
Returns the container this element belongs to "out" method- Angegeben von:
getContainedBy
in SchnittstelleIContainableElement<IPASSProcessModel>
- Gibt zurück:
- true if the container is not null and the element is currently contained by another instance
-
notifyModelComponentIDChanged
- Angegeben von:
notifyModelComponentIDChanged
in SchnittstelleIGraphCallback
- Angegeben von:
notifyModelComponentIDChanged
in SchnittstelleIValueChangedObserver<IPASSProcessModelElement>
- Setzt außer Kraft:
notifyModelComponentIDChanged
in KlassePASSProcessModelElement
-
setExtendedLayer
- Angegeben von:
setExtendedLayer
in SchnittstelleIModelLayer
-
setExtendedLayer
- Angegeben von:
setExtendedLayer
in SchnittstelleIModelLayer
-
setImplementedInterfacesIDReferences
Beschreibung aus Schnittstelle kopiert:IImplementingElement
Sets the set of implemented interfaces for the instance- Angegeben von:
setImplementedInterfacesIDReferences
in SchnittstelleIImplementingElement
- Parameter:
implementedInterfacesIDs
- The set of implemented interfaces
-
addImplementedInterfaceIDReference
Beschreibung aus Schnittstelle kopiert:IImplementingElement
Adds an implemented interface- Angegeben von:
addImplementedInterfaceIDReference
in SchnittstelleIImplementingElement
- Parameter:
implementedInterfaceID
- The set of implemented interfaces
-
removeImplementedInterfacesIDReference
Beschreibung aus Schnittstelle kopiert:IImplementingElement
Removes a specified interface from the set of implemented interfaces.- Angegeben von:
removeImplementedInterfacesIDReference
in SchnittstelleIImplementingElement
- Parameter:
implementedInterfaceID
- the id of the interface that should be removed
-
getImplementedInterfacesIDReferences
Beschreibung aus Schnittstelle kopiert:IImplementingElement
Returns the interfaces implemented by this instance- Angegeben von:
getImplementedInterfacesIDReferences
in SchnittstelleIImplementingElement
- Gibt zurück:
- the implemented interfaces
-
setImplementedInterfaces
Beschreibung aus Schnittstelle kopiert:IImplementingElementT
Sets the set of implemented interfaces for the instance- Angegeben von:
setImplementedInterfaces
in SchnittstelleIImplementingElementT<IModelLayer>
- Parameter:
implementedInterface
- The set of implemented interfacesremoveCascadeDepth
- >Parses the depth of a cascading delete for elements that are connected to the currently deleted one
-
setImplementedInterfaces
Beschreibung aus Schnittstelle kopiert:IImplementingElementT
Sets the set of implemented interfaces for the instance- Angegeben von:
setImplementedInterfaces
in SchnittstelleIImplementingElementT<IModelLayer>
- Parameter:
implementedInterface
- The set of implemented interfaces
-
addImplementedInterface
Beschreibung aus Schnittstelle kopiert:IImplementingElementT
adds an implemented interface- Angegeben von:
addImplementedInterface
in SchnittstelleIImplementingElementT<IModelLayer>
- Parameter:
implementedInterface
- the new interface
-
removeImplementedInterfaces
Beschreibung aus Schnittstelle kopiert:IImplementingElement
Removes a specified interface from the set of implemented interfaces.- Angegeben von:
removeImplementedInterfaces
in SchnittstelleIImplementingElement
- Parameter:
id
- the id of the interface that should be removedremoveCascadeDepth
- Parses the depth of a cascading delete for elements that are connected to the currently deleted one
-
removeImplementedInterfaces
Beschreibung aus Schnittstelle kopiert:IImplementingElement
Removes a specified interface from the set of implemented interfaces.- Angegeben von:
removeImplementedInterfaces
in SchnittstelleIImplementingElement
- Parameter:
id
- the id of the interface that should be removed
-
getImplementedInterfaces
Beschreibung aus Schnittstelle kopiert:IImplementingElementT
Returns the interfaces implemented by this instance- Angegeben von:
getImplementedInterfaces
in SchnittstelleIImplementingElementT<IModelLayer>
- Gibt zurück:
- the implemented interfaces
-
setExtendedElement
- Angegeben von:
setExtendedElement
in SchnittstelleIExtendingElement<IModelLayer>
-
setExtendedElementID
- Angegeben von:
setExtendedElementID
in SchnittstelleIExtendingElement<IModelLayer>
-
getExtendedElement
- Angegeben von:
getExtendedElement
in SchnittstelleIExtendingElement<IModelLayer>
-
getExtendedElementID
- Angegeben von:
getExtendedElementID
in SchnittstelleIExtendingElement<IModelLayer>
-
isExtension
public boolean isExtension()- Angegeben von:
isExtension
in SchnittstelleIExtendingElement<IModelLayer>
-
removeFromContainer
public void removeFromContainer()Beschreibung aus Schnittstelle kopiert:IContainableElement
Removes this element from its container- Angegeben von:
removeFromContainer
in SchnittstelleIContainableElement<IPASSProcessModel>
-