p3j.pppm.parameters
Class ParameterAssignmentSet

java.lang.Object
  extended by p3j.pppm.parameters.ParameterAssignmentSet
All Implemented Interfaces:
Serializable

public class ParameterAssignmentSet
extends Object
implements Serializable

Stores a set of parameter assignments. This is a somewhat artificial class that is solely required for a clean object-relational mapping. Created: August 18, 2008

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

Constructor Summary
ParameterAssignmentSet()
           
 
Method Summary
 void add(ParameterAssignment paramAssignment)
          Adds a parameter assignment to the set.
 List<GeneratorError> adjustProbability()
          Adjusts probability using the RandomNumberChecks singleton.
 Set<ParameterAssignment> getAssignments()
           
 int getID()
           
 double getProbabilitySum()
          Sums up the probabilities of all assignments.
 void remove(ParameterAssignment paramAssignment)
          Removes the parameter assignment from the set.
 void setAssignments(Set<ParameterAssignment> assignments)
           
 void setID(int uniqueID)
           
 int size()
          Get size of the set.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ParameterAssignmentSet

public ParameterAssignmentSet()
Method Detail

getProbabilitySum

public double getProbabilitySum()
Sums up the probabilities of all assignments.

Returns:
sum of assignment probabilities

adjustProbability

public List<GeneratorError> adjustProbability()
Adjusts probability using the RandomNumberChecks singleton.

Returns:
error log

getAssignments

public Set<ParameterAssignment> getAssignments()

setAssignments

public void setAssignments(Set<ParameterAssignment> assignments)

getID

public int getID()

setID

public void setID(int uniqueID)

add

public void add(ParameterAssignment paramAssignment)
Adds a parameter assignment to the set.

Parameters:
paramAssignment - the parameter assignment to be added

remove

public void remove(ParameterAssignment paramAssignment)
Removes the parameter assignment from the set.

Parameters:
paramAssignment - the parameter assignment to be removed

size

public int size()
Get size of the set.

Returns:
the size of the set


Copyright © 2012. All Rights Reserved.