java.lang.Object
de.grogra.persistence.ShareableBase
de.grogra.blocks.arrangeBlock.ShareableProbabilityArrangeBase
de.grogra.blocks.arrangeBlock.PascalProbability
- All Implemented Interfaces:
ProbabilityArrangeMethod
,Manageable
,Shareable
public class PascalProbability
extends ShareableProbabilityArrangeBase
implements ProbabilityArrangeMethod
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionstatic final PascalProbability.Type
static final SCOType.Field
static final SCOType.Field
Fields inherited from class de.grogra.blocks.arrangeBlock.ShareableProbabilityArrangeBase
probabilityValues, source
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
float
getProb()
int
void
setProb
(float value) void
setSuccesses
(int value) Methods inherited from class de.grogra.blocks.arrangeBlock.ShareableProbabilityArrangeBase
getProbabilityValues
Methods inherited from class de.grogra.persistence.ShareableBase
addReference, appendReferencesTo, fieldModified, getProvider, getStamp, initProvider, manageableReadResolve, manageableWriteReplace, removeReference
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface de.grogra.blocks.arrangeBlock.ProbabilityArrangeMethod
getProbabilityValues
-
Field Details
-
$TYPE
-
prob$FIELD
-
successes$FIELD
-
-
Constructor Details
-
PascalProbability
public PascalProbability()
-
-
Method Details
-
calculate
public void calculate()- Specified by:
calculate
in classShareableProbabilityArrangeBase
-
getManageableType
- Specified by:
getManageableType
in interfaceManageable
-
getSuccesses
public int getSuccesses() -
setSuccesses
public void setSuccesses(int value) -
getProb
public float getProb() -
setProb
public void setProb(float value)
-