All Packages Class Hierarchy This Package Previous Next Index
Class JObserve.VLA.BandCodeF
java.lang.Object
|
+----JObserve.FieldLink
|
+----JObserve.Field4
|
+----JObserve.VLA.BandCodeF
- public final class BandCodeF
- extends Field4
Field definition for BandCodeF class
Bandcode 1 per If
Defines structures and member functions for the manipulation,
display and editing of scan information.
Expects the Scan members of this type to be named BandCode.
-
Codes
- Band codes
-
Fullname
- Full test for Band codes
-
Value
- Data
-
GetBandCode(double)
- Returns a band code based on frequency
-
getBandCode(int)
- Return BandCode
-
GiveValue()
- Write value to string(s)
Only returns a value if Explicit values are present.
-
isQband(int)
- Decide if a scan is at Q band (40 GHz)
-
ParseValue(String, int, boolean)
- Read value from string
Set value to input string.
-
SetDefault(Scan, Scan)
- Set defaults
Fill in defaults if not explicit in Current but is in Default.
-
toString()
- Write value to string
Value
public String Value[]
- Data
Codes
public static final char Codes[]
- Band codes
Fullname
public static final String Fullname[]
- Full test for Band codes
SetDefault
public void SetDefault(Scan scan,
Scan def)
- Set defaults
Fill in defaults if not explicit in Current but is in Default.
- Parameters:
-
Scan
- of this this field is a member.
-
Scan
- to get defaults from.
- Overrides:
- SetDefault in class FieldLink
GetBandCode
public static String GetBandCode(double Freq)
- Returns a band code based on frequency
- Parameters:
-
double
- the frequency in MHz
- Returns:
-
String
Band code
getBandCode
public char getBandCode(int IfIndex)
- Return BandCode
- Parameters:
-
int<\code> - Which If?
- Returns:
-
char<\code> Bandcode ' ' if not set
isQband
public boolean isQband(int IfIndex)
- Decide if a scan is at Q band (40 GHz)
- Parameters:
-
int<\code> - Which If?
-
VLAScan<\code> - the Scan in question
- Returns:
-
boolean<\code> true if it's Q band
ParseValue
public void ParseValue(String Value,
int Index,
boolean Constant)
- Read value from string
Set value to input string.
- Parameters:
-
String
- Value string
-
index
- Index for Value
-
boolean
- true if a constant value
- Overrides:
- ParseValue in class FieldLink
GiveValue
public String[] GiveValue()
- Write value to string(s)
Only returns a value if Explicit values are present.
Format: Name(index)* Value<\br>
Where (index) is present if the value is an array (true for Field4),
and the "*" indicates a constant (not editable) value
- Returns:
-
String
one entry per Value array element;
null if no explicit value.
A null array entry indicates no explicit value for that entru
- Overrides:
- GiveValue in class FieldLink
toString
public String toString()
- Write value to string
- Returns:
-
String
String representation
- Overrides:
- toString in class Object
All Packages Class Hierarchy This Package Previous Next Index