conversation listlengths 2 2 |
|---|
[
{
"content": "Determines the constraints relating to a task.\n\n@param row row data\n@param task Task instance",
"role": "user"
},
{
"content": "private void processConstraints(Row row, Task task)\n {\n ConstraintType constraintType = ConstraintType.AS_SOON_AS_POSSIBLE;\n Date constraint... |
[
{
"content": "Creates a map of work pattern rows indexed by the primary key.\n\n@param rows work pattern rows\n@return work pattern map",
"role": "user"
},
{
"content": "public Map<Integer, Row> createWorkPatternMap(List<Row> rows)\n {\n Map<Integer, Row> map = new HashMap<Integer, Row>();\n ... |
[
{
"content": "Creates a map between a calendar ID and a list of\nwork pattern assignment rows.\n\n@param rows work pattern assignment rows\n@return work pattern assignment map",
"role": "user"
},
{
"content": "public Map<Integer, List<Row>> createWorkPatternAssignmentMap(List<Row> rows)\n {\n ... |
[
{
"content": "Creates a map between a work pattern ID and a list of time entry rows.\n\n@param rows time entry rows\n@return time entry map",
"role": "user"
},
{
"content": "public Map<Integer, List<Row>> createTimeEntryMap(List<Row> rows)\n {\n Map<Integer, List<Row>> map = new HashMap<Integ... |
[
{
"content": "Creates a ProjectCalendar instance from the Asta data.\n\n@param calendarRow basic calendar data\n@param workPatternMap work pattern map\n@param workPatternAssignmentMap work pattern assignment map\n@param exceptionAssignmentMap exception assignment map\n@param timeEntryMap time entry map\n@param ... |
[
{
"content": "Populates a ProjectCalendarWeek instance from Asta work pattern data.\n\n@param week target ProjectCalendarWeek instance\n@param workPatternID target work pattern ID\n@param workPatternMap work pattern data\n@param timeEntryMap time entry map\n@param exceptionTypeMap exception type map",
"role... |
[
{
"content": "Extract note text.\n\n@param row task data\n@return note text",
"role": "user"
},
{
"content": "private String getNotes(Row row)\n {\n String notes = row.getString(\"NOTET\");\n if (notes != null)\n {\n if (notes.isEmpty())\n {\n notes = null... |
[
{
"content": "Adds any listeners attached to this reader to the reader created internally.\n\n@param reader internal project reader",
"role": "user"
},
{
"content": "private void addListeners(ProjectReader reader)\n {\n if (m_projectListeners != null)\n {\n for (ProjectListener l... |
[
{
"content": "Process a text-based PP file.\n\n@param inputStream file input stream\n@return ProjectFile instance",
"role": "user"
},
{
"content": "private ProjectFile readTextFile(InputStream inputStream) throws MPXJException\n {\n ProjectReader reader = new AstaTextFileReader();\n addL... |
[
{
"content": "Process a SQLite database PP file.\n\n@param inputStream file input stream\n@return ProjectFile instance",
"role": "user"
},
{
"content": "private ProjectFile readDatabaseFile(InputStream inputStream) throws MPXJException\n {\n ProjectReader reader = new AstaDatabaseFileReader()... |
[
{
"content": "This method allows us to peek into the OLE compound document to extract the file format.\nThis allows the UniversalProjectReader to determine if this is an MPP file, or if\nit is another type of OLE compound document.\n\n@param fs POIFSFileSystem instance\n@return file format name\n@throws IOExcep... |
[
{
"content": "Alternative entry point allowing an MPP file to be read from\na user-supplied POI file stream.\n\n@param fs POI file stream\n@return ProjectFile instance\n@throws MPXJException",
"role": "user"
},
{
"content": "public ProjectFile read(POIFSFileSystem fs) throws MPXJException\n {\n ... |
[
{
"content": "This method validates all relationships for a task, removing\nany which have been incorrectly read from the MPP file and\npoint to a parent task.\n\n@param task task under test",
"role": "user"
},
{
"content": "private void validationRelations(Task task)\n {\n List<Relation> pre... |
[
{
"content": "Retrieve an instance of the TaskField class based on the data read from an\nMPX file.\n\n@param value value from an MS Project file\n@return TaskField instance",
"role": "user"
},
{
"content": "public static TaskField getMpxjField(int value)\n {\n TaskField result = null;\n\n ... |
[
{
"content": "Retrieve the integer value used to represent a task field in an\nMPX file.\n\n@param value MPXJ task field value\n@return MPX field value",
"role": "user"
},
{
"content": "public static int getMpxField(int value)\n {\n int result = 0;\n\n if (value >= 0 && value < MPXJ_MPX_... |
[
{
"content": "Add a task to the project.\n\n@return new task instance",
"role": "user"
},
{
"content": "public Task add()\n {\n Task task = new Task(m_projectFile, (Task) null);\n add(task);\n m_projectFile.getChildTasks().add(task);\n return task;\n }",
"role": "assistan... |
[
{
"content": "Microsoft Project bases the order of tasks displayed on their ID\nvalue. This method takes the hierarchical structure of tasks\nrepresented in MPXJ and renumbers the ID values to ensure that\nthis structure is displayed as expected in Microsoft Project. This\nis typically used to deal with the cas... |
[
{
"content": "Called recursively to renumber child task IDs.\n\n@param parentTask parent task instance\n@param currentID current task ID\n@return updated current task ID",
"role": "user"
},
{
"content": "private int synchroizeTaskIDToHierarchy(Task parentTask, int currentID)\n {\n for (Task t... |
[
{
"content": "This method is used to recreate the hierarchical structure of the\nproject file from scratch. The method sorts the list of all tasks,\nthen iterates through it creating the parent-child structure defined\nby the outline level field.",
"role": "user"
},
{
"content": "public void updateS... |
[
{
"content": "Process an MPP file to make it anonymous.\n\n@param input input file name\n@param output output file name\n@throws Exception",
"role": "user"
},
{
"content": "private void process(String input, String output) throws MPXJException, IOException\n {\n //\n // Extract the proje... |
[
{
"content": "Converts plan text into anonymous text. Preserves upper case, lower case,\npunctuation, whitespace and digits while making the text unreadable.\n\n@param oldText text to replace\n@param replacements map of find/replace pairs",
"role": "user"
},
{
"content": "private void mapText(String... |
[
{
"content": "Convert a Java String instance into the equivalent array of single or\ndouble bytes.\n\n@param value Java String instance representing text\n@param unicode true if double byte characters are required\n@return byte array representing the supplied text",
"role": "user"
},
{
"content": "p... |
[
{
"content": "Compare an array of bytes with a subsection of a larger array of bytes.\n\n@param lhs small array of bytes\n@param rhs large array of bytes\n@param rhsOffset offset into larger array of bytes\n@return true if a match is found",
"role": "user"
},
{
"content": "private boolean compareByt... |
[
{
"content": "Create a handful of default currencies to keep Primavera happy.",
"role": "user"
},
{
"content": "private void writeCurrency()\n {\n ProjectProperties props = m_projectFile.getProjectProperties();\n CurrencyType currency = m_factory.createCurrencyType();\n m_apibo.getC... |
[
{
"content": "Map the currency separator character to a symbol name.\n\n@param c currency separator character\n@return symbol name",
"role": "user"
},
{
"content": "private String getSymbolName(char c)\n {\n String result = null;\n\n switch (c)\n {\n case ',':\n {\n ... |
[
{
"content": "Generate a currency format.\n\n@param position currency symbol position\n@return currency format",
"role": "user"
},
{
"content": "private String getCurrencyFormat(CurrencySymbolPosition position)\n {\n String result;\n\n switch (position)\n {\n case AFTER:\n ... |
[
{
"content": "Add UDFType objects to a PM XML file.\n\n@author kmahan\n@date 2014-09-24\n@author lsong\n@date 2015-7-24",
"role": "user"
},
{
"content": "private void writeUserFieldDefinitions()\n {\n for (CustomField cf : m_sortedCustomFieldsList)\n {\n if (cf.getFieldType() != ... |
[
{
"content": "This method writes data for an individual calendar to a PM XML file.\n\n@param mpxj ProjectCalander instance",
"role": "user"
},
{
"content": "private void writeCalendar(ProjectCalendar mpxj)\n {\n CalendarType xml = m_factory.createCalendarType();\n m_apibo.getCalendar().a... |
[
{
"content": "This method writes resource data to a PM XML file.",
"role": "user"
},
{
"content": "private void writeResources()\n {\n for (Resource resource : m_projectFile.getResources())\n {\n if (resource.getUniqueID().intValue() != 0)\n {\n writeResource(r... |
[
{
"content": "Write a single resource.\n\n@param mpxj Resource instance",
"role": "user"
},
{
"content": "private void writeResource(Resource mpxj)\n {\n ResourceType xml = m_factory.createResourceType();\n m_apibo.getResource().add(xml);\n\n xml.setAutoComputeActuals(Boolean.TRUE);... |
[
{
"content": "Given a Task instance, this task determines if it should be written to the\nPM XML file as an activity or as a WBS item, and calls the appropriate\nmethod.\n\n@param task Task instance",
"role": "user"
},
{
"content": "private void writeTask(Task task)\n {\n if (!task.getNull())... |
[
{
"content": "Writes a WBS entity to the PM XML file.\n\n@param mpxj MPXJ Task entity",
"role": "user"
},
{
"content": "private void writeWBS(Task mpxj)\n {\n if (mpxj.getUniqueID().intValue() != 0)\n {\n WBSType xml = m_factory.createWBSType();\n m_project.getWBS().add(x... |
[
{
"content": "Writes an activity to a PM XML file.\n\n@param mpxj MPXJ Task instance",
"role": "user"
},
{
"content": "private void writeActivity(Task mpxj)\n {\n ActivityType xml = m_factory.createActivityType();\n m_project.getActivity().add(xml);\n\n Task parentTask = mpxj.getPar... |
[
{
"content": "Attempts to locate the activity type value extracted from an existing P6 schedule.\nIf necessary converts to the form which can be used in the PMXML file.\nReturns \"Resource Dependent\" as the default value.\n\n@param task parent task\n@return activity type",
"role": "user"
},
{
"cont... |
[
{
"content": "Writes assignment data to a PM XML file.",
"role": "user"
},
{
"content": "private void writeAssignments()\n {\n for (ResourceAssignment assignment : m_projectFile.getResourceAssignments())\n {\n Resource resource = assignment.getResource();\n if (resource !... |
[
{
"content": "Writes a resource assignment to a PM XML file.\n\n@param mpxj MPXJ ResourceAssignment instance",
"role": "user"
},
{
"content": "private void writeAssignment(ResourceAssignment mpxj)\n {\n ResourceAssignmentType xml = m_factory.createResourceAssignmentType();\n m_project.ge... |
[
{
"content": "Writes task predecessor links to a PM XML file.\n\n@param task MPXJ Task instance",
"role": "user"
},
{
"content": "private void writePredecessors(Task task)\n {\n List<Relation> relations = task.getPredecessors();\n for (Relation mpxj : relations)\n {\n Relati... |
[
{
"content": "Writes a list of UDF types.\n\n@author lsong\n@param type parent entity type\n@param mpxj parent entity\n@return list of UDFAssignmentType instances",
"role": "user"
},
{
"content": "private List<UDFAssignmentType> writeUDFType(FieldTypeClass type, FieldContainer mpxj)\n {\n Lis... |
[
{
"content": "Sets the value of a UDF.\n\n@param udf user defined field\n@param dataType MPXJ data type\n@param value field value",
"role": "user"
},
{
"content": "private void setUserFieldValue(UDFAssignmentType udf, DataType dataType, Object value)\n {\n switch (dataType)\n {\n ... |
[
{
"content": "Retrieve a duration in the form required by Primavera.\n\n@param duration Duration instance\n@return formatted duration",
"role": "user"
},
{
"content": "private Double getDuration(Duration duration)\n {\n Double result;\n if (duration == null)\n {\n result = n... |
[
{
"content": "Formats a resource type.\n\n@param resource MPXJ resource\n@return Primavera resource type",
"role": "user"
},
{
"content": "private String getResourceType(Resource resource)\n {\n String result;\n net.sf.mpxj.ResourceType type = resource.getType();\n if (type == null)... |
[
{
"content": "Formats a percentage value.\n\n@param number MPXJ percentage value\n@return Primavera percentage value",
"role": "user"
},
{
"content": "private Double getPercentage(Number number)\n {\n Double result = null;\n\n if (number != null)\n {\n result = Double.valueO... |
[
{
"content": "Formats a double value.\n\n@param number numeric value\n@return Double instance",
"role": "user"
},
{
"content": "private Double getDouble(Number number)\n {\n Double result = null;\n\n if (number != null)\n {\n result = Double.valueOf(number.doubleValue());\n ... |
[
{
"content": "Retrieve an activity status.\n\n@param mpxj MPXJ Task instance\n@return activity status",
"role": "user"
},
{
"content": "private String getActivityStatus(Task mpxj)\n {\n String result;\n if (mpxj.getActualStart() == null)\n {\n result = \"Not Started\";\n ... |
[
{
"content": "Retrieve the Activity ID value for this task.\n@param task Task instance\n@return Activity ID value",
"role": "user"
},
{
"content": "private String getActivityID(Task task)\n {\n String result = null;\n if (m_activityIDField != null)\n {\n Object value = task.... |
[
{
"content": "Find the fields in which the Activity ID and Activity Type are stored.",
"role": "user"
},
{
"content": "private void configureCustomFields()\n {\n CustomFieldContainer customFields = m_projectFile.getCustomFields();\n\n // If the caller hasn't already supplied a value for ... |
[
{
"content": "Populate a sorted list of custom fields to ensure that these fields\nare written to the file in a consistent order.",
"role": "user"
},
{
"content": "private void populateSortedCustomFieldsList ()\n {\n m_sortedCustomFieldsList = new ArrayList<CustomField>();\n for (CustomF... |
[
{
"content": "Set day.\n\n@param d day instance",
"role": "user"
},
{
"content": "public void setDay(Day d)\n {\n if (m_day != null)\n {\n m_parentCalendar.removeHoursFromDay(this);\n }\n\n m_day = d;\n\n m_parentCalendar.attachHoursToDay(this);\n }",
"role":... |
[
{
"content": "This method is used to configure the format pattern.\n\n@param patterns new format patterns",
"role": "user"
},
{
"content": "public void applyPatterns(String[] patterns)\n {\n m_formats = new SimpleDateFormat[patterns.length];\n for (int index = 0; index < patterns.length;... |
[
{
"content": "Convert the integer representation of a duration value and duration units\ninto an MPXJ Duration instance.\n\n@param properties project properties, used for duration units conversion\n@param durationValue integer duration value\n@param unitsValue integer units value\n@return Duration instance",
... |
[
{
"content": "Convert an MPXJ Duration instance into an integer duration in minutes\nready to be written to an MPX file.\n\n@param properties project properties, used for duration units conversion\n@param duration Duration instance\n@return integer duration in minutes",
"role": "user"
},
{
"content"... |
[
{
"content": "Converts a TimeUnit instance to an integer value suitable for\nwriting to an MPX file.\n\n@param recurrence RecurringTask instance\n@return integer value",
"role": "user"
},
{
"content": "public static Integer getDurationUnits(RecurringTask recurrence)\n {\n Duration duration = ... |
[
{
"content": "Maps a duration unit value from a recurring task record in an MPX file\nto a TimeUnit instance. Defaults to days if any problems are encountered.\n\n@param value integer duration units value\n@return TimeUnit instance",
"role": "user"
},
{
"content": "private static TimeUnit getDuratio... |
[
{
"content": "Converts the string representation of the days bit field into an integer.\n\n@param days string bit field\n@return integer bit field",
"role": "user"
},
{
"content": "public static Integer getDays(String days)\n {\n Integer result = null;\n if (days != null)\n {\n ... |
[
{
"content": "Convert weekly recurrence days into a bit field.\n\n@param task recurring task\n@return bit field as a string",
"role": "user"
},
{
"content": "public static String getDays(RecurringTask task)\n {\n StringBuilder sb = new StringBuilder();\n for (Day day : Day.values())\n ... |
[
{
"content": "Convert MPX day index to Day instance.\n\n@param day day index\n@return Day instance",
"role": "user"
},
{
"content": "public static Day getDay(Integer day)\n {\n Day result = null;\n if (day != null)\n {\n result = DAY_ARRAY[day.intValue()];\n }\n re... |
[
{
"content": "Convert Day instance to MPX day index.\n\n@param day Day instance\n@return day index",
"role": "user"
},
{
"content": "public static Integer getDay(Day day)\n {\n Integer result = null;\n if (day != null)\n {\n result = DAY_MAP.get(day);\n }\n return ... |
[
{
"content": "Retrieves the yearly absolute date.\n\n@param data recurrence data\n@return yearly absolute date",
"role": "user"
},
{
"content": "public static Date getYearlyAbsoluteAsDate(RecurringData data)\n {\n Date result;\n Integer yearlyAbsoluteDay = data.getDayNumber();\n Int... |
[
{
"content": "Read a four byte integer from the data.\n\n@param offset current offset into data block\n@param data data block\n@return int value",
"role": "user"
},
{
"content": "public int readInt(int offset, byte[] data)\n {\n int result = 0;\n int i = offset + m_offset;\n for (in... |
[
{
"content": "Parses values out of the header text.\n\n@param header header text",
"role": "user"
},
{
"content": "private void parse(String header)\n {\n ArrayList<String> list = new ArrayList<String>(4);\n StringBuilder sb = new StringBuilder();\n int index = 1;\n while (inde... |
[
{
"content": "Retrieve the index of the table entry valid for the supplied date.\n\n@param date required date\n@return cost rate table entry index",
"role": "user"
},
{
"content": "public int getIndexByDate(Date date)\n {\n int result = -1;\n int index = 0;\n\n for (CostRateTableEnt... |
[
{
"content": "This method retrieves an int value from a String instance.\nIt returns zero by default if a null value or an empty string is supplied.\n\n@param value string representation of an integer\n@return int value",
"role": "user"
},
{
"content": "public static final int getInt(String value)\n... |
[
{
"content": "This method retrieves a double value from a String instance.\nIt returns zero by default if a null value or an empty string is supplied.\n\n@param value string representation of a double\n@return double value",
"role": "user"
},
{
"content": "public static final double getDouble(String... |
[
{
"content": "Utility method used to convert an arbitrary Number into an Integer.\n\n@param value Number instance\n@return Integer instance",
"role": "user"
},
{
"content": "public static final Integer getInteger(Number value)\n {\n Integer result = null;\n if (value != null)\n {\n ... |
[
{
"content": "Converts a string representation of an integer into an Integer object.\nSilently ignores any parse exceptions and returns null.\n\n@param value String representation of an integer\n@return Integer instance",
"role": "user"
},
{
"content": "public static final Integer getInteger(String ... |
[
{
"content": "Utility method used to convert a Number into a BigInteger.\n\n@param value Number instance\n@return BigInteger instance",
"role": "user"
},
{
"content": "public static final BigInteger getBigInteger(Number value)\n {\n BigInteger result = null;\n if (value != null)\n {... |
[
{
"content": "Utility method used to round a double to the given precision.\n\n@param value value to truncate\n@param precision Number of decimals to round to.\n@return double value",
"role": "user"
},
{
"content": "public static final double round(double value, double precision)\n {\n precis... |
[
{
"content": "Utility method to convert a String to an Integer, and\nhandles null values.\n\n@param value string representation of an integer\n@return int value",
"role": "user"
},
{
"content": "public static final Integer parseInteger(String value)\n {\n return (value == null || value.length... |
[
{
"content": "Compare two integers, accounting for null values.\n\n@param n1 integer value\n@param n2 integer value\n@return comparison result",
"role": "user"
},
{
"content": "public static int compare(Integer n1, Integer n2)\n {\n int result;\n if (n1 == null || n2 == null)\n {\n ... |
[
{
"content": "Retrieve a value from the map, ensuring that a key exists in the map\nwith the specified name.\n\n@param name column name\n@return column value",
"role": "user"
},
{
"content": "private final Object getObject(String name)\n {\n if (m_map.containsKey(name) == false)\n {\n ... |
[
{
"content": "This method retrieves the next token and returns a constant representing\nthe type of token found.\n\n@return token type value",
"role": "user"
},
{
"content": "public int nextToken() throws IOException\n {\n int c;\n int nextc = -1;\n boolean quoted = false;\n in... |
[
{
"content": "This method allows a resource assignment workgroup fields record\nto be added to the current resource assignment. A maximum of\none of these records can be added to a resource assignment record.\n\n@return ResourceAssignmentWorkgroupFields object\n@throws MPXJException if MSP defined limit of 1 is... |
[
{
"content": "Returns the start of this resource assignment.\n\n@return start date",
"role": "user"
},
{
"content": "public Date getStart()\n {\n Date result = (Date) getCachedValue(AssignmentField.START);\n if (result == null)\n {\n result = getTask().getStart();\n }\n... |
[
{
"content": "Returns the finish date for this resource assignment.\n\n@return finish date",
"role": "user"
},
{
"content": "public Date getFinish()\n {\n Date result = (Date) getCachedValue(AssignmentField.FINISH);\n if (result == null)\n {\n result = getTask().getFinish();... |
[
{
"content": "Retrieves the timephased breakdown of the planned overtime work for this\nresource assignment.\n\n@return timephased planned work",
"role": "user"
},
{
"content": "public List<TimephasedWork> getTimephasedOvertimeWork()\n {\n if (m_timephasedOvertimeWork == null && m_timephasedW... |
[
{
"content": "Retrieves the timephased breakdown of cost.\n\n@return timephased cost",
"role": "user"
},
{
"content": "public List<TimephasedCost> getTimephasedCost()\n {\n if (m_timephasedCost == null)\n {\n Resource r = getResource();\n ResourceType type = r != null ? r... |
[
{
"content": "Retrieves the timephased breakdown of actual cost.\n\n@return timephased actual cost",
"role": "user"
},
{
"content": "public List<TimephasedCost> getTimephasedActualCost()\n {\n if (m_timephasedActualCost == null)\n {\n Resource r = getResource();\n Resourc... |
[
{
"content": "Generates timephased costs from timephased work where multiple cost rates\napply to the assignment.\n\n@param standardWorkList timephased work\n@param overtimeWorkList timephased work\n@return timephased cost",
"role": "user"
},
{
"content": "private List<TimephasedCost> getTimephasedC... |
[
{
"content": "Generates timephased costs from the assignment's cost value. Used for Cost type Resources.\n\n@return timephased cost",
"role": "user"
},
{
"content": "private List<TimephasedCost> getTimephasedCostFixedAmount()\n {\n List<TimephasedCost> result = new LinkedList<TimephasedCost>(... |
[
{
"content": "Generates timephased actual costs from the assignment's cost value. Used for Cost type Resources.\n\n@return timephased cost",
"role": "user"
},
{
"content": "private List<TimephasedCost> getTimephasedActualCostFixedAmount()\n {\n List<TimephasedCost> result = new LinkedList<Tim... |
[
{
"content": "Splits timephased work segments in line with cost rates. Note that this is\nan approximation - where a rate changes during a working day, the second\nrate is used for the whole day.\n\n@param table cost rate table\n@param calendar calendar used by this assignment\n@param work timephased work segme... |
[
{
"content": "Used to determine if multiple cost rates apply to this assignment.\n\n@return true if multiple cost rates apply to this assignment",
"role": "user"
},
{
"content": "private boolean hasMultipleCostRates()\n {\n boolean result = false;\n CostRateTable table = getCostRateTable... |
[
{
"content": "Retrieves the cost rate table entry active on a given date.\n\n@param date target date\n@return cost rate table entry",
"role": "user"
},
{
"content": "private CostRateTableEntry getCostRateTableEntry(Date date)\n {\n CostRateTableEntry result;\n\n CostRateTable table = get... |
[
{
"content": "Retrieves the index of a cost rate table entry active on a given date.\n\n@param date target date\n@return cost rate table entry index",
"role": "user"
},
{
"content": "private int getCostRateTableEntryIndex(Date date)\n {\n int result = -1;\n\n CostRateTable table = getCos... |
[
{
"content": "Retrieve timephased baseline work. Note that index 0 represents \"Baseline\",\nindex 1 represents \"Baseline1\" and so on.\n\n@param index baseline index\n@return timephased work, or null if no baseline is present",
"role": "user"
},
{
"content": "public List<TimephasedWork> getTimepha... |
[
{
"content": "Retrieve timephased baseline cost. Note that index 0 represents \"Baseline\",\nindex 1 represents \"Baseline1\" and so on.\n\n@param index baseline index\n@return timephased work, or null if no baseline is present",
"role": "user"
},
{
"content": "public List<TimephasedCost> getTimepha... |
[
{
"content": "Retrieves the calendar used for this resource assignment.\n\n@return ProjectCalendar instance",
"role": "user"
},
{
"content": "public ProjectCalendar getCalendar()\n {\n ProjectCalendar calendar = null;\n Resource resource = getResource();\n if (resource != null)\n ... |
[
{
"content": "Set an enterprise cost value.\n\n@param index cost index (1-30)\n@param value cost value",
"role": "user"
},
{
"content": "public void setEnterpriseCost(int index, Number value)\n {\n set(selectField(AssignmentFieldLists.ENTERPRISE_COST, index), value);\n }",
"role": "assi... |
[
{
"content": "Set an enterprise date value.\n\n@param index date index (1-30)\n@param value date value",
"role": "user"
},
{
"content": "public void setEnterpriseDate(int index, Date value)\n {\n set(selectField(AssignmentFieldLists.ENTERPRISE_DATE, index), value);\n }",
"role": "assist... |
[
{
"content": "Set an enterprise duration value.\n\n@param index duration index (1-30)\n@param value duration value",
"role": "user"
},
{
"content": "public void setEnterpriseDuration(int index, Duration value)\n {\n set(selectField(AssignmentFieldLists.ENTERPRISE_DURATION, index), value);\n ... |
[
{
"content": "Set an enterprise number value.\n\n@param index number index (1-40)\n@param value number value",
"role": "user"
},
{
"content": "public void setEnterpriseNumber(int index, Number value)\n {\n set(selectField(AssignmentFieldLists.ENTERPRISE_NUMBER, index), value);\n }",
"ro... |
[
{
"content": "Set an enterprise text value.\n\n@param index text index (1-40)\n@param value text value",
"role": "user"
},
{
"content": "public void setEnterpriseText(int index, String value)\n {\n set(selectField(AssignmentFieldLists.ENTERPRISE_TEXT, index), value);\n }",
"role": "assi... |
[
{
"content": "Returns the overtime cost of this resource assignment.\n\n@return cost",
"role": "user"
},
{
"content": "public Number getOvertimeCost()\n {\n Number cost = (Number) getCachedValue(AssignmentField.OVERTIME_COST);\n if (cost == null)\n {\n Number actual = getAct... |
[
{
"content": "The % Work Complete field contains the current status of a task,\nexpressed as the percentage of the task's work that has been completed.\nYou can enter percent work complete, or you can have Microsoft Project\ncalculate it for you based on actual work on the task.\n\n@return percentage as float",... |
[
{
"content": "Calculate the start variance.\n\n@return start variance",
"role": "user"
},
{
"content": "public Duration getStartVariance()\n {\n Duration variance = (Duration) getCachedValue(AssignmentField.START_VARIANCE);\n if (variance == null)\n {\n TimeUnit format = get... |
[
{
"content": "Calculate the finish variance.\n\n@return finish variance",
"role": "user"
},
{
"content": "public Duration getFinishVariance()\n {\n Duration variance = (Duration) getCachedValue(AssignmentField.FINISH_VARIANCE);\n if (variance == null)\n {\n TimeUnit format =... |
[
{
"content": "Returns the cost rate table index for this assignment.\n\n@return cost rate table index",
"role": "user"
},
{
"content": "public int getCostRateTableIndex()\n {\n Integer value = (Integer) getCachedValue(AssignmentField.COST_RATE_TABLE);\n return value == null ? 0 : value.i... |
[
{
"content": "Maps a field index to an AssignmentField instance.\n\n@param fields array of fields used as the basis for the mapping.\n@param index required field index\n@return AssignmnetField instance",
"role": "user"
},
{
"content": "private AssignmentField selectField(AssignmentField[] fields, in... |
[
{
"content": "Recursively sort the supplied child tasks.\n\n@param container child tasks",
"role": "user"
},
{
"content": "public void sort(ChildTaskContainer container)\n {\n // Do we have any tasks?\n List<Task> tasks = container.getChildTasks();\n if (!tasks.isEmpty())\n {\n... |
[
{
"content": "Read the table from the file and populate the supplied Table instance.\n\n@param file database file\n@param table Table instance",
"role": "user"
},
{
"content": "public void read(File file, Table table) throws IOException\n {\n //System.out.println(\"Reading \" + file.getName()... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.