public class PowerSvcConnector
extends Composite
Constructor and Description |
---|
PowerSvcConnector()
Create a new connector to the power service
|
Modifier and Type | Method and Description |
---|---|
void |
getMatrices(StudyDesign studyDesign,
RequestCallback callback)
Send a request to the power service to calculate power
|
void |
getMatricesAsHTML(StudyDesign studyDesign)
Send a form request to the power service to display the
matrices associated with the study design.
|
void |
getMatricesAsHTML(StudyDesign studyDesign,
RequestCallback callback)
Send a request to the power service to calculate power
|
void |
getPower(StudyDesign studyDesign,
RequestCallback callback)
Send a request to the power service to calculate power
|
void |
getSampleSize(StudyDesign studyDesign,
RequestCallback callback)
Send a request to the power service to calculate power
|
List<NamedMatrix> |
parseMatrixList(String entity)
Parse an entity body into a list of power matrices
|
List<PowerResult> |
parsePowerResultList(String entity)
Parse an entity body into a power result list
|
public PowerSvcConnector()
public void getPower(StudyDesign studyDesign, RequestCallback callback) throws RequestException
studyDesign
- The study design objectcallback
- handler for AJAX request to power serviceRequestException
public void getSampleSize(StudyDesign studyDesign, RequestCallback callback) throws RequestException
studyDesign
- The study design objectcallback
- handler for AJAX request to power serviceRequestException
public void getMatrices(StudyDesign studyDesign, RequestCallback callback) throws RequestException
studyDesign
- The study design objectcallback
- handler for AJAX request to power serviceRequestException
public void getMatricesAsHTML(StudyDesign studyDesign, RequestCallback callback) throws RequestException
studyDesign
- The study design objectcallback
- handler for AJAX request to power serviceRequestException
public void getMatricesAsHTML(StudyDesign studyDesign)
studyDesign
- The study design objectpublic List<PowerResult> parsePowerResultList(String entity)
entity
- JSON encoded entity bodyUniversity of Colorado Denver, Department of Biostatistics and Informatics