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.


Variable Index

 o Codes
Band codes
 o Fullname
Full test for Band codes
 o Value
Data

Method Index

 o GetBandCode(double)
Returns a band code based on frequency
 o getBandCode(int)
Return BandCode
 o GiveValue()
Write value to string(s) Only returns a value if Explicit values are present.
 o isQband(int)
Decide if a scan is at Q band (40 GHz)
 o ParseValue(String, int, boolean)
Read value from string Set value to input string.
 o SetDefault(Scan, Scan)
Set defaults Fill in defaults if not explicit in Current but is in Default.
 o toString()
Write value to string

Variables

 o Value
 public String Value[]
Data

 o Codes
 public static final char Codes[]
Band codes

 o Fullname
 public static final String Fullname[]
Full test for Band codes

Methods

 o 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
 o GetBandCode
 public static String GetBandCode(double Freq)
Returns a band code based on frequency

Parameters:
double - the frequency in MHz
Returns:
String Band code
 o getBandCode
 public char getBandCode(int IfIndex)
Return BandCode

Parameters:
int<\code> - Which If?
Returns:
char<\code> Bandcode ' ' if not set
 o 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
 o 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
 o 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
 o 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