* Notifies all the ComputerPartEventListeners on a change in the memory by creating
* a MemoryEvent (with the changed address and value) and sending it using the
* memoryChanged method to all the listeners.
*/
public void notifyListeners(int address, short value) {
ComputerPartEvent event = new ComputerPartEvent(this,address,value);
for (int i=0;i<listeners.size();i++) {
((ComputerPartEventListener)listeners.elementAt(i)).valueChanged(event);
}
}