Преглед изворни кода

Marked private methos in synchronizer

Julien Clauter пре 10 година
родитељ
комит
fc5aa4285c
1 измењених фајлова са 3 додато и 31 уклоњено
  1. 3 31
      src/de/tudarmstadt/informatik/hostage/sync/Synchronizer.java

+ 3 - 31
src/de/tudarmstadt/informatik/hostage/sync/Synchronizer.java

@@ -28,40 +28,12 @@ public class Synchronizer {
         this.dbh = dbh;
     }
 
-    /**
-     *
-     * Update Idea:
-     * PullDevices
-     * PullNetworks
-     * PullAttacks
-     *
-     * Commit Idea:
-     * PushDevice
-     * PushNetworks
-     * PushAttacks
-     *
-     */
-
-    /**
-     * Returns all recorded BSSIDs.
-     * @return array list of bssids
-     */
-    public ArrayList<String> getAllBSSIDs(){
-        return this.dbh.getAllBSSIDS();
-    }
 
-    /**
-     * Returns all devices ids.
-     * @return  ArrayList<String>
-     */
-    public ArrayList<String> getAllDeviceIDs(){
-        return this.dbh.getAllDevicesIds();
-    }
     /**
      * Returns own state of all registered devices.
      * @return  ArrayList<SyncDevice>
      */
-    public SyncInfo getOwnState(){
+    public SyncInfo getSyncInfo(){
         return this.dbh.getOwnState();
     }
 
@@ -130,7 +102,7 @@ public class Synchronizer {
      * Inserts a list of networks
      * @param others all missing networks
      */
-    public void updateNewNetworks(ArrayList<NetworkRecord> others){
+    private void updateNewNetworks(ArrayList<NetworkRecord> others){
         if (others != null && others.size() > 0){
             this.dbh.updateNetworkInformation(others);
         }
@@ -200,7 +172,7 @@ public class Synchronizer {
      * @param si other states {@link de.tudarmstadt.informatik.hostage.logging.SyncInfo}
      * @return unsynced sync records
      */
-    public ArrayList<SyncRecord> getUnsyncedRecords(SyncInfo si){
+    private ArrayList<SyncRecord> getUnsyncedRecords(SyncInfo si){
 
         if (si.deviceMap != null){
             return this.dbh.getUnsyncedAttacksFor(si.deviceMap, false);