Skip navigation links
Missed Detections Demo ver. 0.2.8
A B C D E F G H I J K L M N O P Q R S T U V W 

A

a(String, String) - Static method in class edu.rutgers.md.web.Tools
Generates an A HREF=...
about() - Method in enum edu.rutgers.md.sql.Survey.Status
 
actionLink() - Method in class edu.rutgers.md.sql.Survey
Generates an HTML snippet containing "View" and "Edit" links for this survey, as appropriate.
addRole(Role) - Method in class edu.rutgers.md.sql.User
 
ago(Date) - Static method in class edu.rutgers.md.format.Util
 
allowedUpdate(Survey.Status) - Method in enum edu.rutgers.md.sql.Survey.Status
Is change of status from this status to newStatus?
AllPredictions - Class in edu.rutgers.md.engine
An AllPredictions object contains information about all experts' predictions, and about the "ground truth" data.
AllPredictions(Vector<Prediction>) - Constructor for class edu.rutgers.md.engine.AllPredictions
Constructs an AllPrediction object as a wrapper over a vector of predictions.
asStringVector(Object, String) - Static method in class edu.rutgers.md.format.Reflect
 
asStringVector(Object, String, boolean) - Static method in class edu.rutgers.md.format.Reflect
 
AvgPrediction - Class in edu.rutgers.md.engine
Contains information about a weighted average of several experts' predictions.

B

Buttons() - Constructor for class edu.rutgers.md.web.DemoResultsBase.Buttons
 

C

checkbox(String, Object, boolean) - Static method in class edu.rutgers.md.web.Tools
"true" will be sent if the box is checked
checkbox(String, Object, Object, boolean) - Static method in class edu.rutgers.md.web.Tools
Creates an HTML "input" element of the "checkbox" type.
checkPassword(String) - Method in class edu.rutgers.md.sql.User
 
CODE - Static variable in class edu.rutgers.md.web.Response
 
code - Variable in class edu.rutgers.md.web.Response
 
compactFormat(Object) - Static method in class edu.rutgers.md.format.Reflect
Compact human readable format, with no extra quotes, for various HTML tables
compareTo(Object) - Method in class edu.rutgers.md.format.Reflect.Entry
 
computeD(double[]) - Method in class edu.rutgers.md.engine.Prediction
Computes the normalized JS-divergence between this prediction's vector of observables and the "true" one.
computeObservableProbs() - Method in class edu.rutgers.md.engine.Prediction
Computes a vector of observables probabilities: probabilities of the person been seen (apprehended) in each of the K periods, and (the last element) the probability of the person never been seen.
containsKey(String) - Method in class edu.rutgers.md.engine.ParseConfig
 
COOKIE_NAME - Static variable in class edu.rutgers.md.web.ExtendedSessionManagement
 
cp - Variable in class edu.rutgers.md.web.ResultsBase
The "conext" part of our URL.
create - Variable in class edu.rutgers.md.web.EditSurvey
 
CREATE - Static variable in class edu.rutgers.md.web.SaveSurvey
 
create - Variable in class edu.rutgers.md.web.SaveSurvey
 
CreateRoles - Class in edu.rutgers.md.sqltools
A very simple, stand-alone program that creates necessary Role entities in the roles table, and some User entities (for coordinators)
CreateRoles() - Constructor for class edu.rutgers.md.sqltools.CreateRoles
 
csvHeader(Class) - Static method in class edu.rutgers.md.format.Reflect
Saves the class description as the header line of a comma-separated file
csvRow(Object) - Static method in class edu.rutgers.md.format.Reflect
 
csvRow(Object, String) - Static method in class edu.rutgers.md.format.Reflect
Saves the object as a row of comma-separated file
CURVE - Static variable in class edu.rutgers.md.web.DemoResultsBase.Names
 
customizedReflect(Object, PairFormatter) - Static method in class edu.rutgers.md.format.Reflect
More pretty version of Reflect.reflectToString(Object o)

D

DemoMain - Class in edu.rutgers.md.web
Used by demomain.jsp.
DemoMain(HttpServletRequest) - Constructor for class edu.rutgers.md.web.DemoMain
 
DemoResultsBase - Class in edu.rutgers.md.web
The back end for demo/demoexpertsform.jsp
DemoResultsBase(HttpServletRequest) - Constructor for class edu.rutgers.md.web.DemoResultsBase
 
DemoResultsBase.Buttons - Class in edu.rutgers.md.web
 
DemoResultsBase.Names - Class in edu.rutgers.md.web
Names of query string parameters
DemoSessionData - Class in edu.rutgers.md.web
A single instance of this class is associated with a particular session of the Demo Application (via HttpSession.setAttribute), and stores all the information that may be set via one http request and needs to be accessible during the processing of other requests.
describe() - Method in enum edu.rutgers.md.sql.Survey.Status
Human-readable description of this status
describeGettingHere() - Method in enum edu.rutgers.md.sql.Survey.Status
 
destName() - Method in class edu.rutgers.md.format.Reflect.Entry
Class.field, e.g.
disable() - Method in class edu.rutgers.md.sql.User
Disables the user entry, i.e.
Display - Annotation Type in edu.rutgers.md.format
An annotation describing how, if at all, a particular data field (content of a SQL database column) is to be displayed in HTML tables and data entry forms etc.
doStartTag() - Method in class edu.rutgers.md.web.RUTag
 
doStats() - Method in class edu.rutgers.md.engine.AllPredictions
Computes the NJSD and weight for each expert, and the weighted average of all predictions

E

e - Variable in class edu.rutgers.md.web.ResultsBase
The JSP page may print this out if it is not null.
EA - Annotation Type in edu.rutgers.md.format
An annotation to add explanatory text to enum values in data entry forms.
editable - Variable in class edu.rutgers.md.format.Reflect.Entry
 
EditSurvey - Class in edu.rutgers.md.web
Back end of editSurvey.jsp
EditSurvey(HttpServletRequest, HttpServletResponse) - Constructor for class edu.rutgers.md.web.EditSurvey
 
edu.rutgers.md.engine - package edu.rutgers.md.engine
Missed Detections computations; the only package needed for the command-line application.
edu.rutgers.md.format - package edu.rutgers.md.format
Object formatting (pretty printing).
edu.rutgers.md.sql - package edu.rutgers.md.sql
Data stored in persistent storage (MySQL database + OpenJPA).
edu.rutgers.md.sqltools - package edu.rutgers.md.sqltools
Auxiliary classes for handling persistent data using OpenJPA.
edu.rutgers.md.test - package edu.rutgers.md.test
Sample command-line applications for the Missed Detections tool kit, illustrating the use of the edu.rutgers.md.engine API.
edu.rutgers.md.web - package edu.rutgers.md.web
Generating JSP pages for the Missed Detections web application.
encryptAndSetPassword(String) - Method in class edu.rutgers.md.sql.User
Encrypts the passed password, and stores the encrypted value.
encryptPassword(String) - Static method in class edu.rutgers.md.sql.User
 
ensureClosed(EntityManager) - Static method in class edu.rutgers.md.web.ResultsBase
A hygienic way to close a connection, if it is open.
ensureClosed(EntityManager, boolean) - Static method in class edu.rutgers.md.web.ResultsBase
A hygienic way to close a connection, if it is open.
entries - Variable in class edu.rutgers.md.format.Reflect
 
Entry() - Constructor for class edu.rutgers.md.format.Reflect.Entry
 
equals(Object) - Method in class edu.rutgers.md.sql.Role
Equality is based on the role names
errmsg - Variable in class edu.rutgers.md.web.ResultsBase
The JSP page should print this out if error==true
error(String) - Static method in class edu.rutgers.md.engine.Logging
 
error - Variable in class edu.rutgers.md.web.ResultsBase
Will be set to true if an error happened
exceptionTrace() - Method in class edu.rutgers.md.web.ResultsBase
Returns the exception's stack trace, as a plain-text string
Expert - Class in edu.rutgers.md.sql
An Expert object contains information about a specific survey responder.
Expert() - Constructor for class edu.rutgers.md.sql.Expert
Creates a more or less unique code to identify a user
Expert(String, String) - Constructor for class edu.rutgers.md.sql.Expert
 
Expert(int, int, String) - Constructor for class edu.rutgers.md.sql.Expert
 
expert - Variable in class edu.rutgers.md.web.Response
 
expertCnt() - Method in class edu.rutgers.md.engine.AllPredictions
How many experts?
ExtendedSession - Class in edu.rutgers.md.sql
Designed similarly to the sample at http://openjpa.apache.org/embeddable-samples.html
ExtendedSession() - Constructor for class edu.rutgers.md.sql.ExtendedSession
Dummy constructor, just because OpenJPA requires it
ExtendedSession(String, Date) - Constructor for class edu.rutgers.md.sql.ExtendedSession
 
ExtendedSessionManagement - Class in edu.rutgers.md.web
This class is used to manage extended sessions, which survive over the web server restart.
ExtendedSessionManagement() - Constructor for class edu.rutgers.md.web.ExtendedSessionManagement
 

F

f - Variable in class edu.rutgers.md.format.Reflect.Entry
 
