Class ACVoltageSource

java.lang.Object
   |
   +----Element
           |
           +----PowerSourceElement
                   |
                   +----VoltageSource
                           |
                           +----ConstVoltageElement
                                   |
                                   +----ACVoltageSource

public class ACVoltageSource
extends ConstVoltageElement
AC voltage source


Constructor Index

 o ACVoltageSource()
Constructs default ACVoltageSource.
 o ACVoltageSource(ACVoltageSource)
Constructs new ACVoltageSource from given one.

Method Index

 o getCurrent(int, double)
Main function for calculations.
 o getMaxVoltage()
This method is called to get maximal voltage for power element.
 o getMinVoltage()
This method is called to get minimal voltage for power element.
 o getProperties()
This method is called to get values of element.
 o getTimePeriod()
 o getTip(int)
Returns tool tip for this element.
 o getVoltage(double, double)
Returns voltage in given time.
 o parseString(String)
This method is called to load new values to element from string.
 o setProperties(String[])
This method is called to set new values to element.

Constructors

 o ACVoltageSource
 public ACVoltageSource()
Constructs default ACVoltageSource.

 o ACVoltageSource
 public ACVoltageSource(ACVoltageSource e)
Constructs new ACVoltageSource from given one.

Parameters:
e - ACVoltageSource to copy.

Methods

 o getVoltage
 public double getVoltage(double time,
                          double timeStep)
Returns voltage in given time.

Overrides:
getVoltage in class VoltageSource
 o getTimePeriod
 public double getTimePeriod()
 o getCurrent
 public Polynom getCurrent(int dir,
                           double timeStep)
Main function for calculations.

Overrides:
getCurrent in class Element
 o getProperties
 public Object[] getProperties()
This method is called to get values of element. Six Objects for each parameter:

Returns:
array of Objects.
Overrides:
getProperties in class Element
 o setProperties
 public void setProperties(String props[])
This method is called to set new values to element. Two strings for each parameter:

Parameters:
props - array with pairs of Strings.
Overrides:
setProperties in class Element
 o getMaxVoltage
 public double getMaxVoltage()
This method is called to get maximal voltage for power element. Maximal voltage is as Amplitude + DC level.

Returns:
maximal voltage.
Overrides:
getMaxVoltage in class PowerSourceElement
 o getMinVoltage
 public double getMinVoltage()
This method is called to get minimal voltage for power element. Minimal voltage is as Amplitude * -1 + DC level.

Returns:
minimal voltage.
Overrides:
getMinVoltage in class PowerSourceElement
 o parseString
 public void parseString(String values) throws ParseException
This method is called to load new values to element from string. String should be like "value,order;value,order;etc.".

Parameters:
values - new values for element in string in format given above.
Throws: ParseException
if string format is incorrect.
Overrides:
parseString in class Element
 o getTip
 public String getTip(int type)
Returns tool tip for this element.

Overrides:
getTip in class Element