eyeDrops  v2.3
A new approach to detecting eye blinks.
Instance Methods | Class Methods | Protected Attributes | Properties | List of all members
UserProfile Class Reference

A project specific user profile. More...

#import <UserProfile.h>

Inherits NSObject.

Instance Methods

(id) - init
 
(NSString *) - getName
 
(NSDictionary *) - getAttributes
 
(NSNumber *) - getParameter:
 

Class Methods

(UserProfile *) + userProfileWithName:andId:andParameters:
 

Protected Attributes

NSDate * date
 
NSDateFormatter * dateFormatter
 
float parameterarray [12]
 

Properties

NSString * name
 
NSNumber * userId
 
NSMutableArray * parameters
 

Detailed Description

A project specific user profile.

This class represents a user profile with name, id, creation date and calibration parameters.

Author
Benjamin Thiemann
Date
2017/01/17

Method Documentation

◆ getAttributes()

- (NSDictionary *) getAttributes

Getter for attribute parameters.

Returns
A dictionary with key-values-pairs of the profile's content.

◆ getName()

- (NSString *) getName

Getter for attribute name.

Returns
Returns the profile's name.

◆ getParameter:()

- (NSNumber *) getParameter: (int)  index

Getter for a specific parameter.

Parameters
indexThe index of the requested parameter.
Returns
The requested parameter.

◆ init()

- (id) init

This methods initializes the user profile. Only needed to setup the DateFormatter.

◆ userProfileWithName:andId:andParameters:()

+ (id) userProfileWithName: (NSString *)  name
andId: (NSNumber *)  userId
andParameters: (NSMutableArray *)  parameters 

This method returns a new user profile with the given content.

Parameters
nameThe user name.
userIdThe user id.
parametersThe calibration parameters.
Returns
A new profile with the given content.

Member Data Documentation

◆ date

- (NSDate*) date
protected

The date of creation.

◆ dateFormatter

- (NSDateFormatter*) dateFormatter
protected

A DateFormatter to format the date.

Property Documentation

◆ name

- (NSString*) name
readwritenonatomicassign

The user name.

◆ parameters

- (NSMutableArray*) parameters
readwritenonatomicassign

The calibration parameters.

◆ userId

- (NSNumber*) userId
readwritenonatomicassign

The user id.


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