src/main/java/com/xceptance/neodymium/visual/ai/machine_learning/Network.java
/**
     * Scan the given parameter path for images which are allowed after {@link Helper#IMAGE_FILTER} and compare all of
     * them with the internal list. If the images are in the list nothing is done otherwise the HashCode of the images
     * will be added to the list. This method is used for folder oversee.
     * 
     * @param path
     *            String to the folder to scan
     * @param screenshotName
     *            current screenshot ge added before saving in the folder, important for the next use of the network.
     * @return result list with all loaded images.
     */
Scan the given parameter path for images which are allowed after  Helper#IMAGE_FILTER and compare all of
them with the internal list. If the images are in the list nothing is done otherwise the HashCode of the images
will be added to the list. This method is used for folder oversee.

@param path
String to the folder to scan
@param screenshotName
current screenshot ge added before saving in the folder, important for the next use of the network.
@return result list with all loaded images.
Scan the given parameter path for images which are allowed after Helper#IMAGE_FILTER and compare all of them with the internal list . If the images are in the list nothing is done otherwise the HashCode of the images will be added to the list . This method is used for folder oversee . @param path String to the folder to scan @param screenshotName current screenshot ge added before saving in the folder important for the next use of the network . @return result list with all loaded images .
public ArrayList<FastBitmap> scanFolderForChanges(String path, String screenshotName)
    {
        ArrayList<FastBitmap> result = new ArrayList<>();
        File[] list = Helper.scanFolder(path);
        ArrayList<Integer> tempList = new ArrayList<>();
        for (File element : list)
        {
            if (!monitoringList.contains(element.getName().hashCode()))
            {
                result.add(Helper.loadImageScaled_FastBitmap(element.getAbsolutePath(), element.getName()));
            }
            tempList.add(element.getName().hashCode());
        }
        monitoringList.clear();
        monitoringList.add(screenshotName.hashCode());
        monitoringList.addAll(tempList);
        return result;
    }
public ArrayList < FastBitmap > scanFolderForChanges ( String path , String screenshotName ) { ArrayList < FastBitmap > result = new ArrayList < > ( ) ; File [ ] list = Helper . scanFolder ( path ) ; ArrayList < Integer > tempList = new ArrayList < > ( ) ; for ( File element : list ) { if ( ! monitoringList . contains ( element . getName ( ) . hashCode ( ) ) ) { result . add ( Helper . loadImageScaled_FastBitmap ( element . getAbsolutePath ( ) , element . getName ( ) ) ) ; } tempList . add ( element . getName ( ) . hashCode ( ) ) ; } monitoringList . clear ( ) ; monitoringList . add ( screenshotName . hashCode ( ) ) ; monitoringList . addAll ( tempList ) ; return result ; }
Scan the given parameter path for images which are allowed after {@link Helper#IMAGE_FILTER} and compare all of
 them with the internal list.
Scan the given parameter path for images which are allowed after { @link Helper#IMAGE_FILTER } and compare all of them with the internal list .