Class Ground

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

public class Ground
extends ConstVoltageElement
Ground


Constructor Index

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

Method Index

 o getCurrent(int, double)
Main function for calculations.
 o getInfo(int)
Returns information for this element, such as voltage, current etc.
 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 getTip(int)
Returns tool tip for this element.
 o getVoltage(double, double)
Returns voltage in given time.
 o setProperties(String[])
This method is called to set new values to element.

Constructors

 o Ground
 public Ground()
Constructs default Ground.

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

Parameters:
e - Ground to copy.

Methods

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

Overrides:
getVoltage in class VoltageSource
 o 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
 o 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
 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 getInfo
 public String[] getInfo(int angle)
Returns information for this element, such as voltage, current etc.

Overrides:
getInfo in class Element
 o getTip
 public String getTip(int type)
Returns tool tip for this element.

Overrides:
getTip in class Element