org.jasig.portlets.FeedbackPortlet
Class OverallFeedbackStats

java.lang.Object
  extended by org.jasig.portlets.FeedbackPortlet.OverallFeedbackStats

public class OverallFeedbackStats
extends Object

OverallFeedbackStats represents summary statistics about the feedback in some collection of feedback items.

Author:
Jen Bourey

Constructor Summary
OverallFeedbackStats()
          Default constructor.
OverallFeedbackStats(long pos, long neg, long un, long unique)
          Construct a new feedback statistics object.
 
Method Summary
 long getNegativeResponses()
          Get the number of negative responses in the data set.
 long getPositiveResponses()
          Get the number of positive responses in the data set.
 long getTotalResponses()
          Get the number of total responses in the data set.
 long getUndecidedResponses()
          Get the number of undecided responses in the data set.
 long getUniqueUsers()
          Get the number of unique users in the data set.
 void setNegativeResponses(long negativeResponses)
          Set the number of negative responses in the data set.
 void setPositiveResponses(long positiveResponses)
          Set the number of positive responses in the data set.
 void setUndecidedResponses(long undecidedResponses)
          Set the number of undecided responses in the data set.
 void setUniqueUsers(long uniqueUsers)
          Set the number of unique users in the data set.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OverallFeedbackStats

public OverallFeedbackStats()
Default constructor.


OverallFeedbackStats

public OverallFeedbackStats(long pos,
                            long neg,
                            long un,
                            long unique)
Construct a new feedback statistics object.

Parameters:
pos - number of positive responses
neg - number of negative responses
un - number of undecided responses
unique - number of unique users
Method Detail

getTotalResponses

public long getTotalResponses()
Get the number of total responses in the data set.

Returns:

getUniqueUsers

public long getUniqueUsers()
Get the number of unique users in the data set.

Returns:

getPositiveResponses

public long getPositiveResponses()
Get the number of positive responses in the data set.

Returns:

getNegativeResponses

public long getNegativeResponses()
Get the number of negative responses in the data set.

Returns:

getUndecidedResponses

public long getUndecidedResponses()
Get the number of undecided responses in the data set.

Returns:

setPositiveResponses

public void setPositiveResponses(long positiveResponses)
Set the number of positive responses in the data set.

Parameters:
positiveResponses -

setNegativeResponses

public void setNegativeResponses(long negativeResponses)
Set the number of negative responses in the data set.

Parameters:
negativeResponses -

setUndecidedResponses

public void setUndecidedResponses(long undecidedResponses)
Set the number of undecided responses in the data set.

Parameters:
undecidedResponses -

setUniqueUsers

public void setUniqueUsers(long uniqueUsers)
Set the number of unique users in the data set.

Parameters:
uniqueUsers -


Copyright © 2012 Jasig. All Rights Reserved.