code
stringlengths
10
174k
nl
stringlengths
3
129k
@LargeTest public void testCameraPairwiseScenario09() throws Exception { genericPairwiseTestCase(Flash.OFF,Exposure.MIN,WhiteBalance.AUTO,SceneMode.NIGHT,PictureSize.LARGE,Geotagging.OFF); }
Flash: Off / Exposure: Min / WB: Auto Scene: Night / Pic: Large / Geo: off
private String checkPage(String value,String defaultValue){ if (ADMStringUtils.isBlank(value)) { value=defaultValue; } if (!value.startsWith("/") && !value.startsWith("\\")) { value="/" + value; } return value; }
If the value is set check if it starts with a /. Otherwise use the default value
void performOperation(BayesNet bayesNet,Instances instances,Operation oOperation) throws Exception { switch (oOperation.m_nOperation) { case Operation.OPERATION_ADD: applyArcAddition(bayesNet,oOperation.m_nHead,oOperation.m_nTail,instances); if (bayesNet.getDebug()) { System.out.print("Add " + oOperation.m_nH...
performOperation applies an operation on the Bayes network and update the cache.
public void initCacheListeners(CacheListener<K,V>[] newListeners){ synchronized (this.regionAttributes) { if (newListeners == null || newListeners.length == 0) { this.regionAttributes.cacheListeners=null; } else { List<CacheListener<K,V>> nl=Arrays.asList(newListeners); if (nl.contains(null))...
Removes all cache listeners and then adds each listener in the specified array.
protected void autoScrollUp(){ int index=list.getSelectedIndex(); if (index > 0) { list.setSelectedIndex(index - 1); list.ensureIndexIsVisible(index - 1); } }
This protected method is implementation specific and should be private. do not call or override.
public boolean hasProject(){ return hasExtension(Project.class); }
Returns whether it has the project.
double tableValue(int mw,int nw){ int internalVal=mw & 0xFF; double stepwidth=(double)0xFF / (metaTblValues.length - 1); int pos=(int)(internalVal / stepwidth); int ofs=(int)(internalVal % stepwidth); int valBefore=metaTblValues[pos]; int valAfter=pos < metaTblValues.length - 1 ? metaTblValues[pos + 1] : va...
calculation of interpolated table value table values are transferred with the meta package
public DrawerBuilder withDisplayBelowStatusBar(boolean displayBelowStatusBar){ this.mDisplayBelowStatusBar=displayBelowStatusBar; return this; }
Sets that the slider of this Drawer should be displayed below the statusBar even with a translucentStatusBar
private static View addFakeStatusBarView(Activity activity,int statusBarColor,int statusBarHeight){ Window window=activity.getWindow(); ViewGroup mDecorView=(ViewGroup)window.getDecorView(); View mStatusBarView=new View(activity); FrameLayout.LayoutParams layoutParams=new FrameLayout.LayoutParams(ViewGroup.Layo...
1. Add fake statusBarView. 2. set tag to statusBarView.
public Select<Model> groupBy(String groupBy){ this.groupBy=groupBy; return this; }
The group by clause to use
boolean isEmpty(){ return mDescription.isEmpty() && mTypes.isEmpty(); }
Checks whether the information about the OMA content is empty.
public static float computeCompatibleScaling(DisplayMetrics dm,DisplayMetrics outDm){ final int width=dm.noncompatWidthPixels; final int height=dm.noncompatHeightPixels; int shortSize, longSize; if (width < height) { shortSize=width; longSize=height; } else { shortSize=height; longSize=width;...
Compute the frame Rect for applications runs under compatibility mode.
public double put(long key,double value){ double previous=0; int index=insertionIndex(key); boolean isNewMapping=true; if (index < 0) { index=-index - 1; previous=_values[index]; isNewMapping=false; } byte previousState=_states[index]; _set[index]=key; _states[index]=FULL; _values[index]=v...
Inserts a key/value pair into the map.
public XMLDecoder(InputStream inputStream,Object owner,ExceptionListener listener){ this(inputStream,owner,listener,null); }
Create a decoder to read from specified input stream.
@Override public boolean eIsSet(int featureID){ switch (featureID) { case UmplePackage.TRACE_CASE_ACTIVATION___TRACECASE_ACT_NAME_1: return TRACECASE_ACT_NAME_1_EDEFAULT == null ? tracecase_act_name_1 != null : !TRACECASE_ACT_NAME_1_EDEFAULT.equals(tracecase_act_name_1); case UmplePackage.TRACE_CASE_ACTIVATION___AN...
<!-- begin-user-doc --> <!-- end-user-doc -->
public static LocationEntity build(Location l){ LocationEntity entity=new LocationEntity(); entity.location=l.location; entity.realLocation=l.realLocation; return entity; }
<br> life cycle.
@VisibleForTesting boolean shouldRound(){ return mIsCircle || mRadiiNonZero || mBorderWidth > 0; }
If both the radii and border width are zero, there is nothing to round.
public boolean isInverted(){ return mInverted; }
If this returns true, the y-axis is inverted.
public String readSystemStat(){ RandomAccessFile reader=null; String load=null; try { reader=new RandomAccessFile("/proc/stat","r"); load=reader.readLine(); } catch ( IOException ex) { ex.printStackTrace(); } finally { } return load; }
Return the first line of /proc/stat or null if failed.
public PriorityQueue(PriorityQueue<? extends E> c){ getFromPriorityQueue(c); }
Constructs a priority queue that contains the elements of another priority queue. The constructed priority queue has the initial capacity of 110% of the specified one. Both priority queues have the same comparator.
public Minutes plus(int minutes){ if (minutes == 0) { return this; } return Minutes.minutes(FieldUtils.safeAdd(getValue(),minutes)); }
Returns a new instance with the specified number of minutes added. <p> This instance is immutable and unaffected by this method call.
private void init(int userConnected,int parentId,boolean isLdap){ _id=Defs.NULL_ID; _parentId=parentId; _isLdap=isLdap; _userConnected=userConnected; _name=""; _tblPrefix=""; _remarks=""; _flags=ArchiveDefs.ARCH_FLAG_NONE; _type=ArchiveDefs.ARCH_TYPE_STANDARD; _accessType=ArchiveDefs.ACCESS_TYPE_PRO...
Inicializa los datos de esta clase.
public FlushConsolidationHandler(){ this(256); }
Create new instance which explicit flush after 256 pending flush operations latest.
@Override public boolean isActive(){ return amIActive; }
Used by the Whitebox GUI to tell if this plugin is still running.
public int size(){ return m_heap[0].index; }
returns the size of the heap.
public Overlay disableClickThroughHole(boolean yesNo){ mDisableClickThroughHole=yesNo; return this; }
Set to true if you want to disallow the highlighted view to be clicked through the hole, set to false if you want to allow the highlighted view to be clicked through the hole
private void decode(ShareCaptureActivity activity,byte[] data,int width,int height){ long start=System.currentTimeMillis(); Result rawResult=null; PlanarYUVLuminanceSource source=CameraManager.get().buildLuminanceSource(data,width,height); BinaryBitmap bitmap=new BinaryBitmap(new HybridBinarizer(source)); try...
Decode the data within the viewfinder rectangle, and time how long it took. For efficiency, reuse the same reader objects from one decode to the next.
@Override public void run(){ synchronized (this) { pending=null; } SolrQueryRequest req=new LocalSolrQueryRequest(core,new ModifiableSolrParams()); try { CommitUpdateCommand command=new CommitUpdateCommand(req,false); command.openSearcher=openSearcher; command.waitSearcher=waitSearcher; comman...
This is the worker part for the ScheduledFuture
public String toString(){ return taskName + " " + rScript+ " "+ frequency+ " "+ time+ " "+ owner+ " "+ emailOnSuccess+ " "+ new Date(nextRunTime).toString(); }
Returns a summary of the schedule.
public static int signum(int i){ return (i == 0 ? 0 : (i < 0 ? -1 : 1)); }
<p> The <code>signum</code> function for <code>int</code> values. This method returns -1 for negative values, 1 for positive values and 0 for the value 0. </p>
@Override public void respond(String response){ getChannel().send().message(getUser(),response); }
Respond by send a message in the channel to the user that set the mode in <code>user: message</code> format
public Label(){ }
Constructs a new label.
public boolean hasEmbeddability(){ return hasExtension(Embeddability.class); }
Returns whether it has the embeddability.
EditorHistoryManager(final Project project,final UISettings uiSettings){ super(project); uiSettings.addUISettingsListener(new MyUISettingsListener(),project); }
Invoked by reflection
public static TransactionID createTransactionID(StunStack stunStack,byte[] transactionID){ StunClientTransaction cliTran=stunStack.getClientTransaction(transactionID); if (cliTran != null) return cliTran.getTransactionID(); StunServerTransaction serTran=stunStack.getServerTransaction(transactionID); if (serTr...
Returns a <tt>TransactionID</tt> instance for the specified id. If <tt>transactionID</tt> is the ID of a client or a server transaction already known to the stack, then this method would return a reference to that transaction's instance so that we could use it to for storing application data.
public void removeLocalAddress(String address){ this.localAddresses.remove(address); }
Removes the given address from the list of local network addresses. This address will then no longer be used of outgoing SOCKS5 Bytestream requests.
private DBObject saveWords(final Pattern pattern){ final BasicDBList list=new BasicDBList(); for (int i=0; i < pattern.getWords().size(); i++) { final WordToken w=pattern.getWords(i); final BasicDBObject o=new BasicDBObject().append("text",w.getCoveredText()).append("pos",w.getPartOfSpeech()); if (w.get...
Save words.
public static int decode(String data,OutputStream out) throws IOException { return encoder.decode(data,out); }
decode the base 64 encoded String data writing it to the given output stream, whitespace characters will be ignored.
@RequestMapping(value=BUSINESS_OBJECT_DATA_ATTRIBUTES_URI_PREFIX + "/namespaces/{namespace}" + "/businessObjectDefinitionNames/{businessObjectDefinitionName}"+ "/businessObjectFormatUsages/{businessObjectFormatUsage}/businessObjectFormatFileTypes/{businessObjectFormatFileType}"+ "/businessObjectFormatVersions/{business...
Updates an existing attribute for the business object data with 3 subpartition values. <p>Requires WRITE permission on namespace</p>
public SyncValueMessage(SyncValueMessage other){ __isset_bitfield=other.__isset_bitfield; if (other.isSetHeader()) { this.header=new AsyncMessageHeader(other.header); } if (other.isSetStore()) { this.store=new Store(other.store); } if (other.isSetValues()) { List<KeyedValues> __this__values=new ...
Performs a deep copy on <i>other</i>.
public static void write(float latPoint,float lonPoint,int[] xypoints,int cMode,LinkProperties properties,DataOutputStream dos) throws IOException { dos.write(Link.POLY_HEADER.getBytes()); dos.writeByte(GRAPHICTYPE_POLY); dos.writeByte(RENDERTYPE_OFFSET); dos.writeFloat(latPoint); dos.writeFloat(lonPoint); ...
Write a poly.
public String addAttribute(String typeUri,String value){ String alias=generateAlias(); _parameters.set(new Parameter("type." + alias,typeUri)); _parameters.set(new Parameter("value." + alias,value)); if (DEBUG) _log.debug("Added new attribute to the AX payload; type: " + typeUri + " alias: "+ alias); return...
Adds an attribute to the attribute payload, without the caller having to specify an alias. An alias in the form "attrNN" will be automatically generated.
public SSX(double probability){ super(); this.probability=probability; }
Constructs a SSX operator.
@Override public DriverTask createVolumeMirror(List<VolumeMirror> list,StorageCapabilities storageCapabilities){ return mirrorHelper.createVolumeMirror(list); }
Create volume mirrors.
public void cdata(char ch[],int start,int length) throws org.xml.sax.SAXException { if (isOutsideDocElem() && org.apache.xml.utils.XMLCharacterRecognizer.isWhiteSpace(ch,start,length)) return; String s=new String(ch,start,length); CDATASection section=(CDATASection)m_currentNode.getLastChild(); section.append...
Receive notification of cdata. <p>The Parser will call this method to report each chunk of character data. SAX parsers may return all contiguous character data in a single chunk, or they may split it into several chunks; however, all of the characters in any single event must come from the same external entity, so tha...
public static Input.Tok endTok(Token token){ for (int i=token.getToksAfter().size() - 1; i >= 0; i--) { Input.Tok tok=token.getToksAfter().get(i); if (tok.getIndex() >= 0) { return tok; } } return token.getTok(); }
The last non-whitespace Tok in the Token.
public final void requestInteg(boolean value) throws GSSException { if (state == STATE_NEW && isInitiator()) integState=value; }
Requests that integrity be available.
protected static int rule(CSSValue v){ return (((CSSPrimitiveValue)v).getStringValue().charAt(0) == 'n') ? GeneralPath.WIND_NON_ZERO : GeneralPath.WIND_EVEN_ODD; }
Returns the winding rule represented by the specified CSSValue.
static SchemaField create(String name,FieldType ft,int props,String defValue){ return new SchemaField(name,ft,props,defValue); }
Create a SchemaField w/ the props specified. Does not support a default value.
public Authorization(@Nonnull ClientIdentity identity,JsonTray parent,@Nonnull UserRoles urs){ Log.getLog().debug("new authorization"); this.parent=parent; this.accounting=null; this.identity=identity; this.userRoles=urs; if (parent != null) { if (parent.has(identity.toString())) { json=parent.get...
create a new authorization object. The given json object must be taken as value from a parent json. If the parent json is a JsonFile, then that file can be handed over as well to enable persistency.
public static void saveAsASCII(NSDictionary root,File out) throws IOException { File parent=out.getParentFile(); if (!parent.exists() && !parent.mkdirs()) { throw new IOException("The output directory does not exist and could not be created."); } OutputStreamWriter w=new OutputStreamWriter(new FileOutputStr...
Saves a property list with the given object as root into a ASCII file.
private void liveOutAtBlock(){ if (!visitedBlocks.get(blockN.getIndex())) { visitedBlocks.set(blockN.getIndex()); blockN.addLiveOut(regV); ArrayList<SsaInsn> insns; insns=blockN.getInsns(); statementIndex=insns.size() - 1; nextFunction=NextFunction.LIVE_OUT_AT_STATEMENT; } }
"v is live-out at n."
public BlockData(int fullId){ this.type=Photon.getGameRegistry().getRegisteredBlock(fullId >> 4); this.metadata=(byte)(fullId & 15); }
Creates a new BlockData with a full block id.
public void showPieceJail(){ for ( PieceJailChessSquare pieceJailSquare : pieceJailSquares) { if (pieceJailSquare != null) { pieceJailSquare.setVisible(true); } } }
Shows the piece jail.
@Override public EObject create(EClass eClass){ switch (eClass.getClassifierID()) { case OrientedPackage.COMPONENT: return createComponent(); case OrientedPackage.PORT: return createPort(); default : throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); } }
<!-- begin-user-doc --> <!-- end-user-doc -->
public NoninvertibleTransformException(String s){ super(s); }
Instantiates a new non-invertible transform exception.
@Override public void putAll(Map<? extends K,? extends V> that){ throw new UnsupportedOperationException(ERROR_MSG); }
Guaranteed to throw an exception and leave the map unmodified.
@PostConstruct public void init(){ super.init(dsTypeFilterHeader,dsTypeFilterButtons,dsTypeFilterButtonClick); eventbus.subscribe(this); }
Initialize the filter layout.
public final CharSequence yytext(){ return zzBuffer.subSequence(zzStartRead,zzMarkedPos); }
Returns the text matched by the current regular expression.
public void SwitchTo(int lexState){ if (lexState >= 2 || lexState < 0) throw new TokenMgrError("Error: Ignoring invalid lexical state : " + lexState + ". State unchanged.",TokenMgrError.INVALID_LEXICAL_STATE); else curLexState=lexState; }
Switch to specified lex state.
public AuthResponse renewSelf() throws VaultException { return renewSelf(-1); }
<p>Renews the lease associated with the calling token. This version of the method tells Vault to use the default lifespan for the new lease.</p>
private void refitText(String text,int textWidth){ if (textWidth <= 0 || text == null || text.length() == 0) return; int targetWidth=(textWidth - this.getPaddingLeft() - this.getPaddingRight()) / 3; this.setTextSize(TypedValue.COMPLEX_UNIT_PX,targetWidth); }
Resize the text so that it fits
public void add(final ExchangeRate rate){ add(rate,Date.minDate(),Date.maxDate()); }
Adds an exchange rate to the repository. The given rate is valid between min and max Date (implementation dependend).
@Override protected boolean onRequestFocusInDescendants(int direction,Rect previouslyFocusedRect){ int index; int increment; int end; int count=getChildCount(); if ((direction & FOCUS_FORWARD) != 0) { index=0; increment=1; end=count; } else { index=count - 1; increment=-1; end=-1; ...
We only want the current page that is being shown to be focusable.
public void scrollComponentToVisible(Component c){ initFocused(); Container parent=c.getParent(); while (parent != null) { if (parent.isScrollable()) { if (parent == this) { if (getContentPane().isScrollable()) { getContentPane().scrollComponentToVisible(c); } } else { ...
Makes sure the component is visible in the scroll if this container is scrollable
@DSGenerator(tool_name="Doppelganger",tool_version="2.0",generated_on="2013-12-30 12:55:12.217 -0500",hash_original_method="66FF7F77E84125B131D0D04138A3FE42",hash_generated_method="CB4C0906D3BAE20BA6638CD5E104CC6B") public void stop(){ synchronized (eventMutex) { if (this.refCount > 0) this.refCount--; if (...
Stop the event scanner. Decrement the reference count and exit the scanner thread if the ref count goes to 0.
public void removeListener(mxIEventListener listener,String eventName){ eventSource.removeListener(listener,eventName); }
Removes the given event listener for the specified event name.
@Override public boolean isActive(){ return amIActive; }
Used by the Whitebox GUI to tell if this plugin is still running.
public boolean contains(final byte[] a){ int i=d, l=a.length; long bits[]=this.bits; while (i-- != 0) if (!get(bits,hash(a,l,i))) return false; return true; }
Checks whether the given byte array is in this filter.
public void addSeed(HttpMessage msg){ URI uri=msg.getRequestHeader().getURI(); addSeed(uri); }
Adds a new seed for the Spider.
public void clear(){ oredCriteria.clear(); }
This method was generated by Apache iBATIS ibator. This method corresponds to the database table t_user
String internalsprintf(final Object s){ final String s2; if (conversionCharacter == 's' || conversionCharacter == 'S') { s2=printSFormat(s.toString()); } else { throw new IllegalArgumentException("Cannot format a String with a format using" + " a " + conversionCharacter + " conversion character."); } ...
Format an Object argument using this conversion specification.
@NotNull private RecipeWidget addRecipe(@NotNull RecipeDescriptor recipeDescriptor){ RecipeWidget recipe=new RecipeWidget(recipeDescriptor,resources); recipe.setDelegate(this); view.addRecipe(recipe); recipesContainerPresenter.addRecipePanel(recipe); recipes.put(recipe,recipeDescriptor); return recipe; }
Adds new recipe to list.
private boolean doesMatch(String pattern,int pp,String result,int rp){ for (; ; ) { if (pp == pattern.length() && rp == result.length()) return true; if (pp == pattern.length()) return false; char pc=pattern.charAt(pp); if (pc == '_') { if (rp == result.length()) return false; ...
See if a string matches the pattern as defined by DatabaseMetaData. By passing in non-zero values can check sub-sets of the pattern against the sub strings of the result. <BR> _ matches a single character <BR> % matches zero or more characters <BR> Other characters match themselves.
public String toString(){ String s=this.getClass().getName() + " " + this.name+ "\n"+ this.n+ " // <- Total # rows\n"; for (int r=0; r < this.n; r++) { for (int c=0; c < this.n; c++) { s=s + this.getValue(r,c) + " "; } s=s + "\n"; } return s; }
Returns a specially formatted string with all the contents of this matrix
protected boolean hasAttemptRemaining(){ return mCurrentRetryCount <= mMaxNumRetries; }
Returns true if this policy has attempts remaining, false otherwise.
private void checkPlatformParameterConstraints(Subscription subscription,Product targetProduct,PlatformUser currentUser) throws SubscriptionMigrationException { ParameterSet paramSet=targetProduct.getParameterSet(); if (paramSet == null || paramSet.getParameters() == null || paramSet.getParameters().isEmpty()) { ...
Check if one of the platform parameter constraints are violated.
public SummaryToolBar(){ labels=ResourceBundleUtil.getBundle("org.jhotdraw.samples.svg.Labels"); initComponents(); GridBagLayout layout=new GridBagLayout(); setLayout(layout); GridBagConstraints gbc; gbc=new GridBagConstraints(); gbc.insets=new Insets(0,10,0,0); gbc.weightx=1d; gbc.fill=GridBagConstra...
Creates new instance.
public Builder(TweetUi tweetUi){ if (tweetUi == null) { throw new IllegalArgumentException("TweetUi instance must not be null"); } this.tweetUi=tweetUi; }
Constructs a Builder.
@Override public int proceduralInterval(){ return 1; }
The interval in ticks before the next procedural call of this explosive
public GammaFitnessFunction(int genomeLength,double alpha,double beta,int stateSize,boolean randomFittest){ GammaDistribution gamma=new GammaDistribution(beta,alpha); fitness=new double[genomeLength][stateSize]; fittest=new byte[genomeLength]; int fitpos=0; for (int i=0; i < genomeLength; i++) { if (rando...
selection coefficients are gamma distributed with parameters alpha and beta
public static int hash(boolean item){ return (item ? 1 : 0); }
Hash a boolean value.
private void updateProgress(int progress){ if (myHost != null && progress != previousProgress) { myHost.updateProgress(progress); } previousProgress=progress; }
Used to communicate a progress update between a plugin tool and the main Whitebox user interface.
public ReflectiveOperationException(){ }
Constructs a new exception with no detail message.
public void doGet(HttpServletRequest request,HttpServletResponse response) throws ServletException, IOException { long time=System.currentTimeMillis(); request.getSession(true); String url=getTargetURL(request); if (!response.isCommitted()) response.sendRedirect(url); response.flushBuffer(); log.fine("red...
Process the HTTP Get request.
public static void check(boolean cond,Object value){ if (!cond) error(String.valueOf(value)); }
Equivalent to assert cond : value;
private void showErrorMessage(String message){ Toast.makeText(getActivity().getApplicationContext(),message,Toast.LENGTH_LONG).show(); if (message.equals(getString(R.string.abelana_auth_error_message))) { ((MainActivity)getActivity()).startGitkitActivity(); } }
Displays a Toast with an error message.
static private HashSet<String> initThreePartTLDs(){ HashSet<String> set=new HashSet<String>(); for ( String multiPartTLD : multiPartTLDs) { try { if (multiPartTLD.matches("^" + tld3 + "$")) { debugOut("adding \"" + multiPartTLD + "\""); set.add(multiPartTLD); } } catch ( Exc...
Initialize three-part top-level domain cache.
public boolean isDefinitelyWritable(int column) throws SQLException { return isWritable(column); }
Will a write on this column definately succeed?
public DeviceAutomator pressDPadRight(){ mDevice.pressDPadRight(); return this; }
Simulates a short press on the RIGHT button.
public static TypeReference newFormalParameterReference(int paramIndex){ return new TypeReference((METHOD_FORMAL_PARAMETER << 24) | (paramIndex << 16)); }
Returns a reference to the type of a formal parameter of a method.
public EventStoreBuilder failOnNoServerResponseEnabled(){ settingsBuilder.failOnNoServerResponse(true); return this; }
Operation timeout checker will raise an error if no response is received from the server for an operation.
public StatsCollectionEvent(String name,XYDataItem data){ this.name=name; this.data=data; }
Instantiates a new stats collection event.
public static int compile(String[] args){ com.sun.tools.javac.main.Main compiler=new com.sun.tools.javac.main.Main("javac"); return compiler.compile(args).exitCode; }
Programmatic interface to the Java Programming Language compiler, javac.
public Polygon2D(float[] xpoints,float[] ypoints,int npoints){ if (npoints > xpoints.length || npoints > ypoints.length) { throw new IndexOutOfBoundsException("npoints > xpoints.length || npoints > ypoints.length"); } this.npoints=npoints; this.xpoints=new float[npoints]; this.ypoints=new float[npoints]; ...
Constructs and initializes a <code>Polygon2D</code> from the specified parameters.
@Override protected void onVisibilityChanged(View changedView,int visibility){ super.onVisibilityChanged(changedView,visibility); if (visibility != View.VISIBLE) return; refresh(); }
Automatically refresh on resume
public static void storePreference(Context context,String value,String appKey,String prefName){ SharedPreferences prefs=context.getSharedPreferences(appKey,Context.MODE_PRIVATE); String prefValues=prefs.getString(prefName,"[]"); JSONArray prefValuesArray; try { prefValuesArray=new JSONArray(prefValues); ...
Add a value in a list of preferences referenced by an appKey and a prefName.
private void teleportToAdminLocation(){ RPAction action=new RPAction(); action.put("type","teleportto"); action.put("target","Skye"); client.send(action); }
teleports to the admin house
public void addSources(Set<Fact> predecessors){ for ( Fact predecessor : predecessors) { addSource(predecessor); } }
Record that a set of facts was used to derive this one.
@DSSafe(DSCat.SAFE_OTHERS) @DSGenerator(tool_name="Doppelganger",tool_version="2.0",generated_on="2014-02-25 10:37:58.956 -0500",hash_original_method="8F401E92E0D1BB2B74D2C1DBF9D3F65E",hash_generated_method="20F53E70F695FB0DB8855F1E77E63F38") protected void _connectAction_() throws IOException { for (int ii=0; ii < T...
Called upon connection. <p>