input
stringlengths
10
828
output
stringlengths
5
107
public void show capture settings nothing to show here if settings file null settings file exists try desktop desktop null if desktop is desktop supported desktop desktop get desktop desktop edit settings file catch ioexception e logger error failed to open settings file with default editor e
this implementation will open the
public void pause get filtergraph set rate 0
pausing a video is best accomplished by setting
public void stop pause set position 0
stopping a video is best accomplished by invoking
private boolean implements interface class the class class interf for class implemented interface the class get interfaces if interf is assignable from implemented interface return true return false
check whether a
public string get title return capturer name
this method should return the name of the capturer which was originally
public void set muted boolean muted fire property change muted this muted this muted muted
mute audio for all active
public boolean is muted boolean result false for video player player get players result player is muted return result
this getter will return code false code if at least one active
public void execute action action map action map string action key action action action map get action key if action null action event action event new action event get main frame action event action performed action key action action performed action event
this method will look for an
public void set recording enabled boolean record selected boolean capturers ready false for video capturer capturer get capturers capturers ready capturer is active capturer is recording boolean recording enabled capturers ready record selected selected recording recordable is recording for video player player get players recording enabled player is idle if recording enabled this recording enabled set player controls enabled false capturers to front fire property change recording enabled this recording enabled this recording enabled recording enabled
this property is changed under two different conditions
public string get flash url return flashurl
gets the current ofc flash url
public boolean is cache fix enabled return cache fix enabled
is the cache fix enabled
public string get image data if has flash player is swfinjected return get image data get swf id return null
obtains raw image data of this chart
public void set flash url string url this flashurl url
sets the ofc flash url
public void set json data string json system out println json this json data json if has flash player is swfinjected load json swf id json data
sets the json data for this chart updates the chart if ready
private string get internal swfurl boolean iefix string flashurl string id if iefix return flashurl return flashurl id id new date get time
used internally to returns the correct open flash chart swf url
public void set no labels boolean nolabels this nolabels nolabels
sets the no labels
public boolean is cache fix needed return true
returns true is all cases used by deferred bindings for ie agents
public boolean is cache fix needed return false
returns false is all cases for all browsers
public void check widget size for map entry resizable widget resizable widget info entry widgets entry set resizable widget widget entry get key resizable widget info info entry get value int cur width widget get element get property int client width int cur height widget get element get property int client height call the on resize method only if the widget is attached if info set client size cur width cur height if cur width 0 cur height 0 widget is attached widget on resize cur width cur height
check to see if any widgets have been resized and call their handlers
protected double get knob percent if we have no range if max value min value return 0 calculate the relative progress double percent cur value min value max value min value return math max 0 0 math min 1 0 percent
get the percentage of the knobs position relative to the size of the
public string get message return to string
return the exceptions message
public string to string return afa exception header get afa exception code afa exception separator get afa exception message
return the exception in a string
public string get afa exception message return message
return exception text
public string get afa exception message return message exception get message
return exception text
public void load xml file string xml file throws parser configuration exception file not found exception saxexception ioexception xml validation exception load file in document file input stream fis new file input stream new file xml file document builder parse fis try w3c validate catch xml schema location attribute not found exception ex
load a xml file in the document
public element get root element return document get document element
return the documents root node
private double get context switch return double par mac 6
metodo che restituisce il tempo di context switch in sec
private void initialize this set size 300 200 this set layout new border layout this add get panel scelta border layout west this add get panel chart border layout east
this method initializes this
private jradio button get radio ram swap radio ram swap set preferred size new dimension 129 30 radio ram swap set tool tip text visualizza le percentuali di strutture presenti in ram e swap radio ram swap add action listener new java awt event action listener public void action performed java awt event action event e check radio ram swap creazione del grafico crea grafico ram swap pulizia del pannello panel chart repaint panel chart revalidate return radio ram swap
this method initializes radio ram swap
private jradio button get radio ram radio ram set preferred size new dimension 129 30 radio ram set tool tip text visualizza la percentuale di occupazione della ram radio ram add action listener new java awt event action listener public void action performed java awt event action event e check radio ram creazione del grafico crea grafico ram pulizia del pannello panel chart repaint panel chart revalidate return radio ram
this method initializes radio ram
private jradio button get radio swap radio swap set preferred size new dimension 129 30 radio swap set tool tip text visualizza la percentuale di occupazione della swap radio swap add action listener new java awt event action listener public void action performed java awt event action event e check radio swap creazione del grafico crea grafico swap pulizia del pannello panel chart repaint panel chart revalidate return radio swap
this method initializes radio swap
private jradio button get radio processi radio processi set text processi radio processi set tool tip text visualizza il tempo eseguito e quello rimanente di ogni processo radio processi set preferred size new dimension 129 30 radio processi add action listener new java awt event action listener alla selezione del radio button corrispondente viene mostrato il grafico relativo public void action performed java awt event action event e check radio processi creazione del grafico crea grafico processi pulizia del pannello panel chart repaint panel chart revalidate return radio processi
this method initializes radio processi
private jradio button get radio strutture processi radio strutture processi set preferred size new dimension 129 30 radio strutture processi set tool tip text visualizza l occupazione in ram e in swap delle strutture di ogni processo radio strutture processi add action listener new java awt event action listener public void action performed java awt event action event e check radio strutture processi crea grafico strutture processi panel chart repaint panel chart revalidate return radio strutture processi
this method initializes radio strutture processi
private jradio button get radio fault radio fault set preferred size new dimension 129 30 radio fault set tool tip text visualizza la percentuale di pagefault sul numero di istanti eseguiti radio fault add action listener new java awt event action listener public void action performed java awt event action event e check radio fault crea grafico fault panel chart repaint panel chart revalidate return radio fault
this method initializes radio fault
private jpanel get panel chart if panel chart null panel chart new jpanel panel chart set layout new grid bag layout return panel chart
this method initializes panel chart
private void initialize this set size 300 200 this set layout new border layout this add get tree processi border layout east this add get tree ram swap generale border layout west
this method initializes this
private jtree get tree ram swap generale if tree ram swap generale null tree ram swap generale new jtree top generale tree ram swap generale set preferred size new dimension 150 this get height return tree ram swap generale
this method initializes tree ram swap
private jtree get tree processi if tree processi null tree processi new jtree top processi tree processi set preferred size new dimension 150 this get height return tree processi
this method initializes tree processi
private void initialize grid bag constraints grid bag constraints new grid bag constraints grid bag constraints fill grid bag constraints both grid bag constraints gridy 0 grid bag constraints weightx 1 0 grid bag constraints weighty 1 0 grid bag constraints gridx 0 this set size 300 200 this set layout new grid bag layout this add get tab statistiche grid bag constraints
this method initializes this
private jtabbed pane get tab statistiche if tab statistiche null tab statistiche new jtabbed pane tab statistiche set tool tip text tab statistiche add tab grafiche null get panel grafiche null tab statistiche add tab testuali null get panel testuali null return tab statistiche
this method initializes tab statistiche
private jpanel get panel grafiche if panel grafiche null panel grafiche new panel stat grafiche this macchina return panel grafiche
this method initializes panel grafiche
private jpanel get panel testuali if panel testuali null grid layout grid layout new grid layout grid layout set rows 1 panel testuali new panel stat testuali this macchina tempo simulazione panel testuali set layout grid layout return panel testuali
this method initializes panel testuali
private void init components set default close operation javax swing window constants exit on close set cursor new java awt cursor java awt cursor default cursor set title si ge m tbkteam set layout new border layout set name frame principale set size toolkit get default toolkit get screen size set extended state maximized both contenitore dati aggiungi welcome this add window listener new java awt event window adapter public void window closing java awt event window event e repo chiudi dbmanager
this method is called from within the constructor to
public image icon get icon string category string name int size validation if size 16 size 24 return null build the url string string image name view icons category name size gif get a url pointing to the image icon url this get class get resource image name system out println icon url icon url f image name if icon url null return null build and return a new image icon built from this url return new image icon get class get resource image name
returns an image icon by specifying a category name and size
public string get context id help return null
override this method to provide a contextual help for current panel
public boolean is help return false
override this method to drive enabled state of the help button
public int about to hide panel return 0
override this method to perform functionality just before the panel is to be
public wizard panel descriptor get current panel descriptor return current panel
returns the currently displayed wizard panel descriptor
public void register panel object id wizard panel descriptor descriptor place a reference to it in a hashtable so we can access it later when it is about to be displayed panel hashmap put id descriptor
registers the wizard panel descriptor in the model using the
public boolean set current panel object id first get the hashtable reference to the panel that should be displayed wizard panel descriptor next panel wizard panel descriptor panel hashmap get id if we couldn t find the panel that should be displayed return false if next panel null return false wizard panel descriptor old panel current panel current panel next panel fire property change current panel descriptor property old panel current panel return true
sets the current panel to that identified by the object passed in
private void init components set default close operation javax swing window constants exit on close set cursor new java awt cursor java awt cursor default cursor set title si ge m tbkteam set name frame principale set bounds 0 0 1200 770 set minimum size new dimension 1100 770
this method is called from within the constructor to
public image icon get icon string category string name int size validation if size 16 size 24 return null build the url string string separatore system get property file separator string image name system get property user dir separatore src separatore view separatore icons separatore category separatore name size gif get a url pointing to the image icon url this get class get resource image name system out println icon url icon url f image name if icon url null return null build and return a new image icon built from this url return new image icon image name
returns an image icon by specifying a category name and size
public istante get instant zero throws qizx exception return simulazione get ambiente get istante 0
torna listante zero
private void init components set default close operation javax swing window constants exit on close set cursor new java awt cursor java awt cursor default cursor set title si ge m tbk team set name frame principale set bounds 0 0 1200 770 set minimum size new dimension 1100 770
this method is called from within the constructor to
public image icon get icon string category string name int size validation if size 16 size 24 return null build the url string string separatore system get property file separator string image name system get property user dir separatore src separatore view separatore icons separatore category separatore name size gif return new image icon image name
returns an image icon by specifying a category name and size
public void set resource string resource try reader reader resources get resource as reader resource this sql map client sql map client builder build sql map client reader reader close catch exception e e print stack trace throw new runtime exception error initializing sql map client cause e
set resource especially useful in spring
public string get date calendar cal calendar get instance simple date format sdf new simple date format sdf apply pattern yyyy mm dd string date sdf format cal get time return date
get a date string formated as yyyy mm dd
public string get date string patten calendar cal calendar get instance simple date format sdf new simple date format sdf apply pattern patten string date sdf format cal get time return date
get a date string formated as given pattern
public string get timestamp return get date yyyy mm dd hh mm ss
get a timestamp
public void store string path string comments string charset name throws ioexception file file new file path if file exists file create new file file output stream fos new file output stream file output stream writer osw new output stream writer fos charset name buffered writer bf new buffered writer osw store0 bf comments true osw close fos close bf close
save properties file to a given path with charset
public void store file file string comments string charset name throws ioexception file output stream fos new file output stream file output stream writer osw new output stream writer fos charset name buffered writer bf new buffered writer osw store0 bf comments true osw close fos close bf close
save properties to a given file with charset
public void add property string key object value boolean is page number properties add new property key value to string is page number
add a property to the properties map
public void set record count int record count this record count record count
set the number of all the records
public int get offset throws runtime exception if current page 1 throw new runtime exception please add arguements first return current page 1 page size
get the number of the first record in current page
public void close throws ioexception if swap accessor null swap accessor close
close array and the underlying stream
public long length return this mem size this swap size
the total logical length
public int read long pos throws index out of bounds exception ioexception illegal argument exception if pos 0 throw new illegal argument exception if pos 0 pos this length throw new index out of bounds exception int result if pos this mem size result buff int pos else synchronized swap accessor this swap accessor seek pos this mem size result this swap accessor read return result
reads the next byte of data from the array
public void write int data long pos throws index out of bounds exception ioexception illegal argument exception if pos 0 throw new illegal argument exception if pos 0 pos this length throw new index out of bounds exception if pos this mem size buff int pos byte data else synchronized swap accessor this swap accessor seek pos this mem size this swap accessor write data
writes one byte to the array
public void write int b throws ioexception byte buf new byte 1 buf 0 byte b 0xff write buf 0 1
writes a byte to the compressed output stream
public void finish throws ioexception if def finished def finish while def finished int len def deflate buf 0 buf length if def finished len buf length trailer size last deflater buffer fit trailer at the end write trailer buf len len len trailer size out write buf 0 len return if len 0 out write buf 0 len if we can t fit the trailer at the end of the last deflater buffer we write it separately byte trailer new byte trailer size write trailer trailer 0 out write trailer
finishes writing compressed data to the output stream without closing
public void write byte b int off int len throws ioexception if def finished throw new ioexception write beyond end of stream if off len off len b length off len 0 throw new index out of bounds exception else if len 0 return if def finished deflate no more than stride bytes at a time this avoids excess copying in deflate bytes see deflater c int stride buf length for int i 0 i len i stride def set input b off i math min stride len i while def needs input deflate
writes an array of bytes to the compressed output stream
public void finish throws ioexception if def finished def finish while def finished deflate
finishes writing compressed data to the output stream without closing
public void close throws ioexception if closed finish if uses default deflater def end out close closed true
writes remaining compressed data to the output stream and closes the
protected void deflate throws ioexception int len def deflate buf 0 buf length if len 0 out write buf 0 len
writes next block of compressed data to the output stream
override protected void startup show new proyecto sdcliente view this
at startup create and show the main frame of the application
override protected void startup show new proyecto sdservidor view this
at startup create and show the main frame of the application
public enumeration iterator enumeration e this e e
creates a code enumeration iterator code
private ssadefinition make temporary ssavalue value quad quad context set context todo we need to create a temporary definition at quad ssalocation temporary temp ssalocation temporary factory get add binding quad temp value context ssadefinition def q get definition for temp quad assert assert def null return def
creates a temporary definition at quad with the rhs value in
public void visit getstatic quad quad process load quad
a get static field instruction
public void visit getfield quad quad process load quad
a get instance field instruction
public void visit putfield quad quad process store quad
a put instance field instruction
public void visit putstatic quad quad process store quad
a put static field instruction
public void visit move quad quad mark destinations quad
a register move instruction
public void visit aload quad quad process load quad
an array load instruction
public void visit astore quad quad print quad
an array store instruction
public void visit new quad quad mark destinations quad
an quadect allocation instruction
public void visit new array quad quad mark destinations quad
an array allocation instruction
public void visit return quad quad todo make up a location for return print quad
a return from method instruction
private void mark destinations quad quad register reg get only defined register quad assert assert reg null ssalocation local location loc ssalocation local location factory create local location reg add binding quad loc null null
end of handlers
public void visit move quad quad there is only one binding at this quad assert assert q get binding count quad 1 ssabinding b q get binding iterator quad next binding assert assert b get value null b set value mark uses quad
a register move instruction
public void visit astore quad quad process store quad
an array store instruction
public void visit new quad quad there is only one binding at this quad assert assert q get binding count quad 1 ssabinding b q get binding iterator quad next binding assert assert b get value null b set value make alloc quad
an quadect allocation instruction
public void visit new array quad quad there is only one binding at this quad assert assert q get binding count quad 1 ssabinding b q get binding iterator quad next binding assert assert b get value null b set value make alloc quad
an array allocation instruction
public void visit return quad quad todo make up a location for return
a return from method instruction
public void visit special quad quad if quad get operator instanceof operator special nop ssaiterator binding iterator binding iter q get binding iterator quad while binding iter has next ssabinding b binding iter next binding ssavalue value b get value if value null value instanceof ssavalue gamma ssavalue gamma gamma ssavalue gamma value fill in gamma quad gamma
a special instruction
public typed bdd check must haves boolean trace typed bdd t typed bdd musthave apply storedin and r v1c 0 domain and with r v1 domain bddfactory diff typed bdd hasequals res types that override equals t2 bdd heapobjects with equals r h t relprod hasequals r t2set h1 hasequals free t apply with heapobjects with equals and with r v1c 0 domain and with r v1 domain and with r h2 domain and with r h1c 0 domain and with r h2c 0 domain bddfactory diff return t
return all objects that weve seen being tested for membership in a collection
public typed bdd check bad types boolean trace return typed bdd r bdd zero
return all objects that weve seen being tested for membership in a collection
public void init throws out of memory error assert assert in gc assert assert in alloc heap current heap first alloc new block heap end get block end heap current first free first large curr large heap address get null
perform initialization for this allocator
public int free memory return get free list bytes heap end difference heap current
returns an estimate of the amount of free memory available
public int total memory int total 0 heap address ptr heap first while ptr is null total get block size ptr ptr get block next ptr total get large bytes return total
returns an estimate of the total memory allocated both used and unused