OptaPlanner distribution 6.2.1-SNAPSHOT

org.optaplanner.examples.cheaptime.solver
Class CheapTimeCostCalculator

java.lang.Object
  extended by org.optaplanner.examples.cheaptime.solver.CheapTimeCostCalculator

public class CheapTimeCostCalculator
extends Object


Field Summary
static BigDecimal MICROS_PER_ONE_AS_BIG_DECIMAL
           
static double MICROS_PER_ONE_AS_DOUBLE
           
static long MICROS_PER_ONE_AS_LONG
           
 
Method Summary
static long divideTwoMicros(long aMicros, long bMicros)
           
static long multiplyTwoMicros(long aMicros, long bMicros)
           
static long parseMicroCost(String costString)
           
static long toMicroCost(long cost)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MICROS_PER_ONE_AS_LONG

public static final long MICROS_PER_ONE_AS_LONG
See Also:
Constant Field Values

MICROS_PER_ONE_AS_DOUBLE

public static final double MICROS_PER_ONE_AS_DOUBLE
See Also:
Constant Field Values

MICROS_PER_ONE_AS_BIG_DECIMAL

public static final BigDecimal MICROS_PER_ONE_AS_BIG_DECIMAL
Method Detail

toMicroCost

public static long toMicroCost(long cost)

parseMicroCost

public static long parseMicroCost(String costString)

multiplyTwoMicros

public static long multiplyTwoMicros(long aMicros,
                                     long bMicros)

divideTwoMicros

public static long divideTwoMicros(long aMicros,
                                   long bMicros)

OptaPlanner distribution 6.2.1-SNAPSHOT

Copyright © 2006-2015 JBoss by Red Hat. All Rights Reserved.