|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.jetspeed.portal.portlets.AbstractPortlet
org.openscience.nmrshiftdb.portlets.PredictPortlet
public class PredictPortlet
This is the portlet handling predictions spectra/molecules...
Field Summary | |
---|---|
private static libsvm.svm_model[] |
model
|
Fields inherited from class org.apache.jetspeed.portal.portlets.AbstractPortlet |
---|
content |
Fields inherited from interface org.apache.jetspeed.portal.Portlet |
---|
PORTLET_MAXIMIZED, PORTLET_MINIMIZED, PORTLET_NORMAL |
Constructor Summary | |
---|---|
PredictPortlet()
|
Method Summary | |
---|---|
private static void |
doWithh(org.openscience.cdk.interfaces.IMolecule mol,
org.apache.turbine.util.RunData runData)
Sets molh as an attribute into the session, key mol, and saturates, normalizes, adds hs, places these. |
org.apache.ecs.ConcreteElement |
getContent(org.apache.turbine.util.RunData runData)
Gets the content to be displayed in the portlet as HTML |
static org.apache.velocity.VelocityContext |
getContext(javax.servlet.http.HttpSession session,
boolean calculated,
boolean measured,
java.lang.StringBuffer messages,
java.lang.Object servconorrundata,
javax.servlet.http.HttpServletRequest request,
boolean print)
Builds a context for the predict page. |
private java.lang.String |
predictPage(java.lang.StringBuffer messages,
org.apache.turbine.util.RunData runData,
javax.servlet.http.HttpSession session)
Puts together the prediction page |
Methods inherited from class org.apache.jetspeed.portal.portlets.AbstractPortlet |
---|
allowClose, allowCustomize, allowInfo, allowMaximize, allowMinimize, allowPrintFriendly, allowView, clearContent, getAllowEdit, getAllowMaximize, getAllowView, getAttribute, getContent, getContent, getCreationTime, getDescription, getDescription, getExpirationMillis, getExpire, getHandle, getHandle, getID, getImage, getImage, getInstance, getName, getPortletConfig, getTitle, getTitle, init, isCacheable, isClosed, isMinimized, isShowTitleBar, providesCustomization, refresh, setAttribute, setCacheable, setCachedObject, setClosed, setContent, setContent, setContent, setCreationTime, setDescription, setExpirationMillis, setHandle, setID, setImage, setMinimized, setName, setPortletConfig, setTitle, setTitle, supportsType |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static libsvm.svm_model[] model
Constructor Detail |
---|
public PredictPortlet()
Method Detail |
---|
public static org.apache.velocity.VelocityContext getContext(javax.servlet.http.HttpSession session, boolean calculated, boolean measured, java.lang.StringBuffer messages, java.lang.Object servconorrundata, javax.servlet.http.HttpServletRequest request, boolean print) throws java.io.IOException, java.io.FileNotFoundException, java.lang.Exception
session
- The current session.calculated
- Use calculated.measured
- Use measured.messages
- Messages to display.servconorrundata
- Description of Parameterrequest
- Description of Parameterprint
- Description of Parameter
java.io.IOException
- Description of Exception.
java.io.FileNotFoundException
- Description of Exception.
java.lang.Exception
- Description of Exceptionprivate static void doWithh(org.openscience.cdk.interfaces.IMolecule mol, org.apache.turbine.util.RunData runData) throws java.lang.Exception
molh
- The molecule to treat.runData
- The current runData
java.lang.Exception
- Description of Exceptionpublic org.apache.ecs.ConcreteElement getContent(org.apache.turbine.util.RunData runData)
getContent
in interface org.apache.jetspeed.portal.Portlet
getContent
in class org.apache.jetspeed.portal.portlets.AbstractPortlet
runData
- Created by turbine
private java.lang.String predictPage(java.lang.StringBuffer messages, org.apache.turbine.util.RunData runData, javax.servlet.http.HttpSession session) throws java.lang.Exception
messages
- Collected messages for the userrunData
- The RunData object from turbinesession
- The current session
java.lang.Exception
- Description of Exception
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |