Main Page | Packages | Class Hierarchy | Compound List | Compound Members

de.stz.bt.fnd.datapoints.types.FND_MessagePointImpl Class Reference

Inheritance diagram for de.stz.bt.fnd.datapoints.types.FND_MessagePointImpl:

de.stz.bt.fnd.datapoints.FND_DataPoint de.stz.bt.framework.DataPoint List of all members.

Public Member Functions

 FND_MessagePointImpl (String dp_id)
byte getDp_type ()
FND_Datagram setDPStatus (FND_Datagram dgram) throws Exception
FND_Datagram handleCMDDatagram (FND_Datagram dgram) throws Exception
void handleRSPDatagram (FND_Datagram dgram) throws Exception
FND_Datagram handleUSMDatagram (FND_Datagram dgram) throws Exception
void handleACKDatagram (FND_Datagram dgram) throws Exception

Detailed Description

Implementation of a FND Messagepoint (Meldepunkt FND 1.0 Spec. Page 35)

Author:
J. Seitter
Version:
Id
FND_MessagePointImpl.java,v 1.4 2004/11/12 09:08:15 jseitter Exp


Member Function Documentation

byte de.stz.bt.fnd.datapoints.types.FND_MessagePointImpl.getDp_type  )  [virtual]
 

Returns:
dp_type returns the dp_type Value
See also:
FND_Datapoint

Implements de.stz.bt.fnd.datapoints.FND_DataPoint.

00069                            {
00070     return dp_type;
00071   }

void de.stz.bt.fnd.datapoints.types.FND_MessagePointImpl.handleACKDatagram FND_Datagram  dgram  )  throws Exception [virtual]
 

Parameters:
dgram 
Exceptions:
Exception 

Implements de.stz.bt.fnd.datapoints.FND_DataPoint.

00341                      {
00342 
00343     // copy the relvant part    
00344     byte tab_id = dgram.getOperationsCode()[1];
00345     byte fct_id = dgram.getOperationsCode()[0];
00346 
00347     switch (tab_id) {
00348       case 0 :
00349         this.invalidOperation();
00350         break;
00351       case 1 :
00352         switch (fct_id) {
00353           case 1 :
00354             this.operationA1();
00355             break;
00356           case 2 :
00357             this.invalidOperation();
00358             break;
00359         }
00360         break;
00361     }
00362 
00363     // check if we have to notify
00364     super.notifyObservers();
00365     
00366   }

FND_Datagram de.stz.bt.fnd.datapoints.types.FND_MessagePointImpl.handleCMDDatagram FND_Datagram  dgram  )  throws Exception [virtual]
 

Parameters:
dgram 
Returns:
the result datagram
Exceptions:
Exception 

Implements de.stz.bt.fnd.datapoints.FND_DataPoint.

00231                      {
00232     
00233     // copy the relevant parts
00234     byte tab_id = dgram.getOperationsCode()[1];
00235     byte fct_id = dgram.getOperationsCode()[0];
00236 
00237     switch (tab_id) {
00238       case 0 :
00239         switch (fct_id) {
00240           case 1 :
00241             this.operationC1(dgram);
00242             break;
00243           case 2 :
00244             this.operationC2(dgram);
00245             break;
00246         }
00247         break;
00248       case 1 :
00249         switch (fct_id) {
00250           case 1 :
00251             this.operationC3(dgram);
00252             break;
00253           case 2 :
00254             this.invalidOperation();
00255             break;
00256         }
00257         break;
00258     }
00259     // check if we have to notify
00260     super.notifyObservers();
00261     return dgram;
00262   }

void de.stz.bt.fnd.datapoints.types.FND_MessagePointImpl.handleRSPDatagram FND_Datagram  dgram  )  throws Exception [virtual]
 

Parameters:
dgram 
Exceptions:
Exception 

Implements de.stz.bt.fnd.datapoints.FND_DataPoint.

00268                      {
00269     
00270     
00271     // get the relevant field out of the datagram
00272     byte tab_id = dgram.getOperationsCode()[1];
00273     byte fct_id = dgram.getOperationsCode()[0];
00274     
00275     switch (tab_id) {
00276       case 0 :
00277         switch (fct_id) {
00278           case 1 :
00279             this.operationR1();
00280             break;
00281           case 2 :
00282             this.operationR2();
00283             break;
00284         }
00285         break;
00286       case 1 :
00287         switch (fct_id) {
00288           case 1 :
00289             this.operationR3();
00290             break;
00291           case 2 :
00292             this.invalidOperation();
00293             break;
00294         }
00295         break;
00296     }
00297     // check if we have to notify
00298     super.notifyObservers();
00299     
00300   }

FND_Datagram de.stz.bt.fnd.datapoints.types.FND_MessagePointImpl.handleUSMDatagram FND_Datagram  dgram  )  throws Exception [virtual]
 

Parameters:
dgram 
Returns:
the result datagram
Exceptions:
Exception 

Implements de.stz.bt.fnd.datapoints.FND_DataPoint.

00306                      {
00307 
00308     // copy the relevant part   
00309     byte tab_id = dgram.getOperationsCode()[1];
00310     byte fct_id = dgram.getOperationsCode()[0];
00311     
00312     // recycle the datagram as the response object !
00313     FND_Datagram result = dgram;
00314 
00315 
00316     switch (tab_id) {
00317       case 0 :
00318         this.invalidOperation();
00319         break;
00320       case 1 :
00321         switch (fct_id) {
00322           case 1 :
00323             this.operationU1(dgram);
00324             break;
00325           case 2 :
00326             this.invalidOperation();
00327             break;
00328         }
00329         break;
00330     }
00331     // check if we have to notify
00332     super.notifyObservers();
00333 
00334     return dgram;
00335   }


The documentation for this class was generated from the following file:
Generated on Mon Nov 15 08:36:12 2004 for FND4J by doxygen 1.3.3