Java Reference
In-Depth Information
terminal
server
GET_NAME <prod code>
OK <prod name>
GET_PRICE <prod code>
OK <prod price>
BUY <prod code> <quantity>
OK
Figure 14.13 Acquisition of a product
communicate
0 market
SocketProxy
MarketStub
«interface»
Market
MarketProxy
*
1
new
0 server
1
connect
StubFactory
1
Socket boundary
Figure 14.14 Class diagram of additional classes
14.6.3
Implementation
The implementation of the increment of this prototype with respect to the
previous one consists of communication via sockets (for further details see
Sidebar 14.1).
 
 
Search WWH ::




Custom Search