Class Capacitor
java.lang.Object
|
+----Element
|
+----Capacitor
- public class Capacitor
- extends Element
Capacitor
-
Capacitor()
- Constructs default Capacitor.
-
Capacitor(Capacitor)
- Constructs new Capacitor from given one.
-
Capacitor(double)
- Constructs new Capacitor with given capacity.
-
Capacitor(double, int)
- Constructs new Capacitor with given capacity and order.
-
getCurrent(int, double)
- Main function for calculations.
-
getProperties()
- This method is called to get values of element.
-
getTip(int)
-
Returns tool tip for this element.
-
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.
Capacitor
public Capacitor()
- Constructs default Capacitor.
Capacitor
public Capacitor(Capacitor e)
- Constructs new Capacitor from given one.
- Parameters:
- e - Capacitor to copy.
Capacitor
public Capacitor(double c)
- Constructs new Capacitor with given capacity.
- Parameters:
- c - capacity.
Capacitor
public Capacitor(double c,
int order)
- Constructs new Capacitor with given capacity and order.
- Parameters:
- c - capacity.
- order - order(0-piko, 1-nano, 2-micro, 3-milli, 4-none, 5-kilo, 6-Mega, 7-Giga).
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
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
getTip
public String getTip(int type)
- Returns tool tip for this element.
- Overrides:
- getTip in class Element