Interface IState
- All Superinterfaces:
IElement,IEntity,IHyperlinkOwner,INamedElement,IVertex
- All Known Subinterfaces:
IFinalState
Interface for States.
-
Field Summary
Fields inherited from interface com.change_vision.jude.api.inf.model.INamedElement
PACKAGE_VISIBILITY, PRIVATE_VISIBILITY, PROTECTED_VISIBILITY, PUBLIC_VISIBILITY -
Method Summary
Modifier and TypeMethodDescriptionvoidaddInternalTransition(String event, String guard, String action) Add an Internal Transition.voidDelete All Internal Transition.Get DoActivity.getEntry()Get Entry.getExit()Get Exit.Get Internal Transitions.getRegionRectangle(int regionIndex) Get the Rectangle of Specified Region.Get child States in all Regions.intGet Region Size.Get Submachine.IVertex[]Get SubVertexes.IVertex[]getSubvertexes(int regionIndex) Get SubVertexes of Specified Region.booleanCheck if it is a SubmachineState.voidsetDoActivity(String doActivity) Set DoActivity.voidSet Entry.voidSet Exit.Methods inherited from interface com.change_vision.jude.api.inf.model.IElement
addStereotype, getComments, getContainer, getContainers, getId, getOwner, getPresentations, getStereotypes, getTaggedValue, getTaggedValues, getTypeModifier, hasStereotype, isReadOnly, removeStereotype, setTypeModifierMethods inherited from interface com.change_vision.jude.api.inf.model.IHyperlinkOwner
createElementHyperlink, createFileHyperlink, createURLHyperlink, deleteHyperlink, getHyperlinksMethods inherited from interface com.change_vision.jude.api.inf.model.INamedElement
getAlias1, getAlias2, getClientDependencies, getClientRealizations, getClientUsages, getConstraints, getDefinition, getDiagrams, getFullName, getFullNamespace, getName, getSupplierDependencies, getSupplierRealizations, getSupplierUsages, isPackageVisibility, isPrivateVisibility, isProtectedVisibility, isPublicVisibility, setAlias1, setAlias2, setDefinition, setName, setVisibilityMethods inherited from interface com.change_vision.jude.api.inf.model.IVertex
getIncomings, getOutgoings
-
Method Details
-
getSubmachine
IStateMachine getSubmachine()Get Submachine.- Returns:
- Submachine.
-
isSubmachineState
boolean isSubmachineState()Check if it is a SubmachineState.- Returns:
- true it is a SubmachineState / false it is not a SubmachineState
-
getEntry
String getEntry()Get Entry.- Returns:
- Entry.
-
setEntry
Set Entry.- Parameters:
entry- Entry. In the case of null,Entry shall be deleted.- Throws:
InvalidEditingException- InvalidEditingException occurs.Keys: ILLEGAL_VERSION_ERROR_KEY - if Editing API is used in astah* community. PARAMETER_ERROR_KEY - if a parameter is not set properly. BAD_TRANSACTION_KEY - Bad Transaction. HAS_EXCEPTION_KEY - if an exception has occurred. READ_ONLY_KEY - if a read-only element is edited.Values: Error messages for exceptions.
-
getDoActivity
String getDoActivity()Get DoActivity.- Returns:
- DoActivity.
-
setDoActivity
Set DoActivity.- Parameters:
doActivity- DoActivity. In the case of null,DoActivity shall be deleted.- Throws:
InvalidEditingException- InvalidEditingException occurs.Keys: ILLEGAL_VERSION_ERROR_KEY - if Editing API is used in astah* community. PARAMETER_ERROR_KEY - if a parameter is not set properly. BAD_TRANSACTION_KEY - Bad Transaction. HAS_EXCEPTION_KEY - if an exception has occurred. READ_ONLY_KEY - if a read-only element is edited.Values: Error messages for exceptions.
-
getExit
String getExit()Get Exit.- Returns:
- Exit.
-
setExit
Set Exit.- Parameters:
exit- Exit. In the case of null, Exit shall be deleted.- Throws:
InvalidEditingException- InvalidEditingException occurs.Keys: ILLEGAL_VERSION_ERROR_KEY - if Editing API is used in astah* community. PARAMETER_ERROR_KEY - if a parameter is not set properly. BAD_TRANSACTION_KEY - Bad Transaction. HAS_EXCEPTION_KEY - if an exception has occurred. READ_ONLY_KEY - if a read-only element is edited.Values: Error messages for exceptions.
-
getInternalTransitions
ITransition[] getInternalTransitions()Get Internal Transitions.- Returns:
-
addInternalTransition
Add an Internal Transition.- Parameters:
event-guard-action-- Throws:
InvalidEditingException- InvalidEditingException occurs.Keys: ILLEGAL_VERSION_ERROR_KEY - if Editing API is used in astah* community. PARAMETER_ERROR_KEY - if a parameter is not set properly. BAD_TRANSACTION_KEY - Bad Transaction. HAS_EXCEPTION_KEY - if an exception has occurred. READ_ONLY_KEY - if a read-only element is edited.Values: Error messages for exceptions.
-
deleteAllInternalTransitions
void deleteAllInternalTransitions()Delete All Internal Transition.- Throws:
InvalidEditingException- InvalidEditingException occurs.Keys: ILLEGAL_VERSION_ERROR_KEY - if Editing API is used in astah* community. BAD_TRANSACTION_KEY - Bad Transaction. HAS_EXCEPTION_KEY - if an exception has occurred. READ_ONLY_KEY - if a read-only element is edited.Values: Error messages for exceptions.
-
getSubvertexes
IVertex[] getSubvertexes()Get SubVertexes.- Returns:
- The array of SubVertexes. Return the empty array if there is none.
-
getRegions
Get child States in all Regions.- Returns:
- List of child States contained in all Regions. Returns an empty list if there are none.
- Since:
- 11.0
-
getRegionSize
int getRegionSize()Get Region Size.- Returns:
- The size of region.
-
getRegionRectangle
Get the Rectangle of Specified Region.- Parameters:
regionIndex-- Returns:
- Rectangle
- Throws:
InvalidUsingException- InvalidUsingException occurs.Keys: ILLEGAL_USE_ERROR_KEY - if regionIndex is out of range.Values: Error messages for exceptions.
-
getSubvertexes
Get SubVertexes of Specified Region.- Parameters:
regionIndex-- Returns:
- The array of SubVertexes. Return the empty array if there is none.
- Throws:
InvalidUsingException- InvalidUsingException occurs.Keys: ILLEGAL_USE_ERROR_KEY - if regionIndex is out of range.Values: Error messages for exceptions.
-