/** * Constructor creates a new TimeCoding-instance with a given start and end time. * * @param startTime the start time of the time span represented by the time-coding * @param endTime the end time of the time span represented by the time-coding */ protected TimeCoding(ProductData.UTC startTime, ProductData.UTC endTime) { Guardian.assertNotNull("startTime", startTime); Guardian.assertNotNull("endTime", endTime); this.startTime = startTime; this.endTime = endTime; }
/** * Constructs a new header from the given record. * * @param params the parameters as a list of fields contained in a record * * @throws java.lang.IllegalArgumentException * if the argument is <code>null</code> */ public Header(Record params) { Guardian.assertNotNull("params", params); _params = params; }
public FormatedFileHistory(int maxNumEntries, String propertyKey, ProductReaderPlugIn readerPlugIn) { super(maxNumEntries, propertyKey); Guardian.assertNotNull("readerPlugIn", readerPlugIn); _productReaderPlugIn = readerPlugIn; }
private static void checkTerms(Term[] terms) { Guardian.assertNotNull("terms", terms); for (final Term term : terms) { Guardian.assertNotNull("term", term); } }
/** * Sets the c coefficient set for the calculation of the dual view sst on daytime */ public void set_C_Coeffs(float[] coeffs) { Guardian.assertNotNull("coeffs", coeffs); _c_Coeffs = coeffs; }
/** * Sets the d coefficient set for the calculation of the dual view sst on nighttime */ public void set_D_Coeffs(float[] coeffs) { Guardian.assertNotNull("coeffs", coeffs); _d_Coeffs = coeffs; }
/** * Constructs a shape figure for the given shape. */ public ShapeFigure(Shape shape, boolean oneDimensional, Map<String, Object> attributes) { super(attributes); Guardian.assertNotNull("shape", shape); this.shape = shape; this.oneDimensional = oneDimensional; }
/** * Constructs a <code>ProductWriter</code>. Since no output destination is set, the <code>setOutput</code> * method must be called before data can be written. * * @param writerPlugIn the plug-in which created this writer, must not be <code>null</code> * @throws IllegalArgumentException * @see #writeProductNodes */ public AbstractProductWriter(ProductWriterPlugIn writerPlugIn) { Guardian.assertNotNull("writerPlugIn", writerPlugIn); _writerPlugIn = writerPlugIn; }
private static int getScalingMethod(String scalingMethodName) { Guardian.assertNotNull("scalingMethodName", scalingMethodName); int scalingMethod = -1; if (scalingMethodName.equalsIgnoreCase(SCALE_LINEAR_NAME)) { scalingMethod = BandInfo.SCALE_LINEAR; } else if (scalingMethodName.equalsIgnoreCase(SCALE_LOG_NAME)) { scalingMethod = BandInfo.SCALE_LOG10; } return scalingMethod; }
/** * Sets the command manager to be used for this application. * * @param commandManager he command manager, must not be <code>null</code> */ public void setCommandManager(CommandManager commandManager) { Guardian.assertNotNull("commandManager", commandManager); this.commandManager = commandManager; commandUIFactory.setCommandManager(commandManager); }
/** * @param entry * * @return the file name of a ZipEntry */ public static String getZipEntryFileName(final ZipEntry entry) { Guardian.assertNotNull("entry", entry); return getZipEntryFileName(entry.getName()); }
public final void setWorldMapImage(final Image worldMapImage) { Guardian.assertNotNull("worldMapImage", worldMapImage); _worldMapImage = worldMapImage; _width = worldMapImage.getWidth(null); _height = worldMapImage.getHeight(null); if (_width != _height * 2) { throw new IllegalArgumentException("The world map image mut have the aspect ratio of 'width = 2 * height'"); } _geoCoding = createGeocoding(); }
/** * Gets the extension (which always includes a leading dot) of a file. * * @param file the file whose extension is to be extracted. * @return the extension string which always includes a leading dot. Returns <code>null</code> if the file has * no extension. */ public static String getExtension(File file) { Guardian.assertNotNull("file", file); return getExtension(file.getPath()); }
/** * Gets a symbol name prefix for the names of bands, tie point grids, flags, etc. of the given product. * The prefix is of the general form <code>"$<i>refNo</i>."</code> where <i>refNo</i> is the product's reference * number returned by {@link org.esa.beam.framework.datamodel.Product#getRefNo()}. * * @param product the product, must not be <code>null</code> * @return a node name prefix, never null. */ public static String getProductNodeNamePrefix(Product product) { Guardian.assertNotNull("product", product); return "$" + product.getRefNo() + '.'; }
public void addGraph(DiagramGraph graph) { Guardian.assertNotNull("graph", graph); if (graphs.add(graph)) { graph.setDiagram(this); invalidate(); } }
public void removeGraph(DiagramGraph graph) { Guardian.assertNotNull("graph", graph); if (graphs.remove(graph)) { graph.setDiagram(null); invalidate(); } }
public static boolean isSupportedProductType(String productType) { Guardian.assertNotNull("productType", productType); return isSupportedAatsrProductType(productType) || isSupportedMerisProductType(productType); } }
/** * Gets all reader plug-ins which support the given format name. In the case that no reader plug-in is found, an * empty iterator is returned. * * @param formatName the name of the format, must not be <code>null</code> * * @return an iterator containing all reader plug-ins supporting the given format */ public Iterator<ProductReaderPlugIn> getReaderPlugIns(String formatName) { Guardian.assertNotNull("formatName", formatName); return getProductIOPlugIns(readerPlugIns.getServices(), formatName); }
public void setXAxis(DiagramAxis xAxis) { Guardian.assertNotNull("xAxis", xAxis); if (this.xAxis != xAxis) { if (this.xAxis != null) { this.xAxis.setDiagram(null); } this.xAxis = xAxis; this.xAxis.setDiagram(this); invalidate(); } }
protected FilterBand(String name, int dataType, int width, int height, RasterDataNode source) { super(name, dataType, width, height); Guardian.assertNotNull("source", source); this.source = source; setOwner(source.getProduct()); setSynthetic(true); setNoDataValue(Double.NaN); setNoDataValueUsed(true); }