|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectprefs.VSPrefs
prefs.VSSerializablePrefs
events.VSAbstractEvent
public abstract class VSAbstractEvent
The class VSAbstractEvent. This abstract class defines the basic framework of each event. an event is used to fullfill a specific task. An event object will get stored in a VSTask object.
| Field Summary | |
|---|---|
VSPrefs |
prefs
The prefs. |
VSAbstractProcess |
process
The process. |
| Fields inherited from class prefs.VSPrefs |
|---|
BOOLEAN_PREFIX, COLOR_PREFIX, FLOAT_PREFIX, id, INTEGER_PREFIX, LONG_PREFIX, STRING_PREFIX, VECTOR_PREFIX |
| Constructor Summary | |
|---|---|
VSAbstractEvent()
|
|
| Method Summary | |
|---|---|
void |
deserialize(VSSerialize serialize,
java.io.ObjectInputStream objectInputStream)
Deserializes |
boolean |
equals(VSAbstractEvent event)
Checks if the event equals to another event.. |
java.lang.String |
getClassname()
Gets the classname. |
VSAbstractEvent |
getCopy()
Creates a copy of the event. |
VSAbstractEvent |
getCopy(VSInternalProcess theProcess)
Creates a copy of the event and using a new process. |
java.lang.String |
getName()
Gets the name. |
VSAbstractProcess |
getProcess()
Gets the process. |
java.lang.String |
getShortname()
Gets the shortname. |
void |
init()
Inits the event without setting the processes and prefs variables of the object. |
void |
init(VSInternalProcess process)
Inits the event. |
void |
log(java.lang.String message)
Logg a specific message. |
abstract void |
onInit()
Every event has its own initialize method. |
abstract void |
onStart()
Every event can get started. |
void |
serialize(VSSerialize serialize,
java.io.ObjectOutputStream objectOutputStream)
Serializes |
void |
setClassname(java.lang.String eventClassname)
Sets the classname. |
void |
setShortname(java.lang.String eventShortname)
Sets the shortname. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public VSPrefs prefs
public VSAbstractProcess process
| Constructor Detail |
|---|
public VSAbstractEvent()
| Method Detail |
|---|
public final VSAbstractEvent getCopy(VSInternalProcess theProcess)
throws VSEventNotCopyableException
theProcess - The new process
VSEventNotCopyableException
public final VSAbstractEvent getCopy()
throws VSEventNotCopyableException
VSEventNotCopyableExceptionpublic void init(VSInternalProcess process)
process - the processpublic void init()
public final void setClassname(java.lang.String eventClassname)
eventClassname - the new classnamepublic java.lang.String getClassname()
public java.lang.String getName()
public void setShortname(java.lang.String eventShortname)
eventShortname - the new shortnamepublic java.lang.String getShortname()
public VSAbstractProcess getProcess()
public void log(java.lang.String message)
message - the loging messagepublic boolean equals(VSAbstractEvent event)
event - the event to compare against.
public abstract void onInit()
public abstract void onStart()
public void serialize(VSSerialize serialize,
java.io.ObjectOutputStream objectOutputStream)
throws java.io.IOException
VSSerializable
serialize in interface VSSerializableserialize in class VSSerializablePrefsserialize - The serialize objectobjectOutputStream - The object output stream
java.io.IOException
public void deserialize(VSSerialize serialize,
java.io.ObjectInputStream objectInputStream)
throws java.io.IOException,
java.lang.ClassNotFoundException
VSSerializable
deserialize in interface VSSerializabledeserialize in class VSSerializablePrefsserialize - The serialize objectobjectInputStream - The object input stream
java.io.IOException
java.lang.ClassNotFoundException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||