Class FluentAllocationFactory
- java.lang.Object
-
- org.palladiosimulator.generator.fluent.allocation.factory.FluentAllocationFactory
-
public class FluentAllocationFactory extends Object
This class provides all the methods to create anAllocation
and create entities that are added to this Allocation. Characteristics of the entities are specified by method chaining.
Start creating an org.palladiosimulator.generator.fluent.allocation like this:
FluentAllocationFactory create = new FluentAllocationFactory();
Allocation org.palladiosimulator.generator.fluent.allocation = create.newAllocation()
//define System and ResourceEnvironment and add AllocationContexts
.createAllocationNow();
-
-
Constructor Summary
Constructors Constructor Description FluentAllocationFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IAllocation
newAllocation()
Start the creation of anAllocation
.AllocationContextCreator
newAllocationContext()
Start the creation of anAllocationContext
.
-
-
-
Method Detail
-
newAllocation
public IAllocation newAllocation()
Start the creation of anAllocation
.- Returns:
- the
Allocation
in the making - See Also:
Allocation
-
newAllocationContext
public AllocationContextCreator newAllocationContext() throws IllegalStateException
Start the creation of anAllocationContext
.- Returns:
- the
AllocationContext
in the making - Throws:
IllegalStateException
- if newAllocationContext() has not been called before- See Also:
AllocationContext
-
-