Use Case(s) in Software Design

So today it seems like we are doing Use Cases. I don’t find it interesting, or hard, to do, so here’s what I got after 5 minutes of work. Please tell me if I did anything wrong (I don’t think so, though).

Registration

  1. Customer delivers car
  2. Foreman creates worksheet A1, A2, A3
  3. Foreman gives A3 to Customer
  4. Foreman gives A2 to Spare Parts
  5. Spare Parts adds spare parts to A2
  6. Foreman puts A1 in Folder

Repairing of the Cars

  1. Mechanic finds task in A1
  2. Mechanic finds needed spare parts specified in A2
  3. Mechanic finishes task
  4. Mechanic repeats 1, 2 and 3 untill no more tasks
  5. Mechanic adds time spent to A1
  6. Mechanic puts A1 in Folder

Making invoices

  1. Clerk looks through Folder for finished tasks // two times pr. day
  2. Clerk prepares Invoice with information from A1 and A2
  3. Customer picks up car
  4. Clerk hands Invoice to Customer
  5. Customer returns A3
  6. Clerk controls Payments // once a month

 


Recent changes, news and a new year!

Hello and welcome back to my blog.

This is where I upload all my “crazy” and I hope you’ll enjoy it. Recently, I have begun uploading content to my minecraft-related youtube channel. It’s pretty cool, but I am having some uploading issues because my internet is so slow. I will be getting that sorted soon though, hopefully.

Also, I have bought a new headset and a new keyboard. They’re pretty awesome too. I really enjoy my new mechanical keyboard, Razer BlackWidow. It’s a good keyboard and I love the sound and feel of it. My version is not backlid or with USB ports, but I think I’d rather not be broke than pimpin’.

Just yesterday (or technically the day before), I bought another year of blogging, so I hope to be inspired to do more stuff here. It’s really diffucult to just sit down and type whatever comes into ones brain, if you’re also trying to make somewhat decent content.

On an entirely different note, thanks to Frank for doing all of my graphics (not on the website though, in the videos). I really appriciate the help.

Java-programming is going well, we are having a vacation at the moment and attending an internal examn the 26th january, but it’s all cool.

GUD BEVARE DANMARK.

Google Syntax Highlighter Test (Java)


/**
 * KitchenWatch is a class that abstracts from what NumberDisplay and StopWatch classes does.
 * This class is constructed to simulate time passing by, incrementing
 * an instance of NumberDisplay and decrementing an instance of StopWatch.
 *
 * @author Rasmus Sommer Larsen
 * @version 24-10-2011
 */
public class KitchenWatch
{
    // Fields
    private NumberDisplay display;
    private StopWatch stopwatch;

    /**
     * Constructor for objects of class KitchenWatch
     */
    public KitchenWatch()
    {
        display = new NumberDisplay();
        stopwatch = new StopWatch();
    }

    // Methods
    /**
     * Simulate time passing, with 1 minute at a time.
     */
    public void timeTick()
    {
        display.increment();
        stopwatch.decrement();
        updateDisplay();
    }
    /**
     * Start the StopWatch with an integer as the amount of time before the alarm goes off.
     */
    public void startStopWatch(int time)
    {
        stopwatch.startTimer(time);
    }
    /**
     * Update the clockdisplay.
     */
    public void updateDisplay()
    {
        if ((display.getHours() < 10) && (display.getMinutes() < 10)){
            System.out.println("0" + display.getHours() + ":" + "0" + display.getMinutes());
        }
        else if ((display.getHours() >= 10) && (display.getMinutes() < 10)){
            System.out.println(display.getHours() + ":" + "0" + display.getMinutes());
        }
        else if ((display.getHours() < 10) && (display.getMinutes() >= 10)){
            System.out.println("0" + display.getHours() + ":" + display.getMinutes());
        }
        else if ((display.getHours() >= 10) && (display.getMinutes() >= 10)){
            System.out.println(display.getHours() + ":" + display.getMinutes());
        }

    }
}