Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| OptaPlanner distribution 6.2.0.Beta1
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.optaplanner.examples.cheaptime.domain
Class Task

    java.lang.Object
      org.optaplanner.examples.common.domain.AbstractPersistable
          org.optaplanner.examples.cheaptime.domain.Task

All Implemented Interfaces:
  Serializable, Comparable<AbstractPersistable>

    public class Task

extends AbstractPersistable

See Also:
  Serialized Form

Field Summary

Fields inherited from class org.optaplanner.examples.common.domain.AbstractPersistable
`id`

Constructor Summary
`Task()`

Method Summary
`int` | `getDuration()`
`String` | `getLabel()`
`long` | `getPowerConsumptionMicros()`
`int` | `getResourceUsageMultiplicand()`
`int` | `getStartPeriodRangeFrom()`
`int` | `getStartPeriodRangeTo()`
`List<TaskRequirement>` | `getTaskRequirementList()`
`int` | `getUsage(Resource resource)`
`void` | `setDuration(int duration)`
`void` | `setPowerConsumptionMicros(long powerConsumptionMicros)`
`void` | `setStartPeriodRangeFrom(int startPeriodRangeFrom)`
`void` | `setStartPeriodRangeTo(int startPeriodRangeTo)`
`void` | `setTaskRequirementList(List<TaskRequirement> taskRequirementList)`

Methods inherited from class org.optaplanner.examples.common.domain.AbstractPersistable
`compareTo, getId, setId, toString`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

Constructor Detail

### Task

    public Task()

Method Detail

### getPowerConsumptionMicros

    public long getPowerConsumptionMicros()

### setPowerConsumptionMicros

    public void setPowerConsumptionMicros(long powerConsumptionMicros)

### getDuration

    public int getDuration()

### setDuration

    public void setDuration(int duration)

### getStartPeriodRangeFrom

    public int getStartPeriodRangeFrom()

### setStartPeriodRangeFrom

    public void setStartPeriodRangeFrom(int startPeriodRangeFrom)

### getStartPeriodRangeTo

    public int getStartPeriodRangeTo()

### setStartPeriodRangeTo

    public void setStartPeriodRangeTo(int startPeriodRangeTo)

### getTaskRequirementList

    public List<TaskRequirement> getTaskRequirementList()

### setTaskRequirementList

    public void setTaskRequirementList(List<TaskRequirement> taskRequirementList)

### getUsage

    public int getUsage(Resource resource)

### getResourceUsageMultiplicand

    public int getResourceUsageMultiplicand()

### getLabel

    public String getLabel()

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| OptaPlanner distribution 6.2.0.Beta1
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

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