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

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

Go to download

The Jadex BDI applications package contain several example applications, benchmarks and testcases using BDI agents.

The newest version!



	
	
		jadex.extension.envsupport.environment.space2d.*
		jadex.extension.envsupport.environment.DeltaTimeExecutor
		jadex.extension.envsupport.math.*
		jadex.extension.envsupport.dataview.*
		java.text.SimpleDateFormat
		java.util.Date
		jadex.extension.envsupport.observer.perspective.*
		jadex.bdi.examples.marsworld.carry.*
		jadex.bdi.examples.marsworld.producer.*
		jadex.bdi.examples.marsworld.sentry.*
		jadex.bdi.examples.marsworld.movement.*
		jadex.extension.envsupport.evaluation.*
		jadex.extension.envsupport.observer.gui.plugin.*
		jadex.commons.future.*
		jadex.bridge.service.*
		jadex.bridge.service.search.*
		jadex.bridge.service.types.clock.IClockService
	
	
	
		
			
				
					
					
					
				
			
		

		
			0.05
			Space2D.BORDER_RELAXED
		
			
				
					0
					0
					"unknown"
				
				
					new Vector3Double(0.1*(($properties.clock.getTick())%10),0.01,0.1*(($properties.clock.getTick())%10))
						
					new Vector2Double(-1.111, -1.111)
					0.1
					0.05
					$space.getSpaceObjectsByType("homebase")[0].getProperty("position")
				
				
					new Vector2Double(-1.111, -1.111)
					0.05
					0.1
					$space.getSpaceObjectsByType("homebase")[0].getProperty("position")
				
				
					new Vector2Double(-1.111, -1.111)
					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 Vector3Double(0,0,$object.getProperty("rotation").getDirectionAsDouble()-Math.PI/2)
						new Vector2Double($object.getProperty("vision").doubleValue()*2)
						
						
						
					

					
					
					new Vector3Double(0,0,$object.getProperty("rotation").getDirectionAsDouble()-Math.PI/2)
						
						new Vector2Double($object.getProperty("vision").doubleValue()*2)
						
						
						
					

					
					
					new Vector3Double(0,0,$object.getProperty("rotation").getDirectionAsDouble()-Math.PI/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
						
					
					
					
						
							
							
							$time
							$homebase.ore
						
					
			
					
						
							"homebase_ore"
							"Ore in homebase"
							"Time"
							"Ore"
							500
							false
							
							
							"Ore"
							"time"
							"ore_amount"
						
					
					
					
						
							
								((AbstractChartDataConsumer)$space.getDataConsumer("ore_chart")).getChartPanel()
							
						
					
	 			
			
			
				
  				
				
			
 		

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






© 2015 - 2025 Weber Informatics LLC | Privacy Policy