| /******************************************************************************* |
| * Copyright (c) 2014-2016 Akos Horvath, Abel Hegedus, Akos Menyhert, Zoltan Ujhelyi, IncQuery Labs Ltd. |
| * This program and the accompanying materials are made available under the |
| * terms of the Eclipse Public License v. 2.0 which is available at |
| * http://www.eclipse.org/legal/epl-v20.html. |
| * |
| * SPDX-License-Identifier: EPL-2.0 |
| *******************************************************************************/ |
| package org.eclipse.viatra.examples.cps.model.derived |
| |
| import "http://org.eclipse.viatra/model/cps" |
| |
| //@QueryBasedFeature(feature = "appInstances") |
| pattern getAppInstances(cps : CyberPhysicalSystem, app : ApplicationInstance) { |
| CyberPhysicalSystem.appTypes.instances(cps, app); |
| } |
| |
| |
| //@QueryBasedFeature |
| pattern hostInstances(cps : CyberPhysicalSystem, host : HostInstance) { |
| CyberPhysicalSystem.hostTypes.instances(cps, host); |
| } |