Class Probe
java.lang.Object
|
+----Element
|
+----WireElement
|
+----WireConnector
|
+----Probe
- public class Probe
- extends WireConnector
Probe
-
Probe()
- Constructs default Probe.
-
Probe(Probe)
- Constructs new Probe from given one.
-
getColor()
-
-
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.
-
getTime()
-
-
getVoltage()
-
-
paint(Graphics, int, Dimension, boolean, boolean)
-
Paints the element on the given graphic context.
-
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.
Probe
public Probe()
- Constructs default Probe.
Probe
public Probe(Probe e)
- Constructs new Probe from given one.
- Parameters:
- e - Probe 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 WireElement
getVoltage
public double getVoltage()
getTime
public double getTime()
getMaxVoltage
public double getMaxVoltage()
- This method is called to get maximal voltage for power element.
Maximal voltage is one of parameters of the Probe.
- Returns:
- maximal voltage.
getMinVoltage
public double getMinVoltage()
- This method is called to get minimal voltage for power element.
Minimal voltage is one of parameters of the Probe.
- Returns:
- minimal voltage.
getColor
public Color getColor()
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 WireElement
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 WireElement
paint
public void paint(Graphics g,
int angle,
Dimension size,
boolean isSimulating,
boolean animated)
- Paints the element on the given graphic context.
- Overrides:
- paint in class WireConnector