Package de.bsvrz.ars.ars.mgmt.commands
Class DataIdentInfo
java.lang.Object
de.bsvrz.sys.funclib.losb.util.cmdinterface.Command
de.bsvrz.ars.ars.mgmt.commands.DataIdentInfo
public final class DataIdentInfo
extends de.bsvrz.sys.funclib.losb.util.cmdinterface.Command
Kommando zum Ausgeben von Informationen einer bestimmten Datenidentifikation aus dem
DataIdentTree
-
Constructor Summary
Constructors Constructor Description DataIdentInfo(ArchiveManager am)
simple constructor -
Method Summary
Modifier and Type Method Description void
execute()
int
getAsp(java.util.List<de.bsvrz.dav.daf.main.config.SystemObject> asps)
Aspekt für das zuvor gewählte Objekt und Attributgruppe wählenint
getAtg(java.util.List<de.bsvrz.dav.daf.main.config.SystemObject> atgs)
Attributgruppe aus allen möglichen für das zuvor ausgewählte Objekt wählenvoid
getDirectNavigation(java.lang.String input)
Direktnavigation mit kommaseparierten Wertenint
getObject(java.util.List<de.bsvrz.dav.daf.main.config.SystemObject> objects)
Objekt aus allen möglichen des DataIdentTree auswählenint
getSelectedSimVar()
Simulationsvariante für die ansonsten spezifizierte Datenidentifikation wählenjava.lang.String
getUserInput()
liest die benutzereingabe oder setzt das Flag zum Abbrechen, falls "e" eingegeben wirdvoid
printBlank(int count)
prints blank linesvoid
printInfo(long objId, long atgId, long aspId, int simVar, java.util.Vector<java.lang.String[]> info)
gibt das ausgewählte Objekt auf StdOut ausvoid
resetInput()
Felder für Objekte, Attributgruppen, Aspekte, SimulationsVarianten zurücksetzenMethods inherited from class de.bsvrz.sys.funclib.losb.util.cmdinterface.Command
getDesc, getHelp, getIndex, getParent, println, printlnPlain, readln, setDesc, setHelp, setIndex, setParent, setStreams, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Constructor Details
-
DataIdentInfo
simple constructor
-
-
Method Details
-
execute
public void execute() throws java.lang.Exception- Specified by:
execute
in classde.bsvrz.sys.funclib.losb.util.cmdinterface.Command
- Throws:
java.lang.Exception
-
resetInput
public void resetInput()Felder für Objekte, Attributgruppen, Aspekte, SimulationsVarianten zurücksetzen -
getObject
public int getObject(java.util.List<de.bsvrz.dav.daf.main.config.SystemObject> objects) throws java.lang.ExceptionObjekt aus allen möglichen des DataIdentTree auswählen- Parameters:
objects
-- Returns:
- die Id des Objekts, -1 bei Abbruch durch User
- Throws:
java.lang.Exception
-
getAtg
public int getAtg(java.util.List<de.bsvrz.dav.daf.main.config.SystemObject> atgs) throws java.lang.ExceptionAttributgruppe aus allen möglichen für das zuvor ausgewählte Objekt wählen- Parameters:
atgs
-- Returns:
- die Id der Attributgruppe, -1 bei Abbruch durch User
- Throws:
java.lang.Exception
-
getAsp
public int getAsp(java.util.List<de.bsvrz.dav.daf.main.config.SystemObject> asps) throws java.lang.ExceptionAspekt für das zuvor gewählte Objekt und Attributgruppe wählen- Parameters:
asps
- mögliche Aspekte- Returns:
- die Id des gewählten Aspekts
- Throws:
java.lang.Exception
-
getSelectedSimVar
public int getSelectedSimVar() throws java.lang.ExceptionSimulationsvariante für die ansonsten spezifizierte Datenidentifikation wählen- Returns:
- die Simulationsvariante, -1 bei Abbruch durch User
- Throws:
java.lang.Exception
-
printInfo
public void printInfo(long objId, long atgId, long aspId, int simVar, java.util.Vector<java.lang.String[]> info) throws java.lang.Exceptiongibt das ausgewählte Objekt auf StdOut aus- Parameters:
objId
-atgId
-aspId
-simVar
-- Throws:
java.lang.Exception
-
getUserInput
public java.lang.String getUserInput() throws java.lang.Exceptionliest die benutzereingabe oder setzt das Flag zum Abbrechen, falls "e" eingegeben wird- Returns:
- the inputString
- Throws:
java.lang.Exception
-
printBlank
public void printBlank(int count) throws java.lang.Exceptionprints blank lines- Parameters:
count
- number of blank lines- Throws:
java.lang.Exception
-