Infinity.AdoptedUser

g GObject.Object GObject.Object Infinity.User Infinity.User GObject.Object->Infinity.User Infinity.AdoptedUser Infinity.AdoptedUser Infinity.User->Infinity.AdoptedUser

Subclasses:None

Virtual Methods

Inherited:Infinity.User (1), GObject.Object (7)

Properties

Inherited:Infinity.User (5)
Name Type Flags Short Description
request-log Infinity.AdoptedRequestLog r/w/co Request log of this user
vector Infinity.AdoptedStateVector r/w The state this user is currently at

Fields

Inherited:Infinity.User (1), GObject.Object (1)
Name Type Access Description
parent Infinity.User r  
priv object r  

Class Details

class Infinity.AdoptedUser(**kwargs)
Bases:Infinity.User
Abstract:No
Structure:Infinity.AdoptedUserClass

Infinity.AdoptedUser is an opaque data type. You should only access it via the public API functions.

get_component(id)
Parameters:id (int) – The component to retrieve.
Returns:The number of requests self has processed from id.
Return type:int

Returns the amount of requests self is guaranteed to have processed from the user with ID id.

get_request_log()
Returns:User’s Infinity.AdoptedRequestLog.
Return type:Infinity.AdoptedRequestLog

Returns the request log of self.

get_vector()
Returns:The current vector time of self.
Return type:Infinity.AdoptedStateVector

Returns the current vector time of self.

set_vector(vec)
Parameters:vec (Infinity.AdoptedStateVector) – A Infinity.AdoptedStateVector.

Updates the state vector of self. This function takes ownership of vec.

Property Details

Infinity.AdoptedUser.props.request_log
Name:request-log
Type:Infinity.AdoptedRequestLog
Default Value:None
Flags:READABLE, WRITABLE, CONSTRUCT_ONLY

Request log of this user

Infinity.AdoptedUser.props.vector
Name:vector
Type:Infinity.AdoptedStateVector
Default Value:None
Flags:READABLE, WRITABLE

The state this user is currently at