nups
Class NetworkObject

java.lang.Object
  |
  +--nups.NetworkObject

class NetworkObject
extends java.lang.Object

A network object has samples and experiments.

See Also:

Field Summary
(package private)  javax.swing.DefaultListModel sampleList
           
 
Constructor Summary
NetworkObject(java.lang.String Name, java.lang.String Description, int identifier)
           
 
Method Summary
 int countSamples()
           
 void createExperiment(java.lang.String Methode)
          Calls createExperiment(String Methode,boolean saveToDb) with saveToDb true
 void createExperiment(java.lang.String Methode, boolean saveToDb)
          Add a new sample
 void createSample(int value, java.sql.Timestamp time, boolean saveToDb)
          Add a new sample
 java.lang.String getDescription()
          An operation that does...
 LBChart2D getGraph()
           
 int getIdentifier()
          An operation that does...
 java.lang.String getName()
          An operation that does...
 Sample getSample(int num)
          An operation that does...
 javax.swing.DefaultListModel getSamples()
           
 javax.swing.table.TableModel getSamplesTable()
           
 boolean setDescription(java.lang.String Description)
          An operation that does...
 boolean setIdentifier(int identifier)
          An operation that does...
 boolean setName(java.lang.String name)
          An operation that does...
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

sampleList

javax.swing.DefaultListModel sampleList
Constructor Detail

NetworkObject

public NetworkObject(java.lang.String Name,
                     java.lang.String Description,
                     int identifier)
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

countSamples

public int countSamples()

getGraph

public LBChart2D getGraph()

getSample

public Sample getSample(int num)
An operation that does...
Parameters:
firstParam - a description of this parameter

createExperiment

public void createExperiment(java.lang.String Methode,
                             boolean saveToDb)
Add a new sample
Parameters:
Methode - methode wich is used to calculate predictions
saveToDb - Indicates if this experiment should be saved to database

createSample

public void createSample(int value,
                         java.sql.Timestamp time,
                         boolean saveToDb)
Add a new sample
Parameters:
value - Value of the new sample
time - Time on wich the sample was measured
saveToDb - Indicates if this sample should be saved to database

createExperiment

public void createExperiment(java.lang.String Methode)
Calls createExperiment(String Methode,boolean saveToDb) with saveToDb true
Parameters:
Methode - name of used methode

setName

public boolean setName(java.lang.String name)
An operation that does...
Parameters:
firstParam - a description of this parameter

setDescription

public boolean setDescription(java.lang.String Description)
An operation that does...
Parameters:
firstParam - a description of this parameter

setIdentifier

public boolean setIdentifier(int identifier)
An operation that does...
Parameters:
firstParam - a description of this parameter

getDescription

public java.lang.String getDescription()
An operation that does...
Parameters:
firstParam - a description of this parameter

getIdentifier

public int getIdentifier()
An operation that does...
Parameters:
firstParam - a description of this parameter

getName

public java.lang.String getName()
An operation that does...
Parameters:
firstParam - a description of this parameter

getSamplesTable

public javax.swing.table.TableModel getSamplesTable()

getSamples

public javax.swing.DefaultListModel getSamples()