Code Search for Developers
 
 
  

Serializer.cs from MASE: Agile Software Engineering at Krugle


Show Serializer.cs syntax highlighted

using System;
using System.Collections;
//using Whiteboard.MaseWR;
using WebCacheSys;
using WebCacheSys.WS;


namespace Whiteboard.SupportingClasses
{
	public class TabletSerializer
	{
		public ArrayList encodeProjectVO(ProjectVO a)
		{
			ArrayList al = new ArrayList();
			String[] keys = new String[9];
			String[] values = new String[9];

			values[0] = a.cruiseControlURL;
			values[1] = a.description;
			values[2] = a.EBURL;
			values[3] = a.ebURL;
			values[4] = a.id.ToString();
			values[5] = a.manager.ToString();
			values[6] = a.metricsURL;
			values[7] = a.name;
			values[8] = a.visibility.ToString();

			keys[0] = "cruiseControlURL";
			keys[1] = "description";
			keys[2] = "EBURL";
			keys[3] = "ebURL";
			keys[4] = "id";
			keys[5] = "manager";
			keys[6] = "metricsURL";
			keys[7] = "name";
			keys[8] = "visibility";

			al.Add(keys);
			al.Add(values);
			return al;
		}
		public ArrayList encodeTabletVO(TabletVO a)
		{
			ArrayList al = new ArrayList();
			String[] keys = new String[33];
			String[] values = new String[33];

			values[0] = a.projectID.ToString();
			values[1] = a.projectName;
			values[2] = a.iterationID.ToString();
			values[3] = a.iterationName;
			values[4] = a.agentResponsibleName;
			values[5] = a.agentResponsibleID.ToString();
			values[6] = a.pairProgrammerID.ToString();
			values[7] = a.pairProgrammerName;
			values[8] = a.process.accepted.ToString();
			values[9] = a.process.activityType.ToString();
			values[10] = a.process.actualEffort.ToString();
			values[11] = a.process.bug.ToString();
			values[12] = a.process.complete.ToString();
			values[13] = a.process.complex.ToString();
			values[14] = a.process.description;
			values[15] = a.process.endDate.ToString();
			values[16] = a.process.enhancement.ToString();
			values[17] = a.process.estimatedEffort.ToString();
			values[18] = a.process.feature.ToString();
			values[19] = a.process.formattedActualEffort;
			values[20] = a.process.formattedCurrentEstimates;
			values[21] = a.process.formattedInitialEstimates;
			values[22] = a.process.handWritten.ToString();
			values[23] = a.process.id.ToString();
			values[24] = a.process.initialEffort.ToString();
			values[25] = a.process.initiallyEstimated.ToString();
			values[26] = a.process.iteration.ToString();
			values[27] = a.process.name;
			values[28] = a.process.priority.ToString();
			values[29] = a.process.processType.ToString();
			values[30] = a.process.processTypeIDInEB;
			values[31] = a.process.task.ToString();
			values[32] = a.process.userStory.ToString();

			keys[0] = "projectID";
			keys[1] = "projectName";
			keys[2] = "iterationID";
			keys[3] = "iterationName";
			keys[4] = "agentResponsibleName";
			keys[5] = "agentResponsibleID";
			keys[6] = "pairProgrammerID";
			keys[7] = "pairProgrammerName";
			keys[8] = "accepted";
			keys[9] = "activityType";
			keys[10] = "actualEffort";
			keys[11] = "bug";
			keys[12] = "complete";
			keys[13] = "complex";
			keys[14] = "description";
			keys[15] = "endDate";
			keys[16] = "enhancement";
			keys[17] = "estimatedEffort";
			keys[18] = "feature";
			keys[19] = "formattedActualEffort";
			keys[20] = "formattedCurrentEstimates";
			keys[21] = "formattedInitialEstimates";
			keys[22] = "handWritten";
			keys[23] = "id";
			keys[24] = "initialEffort";
			keys[25] = "initiallyEstimated";
			keys[26] = "iteration";
			keys[27] = "name";
			keys[28] = "priority";
			keys[29] = "processType";
			keys[30] = "processTypeIDInEB";
			keys[31] = "task";
			keys[32] = "userStory";

			al.Add(keys);
			al.Add(values);
			return al;
		}
	}
}




See more files for this project here

MASE: Agile Software Engineering

The MASE project investigates methods to support the coordination and executable acceptance testing of software projects. Keywords: Agile methods, distributed teams, Extreme Programming. See http://ebe.cpsc.ucalgary.ca/ebe for more information.

Project homepage: http://sourceforge.net/projects/mase
Programming language(s): Java,XML
License: other

  ApplicationProperties.cs
  CardLocationWith4Corners.cs
  HandWrittenObj.cs
  HandwrittenStoryCard.cs
  Iteration.cs
  Iteration.resx
  MaseListen.cs
  MaseUpdate.cs
  ProcessNode.cs
  ProjectNode.cs
  RegisterObj.cs
  Serializer.cs
  SingleWS.cs
  StoryObj.cs
  TabletContentandUtil.cs
  Utility.cs
  VLabel.cs
  VLabel.resx