Package it.polito.appeal.traci.protocol
Class RequestMessage
java.lang.Object
it.polito.appeal.traci.protocol.RequestMessage
Represents a TraCI messages used to send 
Commands from the client to
 server (i.e. requests). After construction, the commands are appended one
 after one with append(Command). The whole message, along with its
 length header, can be then retrieved in a serialized form via the
 writeTo(DataOutputStream) method.- Author:
- Enrico Gueli <enrico.gueli@polito.it>
- See Also:
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidAdds a command to the tail of this message.commands()voidwriteTo(DataOutputStream dos) Writes the commands to the specifiedDataOutputStreamobject, in the same order as the calls ofappend(Command).
- 
Constructor Details- 
RequestMessagepublic RequestMessage()
 
- 
- 
Method Details- 
appendAdds a command to the tail of this message.- Parameters:
- c- c
- Throws:
- NullPointerException- if the command is- null.
 
- 
writeToWrites the commands to the specifiedDataOutputStreamobject, in the same order as the calls ofappend(Command).- Parameters:
- dos- data output stream
- Throws:
- IOException- Exception
 
- 
commands
 
-