|
||||||||||
| 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.voter.VoterThing
| Constructor Summary | |
VoterThing()
|
|
| Method Summary | |
boolean |
canIVote(java.lang.String user)
|
void |
destroy()
Finalization method for CSCW components in the ANTS container. |
int |
getNo()
|
java.lang.String |
getTopic()
|
int |
getUnknown()
|
java.lang.String |
getUsersWhoHaveVotedList()
|
int |
getYes()
|
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 |
setModel(VoterModel m)
|
void |
voteNo()
|
void |
voteUnknown()
|
void |
voteYes()
|
| Methods inherited from class ants.core.Thing |
addPropertyChangeListener, addTokenToProperty, eventArrived, getContext, getDescription, getIndexedProperty, getIndexedProperty, getIndexedPropertyNames, getIndexedPropertySize, getName, getPlace, getProperty, getPropertyNames, getThingGateway, getThingId, getType, 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 VoterThing()
| Method Detail |
public void init()
ants.core.Thinginit in class ants.core.Thingpublic void setModel(VoterModel m)
public java.lang.String getUsersWhoHaveVotedList()
public boolean canIVote(java.lang.String user)
public int getYes()
public int getNo()
public int getUnknown()
public java.lang.String getTopic()
public void voteYes()
public void voteNo()
public void voteUnknown()
public void propertyChange(ants.core.PropertyChangeEvent evt)
ants.core.PropertyChangeListenerpropertyChange in interface ants.core.PropertyChangeListenerants.core.PropertyChangeListenerpublic 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 | |||||||||