|
jAER project on SourceForge | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.jaer.biasgen.PotArray
public class PotArray
A collection of Pot's that belong to a common device, e.g. a chip or a board. This class allows common operations on the Pots and groups the Pots together.
| Field Summary | |
|---|---|
protected java.util.ArrayList<Pot> |
pots
|
| Constructor Summary | |
|---|---|
PotArray(Biasgen biasgen)
Creates a new instance of IPotArray |
|
| Method Summary | |
|---|---|
boolean |
addPot(Pot pot)
add a pot to the end of the list. |
void |
exportPreferences(java.io.OutputStream os)
export the prefered values to an OutputStream |
int |
getNumPots()
gets the number of ipots in this array |
Pot |
getPotByName(java.lang.String name)
Get an Pot by name. |
Pot |
getPotByNumber(int number)
Get an Pot by number in PotArray. |
java.util.ArrayList<Pot> |
getPots()
|
void |
importPreferences(java.io.InputStream is)
import prefs from an InputStream |
void |
loadPreferences()
load the stored preferred values -- e.g. |
void |
setAllToBitValue(int val)
sets all pots to the same value. |
void |
setPots(java.util.ArrayList<Pot> pots)
|
void |
storePreferences()
Flushes the preferred values to the Preferences |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected java.util.ArrayList<Pot> pots
| Constructor Detail |
|---|
public PotArray(Biasgen biasgen)
| Method Detail |
|---|
public java.lang.String toString()
toString in class java.lang.Objectpublic void exportPreferences(java.io.OutputStream os)
BiasgenPreferences
exportPreferences in interface BiasgenPreferencespublic void importPreferences(java.io.InputStream is)
BiasgenPreferences
importPreferences in interface BiasgenPreferencespublic void loadPreferences()
BiasgenPreferences
loadPreferences in interface BiasgenPreferencespublic void storePreferences()
storePreferences in interface BiasgenPreferencespublic boolean addPot(Pot pot)
pot - an Pot
public Pot getPotByName(java.lang.String name)
name - name of pot as assigned in Pot
public void setAllToBitValue(int val)
val - the bitValuepublic Pot getPotByNumber(int number)
number - name of pot as assigned in Pot
public int getNumPots()
public java.util.ArrayList<Pot> getPots()
public void setPots(java.util.ArrayList<Pot> pots)
|
jAER project on SourceForge | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||