|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectecologylab.generic.Debug
ecologylab.collections.FloatSetElement
public class FloatSetElement
A FloatWeightSet element. Basic implementation of SetElement for cases when you can inherit from here
| Field Summary | |
|---|---|
static int |
NOT_A_MEMBER
|
float |
weight
Cached version of weight. |
| Constructor Summary | |
|---|---|
FloatSetElement()
|
|
FloatSetElement(float initial)
|
|
| Method Summary | |
|---|---|
void |
clear()
Only for use by FloatWeightSet.clear(), and delete. |
void |
delaySetWeight(float newWeight)
Change the weight of the element, without propogating the new weight into the data structure. |
void |
delete()
Delete in the most expedient manner possible. |
boolean |
delete(int recompute)
Delete the element from the set. |
void |
deleteHook()
Callback that happens at the end of a delete, and when an element gets pruned. |
boolean |
filteredOut()
This can be overridden to exclude elements from selection while keeping them in the set. |
int |
getIndex()
|
float |
getWeight()
|
void |
insertHook()
A callback method for when an element is inserted into a floatWeightSet. |
boolean |
isInSet()
|
boolean |
recycle()
Free resources associated w this element. |
protected BasicFloatSet |
set()
The set object that this element is part of, or null if its not a member of any set. |
void |
setIndex(int newIndex)
|
void |
setSet(BasicFloatSet setArg)
|
void |
setWeight(float newWeight)
Set the weight slot. |
java.lang.String |
toString()
|
| Methods inherited from class ecologylab.generic.Debug |
|---|
classSimpleName, closeLoggingFile, debug, debug, debug, debug, debugA, debugA, debugA, debugI, debugI, debugI, error, error, getClassName, getClassName, getInteractive, getPackageName, getPackageName, getPackageName, initialize, level, level, level, logToFile, print, print, println, println, println, println, println, println, printlnA, printlnA, printlnA, printlnI, printlnI, printlnI, printlnI, setLoggingFile, show, show, superString, toggleInteractive, toString, warning, warning, weird, weird |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int NOT_A_MEMBER
public float weight
| Constructor Detail |
|---|
public FloatSetElement()
public FloatSetElement(float initial)
| Method Detail |
|---|
public float getWeight()
public boolean filteredOut()
public int getIndex()
public void setIndex(int newIndex)
public void setSet(BasicFloatSet setArg)
public boolean isInSet()
public final void delete()
public final boolean delete(int recompute)
recompute - -1 for absolutely no recomputation of the set's internal structures.
0 for recompute upwards from el
1 for recompute all
public void deleteHook()
public void insertHook()
public void clear()
public void delaySetWeight(float newWeight)
public void setWeight(float newWeight)
public java.lang.String toString()
toString in class Debugpublic boolean recycle()
protected BasicFloatSet set()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||