public class DataIdentInfo extends Command
DataIdentTree
Modifier and Type | Field and Description |
---|---|
private ArchiveManager |
archMgr |
private int |
asp |
private Aspect[] |
asps |
private int |
atg |
private AttributeGroup[] |
atgs |
private int |
linesPerPage |
private int |
maxPerLine |
private DataModel |
model |
private int |
obj |
private SystemObject[] |
objects |
private static String |
PAGER |
private int |
simVar |
private int[] |
simVars |
private boolean |
stopCmd |
private DataIdentTree |
tree |
Constructor and Description |
---|
DataIdentInfo(ArchiveManager am)
simple constructor
|
Modifier and Type | Method and Description |
---|---|
void |
execute()
Methode muss von einer implementierenden Klasse gefüllt werden
|
int |
getAsp(Aspect[] asps)
Aspekt für das zuvor gewählte Objekt und Attributgruppe wählen
|
int |
getAtg(AttributeGroup[] atgs)
Attributgruppe aus allen möglichen für das zuvor ausgewählte Objekt wählen
|
void |
getDirectNavigation(String input)
Direktnavigation mit kommaseparierten Werten
|
int |
getObject(SystemObject[] objects)
Objekt aus allen möglichen des DataIdentTree auswählen
|
int |
getSimVar(int[] simVars)
Simulationsvariante für die ansonsten spezifizierte Datenidentifikation wählen
|
String |
getUserInput()
liest die benutzereingabe oder setzt das Flag zum Abbrechen, falls "e" eingegeben wird
|
void |
printBlank(int count)
prints blank lines
|
void |
printInfo(long objId,
long atgId,
long aspId,
int simVar,
Vector<String[]> info)
gibt das ausgewaehlte Objekt auf StdOut aus
|
void |
resetInput()
Felder für Objekte, Attributgruppen, Aspekte, SimulationsVarianten zurücksetzen
|
SystemObject[] |
sortArray(SystemObject[] in)
Sortiert eine Array von Objekten nach der Pid mit Quicksort
|
private static String PAGER
private ArchiveManager archMgr
private DataIdentTree tree
private DataModel model
private boolean stopCmd
private final int linesPerPage
private final int maxPerLine
private SystemObject[] objects
private int obj
private AttributeGroup[] atgs
private int atg
private Aspect[] asps
private int asp
private int[] simVars
private int simVar
public DataIdentInfo(ArchiveManager am)
public void execute() throws Exception
de.bsvrz.sys.funclib.losb.util.cmdinterface.Command
execute
in class Command
Exception
- meist bei Server-Timeout (wird im CmdInterpreter
abgefangen)Command.execute()
public void resetInput()
public void getDirectNavigation(String input) throws Exception
input
- Exception
public int getObject(SystemObject[] objects) throws Exception
objects
- Exception
public int getAtg(AttributeGroup[] atgs) throws Exception
atgs
- Exception
public int getAsp(Aspect[] asps) throws Exception
asps
- mögliche AspekteException
public int getSimVar(int[] simVars) throws Exception
simVars
- Exception
public void printInfo(long objId, long atgId, long aspId, int simVar, Vector<String[]> info) throws Exception
objId
- atgId
- aspId
- simVar
- Exception
public SystemObject[] sortArray(SystemObject[] in) throws Exception
in
- Exception
public String getUserInput() throws Exception
Exception