de.stz.bt.fnd.datapoints.types
Class FND_SwitchPointImpl

java.lang.Object
  extended byjava.util.Observable
      extended byde.stz.bt.framework.DataPoint
          extended byde.stz.bt.fnd.datapoints.FND_DataPoint
              extended byde.stz.bt.fnd.datapoints.types.FND_SwitchPointImpl
All Implemented Interfaces:
FND_SwitchPoint

public class FND_SwitchPointImpl
extends FND_DataPoint
implements FND_SwitchPoint

Implementation of a FND Switchpoint (Schaltpunkt FND 1.0 Spec. Page 39)

Version:
$Id: FND_SwitchPointImpl.html,v 1.2 2004/11/08 08:10:44 jseitter Exp $
Author:
J. Seitter

Field Summary
private  byte actual
           
private  byte attribute_id
           
private  boolean bta_error
           
private  boolean changed
           
private  byte dp_type
           
private  java.lang.String dp_type_name
           
private  boolean local
           
private  boolean locked
           
private  byte nominal
           
private  boolean sensor_error
           
 
Fields inherited from class de.stz.bt.fnd.datapoints.FND_DataPoint
COLLECTADDRESSPOINT, COUNTPOINT, MEASUREPOINT, MESSAGEPOINT, SETPOINT, SWITCHPOINT, TRANSFERPOINT
 
Fields inherited from class de.stz.bt.framework.DataPoint
logger
 
Fields inherited from class java.util.Observable
 
Constructor Summary
FND_SwitchPointImpl(java.lang.String dp_id)
           
 
Method Summary
 java.lang.String[] getAttribute()
           
 byte getDp_type()
           
 java.lang.String getDPName()
           
 byte getValue()
           
 java.lang.String getValueString()
           
 void handleACKDatagram(FND_Datagram dgram)
           
 FND_Datagram handleCMDDatagram(FND_Datagram dgram)
           
 void handleRSPDatagram(FND_Datagram dgram)
           
 FND_Datagram handleUSMDatagram(FND_Datagram dgram)
           
private  void invalidOperation()
           
private  void operationA1()
          Operation J
private  void operationC1()
          Operation A
private  void operationC2()
          Operation B
private  void operationC3()
          Operation C
private  void operationC4()
          Operation D
private  void operationR1()
          Operation E
private  void operationR2()
          Operation F
private  void operationR3()
          Operation G
private  void operationR4()
          Operation H
private  void operationU1(FND_Datagram dgram)
          Operation I
 void setValue(byte value)
           
 void update()
           
 
Methods inherited from class de.stz.bt.fnd.datapoints.FND_DataPoint
lockDP, printDatapointStatus, registerDatapointObserver, setCentralControl, setDataPointID, setIslandControl, setPrivilegeDegree, setResidualPriority, unlockDP
 
Methods inherited from class de.stz.bt.framework.DataPoint
getCreationTime, getLastAccessTime, getLastChangeTime, setLastAccessTime, setLastChangeTime
 
Methods inherited from class java.util.Observable
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

dp_type

private byte dp_type

dp_type_name

private final java.lang.String dp_type_name
See Also:
Constant Field Values

attribute_id

private byte attribute_id

actual

private byte actual

nominal

private byte nominal

local

private boolean local

locked

private boolean locked

changed

private boolean changed

bta_error

private boolean bta_error

sensor_error

private boolean sensor_error
Constructor Detail

FND_SwitchPointImpl

public FND_SwitchPointImpl(java.lang.String dp_id)
Method Detail

getDp_type

public byte getDp_type()
Specified by:
getDp_type in class FND_DataPoint
Returns:
Each Datapoint has to implement the getDp_Type and return the correct constant from FND_DataPoint

handleCMDDatagram

public FND_Datagram handleCMDDatagram(FND_Datagram dgram)
Specified by:
handleCMDDatagram in class FND_DataPoint
Parameters:
dgram -
Returns:
the result datagram

handleRSPDatagram

public void handleRSPDatagram(FND_Datagram dgram)
Specified by:
handleRSPDatagram in class FND_DataPoint
Parameters:
dgram -

handleUSMDatagram

public FND_Datagram handleUSMDatagram(FND_Datagram dgram)
                               throws java.lang.Exception
Specified by:
handleUSMDatagram in class FND_DataPoint
Parameters:
dgram -
Returns:
the result datagram
Throws:
java.lang.Exception

handleACKDatagram

public void handleACKDatagram(FND_Datagram dgram)
Specified by:
handleACKDatagram in class FND_DataPoint
Parameters:
dgram -

operationC1

private void operationC1()
Operation A


operationC2

private void operationC2()
Operation B


operationC3

private void operationC3()
Operation C


operationC4

private void operationC4()
Operation D


operationR1

private void operationR1()
Operation E


operationR2

private void operationR2()
Operation F


operationR3

private void operationR3()
Operation G


operationR4

private void operationR4()
Operation H


operationU1

private void operationU1(FND_Datagram dgram)
Operation I


operationA1

private void operationA1()
Operation J


invalidOperation

private void invalidOperation()
                       throws java.lang.Exception
Throws:
java.lang.Exception

getDPName

public java.lang.String getDPName()
Specified by:
getDPName in interface FND_SwitchPoint

getValueString

public java.lang.String getValueString()
Specified by:
getValueString in interface FND_SwitchPoint

getValue

public byte getValue()
Specified by:
getValue in interface FND_SwitchPoint

setValue

public void setValue(byte value)
Specified by:
setValue in interface FND_SwitchPoint

getAttribute

public java.lang.String[] getAttribute()
Specified by:
getAttribute in interface FND_SwitchPoint

update

public void update()
Specified by:
update in interface FND_SwitchPoint