|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--ants.core.Thing
|
+--ants.move.core.models.bars.BarsModel
Implementation of Bars Model.
| Constructor Summary | |
BarsModel()
Sole & void constructor. |
|
| Method Summary | |
void |
addBarsListener(BarsListener bList)
|
void |
barsBell(java.lang.String name)
Remotely sends Bell or Bell- values. |
void |
barsRampRand(java.lang.String name)
Remotely sends Ramp or Random values. |
void |
destroy()
Finalization method for CSCW components in the ANTS container. |
float |
getCurrentValue(int i,
int j)
Gets current value of (i, j) bar. |
java.lang.String |
getType()
Facility method for obtaining extra information about a specific bean. |
void |
init()
Initialization method for CSCW components in the ANTS container. |
void |
propertyChange(ants.core.PropertyChangeEvent evt)
Method triggered in response to a property change. |
void |
readFile(java.lang.String file)
Read data from a file. |
void |
removeBarsListener(BarsListener bList)
|
void |
setCurrentValue(int i,
int j,
float value)
|
void |
setValue(java.lang.String values)
Remotely sends bars values. |
float |
to2d(float n)
Trims a float to two decimal digits. |
| Methods inherited from class ants.core.Thing |
addPropertyChangeListener, addTokenToProperty, eventArrived, getContext, getDescription, getIndexedProperty, getIndexedProperty, getIndexedPropertyNames, getIndexedPropertySize, getName, getPlace, getProperty, getPropertyNames, getThingGateway, getThingId, incrementProperty, init, removePropertyChangeListener, setProperty, triggerEvent |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public BarsModel()
params - Noneexceptions - No exceptions thrown| Method Detail |
public void init()
ants.core.Thinginit in class ants.core.Thingpublic void addBarsListener(BarsListener bList)
public void removeBarsListener(BarsListener bList)
public void setValue(java.lang.String values)
values - Bars valuesexceptions - No exceptions thrownpublic void barsRampRand(java.lang.String name)
name - "Ramp" or "Random"exceptions - No exceptions thrownpublic float to2d(float n)
n - Number to trimexceptions - No exceptions thrownpublic void barsBell(java.lang.String name)
name - "Bell" or "Bell-"exceptions - No exceptions thrownpublic void readFile(java.lang.String file)
file - File containing bars dataexceptions - No exceptions thrownpublic void propertyChange(ants.core.PropertyChangeEvent evt)
ants.core.PropertyChangeListenerpropertyChange in interface ants.core.PropertyChangeListenerants.core.PropertyChangeListener
public void setCurrentValue(int i,
int j,
float value)
public float getCurrentValue(int i,
int j)
i - Columnj - Rowexceptions - No exceptions thrownpublic java.lang.String getType()
ants.core.ModelgetType in class ants.core.Thingants.core.Modelpublic void destroy()
ants.core.Thingdestroy in class ants.core.Thing
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||