|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsnl.ccss.jpowersystem.AbstractBusDevice
public abstract class AbstractBusDevice
This is an abstract implementation of the BusDevice interface that can be extended by objects representing bus devices in a power sytem. It implements all the required methods in a minimal fashion so as to make it possible to add the object to a power system.
Constructor Summary | |
---|---|
AbstractBusDevice()
|
Method Summary | |
---|---|
void |
addTo(Bus bus)
This method connects this bus device to the given Bus object, with the given bus being set as the bus this device belongs to. |
void |
remove()
This method disconnects this bus device from the known Bus object, the bus this device belongs to now being set to null . |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractBusDevice()
Method Detail |
---|
public void addTo(Bus bus)
addTo
in interface BusDevice
bus
- Bus object to attach this bus device topublic void remove()
null
. It also calls the appropriate bus
method to remove this bus device from the bus.
remove
in interface BusDevice
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |