gov.lbl.genome.common
Class VistaCurveModel

java.lang.Object
  extended by gov.lbl.genome.common.AbstractCurveModel
      extended by gov.lbl.genome.common.VistaCurveModel
All Implemented Interfaces:
CurveModel, java.lang.Cloneable

public class VistaCurveModel
extends AbstractCurveModel
implements java.lang.Cloneable

Title: VistaCurveModel

Description: Vista data model

Copyright: Copyright (c) 2002 Ernest Orlando Lawrence Berkeley National Laboratory

Company: LBNL


Field Summary
protected  int calcWindow
           
protected  int consIdentity
           
protected  int minConsWidth
           
 
Fields inherited from class gov.lbl.genome.common.AbstractCurveModel
annotations, curveInfo, data, hidden, id, maxX, minX, X_TYPE, Y_TYPE
 
Constructor Summary
VistaCurveModel(java.lang.String id, int calcWindow, int minConsWidth, int consIdentity, int minx, int maxx)
           
VistaCurveModel(java.util.TreeMap data, java.lang.String id, int calcWindow, int minConsWidth, int consIdentity, int minx, int maxx)
          VistaCurveModel
VistaCurveModel(java.util.TreeMap data, java.lang.String id, int calcWindow, int minConsWidth, int consIdentity, java.util.Vector annotations, int minx, int maxx)
          VistaCurveModel
 
Method Summary
 int getCalcWindow()
          get Calc Window
 int getConsIdentity()
          get Cons Identity
 int getMinConsWidth()
          get Min Cons Width
 int getMinY()
          get Min Y
 java.lang.String getMode()
          get Mode
 int getOrgId()
          get Organism Id
 java.lang.String getParameterString(VistaApp vapp)
          this set of parameters will be passed to the server: &calcWindow=???&minConsWidth=???&minConsIdentity=???&numDataPoints=???&genes=???
 java.lang.String getRunOrg()
          get Run_ID and Org_ID in the form ready to pass to the server: _
 boolean refresh(VistaApp vapp, long minx, long maxx)
          request data from the server
 void setMinY(int y)
          set Min Y
 
Methods inherited from class gov.lbl.genome.common.AbstractCurveModel
addPoint, cloneCurve, equals, getAllPoints, getAnnotations, getCurveInfo, getData, getEndPoint, getID, getInterval, getLongName, getMaxX, getMinX, getName, getNumberOfPoints, getParameters, getStartPoint, getXType, getYType, hide, isDeleted, isHidden, setAnnotations, setCurveInfo, setData, show
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

minConsWidth

protected int minConsWidth

calcWindow

protected int calcWindow

consIdentity

protected int consIdentity
Constructor Detail

VistaCurveModel

public VistaCurveModel(java.lang.String id,
                       int calcWindow,
                       int minConsWidth,
                       int consIdentity,
                       int minx,
                       int maxx)

VistaCurveModel

public VistaCurveModel(java.util.TreeMap data,
                       java.lang.String id,
                       int calcWindow,
                       int minConsWidth,
                       int consIdentity,
                       int minx,
                       int maxx)
VistaCurveModel

Parameters:
data - TreeMap
id - String
calcWindow - int
minConsWidth - int
consIdentity - int
minx - int
maxx - int

VistaCurveModel

public VistaCurveModel(java.util.TreeMap data,
                       java.lang.String id,
                       int calcWindow,
                       int minConsWidth,
                       int consIdentity,
                       java.util.Vector annotations,
                       int minx,
                       int maxx)
VistaCurveModel

Parameters:
data - TreeMap
id - String
calcWindow - int
minConsWidth - int
consIdentity - int
annotations - Vector
minx - int
maxx - int
Method Detail

getRunOrg

public java.lang.String getRunOrg()
get Run_ID and Org_ID in the form ready to pass to the server: _

Returns:
String

getOrgId

public int getOrgId()
get Organism Id

Returns:
int

getMinConsWidth

public int getMinConsWidth()
get Min Cons Width

Returns:
int

getMinY

public int getMinY()
get Min Y

Returns:
int

setMinY

public void setMinY(int y)
set Min Y

Parameters:
y - int

getMode

public java.lang.String getMode()
get Mode

Returns:
String

getCalcWindow

public int getCalcWindow()
get Calc Window

Returns:
int

getConsIdentity

public int getConsIdentity()
get Cons Identity

Returns:
int

getParameterString

public java.lang.String getParameterString(VistaApp vapp)
this set of parameters will be passed to the server: &calcWindow=???&minConsWidth=???&minConsIdentity=???&numDataPoints=???&genes=???

Specified by:
getParameterString in interface CurveModel
Overrides:
getParameterString in class AbstractCurveModel
Parameters:
vapp - VistaApp
Returns:
String

refresh

public boolean refresh(VistaApp vapp,
                       long minx,
                       long maxx)
request data from the server

Specified by:
refresh in interface CurveModel
Parameters:
vapp - VistaApp
minx - long
maxx - long
Returns:
boolean