ants.move.core.views.voter
Class VoterView
java.lang.Object
|
+--ants.move.core.views.DynamicObject
|
+--ants.move.core.views.voter.VoterView
- All Implemented Interfaces:
- ViewInterface, VoterListener, VRMLEventListener
- public class VoterView
- extends DynamicObject
- implements VoterListener, ViewInterface, VRMLEventListener
Implementation of DynamicObject VRML View: Voter.
- Version:
- 1.00 Build 2001
- Author:
- Carles Pairot (cpairot@tinet.org), Oriol Montalà (omontala@tinet.org)
Constructor Summary |
VoterView()
Sole & void constructor. |
Methods inherited from class ants.move.core.views.DynamicObject |
addListener, catchNode, getBrowser, getName, getNode, getVRMLNodeName, getZone, getZoneName, printMsg, setaddChValue, setaddChValue, setBrowser, setChNodes, setName, setreChValue, setreChValue, setVRMLNodeName, setZoneName |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
VoterView
public VoterView()
- Sole & void constructor. Used when newInstance() method is called.
- Parameters:
params
- None- Throws:
exceptions
- No exceptions thrown
init
public void init(java.util.Hashtable ht)
- Initializes necessary parameters to use this class.
- Specified by:
init
in interface ViewInterface
- Returns:
- No return value
- Throws:
exceptions
- No exceptions thrown
loadVRMLRepresentation
public void loadVRMLRepresentation()
checkThing
public boolean checkThing(java.lang.String key)
yes
public void yes(int value,
boolean updateOthers)
- Specified by:
yes
in interface VoterListener
no
public void no(int value,
boolean updateOthers)
- Specified by:
no
in interface VoterListener
unknown
public void unknown(int value,
boolean updateOthers)
- Specified by:
unknown
in interface VoterListener
setVoterThing
public void setVoterThing(VoterThing v)
- Specified by:
setVoterThing
in interface VoterListener
eventPerformed
public void eventPerformed()
- Description copied from interface:
VRMLEventListener
- Executed when a VRML Event is received.
- Specified by:
eventPerformed
in interface VRMLEventListener
- Overrides:
eventPerformed
in class DynamicObject
- Following copied from interface:
ants.move.core.views.VRMLEventListener
- Parameters:
params
- None- Returns:
- No return value
- Throws:
exceptions
- No exceptions thrown
getModel
public VoterModel getModel()
Developers: Oriol Montala, Carles Pairot, Francesc Pinas2000 - 2002
Departament d'Enginyeria Informatica i Matematiques
Escola Tecnica Superior d'Enginyeria
Universitat Rovira i Virgili