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 anAllocationand 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 IAllocationnewAllocation()Start the creation of anAllocation.AllocationContextCreatornewAllocationContext()Start the creation of anAllocationContext.
-
-
-
Method Detail
-
newAllocation
public IAllocation newAllocation()
Start the creation of anAllocation.- Returns:
- the
Allocationin the making - See Also:
Allocation
-
newAllocationContext
public AllocationContextCreator newAllocationContext() throws IllegalStateException
Start the creation of anAllocationContext.- Returns:
- the
AllocationContextin the making - Throws:
IllegalStateException- if newAllocationContext() has not been called before- See Also:
AllocationContext
-
-