Package net.splitcells.gel.solution
Class SolutionAspect
- java.lang.Object
-
- net.splitcells.gel.solution.SolutionAspect
-
- All Implemented Interfaces:
net.splitcells.dem.data.Identifiable
,net.splitcells.dem.lang.dom.Domable
,net.splitcells.dem.object.Discoverable
,Allocations
,AllocationsLiveView
,Database
,Table
,Problem
,ProblemView
,Solution
,SolutionView
public class SolutionAspect extends Object implements Solution
-
-
Field Summary
-
Fields inherited from interface net.splitcells.gel.data.table.Table
GET_LINE_VIA_STREAM
-
-
Method Summary
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface net.splitcells.gel.data.allocation.Allocations
allocationsOf
-
Methods inherited from interface net.splitcells.gel.data.allocation.AllocationsLiveView
supply_of_demand
-
Methods inherited from interface net.splitcells.gel.data.database.Database
query, replace, synchronize
-
Methods inherited from interface net.splitcells.gel.solution.Solution
createAnalysis, optimize, optimize, optimize, optimize, optimize, optimizeOnce, optimizeOnlineWithFunction, optimizeOnlineWithFunction, optimizeWithFunction, optimizeWithFunction, optimizeWithFunction, optimizeWithFunction, optimizeWithFunction, optimizeWithFunctionOnce, optimizeWithMethod
-
Methods inherited from interface net.splitcells.gel.solution.SolutionView
attributesOfFodsAnalysis, branch, createAnalysis, createStandardAnalysis, createStandardAnalysis, dataContainer, dataContainer, demandsGroups, demandsGroups, isComplete, isOptimal, toFodsTableAnalysis, toLinesFodsAnalysis
-
Methods inherited from interface net.splitcells.gel.data.table.Table
contains, distinctLines, distinctLineValues, hasContent, isEmpty, isPresent, line, lines, linesStream, lookup, lookupEquals, rawLine, toCSV, toFods, toHtmlTable
-
-
-
-
Method Detail
-
solutionAspect
public static SolutionAspect solutionAspect(Solution solution)
-
optimize
public Solution optimize(net.splitcells.dem.data.set.list.List<OptimizationEvent> events)
-
rating
public Rating rating(net.splitcells.dem.data.set.list.List<OptimizationEvent> event)
- Specified by:
rating
in interfaceSolution
- Specified by:
rating
in interfaceSolutionView
-
optimize
public Solution optimize(OptimizationEvent event, OptimizationParameters parameters)
-
history
public History history()
- Specified by:
history
in interfaceSolutionView
-
asSolution
public Solution asSolution()
- Specified by:
asSolution
in interfaceProblem
-
allocate
public Line allocate(Line demand, Line supply)
- Specified by:
allocate
in interfaceAllocations
-
allocationOf
public Line allocationOf(LinePointer demand, LinePointer supply)
- Specified by:
allocationOf
in interfaceAllocations
-
addTranslated
public Line addTranslated(net.splitcells.dem.data.set.list.List<?> values)
- Specified by:
addTranslated
in interfaceDatabase
-
subscribeToAfterAdditions
public void subscribeToAfterAdditions(AfterAdditionSubscriber subscriber)
- Specified by:
subscribeToAfterAdditions
in interfaceDatabase
-
subscribeToBeforeRemoval
public void subscribeToBeforeRemoval(BeforeRemovalSubscriber subscriber)
- Specified by:
subscribeToBeforeRemoval
in interfaceDatabase
-
subscribeToAfterRemoval
public void subscribeToAfterRemoval(BeforeRemovalSubscriber subscriber)
- Specified by:
subscribeToAfterRemoval
in interfaceDatabase
-
constraint
public Constraint constraint()
- Specified by:
constraint
in interfaceProblemView
-
allocations
public Allocations allocations()
- Specified by:
allocations
in interfaceProblemView
-
derived
public DerivedSolution derived(Function<Rating,Rating> derivation)
- Specified by:
derived
in interfaceProblemView
-
supplies
public Database supplies()
- Specified by:
supplies
in interfaceAllocationsLiveView
-
suppliesUsed
public Database suppliesUsed()
- Specified by:
suppliesUsed
in interfaceAllocationsLiveView
-
suppliesFree
public Database suppliesFree()
- Specified by:
suppliesFree
in interfaceAllocationsLiveView
-
demands
public Database demands()
- Specified by:
demands
in interfaceAllocationsLiveView
-
demandsUsed
public Database demandsUsed()
- Specified by:
demandsUsed
in interfaceAllocationsLiveView
-
demandsFree
public Database demandsFree()
- Specified by:
demandsFree
in interfaceAllocationsLiveView
-
demandOfAllocation
public Line demandOfAllocation(Line allocation)
- Specified by:
demandOfAllocation
in interfaceAllocationsLiveView
-
supplyOfAllocation
public Line supplyOfAllocation(Line allocation)
- Specified by:
supplyOfAllocation
in interfaceAllocationsLiveView
-
allocationsOfSupply
public net.splitcells.dem.data.set.Set<Line> allocationsOfSupply(Line supply)
- Specified by:
allocationsOfSupply
in interfaceAllocationsLiveView
-
allocationsOfDemand
public net.splitcells.dem.data.set.Set<Line> allocationsOfDemand(Line demand)
- Specified by:
allocationsOfDemand
in interfaceAllocationsLiveView
-
headerView
public net.splitcells.dem.data.set.list.List<Attribute<Object>> headerView()
- Specified by:
headerView
in interfaceTable
-
headerView2
public net.splitcells.dem.data.set.list.List<Attribute<? extends Object>> headerView2()
- Specified by:
headerView2
in interfaceTable
-
columnView
public <T> ColumnView<T> columnView(Attribute<T> attribute)
- Specified by:
columnView
in interfaceTable
-
columnsView
public net.splitcells.dem.data.set.list.List<Column<Object>> columnsView()
- Specified by:
columnsView
in interfaceTable
-
rawLinesView
public net.splitcells.dem.data.set.list.ListView<Line> rawLinesView()
- Specified by:
rawLinesView
in interfaceTable
-
rawLines
public net.splitcells.dem.data.set.list.List<Line> rawLines()
-
lookupEquals
public Line lookupEquals(Attribute<Line> attribute, Line value)
- Specified by:
lookupEquals
in interfaceTable
-
toDom
public Node toDom()
- Specified by:
toDom
in interfacenet.splitcells.dem.lang.dom.Domable
-
path
public net.splitcells.dem.data.set.list.List<String> path()
- Specified by:
path
in interfacenet.splitcells.dem.object.Discoverable
-
identity
public Object identity()
- Specified by:
identity
in interfacenet.splitcells.dem.data.Identifiable
-
-