Class StepVoltageSource
java.lang.Object
|
+----Element
|
+----PowerSourceElement
|
+----VoltageSource
|
+----ConstVoltageElement
|
+----StepVoltageSource
- public class StepVoltageSource
- extends ConstVoltageElement
Step voltage source
-
StepVoltageSource()
- Constructs default StepVoltageSource.
-
StepVoltageSource(StepVoltageSource)
- Constructs new StepVoltageSource from given one.
-
getCurrent(int, double)
- Main function for calculations.
-
getImage(int, double)
-
Returns image for this element.
-
getMaxVoltage()
- This method is called to get maximal voltage for power element.
-
getMinVoltage()
- This method is called to get minimal voltage for power element.
-
getProperties()
- This method is called to get values of element.
-
getTimePeriod()
-
-
getTip(int)
-
Returns tool tip for this element.
-
getVoltage(double, double)
- Returns voltage in given time.
-
parseString(String)
- This method is called to load new values to element from string.
-
setProperties(String[])
- This method is called to set new values to element.
StepVoltageSource
public StepVoltageSource()
- Constructs default StepVoltageSource.
StepVoltageSource
public StepVoltageSource(StepVoltageSource e)
- Constructs new StepVoltageSource from given one.
- Parameters:
- e - StepVoltageSource to copy.
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
getVoltage
public double getVoltage(double time,
double timeStep)
- Returns voltage in given time.
- Overrides:
- getVoltage in class VoltageSource
getTimePeriod
public double getTimePeriod()
getCurrent
public Polynom getCurrent(int dir,
double timeStep)
- Main function for calculations.
- Overrides:
- getCurrent in class Element
getProperties
public Object[] getProperties()
- This method is called to get values of element. Six Objects for each parameter:
- Name of parameter
- Value
- Minimal valid order
- Maximal valid order
- Current order
- Units
- Returns:
- array of Objects.
- Overrides:
- getProperties in class Element
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
getMaxVoltage
public double getMaxVoltage()
- This method is called to get maximal voltage for power element.
Maximal voltage is pulse (1).
- Returns:
- maximal voltage.
- Overrides:
- getMaxVoltage in class PowerSourceElement
getMinVoltage
public double getMinVoltage()
- This method is called to get minimal voltage for power element.
Minimal voltage is 0.
- Returns:
- minimal voltage.
- Overrides:
- getMinVoltage in class PowerSourceElement
getImage
public Image getImage(int angle,
double time)
- Returns image for this element.
- Overrides:
- getImage in class Element
getTip
public String getTip(int type)
- Returns tool tip for this element.
- Overrides:
- getTip in class Element