input
stringlengths 10
828
| output
stringlengths 5
107
|
|---|---|
public void set channel value channel channel int source return
|
this method will update the given channel from the given source
|
public void set channel values channel channels int source return
|
this method will update the series of channels from the given source
|
public channel set value channel channel throws idmxdevice exception channel view update value channel return channel
|
this method sets the given channel value pair on the device
|
public void add cue acue cue show add cue cue connector update cue list go to cue cue get number connector select cue without transition cue get summary
|
this method adds a new cue to the current show
|
public void save show string filename light view this set title aurora light controller filename connector save show filename
|
this method will initiate a show save
|
public void load show string filename light view this set title aurora light controller filename connector load show filename
|
this method will initiate a show load
|
public float get highest cue number return show get highest cue number
|
this method will return the highest cue number in the show
|
public float get highest cue number return connector get highest cue number
|
this method will return the highest cue number in the cueset
|
public void go to cue float cue number connector go to cue cue number
|
this method will go to the given cue without a transition
|
public void update values channel channels float sources channel view update values channels sources
|
this method will update the given channels with the given sources
|
public void update values channel channels channel view update values channels
|
this method will update the given channels without changing the current channel source
|
public void update value channel channel float source channel view update value channel source
|
this method will update the value and source of the given channel
|
public void go to cue float cue number stop transition channel values remove all cues channel values add set new cue value set show get cue cue number channel channels show get cue cue number get all channels try dmx device set values channels catch idmxdevice exception e write error e return connector update channels channels channel values get channel sources channels
|
this method will move to a cue without a transition
|
public void update fade up progress int percent done channel view update fade up progress percent done
|
this method will update the fade up progress meter
|
public void update fade down progress int percent done channel view update fade down progress percent done
|
this method will update the fade down progress meter
|
public void update cue list cue list panel update cue list
|
this method will update the cue list
|
public void select cue without transition string cue cue list panel select cue without transition cue
|
this method will select the given cue without triggering a transition
|
public void toggle data entry boolean enabled channel view toggle data entry enabled cue list panel toggle data entry enabled tool bar toggle data entry enabled
|
this method will toggle the data entry fields for the program
|
public void set channel source short address float source channel view set channel source address source
|
this method will set the source for the given address
|
public void set channel source channel channel float source channel view set channel source channel source
|
this method will set the source for the given channel
|
public void set channel sources short addresses float sources channel view set channel sources addresses sources
|
this method will set the source for a series of a channels
|
public void set channel sources channel channels float sources channel view set channel sources channels sources
|
this method will set the source for a series of channels
|
public void raise error string error string desc error dialog ed new error dialog this error desc
|
this method will notify the user of the given error
|
public void raise error throwable error string desc error dialog ed new error dialog this error desc
|
this method will notify the user of the given error
|
public void toggle data entry boolean enabled go button set enabled enabled
|
this method will toggle the data entry fields for the program
|
public void save show string filename show save show filename
|
this method will save the current show to a file
|
public void update channel channel channel view update value channel
|
this method will update the channel with the given channel
|
public void update channels channel channels view update values channels
|
this method will update the channels with the given channels
|
public void load show string filename show show factory open show filename max channels show get max channels channel values new channel values max channels connector update cue list channel channels channel values get all channels string cue names get cue names if cue names length 0 go to cue get cue number cue names 0 connector select cue without transition cue names 0
|
this method will load the saved show back into the program
|
public void update cue list if view null view update cue list
|
this method will tell the view to update the cue list
|
public void toggle data entry boolean enabled view toggle data entry enabled
|
this method will toggle all data entry on the form
|
public void update fade up progress int percent done view update fade up progress percent done
|
this method will update the fade up progress bar
|
public void update fade down progress int percent done view update fade down progress percent done
|
this method will update the fade down progress bar
|
public void set channel source short address float source view set channel source address source
|
this method sets the source for the given address
|
public void set channel source channel channel float source view set channel source channel source
|
this method will set the source for the given channel
|
public void set channel sources short addresses float sources view set channel sources addresses sources
|
this method will set the channel sources for the given addresses
|
public void raise error string error string desc view raise error error desc
|
this method will notify the user of the given error
|
public void raise error throwable error string desc view raise error error desc
|
this method will notify the user of the given error
|
public void set channel value channel channel int source model set channel value channel source
|
this method will update the given channel from the given source
|
public void set channel values channel channels int source model set channel values channels source
|
this method will update the series of channels from the given source
|
public short get channel value short address return model get channel value address
|
this method will return the value for the channel with the given address
|
public float get highest cue number return model get highest cue number
|
this method will return the highest cue number in the cueset
|
public void go to cue float cue number model go to cue cue number
|
this method will go to the given cue without a transition
|
public void save show string filename model save show filename
|
this method will initiate a show save
|
public void load show string filename model load show filename
|
this method will initiate a show load
|
public boolean connect string device name return model connect device name
|
this method will tell the view to the connect to the usbdmx
|
public int compare to java lang object c1 int comp geomorph cell 0 this geomorph cell 0 geomorph cell 0 c1 comp int var to compare this geomorph cell 0 var to compare math abs var to compare this geomorph cell 0 var to compare return comp
|
the comparison criteria for the geomorph cell 0
|
public double euclid distance geomorph cell 0 cell return math sqrt math pow this i cell i 2 math pow this j cell j 2
|
the euclidian distance to another cell
|
public void find dis to pit object pitcells for int k 0 k pitcells length k geomorph cell 0 this cell geomorph cell 0 pitcells k this cell var to compare euclid distance this cell java util arrays sort pitcells distopit geomorph cell 0 pitcells 0 var to compare var to compare distopit i romper geomorph cell 0 pitcells 0 i j romper geomorph cell 0 pitcells 0 j
|
finds the shortest distance between the cell and the cells in the pit
|
public int compare to java lang object p1 int comp pit this pit pit p1 if cota this pit cota comp int cota this pit cota math abs cota this pit cota else comp int orden this pit orden math abs orden this pit orden return comp
|
the comparison method for the pit
|
public boolean equals java lang object p1 pit this pit pit p1 return grupo this pit grupo orden this pit orden
|
the equal method for the pit
|
public boolean equals final java lang object m1 int comp work rectangle my work rectangle work rectangle m1 if ini row my work rectangle ini row ini col my work rectangle ini col end row my work rectangle end row end col my work rectangle end col return true else return false
|
the equal method for the work rectangle
|
public int get cant pit int md int cant 0 for int i mp ini row i mp end row i for int j mp ini col j mp end col j if md i j 100 grupo cant return cant
|
returns the size number of pixels in the pit
|
public int get cant cpit int md int cant 0 for int i mp ini row i mp end row i for int j mp ini col j mp end col j if md i j 100 grupo if md i j 100 11 cant get ncuenca pit i j 0 md return cant
|
returns the size number of pixels in the pits basin
|
public void corrige sink t int next pit get next pit if sink t size 0 op proc set max min extraction bar int pit sink t last element cota int pit sink t first element cota pit sn while next pit 1 sn pit sink t get next pit sn corrige pit this if convergence alarm type1 return next pit get next pit if sink t size 0 op proc set value extraction bar int pit sink t last element cota
|
loops through all the sinks in the dem and fixes them
|
public int get next pit if sink t size 0 return 1 java util collections sort sink t pit sn pit sink t get 0 boolean sale true int n for n 0 n sink t size n sn pit sink t get n if sn corregido return n return 1
|
gets the next pit to be fixed
|
public void set ready j button aplicar set enabled true j button iniciar set enabled true
|
indicates to the interface that the network extraction module has finished the
|
public void set max min optimizer bar int min int max optimization progress bar set minimum min optimization progress bar set maximum max optimization progress bar set value 0
|
sets bounds for the optimizer status bar
|
public void increase value optimizer bar optimization progress bar set value optimization progress bar get value 1
|
updates the status of the optimizer status bar
|
public void act work rectangle int i int j ini row math min ini row i ini col math min ini col j end row math max end row i end col math max end col j nfila m end row ini row 1 ncol m end col ini col 1
|
updates the limits of the work rectangle to include a given location
|
public void set value optimizer bar int value optimization progress bar set value value
|
updates the value of the optimizer status bar
|
public void add work rectangle work rectangle m2 act work rectangle m2 ini row m2 ini col act work rectangle m2 end row m2 end col
|
updates the limits of the work rectangle to include another work rectangle
|
public void set max min extraction bar int min int max extraction progress bar set minimum min extraction progress bar set maximum max extraction progress bar set value 0
|
sets bounds for the extraction status bar
|
public void set value extraction bar int value extraction progress bar set value extraction progress bar get maximum value extraction progress bar get minimum
|
updates the status of the extraction status bar
|
public void print m if proc print debug system out println yi ini row yf end row xi ini col xf end col
|
a string describing the work rectangle
|
public void set max min geomorph bar int min int max geomorph progress bar set minimum min geomorph progress bar set maximum max geomorph progress bar set value 0
|
sets bounds for the extraction status bar
|
public void set value geomorph bar int value geomorph progress bar set value value
|
updates the status of the extraction status bar
|
public void run corrige dem
|
the run method
|
public void announce failure extraction progress bar set value extraction progress bar get minimum object tmp new object accept javax swing joption pane show option dialog java awt component this the network extraction algorithm has failed to converge n this is usually due to a noisy dem or a pourly defined drainage system flat dems attention javax swing joption pane information message javax swing joption pane ok option null tmp tmp 0
|
announces that the algorithm has failed to complete the extraction process
|
public float get max prec on hillslope int hill number return prec on basin hill number get max record
|
returns the maximum value of precipitation recorded for a given hillslope
|
public float get mean prec on hillslope int hill number return prec on basin hill number get mean record
|
returns the maximum value of precipitation recorded for a given hillslope
|
public boolean is completed return success
|
a boolean flag indicating if the precipitation files were fully read
|
public string storm name return this storm name
|
returns the name of this storm event
|
public float storm record resolution return meta storm get temporal scale
|
the storm temporal resolution in milliseconds
|
public void set storm initial time java util calendar ini date first water drop ini date
|
the initial storm time as a
|
public double storm record resolution in minutes return record resolution in minutes
|
the storm record time resolution in minutes
|
public float get total pixel based prec int i int j return total pixel based prec i j
|
the total rainfall over a given pixel of the original raster fields
|
public void add date and value java util calendar new record time float new record value record time add new record time record value add new record value if first ini time mill new record time get time in millis first false record time value put new record time new record value num records with rain max prec math max max prec new record value float value total prec new record value float value
|
adds a new date and value to the time series
|
public int getnrow return nrow
|
the number of rows of the original raster
|
public float get size return record time size return record time value size
|
the record lenght
|
public float get max record return max prec
|
the maximum value observed in the time series
|
public float get mean record if num records with rain 0 return 0 0f return total prec float num records with rain
|
the average value observed in the time series
|
public void set slopes hg float coefficient float exponent float sd residuals hydro scaling api util probability gaussian distribution ran g new hydro scaling api util probability gaussian distribution 0 sd residuals for int link number 0 link number width array 0 length link number slope array 0 link number float coefficient math pow up stream area array 0 link number exponent math exp ran g sample
|
assigns the slopes of the links using a power law
|
public void set chezi hg float coefficient float exponent chezi array new float 1 length array 0 length for int link number 0 link number chezi array 0 length link number chezi array 0 link number 100 0f chezi array 0 link number float 14 2 math pow slope array 0 link number 1 3 from strikler and shields chezi array 0 link number float coefficient math pow slope array 0 link number exponent
|
assigns the chezy coefficient of the links using a power law
|
public void set manning hg float coefficient float exponent manning array new float 1 length array 0 length for int link number 0 link number manning array 0 length link number chezi array 0 link number 100 0f chezi array 0 link number float 14 2 math pow slope array 0 link number 1 3 from strikler and shields manning array 0 link number float coefficient math pow slope array 0 link number exponent
|
assigns the manning coefficient of the links using a power law
|
public void set vq params float coefficient float sd residuals float exponent q float exponent a ck new float 1 length array 0 length hydro scaling api util probability gaussian distribution ran g new hydro scaling api util probability gaussian distribution 0 sd residuals for int link number 0 link number ck 0 length link number ck 0 link number float coefficient math exp ran g sample lambda1 exponent q lambda2 exponent a
|
assigns the parameters to the velocity function given by
|
public float get total hill slope based prec int hill number return total hill based prec hill number
|
the total rainfall over a given hillslope
|
public float get lamda1 return lambda1
|
returns the exponent for flow discharge in the parametrization
|
public float get lamda2 return lambda2
|
returns the exponent for upstream area in the parametrization
|
public int get number of files read return ar cron length
|
returns the number of files that were read
|
public double up stream area int link number return double up stream area array 0 link number
|
returns the upstream area for a given link
|
public double link order int link number return double order array 0 link number
|
returns the strahler order for a given link
|
public double chezi int link number return double chezi array 0 link number
|
returns the chezi coefficient for a given link
|
public double width int link number return double width array 0 link number
|
returns the channel width for a given link
|
public double length int link number return double length array 0 link number
|
returns the length for a given link
|
public double slope int link number return double slope array 0 link number
|
returns the link average slope for a given link
|
public double up stream total length int link number return double total channel length array 0 link number
|
returns the upstream total channels lenght for a given link
|
public double main channel length int link number return double main channel lenght array 0 link number
|
returns the upstream total channels lenght for a given link
|
public float basin area return basin area
|
returns the basin area
|
public float get max pot evpton hillslope int hill number return pot evpton basin hill number get max record
|
returns the maximum value of pot evptipitation recorded for a given hillslope
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.