public class Particle
extends java.lang.Object
Red (cxh) |
Red (cxh) |
Constructor and Description |
---|
Particle(int size)
Construct a Particle.
|
Particle(Particle p)
Construct a Particle.
|
Modifier and Type | Method and Description |
---|---|
boolean |
adjustWeight(double w)
Adjust the weight.
|
int |
getSize()
Return the size of the partile.
|
java.util.List<java.lang.Double> |
getValue()
Return the value.
|
double |
getWeight()
Return the weight.
|
void |
setValue(java.util.LinkedList<java.lang.Double> l)
Set the value.
|
void |
setWeight(double weight)
Set the weight.
|
public Particle(int size)
size
- The size of the particlepublic Particle(Particle p)
p
- The particlepublic boolean adjustWeight(double w)
w
- The weight.public int getSize()
public java.util.List<java.lang.Double> getValue()
setValue(LinkedList)
public double getWeight()
setWeight(double)
public void setValue(java.util.LinkedList<java.lang.Double> l)
l
- The valuegetValue()
public void setWeight(double weight)
weight
- the weight.getWeight()