|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.etrice.core.room.util.RoomHelpers
public class RoomHelpers
description
| Constructor Summary | |
|---|---|
RoomHelpers()
|
|
| Method Summary | |
|---|---|
static ActorClass |
getActorClass(EObject obj)
|
static ActorClass |
getActorClass(StateGraphItem item)
|
static java.util.List<Attribute> |
getAllAttributes(ActorClass ac)
|
static java.util.Set<java.lang.String> |
getAllChoicePointNames(StateGraph sg)
|
static java.util.Set<java.lang.String> |
getAllChoicePointNames(StateGraph sg,
ChoicePoint skip)
|
static java.util.List<ChoicePoint> |
getAllChoicePoints(StateGraph sg)
|
static java.util.List<Port> |
getAllEndPorts(ActorClass ac)
|
static java.util.List<InterfaceItem> |
getAllInterfaceItems(ActorClass ac)
|
static java.util.Set<java.lang.String> |
getAllNames(StateGraph sg)
|
static java.util.Set<java.lang.String> |
getAllNames(StateGraph sg,
StateGraphItem skip)
|
static java.util.List<Operation> |
getAllOperations(ActorClass ac)
|
static java.util.Set<java.lang.String> |
getAllStateNames(StateGraph sg)
|
static java.util.Set<java.lang.String> |
getAllStateNames(StateGraph sg,
State skip)
|
static java.util.List<State> |
getAllStates(StateGraph sg)
|
static java.util.List<State> |
getAllStateTrees(StateGraph sg)
|
static java.util.Set<java.lang.String> |
getAllTransitionNames(StateGraph sg)
|
static java.util.Set<java.lang.String> |
getAllTransitionNames(StateGraph sg,
Transition skip)
|
static java.util.List<Transition> |
getAllTransitions(StateGraph sg)
|
static java.util.Set<java.lang.String> |
getAllTrPointNames(StateGraph sg)
|
static java.util.Set<java.lang.String> |
getAllTrPointNames(StateGraph sg,
TrPoint skip)
|
static java.util.List<TrPoint> |
getAllTrPoints(StateGraph sg)
|
static java.lang.String |
getArguments(Operation op)
|
static java.lang.String |
getAttribute(ActorClass ac,
java.lang.String name,
java.lang.String key)
|
static java.lang.String |
getAttribute(Annotation annotation,
java.lang.String key)
|
static java.lang.String |
getAttribute(java.util.List<Annotation> annotations,
java.lang.String name,
java.lang.String key)
|
static java.util.List<KeyValue> |
getAttributes(ActorClass ac,
java.lang.String name)
|
static java.util.List<KeyValue> |
getAttributes(java.util.List<Annotation> annotations,
java.lang.String name)
|
static SimpleState |
getBaseState(State s)
return the BaseState of a State |
static java.util.List<Binding> |
getBindings(StructureClass sc,
boolean includeInherited)
|
static java.util.List<LayerConnection> |
getConnections(StructureClass sc,
boolean includeInherited)
|
static java.util.List<EObject> |
getContainedObjects(StructureClass sc)
|
static java.lang.String |
getDetailCode(DetailCode dc)
|
static java.util.List<InterfaceItem> |
getInterfaceItems(StructureClass sc,
boolean includeInherited)
|
static java.util.List<Message> |
getMessageList(InterfaceItem item,
boolean outgoing)
|
static PortClass |
getPortClass(InterfaceItem item)
|
static ProtocolClass |
getProtocolClass(EObject obj)
first container of type ProtocolClass |
static java.util.List<State> |
getReferencedStatesRecursively(RefinedState rs)
|
static State |
getRefinedStateFor(StateGraph sg,
State state)
The default resolution mechanism will return a SimpleState. |
static java.util.Map<RefinedState,RefinedState> |
getRefinedStatesToRelocate(ActorClass ac)
|
static java.util.List<ActorContainerRef> |
getRefs(StructureClass sc,
boolean includeInherited)
|
static java.lang.String |
getSignature(Operation op)
|
static State |
getTargettingState(State state,
ActorClass ac)
|
static boolean |
hasConstructor(ActorClass ac)
|
static boolean |
hasDestructor(ActorClass ac)
|
static boolean |
hasDetailCode(DetailCode dc)
|
static boolean |
hasDirectSubStructure(State s)
|
static boolean |
hasFlatStateMachine(ActorClass ac)
|
static boolean |
hasNonEmptyStateMachine(ActorClass ac)
|
static boolean |
hasSubStructure(State state,
ActorClass ac)
|
static boolean |
isAnnotationPresent(ActorClass ac,
java.lang.String name)
|
static boolean |
isAnnotationPresent(java.util.List<Annotation> annotations,
java.lang.String name)
|
static boolean |
isAttributePresent(ActorClass ac,
java.lang.String name,
java.lang.String key)
|
static boolean |
isAttributePresent(Annotation annotation,
java.lang.String key)
|
static boolean |
isAttributePresent(java.util.List<Annotation> annotations,
java.lang.String name,
java.lang.String key)
|
static boolean |
isConstructor(Operation op)
|
static boolean |
isDestructor(Operation op)
|
static boolean |
isGuarded(Trigger trig)
|
static boolean |
referencesStateRecursively(RefinedState rs,
State referenced)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RoomHelpers()
| Method Detail |
|---|
public static java.util.List<InterfaceItem> getInterfaceItems(StructureClass sc,
boolean includeInherited)
public static java.util.List<ActorContainerRef> getRefs(StructureClass sc,
boolean includeInherited)
public static java.util.List<Binding> getBindings(StructureClass sc,
boolean includeInherited)
public static java.util.List<LayerConnection> getConnections(StructureClass sc,
boolean includeInherited)
public static java.util.List<EObject> getContainedObjects(StructureClass sc)
public static boolean hasSubStructure(State state,
ActorClass ac)
public static boolean hasDirectSubStructure(State s)
public static boolean hasNonEmptyStateMachine(ActorClass ac)
public static State getTargettingState(State state,
ActorClass ac)
state - ac -
public static boolean hasDetailCode(DetailCode dc)
public static java.lang.String getDetailCode(DetailCode dc)
action -
public static State getRefinedStateFor(StateGraph sg,
State state)
sg - the context for the searchstate - the target state
public static boolean isGuarded(Trigger trig)
public static java.util.List<State> getAllStates(StateGraph sg)
public static java.util.List<State> getAllStateTrees(StateGraph sg)
public static java.util.List<TrPoint> getAllTrPoints(StateGraph sg)
public static java.util.List<ChoicePoint> getAllChoicePoints(StateGraph sg)
public static java.util.List<Transition> getAllTransitions(StateGraph sg)
public static java.util.Set<java.lang.String> getAllNames(StateGraph sg)
public static java.util.Set<java.lang.String> getAllNames(StateGraph sg,
StateGraphItem skip)
public static java.util.Set<java.lang.String> getAllStateNames(StateGraph sg)
public static java.util.Set<java.lang.String> getAllStateNames(StateGraph sg,
State skip)
public static java.util.Set<java.lang.String> getAllTrPointNames(StateGraph sg)
public static java.util.Set<java.lang.String> getAllTrPointNames(StateGraph sg,
TrPoint skip)
public static java.util.Set<java.lang.String> getAllChoicePointNames(StateGraph sg)
public static java.util.Set<java.lang.String> getAllChoicePointNames(StateGraph sg,
ChoicePoint skip)
public static java.util.Set<java.lang.String> getAllTransitionNames(StateGraph sg)
public static java.util.Set<java.lang.String> getAllTransitionNames(StateGraph sg,
Transition skip)
public static java.util.List<Attribute> getAllAttributes(ActorClass ac)
public static java.util.List<Operation> getAllOperations(ActorClass ac)
public static java.util.List<Port> getAllEndPorts(ActorClass ac)
public static java.util.List<InterfaceItem> getAllInterfaceItems(ActorClass ac)
public static ActorClass getActorClass(StateGraphItem item)
public static ActorClass getActorClass(EObject obj)
public static ProtocolClass getProtocolClass(EObject obj)
ProtocolClass
obj -
public static boolean isAnnotationPresent(ActorClass ac,
java.lang.String name)
public static boolean isAnnotationPresent(java.util.List<Annotation> annotations,
java.lang.String name)
public static java.util.List<KeyValue> getAttributes(ActorClass ac,
java.lang.String name)
public static java.util.List<KeyValue> getAttributes(java.util.List<Annotation> annotations,
java.lang.String name)
public static boolean isAttributePresent(ActorClass ac,
java.lang.String name,
java.lang.String key)
public static boolean isAttributePresent(java.util.List<Annotation> annotations,
java.lang.String name,
java.lang.String key)
public static java.lang.String getAttribute(ActorClass ac,
java.lang.String name,
java.lang.String key)
public static java.lang.String getAttribute(java.util.List<Annotation> annotations,
java.lang.String name,
java.lang.String key)
public static boolean isAttributePresent(Annotation annotation,
java.lang.String key)
public static java.lang.String getAttribute(Annotation annotation,
java.lang.String key)
public static boolean hasFlatStateMachine(ActorClass ac)
public static java.util.List<Message> getMessageList(InterfaceItem item,
boolean outgoing)
public static PortClass getPortClass(InterfaceItem item)
public static boolean isConstructor(Operation op)
public static boolean isDestructor(Operation op)
public static java.lang.String getSignature(Operation op)
public static java.lang.String getArguments(Operation op)
public static SimpleState getBaseState(State s)
BaseState of a State
s -
RefinedStatepublic static java.util.List<State> getReferencedStatesRecursively(RefinedState rs)
public static boolean hasConstructor(ActorClass ac)
public static boolean hasDestructor(ActorClass ac)
public static boolean referencesStateRecursively(RefinedState rs,
State referenced)
public static java.util.Map<RefinedState,RefinedState> getRefinedStatesToRelocate(ActorClass ac)
ac -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||