All Downloads are FREE. Search and download functionalities are using the official Maven repository.

jadex.bdibpmn.examples.marsworld.MarsWorld.application.xml Maven / Gradle / Ivy

Go to download

The Jadex BDI-BPMN applications package contain several example applications, benchmarks and testcases using BDI agents that have BPMN plans.

There is a newer version: 2.4
Show newest version


		
	
		jadex.extension.envsupport.environment.space2d.*
		jadex.extension.envsupport.environment.DeltaTimeExecutor
		jadex.extension.envsupport.math.*
		jadex.bridge.serviceclock.IClockService
		jadex.extension.envsupport.dataview.*
		java.text.SimpleDateFormat
		java.util.Date
		jadex.extension.envsupport.observer.perspective.*
		jadex.bdi.examples.marsworld.*
		jadex.bdi.examples.marsworld.carry.*
		jadex.bdi.examples.marsworld.producer.*
		jadex.bdi.examples.marsworld.sentry.*
		jadex.bdi.examples.marsworld.movement.*
		jjadex.bridge.serviceServiceProvider
		jadex.commons.IFuture
		jadex.bridge.service.clock.IClockService
		jadex.bridge.service.*
	
	
	
		
			
				
					
					
					
				
			
		

		
			
				
					0
					0
					"unknown"
				
				
					0.1
					0.05
					$space.getSpaceObjectsByType("homebase")[0].getProperty("position")
				
				
					0.05
					0.1
					$space.getSpaceObjectsByType("homebase")[0].getProperty("position")
				
				
					0.05
					0.15
					0
					20
					$space.getSpaceObjectsByType("homebase")[0].getProperty("position")
				
				
					0
					
						"Collected ore: "+$object.getProperty("ore")+" \n"+
						"Remaining time: "+new SimpleDateFormat("mm:ss").format(new Date(Math.max(0, $object.getProperty("missiontime")
							- $properties.clock.getTime())))
					
				
			
			
			
				
				
				
				
			
						
			
				
						
									
			
				
				
				
			

			
				
				
					
					
						new Vector2Double(Math.sqrt(((Number)$object.getProperty("capacity")).intValue()/200.0))
						new Vector2Double(-0.5, 0.1-Math.sqrt(((Number)$object.getProperty("capacity")).intValue()/200.0)/2)
						
							!$object.getProperty("state").equals("analyzed") || $object.getProperty("ore")!=0
						
						
							$object.getProperty("state").equals("analyzed") && $object.getProperty("ore")==0
						
						
							
								$object.getProperty("state").equals("analyzed")
								&& ($object.getProperty("ore")!=0 || $object.getProperty("capacity")!=0)
							
						
						
							
								$object.getProperty("state").equals("analyzed")
							
						
						
							((Number)$object.getProperty("capacity")).intValue()>0
						
					

					
					
						new Vector2Double(Math.sqrt(((Number)$object.getProperty("ore")).intValue()/200.0))
						new Vector2Double(0, 0.3-Math.sqrt(((Number)$object.getProperty("ore")).intValue()/200.0)/2)
						
						
						
							((Number)$object.getProperty("ore")).intValue()>0
						
					

					
					
						new Vector2Double($object.getProperty("vision").doubleValue()*2)
						
						
					

					
					
						new Vector2Double($object.getProperty("vision").doubleValue()*2)
						
						
					

					
					
						new Vector2Double($object.getProperty("vision").doubleValue()*2)
						new Vector2Double(Math.sqrt(((Number)$object.getProperty("ore")).intValue()/200.0))
						new Vector2Double(0.3, -0.08-Math.sqrt(((Number)$object.getProperty("ore")).intValue()/200.0)/2)
						
						
						
							((Number)$object.getProperty("ore")).intValue()>0
						
					

					
						
					
				
			

			
			
				$space
				true
			
		
	

	
		
		
		
	

	
		
			SServiceProvider.getService($component.getServiceProvider(), IClockService.class, RequiredServiceInfo.SCOPE_PLATFORM)
		
	
	
	
		
			
				
					
						
						
						
					
				
	
				
					
						
							new Vector2Double(0.3, 0.3)
							$space
							
								90000 + $properties.clock.getTime()
							
						
						
							new Vector2Double(0.1, 0.2)
							0
						
						
							new Vector2Double(0.05, 0.7)
							200
						
						
							new Vector2Double(0.5, 0.6)
						
						
							new Vector2Double(0.8, 0.1)
							50
						
						
							new Vector2Double(0.7, 0.4)
							100
						
						
							new Vector2Double(0.8, 0.8)
							25
						
					
					
						
					
	 			
	 		

			
				
  				
				
				 		
 		

		
			
				
					
						
						
						
					
				
	
				
					
						
							$space
							
								300000 + $properties.clock.getTime()
							
						
						
							Math.random()>0.2 ? (Integer)(5+Math.random()*35)*5 : 0
						
					
					
						
					
	 			
			

			
				
  				
				
			

 		
	






© 2015 - 2024 Weber Informatics LLC | Privacy Policy