conversation
listlengths
2
2
[ { "content": "Write calendar hours.\n\n@param parentCalendar parent calendar instance\n@param record calendar hours instance\n@throws IOException", "role": "user" }, { "content": "private void writeCalendarHours(ProjectCalendar parentCalendar, ProjectCalendarHours record) throws IOException\n {\n ...
[ { "content": "Write a resource.\n\n@param record resource instance\n@throws IOException", "role": "user" }, { "content": "private void writeResource(Resource record) throws IOException\n {\n m_buffer.setLength(0);\n\n //\n // Write the resource record\n //\n int[] fields =...
[ { "content": "Write notes.\n\n@param recordNumber record number\n@param text note text\n@throws IOException", "role": "user" }, { "content": "private void writeNotes(int recordNumber, String text) throws IOException\n {\n m_buffer.setLength(0);\n\n m_buffer.append(recordNumber);\n m...
[ { "content": "Write resource assignment.\n\n@param record resource assignment instance\n@throws IOException", "role": "user" }, { "content": "private void writeResourceAssignment(ResourceAssignment record) throws IOException\n {\n m_buffer.setLength(0);\n\n m_buffer.append(MPXConstants.R...
[ { "content": "Write resource assignment workgroup.\n\n@param record resource assignment workgroup instance\n@throws IOException", "role": "user" }, { "content": "private void writeResourceAssignmentWorkgroupFields(ResourceAssignmentWorkgroupFields record) throws IOException\n {\n m_buffer.set...
[ { "content": "Recursively write tasks.\n\n@param tasks list of tasks\n@throws IOException", "role": "user" }, { "content": "private void writeTasks(List<Task> tasks) throws IOException\n {\n for (Task task : tasks)\n {\n writeTask(task);\n writeTasks(task.getChildTasks())...
[ { "content": "This internal method is used to convert from a Date instance to an\ninteger representing the number of minutes past midnight.\n\n@param date date instance\n@return minutes past midnight as an integer", "role": "user" }, { "content": "private Integer getIntegerTimeInMinutes(Date date)\n...
[ { "content": "This method is called when double quotes are found as part of\na value. The quotes are escaped by adding a second quote character\nand the entire value is quoted.\n\n@param value text containing quote characters\n@return escaped and quoted text", "role": "user" }, { "content": "private...
[ { "content": "This method removes line breaks from a piece of text, and replaces\nthem with the supplied text.\n\n@param text source text\n@param replacement line break replacement text\n@return text with line breaks removed.", "role": "user" }, { "content": "private String stripLineBreaks(String te...
[ { "content": "This method returns the string representation of an object. In most\ncases this will simply involve calling the normal toString method\non the object, but a couple of exceptions are handled here.\n\n@param o the object to formatted\n@return formatted string representing input Object", "role": ...
[ { "content": "This method removes trailing delimiter characters.\n\n@param buffer input sring buffer", "role": "user" }, { "content": "private void stripTrailingDelimiters(StringBuilder buffer)\n {\n int index = buffer.length() - 1;\n\n while (index > 0 && buffer.charAt(index) == m_delim...
[ { "content": "This method is called to format a time value.\n\n@param value time value\n@return formatted time value", "role": "user" }, { "content": "private String formatTime(Date value)\n {\n return (value == null ? null : m_formats.getTimeFormat().format(value));\n }", "role": "assi...
[ { "content": "This method is called to format a currency value.\n\n@param value numeric value\n@return currency value", "role": "user" }, { "content": "private String formatCurrency(Number value)\n {\n return (value == null ? null : m_formats.getCurrencyFormat().format(value));\n }", "r...
[ { "content": "This method is called to format a units value.\n\n@param value numeric value\n@return currency value", "role": "user" }, { "content": "private String formatUnits(Number value)\n {\n return (value == null ? null : m_formats.getUnitsDecimalFormat().format(value.doubleValue() / 100...
[ { "content": "This method is called to format a date. It will return the null text\nif a null value is supplied.\n\n@param value date value\n@return formatted date value", "role": "user" }, { "content": "private String formatDateTimeNull(Date value)\n {\n return (value == null ? m_formats.get...
[ { "content": "This method is called to format a percentage value.\n\n@param value numeric value\n@return percentage value", "role": "user" }, { "content": "private String formatPercentage(Number value)\n {\n return (value == null ? null : m_formats.getPercentageDecimalFormat().format(value) +...
[ { "content": "This method is called to format an accrue type value.\n\n@param type accrue type\n@return formatted accrue type", "role": "user" }, { "content": "private String formatAccrueType(AccrueType type)\n {\n return (type == null ? null : LocaleData.getStringArray(m_locale, LocaleData.A...
[ { "content": "This method is called to format a constraint type.\n\n@param type constraint type\n@return formatted constraint type", "role": "user" }, { "content": "private String formatConstraintType(ConstraintType type)\n {\n return (type == null ? null : LocaleData.getStringArray(m_locale,...
[ { "content": "This method is called to format a duration.\n\n@param value duration value\n@return formatted duration value", "role": "user" }, { "content": "private String formatDuration(Object value)\n {\n String result = null;\n if (value instanceof Duration)\n {\n Duratio...
[ { "content": "This method is called to format a rate.\n\n@param value rate value\n@return formatted rate", "role": "user" }, { "content": "private String formatRate(Rate value)\n {\n String result = null;\n if (value != null)\n {\n StringBuilder buffer = new StringBuilder(m_...
[ { "content": "This method is called to format a priority.\n\n@param value priority instance\n@return formatted priority value", "role": "user" }, { "content": "private String formatPriority(Priority value)\n {\n String result = null;\n\n if (value != null)\n {\n String[] pri...
[ { "content": "This method is called to format a task type.\n\n@param value task type value\n@return formatted task type", "role": "user" }, { "content": "private String formatTaskType(TaskType value)\n {\n return (LocaleData.getString(m_locale, (value == TaskType.FIXED_DURATION ? LocaleData.Y...
[ { "content": "This method is called to format a relation list.\n\n@param value relation list instance\n@return formatted relation list", "role": "user" }, { "content": "private String formatRelationList(List<Relation> value)\n {\n String result = null;\n\n if (value != null && value.size...
[ { "content": "This method is called to format a relation.\n\n@param relation relation instance\n@return formatted relation instance", "role": "user" }, { "content": "private String formatRelation(Relation relation)\n {\n String result = null;\n\n if (relation != null)\n {\n ...
[ { "content": "This method formats a time unit.\n\n@param timeUnit time unit instance\n@return formatted time unit instance", "role": "user" }, { "content": "private String formatTimeUnit(TimeUnit timeUnit)\n {\n int units = timeUnit.getValue();\n String result;\n String[][] unitName...
[ { "content": "Converts a value to the appropriate type.\n\n@param type target type\n@param value input value\n@return output value", "role": "user" }, { "content": "@SuppressWarnings(\"unchecked\") private Object formatType(DataType type, Object value)\n {\n switch (type)\n {\n c...
[ { "content": "Retrieve a boolean value.\n\n@param name column name\n@return boolean value", "role": "user" }, { "content": "public final boolean getBoolean(String name)\n {\n boolean result = false;\n Boolean value = (Boolean) getObject(name);\n if (value != null)\n {\n ...
[ { "content": "Method used to instantiate the appropriate input stream reader,\na standard one, or one which can deal with \"encrypted\" data.\n\n@param directory directory entry\n@param name file name\n@return new input stream\n@throws IOException", "role": "user" }, { "content": "public InputStream...
[ { "content": "Maps an integer field ID to a field type.\n\n@param field field ID\n@return field type", "role": "user" }, { "content": "private TaskField getTaskField(int field)\n {\n TaskField result = MPPTaskField14.getInstance(field);\n\n if (result != null)\n {\n switch (...
[ { "content": "This method is called to ensure that after a project file has been\nread, the cached unique ID values used to generate new unique IDs\nstart after the end of the existing set of unique IDs.", "role": "user" }, { "content": "public void updateUniqueCounters()\n {\n //\n // U...
[ { "content": "Returns the earlier of two dates, handling null values. A non-null Date\nis always considered to be earlier than a null Date.\n\n@param d1 Date instance\n@param d2 Date instance\n@return Date earliest date", "role": "user" }, { "content": "public static Date min(Date d1, Date d2)\n {...
[ { "content": "Returns the later of two dates, handling null values. A non-null Date\nis always considered to be later than a null Date.\n\n@param d1 Date instance\n@param d2 Date instance\n@return Date latest date", "role": "user" }, { "content": "public static Date max(Date d1, Date d2)\n {\n ...
[ { "content": "This utility method calculates the difference in working\ntime between two dates, given the context of a task.\n\n@param task parent task\n@param date1 first date\n@param date2 second date\n@param format required format for the resulting duration\n@return difference in working time between the two...
[ { "content": "Creates a date from the equivalent long value. This conversion\ntakes account of the time zone.\n\n@param date date expressed as a long integer\n@return new Date instance", "role": "user" }, { "content": "public static Date getDateFromLong(long date)\n {\n TimeZone tz = TimeZone...
[ { "content": "Creates a timestamp from the equivalent long value. This conversion\ntakes account of the time zone and any daylight savings time.\n\n@param timestamp timestamp expressed as a long integer\n@return new Date instance", "role": "user" }, { "content": "public static Date getTimestampFromL...
[ { "content": "Create a Date instance representing a specific time.\n\n@param hour hour 0-23\n@param minutes minutes 0-59\n@return new Date instance", "role": "user" }, { "content": "public static Date getTime(int hour, int minutes)\n {\n Calendar cal = popCalendar();\n cal.set(Calendar.H...
[ { "content": "Given a date represented by a Calendar instance, set the time\ncomponent of the date based on the hours and minutes of the\ntime supplied by the Date instance.\n\n@param cal Calendar instance representing the date\n@param time Date instance representing the time of day", "role": "user" }, ...
[ { "content": "Given a date represented by a Date instance, set the time\ncomponent of the date based on the hours and minutes of the\ntime supplied by the Date instance.\n\n@param date Date instance representing the date\n@param canonicalTime Date instance representing the time of day\n@return new Date instance...
[ { "content": "Add a number of days to the supplied date.\n\n@param date start date\n@param days number of days to add\n@return new date", "role": "user" }, { "content": "public static Date addDays(Date date, int days)\n {\n Calendar cal = popCalendar(date);\n cal.add(Calendar.DAY_OF_YEA...
[ { "content": "Acquire a calendar instance.\n\n@return Calendar instance", "role": "user" }, { "content": "public static Calendar popCalendar()\n {\n Calendar result;\n Deque<Calendar> calendars = CALENDARS.get();\n if (calendars.isEmpty())\n {\n result = Calendar.getIns...
[ { "content": "Read a list of fixed sized blocks from the input stream.\n\n@return List of MapRow instances representing the fixed size blocks", "role": "user" }, { "content": "public List<MapRow> read() throws IOException\n {\n List<MapRow> result = new ArrayList<MapRow>();\n int fileCou...
[ { "content": "This method reads a single byte from the input stream.\n\n@param is the input stream\n@return byte value\n@throws IOException on file read error or EOF", "role": "user" }, { "content": "protected int readByte(InputStream is) throws IOException\n {\n byte[] data = new byte[1];\n ...
[ { "content": "This method reads a two byte integer from the input stream.\n\n@param is the input stream\n@return integer value\n@throws IOException on file read error or EOF", "role": "user" }, { "content": "protected int readShort(InputStream is) throws IOException\n {\n byte[] data = new by...
[ { "content": "This method reads a four byte integer from the input stream.\n\n@param is the input stream\n@return byte value\n@throws IOException on file read error or EOF", "role": "user" }, { "content": "protected int readInt(InputStream is) throws IOException\n {\n byte[] data = new byte[4...
[ { "content": "This method reads a byte array from the input stream.\n\n@param is the input stream\n@param size number of bytes to read\n@return byte array\n@throws IOException on file read error or EOF", "role": "user" }, { "content": "protected byte[] readByteArray(InputStream is, int size) throws ...
[ { "content": "Decode PKWare Compression Library stream.\n\nFormat notes:\n\n- First byte is 0 if literals are uncoded or 1 if they are coded. Second\nbyte is 4, 5, or 6 for the number of extra bits in the distance code.\nThis is the base-2 logarithm of the dictionary size minus six.\n\n- Compressed data is a c...
[ { "content": "Decode a code from the stream s using huffman table h. Return the symbol or\na negative value if there is an error. If all of the lengths are zero, i.e.\nan empty code, or if the code is incomplete and an invalid code is received,\nthen -9 is returned after reading MAXBITS bits.\n\nFormat notes:...
[ { "content": "Ensures that the start and end dates for ranges fit within the\nworking times for a given day.\n\n@param calendar current calendar\n@param list assignment data", "role": "user" }, { "content": "private void validateSameDay(ProjectCalendar calendar, LinkedList<TimephasedWork> list)\n ...
[ { "content": "Creates a new Table instance from data extracted from an MPP file.\n\n@param file parent project file\n@param data fixed data\n@param varMeta var meta\n@param varData var data\n@return Table instance", "role": "user" }, { "content": "public Table createTable(ProjectFile file, byte[] da...
[ { "content": "Parse a string representation of a Boolean value.\nXER files sometimes have \"N\" and \"Y\" to indicate boolean\n\n@param value string representation\n@return Boolean value", "role": "user" }, { "content": "private final boolean parseBoolean(String value)\n {\n return value != n...
[ { "content": "Read activity code types and values.\n\n@param types activity code type data\n@param typeValues activity code value data\n@param assignments activity code task assignments", "role": "user" }, { "content": "public void processActivityCodes(List<Row> types, List<Row> typeValues, List<Row...
[ { "content": "Process data for an individual calendar.\n\n@param row calendar data", "role": "user" }, { "content": "public void processCalendar(Row row)\n {\n ProjectCalendar calendar = m_project.addCalendar();\n\n Integer id = row.getInteger(\"clndr_id\");\n m_calMap.put(id, calen...
[ { "content": "Process calendar days of the week.\n\n@param calendar project calendar\n@param root calendar data", "role": "user" }, { "content": "private void processCalendarDays(ProjectCalendar calendar, Record root)\n {\n // Retrieve working hours ...\n Record daysOfWeek = root.getChil...
[ { "content": "Process hours in a working day.\n\n@param calendar project calendar\n@param dayRecord working day data", "role": "user" }, { "content": "private void processCalendarHours(ProjectCalendar calendar, Record dayRecord)\n {\n // ... for each day of the week\n Day day = Day.getIn...
[ { "content": "Parses a record containing hours and add them to a container.\n\n@param ranges hours container\n@param hoursRecord hours record", "role": "user" }, { "content": "private void addHours(ProjectCalendarDateRanges ranges, Record hoursRecord)\n {\n if (hoursRecord.getValue() != null)...
[ { "content": "Retrieve the correct calendar for a resource.\n\n@param calendarID calendar ID\n@return calendar for resource", "role": "user" }, { "content": "private ProjectCalendar getResourceCalendar(Integer calendarID)\n {\n ProjectCalendar result = null;\n if (calendarID != null)\n ...
[ { "content": "Determine which field the Activity ID has been mapped to.\n\n@param map field map\n@return field", "role": "user" }, { "content": "private FieldType getActivityIDField(Map<FieldType, String> map)\n {\n FieldType result = null;\n for (Map.Entry<FieldType, String> entry : map...
[ { "content": "Configure a new user defined field.\n\n@param fieldType field type\n@param dataType field data type\n@param name field name", "role": "user" }, { "content": "private void addUserDefinedField(FieldTypeClass fieldType, UserFieldDataType dataType, String name)\n {\n try\n {\n ...
[ { "content": "Adds a user defined field value to a task.\n\n@param fieldType field type\n@param container FieldContainer instance\n@param row UDF data", "role": "user" }, { "content": "private void addUDFValue(FieldTypeClass fieldType, FieldContainer container, Row row)\n {\n Integer fieldId ...
[ { "content": "Populate the UDF values for this entity.\n\n@param tableName parent table name\n@param type entity type\n@param container entity\n@param uniqueID entity Unique ID", "role": "user" }, { "content": "private void populateUserDefinedFieldValues(String tableName, FieldTypeClass type, FieldC...
[ { "content": "Code common to both XER and database readers to extract\ncurrency format data.\n\n@param row row containing currency data", "role": "user" }, { "content": "public void processDefaultCurrency(Row row)\n {\n ProjectProperties properties = m_project.getProjectProperties();\n p...
[ { "content": "Generic method to extract Primavera fields and assign to MPXJ fields.\n\n@param map map of MPXJ field types and Primavera field names\n@param row Primavera data container\n@param container MPXJ data contain", "role": "user" }, { "content": "private void processFields(Map<FieldType, Str...
[ { "content": "Apply aliases to task and resource fields.\n\n@param aliases map of aliases", "role": "user" }, { "content": "private void applyAliases(Map<FieldType, String> aliases)\n {\n CustomFieldContainer fields = m_project.getCustomFields();\n for (Map.Entry<FieldType, String> entry...
[ { "content": "Determine which type of percent complete is used on on this task,\nand calculate the required value.\n\n@param row task data\n@return percent complete value", "role": "user" }, { "content": "private Number calculatePercentComplete(Row row)\n {\n Number result;\n switch (Per...
[ { "content": "Calculate the units percent complete.\n\n@param row task data\n@return percent complete", "role": "user" }, { "content": "private Number calculateUnitsPercentComplete(Row row)\n {\n double result = 0;\n\n double actualWorkQuantity = NumberHelper.getDouble(row.getDouble(\"ac...
[ { "content": "Calculate the duration percent complete.\n\n@param row task data\n@return percent complete", "role": "user" }, { "content": "private Number calculateDurationPercentComplete(Row row)\n {\n double result = 0;\n double targetDuration = row.getDuration(\"target_drtn_hr_cnt\").g...
[ { "content": "Retrieve the default mapping between MPXJ resource fields and Primavera resource field names.\n\n@return mapping", "role": "user" }, { "content": "public static Map<FieldType, String> getDefaultResourceFieldMap()\n {\n Map<FieldType, String> map = new LinkedHashMap<FieldType, St...
[ { "content": "Retrieve the default mapping between MPXJ task fields and Primavera wbs field names.\n\n@return mapping", "role": "user" }, { "content": "public static Map<FieldType, String> getDefaultWbsFieldMap()\n {\n Map<FieldType, String> map = new LinkedHashMap<FieldType, String>();\n\n ...
[ { "content": "Retrieve the default mapping between MPXJ task fields and Primavera task field names.\n\n@return mapping", "role": "user" }, { "content": "public static Map<FieldType, String> getDefaultTaskFieldMap()\n {\n Map<FieldType, String> map = new LinkedHashMap<FieldType, String>();\n\n...
[ { "content": "Retrieve the default mapping between MPXJ assignment fields and Primavera assignment field names.\n\n@return mapping", "role": "user" }, { "content": "public static Map<FieldType, String> getDefaultAssignmentFieldMap()\n {\n Map<FieldType, String> map = new LinkedHashMap<FieldTy...
[ { "content": "Retrieve the default aliases to be applied to MPXJ task and resource fields.\n\n@return map of aliases", "role": "user" }, { "content": "public static Map<FieldType, String> getDefaultAliases()\n {\n Map<FieldType, String> map = new HashMap<FieldType, String>();\n\n map.put...
[ { "content": "This method opens the named project, applies the named filter\nand displays the filtered list of tasks or resources. If an\ninvalid filter name is supplied, a list of valid filter names\nis shown.\n\n@param filename input file name\n@param filtername input filter name", "role": "user" }, {...
[ { "content": "This utility displays a list of available task filters, and a\nlist of available resource filters.\n\n@param project project file", "role": "user" }, { "content": "private static void displayAvailableFilters(ProjectFile project)\n {\n System.out.println(\"Unknown filter name sup...
[ { "content": "Apply a filter to the list of all tasks, and show the results.\n\n@param project project file\n@param filter filter", "role": "user" }, { "content": "private static void processTaskFilter(ProjectFile project, Filter filter)\n {\n for (Task task : project.getTasks())\n {\n ...
[ { "content": "Apply a filter to the list of all resources, and show the results.\n\n@param project project file\n@param filter filter", "role": "user" }, { "content": "private static void processResourceFilter(ProjectFile project, Filter filter)\n {\n for (Resource resource : project.getResou...
[ { "content": "Convert one project file format to another.\n\n@param inputFile input file\n@param outputFile output file\n@throws Exception", "role": "user" }, { "content": "public void process(String inputFile, String outputFile) throws Exception\n {\n System.out.println(\"Reading input file ...
[ { "content": "Use the universal project reader to open the file.\nThrow an exception if we can't determine the file type.\n\n@param inputFile file name\n@return ProjectFile instance", "role": "user" }, { "content": "private ProjectFile readFile(String inputFile) throws MPXJException\n {\n Pro...
[ { "content": "This method extracts project properties from a Phoenix file.\n\n@param phoenixSettings Phoenix settings\n@param storepoint Current storepoint", "role": "user" }, { "content": "private void readProjectProperties(Settings phoenixSettings, Storepoint storepoint)\n {\n ProjectProper...
[ { "content": "This method extracts calendar data from a Phoenix file.\n\n@param phoenixProject Root node of the Phoenix file", "role": "user" }, { "content": "private void readCalendars(Storepoint phoenixProject)\n {\n Calendars calendars = phoenixProject.getCalendars();\n if (calendars ...
[ { "content": "This method extracts data for a single calendar from a Phoenix file.\n\n@param calendar calendar data", "role": "user" }, { "content": "private void readCalendar(Calendar calendar)\n {\n // Create the calendar\n ProjectCalendar mpxjCalendar = m_projectFile.addCalendar();\n ...
[ { "content": "This method extracts resource data from a Phoenix file.\n\n@param phoenixProject parent node for resources", "role": "user" }, { "content": "private void readResources(Storepoint phoenixProject)\n {\n Resources resources = phoenixProject.getResources();\n if (resources != n...
[ { "content": "This method extracts data for a single resource from a Phoenix file.\n\n@param phoenixResource resource data\n@return Resource instance", "role": "user" }, { "content": "private Resource readResource(net.sf.mpxj.phoenix.schema.Project.Storepoints.Storepoint.Resources.Resource phoenixRe...
[ { "content": "Read phases and activities from the Phoenix file to create the task hierarchy.\n\n@param phoenixProject all project data\n@param storepoint storepoint containing current project data", "role": "user" }, { "content": "private void readTasks(Project phoenixProject, Storepoint storepoint)...
[ { "content": "Map from an activity code value UUID to the actual value itself, and its\nsequence number.\n\n@param storepoint storepoint containing current project data", "role": "user" }, { "content": "private void processActivityCodes(Storepoint storepoint)\n {\n for (Code code : storepoint...
[ { "content": "Find the current layout and extract the activity code order and visibility.\n\n@param phoenixProject phoenix project data", "role": "user" }, { "content": "private void processLayouts(Project phoenixProject)\n {\n //\n // Find the active layout\n //\n Layout activ...
[ { "content": "Find the current active layout.\n\n@param phoenixProject phoenix project data\n@return current active layout", "role": "user" }, { "content": "private Layout getActiveLayout(Project phoenixProject)\n {\n //\n // Start with the first layout we find\n //\n Layout ac...
[ { "content": "Process the set of activities from the Phoenix file.\n\n@param phoenixProject project data", "role": "user" }, { "content": "private void processActivities(Storepoint phoenixProject)\n {\n final AlphanumComparator comparator = new AlphanumComparator();\n List<Activity> acti...
[ { "content": "Create a Task instance from a Phoenix activity.\n\n@param activity Phoenix activity data", "role": "user" }, { "content": "private void processActivity(Activity activity)\n {\n Task task = getParentTask(activity).addTask();\n task.setText(1, activity.getId());\n\n task...
[ { "content": "Returns true if the activity is a milestone.\n\n@param activity Phoenix activity\n@return true if the activity is a milestone", "role": "user" }, { "content": "private boolean activityIsMilestone(Activity activity)\n {\n String type = activity.getType();\n return type != nu...
[ { "content": "Returns true if the activity is a start milestone.\n\n@param activity Phoenix activity\n@return true if the activity is a milestone", "role": "user" }, { "content": "private boolean activityIsStartMilestone(Activity activity)\n {\n String type = activity.getType();\n return...
[ { "content": "Retrieves the parent task for a Phoenix activity.\n\n@param activity Phoenix activity\n@return parent task", "role": "user" }, { "content": "private ChildTaskContainer getParentTask(Activity activity)\n {\n //\n // Make a map of activity codes and their values for this acti...
[ { "content": "Locates a task within a child task container which matches the supplied UUID.\n\n@param parent child task container\n@param uuid required UUID\n@return Task instance or null if the task is not found", "role": "user" }, { "content": "private Task findChildTaskByUUID(ChildTaskContainer p...
[ { "content": "Reads Phoenix resource assignments.\n\n@param mpxjResource MPXJ resource\n@param res Phoenix resource", "role": "user" }, { "content": "private void readAssignments(Resource mpxjResource, net.sf.mpxj.phoenix.schema.Project.Storepoints.Storepoint.Resources.Resource res)\n {\n for...
[ { "content": "Read a single resource assignment.\n\n@param resource MPXJ resource\n@param assignment Phoenix assignment", "role": "user" }, { "content": "private void readAssignment(Resource resource, Assignment assignment)\n {\n Task task = m_activityMap.get(assignment.getActivity());\n ...
[ { "content": "Read task relationships from a Phoenix file.\n\n@param phoenixProject Phoenix project data", "role": "user" }, { "content": "private void readRelationships(Storepoint phoenixProject)\n {\n for (Relationship relation : phoenixProject.getRelationships().getRelationship())\n {...
[ { "content": "Read an individual Phoenix task relationship.\n\n@param relation Phoenix task relationship", "role": "user" }, { "content": "private void readRelation(Relationship relation)\n {\n Task predecessor = m_activityMap.get(relation.getPredecessor());\n Task successor = m_activity...
[ { "content": "For a given activity, retrieve a map of the activity code values which have been assigned to it.\n\n@param activity target activity\n@return map of activity code value UUIDs", "role": "user" }, { "content": "Map<UUID, UUID> getActivityCodes(Activity activity)\n {\n Map<UUID, UUI...
[ { "content": "Retrieve the most recent storepoint.\n\n@param phoenixProject project data\n@return Storepoint instance", "role": "user" }, { "content": "private Storepoint getCurrentStorepoint(Project phoenixProject)\n {\n List<Storepoint> storepoints = phoenixProject.getStorepoints().getStore...
[ { "content": "Read data from the table. Return a reference to the current\ninstance to allow method chaining.\n\n@return reader instance", "role": "user" }, { "content": "public TableReader read() throws IOException\n {\n int tableHeader = m_stream.readInt();\n if (tableHeader != 0x39AF5...
[ { "content": "Read the optional row header and UUID.\n\n@param stream input stream\n@param map row map", "role": "user" }, { "content": "protected void readUUID(StreamReader stream, Map<String, Object> map) throws IOException\n {\n int unknown0Size = stream.getMajorVersion() > 5 ? 8 : 16;\n ...