|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.bsvrz.sys.usv.usv.DefaultUSV
de.bsvrz.sys.usv.junit.SimuUSVTest
public class SimuUSVTest
Klasse erzeugt eine Test-USV. Sie erfüllt die volle Funktionalität des Interface USVAllgemein. Über automatische Tests können die Werte die von einer realen USV-Anlage geliefert werden simuliert werden, bzw. die Werte die an eine reale USV-Anlage gesendet werden sollen, angezeigt werden. Alle Testergebnise werden in einer Log-Datei mit Datum und Uhrzeit gespeichert.
| Field Summary | |
|---|---|
private de.bsvrz.sys.funclib.debug.Debug |
_debug
|
private String |
m_attributgruppe
|
private int |
m_BatterieZustand
|
private de.bsvrz.dav.daf.main.ClientDavInterface |
m_connection
|
private EingangsfrequenzZustand |
m_EingangsFrequenzZustand
|
private String |
m_IBatterieZustand
|
private String |
m_IEingangsFrequenzZustand
|
private String |
m_IKommunikationsZustand
|
private String |
m_IKritischerZustand
|
private USVWrapper |
m_instance
|
private SimuUSVTest |
m_instanceSimuUsvTest
|
private String |
m_IUsvZustand
|
private String |
m_IWechselSpannung
|
private String |
m_IZustandNotstrom
|
private String |
m_IZustandPhase1
|
private String |
m_IZustandPhase2
|
private String |
m_IZustandPhase3
|
private KommunikationsZustand |
m_KommunikationsZustand
|
private String |
m_pidUsv
|
private USVZustand |
m_UsvZustand
|
private WechselSpannung |
m_WechselSpannung
|
private String |
m_wert
|
private ZustandNotstrom |
m_ZustandNotstrom
|
private ZustandPhase |
m_ZustandPhase1
|
private ZustandPhase |
m_ZustandPhase2
|
private ZustandPhase |
m_ZustandPhase3
|
| Fields inherited from interface de.bsvrz.dav.daf.main.ClientSenderInterface |
|---|
START_SENDING, STOP_SENDING, STOP_SENDING_NO_RIGHTS, STOP_SENDING_NOT_A_VALID_SUBSCRIPTION |
| Fields inherited from interface de.bsvrz.sys.usv.wrapper.USVAllgemein |
|---|
DEFAULT_TIMEOUT |
| Constructor Summary | |
|---|---|
SimuUSVTest(de.bsvrz.dav.daf.main.ClientDavInterface connection,
String pid_USV,
String test)
Konstruktor der Klasse |
|
| Method Summary | |
|---|---|
void |
dataRequest(de.bsvrz.dav.daf.main.config.SystemObject arg0,
de.bsvrz.dav.daf.main.DataDescription arg1,
byte arg2)
|
void |
davAnmelden(de.bsvrz.dav.daf.main.ClientDavInterface connection,
String pid_USV,
String atgusv)
Methode meldet sich beim Datenverteiler an. |
de.bsvrz.dav.daf.main.DataDescription |
davSendeAnmelden(de.bsvrz.dav.daf.main.ClientDavInterface connection,
String pid_USV,
String atgusv)
Methode zum Anmelden und Senden von Notstrom und USV-Betrieb |
int |
getBatterieZustand()
Methode zum Aulesen der Membervariablen |
EingangsfrequenzZustand |
getEingangsFrequenzZustand()
Methode zum Aulesen der Membervariablen |
USVWrapper |
getInstance()
Methode zum Lesen der Membervariablen m_instance |
KommunikationsZustand |
getKommunikationsZustand()
Methode zum Aulesen der Membervariablen |
USVZustand |
getUsvZustand()
Methode zum Aulesen der Membervariablen |
WechselSpannung |
getWechselSpannung()
Methode zum Aulesen der Membervariablen |
ZustandNotstrom |
getZustandNotstrom()
Methode zum Aulesen der Membervariablen |
ZustandPhase |
getZustandPhase1()
Methode zum Aulesen der Membervariablen |
ZustandPhase |
getZustandPhase2()
Methode zum Aulesen der Membervariablen |
ZustandPhase |
getZustandPhase3()
Methode zum Aulesen der Membervariablen |
boolean |
isRequestSupported(de.bsvrz.dav.daf.main.config.SystemObject arg0,
de.bsvrz.dav.daf.main.DataDescription arg1)
|
void |
pruefe(String atg,
String zustand,
String text,
String rueckmeldung)
Methode vergleicht Befehl mit Rückmeldung |
void |
run()
Methode wird alle 10 Sekunden gestartet |
void |
setInstance(USVWrapper instance)
Methode zum Setzen der Membervariablen m_instance |
int |
setNotstrom(boolean befehl)
Methode zum Setzen der Membervariablen m_BefehlNotstrom |
int |
setUsvBetrieb(boolean befehl)
Methode zum Setzen der Membervariablen m_BefehlNotstrom |
void |
sleep(int intervall)
Sleep für Sekundenintervalle |
static String |
time()
Methode zur Ausgabe des aktuellen Datums und Uhrzeit |
void |
update(de.bsvrz.dav.daf.main.ResultData[] arg0)
Updatemethode |
| Methods inherited from class de.bsvrz.sys.usv.usv.DefaultUSV |
|---|
getBatterieSpannung, getBatterieTemperatur, getBetriebsdauerBatterie, getUSVRestlaufzeit |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private USVZustand m_UsvZustand
private int m_BatterieZustand
private KommunikationsZustand m_KommunikationsZustand
private EingangsfrequenzZustand m_EingangsFrequenzZustand
private WechselSpannung m_WechselSpannung
private ZustandPhase m_ZustandPhase1
private ZustandPhase m_ZustandPhase2
private ZustandPhase m_ZustandPhase3
private ZustandNotstrom m_ZustandNotstrom
private final de.bsvrz.dav.daf.main.ClientDavInterface m_connection
private final String m_pidUsv
private USVWrapper m_instance
private final SimuUSVTest m_instanceSimuUsvTest
private String m_attributgruppe
private String m_wert
private String m_IUsvZustand
private String m_IBatterieZustand
private String m_IKommunikationsZustand
private String m_IEingangsFrequenzZustand
private String m_IWechselSpannung
private String m_IZustandPhase1
private String m_IZustandPhase2
private String m_IZustandPhase3
private String m_IZustandNotstrom
private String m_IKritischerZustand
private final de.bsvrz.sys.funclib.debug.Debug _debug
| Constructor Detail |
|---|
public SimuUSVTest(de.bsvrz.dav.daf.main.ClientDavInterface connection,
String pid_USV,
String test)
| Method Detail |
|---|
public void davAnmelden(de.bsvrz.dav.daf.main.ClientDavInterface connection,
String pid_USV,
String atgusv)
connection - pid_USV - atgusv -
public de.bsvrz.dav.daf.main.DataDescription davSendeAnmelden(de.bsvrz.dav.daf.main.ClientDavInterface connection,
String pid_USV,
String atgusv)
connection - pid_USV - atgusv - public void run()
run in interface RunnableInterruptedException
InterruptedException
public void pruefe(String atg,
String zustand,
String text,
String rueckmeldung)
atg - zustand - text - public void update(de.bsvrz.dav.daf.main.ResultData[] arg0)
update in interface de.bsvrz.dav.daf.main.ClientReceiverInterfacepublic void sleep(int intervall)
intervall - public USVZustand getUsvZustand()
getUsvZustand in interface USVAllgemeingetUsvZustand in class DefaultUSVpublic int getBatterieZustand()
getBatterieZustand in interface USVAllgemeingetBatterieZustand in class DefaultUSVpublic KommunikationsZustand getKommunikationsZustand()
getKommunikationsZustand in interface USVAllgemeingetKommunikationsZustand in class DefaultUSVpublic EingangsfrequenzZustand getEingangsFrequenzZustand()
getEingangsFrequenzZustand in interface USVAllgemeingetEingangsFrequenzZustand in class DefaultUSVpublic WechselSpannung getWechselSpannung()
getWechselSpannung in interface USVAllgemeingetWechselSpannung in class DefaultUSVpublic ZustandPhase getZustandPhase1()
getZustandPhase1 in interface USVAllgemeingetZustandPhase1 in class DefaultUSVpublic ZustandPhase getZustandPhase2()
getZustandPhase2 in interface USVAllgemeingetZustandPhase2 in class DefaultUSVpublic ZustandPhase getZustandPhase3()
getZustandPhase3 in interface USVAllgemeingetZustandPhase3 in class DefaultUSVpublic ZustandNotstrom getZustandNotstrom()
getZustandNotstrom in interface USVAllgemeingetZustandNotstrom in class DefaultUSVpublic int setNotstrom(boolean befehl)
setNotstrom in interface USVAllgemeinsetNotstrom in class DefaultUSVbefehl - 0: passiv 1: aktiv
public int setUsvBetrieb(boolean befehl)
setUsvBetrieb in interface USVAllgemeinsetUsvBetrieb in class DefaultUSVbefehl - 0: Normalbetrieb 1: Batteriebetrieb
public void setInstance(USVWrapper instance)
setInstance in interface USVAllgemeinsetInstance in class DefaultUSVinstance - Instanz der Hauptklassepublic USVWrapper getInstance()
public static String time()
public void dataRequest(de.bsvrz.dav.daf.main.config.SystemObject arg0,
de.bsvrz.dav.daf.main.DataDescription arg1,
byte arg2)
dataRequest in interface de.bsvrz.dav.daf.main.ClientSenderInterface
public boolean isRequestSupported(de.bsvrz.dav.daf.main.config.SystemObject arg0,
de.bsvrz.dav.daf.main.DataDescription arg1)
isRequestSupported in interface de.bsvrz.dav.daf.main.ClientSenderInterface
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||