GridLab
Grid Application Toolkit

A simple API for Grid Applications
GAT

Menu



Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members  

gat::GATContext Class Reference

An instance of this class is the primary GAT state object. More...

Inheritance diagram for gat::GATContext:

Inheritance graph
[legend]
Collaboration diagram for gat::GATContext:

Collaboration graph
[legend]
List of all members.

Public Methods

 GATContext ()
 This no arguments constructor creates an instance of a GATContext.

void addSecurityContext (SecurityContext securityContext)
 Adds the passed SecurityContext.

void removeSecurityContext (SecurityContext securityContext)
 Removes the passed SecurityContext.

List getSecurityContexts ()
 Gets the list of SecurityContexts associated with this GATContext.

List getSecurityContextsByType (String type)
 Gets a list of SecurityContexts of the specified type associated with this GATContext.

void addPreferences (Preferences preferences)
 Adds a Preferences object to the GATContext which will be used to choose between adaptors if the constructor of an object is not called with a Preferences object.

void removePreferences ()
 Removes the Preferences object associated with the GATContext.

Preferences getPreferences ()
 Returns the Preferences object associated with the GATContext.

Object clone ()
 Returns a clone of this context.


Private Attributes

Preferences preferences = null
 This member variable holds the preferences for this GATContext.

Vector securityContexts = null
 This member variable holds the SecurityContext's for this GATcontext.


Detailed Description

An instance of this class is the primary GAT state object.

Definition at line 12 of file GATContext.java.


Constructor & Destructor Documentation

gat::GATContext::GATContext   [inline]
 

This no arguments constructor creates an instance of a GATContext.

Definition at line 27 of file GATContext.java.

References gat::GATContext::securityContexts.


Member Function Documentation

void gat::GATContext::addSecurityContext SecurityContext    securityContext [inline]
 

Adds the passed SecurityContext.

Parameters:
securityContext  A SecurityContext.

Definition at line 39 of file GATContext.java.

References gat::GATContext::securityContexts.

void gat::GATContext::removeSecurityContext SecurityContext    securityContext [inline]
 

Removes the passed SecurityContext.

Parameters:
securityContext  A SecurityContext.

Definition at line 49 of file GATContext.java.

References gat::GATContext::securityContexts.

List gat::GATContext::getSecurityContexts   [inline]
 

Gets the list of SecurityContexts associated with this GATContext.

Returns:
java.util.List of SecurityContexts.

Definition at line 58 of file GATContext.java.

References gat::GATContext::securityContexts.

List gat::GATContext::getSecurityContextsByType String    type [inline]
 

Gets a list of SecurityContexts of the specified type associated with this GATContext.

Parameters:
type  A SecurityContext type, a java.lang.String
Returns:
java.util.List of SecurityContexts.

Definition at line 70 of file GATContext.java.

References gat::GATContext::securityContexts.

void gat::GATContext::addPreferences Preferences    preferences [inline]
 

Adds a Preferences object to the GATContext which will be used to choose between adaptors if the constructor of an object is not called with a Preferences object.

Only one such object may be associated with the GATContext at any one time.

Parameters:
preferences  A Preferences object.

Definition at line 95 of file GATContext.java.

void gat::GATContext::removePreferences   [inline]
 

Removes the Preferences object associated with the GATContext.

Definition at line 102 of file GATContext.java.

Preferences gat::GATContext::getPreferences   [inline]
 

Returns the Preferences object associated with the GATContext.

Definition at line 109 of file GATContext.java.

Object gat::GATContext::clone   [inline]
 

Returns a clone of this context.

Definition at line 116 of file GATContext.java.


Member Data Documentation

Preferences gat::GATContext::preferences = null [private]
 

This member variable holds the preferences for this GATContext.

Definition at line 17 of file GATContext.java.

Vector gat::GATContext::securityContexts = null [private]
 

This member variable holds the SecurityContext's for this GATcontext.

Definition at line 22 of file GATContext.java.

Referenced by gat::GATContext::addSecurityContext(), gat::GATContext::GATContext(), gat::GATContext::getSecurityContexts(), gat::GATContext::getSecurityContextsByType(), and gat::GATContext::removeSecurityContext().


The documentation for this class was generated from the following file: