Available Methods
- setName ( )
- setFinish ( )
- setUniqueID ( )
- getStart ( )
- setStart ( )
- addPredecessor ( )
- setActualFinish ( )
- setDuration ( )
- setNotes ( )
- setEarlyFinish ( )
- setLateFinish ( )
- hasChildTasks ( )
- addResourceAssignment ( )
- setConstraintType ( )
- getFinish ( )
- getChildTasks ( )
- setActualStart ( )
- setLateStart ( )
- getName ( )
- setBaselineDuration ( )
- getActualFinish ( )
- getMilestone ( )
- setGUID ( )
- setPercentageComplete ( )
- getEarlyFinish ( )
- setMilestone ( )
- setRemainingDuration ( )
- addTask ( )
- setEarlyStart ( )
- setRemainingCost ( )
- getLateStart ( )
- getResourceAssignments ( )
- setPriority ( )
- setFreeSlack ( )
- setText ( )
- setConstraintDate ( )
- setHyperlink ( )
- getEarlyStart ( )
- setWBS ( )
- getWBS ( )
- getPredecessors ( )
- setExternalTask ( )
- getDuration ( )
- getBaselineDuration ( )
- getSummary ( )
- setCost ( )
- getExternalTask ( )
- setHyperlinkAddress ( )
- setPreleveledStart ( )
- setStop ( )
- setLevelingCanSplit ( )
- setLevelAssignments ( )
- getSubProject ( )
- setRecurring ( )
- setBaselineStart ( )
- getNotes ( )
- setLevelingDelay ( )
- getLateFinish ( )
- setFixedCostAccrual ( )
- setSubProject ( )
- getStartVariance ( )
- setActualCost ( )
- getRecurringTask ( )
- setCalendar ( )
- setFlag ( )
- setMarked ( )
- setID ( )
- setBaselineCost ( )
- setProject ( )
- setPhysicalPercentComplete ( )
- setEffortDriven ( )
- getActualStart ( )
- setPercentageWorkComplete ( )
- setRollup ( )
- getCachedValue ( )
- setNull ( )
- setBaselineWork ( )
- getCalendar ( )
Related Classes
- java.io.File
- java.util.Collections
- java.util.Date
- java.util.Iterator
- java.io.Serializable
- java.text.SimpleDateFormat
- java.io.ByteArrayOutputStream
- java.util.regex.Matcher
- java.util.Comparator
- java.util.UUID
- java.util.stream.Collectors
- java.util.Calendar
- java.util.Map.Entry
- java.text.ParseException
- java.math.BigDecimal
- java.util.TreeMap
- java.math.BigInteger
- java.text.DateFormat
- java.sql.SQLException
- java.text.DecimalFormat
- java.util.logging.Level
- com.google.common.collect.Lists
- com.google.common.collect.Maps
- java.text.MessageFormat
- com.google.common.base.Function
Java Code Examples for net.sf.mpxj.Task#getStartVariance()
The following examples show how to use
net.sf.mpxj.Task#getStartVariance() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ProjectCalendarTest.java From mpxj with GNU Lesser General Public License v2.1 | 4 votes |
/** * Exercise various duration variance calculations. * * @throws Exception */ @Test public void testVarianceCalculations8() throws Exception { MPPReader reader = new MPPReader(); ProjectFile file = reader.read(MpxjTestData.filePath("DurationTest8.mpp")); Task task; Duration duration; // // Task 1 // task = file.getTaskByID(Integer.valueOf(1)); duration = task.getDurationVariance(); assertEquals(-59.0, duration.getDuration(), 0.01); assertEquals(TimeUnit.MINUTES, duration.getUnits()); duration = task.getStartVariance(); assertEquals(-1.09, duration.getDuration(), 0.01); assertEquals(TimeUnit.DAYS, duration.getUnits()); duration = task.getFinishVariance(); assertEquals(-1.97, duration.getDuration(), 0.01); assertEquals(TimeUnit.DAYS, duration.getUnits()); // // Task 2 // task = file.getTaskByID(Integer.valueOf(2)); duration = task.getDurationVariance(); assertEquals(0.98, duration.getDuration(), 0.01); assertEquals(TimeUnit.HOURS, duration.getUnits()); duration = task.getStartVariance(); assertEquals(0.94, duration.getDuration(), 0.01); assertEquals(TimeUnit.DAYS, duration.getUnits()); duration = task.getFinishVariance(); assertEquals(0.13, duration.getDuration(), 0.01); assertEquals(TimeUnit.DAYS, duration.getUnits()); // // Task 3 // task = file.getTaskByID(Integer.valueOf(3)); duration = task.getDurationVariance(); assertEquals(-4, duration.getDuration(), 0.01); assertEquals(TimeUnit.DAYS, duration.getUnits()); duration = task.getStartVariance(); assertEquals(0.88, duration.getDuration(), 0.01); assertEquals(TimeUnit.DAYS, duration.getUnits()); duration = task.getFinishVariance(); assertEquals(-1, duration.getDuration(), 0.01); assertEquals(TimeUnit.DAYS, duration.getUnits()); // // Task 4 // task = file.getTaskByID(Integer.valueOf(4)); duration = task.getDurationVariance(); assertEquals(0.8, duration.getDuration(), 0.01); assertEquals(TimeUnit.WEEKS, duration.getUnits()); duration = task.getStartVariance(); assertEquals(0, duration.getDuration(), 0.01); assertEquals(TimeUnit.DAYS, duration.getUnits()); }