input
stringlengths
10
828
output
stringlengths
5
107
public void remove int the index messages remove the index
remove an osc message from an osc bundle
public void set event method final string the event method my default event method name the event method
set the name of the default event method
public osc message get message int the index return messages get the index
request an osc message inside the osc bundle array
public void set network protocol final int the protocol if is locked if the protocol 2 logger print warning osc properties set network protocol not in the range of supported network protocols the network protocol defaults to udp else my network protocol the protocol else logger print warning osc properties set network protocol network protocol can only be set before initializing osc p5
set the network protocol over which osc messages are transmitted
public int size return my message size
get the size of the osc bundle array which contains the osc messages
public void set timetag long the time final long secs since1900 the time 1000 timetag offset final long secs fractional the time 1000 32 1000 timetag secs since1900 32 secs fractional
set the timetag of an osc bundle
public void set srsp final boolean the flag my srsp the flag
srsp stand for send and receive on same port
public int listening port return my listening port
returns the port number currently used to receive osc packets
public net address remote address return my remote address
returns a net address of the remote host you are sending
public int datagram size return my datagram size
returns the current size of the datagram bytebuffer
public int network protocol return my network protocol
returns the network protocol being used to transmit osc packets
public string to string string s nnetwork protocol my protocols my network protocol n s host my remote address address null my remote address address host address not set n s send to port my remote address port n s receive at port listening port n s datagram size my datagram size n s event method my default event method name n s s end r eceive s ame p ort this my srsp n n return s
prints out the current osc properties settings
public int int value return integer value int value
get the int value of the osc argument
public char char value return character value char value
get the char value of the osc argument
public array list get data list array list my list new array list object my arguments arguments for int i 0 i my arguments length i my list add my arguments i return my list
this is only for christians and jens table communication with vvvv
public float float value return float value float value
get the float value of the osc argument
public double double value return double value double value
get the double value of the osc argument
public long long value return long value long value
get the long value of the osc argument
public boolean boolean value return boolean value boolean value
get the boolean value of the osc argument
public string string value return string value
get the string value of the osc argument
public void clear init set addr pattern set arguments new object 0
clear and reset an osc message for reuse
public void clear arguments my typetag new byte 0 my data new byte 0 my arguments new object 0
clears the arguments in a message
public string version return version
get the current version of osc p5
public boolean check addr pattern final string the addr pattern return the addr pattern equals addr pattern
check if an address pattern equals a specific address pattern
public void set addr pattern final string the addr pattern my addr pattern the addr pattern get bytes
set the address pattern of an osc message
public void set arguments final object the arguments clear arguments add arguments the arguments
set the arguments of the osc message using an object array
public void add arguments final object the arguments add the arguments
add a list of arguments to an exisiting set of arguments
public int addr int return my addr int
returns the address pattern of the osc message as int
public string typetag return bytes get as string my typetag
returns the typetag of the osc message
public long timetag return timetag
get the timetag of an osc message
public void add my typetag bytes append my typetag new byte 0x4e
add values to an osc message
public void process final datagram packet the packet final int the port synchronized this osc packet p osc packet parse the packet if p is valid if p type osc packet bundle for int i 0 i osc bundle p size i call method osc bundle p get message i else call method osc message p notify all
incoming osc messages from an udp socket are parsed processed and
public osc properties properties return my osc properties
returns the current properties of osc p5
public void set time to live int the ttl my osc net manager set time to live the ttl
set time to live of a multicast packet
public tcp server tcp server return my osc net manager tcp server
return the instance of the running tcp server if in tcp mode
public osc argument get final int the index if the index arguments length my osc argument value arguments the index return my osc argument return null
get a value at a specific position in the osc message
public tcp client tcp client return my osc net manager tcp client
return the instance of the running tcp client if in tcp mode
public void send final osc packet the packet final net address the net address my osc net manager send the packet the net address
you can send osc packets in many different ways
public void send final osc packet the packet final tcp client the client the client send the packet get bytes
send to tcp client
public void stop logger print debug osc p5 stop starting to stop osc p5 my osc net manager stop logger print debug osc p5 stop stopping osc p5
stop osc p5 and close open sockets
public void disconnect from temp
used by the monome library by jklabs
private list create regexp collection from map map map list collection new array list map size for iterator iter map entry set iterator iter has next map entry entry map entry iter next collection add new regexp timeout string entry get key parse timeout string entry get value return collection
creates regexp collection from a map
public long get last modified method is not supported since we do not need it throw new unsupported operation exception
is not supported since we do not need it yet
protected url get resource url string resource name throws malformed urlexception url resource url new url get base url resource name return resource url
returns resource url
public void evaluate search request request search response response source request get text if source starts with prefix source source substring prefix length response add result filter payments prefix source
method is called by infrastructure when search operation was requested
public object get int index label label label source get index return new payment filter label get name
gets the user at the specified index
public void list changed list event list changes updates forward event list changes
when the source issues list changes propogate the exact same changes
public jtext field get quick search proxy return temp
delegate for the cash forward quick search provider
public matcher editor create label matcher task top component tt c task top component find instance payment task panel pt p tt c get payment task panel return new label select pt p get label list component
creates a matcher editor for the existing labels
public matcher editor create scenario matcher task top component tt c task top component find instance payment task panel pt p tt c get payment task panel return new label select pt p get scenario list component
creates a matcher editor for the existing scenarios
public matcher editor create type matcher task top component tt c task top component find instance payment task panel pt p tt c get payment task panel return new type select pt p get type list component
creates a matcher editor for the payment types
public void value changed list selection event e if e get value is adjusting return matcher new matcher new payments for labels matcher get selected labels fire changed new matcher
when the jlist selection changes create a new matcher and fire
public boolean matches object o if o null return false if labels is empty return true payment payment payment o uilogger log finest payment to string list label plabels payment get labels for label label plabels uilogger log finest matches label get name if labels contains label get name return true return false
test whether to include or not include the specified issue based
public void value changed list selection event e if e get value is adjusting return matcher new matcher new scheduled payment matcher is scheduled fire changed new matcher
when the jlist selection changes create a new matcher and fire
public boolean matches object o if o null return false payment payment payment o uilogger log finest payment is payment is scheduled if scheduled return payment is scheduled else return payment is scheduled
test whether to include or not include the specified issue based
public payment get payment collection all lookup all payment class if all null iterator ia all iterator if ia has next return payment ia next return null
get code payment code that is the focus of the application
public void add scenario scenario new scenario this scenarios get read write lock write lock lock this scenarios add new scenario this scenarios get read write lock write lock unlock
add a new scenario to the application
public void add scenarios list scenarios this scenarios get read write lock write lock lock this scenarios add all scenarios this scenarios get read write lock write lock unlock
add a code list code of code scenario code s to the application
public void clear scenario collection all lookup all scenario class if all null iterator ia all iterator if ia has next remove ia next
clear the active scenario from the context
public void clear payment collection all lookup all payment class if all null iterator ia all iterator while ia has next remove ia next
clear the active payment from the context
public void update payment occurence payment occurence new occurence get occurence if cbo ends is selected payment set end date null return if stops after radio is selected int period new occurence period int unit new occurence unit int times remaining get occurences remaining if times remaining 0 date end date date utilities get date after period payment get start date period times remaining unit payment set end date end date else if stops on radio is selected payment set end date this until date combo get date
this is really the commit method for this form
public boolean is internal return internal
internal labels are used by cash forward to set metadata on objects
public void set end date date end date this end date end date
set the date of the last occurence
public string get occurence return occurence
get the type of occurence
public void set occurence string occurence this occurence occurence
set type of occurence
public void set payment overrides list payment override overrides this overrides overrides
override specific occurences of the code payment code
public payment enter next payment payment scheduled payment throws exception payment new payment new payment scheduled payment get amount scheduled payment get payee scheduled payment get start date new payment set occurence payment occurence none name new payment set end date new payment get start date if persistence service add or update payment new payment scheduled payment set start date payment calculator get next payment date scheduled payment new date persistence service add or update payment scheduled payment return new payment
enters the next scheduled payment into the register
public void get node
returns a graph
public void each node
iterates over graph nodes performing an action
public void each adjacency
iterates over graph
public void compute levels
performs a bfs traversal setting the correct depth for each node
public void each bfs
performs a bfs traversal applying action to each graph
public void each subgraph
iterates over a node s children recursively
public void each subnode
iterates over a node s children without deeper recursion
public void any subnode
returns true if any subnode matches the given condition
public void get subnodes
collects all subnodes for a specified node
public void get parents
returns an array of graph
public node get node object id return wrp get node id
returns a graph
public void get adjacence
returns an array of graph
public adjacence add adjacence node obj node obj2 node data data return wrp add adjacence obj obj2 data
connects nodes specified by obj and obj2
public void remove node
removes a graph
public void remove adjacence
removes a graph
public void refresh wrp refresh
computes nodes positions and replots the tree
public void adjacent to
indicates if the node is adjacent to the node specified by id
public void get adjacency
returns a graph
public void add adjacency
connects the current node and the given node
public void remove adjacency
removes a graph
public void set alignment int alignment text alignment alignment reset positioning text x text y 1
set the text alignment
protected void set widget type type constants widget type button
set the type of widget to widget type button
public int get icon padding x return icon padding x
the horitontal gap between the icon and text
public void set icon padding x int icon padding x this icon padding x icon padding x
the horitontal gap between the icon and text
public void set index int index super set index index text x 1
sets the currently selected item
public void add widget iwidget widget if widget instanceof tab view system out println tab view if selected tab null selected tab get widget container add widget widget false
add a widget to the selected tab
public int get entry mode return entry mode
gets the entry mode for this instance
public void set font wfont font fnt cmd bar font
sets the command bar font
public void set entry mode int mode this entry mode mode
sets the entry mode for this instance
public wfont get font return fnt cmd bar
retrieves the command bar font
public void set no item to show int items to show items to show items to show
sets the number of items that will be shown at once when expanded
public int get disp mode return disp mode
gets the display mode for this instance
public void set command font wfont font fnt cmds font
sets the command bar font