input
stringlengths 10
828
| output
stringlengths 5
107
|
|---|---|
public void close server thread st server if st null st close try st join catch interrupted exception ex logger warn ex server null for iterator it sockets values iterator it has next socket entry entry socket entry it next try synchronized entry entry get socket close logger debug socket to entry get peer address closed catch ioexception iox ingore logger debug iox if socket cleaner null socket cleaner cancel socket cleaner null
|
closes all open sockets and stops the internal server thread that
|
public octet string remove engine id address address octet string engine id octet string engine ids remove address if engine id null snmp engine listeners null fire engine changed new snmp engine event this snmp engine event added engine id engine id address return engine id
|
removes an engine id association from the local storage and fires the
|
protected void fire process pdu command responder event event if command responder listeners null vector listeners command responder listeners int count listeners size for int i 0 i count i command responder listeners element at i process pdu event if event is marked as processed the event is not forwarded to remaining listeners if event is processed return
|
fires a code command responder event code event to inform listeners about
|
private void save log record throws interrupted exception exception list domain object log buffer null if log record instanceof sys log log buffer log record buffer get logger item log instance systemlog if log record instanceof operation log operation log operation log operation log log record log buffer log record buffer get logger item log instance operationlog synchronized log buffer log buffer add log record long max buffer size logger item get max buffer size if log buffer size max buffer size flush log buffer if buffer is full flush log buffer log buffer logger item
|
save log record to buffer
|
public boolean accept java io file f if f is directory return true else return false
|
whether the given file is accepted by this filter
|
public void set max chars int new max chars max chars new max chars
|
insert the methods description here
|
public void window closing window event e if destroy e get source false return destroy system exit 0
|
window closing method comment
|
public int read throws java io ioexception if data null return 1 if cursor data length return 1 int val data char at cursor val val 255 cursor return val
|
read method comment
|
public void add bit boolean value length if bits length length 8 1 increase array size if value true byte mask byte 1 length 1 8 bits length 8 mask
|
insert the methods description here
|
public boolean get bit int index throws exception if bits length index 8 throw new exception bit string get bit index index out of range byte mask byte 1 index 8 if bits index 8 mask 0 return false else return true
|
insert the methods description here
|
public void close throws ioexception current pos 0 current line null data init
|
read method comment
|
public int read throws ioexception if current line null while current line null current line length 0 data is finished false current line data process if data is finished return 1 current pos 0 int value current line char at current pos current pos if current pos current line length current line null return value
|
read method comment
|
private void increase array size byte temp new byte bits length 1 system arraycopy bits 0 temp 0 bits length bits bits length 1 0 bits temp
|
insert the methods description here
|
public void set bit int index boolean value throws exception if bits length index 8 throw new exception bit string set bit index index out of range max bits length 8 byte mask byte 1 index 8 if value true if bits index 8 mask 0 bits index 8 mask else if bits index 8 mask 0 bits index 8 mask
|
insert the methods description here
|
public void set bits int byte index byte byte data throws exception if bits length byte index throw new exception bit string set bits byte index index out of range max bits length bits byte index byte data
|
insert the methods description here
|
public string get call method name return string dfml call fns element at method cursor
|
get call method name method comment
|
public string to string string data super to string bits for int loop 0 loop length loop try if get bit loop true data 1 else data 0 catch exception e data e data return data
|
insert the methods description here
|
public string get call method number return method cursor
|
get call method number method comment
|
public string get clause method name return string dfml clause fns element at method cursor
|
get state method name method comment
|
public string get clause method number return method cursor
|
get state method number method comment
|
public string get command return current attribute name
|
get command method comment
|
public string get command attribute return current attribute value
|
get command attribute method comment
|
public string get command code return dfml command set command current attribute name
|
get command method comment
|
public string get command number return command number
|
get command method comment
|
public string get data return string generator convert to java code string string dfml data element at data cursor
|
get data method comment
|
public string get time stamp simple date format formatter new simple date format yyyy mm dd at hh mm ss a zzz date current time new date return formatter format current time
|
get time stamp method comment
|
public boolean has more call methods if method cursor dfml call fns size return true return false
|
has more call methods method comment
|
public boolean has more clause methods if method cursor dfml clause fns size return true return false
|
has more state methods method comment
|
public boolean has more data if data cursor dfml data size return true return false
|
has more data method comment
|
public string init call methods method cursor 0 return null
|
init call methods method comment
|
public string init clause methods method cursor 0 return null
|
init state methods method comment
|
public string init commands command tag cursor 0 command cursor 0 command number 0 current tag xml element dfml tags element at command tag cursor return null
|
init commands method comment
|
public string init data data cursor 0 return null
|
init data method comment
|
public string next call method method cursor return null
|
next call method method comment
|
public string next clause method method cursor return null
|
next state method method comment
|
public string next command command cursor return null
|
next command method comment
|
public string next data data cursor return null
|
next data method comment
|
public string get day if day 10 return 0 day else return day
|
returns a two character string containing the day in month number
|
public void dec object source throws lock exception if locked throw new lock exception this is locked data set changed if report report change source
|
decrement the int value by one
|
public string get value string name if name equals value return data else if name equals min value return value min else if name equals max value return value max else return
|
returns a field held in this field as a string
|
public void set changed changed true if org one stone soup igml igmlengine bm changes null org one stone soup igml igmlengine bm changes inc if org one stone soup igml igmlengine bm changes full report org one stone soup igml igmlengine bm changes messages add element this get id if id char at 0 system out println set id ref this
|
insert the methods description here
|
public void inc object source throws lock exception if locked throw new lock exception this is locked data set changed if report report change source
|
increment the int value by one
|
public void set range int new xvalue min int new yvalue min int new zvalue min int new xvalue max int new yvalue max int new zvalue max x set value min new xvalue min x set value max new xvalue max y set value min new yvalue min y set value max new yvalue max z set value min new zvalue min z set value max new zvalue max
|
insert the methods description here
|
public void set value int new data object source throws lock exception if locked is lock owner source throw new lock exception this is locked new data cap value new data if new data data return data new data set changed if report report change source
|
set the int value
|
public void set range int new xvalue min int new yvalue min int new xvalue max int new yvalue max x set value min new xvalue min x set value max new xvalue max y set value min new yvalue min y set value max new yvalue max
|
set the minimum and maximum values for this field
|
public void set delimiter char new delimiter delimiter new delimiter
|
sets the consise date format delimiter
|
public void set value max int new value max value max new value max
|
set the maximum int value
|
public void set value min int new value min value min new value min
|
set the minimum int value
|
public string get value string name return data
|
returns the float data held in this field as a string
|
public boolean get value return data
|
returns the boolean data held in this field
|
public boolean in range object min boolean inclusive min object max boolean inclusive max throws compare exception throw new compare exception can t check range of boolean
|
bool fields cant be compared
|
public void set value float new data object source throws lock exception if locked is lock owner source throw new lock exception this is locked data new data if report report change source
|
set the float value
|
public void reset throws lock exception set value not set this
|
sets the index value as not set 1
|
public date field get date field return null
|
insert the methods description here
|
public void build stream string buffer buffer float factor if length a 1 length b 1 buffer append 0 d buffer append eol else buffer append int to float length a factor buffer append int to float length b factor buffer append 0 d buffer append eol
|
get stream method comment
|
public void build stream string buffer buffer float factor buffer append q buffer append eol for int loop 0 loop points size loop point p point points element at loop if loop 0 buffer append int to float p x factor buffer append int to float p y factor buffer append m buffer append eol else buffer append int to float p x factor buffer append int to float p y factor buffer append l buffer append eol buffer append w buffer append eol buffer append n buffer append eol
|
get stream method comment
|
public void build stream string buffer buffer float factor buffer append q buffer append eol
|
get stream method comment
|
public void build stream string buffer buffer float factor for int loop 0 loop points size loop point p point points element at loop if loop 0 buffer append int to float p x factor buffer append int to float p y factor buffer append m buffer append eol else buffer append int to float p x factor buffer append int to float p y factor buffer append l buffer append eol if filled buffer append b buffer append eol else buffer append s buffer append eol
|
get stream method comment
|
public void build stream string buffer buffer float factor try int count 0 int in i stream read while in 1 buffer append char in in i stream read catch exception e buffer append error in psstream e n
|
get stream method comment
|
public void build stream string buffer buffer float factor buffer append int to float start x factor buffer append int to float start y factor buffer append m buffer append eol buffer append int to float end x factor buffer append int to float end y factor buffer append int to float control x factor buffer append int to float control y factor buffer append c buffer append eol buffer append s buffer append eol
|
get stream method comment
|
public void set value long new data object source throws lock exception if locked is lock owner source throw new lock exception this is locked new data cap value new data if new data data return data new data set changed if report report change source
|
set the long value
|
public void build stream string buffer buffer float factor buffer append int to float start x factor int to float start y factor buffer append m buffer append eol buffer append int to float end x factor buffer append int to float end y factor buffer append l buffer append eol buffer append s buffer append eol
|
get stream method comment
|
public void build stream string buffer buffer float factor buffer append convert color red buffer append convert color green buffer append convert color blue buffer append rg buffer append eol
|
get stream method comment
|
public void build stream string buffer buffer float factor buffer append int to float width factor buffer append w buffer append eol
|
get stream method comment
|
public void set value max long new value max value max new value max
|
set the maximum long value
|
public void build stream string buffer buffer float factor buffer append int to float start x factor buffer append int to float start y factor buffer append int to float width factor buffer append int to float height factor buffer append re buffer append eol if filled buffer append b buffer append eol else buffer append s buffer append eol
|
get stream method comment
|
public void set value min long new value min value min new value min
|
set the minimum long value
|
public int read throws ioexception int b pull if b 1 return read else return b
|
read method comment
|
public boolean check top level window object window throws security exception return false
|
check top level window method comment
|
public void remove attribute string name attributes remove get attribute by name name
|
removes the attribute with the required name from the element
|
public void set end line no int new line no end line no new line no
|
insert the methods description here
|
public void set level int new level if level new level data size 0 for int loop 0 loop data size loop if data element at loop instanceof xml element xml element data element at loop set level new level 1 level new level
|
insert the methods description here
|
public void set start line no int new line no start line no new line no
|
insert the methods description here
|
public void use proxy string host string port system set property http proxy host host system set property http proxy port port
|
setzt den proxy fest
|
public void handle preferences string type boolean value if type equals ignore case broadcast set broadcast value else if type equals ignore case notify set notify value
|
sets the broadcast and notification preferences
|
public void rotate x double angle radians double c s c math cos angle radians s math sin angle radians vector3d v this copy y c v y s v z z s v y c v z
|
rotates vector around x axis by given angle
|
public void rotate y double angle radians double c s c math cos angle radians s math sin angle radians vector3d v this copy x c v x s v z z s v x c v z
|
rotates vector around y axis by given angle
|
public void rotate z double angle radians double c s c math cos angle radians s math sin angle radians vector3d v this copy x c v x s v y y s v x c v y
|
rotates vector around z axis by given angle
|
public void transform matrix4d m double x this x double y this y double z this z this x m get element 0 0 x m get element 0 1 y m get element 0 2 z m get element 0 3 this y m get element 1 0 x m get element 1 1 y m get element 1 2 z m get element 1 3 this z m get element 2 0 x m get element 2 1 y m get element 2 2 z m get element 2 3
|
transforms vector using homogeneous 4x4 matrix
|
public void rotate matrix3d m double x this x double y this y double z this z this x m get element 0 0 x m get element 0 1 y m get element 0 2 z this y m get element 1 0 x m get element 1 1 y m get element 1 2 z this z m get element 2 0 x m get element 2 1 y m get element 2 2 z
|
rotates vector using 3x3 rotation matrix
|
public void rotate matrix4d m double x this x double y this y double z this z this x m get element 0 0 x m get element 0 1 y m get element 0 2 z this y m get element 1 0 x m get element 1 1 y m get element 1 2 z this z m get element 2 0 x m get element 2 1 y m get element 2 2 z
|
rotates vector utilizing the 3x3 portion of a 4x4 matrix
|
public void rotate quat4d q if q is null return q q copy quat4d v new quat4d this quat4d q t q copy q t conjugate v mul q t q mul v x q x y q y z q z
|
rotates vector using given quaternion as axis and angle
|
public class time info extends time extent override public time info copy time info time info new time info time info base time this get base time time info time bias this time bias time info time step this time step time info lead time delta this lead time delta time info lag time delta this lag time delta time info base at now this base at now time info end now this end now
|
p b title b br
|
public void end thread end thread true
|
m thode appel pour arreter le thread
|
public void add component c cell style style int row int col add c style row col 1 1
|
add a component to the container
|
public void set values float phys total mem float phys used mem float sw total mem float sw used mem ici vous mettez le remplissage de vos structures system out println total physical memory mo phys total mem physical memory used pourcent phys used mem total swap memory mo sw total mem swap memory used pourcent sw used mem ram set valeur phys used mem
|
constructs a new resource object containing the percentage of used
|
public void run int tempo int watch period 1000 this stat mem tempo while true
|
launches a new cpu load object in a separate thread
|
public void set values float nice float user float kernel float idle ici vous mettez la gestion de la souvegarde ddes infos dans votre stucture system out println nice nice user user kernel kernel idle idle cpu set valeur nice
|
constructs a new resource object containing the nice user kernel and
|
public void run int tempo int watch period 1000 this stat cpu tempo while true
|
launches a new cpu load object in a separate thread
|
public void set values int process sleep int process run int process idl int process zomb int process stop ici vous mettez le remplissage de vos structures system out println processes sleep process sleep processes run process run processes idl process idl processes zomb process zomb processes stop process stop proc set valeur process sleep
|
constructs a new resource object containing the number
|
public void run int tempo int watch period 1000 this stat process tempo while true
|
launches a new cpu load object in a separate thread
|
public void perspective float fovy float aspect float z near float z far final float ymax z near float math tan fovy math pi 360 0 final float ymin ymax final float xmin ymin aspect final float xmax ymax aspect frustum xmin xmax ymin ymax z near z far
|
code from src glu mesa glu
|
public color4f get color return color
|
gets the color of this fog
|
public void set color color4f color this color set color
|
sets the color of this fog
|
public bounds get influencing bounds return influencing bounds
|
gets the influencing bounds
|
public void set influencing bounds bounds bounds this influencing bounds bounds
|
sets the bounds in which the fog is turned on
|
public void combine bounds b for int i 0 i b length i combine b i
|
combines this bounds with all of the given bounds
|
public void combine point3f p for int i 0 i p length i combine p i
|
combines this bounds with all of the given point3fs
|
public boolean intersects bounds b for int i 0 i b length i if intersects b i return true return false
|
tests to see if this bounds intersects any of the given bounds
|
public void set bounds b if b length 0 set b 0 else return for int i 1 i b length i combine b i
|
sets this bounds to the first bounds then combines with the rest
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.