Klasse SubjectBehavior
java.lang.Object
alps.java.api.StandardPASS.PASSProcessModelElement
alps.java.api.StandardPASS.PassProcessModelElements.SubjectBehavior
- Alle implementierten Schnittstellen:
ICapsuleCallback
,IGraphCallback
,IParseablePASSProcessModelElement
,IExtendingElement<ISubjectBehavior>
,IImplementingElement
,IImplementingElementT<ISubjectBehavior>
,IPASSProcessModelElement
,IPrioritizableElement
,ISubjectBehavior
,IContainableElement<IModelLayer>
,IValueChangedObserver<IPASSProcessModelElement>
,IValueChangedPublisher<IPASSProcessModelElement>
- Bekannte direkte Unterklassen:
ExtensionBehavior
,GuardBehavior
,MacroBehavior
,SubjectBaseBehavior
Class that represents a subject behavior
-
Verschachtelte Klassen - Übersicht
Von Klasse geerbte verschachtelte Klassen/Schnittstellen alps.java.api.StandardPASS.PASSProcessModelElement
PASSProcessModelElement.ConnectedElementsSetSpecification, PASSProcessModelElement.ObserverInformType
-
Feldübersicht
Modifizierer und TypFeldBeschreibungContains all components held by the subject behaviorprivate final String
Name of the class, needed for parsingprotected final IExtendsFunctionalityCapsule<ISubjectBehavior>
protected final IImplementsFunctionalityCapsule<ISubjectBehavior>
protected IState
protected IModelLayer
protected int
protected ISubject
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
KonstruktorBeschreibungSubjectBehavior
(IModelLayer layer) SubjectBehavior
(IModelLayer layer, String labelForID, ISubject subject, Set<IBehaviorDescribingComponent> behaviorDescribingComponents, IState initialStateOfBehavior, int priorityNumber, String comment, String additionalLabel, List<IIncompleteTriple> additionalAttribute) Creates a new SubjectBehavior from scratch -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungboolean
Adds anIBehaviorDescribingComponent
to the current Subject Behavior.void
addImplementedInterface
(ISubjectBehavior implementedInterface) adds an implemented interfacevoid
addImplementedInterfaceIDReference
(String implementedInterfaceID) Adds an implemented interfaceMethod that returns the behavior description component attribute of the instancepublic static CultureInfo customCulture = new CultureInfo("en-US"); static PASSProcessModelElement(){ customCulture.NumberFormat.NumberDecimalSeparator = "Returns the container this element belongs to "out" methodprotected Map<String,
IParseablePASSProcessModelElement> Provides access to the dictionary of all available elements inside the current model.Returns the interfaces implemented by this instanceReturns the interfaces implemented by this instanceMethod that returns the initial state of behaviors attribute of the instanceint
Returns the priority number of the transitionMethod that gives access to the Subject the current behavior is connected withboolean
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
Removes a BehaviorDescribingComponent from the SubjectBehaviorboolean
removeBehaviorDescribingComponent
(String id, int removeCascadeDepth) Removes a BehaviorDescribingComponent from the SubjectBehaviorvoid
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
Sets all BehaviorDescribingComponents contained by the behavior.void
setBehaviorDescribingComponents
(Set<IBehaviorDescribingComponent> components, int removeCascadeDepth) Sets all BehaviorDescribingComponents contained by the behavior.void
setContainedBy
(IModelLayer layer) Sets the container for this elementvoid
setExtendedElement
(ISubjectBehavior element) void
setExtendedElementID
(String elementID) void
setImplementedInterfaces
(Set<ISubjectBehavior> implementedInterface) Sets the set of implemented interfaces for the instancevoid
setImplementedInterfaces
(Set<ISubjectBehavior> 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
setInitialState
(IState initialStateOfBehavior) Method that sets the initial state of behaviors attribute of the instancevoid
setInitialState
(IState initialStateOfBehavior, int removeCascadeDepth) Method that sets the initial state of behaviors attribute of the instancevoid
setPriorityNumber
(int positiveNumber) Sets the priority number of the transition, must be greater than or equal to 0void
setSubject
(ISubject subj) void
setSubject
(ISubject subj, int removeCascadeDepth) protected 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, getElementsWithUnspecifiedRelation, getExportTag, 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
-
behaviorDescriptionComponents
protected ICompatibilityDictionary<String,IBehaviorDescribingComponent> behaviorDescriptionComponents Contains all components held by the subject behavior -
implCapsule
-
extendsCapsule
-
initialStateOfBehavior
-
priorityNumber
protected int priorityNumber -
subj
-
layer
-
className
Name of the class, needed for parsing- Siehe auch:
-
-
Konstruktordetails
-
SubjectBehavior
public SubjectBehavior() -
SubjectBehavior
public SubjectBehavior(IModelLayer layer, String labelForID, ISubject subject, Set<IBehaviorDescribingComponent> behaviorDescribingComponents, IState initialStateOfBehavior, int priorityNumber, String comment, String additionalLabel, List<IIncompleteTriple> additionalAttribute) Creates a new SubjectBehavior from scratch- Parameter:
layer
-labelForID
-subject
-behaviorDescribingComponents
-initialStateOfBehavior
-priorityNumber
-comment
-additionalLabel
-additionalAttribute
-
-
SubjectBehavior
-
-
Methodendetails
-
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 KlassePASSProcessModelElement
- Gibt zurück:
- The name of the current class
-
getParsedInstance
- Angegeben von:
getParsedInstance
in SchnittstelleIParseablePASSProcessModelElement
- Setzt außer Kraft:
getParsedInstance
in KlassePASSProcessModelElement
-
getContainedBy
Beschreibung aus Schnittstelle kopiert:IContainableElement
Returns the container this element belongs to "out" method- Angegeben von:
getContainedBy
in SchnittstelleIContainableElement<IModelLayer>
- Gibt zurück:
- true if the container is not null and the element is currently contained by another instance
-
setContainedBy
Beschreibung aus Schnittstelle kopiert:IContainableElement
Sets the container for this element- Angegeben von:
setContainedBy
in SchnittstelleIContainableElement<IModelLayer>
- Parameter:
layer
- the container class
-
getDictionaryOfAllAvailableElements
Beschreibung aus Klasse kopiert:PASSProcessModelElement
Provides access to the dictionary of all available elements inside the current model.- Setzt außer Kraft:
getDictionaryOfAllAvailableElements
in KlassePASSProcessModelElement
- Gibt zurück:
- A dictionary containing model component ids as keys and elements as values
-
addBehaviorDescribingComponent
Beschreibung aus Schnittstelle kopiert:ISubjectBehavior
Adds anIBehaviorDescribingComponent
to the current Subject Behavior.- Angegeben von:
addBehaviorDescribingComponent
in SchnittstelleISubjectBehavior
- Parameter:
component
- the component that is being added- Gibt zurück:
-
setBehaviorDescribingComponents
public void setBehaviorDescribingComponents(Set<IBehaviorDescribingComponent> components, int removeCascadeDepth) Beschreibung aus Schnittstelle kopiert:ISubjectBehavior
Sets all BehaviorDescribingComponents contained by the behavior. Overwrites all components contained before.- Angegeben von:
setBehaviorDescribingComponents
in SchnittstelleISubjectBehavior
- Parameter:
components
- The new components that will be set
-
setBehaviorDescribingComponents
Beschreibung aus Schnittstelle kopiert:ISubjectBehavior
Sets all BehaviorDescribingComponents contained by the behavior. Overwrites all components contained before.- Angegeben von:
setBehaviorDescribingComponents
in SchnittstelleISubjectBehavior
- Parameter:
components
- The new components that will be set
-
removeBehaviorDescribingComponent
Beschreibung aus Schnittstelle kopiert:ISubjectBehavior
Removes a BehaviorDescribingComponent from the SubjectBehavior- Angegeben von:
removeBehaviorDescribingComponent
in SchnittstelleISubjectBehavior
- Parameter:
id
- the modelComponentID of the component that should be removed- Gibt zurück:
-
removeBehaviorDescribingComponent
Beschreibung aus Schnittstelle kopiert:ISubjectBehavior
Removes a BehaviorDescribingComponent from the SubjectBehavior- Angegeben von:
removeBehaviorDescribingComponent
in SchnittstelleISubjectBehavior
- Parameter:
id
- the modelComponentID of the component that should be removed- Gibt zurück:
-
getBehaviorDescribingComponents
Beschreibung aus Schnittstelle kopiert:ISubjectBehavior
Method that returns the behavior description component attribute of the instance- Angegeben von:
getBehaviorDescribingComponents
in SchnittstelleISubjectBehavior
- Gibt zurück:
- The behavior description component attribute of the instance
-
setInitialState
Beschreibung aus Schnittstelle kopiert:ISubjectBehavior
Method that sets the initial state of behaviors attribute of the instance- Angegeben von:
setInitialState
in SchnittstelleISubjectBehavior
-
setInitialState
Beschreibung aus Schnittstelle kopiert:ISubjectBehavior
Method that sets the initial state of behaviors attribute of the instance- Angegeben von:
setInitialState
in SchnittstelleISubjectBehavior
-
setPriorityNumber
public void setPriorityNumber(int positiveNumber) 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:
positiveNumber
- the priority number
-
getInitialStateOfBehavior
Beschreibung aus Schnittstelle kopiert:ISubjectBehavior
Method that returns the initial state of behaviors attribute of the instance- Angegeben von:
getInitialStateOfBehavior
in SchnittstelleISubjectBehavior
- Gibt zurück:
- The initial state of behaviors attribute of the instance
-
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
-
getAllConnectedElements
public Set<IPASSProcessModelElement> getAllConnectedElements(PASSProcessModelElement.ConnectedElementsSetSpecification specification) - Setzt außer Kraft:
getAllConnectedElements
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:
-
successfullyParsedElement
- Setzt außer Kraft:
successfullyParsedElement
in KlassePASSProcessModelElement
-
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
-
notifyModelComponentIDChanged
- Angegeben von:
notifyModelComponentIDChanged
in SchnittstelleIGraphCallback
- Angegeben von:
notifyModelComponentIDChanged
in SchnittstelleIValueChangedObserver<IPASSProcessModelElement>
- Setzt außer Kraft:
notifyModelComponentIDChanged
in KlassePASSProcessModelElement
-
setSubject
- Angegeben von:
setSubject
in SchnittstelleISubjectBehavior
- Parameter:
removeCascadeDepth
- Parses the depth of a cascading delete for elements that are connected to the currently deleted one
-
setSubject
- Angegeben von:
setSubject
in SchnittstelleISubjectBehavior
-
getSubject
Beschreibung aus Schnittstelle kopiert:ISubjectBehavior
Method that gives access to the Subject the current behavior is connected with- Angegeben von:
getSubject
in SchnittstelleISubjectBehavior
- Gibt zurück:
- The subject this behavior is connected with
-
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
public void setImplementedInterfaces(Set<ISubjectBehavior> implementedInterface, int removeCascadeDepth) Beschreibung aus Schnittstelle kopiert:IImplementingElementT
Sets the set of implemented interfaces for the instance- Angegeben von:
setImplementedInterfaces
in SchnittstelleIImplementingElementT<ISubjectBehavior>
- 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<ISubjectBehavior>
- Parameter:
implementedInterface
- The set of implemented interfaces
-
addImplementedInterface
Beschreibung aus Schnittstelle kopiert:IImplementingElementT
adds an implemented interface- Angegeben von:
addImplementedInterface
in SchnittstelleIImplementingElementT<ISubjectBehavior>
- 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<ISubjectBehavior>
- Gibt zurück:
- the implemented interfaces
-
setExtendedElement
- Angegeben von:
setExtendedElement
in SchnittstelleIExtendingElement<ISubjectBehavior>
-
setExtendedElementID
- Angegeben von:
setExtendedElementID
in SchnittstelleIExtendingElement<ISubjectBehavior>
-
getExtendedElement
- Angegeben von:
getExtendedElement
in SchnittstelleIExtendingElement<ISubjectBehavior>
-
getExtendedElementID
- Angegeben von:
getExtendedElementID
in SchnittstelleIExtendingElement<ISubjectBehavior>
-
isExtension
public boolean isExtension()- Angegeben von:
isExtension
in SchnittstelleIExtendingElement<ISubjectBehavior>
-
removeFromContainer
public void removeFromContainer()Beschreibung aus Schnittstelle kopiert:IContainableElement
Removes this element from its container- Angegeben von:
removeFromContainer
in SchnittstelleIContainableElement<IModelLayer>
-