p3j.experiment.results
Class ResultsOfTrial

java.lang.Object
  extended by p3j.experiment.results.ResultsOfTrial
All Implemented Interfaces:
Serializable

public class ResultsOfTrial
extends Object
implements Serializable

This class is intended to represent the results of a single trial as stored in the database.

Author:
Christina Bohk, Roland Ewald
See Also:
Serialized Form

Constructor Summary
ResultsOfTrial()
          Empty constructor (for Bean compatibility).
ResultsOfTrial(IProjectionModel projectionModel, ExecutionSummary execSummary)
          Instantiates new results for a trial.
 
Method Summary
 Map<ParameterInstance,ParameterAssignment> getAssignment()
           
 double getAssignmentProbability()
           
 List<BasicResults> getEmigrantResults()
           
 int getID()
           
 List<BasicResults> getImmigrantResults()
           
 List<BasicResults> getNativeResults()
           
 BasicResults getNativesResults()
          Gets the results of the natives.
 ProjectionModel getProjection()
           
 double getSetCombinationProbability()
           
 void setAssignment(Map<ParameterInstance,ParameterAssignment> assignment)
           
 void setAssignmentProbability(double assignmentProbability)
           
 void setEmigrantResults(List<BasicResults> emigrantResults)
           
 void setID(int id)
           
 void setImmigrantResults(List<BasicResults> immigrantResults)
           
 void setNativeResults(List<BasicResults> nativeResults)
           
 void setProjection(ProjectionModel projection)
           
 void setSetCombinationProbability(double setCombinationProbability)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResultsOfTrial

public ResultsOfTrial()
Empty constructor (for Bean compatibility).


ResultsOfTrial

public ResultsOfTrial(IProjectionModel projectionModel,
                      ExecutionSummary execSummary)
Instantiates new results for a trial.

Parameters:
projectionModel - the current projection model
execSummary - the execution summary
Method Detail

getID

public int getID()

setID

public void setID(int id)

getProjection

public ProjectionModel getProjection()

setProjection

public void setProjection(ProjectionModel projection)

getAssignment

public Map<ParameterInstance,ParameterAssignment> getAssignment()

setAssignment

public void setAssignment(Map<ParameterInstance,ParameterAssignment> assignment)

getNativeResults

public List<BasicResults> getNativeResults()

getNativesResults

public BasicResults getNativesResults()
Gets the results of the natives. Checks that there is exactly one result set for the natives.

Returns:
the results of the natives

setNativeResults

public void setNativeResults(List<BasicResults> nativeResults)

getAssignmentProbability

public double getAssignmentProbability()

setAssignmentProbability

public void setAssignmentProbability(double assignmentProbability)

getImmigrantResults

public List<BasicResults> getImmigrantResults()

setImmigrantResults

public void setImmigrantResults(List<BasicResults> immigrantResults)

getEmigrantResults

public List<BasicResults> getEmigrantResults()

setEmigrantResults

public void setEmigrantResults(List<BasicResults> emigrantResults)

getSetCombinationProbability

public double getSetCombinationProbability()

setSetCombinationProbability

public void setSetCombinationProbability(double setCombinationProbability)


Copyright © 2012. All Rights Reserved.