fetchVecs() - Method in class edu.rutgers.md.format.OurTable
This is meant to cause JPA load vectors that are not automatically loaded.
findByName(EntityManager, String) - Static method in class edu.rutgers.md.sql.User
Can be used instead of (User)em.find(User.class, un);
findExpert(String) - Method in class edu.rutgers.md.sql.Survey
Finds the entry for the expert identified by the expert's access code.
formatAsString(Object, String) - Static method in class edu.rutgers.md.format.Reflect
Formats a single field of an object.
formatResults(boolean) - Method in class edu.rutgers.md.engine.AllPredictions
Formats the data (the experts' predictions and the weighted averages) as an HTML table.
formPost(String, String) - Static method in class edu.rutgers.md.web.Tools
Generates a FORM...

G

G - Static variable in class edu.rutgers.md.engine.Prediction
All rates (apprehension rates, attempt rates) are entered and printed on the scale [0:G], rather than [0:1], while the internal representation of the rates, and all math involved, are on the [0:1] scale.
g - Variable in class edu.rutgers.md.format.Reflect.Entry
 
getApprehensionRate(String[]) - Static method in class edu.rutgers.md.engine.Prediction
 
getAttemptRate(String[], int) - Static method in class edu.rutgers.md.engine.Prediction
 
getBoolean(String, boolean) - Method in class edu.rutgers.md.engine.ParseConfig
 
getBoolean(HttpServletRequest, String, boolean) - Static method in class edu.rutgers.md.web.Tools
Extracts the boolean value from the query string name/value pair "name=true" or "name=false".
getCode() - Method in class edu.rutgers.md.sql.Expert
 
getCollect1time() - Method in class edu.rutgers.md.sql.Survey
 
getCollect2time() - Method in class edu.rutgers.md.sql.Survey
 
getDouble(String, double) - Method in class edu.rutgers.md.engine.ParseConfig
 
getDouble(HttpServletRequest, String, double) - Static method in class edu.rutgers.md.web.Tools
 
getEA(Enum) - Static method in class edu.rutgers.md.format.Util
Retrieves the EA annotation from an object of an Enum type.
getEA(Enum, String) - Static method in class edu.rutgers.md.format.Util
 
getEa(Enum) - Static method in class edu.rutgers.md.format.Util
 
getEM() - Static method in class edu.rutgers.md.sqltools.Main
Creates a new EntityManager from the EntityManagerFactory.
getEM() - Method in class edu.rutgers.md.web.SessionData
Creates a new EntityManager from the EntityManagerFactory.
getEncEsPass() - Method in class edu.rutgers.md.sql.ExtendedSession
 
getEntry(String) - Method in class edu.rutgers.md.format.Reflect
 
getEnum(Class<T>, String, T) - Method in class edu.rutgers.md.engine.ParseConfig
 
getEnum(HttpServletRequest, Class<T>, String, T) - Static method in class edu.rutgers.md.web.Tools
 
getERole() - Method in class edu.rutgers.md.sql.Role
 
getEs() - Method in class edu.rutgers.md.sql.User
 
getEsEnd() - Method in class edu.rutgers.md.sql.ExtendedSession
 
getExperts() - Method in class edu.rutgers.md.sql.Survey
 
getFactory() - Static method in class edu.rutgers.md.sqltools.Main
Initializes the EntityManagerFactory using the System properties.
getFinishTime() - Method in class edu.rutgers.md.sql.Survey
 
getId() - Method in class edu.rutgers.md.sql.Survey
 
getId() - Method in class edu.rutgers.md.sql.User
This is the internal ID automatically assigned by the database to each entry upon creation.
getInt(String, int) - Method in class edu.rutgers.md.engine.ParseConfig
 
getK() - Method in class edu.rutgers.md.engine.AllPredictions
How many observation periods are there?
getK() - Method in class edu.rutgers.md.sql.Survey
 
getLatestRound() - Method in class edu.rutgers.md.sql.Expert
Finds out the most recent round (if ever) in which this expert has submitted a response.
getLong(String, long) - Method in class edu.rutgers.md.engine.ParseConfig
 
getLong(HttpServletRequest, String, long) - Static method in class edu.rutgers.md.web.Tools
Retrives an integer HTTP request parameter.
getLongId() - Method in class edu.rutgers.md.format.OurTable
A very cludgy way to call getId() regardless of whether it's returning int or long
getMyPid() - Static method in class edu.rutgers.md.sqltools.Main
Finds the process id of the UNIX process for this application.
getName() - Method in class edu.rutgers.md.sql.Expert
A human-readable name or identifier assigned to the user by the survey coordinator
getName() - Method in class edu.rutgers.md.sql.Survey
 
getNames(Class) - Static method in class edu.rutgers.md.format.Reflect
Returns the array of field names
getOption(String, String) - Method in class edu.rutgers.md.engine.ParseConfig
Gets the requested value from the hash table or from the Java system property aName.
getOption(String, int) - Method in class edu.rutgers.md.engine.ParseConfig
Gets the requested integer value from the hash table or from the Java system property aName.
getOption(String, boolean) - Method in class edu.rutgers.md.engine.ParseConfig
Gets the requested integer value from the hash table or from the Java system property aName.
getOptionDate(String, String) - Method in class edu.rutgers.md.engine.ParseConfig
Gets a date parameter, in the format YYYY-MM-DD
getOptionDouble(String, double) - Method in class edu.rutgers.md.engine.ParseConfig
Gets the requested double value from the hash table or from the Java system property aName.
getOptionEnum(Class<T>, String, T) - Method in class edu.rutgers.md.engine.ParseConfig
Returns the value of the specified parameter if it can be interpreted as a value of the specified enumerated type.
getOptionLong(String, long) - Method in class edu.rutgers.md.engine.ParseConfig
 
getOwningEntry(Enum) - Method in class edu.rutgers.md.format.Reflect
Finds the entry that describes the field whose type is the the enumerated class for which e is one of the values.
getParameter(String) - Method in class edu.rutgers.md.engine.ParseConfig
Gets the requested value from the hash table.
getPeriodCsv() - Method in class edu.rutgers.md.sql.Survey
 
getPeriodCsvArray() - Method in class edu.rutgers.md.sql.Survey
 
getPrintableName(Enum) - Static method in class edu.rutgers.md.format.Util
Human-readable printable name for an enum constant: the actual name, or EA.alt
getReflect(Class) - Static method in class edu.rutgers.md.format.Reflect
Looks up or creates a Reflect instance for a specified class.
getResponse(int) - Method in class edu.rutgers.md.sql.Expert
 
getResponse1() - Method in class edu.rutgers.md.sql.Expert
 
getResponse1Time() - Method in class edu.rutgers.md.sql.Expert
 
getResponse2() - Method in class edu.rutgers.md.sql.Expert
 
getResponse2Time() - Method in class edu.rutgers.md.sql.Expert
 
getResponseCsvArray(int) - Method in class edu.rutgers.md.sql.Expert
 
getResponseTime(int) - Method in class edu.rutgers.md.sql.Expert
 
getRole() - Method in class edu.rutgers.md.sql.Role
 
getRoles() - Method in class edu.rutgers.md.sql.User
 
getServletInfo() - Method in class edu.rutgers.md.web.LoginServlet
 
getServletInfo() - Method in class edu.rutgers.md.web.LogoutServlet
 
getSessionData(HttpServletRequest) - Static method in class edu.rutgers.md.web.SessionData
Looks up the SessionData object already associated with the current session, or creates a new one.
getSignupTime() - Method in class edu.rutgers.md.sql.User
 
getStatus() - Method in class edu.rutgers.md.sql.Survey
 
getStoredUserName() - Method in class edu.rutgers.md.web.SessionData
Unlike getRemoteUser(), this method does not recheck the extended session cookie.
getString(String, String) - Method in class edu.rutgers.md.engine.ParseConfig
 
getString(HttpServletRequest, String, String) - Static method in class edu.rutgers.md.web.Tools
 
getUser_name() - Method in class edu.rutgers.md.sql.User
user_name is used as the primary key and is not editable.
getUser_pass() - Method in class edu.rutgers.md.sql.User
Encrypted password (or, more precisely, the MD5 digest of the password).
getUserEntry() - Method in class edu.rutgers.md.web.ResultsBase
Returns the user object for the currently logged-in user
getVersion() - Static method in class edu.rutgers.md.engine.Main
 
getVersionDate() - Static method in class edu.rutgers.md.engine.Main
 

H

hasAnyRole(Role.Name[]) - Method in class edu.rutgers.md.sql.User
Does this user have any of the roles in the specifed list?
hashCode() - Method in class edu.rutgers.md.sql.Role
Based on underlying role name
hasResponse(int) - Method in class edu.rutgers.md.sql.Expert
Retrieves this user's response (if any) from the specified round.
hasRole(Role.Name) - Method in class edu.rutgers.md.sql.User
 
header4cells() - Static method in class edu.rutgers.md.sql.User
HTML: header for (name, details, roles, enabled)
headerCells() - Static method in class edu.rutgers.md.sql.Survey
Generates an HTML header for the table in which surveys can be listed.
htmlHeaderRow(Class, boolean) - Static method in class edu.rutgers.md.format.Reflect
 
htmlRow(Object, boolean) - Static method in class edu.rutgers.md.format.Reflect
 
htmlRow(Object, boolean, boolean) - Static method in class edu.rutgers.md.format.Reflect
Returns a complete TR element, or just a bunch of TD cells.

I

ID - Static variable in class edu.rutgers.md.web.SaveSurvey
 
id - Variable in class edu.rutgers.md.web.SaveSurvey
 
ID - Static variable in class edu.rutgers.md.web.SurveyResultsBase
Quuery string parameters
id - Variable in class edu.rutgers.md.web.SurveyResultsBase
 
ignores(String) - Method in class edu.rutgers.md.format.OurTable
In some classes, certain fields should not be displayed or modified unless certain conditions apply.
IllegalInputException - Exception in edu.rutgers.md.engine
An exception of this type is thrown when we want to report to the user that the data he's entered are invalid
IllegalInputException(String) - Constructor for exception edu.rutgers.md.engine.IllegalInputException
 
ImportCSV - Class in edu.rutgers.md.engine
Methods responsible for parsing CSV files etc.
ImportCSV() - Constructor for class edu.rutgers.md.engine.ImportCSV
 
info(String) - Static method in class edu.rutgers.md.engine.Logging
 
infomsg - Variable in class edu.rutgers.md.web.ResultsBase
The JSP page should always print this message.
inputHidden(String, boolean) - Static method in class edu.rutgers.md.web.Tools
Creates an "input type=hidden" HTML tag
inputHidden(String, long) - Static method in class edu.rutgers.md.web.Tools
 
inputHidden(String, String) - Static method in class edu.rutgers.md.web.Tools
 
inputHiddenSurveyInfo() - Method in class edu.rutgers.md.web.DemoResultsBase
If this form has been filled based on a survey data, passed on the info about the survey.
inputHiddenSurveyInfo(int, int) - Static method in class edu.rutgers.md.web.DemoResultsBase
 
inputText(String) - Static method in class edu.rutgers.md.web.Tools
 
inputText(String, long) - Static method in class edu.rutgers.md.web.Tools
 
inputText(String, Object, int) - Static method in class edu.rutgers.md.web.Tools
Creates an 'input type=text' tag.
inputTextArea(String, Object, int, int) - Static method in class edu.rutgers.md.web.Tools
 
isAdmin() - Method in class edu.rutgers.md.sql.User
Does this user have the "admin" role?
isCoordinator() - Method in class edu.rutgers.md.sql.User
Does this user have the "coordinator" role?
isDigest() - Method in class edu.rutgers.md.format.Reflect.Entry
Does this field store an MD5 digest, rather than the actual value?
isEnabled() - Method in class edu.rutgers.md.sql.User
 
isIllegal(Enum) - Static method in class edu.rutgers.md.format.Util
Checks if a given enum value carries an @EA(illegal=true) annotation.
isStoreNull(Enum) - Static method in class edu.rutgers.md.format.Util
 

J

join(String, Object[]) - Static method in class edu.rutgers.md.format.Util
Like join() in Perl

K

k - Variable in class edu.rutgers.md.web.DemoResultsBase
 
K - Static variable in class edu.rutgers.md.web.DemoResultsBase.Names
 
K - Static variable in class edu.rutgers.md.web.SaveSurvey
 
k - Variable in class edu.rutgers.md.web.SaveSurvey
 
K - Static variable in class edu.rutgers.md.web.SurveyResultsBase
Quuery string parameters
k - Variable in class edu.rutgers.md.web.SurveyResultsBase
 
kBox() - Method in class edu.rutgers.md.web.DemoResultsBase
Creates an HTML snippet with the entry box for the value of K

L

LATEST_ROUND - Static variable in class edu.rutgers.md.sql.Expert
This value of the "ROUND" argument refers to the most recent estimate supplied by this user (in whichever round it may have taken place)
lifeCycle() - Method in class edu.rutgers.md.web.SurveyResultsBase
Generates an HTML table describing the life cycle of surveys, with a specific indication of what stage the current survey is in.
list - Variable in class edu.rutgers.md.web.ListSurveys
 
listRoles() - Method in class edu.rutgers.md.sql.User
 
ListSurveys - Class in edu.rutgers.md.web
The back end for the page (listSurvey.jsp) that lists all surveys stored in the database.
ListSurveys(HttpServletRequest, HttpServletResponse) - Constructor for class edu.rutgers.md.web.ListSurveys
 
Logging - Class in edu.rutgers.md.engine
Methods used by MD webapp's classes to log warning and error messages.
Logging() - Constructor for class edu.rutgers.md.engine.Logging
 
LoginServlet - Class in edu.rutgers.md.web
User authentication, for use in the absence of Tomcat's native support (context.xml etc)
LoginServlet() - Constructor for class edu.rutgers.md.web.LoginServlet
 
LogoutServlet - Class in edu.rutgers.md.web
Terminates the current web session.
LogoutServlet() - Constructor for class edu.rutgers.md.web.LogoutServlet
 

M

Main - Class in edu.rutgers.md.engine
At the moment, this is an almost empty class; it just stores the application's version number
Main() - Constructor for class edu.rutgers.md.engine.Main
 
main(String[]) - Static method in class edu.rutgers.md.engine.ParseConfig
Purely for testing.
main(String[]) - Static method in class edu.rutgers.md.sqltools.CreateRoles
For each role name, checks if a Role object with that name already exists in the database, and if not, creates it.
Main - Class in edu.rutgers.md.sqltools
A very simple, stand-alone program that stores a new entity in the database and then performs a query to retrieve it.
Main() - Constructor for class edu.rutgers.md.sqltools.Main
 
main(String[]) - Static method in class edu.rutgers.md.test.Test1
Runs the application.
makeGetMethodName(String) - Static method in class edu.rutgers.md.format.Reflect
 
makeSetMethodName(String) - Static method in class edu.rutgers.md.format.Reflect
 
maxDays - Static variable in class edu.rutgers.md.web.ExtendedSessionManagement
max lifetime of an extended session, in hours
memory() - Static method in class edu.rutgers.md.sqltools.Main
Reports memory use
memory(String) - Static method in class edu.rutgers.md.sqltools.Main
Reports memory use
memoryInfo(String, boolean) - Static method in class edu.rutgers.md.sqltools.Main
 
message - Variable in class edu.rutgers.md.web.Response
 
message - Variable in class edu.rutgers.md.web.SaveSurvey
 
mkExpertTable(boolean) - Method in class edu.rutgers.md.web.SurveyResultsBase
Generates a static table or an HTML form with the expert names
mkPeriodTable(boolean) - Method in class edu.rutgers.md.web.SurveyResultsBase
Generates a static table or an HTML form with the period names

N

N - Static variable in class edu.rutgers.md.web.SurveyResultsBase
Quuery string parameters
n - Variable in class edu.rutgers.md.web.SurveyResultsBase
 
NAME - Static variable in class edu.rutgers.md.engine.Logging
 
name - Variable in class edu.rutgers.md.format.Reflect.Entry
 
NAME - Static variable in class edu.rutgers.md.web.SaveSurvey
 
Names() - Constructor for class edu.rutgers.md.web.DemoResultsBase.Names
 
NEW - Static variable in class edu.rutgers.md.web.SurveyResultsBase
Quuery string parameters
nExperts - Variable in class edu.rutgers.md.web.DemoResultsBase
 
nextStatus() - Method in enum edu.rutgers.md.sql.Survey.Status
 
njsDiv(double[], double[]) - Static method in class edu.rutgers.md.engine.Prediction
Normalized Jensen-Shannon divergence (JSD(p,q)/log(2)) between two probability distributions.

O

Observables - Class in edu.rutgers.md.engine
An Observables object contains information about the "ground truth" data, i.e.
Observables(String) - Constructor for class edu.rutgers.md.engine.Observables
Creates an Observables object for K time observation periods from a String in CSV format.
OurTable - Class in edu.rutgers.md.format
Entities in edu.rutgers.md.sql (corresponding to table rows) can extend this class, so that their fields can be accessed using certain convenience methods.
OurTable() - Constructor for class edu.rutgers.md.format.OurTable
 

P

ParseConfig - Class in edu.rutgers.md.engine
This class is used to obtain configuration parameters, from a configuration file or from Java System Properties.
ParseConfig() - Constructor for class edu.rutgers.md.engine.ParseConfig
Creates an empty hashtable.
ParseConfig(String) - Constructor for class edu.rutgers.md.engine.ParseConfig
Creates a hashtable that contains the parsed contents of the specified configuration file.
ParseConfig(Reader) - Constructor for class edu.rutgers.md.engine.ParseConfig
Creates a hashtable that contains the parsed data obtained from an open reader (which may, for example, be associated with an open file), and then closes the reader.
passwordMatches(String, String) - Static method in class edu.rutgers.md.sql.User
 
payment - Variable in class edu.rutgers.md.format.Reflect.Entry
 
periodName(String[], int) - Static method in class edu.rutgers.md.engine.AllPredictions
Looks up (if available) or generates a suitable period name.
persistenceUnitName - Static variable in class edu.rutgers.md.sqltools.CreateRoles
This name will be used to configure the EntityManagerFactory based on the corresponding name in the META-INF/persistence.xml file
persistenceUnitName - Static variable in class edu.rutgers.md.sqltools.Main
This name will be used to configure the EntityManagerFactory based on the corresponding name in the META-INF/persistence.xml file
Prediction - Class in edu.rutgers.md.engine
Contains information about one expert's predictions.
Prediction(String, double, double[]) - Constructor for class edu.rutgers.md.engine.Prediction
 
Prediction(int, String[]) - Constructor for class edu.rutgers.md.engine.Prediction
Constructs a Prediction object from an array of strings (which could be obtained e.g by splitting a line of text from a CSV input file).
Prediction(int, String, String[]) - Constructor for class edu.rutgers.md.engine.Prediction
Constructs a Prediction object using an array of strings (which could be obtained e.g by splitting a line of text from a CSV input file).
predictions - Variable in class edu.rutgers.md.engine.AllPredictions
The experts' predictions
preview - Variable in class edu.rutgers.md.web.Response
The preview mode is turned on when the coordinator is logged in.
processFile(int, LineNumberReader) - Static method in class edu.rutgers.md.engine.ImportCSV
Parses a data file in CSV format, interpreting each non-blank (and non-comment) line of the file as the description of one expert's Prediction.

Q

q - Variable in class edu.rutgers.md.web.DemoSessionData
 

R

R - Static variable in class edu.rutgers.md.web.DemoResultsBase.Names
 
radio(String, String, Object, boolean) - Static method in class edu.rutgers.md.web.Tools
 
radioOrBox(String, String, Object, Object, boolean) - Static method in class edu.rutgers.md.web.Tools
Creates an HTML "input" element of the "radio" or "checkbox" type.
radioOrBox(String, String, Object, Object, boolean, String) - Static method in class edu.rutgers.md.web.Tools
Creates an HTML "input" element of the "radio" or "checkbox" type.
randomPermutation(int) - Static method in class edu.rutgers.md.format.Util
 
randomSample(int, int) - Static method in class edu.rutgers.md.format.Util
Returns an array of nc distinct numbers randomly selected from the range [0..n), and randomly ordered.
Reflect - Class in edu.rutgers.md.format
A bunch of methods to figure what fields a class has, and how to print them out in a more or less sensible way.
Reflect.Entry - Class in edu.rutgers.md.format
An entry describes one field of the class, complete with its access methods and the display hints
reflectToString() - Method in class edu.rutgers.md.format.OurTable
Prints out all fields of the object that, according to the appropriate annotations, we want printed
reflectToString(Object) - Static method in class edu.rutgers.md.format.Reflect
Prints all appropriate fields of the specified object in the default (toString) format
reflectToString(Object, boolean) - Static method in class edu.rutgers.md.format.Reflect
 
removeRole(Role) - Method in class edu.rutgers.md.sql.User
 
Response - Class in edu.rutgers.md.web
The back end for the response form (survey/response.jsp) for an expert to enter his predictions.
Response(HttpServletRequest, HttpServletResponse) - Constructor for class edu.rutgers.md.web.Response
 
responseAnalysisLinks() - Method in class edu.rutgers.md.web.SurveyResultsBase
Produces HTML with a report on how many experts have entered their estimates in each round, and links for the analysis of the response.
responseCnt - Variable in class edu.rutgers.md.web.SurveyResultsBase
How many users have submitted a response in each round
responseCntLatest - Variable in class edu.rutgers.md.web.SurveyResultsBase
How many users have submitted a response in any round
responseForCsvFile(int) - Method in class edu.rutgers.md.sql.Survey
Puts all responses for one round into an array of Strings that can be later dumped as a CSV file.
responsesTextArea - Variable in class edu.rutgers.md.web.DemoResultsBase
 
responseTable() - Method in class edu.rutgers.md.web.Response
 
responseTable(boolean) - Method in class edu.rutgers.md.web.Response
Generates an HTML table which either has entry boxes for the expert to enter his responses to, or just shows the already-entered response.
responseURL() - Method in class edu.rutgers.md.web.SurveyResultsBase
Generates the base of the URLs which need to be supplied to the experts for them to enter their estimates.
responseURLBase() - Method in class edu.rutgers.md.web.SurveyResultsBase
 
results - Variable in class edu.rutgers.md.web.DemoMain
 
ResultsBase - Class in edu.rutgers.md.web
The parent class for all classes that serve as back end for various JSP pages.
ResultsBase(HttpServletRequest) - Constructor for class edu.rutgers.md.web.ResultsBase
 
ResultsBase(HttpServletRequest, HttpServletResponse) - Constructor for class edu.rutgers.md.web.ResultsBase
 
Role - Class in edu.rutgers.md.sql
A role is simply a database-storable wrapper around the role name.
Role() - Constructor for class edu.rutgers.md.sql.Role
 
Role.Name - Enum in edu.rutgers.md.sql
 
ROUND - Static variable in class edu.rutgers.md.web.DemoResultsBase.Names
 
round - Variable in class edu.rutgers.md.web.DemoResultsBase
 
ROUND - Static variable in class edu.rutgers.md.web.Response
 
rp - Variable in class edu.rutgers.md.format.Reflect.Entry
 
runByCoordinator() - Method in class edu.rutgers.md.web.ResultsBase
Is this command run by a researcher-level user?
RUTag - Class in edu.rutgers.md.web
 
RUTag() - Constructor for class edu.rutgers.md.web.RUTag
 

S

s - Variable in class edu.rutgers.md.format.Reflect.Entry
 
s - Variable in class edu.rutgers.md.web.Response
 
s - Variable in class edu.rutgers.md.web.SaveSurvey
 
s - Variable in class edu.rutgers.md.web.SurveyResultsBase
 
save - Variable in class edu.rutgers.md.web.Response
The preview mode is turned on when the coordinator is logged in.
SAVE - Static variable in class edu.rutgers.md.web.Response
 
saveAsInsert(Object) - Static method in class edu.rutgers.md.format.Reflect
Saves the object as a MySQL "INSERT" statement
SaveCsvServlet - Class in edu.rutgers.md.web
This servlet saves all responses stored for a given survey in the database into a CSV file.
SaveCsvServlet() - Constructor for class edu.rutgers.md.web.SaveCsvServlet
 
SaveSurvey - Class in edu.rutgers.md.web
The back end for coord/saveSurvey.jsp.
SaveSurvey(HttpServletRequest, HttpServletResponse) - Constructor for class edu.rutgers.md.web.SaveSurvey
 
sd - Variable in class edu.rutgers.md.web.DemoResultsBase
All the data that are meant to be persistent between requests in the same session
sd - Variable in class edu.rutgers.md.web.ResultsBase
All the data that are meant to be persistent between requests in the same session
sensorFileName - Variable in class edu.rutgers.md.web.DemoSessionData
 
sensorFromTextarea - Variable in class edu.rutgers.md.web.DemoSessionData
 
service(HttpServletRequest, HttpServletResponse) - Method in class edu.rutgers.md.web.LoginServlet
 
service(HttpServletRequest, HttpServletResponse) - Method in class edu.rutgers.md.web.LogoutServlet
 
service(HttpServletRequest, HttpServletResponse) - Method in class edu.rutgers.md.web.SaveCsvServlet
 
SessionData - Class in edu.rutgers.md.web
A single instance of this class is associated with a particular session of the web application.
setCode(String) - Method in class edu.rutgers.md.sql.Expert
 
setEncEsPass(String) - Method in class edu.rutgers.md.sql.ExtendedSession
 
setEs(Set<ExtendedSession>) - Method in class edu.rutgers.md.sql.User
 
setEsEnd(Date) - Method in class edu.rutgers.md.sql.ExtendedSession
 
setExperts(List<Expert>) - Method in class edu.rutgers.md.sql.Survey
 
setId(int) - Method in class edu.rutgers.md.sql.Survey
 
setK(int) - Method in class edu.rutgers.md.sql.Survey
 
setLevel(Level) - Static method in class edu.rutgers.md.engine.Logging
 
setName(String) - Method in class edu.rutgers.md.sql.Expert
 
setName(String) - Method in class edu.rutgers.md.sql.Survey
 
setObservables(Observables) - Method in class edu.rutgers.md.engine.AllPredictions
Sets the observable values (aka "ground truth") in an object that already contains the experts' predictions.
setPeriodCsv(String) - Method in class edu.rutgers.md.sql.Survey
 
setPeriodNames(String[]) - Method in class edu.rutgers.md.engine.AllPredictions
Sets the period names for the observation periods.
setResponse(int, String[]) - Method in class edu.rutgers.md.sql.Expert
 
setResponse1(String) - Method in class edu.rutgers.md.sql.Expert
 
setResponse2(String) - Method in class edu.rutgers.md.sql.Expert
 
setRole(String) - Method in class edu.rutgers.md.sql.Role
 
setRole(Role.Name) - Method in class edu.rutgers.md.sql.Role
 
setStatus(Survey.Status) - Method in class edu.rutgers.md.sql.Survey
 
setUser_name(String) - Method in class edu.rutgers.md.sql.User
 
setUser_pass(String) - Method in class edu.rutgers.md.sql.User
 
setWeighting(boolean, double) - Method in class edu.rutgers.md.engine.AllPredictions
Sets the parameters associated with the mapping of the experts' NJSD values to their weights.
sid - Variable in class edu.rutgers.md.web.DemoResultsBase
 
splitCSV(String) - Static method in class edu.rutgers.md.engine.ImportCSV
Converts a single string (such as a line of CSV file) into an array of strings.
sqlDf - Static variable in class edu.rutgers.md.format.Reflect
 
stage - Variable in class edu.rutgers.md.web.DemoSessionData
 
STATUS - Static variable in class edu.rutgers.md.web.SaveSurvey
 
storeUserName(String) - Method in class edu.rutgers.md.web.SessionData
Saves the user name (received from the [validated] login form, or recovered via a persistent cookie) into the session's memory.
SUBMIT - Static variable in class edu.rutgers.md.web.DemoResultsBase.Names
 
submit(String) - Static method in class edu.rutgers.md.web.Tools
 
SUBMIT_BOX - Static variable in class edu.rutgers.md.web.DemoResultsBase.Buttons
 
SUBMIT_FILE - Static variable in class edu.rutgers.md.web.DemoResultsBase.Buttons
 
submitButton() - Method in class edu.rutgers.md.web.Response
 
Survey - Class in edu.rutgers.md.sql
A Survey object contains all information pertaining to a single survey.
Survey() - Constructor for class edu.rutgers.md.sql.Survey
Dummy constructor, just because OpenJPA requires it
Survey.Status - Enum in edu.rutgers.md.sql
Stages in a survey's life cycle
SURVEY_ID - Static variable in class edu.rutgers.md.web.DemoResultsBase.Names
 
surveyLink() - Method in class edu.rutgers.md.web.DemoResultsBase
 
SurveyResultsBase - Class in edu.rutgers.md.web
The common parent of several back end structures for various pages dealing with survey management.
SurveyResultsBase(HttpServletRequest, HttpServletResponse) - Constructor for class edu.rutgers.md.web.SurveyResultsBase
 

T

Test1 - Class in edu.rutgers.md.test
This is a simple command-line application that demonstrates some ways of using the edu.rutgers.md.engine API.
Test1() - Constructor for class edu.rutgers.md.test.Test1
 
timeAndAgo(Date) - Static method in class edu.rutgers.md.format.Util
 
to4cells() - Method in class edu.rutgers.md.sql.User
HTML: name, details, roles, enabled ; personal name, email
toCells() - Method in class edu.rutgers.md.sql.Survey
Generates a sequence of HTML TD elements containing the basic information about the survey.
toCSV(String[]) - Static method in class edu.rutgers.md.sql.Survey
Converts an array of values into a single string in CSV format.
today() - Static method in class edu.rutgers.md.format.Util
 
Tools - Class in edu.rutgers.md.web
Various methods related to generating HTML forms and their components, and processing requests sent by the web browser when those forms are filled
Tools() - Constructor for class edu.rutgers.md.web.Tools
 
toString() - Method in class edu.rutgers.md.engine.AllPredictions
Prints a more or less pretty human-readable report
toString() - Method in class edu.rutgers.md.engine.AvgPrediction
 
toString(boolean, boolean) - Method in class edu.rutgers.md.engine.AvgPrediction
 
toString() - Method in class edu.rutgers.md.engine.Observables
 
toString() - Method in class edu.rutgers.md.engine.Prediction
 
toString(boolean, boolean) - Method in class edu.rutgers.md.engine.Prediction
 
toString() - Method in class edu.rutgers.md.sql.Expert
 
toString() - Method in class edu.rutgers.md.sql.Role
 
toString() - Method in class edu.rutgers.md.sql.User
Link to the matching EE4User object, when applicable.
toString() - Method in class edu.rutgers.md.web.SessionData
 
toString1() - Method in class edu.rutgers.md.engine.AllPredictions
Converts all experts' data into a string that consists of multiple lines of text, each one representing one expert's predictions in the CSV format.
toString1() - Method in class edu.rutgers.md.engine.Prediction
Prints out the content as a String in CSV format.
TRUE_CAPTURE - Static variable in class edu.rutgers.md.web.DemoResultsBase.Names
 
trueCaptureBox() - Method in class edu.rutgers.md.web.DemoResultsBase
Creates an HTML snippet with the entry box for the "ground truth" data

U

User - Class in edu.rutgers.md.sql
A User entry contains basic information about one user of the system.
User() - Constructor for class edu.rutgers.md.sql.User
 
user - Variable in class edu.rutgers.md.web.ResultsBase
User name logged in this session
userAgent - Variable in class edu.rutgers.md.web.ResultsBase
 
useResponses - Variable in class edu.rutgers.md.web.DemoResultsBase
It's true if the JSP page is using the data coming from the SQL database (a Survey object), as opposed to data hand-entered via the demo form.
Util - Class in edu.rutgers.md.format
A bunch of auxiliary methods, mostly used to help with formatting printable data.
Util() - Constructor for class edu.rutgers.md.format.Util
 

V

validate(EntityManager, StringBuffer) - Method in class edu.rutgers.md.format.OurTable
Validates a recently created entry, before it has been put into the database.
validate(EntityManager, StringBuffer) - Method in class edu.rutgers.md.sql.User
 
validRoundExt(int) - Static method in class edu.rutgers.md.sql.Expert
Can the argument be interpreted as a valid round number? (Either an actual round, or LATEST_ROUND)
valueOf(String) - Static method in enum edu.rutgers.md.sql.Role.Name
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum edu.rutgers.md.sql.Survey.Status
Returns the enum constant of this type with the specified name.
values() - Static method in enum edu.rutgers.md.sql.Role.Name
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum edu.rutgers.md.sql.Survey.Status
Returns an array containing the constants of this enum type, in the order they are declared.
version - Static variable in class edu.rutgers.md.engine.Main
Version number

W

warning(String) - Static method in class edu.rutgers.md.engine.Logging
 
WebException - Exception in edu.rutgers.md.web
 
WebException(String) - Constructor for exception edu.rutgers.md.web.WebException
 
weightedAvg(Vector<Prediction>) - Static method in class edu.rutgers.md.engine.Prediction
Computes the weighted average of all predictions.
whichRound() - Method in class edu.rutgers.md.web.DemoResultsBase
 
A B C D E F G H I J K L M N O P Q R S T U V W 
Skip navigation links
Missed Detections Demo ver. 0.2.8