use of com.google.cloud.vision.v1p3beta1.Feature in project osate2 by osate.
the class FeatureImpl method getAllFeatureRefinements.
/*
* Return the feature and any of the features it refines
*
* @return EList of feature
*/
// XXX: [AADL 1 -> AADL 2] Added to make instantiation and property lookup
// work.
public EList<Feature> getAllFeatureRefinements() {
BasicEList<Feature> returnlist = new BasicEList<Feature>();
Feature more = this;
while (more != null) {
returnlist.add(more);
more = more.getRefined();
}
return returnlist;
}
use of com.google.cloud.vision.v1p3beta1.Feature in project osate2 by osate.
the class FeatureImpl method getPropertyValueInternal.
public void getPropertyValueInternal(final Property prop, final PropertyAcc pas, final boolean fromInstanceSlaveCall, final boolean all) throws InvalidModelException {
Classifier owner = getContainingClassifier();
if (pas.addLocalContained(this, owner) && !all || pas.addLocal(this)) {
if (!all) {
return;
}
}
// values from refined features
Feature refined = getRefined();
while (refined != null) {
if (pas.addLocalContained(refined, refined.getContainingClassifier())) {
if (!all) {
return;
}
}
if (pas.addLocal(refined)) {
if (!all) {
return;
}
}
refined = refined.getRefined();
}
getPropertyValueInternalHelper(prop, pas, fromInstanceSlaveCall, all);
// feature group TYPE, not an implementation.
if (prop.isInherit()) {
owner.getPropertyValueInternal(prop, pas, fromInstanceSlaveCall, all);
}
}
use of com.google.cloud.vision.v1p3beta1.Feature in project osate2 by osate.
the class FeatureImpl method getPropertyValue.
public void getPropertyValue(Property prop, PropertyAcc pas, Classifier cl, final boolean all) {
Classifier owner = getContainingClassifier();
// local contained value
if (pas.addLocalContained(this, owner) && !all || pas.addLocal(this)) {
if (!all) {
return;
}
}
// values from refined features
Feature refined = getRefined();
while (refined != null) {
if (pas.addLocal(refined)) {
if (!all) {
return;
}
}
refined = refined.getRefined();
}
getPropertyValueHelper(prop, pas, cl, all);
// feature group TYPE, not an implementation.
if (prop.isInherit()) {
owner.getPropertyValueInternal(prop, pas, true, all);
}
}
use of com.google.cloud.vision.v1p3beta1.Feature in project osate2 by osate.
the class FeatureGroupTypeImpl method processFeatures.
private void processFeatures(final List<Feature> allFeatures, final List<Feature> refinedFeatures, final List<Feature> localFeatures) {
/*
* Iterate backwards, so when we insert features at the start of the complete list, they
* still are inserted in the order of declaration. Keep the refined features in order because
* the types get visited from the bottom of the tree up, so the feature being refined will
* not have been added to the list yet.
*/
for (final ListIterator<Feature> listIter = localFeatures.listIterator(localFeatures.size()); listIter.hasPrevious(); ) {
final Feature f = listIter.previous();
final Feature r = f.getRefined();
if (r == null) {
allFeatures.add(0, f);
} else {
refinedFeatures.add(0, f);
}
}
}
use of com.google.cloud.vision.v1p3beta1.Feature in project osate2 by osate.
the class FlowEndImpl method setFeature.
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setFeature(Feature newFeature) {
Feature oldFeature = feature;
feature = newFeature;
if (eNotificationRequired()) {
eNotify(new ENotificationImpl(this, Notification.SET, Aadl2Package.FLOW_END__FEATURE, oldFeature, feature));
}
}
Aggregations