當前位置: 首頁>>代碼示例>>Java>>正文


Java Iterable類代碼示例

本文整理匯總了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;
}
 
開發者ID:SvenPeldszus,項目名稱:rgse.ttc17.emoflon.tgg,代碼行數:21,代碼來源:LocationLinkImpl.java

示例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;
}
 
開發者ID:georghinkel,項目名稱:ttc2017smartGrids,代碼行數:24,代碼來源:SubLoadAreaImpl.java

示例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;
}
 
開發者ID:SvenPeldszus,項目名稱:rgse.ttc17.emoflon.tgg,代碼行數:22,代碼來源:SDPLocationImpl.java

示例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;
}
 
開發者ID:georghinkel,項目名稱:ttc2017smartGrids,代碼行數:22,代碼來源:LocationLinkImpl.java

示例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;
}
 
開發者ID:georghinkel,項目名稱:ttc2017smartGrids,代碼行數:22,代碼來源:LocationLinkImpl.java

示例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;
}
 
開發者ID:georghinkel,項目名稱:ttc2017smartGrids,代碼行數:22,代碼來源:ServiceDeliveryPointLinkMeterAssetImpl.java

示例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;
}
 
開發者ID:georghinkel,項目名稱:ttc2017smartGrids,代碼行數:22,代碼來源:ServiceDeliveryPointLinkMeterAssetImpl.java

示例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;
}
 
開發者ID:SvenPeldszus,項目名稱:rgse.ttc17.emoflon.tgg,代碼行數:24,代碼來源:PositionPointLinkImpl.java

示例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;
}
 
開發者ID:georghinkel,項目名稱:ttc2017smartGrids,代碼行數:27,代碼來源:LoadAreaImpl.java

示例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;
}
 
開發者ID:georghinkel,項目名稱:ttc2017smartGrids,代碼行數:22,代碼來源:LocationImpl.java

示例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;
}
 
開發者ID:SvenPeldszus,項目名稱:rgse.ttc17.emoflon.tgg,代碼行數:27,代碼來源:PositionPointLinkImpl.java

示例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;
}
 
開發者ID:SvenPeldszus,項目名稱:rgse.ttc17.emoflon.tgg,代碼行數:27,代碼來源:GmlPositionImpl.java

示例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;
}
 
開發者ID:SvenPeldszus,項目名稱:rgse.ttc17.emoflon.tgg,代碼行數:24,代碼來源:LoadAreaLinkControlAreaImpl.java


注:本文中的java.lang.Iterable類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。