Three methods realization and explanation - Code JAVA » History » Version 1
Version 1/3
-
Next » -
Current version
Guanji Wang, 17/03/2016 16:40
Three methods realization and explanation - Code JAVA¶
Attention: For better view, all the code pictures are captured by guanji in his git source, you can find the link at the end of the page. Thank you for your comprehension.¶
1 - Situation1 - One HMI-seires to one target .fits file, ex: hmi.m_720s¶
Define the .fits file name and save the series and filename into hashmap as a fast index, other code in the git source¶
2 - Situation2 - One HMI-series to multi-targets .fits files, ex: hmi.sharp_720s_nrt¶
Define all target files into a Arraylist, create new object - FileOrderResource then loop all series and files name into a List<Object> listf which Object = FileOrderResource.
h3. The code is annotated(// or /* */) as we will use the method 3, you can get the source code in the git source here : https://git.ias.u-psud.fr/gwang/Sitools2-V3.0/commits/dev-3¶
The create a hashmap which key value equals series name and the content equals the filelist,
Use if or switch to set and get the map values for creation of the reference list