conversation listlengths 2 2 |
|---|
[
{
"content": "This method lists all tasks defined in the file in a hierarchical\nformat, reflecting the parent-child relationships between them.\n\n@param file MPX file",
"role": "user"
},
{
"content": "private static void listHierarchy(ProjectFile file)\n {\n for (Task task : file.getChildTa... |
[
{
"content": "Helper method called recursively to list child tasks.\n\n@param task task whose children are to be displayed\n@param indent whitespace used to indent hierarchy levels",
"role": "user"
},
{
"content": "private static void listHierarchy(Task task, String indent)\n {\n for (Task ch... |
[
{
"content": "This method lists all resource assignments defined in the file.\n\n@param file MPX file",
"role": "user"
},
{
"content": "private static void listAssignments(ProjectFile file)\n {\n Task task;\n Resource resource;\n String taskName;\n String resourceName;\n\n ... |
[
{
"content": "Dump timephased work for an assignment.\n\n@param assignment resource assignment",
"role": "user"
},
{
"content": "private static void listTimephasedWork(ResourceAssignment assignment)\n {\n Task task = assignment.getTask();\n int days = (int) ((task.getFinish().getTime() -... |
[
{
"content": "This method displays the resource assignments for each task. This time\nrather than just iterating through the list of all assignments in\nthe file, we extract the assignments on a task-by-task basis.\n\n@param file MPX file",
"role": "user"
},
{
"content": "private static void listAss... |
[
{
"content": "This method displays the resource assignments for each resource. This time\nrather than just iterating through the list of all assignments in\nthe file, we extract the assignments on a resource-by-resource basis.\n\n@param file MPX file",
"role": "user"
},
{
"content": "private static ... |
[
{
"content": "This method lists any notes attached to tasks.\n\n@param file MPX file",
"role": "user"
},
{
"content": "private static void listTaskNotes(ProjectFile file)\n {\n for (Task task : file.getTasks())\n {\n String notes = task.getNotes();\n\n if (notes.length() ... |
[
{
"content": "This method lists any notes attached to resources.\n\n@param file MPX file",
"role": "user"
},
{
"content": "private static void listResourceNotes(ProjectFile file)\n {\n for (Resource resource : file.getResources())\n {\n String notes = resource.getNotes();\n\n ... |
[
{
"content": "This method lists task predecessor and successor relationships.\n\n@param file project file",
"role": "user"
},
{
"content": "private static void listRelationships(ProjectFile file)\n {\n for (Task task : file.getTasks())\n {\n System.out.print(task.getID());\n ... |
[
{
"content": "Internal utility to dump relationship lists in a structured format\nthat can easily be compared with the tabular data in MS Project.\n\n@param relations relation list",
"role": "user"
},
{
"content": "private static void dumpRelationList(List<Relation> relations)\n {\n if (relat... |
[
{
"content": "List the slack values for each task.\n\n@param file ProjectFile instance",
"role": "user"
},
{
"content": "private static void listSlack(ProjectFile file)\n {\n for (Task task : file.getTasks())\n {\n System.out.println(task.getName() + \" Total Slack=\" + task.getT... |
[
{
"content": "List details of all calendars in the file.\n\n@param file ProjectFile instance",
"role": "user"
},
{
"content": "private static void listCalendars(ProjectFile file)\n {\n for (ProjectCalendar cal : file.getCalendars())\n {\n System.out.println(cal.toString());\n ... |
[
{
"content": "This is a convenience method used to add a calendar called\n\"Standard\" to the project, and populate it with a default working week\nand default working hours.\n\n@return a new default calendar",
"role": "user"
},
{
"content": "public ProjectCalendar addDefaultBaseCalendar()\n {\n ... |
[
{
"content": "This is a convenience method to add a default derived\ncalendar to the project.\n\n@return new ProjectCalendar instance",
"role": "user"
},
{
"content": "public ProjectCalendar addDefaultDerivedCalendar()\n {\n ProjectCalendar calendar = add();\n\n calendar.setWorkingDay(Da... |
[
{
"content": "Retrieves the named calendar. This method will return\nnull if the named calendar is not located.\n\n@param calendarName name of the required calendar\n@return ProjectCalendar instance",
"role": "user"
},
{
"content": "public ProjectCalendar getByName(String calendarName)\n {\n ... |
[
{
"content": "Read project data from a database.\n\n@return ProjectFile instance\n@throws MPXJException",
"role": "user"
},
{
"content": "public ProjectFile read() throws MPXJException\n {\n MPD9DatabaseReader reader = new MPD9DatabaseReader();\n reader.setProjectID(m_projectID);\n ... |
[
{
"content": "This is a convenience method which reads the first project\nfrom the named MPD file using the JDBC-ODBC bridge driver.\n\n@param accessDatabaseFileName access database file name\n@return ProjectFile instance\n@throws MPXJException",
"role": "user"
},
{
"content": "@Override public Proj... |
[
{
"content": "Retrieves a ProjectWriter instance which can write a file of the\ntype specified by the supplied file name.\n\n@param name file name\n@return ProjectWriter instance",
"role": "user"
},
{
"content": "public static ProjectWriter getProjectWriter(String name) throws InstantiationException... |
[
{
"content": "Reads non outline code custom field values and populates container.",
"role": "user"
},
{
"content": "private void processCustomFieldValues()\n {\n byte[] data = m_projectProps.getByteArray(Props.TASK_FIELD_ATTRIBUTES);\n if (data != null)\n {\n int index = 0;\... |
[
{
"content": "Reads outline code custom field values and populates container.",
"role": "user"
},
{
"content": "private void processOutlineCodeValues() throws IOException\n {\n DirectoryEntry outlineCodeDir = (DirectoryEntry) m_projectDir.getEntry(\"TBkndOutlCode\");\n FixedMeta fm = new... |
[
{
"content": "Populate the container, converting raw data into Java types.\n\n@param field custom field to which these values belong\n@param values raw value data\n@param descriptions raw description data",
"role": "user"
},
{
"content": "private void populateContainer(FieldType field, byte[] values... |
[
{
"content": "Populate the container from outline code data.\n\n@param field field type\n@param items pairs of values and descriptions",
"role": "user"
},
{
"content": "private void populateContainer(FieldType field, List<Pair<String, String>> items)\n {\n CustomField config = m_container.get... |
[
{
"content": "Convert raw data into Java types.\n\n@param type data type\n@param data raw data\n@return list of Java object",
"role": "user"
},
{
"content": "private List<Object> convertType(DataType type, byte[] data)\n {\n List<Object> result = new ArrayList<Object>();\n int index = 0;... |
[
{
"content": "Retrieve a boolean field.\n\n@param type field type\n@return field data",
"role": "user"
},
{
"content": "public boolean getBoolean(FastTrackField type)\n {\n boolean result = false;\n Object value = getObject(type);\n if (value != null)\n {\n result = Boo... |
[
{
"content": "Retrieve a timestamp field.\n\n@param dateName field containing the date component\n@param timeName field containing the time component\n@return Date instance",
"role": "user"
},
{
"content": "public Date getTimestamp(FastTrackField dateName, FastTrackField timeName)\n {\n Date ... |
[
{
"content": "Retrieve a duration field.\n\n@param type field type\n@return Duration instance",
"role": "user"
},
{
"content": "public Duration getDuration(FastTrackField type)\n {\n Double value = (Double) getObject(type);\n return value == null ? null : Duration.getInstance(value.doubl... |
[
{
"content": "Retrieve a work field.\n\n@param type field type\n@return Duration instance",
"role": "user"
},
{
"content": "public Duration getWork(FastTrackField type)\n {\n Double value = (Double) getObject(type);\n return value == null ? null : Duration.getInstance(value.doubleValue()... |
[
{
"content": "Retrieve a UUID field.\n\n@param type field type\n@return UUID instance",
"role": "user"
},
{
"content": "public UUID getUUID(FastTrackField type)\n {\n String value = getString(type);\n UUID result = null;\n if (value != null && !value.isEmpty() && value.length() >= 3... |
[
{
"content": "This method maps the currency symbol position from the\nrepresentation used in the MPP file to the representation\nused by MPX.\n\n@param value MPP symbol position\n@return MPX symbol position",
"role": "user"
},
{
"content": "public static CurrencySymbolPosition getSymbolPosition(int ... |
[
{
"content": "Reads a duration value. This method relies on the fact that\nthe units of the duration have been specified elsewhere.\n\n@param value Duration value\n@param type type of units of the duration\n@return Duration instance",
"role": "user"
},
{
"content": "public static final Duration getD... |
[
{
"content": "Dump the contents of a row from an MPD file.\n\n@param row row data",
"role": "user"
},
{
"content": "public static void dumpRow(Map<String, Object> row)\n {\n for (Entry<String, Object> entry : row.entrySet())\n {\n Object value = entry.getValue();\n System... |
[
{
"content": "Generate a map file from a jar file.\n\n@param jarFile jar file\n@param mapFileName map file name\n@param mapClassMethods true if we want to produce .Net style class method names\n@throws XMLStreamException\n@throws IOException\n@throws ClassNotFoundException\n@throws IntrospectionException",
... |
[
{
"content": "Generate an IKVM map file.\n\n@param mapFileName map file name\n@param jarFile jar file containing code to be mapped\n@param mapClassMethods true if we want to produce .Net style class method names\n@throws IOException\n@throws XMLStreamException\n@throws ClassNotFoundException\n@throws Introspect... |
[
{
"content": "Add classes to the map file.\n\n@param writer XML stream writer\n@param jarFile jar file\n@param mapClassMethods true if we want to produce .Net style class method names\n@throws IOException\n@throws ClassNotFoundException\n@throws XMLStreamException\n@throws IntrospectionException",
"role": "... |
[
{
"content": "Add an individual class to the map file.\n\n@param loader jar file class loader\n@param jarEntry jar file entry\n@param writer XML stream writer\n@param mapClassMethods true if we want to produce .Net style class method names\n@throws ClassNotFoundException\n@throws XMLStreamException\n@throws Int... |
[
{
"content": "Process class properties.\n\n@param writer output stream\n@param methodSet set of methods processed\n@param aClass class being processed\n@throws IntrospectionException\n@throws XMLStreamException",
"role": "user"
},
{
"content": "private void processProperties(XMLStreamWriter writer, ... |
[
{
"content": "Add a simple property to the map file.\n\n@param writer xml stream writer\n@param name property name\n@param propertyType property type\n@param readMethod read method name\n@param writeMethod write method name\n@throws XMLStreamException",
"role": "user"
},
{
"content": "private void a... |
[
{
"content": "Converts a class into a signature token.\n\n@param c class\n@return signature token text",
"role": "user"
},
{
"content": "private String getTypeString(Class<?> c)\n {\n String result = TYPE_MAP.get(c);\n if (result == null)\n {\n result = c.getName();\n ... |
[
{
"content": "Hides the original Java-style method name using an attribute\nwhich should be respected by Visual Studio, the creates a new\nwrapper method using a .Net style method name.\n\nNote that this does not work for VB as it is case insensitive. Even\nthough Visual Studio won't show you the Java-style met... |
[
{
"content": "Used to determine if the current method should be ignored.\n\n@param name method name\n@return true if the method should be ignored",
"role": "user"
},
{
"content": "private boolean ignoreMethod(String name)\n {\n boolean result = false;\n\n for (String ignoredName : IGNORE... |
[
{
"content": "Creates a method signature.\n\n@param method Method instance\n@return method signature",
"role": "user"
},
{
"content": "private String createMethodSignature(Method method)\n {\n StringBuilder sb = new StringBuilder();\n sb.append(\"(\");\n for (Class<?> type : method.... |
[
{
"content": "This method determines whether the given date falls in the range of\ndates covered by this exception. Note that this method assumes that both\nthe start and end date of this exception have been set.\n\n@param date Date to be tested\n@return Boolean value",
"role": "user"
},
{
"content"... |
[
{
"content": "Updates the model. Ensures that we reset the columns widths.\n\n@param model table model",
"role": "user"
},
{
"content": "@Override public void setModel(TableModel model)\n {\n super.setModel(model);\n int columns = model.getColumnCount();\n TableColumnModel tableColu... |
[
{
"content": "This method is used to process an MPP14 file. This is the file format\nused by Project 14.\n\n@param reader parent file reader\n@param file parent MPP file\n@param root Root of the POI file system.",
"role": "user"
},
{
"content": "@Override public void process(MPPReader reader, Projec... |
[
{
"content": "Process the graphical indicator data.",
"role": "user"
},
{
"content": "private void processGraphicalIndicators()\n {\n GraphicalIndicatorReader graphicalIndicatorReader = new GraphicalIndicatorReader();\n graphicalIndicatorReader.process(m_file.getCustomFields(), m_file.ge... |
[
{
"content": "Read a list of sub projects.\n\n@param data byte array\n@param uniqueIDOffset offset of unique ID\n@param filePathOffset offset of file path\n@param fileNameOffset offset of file name\n@param subprojectIndex index of the subproject, used to calculate unique id offset",
"role": "user"
},
{
... |
[
{
"content": "Create an index of base font numbers and their associated base\nfont instances.\n@param data property data",
"role": "user"
},
{
"content": "private void processBaseFonts(byte[] data)\n {\n int offset = 0;\n\n int blockCount = MPPUtility.getShort(data, 0);\n offset += ... |
[
{
"content": "This method maps the task unique identifiers to their index number\nwithin the FixedData block.\n\n@param fieldMap field map\n@param taskFixedMeta Fixed meta data for this task\n@param taskFixedData Fixed data for this task\n@param taskVarData Variable task data\n@return Mapping between task ident... |
[
{
"content": "MPP14 files seem to exhibit some occasional weirdness\nwith duplicate ID values which leads to the task structure\nbeing reported incorrectly. The following method attempts to correct this.\nThe method uses ordering data embedded in the file to reconstruct\nthe correct ID order of the tasks.",
... |
[
{
"content": "This method is used to extract the resource hyperlink attributes\nfrom a block of data and call the appropriate modifier methods\nto configure the specified task object.\n\n@param resource resource instance\n@param data hyperlink data block",
"role": "user"
},
{
"content": "private voi... |
[
{
"content": "Iterate through a set of bit field flags and set the value for each one\nin the supplied container.\n\n@param flags bit field flags\n@param container field container\n@param data source data",
"role": "user"
},
{
"content": "private void readBitFields(MppBitFlag[] flags, FieldContainer... |
[
{
"content": "Reads the table data from an input stream and breaks\nit down into rows.\n\n@param is input stream",
"role": "user"
},
{
"content": "public void read(InputStream is) throws IOException\n {\n byte[] headerBlock = new byte[20];\n is.read(headerBlock);\n\n int headerLengt... |
[
{
"content": "Adds a row to the internal storage, indexed by primary key.\n\n@param uniqueID unique ID of the row\n@param map row data as a simpe map",
"role": "user"
},
{
"content": "protected void addRow(int uniqueID, Map<String, Object> map)\n {\n m_rows.put(Integer.valueOf(uniqueID), new ... |
[
{
"content": "Given a block of data representing completed work, this method will\nretrieve a set of TimephasedWork instances which represent\nthe day by day work carried out for a specific resource assignment.\n\n@param calendar calendar on which date calculations are based\n@param resourceAssignment resource ... |
[
{
"content": "Test the list of TimephasedWork instances to see\nif any of them have been modified.\n\n@param list list of TimephasedWork instances\n@return boolean flag",
"role": "user"
},
{
"content": "public boolean getWorkModified(List<TimephasedWork> list)\n {\n boolean result = false;\n ... |
[
{
"content": "Extracts baseline work from the MPP file for a specific baseline.\nReturns null if no baseline work is present, otherwise returns\na list of timephased work items.\n\n@param assignment parent assignment\n@param calendar baseline calendar\n@param normaliser normaliser associated with this data\n@pa... |
[
{
"content": "Extracts baseline cost from the MPP file for a specific baseline.\nReturns null if no baseline cost is present, otherwise returns\na list of timephased work items.\n\n@param calendar baseline calendar\n@param normaliser normaliser associated with this data\n@param data timephased baseline work dat... |
[
{
"content": "Process the timephased resource assignment data to work out the\nsplit structure of the task.\n\n@param task parent task\n@param timephasedComplete completed resource assignment work\n@param timephasedPlanned planned resource assignment work",
"role": "user"
},
{
"content": "public voi... |
[
{
"content": "Populate the properties indicating the source of this schedule.\n\n@param properties project properties",
"role": "user"
},
{
"content": "private void updateScheduleSource(ProjectProperties properties)\n {\n // Rudimentary identification of schedule source\n if (properties.... |
[
{
"content": "This method extracts calendar data from an MSPDI file.\n\n@param project Root node of the MSPDI file\n@param map Map of calendar UIDs to names",
"role": "user"
},
{
"content": "private void readCalendars(Project project, HashMap<BigInteger, ProjectCalendar> map)\n {\n Project.Ca... |
[
{
"content": "The way calendars are stored in an MSPDI file means that there\ncan be forward references between the base calendar unique ID for a\nderived calendar, and the base calendar itself. To get around this,\nwe initially populate the base calendar name attribute with the\nbase calendar unique ID, and no... |
[
{
"content": "This method extracts data for a single calendar from an MSPDI file.\n\n@param calendar Calendar data\n@param map Map of calendar UIDs to names\n@param baseCalendars list of base calendars",
"role": "user"
},
{
"content": "private void readCalendar(Project.Calendars.Calendar calendar, H... |
[
{
"content": "This method extracts data for a single day from an MSPDI file.\n\n@param calendar Calendar data\n@param day Day data\n@param readExceptionsFromDays read exceptions form day definitions",
"role": "user"
},
{
"content": "private void readDay(ProjectCalendar calendar, Project.Calendars.Ca... |
[
{
"content": "This method extracts data for a normal working day from an MSPDI file.\n\n@param calendar Calendar data\n@param weekDay Day data",
"role": "user"
},
{
"content": "private void readNormalDay(ProjectCalendar calendar, Project.Calendars.Calendar.WeekDays.WeekDay weekDay)\n {\n int ... |
[
{
"content": "This method extracts data for an exception day from an MSPDI file.\n\n@param calendar Calendar data\n@param day Day data",
"role": "user"
},
{
"content": "private void readExceptionDay(ProjectCalendar calendar, Project.Calendars.Calendar.WeekDays.WeekDay day)\n {\n Project.Calen... |
[
{
"content": "Reads any exceptions present in the file. This is only used in MSPDI\nfile versions saved by Project 2007 and later.\n\n@param calendar XML calendar\n@param bc MPXJ calendar",
"role": "user"
},
{
"content": "private void readExceptions(Project.Calendars.Calendar calendar, ProjectCalend... |
[
{
"content": "Read a single calendar exception.\n\n@param bc parent calendar\n@param exception exception data",
"role": "user"
},
{
"content": "private void readException(ProjectCalendar bc, Project.Calendars.Calendar.Exceptions.Exception exception)\n {\n Date fromDate = exception.getTimePeri... |
[
{
"content": "Read recurring data for a calendar exception.\n\n@param bce MPXJ calendar exception\n@param exception XML calendar exception",
"role": "user"
},
{
"content": "private void readRecurringData(ProjectCalendarException bce, Project.Calendars.Calendar.Exceptions.Exception exception)\n {\n... |
[
{
"content": "Retrieve the frequency of an exception.\n\n@param exception XML calendar exception\n@return frequency",
"role": "user"
},
{
"content": "private Integer getFrequency(Project.Calendars.Calendar.Exceptions.Exception exception)\n {\n Integer period = NumberHelper.getInteger(exceptio... |
[
{
"content": "Read the work weeks associated with this calendar.\n\n@param xmlCalendar XML calendar object\n@param mpxjCalendar MPXJ calendar object",
"role": "user"
},
{
"content": "private void readWorkWeeks(Project.Calendars.Calendar xmlCalendar, ProjectCalendar mpxjCalendar)\n {\n WorkWee... |
[
{
"content": "This method extracts project extended attribute data from an MSPDI file.\n\n@param project Root node of the MSPDI file",
"role": "user"
},
{
"content": "private void readProjectExtendedAttributes(Project project)\n {\n Project.ExtendedAttributes attributes = project.getExtendedA... |
[
{
"content": "Read a single field alias from an extended attribute.\n\n@param attribute extended attribute",
"role": "user"
},
{
"content": "private void readFieldAlias(Project.ExtendedAttributes.ExtendedAttribute attribute)\n {\n String alias = attribute.getAlias();\n if (alias != null ... |
[
{
"content": "This method extracts resource data from an MSPDI file.\n\n@param project Root node of the MSPDI file\n@param calendarMap Map of calendar UIDs to names",
"role": "user"
},
{
"content": "private void readResources(Project project, HashMap<BigInteger, ProjectCalendar> calendarMap)\n {\n... |
[
{
"content": "Reads baseline values for the current resource.\n\n@param xmlResource MSPDI resource instance\n@param mpxjResource MPXJ resource instance",
"role": "user"
},
{
"content": "private void readResourceBaselines(Project.Resources.Resource xmlResource, Resource mpxjResource)\n {\n for... |
[
{
"content": "This method processes any extended attributes associated with a resource.\n\n@param xml MSPDI resource instance\n@param mpx MPX resource instance",
"role": "user"
},
{
"content": "private void readResourceExtendedAttributes(Project.Resources.Resource xml, Resource mpx)\n {\n for... |
[
{
"content": "Reads the cost rate tables from the file.\n\n@param resource parent resource\n@param rates XML cot rate tables",
"role": "user"
},
{
"content": "private void readCostRateTables(Resource resource, Rates rates)\n {\n if (rates == null)\n {\n CostRateTable table = new ... |
[
{
"content": "Reads the availability table from the file.\n\n@param resource MPXJ resource instance\n@param periods MSPDI availability periods",
"role": "user"
},
{
"content": "private void readAvailabilityTable(Resource resource, AvailabilityPeriods periods)\n {\n if (periods != null)\n ... |
[
{
"content": "This method extracts task data from an MSPDI file.\n\n@param project Root node of the MSPDI file",
"role": "user"
},
{
"content": "private void readTasks(Project project)\n {\n Project.Tasks tasks = project.getTasks();\n if (tasks != null)\n {\n int tasksWithou... |
[
{
"content": "Update the project properties from the project summary task.\n\n@param task project summary task",
"role": "user"
},
{
"content": "private void updateProjectProperties(Task task)\n {\n ProjectProperties props = m_projectFile.getProjectProperties();\n props.setComments(task.... |
[
{
"content": "Reads baseline values for the current task.\n\n@param xmlTask MSPDI task instance\n@param mpxjTask MPXJ task instance\n@param durationFormat duration format to use",
"role": "user"
},
{
"content": "private void readTaskBaselines(Project.Tasks.Task xmlTask, Task mpxjTask, TimeUnit durat... |
[
{
"content": "This method processes any extended attributes associated with a task.\n\n@param xml MSPDI task instance\n@param mpx MPX task instance",
"role": "user"
},
{
"content": "private void readTaskExtendedAttributes(Project.Tasks.Task xml, Task mpx)\n {\n for (Project.Tasks.Task.Extende... |
[
{
"content": "This method is used to retrieve the calendar associated\nwith a task. If no calendar is associated with a task, this method\nreturns null.\n\n@param task MSPDI task\n@return calendar instance",
"role": "user"
},
{
"content": "private ProjectCalendar getTaskCalendar(Project.Tasks.Task t... |
[
{
"content": "This method extracts predecessor data from an MSPDI file.\n\n@param task Task data",
"role": "user"
},
{
"content": "private void readPredecessors(Project.Tasks.Task task)\n {\n Integer uid = task.getUID();\n if (uid != null)\n {\n Task currTask = m_projectFile... |
[
{
"content": "This method extracts data for a single predecessor from an MSPDI file.\n\n@param currTask Current task object\n@param link Predecessor data",
"role": "user"
},
{
"content": "private void readPredecessor(Task currTask, Project.Tasks.Task.PredecessorLink link)\n {\n BigInteger uid... |
[
{
"content": "This method extracts assignment data from an MSPDI file.\n\n@param project Root node of the MSPDI file",
"role": "user"
},
{
"content": "private void readAssignments(Project project)\n {\n Project.Assignments assignments = project.getAssignments();\n if (assignments != null... |
[
{
"content": "Extracts assignment baseline data.\n\n@param assignment xml assignment\n@param mpx mpxj assignment",
"role": "user"
},
{
"content": "private void readAssignmentBaselines(Project.Assignments.Assignment assignment, ResourceAssignment mpx)\n {\n for (Project.Assignments.Assignment.... |
[
{
"content": "This method processes any extended attributes associated with a\nresource assignment.\n\n@param xml MSPDI resource assignment instance\n@param mpx MPX task instance",
"role": "user"
},
{
"content": "private void readAssignmentExtendedAttributes(Project.Assignments.Assignment xml, Resou... |
[
{
"content": "Test to determine if this is a split task.\n\n@param calendar current calendar\n@param list timephased resource assignment list\n@return boolean flag",
"role": "user"
},
{
"content": "private boolean isSplit(ProjectCalendar calendar, List<TimephasedWork> list)\n {\n boolean resu... |
[
{
"content": "Reads timephased assignment data.\n\n@param calendar current calendar\n@param assignment assignment data\n@param type flag indicating if this is planned or complete work\n@return list of timephased resource assignment instances",
"role": "user"
},
{
"content": "private LinkedList<Timep... |
[
{
"content": "Derive a calendar for a resource.\n\n@param parentCalendarID calendar from which resource calendar is derived\n@return new calendar for a resource",
"role": "user"
},
{
"content": "private ProjectCalendar deriveResourceCalendar(Integer parentCalendarID)\n {\n ProjectCalendar cal... |
[
{
"content": "Organises the data from Asta into a hierarchy and converts this into tasks.\n\n@param bars bar data\n@param expandedTasks expanded task data\n@param tasks task data\n@param milestones milestone data",
"role": "user"
},
{
"content": "public void processTasks(List<Row> bars, List<Row> ex... |
[
{
"content": "Builds the task hierarchy.\n\nNote that there are two distinct levels of organisation going on here. The first is the\nAsta \"summary\" organisation, where the user organises bars into summary groups. We are using this\nto create our hierarchy of tasks.\n\nThe second level displayed within a summa... |
[
{
"content": "Recursively descend through the hierarchy creating tasks.\n\n@param parent parent task\n@param parentName parent name\n@param rows rows to add as tasks to this parent",
"role": "user"
},
{
"content": "private void createTasks(ChildTaskContainer parent, String parentName, List<Row> row... |
[
{
"content": "Returns true if we should skip this bar, i.e. the bar only has a single child task.\n\n@param row bar row to test\n@return true if this bar should be skipped",
"role": "user"
},
{
"content": "private boolean skipBar(Row row)\n {\n List<Row> childRows = row.getChildRows();\n ... |
[
{
"content": "Adds a leaf node, which could be a task or a milestone.\n\n@param parentName parent bar name\n@param row row to add\n@param task task to populate with data from the row",
"role": "user"
},
{
"content": "private void populateLeaf(String parentName, Row row, Task task)\n {\n if (r... |
[
{
"content": "Populate a task from a Row instance.\n\n@param row Row instance\n@param task Task instance",
"role": "user"
},
{
"content": "private void populateTask(Row row, Task task)\n {\n //\"PROJID\"\n task.setUniqueID(row.getInteger(\"TASKID\"));\n //GIVEN_DURATIONTYPF\n /... |
[
{
"content": "Uses data from a bar to populate a task.\n\n@param row bar data\n@param task task to populate",
"role": "user"
},
{
"content": "private void populateBar(Row row, Task task)\n {\n Integer calendarID = row.getInteger(\"CALENDAU\");\n ProjectCalendar calendar = m_project.getCa... |
[
{
"content": "Populate a milestone from a Row instance.\n\n@param row Row instance\n@param task Task instance",
"role": "user"
},
{
"content": "private void populateMilestone(Row row, Task task)\n {\n task.setMilestone(true);\n //PROJID\n task.setUniqueID(row.getInteger(\"MILESTONEI... |
[
{
"content": "Convert a name into initials.\n\n@param name source name\n@return initials",
"role": "user"
},
{
"content": "private String getInitials(String name)\n {\n String result = null;\n\n if (name != null && name.length() != 0)\n {\n StringBuilder sb = new StringBuild... |
[
{
"content": "Asta Powerproject assigns an explicit calendar for each task. This method\nis used to find the most common calendar and use this as the default project\ncalendar. This allows the explicitly assigned task calendars to be removed.",
"role": "user"
},
{
"content": "private void deriveProj... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.