Stat
[ class tree: Stat ] [ index: Stat ] [ all elements ]

Class: Mai_Stat

Source Location: /Mai/Stat.php

Class Overview


Mai_Stat is a statistics manager of Mai.


Author(s):

  • Wouter Bulten (wouterbulten@mai-ai.org)

Copyright:

  • Copyright (C) 2009 Mai (Me Artificial Intelligence)

Variables

Constants

Methods



Class Details

[line 43]
Mai_Stat is a statistics manager of Mai.



Tags:

author:  Wouter Bulten (wouterbulten@mai-ai.org)
copyright:  Copyright (C) 2009 Mai (Me Artificial Intelligence)
link:  http://www.launchpad.net/mai
license:  GNU General Public License version 3 (GPLv3)


[ Top ]


Class Variables

static $_instance =

[line 48]



Tags:

var:  Singleton instance
access:  protected

Type:   Mai_Stat


[ Top ]

static $_status =  self::WAITING_FOR_START

[line 64]



Tags:

var:  Status of Mai_Stat
access:  protected

Type:   integer


[ Top ]

static $_timeEnd =

[line 59]



Tags:

var:  The end time.
access:  protected

Type:   integer


[ Top ]

static $_timeStart =

[line 53]



Tags:

var:  The start time.
access:  protected

Type:   integer


[ Top ]



Class Methods


static method end [line 113]

static void end( )

Exit the statistics.



Tags:

access:  public


[ Top ]

static method getInstance [line 84]

static Mai_Stat getInstance( )

Retrieve singleton instance



Tags:

access:  public


[ Top ]

static method start [line 101]

static void start( )

Start the statistics.



Tags:

access:  public


[ Top ]

constructor __construct [line 77]

void __construct( )

Private constructor to prevent creation of this object.



Tags:

access:  private


[ Top ]

method executionTime [line 121]

void executionTime( )



Tags:

access:  public


[ Top ]

method __clone [line 137]

void __clone( )

Cloning of a singleton class is not allowed.



Tags:

access:  public


[ Top ]

method __wakeup [line 146]

void __wakeup( )

Function to prevent deserializing



Tags:

access:  public


[ Top ]


Class Constants

ENDED =  2

[line 71]


[ Top ]

STARTED =  1

[line 70]


[ Top ]

WAITING_FOR_START =  0

[line 69]

Constants for the status of Mai_Stat


[ Top ]



Documentation generated on Mon, 27 Jul 2009 19:55:13 +0200 by phpDocumentor 1.4.1