|
SmartFrog 3.10.000 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.smartfrog.sfcore.reference.RemoteReferenceResolverHelperImpl
org.smartfrog.sfcore.prim.PrimImpl
org.smartfrog.sfcore.compound.CompoundImpl
org.smartfrog.examples.dynamicwebserver.gui.graphpanel.GraphImpl
public class GraphImpl
A compound to collect data from a source and convert into some other form.
| Field Summary | |
|---|---|
protected boolean |
adjust
|
java.util.Vector |
allValues
|
protected java.lang.String |
dataDisplayed
|
protected boolean |
display
|
protected java.lang.String |
frameTitle
|
GraphPanel |
gp
|
protected int |
gridStepX
|
protected int |
gridStepY
|
protected boolean |
histogram
|
protected LogWrapper |
logger
|
protected int |
maxX
|
protected int |
maxY
|
protected int |
minX
|
protected int |
minY
|
protected int |
numberOfSamples
|
protected int |
panelHeight
|
protected int |
panelWidth
|
protected java.lang.String |
pencilColour
|
java.lang.String |
positionDisplay
|
protected DataSource |
source
|
protected int |
stepX
|
javax.swing.JFrame |
targetDisplay
|
protected int |
xOffset
|
protected int |
yOffset
|
| Fields inherited from class org.smartfrog.sfcore.compound.CompoundImpl |
|---|
childCap, childInc, lifecycleChildren, sfChildren, sfSyncTerminate |
| Fields inherited from class org.smartfrog.sfcore.prim.PrimImpl |
|---|
refLivenessDelay, refLivenessFactor, sfCompleteName, sfContext, sfDeployHooks, sfDeployWithHooks, sfExportRef, sfIsDeployed, sfIsStarted, sfIsTerminated, sfIsTerminating, sfLivenessCount, sfLivenessDelay, sfLivenessFactor, sfLivenessSender, sfParent, sfStartHooks, sfTerminateWithHooks, termLock |
| Fields inherited from interface org.smartfrog.examples.dynamicwebserver.gui.graphpanel.Graph |
|---|
ADJUST, DATADISPLAYED, DATASOURCE, DISPLAY, FRAMETITLE, GRAPHPENCILWIDTH, GRIDSTEPX, GRIDSTEPY, HISTOGRAM, KEYSALLOWED, LOGTO, MAXX, MAXY, MINX, MINY, PANELHEIGHT, PANELWIDTH, PENCILCOLOUR, POLLINGPERIOD, POSITIONDISPLAY, STEPX, XOFFSET, YOFFSET |
| Constructor Summary | |
|---|---|
GraphImpl()
|
|
| Method Summary | |
|---|---|
void |
collectGraphData()
Collect all data relevant to the graph display: number of samples to display, axis min & max values, grid distances, panel size |
protected void |
convertData(int value)
|
GraphPanel |
createGraphPanel(java.awt.Dimension size)
Create a specific graph panel to display the data from this data source |
protected void |
getData()
Overwrite this function if you're accessing a given source of data. |
void |
initGraph()
If a display has been requested, collect the variables and initialize the graph panel |
void |
initializeGraph()
Initialize all graphical data here |
protected GraphPanel |
initPanel(GraphPanel gp)
|
void |
run()
The collecting thread's run method... |
void |
sfDeploy()
Deploy phase : deplou children, initialize graph |
void |
sfStart()
Start phase : begin value collection here |
void |
sfTerminateWith(TerminationRecord tr)
Termination hook : close threads & windows |
void |
startCollection()
Start the collection of data here : reset the vector, get the source and start the polling thread. |
| Methods inherited from class org.smartfrog.sfcore.compound.CompoundImpl |
|---|
sfAddChild, sfASyncTerminateWith, sfChildren, sfContainsChild, sfCreateNewApp, sfCreateNewChild, sfCreateNewChild, sfDeployChildren, sfDeployComponentDescription, sfDeployWith, sfDeployWithChildren, sfDumpState, sfParentageChanged, sfPing, sfPingChild, sfRemoveAttribute, sfRemoveChild, sfStartChildren, sfSyncTerminateWith, sfTerminatedWith |
| Methods inherited from class org.smartfrog.sfcore.reference.RemoteReferenceResolverHelperImpl |
|---|
sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolveWithParser |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.smartfrog.sfcore.compound.Compound |
|---|
sfCreateNewApp, sfCreateNewChild, sfCreateNewChild, sfDeployComponentDescription |
| Methods inherited from interface org.smartfrog.sfcore.prim.Prim |
|---|
sfAddAttribute, sfAttributeKeyFor, sfAttributes, sfCompleteName, sfContainsAttribute, sfContainsValue, sfContext, sfDeployedHost, sfDeployedProcessName, sfDeployWith, sfDetach, sfDetachAndTerminate, sfDumpState, sfIsDeployed, sfIsStarted, sfIsTerminated, sfIsTerminating, sfParent, sfParentageChanged, sfRemoveAttribute, sfReplaceAttribute, sfTerminate, sfTerminatedWith, sfTerminateQuietlyWith, sfValues |
| Methods inherited from interface org.smartfrog.sfcore.prim.Liveness |
|---|
sfPing |
| Methods inherited from interface org.smartfrog.sfcore.reference.RemoteReferenceResolver |
|---|
sfResolve, sfResolve, sfResolveHere, sfResolveHere, sfResolveParent |
| Methods inherited from interface org.smartfrog.sfcore.reference.RemoteReferenceResolverHelper |
|---|
sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolveWithParser |
| Methods inherited from interface org.smartfrog.sfcore.prim.Diagnostics |
|---|
sfDiagnosticsReport |
| Methods inherited from interface org.smartfrog.sfcore.prim.ChildMinder |
|---|
sfAddChild, sfChildren, sfContainsChild, sfRemoveChild |
| Field Detail |
|---|
protected DataSource source
protected java.lang.String dataDisplayed
protected int minY
protected int minX
protected int maxX
protected int maxY
protected int stepX
protected int gridStepX
protected int gridStepY
protected int xOffset
protected int yOffset
protected int panelWidth
protected int panelHeight
protected java.lang.String pencilColour
protected java.lang.String frameTitle
protected boolean display
protected boolean adjust
protected boolean histogram
protected LogWrapper logger
public javax.swing.JFrame targetDisplay
public java.lang.String positionDisplay
public GraphPanel gp
public java.util.Vector allValues
protected int numberOfSamples
| Constructor Detail |
|---|
public GraphImpl()
throws java.rmi.RemoteException
java.rmi.RemoteException| Method Detail |
|---|
public void sfDeploy()
throws SmartFrogException,
java.rmi.RemoteException
sfDeploy in interface PrimsfDeploy in class CompoundImplSmartFrogException - DOCUMENT ME!
java.rmi.RemoteException - DOCUMENT ME!
public void initGraph()
throws java.lang.Exception
java.lang.Exception - DOCUMENT ME!
public void sfStart()
throws SmartFrogException,
java.rmi.RemoteException
sfStart in interface PrimsfStart in class CompoundImplSmartFrogException - DOCUMENT ME!
java.rmi.RemoteException - DOCUMENT ME!
public void collectGraphData()
throws java.lang.Exception
java.lang.Exception - DOCUMENT ME!public void initializeGraph()
public void startCollection()
throws java.lang.Exception
java.lang.Exception - DOCUMENT ME!public GraphPanel createGraphPanel(java.awt.Dimension size)
size - DOCUMENT ME!
protected GraphPanel initPanel(GraphPanel gp)
public void run()
run in interface java.lang.Runnablepublic void sfTerminateWith(TerminationRecord tr)
sfTerminateWith in class CompoundImpltr - DOCUMENT ME!protected void convertData(int value)
protected void getData()
|
SmartFrog CORE 3.10.000 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||