Event Driven Framework

So I wanted to learn how to create an event driven framework, as I assume it’ll be a useful thing to know and to have in my game.

This may be too an advanced topic for me at the moment, I don’t know.

Anyways, after googling, I came across a site that explains it nicely, it also provides example code, however, I don’t really understand the code.
Links to the explanation:
http://www.giocc.com/fundamental-components-of-an-event-driven-architecture.html
http://www.giocc.com/writing-an-event-driven-framework-with-java.html

Things I don’t understand:
[icode]Queue events = new LinkedList();[/icode]
What is Queue and LinkedList?
Event is a class that contains a Char type, String data and a constructor.

public interface Message {
    public Class<? extends Message> getType();
}

I understand that a class can extend another class, but what does adding the [icode]<? extends Message>[/icode] mean exactly, I mean doesn’t the class have to be an interface in order to extend an interface, or is that what the extra stuff is for?

public interface Channel<E extends Message> {
    public void dispatch(E message);
}

No idea what “E” is.
And more <…> stuff.

public interface DynamicRouter<E extends Message> {
    public void registerChannel(Class<? extends E> contentType,
            Channel<? extends E> channel);
    public abstract void dispatch(E content);
}

Wut?

An explanation or advice would be really appreciated.

[quote=“bogieman987,post:1,topic:49761”]
Judging from your other questions, yes, it does sound like it might be a bit much. Maybe start with something smaller until you understand the basics.

[quote=“bogieman987,post:1,topic:49761”]
They are data structures. Check out the Collections tutorial and look up classes you aren’t sure about in the API.

Those are generics.

Ok, thanks for the advice.

Edit: After reading the stuff about the generics, I have used them before, but only when creating an ArrayList, didn’t know it could be used in many different ways. :slight_smile: