blob: 51c38a9dc6378c255ee47e01f10a649264b3a4ff [file] [log] [blame]
/*******************************************************************************
* 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);
}