public static class PTF_Comparison.Field_Pair
extends java.lang.Object
At the targeting specialists' request, null values are to be treated as empty strings. Thus, the setters for the values ensure that the values are never null.
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
SOURCE_A |
static java.lang.String |
SOURCE_B |
Constructor and Description |
---|
Field_Pair(java.lang.String observation_id,
java.lang.String field_name,
java.lang.String value_a,
java.lang.String value_b)
Creates a new field pair with the indicated values.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
csv()
Gets the comma-separated value (CSV) text representation of the pair.
|
java.lang.String |
field_name()
Gets the field name for the pair.
|
void |
field_name(java.lang.String field_name)
Sets the field name for the pair.
|
java.lang.String |
observation_id()
Gets the observation ID for the pair.
|
void |
observation_id(java.lang.String observation_id)
Sets the observation ID for the pair.
|
PIRL.PVL.Parameter |
parameter()
Gets the PVL representation of the pair.
|
java.lang.String |
terse()
Gets the terse text representation of the pair.
|
java.lang.String |
toString()
Gets the string representation of the field pair.
|
java.lang.String |
value_a()
Gets value A of the pair.
|
void |
value_a(java.lang.String value_a)
Sets value A of the pair.
|
java.lang.String |
value_b()
Gets value B of the pair.
|
void |
value_b(java.lang.String value_b)
Sets value B of the pair.
|
java.lang.String |
verbose()
Gets the verbose text representation of the pair.
|
public static final java.lang.String SOURCE_A
public static final java.lang.String SOURCE_B
public Field_Pair(java.lang.String observation_id, java.lang.String field_name, java.lang.String value_a, java.lang.String value_b)
observation_id
- the observation ID for the pair.field_name
- the name of the PTF field represented.value_a
- the first value.value_b
- the second value.public java.lang.String observation_id()
public void observation_id(java.lang.String observation_id)
observation_id
- the new observation identifier.public java.lang.String field_name()
public void field_name(java.lang.String field_name)
field_name
- the new observation field name.public java.lang.String value_a()
public void value_a(java.lang.String value_a)
value_a
- the new value A.public java.lang.String value_b()
public void value_b(java.lang.String value_b)
value_b
- the new value B.public PIRL.PVL.Parameter parameter()
public java.lang.String csv()
public java.lang.String terse()
public java.lang.String verbose()
field_name source_a: value_a source_b: value_b
If source_a is null, "source_a" will be used instead. If source_b is null, "source_b" will be used instead.
public java.lang.String toString()
toString
in class java.lang.Object
Copyright \ (C) Arizona Board of Regents on behalf of the \ Planetary Image Research Laboratory, Lunar and \ Planetary Laboratory at the University of Arizona