Class FeatureInitialization
Object
FeatureInitialization
- All Implemented Interfaces:
BeanInitialization
Parameters used to initialize a
Feature
before any calculation occurs.- Author:
- Owen Feehan
-
Constructor Summary
ConstructorsConstructorDescriptionCreate without any dictionary, energy-stack or shared-objects.FeatureInitialization
(Optional<Dictionary> dictionary, Optional<EnergyStackWithoutParameters> energyStack, Optional<SharedObjects> sharedObjects) Creates a newFeatureInitialization
instance.FeatureInitialization
(SharedObjects sharedObjects) Create only with shared-objects.FeatureInitialization
(Dictionary dictionary) Create only with a dictionary.FeatureInitialization
(EnergyStack energyStack) Create only with an energy-stack. -
Method Summary
Modifier and TypeMethodDescriptionA shallow-copy of the current initialization.boolean
A dictionary of key-value pairs.An energy-stack, which may form an input to the feature for calculation.Shared-objects, which can be referenced by the feature to influence calculation.int
hashCode()
Retrieves the shared-objects associated with the initialization, or throws an an exception if they do not exist.toString()
-
Constructor Details
-
FeatureInitialization
public FeatureInitialization()Create without any dictionary, energy-stack or shared-objects. -
FeatureInitialization
Create only with a dictionary.- Parameters:
dictionary
- the dictionary.
-
FeatureInitialization
Create only with an energy-stack.- Parameters:
energyStack
- the energy-stack.
-
FeatureInitialization
public FeatureInitialization(Optional<Dictionary> dictionary, Optional<EnergyStackWithoutParameters> energyStack, Optional<SharedObjects> sharedObjects) Creates a newFeatureInitialization
instance.- Parameters:
dictionary
- A dictionary of key-value pairs.energyStack
- An energy-stack, which may form an input to the feature for calculation.sharedObjects
- Shared-objects, which can be referenced by the feature to influence calculation.
-
-
Method Details
-
duplicateShallow
A shallow-copy of the current initialization.- Returns:
- a new
FeatureInitialization
which reuses the existing state.
-
getDictionary
A dictionary of key-value pairs. -
getEnergyStack
An energy-stack, which may form an input to the feature for calculation. -
equals
-
hashCode
public int hashCode() -
toString
-