public class ResultantForceBuilder extends Object
ForceModel
objects to add their RoleOfForce.PRINCIPAL
and
RoleOfForce.PERTURBATION
forces to a list of forces in a resultant force.Constructor and Description |
---|
ResultantForceBuilder()
Initializes a new instance.
|
Modifier and Type | Method and Description |
---|---|
void |
addForce(ForceEvaluator force)
|
ArrayList<ForceEvaluator> |
getPerturbationForces()
Gets a list of forces acting as
RoleOfForce.PERTURBATION forces in the resultant. |
ArrayList<ForceEvaluator> |
getPrincipalForces()
Gets a list of forces acting as
RoleOfForce.PRINCIPAL forces in the resultant. |
public final ArrayList<ForceEvaluator> getPrincipalForces()
RoleOfForce.PRINCIPAL
forces in the resultant.
A "principal" force is one which dominates the overall resultant and is usually simple to compute.public final ArrayList<ForceEvaluator> getPerturbationForces()
RoleOfForce.PERTURBATION
forces in the resultant.
A "perturbation" force is one which represents a small addition to the overall resultant but
is usually expensive to compute.public final void addForce(@Nonnull ForceEvaluator force)
PrincipalForces
(get
) or the
PerturbationForces
(get
) based on its role
.force
- The force to add.