|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectat.jku.fim.datalinksimulation.networkstack.incoming.IncomingNetworkStack
public class IncomingNetworkStack
Title: OSI Simulation Framework
Copyright: (c) 2004-05
Company: FIM@JKU, www.fim.uni-linz.ac.at
Field Summary | |
---|---|
protected IncomingNetworkStackConfiguration |
configuration
Filter configuration for incoming network stack |
protected Logger |
logger
Associated logger instance |
static java.lang.String |
NETWORK_PARAM_STATION_ID
network stack parameter name for the ID of the host station |
protected java.lang.Object |
stationId
Host station ID |
protected java.util.Vector |
subscribers
Registered interested objects |
Constructor Summary | |
---|---|
IncomingNetworkStack(IncomingNetworkStackConfiguration configuration,
java.lang.Object stationID)
Constrcutor |
Method Summary | |
---|---|
IncomingNetworkStackConfiguration |
getConfiguration()
|
java.lang.Object |
getStationId()
|
(package private) boolean |
isSubscribed(java.lang.Object observer)
Check if instance is subsribed |
protected void |
receive(NetworkStackParameters params,
RawData data)
This method is called whenever data is received on the connected wire |
void |
receiveNewData(RawData data,
NetworkStackParameters params)
|
void |
setConfiguration(IncomingNetworkStackConfiguration configuration)
Set a new filter configuration |
void |
setParentLogger(Logger parent)
|
void |
setStationId(java.lang.Object stationId)
|
void |
subscribe(IncomingNetworkStackObserver newObserver)
Subscribe to results of the incoming network stack; The only one who currently subscribes it is the NetworkStack class |
void |
unsubscribe(IncomingNetworkStackObserver registeredObserver)
Unsubscrive |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static java.lang.String NETWORK_PARAM_STATION_ID
protected java.lang.Object stationId
protected IncomingNetworkStackConfiguration configuration
protected java.util.Vector subscribers
protected Logger logger
Constructor Detail |
---|
public IncomingNetworkStack(IncomingNetworkStackConfiguration configuration, java.lang.Object stationID)
configuration
- Filter configurationstationID
- Station IDMethod Detail |
---|
public void subscribe(IncomingNetworkStackObserver newObserver)
newObserver
- public void unsubscribe(IncomingNetworkStackObserver registeredObserver)
registeredObserver
- boolean isSubscribed(java.lang.Object observer)
observer
-
public void setConfiguration(IncomingNetworkStackConfiguration configuration) throws InvalidFilterConfigurationException
configuration
- Filter configuration
InvalidFilterConfigurationException
public IncomingNetworkStackConfiguration getConfiguration()
protected void receive(NetworkStackParameters params, RawData data)
params
- network stack paramsdata
- received datapublic void receiveNewData(RawData data, NetworkStackParameters params)
public java.lang.Object getStationId()
public void setStationId(java.lang.Object stationId)
stationId
- The stationId to set.public void setParentLogger(Logger parent)
parent
- Parent logger
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |