团队作业4——第一次项目冲刺(Alpha版本)4.27

一、当天站立式会议照片

本次会议主要内容:组长给大家分配新一步任务,分别汇报目前所完成的内容,完善昨日的解压接口代码,并做测试修正。
二、每个人的工

三、燃尽图

横坐标:工作日,以天为单位,一共七天,代表着Alpha冲刺阶段的时间一共为7天

纵坐标:剩余卡片数,以卡片数为单位,代表着每一个任务。

橙线:代表设置的卡片数在规定的工作日内的理想的完成情况。

蓝线:表示我们实际完成的卡片数。

燃尽图的作用:燃尽图功能大体可以帮助我们了解到团队是如何制定的计划,对计划是如何执行的,作为团队,燃尽图可以直观的了解到大家的工作步调是否一致,通过燃尽图还可以知道团队哪些地方还有不足,还能进一步的提升。

四、代码/文档签入记录

https://coding.net/u/hts-technology/p/CodeManagement/git/tree/master

五、目前遇到的困难
在代码分配过程中出现分歧,最后根据大家的编写能力进行了新的安排,部分同学花的时间还不够多,后续需要多赶一赶进度,争取跟上计划。

六、主要代码

/**
	 * 将整个项目的信息放在数据库中
	 */
	public void putProjectImformationToDataBase(String projectPathAndName) {
		
		//将项目信息写到数据库中
		Project project=initProjectEntity(projectPathAndName);
		
		//将项目中目录文件信息写到数据库中(递归写入)
		project=readProject(project);
		int projectId = project.getProjectId();
		Directory directory= new Directory();
		directory = new DirectoryDaoImpl().readDirectory(directory);
		int directoryId = directory.getDirectoryId();
		Folder.CreteDirectoryAndFileIntoDataBase(projectPathAndName,directoryId,projectId);
			
	}
/**
	 * @param projectPathAndName 项目完整路径
	 */
	@Override
	public Project initProjectEntity(String projectPathAndName) {
		
		String projectName=projectPathAndName.substring(projectPathAndName.lastIndexOf("\\")+1);
		String projectPath = projectPathAndName.substring(0, projectPathAndName.lastIndexOf("\\")-1);
		String userName = projectPath.substring(LocalPath.getLoalPath().length(),projectPath.lastIndexOf("\\"));
		int[] numbers=statisticsDirectoryAndFileNumberOfProject(projectPathAndName);
		int drectoryNumber=numbers[0];
		int fileNumber=numbers[1];
        
        //将项目信息写到数据库中去
		Project project = new Project(1,projectName, projectPath,drectoryNumber,fileNumber,userName);
		JavaProjectDaoImpl.writeProject(project);
		
		//将项目信息从数据库中读出,获得projectId
				project=readProject(project);
				int projectId = project.getProjectId();
		//将项目也当作一个目录写入数据库中
		Directory directory = new Directory(1,projectName,projectId,projectPath,fileNumber+drectoryNumber);
		new DirectoryDaoImpl().writeDirectory(directory);
		return project;
		
	}
/**
	 * 为项目中的所有目录和对象创建对象
	 * 
	 * @param filePath
	 */
	public static void CreteDirectoryAndFileIntoDataBase(String rootPath, int directoryId,int projectId) {
		File root = new File(rootPath);
		File[] files = root.listFiles();
		for (File file : files) {
			if (file.isDirectory()) {
				
         		String directoryName = file.getName();
         		String directoryPath = file.getAbsolutePath();
         		File[] directoryFiles = file.listFiles();
         		int directoryFileNumber = directoryFiles.length;
         		Directory directory = new Directory(1,directoryName,projectId,directoryPath,directoryFileNumber);
         		new DirectoryDaoImpl().writeDirectory(directory);
        		directoryId = new DirectoryDaoImpl().readDirectory(directory).getDirectoryId();
				CreteDirectoryAndFileIntoDataBase(file.getAbsolutePath(), directoryId,projectId);
				//System.out.println("显示" + filePath + "下所有子目录及其文件" + file.getAbsolutePath());
			} else {
				int fileId=1;
				String fileName=file.getName();
				String filePath=file.getAbsolutePath();
				Java_File File = new Java_File(fileId,fileName,filePath,directoryId);
				new FileDaoImpl().writeFile(File);
				//System.out.println("显示" + filePath + "下所有子目录" + file.getAbsolutePath());
			}
		}
	}

七、心得体会
1、团队合作中,要有针对性调动大家的积极性,提高整体的效率;

2、项目开始前应该对项目进行合理的规划,有条不紊的按照规划执行,能够合理的利用时间;

3、调整自己的心态,完成冲刺。

posted @ 2017-04-27 22:10  NO.NE  阅读(152)  评论(2编辑  收藏  举报