Public Member Functions | Private Attributes

de.fraunhofer.isst.axbench.operations.simulator.valuestorage.FeatureIon Class Reference

A FeatureIon is a 'loaded feature', i.e. a feature (the base feature) that is positively or negatively loaded. More...

List of all members.

Public Member Functions

boolean equals (Object obj)
 FeatureIon (Feature theFeature, boolean sign)
 constructor with a slot for isPositive
 FeatureIon (Feature theFeature)
 constructor, sets the default value isPositive = true
Feature getFeature ()
 getter method for the feature
int hashCode ()
boolean isPositive ()
String toString ()
 If the selected instance is an alternative subcomponent instance, the choice point is the corresponding instance of the xor-component the alternative belongs to. If the selected instance is optional, the choice point is the instance itself.

Private Attributes

Feature baseFeature
boolean isPositive

Detailed Description

A FeatureIon is a 'loaded feature', i.e. a feature (the base feature) that is positively or negatively loaded.

Author:
mgrosse
Version:
0.10.0
Since:
0.10.0

Constructor & Destructor Documentation

de.fraunhofer.isst.axbench.operations.simulator.valuestorage.FeatureIon.FeatureIon ( Feature  theFeature  ) 

constructor, sets the default value isPositive = true

Parameters:
theFeature the base feature
de.fraunhofer.isst.axbench.operations.simulator.valuestorage.FeatureIon.FeatureIon ( Feature  theFeature,
boolean  sign 
)

constructor with a slot for isPositive

Parameters:
theFeature the base feature
sign true if the element is selected (as in the default case), false if it is a negative selection

Member Function Documentation

boolean de.fraunhofer.isst.axbench.operations.simulator.valuestorage.FeatureIon.equals ( Object  obj  ) 
Feature de.fraunhofer.isst.axbench.operations.simulator.valuestorage.FeatureIon.getFeature (  ) 

getter method for the feature

Returns:
the model element instance

Implements de.fraunhofer.isst.axbench.api.simulation.IFeatureIon.

int de.fraunhofer.isst.axbench.operations.simulator.valuestorage.FeatureIon.hashCode (  ) 
String de.fraunhofer.isst.axbench.operations.simulator.valuestorage.FeatureIon.toString (  ) 

If the selected instance is an alternative subcomponent instance, the choice point is the corresponding instance of the xor-component the alternative belongs to. If the selected instance is optional, the choice point is the instance itself.

Returns:
the xor-instance the alternative instance belongs to, or the instance itself if the instance is optional
Return values:
null if the instance is neither an alternative nor optional maps an instance that should be an xor-element or an optional element to its possible selections, i.e. all alternatives (xor) or the positive and the negative selection of the model element instance (option)
Parameters:
choicePoint the model element instance whose possible selections are sought
Returns:
the collection of all possible selections (xor: all alternatives; option: positive and negative selection)

Member Data Documentation