package vn.edu.hust.student.dynamicpool.dal;

import com.eposi.eventdriven.implementors.BaseEventDispatcher;

import vn.edu.hust.student.dynamicpool.bll.BusinessLogicDataCallback;
import vn.edu.hust.student.dynamicpool.bll.Fish;
import vn.edu.hust.student.dynamicpool.bll.FishManager;
import vn.edu.hust.student.dynamicpool.model.DeviceInfo;

public abstract class DataAccessLayer extends BaseEventDispatcher  {
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 776252984297076409L;

	abstract String getClientName();
	
	abstract void joinHost(int key, BusinessLogicDataCallback callback);

	abstract void createHost(BusinessLogicDataCallback callback);
	
	// them thiet bi va dua ket qua tra ve cua server la mot mang danh sach cac Segment cua be
	abstract void addDevice(DeviceInfo deviceInfo,BusinessLogicDataCallback callback);
	
	abstract void exit(BusinessLogicDataCallback callback);

	abstract void createFish(Fish fish,BusinessLogicDataCallback callback);
	
	abstract void synchronization(BusinessLogicDataCallback callback);
	
	// gui thong tin ca nen server  khi chuan bi ra khoi be
	abstract void removeFish(Fish fish,BusinessLogicDataCallback callback);
	
	abstract void synchronous(FishManager fishManager, String clientName);
}

@@ -503,24 +503,31 @@
 76409L;%0D%0A%0D%0A%09
+public 
 abstract Str
@@ -544,32 +544,39 @@
 entName();%0D%0A%09%0D%0A%09
+public 
 abstract void jo
@@ -624,32 +624,39 @@
  callback);%0D%0A%0D%0A%09
+public 
 abstract void cr
@@ -795,24 +795,31 @@
 nt cua be%0D%0A%09
+public 
 abstract voi
@@ -886,32 +886,39 @@
 callback);%0D%0A%09%0D%0A%09
+public 
 abstract void ex
@@ -961,16 +961,23 @@
 k);%0D%0A%0D%0A%09
+public 
 abstract
@@ -1037,32 +1037,39 @@
 callback);%0D%0A%09%0D%0A%09
+public 
 abstract void sy
@@ -1182,16 +1182,23 @@
 oi be%0D%0A%09
+public 
 abstract
@@ -1266,16 +1266,23 @@
 );%0D%0A%09%0D%0A%09
+public 
 abstract

update public method data acess