Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

com::cosylab::acs::maci::ClientInfo Class Reference

Inheritance diagram for com::cosylab::acs::maci::ClientInfo:

Inheritance graph
[legend]
Collaboration diagram for com::cosylab::acs::maci::ClientInfo:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 ClientInfo (int handle, String name, Client client)
int getAccessRights ()
Client getClient ()
IntArray getComponents ()
int getHandle ()
String getName ()
void setAccessRights (int accessRights)
void setClient (Client client)
void setHandle (int handle)
void setName (String name)
void setComponents (IntArray components)
String toString ()

Private Attributes

int handle
String name
Client client
IntArray components
int accessRights

Static Private Attributes

final long serialVersionUID = 860176672630128907L

Detailed Description

Structure in which the Manager stores information about a client. Here, a client is any entity that accesses components, and therefore a Component can also act as a client.

Author:
Matej Sekoranja (matej.sekoranja@cosylab.com)
Version:
@VERSION@


Constructor & Destructor Documentation

com::cosylab::acs::maci::ClientInfo::ClientInfo int  handle,
String  name,
Client  client
[inline]
 

Creates an instance of ClientInfo with all necesarry data.

Parameters:
handle handle of the client.
name name of the client.
client client itself.
See also:
handle

name

client


Member Function Documentation

int com::cosylab::acs::maci::ClientInfo::getAccessRights  )  [inline]
 

Returns the accessRights.

Returns:
int

Client com::cosylab::acs::maci::ClientInfo::getClient  )  [inline]
 

Returns the client.

Returns:
Client

IntArray com::cosylab::acs::maci::ClientInfo::getComponents  )  [inline]
 

Returns the components.

Returns:
ArrayList

int com::cosylab::acs::maci::ClientInfo::getHandle  )  [inline]
 

Returns the handle.

Returns:
int

String com::cosylab::acs::maci::ClientInfo::getName  )  [inline]
 

Returns the name.

Returns:
String

void com::cosylab::acs::maci::ClientInfo::setAccessRights int  accessRights  )  [inline]
 

Sets the accessRights.

Parameters:
accessRights The accessRights to set

void com::cosylab::acs::maci::ClientInfo::setClient Client  client  )  [inline]
 

Sets the client.

Parameters:
client The client to set

void com::cosylab::acs::maci::ClientInfo::setComponents IntArray  components  )  [inline]
 

Sets the components.

Parameters:
components The components to set

void com::cosylab::acs::maci::ClientInfo::setHandle int  handle  )  [inline]
 

Sets the handle.

Parameters:
handle The handle to set

void com::cosylab::acs::maci::ClientInfo::setName String  name  )  [inline]
 

Sets the name.

Parameters:
name The name to set

String com::cosylab::acs::maci::ClientInfo::toString  )  [inline]
 

Returns a single-line rendition of this instance into text.

Returns:
internal state of this instance


Member Data Documentation

int com::cosylab::acs::maci::ClientInfo::accessRights [private]
 

Specifies the access rights of the client. These access rights are used by the Manager in determining the client's access rights.

Client com::cosylab::acs::maci::ClientInfo::client [private]
 

Reference to the client's object. If the client is a Component, this is the reference to the Container which hosts the Component.

IntArray com::cosylab::acs::maci::ClientInfo::components [private]
 

Specifies the components to which the client has requested and successfuly obtained a reference from the Manager. If a client has done so more than once for the same component, component's handle is repeated.

int com::cosylab::acs::maci::ClientInfo::handle [private]
 

Client's handle. The range depends on the class of the client (a Component, regular client, administrator, ...).

String com::cosylab::acs::maci::ClientInfo::name [private]
 

Client's name. This is the same name as given by Client::name for non-Component clients, and Component's name for Component clients.

final long com::cosylab::acs::maci::ClientInfo::serialVersionUID = 860176672630128907L [static, private]
 

Serial version UID.

Reimplemented in com::cosylab::acs::maci::manager::TimerTaskClientInfo.


The documentation for this class was generated from the following file:
Generated on Thu Apr 30 03:11:13 2009 for ACS Java API by doxygen 1.3.8