deds's People
deds's Issues
Add time to events
Add randomness and time to State
import event class in general state class
Add package descriptions
Check locality and access between classes
Simulator methods to add
The following public methods should be added to the Simulator class:
setState( State state )
addEvent( Event event )
Fix up SimMain and make it ready
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)
Add Javadoc to event classes
Javadoc for CarWashState
Move some state stuff to abstract class
lastEvent() should be in the abstract class for state, and thus beginEvent() and endEvent() as well.
Generate javadoc.
import event class in general simView class
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.