<commit_before>package vn.edu.hust.student.dynamicpool.tests.presentation;

import java.util.ArrayList;
import java.util.List;

import com.badlogic.gdx.utils.Timer;
import com.badlogic.gdx.utils.Timer.Task;

import vn.edu.hust.student.dynamicpool.bll.BusinessLogicLayer;
import vn.edu.hust.student.dynamicpool.bll.ETrajectoryType;
import vn.edu.hust.student.dynamicpool.bll.FishFactory;
import vn.edu.hust.student.dynamicpool.bll.FishType;
import vn.edu.hust.student.dynamicpool.bll.IFish;
import vn.edu.hust.student.dynamicpool.model.DeviceInfo;
import vn.edu.hust.student.dynamicpool.presentation.PresentationBooleanCallback;
import vn.edu.hust.student.dynamicpool.utils.AppConst;

public class BLLTest implements BusinessLogicLayer {
	private Timer timmer = new Timer();
	private List<IFish> fishs = new ArrayList<IFish>();
	
	public BLLTest() {
		fishs.add(FishFactory.createFishWithLineTrajectory(AppConst.width, AppConst.height));
	}
	@Override
	public void joinHost(String key, PresentationBooleanCallback callback) {
		final PresentationBooleanCallback newcallback = callback;
		this.timmer.scheduleTask(new Task() {
			@Override
			public void run() {
				newcallback.callback(true, null);
			}
		}, 3);
	}

	@Override
	public void createHost(PresentationBooleanCallback callback) {
		final PresentationBooleanCallback newcallback = callback;
		this.timmer.scheduleTask(new Task() {
			@Override
			public void run() {
				newcallback.callback(true, null);
			}
		}, 3);
	}

	@Override
	public void intialDevide(DeviceInfo devideInfor,
			PresentationBooleanCallback callback) {
		// TODO Aut1o-generated method stub
		
	}

	@Override
	public void addDevide(DeviceInfo devideInfor,
			final PresentationBooleanCallback callback) {
		timmer.scheduleTask(new Task() {
			@Override
			public void run() {
				callback.callback(true, null);
			}
		}, 2);
		
	}

	@Override
	public java.util.List<IFish> getFishs() {
		return fishs;
	}

	@Override
	public void update(float deltaTime) {
		for (IFish fish : fishs) {
			fish.update(deltaTime);
		}
	}
	@Override
	public void exit() {
		
	}
	@Override
	public void createFish(FishType fishType, ETrajectoryType trajectoryType,
			int width, int height) {
		// TODO Auto-generated method stub
		
	}
}<commit_msg>Revert "Revert "update BLLTest""<commit_after>package vn.edu.hust.student.dynamicpool.tests.presentation;

import java.util.ArrayList;
import java.util.List;

import com.badlogic.gdx.utils.Timer;
import com.badlogic.gdx.utils.Timer.Task;

import vn.edu.hust.student.dynamicpool.bll.BusinessLogicLayer;
import vn.edu.hust.student.dynamicpool.bll.ETrajectoryType;
import vn.edu.hust.student.dynamicpool.bll.FishFactory;
import vn.edu.hust.student.dynamicpool.bll.FishType;
import vn.edu.hust.student.dynamicpool.bll.IFish;
import vn.edu.hust.student.dynamicpool.model.DeviceInfo;
import vn.edu.hust.student.dynamicpool.presentation.PresentationBooleanCallback;
import vn.edu.hust.student.dynamicpool.utils.AppConst;

public class BLLTest implements BusinessLogicLayer {
	private Timer timmer = new Timer();
	private List<IFish> fishs = new ArrayList<IFish>();
	
	public BLLTest() {
		fishs.add(FishFactory.createFishWithLineTrajectory(AppConst.width, AppConst.height));
	}
	@Override
	public void joinHost(String key, PresentationBooleanCallback callback) {
		final PresentationBooleanCallback newcallback = callback;
		this.timmer.scheduleTask(new Task() {
			@Override
			public void run() {
				newcallback.callback(true, null);
			}
		}, 3);
	}

	@Override
	public void createHost(PresentationBooleanCallback callback) {
		final PresentationBooleanCallback newcallback = callback;
		this.timmer.scheduleTask(new Task() {
			@Override
			public void run() {
				newcallback.callback(true, null);
			}
		}, 3);
	}

	@Override
	public void intialDevide(DeviceInfo devideInfor,
			PresentationBooleanCallback callback) {
		// TODO Aut1o-generated method stub
		
	}

	@Override
	public void addDevide(DeviceInfo devideInfor,
			final PresentationBooleanCallback callback) {
		timmer.scheduleTask(new Task() {
			@Override
			public void run() {
				callback.callback(true, null);
			}
		}, 2);
		
	}

	@Override
	public java.util.List<IFish> getFishs() {
		return fishs;
	}

	@Override
	public void update(float deltaTime) {
		for (IFish fish : fishs) {
			fish.update(deltaTime);
		}
	}
	@Override
	public void exit() {
		
	}
	@Override
	public void createFish(FishType fishType, ETrajectoryType trajectoryType,
			int width, int height) {
		// TODO Auto-generated method stub
		
	}
	@Override
	public void synchronization() {
		// TODO Auto-generated method stub
		
	}
}
{'fraction_non_alphanumeric': 0.10621761658031088, 'fraction_numerical': 0.0017271157167530224, 'mean_word_length': 4.55515587529976, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2147777', 'n_tokens_mistral': 1677, 'n_tokens_neox': 1507, 'n_words': 303}