本文整理汇总了Java中java.lang.Iterable类的典型用法代码示例。如果您正苦于以下问题:Java Iterable类的具体用法?Java Iterable怎么用?Java Iterable使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
Iterable类属于java.lang包,在下文中一共展示了Iterable类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: pattern_LocationLink_2_3_findcontext_blackBBBBBBB
import java.lang.Iterable; //导入依赖的package包/类
public static final Iterable<Object[]> pattern_LocationLink_2_3_findcontext_blackBBBBBBB(MeterAssetMMXUPair pair,
MeterAsset asset, LocationToLocation locationCorr, Location location, PMUVoltageMeter consumer,
outagePreventionJointarget.Location trgLocation, MeterAssetToPMUVoltageMeter assetToPMU) {
LinkedList<Object[]> _result = new LinkedList<Object[]>();
if (location.equals(asset.getLocation())) {
if (asset.equals(pair.getA())) {
if (location.equals(locationCorr.getSource())) {
if (trgLocation.equals(locationCorr.getTarget())) {
if (consumer.equals(assetToPMU.getTarget())) {
if (asset.equals(assetToPMU.getSource())) {
_result.add(new Object[] { pair, asset, locationCorr, location, consumer, trgLocation,
assetToPMU });
}
}
}
}
}
}
return _result;
}
示例2: pattern_SubLoadArea_2_3_findcontext_blackBBBBBBBB
import java.lang.Iterable; //导入依赖的package包/类
public static final Iterable<Object[]> pattern_SubLoadArea_2_3_findcontext_blackBBBBBBBB(MeterAsset asset,
ConformLoadGroup srcGroup, outagePreventionJointarget.ConformLoadGroup trgGroup,
gluemodel.CIM.IEC61970.LoadModel.SubLoadArea srcArea, MeterAssetPhysicalDevicePair pair,
ServiceDeliveryPoint srcDeliver, ConformLoadGroupToConformLoadGroup groupToGroup, ConformLoad srcConsumer) {
LinkedList<Object[]> _result = new LinkedList<Object[]>();
if (srcDeliver.equals(asset.getServiceDeliveryPoint())) {
if (srcArea.equals(srcGroup.getSubLoadArea())) {
if (asset.equals(pair.getA())) {
if (trgGroup.equals(groupToGroup.getTarget())) {
if (srcGroup.equals(groupToGroup.getSource())) {
if (srcGroup.equals(srcConsumer.getLoadGroup())) {
if (srcConsumer.equals(srcDeliver.getEnergyConsumer())) {
_result.add(new Object[] { asset, srcGroup, trgGroup, srcArea, pair, srcDeliver,
groupToGroup, srcConsumer });
}
}
}
}
}
}
}
return _result;
}
示例3: pattern_SDPLocation_10_2_testcorematchandDECs_blackFFFB
import java.lang.Iterable; //导入依赖的package包/类
public static final Iterable<Object[]> pattern_SDPLocation_10_2_testcorematchandDECs_blackFFFB(
EMoflonEdge _edge_Location) {
LinkedList<Object[]> _result = new LinkedList<Object[]>();
EObject tmpAsset = _edge_Location.getSrc();
if (tmpAsset instanceof MeterAsset) {
MeterAsset asset = (MeterAsset) tmpAsset;
EObject tmpSrcLocation = _edge_Location.getTrg();
if (tmpSrcLocation instanceof gluemodel.CIM.IEC61968.Metering.SDPLocation) {
gluemodel.CIM.IEC61968.Metering.SDPLocation srcLocation = (gluemodel.CIM.IEC61968.Metering.SDPLocation) tmpSrcLocation;
if (srcLocation.equals(asset.getLocation())) {
for (MeterAssetMMXUPair pair : org.moflon.core.utilities.eMoflonEMFUtil
.getOppositeReferenceTyped(asset, MeterAssetMMXUPair.class, "a")) {
_result.add(new Object[] { srcLocation, asset, pair, _edge_Location });
}
}
}
}
return _result;
}
示例4: pattern_LocationLink_2_2_corematch_blackBBFBFFFB
import java.lang.Iterable; //导入依赖的package包/类
public static final Iterable<Object[]> pattern_LocationLink_2_2_corematch_blackBBFBFFFB(MeterAssetMMXUPair pair,
MeterAsset asset, Location location, Match match) {
LinkedList<Object[]> _result = new LinkedList<Object[]>();
for (LocationToLocation locationCorr : org.moflon.core.utilities.eMoflonEMFUtil
.getOppositeReferenceTyped(location, LocationToLocation.class, "source")) {
outagePreventionJointarget.Location trgLocation = locationCorr.getTarget();
if (trgLocation != null) {
for (MeterAssetToPMUVoltageMeter assetToPMU : org.moflon.core.utilities.eMoflonEMFUtil
.getOppositeReferenceTyped(asset, MeterAssetToPMUVoltageMeter.class, "source")) {
PMUVoltageMeter consumer = assetToPMU.getTarget();
if (consumer != null) {
_result.add(new Object[] { pair, asset, locationCorr, location, consumer, trgLocation,
assetToPMU, match });
}
}
}
}
return _result;
}
示例5: pattern_LocationLink_10_2_testcorematchandDECs_blackFFFB
import java.lang.Iterable; //导入依赖的package包/类
public static final Iterable<Object[]> pattern_LocationLink_10_2_testcorematchandDECs_blackFFFB(
EMoflonEdge _edge_Location) {
LinkedList<Object[]> _result = new LinkedList<Object[]>();
EObject tmpAsset = _edge_Location.getSrc();
if (tmpAsset instanceof MeterAsset) {
MeterAsset asset = (MeterAsset) tmpAsset;
EObject tmpLocation = _edge_Location.getTrg();
if (tmpLocation instanceof Location) {
Location location = (Location) tmpLocation;
if (location.equals(asset.getLocation())) {
for (MeterAssetMMXUPair pair : org.moflon.core.utilities.eMoflonEMFUtil
.getOppositeReferenceTyped(asset, MeterAssetMMXUPair.class, "a")) {
_result.add(new Object[] { pair, asset, location, _edge_Location });
}
}
}
}
return _result;
}
示例6: pattern_ServiceDeliveryPointLinkMeterAsset_2_2_corematch_blackBFFBFFBB
import java.lang.Iterable; //导入依赖的package包/类
public static final Iterable<Object[]> pattern_ServiceDeliveryPointLinkMeterAsset_2_2_corematch_blackBFFBFFBB(
MeterAssetPhysicalDevicePair pair, MeterAsset asset, ServiceDeliveryPoint srcDeliver, Match match) {
LinkedList<Object[]> _result = new LinkedList<Object[]>();
for (ServiceDeliveryPointToServiceDeliveryPoint deliverToDeliver : org.moflon.core.utilities.eMoflonEMFUtil
.getOppositeReferenceTyped(srcDeliver, ServiceDeliveryPointToServiceDeliveryPoint.class, "source")) {
outagePreventionJointarget.ServiceDeliveryPoint trgDeliver = deliverToDeliver.getTarget();
if (trgDeliver != null) {
for (MeterAssetToPrivateMeterVoltage assetToMeter : org.moflon.core.utilities.eMoflonEMFUtil
.getOppositeReferenceTyped(asset, MeterAssetToPrivateMeterVoltage.class, "source")) {
PrivateMeterVoltage meter = assetToMeter.getTarget();
if (meter != null) {
_result.add(new Object[] { pair, trgDeliver, deliverToDeliver, asset, assetToMeter, meter,
srcDeliver, match });
}
}
}
}
return _result;
}
示例7: pattern_ServiceDeliveryPointLinkMeterAsset_2_3_findcontext_blackBBBBBBB
import java.lang.Iterable; //导入依赖的package包/类
public static final Iterable<Object[]> pattern_ServiceDeliveryPointLinkMeterAsset_2_3_findcontext_blackBBBBBBB(
MeterAssetPhysicalDevicePair pair, outagePreventionJointarget.ServiceDeliveryPoint trgDeliver,
ServiceDeliveryPointToServiceDeliveryPoint deliverToDeliver, MeterAsset asset,
MeterAssetToPrivateMeterVoltage assetToMeter, PrivateMeterVoltage meter, ServiceDeliveryPoint srcDeliver) {
LinkedList<Object[]> _result = new LinkedList<Object[]>();
if (trgDeliver.equals(deliverToDeliver.getTarget())) {
if (srcDeliver.equals(asset.getServiceDeliveryPoint())) {
if (meter.equals(assetToMeter.getTarget())) {
if (asset.equals(pair.getA())) {
if (srcDeliver.equals(deliverToDeliver.getSource())) {
if (asset.equals(assetToMeter.getSource())) {
_result.add(new Object[] { pair, trgDeliver, deliverToDeliver, asset, assetToMeter,
meter, srcDeliver });
}
}
}
}
}
}
return _result;
}
示例8: pattern_ServiceDeliveryPointLinkMeterAsset_10_2_testcorematchandDECs_blackFFFB
import java.lang.Iterable; //导入依赖的package包/类
public static final Iterable<Object[]> pattern_ServiceDeliveryPointLinkMeterAsset_10_2_testcorematchandDECs_blackFFFB(
EMoflonEdge _edge_ServiceDeliveryPoint) {
LinkedList<Object[]> _result = new LinkedList<Object[]>();
EObject tmpAsset = _edge_ServiceDeliveryPoint.getSrc();
if (tmpAsset instanceof MeterAsset) {
MeterAsset asset = (MeterAsset) tmpAsset;
EObject tmpSrcDeliver = _edge_ServiceDeliveryPoint.getTrg();
if (tmpSrcDeliver instanceof ServiceDeliveryPoint) {
ServiceDeliveryPoint srcDeliver = (ServiceDeliveryPoint) tmpSrcDeliver;
if (srcDeliver.equals(asset.getServiceDeliveryPoint())) {
for (MeterAssetPhysicalDevicePair pair : org.moflon.core.utilities.eMoflonEMFUtil
.getOppositeReferenceTyped(asset, MeterAssetPhysicalDevicePair.class, "a")) {
_result.add(new Object[] { pair, asset, srcDeliver, _edge_ServiceDeliveryPoint });
}
}
}
}
return _result;
}
开发者ID:SvenPeldszus,项目名称:rgse.ttc17.emoflon.tgg,代码行数:22,代码来源:ServiceDeliveryPointLinkMeterAssetImpl.java
示例9: pattern_PositionPointLink_2_3_findcontext_blackBBBBBBBB
import java.lang.Iterable; //导入依赖的package包/类
public static final Iterable<Object[]> pattern_PositionPointLink_2_3_findcontext_blackBBBBBBBB(Location srcLocation,
LocationToLocation locationToLocation, PositionPoint positionPoint,
outageDetectionJointarget.PositionPoint trgPositionPoint, outageDetectionJointarget.Location trgLocation,
MeterAssetPhysicalDevicePair pair, MeterAsset asset, PositionPointToPositionPoint positionCorr) {
LinkedList<Object[]> _result = new LinkedList<Object[]>();
if (trgLocation.equals(locationToLocation.getTarget())) {
if (asset.equals(pair.getA())) {
if (srcLocation.equals(locationToLocation.getSource())) {
if (srcLocation.equals(asset.getLocation())) {
if (positionPoint.equals(srcLocation.getPosition())) {
if (trgPositionPoint.equals(positionCorr.getTarget())) {
if (positionPoint.equals(positionCorr.getSource())) {
_result.add(new Object[] { srcLocation, locationToLocation, positionPoint,
trgPositionPoint, trgLocation, pair, asset, positionCorr });
}
}
}
}
}
}
}
return _result;
}
示例10: pattern_LoadArea_2_3_findcontext_blackBBBBBBBBB
import java.lang.Iterable; //导入依赖的package包/类
public static final Iterable<Object[]> pattern_LoadArea_2_3_findcontext_blackBBBBBBBBB(SubLoadArea srcArea,
ConformLoadGroup srcGroup, outagePreventionJointarget.SubLoadArea trgArea, MeterAsset asset,
MeterAssetPhysicalDevicePair pair, ConformLoad srcConsumer,
gluemodel.CIM.IEC61970.LoadModel.LoadArea srcLoadArea, SubLoadAreaToSubLoadArea areaToArea,
ServiceDeliveryPoint srcDeliver) {
LinkedList<Object[]> _result = new LinkedList<Object[]>();
if (srcDeliver.equals(asset.getServiceDeliveryPoint())) {
if (srcLoadArea.equals(srcArea.getLoadArea())) {
if (srcArea.equals(srcGroup.getSubLoadArea())) {
if (srcGroup.equals(srcConsumer.getLoadGroup())) {
if (srcArea.equals(areaToArea.getSource())) {
if (asset.equals(pair.getA())) {
if (trgArea.equals(areaToArea.getTarget())) {
if (srcConsumer.equals(srcDeliver.getEnergyConsumer())) {
_result.add(new Object[] { srcArea, srcGroup, trgArea, asset, pair, srcConsumer,
srcLoadArea, areaToArea, srcDeliver });
}
}
}
}
}
}
}
}
return _result;
}
示例11: pattern_EnergyConsumerLinkServiceDeliveryPoint_2_3_findcontext_blackBBBBBBBB
import java.lang.Iterable; //导入依赖的package包/类
public static final Iterable<Object[]> pattern_EnergyConsumerLinkServiceDeliveryPoint_2_3_findcontext_blackBBBBBBBB(
EnergyConsumerToEnergyConsumer consumerToConsumer, MeterAsset asset,
outagePreventionJointarget.EnergyConsumer trgConsumer, MeterAssetPhysicalDevicePair pair,
outagePreventionJointarget.ServiceDeliveryPoint trgDeliver, EnergyConsumer srcConsumer,
ServiceDeliveryPointToServiceDeliveryPoint deliverToDeliver, ServiceDeliveryPoint srcDeliver) {
LinkedList<Object[]> _result = new LinkedList<Object[]>();
if (trgConsumer.equals(consumerToConsumer.getTarget())) {
if (srcDeliver.equals(asset.getServiceDeliveryPoint())) {
if (asset.equals(pair.getA())) {
if (srcConsumer.equals(consumerToConsumer.getSource())) {
if (trgDeliver.equals(deliverToDeliver.getTarget())) {
if (srcConsumer.equals(srcDeliver.getEnergyConsumer())) {
if (srcDeliver.equals(deliverToDeliver.getSource())) {
_result.add(new Object[] { consumerToConsumer, asset, trgConsumer, pair, trgDeliver,
srcConsumer, deliverToDeliver, srcDeliver });
}
}
}
}
}
}
}
return _result;
}
开发者ID:georghinkel,项目名称:ttc2017smartGrids,代码行数:25,代码来源:EnergyConsumerLinkServiceDeliveryPointImpl.java
示例12: pattern_Location_10_2_testcorematchandDECs_blackFFFB
import java.lang.Iterable; //导入依赖的package包/类
public static final Iterable<Object[]> pattern_Location_10_2_testcorematchandDECs_blackFFFB(
EMoflonEdge _edge_Location) {
LinkedList<Object[]> _result = new LinkedList<Object[]>();
EObject tmpAsset = _edge_Location.getSrc();
if (tmpAsset instanceof MeterAsset) {
MeterAsset asset = (MeterAsset) tmpAsset;
EObject tmpSrcLocation = _edge_Location.getTrg();
if (tmpSrcLocation instanceof gluemodel.CIM.IEC61968.Common.Location) {
gluemodel.CIM.IEC61968.Common.Location srcLocation = (gluemodel.CIM.IEC61968.Common.Location) tmpSrcLocation;
if (srcLocation.equals(asset.getLocation())) {
for (MeterAssetPhysicalDevicePair pair : org.moflon.core.utilities.eMoflonEMFUtil
.getOppositeReferenceTyped(asset, MeterAssetPhysicalDevicePair.class, "a")) {
_result.add(new Object[] { asset, srcLocation, pair, _edge_Location });
}
}
}
}
return _result;
}
示例13: pattern_PositionPointLink_10_2_testcorematchandDECs_blackFFFFB
import java.lang.Iterable; //导入依赖的package包/类
public static final Iterable<Object[]> pattern_PositionPointLink_10_2_testcorematchandDECs_blackFFFFB(
EMoflonEdge _edge_Position) {
LinkedList<Object[]> _result = new LinkedList<Object[]>();
EObject tmpSrcLocation = _edge_Position.getSrc();
if (tmpSrcLocation instanceof Location) {
Location srcLocation = (Location) tmpSrcLocation;
EObject tmpPositionPoint = _edge_Position.getTrg();
if (tmpPositionPoint instanceof PositionPoint) {
PositionPoint positionPoint = (PositionPoint) tmpPositionPoint;
if (positionPoint.equals(srcLocation.getPosition())) {
for (Asset tmpAsset : srcLocation.getAssets()) {
if (tmpAsset instanceof MeterAsset) {
MeterAsset asset = (MeterAsset) tmpAsset;
for (MeterAssetPhysicalDevicePair pair : org.moflon.core.utilities.eMoflonEMFUtil
.getOppositeReferenceTyped(asset, MeterAssetPhysicalDevicePair.class, "a")) {
_result.add(new Object[] { srcLocation, positionPoint, pair, asset, _edge_Position });
}
}
}
}
}
}
return _result;
}
示例14: pattern_GmlPosition_10_2_testcorematchandDECs_blackFFFFB
import java.lang.Iterable; //导入依赖的package包/类
public static final Iterable<Object[]> pattern_GmlPosition_10_2_testcorematchandDECs_blackFFFFB(
EMoflonEdge _edge_Position) {
LinkedList<Object[]> _result = new LinkedList<Object[]>();
EObject tmpSrcLocation = _edge_Position.getSrc();
if (tmpSrcLocation instanceof Location) {
Location srcLocation = (Location) tmpSrcLocation;
EObject tmpPositionPoint = _edge_Position.getTrg();
if (tmpPositionPoint instanceof gluemodel.CIM.IEC61970.Informative.InfGMLSupport.GmlPosition) {
gluemodel.CIM.IEC61970.Informative.InfGMLSupport.GmlPosition positionPoint = (gluemodel.CIM.IEC61970.Informative.InfGMLSupport.GmlPosition) tmpPositionPoint;
if (positionPoint.equals(srcLocation.getPosition())) {
for (Asset tmpAsset : srcLocation.getAssets()) {
if (tmpAsset instanceof MeterAsset) {
MeterAsset asset = (MeterAsset) tmpAsset;
for (MeterAssetPhysicalDevicePair pair : org.moflon.core.utilities.eMoflonEMFUtil
.getOppositeReferenceTyped(asset, MeterAssetPhysicalDevicePair.class, "a")) {
_result.add(new Object[] { positionPoint, srcLocation, asset, pair, _edge_Position });
}
}
}
}
}
}
return _result;
}
示例15: pattern_LoadAreaLinkControlArea_2_2_corematch_blackBBFFFBBBBFBBB
import java.lang.Iterable; //导入依赖的package包/类
public static final Iterable<Object[]> pattern_LoadAreaLinkControlArea_2_2_corematch_blackBBFFFBBBBFBBB(
ServiceDeliveryPoint srcDeliver, SubLoadArea srcArea, MeterAsset asset, MeterAssetPhysicalDevicePair pair,
ConformLoad srcConsumer, ControlArea srcControl, ConformLoadGroup srcGroup, LoadArea srcLoadArea,
Match match) {
LinkedList<Object[]> _result = new LinkedList<Object[]>();
for (LoadAreaToLoadArea laodToLoad : org.moflon.core.utilities.eMoflonEMFUtil
.getOppositeReferenceTyped(srcLoadArea, LoadAreaToLoadArea.class, "source")) {
outagePreventionJointarget.LoadArea trgLoadArea = laodToLoad.getTarget();
if (trgLoadArea != null) {
for (ControlAreaToControlSrea controlToControl : org.moflon.core.utilities.eMoflonEMFUtil
.getOppositeReferenceTyped(srcControl, ControlAreaToControlSrea.class, "source")) {
outagePreventionJointarget.ControlArea trgControl = controlToControl.getTarget();
if (trgControl != null) {
_result.add(new Object[] { srcDeliver, srcArea, laodToLoad, trgControl, trgLoadArea, asset,
pair, srcConsumer, srcControl, controlToControl, srcGroup, srcLoadArea, match });
}
}
}
}
return _result;
}