Coder Social home page Coder Social logo

bauhausluftfahrt / paxelerate Goto Github PK

View Code? Open in Web Editor NEW
3.0 4.0 1.0 30.04 MB

Passenger flow simulation framework for advanced aircraft cabin layouts. Written in Java. In development at Bauhaus Luftfahrt e.V. since 2014.

Home Page: http://paxelerate.com/

License: GNU General Public License v3.0

Java 100.00%
agent-based-modeling agent-based-simulation aircraft cabin boarding-simulation eclipse-modeling boarding

paxelerate's People

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

pkusunbx

paxelerate's Issues

Create User Tutorial

  • Model explorer: cabin and agents
  • Different views
    
  • Simulation
    
  • Results
    
  • Work-arounds
    
  • Creation of corresponding files
    

Check monument dimensions != 0

If a dimension of a cabin monument (galley, lavatory) is zero, the following error ocurs:

!ENTRY net.bhl.cdt.paxelerate.ui 1 0 2016-02-17 16:10:48.650
!MESSAGE ERROR in setCabin()
java.lang.IllegalArgumentException: Argument not valid

!ENTRY net.bhl.cdt.paxelerate.ui 1 0 2016-02-17 16:10:48.656
!MESSAGE Cabin view checked and updated
    at org.eclipse.swt.SWT.error(SWT.java:4472)
    at org.eclipse.swt.SWT.error(SWT.java:4406)
    at org.eclipse.swt.SWT.error(SWT.java:4377)
    at org.eclipse.swt.graphics.Image.init(Image.java:1746)
    at org.eclipse.swt.graphics.Image.<init>(Image.java:200)
    at net.bhl.cdt.paxelerate.ui.views.CabinViewPart.resize(CabinViewPart.java:358)
    at net.bhl.cdt.paxelerate.ui.views.CabinViewPart.setCabin(CabinViewPart.java:472)
    at net.bhl.cdt.paxelerate.ui.commands.DrawCabinCommand.doRun(DrawCabinCommand.java:99)
    at net.bhl.cdt.commands.CDTCommand.execute(CDTCommand.java:34)
    at net.bhl.cdt.paxelerate.ui.handlers.DrawCabinHandler.execute(DrawCabinHandler.java:36)
    at org.eclipse.ui.internal.handlers.HandlerProxy.execute(HandlerProxy.java:295)
    at org.eclipse.ui.internal.handlers.E4HandlerProxy.execute(E4HandlerProxy.java:90)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:497)
    at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:56)
    at org.eclipse.e4.core.internal.di.InjectorImpl.invokeUsingClass(InjectorImpl.java:252)
    at org.eclipse.e4.core.internal.di.InjectorImpl.invoke(InjectorImpl.java:234)
    at org.eclipse.e4.core.contexts.ContextInjectionFactory.invoke(ContextInjectionFactory.java:132)
    at org.eclipse.e4.core.commands.internal.HandlerServiceHandler.execute(HandlerServiceHandler.java:152)
    at org.eclipse.core.commands.Command.executeWithChecks(Command.java:493)
    at org.eclipse.core.commands.ParameterizedCommand.executeWithChecks(ParameterizedCommand.java:486)
    at org.eclipse.e4.core.commands.internal.HandlerServiceImpl.executeHandler(HandlerServiceImpl.java:210)
    at org.eclipse.e4.ui.workbench.renderers.swt.HandledContributionItem.executeItem(HandledContributionItem.java:799)
    at org.eclipse.e4.ui.workbench.renderers.swt.HandledContributionItem.handleWidgetSelection(HandledContributionItem.java:675)
    at org.eclipse.e4.ui.workbench.renderers.swt.HandledContributionItem.access$7(HandledContributionItem.java:659)
    at org.eclipse.e4.ui.workbench.renderers.swt.HandledContributionItem$4.handleEvent(HandledContributionItem.java:592)
    at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
    at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4362)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1113)
    at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4180)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3769)
    at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$4.run(PartRenderingEngine.java:1127)
    at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:337)
    at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1018)
    at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:156)
    at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:654)
    at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:337)
    at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:598)
    at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150)
    at net.bhl.cdt.client.Application.start(Application.java:26)
    at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:380)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:235)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:497)
    at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:669)
    at org.eclipse.equinox.launcher.Main.basicRun(Main.java:608)
    at org.eclipse.equinox.launcher.Main.run(Main.java:1515)
    at org.eclipse.equinox.launcher.Main.main(Main.java:1488)

Check diagonal walking of agents

Check distance calculation in A-Star for diagonal walking

Status:
The paths in the picture are now as desired, the best mix between cheapest way, shortest way and an appropriate distance to obstacles. Further improvements / changes should be made by manipulating the potential around obstacles and the obstacle map itself

Refine potential generation around obstacle

  • shift initial values to simulation properties
  • different potentials (values and width) for monuments: seats, GAL, LAVS
  • gradient functions: linear, quadratic, logarithmic --> based on paper/studies
  • rethink obstacle hole for aisle

Create release schedule

  • Git branching
    
  • Milestones
    
  • Release candidates
    
  • Included material in zip file: wiki, changelog
    
  • Required updates on website and repository
    
  • Blogpost
    
  • Issue tracker
    
  • Legal and copyright info
    

Check time of seat interference task

In Agent --> followPath() there are hard coded values for the way making procedure, we should add the to the SimulationProperties and use a Gaussian distribution:

else if (waitingForClearingOfRow() && !waitingCompleted) {
                    setCurrentState(State.WAITING_FOR_ROW_CLEARING);
                    // TODO: only one passenger is detected, even if there are 2
                    // already in the row!
                    while (waymakingAllowed() == false) {
                        Thread.sleep(10);
                    }
                    if (anyoneNearMe()) {
                        System.out
                                .println("waymaking skipped. Delay simulated!");
                        Thread.sleep(AStarHelper.time(7));
                        waitingCompleted = true;
                        continue;
                    }
                    if (!waitingCompleted) {
                        for (Passenger pax : otherPassengersInRowBlockingMe) {
                            SimulationHandler.launchWaymakingAgent(pax,
                                    this.passenger);
                        }
                        while (!otherPassengerStoodUp()) {
                            Thread.sleep(10);
                        }
                        // TODO: calculate the waiting time!
                        Thread.sleep(AStarHelper.time(3));
                        waitingCompleted = true;
                    }

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.