-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMedium.java
More file actions
38 lines (23 loc) · 1.3 KB
/
Medium.java
File metadata and controls
38 lines (23 loc) · 1.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
// ===================================================================
// Medium
// Scott F. H. Kaplan -- http://www.cs.amherst.edu/~sfkaplan
// September 2004
// ===================================================================
// ===================================================================
// A medium carries bits from one physical layer to others.
abstract class Medium {
// ===================================================================
// ===============================================================
// PUBLIC METHODS
// ===============================================================
// ===============================================================
// Register a client physical layer to be connected to the medium.
abstract public void register (PhysicalLayer client);
// ===============================================================
// ===============================================================
// Send a bit from one physical layer to others.
abstract public void send (PhysicalLayer sender, boolean bit);
// ===============================================================
// ===================================================================
} // class Medium
// ===================================================================