Giter VIP home page Giter VIP logo

deds's People

Contributors

samuel02 avatar sarar avatar the-not-cat avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

deds's Issues

Simulator methods to add

The following public methods should be added to the Simulator class:
setState( State state )
addEvent( Event event )

CarwashView - downcast error & null error

I funktionen printTableRow:

Funktionen downcastar event-refrensen till ett CarWashEvent-objekt. Alla event är inte av typen CarWashEvent, som t.ex. StopEvent. So funktionen kommer kasta undantag i dessa fallen.

Också i printTableRow:

int id = ((CarWashEvent) event).getCar().getId();

CarWashEvent objekt retunerar null på funktionen getCar(), i de fall en bil inte är inte kopplade till en sådan händelse, typ StartCarWashEvent. Så ett NullPointerException kommer kastas när den försöker kalla på getId().

snabb fix på detta kan vara:

Car c = carWashEvent.getCar();
String Id = ( c == null ? "-" : "" + c.getId());


Har iaf ett förslag på några förändringar till bland annat SimView som jag tror kommer förenkla en hel del. Visar dig imorgon(idag)

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.