All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class guinea.logic.SessionLog

java.lang.Object
   |
   +----guinea.logic.SessionLog

public class SessionLog
extends Object
implements Serializable
SessionLog objects contains information about the session. The session ID, test starting and ending time, the MCL level for this session and the results given by the user.


Constructor Index

· SessionLog()

Method Index

· addResult(Item)
Add a result item to the session's results list.
· addResults(Enumeration)
Add the results from an enumeration to this session's result list.
· addResults(Vector)
Add the results from a vector to this session's result list.
· clearResults()
Remove all results from session's result list.
· getEndTime()
Get the ending time of session.
· getMCLLevel()
Get the session's MCL level.
· getResults()
Get the results of the session as an Enumeration.
· getResultsVector()
Get the results of the session as a Vector.
· getSessionID()
Get session identifier of this session.
· getStartTime()
Get the starting time of session.
· getTestError()
Get the Exception that caused the test to fail.
· setEndTime(long)
Set the Ending time of session.
· setMCLLevel(Volume)
Set the session's MCL level.
· setResults(Vector)
Set the results vector for this session.
· setSessionID(String)
Set session identifier of this session.
· setStartTime(long)
Set the starting time of session.
· setTestError(Exception)
Log the Exception that caused the test to fail.

Constructors

· SessionLog
 public SessionLog()

Methods

· getSessionID
 public String getSessionID()
Get session identifier of this session.

Returns:
the session ID.
· setSessionID
 public void setSessionID(String id)
Set session identifier of this session.

Parameters:
id - the session ID.
· getMCLLevel
 public Volume getMCLLevel()
Get the session's MCL level.

Returns:
the session's MCL level.
· setMCLLevel
 public void setMCLLevel(Volume level)
Set the session's MCL level.

Parameters:
level - the session's MCL level.
· setStartTime
 public void setStartTime(long time)
Set the starting time of session.

Parameters:
time - the starting time.
See Also:
currentTimeMillis, Date
· setEndTime
 public void setEndTime(long time)
Set the Ending time of session.

Returns:
time the starting time.
See Also:
currentTimeMillis, Date
· getStartTime
 public long getStartTime()
Get the starting time of session.

Returns:
the starting time.
See Also:
currentTimeMillis, Date
· getEndTime
 public long getEndTime()
Get the ending time of session.

Returns:
the ending time.
See Also:
currentTimeMillis, Date
· getResultsVector
 public Vector getResultsVector()
Get the results of the session as a Vector. The elements are Items.

Returns:
a Vector of results.
See Also:
Vector
· getResults
 public Enumeration getResults()
Get the results of the session as an Enumeration. The elements are Items.

Returns:
an Enumeration of results.
See Also:
Enumeration
· clearResults
 public synchronized void clearResults()
Remove all results from session's result list.

· setResults
 public synchronized void setResults(Vector results)
Set the results vector for this session.

Parameters:
results - the new results object that replaces the session's current results vector.
· addResult
 public synchronized void addResult(Item result)
Add a result item to the session's results list.

Parameters:
result - a result to add.
· addResults
 public void addResults(Vector res)
Add the results from a vector to this session's result list.

Parameters:
res - the results to be added.
· addResults
 public synchronized void addResults(Enumeration e)
Add the results from an enumeration to this session's result list.

Parameters:
e - the results to be added.
· getTestError
 public Exception getTestError()
Get the Exception that caused the test to fail.

Returns:
an exception.
· setTestError
 public void setTestError(Exception ex)
Log the Exception that caused the test to fail.

Parameters:
ex - an exception.

All Packages  Class Hierarchy  This Package  Previous  Next  Index