Class Ground
java.lang.Object
|
+----Element
|
+----PowerSourceElement
|
+----VoltageSource
|
+----ConstVoltageElement
|
+----Ground
- public class Ground
- extends ConstVoltageElement
Ground
-
Ground()
- Constructs default Ground.
-
Ground(Ground)
- Constructs new Ground from given one.
-
getCurrent(int, double)
- Main function for calculations.
-
getInfo(int)
-
Returns information for this element, such as voltage, current etc.
-
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.
-
getTip(int)
-
Returns tool tip for this element.
-
getVoltage(double, double)
- Returns voltage in given time.
-
setProperties(String[])
- This method is called to set new values to element.
Ground
public Ground()
- Constructs default Ground.
Ground
public Ground(Ground e)
- Constructs new Ground from given one.
- Parameters:
- e - Ground to copy.
getVoltage
public double getVoltage(double time,
double timeStep)
- Returns voltage in given time.
- Overrides:
- getVoltage in class VoltageSource
getMaxVoltage
public double getMaxVoltage()
- This method is called to get maximal voltage for power element.
Maximal voltage is 0.
- 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
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
getInfo
public String[] getInfo(int angle)
- Returns information for this element, such as voltage, current etc.
- Overrides:
- getInfo in class Element
getTip
public String getTip(int type)
- Returns tool tip for this element.
- Overrides:
- getTip in class Element