jasi.simple.model
Class SimpleModel

java.lang.Object
  extended by jasi.simple.model.SimpleModel
All Implemented Interfaces:
EventListener, java.io.Serializable

public final class SimpleModel
extends java.lang.Object
implements EventListener

A simple model. It uses the singleton pattern.

See Also:
Serialized Form

Method Summary
 void execute(Event event)
          Handle an event by this model.
static SimpleModel get()
          Get the instance of SimpleModel.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

get

public static SimpleModel get()
Get the instance of SimpleModel.

Returns:
The singleton instance.

execute

public void execute(Event event)
Handle an event by this model.

Specified by:
execute in interface EventListener
Parameters:
event - The event to be handled.