Package com.piketec.tpt.api.diagram
Interface TransitionSpecOrGroup
-
- All Superinterfaces:
IdentifiableRemote
,NamedObject
,java.rmi.Remote
,TptRemote
- All Known Subinterfaces:
TransitionSpec
,TransitionSpecGroup
public interface TransitionSpecOrGroup extends IdentifiableRemote, NamedObject
TransitionSpecOrGroup
represents a tree structure. Nodes areTransitionSpecGroup
, leaves areTransitionSpec
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description TransitionSpecGroup
getGroup()
Returns aTransitionSpecGroup
if the object is a child object ornull
if the object is directly contained by theTransition
.Transition
getTransition()
Returns theTransition
object which directly or indirectly contains thisTransitionSpecOrGroup
.boolean
isGroup()
void
move(TransitionSpecGroup newParent, int index)
Moves thisTransitionSpecOrGroup
to a new position in the transition spec tree.-
Methods inherited from interface com.piketec.tpt.api.IdentifiableRemote
getIdentifier
-
Methods inherited from interface com.piketec.tpt.api.NamedObject
getName, setName
-
-
-
-
Method Detail
-
getGroup
TransitionSpecGroup getGroup() throws java.rmi.RemoteException
Returns aTransitionSpecGroup
if the object is a child object ornull
if the object is directly contained by theTransition
.- Returns:
- The parent group or
null
. - Throws:
java.rmi.RemoteException
- remote communication problem
-
isGroup
boolean isGroup() throws java.rmi.RemoteException
- Returns:
true
if this is aTransitionSpecGroup
,false
otherwise.- Throws:
java.rmi.RemoteException
- remote communication problem
-
getTransition
Transition getTransition() throws java.rmi.RemoteException
Returns theTransition
object which directly or indirectly contains thisTransitionSpecOrGroup
.- Returns:
- The parent
Transition
- Throws:
java.rmi.RemoteException
- remote communication problem
-
move
void move(TransitionSpecGroup newParent, int index) throws ApiException, java.rmi.RemoteException
Moves thisTransitionSpecOrGroup
to a new position in the transition spec tree.- Parameters:
newParent
- the new parentTransitionSpecGroup
ornull
to move it to top level.index
- the new position under the new parent.- Throws:
ApiException
- If the new parent is invalid.java.rmi.RemoteException
- remote communication problem
-
-