|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectvisidia.simulation.command.Command
public abstract class Command
Command is the abstract base class to manages commands exchanged between console and processes.
| Constructor Summary | |
|---|---|
protected |
Command()
Instantiates a new command. |
| Method Summary | |
|---|---|
abstract void |
deserialize(java.io.ObjectInputStream in)
Deserialize. |
abstract void |
executeAfterAck()
Instructions to be executed after ack. |
abstract void |
executeBeforeAck(VisidiaEvent event)
Instructions to be executed before ack. |
abstract boolean |
generateImmediateAck()
Defines if an ack is to be generated immediately. |
abstract boolean |
needSynchronization()
Defines if command needs synchronization. |
abstract void |
serialize(java.io.ObjectOutputStream out)
Serialize. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected Command()
| Method Detail |
|---|
public abstract boolean needSynchronization()
public abstract boolean generateImmediateAck()
public abstract void executeBeforeAck(VisidiaEvent event)
event - the event
public abstract void executeAfterAck()
throws java.lang.InterruptedException
java.lang.InterruptedException - the interrupted exception
public abstract void serialize(java.io.ObjectOutputStream out)
throws java.io.IOException
out - the output stream
java.io.IOException - Signals that an I/O exception has occurred.
public abstract void deserialize(java.io.ObjectInputStream in)
throws java.io.IOException,
java.lang.ClassNotFoundException
in - the input stream
java.io.IOException - Signals that an I/O exception has occurred.
java.lang.ClassNotFoundException - the class not found exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||