Keel 2.1RC2

org.keel.apps.poll.models
Class PromptChoice

java.lang.Object
  extended byorg.keel.services.model.StandardModel
      extended byorg.keel.services.model.StandardLogEnabledModel
          extended byorg.keel.services.model.SecurableStandardLogEnabledModel
              extended byorg.keel.apps.poll.models.PromptChoice
All Implemented Interfaces:
Configurable, LogEnabled, Model, Securable, ThreadSafe

public class PromptChoice
extends SecurableStandardLogEnabledModel
implements ThreadSafe

This model creates all the elements to prompt for a page to add a new choice to a given question. The User types in the choice text and then assigns a score to the choice. These scores are then applied as a Participant takes a poll - the answer they choose has a score/weight and all scores are then added together to determine a final total score for the Participant of the Poll. Total Possible Score is calculated by adding the highest possible score for each question asked on the voting form. Note that in the case of Multibox questions, each choice may be selected and therefore Total Possible Score includes the score for each choice available in a multibox question.

Version:
$Revision: 1.8 $ $Date: 2003/10/10 23:16:29 $
Author:
Michael Nash

Field Summary
 
Fields inherited from class org.keel.services.model.SecurableStandardLogEnabledModel
 
Fields inherited from class org.keel.services.model.StandardLogEnabledModel
log
 
Fields inherited from class org.keel.services.model.StandardModel
configuration
 
Fields inherited from interface org.keel.services.model.Model
ROLE
 
Constructor Summary
PromptChoice()
           
 
Method Summary
 ModelResponse execute(ModelRequest req)
           
 
Methods inherited from class org.keel.services.model.SecurableStandardLogEnabledModel
getAuthorizationManager, setAuthorizationManager
 
Methods inherited from class org.keel.services.model.StandardLogEnabledModel
enableLogging
 
Methods inherited from class org.keel.services.model.StandardModel
configure, getConfiguration
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PromptChoice

public PromptChoice()
Method Detail

execute

public ModelResponse execute(ModelRequest req)
                      throws ModelException
Specified by:
execute in interface Model
Throws:
ModelException - Nested DB errors

Keel 2.1RC2

Please see keelframework.org for information about new Keel releases.