|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.fractal.explorer.graph.GraphInformations
public class GraphInformations
Utilities class for graphic representation
Nested Class Summary | |
---|---|
static class |
GraphInformations.SortInterface
Sorts two interfaces by alphabetic order using their names. |
Constructor Summary | |
---|---|
GraphInformations()
|
Method Summary | |
---|---|
static List |
getClientNeighbors(Component primitiveComponent)
Provides a List of the neighbors 'client' components of a primitive component |
static String |
getComponentState(Component component)
Provides the execution state of a component |
static String |
getComponentType(Component component)
Provides the type of a component (primitive/composite) |
static String |
getInterfaceName(Interface itf)
Provides the name of an interface, summary name if it's a control interface ("content-controller" ==> "CC") |
static Interface[] |
getIntItf(Component component)
Provides the array of the internal interfaces of a component |
static List |
getItfCollection(Component component)
Provides an ArrayList of the (InterfaceType) of the collection interfaces Each collection will appear only one time in the ArrayList in order to represent a port per collection and not a port per client interface |
static String |
getPortType(Interface itf)
Provides the type of the port associated to an interface : client/collection-client/server/control |
static Component |
getRootComponent(String nameAppli)
Provides the first component (root) of an application |
static List |
getServerNeighbors(Component primitiveComponent)
Provides a List of the neighbors 'server' components of a primitive component |
static String |
getSignature(Interface itf)
Provides the signature of the interface |
static Interface[] |
getSortExtItf(Component component)
Provides the array of the external interfaces of a component The array is sorted by alphabetical order of the names of the interfaces |
static Component[] |
getSubComponents(Component component)
Provides an array of the sub-components of a composite component |
static Component |
getTargetComponent(Component component,
Interface itf)
Provides the destination component |
static Interface |
getTargetInterface(Component component,
Interface itf)
Provides the the destination interface |
static boolean |
isClientInterface(Interface itf)
|
static boolean |
isCollectionInterface(Interface itf)
|
static boolean |
isControlInterface(Interface itf)
|
static boolean |
isOptional(Interface itf)
|
static boolean |
isPrimitiveComponent(Component component)
|
static boolean |
isSharedComponent(Component component)
|
static boolean |
isStarted(Component component)
Returns true if the status of the component is "STARTED" |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GraphInformations()
Method Detail |
---|
public static Component getRootComponent(String nameAppli)
nameAppli
- the name of the application
public static boolean isPrimitiveComponent(Component component)
component
- a component
public static String getComponentType(Component component)
component
- the component
public static boolean isSharedComponent(Component component)
component
- a component
public static Component[] getSubComponents(Component component)
component
- the component
public static String getComponentState(Component component)
component
- the component
public static boolean isStarted(Component component)
component
- the componentpublic static Interface[] getSortExtItf(Component component)
component
- the component
public static Interface[] getIntItf(Component component)
component
- the component to introspect
public static String getInterfaceName(Interface itf)
itf
- the interface
public static boolean isClientInterface(Interface itf)
itf
- an interface
public static boolean isControlInterface(Interface itf)
itf
- an interface
public static boolean isCollectionInterface(Interface itf)
itf
- a client interface
public static boolean isOptional(Interface itf)
itf
- a client interface
public static List getItfCollection(Component component)
component
- the component to introspect
public static String getPortType(Interface itf)
itf
- the interface
public static String getSignature(Interface itf)
itf
- the interface
public static Component getTargetComponent(Component component, Interface itf)
component
- the component "server" of the binditf
- the client interface which is bound
public static Interface getTargetInterface(Component component, Interface itf)
component
- the component "server" of the binditf
- the client interface which is bound
public static List getServerNeighbors(Component primitiveComponent)
primitiveComponent
- the primitive component
public static List getClientNeighbors(Component primitiveComponent)
primitiveComponent
- the primitive component
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |