001: /*
002: * Copyright (c) JForum Team
003: * All rights reserved.
004: *
005: * Redistribution and use in source and binary forms,
006: * with or without modification, are permitted provided
007: * that the following conditions are met:
008: *
009: * 1) Redistributions of source code must retain the above
010: * copyright notice, this list of conditions and the
011: * following disclaimer.
012: * 2) Redistributions in binary form must reproduce the
013: * above copyright notice, this list of conditions and
014: * the following disclaimer in the documentation and/or
015: * other materials provided with the distribution.
016: * 3) Neither the name of "Rafael Steil" nor
017: * the names of its contributors may be used to endorse
018: * or promote products derived from this software without
019: * specific prior written permission.
020: *
021: * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT
022: * HOLDERS AND CONTRIBUTORS "AS IS" AND ANY
023: * EXPRESS OR IMPLIED WARRANTIES, INCLUDING,
024: * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
025: * MERCHANTABILITY AND FITNESS FOR A PARTICULAR
026: * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL
027: * THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
028: * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
029: * EXEMPLARY, OR CONSEQUENTIAL DAMAGES
030: * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
031: * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
032: * OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
033: * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
034: * IN CONTRACT, STRICT LIABILITY, OR TORT
035: * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
036: * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
037: * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE
038: *
039: * Created on 03/12/2005 21:31:00
040: * The JForum Project
041: * http://www.jforum.net
042: */
043: package net.jforum.entities;
044:
045: /**
046: * @author Rafael Steil
047: * @version $Id: ForumStats.java,v 1.3 2006/08/20 22:47:36 rafaelsteil Exp $
048: */
049: public class ForumStats {
050: private int users;
051: private int posts;
052: private int topics;
053: private double postsPerDay;
054: private double topicsPerDay;
055: private double usersPerDay;
056:
057: /**
058: * @return Returns the posts.
059: */
060: public int getPosts() {
061: return this .posts;
062: }
063:
064: /**
065: * @param posts The posts to set.
066: */
067: public void setPosts(int posts) {
068: this .posts = posts;
069: }
070:
071: /**
072: * @return Returns the postsPerDay.
073: */
074: public double getPostsPerDay() {
075: return this .postsPerDay;
076: }
077:
078: /**
079: * @param postsPerDay The postsPerDay to set.
080: */
081: public void setPostsPerDay(double postsPerDay) {
082: this .postsPerDay = postsPerDay;
083: }
084:
085: /**
086: * @return Returns the topics.
087: */
088: public int getTopics() {
089: return this .topics;
090: }
091:
092: /**
093: * @param topics The topics to set.
094: */
095: public void setTopics(int topics) {
096: this .topics = topics;
097: }
098:
099: /**
100: * @return Returns the topicsPerDay.
101: */
102: public double getTopicsPerDay() {
103: return this .topicsPerDay;
104: }
105:
106: /**
107: * @param topicsPerDay The topicsPerDay to set.
108: */
109: public void setTopicsPerDay(double topicsPerDay) {
110: this .topicsPerDay = topicsPerDay;
111: }
112:
113: /**
114: * @return Returns the users.
115: */
116: public int getUsers() {
117: return this .users;
118: }
119:
120: /**
121: * @param users The users to set.
122: */
123: public void setUsers(int users) {
124: this .users = users;
125: }
126:
127: /**
128: * @return Returns the usersPerDay.
129: */
130: public double getUsersPerDay() {
131: return this .usersPerDay;
132: }
133:
134: /**
135: * @param usersPerDay The usersPerDay to set.
136: */
137: public void setUsersPerDay(double usersPerDay) {
138: this.usersPerDay = usersPerDay;
139: }
140: }
|