HiRISE

HiRISE.HiReport.model
Class CommandedCcdSet

java.lang.Object
  extended by HiRISE.HiReport.model.CommandedCcdSet

public class CommandedCcdSet
extends Object

Represents the CCDs in a HiRISE Observation.


Constructor Summary
CommandedCcdSet()
           
 
Method Summary
 int getBinCountRED()
          Returns the number of distinct binning modes used for the RED CCDs.
 int[] getBinCountsRED()
          Returns an array with the number of CCDs using that mode (element 1 = number of bin 1 RED CCDS, 2 = bin 2 etc )
 int[] getBinning()
          Return an array of CCD binning
 int getBinning(int ccd)
          Get the binning for a particular CCD
 int getBinningBG()
          Get the (minimum) binning of the BG CCDs.
 int getBinningCOLOR()
          Get the binning to be used for color (lowest of three bands)
 int getBinningIR()
          Get the (minimum) binning of the IR CCDs.
 int getBinningRED()
          Get the (minimum) binning of the RED CCDs.
 int getHighestBinning()
          Get the highest binning out of all the CCDs.
 int getLines()
          Get the (maximum) number of lines for this set.
 int getLowestBinning()
          Get the lowest binning out of all the CCDs.
 boolean hasBG()
          True if a BG CCD has been commanded
 boolean hasColor()
          True if at least one color half has been commanded
 boolean hasIR()
          True if a IR CCD has been commanded
 boolean hasRED()
          True if a RED CCD has been commanded
 void setCCD(int ccd, int bin, int lines)
          Set the parameters for a particular CCD, identified by number (0 = RED0, 13 = BG13, etc).
 String toString()
          Return the CCD commanding as a String, which is the name (e.g.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CommandedCcdSet

public CommandedCcdSet()
Method Detail

setCCD

public void setCCD(int ccd,
                   int bin,
                   int lines)
Set the parameters for a particular CCD, identified by number (0 = RED0, 13 = BG13, etc).

Parameters:
ccd - Number of CCD
bin - Binning
lines - Number of lines

toString

public String toString()
Return the CCD commanding as a String, which is the name (e.g. Bin1) if the commanding can be mapped to a particular name, otherwise a representation of the commanding which shows the binning by CCD and the CCD groups.

Overrides:
toString in class Object

getBinning

public int getBinning(int ccd)
Get the binning for a particular CCD

Parameters:
ccd - The CCD Number
Returns:
Binning

getBinning

public int[] getBinning()
Return an array of CCD binning

Returns:
binning array

getLines

public int getLines()
Get the (maximum) number of lines for this set.

Returns:
Number of lines

hasRED

public boolean hasRED()
True if a RED CCD has been commanded

Returns:
true if RED commanded

hasBG

public boolean hasBG()
True if a BG CCD has been commanded

Returns:
true if BG commanded

hasIR

public boolean hasIR()
True if a IR CCD has been commanded

Returns:
true if IR commanded

hasColor

public boolean hasColor()
True if at least one color half has been commanded

Returns:
true if any IR-RED-BG halves commanded

getBinningRED

public int getBinningRED()
Get the (minimum) binning of the RED CCDs.

Returns:
RED binning

getBinningBG

public int getBinningBG()
Get the (minimum) binning of the BG CCDs.

Returns:
BG binning

getBinningIR

public int getBinningIR()
Get the (minimum) binning of the IR CCDs.

Returns:
IR binning

getBinCountRED

public int getBinCountRED()
Returns the number of distinct binning modes used for the RED CCDs.

Returns:
count of red binning modes

getBinCountsRED

public int[] getBinCountsRED()
Returns an array with the number of CCDs using that mode (element 1 = number of bin 1 RED CCDS, 2 = bin 2 etc )

Returns:
array

getHighestBinning

public int getHighestBinning()
Get the highest binning out of all the CCDs.

Returns:
highest binning

getLowestBinning

public int getLowestBinning()
Get the lowest binning out of all the CCDs.

Returns:
lowest binning

getBinningCOLOR

public int getBinningCOLOR()
Get the binning to be used for color (lowest of three bands)

Returns:
lowest binning of color bands

HiRISE

Copyright (C) Arizona Board of Regents on behalf of the Planetary Image Research Laboratory, Lunar and Planetary Laboratory at the University of Arizona