|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsnl.ccss.jpowersystem.PowerSystemFactory
public class PowerSystemFactory
Factory object for vending standard power system objects. This factory is ultimately used by parsers that exist in this library to create new power system objects as they parse data files. Paths to actual user-defined power system objects to be created are passed to the factory methods and as long as the given objects implement the appropriate power system interfaces new instances of the given objects will be created.
Constructor Summary | |
---|---|
PowerSystemFactory()
|
Method Summary | |
---|---|
static Branch |
createNewBranch(java.lang.String branchClassName)
Creates and returns user-defined implementation of a branch object. |
static Bus |
createNewBus(java.lang.String busClassName)
Creates and returns user-defined implementation of a bus object. |
static BusDevice |
createNewBusDevice(java.lang.String busDeviceClassName)
Creates and returns user-defined implementation of a bus device object. |
static PowerSystem |
createNewPowerSystem(java.lang.String powerSystemClassName)
Creates and returns user-defined implementation of a power system object. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PowerSystemFactory()
Method Detail |
---|
public static PowerSystem createNewPowerSystem(java.lang.String powerSystemClassName) throws java.lang.Exception
powerSystemClassName
- Path to user-defined power system object
java.lang.Exception
- if user-defined object does not extend PowerSystempublic static Bus createNewBus(java.lang.String busClassName) throws java.lang.Exception
busClassName
- Path to user-defined bus object
java.lang.Exception
- if user-defined object does not implement Buspublic static Branch createNewBranch(java.lang.String branchClassName) throws java.lang.Exception
branchClassName
- Path to user-defined branch object
java.lang.Exception
- if user-defined object does not implement Branchpublic static BusDevice createNewBusDevice(java.lang.String busDeviceClassName) throws java.lang.Exception
busDeviceClassName
- Path to user-defined bus device object
java.lang.Exception
- if user-defined object does not implement BusDevice
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |