g-Eclipse
Release 1.0.0

eu.geclipse.info.model
Class GridGlueElement

java.lang.Object
  extended by PlatformObject
      extended by eu.geclipse.core.model.impl.AbstractGridElement
          extended by eu.geclipse.info.model.GridGlueElement
All Implemented Interfaces:
IGridElement, IGridResource
Direct Known Subclasses:
GridApplication, GridGlueService, GridGlueServiceApplication, GridGlueServiceComputing, GridGlueStorage

public abstract class GridGlueElement
extends AbstractGridElement
implements IGridResource

Wrapper class for AbstractGlueTable objects to be integrated in the GridModel. This wrapper class is marked as abstract. Instead of using it directly the developer should implement subclasses that are specific for a certain glue element type.


Constructor Summary
GridGlueElement(IGridContainer parent, AbstractGlueTable glueTable)
          Construct a new GridGlueElement with the specified parent and associated glue table.
 
Method Summary
 IFileStore getFileStore()
          Get the file store that this element is associated with.
 AbstractGlueTable getGlueElement()
          Get this GridGlueElement's associated AbstractGlueTable object.
 java.lang.String getName()
          Get the name of this element.
 IGridContainer getParent()
          Get the parent element of this element.
 IPath getPath()
          Get the path of this element relative to the grid root element.
 IResource getResource()
          Get the corresponding resource of this element.
 boolean isLocal()
          Determines if this element is local.
 
Methods inherited from class eu.geclipse.core.model.impl.AbstractGridElement
dispose, getAdapter, getProject, isHidden, isVirtual
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface eu.geclipse.core.model.IGridResource
getHostName, getURI
 
Methods inherited from interface eu.geclipse.core.model.IGridElement
dispose, getProject, isHidden, isVirtual
 

Constructor Detail

GridGlueElement

public GridGlueElement(IGridContainer parent,
                       AbstractGlueTable glueTable)
Construct a new GridGlueElement with the specified parent and associated glue table.

Parameters:
parent - The parent of this element.
glueTable - The associated AbstractGlueTable.
Method Detail

getFileStore

public IFileStore getFileStore()
Description copied from interface: IGridElement
Get the file store that this element is associated with. May return null if there is no such associated file store. If this element is not virtual the filestore corresponds to the file store of the corresponding resource.

Specified by:
getFileStore in interface IGridElement
Returns:
The corresponding file store.

getGlueElement

public AbstractGlueTable getGlueElement()
Get this GridGlueElement's associated AbstractGlueTable object.

Returns:
The associated glue object.

getName

public java.lang.String getName()
Description copied from interface: IGridElement
Get the name of this element. The names of all children of a container have to be unique within this container. If this element is not virtual the name is the name of the corresponding resource.

Specified by:
getName in interface IGridElement
Returns:
The name of this element.

getParent

public IGridContainer getParent()
Description copied from interface: IGridElement
Get the parent element of this element. The parent can only be an IGridContainer. This method may not return null since the only element that is allowed to return null is the IGridRoot which is a singleton and is internally defined within the model.

Specified by:
getParent in interface IGridElement
Returns:
The parent container of this element.

getPath

public IPath getPath()
Description copied from interface: IGridElement
Get the path of this element relative to the grid root element. If this element is not virtual this has to be the path of the corresponding @IResource.

Specified by:
getPath in interface IGridElement
Returns:
The path of this element relative to the grid root.

getResource

public IResource getResource()
Description copied from interface: IGridElement
Get the corresponding resource of this element. This may be null if - and only if - this element is virtual.

Specified by:
getResource in interface IGridElement
Returns:
The corresponding resource or null if this element is virtual.

isLocal

public boolean isLocal()
Description copied from interface: IGridElement
Determines if this element is local. A local element has to be any related item (not necessarily an IResource) that is local in the means that it is located on the local machine.

Specified by:
isLocal in interface IGridElement
Returns:
True if this element is local.

g-Eclipse
Release 1.0.0