code stringlengths 4 1.01M | language stringclasses 2 values |
|---|---|
/**************************************************************************
**
** This file is part of .
** https://github.com/HamedMasafi/
**
** is free software: you can redistribute it and/or modify
** it under the terms of the GNU Lesser General Public License as published by
** the Free Software Foundation, either version 3 of the License, or
** (at your option) any later version.
**
** is distributed in the hope that it will be useful,
** but WITHOUT ANY WARRANTY; without even the implied warranty of
** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
** GNU Lesser General Public License for more details.
**
** You should have received a copy of the GNU Lesser General Public License
** along with . If not, see <http://www.gnu.org/licenses/>.
**
**************************************************************************/
#include <QEventLoop>
#include <QtCore/QDebug>
#include <QtNetwork/QTcpSocket>
#include "abstracthub_p.h"
#include "serverhub.h"
#include "serverhub_p.h"
NEURON_BEGIN_NAMESPACE
ServerHubPrivate::ServerHubPrivate() : serverThread(nullptr), connectionEventLoop(nullptr)
{
}
ServerHub::ServerHub(QObject *parent) : AbstractHub(parent),
d(new ServerHubPrivate)
{
}
ServerHub::ServerHub(AbstractSerializer *serializer, QObject *parent) : AbstractHub(serializer, parent),
d(new ServerHubPrivate)
{
}
ServerHub::ServerHub(QTcpSocket *socket, QObject *parent) : AbstractHub(parent),
d(new ServerHubPrivate)
{
this->socket = socket;
}
ServerHub::~ServerHub()
{
// QList<SharedObject *> soList = sharedObjects();
// foreach (SharedObject *so, soList) {
// if(so)
// removeSharedObject(so);
// }
// while(sharedObjects().count()){
// removeSharedObject(sharedObjects().at(0));
// }
auto so = sharedObjectHash();
QHashIterator<const QString, SharedObject*> i(so);
while (i.hasNext()) {
i.next();
// cout << i.key() << ": " << i.value() << endl;
detachSharedObject(i.value());
}
}
ServerThread *ServerHub::serverThread() const
{
return d->serverThread;
}
qlonglong ServerHub::hi(qlonglong hubId)
{
initalizeMutex.lock();
setHubId(hubId);
// emit connected();
K_TRACE_DEBUG;
// invokeOnPeer(THIS_HUB, "hi", hubId);
if (d->connectionEventLoop) {
d->connectionEventLoop->quit();
d->connectionEventLoop->deleteLater();
}
initalizeMutex.unlock();
setStatus(Connected);
return this->hubId();
}
bool ServerHub::setSocketDescriptor(qintptr socketDescriptor, bool waitForConnect)
{
bool ok = socket->setSocketDescriptor(socketDescriptor);
if(waitForConnect)
socket->waitForReadyRead();
return ok;
}
void ServerHub::setServerThread(ServerThread *serverThread)
{
if(d->serverThread != serverThread)
d->serverThread = serverThread;
}
void ServerHub::beginConnection()
{
K_TRACE_DEBUG;
d->connectionEventLoop = new QEventLoop;
K_REG_OBJECT(d->connectionEventLoop);
d->connectionEventLoop->exec();
}
NEURON_END_NAMESPACE
| Java |
/* $Id$
* ===========================================================================
*
* PUBLIC DOMAIN NOTICE
* National Center for Biotechnology Information
*
* This software/database is a "United States Government Work" under the
* terms of the United States Copyright Act. It was written as part of
* the author's official duties as a United States Government employee and
* thus cannot be copyrighted. This software/database is freely available
* to the public for use. The National Library of Medicine and the U.S.
* Government have not placed any restriction on its use or reproduction.
*
* Although all reasonable efforts have been taken to ensure the accuracy
* and reliability of the software and data, the NLM and the U.S.
* Government do not and cannot warrant the performance or results that
* may be obtained by using this software or data. The NLM and the U.S.
* Government disclaim all warranties, express or implied, including
* warranties of performance, merchantability or fitness for any particular
* purpose.
*
* Please cite the author in any work or product based on this material.
*
* ===========================================================================
*
*/
/// @file Cn3d_backbone_style.hpp
/// User-defined methods of the data storage class.
///
/// This file was originally generated by application DATATOOL
/// using the following specifications:
/// 'cn3d.asn'.
///
/// New methods or data members can be added to it if needed.
/// See also: Cn3d_backbone_style_.hpp
#ifndef OBJECTS_CN3D_CN3D_BACKBONE_STYLE_HPP
#define OBJECTS_CN3D_CN3D_BACKBONE_STYLE_HPP
// generated includes
#include <objects/cn3d/Cn3d_backbone_style_.hpp>
// generated classes
BEGIN_NCBI_SCOPE
BEGIN_objects_SCOPE // namespace ncbi::objects::
/////////////////////////////////////////////////////////////////////////////
class NCBI_CN3D_EXPORT CCn3d_backbone_style : public CCn3d_backbone_style_Base
{
typedef CCn3d_backbone_style_Base Tparent;
public:
// constructor
CCn3d_backbone_style(void);
// destructor
~CCn3d_backbone_style(void);
private:
// Prohibit copy constructor and assignment operator
CCn3d_backbone_style(const CCn3d_backbone_style& value);
CCn3d_backbone_style& operator=(const CCn3d_backbone_style& value);
};
/////////////////// CCn3d_backbone_style inline methods
// constructor
inline
CCn3d_backbone_style::CCn3d_backbone_style(void)
{
}
/////////////////// end of CCn3d_backbone_style inline methods
END_objects_SCOPE // namespace ncbi::objects::
END_NCBI_SCOPE
#endif // OBJECTS_CN3D_CN3D_BACKBONE_STYLE_HPP
/* Original file checksum: lines: 86, chars: 2588, CRC32: dfafc7fa */
| Java |
package com.sirma.itt.seip.rest.handlers.readers;
import static com.sirma.itt.seip.rest.utils.request.params.RequestParams.PATH_ID;
import java.io.IOException;
import java.io.InputStream;
import java.lang.annotation.Annotation;
import java.lang.reflect.Type;
import javax.inject.Inject;
import javax.ws.rs.BeanParam;
import javax.ws.rs.Consumes;
import javax.ws.rs.core.MediaType;
import javax.ws.rs.core.MultivaluedMap;
import javax.ws.rs.ext.MessageBodyReader;
import javax.ws.rs.ext.Provider;
import com.sirma.itt.seip.domain.instance.Instance;
import com.sirma.itt.seip.rest.exceptions.BadRequestException;
import com.sirma.itt.seip.rest.resources.instances.InstanceResourceParser;
import com.sirma.itt.seip.rest.utils.JSON;
import com.sirma.itt.seip.rest.utils.Versions;
import com.sirma.itt.seip.rest.utils.request.RequestInfo;
/**
* Converts a JSON object to {@link Instance}.
*
* @author yasko
*/
@Provider
@Consumes(Versions.V2_JSON)
public class InstanceBodyReader implements MessageBodyReader<Instance> {
@Inject
private InstanceResourceParser instanceResourceParser;
@BeanParam
private RequestInfo request;
@Override
public boolean isReadable(Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType) {
return Instance.class.isAssignableFrom(type);
}
@Override
public Instance readFrom(Class<Instance> type, Type genericType, Annotation[] annotations, MediaType mediaType,
MultivaluedMap<String, String> headers, InputStream stream) throws IOException {
String id = PATH_ID.get(request);
Instance instance = JSON.readObject(stream, instanceResourceParser.toSingleInstance(id));
if (instance != null) {
return instance;
}
throw new BadRequestException("There was a problem with the stream reading or instance resolving.");
}
}
| Java |
<?php
namespace Web;
use BusinessLogic\Configuration\Configuration;
use BusinessLogic\Configuration\ConfigurationBook;
/* @var $this Settings */
?>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<span id="page-title">
Settings
</span>
<div class="btn-group" role="group" id="top-toolbar"></div>
<div id="content">
<div id="SubContainer">
<form method="post" class="form-horizontal">
<div class="panel panel-primary">
<div class="panel-heading">
<h3 class="panel-title">Google</h3>
</div>
<div class="panel-body">
<div class="form-group">
<label class="col-sm-2 control-label">Client ID:</label>
<div class="col-sm-10">
<input type="text" name="<?php echo Configuration::GOOGLE_CLIENT_ID ?>" class="form-control" value="<?php echo ConfigurationBook::getValue( Configuration::GOOGLE_CLIENT_ID ) ?>" placeholder="" />
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label">Secret ID:</label>
<div class="col-sm-10">
<input type="text" name="<?php echo Configuration::GOOGLE_CLIENT_SECRET ?>" class="form-control" value="<?php echo ConfigurationBook::getValue( Configuration::GOOGLE_CLIENT_SECRET ) ?>" placeholder="" />
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label">Redirect URL:</label>
<div class="col-sm-10">
<input type="text" name="<?php echo Configuration::GOOGLE_REDIRECT_URL ?>" class="form-control" value="<?php echo ConfigurationBook::getValue( Configuration::GOOGLE_REDIRECT_URL ) ?>" placeholder="" />
</div>
</div>
</div>
</div>
<div class="panel panel-primary">
<div class="panel-heading">
<h3 class="panel-title">Send notification handler</h3>
</div>
<div class="panel-body">
<div class="form-group">
<label class="col-sm-2 control-label">Username:</label>
<div class="col-sm-10">
<input type="text" name="<?php echo Configuration::SCRIPT_USERNAME ?>" class="form-control" value="<?php echo ConfigurationBook::getValue( Configuration::SCRIPT_USERNAME ) ?>" placeholder="" />
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label">Password:</label>
<div class="col-sm-10">
<input type="text" name="<?php echo Configuration::SCRIPT_PASSWORD ?>" class="form-control" value="<?php echo ConfigurationBook::getValue( Configuration::SCRIPT_PASSWORD ) ?>" placeholder="" />
</div>
</div>
</div>
</div>
<div class="pull-right">
<button type="submit" class="btn btn-primary">
<!--<span class="glyphicon glyphicon-search"></span>-->
Save
</button>
</div>
</form>
</div>
</div> | Java |
/***
Copyright (c) 2012 - 2021 Hércules S. S. José
Este arquivo é parte do programa Orçamento Doméstico.
Orçamento Doméstico é um software livre; você pode redistribui-lo e/ou
modificá-lo dentro dos termos da Licença Pública Geral Menor GNU como
publicada pela Fundação do Software Livre (FSF); na versão 3.0 da
Licença.
Este programa é distribuído na esperança que possa ser útil, mas SEM
NENHUMA GARANTIA; sem uma garantia implícita de ADEQUAÇÃO a qualquer
MERCADO ou APLICAÇÃO EM PARTICULAR. Veja a Licença Pública Geral Menor
GNU em português para maiores detalhes.
Você deve ter recebido uma cópia da Licença Pública Geral Menor GNU sob
o nome de "LICENSE" junto com este programa, se não, acesse o site do
projeto no endereco https://github.com/herculeshssj/orcamento ou escreva
para a Fundação do Software Livre(FSF) Inc., 51 Franklin St, Fifth Floor,
Boston, MA 02110-1301, USA.
Para mais informações sobre o programa Orçamento Doméstico e seu autor
entre em contato pelo e-mail herculeshssj@outlook.com, ou ainda escreva
para Hércules S. S. José, Rua José dos Anjos, 160 - Bl. 3 Apto. 304 -
Jardim Alvorada - CEP: 26261-130 - Nova Iguaçu, RJ, Brasil.
***/
package br.com.hslife.orcamento.entity;
import static org.junit.Assert.assertEquals;
import java.util.Date;
import org.junit.Before;
import org.junit.Test;
import br.com.hslife.orcamento.enumeration.TipoCategoria;
import br.com.hslife.orcamento.exception.ValidationException;
public class DividaTerceiroTest {
private DividaTerceiro entity;
@Before
public void setUp() throws Exception {
Usuario usuario = new Usuario();
usuario.setNome("Usuário de teste");
Favorecido favorecido = new Favorecido();
favorecido.setNome("Favorecido de teste");
Moeda moeda = new Moeda();
moeda.setNome("Real");
moeda.setSimboloMonetario("R$");
entity = new DividaTerceiro();
entity.setDataNegociacao(new Date());
entity.setFavorecido(favorecido);
entity.setJustificativa("Justificativa da dívida de teste");
entity.setTermoDivida("Termo da dívida de teste");
entity.setTermoQuitacao("Termo de quitação da dívida de teste");
entity.setTipoCategoria(TipoCategoria.CREDITO);
entity.setUsuario(usuario);
entity.setValorDivida(1000);
entity.setMoeda(moeda);
PagamentoDividaTerceiro pagamento;
for (int i = 0; i < 3; ++i) {
pagamento = new PagamentoDividaTerceiro();
pagamento.setComprovantePagamento("Comprovante de pagamento da dívida de teste " + i);
pagamento.setDataPagamento(new Date());
pagamento.setDividaTerceiro(entity);
pagamento.setValorPago(100);
entity.getPagamentos().add(pagamento);
}
}
@Test(expected=ValidationException.class)
public void testValidateDataNegociacao() {
entity.setDataNegociacao(null);
entity.validate();
}
@Test(expected=ValidationException.class)
public void testValidateJustificativa() {
entity.setJustificativa(null);
entity.validate();
}
@Test(expected=ValidationException.class)
public void testValidateTamanhoJustificativa() {
StringBuilder s = new StringBuilder(10000);
for (int i = 0; i < 10000; ++i)
s.append("a");
entity.setJustificativa(s.toString());
entity.validate();
}
@Test(expected=ValidationException.class)
public void testValidateCategoria() {
entity.setTipoCategoria(null);
entity.validate();
}
@Test(expected=ValidationException.class)
public void testValidateFavorecido() {
entity.setFavorecido(null);
entity.validate();
}
@Test(expected=ValidationException.class)
public void testValidateMoeda() {
entity.setMoeda(null);
entity.validate();
}
@Test
public void testLabel() {
assertEquals("Crédito com Favorecido de teste no valor de R$ 1000.0 - Registrado", entity.getLabel());
}
@Test
public void testTotalPago() {
assertEquals(300.0, entity.getTotalPago(), 0);
}
@Test
public void testTotalAPagar() {
assertEquals(700.0, entity.getTotalAPagar(), 0);
}
@Test(expected=ValidationException.class)
public void testValidateDataPagamento() {
for (PagamentoDividaTerceiro pagamento : entity.getPagamentos()) {
pagamento.setDataPagamento(null);
pagamento.validate();
}
}
}
| Java |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>Linux IRC-Bot: mybotv3.c File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
$(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
</head>
<body>
<div id="top"><!-- do not remove this div! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td style="padding-left: 0.5em;">
<div id="projectname">Linux IRC-Bot
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- Generated by Doxygen 1.7.6.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<div id="navrow1" class="tabs">
<ul class="tablist">
<li><a href="index.html"><span>Main Page</span></a></li>
<li><a href="annotated.html"><span>Classes</span></a></li>
<li class="current"><a href="files.html"><span>Files</span></a></li>
<li>
<div id="MSearchBox" class="MSearchBoxInactive">
<span class="left">
<img id="MSearchSelect" src="search/mag_sel.png"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
alt=""/>
<input type="text" id="MSearchField" value="Search" accesskey="S"
onfocus="searchBox.OnSearchFieldFocus(true)"
onblur="searchBox.OnSearchFieldFocus(false)"
onkeyup="searchBox.OnSearchFieldChange(event)"/>
</span><span class="right">
<a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
</span>
</div>
</li>
</ul>
</div>
<div id="navrow2" class="tabs2">
<ul class="tablist">
<li><a href="files.html"><span>File List</span></a></li>
<li><a href="globals.html"><span>File Members</span></a></li>
</ul>
</div>
</div>
<div class="header">
<div class="summary">
<a href="#define-members">Defines</a> |
<a href="#func-members">Functions</a> |
<a href="#var-members">Variables</a> </div>
<div class="headertitle">
<div class="title">mybotv3.c File Reference</div> </div>
</div><!--header-->
<div class="contents">
<div class="textblock"><code>#include <stdio.h></code><br/>
<code>#include <stdarg.h></code><br/>
<code>#include <string.h></code><br/>
<code>#include <stdlib.h></code><br/>
<code>#include "libircclient.h"</code><br/>
<code>#include "<a class="el" href="callbk_8h_source.html">callbk.h</a>"</code><br/>
<code>#include <dlfcn.h></code><br/>
<code>#include <unistd.h></code><br/>
<code>#include <sys/types.h></code><br/>
<code>#include <sys/stat.h></code><br/>
<code>#include "<a class="el" href="daemon_8h_source.html">daemon.h</a>"</code><br/>
</div><table class="memberdecls">
<tr><td colspan="2"><h2><a name="define-members"></a>
Defines</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="mybotv3_8c.html#aee925031172607ff8d5cf8b68374bd7f">DB_FILE</a>   "test.db"</td></tr>
<tr><td colspan="2"><h2><a name="func-members"></a>
Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="mybotv3_8c.html#a3c04138a5bfe5d72780bb7e82a18e627">main</a> (int argc, char **argv)</td></tr>
<tr><td colspan="2"><h2><a name="var-members"></a>
Variables</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void * </td><td class="memItemRight" valign="bottom"><a class="el" href="mybotv3_8c.html#a0838f0661fcf38642ec573a9cbcd6230">mylib_handle</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">sqlite3 * </td><td class="memItemRight" valign="bottom"><a class="el" href="mybotv3_8c.html#aa57ee5872804735f49943cf9e9500b33">dbhandle</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void(* </td><td class="memItemRight" valign="bottom"><a class="el" href="mybotv3_8c.html#a3b99c68e016b9769eb219f9056635499">create_table</a> )()</td></tr>
</table>
<hr/><h2>Define Documentation</h2>
<a class="anchor" id="aee925031172607ff8d5cf8b68374bd7f"></a><!-- doxytag: member="mybotv3.c::DB_FILE" ref="aee925031172607ff8d5cf8b68374bd7f" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">#define <a class="el" href="mybotv3_8c.html#aee925031172607ff8d5cf8b68374bd7f">DB_FILE</a>   "test.db"</td>
</tr>
</table>
</div>
<div class="memdoc">
</div>
</div>
<hr/><h2>Function Documentation</h2>
<a class="anchor" id="a3c04138a5bfe5d72780bb7e82a18e627"></a><!-- doxytag: member="mybotv3.c::main" ref="a3c04138a5bfe5d72780bb7e82a18e627" args="(int argc, char **argv)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int <a class="el" href="mybotv3_8c.html#a3c04138a5bfe5d72780bb7e82a18e627">main</a> </td>
<td>(</td>
<td class="paramtype">int </td>
<td class="paramname"><em>argc</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">char ** </td>
<td class="paramname"><em>argv</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Main Funktion</p>
<p>Verweist die IRC Events auf die jeweiligen Funktionen. Nimmt die Benutzereingabe entgegen. Startet Endlossschleife.</p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
<table class="params">
<tr><td class="paramname">argv[1]</td><td>irc server </td></tr>
<tr><td class="paramname">argv[2]</td><td>nickname </td></tr>
<tr><td class="paramname">argv[3]</td><td>channel </td></tr>
<tr><td class="paramname">argv[4]</td><td>logging-Plugins </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<hr/><h2>Variable Documentation</h2>
<a class="anchor" id="a3b99c68e016b9769eb219f9056635499"></a><!-- doxytag: member="mybotv3.c::create_table" ref="a3b99c68e016b9769eb219f9056635499" args=")()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void(* <a class="el" href="dbase_8h.html#addc31b4cf7d993be3efbf2704ebac49d">create_table</a>)()</td>
</tr>
</table>
</div>
<div class="memdoc">
</div>
</div>
<a class="anchor" id="aa57ee5872804735f49943cf9e9500b33"></a><!-- doxytag: member="mybotv3.c::dbhandle" ref="aa57ee5872804735f49943cf9e9500b33" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">sqlite3* <a class="el" href="mybotv3_8c.html#aa57ee5872804735f49943cf9e9500b33">dbhandle</a></td>
</tr>
</table>
</div>
<div class="memdoc">
</div>
</div>
<a class="anchor" id="a0838f0661fcf38642ec573a9cbcd6230"></a><!-- doxytag: member="mybotv3.c::mylib_handle" ref="a0838f0661fcf38642ec573a9cbcd6230" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void* <a class="el" href="mybotv3_8c.html#a0838f0661fcf38642ec573a9cbcd6230">mylib_handle</a></td>
</tr>
</table>
</div>
<div class="memdoc">
</div>
</div>
</div><!-- contents -->
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark"> </span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark"> </span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark"> </span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark"> </span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark"> </span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark"> </span>Defines</a></div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
<hr class="footer"/><address class="footer"><small>
Generated on Mon Jun 25 2012 19:38:45 for Linux IRC-Bot by  <a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.7.6.1
</small></address>
</body>
</html>
| Java |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.3.1"/>
<title>Core3: Melee2hLunge1Command Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td style="padding-left: 0.5em;">
<div id="projectname">Core3
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.3.1 -->
<div id="navrow1" class="tabs">
<ul class="tablist">
<li><a href="index.html"><span>Main Page</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li class="current"><a href="annotated.html"><span>Classes</span></a></li>
<li><a href="files.html"><span>Files</span></a></li>
</ul>
</div>
<div id="navrow2" class="tabs2">
<ul class="tablist">
<li><a href="annotated.html"><span>Class List</span></a></li>
<li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li>
<li><a href="functions.html"><span>Class Members</span></a></li>
</ul>
</div>
</div><!-- top -->
<div class="header">
<div class="summary">
<a href="#pub-methods">Public Member Functions</a> |
<a href="class_melee2h_lunge1_command-members.html">List of all members</a> </div>
<div class="headertitle">
<div class="title">Melee2hLunge1Command Class Reference</div> </div>
</div><!--header-->
<div class="contents">
<p><code>#include <<a class="el" href="_melee2h_lunge1_command_8h_source.html">Melee2hLunge1Command.h</a>></code></p>
<div class="dynheader">
Inheritance diagram for Melee2hLunge1Command:</div>
<div class="dyncontent">
<div class="center">
<img src="class_melee2h_lunge1_command.png" usemap="#Melee2hLunge1Command_map" alt=""/>
<map id="Melee2hLunge1Command_map" name="Melee2hLunge1Command_map">
<area href="class_combat_queue_command.html" alt="CombatQueueCommand" shape="rect" coords="178,112,524,136"/>
<area href="classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command.html" alt="server::zone::objects::creature::commands::QueueCommand" shape="rect" coords="178,56,524,80"/>
</map>
</div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:ab24b1ee6aabf75142f01eeac24830aa2"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_melee2h_lunge1_command.html#ab24b1ee6aabf75142f01eeac24830aa2">Melee2hLunge1Command</a> (const String &<a class="el" href="classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command.html#a0d8e1b60e830d42ee881e168d3fd0a62">name</a>, <a class="el" href="classserver_1_1zone_1_1_zone_process_server.html">ZoneProcessServer</a> *<a class="el" href="classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command.html#aab0d7c550040a4e8811e270c57ff90a4">server</a>)</td></tr>
<tr class="separator:ab24b1ee6aabf75142f01eeac24830aa2"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:aa7f703ec51a11e4e580e21a571b65f46"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="class_melee2h_lunge1_command.html#aa7f703ec51a11e4e580e21a571b65f46">doQueueCommand</a> (<a class="el" href="classserver_1_1zone_1_1objects_1_1creature_1_1_creature_object.html">CreatureObject</a> *creature, const uint64 &target, const UnicodeString &arguments)</td></tr>
<tr class="separator:aa7f703ec51a11e4e580e21a571b65f46"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="inherit_header pub_methods_class_combat_queue_command"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_class_combat_queue_command')"><img src="closed.png" alt="-"/> Public Member Functions inherited from <a class="el" href="class_combat_queue_command.html">CombatQueueCommand</a></td></tr>
<tr class="memitem:acecfccfbb6b84b8a3f71cbadf67e40d5 inherit pub_methods_class_combat_queue_command"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_combat_queue_command.html#acecfccfbb6b84b8a3f71cbadf67e40d5">CombatQueueCommand</a> (const String &<a class="el" href="classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command.html#a0d8e1b60e830d42ee881e168d3fd0a62">name</a>, <a class="el" href="classserver_1_1zone_1_1_zone_process_server.html">ZoneProcessServer</a> *<a class="el" href="classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command.html#aab0d7c550040a4e8811e270c57ff90a4">server</a>)</td></tr>
<tr class="separator:acecfccfbb6b84b8a3f71cbadf67e40d5 inherit pub_methods_class_combat_queue_command"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ad6028342db12dfd0ed5bc4b793fe3e5c inherit pub_methods_class_combat_queue_command"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="class_combat_queue_command.html#ad6028342db12dfd0ed5bc4b793fe3e5c">doCombatAction</a> (<a class="el" href="classserver_1_1zone_1_1objects_1_1creature_1_1_creature_object.html">CreatureObject</a> *creature, const uint64 &target, const UnicodeString &arguments="", ManagedReference< <a class="el" href="classserver_1_1zone_1_1objects_1_1tangible_1_1weapon_1_1_weapon_object.html">WeaponObject</a> * > weapon=NULL)</td></tr>
<tr class="separator:ad6028342db12dfd0ed5bc4b793fe3e5c inherit pub_methods_class_combat_queue_command"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a4d02e00013ce91296028de2f50069329 inherit pub_methods_class_combat_queue_command"><td class="memItemLeft" align="right" valign="top">float </td><td class="memItemRight" valign="bottom"><a class="el" href="class_combat_queue_command.html#a4d02e00013ce91296028de2f50069329">getCommandDuration</a> (<a class="el" href="classserver_1_1zone_1_1objects_1_1creature_1_1_creature_object.html">CreatureObject</a> *object, const UnicodeString &arguments)</td></tr>
<tr class="separator:a4d02e00013ce91296028de2f50069329 inherit pub_methods_class_combat_queue_command"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ab01e59f14e10a80d6ab864037e054538 inherit pub_methods_class_combat_queue_command"><td class="memItemLeft" align="right" valign="top">uint32 </td><td class="memItemRight" valign="bottom"><a class="el" href="class_combat_queue_command.html#ab01e59f14e10a80d6ab864037e054538">getDotDuration</a> () const </td></tr>
<tr class="separator:ab01e59f14e10a80d6ab864037e054538 inherit pub_methods_class_combat_queue_command"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a13c713f692d4d3ba456be820cd9d66cf inherit pub_methods_class_combat_queue_command"><td class="memItemLeft" align="right" valign="top">uint64 </td><td class="memItemRight" valign="bottom"><a class="el" href="class_combat_queue_command.html#a13c713f692d4d3ba456be820cd9d66cf">getDotType</a> () const </td></tr>
<tr class="separator:a13c713f692d4d3ba456be820cd9d66cf inherit pub_methods_class_combat_queue_command"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a944c691c15494fe1c2827baada51c174 inherit pub_methods_class_combat_queue_command"><td class="memItemLeft" align="right" valign="top">uint8 </td><td class="memItemRight" valign="bottom"><a class="el" href="class_combat_queue_command.html#a944c691c15494fe1c2827baada51c174">getDotPool</a> () const </td></tr>
<tr class="separator:a944c691c15494fe1c2827baada51c174 inherit pub_methods_class_combat_queue_command"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a8c74a9ae1128d558724cb6fabe8baf1f inherit pub_methods_class_combat_queue_command"><td class="memItemLeft" align="right" valign="top">uint32 </td><td class="memItemRight" valign="bottom"><a class="el" href="class_combat_queue_command.html#a8c74a9ae1128d558724cb6fabe8baf1f">getDotStrength</a> () const </td></tr>
<tr class="separator:a8c74a9ae1128d558724cb6fabe8baf1f inherit pub_methods_class_combat_queue_command"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:adb04e305d321710774a941f6f5d75a5b inherit pub_methods_class_combat_queue_command"><td class="memItemLeft" align="right" valign="top">float </td><td class="memItemRight" valign="bottom"><a class="el" href="class_combat_queue_command.html#adb04e305d321710774a941f6f5d75a5b">getDotPotency</a> () const </td></tr>
<tr class="separator:adb04e305d321710774a941f6f5d75a5b inherit pub_methods_class_combat_queue_command"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ab7e328df957585d5d87a135a54f192e6 inherit pub_methods_class_combat_queue_command"><td class="memItemLeft" align="right" valign="top">float </td><td class="memItemRight" valign="bottom"><a class="el" href="class_combat_queue_command.html#ab7e328df957585d5d87a135a54f192e6">getHealthCostMultiplier</a> () const </td></tr>
<tr class="separator:ab7e328df957585d5d87a135a54f192e6 inherit pub_methods_class_combat_queue_command"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a30781941b6e9bea799df27485964957b inherit pub_methods_class_combat_queue_command"><td class="memItemLeft" align="right" valign="top">float </td><td class="memItemRight" valign="bottom"><a class="el" href="class_combat_queue_command.html#a30781941b6e9bea799df27485964957b">getActionCostMultiplier</a> () const </td></tr>
<tr class="separator:a30781941b6e9bea799df27485964957b inherit pub_methods_class_combat_queue_command"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a6cd0e77a1159bcc834e008f2182f645b inherit pub_methods_class_combat_queue_command"><td class="memItemLeft" align="right" valign="top">float </td><td class="memItemRight" valign="bottom"><a class="el" href="class_combat_queue_command.html#a6cd0e77a1159bcc834e008f2182f645b">getMindCostMultiplier</a> () const </td></tr>
<tr class="separator:a6cd0e77a1159bcc834e008f2182f645b inherit pub_methods_class_combat_queue_command"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a740e5cf5bcfd184988b5230d164c32ca inherit pub_methods_class_combat_queue_command"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="class_combat_queue_command.html#a740e5cf5bcfd184988b5230d164c32ca">getRange</a> () const </td></tr>
<tr class="separator:a740e5cf5bcfd184988b5230d164c32ca inherit pub_methods_class_combat_queue_command"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a32200dd89e456f459d6cc1cd7c62d8d7 inherit pub_methods_class_combat_queue_command"><td class="memItemLeft" align="right" valign="top">String </td><td class="memItemRight" valign="bottom"><a class="el" href="class_combat_queue_command.html#a32200dd89e456f459d6cc1cd7c62d8d7">getAccuracySkillMod</a> () const </td></tr>
<tr class="separator:a32200dd89e456f459d6cc1cd7c62d8d7 inherit pub_methods_class_combat_queue_command"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a4f07aa43c56a48d7defb93952687c96a inherit pub_methods_class_combat_queue_command"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="class_combat_queue_command.html#a4f07aa43c56a48d7defb93952687c96a">getBlindChance</a> () const </td></tr>
<tr class="separator:a4f07aa43c56a48d7defb93952687c96a inherit pub_methods_class_combat_queue_command"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a10bf1cd77bead7f26db42c394cfbb07a inherit pub_methods_class_combat_queue_command"><td class="memItemLeft" align="right" valign="top">float </td><td class="memItemRight" valign="bottom"><a class="el" href="class_combat_queue_command.html#a10bf1cd77bead7f26db42c394cfbb07a">getDamageMultiplier</a> () const </td></tr>
<tr class="separator:a10bf1cd77bead7f26db42c394cfbb07a inherit pub_methods_class_combat_queue_command"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:af488f1ef0216b9984174a63ca2436700 inherit pub_methods_class_combat_queue_command"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="class_combat_queue_command.html#af488f1ef0216b9984174a63ca2436700">getAccuracyBonus</a> () const </td></tr>
<tr class="separator:af488f1ef0216b9984174a63ca2436700 inherit pub_methods_class_combat_queue_command"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a51734a65ba9b8e97a1d080ae635e3f91 inherit pub_methods_class_combat_queue_command"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="class_combat_queue_command.html#a51734a65ba9b8e97a1d080ae635e3f91">getDizzyChance</a> () const </td></tr>
<tr class="separator:a51734a65ba9b8e97a1d080ae635e3f91 inherit pub_methods_class_combat_queue_command"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a68aabaad090901af262bbc7991189b50 inherit pub_methods_class_combat_queue_command"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="class_combat_queue_command.html#a68aabaad090901af262bbc7991189b50">getIntimidateChance</a> () const </td></tr>
<tr class="separator:a68aabaad090901af262bbc7991189b50 inherit pub_methods_class_combat_queue_command"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a63f93024901e84300181a9fe1dd2400b inherit pub_methods_class_combat_queue_command"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="class_combat_queue_command.html#a63f93024901e84300181a9fe1dd2400b">getKnockdownChance</a> () const </td></tr>
<tr class="separator:a63f93024901e84300181a9fe1dd2400b inherit pub_methods_class_combat_queue_command"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a15e83fe46377c4adf517415ea6553cf4 inherit pub_methods_class_combat_queue_command"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="class_combat_queue_command.html#a15e83fe46377c4adf517415ea6553cf4">getPostureDownChance</a> () const </td></tr>
<tr class="separator:a15e83fe46377c4adf517415ea6553cf4 inherit pub_methods_class_combat_queue_command"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a95e1b87fe34f75a0859a6944d3e594f7 inherit pub_methods_class_combat_queue_command"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="class_combat_queue_command.html#a95e1b87fe34f75a0859a6944d3e594f7">getPostureUpChance</a> () const </td></tr>
<tr class="separator:a95e1b87fe34f75a0859a6944d3e594f7 inherit pub_methods_class_combat_queue_command"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a8317df999ba4ee5a32ef5972c1ea3e49 inherit pub_methods_class_combat_queue_command"><td class="memItemLeft" align="right" valign="top">float </td><td class="memItemRight" valign="bottom"><a class="el" href="class_combat_queue_command.html#a8317df999ba4ee5a32ef5972c1ea3e49">getSpeedMultiplier</a> () const </td></tr>
<tr class="separator:a8317df999ba4ee5a32ef5972c1ea3e49 inherit pub_methods_class_combat_queue_command"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:af20632cbf8546613578fcebceeb07540 inherit pub_methods_class_combat_queue_command"><td class="memItemLeft" align="right" valign="top">float </td><td class="memItemRight" valign="bottom"><a class="el" href="class_combat_queue_command.html#af20632cbf8546613578fcebceeb07540">getSpeed</a> () const </td></tr>
<tr class="separator:af20632cbf8546613578fcebceeb07540 inherit pub_methods_class_combat_queue_command"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a0140ece6a43b8d0a91952db471dbbe61 inherit pub_methods_class_combat_queue_command"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="class_combat_queue_command.html#a0140ece6a43b8d0a91952db471dbbe61">getStunChance</a> () const </td></tr>
<tr class="separator:a0140ece6a43b8d0a91952db471dbbe61 inherit pub_methods_class_combat_queue_command"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a6ef535a6282fa8510b5253ab55bd2c1f inherit pub_methods_class_combat_queue_command"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="class_combat_queue_command.html#a6ef535a6282fa8510b5253ab55bd2c1f">isAreaAction</a> () const </td></tr>
<tr class="separator:a6ef535a6282fa8510b5253ab55bd2c1f inherit pub_methods_class_combat_queue_command"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:afa5496c400c3dcc69388326684258d40 inherit pub_methods_class_combat_queue_command"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="class_combat_queue_command.html#afa5496c400c3dcc69388326684258d40">isConeAction</a> () const </td></tr>
<tr class="separator:afa5496c400c3dcc69388326684258d40 inherit pub_methods_class_combat_queue_command"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a73b3af59d6587e8070e503deff86db5e inherit pub_methods_class_combat_queue_command"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="class_combat_queue_command.html#a73b3af59d6587e8070e503deff86db5e">isDotDamageOfHit</a> () const </td></tr>
<tr class="separator:a73b3af59d6587e8070e503deff86db5e inherit pub_methods_class_combat_queue_command"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ad6feeaa1266e65dc15a4743c40977049 inherit pub_methods_class_combat_queue_command"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="class_combat_queue_command.html#ad6feeaa1266e65dc15a4743c40977049">getConeAngle</a> () const </td></tr>
<tr class="separator:ad6feeaa1266e65dc15a4743c40977049 inherit pub_methods_class_combat_queue_command"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a5b6ba4d1dc286e5f4cac4ff62c42d692 inherit pub_methods_class_combat_queue_command"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="class_combat_queue_command.html#a5b6ba4d1dc286e5f4cac4ff62c42d692">getAreaRange</a> () const </td></tr>
<tr class="separator:a5b6ba4d1dc286e5f4cac4ff62c42d692 inherit pub_methods_class_combat_queue_command"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a8532824cdd8a8eb7ae2e5db98be49959 inherit pub_methods_class_combat_queue_command"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="class_combat_queue_command.html#a8532824cdd8a8eb7ae2e5db98be49959">getDurationStateTime</a> () const </td></tr>
<tr class="separator:a8532824cdd8a8eb7ae2e5db98be49959 inherit pub_methods_class_combat_queue_command"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a365025199b34c773a088922505fc5ac7 inherit pub_methods_class_combat_queue_command"><td class="memItemLeft" align="right" valign="top">float </td><td class="memItemRight" valign="bottom"><a class="el" href="class_combat_queue_command.html#a365025199b34c773a088922505fc5ac7">getForceCostMultiplier</a> () const </td></tr>
<tr class="separator:a365025199b34c773a088922505fc5ac7 inherit pub_methods_class_combat_queue_command"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:acb71e34f634cb924b29cc76f08bb15b1 inherit pub_methods_class_combat_queue_command"><td class="memItemLeft" align="right" valign="top">float </td><td class="memItemRight" valign="bottom"><a class="el" href="class_combat_queue_command.html#acb71e34f634cb924b29cc76f08bb15b1">getForceCost</a> () const </td></tr>
<tr class="separator:acb71e34f634cb924b29cc76f08bb15b1 inherit pub_methods_class_combat_queue_command"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a183f6bef5abfd43f0a633c1619c871fb inherit pub_methods_class_combat_queue_command"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="class_combat_queue_command.html#a183f6bef5abfd43f0a633c1619c871fb">getNextAttackDelayChance</a> () const </td></tr>
<tr class="separator:a183f6bef5abfd43f0a633c1619c871fb inherit pub_methods_class_combat_queue_command"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a80d93dc11a17a0e7ed99586039d79599 inherit pub_methods_class_combat_queue_command"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_combat_queue_command.html#a80d93dc11a17a0e7ed99586039d79599">setBlindStateChance</a> (int <a class="el" href="class_combat_queue_command.html#a0a634d994fe3d1b8436a0e11cc9c0ab1">blindStateChance</a>)</td></tr>
<tr class="separator:a80d93dc11a17a0e7ed99586039d79599 inherit pub_methods_class_combat_queue_command"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a96069eb0d6e692062fc3b6d6756cfeda inherit pub_methods_class_combat_queue_command"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_combat_queue_command.html#a96069eb0d6e692062fc3b6d6756cfeda">setDamageMultiplier</a> (float <a class="el" href="class_combat_queue_command.html#a0185bde574f3f7b47e54957a706c7c59">damageMultiplier</a>)</td></tr>
<tr class="separator:a96069eb0d6e692062fc3b6d6756cfeda inherit pub_methods_class_combat_queue_command"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a0cd7f00e15e54fbff9ce37bf28f0ecd6 inherit pub_methods_class_combat_queue_command"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_combat_queue_command.html#a0cd7f00e15e54fbff9ce37bf28f0ecd6">setAccuracyBonus</a> (int <a class="el" href="class_combat_queue_command.html#a250b9f30d705ff9db8763145cd3c64c1">accuracyBonus</a>)</td></tr>
<tr class="separator:a0cd7f00e15e54fbff9ce37bf28f0ecd6 inherit pub_methods_class_combat_queue_command"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a603012079ace1eb56713c7f55e58a5da inherit pub_methods_class_combat_queue_command"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_combat_queue_command.html#a603012079ace1eb56713c7f55e58a5da">setHealthCostMultiplier</a> (float f)</td></tr>
<tr class="separator:a603012079ace1eb56713c7f55e58a5da inherit pub_methods_class_combat_queue_command"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:aec525d3d1c89ecb0ed51b326ee764f77 inherit pub_methods_class_combat_queue_command"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_combat_queue_command.html#aec525d3d1c89ecb0ed51b326ee764f77">setActionCostMultiplier</a> (float f)</td></tr>
<tr class="separator:aec525d3d1c89ecb0ed51b326ee764f77 inherit pub_methods_class_combat_queue_command"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:aee667720cd3092eff9204d262360aa2c inherit pub_methods_class_combat_queue_command"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_combat_queue_command.html#aee667720cd3092eff9204d262360aa2c">setMindCostMultiplier</a> (float f)</td></tr>
<tr class="separator:aee667720cd3092eff9204d262360aa2c inherit pub_methods_class_combat_queue_command"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a7cbd19461c331f007db3254329ed5e52 inherit pub_methods_class_combat_queue_command"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_combat_queue_command.html#a7cbd19461c331f007db3254329ed5e52">setForceCostMultiplier</a> (float f)</td></tr>
<tr class="separator:a7cbd19461c331f007db3254329ed5e52 inherit pub_methods_class_combat_queue_command"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a32ce04675697f6c601d97be57e1e39f1 inherit pub_methods_class_combat_queue_command"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_combat_queue_command.html#a32ce04675697f6c601d97be57e1e39f1">setForceCost</a> (float f)</td></tr>
<tr class="separator:a32ce04675697f6c601d97be57e1e39f1 inherit pub_methods_class_combat_queue_command"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a2813de9ff98e9acdc30af98bce81d980 inherit pub_methods_class_combat_queue_command"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_combat_queue_command.html#a2813de9ff98e9acdc30af98bce81d980">setDizzyStateChance</a> (int <a class="el" href="class_combat_queue_command.html#a4ec4557da87f7f2f2c89635c0b4b2441">dizzyStateChance</a>)</td></tr>
<tr class="separator:a2813de9ff98e9acdc30af98bce81d980 inherit pub_methods_class_combat_queue_command"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:af99e322b2663acf92dc64876675b63f3 inherit pub_methods_class_combat_queue_command"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_combat_queue_command.html#af99e322b2663acf92dc64876675b63f3">setIntimidateStateChance</a> (int <a class="el" href="class_combat_queue_command.html#a0cc9682be2f14d1386fcaaa5c892d5f9">intimidateStateChance</a>)</td></tr>
<tr class="separator:af99e322b2663acf92dc64876675b63f3 inherit pub_methods_class_combat_queue_command"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a08ea3ed31c57393ac89bcc687b671eb4 inherit pub_methods_class_combat_queue_command"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_combat_queue_command.html#a08ea3ed31c57393ac89bcc687b671eb4">setKnockdownStateChance</a> (int <a class="el" href="class_combat_queue_command.html#a7a3d3d3f2cbc8284b46cf02d57804516">knockdownStateChance</a>)</td></tr>
<tr class="separator:a08ea3ed31c57393ac89bcc687b671eb4 inherit pub_methods_class_combat_queue_command"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a02527b44fa6a77be84069b0d54b2af10 inherit pub_methods_class_combat_queue_command"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_combat_queue_command.html#a02527b44fa6a77be84069b0d54b2af10">setPostureDownStateChance</a> (int <a class="el" href="class_combat_queue_command.html#a455a3511812b55e431af38ad4d746309">postureDownStateChance</a>)</td></tr>
<tr class="separator:a02527b44fa6a77be84069b0d54b2af10 inherit pub_methods_class_combat_queue_command"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a252c7a7f68596e66ee0536349af87905 inherit pub_methods_class_combat_queue_command"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_combat_queue_command.html#a252c7a7f68596e66ee0536349af87905">setPostureUpStateChance</a> (int <a class="el" href="class_combat_queue_command.html#a82e12701eaf97c3aecb75dfd727f3d00">postureUpStateChance</a>)</td></tr>
<tr class="separator:a252c7a7f68596e66ee0536349af87905 inherit pub_methods_class_combat_queue_command"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a7fac530a0ce1817aea19b7f895799b10 inherit pub_methods_class_combat_queue_command"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_combat_queue_command.html#a7fac530a0ce1817aea19b7f895799b10">setNextAttackDelayChance</a> (int i)</td></tr>
<tr class="separator:a7fac530a0ce1817aea19b7f895799b10 inherit pub_methods_class_combat_queue_command"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a3f13ca3e7eb630166fec6f7d238b13c2 inherit pub_methods_class_combat_queue_command"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_combat_queue_command.html#a3f13ca3e7eb630166fec6f7d238b13c2">setDurationStateTime</a> (int i)</td></tr>
<tr class="separator:a3f13ca3e7eb630166fec6f7d238b13c2 inherit pub_methods_class_combat_queue_command"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ac6b8337049ce40a7f08a0b46ea90ccb7 inherit pub_methods_class_combat_queue_command"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_combat_queue_command.html#ac6b8337049ce40a7f08a0b46ea90ccb7">setDotDuration</a> (uint32 i)</td></tr>
<tr class="separator:ac6b8337049ce40a7f08a0b46ea90ccb7 inherit pub_methods_class_combat_queue_command"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ac24b88c7293655f1807b237ec93aacbd inherit pub_methods_class_combat_queue_command"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_combat_queue_command.html#ac24b88c7293655f1807b237ec93aacbd">setDotType</a> (uint64 l)</td></tr>
<tr class="separator:ac24b88c7293655f1807b237ec93aacbd inherit pub_methods_class_combat_queue_command"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a1a65f02b1986deb2d3b1798c37363562 inherit pub_methods_class_combat_queue_command"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_combat_queue_command.html#a1a65f02b1986deb2d3b1798c37363562">setDotPool</a> (uint8 c)</td></tr>
<tr class="separator:a1a65f02b1986deb2d3b1798c37363562 inherit pub_methods_class_combat_queue_command"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ac904a576ffb39da4d2cdd3a5bc6f5a02 inherit pub_methods_class_combat_queue_command"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_combat_queue_command.html#ac904a576ffb39da4d2cdd3a5bc6f5a02">setDotStrength</a> (uint32 i)</td></tr>
<tr class="separator:ac904a576ffb39da4d2cdd3a5bc6f5a02 inherit pub_methods_class_combat_queue_command"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a96f83535da0bc2993f7b7e79190be039 inherit pub_methods_class_combat_queue_command"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_combat_queue_command.html#a96f83535da0bc2993f7b7e79190be039">setDotPotency</a> (float f)</td></tr>
<tr class="separator:a96f83535da0bc2993f7b7e79190be039 inherit pub_methods_class_combat_queue_command"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:abf8a2b6189d53fe40686ca461e3b2c3f inherit pub_methods_class_combat_queue_command"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_combat_queue_command.html#abf8a2b6189d53fe40686ca461e3b2c3f">setConeAngle</a> (int i)</td></tr>
<tr class="separator:abf8a2b6189d53fe40686ca461e3b2c3f inherit pub_methods_class_combat_queue_command"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ad881e2f1bbb882fc0a16ed92ae37dfb8 inherit pub_methods_class_combat_queue_command"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_combat_queue_command.html#ad881e2f1bbb882fc0a16ed92ae37dfb8">setDotDamageOfHit</a> (bool b)</td></tr>
<tr class="separator:ad881e2f1bbb882fc0a16ed92ae37dfb8 inherit pub_methods_class_combat_queue_command"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a84593385278db7564c0e01ac80cdcd3c inherit pub_methods_class_combat_queue_command"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_combat_queue_command.html#a84593385278db7564c0e01ac80cdcd3c">setAreaAction</a> (bool b)</td></tr>
<tr class="separator:a84593385278db7564c0e01ac80cdcd3c inherit pub_methods_class_combat_queue_command"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a994173fd6b25d46cc2462f18e99254a2 inherit pub_methods_class_combat_queue_command"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_combat_queue_command.html#a994173fd6b25d46cc2462f18e99254a2">setConeAction</a> (bool b)</td></tr>
<tr class="separator:a994173fd6b25d46cc2462f18e99254a2 inherit pub_methods_class_combat_queue_command"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a6249c26d0f67995a550ecfbc89de6a01 inherit pub_methods_class_combat_queue_command"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_combat_queue_command.html#a6249c26d0f67995a550ecfbc89de6a01">setAreaRange</a> (int i)</td></tr>
<tr class="separator:a6249c26d0f67995a550ecfbc89de6a01 inherit pub_methods_class_combat_queue_command"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a6a00277a7ab6735cb5484bbb8e760949 inherit pub_methods_class_combat_queue_command"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_combat_queue_command.html#a6a00277a7ab6735cb5484bbb8e760949">setEffectString</a> (String s)</td></tr>
<tr class="separator:a6a00277a7ab6735cb5484bbb8e760949 inherit pub_methods_class_combat_queue_command"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a3adab009947ce273525938e85bbb09a5 inherit pub_methods_class_combat_queue_command"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_combat_queue_command.html#a3adab009947ce273525938e85bbb09a5">setSpeedMultiplier</a> (float <a class="el" href="class_combat_queue_command.html#a47a1f6e40b1a3d091ea05e790c668ec0">speedMultiplier</a>)</td></tr>
<tr class="separator:a3adab009947ce273525938e85bbb09a5 inherit pub_methods_class_combat_queue_command"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a6b854326f51f8c3af577422e2cb45365 inherit pub_methods_class_combat_queue_command"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_combat_queue_command.html#a6b854326f51f8c3af577422e2cb45365">setSpeed</a> (float speedd)</td></tr>
<tr class="separator:a6b854326f51f8c3af577422e2cb45365 inherit pub_methods_class_combat_queue_command"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a08a193b328b03a1a3d510b95f40b538c inherit pub_methods_class_combat_queue_command"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_combat_queue_command.html#a08a193b328b03a1a3d510b95f40b538c">setStunStateChance</a> (int <a class="el" href="class_combat_queue_command.html#ab509b0514e0acbba882abf8bab329b78">stunStateChance</a>)</td></tr>
<tr class="separator:a08a193b328b03a1a3d510b95f40b538c inherit pub_methods_class_combat_queue_command"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:af375638948e00cbc79b3a5e96eb931e0 inherit pub_methods_class_combat_queue_command"><td class="memItemLeft" align="right" valign="top">uint32 </td><td class="memItemRight" valign="bottom"><a class="el" href="class_combat_queue_command.html#af375638948e00cbc79b3a5e96eb931e0">getAnimationCRC</a> () const </td></tr>
<tr class="separator:af375638948e00cbc79b3a5e96eb931e0 inherit pub_methods_class_combat_queue_command"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a2b1c4b59c5610c3a254c65c38f5356a5 inherit pub_methods_class_combat_queue_command"><td class="memItemLeft" align="right" valign="top">String </td><td class="memItemRight" valign="bottom"><a class="el" href="class_combat_queue_command.html#a2b1c4b59c5610c3a254c65c38f5356a5">getEffectString</a> () const </td></tr>
<tr class="separator:a2b1c4b59c5610c3a254c65c38f5356a5 inherit pub_methods_class_combat_queue_command"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:adb423dfd634dbdc9b4ffc66782ca30fe inherit pub_methods_class_combat_queue_command"><td class="memItemLeft" align="right" valign="top">String </td><td class="memItemRight" valign="bottom"><a class="el" href="class_combat_queue_command.html#adb423dfd634dbdc9b4ffc66782ca30fe">getCombatSpam</a> () const </td></tr>
<tr class="separator:adb423dfd634dbdc9b4ffc66782ca30fe inherit pub_methods_class_combat_queue_command"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a9e019db89d5d353d33cd0d27e7dc04b0 inherit pub_methods_class_combat_queue_command"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="class_combat_queue_command.html#a9e019db89d5d353d33cd0d27e7dc04b0">getPoolsToDamage</a> () const </td></tr>
<tr class="separator:a9e019db89d5d353d33cd0d27e7dc04b0 inherit pub_methods_class_combat_queue_command"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ab6b54036a10ff20c1bfcf1ed0f5c41f1 inherit pub_methods_class_combat_queue_command"><td class="memItemLeft" align="right" valign="top">VectorMap< uint64, <a class="el" href="class_state_effect.html">StateEffect</a> > * </td><td class="memItemRight" valign="bottom"><a class="el" href="class_combat_queue_command.html#ab6b54036a10ff20c1bfcf1ed0f5c41f1">getStateEffects</a> ()</td></tr>
<tr class="separator:ab6b54036a10ff20c1bfcf1ed0f5c41f1 inherit pub_methods_class_combat_queue_command"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a8fe4c9d4d1cfe2efe86da0027a65ccfe inherit pub_methods_class_combat_queue_command"><td class="memItemLeft" align="right" valign="top">VectorMap< uint64, <a class="el" href="class_dot_effect.html">DotEffect</a> > * </td><td class="memItemRight" valign="bottom"><a class="el" href="class_combat_queue_command.html#a8fe4c9d4d1cfe2efe86da0027a65ccfe">getDotEffects</a> ()</td></tr>
<tr class="separator:a8fe4c9d4d1cfe2efe86da0027a65ccfe inherit pub_methods_class_combat_queue_command"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a139d71703b06fdf6bdc807da10a0969e inherit pub_methods_class_combat_queue_command"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_combat_queue_command.html#a139d71703b06fdf6bdc807da10a0969e">setAnimationCRC</a> (uint32 <a class="el" href="class_combat_queue_command.html#abe8137dd3b82e8caee52b84263c90660">animationCRC</a>)</td></tr>
<tr class="separator:a139d71703b06fdf6bdc807da10a0969e inherit pub_methods_class_combat_queue_command"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:aa13b67fe6f530913d0ea0c0f6ddbe03d inherit pub_methods_class_combat_queue_command"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_combat_queue_command.html#aa13b67fe6f530913d0ea0c0f6ddbe03d">setCombatSpam</a> (String <a class="el" href="class_combat_queue_command.html#a774f066eaafb8019d58b243b4d14688d">combatSpam</a>)</td></tr>
<tr class="separator:aa13b67fe6f530913d0ea0c0f6ddbe03d inherit pub_methods_class_combat_queue_command"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a3ca36540f218bae77d8a2df95eabc41e inherit pub_methods_class_combat_queue_command"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_combat_queue_command.html#a3ca36540f218bae77d8a2df95eabc41e">setPoolsToDamage</a> (int <a class="el" href="class_combat_queue_command.html#a77355f2bed612a5304644cc0df4bb929">poolsToDamage</a>)</td></tr>
<tr class="separator:a3ca36540f218bae77d8a2df95eabc41e inherit pub_methods_class_combat_queue_command"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a7dcd5267cd33e17ac6182595ff904eba inherit pub_methods_class_combat_queue_command"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_combat_queue_command.html#a7dcd5267cd33e17ac6182595ff904eba">setStateEffects</a> (VectorMap< uint64, <a class="el" href="class_state_effect.html">StateEffect</a> > <a class="el" href="class_combat_queue_command.html#ab0d1f4c7584c20ffba9dfd47cd230763">stateEffects</a>)</td></tr>
<tr class="separator:a7dcd5267cd33e17ac6182595ff904eba inherit pub_methods_class_combat_queue_command"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:af63b5030420b48d98a32de247b0f55dc inherit pub_methods_class_combat_queue_command"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_combat_queue_command.html#af63b5030420b48d98a32de247b0f55dc">addStateEffect</a> (<a class="el" href="class_state_effect.html">StateEffect</a> stateEffect)</td></tr>
<tr class="separator:af63b5030420b48d98a32de247b0f55dc inherit pub_methods_class_combat_queue_command"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a2a5232d2ce31c2a7283ddecc56cba9e0 inherit pub_methods_class_combat_queue_command"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_state_effect.html">StateEffect</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_combat_queue_command.html#a2a5232d2ce31c2a7283ddecc56cba9e0">getStateEffect</a> (uint64 type)</td></tr>
<tr class="separator:a2a5232d2ce31c2a7283ddecc56cba9e0 inherit pub_methods_class_combat_queue_command"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a76ba9bb782dca9e04028e09ce740979a inherit pub_methods_class_combat_queue_command"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_combat_queue_command.html#a76ba9bb782dca9e04028e09ce740979a">setDotEffects</a> (VectorMap< uint64, <a class="el" href="class_dot_effect.html">DotEffect</a> > <a class="el" href="class_combat_queue_command.html#a4cc595dc8dbb9abf5c77b3b12ea007af">dotEffects</a>)</td></tr>
<tr class="separator:a76ba9bb782dca9e04028e09ce740979a inherit pub_methods_class_combat_queue_command"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a2ea917d7d865b4548b9ec7595bc89433 inherit pub_methods_class_combat_queue_command"><td class="memItemLeft" align="right" valign="top">float </td><td class="memItemRight" valign="bottom"><a class="el" href="class_combat_queue_command.html#a2ea917d7d865b4548b9ec7595bc89433">getDamage</a> () const </td></tr>
<tr class="separator:a2ea917d7d865b4548b9ec7595bc89433 inherit pub_methods_class_combat_queue_command"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ade8869123366143c5620446c44d3b7ff inherit pub_methods_class_combat_queue_command"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_combat_queue_command.html#ade8869123366143c5620446c44d3b7ff">setDamage</a> (float dm)</td></tr>
<tr class="separator:ade8869123366143c5620446c44d3b7ff inherit pub_methods_class_combat_queue_command"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:aff3d5c708f2d342169ad3466391c3910 inherit pub_methods_class_combat_queue_command"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_combat_queue_command.html#aff3d5c708f2d342169ad3466391c3910">addDotEffect</a> (<a class="el" href="class_dot_effect.html">DotEffect</a> dotEffect)</td></tr>
<tr class="separator:aff3d5c708f2d342169ad3466391c3910 inherit pub_methods_class_combat_queue_command"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a67de6315073b542771051a30e8b28ad4 inherit pub_methods_class_combat_queue_command"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_dot_effect.html">DotEffect</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_combat_queue_command.html#a67de6315073b542771051a30e8b28ad4">getDotEffect</a> (uint64 type)</td></tr>
<tr class="separator:a67de6315073b542771051a30e8b28ad4 inherit pub_methods_class_combat_queue_command"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:af539aea8b9740a71d90086763e1b2c0d inherit pub_methods_class_combat_queue_command"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_combat_queue_command.html#af539aea8b9740a71d90086763e1b2c0d">setRange</a> (int i)</td></tr>
<tr class="separator:af539aea8b9740a71d90086763e1b2c0d inherit pub_methods_class_combat_queue_command"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a8c5c0904ce4525d5b1534b4a51e06fdb inherit pub_methods_class_combat_queue_command"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_combat_queue_command.html#a8c5c0904ce4525d5b1534b4a51e06fdb">setAccuracySkillMod</a> (String acc)</td></tr>
<tr class="separator:a8c5c0904ce4525d5b1534b4a51e06fdb inherit pub_methods_class_combat_queue_command"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a22498e69e3651f0fbbaa37e8e8daab44 inherit pub_methods_class_combat_queue_command"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="class_combat_queue_command.html#a22498e69e3651f0fbbaa37e8e8daab44">hasCombatSpam</a> ()</td></tr>
<tr class="separator:a22498e69e3651f0fbbaa37e8e8daab44 inherit pub_methods_class_combat_queue_command"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a0e8d189cd1c1290025eeabfcbcb3694f inherit pub_methods_class_combat_queue_command"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="class_combat_queue_command.html#a0e8d189cd1c1290025eeabfcbcb3694f">isCombatCommand</a> ()</td></tr>
<tr class="separator:a0e8d189cd1c1290025eeabfcbcb3694f inherit pub_methods_class_combat_queue_command"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:aadafbdef80f38eee66ab0d97d4338848 inherit pub_methods_class_combat_queue_command"><td class="memItemLeft" align="right" valign="top">virtual bool </td><td class="memItemRight" valign="bottom"><a class="el" href="class_combat_queue_command.html#aadafbdef80f38eee66ab0d97d4338848">isSquadLeaderCommand</a> ()</td></tr>
<tr class="separator:aadafbdef80f38eee66ab0d97d4338848 inherit pub_methods_class_combat_queue_command"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a34a08db9d8525d4ee1fd0389db57b0b7 inherit pub_methods_class_combat_queue_command"><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_combat_queue_command.html#a34a08db9d8525d4ee1fd0389db57b0b7">applyEffect</a> (<a class="el" href="classserver_1_1zone_1_1objects_1_1creature_1_1_creature_object.html">CreatureObject</a> *creature, uint8 effectType, uint32 mod)</td></tr>
<tr class="separator:a34a08db9d8525d4ee1fd0389db57b0b7 inherit pub_methods_class_combat_queue_command"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:afd9e91bfd64d696454714ad772d6ee41 inherit pub_methods_class_combat_queue_command"><td class="memItemLeft" align="right" valign="top">uint8 </td><td class="memItemRight" valign="bottom"><a class="el" href="class_combat_queue_command.html#afd9e91bfd64d696454714ad772d6ee41">getAttackType</a> () const </td></tr>
<tr class="separator:afd9e91bfd64d696454714ad772d6ee41 inherit pub_methods_class_combat_queue_command"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:abfb9fdc1d857d13dd9a7345c01f8c7a1 inherit pub_methods_class_combat_queue_command"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_combat_queue_command.html#abfb9fdc1d857d13dd9a7345c01f8c7a1">setAttackType</a> (uint8 <a class="el" href="class_combat_queue_command.html#a2a6ca76131e03a59ec15db78afbf2c9b">attackType</a>)</td></tr>
<tr class="separator:abfb9fdc1d857d13dd9a7345c01f8c7a1 inherit pub_methods_class_combat_queue_command"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a14bece1eae9d2b55280c461ebebd0744 inherit pub_methods_class_combat_queue_command"><td class="memItemLeft" align="right" valign="top">uint8 </td><td class="memItemRight" valign="bottom"><a class="el" href="class_combat_queue_command.html#a14bece1eae9d2b55280c461ebebd0744">getTrails</a> () const </td></tr>
<tr class="separator:a14bece1eae9d2b55280c461ebebd0744 inherit pub_methods_class_combat_queue_command"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:aadc17bf73732ba01c724be6b24a2049a inherit pub_methods_class_combat_queue_command"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_combat_queue_command.html#aadc17bf73732ba01c724be6b24a2049a">setTrails</a> (uint8 <a class="el" href="class_combat_queue_command.html#a7039e32c1bd23b9a3b5ae06fb0c0002b">trails</a>)</td></tr>
<tr class="separator:aadc17bf73732ba01c724be6b24a2049a inherit pub_methods_class_combat_queue_command"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="inherit_header pub_methods_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command')"><img src="closed.png" alt="-"/> Public Member Functions inherited from <a class="el" href="classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command.html">server::zone::objects::creature::commands::QueueCommand</a></td></tr>
<tr class="memitem:aee543b3c03c6499283504b04241e46a2 inherit pub_methods_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command.html#aee543b3c03c6499283504b04241e46a2">QueueCommand</a> (const String &skillname, <a class="el" href="classserver_1_1zone_1_1_zone_process_server.html">ZoneProcessServer</a> *serv)</td></tr>
<tr class="separator:aee543b3c03c6499283504b04241e46a2 inherit pub_methods_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:aa418bcad148c8c133cf29f4cba994cc1 inherit pub_methods_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command"><td class="memItemLeft" align="right" valign="top">virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command.html#aa418bcad148c8c133cf29f4cba994cc1">~QueueCommand</a> ()</td></tr>
<tr class="separator:aa418bcad148c8c133cf29f4cba994cc1 inherit pub_methods_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a1045fbe728bfd6c600e2e214ebb21406 inherit pub_methods_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command.html#a1045fbe728bfd6c600e2e214ebb21406">checkInvalidLocomotions</a> (<a class="el" href="classserver_1_1zone_1_1objects_1_1creature_1_1_creature_object.html">CreatureObject</a> *creature)</td></tr>
<tr class="separator:a1045fbe728bfd6c600e2e214ebb21406 inherit pub_methods_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:aaccbac3683d65967b188a2cb02e27266 inherit pub_methods_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command.html#aaccbac3683d65967b188a2cb02e27266">onStateFail</a> (<a class="el" href="classserver_1_1zone_1_1objects_1_1creature_1_1_creature_object.html">CreatureObject</a> *creature, uint32 actioncntr)</td></tr>
<tr class="separator:aaccbac3683d65967b188a2cb02e27266 inherit pub_methods_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a50137363429e07e6916e374e7b09348c inherit pub_methods_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command.html#a50137363429e07e6916e374e7b09348c">onLocomotionFail</a> (<a class="el" href="classserver_1_1zone_1_1objects_1_1creature_1_1_creature_object.html">CreatureObject</a> *creature, uint32 actioncntr)</td></tr>
<tr class="separator:a50137363429e07e6916e374e7b09348c inherit pub_methods_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ae0625a0b2ec52ec71fa1aa388bbd3bb1 inherit pub_methods_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command"><td class="memItemLeft" align="right" valign="top">virtual String </td><td class="memItemRight" valign="bottom"><a class="el" href="classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command.html#ae0625a0b2ec52ec71fa1aa388bbd3bb1">getSyntax</a> () const </td></tr>
<tr class="separator:ae0625a0b2ec52ec71fa1aa388bbd3bb1 inherit pub_methods_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ab743f9da4076acd498cac33bd7d0d87f inherit pub_methods_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command"><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command.html#ab743f9da4076acd498cac33bd7d0d87f">onFail</a> (uint32 actioncntr, <a class="el" href="classserver_1_1zone_1_1objects_1_1creature_1_1_creature_object.html">CreatureObject</a> *creature, uint32 errorNumber)</td></tr>
<tr class="separator:ab743f9da4076acd498cac33bd7d0d87f inherit pub_methods_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ab46aed30eadb11cc83b5dabbe8c77ebb inherit pub_methods_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command"><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command.html#ab46aed30eadb11cc83b5dabbe8c77ebb">onComplete</a> (uint32 actioncntr, <a class="el" href="classserver_1_1zone_1_1objects_1_1creature_1_1_creature_object.html">CreatureObject</a> *creature, float commandDuration)</td></tr>
<tr class="separator:ab46aed30eadb11cc83b5dabbe8c77ebb inherit pub_methods_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a77282bd031eae09182e700ad4e2748ed inherit pub_methods_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command.html#a77282bd031eae09182e700ad4e2748ed">setInvalidLocomotions</a> (const String &lStr)</td></tr>
<tr class="separator:a77282bd031eae09182e700ad4e2748ed inherit pub_methods_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:aeba5f30530fcb890302b3bb8029197f6 inherit pub_methods_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command.html#aeba5f30530fcb890302b3bb8029197f6">addInvalidLocomotion</a> (int l)</td></tr>
<tr class="separator:aeba5f30530fcb890302b3bb8029197f6 inherit pub_methods_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a4f92f6905053c95feee0a3b18ef0adc1 inherit pub_methods_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command.html#a4f92f6905053c95feee0a3b18ef0adc1">checkStateMask</a> (<a class="el" href="classserver_1_1zone_1_1objects_1_1creature_1_1_creature_object.html">CreatureObject</a> *creature)</td></tr>
<tr class="separator:a4f92f6905053c95feee0a3b18ef0adc1 inherit pub_methods_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a38aa3c7e82142f193481c2b87d87e2fd inherit pub_methods_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command.html#a38aa3c7e82142f193481c2b87d87e2fd">setStateMask</a> (uint64 mask)</td></tr>
<tr class="separator:a38aa3c7e82142f193481c2b87d87e2fd inherit pub_methods_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:aae1bacdabf0deed3e8602f1c9a16f3ca inherit pub_methods_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command.html#aae1bacdabf0deed3e8602f1c9a16f3ca">setDefaultTime</a> (float time)</td></tr>
<tr class="separator:aae1bacdabf0deed3e8602f1c9a16f3ca inherit pub_methods_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a1e4d815d23394279258da799d7d82233 inherit pub_methods_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command.html#a1e4d815d23394279258da799d7d82233">setTargetType</a> (int num)</td></tr>
<tr class="separator:a1e4d815d23394279258da799d7d82233 inherit pub_methods_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ab2da68a4cd081031f996b97384bdefe0 inherit pub_methods_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command.html#ab2da68a4cd081031f996b97384bdefe0">setDisabled</a> (bool state)</td></tr>
<tr class="separator:ab2da68a4cd081031f996b97384bdefe0 inherit pub_methods_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:aefbacbb8e4e61020f774828c66246f88 inherit pub_methods_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command.html#aefbacbb8e4e61020f774828c66246f88">setDisabled</a> (int state)</td></tr>
<tr class="separator:aefbacbb8e4e61020f774828c66246f88 inherit pub_methods_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a94435de52a05b3b5d519c9c2f6764a89 inherit pub_methods_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command.html#a94435de52a05b3b5d519c9c2f6764a89">setAddToCombatQueue</a> (bool state)</td></tr>
<tr class="separator:a94435de52a05b3b5d519c9c2f6764a89 inherit pub_methods_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a538e5409f7f033b670e844f5c11503aa inherit pub_methods_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command.html#a538e5409f7f033b670e844f5c11503aa">setAddToCombatQueue</a> (int state)</td></tr>
<tr class="separator:a538e5409f7f033b670e844f5c11503aa inherit pub_methods_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a16c82a11bd6db08f30adb40799ce46ff inherit pub_methods_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command.html#a16c82a11bd6db08f30adb40799ce46ff">setCommandGroup</a> (int val)</td></tr>
<tr class="separator:a16c82a11bd6db08f30adb40799ce46ff inherit pub_methods_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a405e02cfa947f370c3b7f31601e0d1b1 inherit pub_methods_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command.html#a405e02cfa947f370c3b7f31601e0d1b1">setMaxRange</a> (float r)</td></tr>
<tr class="separator:a405e02cfa947f370c3b7f31601e0d1b1 inherit pub_methods_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ac7e00b0996c74ef9d533cca4e14d3406 inherit pub_methods_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command.html#ac7e00b0996c74ef9d533cca4e14d3406">setCharacterAbility</a> (const String &ability)</td></tr>
<tr class="separator:ac7e00b0996c74ef9d533cca4e14d3406 inherit pub_methods_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a970ef46896ca1c95dfd9fbc0f4e66430 inherit pub_methods_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command.html#a970ef46896ca1c95dfd9fbc0f4e66430">setDefaultPriority</a> (const String &priority)</td></tr>
<tr class="separator:a970ef46896ca1c95dfd9fbc0f4e66430 inherit pub_methods_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a39c088fb8808327a68b835178386ee37 inherit pub_methods_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command.html#a39c088fb8808327a68b835178386ee37">setDefaultPriority</a> (const int priority)</td></tr>
<tr class="separator:a39c088fb8808327a68b835178386ee37 inherit pub_methods_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ad13200cc9d86c468a117e7aab06484b2 inherit pub_methods_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command"><td class="memItemLeft" align="right" valign="top">uint64 </td><td class="memItemRight" valign="bottom"><a class="el" href="classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command.html#ad13200cc9d86c468a117e7aab06484b2">getStateMask</a> ()</td></tr>
<tr class="separator:ad13200cc9d86c468a117e7aab06484b2 inherit pub_methods_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a04074ecdb676b92738efdbd908b9c8a8 inherit pub_methods_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command.html#a04074ecdb676b92738efdbd908b9c8a8">requiresAdmin</a> ()</td></tr>
<tr class="separator:a04074ecdb676b92738efdbd908b9c8a8 inherit pub_methods_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ade1ed7f353e7d2fc2df98eea29e0c3e3 inherit pub_methods_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command.html#ade1ed7f353e7d2fc2df98eea29e0c3e3">getTargetType</a> ()</td></tr>
<tr class="separator:ade1ed7f353e7d2fc2df98eea29e0c3e3 inherit pub_methods_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:afbd63086121372382472a0e9d3c47f8a inherit pub_methods_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command"><td class="memItemLeft" align="right" valign="top">uint32 </td><td class="memItemRight" valign="bottom"><a class="el" href="classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command.html#afbd63086121372382472a0e9d3c47f8a">getNameCRC</a> ()</td></tr>
<tr class="separator:afbd63086121372382472a0e9d3c47f8a inherit pub_methods_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:af3daeb2405e33fe3f260f868de072ed8 inherit pub_methods_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command"><td class="memItemLeft" align="right" valign="top">float </td><td class="memItemRight" valign="bottom"><a class="el" href="classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command.html#af3daeb2405e33fe3f260f868de072ed8">getMaxRange</a> ()</td></tr>
<tr class="separator:af3daeb2405e33fe3f260f868de072ed8 inherit pub_methods_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:aed9455620c42f01ecffefac95f4c29a4 inherit pub_methods_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command"><td class="memItemLeft" align="right" valign="top">String & </td><td class="memItemRight" valign="bottom"><a class="el" href="classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command.html#aed9455620c42f01ecffefac95f4c29a4">getQueueCommandName</a> ()</td></tr>
<tr class="separator:aed9455620c42f01ecffefac95f4c29a4 inherit pub_methods_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ac9fb813e49fdd81f0f8cf83f577184f1 inherit pub_methods_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command"><td class="memItemLeft" align="right" valign="top">String & </td><td class="memItemRight" valign="bottom"><a class="el" href="classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command.html#ac9fb813e49fdd81f0f8cf83f577184f1">getCharacterAbility</a> ()</td></tr>
<tr class="separator:ac9fb813e49fdd81f0f8cf83f577184f1 inherit pub_methods_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ad3fce071e9617b34a0b30d7a0a240f1c inherit pub_methods_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command"><td class="memItemLeft" align="right" valign="top">float </td><td class="memItemRight" valign="bottom"><a class="el" href="classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command.html#ad3fce071e9617b34a0b30d7a0a240f1c">getDefaultTime</a> ()</td></tr>
<tr class="separator:ad3fce071e9617b34a0b30d7a0a240f1c inherit pub_methods_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a957c26acde17ed68557a9e29c2dcede7 inherit pub_methods_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command.html#a957c26acde17ed68557a9e29c2dcede7">getDefaultPriority</a> ()</td></tr>
<tr class="separator:a957c26acde17ed68557a9e29c2dcede7 inherit pub_methods_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a86676d71f0c5d03c14017269e5de78eb inherit pub_methods_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command.html#a86676d71f0c5d03c14017269e5de78eb">isDisabled</a> ()</td></tr>
<tr class="separator:a86676d71f0c5d03c14017269e5de78eb inherit pub_methods_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a87de733e49a13e2c859a1849db15cf67 inherit pub_methods_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command.html#a87de733e49a13e2c859a1849db15cf67">addToCombatQueue</a> ()</td></tr>
<tr class="separator:a87de733e49a13e2c859a1849db15cf67 inherit pub_methods_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a1a1b2e9c04459e9597469a5ba58a4ab7 inherit pub_methods_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command.html#a1a1b2e9c04459e9597469a5ba58a4ab7">getSkillModSize</a> ()</td></tr>
<tr class="separator:a1a1b2e9c04459e9597469a5ba58a4ab7 inherit pub_methods_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ae542b5f30c92a074f2796c24dfa46a86 inherit pub_methods_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command.html#ae542b5f30c92a074f2796c24dfa46a86">getSkillMod</a> (int index, String &skillMod)</td></tr>
<tr class="separator:ae542b5f30c92a074f2796c24dfa46a86 inherit pub_methods_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:abf81d98b541e7c08374f968aaad9cde3 inherit pub_methods_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command.html#abf81d98b541e7c08374f968aaad9cde3">getCommandGroup</a> ()</td></tr>
<tr class="separator:abf81d98b541e7c08374f968aaad9cde3 inherit pub_methods_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a0ab37b0c86817d413a421d7a0304f338 inherit pub_methods_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command.html#a0ab37b0c86817d413a421d7a0304f338">addSkillMod</a> (const String &skillMod, const int value)</td></tr>
<tr class="separator:a0ab37b0c86817d413a421d7a0304f338 inherit pub_methods_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a36e282da7a7fc6e0e46376e29ccd240d inherit pub_methods_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command.html#a36e282da7a7fc6e0e46376e29ccd240d">isWearingArmor</a> (<a class="el" href="classserver_1_1zone_1_1objects_1_1creature_1_1_creature_object.html">CreatureObject</a> *creo)</td></tr>
<tr class="separator:a36e282da7a7fc6e0e46376e29ccd240d inherit pub_methods_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:acc4eccd9e29e787e37a529f2f53b779c inherit pub_methods_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command"><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command.html#acc4eccd9e29e787e37a529f2f53b779c">handleBuff</a> (<a class="el" href="classserver_1_1zone_1_1objects_1_1scene_1_1_scene_object.html">SceneObject</a> *creature, ManagedObject *object, int64 param)</td></tr>
<tr class="separator:acc4eccd9e29e787e37a529f2f53b779c inherit pub_methods_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command"><td class="memSeparator" colspan="2"> </td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="inherited"></a>
Additional Inherited Members</h2></td></tr>
<tr class="inherit_header pub_static_attribs_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command"><td colspan="2" onclick="javascript:toggleInherit('pub_static_attribs_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command')"><img src="closed.png" alt="-"/> Static Public Attributes inherited from <a class="el" href="classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command.html">server::zone::objects::creature::commands::QueueCommand</a></td></tr>
<tr class="memitem:a4ccdfb3dc7dffe69e4160ca2544af916 inherit pub_static_attribs_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command"><td class="memItemLeft" align="right" valign="top">static const int </td><td class="memItemRight" valign="bottom"><a class="el" href="classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command.html#a4ccdfb3dc7dffe69e4160ca2544af916">IMMEDIATE</a> = 0</td></tr>
<tr class="separator:a4ccdfb3dc7dffe69e4160ca2544af916 inherit pub_static_attribs_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ac6bcbc2c480605f1d41ebeb7b054946a inherit pub_static_attribs_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command"><td class="memItemLeft" align="right" valign="top">static const int </td><td class="memItemRight" valign="bottom"><a class="el" href="classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command.html#ac6bcbc2c480605f1d41ebeb7b054946a">FRONT</a> = 1</td></tr>
<tr class="separator:ac6bcbc2c480605f1d41ebeb7b054946a inherit pub_static_attribs_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:af62d1c3e32b5ced7ac93eedfa35843cf inherit pub_static_attribs_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command"><td class="memItemLeft" align="right" valign="top">static const int </td><td class="memItemRight" valign="bottom"><a class="el" href="classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command.html#af62d1c3e32b5ced7ac93eedfa35843cf">NORMAL</a> = 2</td></tr>
<tr class="separator:af62d1c3e32b5ced7ac93eedfa35843cf inherit pub_static_attribs_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:afd765e7bc64680a59d6628ba9151c83c inherit pub_static_attribs_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command"><td class="memItemLeft" align="right" valign="top">static const int </td><td class="memItemRight" valign="bottom"><a class="el" href="classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command.html#afd765e7bc64680a59d6628ba9151c83c">SUCCESS</a> = 0</td></tr>
<tr class="separator:afd765e7bc64680a59d6628ba9151c83c inherit pub_static_attribs_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a8434ab9cdcb60a0e0c3b79d99ea8c9f3 inherit pub_static_attribs_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command"><td class="memItemLeft" align="right" valign="top">static const int </td><td class="memItemRight" valign="bottom"><a class="el" href="classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command.html#a8434ab9cdcb60a0e0c3b79d99ea8c9f3">GENERALERROR</a> = 1</td></tr>
<tr class="separator:a8434ab9cdcb60a0e0c3b79d99ea8c9f3 inherit pub_static_attribs_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a5349733d0c0ec84bd0d2bf654f81c72f inherit pub_static_attribs_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command"><td class="memItemLeft" align="right" valign="top">static const int </td><td class="memItemRight" valign="bottom"><a class="el" href="classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command.html#a5349733d0c0ec84bd0d2bf654f81c72f">INVALIDLOCOMOTION</a> = 2</td></tr>
<tr class="separator:a5349733d0c0ec84bd0d2bf654f81c72f inherit pub_static_attribs_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a7c214ae0c5729e3edc6554121ccb0f61 inherit pub_static_attribs_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command"><td class="memItemLeft" align="right" valign="top">static const int </td><td class="memItemRight" valign="bottom"><a class="el" href="classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command.html#a7c214ae0c5729e3edc6554121ccb0f61">INVALIDSTATE</a> = 3</td></tr>
<tr class="separator:a7c214ae0c5729e3edc6554121ccb0f61 inherit pub_static_attribs_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a1cb8815a7624dd8bd181950d7a748bf1 inherit pub_static_attribs_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command"><td class="memItemLeft" align="right" valign="top">static const int </td><td class="memItemRight" valign="bottom"><a class="el" href="classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command.html#a1cb8815a7624dd8bd181950d7a748bf1">INVALIDTARGET</a> = 4</td></tr>
<tr class="separator:a1cb8815a7624dd8bd181950d7a748bf1 inherit pub_static_attribs_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:afc459f7595d765766944b16a13966ab3 inherit pub_static_attribs_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command"><td class="memItemLeft" align="right" valign="top">static const int </td><td class="memItemRight" valign="bottom"><a class="el" href="classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command.html#afc459f7595d765766944b16a13966ab3">INVALIDWEAPON</a> = 5</td></tr>
<tr class="separator:afc459f7595d765766944b16a13966ab3 inherit pub_static_attribs_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ae0519be3ffdbfcc7c876d1429dffe511 inherit pub_static_attribs_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command"><td class="memItemLeft" align="right" valign="top">static const int </td><td class="memItemRight" valign="bottom"><a class="el" href="classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command.html#ae0519be3ffdbfcc7c876d1429dffe511">TOOFAR</a> = 6</td></tr>
<tr class="separator:ae0519be3ffdbfcc7c876d1429dffe511 inherit pub_static_attribs_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a9d22318a492ca394a7c062505838377f inherit pub_static_attribs_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command"><td class="memItemLeft" align="right" valign="top">static const int </td><td class="memItemRight" valign="bottom"><a class="el" href="classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command.html#a9d22318a492ca394a7c062505838377f">INSUFFICIENTHAM</a> = 7</td></tr>
<tr class="separator:a9d22318a492ca394a7c062505838377f inherit pub_static_attribs_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a0a4a84c90d5a9c3a80d52386c8d0c46d inherit pub_static_attribs_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command"><td class="memItemLeft" align="right" valign="top">static const int </td><td class="memItemRight" valign="bottom"><a class="el" href="classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command.html#a0a4a84c90d5a9c3a80d52386c8d0c46d">INVALIDPARAMETERS</a> = 8</td></tr>
<tr class="separator:a0a4a84c90d5a9c3a80d52386c8d0c46d inherit pub_static_attribs_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a78116a3e3454208ad791c5847dd88145 inherit pub_static_attribs_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command"><td class="memItemLeft" align="right" valign="top">static const int </td><td class="memItemRight" valign="bottom"><a class="el" href="classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command.html#a78116a3e3454208ad791c5847dd88145">NOPRONE</a> = 9</td></tr>
<tr class="separator:a78116a3e3454208ad791c5847dd88145 inherit pub_static_attribs_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a61cf7f5c522494a6bd50328efd57ee1a inherit pub_static_attribs_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command"><td class="memItemLeft" align="right" valign="top">static const int </td><td class="memItemRight" valign="bottom"><a class="el" href="classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command.html#a61cf7f5c522494a6bd50328efd57ee1a">NOKNEELING</a> = 10</td></tr>
<tr class="separator:a61cf7f5c522494a6bd50328efd57ee1a inherit pub_static_attribs_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:aec92ef3c13daec29232fd1f14f5df89b inherit pub_static_attribs_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command"><td class="memItemLeft" align="right" valign="top">static const int </td><td class="memItemRight" valign="bottom"><a class="el" href="classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command.html#aec92ef3c13daec29232fd1f14f5df89b">INSUFFICIENTPERMISSION</a> = 11</td></tr>
<tr class="separator:aec92ef3c13daec29232fd1f14f5df89b inherit pub_static_attribs_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a870493a775b4dd5c77db7364feba8238 inherit pub_static_attribs_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command"><td class="memItemLeft" align="right" valign="top">static const int </td><td class="memItemRight" valign="bottom"><a class="el" href="classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command.html#a870493a775b4dd5c77db7364feba8238">NOJEDIARMOR</a> = 12</td></tr>
<tr class="separator:a870493a775b4dd5c77db7364feba8238 inherit pub_static_attribs_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a46ec04d345ff426cde0bdb8dd63397a6 inherit pub_static_attribs_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command"><td class="memItemLeft" align="right" valign="top">static const int </td><td class="memItemRight" valign="bottom"><a class="el" href="classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command.html#a46ec04d345ff426cde0bdb8dd63397a6">INVALIDSYNTAX</a> = 13</td></tr>
<tr class="separator:a46ec04d345ff426cde0bdb8dd63397a6 inherit pub_static_attribs_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="inherit_header pro_attribs_class_combat_queue_command"><td colspan="2" onclick="javascript:toggleInherit('pro_attribs_class_combat_queue_command')"><img src="closed.png" alt="-"/> Protected Attributes inherited from <a class="el" href="class_combat_queue_command.html">CombatQueueCommand</a></td></tr>
<tr class="memitem:adb86ea0dba0fd52e289fc90b4bcf5471 inherit pro_attribs_class_combat_queue_command"><td class="memItemLeft" align="right" valign="top">float </td><td class="memItemRight" valign="bottom"><a class="el" href="class_combat_queue_command.html#adb86ea0dba0fd52e289fc90b4bcf5471">damage</a></td></tr>
<tr class="separator:adb86ea0dba0fd52e289fc90b4bcf5471 inherit pro_attribs_class_combat_queue_command"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a0185bde574f3f7b47e54957a706c7c59 inherit pro_attribs_class_combat_queue_command"><td class="memItemLeft" align="right" valign="top">float </td><td class="memItemRight" valign="bottom"><a class="el" href="class_combat_queue_command.html#a0185bde574f3f7b47e54957a706c7c59">damageMultiplier</a></td></tr>
<tr class="separator:a0185bde574f3f7b47e54957a706c7c59 inherit pro_attribs_class_combat_queue_command"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a250b9f30d705ff9db8763145cd3c64c1 inherit pro_attribs_class_combat_queue_command"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="class_combat_queue_command.html#a250b9f30d705ff9db8763145cd3c64c1">accuracyBonus</a></td></tr>
<tr class="separator:a250b9f30d705ff9db8763145cd3c64c1 inherit pro_attribs_class_combat_queue_command"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a47a1f6e40b1a3d091ea05e790c668ec0 inherit pro_attribs_class_combat_queue_command"><td class="memItemLeft" align="right" valign="top">float </td><td class="memItemRight" valign="bottom"><a class="el" href="class_combat_queue_command.html#a47a1f6e40b1a3d091ea05e790c668ec0">speedMultiplier</a></td></tr>
<tr class="separator:a47a1f6e40b1a3d091ea05e790c668ec0 inherit pro_attribs_class_combat_queue_command"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a10ecb71b0ff0420c132f2d0ac18e1bbd inherit pro_attribs_class_combat_queue_command"><td class="memItemLeft" align="right" valign="top">float </td><td class="memItemRight" valign="bottom"><a class="el" href="class_combat_queue_command.html#a10ecb71b0ff0420c132f2d0ac18e1bbd">speed</a></td></tr>
<tr class="separator:a10ecb71b0ff0420c132f2d0ac18e1bbd inherit pro_attribs_class_combat_queue_command"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a77355f2bed612a5304644cc0df4bb929 inherit pro_attribs_class_combat_queue_command"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="class_combat_queue_command.html#a77355f2bed612a5304644cc0df4bb929">poolsToDamage</a></td></tr>
<tr class="separator:a77355f2bed612a5304644cc0df4bb929 inherit pro_attribs_class_combat_queue_command"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a34c0a077c8c3ae64ec23d0c7abad781d inherit pro_attribs_class_combat_queue_command"><td class="memItemLeft" align="right" valign="top">float </td><td class="memItemRight" valign="bottom"><a class="el" href="class_combat_queue_command.html#a34c0a077c8c3ae64ec23d0c7abad781d">healthCostMultiplier</a></td></tr>
<tr class="separator:a34c0a077c8c3ae64ec23d0c7abad781d inherit pro_attribs_class_combat_queue_command"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:aebfcf5f8f1ea9d882f7a7a87907ec4ba inherit pro_attribs_class_combat_queue_command"><td class="memItemLeft" align="right" valign="top">float </td><td class="memItemRight" valign="bottom"><a class="el" href="class_combat_queue_command.html#aebfcf5f8f1ea9d882f7a7a87907ec4ba">actionCostMultiplier</a></td></tr>
<tr class="separator:aebfcf5f8f1ea9d882f7a7a87907ec4ba inherit pro_attribs_class_combat_queue_command"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:aedc5f15c4138de629d15e54df52f9788 inherit pro_attribs_class_combat_queue_command"><td class="memItemLeft" align="right" valign="top">float </td><td class="memItemRight" valign="bottom"><a class="el" href="class_combat_queue_command.html#aedc5f15c4138de629d15e54df52f9788">mindCostMultiplier</a></td></tr>
<tr class="separator:aedc5f15c4138de629d15e54df52f9788 inherit pro_attribs_class_combat_queue_command"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a62f22e1698a233b4a55cb3b93b2b7920 inherit pro_attribs_class_combat_queue_command"><td class="memItemLeft" align="right" valign="top">float </td><td class="memItemRight" valign="bottom"><a class="el" href="class_combat_queue_command.html#a62f22e1698a233b4a55cb3b93b2b7920">forceCostMultiplier</a></td></tr>
<tr class="separator:a62f22e1698a233b4a55cb3b93b2b7920 inherit pro_attribs_class_combat_queue_command"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a6f5bcbba6c1e3605ffd54c57297dd418 inherit pro_attribs_class_combat_queue_command"><td class="memItemLeft" align="right" valign="top">float </td><td class="memItemRight" valign="bottom"><a class="el" href="class_combat_queue_command.html#a6f5bcbba6c1e3605ffd54c57297dd418">forceCost</a></td></tr>
<tr class="separator:a6f5bcbba6c1e3605ffd54c57297dd418 inherit pro_attribs_class_combat_queue_command"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a7a3d3d3f2cbc8284b46cf02d57804516 inherit pro_attribs_class_combat_queue_command"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="class_combat_queue_command.html#a7a3d3d3f2cbc8284b46cf02d57804516">knockdownStateChance</a></td></tr>
<tr class="separator:a7a3d3d3f2cbc8284b46cf02d57804516 inherit pro_attribs_class_combat_queue_command"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a455a3511812b55e431af38ad4d746309 inherit pro_attribs_class_combat_queue_command"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="class_combat_queue_command.html#a455a3511812b55e431af38ad4d746309">postureDownStateChance</a></td></tr>
<tr class="separator:a455a3511812b55e431af38ad4d746309 inherit pro_attribs_class_combat_queue_command"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a82e12701eaf97c3aecb75dfd727f3d00 inherit pro_attribs_class_combat_queue_command"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="class_combat_queue_command.html#a82e12701eaf97c3aecb75dfd727f3d00">postureUpStateChance</a></td></tr>
<tr class="separator:a82e12701eaf97c3aecb75dfd727f3d00 inherit pro_attribs_class_combat_queue_command"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a4ec4557da87f7f2f2c89635c0b4b2441 inherit pro_attribs_class_combat_queue_command"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="class_combat_queue_command.html#a4ec4557da87f7f2f2c89635c0b4b2441">dizzyStateChance</a></td></tr>
<tr class="separator:a4ec4557da87f7f2f2c89635c0b4b2441 inherit pro_attribs_class_combat_queue_command"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a0a634d994fe3d1b8436a0e11cc9c0ab1 inherit pro_attribs_class_combat_queue_command"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="class_combat_queue_command.html#a0a634d994fe3d1b8436a0e11cc9c0ab1">blindStateChance</a></td></tr>
<tr class="separator:a0a634d994fe3d1b8436a0e11cc9c0ab1 inherit pro_attribs_class_combat_queue_command"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ab509b0514e0acbba882abf8bab329b78 inherit pro_attribs_class_combat_queue_command"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="class_combat_queue_command.html#ab509b0514e0acbba882abf8bab329b78">stunStateChance</a></td></tr>
<tr class="separator:ab509b0514e0acbba882abf8bab329b78 inherit pro_attribs_class_combat_queue_command"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a0cc9682be2f14d1386fcaaa5c892d5f9 inherit pro_attribs_class_combat_queue_command"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="class_combat_queue_command.html#a0cc9682be2f14d1386fcaaa5c892d5f9">intimidateStateChance</a></td></tr>
<tr class="separator:a0cc9682be2f14d1386fcaaa5c892d5f9 inherit pro_attribs_class_combat_queue_command"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:afa16ecc0a418b89d99450e49736fb7b3 inherit pro_attribs_class_combat_queue_command"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="class_combat_queue_command.html#afa16ecc0a418b89d99450e49736fb7b3">nextAttackDelayChance</a></td></tr>
<tr class="separator:afa16ecc0a418b89d99450e49736fb7b3 inherit pro_attribs_class_combat_queue_command"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:aeb6be6f3d11def633c53e3777d7235d3 inherit pro_attribs_class_combat_queue_command"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="class_combat_queue_command.html#aeb6be6f3d11def633c53e3777d7235d3">durationStateTime</a></td></tr>
<tr class="separator:aeb6be6f3d11def633c53e3777d7235d3 inherit pro_attribs_class_combat_queue_command"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a470762476c47012ef35d666c14e9d8bf inherit pro_attribs_class_combat_queue_command"><td class="memItemLeft" align="right" valign="top">uint32 </td><td class="memItemRight" valign="bottom"><a class="el" href="class_combat_queue_command.html#a470762476c47012ef35d666c14e9d8bf">dotDuration</a></td></tr>
<tr class="separator:a470762476c47012ef35d666c14e9d8bf inherit pro_attribs_class_combat_queue_command"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a648018c562cb769d9f8b7b57ce737024 inherit pro_attribs_class_combat_queue_command"><td class="memItemLeft" align="right" valign="top">uint64 </td><td class="memItemRight" valign="bottom"><a class="el" href="class_combat_queue_command.html#a648018c562cb769d9f8b7b57ce737024">dotType</a></td></tr>
<tr class="separator:a648018c562cb769d9f8b7b57ce737024 inherit pro_attribs_class_combat_queue_command"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a572592c425cb5ea0ea750ffa81aeda5b inherit pro_attribs_class_combat_queue_command"><td class="memItemLeft" align="right" valign="top">uint8 </td><td class="memItemRight" valign="bottom"><a class="el" href="class_combat_queue_command.html#a572592c425cb5ea0ea750ffa81aeda5b">dotPool</a></td></tr>
<tr class="separator:a572592c425cb5ea0ea750ffa81aeda5b inherit pro_attribs_class_combat_queue_command"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a49cfcb02c46eae3051fa3a0d0ede5270 inherit pro_attribs_class_combat_queue_command"><td class="memItemLeft" align="right" valign="top">uint32 </td><td class="memItemRight" valign="bottom"><a class="el" href="class_combat_queue_command.html#a49cfcb02c46eae3051fa3a0d0ede5270">dotStrength</a></td></tr>
<tr class="separator:a49cfcb02c46eae3051fa3a0d0ede5270 inherit pro_attribs_class_combat_queue_command"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a67033de394b9bd640061e2b41221aa16 inherit pro_attribs_class_combat_queue_command"><td class="memItemLeft" align="right" valign="top">float </td><td class="memItemRight" valign="bottom"><a class="el" href="class_combat_queue_command.html#a67033de394b9bd640061e2b41221aa16">dotPotency</a></td></tr>
<tr class="separator:a67033de394b9bd640061e2b41221aa16 inherit pro_attribs_class_combat_queue_command"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a86b12060d8a942ac7a7319eb8331f3ce inherit pro_attribs_class_combat_queue_command"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="class_combat_queue_command.html#a86b12060d8a942ac7a7319eb8331f3ce">dotDamageOfHit</a></td></tr>
<tr class="separator:a86b12060d8a942ac7a7319eb8331f3ce inherit pro_attribs_class_combat_queue_command"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:adef8cfd693f19f158716eb399057f6b1 inherit pro_attribs_class_combat_queue_command"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="class_combat_queue_command.html#adef8cfd693f19f158716eb399057f6b1">range</a></td></tr>
<tr class="separator:adef8cfd693f19f158716eb399057f6b1 inherit pro_attribs_class_combat_queue_command"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a556964805e24a7436413b2f9008f0436 inherit pro_attribs_class_combat_queue_command"><td class="memItemLeft" align="right" valign="top">String </td><td class="memItemRight" valign="bottom"><a class="el" href="class_combat_queue_command.html#a556964805e24a7436413b2f9008f0436">accuracySkillMod</a></td></tr>
<tr class="separator:a556964805e24a7436413b2f9008f0436 inherit pro_attribs_class_combat_queue_command"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ac948865b2164bb8ffd1d46b6c2981d8f inherit pro_attribs_class_combat_queue_command"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="class_combat_queue_command.html#ac948865b2164bb8ffd1d46b6c2981d8f">areaAction</a></td></tr>
<tr class="separator:ac948865b2164bb8ffd1d46b6c2981d8f inherit pro_attribs_class_combat_queue_command"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a9164efa493abe6d3be46caa537301cf2 inherit pro_attribs_class_combat_queue_command"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="class_combat_queue_command.html#a9164efa493abe6d3be46caa537301cf2">coneAction</a></td></tr>
<tr class="separator:a9164efa493abe6d3be46caa537301cf2 inherit pro_attribs_class_combat_queue_command"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a4b7efb149d918f7c64948c9d4557d77c inherit pro_attribs_class_combat_queue_command"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="class_combat_queue_command.html#a4b7efb149d918f7c64948c9d4557d77c">coneAngle</a></td></tr>
<tr class="separator:a4b7efb149d918f7c64948c9d4557d77c inherit pro_attribs_class_combat_queue_command"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:abd3c8dc3b25cb8644fa9f85a507a0cd4 inherit pro_attribs_class_combat_queue_command"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="class_combat_queue_command.html#abd3c8dc3b25cb8644fa9f85a507a0cd4">areaRange</a></td></tr>
<tr class="separator:abd3c8dc3b25cb8644fa9f85a507a0cd4 inherit pro_attribs_class_combat_queue_command"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a774f066eaafb8019d58b243b4d14688d inherit pro_attribs_class_combat_queue_command"><td class="memItemLeft" align="right" valign="top">String </td><td class="memItemRight" valign="bottom"><a class="el" href="class_combat_queue_command.html#a774f066eaafb8019d58b243b4d14688d">combatSpam</a></td></tr>
<tr class="separator:a774f066eaafb8019d58b243b4d14688d inherit pro_attribs_class_combat_queue_command"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a8a107ca895e7b2043006577d925a46c9 inherit pro_attribs_class_combat_queue_command"><td class="memItemLeft" align="right" valign="top">String </td><td class="memItemRight" valign="bottom"><a class="el" href="class_combat_queue_command.html#a8a107ca895e7b2043006577d925a46c9">stateSpam</a></td></tr>
<tr class="separator:a8a107ca895e7b2043006577d925a46c9 inherit pro_attribs_class_combat_queue_command"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:abe8137dd3b82e8caee52b84263c90660 inherit pro_attribs_class_combat_queue_command"><td class="memItemLeft" align="right" valign="top">uint32 </td><td class="memItemRight" valign="bottom"><a class="el" href="class_combat_queue_command.html#abe8137dd3b82e8caee52b84263c90660">animationCRC</a></td></tr>
<tr class="separator:abe8137dd3b82e8caee52b84263c90660 inherit pro_attribs_class_combat_queue_command"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ad9ca6dde8c24b7c19d3f199427bc2c83 inherit pro_attribs_class_combat_queue_command"><td class="memItemLeft" align="right" valign="top">String </td><td class="memItemRight" valign="bottom"><a class="el" href="class_combat_queue_command.html#ad9ca6dde8c24b7c19d3f199427bc2c83">effectString</a></td></tr>
<tr class="separator:ad9ca6dde8c24b7c19d3f199427bc2c83 inherit pro_attribs_class_combat_queue_command"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ab0d1f4c7584c20ffba9dfd47cd230763 inherit pro_attribs_class_combat_queue_command"><td class="memItemLeft" align="right" valign="top">VectorMap< uint64, <a class="el" href="class_state_effect.html">StateEffect</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="class_combat_queue_command.html#ab0d1f4c7584c20ffba9dfd47cd230763">stateEffects</a></td></tr>
<tr class="separator:ab0d1f4c7584c20ffba9dfd47cd230763 inherit pro_attribs_class_combat_queue_command"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a4cc595dc8dbb9abf5c77b3b12ea007af inherit pro_attribs_class_combat_queue_command"><td class="memItemLeft" align="right" valign="top">VectorMap< uint64, <a class="el" href="class_dot_effect.html">DotEffect</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="class_combat_queue_command.html#a4cc595dc8dbb9abf5c77b3b12ea007af">dotEffects</a></td></tr>
<tr class="separator:a4cc595dc8dbb9abf5c77b3b12ea007af inherit pro_attribs_class_combat_queue_command"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a2a6ca76131e03a59ec15db78afbf2c9b inherit pro_attribs_class_combat_queue_command"><td class="memItemLeft" align="right" valign="top">uint8 </td><td class="memItemRight" valign="bottom"><a class="el" href="class_combat_queue_command.html#a2a6ca76131e03a59ec15db78afbf2c9b">attackType</a></td></tr>
<tr class="separator:a2a6ca76131e03a59ec15db78afbf2c9b inherit pro_attribs_class_combat_queue_command"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a7039e32c1bd23b9a3b5ae06fb0c0002b inherit pro_attribs_class_combat_queue_command"><td class="memItemLeft" align="right" valign="top">uint8 </td><td class="memItemRight" valign="bottom"><a class="el" href="class_combat_queue_command.html#a7039e32c1bd23b9a3b5ae06fb0c0002b">trails</a></td></tr>
<tr class="separator:a7039e32c1bd23b9a3b5ae06fb0c0002b inherit pro_attribs_class_combat_queue_command"><td class="memSeparator" colspan="2"> </td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock">
<p>Definition at line <a class="el" href="_melee2h_lunge1_command_8h_source.html#l00051">51</a> of file <a class="el" href="_melee2h_lunge1_command_8h_source.html">Melee2hLunge1Command.h</a>.</p>
</div><h2 class="groupheader">Constructor & Destructor Documentation</h2>
<a class="anchor" id="ab24b1ee6aabf75142f01eeac24830aa2"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">Melee2hLunge1Command::Melee2hLunge1Command </td>
<td>(</td>
<td class="paramtype">const String & </td>
<td class="paramname"><em>name</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="classserver_1_1zone_1_1_zone_process_server.html">ZoneProcessServer</a> * </td>
<td class="paramname"><em>server</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Definition at line <a class="el" href="_melee2h_lunge1_command_8h_source.html#l00054">54</a> of file <a class="el" href="_melee2h_lunge1_command_8h_source.html">Melee2hLunge1Command.h</a>.</p>
</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a class="anchor" id="aa7f703ec51a11e4e580e21a571b65f46"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">int Melee2hLunge1Command::doQueueCommand </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classserver_1_1zone_1_1objects_1_1creature_1_1_creature_object.html">CreatureObject</a> * </td>
<td class="paramname"><em>creature</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const uint64 & </td>
<td class="paramname"><em>target</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const UnicodeString & </td>
<td class="paramname"><em>arguments</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Reimplemented from <a class="el" href="classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command.html#a833e25691f9f7ea158519db34b47c0f6">server::zone::objects::creature::commands::QueueCommand</a>.</p>
<p>Definition at line <a class="el" href="_melee2h_lunge1_command_8h_source.html#l00058">58</a> of file <a class="el" href="_melee2h_lunge1_command_8h_source.html">Melee2hLunge1Command.h</a>.</p>
<p>References <a class="el" href="_queue_command_8cpp_source.html#l00060">server::zone::objects::creature::commands::QueueCommand::checkInvalidLocomotions()</a>, <a class="el" href="_queue_command_8h_source.html#l00170">server::zone::objects::creature::commands::QueueCommand::checkStateMask()</a>, <a class="el" href="_combat_queue_command_8h_source.html#l00134">CombatQueueCommand::doCombatAction()</a>, <a class="el" href="server_2zone_2objects_2creature_2_creature_object_8cpp_source.html#l03038">server::zone::objects::creature::CreatureObject::getWeapon()</a>, <a class="el" href="_queue_command_8h_source.html#l00105">server::zone::objects::creature::commands::QueueCommand::INVALIDLOCOMOTION</a>, <a class="el" href="_queue_command_8h_source.html#l00106">server::zone::objects::creature::commands::QueueCommand::INVALIDSTATE</a>, and <a class="el" href="_queue_command_8h_source.html#l00108">server::zone::objects::creature::commands::QueueCommand::INVALIDWEAPON</a>.</p>
</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>/Users/victor/git/Core3Mda/MMOCoreORB/src/server/zone/objects/creature/commands/<a class="el" href="_melee2h_lunge1_command_8h_source.html">Melee2hLunge1Command.h</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Tue Oct 15 2013 17:29:32 for Core3 by  <a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.3.1
</small></address>
</body>
</html>
| Java |
/*
Copyright 2013-2021 Paul Colby
This file is part of QtAws.
QtAws is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
QtAws is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with the QtAws. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef QTAWS_DESCRIBESERVICESRESPONSE_H
#define QTAWS_DESCRIBESERVICESRESPONSE_H
#include "pricingresponse.h"
#include "describeservicesrequest.h"
namespace QtAws {
namespace Pricing {
class DescribeServicesResponsePrivate;
class QTAWSPRICING_EXPORT DescribeServicesResponse : public PricingResponse {
Q_OBJECT
public:
DescribeServicesResponse(const DescribeServicesRequest &request, QNetworkReply * const reply, QObject * const parent = 0);
virtual const DescribeServicesRequest * request() const Q_DECL_OVERRIDE;
protected slots:
virtual void parseSuccess(QIODevice &response) Q_DECL_OVERRIDE;
private:
Q_DECLARE_PRIVATE(DescribeServicesResponse)
Q_DISABLE_COPY(DescribeServicesResponse)
};
} // namespace Pricing
} // namespace QtAws
#endif
| Java |
/**
* GetAllUsersResponse.java
* Created by pgirard at 2:07:29 PM on Aug 19, 2010
* in the com.qagwaai.starmalaccamax.shared.services.action package
* for the JobMalaccamax project
*/
package com.qagwaai.starmalaccamax.client.service.action;
import java.util.ArrayList;
import com.google.gwt.user.client.rpc.IsSerializable;
import com.qagwaai.starmalaccamax.shared.model.JobDTO;
/**
* @author pgirard
*
*/
public final class GetAllJobsResponse extends AbstractResponse implements IsSerializable {
/**
*
*/
private ArrayList<JobDTO> jobs;
/**
*
*/
private int totalJobs;
/**
* @return the users
*/
public ArrayList<JobDTO> getJobs() {
return jobs;
}
/**
* @return the totalJobs
*/
public int getTotalJobs() {
return totalJobs;
}
/**
* @param jobs
* the users to set
*/
public void setJobs(final ArrayList<JobDTO> jobs) {
this.jobs = jobs;
}
/**
* @param totalJobs
* the totalJobs to set
*/
public void setTotalJobs(final int totalJobs) {
this.totalJobs = totalJobs;
}
/**
* {@inheritDoc}
*/
@Override
public String toString() {
return "GetAllJobsResponse [jobs=" + jobs + ", totalJobs=" + totalJobs + "]";
}
}
| Java |
/*
* Copyright (C) 2021 Inera AB (http://www.inera.se)
*
* This file is part of sklintyg (https://github.com/sklintyg).
*
* sklintyg is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* sklintyg is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
angular.module('StatisticsApp.treeMultiSelector.controller', [])
.controller('treeMultiSelectorCtrl', ['$scope', '$uibModal',
function($scope, $uibModal) {
'use strict';
$scope.openDialogClicked = function() {
if (angular.isFunction($scope.onOpen)) {
$scope.onOpen();
}
var modalInstance = $uibModal.open({
animation: false,
templateUrl: '/app/shared/treemultiselector/modal/modal.html',
controller: 'TreeMultiSelectorModalCtrl',
windowTopClass: 'tree-multi-selector',
size: 'lg',
backdrop: 'true',
resolve: {
directiveScope: $scope
}
});
modalInstance.result.then(function() {
$scope.doneClicked();
}, function() {
});
};
}]);
| Java |
P1Charts
========
Projeto da disciplina de programação 1 de 2013.2
Gera um gráfico em Pizza ou em Barras com até 5 parâmetros.
Instalar os seguintes arquivos:
* CMake
* git
* Biblioteca cairo
* Biblioteca Jansson
Dica do malandro
----------------
Usem linux!
| Java |
/*
* Copyright (c) 2001-2003 Swedish Institute of Computer Science.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright notice,
* this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution.
* 3. The name of the author may not be used to endorse or promote products
* derived from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT
* SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT
* OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
* IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
* OF SUCH DAMAGE.
*
* This file is part of the lwIP TCP/IP stack.
*
* Author: Adam Dunkels <adam@sics.se>
*
*/
/* lwIP includes. */
#include "lwip/debug.h"
#include "lwip/def.h"
#include "lwip/sys.h"
#include "lwip/mem.h"
#include "lwip/stats.h"
#include "os_common.h"
#include "os_supervise.h"
#include "os_debug.h"
#include "os_mailbox.h"
static u16_t s_nextthread = 0;
/*-----------------------------------------------------------------------------------*/
// Creates an empty mailbox.
err_t sys_mbox_new(sys_mbox_t *mbox, int size)
{
OS_QueueConfig que_cfg = {
.len = archMESG_QUEUE_LENGTH,
.item_size = sizeof(OS_Message*) //sizeof(void*)
};
(void)size;
IF_STATUS(OS_QueueCreate(&que_cfg, OS_TaskGet(), mbox)) {
return ERR_MEM;
}
#if SYS_STATS
++lwip_stats.sys.mbox.used;
if (lwip_stats.sys.mbox.max < lwip_stats.sys.mbox.used) {
lwip_stats.sys.mbox.max = lwip_stats.sys.mbox.used;
}
#endif /* SYS_STATS */
if (NULL == *mbox) {
return ERR_MEM;
}
return ERR_OK;
}
/*-----------------------------------------------------------------------------------*/
/*
Deallocates a mailbox. If there are messages still present in the
mailbox when the mailbox is deallocated, it is an indication of a
programming error in lwIP and the developer should be notified.
*/
void sys_mbox_free(sys_mbox_t *mbox)
{
if (OS_QueueItemsCountGet(*mbox)) {
/* Line for breakpoint. Should never break here! */
portNOP();
#if SYS_STATS
lwip_stats.sys.mbox.err++;
#endif /* SYS_STATS */
// TODO notify the user of failure.
OS_ASSERT(OS_FALSE);
}
OS_QueueDelete(*mbox);
#if SYS_STATS
--lwip_stats.sys.mbox.used;
#endif /* SYS_STATS */
}
/*-----------------------------------------------------------------------------------*/
// Posts the "msg" to the mailbox.
void sys_mbox_post(sys_mbox_t *mbox, void *data)
{
OS_MessageSend(*mbox, (const OS_Message*)data, OS_BLOCK, OS_MSG_PRIO_NORMAL);
}
/*-----------------------------------------------------------------------------------*/
// Try to post the "msg" to the mailbox.
err_t sys_mbox_trypost(sys_mbox_t *mbox, void *msg)
{
err_t result;
IF_OK(OS_MessageSend(*mbox, (const OS_Message*)msg, OS_NO_BLOCK, OS_MSG_PRIO_NORMAL)) {
result = ERR_OK;
} else {
// could not post, queue must be full
result = ERR_MEM;
#if SYS_STATS
lwip_stats.sys.mbox.err++;
#endif /* SYS_STATS */
}
return result;
}
/*-----------------------------------------------------------------------------------*/
/*
Blocks the thread until a message arrives in the mailbox, but does
not block the thread longer than "timeout" milliseconds (similar to
the sys_arch_sem_wait() function). The "msg" argument is a result
parameter that is set by the function (i.e., by doing "*msg =
ptr"). The "msg" parameter maybe NULL to indicate that the message
should be dropped.
The return values are the same as for the sys_arch_sem_wait() function:
Number of milliseconds spent waiting or SYS_ARCH_TIMEOUT if there was a
timeout.
Note that a function with a similar name, sys_mbox_fetch(), is
implemented by lwIP.
*/
u32_t sys_arch_mbox_fetch(sys_mbox_t *mbox, void **msg, u32_t timeout)
{
void *dummyptr;
OS_Tick StartTime, EndTime, Elapsed;
StartTime = OS_TickCountGet();
if (NULL == msg) {
msg = &dummyptr;
}
if (0 != timeout) {
IF_OK(OS_MessageReceive(*mbox, (OS_Message**)&(*msg), timeout)) {
EndTime = OS_TickCountGet();
Elapsed = OS_TICKS_TO_MS(EndTime - StartTime);
return (Elapsed);
} else { // timed out blocking for message
*msg = NULL;
return SYS_ARCH_TIMEOUT;
}
} else { // block forever for a message.
OS_MessageReceive(*mbox, (OS_Message**)&(*msg), OS_BLOCK); // time is arbitrary
EndTime = OS_TickCountGet();
Elapsed = OS_TICKS_TO_MS(EndTime - StartTime);
return (Elapsed); // return time blocked TODO test
}
}
/*-----------------------------------------------------------------------------------*/
/*
Similar to sys_arch_mbox_fetch, but if message is not ready immediately, we'll
return with SYS_MBOX_EMPTY. On success, 0 is returned.
*/
u32_t sys_arch_mbox_tryfetch(sys_mbox_t *mbox, void **msg)
{
void *dummyptr;
if (NULL == msg) {
msg = &dummyptr;
}
IF_OK(OS_MessageReceive(*mbox, (OS_Message**)&(*msg), OS_NO_BLOCK)) {
return ERR_OK;
} else {
return SYS_MBOX_EMPTY;
}
}
/*----------------------------------------------------------------------------------*/
int sys_mbox_valid(sys_mbox_t *mbox)
{
if (OS_NULL == *mbox) {
return 0;
}
return 1;
}
/*-----------------------------------------------------------------------------------*/
void sys_mbox_set_invalid(sys_mbox_t *mbox)
{
*mbox = SYS_MBOX_NULL;
}
///*-----------------------------------------------------------------------------------*/
//// Creates a new semaphore. The "count" argument specifies
//// the initial state of the semaphore.
//err_t sys_sem_new(sys_sem_t *sem, u8_t count)
//{
// *sem = OS_SemaphoreCountingCreate(count, 0);
// if(!*sem) {
//#if SYS_STATS
// ++lwip_stats.sys.sem.err;
//#endif /* SYS_STATS */
// return ERR_MEM;
// }
//
// if (!count) { // Means it can't be taken
// OS_SemaphoreLock(*sem, OS_NO_BLOCK);
// }
//#if SYS_STATS
// ++lwip_stats.sys.sem.used;
// if (lwip_stats.sys.sem.max < lwip_stats.sys.sem.used) {
// lwip_stats.sys.sem.max = lwip_stats.sys.sem.used;
// }
//#endif /* SYS_STATS */
// return ERR_OK;
//}
//
///*-----------------------------------------------------------------------------------*/
///*
// Blocks the thread while waiting for the semaphore to be
// signaled. If the "timeout" argument is non-zero, the thread should
// only be blocked for the specified time (measured in
// milliseconds).
//
// If the timeout argument is non-zero, the return value is the number of
// milliseconds spent waiting for the semaphore to be signaled. If the
// semaphore wasn't signaled within the specified time, the return value is
// SYS_ARCH_TIMEOUT. If the thread didn't have to wait for the semaphore
// (i.e., it was already signaled), the function may return zero.
//
// Notice that lwIP implements a function with a similar name,
// sys_sem_wait(), that uses the sys_arch_sem_wait() function.
//*/
//u32_t sys_arch_sem_wait(sys_sem_t *sem, u32_t timeout)
//{
//OS_Tick StartTime, EndTime, Elapsed;
//
// StartTime = OS_TickCountGet();
// if (timeout) {
// IF_OK(OS_SemaphoreLock(*sem, timeout)) {
// EndTime = OS_TickCountGet();
// Elapsed = OS_TICKS_TO_MS(EndTime - StartTime);
// return (Elapsed); // return time blocked TODO test
// } else {
// return SYS_ARCH_TIMEOUT;
// }
// } else { // must block without a timeout
// OS_SemaphoreLock(*sem, OS_BLOCK);
// EndTime = OS_TickCountGet();
// Elapsed = OS_TICKS_TO_MS(EndTime - StartTime);
// return (Elapsed); // return time blocked
// }
//}
//
///*-----------------------------------------------------------------------------------*/
//// Signals a semaphore
//void sys_sem_signal(sys_sem_t *sem)
//{
// OS_SemaphoreUnlock(*sem);
//}
//
///*-----------------------------------------------------------------------------------*/
//// Deallocates a semaphore
//void sys_sem_free(sys_sem_t *sem)
//{
//#if SYS_STATS
// --lwip_stats.sys.sem.used;
//#endif /* SYS_STATS */
// OS_SemaphoreDelete(*sem);
//}
//
///*-----------------------------------------------------------------------------------*/
//int sys_sem_valid(sys_sem_t *sem)
//{
// if (SYS_SEM_NULL == *sem) {
// return 0;
// }
// return 1;
//}
//
///*-----------------------------------------------------------------------------------*/
//void sys_sem_set_invalid(sys_sem_t *sem)
//{
// *sem = SYS_SEM_NULL;
//}
/*-----------------------------------------------------------------------------------*/
// Initialize sys arch
void sys_init(void)
{
// keep track of how many threads have been created
s_nextthread = 0;
}
/*-----------------------------------------------------------------------------------*/
/* Mutexes*/
/*-----------------------------------------------------------------------------------*/
/*-----------------------------------------------------------------------------------*/
#if LWIP_COMPAT_MUTEX == 0
/* Create a new mutex*/
err_t sys_mutex_new(sys_mutex_t *mutex) {
*mutex = OS_MutexCreate();
if (*mutex == NULL) {
#if SYS_STATS
++lwip_stats.sys.mutex.err;
#endif /* SYS_STATS */
return ERR_MEM;
}
#if SYS_STATS
++lwip_stats.sys.mutex.used;
if (lwip_stats.sys.mutex.max < lwip_stats.sys.mutex.used) {
lwip_stats.sys.mutex.max = lwip_stats.sys.mutex.used;
}
#endif /* SYS_STATS */
return ERR_OK;
}
/*-----------------------------------------------------------------------------------*/
/* Deallocate a mutex*/
void sys_mutex_free(sys_mutex_t *mutex)
{
#if SYS_STATS
--lwip_stats.sys.mutex.used;
#endif /* SYS_STATS */
OS_MutexDelete(*mutex);
}
/*-----------------------------------------------------------------------------------*/
/* Lock a mutex*/
void sys_mutex_lock(sys_mutex_t *mutex)
{
OS_MutexLock(*mutex, OS_BLOCK);
}
/*-----------------------------------------------------------------------------------*/
/* Unlock a mutex*/
void sys_mutex_unlock(sys_mutex_t *mutex)
{
OS_MutexUnlock(*mutex);
}
#endif /*LWIP_COMPAT_MUTEX*/
/*-----------------------------------------------------------------------------------*/
// TODO
/*-----------------------------------------------------------------------------------*/
/*
Starts a new thread with priority "prio" that will begin its execution in the
function "thread()". The "arg" argument will be passed as an argument to the
thread() function. The id of the new thread is returned. Both the id and
the priority are system dependent.
*/
sys_thread_t sys_thread_new(const char *name, lwip_thread_fn thread , void *arg, int stacksize, int prio)
{
OS_TaskHd CreatedTask = OS_NULL;
if (s_nextthread < OS_NETWORK_SYS_THREAD_MAX) {
OS_TaskConfig* task_lwip_cfg_p = (OS_TaskConfig*)OS_Malloc(sizeof(OS_TaskConfig)); //no free for this allocation!
if (task_lwip_cfg_p) {
task_lwip_cfg_p->func_main = (void(*)(OS_TaskArgs*))thread;
task_lwip_cfg_p->func_power = OS_NULL;
task_lwip_cfg_p->args_p = OS_NULL;
task_lwip_cfg_p->attrs = 0;
task_lwip_cfg_p->timeout = 0;
task_lwip_cfg_p->prio_init = (DEFAULT_THREAD_PRIO + prio);
task_lwip_cfg_p->prio_power = OS_PWR_PRIO_MAX;
task_lwip_cfg_p->storage_size = 0;
task_lwip_cfg_p->stack_size = stacksize;
task_lwip_cfg_p->stdin_len = 0;
OS_StrNCpy((StrP)task_lwip_cfg_p->name, name, (OS_TASK_NAME_LEN - 1));
IF_OK(OS_TaskCreate(arg, task_lwip_cfg_p, &CreatedTask)) {
++s_nextthread;
}
}
}
return CreatedTask;
}
/*
This optional function does a "fast" critical region protection and returns
the previous protection level. This function is only called during very short
critical regions. An embedded system which supports ISR-based drivers might
want to implement this function by disabling interrupts. Task-based systems
might want to implement this by using a mutex or disabling tasking. This
function should support recursive calls from the same task or interrupt. In
other words, sys_arch_protect() could be called while already protected. In
that case the return value indicates that it is already protected.
sys_arch_protect() is only required if your port is supporting an operating
system.
*/
sys_prot_t sys_arch_protect(void)
{
OS_CriticalSectionEnter();
return 1;
}
/*
This optional function does a "fast" set of critical region protection to the
value specified by pval. See the documentation for sys_arch_protect() for
more information. This function is only required if your port is supporting
an operating system.
*/
void sys_arch_unprotect(sys_prot_t pval)
{
(void)pval;
OS_CriticalSectionExit();
}
/*
* Prints an assertion messages and aborts execution.
*/
void sys_assert( const char *msg )
{
OS_TRACE(D_CRITICAL, msg, OS_NULL);
OS_ASSERT(OS_FALSE);
}
/******************************************************************************/
u32_t sys_jiffies(void)
{
return HAL_GetTick();
}
/******************************************************************************/
u32_t sys_now(void)
{
return OS_TICKS_TO_MS(sys_jiffies());
} | Java |
// node/this-3.js
var object = {
id: "xyz",
printId: function() {
console.log('The id is '+
this.id + ' ' +
this.toString());
}
};
// setTimeout(object.printId, 100);
var callback = object.printId;
callback();
| Java |
package Genome::Sys;
use strict;
use warnings;
use Genome;
use Genome::Carp qw(croakf);
use Genome::Utility::File::Mode qw(mode);
use autodie qw(chown);
use Carp;
use Cwd;
use Digest::MD5;
use Errno qw();
use File::Basename;
use File::Copy qw();
use File::Path;
use File::Spec;
use File::stat qw(stat lstat);
use IO::File;
use JSON;
use List::MoreUtils "each_array";
use LWP::Simple qw(getstore RC_OK);
use Params::Validate qw(:types validate_pos);
use POSIX qw(EEXIST);
use Set::Scalar;
use Scalar::Util qw(blessed reftype);
use feature qw(state);
our @CARP_NOT = qw(Genome::Model::Build::Command::DetermineError);
# these are optional but should load immediately when present
# until we can make the Genome::Utility::Instrumentation optional (Net::Statsd deps)
for my $opt (qw/Genome::Sys::Lock Genome::Sys::Log/) {
eval "use $opt";
}
our $VERSION = $Genome::VERSION;
class Genome::Sys {};
sub concatenate_files {
my ($self,$inputs,$output) = @_;
unless (ref($inputs) and $output) {
die 'expected \\@input_files $output_file as parameters';
}
my ($quoted_output_file, @quoted_input_files) = $self->quote_for_shell($output,@$inputs);
Genome::Sys->shellcmd(cmd => "cat @quoted_input_files >$quoted_output_file");
}
sub quote_for_shell {
require String::ShellQuote;
# this is needed until shellcmd supports an array form,
# which is difficult because we go to a bash sub-shell by default
my $class = shift;
my @quoted = map String::ShellQuote::shell_quote($_), @_;
if (wantarray) {
return @quoted
}
else {
return $quoted[0];
}
}
sub disk_usage_for_path {
my $self = shift;
my $path = shift;
my %params = @_;
# Normally disk_usage_for_path returns nothing if it encounters an error;
# this allows the caller to override the default behavior, returning a
# number even if du emits errors (for instance, because the user does not
# have read permissions for a single subfolder out of many).
my $allow_errors = delete $params{allow_errors};
if (keys %params) {
die $self->error_message("Unknown parameters for disk_usage_for_path(): " . join(', ', keys %params));
}
unless (-d $path) {
$self->error_message("Path $path does not exist!");
return;
}
return unless -d $path;
my $cmd = "du -sk $path 2>&1";
my @du_output = split( /\n/, qx{$cmd} );
my $last_line = pop @du_output;
my $kb_used = ( split( ' ', $last_line, 2 ) )[0];
# if we couldn't parse the size count, print all output and return nothing
unless (Scalar::Util::looks_like_number($kb_used)) {
push @du_output, $last_line;
$self->error_message("du output is not a number:\n" . join("\n", @du_output));
return;
}
# if there were lines besides the size count, emit warnings and (potentially) return nothing
if (@du_output) {
$self->warning_message($_) for (@du_output);
unless ($allow_errors) {
$self->error_message("du encountered errors");
return;
}
}
return $kb_used;
}
# directory manipulation
sub validate_existing_directory {
my ($self, $directory) = @_;
unless ( defined $directory ) {
Carp::croak("Can't validate_existing_directory: No directory given");
}
unless ( -e $directory ) {
Carp::croak("Can't validate_existing_directory: $directory: Path does not exist");
}
unless ( -d $directory ) {
Carp::croak("Can't validate_existing_directory: $directory: path exists but is not a directory");
}
return 1;
}
sub validate_directory_for_read_access {
my ($self, $directory) = @_;
# Both underlying methods throw their own exceptions
$self->validate_existing_directory($directory)
or return;
return $self->_can_read_from_directory($directory);
}
sub validate_directory_for_write_access {
my ($self, $directory) = @_;
# Both underlying methods throw their own exceptions
$self->validate_existing_directory($directory)
or return;
return $self->_can_write_to_directory($directory);
}
sub validate_directory_for_read_write_access {
my ($self, $directory) = @_;
# All three underlying methods throw their own exceptions
$self->validate_existing_directory($directory)
or return;
$self->_can_read_from_directory($directory)
or return;
return $self->_can_write_to_directory($directory);
}
sub recursively_validate_directory_for_read_write_access {
my ($self, $directory) = @_;
my $wanted = sub {
my $full_path = $File::Find::name;
if (-f $full_path) {
eval {
Genome::Sys->validate_file_for_reading($full_path);
Genome::Sys->validate_file_for_writing_overwrite($full_path);
};
if ($@) {
Carp::croak "Cannot read or write $full_path in $directory!";
}
}
};
find($wanted, $directory);
return 1;
}
sub _can_read_from_directory {
my ($self, $directory) = @_;
unless ( -r $directory ) {
Carp::croak("Directory ($directory) is not readable");
}
return 1;
}
sub _can_write_to_directory {
my ($self, $directory) = @_;
unless ( -w $directory ) {
Carp::croak("Directory ($directory) is not writable");
}
return 1;
}
sub abs_path {
my ($self, $path) = @_;
return Cwd::abs_path($path);
}
# MD5
sub md5sum {
my ($self, $file) = @_;
my $digest;
my $fh = IO::File->new($file);
unless ($fh) {
Carp::croak("Can't open file ($file) to md5sum: $!");
}
my $d = Digest::MD5->new;
$d->addfile($fh);
$digest = $d->hexdigest;
$fh->close;
return $digest;
}
sub md5sum_data {
my ($self, $data) = @_;
unless (defined $data) {
Carp::croak('No data passed to md5sum_data');
}
my $digest = Digest::MD5->new;
$digest->add($data);
return $digest->hexdigest;
}
# API for accessing software and data by version
sub snapshot_revision {
my $class = shift;
# Previously we just used UR::Util::used_libs_perl5lib_prefix but this did not
# "detect" a software revision when using code from PERL5LIB or compile-time
# lib paths. Since it is common for developers to run just Genome from a Git
# checkout we really want to record what versions of UR, Genome, etc.
# were used.
my @orig_inc = @INC;
my @libs = ($INC{'UR.pm'}, $INC{'Genome.pm'});
die $class->error_message('Did not find both modules loaded (UR and Genome).') unless @libs == 2;
# assemble list of "important" libs
@libs = map { File::Basename::dirname($class->abs_path($_)) } @libs;
push @libs, UR::Util->used_libs;
# remove trailing slashes
map { $_ =~ s/\/+$// } (@libs, @orig_inc);
@libs = $class->_uniq(@libs);
# preserve the list order as appeared @INC
my @inc;
for my $inc (@orig_inc) {
push @inc, grep { $inc eq $_ } @libs;
}
@inc = $class->_uniq(@inc);
@inc = $class->_simplify_inc(@inc) if $class->can('_simplify_inc');
return join(':', @inc);
}
sub _uniq {
my $self = shift;
my @list = @_;
my %seen = ();
my @unique = grep { ! $seen{$_} ++ } @list;
return @unique;
}
# access to paths to code and data
sub dbpath {
my ($class, $name, $version) = @_;
my $dbpath = $class->lookup_dbpath($name);
if ($dbpath) {
print STDERR "Using '$dbpath' from config.\n";
} else {
unless ($version) {
die "Genome::Sys dbpath must be called with a database name and a version. " .
"Use 'latest' for the latest installed version.";
}
$dbpath = $class->_find_in_genome_db_paths($name, $version);
}
return $dbpath;
}
sub lookup_dbpath {
my ($class, $name) = @_;
my %config_key = (
'genome-music-testdata' => 'db_music_testdata',
'cosmic' => 'db_cosmic',
'omim' => 'db_omim',
'pfam' => 'db_pfam',
);
my $key = $config_key{$name};
return unless ($key);
return Genome::Config::get($key);
}
sub _find_in_genome_db_paths {
my ($class, $name, $version) = @_;
my $base_dirs = Genome::Config::get('db');
my $subdir = "$name/$version";
my @base_dirs = split(':',$base_dirs);
my @dirs =
map { -l $_ ? $class->abs_path($_) : ($_) }
map {
my $path = join("/",$_,$subdir);
(-e $path ? ($path) : ())
}
@base_dirs;
return $dirs[0];
}
# renamed for consistency with a variety of sw_ methods.
*swpath = \&sw_path;
sub sw_path {
my ($class, $pkg_name, $version, $app_name) = @_;
$app_name ||= $pkg_name;
unless ($version) {
die "Genome::Sys swpath must be called with a pkg name and a version. The optional executable name defaults to the pkg_name. " .
"Use the version 'latest' for the latest installed version.";
}
# check the default path for the app
my %map = $class->sw_version_path_map($pkg_name, $app_name);
my $path = $map{$version};
if ($path) {
return $path;
}
# older legacy software has an unversioned executable
# this is only supported if the version passed in is "latest"
$path = `which $app_name`;
if ($path = `which $app_name`) {
# unversioned install
# see if it's a symlink to something in a versioned tree
chomp $path;
$path = readlink($path) while -l $path;
if ($version eq 'latest') {
return $path;
}
else {
die $class->error_message("Failed to find $pkg_name at version $version. " .
"The default version is at $path.");
}
}
die $class->error_message("Failed to find app $app_name (package $pkg_name) at version $version!");
}
sub java_executable_path {
my ($class, $version, $bin) = @_;
my $java_path = $class->java_path($version);
$bin ||= 'java';
my $exe_path = File::Spec->join($java_path, 'bin', $bin);
unless(-x $exe_path) {
die $class->error_message('No java executable found in bin of <%s> for version: %s', $java_path, $version);
}
return $exe_path;
}
sub java_path {
my ($class, $version) = @_;
unless(version->parse($version)) {
die $class->error_message('Version does not appear to be valid: %s', $version);
}
my @available_versions = glob(File::Spec->join(Genome::Config::get('java_path'), "jre$version*"));
if (@available_versions == 0) {
die $class->error_message('No java path found for version: %s', $version);
} elsif (@available_versions == 1) {
return $available_versions[0];
} else {
my $most_recent_path;
my $most_recent_version = 0;
for my $next_path (@available_versions) {
my ($next_version) = $next_path =~ /jre(.+)$/;
if(version->parse($next_version) > version->parse($most_recent_version)) {
$most_recent_path = $next_path;
$most_recent_version = $next_version;
}
}
return $most_recent_path;
}
}
sub jar_path {
my ($class, $jar_name, $version) = @_;
# check the default path
my %map = $class->jar_version_path_map($jar_name);
my $path = $map{$version};
if ($path) {
return $path;
}
die $class->error_message("Failed to find jar $jar_name at version $version");
}
sub jar_version_path_map {
my ($class, $pkg_name) = @_;
my %versions;
my @dirs = split(':', Genome::Config::get('jar_path'));
for my $dir (@dirs) {
my $prefix = "$dir/$pkg_name-";
my @version_paths = grep { -e $_ } glob("$prefix*");
next unless @version_paths;
my $prefix_len = length($prefix);
for my $version_path (@version_paths) {
my $version = substr($version_path,$prefix_len);
$version =~ s/.jar$//;
if (substr($version,0,1) eq '-') {
$version = substr($version,1);
}
next unless $version =~ /[0-9\.]/;
next if -l $version_path;
$versions{$version} = $version_path;
}
}
return %versions;
}
sub sw_version_path_map {
my ($class, $pkg_name, $app_name) = @_;
$app_name ||= $pkg_name;
# find software installed as .debs with versioned packages
# packaged software should have a versioned executable like /usr/bin/myapp1.2.3 or /usr/bin/mypackage-myapp1.2.3 in the bin.
my %versions1;
my @dirs1 = (split(':',$ENV{PATH}), "~/gsc-pkg-bio/");
my @sw_ignore = split(':', Genome::Config::get('sw_ignore') || '');
for my $dir1 (@dirs1) {
if (grep { index($dir1,$_) == 0 } @sw_ignore) {
# skip directories starting with something in @sw_ignore
next;
}
for my $prefix ("$dir1/$pkg_name-$app_name-", "$dir1/$app_name-", "$dir1/$pkg_name-$app_name", "$dir1/$app_name") {
my @version_paths = grep { -e $_ } glob("$prefix*");
next unless @version_paths;
my $prefix_len = length($prefix);
for my $version_path (@version_paths) {
my $version = substr($version_path,$prefix_len);
if (substr($version,0,1) eq '-') {
$version = substr($version,1);
}
next unless $version =~ /[0-9\.]/;
if (grep { index($version_path,$_) == 0 } @sw_ignore) {
next;
}
$versions1{$version} = $version_path;
}
}
}
sub _common_prefix_length {
my ($first,@rest) = @_;
my $len;
for ($len = 1; $len <= length($first); $len++) {
for my $other (@rest) {
if (substr($first,0,$len) ne substr($other,0,$len)) {
return $len-1;
}
}
}
return $len-1;
}
my %pkgdirs;
my @dirs2 = split(':',Genome::Config::get('sw')); #most of the system expects this to be one value not-colon separated currently
for my $dir2 (@dirs2) {
# one subdir will exist per application
my @app_subdirs = glob("$dir2/$pkg_name");
for my $app_subdir (@app_subdirs) {
# one subdir under that will exist per version
my @version_subdirs = grep { -e $_ and not -l $_ and $_ !~ /README/ and /\d/ } glob("$app_subdir/*");
next unless @version_subdirs;
# if some subdirectories repeat the pkg name, all of those we consider must
my @some = grep { index(File::Basename::basename($_),$pkg_name) == 0 } @version_subdirs;
@version_subdirs = @some if @some;
my $len = _common_prefix_length(@version_subdirs);
my $prefix = substr($version_subdirs[0],0,$len);
if ($prefix =~ /(-|)(v|)([\d\.pa]+)$/) {
$len = $len - length($3);
}
for my $version_subdir (@version_subdirs) {
if (grep { index($version_subdir,$_) == 0 } @sw_ignore) {
next;
}
my $version = substr($version_subdir,$len);
if (substr($version,0,1) =~ /[0-9]/) {
$pkgdirs{$version} = $version_subdir;
}
}
}
}
# When a version number ends in -64, we are just saying it is 64-bit,
# which is default for everything now. We don't want to even return
# the 32-bit only versions.
# Trim the version number down, and have that key point to the path of the 64-bit version.
# This will sometimes stomp on a 32-bit version directory if it exists (hopefully).
# If 32-bit directories exist and there is no 64-bit version to stomp on them,
# we never know for sure they are not just new installs which presume to be 64-bit.
my @v64 = grep { /[-_]64$/ } keys %pkgdirs;
for my $version_64 (@v64) {
my ($version_no64) = ($version_64 =~ /^(.*?)([\.-_][^\.]+)64$/);
$pkgdirs{$version_no64} = delete $pkgdirs{$version_64};
}
# now resolve the actual path to the executable $app_name
my %versions2;
for my $version (keys %pkgdirs) {
my $dir = $pkgdirs{$version};
my @subdirs = qw/. bin scripts/;
my @basenames = ("$app_name-$version","$app_name$version",$app_name);
if ($pkg_name ne $app_name) {
@basenames = map { ("$pkg_name-$_", "$pkg_name$_", $_) } @basenames;
}
for my $basename (@basenames) {
for my $subdir (@subdirs) {
my $path = "$dir/$subdir/$basename";
if (-e $path) {
$path =~ s|/\./|/|m;
$versions2{$version} = $path;
last;
}
}
last if $versions2{$version};
}
unless ($versions2{$version}) {
$class->debug_message("Found $pkg_name at version $version at $dir, but no executable (named any of: @basenames) in subdirs: @subdirs!");
}
}
# prefer packaged versions over unpackaged
my %all_versions = (%versions2,%versions1);
# return sorted
return map { $_ => $all_versions{$_} } sort keys %all_versions;
}
sub sw_versions {
my ($self,$pkg_name,$app_name) = @_;
my @map = ($self->sw_version_path_map($pkg_name,$app_name));
my $n = 0;
return map { $n++; ($n % 2 ? $_ : ()) } @map;
}
#####
# Temp file management
#####
sub _temp_directory_prefix {
my $self = shift;
my $base = join("_", map { lc($_) } split('::',$self->class));
return $base;
}
our $base_temp_directory;
sub base_temp_directory {
my $self = shift;
my $class = ref($self) || $self;
my $template = shift;
my $id;
if (ref($self)) {
return $self->{base_temp_directory} if $self->{base_temp_directory};
$id = $self->id;
}
else {
# work as a class method
return $base_temp_directory if $base_temp_directory;
$id = '';
}
unless ($template) {
my $prefix = $self->_temp_directory_prefix();
$prefix ||= $class;
my $time = $self->__context__->now;
$time =~ s/[\s\: ]/_/g;
$template = "/gm-$prefix-$time-$id-XXXX";
$template =~ s/ /-/g;
}
# See if we're running under LSF and LSF gave us a directory that will be
# auto-cleaned up when the job terminates
my $tmp_location = $ENV{'TMPDIR'} || File::Spec->tmpdir();
if ($ENV{'LSB_JOBID'}) {
my $lsf_possible_tempdir = sprintf("%s/%s.tmpdir", $tmp_location, $ENV{'LSB_JOBID'});
if (-d $lsf_possible_tempdir) {
$tmp_location = $lsf_possible_tempdir;
#open up the temporary directory to those with data access for easier debugging
my $gid = gidgrnam(Genome::Config::get('sys_group'));
set_gid($gid, $tmp_location);
my $mode = mode($tmp_location);
$mode->add_group_readable;
$mode->add_group_executable;
$mode->rm_other_rwx;
}
}
# tempdir() thows its own exception if there's a problem
# For debugging purposes, allow cleanup to be disabled
my $cleanup = 1;
if (Genome::Config::get('sys_no_cleanup')) {
$cleanup = 0;
}
my $dir = File::Temp::tempdir($template, DIR=>$tmp_location, CLEANUP => $cleanup);
$self->create_directory($dir);
if (ref($self)) {
return $self->{base_temp_directory} = $dir;
}
else {
# work as a class method
return $base_temp_directory = $dir;
}
unless ($dir) {
Carp::croak("Unable to determine base_temp_directory");
}
return $dir;
}
our $anonymous_temp_file_count = 0;
sub create_temp_file_path {
my $self = shift;
my $name = shift;
unless ($name) {
$name = 'anonymous' . $anonymous_temp_file_count++;
}
my $dir = $self->base_temp_directory;
my $path = $dir .'/'. $name;
if (-e $path) {
Carp::croak "temp path '$path' already exists!";
}
if (!$path or $path eq '/') {
Carp::croak("create_temp_file_path() failed");
}
return $path;
}
sub create_temp_file {
my $self = shift;
my $path = $self->create_temp_file_path(@_);
my $fh = IO::File->new($path, '>');
unless ($fh) {
Carp::croak "Failed to create temp file $path: $!";
}
return ($fh,$path) if wantarray;
return $fh;
}
sub create_temp_directory {
my $self = shift;
my $path = $self->create_temp_file_path(@_);
$self->create_directory($path);
return $path;
}
#####
# Basic filesystem operations
#####
sub copy_file {
my ($self, $file, $dest) = @_;
$self->validate_file_for_reading($file)
or Carp::croak("Cannot open input file ($file) for reading!");
$self->validate_file_for_writing($dest)
or Carp::croak("Cannot open output file ($dest) for writing!");
# Note: since the file is validate_file_for_reading, and the dest is validate_file_for_writing,
# the files can never be exactly the same.
unless ( File::Copy::copy($file, $dest) ) {
# It is unclear whether File::Copy::copy intends to remove $dest but we
# definitely have cases where it's not.
unlink $dest;
Carp::croak("Can't copy $file to $dest: $!");
}
return 1;
}
sub move_file {
my ($self, $file, $dest) = @_;
$self->validate_file_for_reading($file)
or Carp::croak("Cannot open input file ($file) for reading!");
$self->validate_file_for_writing($dest)
or Carp::croak("Cannot open output file ($dest) for writing!");
# Note: since the file is validate_file_for_reading, and the dest is validate_file_for_writing,
# the files can never be exactly the same.
unless ( $self->move($file, $dest) ) {
Carp::croak("Can't move $file to $dest: $!");
}
return 1;
}
sub tar {
my ($class, %params) = @_;
my $tar_path = delete $params{tar_path};
my $input_directory = delete $params{input_directory};
my $input_pattern = delete $params{input_pattern};
$input_pattern = '*' unless defined $input_pattern;
my $options = delete $params{options};
$options = '-cf' unless defined $options;
if (%params) {
Carp::confess "Extra parameters given to tar method: " . join(', ', sort keys %params);
}
unless ($tar_path) {
Carp::confess "Not given path at which tar should be created!";
}
if (-e $tar_path) {
Carp::confess "File exists at $tar_path, refusing to overwrite with new tarball!";
}
unless ($input_directory) {
Carp::confess "Not given directory containing input files!";
}
unless (-d $input_directory) {
Carp::confess "No input directory found at $input_directory";
}
my $current_directory = getcwd;
unless (chdir $input_directory) {
Carp::confess "Could not change directory to $input_directory";
}
if (Genome::Sys->directory_is_empty($input_directory)) {
Carp::confess "Cannot create tarball for empty directory $input_directory!";
}
my $cmd = "tar $options $tar_path $input_pattern";
my $rv = Genome::Sys->shellcmd(
cmd => $cmd,
);
unless ($rv) {
Carp::confess "Could not create tar file at $tar_path containing files in " .
"$input_directory matching pattern $input_pattern";
}
unless (chdir $current_directory) {
Carp::confess "Could not change directory back to $current_directory";
}
return 1;
}
sub untar {
my ($class, %params) = @_;
my $tar_path = delete $params{tar_path};
my $target_directory = delete $params{target_directory};
my $delete_tar = delete $params{delete_tar};
if (%params) {
Carp::confess "Extra parameters given to untar method: " . join(', ', sort keys %params);
}
unless ($tar_path) {
Carp::confess "Not given path to tar file to be untarred!";
}
unless (-e $tar_path) {
Carp::confess "No file found at $tar_path!";
}
$target_directory = getcwd unless $target_directory;
$delete_tar = 0 unless defined $delete_tar;
my $current_directory = getcwd;
unless (chdir $target_directory) {
Carp::confess "Could not change directory to $target_directory";
}
my $rv = Genome::Sys->shellcmd(
cmd => "tar -xf $tar_path",
);
unless ($rv) {
Carp::confess "Could not untar $tar_path into $target_directory";
}
unless (chdir $current_directory) {
Carp::confess "Could not change directory back to $current_directory";
}
if ($delete_tar) {
unlink $tar_path;
}
return 1;
}
sub directory_is_empty {
my ($class, $directory) = @_;
my @files = glob("$directory/*");
if (@files) {
return 0;
}
return 1;
}
sub rsync_directory {
my ($class, %params) = @_;
my $source_dir = delete $params{source_directory};
my $target_dir = delete $params{target_directory};
my $pattern = delete $params{file_pattern};
unless ($source_dir) {
Carp::confess "Not given directory to copy from!";
}
unless (-d $source_dir) {
Carp::confess "No directory found at $source_dir";
}
unless ($target_dir) {
Carp::confess "Not given directory to copy to!";
}
unless (-d $target_dir) {
Genome::Sys->create_directory($target_dir);
}
$pattern = '' unless $pattern;
my $source = join('/', $source_dir, $pattern);
my $rv = Genome::Sys->shellcmd(
cmd => "rsync -rlHpgt $source $target_dir",
);
unless ($rv) {
confess "Could not copy data matching pattern $source to $target_dir";
}
return 1;
}
sub line_count {
my ($self, $path) = @_;
my $line_count;
if ($self->file_is_gzipped($path)) {
($line_count) = qx(zcat $path | wc -l) =~ /^(\d+)/;
} else {
($line_count) = qx(wc -l $path) =~ /^(\d+)/;
}
return $line_count;
}
sub create_directory {
my ($self, $directory) = @_;
unless ( defined $directory ) {
Carp::croak("Can't create_directory: No path given");
}
# FIXME do we want to throw an exception here? What if the user expected
# the directory to be created, not that it already existed
return $directory if -d $directory;
# have to set umask, make_path's mode/umask option is not sufficient
my $umask = umask;
umask oct(Genome::Config::get('sys_umask'));
make_path($directory); # not from File::Path
umask $umask;
return $directory;
}
# File::Path::make_path says it lets you specify group but it always seemed
# to be overrided by setgid. So we are implenting the recursive mkdir here.
sub make_path {
my ($path) = validate_pos(@_, {type => SCALAR});
return 1 if -d $path; #This also triggers the automounter so mkdir() gets EEXIST instead of EACCES.
my $gid = gidgrnam(Genome::Config::get('sys_group'));
my @dirs = File::Spec->splitdir($path);
for (my $i = 0; $i < @dirs; $i++) {
my $subpath = File::Spec->catdir(@dirs[0..$i]);
next if -d $subpath;
my $rv = mkdir $subpath;
my $mkdir_errno = $!;
if ($rv) {
my $stat = stat($subpath);
if ($stat->gid != $gid) {
set_gid($gid, $subpath);
}
} else {
if ($mkdir_errno != EEXIST) {
Carp::confess("While creating path ($path), failed to create " .
"directory ($subpath) because ($mkdir_errno)");
}
}
}
unless (-d $path) {
die "directory does not exist: $path";
}
}
sub set_gid {
my $gid = shift;
my $path = shift;
# chown removes the setgid bit on root_squashed NFS volumes so preserve manually
my $mode = mode($path);
my $had_setgid = $mode->is_setgid;
chown -1, $gid, $path;
if ($had_setgid) {
$mode->add_setgid();
}
}
sub gidgrnam {
my $group_name = shift;
#LSF: Try 2 times to group information.
# LDAP something fail to return at
# first request.
for ( 1 .. 2 ) {
if ( my @group_info = ( getgrnam($group_name) ) ) {
return $group_info[2];
}
}
die "Not able to find the group info for $group_name.";
}
sub create_symlink {
my ($class, $target, $link) = @_;
unless ( defined($target) && length($target) ) {
Carp::croak("Can't create_symlink: no target given");
}
unless ( defined($link) && length($link) ) {
Carp::croak("Can't create_symlink: no 'link' given");
}
unless (symlink($target, $link)) {
my $symlink_error = $!;
if ($symlink_error == Errno::EEXIST) {
my $current_target = readlink($link);
if (! defined($current_target) or $current_target ne $target) {
Carp::croak("Link ($link) for target ($target) already exists.");
}
} else {
Carp::croak("Can't create link ($link) to $target\: $symlink_error");
}
}
return 1;
}
# Return a list of strings representing the filenames/directories in a given directory.
sub list_directory {
my ($class, $directory_name) = @_;
opendir my($dh), $directory_name or die "Couldn't open dir '$directory_name': $!";
my @children = readdir $dh;
closedir $dh;
# remove . and .. if they are in the list
my @results = grep(!/^[\.]*$/, @children);
return @results
}
# create symlinks of the contents of the target_dir.
# BEFORE:
# target_dir/foo/bar
# target_dir/baz
# link_dir/ (no foo or baz)
# AFTER:
# link_dir/foo -> target_dir/foo
# link_dir/baz -> target_dir/baz
sub symlink_directory {
my ($class, $target_dir, $link_dir) = @_;
if(-e $link_dir) {
Carp::croak("The link_dir ($link_dir) exists and is not a directory!") unless(-d $link_dir);
my $target_filenames = Set::Scalar->new(Genome::Sys->list_directory($target_dir));
my $link_filenames = Set::Scalar->new(Genome::Sys->list_directory($link_dir));
# check for intersection of link_filenames with target_filenames and die.
my $intersection = $target_filenames->intersection($link_filenames);
if(@$intersection) {
Carp::croak("Cannot symlink directory because the following\n" .
"are in both the target_dir and the link_dir:\n" .
Data::Dumper::Dumper(@$intersection));
}
# symlink all the things in $target_dir
my @target_fullpaths = map("$target_dir/$_", @$target_filenames);
my @link_fullpaths = map("$link_dir/$_", @$target_filenames);
my $ea = each_array(@target_fullpaths, @link_fullpaths);
while( my ($target, $link) = $ea->() ) {
Genome::Sys->create_symlink($target, $link);
}
} else {
Carp::croak("The link_dir ($link_dir) doesn't exist.");
}
}
sub create_symlink_and_log_change {
my $class = shift || die;
my $owner = shift || die;
my $target = shift || die;
my $link = shift || die;
$class->create_symlink($target, $link);
# create a change record so that if the databse change is undone this symlink will be removed
my $symlink_undo = sub {
$owner->status_message("Removing symlink ($link) due to database rollback.");
unlink $link;
};
my $symlink_change = UR::Context::Transaction->log_change(
$owner, 'UR::Value', $link, 'external_change', $symlink_undo
);
unless ($symlink_change) {
die $owner->error_message("Failed to log symlink change.");
}
return 1;
}
sub read_file {
my ($self, $fname) = @_;
my $fh = $self->open_file_for_reading($fname);
Carp::croak "Failed to open file $fname! " . $self->error_message() . ": $!" unless $fh;
if (wantarray) {
my @lines = $fh->getlines;
return @lines;
}
else {
return( do { local( $/ ) ; <$fh> }); # slurp mode
}
}
sub write_file {
my ($self, $fname, @content) = @_;
my $fh = $self->open_file_for_writing($fname);
Carp::croak "Failed to open file $fname! " . $self->error_message() . ": $!" unless $fh;
for (@content) {
$fh->print($_) or Carp::croak "Failed to write to file $fname! $!";
}
if ( $fname ne '-' ) {
$fh->close or Carp::croak "Failed to close file $fname! $!";
}
return $fname;
}
sub write_temp_file {
my ($self, @content) = @_;
my $filename = $self->create_temp_file_path();
return $self->write_file($filename, @content);
}
sub _open_file {
my ($self, $file, $rw) = @_;
if ($file eq '-') {
if ($rw eq 'r') {
return 'STDIN';
}
elsif ($rw eq 'w') {
return 'STDOUT';
}
else {
die "cannot open '-' with access '$rw': r = STDIN, w = STDOUT!!!";
}
}
my $fh = (defined $rw) ? IO::File->new($file, $rw) : IO::File->new($file);
return $fh if $fh;
Carp::croak("Can't open file ($file) with access '$rw': $!");
}
sub validate_file_for_reading {
my ($self, $file) = @_;
unless ( defined $file ) {
Carp::croak("Can't validate_file_for_reading: No file given");
}
if ($file eq '-') {
return 1;
}
unless (-e $file ) {
Carp::croak("File ($file) does not exist");
}
unless (-f $file) {
Carp::croak("File ($file) exists but is not a plain file");
}
unless ( -r $file ) {
Carp::croak("Do not have READ access to file ($file)");
}
return 1;
}
sub validate_file_for_writing {
my ($self, $file) = @_;
unless ( defined $file ) {
Carp::croak("Can't validate_file_for_writing: No file given");
}
if ($file eq '-') {
return 1;
}
if ( -s $file ) {
Carp::croak("Can't validate_file_for_writing: File ($file) has non-zero size, refusing to write to it");
}
# FIXME there is a race condition where the path could go away or become non-writable
# between the time this method returns and the time we actually try opening the file
# for writing
# validate_file_for_writing_overwrite throws its own exceptions if there are problems
return $self->validate_file_for_writing_overwrite($file);
}
sub validate_file_for_writing_overwrite {
my ($self, $file) = @_;
unless ( defined $file ) {
Carp::croak("Can't validate_file_for_writing_overwrite: No file given");
}
my ($name, $dir) = File::Basename::fileparse($file);
unless ( $dir ) {
Carp::croak("Can't validate_file_for_writing_overwrite: Can't determine directory from pathname ($file)");
}
unless ( -w $dir ) {
Carp::croak("Can't validate_file_for_writing_overwrite: Do not have WRITE access to directory ($dir) to create file ($name)");
}
# FIXME same problem with the race condition as noted at the end of validate_file_for_writing()
return 1;
}
sub open_file_for_reading {
my ($self, $file) = @_;
$self->validate_file_for_reading($file)
or return;
# _open_file throws its own exception if it doesn't work
return $self->_open_file($file, 'r');
}
sub download_file_to_directory {
my ($self, $url, $destination_dir) = @_;
unless (-d $destination_dir){
Carp::croak("You wanted to download $url to $destination_dir but that directory doesn't exist!");
}
my $resp = getstore($url, $destination_dir . "/" . (split("/", $url))[-1]);
if($resp =~ /4\d\d/){
Carp::croak("You wanted to download $url but it doesn't exist or you don't have access! ($resp)");
}
if($resp =~/5\d\d/){
Carp::croak("You wanted to download $url but there appears to be a problem with the host! ($resp)");
}
return RC_OK eq $resp;
}
sub open_file_for_writing {
my ($self, $file) = @_;
$self->validate_file_for_writing($file)
or return;
if (-e $file) {
unless (unlink $file) {
Carp::croak("Can't unlink $file: $!");
}
}
return $self->_open_file($file, 'w');
}
sub open_gzip_file_for_reading {
my ($self, $file) = @_;
$self->validate_file_for_reading($file)
or return;
unless ($self->file_is_gzipped($file)) {
Carp::croak("File ($file) is not a gzip file");
}
my $pipe = "zcat ".$file." |";
# _open_file throws its own exception if it doesn't work
return $self->_open_file($pipe);
}
# Returns the file type, following any symlinks along the way to their target
sub file_type {
my $self = shift;
my $file = shift;
$self->validate_file_for_reading($file);
$file = $self->follow_symlink($file);
my $result = `file -b $file`;
my @answer = split /\s+/, $result;
return $answer[0];
}
sub file_is_gzipped {
my ($self, $filename) = @_;
my $file_type = $self->file_type($filename);
#NOTE: debian bug #522441 - `file` can report gzip files as any of these....
if ($file_type eq "gzip" or $file_type eq "Sun" or $file_type eq "Minix" or $file_type eq 'GRand') {
return 1;
} else {
return 0;
}
}
sub gzip_file {
my ($class, $input_file, $target_file) = @_;
unless (-e $input_file) {
die $class->error_message("Input file ($input_file) does not exist");
}
Genome::Sys->validate_file_for_writing($target_file);
my $bgzip_cmd = "bgzip -c $input_file > $target_file";
Genome::Sys->shellcmd(cmd => $bgzip_cmd);
unless (-e $target_file) {
die $class->error_message("Target file ($target_file) does not exist after bgzipping");
}
return $target_file;
}
# Follows a symlink chain to reach the final file, accounting for relative symlinks along the way
sub follow_symlink {
my $self = shift;
my $file = shift;
# Follow the chain of symlinks
while (-l $file) {
my $original_file = $file;
$file = readlink($file);
# If the symlink was relative, repair that
unless (File::Spec->file_name_is_absolute($file)) {
my $path = dirname($original_file);
$file = join ("/", ($path, $file));
}
$self->validate_file_for_reading($file);
}
return $file;
}
sub get_file_extension_for_path {
my $self = shift;
my $path = shift;
my ($extension) = $path =~ /(\.[^.]+)$/;
return $extension;
}
sub iterate_file_lines {
my $class = shift;
my $fh = shift;
Carp::croak('File handle or name required as the first param of iterate_file_lines')
unless ($fh);
if (!ref($fh) or ! $fh->can('getline')) {
$fh = $class->open_file_for_reading($fh);
}
my @line_cb;
my $line_preprocessor = sub {};
while( my $arg = shift ) {
if ($arg eq 'line_preprocessor') {
$line_preprocessor = shift;
Carp::croak('The line_preprocessor must be a CODE ref') unless reftype($line_preprocessor) eq 'CODE';
} elsif (blessed($arg) and blessed($arg) eq 'Regexp') { # reftype() returns SCALAR for regexes on perl5.10
my $re = $arg;
my $cb = shift;
Carp::croak("Expected CODE ref after regex $re, but got " . ref($cb))
unless (reftype($cb) eq 'CODE');
my $wrapped_cb = sub {
if ($_[0] =~ $re) {
$cb->(@_);
}
};
push @line_cb, $wrapped_cb;
} elsif (reftype($arg) eq 'CODE') {
push @line_cb, $arg;
} else {
Carp::croak("Unexpected argument to iterate_file_lines: $arg");
}
}
my $lines_read = 0;
while(my $line = $fh->getline) {
$lines_read++;
my @preprocessed = $line_preprocessor->($line);
foreach my $cb (@line_cb) {
$cb->($line, @preprocessed);
}
}
return($lines_read || '0 but true');
}
####
####
my $arch_os;
sub arch_os {
unless ($arch_os) {
$arch_os = `uname -m`;
chomp($arch_os);
}
return $arch_os;
}
#####
# Methods dealing with user names, groups, etc
#####
sub user_id {
return $<;
}
sub username {
my $class = shift;
state $username = $ENV{'REMOTE_USER'};
return $username if $username;
my $user_id = $class->user_id;
for my $try (1..5) {
$username = getpwuid($user_id);
return $username if $username;
#This is a hack!
#Sometimes our machines fail to get a result from getpwuid() on the first try.
#If we wait a second, it tends to work on subsequent attempts!
$class->warning_message('Failed attempt %s to resolve username for user ID %s', $try, $user_id);
sleep 1;
}
$class->fatal_message('Could not determine name for user ID %s' , $user_id);
}
my $sudo_username = undef;
sub sudo_username {
my $class = shift;
unless(defined $sudo_username) {
$sudo_username = $class->_sudo_username;
}
$sudo_username;
}
#split out for ease of testing
sub _sudo_username {
my $class = shift;
my $who_output = $class->cmd_output_who_dash_m || '';
my $who_username = (split(/\s/,$who_output))[0] || '';
my $sudo_username = $who_username eq $class->username ? '' : $who_username;
$sudo_username ||= $ENV{'SUDO_USER'};
return ($sudo_username || '');
}
sub current_user_is_admin {
my $class = shift;
return Genome::Sys->current_user_has_role('admin');
}
sub current_user_has_role {
my ($class, $role_name) = @_;
my $user = $class->current_user;
return $class->_user_has_role($user, $role_name);
}
sub user_has_role {
my ($class, $username, $role_name) = @_;
my $user = Genome::Sys::User->get(username => $username);
return $class->_user_has_role($user, $role_name);
}
sub _user_has_role {
my ($class, $user, $role_name) = @_;
return 0 unless $user;
return $user->has_role_by_name($role_name);
}
sub current_user {
my $class = shift;
return Genome::Sys::User->get(username => $class->username);
}
sub cmd_output_who_dash_m {
return `who -m`;
}
sub user_is_member_of_group {
my ($class, $group_name) = @_;
my $user = Genome::Sys->username;
my $members = (getgrnam($group_name))[3];
return ($members && $user && $members =~ /\b$user\b/);
}
#####
# Various utility methods
#####
sub open_browser {
my ($class, @urls) = @_;
for my $url (@urls) {
if ($url !~ /:\/\//) {
$url = 'http://' . $url;
}
}
my $browser;
if ($^O eq 'darwin') {
$browser = "open";
}
elsif ($browser = `which firefox`) {
}
elsif ($browser = `which opera`) {
}
for my $url (@urls) {
Genome::Sys->shellcmd(cmd => "$browser $url");
}
return 1;
}
sub shellcmd {
# execute a shell command in a standard way instead of using system()\
# verifies inputs and ouputs, and does detailed logging...
# TODO: add IPC::Run's w/ timeout but w/o the io redirection...
my ($self,%params) = @_;
my %orig_params = %params;
my $cmd = delete $params{cmd};
my $output_files = delete $params{output_files};
my $input_files = delete $params{input_files};
my $output_directories = delete $params{output_directories};
my $input_directories = delete $params{input_directories};
my $allow_failed_exit_code = delete $params{allow_failed_exit_code};
my $allow_zero_size_output_files = delete $params{allow_zero_size_output_files};
my $set_pipefail = delete $params{set_pipefail};
my $allow_zero_size_input_files = delete $params{allow_zero_size_input_files};
my $skip_if_output_is_present = delete $params{skip_if_output_is_present};
my $redirect_stdout = delete $params{redirect_stdout};
my $redirect_stderr = delete $params{redirect_stderr};
my $dont_create_zero_size_files_for_missing_output =
delete $params{dont_create_zero_size_files_for_missing_output};
my $print_status_to_stderr = delete $params{print_status_to_stderr};
my $keep_dbh_connection_open = delete $params{keep_dbh_connection_open};
my @cmdline;
if (ref($cmd) and ref($cmd) eq 'ARRAY') {
if (defined $set_pipefail) {
Carp::confess "Cannot use set_pipefail with ARRAY form of cmd!";
}
@cmdline = @$cmd;
$cmd = join(' ', map $self->quote_for_shell($_), @cmdline);
}
$set_pipefail = 1 if not defined $set_pipefail;
$print_status_to_stderr = 1 if not defined $print_status_to_stderr;
$skip_if_output_is_present = 1 if not defined $skip_if_output_is_present;
if (%params) {
my @crap = %params;
Carp::confess("Unknown params passed to shellcmd: @crap");
}
my ($t1,$t2,$elapsed);
# Go ahead and print the status message if the cmd is shortcutting
if ($output_files and @$output_files) {
my @found_outputs = grep { -e $_ } grep { not -p $_ } @$output_files;
if ($skip_if_output_is_present
and @$output_files == @found_outputs
) {
$self->status_message(
"SKIP RUN (output is present): $cmd\n\t"
. join("\n\t",@found_outputs)
);
return 1;
}
}
my $old_status_cb = undef;
unless ($print_status_to_stderr) {
$old_status_cb = Genome::Sys->message_callback('status');
# This will avoid setting the callback to print to stderr
# NOTE: we must set the callback to undef for the default behaviour(see below)
Genome::Sys->message_callback('status',sub{});
}
if ($input_files and @$input_files) {
my @missing_inputs;
if ($allow_zero_size_input_files) {
@missing_inputs = grep { not -e $_ } grep { not -p $_ } @$input_files;
} else {
@missing_inputs = grep { not -s $_ } grep { not -p $_ } @$input_files;
}
if (@missing_inputs) {
Carp::croak("CANNOT RUN (missing input files): $cmd\n\t"
. join("\n\t", map { -e $_ ? "(empty) $_" : $_ } @missing_inputs));
}
}
if ($input_directories and @$input_directories) {
my @missing_inputs = grep { not -d $_ } @$input_directories;
if (@missing_inputs) {
Carp::croak("CANNOT RUN (missing input directories): $cmd\n\t"
. join("\n\t", @missing_inputs));
}
}
# disconnect the db handle in case this is about to take awhile
$self->disconnect_default_handles unless $keep_dbh_connection_open;
my $sys_pause_shellcmd = Genome::Config::get('sys_pause_shellcmd');
if ($sys_pause_shellcmd and $cmd =~ $sys_pause_shellcmd) {
my $file = '/tmp/GENOME_SYS_PAUSE.' . $$;
$self->warning_message("RUN MANUALLY (and remove $file afterward): $cmd");
Genome::Sys->write_file($file,$cmd . "\n");
my $msg_time = time;
while (-e $file) {
sleep 3;
if (time - $msg_time > (15*60)) {
$msg_time = time;
$self->warning_message("...waiting for $file to be removed after running command");
}
}
$self->warning_message("resuming execution presuming the command was run manually");
}
else {
$self->status_message("RUN: $cmd");
$t1 = time();
my $system_retval;
eval {
# Use fork/exec here so we can redirect stdout and/or stderr in the child and
# not have to worry about resetting them after the child process is done.
# Note to the future: FCGI ties STDOUT and STDERR and does something with them
# that means you can't open() them with typeglobs or references. See commit 0d56bbc
my $pid = fork();
if (!defined $pid) {
# error
die "Couldn't fork: $!";
} elsif ($pid) {
# parent
waitpid($pid, 0);
$system_retval = $?;
print STDOUT "\n" unless $redirect_stdout; # add a new line so that bad programs don't break TAP, etc.
} else {
# child
if ($redirect_stdout) {
open(STDOUT, '>', $redirect_stdout) || die "Can't redirect stdout to $redirect_stdout: $!";
}
if ($redirect_stderr) {
open(STDERR, '>', $redirect_stderr) || die "Can't redirect stderr to $redirect_stderr: $!";
}
# Set -o pipefail ensures the command will fail if it contains pipes and intermediate pipes fail.
# Export SHELLOPTS ensures that if there are nested "bash -c"'s, each will inherit pipefail
my $shellopts_part = 'export SHELLOPTS;';
if ($set_pipefail) {
$shellopts_part = "set -o pipefail; $shellopts_part";
} else {
$shellopts_part = "set +o pipefail; $shellopts_part";
}
{ # POE sets a handler to ignore SIG{PIPE}, that makes the
# pipefail option useless.
local $SIG{PIPE} = 'DEFAULT';
unless (@cmdline) {
@cmdline = ('bash', '-c', "$shellopts_part $cmd");
}
exec { $cmdline[0] } (@cmdline)
or do {
print STDERR "Can't exec: $!\nCommand line was: ",join(' ', @cmdline),"\n";
exit(127);
};
}
}
};
my $exception = $@;
if ($exception) {
Carp::croak("EXCEPTION RUNNING COMMAND. Failed to execute: $cmd\n\tException was: $exception");
}
my $child_exit_code = $system_retval >> 8;
$t2 = time();
$elapsed = $t2-$t1;
if ( $system_retval == -1 ) {
Carp::croak("ERROR RUNNING COMMAND. Failed to execute: $cmd\n\tError was: $!");
} elsif ( $system_retval & 127 ) {
my $signal = $system_retval & 127;
my $withcore = ( $system_retval & 128 ) ? 'with' : 'without';
Carp::croak("COMMAND KILLED. Signal $signal, $withcore coredump: $cmd");
} elsif ($child_exit_code != 0) {
if ($child_exit_code == 141) {
my ($package, $filename, $line) = caller(0);
my $msg = "SIGPIPE was recieved by command but IGNORED! cmd: '$cmd' in $package at $filename line $line";
$self->error_message($msg);
} elsif ($allow_failed_exit_code) {
Carp::carp("TOLERATING Exit code $child_exit_code from: $cmd");
} else {
Carp::croak("ERROR RUNNING COMMAND. Exit code $child_exit_code from: $cmd\nSee the command's captured STDERR (if it exists) for more information");
}
}
}
my @missing_output_files;
if ($output_files and @$output_files) {
@missing_output_files = grep { not -s $_ } grep { not -p $_ } @$output_files;
}
if (@missing_output_files) {
if ($allow_zero_size_output_files
#and @$output_files == @missing_output_files
# XXX This causes the command to fail if only a few of many files are empty, despite
# that the option 'allow_zero_size_output_files' was given. New behavior is to warn
# in either circumstance, and to warn that old behavior is no longer present in cases
# where the command would've failed
) {
if (@$output_files == @missing_output_files) {
Carp::carp("ALL output files were empty for command: $cmd");
} else {
Carp::carp("SOME (but not all) output files were empty for command " .
"(PLEASE NOTE that earlier versions of Genome::Sys->shellcmd " .
"would fail in this circumstance): $cmd");
}
if ($dont_create_zero_size_files_for_missing_output) {
@missing_output_files = (); # reset the list of missing output files
@missing_output_files =
grep { not -e $_ } grep { not -p $_ } @$output_files; # rescan for only missing files
} else {
for my $output_file (@missing_output_files) {
Carp::carp("ALLOWING zero size output file '$output_file' for command: $cmd");
my $fh = $self->open_file_for_writing($output_file);
unless ($fh) {
Carp::croak("failed to open $output_file for writing to replace missing output file: $!");
}
$fh->close;
}
@missing_output_files = ();
}
}
}
my @missing_output_directories;
if ($output_directories and @$output_directories) {
@missing_output_directories = grep { not -s $_ } grep { not -p $_ } @$output_directories;
}
if (@missing_output_files or @missing_output_directories) {
for (@$output_files) {
if (-e $_) {
unlink $_ or Carp::croak("Can't unlink $_: $!");
}
}
Carp::croak("MISSING OUTPUTS! "
. join(', ', @missing_output_files)
. " "
. join(', ', @missing_output_directories));
}
unless ($print_status_to_stderr) {
# Setting to the original behaviour (or default)
Genome::Sys->message_callback('status',$old_status_cb);
}
if (Genome::Config::get('sys_log_detail')) {
my $msg = encode_json({%orig_params, t1 => $t1, t2 => $t2, elapsed => $elapsed });
Genome::Sys->debug_message(qq|$msg|)
}
return 1;
}
sub capture {
my $class = shift;
require IPC::System::Simple;
return IPC::System::Simple::capture(@_);
}
sub disconnect_default_handles {
my $class = shift;
for my $ds (qw(Genome::DataSource::GMSchema Genome::DataSource::Oltp)) {
if($ds->has_default_handle) {
$class->debug_message("Disconnecting $ds default handle.");
$ds->disconnect_default_dbh();
}
}
return 1;
}
sub retry {
my %args = Params::Validate::validate(
@_, {
callback => { type => CODEREF },
tries => {
type => SCALAR,
callbacks => {
'is an integer' => sub { shift =~ /^\d+$/ },
'is greater than zero' => sub { shift > 0 },
},
},
delay => {
type => SCALAR,
callbacks => {
'is an integer' => sub { shift =~ /^\d+$/ },
'is greater than, or equal to, zero' => sub { shift >= 0 },
},
},
},
);
my $rv;
while ($args{tries} > 0) {
$args{tries}--;
$rv = $args{callback}->();
last if $rv;
sleep $args{delay};
}
return $rv;
}
sub _unpreserved_permissions {
my ($class, $oldname, $newname, $func) = @_;
if ( -l $oldname) {
return $func->();
}
# mimic (anticipated) CORE::rename errors
if ( ! -e $oldname ) {
$! = &Errno::ENOENT;
return;
}
if ( -f $oldname && -d $newname ) {
$! = &Errno::EISDIR;
return;
}
if ( -d $oldname && -f $newname ) {
$! = &Errno::ENOTDIR;
return;
}
if ( -d $oldname && -d $newname ) {
opendir(my $dh, $newname)
or return;
while ( my $entry = readdir $dh ) {
if ( $entry ne '.' && $entry ne '..' ) {
$! = &Errno::ENOTEMPTY;
return;
}
}
closedir($dh) or die($!);
}
# If target doesn't exist then create it so we can copy it's mode, gid, and
# uid. I am not sure if it's appropriate to preserve an existing target's
# mode, gid, and uid (as opposed to destroying it and creating fresh).
if ( -f $oldname && ! -e $newname ) {
$class->touch($newname)
or return;
}
if ( -d $oldname && ! -e $newname ) {
mkdir($newname)
or return;
}
# preserve mode, gid, and uid
my $stat = stat($newname)
or return;
my $mode = $stat->mode;
my $gid = $stat->gid;
my $uid = $stat->uid;
$func->();
# restore mode, gid, and uid
chown($uid, $gid, $newname)
or return;
eval { mode($newname)->set_mode($mode) }
or return;
return 1;
}
sub _same_device {
my @paths = @_;
return (lstat($paths[0])->dev == lstat($paths[1])->dev);
}
sub rename {
my ($class, $oldname, $newname) = @_;
_unpreserved_permissions($class, $oldname, $newname, sub {
my $newparentdir = (File::Spec->splitpath($newname))[1];
if (!_same_device($oldname, $newparentdir)) {
confess 'cannot rename across devices, use move instead';
}
unless ( CORE::rename $oldname, $newname ) {
die qq(CORE::rename should never fail or we didn't do a good enough job mimicking it. Error was: $!);
}
});
}
sub move {
my ($class, $oldname, $newname) = @_;
_unpreserved_permissions($class, $oldname, $newname, sub {
unless ( File::Copy::move $oldname, $newname ) {
die qq(File::Copy::move should never fail or we didn't do a good enough job mimicking it. Error was: $!);
}
});
}
sub renamex {
my $class = shift;
unless ($class->rename(@_)) {
croak "rename failed: $!";
}
}
sub movex {
my $class = shift;
unless ($class->move(@_)) {
croak "move failed: $!";
}
}
sub touch {
my ($class, $path) = @_;
my $file = IO::File->new($path, 'a')
or return;
$file->close()
or croak $!;
# using the undef pair uses system's current time (better for NFS)
utime undef, undef, $path
or return;;
return 1;
}
1;
__END__
methods => [
dbpath => {
takes => ['name','version'],
uses => [],
returns => 'FilesystemPath',
doc => 'returns the path to a data set',
},
swpath => {
takes => ['name','version'],
uses => [],
returns => 'FilesystemPath',
doc => 'returns the path to an application installation',
},
]
# until we get the above into ur...
=pod
=head1 NAME
Genome::Sys
=head1 VERSION
This document describes Genome::Sys version 0.9.0.1.
=head1 SYNOPSIS
use Genome;
my $dir = Genome::Sys->db_path('cosmic', 'latest');
my $path = Genome::Sys->sw_path('htseq','0.5.3p9','htseq-count');
=head1 DESCRIPTION
Genome::Sys is a simple layer on top of OS-level concerns,
including those automatically handled by the analysis system,
like database cache locations.
=head1 METHODS
=head2 sw_path($pkg_name,$version) or sw_path($pkg_name,$version,$executable_basename)
Return the path to a given executable, library, or package.
The 3-parameter variation is only for packages which have multiple executables.
This is a wrapper for the OS-specific strategy for managing multiple versions of software packages,
(i.e. /etc/alternatives for Debian/Ubuntu)
The 'sw' configuration variable contains a colon-separated lists of paths which
this falls back to. The default value is /var/lib/genome/sw/.
=head3 ex:
$path = Genome::Sys->sw_path("tophat","2.0.7");
$path = Genome::Sys->sw_path("htseq","0.5.3p9","htseq-count");
=head2 sw_versions($pkg_name) or sw_versions($pkg_name,$executable_basename);
Return a list of all installed versions of a given executable in order.
=head3 ex:
@versions = Genome::Sys->sw_versions("tophat");
@versions = Genome::Sys->sw_versions("htseq","htseq-count");
=head2 sw_version_path_map($pkg_name) or sw_version_path_map($pkg_name,$executable_basename)
Return a map of version numbers to executable paths.
=head3 ex:
%map = Genome::Sys->sw_version_path_map("tophat");
%map = Genome::Sys->sw_version_path_map("htseq","htseq-count");
=head2 db_path($name,$version)
Return the path to the preprocessed copy of the specified database.
(This is in lieu of a consistent API for the database in question.)
The 'db' configuration variable contains a colon-separated lists of paths which
this falls back to. The default value is /var/lib/genome/db/.
=head3 ex:
my $dir1 = Genome::Sys->db_path('cosmic', 'latest');
=head2 Genome::Sys->open_file_for_reading($filename);
Opens the given filename for reading and returns a filehandle for it.
open_file_for_reading() throws an exception for several conditions:
=over 2
=item * The given filename does not exist
=item * The given filename is not readable
=item * The given filename is not a plain file (for example, a directory)
=back
=head2 Genome::Sys->read_file($filename);
Read in the given filename and return the contents. If $filename is C<->,
then it reads from STDIN.
If called in list context, it returns a list with one line per list element.
If called in scalar context, it returns a single string with the entire file
contents.
=head2 Genome::Sys->open_file_for_writing($filename);
Opens the given filename for writing and returns a filehandle for it.
open_file_for_writing() throws an exception for several conditions:
=over 2
=item * $filename exists _and_ the file has non-zero size
=item * The directory containing $filename does not exist
=item * The directory containing $filename is not writable
=back
=head2 Genome::Sys->write_file($filename, @lines);
Creates a file with the given name and writes the contents of @lines to it.
If $filename is C<->, then it writes to STDOUT.
write_file() throws the same exceptions as open_file_for_writing().
=head2 Genome::Sys->iterate_file_lines($filename_or_handle,
line_preprocessor => $preprocessor_code,
$line_callback1, $line_callback2, ...,
$regex1, $regex_callback1, $regex2, $regex_callback2, ...);
If given a file name as the first argument, calls Genome::Sys->open_file_for_writing()
first. The first file/handle argument is required, all others are optional.
Reads the given file/filehandle one line at a time. If a line_preprocessor was
specified, its coderef is called in list context with the line as its only
argument. Each callback is then called. Callback arguments are the line from
the file followed by the return values from the line_preprocessor.
Callbacks preceded by a regex (created by qr) are only called if the regex
matches the line. Captured groups are available inside these callbacks using
the normal variables $1, $2, etc.
=cut
| Java |
var complexExample = {
"edges" : [
{
"id" : 0,
"sbo" : 15,
"source" : "Reactome:109796",
"target" : "Reactome:177938"
},
{
"id" : 1,
"sbo" : 15,
"source" : "MAP:Cb15996_CY_Reactome:177938",
"target" : "Reactome:177938"
},
{
"id" : 2,
"sbo" : 11,
"source" : "Reactome:177938",
"target" : "MAP:Cb17552_CY_Reactome:177938"
},
{
"id" : 3,
"sbo" : 11,
"source" : "Reactome:177938",
"target" : "Reactome:109783"
},
{
"id" : 4,
"sbo" : 13,
"source" : "Reactome:179820",
"target" : "Reactome:177938"
},
{
"id" : 5,
"sbo" : 15,
"source" : "Reactome:179845",
"target" : "Reactome:177934"
},
{
"id" : 6,
"sbo" : 15,
"source" : "MAP:Cs56-65-5_CY_Reactome:177934",
"target" : "Reactome:177934"
},
{
"id" : 7,
"sbo" : 11,
"source" : "Reactome:177934",
"target" : "MAP:Cb16761_CY_Reactome:177934"
},
{
"id" : 8,
"sbo" : 11,
"source" : "Reactome:177934",
"target" : "Reactome:179882"
},
{
"id" : 9,
"sbo" : 13,
"source" : "Reactome:179845",
"target" : "Reactome:177934"
},
{
"id" : 10,
"sbo" : 15,
"source" : "Reactome:109844",
"target" : "Reactome:109867"
},
{
"id" : 11,
"sbo" : 11,
"source" : "Reactome:109867",
"target" : "Reactome:109845"
},
{
"id" : 12,
"sbo" : 15,
"source" : "Reactome:29358_MAN:R12",
"target" : "MAN:R12"
},
{
"id" : 13,
"sbo" : 15,
"source" : "Reactome:198710",
"target" : "MAN:R12"
},
{
"id" : 14,
"sbo" : 11,
"source" : "MAN:R12",
"target" : "Reactome:113582_MAN:R12"
},
{
"id" : 15,
"sbo" : 11,
"source" : "MAN:R12",
"target" : "Reactome:198666"
},
{
"id" : 16,
"sbo" : 13,
"source" : "Reactome:109845",
"target" : "MAN:R12"
},
{
"id" : 17,
"sbo" : 15,
"source" : "MAP:Cs56-65-5_CY_Reactome:109841",
"target" : "Reactome:109841"
},
{
"id" : 18,
"sbo" : 15,
"source" : "Reactome:109794",
"target" : "Reactome:109841"
},
{
"id" : 19,
"sbo" : 11,
"source" : "Reactome:109841",
"target" : "MAP:Cb16761_CY_Reactome:109841"
},
{
"id" : 20,
"sbo" : 11,
"source" : "Reactome:109841",
"target" : "Reactome:109793"
},
{
"id" : 21,
"sbo" : 11,
"source" : "Reactome:109841",
"target" : "MAP:UQ02750_CY_pho218pho222"
},
{
"id" : 22,
"sbo" : 13,
"source" : "Reactome:112406",
"target" : "Reactome:109841"
},
{
"id" : 23,
"sbo" : 15,
"source" : "Reactome:179882",
"target" : "Reactome:177940"
},
{
"id" : 24,
"sbo" : 15,
"source" : "Reactome:179849",
"target" : "Reactome:177940"
},
{
"id" : 25,
"sbo" : 11,
"source" : "Reactome:177940",
"target" : "Reactome:180348"
},
{
"id" : 26,
"sbo" : 15,
"source" : "Reactome:109788",
"target" : "Reactome:109802"
},
{
"id" : 27,
"sbo" : 15,
"source" : "MAP:UP31946_CY",
"target" : "Reactome:109802"
},
{
"id" : 28,
"sbo" : 11,
"source" : "Reactome:109802",
"target" : "Reactome:109789"
},
{
"id" : 29,
"sbo" : 15,
"source" : "Reactome:109787",
"target" : "Reactome:109803"
},
{
"id" : 30,
"sbo" : 15,
"source" : "Reactome:109783",
"target" : "Reactome:109803"
},
{
"id" : 31,
"sbo" : 11,
"source" : "Reactome:109803",
"target" : "Reactome:109788"
},
{
"id" : 32,
"sbo" : 11,
"source" : "Reactome:109803",
"target" : "MAP:UP31946_CY"
},
{
"id" : 33,
"sbo" : 15,
"source" : "MAP:Cs56-65-5_CY_Reactome:177930",
"target" : "Reactome:177930"
},
{
"id" : 34,
"sbo" : 15,
"source" : "Reactome:180348",
"target" : "Reactome:177930"
},
{
"id" : 35,
"sbo" : 11,
"source" : "Reactome:177930",
"target" : "Reactome:180286"
},
{
"id" : 36,
"sbo" : 11,
"source" : "Reactome:177930",
"target" : "MAP:Cb16761_CY_Reactome:177930"
},
{
"id" : 37,
"sbo" : 13,
"source" : "Reactome:180348",
"target" : "Reactome:177930"
},
{
"id" : 38,
"sbo" : 15,
"source" : "Reactome:109796",
"target" : "Reactome:177945"
},
{
"id" : 39,
"sbo" : 15,
"source" : "MAP:Cb15996_CY_Reactome:177945",
"target" : "Reactome:177945"
},
{
"id" : 40,
"sbo" : 11,
"source" : "Reactome:177945",
"target" : "MAP:Cb17552_CY_Reactome:177945"
},
{
"id" : 41,
"sbo" : 11,
"source" : "Reactome:177945",
"target" : "Reactome:109783"
},
{
"id" : 42,
"sbo" : 13,
"source" : "Reactome:180331",
"target" : "Reactome:177945"
},
{
"id" : 43,
"sbo" : 15,
"source" : "Reactome:109793",
"target" : "MAN:R1"
},
{
"id" : 44,
"sbo" : 15,
"source" : "MAP:UP36507_CY",
"target" : "MAN:R1"
},
{
"id" : 45,
"sbo" : 11,
"source" : "MAN:R1",
"target" : "Reactome:109795"
},
{
"id" : 46,
"sbo" : 15,
"source" : "Reactome:109843",
"target" : "Reactome:109863"
},
{
"id" : 47,
"sbo" : 11,
"source" : "Reactome:109863",
"target" : "MAP:UP27361_CY_pho202pho204"
},
{
"id" : 48,
"sbo" : 11,
"source" : "Reactome:109863",
"target" : "MAP:UQ02750_CY_pho218pho222"
},
{
"id" : 49,
"sbo" : 15,
"source" : "MAP:Cs56-65-5_CY_Reactome:177933",
"target" : "Reactome:177933"
},
{
"id" : 50,
"sbo" : 15,
"source" : "Reactome:180301",
"target" : "Reactome:177933"
},
{
"id" : 51,
"sbo" : 11,
"source" : "Reactome:177933",
"target" : "MAP:Cb16761_CY_Reactome:177933"
},
{
"id" : 52,
"sbo" : 11,
"source" : "Reactome:177933",
"target" : "Reactome:180337"
},
{
"id" : 53,
"sbo" : 13,
"source" : "Reactome:180301",
"target" : "Reactome:177933"
},
{
"id" : 54,
"sbo" : 15,
"source" : "MAP:UQ02750_CY",
"target" : "MAN:R2"
},
{
"id" : 55,
"sbo" : 15,
"source" : "Reactome:109793",
"target" : "MAN:R2"
},
{
"id" : 56,
"sbo" : 11,
"source" : "MAN:R2",
"target" : "Reactome:109794"
},
{
"id" : 57,
"sbo" : 15,
"source" : "MAP:UP04049_CY_pho259pho621",
"target" : "Reactome:109804"
},
{
"id" : 58,
"sbo" : 15,
"source" : "MAP:UP31946_CY",
"target" : "Reactome:109804"
},
{
"id" : 59,
"sbo" : 11,
"source" : "Reactome:109804",
"target" : "Reactome:109787"
},
{
"id" : 60,
"sbo" : 15,
"source" : "MAP:Cs56-65-5_CY_Reactome:109852",
"target" : "Reactome:109852"
},
{
"id" : 61,
"sbo" : 15,
"source" : "Reactome:109795",
"target" : "Reactome:109852"
},
{
"id" : 62,
"sbo" : 11,
"source" : "Reactome:109852",
"target" : "MAP:Cb16761_CY_Reactome:109852"
},
{
"id" : 63,
"sbo" : 11,
"source" : "Reactome:109852",
"target" : "Reactome:109793"
},
{
"id" : 64,
"sbo" : 11,
"source" : "Reactome:109852",
"target" : "Reactome:109848"
},
{
"id" : 65,
"sbo" : 13,
"source" : "Reactome:112406",
"target" : "Reactome:109852"
},
{
"id" : 66,
"sbo" : 15,
"source" : "MAP:Cs56-65-5_CY_Reactome:177939",
"target" : "Reactome:177939"
},
{
"id" : 67,
"sbo" : 15,
"source" : "Reactome:179856",
"target" : "Reactome:177939"
},
{
"id" : 68,
"sbo" : 11,
"source" : "Reactome:177939",
"target" : "MAP:Cb16761_CY_Reactome:177939"
},
{
"id" : 69,
"sbo" : 11,
"source" : "Reactome:177939",
"target" : "Reactome:179838"
},
{
"id" : 70,
"sbo" : 13,
"source" : "Reactome:179791",
"target" : "Reactome:177939"
},
{
"id" : 71,
"sbo" : 15,
"source" : "Reactome:180286",
"target" : "MAN:R25"
},
{
"id" : 72,
"sbo" : 15,
"source" : "MAP:C3",
"target" : "MAN:R25"
},
{
"id" : 73,
"sbo" : 15,
"source" : "MAP:C2",
"target" : "MAN:R25"
},
{
"id" : 74,
"sbo" : 11,
"source" : "MAN:R25",
"target" : "Reactome:179791"
},
{
"id" : 75,
"sbo" : 15,
"source" : "MAP:Cx114",
"target" : "Reactome:177936"
},
{
"id" : 76,
"sbo" : 15,
"source" : "Reactome:180337",
"target" : "Reactome:177936"
},
{
"id" : 77,
"sbo" : 11,
"source" : "Reactome:177936",
"target" : "Reactome:180331"
},
{
"id" : 78,
"sbo" : 15,
"source" : "MAP:C3",
"target" : "MAN:R28"
},
{
"id" : 79,
"sbo" : 15,
"source" : "MAP:C2",
"target" : "MAN:R28"
},
{
"id" : 80,
"sbo" : 15,
"source" : "Reactome:109783",
"target" : "MAN:R28"
},
{
"id" : 81,
"sbo" : 11,
"source" : "MAN:R28",
"target" : "MAN:C10"
},
{
"id" : 82,
"sbo" : 15,
"source" : "Reactome:179847",
"target" : "Reactome:177922"
},
{
"id" : 83,
"sbo" : 11,
"source" : "Reactome:177922",
"target" : "Reactome:179845"
},
{
"id" : 84,
"sbo" : 15,
"source" : "Reactome:109838",
"target" : "Reactome:109860"
},
{
"id" : 85,
"sbo" : 15,
"source" : "MAP:Cs56-65-5_CY_Reactome:109860",
"target" : "Reactome:109860"
},
{
"id" : 86,
"sbo" : 11,
"source" : "Reactome:109860",
"target" : "MAP:Cb16761_CY_Reactome:109860"
},
{
"id" : 87,
"sbo" : 11,
"source" : "Reactome:109860",
"target" : "Reactome:109843"
},
{
"id" : 88,
"sbo" : 13,
"source" : "Reactome:109838",
"target" : "Reactome:109860"
},
{
"id" : 89,
"sbo" : 20,
"source" : "Reactome:112340",
"target" : "Reactome:109860"
},
{
"id" : 90,
"sbo" : 15,
"source" : "MAP:Cx114",
"target" : "Reactome:177943"
},
{
"id" : 91,
"sbo" : 15,
"source" : "Reactome:179882",
"target" : "Reactome:177943"
},
{
"id" : 92,
"sbo" : 11,
"source" : "Reactome:177943",
"target" : "Reactome:179820"
},
{
"id" : 93,
"sbo" : 15,
"source" : "MAP:UP27361_CY_pho202pho204",
"target" : "Reactome:109865"
},
{
"id" : 94,
"sbo" : 11,
"source" : "Reactome:109865",
"target" : "Reactome:109844"
},
{
"id" : 95,
"sbo" : 15,
"source" : "Reactome:179882",
"target" : "Reactome:177925"
},
{
"id" : 96,
"sbo" : 15,
"source" : "MAP:UP29353_CY",
"target" : "Reactome:177925"
},
{
"id" : 97,
"sbo" : 11,
"source" : "Reactome:177925",
"target" : "Reactome:180301"
},
{
"id" : 98,
"sbo" : 15,
"source" : "Reactome:109789",
"target" : "Reactome:109829"
},
{
"id" : 99,
"sbo" : 15,
"source" : "MAP:Cs56-65-5_CY_Reactome:109829",
"target" : "Reactome:109829"
},
{
"id" : 100,
"sbo" : 11,
"source" : "Reactome:109829",
"target" : "MAP:Cb16761_CY_Reactome:109829"
},
{
"id" : 101,
"sbo" : 11,
"source" : "Reactome:109829",
"target" : "Reactome:109793"
},
{
"id" : 102,
"sbo" : 13,
"source" : "Reactome:163338",
"target" : "Reactome:109829"
},
{
"id" : 103,
"sbo" : 15,
"source" : "MAP:UP27361_CY",
"target" : "Reactome:109857"
},
{
"id" : 104,
"sbo" : 15,
"source" : "MAP:UQ02750_CY_pho218pho222",
"target" : "Reactome:109857"
},
{
"id" : 105,
"sbo" : 11,
"source" : "Reactome:109857",
"target" : "Reactome:109838"
},
{
"id" : 106,
"sbo" : 15,
"source" : "Reactome:179863",
"target" : "Reactome:177942"
},
{
"id" : 107,
"sbo" : 15,
"source" : "Reactome:179837",
"target" : "Reactome:177942"
},
{
"id" : 108,
"sbo" : 11,
"source" : "Reactome:177942",
"target" : "Reactome:179847"
},
{
"id" : 109,
"sbo" : 20,
"source" : "Reactome:197745",
"target" : "Reactome:177942"
}
],
"nodes" : [
{
"data" : {
"compartment" : "MAP:Plasmamembrane",
"label" : "p21 RAS:GDP",
"modification" : [],
"ref" : "Reactome:109796",
"subnodes" : [
"MAP:Cb17552_CY_Reactome:109796_1",
"Reactome:109782_Reactome:109796_1"
],
"x" : 1889,
"y" : 2293
},
"id" : "Reactome:109796",
"is_abstract" : 0,
"sbo" : 253,
"type" : "Complex"
},
{
"data" : {
"compartment" : "MAP:Plasmamembrane",
"label" : "RAS:RAF:14-3-3",
"modification" : [],
"ref" : "Reactome:109789",
"subnodes" : [
"Reactome:109788_Reactome:109789_1",
"MAP:UP31946_CY_Reactome:109789_1"
],
"x" : 1757,
"y" : 1680
},
"id" : "Reactome:109789",
"is_abstract" : 0,
"sbo" : 253,
"type" : "Complex"
},
{
"data" : {
"compartment" : "MAP:Cytosol",
"label" : "PI3K alpha",
"modification" : [],
"ref" : "MAP:Cx156"
},
"id" : "MAP:Cx156",
"is_abstract" : 1,
"sbo" : 253,
"type" : "Complex"
},
{
"data" : {
"compartment" : "MAP:Plasmamembrane",
"label" : "Activated RAF1 complex",
"modification" : [],
"ref" : "Reactome:109793",
"subnodes" : [
"MAP:UP31946_CY_Reactome:109793_1",
"Reactome:109783_Reactome:109793_1",
"Reactome:109792_Reactome:109793_1"
],
"x" : 2402,
"y" : 1480
},
"id" : "Reactome:109793",
"is_abstract" : 0,
"sbo" : 253,
"type" : "Complex"
},
{
"data" : {
"compartment" : "MAP:Plasmamembrane",
"label" : "EGF:Phospho-EGFR-SHC",
"modification" : [],
"ref" : "Reactome:180301",
"subnodes" : [
"Reactome:179882_Reactome:180301_1",
"MAP:UP29353_CY_Reactome:180301_1"
],
"x" : 1478,
"y" : 2706
},
"id" : "Reactome:180301",
"is_abstract" : 0,
"sbo" : 253,
"type" : "Complex"
},
{
"data" : {
"compartment" : "MAP:Nucleus",
"label" : "phospho-ERK-1 dimer",
"modification" : [],
"ref" : "Reactome:109845",
"subnodes" : [
"Reactome:112359_Reactome:109845_1",
"Reactome:112359_Reactome:109845_2"
],
"x" : 3261,
"y" : 202
},
"id" : "Reactome:109845",
"is_abstract" : 0,
"sbo" : 253,
"type" : "Complex"
},
{
"data" : {
"compartment" : "MAP:Cytosol",
"label" : "GRB2:Phospho-GAB1",
"modification" : [],
"ref" : "Reactome:180304"
},
"id" : "Reactome:180304",
"is_abstract" : 1,
"sbo" : 253,
"type" : "Complex"
},
{
"data" : {
"compartment" : "MAP:Plasmamembrane",
"label" : "EGF:Phospho-EGFR",
"modification" : [],
"ref" : "Reactome:179860"
},
"id" : "Reactome:179860",
"is_abstract" : 1,
"sbo" : 253,
"type" : "Complex"
},
{
"data" : {
"compartment" : "MAP:Plasmamembrane",
"label" : "GAB1:GRB2-EGF-Phospho-EGFR dimer",
"modification" : [],
"ref" : "Reactome:180348",
"subnodes" : [
"Reactome:179882_Reactome:180348_1",
"Reactome:179849_Reactome:180348_1"
],
"x" : 477,
"y" : 2293
},
"id" : "Reactome:180348",
"is_abstract" : 0,
"sbo" : 253,
"type" : "Complex"
},
{
"data" : {
"compartment" : "MAP:Cytosol",
"label" : "phospho-ERK-1:MEK1",
"modification" : [],
"ref" : "Reactome:109843",
"subnodes" : [
"MAP:UP27361_CY_pho202pho204_Reactome:109843_1",
"MAP:UQ02750_CY_pho218pho222_Reactome:109843_1"
],
"x" : 3519,
"y" : 722
},
"id" : "Reactome:109843",
"is_abstract" : 0,
"sbo" : 253,
"type" : "Complex"
},
{
"data" : {
"compartment" : "MAP:Plasmamembrane",
"label" : "RAS:RAF",
"modification" : [],
"ref" : "Reactome:109788",
"subnodes" : [
"MAP:UP04049_CY_pho259pho621_Reactome:109788_1",
"Reactome:109783_Reactome:109788_1"
],
"x" : 1569,
"y" : 1880
},
"id" : "Reactome:109788",
"is_abstract" : 0,
"sbo" : 253,
"type" : "Complex"
},
{
"data" : {
"compartment" : "MAP:Cytosol",
"label" : "GRB2:GAB1",
"modification" : [],
"ref" : "Reactome:179849",
"subnodes" : [
"MAP:UP62993_CY_Reactome:179849_1",
"MAP:UQ13480_CY_Reactome:179849_1"
],
"x" : 686,
"y" : 2506
},
"id" : "Reactome:179849",
"is_abstract" : 0,
"sbo" : 253,
"type" : "Complex"
},
{
"data" : {
"compartment" : "MAP:Plasmamembrane",
"label" : "GRB2:Phospho GAB1-EGF-Phospho-EGFR dimer",
"modification" : [],
"ref" : "Reactome:180286",
"subnodes" : [
"Reactome:180304_Reactome:180286_1",
"Reactome:179882_Reactome:180286_1"
],
"x" : 770,
"y" : 2080
},
"id" : "Reactome:180286",
"is_abstract" : 0,
"sbo" : 253,
"type" : "Complex"
},
{
"data" : {
"compartment" : "MAP:Plasmamembrane",
"label" : "EGF:EGFR dimer",
"modification" : [],
"ref" : "Reactome:179845",
"subnodes" : [
"Reactome:179847_Reactome:179845_1",
"Reactome:179847_Reactome:179845_2"
],
"x" : 1331,
"y" : 3106
},
"id" : "Reactome:179845",
"is_abstract" : 0,
"sbo" : 253,
"type" : "Complex"
},
{
"data" : {
"compartment" : "MAP:Cytosol",
"label" : "phospho-ERK-1 dimer",
"modification" : [],
"ref" : "Reactome:109844",
"subnodes" : [
"MAP:UP27361_CY_pho202pho204_Reactome:109844_1",
"MAP:UP27361_CY_pho202pho204_Reactome:109844_2"
],
"x" : 3261,
"y" : 378
},
"id" : "Reactome:109844",
"is_abstract" : 0,
"sbo" : 253,
"type" : "Complex"
},
{
"data" : {
"compartment" : "MAP:Plasmamembrane",
"label" : "EGF:EGFR",
"modification" : [],
"ref" : "Reactome:179847",
"subnodes" : [
"Reactome:179863_Reactome:179847_1",
"Reactome:179837_Reactome:179847_1"
],
"x" : 1331,
"y" : 3294
},
"id" : "Reactome:179847",
"is_abstract" : 0,
"sbo" : 253,
"type" : "Complex"
},
{
"data" : {
"compartment" : "MAP:Cytosol",
"label" : "GRB2:SOS1",
"modification" : [],
"ref" : "MAP:Cx114",
"subnodes" : [
"MAP:UQ07889_CY_MAP:Cx114_1",
"MAP:UP62993_CY_MAP:Cx114_1"
],
"x" : 1555,
"y" : 2506
},
"id" : "MAP:Cx114",
"is_abstract" : 0,
"sbo" : 253,
"type" : "Complex"
},
{
"data" : {
"compartment" : "MAP:Plasmamembrane",
"label" : "EGF:Phospho-EGFR (Y992, Y1068, Y1086, Y1148, Y1173) dimer",
"modification" : [],
"ref" : "Reactome:179882",
"subnodes" : [
"Reactome:179860_Reactome:179882_1",
"Reactome:179860_Reactome:179882_2"
],
"x" : 967,
"y" : 2906
},
"id" : "Reactome:179882",
"is_abstract" : 0,
"sbo" : 253,
"type" : "Complex"
},
{
"data" : {
"compartment" : "MAP:Cytosol",
"label" : "MEK1:ERK-1",
"modification" : [],
"ref" : "Reactome:109838",
"subnodes" : [
"MAP:UP27361_CY_Reactome:109838_1",
"MAP:UQ02750_CY_pho218pho222_Reactome:109838_1"
],
"x" : 3806,
"y" : 898
},
"id" : "Reactome:109838",
"is_abstract" : 0,
"sbo" : 253,
"type" : "Complex"
},
{
"data" : {
"compartment" : "MAP:Plasmamembrane",
"label" : "RAS:GTP:PI3Ka",
"modification" : [],
"ref" : "MAN:C10",
"subnodes" : [
"MAP:Cx156_MAN:C10_1",
"Reactome:109783_MAN:C10_1"
],
"x" : 1292,
"y" : 1880
},
"id" : "MAN:C10",
"is_abstract" : 0,
"sbo" : 253,
"type" : "Complex"
},
{
"data" : {
"compartment" : "MAP:Cytosol",
"label" : "p-Raf1(S259,S621):14-3-3 protein beta/alpha",
"modification" : [],
"ref" : "Reactome:109787",
"subnodes" : [
"MAP:UP04049_CY_pho259pho621_Reactome:109787_1",
"MAP:UP31946_CY_Reactome:109787_1"
],
"x" : 2423,
"y" : 1680
},
"id" : "Reactome:109787",
"is_abstract" : 0,
"sbo" : 253,
"type" : "Complex"
},
{
"data" : {
"compartment" : "MAP:Plasmamembrane",
"label" : "GRB2:SOS-Phospho-SHC:EGF:Phospho-EGFR dimer",
"modification" : [],
"ref" : "Reactome:180331",
"subnodes" : [
"MAP:Cx114_Reactome:180331_1",
"Reactome:180337_Reactome:180331_1"
],
"x" : 2310,
"y" : 2293
},
"id" : "Reactome:180331",
"is_abstract" : 0,
"sbo" : 253,
"type" : "Complex"
},
{
"data" : {
"compartment" : "MAP:Plasmamembrane",
"label" : "Activated RAF1 complex:MEK2",
"modification" : [],
"ref" : "Reactome:109795",
"subnodes" : [
"Reactome:109793_Reactome:109795_1",
"MAP:UP36507_CY_Reactome:109795_1"
],
"x" : 2070,
"y" : 1267
},
"id" : "Reactome:109795",
"is_abstract" : 0,
"sbo" : 253,
"type" : "Complex"
},
{
"data" : {
"compartment" : "MAP:Cytosol",
"label" : "EGF:Phospho-EGFR-GRB2:GAB1:PI3Kreg:PI3Kcat",
"modification" : [],
"ref" : "Reactome:179791",
"subnodes" : [
"MAP:C3_Reactome:179791_1",
"Reactome:179882_Reactome:179791_1",
"MAP:C2_Reactome:179791_1",
"Reactome:179849_Reactome:179791_1"
],
"x" : 963,
"y" : 1880
},
"id" : "Reactome:179791",
"is_abstract" : 0,
"sbo" : 253,
"type" : "Complex"
},
{
"data" : {
"compartment" : "MAP:Plasmamembrane",
"label" : "Activated RAF1 complex:MEK1",
"modification" : [],
"ref" : "Reactome:109794",
"subnodes" : [
"MAP:UQ02750_CY_Reactome:109794_1",
"Reactome:109793_Reactome:109794_1"
],
"x" : 2762,
"y" : 1267
},
"id" : "Reactome:109794",
"is_abstract" : 0,
"sbo" : 253,
"type" : "Complex"
},
{
"data" : {
"compartment" : "MAP:Plasmamembrane",
"label" : "Activated RAF1 complex:MEK",
"modification" : [],
"ref" : "Reactome:112406",
"subnodes" : [
"Reactome:109793_Reactome:112406_1",
"Reactome:112398_Reactome:112406_1"
],
"x" : 2416,
"y" : 1267
},
"id" : "Reactome:112406",
"is_abstract" : 0,
"sbo" : 253,
"type" : "Complex"
},
{
"data" : {
"compartment" : "MAP:Plasmamembrane",
"label" : "EGF:Phospho-EGFR:Phospho-SHC",
"modification" : [],
"ref" : "Reactome:180337",
"subnodes" : [
"Reactome:180276_Reactome:180337_1",
"Reactome:179882_Reactome:180337_1"
],
"x" : 1945,
"y" : 2506
},
"id" : "Reactome:180337",
"is_abstract" : 0,
"sbo" : 253,
"type" : "Complex"
},
{
"data" : {
"compartment" : "MAP:Plasmamembrane",
"label" : "GRB2:SOS-EGF-Phospho-EGFR dimer",
"modification" : [],
"ref" : "Reactome:179820",
"subnodes" : [
"MAP:Cx114_Reactome:179820_1",
"Reactome:179882_Reactome:179820_1"
],
"x" : 1514,
"y" : 2293
},
"id" : "Reactome:179820",
"is_abstract" : 0,
"sbo" : 253,
"type" : "Complex"
},
{
"data" : {
"compartment" : "MAP:Plasmamembrane",
"label" : "p21 RAS:GTP",
"modification" : [],
"ref" : "Reactome:109783",
"subnodes" : [
"Reactome:109782_Reactome:109783_1",
"MAP:Cb15996_CY_Reactome:109783_1"
],
"x" : 1886,
"y" : 2080
},
"id" : "Reactome:109783",
"is_abstract" : 0,
"sbo" : 253,
"type" : "Complex"
},
{
"data" : {
"compartment" : "MAP:Cytosol",
"label" : "GDP",
"modification" : [],
"ref" : "MAP:Cb17552_CY"
},
"id" : "MAP:Cb17552_CY",
"is_abstract" : 1,
"sbo" : 247,
"type" : "SimpleCompound"
},
{
"data" : {
"compartment" : "MAP:Nucleus",
"label" : "ATP",
"modification" : [],
"ref" : "Reactome:29358"
},
"id" : "Reactome:29358",
"is_abstract" : 1,
"sbo" : 247,
"type" : "SimpleCompound"
},
{
"data" : {
"compartment" : "MAP:Cytosol",
"label" : "ATP",
"modification" : [],
"ref" : "MAP:Cs56-65-5_CY"
},
"id" : "MAP:Cs56-65-5_CY",
"is_abstract" : 1,
"sbo" : 247,
"type" : "SimpleCompound"
},
{
"data" : {
"compartment" : "MAP:Plasmamembrane",
"label" : "Phosphatidylinositol-4,5-bisphosphate",
"modification" : [],
"ref" : "Reactome:179856",
"x" : 543,
"y" : 1880
},
"id" : "Reactome:179856",
"is_abstract" : 0,
"sbo" : 247,
"type" : "SimpleCompound"
},
{
"data" : {
"compartment" : "MAP:Cytosol",
"label" : "ADP",
"modification" : [],
"ref" : "MAP:Cb16761_CY"
},
"id" : "MAP:Cb16761_CY",
"is_abstract" : 1,
"sbo" : 247,
"type" : "SimpleCompound"
},
{
"data" : {
"compartment" : "MAP:Nucleus",
"label" : "ADP",
"modification" : [],
"ref" : "Reactome:113582"
},
"id" : "Reactome:113582",
"is_abstract" : 1,
"sbo" : 247,
"type" : "SimpleCompound"
},
{
"data" : {
"compartment" : "MAP:Cytosol",
"label" : "GTP",
"modification" : [],
"ref" : "MAP:Cb15996_CY"
},
"id" : "MAP:Cb15996_CY",
"is_abstract" : 1,
"sbo" : 247,
"type" : "SimpleCompound"
},
{
"data" : {
"compartment" : "MAP:Plasmamembrane",
"label" : "Phosphatidylinositol-3,4,5-trisphosphate",
"modification" : [],
"ref" : "Reactome:179838",
"x" : 733,
"y" : 1680
},
"id" : "Reactome:179838",
"is_abstract" : 0,
"sbo" : 247,
"type" : "SimpleCompound"
},
{
"data" : {
"compartment" : "MAP:Nucleus",
"label" : "Phospho-ELK1",
"modification" : [],
"ref" : "Reactome:198666",
"x" : 3722,
"y" : 30
},
"id" : "Reactome:198666",
"is_abstract" : 0,
"sbo" : 240,
"type" : "Compound"
},
{
"data" : {
"compartment" : "MAP:Plasmamembrane",
"label" : "p21 RAS",
"modification" : [],
"ref" : "Reactome:109782"
},
"id" : "Reactome:109782",
"is_abstract" : 1,
"sbo" : 240,
"type" : "Compound"
},
{
"data" : {
"compartment" : "MAP:Nucleus",
"label" : "ELK1",
"modification" : [],
"ref" : "Reactome:198710",
"x" : 3556,
"y" : 202
},
"id" : "Reactome:198710",
"is_abstract" : 0,
"sbo" : 240,
"type" : "Compound"
},
{
"data" : {
"compartment" : "MAP:Cytosol",
"label" : "MEK",
"modification" : [],
"ref" : "Reactome:112398"
},
"id" : "Reactome:112398",
"is_abstract" : 1,
"sbo" : 240,
"type" : "Compound"
},
{
"data" : {
"compartment" : "MAP:Cytosol",
"label" : "phospho_MEK1",
"modification" : [],
"ref" : "Reactome:112340",
"x" : 3186,
"y" : 898
},
"id" : "Reactome:112340",
"is_abstract" : 0,
"sbo" : 240,
"type" : "Compound"
},
{
"data" : {
"compartment" : "MAP:Cytosol",
"label" : "phospho-MEK2",
"modification" : [
[
216,
null
],
[
216,
null
]
],
"ref" : "Reactome:109848",
"x" : 2325,
"y" : 1070
},
"id" : "Reactome:109848",
"is_abstract" : 0,
"sbo" : 252,
"type" : "Protein"
},
{
"data" : {
"compartment" : "MAP:Plasmamembrane",
"label" : "Transforming protein N-Ras",
"modification" : [],
"ref" : "MAP:C79"
},
"id" : "MAP:C79",
"is_abstract" : 1,
"sbo" : 252,
"type" : "Protein"
},
{
"data" : {
"compartment" : "MAP:Nucleus",
"label" : "phospho-ERK-1",
"modification" : [
[
216,
"202"
],
[
216,
"204"
]
],
"ref" : "Reactome:112359"
},
"id" : "Reactome:112359",
"is_abstract" : 1,
"sbo" : 252,
"type" : "Protein"
},
{
"data" : {
"compartment" : "MAP:Cytosol",
"label" : "YWHAB()",
"modification" : [],
"ref" : "MAP:UP31946_CY",
"x" : 1887,
"y" : 1880
},
"id" : "MAP:UP31946_CY",
"is_abstract" : 0,
"sbo" : 252,
"type" : "Protein"
},
{
"data" : {
"compartment" : "MAP:Cytosol",
"label" : "Phospho-SHC transforming protein",
"modification" : [
[
216,
"349"
],
[
216,
"350"
]
],
"ref" : "Reactome:180276"
},
"id" : "Reactome:180276",
"is_abstract" : 1,
"sbo" : 252,
"type" : "Protein"
},
{
"data" : {
"compartment" : "MAP:Plasmamembrane",
"label" : "K-RAS isoform 2A",
"modification" : [],
"ref" : "MAP:UP01116_"
},
"id" : "MAP:UP01116_",
"is_abstract" : 1,
"sbo" : 252,
"type" : "Protein"
},
{
"data" : {
"compartment" : "MAP:Cytosol",
"label" : "phospho-MEK1",
"modification" : [
[
216,
"286"
],
[
216,
"292"
]
],
"ref" : "Reactome:112374"
},
"id" : "Reactome:112374",
"is_abstract" : 1,
"sbo" : 252,
"type" : "Protein"
},
{
"data" : {
"compartment" : "MAP:Cytosol",
"label" : "Son of sevenless protein homolog 1",
"modification" : [],
"ref" : "MAP:UQ07889_CY"
},
"id" : "MAP:UQ07889_CY",
"is_abstract" : 1,
"sbo" : 252,
"type" : "Protein"
},
{
"data" : {
"compartment" : "MAP:Nucleus",
"label" : "ETS-domain protein Elk-1-1",
"modification" : [],
"ref" : "MAP:UP19419_NU(1-428)"
},
"id" : "MAP:UP19419_NU(1-428)",
"is_abstract" : 1,
"sbo" : 252,
"type" : "Protein"
},
{
"data" : {
"compartment" : "MAP:Cytosol",
"label" : "SHC",
"modification" : [],
"ref" : "MAP:UP29353_CY",
"x" : 1370,
"y" : 2906
},
"id" : "MAP:UP29353_CY",
"is_abstract" : 0,
"sbo" : 252,
"type" : "Protein"
},
{
"data" : {
"compartment" : "MAP:Cytosol",
"label" : "MEK1",
"modification" : [],
"ref" : "MAP:UQ02750_CY",
"x" : 2748,
"y" : 1480
},
"id" : "MAP:UQ02750_CY",
"is_abstract" : 0,
"sbo" : 252,
"type" : "Protein"
},
{
"data" : {
"compartment" : "MAP:Cytosol",
"label" : "GRB2()",
"modification" : [],
"ref" : "MAP:UP62993_CY"
},
"id" : "MAP:UP62993_CY",
"is_abstract" : 1,
"sbo" : 252,
"type" : "Protein"
},
{
"data" : {
"compartment" : "MAP:Plasmamembrane",
"label" : "cRaf",
"modification" : [
[
216,
"340"
],
[
216,
"621"
],
[
216,
"259"
],
[
216,
"341"
]
],
"ref" : "Reactome:109792"
},
"id" : "Reactome:109792",
"is_abstract" : 1,
"sbo" : 252,
"type" : "Protein"
},
{
"data" : {
"compartment" : "MAP:Cytosol",
"label" : "Phospho-GAB1",
"modification" : [
[
216,
"627"
],
[
216,
"659"
],
[
216,
"447"
],
[
216,
"472"
],
[
216,
"589"
]
],
"ref" : "Reactome:180344"
},
"id" : "Reactome:180344",
"is_abstract" : 1,
"sbo" : 252,
"type" : "Protein"
},
{
"data" : {
"compartment" : "MAP:Plasmamembrane",
"label" : "c-H-ras",
"modification" : [],
"ref" : "MAP:UP01112_PM"
},
"id" : "MAP:UP01112_PM",
"is_abstract" : 1,
"sbo" : 252,
"type" : "Protein"
},
{
"data" : {
"compartment" : "MAP:Plasmamembrane",
"label" : "unidentified protein tyrosine kinase",
"modification" : [],
"ref" : "Reactome:163338",
"x" : 2811,
"y" : 1680
},
"id" : "Reactome:163338",
"is_abstract" : 0,
"sbo" : 252,
"type" : "Protein"
},
{
"data" : {
"compartment" : "MAP:Cytosol",
"label" : "PI3K-p85",
"modification" : [],
"ref" : "MAP:C3",
"x" : 1292,
"y" : 2080
},
"id" : "MAP:C3",
"is_abstract" : 0,
"sbo" : 252,
"type" : "Protein"
},
{
"data" : {
"compartment" : "MAP:Cytosol",
"label" : "RAF1(ph259,ph621)",
"modification" : [
[
216,
"259"
],
[
216,
"621"
]
],
"ref" : "MAP:UP04049_CY_pho259pho621",
"x" : 2294,
"y" : 1880
},
"id" : "MAP:UP04049_CY_pho259pho621",
"is_abstract" : 0,
"sbo" : 252,
"type" : "Protein"
},
{
"data" : {
"compartment" : "MAP:Cytosol",
"label" : "MEK2()",
"modification" : [],
"ref" : "MAP:UP36507_CY",
"x" : 2084,
"y" : 1480
},
"id" : "MAP:UP36507_CY",
"is_abstract" : 0,
"sbo" : 252,
"type" : "Protein"
},
{
"data" : {
"compartment" : "MAP:Cytosol",
"label" : "Activated ERK1",
"modification" : [
[
216,
"202"
],
[
216,
"204"
]
],
"ref" : "MAP:UP27361_CY_pho202pho204",
"x" : 3261,
"y" : 550
},
"id" : "MAP:UP27361_CY_pho202pho204",
"is_abstract" : 0,
"sbo" : 252,
"type" : "Protein"
},
{
"data" : {
"compartment" : "MAP:Extracellular",
"label" : "EGF",
"modification" : [],
"ref" : "Reactome:179863",
"x" : 1331,
"y" : 3466
},
"id" : "Reactome:179863",
"is_abstract" : 0,
"sbo" : 252,
"type" : "Protein"
},
{
"data" : {
"compartment" : "MAP:Cytosol",
"label" : "phospho-MEK1",
"modification" : [
[
216,
"218"
],
[
216,
"222"
]
],
"ref" : "MAP:UQ02750_CY_pho218pho222",
"x" : 3102,
"y" : 1070
},
"id" : "MAP:UQ02750_CY_pho218pho222",
"is_abstract" : 0,
"sbo" : 252,
"type" : "Protein"
},
{
"data" : {
"compartment" : "MAP:Plasmamembrane",
"label" : "EGFR",
"modification" : [],
"ref" : "Reactome:179837",
"x" : 928,
"y" : 3466
},
"id" : "Reactome:179837",
"is_abstract" : 0,
"sbo" : 252,
"type" : "Protein"
},
{
"data" : {
"compartment" : "MAP:Cytosol",
"label" : "GAB1",
"modification" : [],
"ref" : "MAP:UQ13480_CY"
},
"id" : "MAP:UQ13480_CY",
"is_abstract" : 1,
"sbo" : 252,
"type" : "Protein"
},
{
"data" : {
"compartment" : "MAP:Cytosol",
"label" : "phospho-MEK1",
"modification" : [
[
216,
"218"
],
[
216,
"222"
],
[
216,
"286"
],
[
216,
"292"
]
],
"ref" : "Reactome:112339"
},
"id" : "Reactome:112339",
"is_abstract" : 1,
"sbo" : 252,
"type" : "Protein"
},
{
"data" : {
"label" : "SOS1",
"modification" : [],
"ref" : "PID:C200496"
},
"id" : "PID:C200496",
"is_abstract" : 1,
"sbo" : 252,
"type" : "Protein"
},
{
"data" : {
"compartment" : "MAP:Plasmamembrane",
"label" : "Leucine-rich repeats and immunoglobulin-like domains protein 1 precursor",
"modification" : [],
"ref" : "Reactome:197745",
"x" : 1902,
"y" : 3466
},
"id" : "Reactome:197745",
"is_abstract" : 0,
"sbo" : 252,
"type" : "Protein"
},
{
"data" : {
"compartment" : "MAP:Nucleus",
"label" : "Phospho-ETS-domain protein Elk-1-2",
"modification" : [
[
216,
"324"
],
[
216,
"383"
],
[
216,
"389"
],
[
216,
"336"
],
[
216,
"422"
]
],
"ref" : "MAP:UP19419_NU(1-428)_pho324pho336pho383pho389pho422"
},
"id" : "MAP:UP19419_NU(1-428)_pho324pho336pho383pho389pho422",
"is_abstract" : 1,
"sbo" : 252,
"type" : "Protein"
},
{
"data" : {
"compartment" : "MAP:Cytosol",
"label" : "PI3K-p110",
"modification" : [],
"ref" : "MAP:C2",
"x" : 1066,
"y" : 2080
},
"id" : "MAP:C2",
"is_abstract" : 0,
"sbo" : 252,
"type" : "Protein"
},
{
"data" : {
"compartment" : "MAP:Cytosol",
"label" : "ERK1",
"modification" : [],
"ref" : "MAP:UP27361_CY",
"x" : 3707,
"y" : 1070
},
"id" : "MAP:UP27361_CY",
"is_abstract" : 0,
"sbo" : 252,
"type" : "Protein"
},
{
"data" : {
"compartment" : "MAP:Plasmamembrane",
"label" : "Phospho-EGFR",
"modification" : [
[
216,
"1068"
],
[
216,
"1148"
],
[
216,
"1173"
],
[
216,
"1086"
],
[
216,
"992"
]
],
"ref" : "Reactome:179803"
},
"id" : "Reactome:179803",
"is_abstract" : 1,
"sbo" : 252,
"type" : "Protein"
},
{
"data" : {
"label" : "GRB2",
"modification" : [],
"ref" : "PID:C200490"
},
"id" : "PID:C200490",
"is_abstract" : 1,
"sbo" : 252,
"type" : "Protein"
},
{
"data" : {
"label" : null,
"ref" : "Reactome:177938",
"x" : 1569,
"y" : 2180
},
"id" : "Reactome:177938",
"is_abstract" : 0,
"sbo" : 167,
"type" : "Reaction"
},
{
"data" : {
"clone_marker" : "MAP:Cb15996_CY",
"compartment" : "MAP:Cytosol",
"label" : "GTP",
"modification" : [],
"ref" : "MAP:Cb15996_CY",
"x" : 1131,
"y" : 2293
},
"id" : "MAP:Cb15996_CY_Reactome:177938",
"is_abstract" : 0,
"sbo" : 247,
"type" : "SimpleCompound"
},
{
"data" : {
"clone_marker" : "MAP:Cb17552_CY",
"compartment" : "MAP:Cytosol",
"label" : "GDP",
"modification" : [],
"ref" : "MAP:Cb17552_CY",
"x" : 1569,
"y" : 2080
},
"id" : "MAP:Cb17552_CY_Reactome:177938",
"is_abstract" : 0,
"sbo" : 247,
"type" : "SimpleCompound"
},
{
"data" : {
"label" : null,
"ref" : "Reactome:177934",
"x" : 1331,
"y" : 3006
},
"id" : "Reactome:177934",
"is_abstract" : 0,
"sbo" : 167,
"type" : "Reaction"
},
{
"data" : {
"clone_marker" : "MAP:Cs56-65-5_CY",
"compartment" : "MAP:Cytosol",
"label" : "ATP",
"modification" : [],
"ref" : "MAP:Cs56-65-5_CY",
"x" : 1008,
"y" : 3106
},
"id" : "MAP:Cs56-65-5_CY_Reactome:177934",
"is_abstract" : 0,
"sbo" : 247,
"type" : "SimpleCompound"
},
{
"data" : {
"clone_marker" : "MAP:Cb16761_CY",
"compartment" : "MAP:Cytosol",
"label" : "ADP",
"modification" : [],
"ref" : "MAP:Cb16761_CY",
"x" : 1696,
"y" : 2906
},
"id" : "MAP:Cb16761_CY_Reactome:177934",
"is_abstract" : 0,
"sbo" : 247,
"type" : "SimpleCompound"
},
{
"data" : {
"label" : null,
"ref" : "Reactome:109867",
"x" : 3261,
"y" : 290
},
"id" : "Reactome:109867",
"is_abstract" : 0,
"sbo" : 167,
"type" : "Reaction"
},
{
"data" : {
"label" : null,
"ref" : "MAN:R12",
"x" : 3556,
"y" : 114
},
"id" : "MAN:R12",
"is_abstract" : 0,
"sbo" : 167,
"type" : "Reaction"
},
{
"data" : {
"clone_marker" : "Reactome:29358",
"compartment" : "MAP:Nucleus",
"label" : "ATP",
"modification" : [],
"ref" : "Reactome:29358",
"x" : 3881,
"y" : 202
},
"id" : "Reactome:29358_MAN:R12",
"is_abstract" : 0,
"sbo" : 247,
"type" : "SimpleCompound"
},
{
"data" : {
"clone_marker" : "Reactome:113582",
"compartment" : "MAP:Nucleus",
"label" : "ADP",
"modification" : [],
"ref" : "Reactome:113582",
"x" : 3390,
"y" : 30
},
"id" : "Reactome:113582_MAN:R12",
"is_abstract" : 0,
"sbo" : 247,
"type" : "SimpleCompound"
},
{
"data" : {
"label" : null,
"ref" : "Reactome:109841",
"x" : 2716,
"y" : 1154
},
"id" : "Reactome:109841",
"is_abstract" : 0,
"sbo" : 167,
"type" : "Reaction"
},
{
"data" : {
"clone_marker" : "MAP:Cs56-65-5_CY",
"compartment" : "MAP:Cytosol",
"label" : "ATP",
"modification" : [],
"ref" : "MAP:Cs56-65-5_CY",
"x" : 3085,
"y" : 1267
},
"id" : "MAP:Cs56-65-5_CY_Reactome:109841",
"is_abstract" : 0,
"sbo" : 247,
"type" : "SimpleCompound"
},
{
"data" : {
"clone_marker" : "MAP:Cb16761_CY",
"compartment" : "MAP:Cytosol",
"label" : "ADP",
"modification" : [],
"ref" : "MAP:Cb16761_CY",
"x" : 2696,
"y" : 1070
},
"id" : "MAP:Cb16761_CY_Reactome:109841",
"is_abstract" : 0,
"sbo" : 247,
"type" : "SimpleCompound"
},
{
"data" : {
"label" : null,
"ref" : "Reactome:177940",
"x" : 549,
"y" : 2406
},
"id" : "Reactome:177940",
"is_abstract" : 0,
"sbo" : 167,
"type" : "Reaction"
},
{
"data" : {
"label" : null,
"ref" : "Reactome:109802",
"x" : 1757,
"y" : 1780
},
"id" : "Reactome:109802",
"is_abstract" : 0,
"sbo" : 167,
"type" : "Reaction"
},
{
"data" : {
"label" : null,
"ref" : "Reactome:109803",
"x" : 1886,
"y" : 1980
},
"id" : "Reactome:109803",
"is_abstract" : 0,
"sbo" : 167,
"type" : "Reaction"
},
{
"data" : {
"label" : null,
"ref" : "Reactome:177930",
"x" : 477,
"y" : 2180
},
"id" : "Reactome:177930",
"is_abstract" : 0,
"sbo" : 167,
"type" : "Reaction"
},
{
"data" : {
"clone_marker" : "MAP:Cs56-65-5_CY",
"compartment" : "MAP:Cytosol",
"label" : "ATP",
"modification" : [],
"ref" : "MAP:Cs56-65-5_CY",
"x" : 800,
"y" : 2293
},
"id" : "MAP:Cs56-65-5_CY_Reactome:177930",
"is_abstract" : 0,
"sbo" : 247,
"type" : "SimpleCompound"
},
{
"data" : {
"clone_marker" : "MAP:Cb16761_CY",
"compartment" : "MAP:Cytosol",
"label" : "ADP",
"modification" : [],
"ref" : "MAP:Cb16761_CY",
"x" : 425,
"y" : 2080
},
"id" : "MAP:Cb16761_CY_Reactome:177930",
"is_abstract" : 0,
"sbo" : 247,
"type" : "SimpleCompound"
},
{
"data" : {
"label" : null,
"ref" : "Reactome:177945",
"x" : 2256,
"y" : 2180
},
"id" : "Reactome:177945",
"is_abstract" : 0,
"sbo" : 167,
"type" : "Reaction"
},
{
"data" : {
"clone_marker" : "MAP:Cb15996_CY",
"compartment" : "MAP:Cytosol",
"label" : "GTP",
"modification" : [],
"ref" : "MAP:Cb15996_CY",
"x" : 2739,
"y" : 2293
},
"id" : "MAP:Cb15996_CY_Reactome:177945",
"is_abstract" : 0,
"sbo" : 247,
"type" : "SimpleCompound"
},
{
"data" : {
"clone_marker" : "MAP:Cb17552_CY",
"compartment" : "MAP:Cytosol",
"label" : "GDP",
"modification" : [],
"ref" : "MAP:Cb17552_CY",
"x" : 2256,
"y" : 2080
},
"id" : "MAP:Cb17552_CY_Reactome:177945",
"is_abstract" : 0,
"sbo" : 247,
"type" : "SimpleCompound"
},
{
"data" : {
"label" : null,
"ref" : "MAN:R1",
"x" : 2084,
"y" : 1380
},
"id" : "MAN:R1",
"is_abstract" : 0,
"sbo" : 167,
"type" : "Reaction"
},
{
"data" : {
"label" : null,
"ref" : "Reactome:109863",
"x" : 3261,
"y" : 634
},
"id" : "Reactome:109863",
"is_abstract" : 0,
"sbo" : 167,
"type" : "Reaction"
},
{
"data" : {
"label" : null,
"ref" : "Reactome:177933",
"x" : 1478,
"y" : 2606
},
"id" : "Reactome:177933",
"is_abstract" : 0,
"sbo" : 167,
"type" : "Reaction"
},
{
"data" : {
"clone_marker" : "MAP:Cs56-65-5_CY",
"compartment" : "MAP:Cytosol",
"label" : "ATP",
"modification" : [],
"ref" : "MAP:Cs56-65-5_CY",
"x" : 1155,
"y" : 2706
},
"id" : "MAP:Cs56-65-5_CY_Reactome:177933",
"is_abstract" : 0,
"sbo" : 247,
"type" : "SimpleCompound"
},
{
"data" : {
"clone_marker" : "MAP:Cb16761_CY",
"compartment" : "MAP:Cytosol",
"label" : "ADP",
"modification" : [],
"ref" : "MAP:Cb16761_CY",
"x" : 1221,
"y" : 2506
},
"id" : "MAP:Cb16761_CY_Reactome:177933",
"is_abstract" : 0,
"sbo" : 247,
"type" : "SimpleCompound"
},
{
"data" : {
"label" : null,
"ref" : "MAN:R2",
"x" : 2748,
"y" : 1380
},
"id" : "MAN:R2",
"is_abstract" : 0,
"sbo" : 167,
"type" : "Reaction"
},
{
"data" : {
"label" : null,
"ref" : "Reactome:109804",
"x" : 2294,
"y" : 1780
},
"id" : "Reactome:109804",
"is_abstract" : 0,
"sbo" : 167,
"type" : "Reaction"
},
{
"data" : {
"label" : null,
"ref" : "Reactome:109852",
"x" : 2080,
"y" : 1154
},
"id" : "Reactome:109852",
"is_abstract" : 0,
"sbo" : 167,
"type" : "Reaction"
},
{
"data" : {
"clone_marker" : "MAP:Cs56-65-5_CY",
"compartment" : "MAP:Cytosol",
"label" : "ATP",
"modification" : [],
"ref" : "MAP:Cs56-65-5_CY",
"x" : 1747,
"y" : 1267
},
"id" : "MAP:Cs56-65-5_CY_Reactome:109852",
"is_abstract" : 0,
"sbo" : 247,
"type" : "SimpleCompound"
},
{
"data" : {
"clone_marker" : "MAP:Cb16761_CY",
"compartment" : "MAP:Cytosol",
"label" : "ADP",
"modification" : [],
"ref" : "MAP:Cb16761_CY",
"x" : 1999,
"y" : 1070
},
"id" : "MAP:Cb16761_CY_Reactome:109852",
"is_abstract" : 0,
"sbo" : 247,
"type" : "SimpleCompound"
},
{
"data" : {
"label" : null,
"ref" : "Reactome:177939",
"x" : 543,
"y" : 1780
},
"id" : "Reactome:177939",
"is_abstract" : 0,
"sbo" : 167,
"type" : "Reaction"
},
{
"data" : {
"clone_marker" : "MAP:Cs56-65-5_CY",
"compartment" : "MAP:Cytosol",
"label" : "ATP",
"modification" : [],
"ref" : "MAP:Cs56-65-5_CY",
"x" : 160,
"y" : 1880
},
"id" : "MAP:Cs56-65-5_CY_Reactome:177939",
"is_abstract" : 0,
"sbo" : 247,
"type" : "SimpleCompound"
},
{
"data" : {
"clone_marker" : "MAP:Cb16761_CY",
"compartment" : "MAP:Cytosol",
"label" : "ADP",
"modification" : [],
"ref" : "MAP:Cb16761_CY",
"x" : 354,
"y" : 1680
},
"id" : "MAP:Cb16761_CY_Reactome:177939",
"is_abstract" : 0,
"sbo" : 247,
"type" : "SimpleCompound"
},
{
"data" : {
"label" : null,
"ref" : "MAN:R25",
"x" : 1014,
"y" : 1980
},
"id" : "MAN:R25",
"is_abstract" : 0,
"sbo" : 167,
"type" : "Reaction"
},
{
"data" : {
"label" : null,
"ref" : "Reactome:177936",
"x" : 1945,
"y" : 2406
},
"id" : "Reactome:177936",
"is_abstract" : 0,
"sbo" : 167,
"type" : "Reaction"
},
{
"data" : {
"label" : null,
"ref" : "MAN:R28",
"x" : 1292,
"y" : 1980
},
"id" : "MAN:R28",
"is_abstract" : 0,
"sbo" : 167,
"type" : "Reaction"
},
{
"data" : {
"label" : null,
"ref" : "Reactome:177922",
"x" : 1331,
"y" : 3206
},
"id" : "Reactome:177922",
"is_abstract" : 0,
"sbo" : 167,
"type" : "Reaction"
},
{
"data" : {
"label" : null,
"ref" : "Reactome:109860",
"x" : 3519,
"y" : 810
},
"id" : "Reactome:109860",
"is_abstract" : 0,
"sbo" : 167,
"type" : "Reaction"
},
{
"data" : {
"clone_marker" : "MAP:Cs56-65-5_CY",
"compartment" : "MAP:Cytosol",
"label" : "ATP",
"modification" : [],
"ref" : "MAP:Cs56-65-5_CY",
"x" : 3519,
"y" : 898
},
"id" : "MAP:Cs56-65-5_CY_Reactome:109860",
"is_abstract" : 0,
"sbo" : 247,
"type" : "SimpleCompound"
},
{
"data" : {
"clone_marker" : "MAP:Cb16761_CY",
"compartment" : "MAP:Cytosol",
"label" : "ADP",
"modification" : [],
"ref" : "MAP:Cb16761_CY",
"x" : 3228,
"y" : 722
},
"id" : "MAP:Cb16761_CY_Reactome:109860",
"is_abstract" : 0,
"sbo" : 247,
"type" : "SimpleCompound"
},
{
"data" : {
"label" : null,
"ref" : "Reactome:177943",
"x" : 1514,
"y" : 2406
},
"id" : "Reactome:177943",
"is_abstract" : 0,
"sbo" : 167,
"type" : "Reaction"
},
{
"data" : {
"label" : null,
"ref" : "Reactome:109865",
"x" : 3261,
"y" : 466
},
"id" : "Reactome:109865",
"is_abstract" : 0,
"sbo" : 167,
"type" : "Reaction"
},
{
"data" : {
"label" : null,
"ref" : "Reactome:177925",
"x" : 1370,
"y" : 2806
},
"id" : "Reactome:177925",
"is_abstract" : 0,
"sbo" : 167,
"type" : "Reaction"
},
{
"data" : {
"label" : null,
"ref" : "Reactome:109829",
"x" : 2080,
"y" : 1580
},
"id" : "Reactome:109829",
"is_abstract" : 0,
"sbo" : 167,
"type" : "Reaction"
},
{
"data" : {
"clone_marker" : "MAP:Cs56-65-5_CY",
"compartment" : "MAP:Cytosol",
"label" : "ATP",
"modification" : [],
"ref" : "MAP:Cs56-65-5_CY",
"x" : 2080,
"y" : 1680
},
"id" : "MAP:Cs56-65-5_CY_Reactome:109829",
"is_abstract" : 0,
"sbo" : 247,
"type" : "SimpleCompound"
},
{
"data" : {
"clone_marker" : "MAP:Cb16761_CY",
"compartment" : "MAP:Cytosol",
"label" : "ADP",
"modification" : [],
"ref" : "MAP:Cb16761_CY",
"x" : 1758,
"y" : 1480
},
"id" : "MAP:Cb16761_CY_Reactome:109829",
"is_abstract" : 0,
"sbo" : 247,
"type" : "SimpleCompound"
},
{
"data" : {
"label" : null,
"ref" : "Reactome:109857",
"x" : 3707,
"y" : 986
},
"id" : "Reactome:109857",
"is_abstract" : 0,
"sbo" : 167,
"type" : "Reaction"
},
{
"data" : {
"label" : null,
"ref" : "Reactome:177942",
"x" : 1331,
"y" : 3382
},
"id" : "Reactome:177942",
"is_abstract" : 0,
"sbo" : 167,
"type" : "Reaction"
},
{
"data" : {
"clone_marker" : "Reactome:109788",
"compartment" : "MAP:Plasmamembrane",
"label" : "RAS:RAF",
"modification" : [],
"ref" : "Reactome:109788",
"subnodes" : [
"MAP:UP04049_CY_pho259pho621_Reactome:109788_Reactome:109789_1_1",
"Reactome:109783_Reactome:109788_Reactome:109789_1_1"
]
},
"id" : "Reactome:109788_Reactome:109789_1",
"is_abstract" : 1,
"sbo" : 253,
"type" : "Complex"
},
{
"data" : {
"clone_marker" : "MAP:UP31946_CY",
"compartment" : "MAP:Cytosol",
"label" : "YWHAB()",
"modification" : [],
"ref" : "MAP:UP31946_CY"
},
"id" : "MAP:UP31946_CY_Reactome:109789_1",
"is_abstract" : 1,
"sbo" : 252,
"type" : "Protein"
},
{
"data" : {
"clone_marker" : "MAP:Cb17552_CY",
"compartment" : "MAP:Cytosol",
"label" : "GDP",
"modification" : [],
"ref" : "MAP:Cb17552_CY"
},
"id" : "MAP:Cb17552_CY_Reactome:109796_1",
"is_abstract" : 1,
"sbo" : 247,
"type" : "SimpleCompound"
},
{
"data" : {
"clone_marker" : "Reactome:109782",
"compartment" : "MAP:Plasmamembrane",
"label" : "p21 RAS",
"modification" : [],
"ref" : "Reactome:109782"
},
"id" : "Reactome:109782_Reactome:109796_1",
"is_abstract" : 1,
"sbo" : 240,
"type" : "Compound"
},
{
"data" : {
"clone_marker" : "MAP:UP31946_CY",
"compartment" : "MAP:Cytosol",
"label" : "YWHAB()",
"modification" : [],
"ref" : "MAP:UP31946_CY"
},
"id" : "MAP:UP31946_CY_Reactome:109793_1",
"is_abstract" : 1,
"sbo" : 252,
"type" : "Protein"
},
{
"data" : {
"clone_marker" : "Reactome:109783",
"compartment" : "MAP:Plasmamembrane",
"label" : "p21 RAS:GTP",
"modification" : [],
"ref" : "Reactome:109783",
"subnodes" : [
"Reactome:109782_Reactome:109783_Reactome:109793_1_1",
"MAP:Cb15996_CY_Reactome:109783_Reactome:109793_1_1"
]
},
"id" : "Reactome:109783_Reactome:109793_1",
"is_abstract" : 1,
"sbo" : 253,
"type" : "Complex"
},
{
"data" : {
"clone_marker" : "Reactome:109792",
"compartment" : "MAP:Plasmamembrane",
"label" : "cRaf",
"modification" : [
[
216,
"340"
],
[
216,
"621"
],
[
216,
"259"
],
[
216,
"341"
]
],
"ref" : "Reactome:109792"
},
"id" : "Reactome:109792_Reactome:109793_1",
"is_abstract" : 1,
"sbo" : 252,
"type" : "Protein"
},
{
"data" : {
"clone_marker" : "Reactome:179882",
"compartment" : "MAP:Plasmamembrane",
"label" : "EGF:Phospho-EGFR (Y992, Y1068, Y1086, Y1148, Y1173) dimer",
"modification" : [],
"ref" : "Reactome:179882",
"subnodes" : [
"Reactome:179860_Reactome:179882_Reactome:180301_1_1",
"Reactome:179860_Reactome:179882_Reactome:180301_1_2"
]
},
"id" : "Reactome:179882_Reactome:180301_1",
"is_abstract" : 1,
"sbo" : 253,
"type" : "Complex"
},
{
"data" : {
"clone_marker" : "MAP:UP29353_CY",
"compartment" : "MAP:Cytosol",
"label" : "SHC",
"modification" : [],
"ref" : "MAP:UP29353_CY"
},
"id" : "MAP:UP29353_CY_Reactome:180301_1",
"is_abstract" : 1,
"sbo" : 252,
"type" : "Protein"
},
{
"data" : {
"clone_marker" : "Reactome:112359",
"compartment" : "MAP:Nucleus",
"label" : "phospho-ERK-1",
"modification" : [
[
216,
"202"
],
[
216,
"204"
]
],
"ref" : "Reactome:112359"
},
"id" : "Reactome:112359_Reactome:109845_1",
"is_abstract" : 1,
"sbo" : 252,
"type" : "Protein"
},
{
"data" : {
"clone_marker" : "Reactome:112359",
"compartment" : "MAP:Nucleus",
"label" : "phospho-ERK-1",
"modification" : [
[
216,
"202"
],
[
216,
"204"
]
],
"ref" : "Reactome:112359"
},
"id" : "Reactome:112359_Reactome:109845_2",
"is_abstract" : 1,
"sbo" : 252,
"type" : "Protein"
},
{
"data" : {
"clone_marker" : "Reactome:179882",
"compartment" : "MAP:Plasmamembrane",
"label" : "EGF:Phospho-EGFR (Y992, Y1068, Y1086, Y1148, Y1173) dimer",
"modification" : [],
"ref" : "Reactome:179882",
"subnodes" : [
"Reactome:179860_Reactome:179882_Reactome:180348_1_1",
"Reactome:179860_Reactome:179882_Reactome:180348_1_2"
]
},
"id" : "Reactome:179882_Reactome:180348_1",
"is_abstract" : 1,
"sbo" : 253,
"type" : "Complex"
},
{
"data" : {
"clone_marker" : "Reactome:179849",
"compartment" : "MAP:Cytosol",
"label" : "GRB2:GAB1",
"modification" : [],
"ref" : "Reactome:179849",
"subnodes" : [
"MAP:UP62993_CY_Reactome:179849_Reactome:180348_1_1",
"MAP:UQ13480_CY_Reactome:179849_Reactome:180348_1_1"
]
},
"id" : "Reactome:179849_Reactome:180348_1",
"is_abstract" : 1,
"sbo" : 253,
"type" : "Complex"
},
{
"data" : {
"clone_marker" : "MAP:UP27361_CY_pho202pho204",
"compartment" : "MAP:Cytosol",
"label" : "Activated ERK1",
"modification" : [
[
216,
"202"
],
[
216,
"204"
]
],
"ref" : "MAP:UP27361_CY_pho202pho204"
},
"id" : "MAP:UP27361_CY_pho202pho204_Reactome:109843_1",
"is_abstract" : 1,
"sbo" : 252,
"type" : "Protein"
},
{
"data" : {
"clone_marker" : "MAP:UQ02750_CY_pho218pho222",
"compartment" : "MAP:Cytosol",
"label" : "phospho-MEK1",
"modification" : [
[
216,
"218"
],
[
216,
"222"
]
],
"ref" : "MAP:UQ02750_CY_pho218pho222"
},
"id" : "MAP:UQ02750_CY_pho218pho222_Reactome:109843_1",
"is_abstract" : 1,
"sbo" : 252,
"type" : "Protein"
},
{
"data" : {
"clone_marker" : "MAP:UP04049_CY_pho259pho621",
"compartment" : "MAP:Cytosol",
"label" : "RAF1(ph259,ph621)",
"modification" : [
[
216,
"259"
],
[
216,
"621"
]
],
"ref" : "MAP:UP04049_CY_pho259pho621"
},
"id" : "MAP:UP04049_CY_pho259pho621_Reactome:109788_1",
"is_abstract" : 1,
"sbo" : 252,
"type" : "Protein"
},
{
"data" : {
"clone_marker" : "Reactome:109783",
"compartment" : "MAP:Plasmamembrane",
"label" : "p21 RAS:GTP",
"modification" : [],
"ref" : "Reactome:109783",
"subnodes" : [
"Reactome:109782_Reactome:109783_Reactome:109788_1_1",
"MAP:Cb15996_CY_Reactome:109783_Reactome:109788_1_1"
]
},
"id" : "Reactome:109783_Reactome:109788_1",
"is_abstract" : 1,
"sbo" : 253,
"type" : "Complex"
},
{
"data" : {
"clone_marker" : "MAP:UP62993_CY",
"compartment" : "MAP:Cytosol",
"label" : "GRB2()",
"modification" : [],
"ref" : "MAP:UP62993_CY"
},
"id" : "MAP:UP62993_CY_Reactome:179849_1",
"is_abstract" : 1,
"sbo" : 252,
"type" : "Protein"
},
{
"data" : {
"clone_marker" : "MAP:UQ13480_CY",
"compartment" : "MAP:Cytosol",
"label" : "GAB1",
"modification" : [],
"ref" : "MAP:UQ13480_CY"
},
"id" : "MAP:UQ13480_CY_Reactome:179849_1",
"is_abstract" : 1,
"sbo" : 252,
"type" : "Protein"
},
{
"data" : {
"clone_marker" : "Reactome:180304",
"compartment" : "MAP:Cytosol",
"label" : "GRB2:Phospho-GAB1",
"modification" : [],
"ref" : "Reactome:180304",
"subnodes" : [
"MAP:UP62993_CY_Reactome:180304_Reactome:180286_1_1",
"Reactome:180344_Reactome:180304_Reactome:180286_1_1"
]
},
"id" : "Reactome:180304_Reactome:180286_1",
"is_abstract" : 1,
"sbo" : 253,
"type" : "Complex"
},
{
"data" : {
"clone_marker" : "Reactome:179882",
"compartment" : "MAP:Plasmamembrane",
"label" : "EGF:Phospho-EGFR (Y992, Y1068, Y1086, Y1148, Y1173) dimer",
"modification" : [],
"ref" : "Reactome:179882",
"subnodes" : [
"Reactome:179860_Reactome:179882_Reactome:180286_1_1",
"Reactome:179860_Reactome:179882_Reactome:180286_1_2"
]
},
"id" : "Reactome:179882_Reactome:180286_1",
"is_abstract" : 1,
"sbo" : 253,
"type" : "Complex"
},
{
"data" : {
"clone_marker" : "Reactome:179847",
"compartment" : "MAP:Plasmamembrane",
"label" : "EGF:EGFR",
"modification" : [],
"ref" : "Reactome:179847",
"subnodes" : [
"Reactome:179863_Reactome:179847_Reactome:179845_1_1",
"Reactome:179837_Reactome:179847_Reactome:179845_1_1"
]
},
"id" : "Reactome:179847_Reactome:179845_1",
"is_abstract" : 1,
"sbo" : 253,
"type" : "Complex"
},
{
"data" : {
"clone_marker" : "Reactome:179847",
"compartment" : "MAP:Plasmamembrane",
"label" : "EGF:EGFR",
"modification" : [],
"ref" : "Reactome:179847",
"subnodes" : [
"Reactome:179863_Reactome:179847_Reactome:179845_2_1",
"Reactome:179837_Reactome:179847_Reactome:179845_2_1"
]
},
"id" : "Reactome:179847_Reactome:179845_2",
"is_abstract" : 1,
"sbo" : 253,
"type" : "Complex"
},
{
"data" : {
"clone_marker" : "MAP:UP27361_CY_pho202pho204",
"compartment" : "MAP:Cytosol",
"label" : "Activated ERK1",
"modification" : [
[
216,
"202"
],
[
216,
"204"
]
],
"ref" : "MAP:UP27361_CY_pho202pho204"
},
"id" : "MAP:UP27361_CY_pho202pho204_Reactome:109844_1",
"is_abstract" : 1,
"sbo" : 252,
"type" : "Protein"
},
{
"data" : {
"clone_marker" : "MAP:UP27361_CY_pho202pho204",
"compartment" : "MAP:Cytosol",
"label" : "Activated ERK1",
"modification" : [
[
216,
"202"
],
[
216,
"204"
]
],
"ref" : "MAP:UP27361_CY_pho202pho204"
},
"id" : "MAP:UP27361_CY_pho202pho204_Reactome:109844_2",
"is_abstract" : 1,
"sbo" : 252,
"type" : "Protein"
},
{
"data" : {
"clone_marker" : "MAP:UQ07889_CY",
"compartment" : "MAP:Cytosol",
"label" : "Son of sevenless protein homolog 1",
"modification" : [],
"ref" : "MAP:UQ07889_CY"
},
"id" : "MAP:UQ07889_CY_MAP:Cx114_1",
"is_abstract" : 1,
"sbo" : 252,
"type" : "Protein"
},
{
"data" : {
"clone_marker" : "MAP:UP62993_CY",
"compartment" : "MAP:Cytosol",
"label" : "GRB2()",
"modification" : [],
"ref" : "MAP:UP62993_CY"
},
"id" : "MAP:UP62993_CY_MAP:Cx114_1",
"is_abstract" : 1,
"sbo" : 252,
"type" : "Protein"
},
{
"data" : {
"clone_marker" : "Reactome:179863",
"compartment" : "MAP:Extracellular",
"label" : "EGF",
"modification" : [],
"ref" : "Reactome:179863"
},
"id" : "Reactome:179863_Reactome:179847_1",
"is_abstract" : 1,
"sbo" : 252,
"type" : "Protein"
},
{
"data" : {
"clone_marker" : "Reactome:179837",
"compartment" : "MAP:Plasmamembrane",
"label" : "EGFR",
"modification" : [],
"ref" : "Reactome:179837"
},
"id" : "Reactome:179837_Reactome:179847_1",
"is_abstract" : 1,
"sbo" : 252,
"type" : "Protein"
},
{
"data" : {
"clone_marker" : "MAP:UP27361_CY",
"compartment" : "MAP:Cytosol",
"label" : "ERK1",
"modification" : [],
"ref" : "MAP:UP27361_CY"
},
"id" : "MAP:UP27361_CY_Reactome:109838_1",
"is_abstract" : 1,
"sbo" : 252,
"type" : "Protein"
},
{
"data" : {
"clone_marker" : "MAP:UQ02750_CY_pho218pho222",
"compartment" : "MAP:Cytosol",
"label" : "phospho-MEK1",
"modification" : [
[
216,
"218"
],
[
216,
"222"
]
],
"ref" : "MAP:UQ02750_CY_pho218pho222"
},
"id" : "MAP:UQ02750_CY_pho218pho222_Reactome:109838_1",
"is_abstract" : 1,
"sbo" : 252,
"type" : "Protein"
},
{
"data" : {
"clone_marker" : "Reactome:179860",
"compartment" : "MAP:Plasmamembrane",
"label" : "EGF:Phospho-EGFR",
"modification" : [],
"ref" : "Reactome:179860",
"subnodes" : [
"Reactome:179863_Reactome:179860_Reactome:179882_1_1",
"Reactome:179803_Reactome:179860_Reactome:179882_1_1"
]
},
"id" : "Reactome:179860_Reactome:179882_1",
"is_abstract" : 1,
"sbo" : 253,
"type" : "Complex"
},
{
"data" : {
"clone_marker" : "Reactome:179860",
"compartment" : "MAP:Plasmamembrane",
"label" : "EGF:Phospho-EGFR",
"modification" : [],
"ref" : "Reactome:179860",
"subnodes" : [
"Reactome:179863_Reactome:179860_Reactome:179882_2_1",
"Reactome:179803_Reactome:179860_Reactome:179882_2_1"
]
},
"id" : "Reactome:179860_Reactome:179882_2",
"is_abstract" : 1,
"sbo" : 253,
"type" : "Complex"
},
{
"data" : {
"clone_marker" : "MAP:UP04049_CY_pho259pho621",
"compartment" : "MAP:Cytosol",
"label" : "RAF1(ph259,ph621)",
"modification" : [
[
216,
"259"
],
[
216,
"621"
]
],
"ref" : "MAP:UP04049_CY_pho259pho621"
},
"id" : "MAP:UP04049_CY_pho259pho621_Reactome:109787_1",
"is_abstract" : 1,
"sbo" : 252,
"type" : "Protein"
},
{
"data" : {
"clone_marker" : "MAP:UP31946_CY",
"compartment" : "MAP:Cytosol",
"label" : "YWHAB()",
"modification" : [],
"ref" : "MAP:UP31946_CY"
},
"id" : "MAP:UP31946_CY_Reactome:109787_1",
"is_abstract" : 1,
"sbo" : 252,
"type" : "Protein"
},
{
"data" : {
"clone_marker" : "MAP:Cx156",
"compartment" : "MAP:Cytosol",
"label" : "PI3K alpha",
"modification" : [],
"ref" : "MAP:Cx156",
"subnodes" : [
"MAP:C3_MAP:Cx156_MAN:C10_1_1",
"MAP:C2_MAP:Cx156_MAN:C10_1_1"
]
},
"id" : "MAP:Cx156_MAN:C10_1",
"is_abstract" : 1,
"sbo" : 253,
"type" : "Complex"
},
{
"data" : {
"clone_marker" : "Reactome:109783",
"compartment" : "MAP:Plasmamembrane",
"label" : "p21 RAS:GTP",
"modification" : [],
"ref" : "Reactome:109783",
"subnodes" : [
"Reactome:109782_Reactome:109783_MAN:C10_1_1",
"MAP:Cb15996_CY_Reactome:109783_MAN:C10_1_1"
]
},
"id" : "Reactome:109783_MAN:C10_1",
"is_abstract" : 1,
"sbo" : 253,
"type" : "Complex"
},
{
"data" : {
"clone_marker" : "Reactome:109793",
"compartment" : "MAP:Plasmamembrane",
"label" : "Activated RAF1 complex",
"modification" : [],
"ref" : "Reactome:109793",
"subnodes" : [
"MAP:UP31946_CY_Reactome:109793_Reactome:109795_1_1",
"Reactome:109783_Reactome:109793_Reactome:109795_1_1",
"Reactome:109792_Reactome:109793_Reactome:109795_1_1"
]
},
"id" : "Reactome:109793_Reactome:109795_1",
"is_abstract" : 1,
"sbo" : 253,
"type" : "Complex"
},
{
"data" : {
"clone_marker" : "MAP:UP36507_CY",
"compartment" : "MAP:Cytosol",
"label" : "MEK2()",
"modification" : [],
"ref" : "MAP:UP36507_CY"
},
"id" : "MAP:UP36507_CY_Reactome:109795_1",
"is_abstract" : 1,
"sbo" : 252,
"type" : "Protein"
},
{
"data" : {
"clone_marker" : "MAP:Cx114",
"compartment" : "MAP:Cytosol",
"label" : "GRB2:SOS1",
"modification" : [],
"ref" : "MAP:Cx114",
"subnodes" : [
"MAP:UQ07889_CY_MAP:Cx114_Reactome:180331_1_1",
"MAP:UP62993_CY_MAP:Cx114_Reactome:180331_1_1"
]
},
"id" : "MAP:Cx114_Reactome:180331_1",
"is_abstract" : 1,
"sbo" : 253,
"type" : "Complex"
},
{
"data" : {
"clone_marker" : "Reactome:180337",
"compartment" : "MAP:Plasmamembrane",
"label" : "EGF:Phospho-EGFR:Phospho-SHC",
"modification" : [],
"ref" : "Reactome:180337",
"subnodes" : [
"Reactome:180276_Reactome:180337_Reactome:180331_1_1",
"Reactome:179882_Reactome:180337_Reactome:180331_1_1"
]
},
"id" : "Reactome:180337_Reactome:180331_1",
"is_abstract" : 1,
"sbo" : 253,
"type" : "Complex"
},
{
"data" : {
"clone_marker" : "MAP:C3",
"compartment" : "MAP:Cytosol",
"label" : "PI3K-p85",
"modification" : [],
"ref" : "MAP:C3"
},
"id" : "MAP:C3_Reactome:179791_1",
"is_abstract" : 1,
"sbo" : 252,
"type" : "Protein"
},
{
"data" : {
"clone_marker" : "Reactome:179882",
"compartment" : "MAP:Plasmamembrane",
"label" : "EGF:Phospho-EGFR (Y992, Y1068, Y1086, Y1148, Y1173) dimer",
"modification" : [],
"ref" : "Reactome:179882",
"subnodes" : [
"Reactome:179860_Reactome:179882_Reactome:179791_1_1",
"Reactome:179860_Reactome:179882_Reactome:179791_1_2"
]
},
"id" : "Reactome:179882_Reactome:179791_1",
"is_abstract" : 1,
"sbo" : 253,
"type" : "Complex"
},
{
"data" : {
"clone_marker" : "MAP:C2",
"compartment" : "MAP:Cytosol",
"label" : "PI3K-p110",
"modification" : [],
"ref" : "MAP:C2"
},
"id" : "MAP:C2_Reactome:179791_1",
"is_abstract" : 1,
"sbo" : 252,
"type" : "Protein"
},
{
"data" : {
"clone_marker" : "Reactome:179849",
"compartment" : "MAP:Cytosol",
"label" : "GRB2:GAB1",
"modification" : [],
"ref" : "Reactome:179849",
"subnodes" : [
"MAP:UP62993_CY_Reactome:179849_Reactome:179791_1_1",
"MAP:UQ13480_CY_Reactome:179849_Reactome:179791_1_1"
]
},
"id" : "Reactome:179849_Reactome:179791_1",
"is_abstract" : 1,
"sbo" : 253,
"type" : "Complex"
},
{
"data" : {
"clone_marker" : "Reactome:109793",
"compartment" : "MAP:Plasmamembrane",
"label" : "Activated RAF1 complex",
"modification" : [],
"ref" : "Reactome:109793",
"subnodes" : [
"MAP:UP31946_CY_Reactome:109793_Reactome:112406_1_1",
"Reactome:109783_Reactome:109793_Reactome:112406_1_1",
"Reactome:109792_Reactome:109793_Reactome:112406_1_1"
]
},
"id" : "Reactome:109793_Reactome:112406_1",
"is_abstract" : 1,
"sbo" : 253,
"type" : "Complex"
},
{
"data" : {
"clone_marker" : "Reactome:112398",
"compartment" : "MAP:Cytosol",
"label" : "MEK",
"modification" : [],
"ref" : "Reactome:112398"
},
"id" : "Reactome:112398_Reactome:112406_1",
"is_abstract" : 1,
"sbo" : 240,
"type" : "Compound"
},
{
"data" : {
"clone_marker" : "MAP:UQ02750_CY",
"compartment" : "MAP:Cytosol",
"label" : "MEK1",
"modification" : [],
"ref" : "MAP:UQ02750_CY"
},
"id" : "MAP:UQ02750_CY_Reactome:109794_1",
"is_abstract" : 1,
"sbo" : 252,
"type" : "Protein"
},
{
"data" : {
"clone_marker" : "Reactome:109793",
"compartment" : "MAP:Plasmamembrane",
"label" : "Activated RAF1 complex",
"modification" : [],
"ref" : "Reactome:109793",
"subnodes" : [
"MAP:UP31946_CY_Reactome:109793_Reactome:109794_1_1",
"Reactome:109783_Reactome:109793_Reactome:109794_1_1",
"Reactome:109792_Reactome:109793_Reactome:109794_1_1"
]
},
"id" : "Reactome:109793_Reactome:109794_1",
"is_abstract" : 1,
"sbo" : 253,
"type" : "Complex"
},
{
"data" : {
"clone_marker" : "Reactome:180276",
"compartment" : "MAP:Cytosol",
"label" : "Phospho-SHC transforming protein",
"modification" : [
[
216,
"349"
],
[
216,
"350"
]
],
"ref" : "Reactome:180276"
},
"id" : "Reactome:180276_Reactome:180337_1",
"is_abstract" : 1,
"sbo" : 252,
"type" : "Protein"
},
{
"data" : {
"clone_marker" : "Reactome:179882",
"compartment" : "MAP:Plasmamembrane",
"label" : "EGF:Phospho-EGFR (Y992, Y1068, Y1086, Y1148, Y1173) dimer",
"modification" : [],
"ref" : "Reactome:179882",
"subnodes" : [
"Reactome:179860_Reactome:179882_Reactome:180337_1_1",
"Reactome:179860_Reactome:179882_Reactome:180337_1_2"
]
},
"id" : "Reactome:179882_Reactome:180337_1",
"is_abstract" : 1,
"sbo" : 253,
"type" : "Complex"
},
{
"data" : {
"clone_marker" : "MAP:Cx114",
"compartment" : "MAP:Cytosol",
"label" : "GRB2:SOS1",
"modification" : [],
"ref" : "MAP:Cx114",
"subnodes" : [
"MAP:UQ07889_CY_MAP:Cx114_Reactome:179820_1_1",
"MAP:UP62993_CY_MAP:Cx114_Reactome:179820_1_1"
]
},
"id" : "MAP:Cx114_Reactome:179820_1",
"is_abstract" : 1,
"sbo" : 253,
"type" : "Complex"
},
{
"data" : {
"clone_marker" : "Reactome:179882",
"compartment" : "MAP:Plasmamembrane",
"label" : "EGF:Phospho-EGFR (Y992, Y1068, Y1086, Y1148, Y1173) dimer",
"modification" : [],
"ref" : "Reactome:179882",
"subnodes" : [
"Reactome:179860_Reactome:179882_Reactome:179820_1_1",
"Reactome:179860_Reactome:179882_Reactome:179820_1_2"
]
},
"id" : "Reactome:179882_Reactome:179820_1",
"is_abstract" : 1,
"sbo" : 253,
"type" : "Complex"
},
{
"data" : {
"clone_marker" : "Reactome:109782",
"compartment" : "MAP:Plasmamembrane",
"label" : "p21 RAS",
"modification" : [],
"ref" : "Reactome:109782"
},
"id" : "Reactome:109782_Reactome:109783_1",
"is_abstract" : 1,
"sbo" : 240,
"type" : "Compound"
},
{
"data" : {
"clone_marker" : "MAP:Cb15996_CY",
"compartment" : "MAP:Cytosol",
"label" : "GTP",
"modification" : [],
"ref" : "MAP:Cb15996_CY"
},
"id" : "MAP:Cb15996_CY_Reactome:109783_1",
"is_abstract" : 1,
"sbo" : 247,
"type" : "SimpleCompound"
},
{
"data" : {
"clone_marker" : "MAP:UP04049_CY_pho259pho621",
"compartment" : "MAP:Cytosol",
"label" : "RAF1(ph259,ph621)",
"modification" : [
[
216,
"259"
],
[
216,
"621"
]
],
"ref" : "MAP:UP04049_CY_pho259pho621"
},
"id" : "MAP:UP04049_CY_pho259pho621_Reactome:109788_Reactome:109789_1_1",
"is_abstract" : 1,
"sbo" : 252,
"type" : "Protein"
},
{
"data" : {
"clone_marker" : "Reactome:109783",
"compartment" : "MAP:Plasmamembrane",
"label" : "p21 RAS:GTP",
"modification" : [],
"ref" : "Reactome:109783",
"subnodes" : [
"Reactome:109782_Reactome:109783_Reactome:109788_Reactome:109789_1_1_1",
"MAP:Cb15996_CY_Reactome:109783_Reactome:109788_Reactome:109789_1_1_1"
]
},
"id" : "Reactome:109783_Reactome:109788_Reactome:109789_1_1",
"is_abstract" : 1,
"sbo" : 253,
"type" : "Complex"
},
{
"data" : {
"clone_marker" : "Reactome:109782",
"compartment" : "MAP:Plasmamembrane",
"label" : "p21 RAS",
"modification" : [],
"ref" : "Reactome:109782"
},
"id" : "Reactome:109782_Reactome:109783_Reactome:109793_1_1",
"is_abstract" : 1,
"sbo" : 240,
"type" : "Compound"
},
{
"data" : {
"clone_marker" : "MAP:Cb15996_CY",
"compartment" : "MAP:Cytosol",
"label" : "GTP",
"modification" : [],
"ref" : "MAP:Cb15996_CY"
},
"id" : "MAP:Cb15996_CY_Reactome:109783_Reactome:109793_1_1",
"is_abstract" : 1,
"sbo" : 247,
"type" : "SimpleCompound"
},
{
"data" : {
"clone_marker" : "Reactome:179860",
"compartment" : "MAP:Plasmamembrane",
"label" : "EGF:Phospho-EGFR",
"modification" : [],
"ref" : "Reactome:179860",
"subnodes" : [
"Reactome:179863_Reactome:179860_Reactome:179882_Reactome:180301_1_1_1",
"Reactome:179803_Reactome:179860_Reactome:179882_Reactome:180301_1_1_1"
]
},
"id" : "Reactome:179860_Reactome:179882_Reactome:180301_1_1",
"is_abstract" : 1,
"sbo" : 253,
"type" : "Complex"
},
{
"data" : {
"clone_marker" : "Reactome:179860",
"compartment" : "MAP:Plasmamembrane",
"label" : "EGF:Phospho-EGFR",
"modification" : [],
"ref" : "Reactome:179860",
"subnodes" : [
"Reactome:179863_Reactome:179860_Reactome:179882_Reactome:180301_1_2_1",
"Reactome:179803_Reactome:179860_Reactome:179882_Reactome:180301_1_2_1"
]
},
"id" : "Reactome:179860_Reactome:179882_Reactome:180301_1_2",
"is_abstract" : 1,
"sbo" : 253,
"type" : "Complex"
},
{
"data" : {
"clone_marker" : "Reactome:179860",
"compartment" : "MAP:Plasmamembrane",
"label" : "EGF:Phospho-EGFR",
"modification" : [],
"ref" : "Reactome:179860",
"subnodes" : [
"Reactome:179863_Reactome:179860_Reactome:179882_Reactome:180348_1_1_1",
"Reactome:179803_Reactome:179860_Reactome:179882_Reactome:180348_1_1_1"
]
},
"id" : "Reactome:179860_Reactome:179882_Reactome:180348_1_1",
"is_abstract" : 1,
"sbo" : 253,
"type" : "Complex"
},
{
"data" : {
"clone_marker" : "Reactome:179860",
"compartment" : "MAP:Plasmamembrane",
"label" : "EGF:Phospho-EGFR",
"modification" : [],
"ref" : "Reactome:179860",
"subnodes" : [
"Reactome:179863_Reactome:179860_Reactome:179882_Reactome:180348_1_2_1",
"Reactome:179803_Reactome:179860_Reactome:179882_Reactome:180348_1_2_1"
]
},
"id" : "Reactome:179860_Reactome:179882_Reactome:180348_1_2",
"is_abstract" : 1,
"sbo" : 253,
"type" : "Complex"
},
{
"data" : {
"clone_marker" : "MAP:UP62993_CY",
"compartment" : "MAP:Cytosol",
"label" : "GRB2()",
"modification" : [],
"ref" : "MAP:UP62993_CY"
},
"id" : "MAP:UP62993_CY_Reactome:179849_Reactome:180348_1_1",
"is_abstract" : 1,
"sbo" : 252,
"type" : "Protein"
},
{
"data" : {
"clone_marker" : "MAP:UQ13480_CY",
"compartment" : "MAP:Cytosol",
"label" : "GAB1",
"modification" : [],
"ref" : "MAP:UQ13480_CY"
},
"id" : "MAP:UQ13480_CY_Reactome:179849_Reactome:180348_1_1",
"is_abstract" : 1,
"sbo" : 252,
"type" : "Protein"
},
{
"data" : {
"clone_marker" : "Reactome:109782",
"compartment" : "MAP:Plasmamembrane",
"label" : "p21 RAS",
"modification" : [],
"ref" : "Reactome:109782"
},
"id" : "Reactome:109782_Reactome:109783_Reactome:109788_1_1",
"is_abstract" : 1,
"sbo" : 240,
"type" : "Compound"
},
{
"data" : {
"clone_marker" : "MAP:Cb15996_CY",
"compartment" : "MAP:Cytosol",
"label" : "GTP",
"modification" : [],
"ref" : "MAP:Cb15996_CY"
},
"id" : "MAP:Cb15996_CY_Reactome:109783_Reactome:109788_1_1",
"is_abstract" : 1,
"sbo" : 247,
"type" : "SimpleCompound"
},
{
"data" : {
"clone_marker" : "MAP:UP62993_CY",
"compartment" : "MAP:Cytosol",
"label" : "GRB2()",
"modification" : [],
"ref" : "MAP:UP62993_CY"
},
"id" : "MAP:UP62993_CY_Reactome:180304_Reactome:180286_1_1",
"is_abstract" : 1,
"sbo" : 252,
"type" : "Protein"
},
{
"data" : {
"clone_marker" : "Reactome:180344",
"compartment" : "MAP:Cytosol",
"label" : "Phospho-GAB1",
"modification" : [
[
216,
"627"
],
[
216,
"659"
],
[
216,
"447"
],
[
216,
"472"
],
[
216,
"589"
]
],
"ref" : "Reactome:180344"
},
"id" : "Reactome:180344_Reactome:180304_Reactome:180286_1_1",
"is_abstract" : 1,
"sbo" : 252,
"type" : "Protein"
},
{
"data" : {
"clone_marker" : "Reactome:179860",
"compartment" : "MAP:Plasmamembrane",
"label" : "EGF:Phospho-EGFR",
"modification" : [],
"ref" : "Reactome:179860",
"subnodes" : [
"Reactome:179863_Reactome:179860_Reactome:179882_Reactome:180286_1_1_1",
"Reactome:179803_Reactome:179860_Reactome:179882_Reactome:180286_1_1_1"
]
},
"id" : "Reactome:179860_Reactome:179882_Reactome:180286_1_1",
"is_abstract" : 1,
"sbo" : 253,
"type" : "Complex"
},
{
"data" : {
"clone_marker" : "Reactome:179860",
"compartment" : "MAP:Plasmamembrane",
"label" : "EGF:Phospho-EGFR",
"modification" : [],
"ref" : "Reactome:179860",
"subnodes" : [
"Reactome:179863_Reactome:179860_Reactome:179882_Reactome:180286_1_2_1",
"Reactome:179803_Reactome:179860_Reactome:179882_Reactome:180286_1_2_1"
]
},
"id" : "Reactome:179860_Reactome:179882_Reactome:180286_1_2",
"is_abstract" : 1,
"sbo" : 253,
"type" : "Complex"
},
{
"data" : {
"clone_marker" : "Reactome:179863",
"compartment" : "MAP:Extracellular",
"label" : "EGF",
"modification" : [],
"ref" : "Reactome:179863"
},
"id" : "Reactome:179863_Reactome:179847_Reactome:179845_1_1",
"is_abstract" : 1,
"sbo" : 252,
"type" : "Protein"
},
{
"data" : {
"clone_marker" : "Reactome:179837",
"compartment" : "MAP:Plasmamembrane",
"label" : "EGFR",
"modification" : [],
"ref" : "Reactome:179837"
},
"id" : "Reactome:179837_Reactome:179847_Reactome:179845_1_1",
"is_abstract" : 1,
"sbo" : 252,
"type" : "Protein"
},
{
"data" : {
"clone_marker" : "Reactome:179863",
"compartment" : "MAP:Extracellular",
"label" : "EGF",
"modification" : [],
"ref" : "Reactome:179863"
},
"id" : "Reactome:179863_Reactome:179847_Reactome:179845_2_1",
"is_abstract" : 1,
"sbo" : 252,
"type" : "Protein"
},
{
"data" : {
"clone_marker" : "Reactome:179837",
"compartment" : "MAP:Plasmamembrane",
"label" : "EGFR",
"modification" : [],
"ref" : "Reactome:179837"
},
"id" : "Reactome:179837_Reactome:179847_Reactome:179845_2_1",
"is_abstract" : 1,
"sbo" : 252,
"type" : "Protein"
},
{
"data" : {
"clone_marker" : "Reactome:179863",
"compartment" : "MAP:Extracellular",
"label" : "EGF",
"modification" : [],
"ref" : "Reactome:179863"
},
"id" : "Reactome:179863_Reactome:179860_Reactome:179882_1_1",
"is_abstract" : 1,
"sbo" : 252,
"type" : "Protein"
},
{
"data" : {
"clone_marker" : "Reactome:179803",
"compartment" : "MAP:Plasmamembrane",
"label" : "Phospho-EGFR",
"modification" : [
[
216,
"1068"
],
[
216,
"1148"
],
[
216,
"1173"
],
[
216,
"1086"
],
[
216,
"992"
]
],
"ref" : "Reactome:179803"
},
"id" : "Reactome:179803_Reactome:179860_Reactome:179882_1_1",
"is_abstract" : 1,
"sbo" : 252,
"type" : "Protein"
},
{
"data" : {
"clone_marker" : "Reactome:179863",
"compartment" : "MAP:Extracellular",
"label" : "EGF",
"modification" : [],
"ref" : "Reactome:179863"
},
"id" : "Reactome:179863_Reactome:179860_Reactome:179882_2_1",
"is_abstract" : 1,
"sbo" : 252,
"type" : "Protein"
},
{
"data" : {
"clone_marker" : "Reactome:179803",
"compartment" : "MAP:Plasmamembrane",
"label" : "Phospho-EGFR",
"modification" : [
[
216,
"1068"
],
[
216,
"1148"
],
[
216,
"1173"
],
[
216,
"1086"
],
[
216,
"992"
]
],
"ref" : "Reactome:179803"
},
"id" : "Reactome:179803_Reactome:179860_Reactome:179882_2_1",
"is_abstract" : 1,
"sbo" : 252,
"type" : "Protein"
},
{
"data" : {
"clone_marker" : "MAP:C3",
"compartment" : "MAP:Cytosol",
"label" : "PI3K-p85",
"modification" : [],
"ref" : "MAP:C3"
},
"id" : "MAP:C3_MAP:Cx156_MAN:C10_1_1",
"is_abstract" : 1,
"sbo" : 252,
"type" : "Protein"
},
{
"data" : {
"clone_marker" : "MAP:C2",
"compartment" : "MAP:Cytosol",
"label" : "PI3K-p110",
"modification" : [],
"ref" : "MAP:C2"
},
"id" : "MAP:C2_MAP:Cx156_MAN:C10_1_1",
"is_abstract" : 1,
"sbo" : 252,
"type" : "Protein"
},
{
"data" : {
"clone_marker" : "Reactome:109782",
"compartment" : "MAP:Plasmamembrane",
"label" : "p21 RAS",
"modification" : [],
"ref" : "Reactome:109782"
},
"id" : "Reactome:109782_Reactome:109783_MAN:C10_1_1",
"is_abstract" : 1,
"sbo" : 240,
"type" : "Compound"
},
{
"data" : {
"clone_marker" : "MAP:Cb15996_CY",
"compartment" : "MAP:Cytosol",
"label" : "GTP",
"modification" : [],
"ref" : "MAP:Cb15996_CY"
},
"id" : "MAP:Cb15996_CY_Reactome:109783_MAN:C10_1_1",
"is_abstract" : 1,
"sbo" : 247,
"type" : "SimpleCompound"
},
{
"data" : {
"clone_marker" : "MAP:UP31946_CY",
"compartment" : "MAP:Cytosol",
"label" : "YWHAB()",
"modification" : [],
"ref" : "MAP:UP31946_CY"
},
"id" : "MAP:UP31946_CY_Reactome:109793_Reactome:109795_1_1",
"is_abstract" : 1,
"sbo" : 252,
"type" : "Protein"
},
{
"data" : {
"clone_marker" : "Reactome:109783",
"compartment" : "MAP:Plasmamembrane",
"label" : "p21 RAS:GTP",
"modification" : [],
"ref" : "Reactome:109783",
"subnodes" : [
"Reactome:109782_Reactome:109783_Reactome:109793_Reactome:109795_1_1_1",
"MAP:Cb15996_CY_Reactome:109783_Reactome:109793_Reactome:109795_1_1_1"
]
},
"id" : "Reactome:109783_Reactome:109793_Reactome:109795_1_1",
"is_abstract" : 1,
"sbo" : 253,
"type" : "Complex"
},
{
"data" : {
"clone_marker" : "Reactome:109792",
"compartment" : "MAP:Plasmamembrane",
"label" : "cRaf",
"modification" : [
[
216,
"340"
],
[
216,
"621"
],
[
216,
"259"
],
[
216,
"341"
]
],
"ref" : "Reactome:109792"
},
"id" : "Reactome:109792_Reactome:109793_Reactome:109795_1_1",
"is_abstract" : 1,
"sbo" : 252,
"type" : "Protein"
},
{
"data" : {
"clone_marker" : "MAP:UQ07889_CY",
"compartment" : "MAP:Cytosol",
"label" : "Son of sevenless protein homolog 1",
"modification" : [],
"ref" : "MAP:UQ07889_CY"
},
"id" : "MAP:UQ07889_CY_MAP:Cx114_Reactome:180331_1_1",
"is_abstract" : 1,
"sbo" : 252,
"type" : "Protein"
},
{
"data" : {
"clone_marker" : "MAP:UP62993_CY",
"compartment" : "MAP:Cytosol",
"label" : "GRB2()",
"modification" : [],
"ref" : "MAP:UP62993_CY"
},
"id" : "MAP:UP62993_CY_MAP:Cx114_Reactome:180331_1_1",
"is_abstract" : 1,
"sbo" : 252,
"type" : "Protein"
},
{
"data" : {
"clone_marker" : "Reactome:180276",
"compartment" : "MAP:Cytosol",
"label" : "Phospho-SHC transforming protein",
"modification" : [
[
216,
"349"
],
[
216,
"350"
]
],
"ref" : "Reactome:180276"
},
"id" : "Reactome:180276_Reactome:180337_Reactome:180331_1_1",
"is_abstract" : 1,
"sbo" : 252,
"type" : "Protein"
},
{
"data" : {
"clone_marker" : "Reactome:179882",
"compartment" : "MAP:Plasmamembrane",
"label" : "EGF:Phospho-EGFR (Y992, Y1068, Y1086, Y1148, Y1173) dimer",
"modification" : [],
"ref" : "Reactome:179882",
"subnodes" : [
"Reactome:179860_Reactome:179882_Reactome:180337_Reactome:180331_1_1_1",
"Reactome:179860_Reactome:179882_Reactome:180337_Reactome:180331_1_1_2"
]
},
"id" : "Reactome:179882_Reactome:180337_Reactome:180331_1_1",
"is_abstract" : 1,
"sbo" : 253,
"type" : "Complex"
},
{
"data" : {
"clone_marker" : "Reactome:179860",
"compartment" : "MAP:Plasmamembrane",
"label" : "EGF:Phospho-EGFR",
"modification" : [],
"ref" : "Reactome:179860",
"subnodes" : [
"Reactome:179863_Reactome:179860_Reactome:179882_Reactome:179791_1_1_1",
"Reactome:179803_Reactome:179860_Reactome:179882_Reactome:179791_1_1_1"
]
},
"id" : "Reactome:179860_Reactome:179882_Reactome:179791_1_1",
"is_abstract" : 1,
"sbo" : 253,
"type" : "Complex"
},
{
"data" : {
"clone_marker" : "Reactome:179860",
"compartment" : "MAP:Plasmamembrane",
"label" : "EGF:Phospho-EGFR",
"modification" : [],
"ref" : "Reactome:179860",
"subnodes" : [
"Reactome:179863_Reactome:179860_Reactome:179882_Reactome:179791_1_2_1",
"Reactome:179803_Reactome:179860_Reactome:179882_Reactome:179791_1_2_1"
]
},
"id" : "Reactome:179860_Reactome:179882_Reactome:179791_1_2",
"is_abstract" : 1,
"sbo" : 253,
"type" : "Complex"
},
{
"data" : {
"clone_marker" : "MAP:UP62993_CY",
"compartment" : "MAP:Cytosol",
"label" : "GRB2()",
"modification" : [],
"ref" : "MAP:UP62993_CY"
},
"id" : "MAP:UP62993_CY_Reactome:179849_Reactome:179791_1_1",
"is_abstract" : 1,
"sbo" : 252,
"type" : "Protein"
},
{
"data" : {
"clone_marker" : "MAP:UQ13480_CY",
"compartment" : "MAP:Cytosol",
"label" : "GAB1",
"modification" : [],
"ref" : "MAP:UQ13480_CY"
},
"id" : "MAP:UQ13480_CY_Reactome:179849_Reactome:179791_1_1",
"is_abstract" : 1,
"sbo" : 252,
"type" : "Protein"
},
{
"data" : {
"clone_marker" : "MAP:UP31946_CY",
"compartment" : "MAP:Cytosol",
"label" : "YWHAB()",
"modification" : [],
"ref" : "MAP:UP31946_CY"
},
"id" : "MAP:UP31946_CY_Reactome:109793_Reactome:112406_1_1",
"is_abstract" : 1,
"sbo" : 252,
"type" : "Protein"
},
{
"data" : {
"clone_marker" : "Reactome:109783",
"compartment" : "MAP:Plasmamembrane",
"label" : "p21 RAS:GTP",
"modification" : [],
"ref" : "Reactome:109783",
"subnodes" : [
"Reactome:109782_Reactome:109783_Reactome:109793_Reactome:112406_1_1_1",
"MAP:Cb15996_CY_Reactome:109783_Reactome:109793_Reactome:112406_1_1_1"
]
},
"id" : "Reactome:109783_Reactome:109793_Reactome:112406_1_1",
"is_abstract" : 1,
"sbo" : 253,
"type" : "Complex"
},
{
"data" : {
"clone_marker" : "Reactome:109792",
"compartment" : "MAP:Plasmamembrane",
"label" : "cRaf",
"modification" : [
[
216,
"340"
],
[
216,
"621"
],
[
216,
"259"
],
[
216,
"341"
]
],
"ref" : "Reactome:109792"
},
"id" : "Reactome:109792_Reactome:109793_Reactome:112406_1_1",
"is_abstract" : 1,
"sbo" : 252,
"type" : "Protein"
},
{
"data" : {
"clone_marker" : "MAP:UP31946_CY",
"compartment" : "MAP:Cytosol",
"label" : "YWHAB()",
"modification" : [],
"ref" : "MAP:UP31946_CY"
},
"id" : "MAP:UP31946_CY_Reactome:109793_Reactome:109794_1_1",
"is_abstract" : 1,
"sbo" : 252,
"type" : "Protein"
},
{
"data" : {
"clone_marker" : "Reactome:109783",
"compartment" : "MAP:Plasmamembrane",
"label" : "p21 RAS:GTP",
"modification" : [],
"ref" : "Reactome:109783",
"subnodes" : [
"Reactome:109782_Reactome:109783_Reactome:109793_Reactome:109794_1_1_1",
"MAP:Cb15996_CY_Reactome:109783_Reactome:109793_Reactome:109794_1_1_1"
]
},
"id" : "Reactome:109783_Reactome:109793_Reactome:109794_1_1",
"is_abstract" : 1,
"sbo" : 253,
"type" : "Complex"
},
{
"data" : {
"clone_marker" : "Reactome:109792",
"compartment" : "MAP:Plasmamembrane",
"label" : "cRaf",
"modification" : [
[
216,
"340"
],
[
216,
"621"
],
[
216,
"259"
],
[
216,
"341"
]
],
"ref" : "Reactome:109792"
},
"id" : "Reactome:109792_Reactome:109793_Reactome:109794_1_1",
"is_abstract" : 1,
"sbo" : 252,
"type" : "Protein"
},
{
"data" : {
"clone_marker" : "Reactome:179860",
"compartment" : "MAP:Plasmamembrane",
"label" : "EGF:Phospho-EGFR",
"modification" : [],
"ref" : "Reactome:179860",
"subnodes" : [
"Reactome:179863_Reactome:179860_Reactome:179882_Reactome:180337_1_1_1",
"Reactome:179803_Reactome:179860_Reactome:179882_Reactome:180337_1_1_1"
]
},
"id" : "Reactome:179860_Reactome:179882_Reactome:180337_1_1",
"is_abstract" : 1,
"sbo" : 253,
"type" : "Complex"
},
{
"data" : {
"clone_marker" : "Reactome:179860",
"compartment" : "MAP:Plasmamembrane",
"label" : "EGF:Phospho-EGFR",
"modification" : [],
"ref" : "Reactome:179860",
"subnodes" : [
"Reactome:179863_Reactome:179860_Reactome:179882_Reactome:180337_1_2_1",
"Reactome:179803_Reactome:179860_Reactome:179882_Reactome:180337_1_2_1"
]
},
"id" : "Reactome:179860_Reactome:179882_Reactome:180337_1_2",
"is_abstract" : 1,
"sbo" : 253,
"type" : "Complex"
},
{
"data" : {
"clone_marker" : "MAP:UQ07889_CY",
"compartment" : "MAP:Cytosol",
"label" : "Son of sevenless protein homolog 1",
"modification" : [],
"ref" : "MAP:UQ07889_CY"
},
"id" : "MAP:UQ07889_CY_MAP:Cx114_Reactome:179820_1_1",
"is_abstract" : 1,
"sbo" : 252,
"type" : "Protein"
},
{
"data" : {
"clone_marker" : "MAP:UP62993_CY",
"compartment" : "MAP:Cytosol",
"label" : "GRB2()",
"modification" : [],
"ref" : "MAP:UP62993_CY"
},
"id" : "MAP:UP62993_CY_MAP:Cx114_Reactome:179820_1_1",
"is_abstract" : 1,
"sbo" : 252,
"type" : "Protein"
},
{
"data" : {
"clone_marker" : "Reactome:179860",
"compartment" : "MAP:Plasmamembrane",
"label" : "EGF:Phospho-EGFR",
"modification" : [],
"ref" : "Reactome:179860",
"subnodes" : [
"Reactome:179863_Reactome:179860_Reactome:179882_Reactome:179820_1_1_1",
"Reactome:179803_Reactome:179860_Reactome:179882_Reactome:179820_1_1_1"
]
},
"id" : "Reactome:179860_Reactome:179882_Reactome:179820_1_1",
"is_abstract" : 1,
"sbo" : 253,
"type" : "Complex"
},
{
"data" : {
"clone_marker" : "Reactome:179860",
"compartment" : "MAP:Plasmamembrane",
"label" : "EGF:Phospho-EGFR",
"modification" : [],
"ref" : "Reactome:179860",
"subnodes" : [
"Reactome:179863_Reactome:179860_Reactome:179882_Reactome:179820_1_2_1",
"Reactome:179803_Reactome:179860_Reactome:179882_Reactome:179820_1_2_1"
]
},
"id" : "Reactome:179860_Reactome:179882_Reactome:179820_1_2",
"is_abstract" : 1,
"sbo" : 253,
"type" : "Complex"
},
{
"data" : {
"clone_marker" : "Reactome:109782",
"compartment" : "MAP:Plasmamembrane",
"label" : "p21 RAS",
"modification" : [],
"ref" : "Reactome:109782"
},
"id" : "Reactome:109782_Reactome:109783_Reactome:109788_Reactome:109789_1_1_1",
"is_abstract" : 1,
"sbo" : 240,
"type" : "Compound"
},
{
"data" : {
"clone_marker" : "MAP:Cb15996_CY",
"compartment" : "MAP:Cytosol",
"label" : "GTP",
"modification" : [],
"ref" : "MAP:Cb15996_CY"
},
"id" : "MAP:Cb15996_CY_Reactome:109783_Reactome:109788_Reactome:109789_1_1_1",
"is_abstract" : 1,
"sbo" : 247,
"type" : "SimpleCompound"
},
{
"data" : {
"clone_marker" : "Reactome:179863",
"compartment" : "MAP:Extracellular",
"label" : "EGF",
"modification" : [],
"ref" : "Reactome:179863"
},
"id" : "Reactome:179863_Reactome:179860_Reactome:179882_Reactome:180301_1_1_1",
"is_abstract" : 1,
"sbo" : 252,
"type" : "Protein"
},
{
"data" : {
"clone_marker" : "Reactome:179803",
"compartment" : "MAP:Plasmamembrane",
"label" : "Phospho-EGFR",
"modification" : [
[
216,
"1068"
],
[
216,
"1148"
],
[
216,
"1173"
],
[
216,
"1086"
],
[
216,
"992"
]
],
"ref" : "Reactome:179803"
},
"id" : "Reactome:179803_Reactome:179860_Reactome:179882_Reactome:180301_1_1_1",
"is_abstract" : 1,
"sbo" : 252,
"type" : "Protein"
},
{
"data" : {
"clone_marker" : "Reactome:179863",
"compartment" : "MAP:Extracellular",
"label" : "EGF",
"modification" : [],
"ref" : "Reactome:179863"
},
"id" : "Reactome:179863_Reactome:179860_Reactome:179882_Reactome:180301_1_2_1",
"is_abstract" : 1,
"sbo" : 252,
"type" : "Protein"
},
{
"data" : {
"clone_marker" : "Reactome:179803",
"compartment" : "MAP:Plasmamembrane",
"label" : "Phospho-EGFR",
"modification" : [
[
216,
"1068"
],
[
216,
"1148"
],
[
216,
"1173"
],
[
216,
"1086"
],
[
216,
"992"
]
],
"ref" : "Reactome:179803"
},
"id" : "Reactome:179803_Reactome:179860_Reactome:179882_Reactome:180301_1_2_1",
"is_abstract" : 1,
"sbo" : 252,
"type" : "Protein"
},
{
"data" : {
"clone_marker" : "Reactome:179863",
"compartment" : "MAP:Extracellular",
"label" : "EGF",
"modification" : [],
"ref" : "Reactome:179863"
},
"id" : "Reactome:179863_Reactome:179860_Reactome:179882_Reactome:180348_1_1_1",
"is_abstract" : 1,
"sbo" : 252,
"type" : "Protein"
},
{
"data" : {
"clone_marker" : "Reactome:179803",
"compartment" : "MAP:Plasmamembrane",
"label" : "Phospho-EGFR",
"modification" : [
[
216,
"1068"
],
[
216,
"1148"
],
[
216,
"1173"
],
[
216,
"1086"
],
[
216,
"992"
]
],
"ref" : "Reactome:179803"
},
"id" : "Reactome:179803_Reactome:179860_Reactome:179882_Reactome:180348_1_1_1",
"is_abstract" : 1,
"sbo" : 252,
"type" : "Protein"
},
{
"data" : {
"clone_marker" : "Reactome:179863",
"compartment" : "MAP:Extracellular",
"label" : "EGF",
"modification" : [],
"ref" : "Reactome:179863"
},
"id" : "Reactome:179863_Reactome:179860_Reactome:179882_Reactome:180348_1_2_1",
"is_abstract" : 1,
"sbo" : 252,
"type" : "Protein"
},
{
"data" : {
"clone_marker" : "Reactome:179803",
"compartment" : "MAP:Plasmamembrane",
"label" : "Phospho-EGFR",
"modification" : [
[
216,
"1068"
],
[
216,
"1148"
],
[
216,
"1173"
],
[
216,
"1086"
],
[
216,
"992"
]
],
"ref" : "Reactome:179803"
},
"id" : "Reactome:179803_Reactome:179860_Reactome:179882_Reactome:180348_1_2_1",
"is_abstract" : 1,
"sbo" : 252,
"type" : "Protein"
},
{
"data" : {
"clone_marker" : "Reactome:179863",
"compartment" : "MAP:Extracellular",
"label" : "EGF",
"modification" : [],
"ref" : "Reactome:179863"
},
"id" : "Reactome:179863_Reactome:179860_Reactome:179882_Reactome:180286_1_1_1",
"is_abstract" : 1,
"sbo" : 252,
"type" : "Protein"
},
{
"data" : {
"clone_marker" : "Reactome:179803",
"compartment" : "MAP:Plasmamembrane",
"label" : "Phospho-EGFR",
"modification" : [
[
216,
"1068"
],
[
216,
"1148"
],
[
216,
"1173"
],
[
216,
"1086"
],
[
216,
"992"
]
],
"ref" : "Reactome:179803"
},
"id" : "Reactome:179803_Reactome:179860_Reactome:179882_Reactome:180286_1_1_1",
"is_abstract" : 1,
"sbo" : 252,
"type" : "Protein"
},
{
"data" : {
"clone_marker" : "Reactome:179863",
"compartment" : "MAP:Extracellular",
"label" : "EGF",
"modification" : [],
"ref" : "Reactome:179863"
},
"id" : "Reactome:179863_Reactome:179860_Reactome:179882_Reactome:180286_1_2_1",
"is_abstract" : 1,
"sbo" : 252,
"type" : "Protein"
},
{
"data" : {
"clone_marker" : "Reactome:179803",
"compartment" : "MAP:Plasmamembrane",
"label" : "Phospho-EGFR",
"modification" : [
[
216,
"1068"
],
[
216,
"1148"
],
[
216,
"1173"
],
[
216,
"1086"
],
[
216,
"992"
]
],
"ref" : "Reactome:179803"
},
"id" : "Reactome:179803_Reactome:179860_Reactome:179882_Reactome:180286_1_2_1",
"is_abstract" : 1,
"sbo" : 252,
"type" : "Protein"
},
{
"data" : {
"clone_marker" : "Reactome:109782",
"compartment" : "MAP:Plasmamembrane",
"label" : "p21 RAS",
"modification" : [],
"ref" : "Reactome:109782"
},
"id" : "Reactome:109782_Reactome:109783_Reactome:109793_Reactome:109795_1_1_1",
"is_abstract" : 1,
"sbo" : 240,
"type" : "Compound"
},
{
"data" : {
"clone_marker" : "MAP:Cb15996_CY",
"compartment" : "MAP:Cytosol",
"label" : "GTP",
"modification" : [],
"ref" : "MAP:Cb15996_CY"
},
"id" : "MAP:Cb15996_CY_Reactome:109783_Reactome:109793_Reactome:109795_1_1_1",
"is_abstract" : 1,
"sbo" : 247,
"type" : "SimpleCompound"
},
{
"data" : {
"clone_marker" : "Reactome:179860",
"compartment" : "MAP:Plasmamembrane",
"label" : "EGF:Phospho-EGFR",
"modification" : [],
"ref" : "Reactome:179860",
"subnodes" : [
"Reactome:179863_Reactome:179860_Reactome:179882_Reactome:180337_Reactome:180331_1_1_1_1",
"Reactome:179803_Reactome:179860_Reactome:179882_Reactome:180337_Reactome:180331_1_1_1_1"
]
},
"id" : "Reactome:179860_Reactome:179882_Reactome:180337_Reactome:180331_1_1_1",
"is_abstract" : 1,
"sbo" : 253,
"type" : "Complex"
},
{
"data" : {
"clone_marker" : "Reactome:179860",
"compartment" : "MAP:Plasmamembrane",
"label" : "EGF:Phospho-EGFR",
"modification" : [],
"ref" : "Reactome:179860",
"subnodes" : [
"Reactome:179863_Reactome:179860_Reactome:179882_Reactome:180337_Reactome:180331_1_1_2_1",
"Reactome:179803_Reactome:179860_Reactome:179882_Reactome:180337_Reactome:180331_1_1_2_1"
]
},
"id" : "Reactome:179860_Reactome:179882_Reactome:180337_Reactome:180331_1_1_2",
"is_abstract" : 1,
"sbo" : 253,
"type" : "Complex"
},
{
"data" : {
"clone_marker" : "Reactome:179863",
"compartment" : "MAP:Extracellular",
"label" : "EGF",
"modification" : [],
"ref" : "Reactome:179863"
},
"id" : "Reactome:179863_Reactome:179860_Reactome:179882_Reactome:179791_1_1_1",
"is_abstract" : 1,
"sbo" : 252,
"type" : "Protein"
},
{
"data" : {
"clone_marker" : "Reactome:179803",
"compartment" : "MAP:Plasmamembrane",
"label" : "Phospho-EGFR",
"modification" : [
[
216,
"1068"
],
[
216,
"1148"
],
[
216,
"1173"
],
[
216,
"1086"
],
[
216,
"992"
]
],
"ref" : "Reactome:179803"
},
"id" : "Reactome:179803_Reactome:179860_Reactome:179882_Reactome:179791_1_1_1",
"is_abstract" : 1,
"sbo" : 252,
"type" : "Protein"
},
{
"data" : {
"clone_marker" : "Reactome:179863",
"compartment" : "MAP:Extracellular",
"label" : "EGF",
"modification" : [],
"ref" : "Reactome:179863"
},
"id" : "Reactome:179863_Reactome:179860_Reactome:179882_Reactome:179791_1_2_1",
"is_abstract" : 1,
"sbo" : 252,
"type" : "Protein"
},
{
"data" : {
"clone_marker" : "Reactome:179803",
"compartment" : "MAP:Plasmamembrane",
"label" : "Phospho-EGFR",
"modification" : [
[
216,
"1068"
],
[
216,
"1148"
],
[
216,
"1173"
],
[
216,
"1086"
],
[
216,
"992"
]
],
"ref" : "Reactome:179803"
},
"id" : "Reactome:179803_Reactome:179860_Reactome:179882_Reactome:179791_1_2_1",
"is_abstract" : 1,
"sbo" : 252,
"type" : "Protein"
},
{
"data" : {
"clone_marker" : "Reactome:109782",
"compartment" : "MAP:Plasmamembrane",
"label" : "p21 RAS",
"modification" : [],
"ref" : "Reactome:109782"
},
"id" : "Reactome:109782_Reactome:109783_Reactome:109793_Reactome:112406_1_1_1",
"is_abstract" : 1,
"sbo" : 240,
"type" : "Compound"
},
{
"data" : {
"clone_marker" : "MAP:Cb15996_CY",
"compartment" : "MAP:Cytosol",
"label" : "GTP",
"modification" : [],
"ref" : "MAP:Cb15996_CY"
},
"id" : "MAP:Cb15996_CY_Reactome:109783_Reactome:109793_Reactome:112406_1_1_1",
"is_abstract" : 1,
"sbo" : 247,
"type" : "SimpleCompound"
},
{
"data" : {
"clone_marker" : "Reactome:109782",
"compartment" : "MAP:Plasmamembrane",
"label" : "p21 RAS",
"modification" : [],
"ref" : "Reactome:109782"
},
"id" : "Reactome:109782_Reactome:109783_Reactome:109793_Reactome:109794_1_1_1",
"is_abstract" : 1,
"sbo" : 240,
"type" : "Compound"
},
{
"data" : {
"clone_marker" : "MAP:Cb15996_CY",
"compartment" : "MAP:Cytosol",
"label" : "GTP",
"modification" : [],
"ref" : "MAP:Cb15996_CY"
},
"id" : "MAP:Cb15996_CY_Reactome:109783_Reactome:109793_Reactome:109794_1_1_1",
"is_abstract" : 1,
"sbo" : 247,
"type" : "SimpleCompound"
},
{
"data" : {
"clone_marker" : "Reactome:179863",
"compartment" : "MAP:Extracellular",
"label" : "EGF",
"modification" : [],
"ref" : "Reactome:179863"
},
"id" : "Reactome:179863_Reactome:179860_Reactome:179882_Reactome:180337_1_1_1",
"is_abstract" : 1,
"sbo" : 252,
"type" : "Protein"
},
{
"data" : {
"clone_marker" : "Reactome:179803",
"compartment" : "MAP:Plasmamembrane",
"label" : "Phospho-EGFR",
"modification" : [
[
216,
"1068"
],
[
216,
"1148"
],
[
216,
"1173"
],
[
216,
"1086"
],
[
216,
"992"
]
],
"ref" : "Reactome:179803"
},
"id" : "Reactome:179803_Reactome:179860_Reactome:179882_Reactome:180337_1_1_1",
"is_abstract" : 1,
"sbo" : 252,
"type" : "Protein"
},
{
"data" : {
"clone_marker" : "Reactome:179863",
"compartment" : "MAP:Extracellular",
"label" : "EGF",
"modification" : [],
"ref" : "Reactome:179863"
},
"id" : "Reactome:179863_Reactome:179860_Reactome:179882_Reactome:180337_1_2_1",
"is_abstract" : 1,
"sbo" : 252,
"type" : "Protein"
},
{
"data" : {
"clone_marker" : "Reactome:179803",
"compartment" : "MAP:Plasmamembrane",
"label" : "Phospho-EGFR",
"modification" : [
[
216,
"1068"
],
[
216,
"1148"
],
[
216,
"1173"
],
[
216,
"1086"
],
[
216,
"992"
]
],
"ref" : "Reactome:179803"
},
"id" : "Reactome:179803_Reactome:179860_Reactome:179882_Reactome:180337_1_2_1",
"is_abstract" : 1,
"sbo" : 252,
"type" : "Protein"
},
{
"data" : {
"clone_marker" : "Reactome:179863",
"compartment" : "MAP:Extracellular",
"label" : "EGF",
"modification" : [],
"ref" : "Reactome:179863"
},
"id" : "Reactome:179863_Reactome:179860_Reactome:179882_Reactome:179820_1_1_1",
"is_abstract" : 1,
"sbo" : 252,
"type" : "Protein"
},
{
"data" : {
"clone_marker" : "Reactome:179803",
"compartment" : "MAP:Plasmamembrane",
"label" : "Phospho-EGFR",
"modification" : [
[
216,
"1068"
],
[
216,
"1148"
],
[
216,
"1173"
],
[
216,
"1086"
],
[
216,
"992"
]
],
"ref" : "Reactome:179803"
},
"id" : "Reactome:179803_Reactome:179860_Reactome:179882_Reactome:179820_1_1_1",
"is_abstract" : 1,
"sbo" : 252,
"type" : "Protein"
},
{
"data" : {
"clone_marker" : "Reactome:179863",
"compartment" : "MAP:Extracellular",
"label" : "EGF",
"modification" : [],
"ref" : "Reactome:179863"
},
"id" : "Reactome:179863_Reactome:179860_Reactome:179882_Reactome:179820_1_2_1",
"is_abstract" : 1,
"sbo" : 252,
"type" : "Protein"
},
{
"data" : {
"clone_marker" : "Reactome:179803",
"compartment" : "MAP:Plasmamembrane",
"label" : "Phospho-EGFR",
"modification" : [
[
216,
"1068"
],
[
216,
"1148"
],
[
216,
"1173"
],
[
216,
"1086"
],
[
216,
"992"
]
],
"ref" : "Reactome:179803"
},
"id" : "Reactome:179803_Reactome:179860_Reactome:179882_Reactome:179820_1_2_1",
"is_abstract" : 1,
"sbo" : 252,
"type" : "Protein"
},
{
"data" : {
"clone_marker" : "Reactome:179863",
"compartment" : "MAP:Extracellular",
"label" : "EGF",
"modification" : [],
"ref" : "Reactome:179863"
},
"id" : "Reactome:179863_Reactome:179860_Reactome:179882_Reactome:180337_Reactome:180331_1_1_1_1",
"is_abstract" : 1,
"sbo" : 252,
"type" : "Protein"
},
{
"data" : {
"clone_marker" : "Reactome:179803",
"compartment" : "MAP:Plasmamembrane",
"label" : "Phospho-EGFR",
"modification" : [
[
216,
"1068"
],
[
216,
"1148"
],
[
216,
"1173"
],
[
216,
"1086"
],
[
216,
"992"
]
],
"ref" : "Reactome:179803"
},
"id" : "Reactome:179803_Reactome:179860_Reactome:179882_Reactome:180337_Reactome:180331_1_1_1_1",
"is_abstract" : 1,
"sbo" : 252,
"type" : "Protein"
},
{
"data" : {
"clone_marker" : "Reactome:179863",
"compartment" : "MAP:Extracellular",
"label" : "EGF",
"modification" : [],
"ref" : "Reactome:179863"
},
"id" : "Reactome:179863_Reactome:179860_Reactome:179882_Reactome:180337_Reactome:180331_1_1_2_1",
"is_abstract" : 1,
"sbo" : 252,
"type" : "Protein"
},
{
"data" : {
"clone_marker" : "Reactome:179803",
"compartment" : "MAP:Plasmamembrane",
"label" : "Phospho-EGFR",
"modification" : [
[
216,
"1068"
],
[
216,
"1148"
],
[
216,
"1173"
],
[
216,
"1086"
],
[
216,
"992"
]
],
"ref" : "Reactome:179803"
},
"id" : "Reactome:179803_Reactome:179860_Reactome:179882_Reactome:180337_Reactome:180331_1_1_2_1",
"is_abstract" : 1,
"sbo" : 252,
"type" : "Protein"
},
{
"data" : {
"label" : "Extracellular",
"ref" : "MAP:Extracellular",
"subnodes" : [
"Reactome:179863"
]
},
"id" : "MAP:Extracellular",
"is_abstract" : 0,
"sbo" : 290,
"type" : "Compartment"
},
{
"data" : {
"label" : "Plasmamembrane",
"ref" : "MAP:Plasmamembrane",
"subnodes" : [
"Reactome:177934",
"MAP:C79",
"Reactome:179856",
"Reactome:109841",
"Reactome:179860",
"Reactome:177940",
"MAP:UP01116_",
"Reactome:109803",
"Reactome:109788",
"Reactome:177930",
"Reactome:180286",
"MAN:R1",
"MAN:C10",
"Reactome:180331",
"Reactome:177936",
"Reactome:112406",
"MAN:R28",
"Reactome:177922",
"Reactome:180337",
"Reactome:177943",
"Reactome:109792",
"MAP:UP01112_PM",
"Reactome:109789",
"Reactome:109796",
"Reactome:163338",
"Reactome:177938",
"Reactome:109793",
"Reactome:180301",
"Reactome:109802",
"Reactome:180348",
"Reactome:179837",
"Reactome:177945",
"Reactome:179845",
"Reactome:177933",
"Reactome:179847",
"MAN:R2",
"Reactome:179882",
"Reactome:197745",
"Reactome:109852",
"Reactome:177939",
"Reactome:109795",
"Reactome:109794",
"Reactome:109782",
"Reactome:179820",
"Reactome:179803",
"Reactome:179838",
"Reactome:177925",
"Reactome:109829",
"Reactome:109783",
"Reactome:177942"
]
},
"id" : "MAP:Plasmamembrane",
"is_abstract" : 0,
"sbo" : 290,
"type" : "Compartment"
},
{
"data" : {
"label" : "Nucleus",
"ref" : "MAP:Nucleus",
"subnodes" : [
"MAP:UP19419_NU(1-428)",
"Reactome:29358",
"Reactome:198666",
"MAP:UP19419_NU(1-428)_pho324pho336pho383pho389pho422",
"Reactome:112359",
"Reactome:198710",
"Reactome:109845",
"Reactome:113582"
]
},
"id" : "MAP:Nucleus",
"is_abstract" : 0,
"sbo" : 290,
"type" : "Compartment"
},
{
"data" : {
"label" : "Cytosol",
"ref" : "MAP:Cytosol",
"subnodes" : [
"MAP:Cx156",
"Reactome:109848",
"Reactome:109867",
"MAP:UP31946_CY",
"Reactome:180276",
"Reactome:180304",
"Reactome:109843",
"Reactome:179849",
"MAP:Cb17552_CY",
"Reactome:112374",
"MAP:UQ07889_CY",
"MAP:Cx114",
"Reactome:109804",
"Reactome:109787",
"Reactome:112340",
"MAP:UP29353_CY",
"MAP:UQ02750_CY",
"MAP:Cb16761_CY",
"Reactome:109860",
"Reactome:112398",
"MAP:UP62993_CY",
"MAP:Cb15996_CY",
"Reactome:109865",
"Reactome:180344",
"MAP:C3",
"MAP:UP04049_CY_pho259pho621",
"MAP:Cs56-65-5_CY",
"MAP:UP36507_CY",
"MAP:UP27361_CY_pho202pho204",
"MAP:UQ02750_CY_pho218pho222",
"MAP:UQ13480_CY",
"Reactome:112339",
"Reactome:109863",
"Reactome:109844",
"Reactome:109838",
"Reactome:179791",
"MAP:C2",
"MAP:UP27361_CY",
"Reactome:109857"
]
},
"id" : "MAP:Cytosol",
"is_abstract" : 0,
"sbo" : 290,
"type" : "Compartment"
}
]
}; | Java |
#include "gblackboard_p.h"
#include "gblackboard_p_p.h"
#include "gghosttree_p.h"
#include "gghostnode_p.h"
typedef QHash<QQmlEngine *, QPointer<GBlackboard> > GlobalBlackboards;
Q_GLOBAL_STATIC(GlobalBlackboards, theGlobalBlackboards)
// class GBlackboard
GBlackboard::GBlackboard(QObject *parent)
: QObject(*new GBlackboardPrivate(), parent)
{
Q_D(GBlackboard);
d->targetNode = qobject_cast<GGhostNode *>(parent);
if (d->targetNode) {
connect(d->targetNode, &GGhostNode::statusChanged,
[this](Ghost::Status status) {
if (Ghost::StandBy == status) {
this->clear();
}
});
d->masterTree = d->targetNode->masterTree();
} else {
d->masterTree = qobject_cast<GGhostTree *>(parent);
if (d->masterTree) {
connect(d->masterTree, &GGhostTree::statusChanged,
[this](Ghost::Status status) {
if (Ghost::StandBy == status) {
this->clear();
}
});
}
}
}
GBlackboard *GBlackboard::qmlAttachedProperties(QObject *target)
{
return new GBlackboard(target);
}
GBlackboard *GBlackboard::globalBlackboard() const
{
Q_D(const GBlackboard);
if (d->globalBlackboard) {
return d->globalBlackboard;
}
QQmlContext *context = qmlContext(d->parent);
if (nullptr == context) {
Q_CHECK_PTR(context);
return nullptr;
}
QQmlEngine *engine = context->engine();
if (nullptr == engine) {
Q_CHECK_PTR(engine);
return nullptr;
}
QPointer<GBlackboard> blackboard = theGlobalBlackboards()->value(engine);
if (blackboard.isNull()) {
blackboard = new GBlackboard(engine);
theGlobalBlackboards()->insert(engine, blackboard);
}
GBlackboardPrivate *_this = const_cast<GBlackboardPrivate *>(d);
_this->globalBlackboard = blackboard.data();
return d->globalBlackboard;
}
GBlackboard *GBlackboard::sharedBlackboard() const
{
Q_D(const GBlackboard);
if (d->sharedBlackboard) {
return d->sharedBlackboard;
}
if (!d->masterTree) {
qWarning("GtGhost : Master tree is null.");
return nullptr;
}
QObject *attached = qmlAttachedPropertiesObject<GBlackboard>(d->masterTree);
if (attached) {
GBlackboardPrivate *_this = const_cast<GBlackboardPrivate *>(d);
_this->sharedBlackboard = qobject_cast<GBlackboard *>(attached);
}
return d->sharedBlackboard;
}
bool GBlackboard::has(const QString &key) const
{
Q_D(const GBlackboard);
return d->datas.contains(key);
}
void GBlackboard::set(const QString &key, const QJSValue &value)
{
Q_D(GBlackboard);
if (value.isUndefined()) {
d->datas.remove(key);
} else {
d->datas.insert(key, value);
}
}
QJSValue GBlackboard::get(const QString &key) const
{
Q_D(const GBlackboard);
return d->datas.value(key);
}
void GBlackboard::unset(const QString &key)
{
Q_D(GBlackboard);
d->datas.remove(key);
}
void GBlackboard::clear()
{
Q_D(GBlackboard);
d->datas.clear();
}
// class GBlackboardPrivate
GBlackboardPrivate::GBlackboardPrivate()
: masterTree(nullptr)
, targetNode(nullptr)
, globalBlackboard(nullptr)
, sharedBlackboard(nullptr)
{
}
GBlackboardPrivate::~GBlackboardPrivate()
{
}
| Java |
/*
* Copyright (C) 2006-2010 Alfresco Software Limited.
*
* This file is part of Alfresco
*
* Alfresco is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Alfresco is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
*/
package org.alfresco.jlan.client;
import org.alfresco.jlan.smb.PCShare;
import org.alfresco.jlan.smb.SMBDeviceType;
import org.alfresco.jlan.smb.SMBException;
/**
* SMB print session class
*
* <p>The print session allows a new print job to be created, using the SMBFile
* class or as an SMBOutputStream.
*
* <p>When the SMBFile/SMBOutputStream is closed the print job will be queued to
* the remote printer.
*
* <p>A print session is created using the SessionFactory.OpenPrinter() method. The
* SessionFactory negotiates the appropriate SMB dialect and creates the appropriate
* PrintSession derived object.
*
* @see SessionFactory
*
* @author gkspencer
*/
public abstract class PrintSession extends Session {
// Print modes
public static final int TextMode = 0;
public static final int GraphicsMode = 1;
// Default number of print queue entries to return
public static final int DefaultEntryCount = 20;
/**
* Construct an SMB print session
*
* @param shr Remote server details
* @param dialect SMB dialect that this session is using
*/
protected PrintSession(PCShare shr, int dialect) {
super(shr, dialect, null);
// Set the device type
this.setDeviceType(SMBDeviceType.Printer);
}
/**
* Determine if the print session has been closed.
*
* @return true if the print session has been closed, else false.
*/
protected final boolean isClosed() {
return m_treeid == Closed ? true : false;
}
/**
* Open a spool file on the remote print server.
*
* @param id Identifier string for this print request.
* @param mode Print mode, either TextMode or GraphicsMode.
* @param setuplen Length of data in the start of the spool file that is printer setup code.
* @return SMBFile for the new spool file, else null.
* @exception java.io.IOException If an I/O error occurs.
* @exception SMBException If an SMB level error occurs
*/
public abstract SMBFile OpenSpoolFile(String id, int mode, int setuplen)
throws java.io.IOException, SMBException;
/**
* Open a spool file as an output stream.
*
* @param id Identifier string for this print request.
* @param mode Print mode, either TextMode or GraphicsMode.
* @param setuplen Length of data in the start of the spool file that is printer setup code.
* @return SMBOutputStream for the spool file, else null.
* @exception java.io.IOException If an I/O error occurs.
* @exception SMBException If an SMB level error occurs
*/
public SMBOutputStream OpenSpoolStream(String id, int mode, int setuplen)
throws java.io.IOException, SMBException {
// Open an SMBFile first
SMBFile sfile = OpenSpoolFile(id, mode, setuplen);
if ( sfile == null)
return null;
// Create an output stream attached to the SMBFile
return new SMBOutputStream(sfile);
}
} | Java |
//
// Ce fichier a été généré par l'implémentation de référence JavaTM Architecture for XML Binding (JAXB), v2.2.8-b130911.1802
// Voir <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Toute modification apportée à ce fichier sera perdue lors de la recompilation du schéma source.
// Généré le : 2015.10.08 à 11:14:04 PM CEST
//
package org.klipdev.spidergps3p.kml;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Classe Java pour vec2Type complex type.
*
* <p>Le fragment de schéma suivant indique le contenu attendu figurant dans cette classe.
*
* <pre>
* <complexType name="vec2Type">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <attribute name="x" type="{http://www.w3.org/2001/XMLSchema}double" default="1.0" />
* <attribute name="y" type="{http://www.w3.org/2001/XMLSchema}double" default="1.0" />
* <attribute name="xunits" type="{http://www.opengis.net/kml/2.2}unitsEnumType" default="fraction" />
* <attribute name="yunits" type="{http://www.opengis.net/kml/2.2}unitsEnumType" default="fraction" />
* </restriction>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "vec2Type")
public class Vec2Type {
@XmlAttribute(name = "x")
protected Double x;
@XmlAttribute(name = "y")
protected Double y;
@XmlAttribute(name = "xunits")
protected UnitsEnumType xunits;
@XmlAttribute(name = "yunits")
protected UnitsEnumType yunits;
/**
* Obtient la valeur de la propriété x.
*
* @return
* possible object is
* {@link Double }
*
*/
public double getX() {
if (x == null) {
return 1.0D;
} else {
return x;
}
}
/**
* Définit la valeur de la propriété x.
*
* @param value
* allowed object is
* {@link Double }
*
*/
public void setX(Double value) {
this.x = value;
}
/**
* Obtient la valeur de la propriété y.
*
* @return
* possible object is
* {@link Double }
*
*/
public double getY() {
if (y == null) {
return 1.0D;
} else {
return y;
}
}
/**
* Définit la valeur de la propriété y.
*
* @param value
* allowed object is
* {@link Double }
*
*/
public void setY(Double value) {
this.y = value;
}
/**
* Obtient la valeur de la propriété xunits.
*
* @return
* possible object is
* {@link UnitsEnumType }
*
*/
public UnitsEnumType getXunits() {
if (xunits == null) {
return UnitsEnumType.FRACTION;
} else {
return xunits;
}
}
/**
* Définit la valeur de la propriété xunits.
*
* @param value
* allowed object is
* {@link UnitsEnumType }
*
*/
public void setXunits(UnitsEnumType value) {
this.xunits = value;
}
/**
* Obtient la valeur de la propriété yunits.
*
* @return
* possible object is
* {@link UnitsEnumType }
*
*/
public UnitsEnumType getYunits() {
if (yunits == null) {
return UnitsEnumType.FRACTION;
} else {
return yunits;
}
}
/**
* Définit la valeur de la propriété yunits.
*
* @param value
* allowed object is
* {@link UnitsEnumType }
*
*/
public void setYunits(UnitsEnumType value) {
this.yunits = value;
}
}
| Java |
<?php
namespace ConfigTest;
class TokenProcessorTest extends \PHPUnit_Framework_TestCase
{
public function testInstantiate()
{
}
}
| Java |
<?php
namespace Database\Media\om;
use \Criteria;
use \Exception;
use \ModelCriteria;
use \ModelJoin;
use \PDO;
use \Propel;
use \PropelCollection;
use \PropelException;
use \PropelObjectCollection;
use \PropelPDO;
use Database\Media\Artist;
use Database\Media\Media;
use Database\Media\MediaToArtist;
use Database\Media\MediaToArtistPeer;
use Database\Media\MediaToArtistQuery;
/**
* Base class that represents a query for the 'net_bazzline_media_library_media_to_artist' table.
*
*
*
* This class was autogenerated by Propel 1.7.1 on:
*
* Wed Oct 1 21:22:56 2014
*
* @method MediaToArtistQuery orderById($order = Criteria::ASC) Order by the id column
* @method MediaToArtistQuery orderByMediaId($order = Criteria::ASC) Order by the media_id column
* @method MediaToArtistQuery orderByArtistId($order = Criteria::ASC) Order by the artist_id column
*
* @method MediaToArtistQuery groupById() Group by the id column
* @method MediaToArtistQuery groupByMediaId() Group by the media_id column
* @method MediaToArtistQuery groupByArtistId() Group by the artist_id column
*
* @method MediaToArtistQuery leftJoin($relation) Adds a LEFT JOIN clause to the query
* @method MediaToArtistQuery rightJoin($relation) Adds a RIGHT JOIN clause to the query
* @method MediaToArtistQuery innerJoin($relation) Adds a INNER JOIN clause to the query
*
* @method MediaToArtistQuery leftJoinMedia($relationAlias = null) Adds a LEFT JOIN clause to the query using the Media relation
* @method MediaToArtistQuery rightJoinMedia($relationAlias = null) Adds a RIGHT JOIN clause to the query using the Media relation
* @method MediaToArtistQuery innerJoinMedia($relationAlias = null) Adds a INNER JOIN clause to the query using the Media relation
*
* @method MediaToArtistQuery leftJoinArtist($relationAlias = null) Adds a LEFT JOIN clause to the query using the Artist relation
* @method MediaToArtistQuery rightJoinArtist($relationAlias = null) Adds a RIGHT JOIN clause to the query using the Artist relation
* @method MediaToArtistQuery innerJoinArtist($relationAlias = null) Adds a INNER JOIN clause to the query using the Artist relation
*
* @method MediaToArtist findOne(PropelPDO $con = null) Return the first MediaToArtist matching the query
* @method MediaToArtist findOneOrCreate(PropelPDO $con = null) Return the first MediaToArtist matching the query, or a new MediaToArtist object populated from the query conditions when no match is found
*
* @method MediaToArtist findOneByMediaId(string $media_id) Return the first MediaToArtist filtered by the media_id column
* @method MediaToArtist findOneByArtistId(string $artist_id) Return the first MediaToArtist filtered by the artist_id column
*
* @method array findById(string $id) Return MediaToArtist objects filtered by the id column
* @method array findByMediaId(string $media_id) Return MediaToArtist objects filtered by the media_id column
* @method array findByArtistId(string $artist_id) Return MediaToArtist objects filtered by the artist_id column
*
* @package propel.generator.Media.om
*/
abstract class BaseMediaToArtistQuery extends ModelCriteria
{
/**
* Initializes internal state of BaseMediaToArtistQuery object.
*
* @param string $dbName The dabase name
* @param string $modelName The phpName of a model, e.g. 'Book'
* @param string $modelAlias The alias for the model in this query, e.g. 'b'
*/
public function __construct($dbName = null, $modelName = null, $modelAlias = null)
{
if (null === $dbName) {
$dbName = 'netBazzlineMediaLibrary';
}
if (null === $modelName) {
$modelName = 'Database\\Media\\MediaToArtist';
}
parent::__construct($dbName, $modelName, $modelAlias);
}
/**
* Returns a new MediaToArtistQuery object.
*
* @param string $modelAlias The alias of a model in the query
* @param MediaToArtistQuery|Criteria $criteria Optional Criteria to build the query from
*
* @return MediaToArtistQuery
*/
public static function create($modelAlias = null, $criteria = null)
{
if ($criteria instanceof MediaToArtistQuery) {
return $criteria;
}
$query = new MediaToArtistQuery(null, null, $modelAlias);
if ($criteria instanceof Criteria) {
$query->mergeWith($criteria);
}
return $query;
}
/**
* Find object by primary key.
* Propel uses the instance pool to skip the database if the object exists.
* Go fast if the query is untouched.
*
* <code>
* $obj = $c->findPk(12, $con);
* </code>
*
* @param mixed $key Primary key to use for the query
* @param PropelPDO $con an optional connection object
*
* @return MediaToArtist|MediaToArtist[]|mixed the result, formatted by the current formatter
*/
public function findPk($key, $con = null)
{
if ($key === null) {
return null;
}
if ((null !== ($obj = MediaToArtistPeer::getInstanceFromPool((string) $key))) && !$this->formatter) {
// the object is already in the instance pool
return $obj;
}
if ($con === null) {
$con = Propel::getConnection(MediaToArtistPeer::DATABASE_NAME, Propel::CONNECTION_READ);
}
$this->basePreSelect($con);
if ($this->formatter || $this->modelAlias || $this->with || $this->select
|| $this->selectColumns || $this->asColumns || $this->selectModifiers
|| $this->map || $this->having || $this->joins) {
return $this->findPkComplex($key, $con);
} else {
return $this->findPkSimple($key, $con);
}
}
/**
* Alias of findPk to use instance pooling
*
* @param mixed $key Primary key to use for the query
* @param PropelPDO $con A connection object
*
* @return MediaToArtist A model object, or null if the key is not found
* @throws PropelException
*/
public function findOneById($key, $con = null)
{
return $this->findPk($key, $con);
}
/**
* Find object by primary key using raw SQL to go fast.
* Bypass doSelect() and the object formatter by using generated code.
*
* @param mixed $key Primary key to use for the query
* @param PropelPDO $con A connection object
*
* @return MediaToArtist A model object, or null if the key is not found
* @throws PropelException
*/
protected function findPkSimple($key, $con)
{
$sql = 'SELECT id, media_id, artist_id FROM net_bazzline_media_library_media_to_artist WHERE id = :p0';
try {
$stmt = $con->prepare($sql);
$stmt->bindValue(':p0', $key, PDO::PARAM_STR);
$stmt->execute();
} catch (Exception $e) {
Propel::log($e->getMessage(), Propel::LOG_ERR);
throw new PropelException(sprintf('Unable to execute SELECT statement [%s]', $sql), $e);
}
$obj = null;
if ($row = $stmt->fetch(PDO::FETCH_NUM)) {
$obj = new MediaToArtist();
$obj->hydrate($row);
MediaToArtistPeer::addInstanceToPool($obj, (string) $key);
}
$stmt->closeCursor();
return $obj;
}
/**
* Find object by primary key.
*
* @param mixed $key Primary key to use for the query
* @param PropelPDO $con A connection object
*
* @return MediaToArtist|MediaToArtist[]|mixed the result, formatted by the current formatter
*/
protected function findPkComplex($key, $con)
{
// As the query uses a PK condition, no limit(1) is necessary.
$criteria = $this->isKeepQuery() ? clone $this : $this;
$stmt = $criteria
->filterByPrimaryKey($key)
->doSelect($con);
return $criteria->getFormatter()->init($criteria)->formatOne($stmt);
}
/**
* Find objects by primary key
* <code>
* $objs = $c->findPks(array(12, 56, 832), $con);
* </code>
* @param array $keys Primary keys to use for the query
* @param PropelPDO $con an optional connection object
*
* @return PropelObjectCollection|MediaToArtist[]|mixed the list of results, formatted by the current formatter
*/
public function findPks($keys, $con = null)
{
if ($con === null) {
$con = Propel::getConnection($this->getDbName(), Propel::CONNECTION_READ);
}
$this->basePreSelect($con);
$criteria = $this->isKeepQuery() ? clone $this : $this;
$stmt = $criteria
->filterByPrimaryKeys($keys)
->doSelect($con);
return $criteria->getFormatter()->init($criteria)->format($stmt);
}
/**
* Filter the query by primary key
*
* @param mixed $key Primary key to use for the query
*
* @return MediaToArtistQuery The current query, for fluid interface
*/
public function filterByPrimaryKey($key)
{
return $this->addUsingAlias(MediaToArtistPeer::ID, $key, Criteria::EQUAL);
}
/**
* Filter the query by a list of primary keys
*
* @param array $keys The list of primary key to use for the query
*
* @return MediaToArtistQuery The current query, for fluid interface
*/
public function filterByPrimaryKeys($keys)
{
return $this->addUsingAlias(MediaToArtistPeer::ID, $keys, Criteria::IN);
}
/**
* Filter the query on the id column
*
* Example usage:
* <code>
* $query->filterById('fooValue'); // WHERE id = 'fooValue'
* $query->filterById('%fooValue%'); // WHERE id LIKE '%fooValue%'
* </code>
*
* @param string $id The value to use as filter.
* Accepts wildcards (* and % trigger a LIKE)
* @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
*
* @return MediaToArtistQuery The current query, for fluid interface
*/
public function filterById($id = null, $comparison = null)
{
if (null === $comparison) {
if (is_array($id)) {
$comparison = Criteria::IN;
} elseif (preg_match('/[\%\*]/', $id)) {
$id = str_replace('*', '%', $id);
$comparison = Criteria::LIKE;
}
}
return $this->addUsingAlias(MediaToArtistPeer::ID, $id, $comparison);
}
/**
* Filter the query on the media_id column
*
* Example usage:
* <code>
* $query->filterByMediaId('fooValue'); // WHERE media_id = 'fooValue'
* $query->filterByMediaId('%fooValue%'); // WHERE media_id LIKE '%fooValue%'
* </code>
*
* @param string $mediaId The value to use as filter.
* Accepts wildcards (* and % trigger a LIKE)
* @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
*
* @return MediaToArtistQuery The current query, for fluid interface
*/
public function filterByMediaId($mediaId = null, $comparison = null)
{
if (null === $comparison) {
if (is_array($mediaId)) {
$comparison = Criteria::IN;
} elseif (preg_match('/[\%\*]/', $mediaId)) {
$mediaId = str_replace('*', '%', $mediaId);
$comparison = Criteria::LIKE;
}
}
return $this->addUsingAlias(MediaToArtistPeer::MEDIA_ID, $mediaId, $comparison);
}
/**
* Filter the query on the artist_id column
*
* Example usage:
* <code>
* $query->filterByArtistId('fooValue'); // WHERE artist_id = 'fooValue'
* $query->filterByArtistId('%fooValue%'); // WHERE artist_id LIKE '%fooValue%'
* </code>
*
* @param string $artistId The value to use as filter.
* Accepts wildcards (* and % trigger a LIKE)
* @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
*
* @return MediaToArtistQuery The current query, for fluid interface
*/
public function filterByArtistId($artistId = null, $comparison = null)
{
if (null === $comparison) {
if (is_array($artistId)) {
$comparison = Criteria::IN;
} elseif (preg_match('/[\%\*]/', $artistId)) {
$artistId = str_replace('*', '%', $artistId);
$comparison = Criteria::LIKE;
}
}
return $this->addUsingAlias(MediaToArtistPeer::ARTIST_ID, $artistId, $comparison);
}
/**
* Filter the query by a related Media object
*
* @param Media|PropelObjectCollection $media The related object(s) to use as filter
* @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
*
* @return MediaToArtistQuery The current query, for fluid interface
* @throws PropelException - if the provided filter is invalid.
*/
public function filterByMedia($media, $comparison = null)
{
if ($media instanceof Media) {
return $this
->addUsingAlias(MediaToArtistPeer::MEDIA_ID, $media->getId(), $comparison);
} elseif ($media instanceof PropelObjectCollection) {
if (null === $comparison) {
$comparison = Criteria::IN;
}
return $this
->addUsingAlias(MediaToArtistPeer::MEDIA_ID, $media->toKeyValue('PrimaryKey', 'Id'), $comparison);
} else {
throw new PropelException('filterByMedia() only accepts arguments of type Media or PropelCollection');
}
}
/**
* Adds a JOIN clause to the query using the Media relation
*
* @param string $relationAlias optional alias for the relation
* @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join'
*
* @return MediaToArtistQuery The current query, for fluid interface
*/
public function joinMedia($relationAlias = null, $joinType = Criteria::INNER_JOIN)
{
$tableMap = $this->getTableMap();
$relationMap = $tableMap->getRelation('Media');
// create a ModelJoin object for this join
$join = new ModelJoin();
$join->setJoinType($joinType);
$join->setRelationMap($relationMap, $this->useAliasInSQL ? $this->getModelAlias() : null, $relationAlias);
if ($previousJoin = $this->getPreviousJoin()) {
$join->setPreviousJoin($previousJoin);
}
// add the ModelJoin to the current object
if ($relationAlias) {
$this->addAlias($relationAlias, $relationMap->getRightTable()->getName());
$this->addJoinObject($join, $relationAlias);
} else {
$this->addJoinObject($join, 'Media');
}
return $this;
}
/**
* Use the Media relation Media object
*
* @see useQuery()
*
* @param string $relationAlias optional alias for the relation,
* to be used as main alias in the secondary query
* @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join'
*
* @return \Database\Media\MediaQuery A secondary query class using the current class as primary query
*/
public function useMediaQuery($relationAlias = null, $joinType = Criteria::INNER_JOIN)
{
return $this
->joinMedia($relationAlias, $joinType)
->useQuery($relationAlias ? $relationAlias : 'Media', '\Database\Media\MediaQuery');
}
/**
* Filter the query by a related Artist object
*
* @param Artist|PropelObjectCollection $artist The related object(s) to use as filter
* @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
*
* @return MediaToArtistQuery The current query, for fluid interface
* @throws PropelException - if the provided filter is invalid.
*/
public function filterByArtist($artist, $comparison = null)
{
if ($artist instanceof Artist) {
return $this
->addUsingAlias(MediaToArtistPeer::ARTIST_ID, $artist->getId(), $comparison);
} elseif ($artist instanceof PropelObjectCollection) {
if (null === $comparison) {
$comparison = Criteria::IN;
}
return $this
->addUsingAlias(MediaToArtistPeer::ARTIST_ID, $artist->toKeyValue('PrimaryKey', 'Id'), $comparison);
} else {
throw new PropelException('filterByArtist() only accepts arguments of type Artist or PropelCollection');
}
}
/**
* Adds a JOIN clause to the query using the Artist relation
*
* @param string $relationAlias optional alias for the relation
* @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join'
*
* @return MediaToArtistQuery The current query, for fluid interface
*/
public function joinArtist($relationAlias = null, $joinType = Criteria::INNER_JOIN)
{
$tableMap = $this->getTableMap();
$relationMap = $tableMap->getRelation('Artist');
// create a ModelJoin object for this join
$join = new ModelJoin();
$join->setJoinType($joinType);
$join->setRelationMap($relationMap, $this->useAliasInSQL ? $this->getModelAlias() : null, $relationAlias);
if ($previousJoin = $this->getPreviousJoin()) {
$join->setPreviousJoin($previousJoin);
}
// add the ModelJoin to the current object
if ($relationAlias) {
$this->addAlias($relationAlias, $relationMap->getRightTable()->getName());
$this->addJoinObject($join, $relationAlias);
} else {
$this->addJoinObject($join, 'Artist');
}
return $this;
}
/**
* Use the Artist relation Artist object
*
* @see useQuery()
*
* @param string $relationAlias optional alias for the relation,
* to be used as main alias in the secondary query
* @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join'
*
* @return \Database\Media\ArtistQuery A secondary query class using the current class as primary query
*/
public function useArtistQuery($relationAlias = null, $joinType = Criteria::INNER_JOIN)
{
return $this
->joinArtist($relationAlias, $joinType)
->useQuery($relationAlias ? $relationAlias : 'Artist', '\Database\Media\ArtistQuery');
}
/**
* Exclude object from result
*
* @param MediaToArtist $mediaToArtist Object to remove from the list of results
*
* @return MediaToArtistQuery The current query, for fluid interface
*/
public function prune($mediaToArtist = null)
{
if ($mediaToArtist) {
$this->addUsingAlias(MediaToArtistPeer::ID, $mediaToArtist->getId(), Criteria::NOT_EQUAL);
}
return $this;
}
}
| Java |
/*****************************************************************************
** Copyright (c) 2012 Ushahidi Inc
** All rights reserved
** Contact: team@ushahidi.com
** Website: http://www.ushahidi.com
**
** GNU Lesser General Public License Usage
** This file may be used under the terms of the GNU Lesser
** General Public License version 3 as published by the Free Software
** Foundation and appearing in the file LICENSE.LGPL included in the
** packaging of this file. Please review the following information to
** ensure the GNU Lesser General Public License version 3 requirements
** will be met: http://www.gnu.org/licenses/lgpl.html.
**
**
** If you have questions regarding the use of this file, please contact
** Ushahidi developers at team@ushahidi.com.
**
*****************************************************************************/
#import <Ushahidi/USHAddViewController.h>
#import <Ushahidi/USHDatePicker.h>
#import <Ushahidi/USHLocator.h>
#import <Ushahidi/USHImagePicker.h>
#import <Ushahidi/USHVideoPicker.h>
#import <Ushahidi/USHLoginDialog.h>
#import <Ushahidi/Ushahidi.h>
#import <Ushahidi/USHShareController.h>
#import "USHInputTableCell.h"
#import "USHCustomFieldsAddViewController.h"
@class USHCategoryTableViewController;
@class USHLocationAddViewController;
@class USHSettingsViewController;
@class USHMap;
@class USHReport;
@interface USHReportAddViewController : USHAddViewController<UshahidiDelegate,
USHDatePickerDelegate,
UIAlertViewDelegate,
USHLocatorDelegate,
USHImagePickerDelegate,
USHVideoPickerDelegate,
USHInputTableCellDelegate,
USHLoginDialogDelegate,
USHShareControllerDelegate>
@property (retain, nonatomic) IBOutlet USHCustomFieldsAddViewController *customFiedlsAddViewController;
@property (strong, nonatomic) IBOutlet USHCategoryTableViewController *categoryTableController;
@property (strong, nonatomic) IBOutlet USHLocationAddViewController *locationAddViewController;
@property (strong, nonatomic) IBOutlet USHSettingsViewController *settingsViewController;
@property (strong, nonatomic) USHMap *map;
@property (strong, nonatomic) USHReport *report;
@property (assign, nonatomic) BOOL openGeoSMS;
- (IBAction)info:(id)sender event:(UIEvent*)event;
@end
| Java |
// Created file "Lib\src\dxguid\X64\d3d9guid"
typedef struct _GUID
{
unsigned long Data1;
unsigned short Data2;
unsigned short Data3;
unsigned char Data4[8];
} GUID;
#define DEFINE_GUID(name, l, w1, w2, b1, b2, b3, b4, b5, b6, b7, b8) \
extern const GUID name = { l, w1, w2, { b1, b2, b3, b4, b5, b6, b7, b8 } }
DEFINE_GUID(PPM_THERMAL_POLICY_CHANGE_GUID, 0x48f377b8, 0x6880, 0x4c7b, 0x8b, 0xdc, 0x38, 0x01, 0x76, 0xc6, 0x65, 0x4d);
| Java |
package com.pahlsoft.ws.iaas.provision.deploy.behaviors;
import org.apache.log4j.Logger;
import com.pahlsoft.ws.iaas.provision.generated.InstructionType;
import com.pahlsoft.ws.iaas.provision.generated.ProvisionProperties;
import com.pahlsoft.ws.iaas.provision.generated.ProvisionResponse;
import com.pahlsoft.ws.iaas.utilities.PropertyParser;
public class JbossDeployBehavior implements DeployBehavior {
public Logger LOG = Logger.getLogger(JbossDeployBehavior.class);
public ProvisionResponse pr = new ProvisionResponse();
public ProvisionResponse deploy(String hostname, ProvisionProperties props) {
LOG.info("Deploying JBOSS :" + hostname);
PropertyParser.listProps(props);
pr.setHostname(hostname);
pr.setProperties(props);
pr.setInstruction(InstructionType.DEPLOY);
pr.setStatus(true);
return pr;
}
public ProvisionResponse redeploy(String hostname, ProvisionProperties props) {
LOG.info("Redeploying JBOSS :" + hostname);
PropertyParser.listProps(props);
pr.setHostname(hostname);
pr.setProperties(props);
pr.setInstruction(InstructionType.REDEPLOY);
pr.setStatus(true);
return pr;
}
public ProvisionResponse clean(String hostname, ProvisionProperties props) {
LOG.info("Cleaning JBOSS :" + hostname);
PropertyParser.listProps(props);
pr.setHostname(hostname);
pr.setProperties(props);
pr.setInstruction(InstructionType.CLEAN);
pr.setStatus(true);
return pr;
}
public ProvisionResponse backup(String hostname, ProvisionProperties props) {
LOG.info("Backing Up JBOSS :" + hostname);
PropertyParser.listProps(props);
pr.setHostname(hostname);
pr.setProperties(props);
pr.setInstruction(InstructionType.BACKUP);
pr.setStatus(true);
return pr;
}
public ProvisionResponse configure(String hostname, ProvisionProperties props) {
LOG.info("Configuring JBOSS :" + hostname);
PropertyParser.listProps(props);
pr.setHostname(hostname);
pr.setProperties(props);
pr.setInstruction(InstructionType.CONFIGURE);
pr.setStatus(true);
return pr;
}
public ProvisionResponse install(String hostname, ProvisionProperties props) {
LOG.info("Installing JBOSS :" + hostname);
PropertyParser.listProps(props);
pr.setHostname(hostname);
pr.setProperties(props);
pr.setInstruction(InstructionType.INSTALL);
pr.setStatus(true);
return pr;
}
}
| Java |
package org.eso.ias.cdb;
import org.eso.ias.cdb.json.CdbFiles;
import org.eso.ias.cdb.json.CdbJsonFiles;
import org.eso.ias.cdb.json.JsonReader;
import org.eso.ias.cdb.rdb.RdbReader;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.lang.reflect.Constructor;
import java.util.Arrays;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
/**
* The factory to get the CdbReader implementation to use.
*
* This class checks the parameters of the command line, the java properties
* and the environment variable to build and return the {@link CdbReader} to use
* for reading the CDB.
*
* It offers a common strategy to be used consistently by all the IAS tools.
*
* The strategy is as follow:
* - if -cdbClass java.class param is present in the command line then the passed class
* is dynamically loaded and built (empty constructor); the configuration
* parameters eventually expected by such class will be passed by means of java
* properties (-D...)
* - else if jCdb file.path param is present in the command line then the JSON CDB
* implementation will be returned passing the passed file path
* - else the RDB implementation is returned (note that the parameters to connect to the RDB are passed
* in the hibernate configuration file
*
* RDB implementation is the fallback if none of the other possibilities succeeds.
*
*/
public class CdbReaderFactory {
/**
* The logger
*/
private static final Logger logger = LoggerFactory.getLogger(CdbReaderFactory.class);
/**
* The parameter to set in the command line to build a CdbReader from a custom java class
*/
public static final String cdbClassCmdLineParam="-cdbClass";
/**
* The long parameter to set in the command line to build a JSON CdbReader
*/
public static final String jsonCdbCmdLineParamLong ="-jCdb";
/**
* The short parameter to set in the command line to build a JSON CdbReader
*/
public static final String jsonCdbCmdLineParamShort ="-j";
/**
* get the value of the passed parameter from the eray of strings.
*
* The value of the parameter is in the position next to the passed param name like in
* -jcdb path
*
* @param paramName the not null nor empty parameter
* @param cmdLine the command line
* @return the value of the parameter or empty if not found in the command line
*/
private static Optional<String> getValueOfParam(String paramName, String cmdLine[]) {
if (paramName==null || paramName.isEmpty()) {
throw new IllegalArgumentException("Invalid null/empty name of parameter");
}
if (cmdLine==null || cmdLine.length<2) {
return Optional.empty();
}
List<String> params = Arrays.asList(cmdLine);
int pos=params.indexOf(paramName);
if (pos==-1) {
// Not found
return Optional.empty();
}
String ret = null;
try {
ret=params.get(pos+1);
} catch (IndexOutOfBoundsException e) {
logger.error("Missing parameter for {}}",paramName);
}
return Optional.ofNullable(ret);
}
/**
* Build and return the user provided CdbReader from the passed class using introspection
*
* @param cls The class implementing the CdbReader
* @return the user defined CdbReader
*/
private static final CdbReader loadUserDefinedReader(String cls) throws IasCdbException {
if (cls==null || cls.isEmpty()) {
throw new IllegalArgumentException("Invalid null/empty class");
}
ClassLoader classLoader = Thread.currentThread().getContextClassLoader();
Class<?> theClass=null;
try {
theClass=classLoader.loadClass(cls);
} catch (Exception e) {
throw new IasCdbException("Error loading the external class "+cls,e);
}
Constructor constructor = null;
try {
constructor=theClass.getConstructor(null);
} catch (Exception e) {
throw new IasCdbException("Error getting the default (empty) constructor of the external class "+cls,e);
}
Object obj=null;
try {
obj=constructor.newInstance(null);
} catch (Exception e) {
throw new IasCdbException("Error building an object of the external class "+cls,e);
}
return (CdbReader)obj;
}
/**
* Gets and return the CdbReader to use to read the CDB applying the policiy described in the javadoc
* of the class
*
* @param cmdLine The command line
* @return the CdbReader to read th CDB
* @throws Exception in case of error building the CdbReader
*/
public static CdbReader getCdbReader(String[] cmdLine) throws Exception {
Objects.requireNonNull(cmdLine,"Invalid null command line");
Optional<String> userCdbReader = getValueOfParam(cdbClassCmdLineParam,cmdLine);
if (userCdbReader.isPresent()) {
logger.info("Using external (user provided) CdbReader from class {}",userCdbReader.get());
return loadUserDefinedReader(userCdbReader.get());
} else {
logger.debug("No external CdbReader found");
}
Optional<String> jsonCdbReaderS = getValueOfParam(jsonCdbCmdLineParamShort,cmdLine);
Optional<String> jsonCdbReaderL = getValueOfParam(jsonCdbCmdLineParamLong,cmdLine);
if (jsonCdbReaderS.isPresent() && jsonCdbReaderL.isPresent()) {
throw new Exception("JSON CDB path defined twice: check "+jsonCdbCmdLineParamShort+"and "+jsonCdbCmdLineParamLong+" params in cmd line");
}
if (jsonCdbReaderL.isPresent() || jsonCdbReaderS.isPresent()) {
String cdbPath = jsonCdbReaderL.orElseGet(() -> jsonCdbReaderS.get());
logger.info("Loading JSON CdbReader with folder {}",cdbPath);
CdbFiles cdbfiles = new CdbJsonFiles(cdbPath);
return new JsonReader(cdbfiles);
} else {
logger.debug("NO JSON CdbReader requested");
}
return new RdbReader();
}
}
| Java |
<html dir="LTR" xmlns:ndoc="urn:ndoc-schema">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta content="history" name="save" />
<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5" />
<title>Trace Method</title>
<xml>
</xml>
<link rel="stylesheet" type="text/css" href="MSDN.css" />
</head>
<body id="bodyID" class="dtBODY">
<div id="nsbanner">
<div id="bannerrow1">
<table class="bannerparthead" cellspacing="0">
<tr id="hdr">
<td class="runninghead">Common Logging 2.0 API Reference</td>
<td class="product">
</td>
</tr>
</table>
</div>
<div id="TitleRow">
<h1 class="dtH1">AbstractLogger.Trace Method</h1>
</div>
</div>
<div id="nstext">
<p> Log a message with the <a href="Common.Logging~Common.Logging.LogLevel.html">Trace</a> level using a callback to obtain the message </p>
<h4 class="dtH4">Overload List</h4>
<p> Log a message with the <a href="Common.Logging~Common.Logging.LogLevel.html">Trace</a> level using a callback to obtain the message </p>
<blockquote class="dtBlock">
<a href="Common.Logging~Common.Logging.Factory.AbstractLogger.Trace3.html">public virtual void Trace(Action<FormatMessageHandler>)</a>
</blockquote>
<p> Log a message with the <a href="Common.Logging~Common.Logging.LogLevel.html">Trace</a> level using a callback to obtain the message </p>
<blockquote class="dtBlock">
<a href="Common.Logging~Common.Logging.Factory.AbstractLogger.Trace4.html">public virtual void Trace(Action<FormatMessageHandler>,Exception)</a>
</blockquote>
<p> Log a message with the <a href="Common.Logging~Common.Logging.LogLevel.html">Trace</a> level using a callback to obtain the message </p>
<blockquote class="dtBlock">
<a href="Common.Logging~Common.Logging.Factory.AbstractLogger.Trace5.html">public virtual void Trace(IFormatProvider,Action<FormatMessageHandler>)</a>
</blockquote>
<p> Log a message with the <a href="Common.Logging~Common.Logging.LogLevel.html">Trace</a> level using a callback to obtain the message </p>
<blockquote class="dtBlock">
<a href="Common.Logging~Common.Logging.Factory.AbstractLogger.Trace6.html">public virtual void Trace(IFormatProvider,Action<FormatMessageHandler>,Exception)</a>
</blockquote>
<p> Log a message object with the <a href="Common.Logging~Common.Logging.LogLevel.html">Trace</a> level. </p>
<blockquote class="dtBlock">
<a href="Common.Logging~Common.Logging.Factory.AbstractLogger.Trace1.html">public virtual void Trace(object)</a>
</blockquote>
<p> Log a message object with the <a href="Common.Logging~Common.Logging.LogLevel.html">Trace</a> level including the stack trace of the <a href="http://msdn.microsoft.com/en-us/library/System.Exception(VS.80).aspx">Exception</a> passed as a parameter. </p>
<blockquote class="dtBlock">
<a href="Common.Logging~Common.Logging.Factory.AbstractLogger.Trace2.html">public virtual void Trace(object,Exception)</a>
</blockquote>
<h4 class="dtH4">See Also</h4>
<p>
<a href="Common.Logging~Common.Logging.Factory.AbstractLogger.html">AbstractLogger Class</a> | <a href="Common.Logging~Common.Logging.Factory.html">Common.Logging.Factory Namespace</a></p>
<hr />
<div id="footer">
<p>
<a href="mailto:netcommon-developer@lists.sourceforge.net?subject=Common%20Logging%202.0%20API%20Reference%20Documentation%20Feedback:%20AbstractLogger.Trace Method">Send comments on this topic.</a>
</p>
<p>
<a>© The Common Infrastructure Libraries for .NET Team 2009 All Rights Reserved.</a>
</p>
<p>Generated from assembly Common.Logging [2.0.0.0] by <a href="http://ndoc3.sourceforget.net">NDoc3</a></p>
</div>
</div>
</body>
</html> | Java |
<?php
/**
* Contao Bootstrap form.
*
* @package contao-bootstrap
* @author David Molineus <david.molineus@netzmacht.de>
* @copyright 2017-2019 netzmacht David Molineus. All rights reserved.
* @license LGPL 3.0-or-later
* @filesource
*/
$GLOBALS['TL_LANG']['MSC']['bootstrapUploadButton'] = 'Choose file';
| Java |
/**
*A PUBLIC CLASS FOR ACTIONS.JAVA
*/
class Actions{
public Fonts font = new Fonts();
/**
*@see FONTS.JAVA
*this is a font class which is for changing the font, style & size
*/
public void fonT(){
font.setVisible(true); //setting the visible is true
font.pack(); //pack the panel
//making an action for ok button, so we can change the font
font.getOkjb().addActionListener(new ActionListener(){
public void actionPerformed(ActionEvent ae){
n.getTextArea().setFont(font.font());
//after we chose the font, then the JDialog will be closed
font.setVisible(false);
}
});
//making an action for cancel button, so we can return to the old font.
font.getCajb().addActionListener(new ActionListener(){
public void actionPerformed(ActionEvent ae){
//after we cancel the, then the JDialog will be closed
font.setVisible(false);
}
});
}
//for wraping the line & wraping the style word
public void lineWraP(){
if(n.getLineWrap().isSelected()){
/**
*make the line wrap & wrap style word is true
*when the line wrap is selected
*/
n.getTextArea().setLineWrap(true);
n.getTextArea().setWrapStyleWord(true);
}
else{
/**
*make the line wrap & wrap style word is false
*when the line wrap isn't selected
*/
n.getTextArea().setLineWrap(false);
n.getTextArea().setWrapStyleWord(false);
}
}
}
| Java |
"""General-use classes to interact with the ApplicationAutoScaling service through CloudFormation.
See Also:
`AWS developer guide for ApplicationAutoScaling
<https://docs.aws.amazon.com/autoscaling/application/APIReference/Welcome.html>`_
"""
# noinspection PyUnresolvedReferences
from .._raw import applicationautoscaling as _raw
# noinspection PyUnresolvedReferences
from .._raw.applicationautoscaling import *
| Java |
# == Schema Information
#
# Table name: listing_shapes
#
# id :integer not null, primary key
# community_id :integer not null
# transaction_process_id :integer not null
# price_enabled :boolean not null
# shipping_enabled :boolean not null
# name :string(255) not null
# name_tr_key :string(255) not null
# action_button_tr_key :string(255) not null
# sort_priority :integer default(0), not null
# created_at :datetime not null
# updated_at :datetime not null
# deleted :boolean default(FALSE)
#
# Indexes
#
# index_listing_shapes_on_community_id (community_id)
# index_listing_shapes_on_name (name)
# multicol_index (community_id,deleted,sort_priority)
#
class ListingShape < ActiveRecord::Base
attr_accessible(
:community_id,
:transaction_process_id,
:price_enabled,
:shipping_enabled,
:name,
:sort_priority,
:name_tr_key,
:action_button_tr_key,
:price_quantity_placeholder,
:deleted
)
has_and_belongs_to_many :categories, -> { order("sort_priority") }, join_table: "category_listing_shapes"
has_many :listing_units
def self.columns
super.reject { |c| c.name == "transaction_type_id" || c.name == "price_quantity_placeholder" }
end
end
| Java |
#pragma once
#pragma region Imported API
extern "C" NTSYSAPI NTSTATUS NTAPI ZwWaitForSingleObject(
__in HANDLE Handle,
__in BOOLEAN Alertable,
__in_opt PLARGE_INTEGER Timeout);
typedef struct _THREAD_BASIC_INFORMATION {
NTSTATUS ExitStatus;
PVOID TebBaseAddress;
CLIENT_ID ClientId;
KAFFINITY AffinityMask;
KPRIORITY Priority;
KPRIORITY BasePriority;
} THREAD_BASIC_INFORMATION, *PTHREAD_BASIC_INFORMATION;
extern "C" NTSTATUS NTAPI ZwQueryInformationThread(HANDLE ThreadHandle,
THREADINFOCLASS ThreadInformationClass,
PVOID ThreadInformation,
ULONG ThreadInformationLength,
PULONG ReturnLength);
#pragma endregion
namespace BazisLib
{
namespace _ThreadPrivate
{
//! Represents a kernel thread.
/*! The _BasicThread template class represents a single kernel thread and contains methods for controlling it.
The thread body is defined through the template parameter (DescendantClass::ThreadStarter static function
is called, passing <b>this</b> as a parameter). That allows declaring VT-less thread classes. However,
as VT is not a huge overhead, a classical pure method-based BazisLib::Win32::Thread class is provided.
*/
template <class DescendantClass> class _BasicThread
{
private:
HANDLE m_hThread;
CLIENT_ID m_ID;
protected:
typedef void _ThreadBodyReturnType;
static inline _ThreadBodyReturnType _ReturnFromThread(void *pArg, ULONG retcode)
{
PsTerminateSystemThread((NTSTATUS)retcode);
}
public:
//! Initializes the thread object, but does not start the thread
/*! This constructor does not create actual Win32 thread. To create the thread and to start it, call
the Start() method.
*/
_BasicThread() :
m_hThread(NULL)
{
m_ID.UniqueProcess = m_ID.UniqueThread = 0;
}
bool Start(HANDLE hProcessToInject = NULL)
{
if (m_hThread)
return false;
OBJECT_ATTRIBUTES threadAttr;
InitializeObjectAttributes(&threadAttr, NULL, OBJ_KERNEL_HANDLE, 0, NULL);
NTSTATUS st = PsCreateSystemThread(&m_hThread, THREAD_ALL_ACCESS, &threadAttr, hProcessToInject, &m_ID, DescendantClass::ThreadStarter, this);
if (!NT_SUCCESS(st))
return false;
return true;
}
/*bool Terminate()
{
return false;
}*/
//! Waits for the thread to complete
bool Join()
{
if (!m_hThread)
return true;
if (PsGetCurrentThreadId() == m_ID.UniqueThread)
return true;
ZwWaitForSingleObject(m_hThread, FALSE, NULL);
return true;
}
bool Join(unsigned timeoutInMsec)
{
if (!m_hThread)
return true;
if (PsGetCurrentThreadId() == m_ID.UniqueThread)
return true;
LARGE_INTEGER interval;
interval.QuadPart = (ULONGLONG)(-((LONGLONG)timeoutInMsec) * 10000);
NTSTATUS st = ZwWaitForSingleObject(m_hThread, FALSE, &interval);
return st == STATUS_SUCCESS;
}
bool IsRunning()
{
if (!m_hThread)
return false;
LARGE_INTEGER zero = {0,};
return ZwWaitForSingleObject(m_hThread, FALSE, &zero) == STATUS_TIMEOUT;
}
void Reset()
{
Join();
m_hThread = NULL;
memset(&m_ID, 0, sizeof(m_ID));
}
/* bool Suspend()
{
}
bool Resume()
{
}*/
int GetReturnCode(bool *pbSuccess = NULL)
{
if (!m_hThread)
{
if (pbSuccess)
*pbSuccess = false;
return -1;
}
THREAD_BASIC_INFORMATION info;
NTSTATUS status = ZwQueryInformationThread(m_hThread, ThreadBasicInformation, &info, sizeof(info), NULL);
if (!NT_SUCCESS(status))
{
if (pbSuccess)
*pbSuccess = false;
return -1;
}
if (pbSuccess)
*pbSuccess = true;
return info.ExitStatus;
}
unsigned GetThreadID()
{
return (unsigned)m_ID.UniqueThread;
}
~_BasicThread()
{
Join();
if (m_hThread)
ZwClose(m_hThread);
}
public:
static void Sleep(unsigned Millisecs)
{
LARGE_INTEGER interval;
interval.QuadPart = (ULONGLONG)(-((LONGLONG)Millisecs) * 10000);
KeDelayExecutionThread(KernelMode, FALSE, &interval);
}
};
}
}
| Java |
/*
* This file is part of BlendInt (a Blender-like Interface Library in
* OpenGL).
*
* BlendInt (a Blender-like Interface Library in OpenGL) is free
* software: you can redistribute it and/or modify it under the terms
* of the GNU Lesser General Public License as published by the Free
* Software Foundation, either version 3 of the License, or (at your
* option) any later version.
*
* BlendInt (a Blender-like Interface Library in OpenGL) is
* distributed in the hope that it will be useful, but WITHOUT ANY
* WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General
* Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with BlendInt. If not, see
* <http://www.gnu.org/licenses/>.
*
* Contributor(s): Freeman Zhang <zhanggyb@gmail.com>
*/
#pragma once
#include <blendint/opengl/gl-buffer.hpp>
#include <blendint/core/color.hpp>
#include <blendint/gui/abstract-button.hpp>
#include <blendint/gui/color-selector.hpp>
namespace BlendInt {
/**
* @brief The most common button class
*
* @ingroup blendint_gui_widgets_buttons
*/
class ColorButton: public AbstractButton
{
DISALLOW_COPY_AND_ASSIGN(ColorButton);
public:
ColorButton ();
virtual ~ColorButton ();
void SetColor (const Color& color);
virtual bool IsExpandX () const override;
virtual Size GetPreferredSize () const override;
protected:
virtual void PerformSizeUpdate (const AbstractView* source,
const AbstractView* target,
int width,
int height) final;
virtual void PerformRoundTypeUpdate (int round_type) final;
virtual void PerformRoundRadiusUpdate (float radius) final;
virtual void PerformHoverIn (AbstractWindow* context) final;
virtual void PerformHoverOut (AbstractWindow* context) final;
virtual Response Draw (AbstractWindow* context) final;
private:
void InitializeColorButton ();
void OnClick ();
void OnSelectorDestroyed (AbstractFrame* sender);
GLuint vao_[2];
GLBuffer<ARRAY_BUFFER, 2> vbo_;
Color color0_;
Color color1_;
ColorSelector* selector_;
};
}
| Java |
import java.util.*;
import Jakarta.util.FixDosOutputStream;
import java.io.*;
public class ImpQual {
/* returns name of AST_QualifiedName */
public String GetName() {
String result = ( ( AST_QualifiedName ) arg[0] ).GetName();
if ( arg[1].arg[0] != null )
result = result + ".*";
return result;
}
}
| Java |
/* *\
** _____ __ _____ __ ____ FieldKit **
** / ___/ / / /____/ / / / \ (c) 2009, field **
** / ___/ /_/ /____/ / /__ / / / http://www.field.io **
** /_/ /____/ /____/ /_____/ **
\* */
/* created August 26, 2009 */
package field.kit.gl.scene.shape
import field.kit.gl.scene._
import field.kit.math.Common._
import field.kit.math._
import field.kit.util.Buffer
/**
* Companion object to class <code>Box</code>
*/
object Box {
val DEFAULT_USE_QUADS = true
/** Creates a new default Box */
def apply() = new Box("Box", Vec3(), 1f, 1f, 1f)
def apply(extent:Float) =
new Box("Box", Vec3(), extent, extent, extent)
def apply(name:String, extent:Float) =
new Box(name, Vec3(), extent, extent, extent)
}
/**
* Implements a 6-sided axis-aligned box
* @author Marcus Wendt
*/
class Box(name:String,
var center:Vec3,
var extentX:Float, var extentY:Float, var extentZ:Float)
extends Mesh(name) {
var useQuads = Box.DEFAULT_USE_QUADS
init(center, extentX, extentY, extentZ)
/**
* initializes the geometry data of this Box
*/
def init(center:Vec3, extentX:Float, extentY:Float, extentZ:Float) {
this.center := center
this.extentX = extentX
this.extentY = extentY
this.extentZ = extentZ
// -- Vertices -------------------------------------------------------------
val vertices = data.allocVertices(24)
val vd = computeVertices
// back
Buffer put (vd(0), vertices, 0)
Buffer put (vd(1), vertices, 1)
Buffer put (vd(2), vertices, 2)
Buffer put (vd(3), vertices, 3)
// right
Buffer put (vd(1), vertices, 4)
Buffer put (vd(4), vertices, 5)
Buffer put (vd(6), vertices, 6)
Buffer put (vd(2), vertices, 7)
// front
Buffer put (vd(4), vertices, 8)
Buffer put (vd(5), vertices, 9)
Buffer put (vd(7), vertices, 10)
Buffer put (vd(6), vertices, 11)
// left
Buffer put (vd(5), vertices, 12)
Buffer put (vd(0), vertices, 13)
Buffer put (vd(3), vertices, 14)
Buffer put (vd(7), vertices, 15)
// top
Buffer put (vd(2), vertices, 16)
Buffer put (vd(6), vertices, 17)
Buffer put (vd(7), vertices, 18)
Buffer put (vd(3), vertices, 19)
// bottom
Buffer put (vd(0), vertices, 20)
Buffer put (vd(5), vertices, 21)
Buffer put (vd(4), vertices, 22)
Buffer put (vd(1), vertices, 23)
// -- Normals --------------------------------------------------------------
val normals = data.allocNormals(24)
// back
for(i <- 0 until 4)
normals put 0 put 0 put -1
// right
for(i <- 0 until 4)
normals put 1 put 0 put 0
// front
for(i <- 0 until 4)
normals put 0 put 0 put 1
// left
for(i <- 0 until 4)
normals put -1 put 0 put 0
// top
for(i <- 0 until 4)
normals put 0 put 1 put 0
// bottom
for(i <- 0 until 4)
normals put 0 put -1 put 0
// -- Texture Coordinates --------------------------------------------------
val textureCoords = data.allocTextureCoords(24)
for(i <- 0 until 6) {
textureCoords put 1 put 0
textureCoords put 0 put 0
textureCoords put 0 put 1
textureCoords put 1 put 1
}
// -- Indices --------------------------------------------------------------
if(useQuads) {
data.indexModes(0) = IndexMode.QUADS
} else {
val indices = data.allocIndices(36)
indices put Array(2, 1, 0,
3, 2, 0,
6, 5, 4,
7, 6, 4,
10, 9, 8,
11, 10, 8,
14, 13, 12,
15, 14, 12,
18, 17, 16,
19, 18, 16,
22, 21, 20,
23, 22, 20)
}
}
/**
* @return a size 8 array of Vectors representing the 8 points of the box.
*/
protected def computeVertices = {
val a = new Array[Vec3](8)
a(0) = Vec3(center) += (-extentX, -extentY, -extentZ)
a(1) = Vec3(center) += (extentX, -extentY, -extentZ)
a(2) = Vec3(center) += (extentX, extentY, -extentZ)
a(3) = Vec3(center) += (-extentX, extentY, -extentZ)
a(4) = Vec3(center) += (extentX, -extentY, extentZ)
a(5) = Vec3(center) += (-extentX, -extentY, extentZ)
a(6) = Vec3(center) += (extentX, extentY, extentZ)
a(7) = Vec3(center) += (-extentX, extentY, extentZ)
a
}
} | Java |
package com.ihidea.component.datastore.archive;
import java.awt.Graphics2D;
import java.awt.Image;
import java.awt.image.BufferedImage;
import java.io.BufferedInputStream;
import java.io.BufferedOutputStream;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStream;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.imageio.ImageIO;
import javax.servlet.ServletOutputStream;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.commons.fileupload.FileItem;
import org.apache.commons.lang.StringUtils;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.util.FileCopyUtils;
import org.springframework.web.bind.annotation.RequestMapping;
import com.ihidea.component.datastore.FileSupportService;
import com.ihidea.component.datastore.fileio.FileIoEntity;
import com.ihidea.core.CoreConstants;
import com.ihidea.core.support.exception.ServiceException;
import com.ihidea.core.support.servlet.ServletHolderFilter;
import com.ihidea.core.util.ImageUtilsEx;
import com.ihidea.core.util.ServletUtilsEx;
import com.sun.image.codec.jpeg.JPEGCodec;
import com.sun.image.codec.jpeg.JPEGImageEncoder;
/**
* 收件扫描
* @author TYOTANN
*/
@Controller
public class ArchiveController {
protected Log logger = LogFactory.getLog(getClass());
@Autowired
private FileSupportService fileSupportService;
@Autowired
private ArchiveService archiveService;
@RequestMapping("/twain.do")
public String doTwain(ModelMap model, HttpServletRequest request) {
String twainHttp = CoreConstants.twainHost;
model.addAttribute("path", request.getParameter("path"));
model.addAttribute("params", request.getParameter("cs"));
model.addAttribute("picname", request.getParameter("picname"));
model.addAttribute("frame", request.getParameter("frame"));
model.addAttribute("HostIP", twainHttp.split(":")[0]);
model.addAttribute("HTTPPort", twainHttp.split(":")[1]);
model.addAttribute("storeName", "ds_archive");
model.addAttribute("storeType", "2");
return "archive/twain";
}
@RequestMapping("/editPicture.do")
public String doEditPicture(ModelMap model, HttpServletRequest request) {
model.addAttribute("ywid", request.getParameter("ywid"));
model.addAttribute("img", request.getParameter("img"));
model.addAttribute("name", request.getParameter("name"));
return "aie/imageeditor";
}
@RequestMapping("/showPicture.do")
public void showPicture(HttpServletRequest request, HttpServletResponse response, ModelMap model) {
OutputStream os = null;
String id = request.getParameter("id");
FileIoEntity file = fileSupportService.get(id);
byte[] b = file.getContent();
response.setContentType("image/png");
try {
os = response.getOutputStream();
FileCopyUtils.copy(b, os);
} catch (IOException e) {
logger.debug("出错啦!", e);
} finally {
if (os != null) {
try {
os.close();
} catch (IOException e) {
logger.debug("出错啦!", e);
}
}
}
}
/**
* 扫描收件获取图片信息
* @param request
* @param response
* @param model
*/
@RequestMapping("/doPictureData.do")
public void doPictureData(HttpServletRequest request, HttpServletResponse response, ModelMap model) {
String tid = request.getParameter("id");
String spcode = request.getParameter("spcode");
String sncode = request.getParameter("sncode");
String typeid = request.getParameter("typeid");
String dm = request.getParameter("dm");
String dwyq = request.getParameter("dwyq");
if (tid == null || tid.trim().equals("") || tid.trim().equals("null")) {
tid = "-1";
}
List<Map<String, Object>> pList = null;
// 根据sncode或spcode查询所有收件
if (StringUtils.isBlank(spcode) && StringUtils.isBlank(sncode)) {
pList = archiveService.getPicture(Integer.valueOf(tid));
} else {
Map<String, Object> params = new HashMap<String, Object>();
params.put("spcode", spcode);
params.put("sncode", sncode);
params.put("typeid", typeid);
params.put("dm", dm);
pList = archiveService.getPicture("09100E", params);
}
// 查询单位印签只需要最后一张
List<Map<String, Object>> picList = new ArrayList<Map<String, Object>>();
if (!StringUtils.isBlank(dwyq)) {
for (int i = 0; i < pList.size(); i++) {
Map<String, Object> pic = pList.get(i);
if (dwyq.equals(pic.get("ino").toString())) {
picList.add(pic);
break;
}
}
} else {
picList = pList;
}
Map<String, List<Map<String, Object>>> map = new HashMap<String, List<Map<String, Object>>>();
map.put("images", picList);
ServletUtilsEx.renderJson(response, map);
}
@SuppressWarnings({ "unchecked" })
@RequestMapping("/uploadDataFile.do")
public String uploadFjToFile(HttpServletRequest request, HttpServletResponse response, ModelMap model) {
String ino = null;
int id = request.getParameter("id") == null ? 0 : Integer.valueOf(request.getParameter("id"));
String strFileName = request.getParameter("filename");
Map<String, Object> paramMap = ServletHolderFilter.getContext().getParamMap();
FileItem cfile = null;
// 得到上传的文件
for (String key : paramMap.keySet()) {
if (paramMap.get(key) instanceof List) {
if (((List) paramMap.get(key)).get(0) instanceof FileItem)
cfile = ((List<FileItem>) paramMap.get(key)).get(0);
break;
}
}
ino = fileSupportService.add(cfile.getName(), cfile.get(), "ds_archive");
fileSupportService.submit(ino, "收件扫描-扫描");
// 保存到收件明细表ARCSJMX
archiveService.savePicture(id, ino, strFileName, "");
return null;
}
/**
* 扫描收件时上传图片
* @param request
* @param response
* @param model
* @return
* @throws Exception
*/
@SuppressWarnings({ "unchecked" })
@RequestMapping("/uploadUnScanDataFile.do")
public String uploadUnScanFjToFile(HttpServletRequest request, HttpServletResponse response, ModelMap model) throws Exception {
Map<String, Object> paramMap = ServletHolderFilter.getContext().getParamMap();
int id = paramMap.get("id") == null ? 0 : Integer.valueOf(String.valueOf(paramMap.get("id")));
String strFileName = paramMap.get("filename") == null ? StringUtils.EMPTY : String.valueOf(paramMap.get("filename"));
String storeName = "ds_archive";
FileOutputStream fos = null;
String ino = null;
try {
List<FileItem> remoteFile = (List<FileItem>) paramMap.get("uploadFile");
FileItem cfile = remoteFile.get(0);
String cfileOrjgName = cfile.getName();
String cfileName = cfileOrjgName.substring(0, cfileOrjgName.lastIndexOf("."));
ino = fileSupportService.add(cfile.getName(), cfile.get(), "ds_archive");
fileSupportService.submit(ino, "收件扫描-本地上传");
if (strFileName != null) {
cfileName = strFileName;
}
// 保存到收件明细表ARCSJMX
archiveService.savePicture(id, ino, cfileName, "");
} catch (Exception e) {
throw new ServiceException(e.getMessage());
} finally {
if (fos != null) {
fos.flush();
fos.close();
}
}
model.addAttribute("isSubmit", "1");
model.addAttribute("params", id);
model.addAttribute("path", "");
model.addAttribute("picname", strFileName);
model.addAttribute("storeName", storeName);
model.addAttribute("success", "上传成功!");
model.addAttribute("ino", ino);
return "archive/twain";
}
/**
* 扫描收件时查看
* @param request
* @param response
* @param model
* @return
*/
@RequestMapping("/doPicture.do")
public String doPicture(HttpServletRequest request, HttpServletResponse response, ModelMap model) {
String img = request.getParameter("img");
String ywid = request.getParameter("ywid");
model.addAttribute("img", img);
model.addAttribute("ywid", ywid);
model.addAttribute("storeName", "ds_archive");
return "aie/showPicture";
}
/**
* 下载图片
* @param request
* @param response
* @throws Exception
*/
@RequestMapping("/downloadFj.do")
public void downloadFj(HttpServletRequest request, HttpServletResponse response) throws Exception {
String id = request.getParameter("id") == null ? "" : String.valueOf(request.getParameter("id"));
if (StringUtils.isBlank(id)) {
id = request.getParameter("file") == null ? "" : String.valueOf(request.getParameter("file"));
}
ServletOutputStream fos = null;
try {
fos = response.getOutputStream();
response.setContentType("application/octet-stream");
FileIoEntity file = fileSupportService.get(id);
FileCopyUtils.copy(file.getContent(), fos);
} catch (Exception e) {
logger.error(e.getMessage(), e);
} finally {
if (fos != null) {
fos.flush();
fos.close();
}
}
}
@RequestMapping("/changePicture.do")
public void changePicture(HttpServletRequest request, HttpServletResponse response, ModelMap model) {
String type = request.getParameter("type");
String path = request.getParameter("imagepath");
// 旋转
if (type.equals("rotate")) {
String aktion = request.getParameter("aktion");
// 角度
if (aktion.equals("rotieren")) {
int degree = Integer.valueOf(request.getParameter("degree"));
try {
Image imageOriginal = ImageIO.read(new ByteArrayInputStream(fileSupportService.get(path).getContent()));
// if (uploadType.equals("file")) { // 文件方式存储
// File tfile = new File(path);
// if (!tfile.exists()) {
// return;
// }
// imageOriginal = ImageIO.read(tfile);
// } else { // 数据库方式存储
// String errfilename =
// this.getClass().getResource("/").getPath()
// .replace("WEB-INF/classes",
// "resources/images/sjerr.png");
// ByteArrayOutputStream os = new ByteArrayOutputStream();
// archiveService.getPictureFromDB(request.getParameter("imagepath"),
// errfilename, os);
// byte[] data = os.toByteArray();
// InputStream is = new ByteArrayInputStream(data);
// imageOriginal = ImageIO.read(is);
// }
int widthOriginal = imageOriginal.getWidth(null);
int heightOriginal = imageOriginal.getHeight(null);
BufferedImage bi = new BufferedImage(widthOriginal, heightOriginal, BufferedImage.TYPE_3BYTE_BGR);
Graphics2D g2d = bi.createGraphics();
g2d.drawImage(imageOriginal, 0, 0, null);
BufferedImage bu = ImageUtilsEx.rotateImage(bi, degree);
ByteArrayOutputStream bos = new ByteArrayOutputStream();
JPEGImageEncoder encoder = JPEGCodec.createJPEGEncoder(bos);
encoder.encode(bu);
byte[] data = bos.toByteArray();
// 更新文件内容
fileSupportService.updateContent(path, data);
// if (uploadType.equals("file")) { // 文件方式存储
// FileOutputStream fos = new FileOutputStream(path);
// JPEGImageEncoder encoder =
// JPEGCodec.createJPEGEncoder(fos);
// encoder.encode(bu);
//
// fos.flush();
// fos.close();
// fos = null;
// } else { // 数据库方式存储
// ByteArrayOutputStream bos = new ByteArrayOutputStream();
// JPEGImageEncoder encoder =
// JPEGCodec.createJPEGEncoder(bos);
// encoder.encode(bu);
// byte[] data = bos.toByteArray();
// InputStream is = new ByteArrayInputStream(data);
// archiveService.updatePictureToDB(request.getParameter("imagepath"),
// is, data.length);
//
// bos.flush();
// bos.close();
// bos = null;
//
// is.close();
// is = null;
// }
} catch (IOException e) {
e.printStackTrace();
logger.error("错误:" + e.getMessage());
}
// 翻转
} else {
String degree = request.getParameter("degree");
try {
Image imageOriginal = ImageIO.read(new ByteArrayInputStream(fileSupportService.get(path).getContent()));
// if (uploadType.equals("file")) { // 文件方式存储
// File tfile = new File(path);
// if (!tfile.exists()) {
// return;
// }
// imageOriginal = ImageIO.read(tfile);
// } else { // 数据库方式存储
// String errfilename =
// this.getClass().getResource("/").getPath()
// .replace("WEB-INF/classes",
// "resources/images/sjerr.png");
// ByteArrayOutputStream os = new ByteArrayOutputStream();
// archiveService.getPictureFromDB(request.getParameter("imagepath"),
// errfilename, os);
// byte[] data = os.toByteArray();
// InputStream is = new ByteArrayInputStream(data);
// imageOriginal = ImageIO.read(is);
// }
int widthOriginal = imageOriginal.getWidth(null);
int heightOriginal = imageOriginal.getHeight(null);
BufferedImage bi = new BufferedImage(widthOriginal, heightOriginal, BufferedImage.TYPE_3BYTE_BGR);
Graphics2D g2d = bi.createGraphics();
g2d.drawImage(imageOriginal, 0, 0, null);
BufferedImage bu = null;
if (degree.equals("flip")) {
bu = ImageUtilsEx.flipImage(bi);
} else {
bu = ImageUtilsEx.flopImage(bi);
}
ByteArrayOutputStream bos = new ByteArrayOutputStream();
JPEGImageEncoder encoder = JPEGCodec.createJPEGEncoder(bos);
encoder.encode(bu);
byte[] data = bos.toByteArray();
// 更新文件内容
fileSupportService.updateContent(path, data);
// if (uploadType.equals("file")) { // 文件方式存储
// FileOutputStream fos = new FileOutputStream(path);
// JPEGImageEncoder encoder =
// JPEGCodec.createJPEGEncoder(fos);
// encoder.encode(bu);
//
// fos.flush();
// fos.close();
// fos = null;
// } else { // 数据库方式存储
// ByteArrayOutputStream bos = new ByteArrayOutputStream();
// JPEGImageEncoder encoder =
// JPEGCodec.createJPEGEncoder(bos);
// encoder.encode(bu);
// byte[] data = bos.toByteArray();
// InputStream is = new ByteArrayInputStream(data);
// archiveService.updatePictureToDB(request.getParameter("imagepath"),
// is, data.length);
//
// bos.flush();
// bos.close();
// bos = null;
//
// is.close();
// is = null;
// }
} catch (IOException e) {
e.printStackTrace();
logger.error("错误:" + e.getMessage());
}
}
}
}
// 公共方法
// 下载附件
@RequestMapping("/arcDownloadFj.do")
public void arcDownloadFj(HttpServletRequest request, HttpServletResponse response) {
int id = Integer.parseInt(request.getParameter("id"));
Map<String, Object> map = this.archiveService.getArcfj(id);
if (map == null) {
return;
}
ServletOutputStream fos = null;
FileInputStream fis = null;
BufferedInputStream bfis = null;
BufferedOutputStream bfos = null;
try {
File file = new File(map.get("filepath").toString());
if (!file.exists()) {
response.setCharacterEncoding("GBK");
response.getWriter().write("<script>alert('文件不存在');window.history.back();</script>");
return;
}
fos = response.getOutputStream();
response.setHeader("Content-Disposition", "attachment; filename=\""
+ new String(map.get("filename").toString().getBytes("GBK"), "ISO8859_1") + "\"");
fis = new FileInputStream(file);
bfis = new BufferedInputStream(fis);
bfos = new BufferedOutputStream(fos);
FileCopyUtils.copy(bfis, bfos);
} catch (Exception e) {
// e.printStackTrace();
} finally {
try {
if (fos != null) {
fos.close();
}
if (bfis != null) {
bfis.close();
}
if (bfos != null) {
bfos.close();
}
if (fis != null) {
fis.close();
}
} catch (Exception e) {
}
}
}
}
| Java |
/*
* SonarQube
* Copyright (C) 2009-2022 SonarSource SA
* mailto:info AT sonarsource DOT com
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3 of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this program; if not, write to the Free Software Foundation,
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
package org.sonar.server.almsettings.ws;
import org.sonar.api.server.ServerSide;
import org.sonar.db.DbClient;
import org.sonar.db.DbSession;
import org.sonar.db.alm.setting.ALM;
import org.sonar.db.alm.setting.AlmSettingDto;
import org.sonar.db.project.ProjectDto;
import org.sonar.server.almsettings.MultipleAlmFeatureProvider;
import org.sonar.server.component.ComponentFinder;
import org.sonar.server.exceptions.BadRequestException;
import org.sonar.server.exceptions.NotFoundException;
import org.sonar.server.user.UserSession;
import org.sonarqube.ws.AlmSettings;
import static java.lang.String.format;
import static org.sonar.api.web.UserRole.ADMIN;
@ServerSide
public class AlmSettingsSupport {
private final DbClient dbClient;
private final UserSession userSession;
private final ComponentFinder componentFinder;
private final MultipleAlmFeatureProvider multipleAlmFeatureProvider;
public AlmSettingsSupport(DbClient dbClient, UserSession userSession, ComponentFinder componentFinder,
MultipleAlmFeatureProvider multipleAlmFeatureProvider) {
this.dbClient = dbClient;
this.userSession = userSession;
this.componentFinder = componentFinder;
this.multipleAlmFeatureProvider = multipleAlmFeatureProvider;
}
public MultipleAlmFeatureProvider getMultipleAlmFeatureProvider() {
return multipleAlmFeatureProvider;
}
public void checkAlmSettingDoesNotAlreadyExist(DbSession dbSession, String almSetting) {
dbClient.almSettingDao().selectByKey(dbSession, almSetting)
.ifPresent(a -> {
throw new IllegalArgumentException(format("An ALM setting with key '%s' already exists", a.getKey()));
});
}
public void checkAlmMultipleFeatureEnabled(ALM alm) {
try (DbSession dbSession = dbClient.openSession(false)) {
if (!multipleAlmFeatureProvider.enabled() && !dbClient.almSettingDao().selectByAlm(dbSession, alm).isEmpty()) {
throw BadRequestException.create("A " + alm + " setting is already defined");
}
}
}
public ProjectDto getProjectAsAdmin(DbSession dbSession, String projectKey) {
return getProject(dbSession, projectKey, ADMIN);
}
public ProjectDto getProject(DbSession dbSession, String projectKey, String projectPermission) {
ProjectDto project = componentFinder.getProjectByKey(dbSession, projectKey);
userSession.checkProjectPermission(projectPermission, project);
return project;
}
public AlmSettingDto getAlmSetting(DbSession dbSession, String almSetting) {
return dbClient.almSettingDao().selectByKey(dbSession, almSetting)
.orElseThrow(() -> new NotFoundException(format("ALM setting with key '%s' cannot be found", almSetting)));
}
public static AlmSettings.Alm toAlmWs(ALM alm) {
switch (alm) {
case GITHUB:
return AlmSettings.Alm.github;
case BITBUCKET:
return AlmSettings.Alm.bitbucket;
case BITBUCKET_CLOUD:
return AlmSettings.Alm.bitbucketcloud;
case AZURE_DEVOPS:
return AlmSettings.Alm.azure;
case GITLAB:
return AlmSettings.Alm.gitlab;
default:
throw new IllegalStateException(format("Unknown ALM '%s'", alm.name()));
}
}
}
| Java |
/* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2006 Robert Osfield
*
* This library is open source and may be redistributed and/or modified under
* the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or
* (at your option) any later version. The full license is in LICENSE file
* included with this distribution, and on the openscenegraph.org website.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* OpenSceneGraph Public License for more details.
*/
#include <osgOcean/SiltEffect>
#include <osgOcean/ShaderManager>
#include <stdlib.h>
#include <OpenThreads/ScopedLock>
#include <osg/Texture2D>
#include <osg/PointSprite>
#include <osgUtil/CullVisitor>
#include <osgUtil/GLObjectsVisitor>
#include <osg/Notify>
#include <osg/io_utils>
#include <osg/Timer>
#include <osg/Version>
using namespace osgOcean;
static float random(float min,float max) { return min + (max-min)*(float)rand()/(float)RAND_MAX; }
static void fillSpotLightImage(unsigned char* ptr, const osg::Vec4& centerColour, const osg::Vec4& backgroudColour, unsigned int size, float power)
{
if (size==1)
{
float r = 0.5f;
osg::Vec4 color = centerColour*r+backgroudColour*(1.0f-r);
*ptr++ = (unsigned char)((color[0])*255.0f);
*ptr++ = (unsigned char)((color[1])*255.0f);
*ptr++ = (unsigned char)((color[2])*255.0f);
*ptr++ = (unsigned char)((color[3])*255.0f);
return;
}
float mid = (float(size)-1.0f)*0.5f;
float div = 2.0f/float(size);
for(unsigned int r=0;r<size;++r)
{
//unsigned char* ptr = image->data(0,r,0);
for(unsigned int c=0;c<size;++c)
{
float dx = (float(c) - mid)*div;
float dy = (float(r) - mid)*div;
float r = powf(1.0f-sqrtf(dx*dx+dy*dy),power);
if (r<0.0f) r=0.0f;
osg::Vec4 color = centerColour*r+backgroudColour*(1.0f-r);
*ptr++ = (unsigned char)((color[0])*255.0f);
*ptr++ = (unsigned char)((color[1])*255.0f);
*ptr++ = (unsigned char)((color[2])*255.0f);
*ptr++ = (unsigned char)((color[3])*255.0f);
}
}
}
static osg::Image* createSpotLightImage(const osg::Vec4& centerColour, const osg::Vec4& backgroudColour, unsigned int size, float power)
{
#if 0
osg::Image* image = new osg::Image;
unsigned char* ptr = image->data(0,0,0);
fillSpotLightImage(ptr, centerColour, backgroudColour, size, power);
return image;
#else
osg::Image* image = new osg::Image;
osg::Image::MipmapDataType mipmapData;
unsigned int s = size;
unsigned int totalSize = 0;
unsigned i;
for(i=0; s>0; s>>=1, ++i)
{
if (i>0) mipmapData.push_back(totalSize);
totalSize += s*s*4;
}
unsigned char* ptr = new unsigned char[totalSize];
image->setImage(size, size, size, GL_RGBA, GL_RGBA, GL_UNSIGNED_BYTE, ptr, osg::Image::USE_NEW_DELETE,1);
image->setMipmapLevels(mipmapData);
s = size;
for(i=0; s>0; s>>=1, ++i)
{
fillSpotLightImage(ptr, centerColour, backgroudColour, s, power);
ptr += s*s*4;
}
return image;
#endif
}
SiltEffect::SiltEffect()
{
setNumChildrenRequiringUpdateTraversal(1);
setUpGeometries(1024);
setIntensity(0.5);
}
void SiltEffect::setIntensity(float intensity)
{
_wind.set(0.0f,0.0f,0.0f);
_particleSpeed = -0.75f - 0.25f*intensity;
_particleSize = 0.02f + 0.03f*intensity;
_particleColor = osg::Vec4(0.85f, 0.85f, 0.85f, 1.0f) - osg::Vec4(0.1f, 0.1f, 0.1f, 1.0f)* intensity;
_maximumParticleDensity = intensity * 8.2f;
_cellSize.set(5.0f / (0.25f+intensity), 5.0f / (0.25f+intensity), 5.0f);
_nearTransition = 25.f;
_farTransition = 100.0f - 60.0f*sqrtf(intensity);
if (!_fog) _fog = new osg::Fog;
_fog->setMode(osg::Fog::EXP);
_fog->setDensity(0.01f*intensity);
_fog->setColor(osg::Vec4(0.6, 0.6, 0.6, 1.0));
_dirty = true;
update();
}
SiltEffect::SiltEffect(const SiltEffect& copy, const osg::CopyOp& copyop):
osg::Node(copy,copyop)
{
setNumChildrenRequiringUpdateTraversal(getNumChildrenRequiringUpdateTraversal()+1);
_dirty = true;
update();
}
void SiltEffect::compileGLObjects(osg::RenderInfo& renderInfo) const
{
if (_quadGeometry.valid())
{
_quadGeometry->compileGLObjects(renderInfo);
if (_quadGeometry->getStateSet()) _quadGeometry->getStateSet()->compileGLObjects(*renderInfo.getState());
}
if (_pointGeometry.valid())
{
_pointGeometry->compileGLObjects(renderInfo);
if (_pointGeometry->getStateSet()) _pointGeometry->getStateSet()->compileGLObjects(*renderInfo.getState());
}
}
void SiltEffect::traverse(osg::NodeVisitor& nv)
{
if (nv.getVisitorType() == osg::NodeVisitor::UPDATE_VISITOR)
{
if (_dirty) update();
if (nv.getFrameStamp())
{
double currentTime = nv.getFrameStamp()->getSimulationTime();
static double previousTime = currentTime;
double delta = currentTime - previousTime;
_origin += _wind * delta;
previousTime = currentTime;
}
return;
}
if (nv.getVisitorType() == osg::NodeVisitor::NODE_VISITOR)
{
if (_dirty) update();
osgUtil::GLObjectsVisitor* globjVisitor = dynamic_cast<osgUtil::GLObjectsVisitor*>(&nv);
if (globjVisitor)
{
if (globjVisitor->getMode() & osgUtil::GLObjectsVisitor::COMPILE_STATE_ATTRIBUTES)
{
compileGLObjects(globjVisitor->getRenderInfo());
}
}
return;
}
if (nv.getVisitorType() != osg::NodeVisitor::CULL_VISITOR)
{
return;
}
osgUtil::CullVisitor* cv = dynamic_cast<osgUtil::CullVisitor*>(&nv);
if (!cv)
{
return;
}
ViewIdentifier viewIndentifier(cv, nv.getNodePath());
{
SiltDrawableSet* SiltDrawableSet = 0;
{
OpenThreads::ScopedLock<OpenThreads::Mutex> lock(_mutex);
SiltDrawableSet = &(_viewDrawableMap[viewIndentifier]);
if (!SiltDrawableSet->_quadSiltDrawable)
{
SiltDrawableSet->_quadSiltDrawable = new SiltDrawable;
SiltDrawableSet->_quadSiltDrawable->setGeometry(_quadGeometry.get());
SiltDrawableSet->_quadSiltDrawable->setStateSet(_quadStateSet.get());
SiltDrawableSet->_quadSiltDrawable->setDrawType(GL_QUADS);
SiltDrawableSet->_pointSiltDrawable = new SiltDrawable;
SiltDrawableSet->_pointSiltDrawable->setGeometry(_pointGeometry.get());
SiltDrawableSet->_pointSiltDrawable->setStateSet(_pointStateSet.get());
SiltDrawableSet->_pointSiltDrawable->setDrawType(GL_POINTS);
}
}
cull(*SiltDrawableSet, cv);
cv->pushStateSet(_stateset.get());
float depth = 0.0f;
if (!SiltDrawableSet->_quadSiltDrawable->getCurrentCellMatrixMap().empty())
{
cv->pushStateSet(SiltDrawableSet->_quadSiltDrawable->getStateSet());
cv->addDrawableAndDepth(SiltDrawableSet->_quadSiltDrawable.get(),cv->getModelViewMatrix(),depth);
cv->popStateSet();
}
if (!SiltDrawableSet->_pointSiltDrawable->getCurrentCellMatrixMap().empty())
{
cv->pushStateSet(SiltDrawableSet->_pointSiltDrawable->getStateSet());
cv->addDrawableAndDepth(SiltDrawableSet->_pointSiltDrawable.get(),cv->getModelViewMatrix(),depth);
cv->popStateSet();
}
cv->popStateSet();
}
}
void SiltEffect::update()
{
_dirty = false;
osg::notify(osg::INFO)<<"SiltEffect::update()"<<std::endl;
float length_u = _cellSize.x();
float length_v = _cellSize.y();
float length_w = _cellSize.z();
// time taken to get from start to the end of cycle
_period = fabsf(_cellSize.z() / _particleSpeed);
_du.set(length_u, 0.0f, 0.0f);
_dv.set(0.0f, length_v, 0.0f);
_dw.set(0.0f, 0.0f, length_w);
_inverse_du.set(1.0f/length_u, 0.0f, 0.0f);
_inverse_dv.set(0.0f, 1.0f/length_v, 0.0f);
_inverse_dw.set(0.0f, 0.0f, 1.0f/length_w);
osg::notify(osg::INFO)<<"Cell size X="<<length_u<<std::endl;
osg::notify(osg::INFO)<<"Cell size Y="<<length_v<<std::endl;
osg::notify(osg::INFO)<<"Cell size Z="<<length_w<<std::endl;
{
OpenThreads::ScopedLock<OpenThreads::Mutex> lock(_mutex);
_viewDrawableMap.clear();
}
// set up state/
{
if (!_stateset)
{
_stateset = new osg::StateSet;
_stateset->addUniform(new osg::Uniform("osgOcean_BaseTexture",0));
_stateset->setMode(GL_LIGHTING, osg::StateAttribute::OFF);
_stateset->setMode(GL_BLEND, osg::StateAttribute::ON);
osg::Texture2D* texture = new osg::Texture2D(createSpotLightImage(osg::Vec4(0.55f,0.55f,0.55f,0.65f),osg::Vec4(0.55f,0.55f,0.55f,0.0f),32,1.0));
_stateset->setTextureAttribute(0, texture);
}
if (!_inversePeriodUniform)
{
_inversePeriodUniform = new osg::Uniform("osgOcean_InversePeriod",1.0f/_period);
_stateset->addUniform(_inversePeriodUniform.get());
}
else _inversePeriodUniform->set(1.0f/_period);
if (!_particleColorUniform)
{
_particleColorUniform = new osg::Uniform("osgOcean_ParticleColour", _particleColor);
_stateset->addUniform(_particleColorUniform.get());
}
else _particleColorUniform->set(_particleColor);
if (!_particleSizeUniform)
{
_particleSizeUniform = new osg::Uniform("osgOcean_ParticleSize", _particleSize);
_stateset->addUniform(_particleSizeUniform.get());
}
else
_particleSizeUniform->set(_particleSize);
}
}
void SiltEffect::createGeometry(unsigned int numParticles,
osg::Geometry* quad_geometry,
osg::Geometry* point_geometry )
{
// particle corner offsets
osg::Vec2 offset00(0.0f,0.0f);
osg::Vec2 offset10(1.0f,0.0f);
osg::Vec2 offset01(0.0f,1.0f);
osg::Vec2 offset11(1.0f,1.0f);
osg::Vec2 offset0(0.5f,0.0f);
osg::Vec2 offset1(0.5f,1.0f);
osg::Vec2 offset(0.5f,0.5f);
// configure quad_geometry;
osg::Vec3Array* quad_vertices = 0;
osg::Vec2Array* quad_offsets = 0;
osg::Vec3Array* quad_vectors = 0;
if (quad_geometry)
{
quad_geometry->setName("quad");
quad_vertices = new osg::Vec3Array(numParticles*4);
quad_offsets = new osg::Vec2Array(numParticles*4);
quad_vectors = new osg::Vec3Array(numParticles*4);
quad_geometry->setVertexArray(quad_vertices);
quad_geometry->setTexCoordArray(0, quad_offsets);
quad_geometry->setNormalArray(quad_vectors);
quad_geometry->setNormalBinding(osg::Geometry::BIND_PER_VERTEX);
}
// configure point_geometry;
osg::Vec3Array* point_vertices = 0;
osg::Vec2Array* point_offsets = 0;
osg::Vec3Array* point_vectors = 0;
if (point_geometry)
{
point_geometry->setName("point");
point_vertices = new osg::Vec3Array(numParticles);
point_offsets = new osg::Vec2Array(numParticles);
point_vectors = new osg::Vec3Array(numParticles);
point_geometry->setVertexArray(point_vertices);
point_geometry->setTexCoordArray(0, point_offsets);
point_geometry->setNormalArray(point_vectors);
point_geometry->setNormalBinding(osg::Geometry::BIND_PER_VERTEX);
}
// set up vertex attribute data.
for(unsigned int i=0; i< numParticles; ++i)
{
osg::Vec3 pos( random(0.0f, 1.0f), random(0.0f, 1.0f), random(0.0f, 1.0f));
osg::Vec3 dir( random(-1.f, 1.f), random(-1.f,1.f), random(-1.f,1.f) );
// quad particles
if (quad_vertices)
{
(*quad_vertices)[i*4] = pos;
(*quad_vertices)[i*4+1] = pos;
(*quad_vertices)[i*4+2] = pos;
(*quad_vertices)[i*4+3] = pos;
(*quad_offsets)[i*4] = offset00;
(*quad_offsets)[i*4+1] = offset01;
(*quad_offsets)[i*4+2] = offset11;
(*quad_offsets)[i*4+3] = offset10;
(*quad_vectors)[i*4] = dir;
(*quad_vectors)[i*4+1] = dir;
(*quad_vectors)[i*4+2] = dir;
(*quad_vectors)[i*4+3] = dir;
}
// point particles
if (point_vertices)
{
(*point_vertices)[i] = pos;
(*point_offsets)[i] = offset;
(*point_vectors)[i] = dir;
}
}
}
#include <osgOcean/shaders/osgOcean_silt_quads_vert.inl>
#include <osgOcean/shaders/osgOcean_silt_quads_frag.inl>
#include <osgOcean/shaders/osgOcean_silt_points_vert.inl>
#include <osgOcean/shaders/osgOcean_silt_points_frag.inl>
void SiltEffect::setUpGeometries(unsigned int numParticles)
{
unsigned int quadRenderBin = 12;
unsigned int pointRenderBin = 11;
osg::notify(osg::INFO)<<"SiltEffect::setUpGeometries("<<numParticles<<")"<<std::endl;
bool needGeometryRebuild = false;
if (!_quadGeometry || _quadGeometry->getVertexArray()->getNumElements() != 4*numParticles)
{
_quadGeometry = new osg::Geometry;
_quadGeometry->setUseVertexBufferObjects(true);
needGeometryRebuild = true;
}
if (!_pointGeometry || _pointGeometry->getVertexArray()->getNumElements() != numParticles)
{
_pointGeometry = new osg::Geometry;
_pointGeometry->setUseVertexBufferObjects(true);
needGeometryRebuild = true;
}
if (needGeometryRebuild)
{
createGeometry(numParticles, _quadGeometry.get(), _pointGeometry.get());
}
if (!_quadStateSet)
{
_quadStateSet = new osg::StateSet;
_quadStateSet->setRenderBinDetails(quadRenderBin,"DepthSortedBin");
static const char osgOcean_silt_quads_vert_file[] = "osgOcean/shaders/osgOcean_silt_quads.vert";
static const char osgOcean_silt_quads_frag_file[] = "osgOcean/shaders/osgOcean_silt_quads.frag";
osg::Program* program =
ShaderManager::instance().createProgram("silt_quads",
osgOcean_silt_quads_vert_file, osgOcean_silt_quads_frag_file,
osgOcean_silt_quads_vert, osgOcean_silt_quads_frag );
_quadStateSet->setAttribute(program);
}
if (!_pointStateSet)
{
_pointStateSet = new osg::StateSet;
static const char osgOcean_silt_points_vert_file[] = "osgOcean/shaders/osgOcean_silt_points.vert";
static const char osgOcean_silt_points_frag_file[] = "osgOcean/shaders/osgOcean_silt_points.frag";
osg::Program* program =
ShaderManager::instance().createProgram("silt_point",
osgOcean_silt_points_vert_file, osgOcean_silt_points_frag_file,
osgOcean_silt_points_vert, osgOcean_silt_points_frag );
_pointStateSet->setAttribute(program);
/// Setup the point sprites
osg::PointSprite *sprite = new osg::PointSprite();
_pointStateSet->setTextureAttributeAndModes(0, sprite, osg::StateAttribute::ON);
_pointStateSet->setMode(GL_VERTEX_PROGRAM_POINT_SIZE, osg::StateAttribute::ON);
_pointStateSet->setRenderBinDetails(pointRenderBin,"DepthSortedBin");
}
}
void SiltEffect::cull(SiltDrawableSet& pds, osgUtil::CullVisitor* cv) const
{
#ifdef DO_TIMING
osg::Timer_t startTick = osg::Timer::instance()->tick();
#endif
float cellVolume = _cellSize.x() * _cellSize.y() * _cellSize.z();
int numberOfParticles = (int)(_maximumParticleDensity * cellVolume);
if (numberOfParticles==0)
return;
pds._quadSiltDrawable->setNumberOfVertices(numberOfParticles*4);
pds._pointSiltDrawable->setNumberOfVertices(numberOfParticles);
pds._quadSiltDrawable->newFrame();
pds._pointSiltDrawable->newFrame();
osg::Matrix inverse_modelview;
inverse_modelview.invert(*(cv->getModelViewMatrix()));
osg::Vec3 eyeLocal = osg::Vec3(0.0f,0.0f,0.0f) * inverse_modelview;
//osg::notify(osg::NOTICE)<<" eyeLocal "<<eyeLocal<<std::endl;
float eye_k = (eyeLocal-_origin)*_inverse_dw;
osg::Vec3 eye_kPlane = eyeLocal-_dw*eye_k-_origin;
// osg::notify(osg::NOTICE)<<" eye_kPlane "<<eye_kPlane<<std::endl;
float eye_i = eye_kPlane*_inverse_du;
float eye_j = eye_kPlane*_inverse_dv;
osg::Polytope frustum;
frustum.setToUnitFrustum(false,false);
frustum.transformProvidingInverse(*(cv->getProjectionMatrix()));
frustum.transformProvidingInverse(*(cv->getModelViewMatrix()));
float i_delta = _farTransition * _inverse_du.x();
float j_delta = _farTransition * _inverse_dv.y();
float k_delta = 1;//_nearTransition * _inverse_dw.z();
int i_min = (int)floor(eye_i - i_delta);
int j_min = (int)floor(eye_j - j_delta);
int k_min = (int)floor(eye_k - k_delta);
int i_max = (int)ceil(eye_i + i_delta);
int j_max = (int)ceil(eye_j + j_delta);
int k_max = (int)ceil(eye_k + k_delta);
//osg::notify(osg::NOTICE)<<"i_delta="<<i_delta<<" j_delta="<<j_delta<<" k_delta="<<k_delta<<std::endl;
unsigned int numTested=0;
unsigned int numInFrustum=0;
float iCyle = 0.43;
float jCyle = 0.64;
for(int i = i_min; i<=i_max; ++i)
{
for(int j = j_min; j<=j_max; ++j)
{
for(int k = k_min; k<=k_max; ++k)
{
float startTime = (float)(i)*iCyle + (float)(j)*jCyle;
startTime = (startTime-floor(startTime))*_period;
if (build(eyeLocal, i,j,k, startTime, pds, frustum, cv))
++numInFrustum;
++numTested;
}
}
}
#ifdef DO_TIMING
osg::Timer_t endTick = osg::Timer::instance()->tick();
osg::notify(osg::NOTICE)<<"time for cull "<<osg::Timer::instance()->delta_m(startTick,endTick)<<"ms numTested= "<<numTested<<" numInFrustum= "<<numInFrustum<<std::endl;
osg::notify(osg::NOTICE)<<" quads "<<pds._quadSiltDrawable->getCurrentCellMatrixMap().size()<<" points "<<pds._pointSiltDrawable->getCurrentCellMatrixMap().size()<<std::endl;
#endif
}
bool SiltEffect::build(const osg::Vec3 eyeLocal, int i, int j, int k, float startTime, SiltDrawableSet& pds, osg::Polytope& frustum, osgUtil::CullVisitor* cv) const
{
osg::Vec3 position = _origin + osg::Vec3(float(i)*_du.x(), float(j)*_dv.y(), float(k+1)*_dw.z());
osg::Vec3 scale(_du.x(), _dv.y(), -_dw.z());
osg::BoundingBox bb(position.x(), position.y(), position.z()+scale.z(),
position.x()+scale.x(), position.y()+scale.y(), position.z());
if ( !frustum.contains(bb) )
return false;
osg::Vec3 center = position + scale*0.5f;
float distance = (center-eyeLocal).length();
osg::Matrix* mymodelview = 0;
if (distance < _nearTransition)
{
SiltDrawable::DepthMatrixStartTime& mstp
= pds._quadSiltDrawable->getCurrentCellMatrixMap()[SiltDrawable::Cell(i,k,j)];
mstp.depth = distance;
mstp.startTime = startTime;
mymodelview = &mstp.modelview;
}
else if (distance <= _farTransition)
{
SiltDrawable::DepthMatrixStartTime& mstp
= pds._pointSiltDrawable->getCurrentCellMatrixMap()[SiltDrawable::Cell(i,k,j)];
mstp.depth = distance;
mstp.startTime = startTime;
mymodelview = &mstp.modelview;
}
else
{
return false;
}
*mymodelview = *(cv->getModelViewMatrix());
#if OPENSCENEGRAPH_MAJOR_VERSION > 2 || \
(OPENSCENEGRAPH_MAJOR_VERSION == 2 && OPENSCENEGRAPH_MINOR_VERSION > 7) || \
(OPENSCENEGRAPH_MAJOR_VERSION == 2 && OPENSCENEGRAPH_MINOR_VERSION == 7 && OPENSCENEGRAPH_PATCH_VERSION >= 3)
// preMultTranslate and preMultScale introduced in rev 8868, which was
// before OSG 2.7.3.
mymodelview->preMultTranslate(position);
mymodelview->preMultScale(scale);
#else
// Otherwise use unoptimized versions
mymodelview->preMult(osg::Matrix::translate(position));
mymodelview->preMult(osg::Matrix::scale(scale));
#endif
cv->updateCalculatedNearFar(*(cv->getModelViewMatrix()),bb);
return true;
}
/////////////////////////////////////////////////////////////////////////////////////////////////////
//
// Precipitation Drawable
//
////////////////////////////////////////////////////////////////////////////////////////////////////
SiltEffect::SiltDrawable::SiltDrawable():
_drawType(GL_QUADS),
_numberOfVertices(0)
{
setSupportsDisplayList(false);
}
SiltEffect::SiltDrawable::SiltDrawable(const SiltDrawable& copy, const osg::CopyOp& copyop):
osg::Drawable(copy,copyop),
_geometry(copy._geometry),
_drawType(copy._drawType),
_numberOfVertices(copy._numberOfVertices)
{
}
void SiltEffect::SiltDrawable::drawImplementation(osg::RenderInfo& renderInfo) const
{
if (!_geometry) return;
const osg::Geometry::Extensions* extensions = osg::Geometry::getExtensions(renderInfo.getContextID(),true);
glPushMatrix();
typedef std::vector<const CellMatrixMap::value_type*> DepthMatrixStartTimeVector;
DepthMatrixStartTimeVector orderedEntries;
orderedEntries.reserve(_currentCellMatrixMap.size());
for(CellMatrixMap::const_iterator citr = _currentCellMatrixMap.begin();
citr != _currentCellMatrixMap.end();
++citr)
{
orderedEntries.push_back(&(*citr));
}
std::sort(orderedEntries.begin(),orderedEntries.end(),LessFunctor());
for(DepthMatrixStartTimeVector::reverse_iterator itr = orderedEntries.rbegin();
itr != orderedEntries.rend();
++itr)
{
extensions->glMultiTexCoord1f(GL_TEXTURE0+1, (*itr)->second.startTime);
glMatrixMode( GL_MODELVIEW );
glLoadMatrix((*itr)->second.modelview.ptr());
_geometry->draw(renderInfo);
unsigned int numVertices = osg::minimum(_geometry->getVertexArray()->getNumElements(), _numberOfVertices);
glDrawArrays(_drawType, 0, numVertices);
}
glPopMatrix();
}
| Java |
<html dir="LTR" xmlns:ndoc="urn:ndoc-schema">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252" />
<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5" />
<title>AbstractLogger.Info(Object, Exception) Method</title>
<xml>
</xml>
<link rel="stylesheet" type="text/css" href="MSDN.css" />
</head>
<body id="bodyID" class="dtBODY">
<div id="nsbanner">
<div id="bannerrow1">
<table class="bannerparthead" cellspacing="0">
<tr id="hdr">
<td class="runninghead">Common Logging 2.0 API Reference</td>
<td class="product">
</td>
</tr>
</table>
</div>
<div id="TitleRow">
<h1 class="dtH1">AbstractLogger.Info(Object, Exception) Method</h1>
</div>
</div>
<div id="nstext">
<p> Log a message object with the <a href="Common.Logging~Common.Logging.LogLevel.html">Info</a> level including the stack Info of the <a href="http://msdn.microsoft.com/en-us/library/System.Exception(VS.80).aspx">Exception</a> passed as a parameter. </p>
<div class="syntax">
<span class="lang">[Visual Basic]</span>
<br />Public Overridable Overloads Sub Info( _<br /> ByVal <i>message</i> As <a href="">Object</a>, _<br /> ByVal <i>exception</i> As <a href="">Exception</a> _<br />) _<div> Implements <a href="Common.Logging~Common.Logging.ILog.Info2.html">ILog.Info</a></div></div>
<div class="syntax">
<span class="lang">[C#]</span>
<br />public virtual <a href="">void</a> Info(<br /> <a href="">object</a> <i>message</i>,<br /> <a href="">Exception</a> <i>exception</i><br />);</div>
<h4 class="dtH4">Parameters</h4>
<dl>
<dt>
<i>message</i>
</dt>
<dd>The message object to log.</dd>
<dt>
<i>exception</i>
</dt>
<dd>The exception to log, including its stack Info.</dd>
</dl>
<h4 class="dtH4">Implements</h4>
<p>
<a href="Common.Logging~Common.Logging.ILog.Info2.html">ILog.Info</a>
</p>
<h4 class="dtH4">See Also</h4>
<p>
<a href="Common.Logging~Common.Logging.AbstractLogger.html">AbstractLogger Class</a> | <a href="Common.Logging~Common.Logging.html">Common.Logging Namespace</a> | <a href="Common.Logging~Common.Logging.AbstractLogger.Info~Overloads.html">AbstractLogger.Info Overload List</a></p>
<object type="application/x-oleobject" classid="clsid:1e2a7bd0-dab9-11d0-b93a-00c04fc99f9e" viewastext="true" style="display: none;">
<param name="Keyword" value="Info method
 ">
</param>
<param name="Keyword" value="Info method, AbstractLogger class">
</param>
<param name="Keyword" value="AbstractLogger.Info method
 ">
</param>
</object>
<hr />
<div id="footer">
<p>
<a href="mailto:netcommon-developer@lists.sourceforge.net?subject=Common%20Logging%202.0%20API%20Reference%20Documentation%20Feedback:%20AbstractLogger.Info Method (Object,%20Exception)">Send comments on this topic.</a>
</p>
<p>
<a>© The Common Infrastructure Libraries for .NET Team 2009 All Rights Reserved.</a>
</p>
<p>Generated from assembly Common.Logging [2.0.0.0] by <a href="http://ndoc3.sourceforget.net">NDoc3</a></p>
</div>
</div>
</body>
</html> | Java |
/**
* Copyright (C) 2005-2015 Alfresco Software Limited.
*
* This file is part of Alfresco
*
* Alfresco is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Alfresco is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
*/
/**
*
* @module alfresco/search/FacetFilter
* @extends external:dijit/_WidgetBase
* @mixes external:dojo/_TemplatedMixin
* @mixes module:alfresco/core/Core
* @mixes module:alfresco/documentlibrary/_AlfDocumentListTopicMixin
* @author Dave Draper
*/
define(["dojo/_base/declare",
"dijit/_WidgetBase",
"dijit/_TemplatedMixin",
"dijit/_OnDijitClickMixin",
"dojo/text!./templates/FacetFilter.html",
"alfresco/core/Core",
"dojo/_base/lang",
"dojo/_base/array",
"dojo/dom-construct",
"dojo/dom-class",
"dojo/on",
"alfresco/util/hashUtils",
"dojo/io-query",
"alfresco/core/ArrayUtils"],
function(declare, _WidgetBase, _TemplatedMixin, _OnDijitClickMixin, template, AlfCore, lang, array, domConstruct, domClass, on, hashUtils, ioQuery, arrayUtils) {
return declare([_WidgetBase, _TemplatedMixin, AlfCore], {
/**
* An array of the i18n files to use with this widget.
*
* @instance
* @type {object[]}
* @default [{i18nFile: "./i18n/FacetFilter.properties"}]
*/
i18nRequirements: [{i18nFile: "./i18n/FacetFilter.properties"}],
/**
* An array of the CSS files to use with this widget.
*
* @instance cssRequirements {Array}
* @type {object[]}
* @default [{cssFile:"./css/FacetFilter.css"}]
*/
cssRequirements: [{cssFile:"./css/FacetFilter.css"}],
/**
* The HTML template to use for the widget.
* @instance
* @type {string}
*/
templateString: template,
/**
* Indicate whether or not the filter is currently applied
*
* @instance
* @type {boolean}
* @default
*/
applied: false,
/**
* The alt-text to use for the image that indicates that a filter has been applied
*
* @instance
* @type {string}
* @default
*/
appliedFilterAltText: "facet.filter.applied.alt-text",
/**
* The path to use as the source for the image that indicates that a filter has been applied
*
* @instance
* @type {string}
* @default
*/
appliedFilterImageSrc: "12x12-selected-icon.png",
/**
* The facet qname
*
* @instance
* @type {string}
* @default
*/
facet: null,
/**
* The filter (or more accurately the filterId) for this filter
*
* @instance
* @type {string}
* @default
*/
filter: null,
/**
* Additional data for the filter (appended after the filter with a bar, e.g. tag|sometag)
*
* @instance
* @type {string}
* @default
*/
filterData: "",
/**
* Indicates that the filter should be hidden. This will be set to "true" if any required data is missing
*
* @instance
* @type {boolean}
* @default
*/
hide: false,
/**
* When this is set to true the current URL hash fragment will be used to initialise the facet selection
* and when the facet is selected the hash fragment will be updated with the facet selection.
*
* @instance
* @type {boolean}
* @default
*/
useHash: false,
/**
* Sets up the attributes required for the HTML template.
* @instance
*/
postMixInProperties: function alfresco_search_FacetFilter__postMixInProperties() {
if (this.label && this.facet && this.filter && this.hits)
{
this.label = this.message(this.label);
// Localize the alt-text for the applied filter message...
this.appliedFilterAltText = this.message(this.appliedFilterAltText, {0: this.label});
// Set the source for the image to use to indicate that a filter is applied...
this.appliedFilterImageSrc = require.toUrl("alfresco/search") + "/css/images/" + this.appliedFilterImageSrc;
}
else
{
// Hide the filter if there is no label or no link...
this.alfLog("warn", "Not enough information provided for filter. It will not be displayed", this);
this.hide = true;
}
},
/**
* @instance
*/
postCreate: function alfresco_search_FacetFilter__postCreate() {
if (this.hide === true)
{
domClass.add(this.domNode, "hidden");
}
if (this.applied)
{
domClass.remove(this.removeNode, "hidden");
domClass.add(this.labelNode, "applied");
}
},
/**
* If the filter has previously been applied then it is removed, if the filter is not applied
* then it is applied.
*
* @instance
*/
onToggleFilter: function alfresco_search_FacetFilter__onToggleFilter(/*jshint unused:false*/ evt) {
if (this.applied)
{
this.onClearFilter();
}
else
{
this.onApplyFilter();
}
},
/**
* Applies the current filter by publishing the details of the filter along with the facet to
* which it belongs and then displays the "applied" image.
*
* @instance
*/
onApplyFilter: function alfresco_search_FacetFilter__onApplyFilter() {
var fullFilter = this.facet + "|" + this.filter;
if(this.useHash)
{
this._updateHash(fullFilter, "add");
}
else
{
this.alfPublish("ALF_APPLY_FACET_FILTER", {
filter: fullFilter
});
}
domClass.remove(this.removeNode, "hidden");
domClass.add(this.labelNode, "applied");
this.applied = true;
},
/**
* Removes the current filter by publishing the details of the filter along with the facet
* to which it belongs and then hides the "applied" image
*
* @instance
*/
onClearFilter: function alfresco_search_FacetFilter__onClearFilter() {
var fullFilter = this.facet + "|" + this.filter;
if(this.useHash)
{
this._updateHash(fullFilter, "remove");
}
else
{
this.alfPublish("ALF_REMOVE_FACET_FILTER", {
filter: fullFilter
});
}
domClass.add(this.removeNode, "hidden");
domClass.remove(this.labelNode, "applied");
this.applied = false;
},
/**
* Performs updates to the url hash as facets are selected and de-selected
*
* @instance
*/
_updateHash: function alfresco_search_FacetFilter___updateHash(fullFilter, mode) {
// Get the existing hash and extract the individual facetFilters into an array
var aHash = hashUtils.getHash(),
facetFilters = ((aHash.facetFilters) ? aHash.facetFilters : ""),
facetFiltersArr = (facetFilters === "") ? [] : facetFilters.split(",");
// Add or remove the filter from the hash object
if(mode === "add" && !arrayUtils.arrayContains(facetFiltersArr, fullFilter))
{
facetFiltersArr.push(fullFilter);
}
else if (mode === "remove" && arrayUtils.arrayContains(facetFiltersArr, fullFilter))
{
facetFiltersArr.splice(facetFiltersArr.indexOf(fullFilter), 1);
}
// Put the manipulated filters back into the hash object or remove the property if empty
if(facetFiltersArr.length < 1)
{
delete aHash.facetFilters;
}
else
{
aHash.facetFilters = facetFiltersArr.join();
}
// Send the hash value back to navigation
this.alfPublish("ALF_NAVIGATE_TO_PAGE", {
url: ioQuery.objectToQuery(aHash),
type: "HASH"
}, true);
}
});
}); | Java |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (1.8.0_31) on Mon Apr 06 15:30:27 CEST 2015 -->
<title>Uses of Class org.cloudbus.cloudsim.VmSchedulerTimeShared</title>
<meta name="date" content="2015-04-06">
<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../../../script.js"></script>
</head>
<body>
<script type="text/javascript"><!--
try {
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="Uses of Class org.cloudbus.cloudsim.VmSchedulerTimeShared";
}
}
catch(err) {
}
//-->
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a name="navbar.top">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
<a name="navbar.top.firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../overview-summary.html">Overview</a></li>
<li><a href="../package-summary.html">Package</a></li>
<li><a href="../../../../org/cloudbus/cloudsim/VmSchedulerTimeShared.html" title="class in org.cloudbus.cloudsim">Class</a></li>
<li class="navBarCell1Rev">Use</li>
<li><a href="../package-tree.html">Tree</a></li>
<li><a href="../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../index-files/index-1.html">Index</a></li>
<li><a href="../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li>Prev</li>
<li>Next</li>
</ul>
<ul class="navList">
<li><a href="../../../../index.html?org/cloudbus/cloudsim/class-use/VmSchedulerTimeShared.html" target="_top">Frames</a></li>
<li><a href="VmSchedulerTimeShared.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_top");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<a name="skip.navbar.top">
<!-- -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
<div class="header">
<h2 title="Uses of Class org.cloudbus.cloudsim.VmSchedulerTimeShared" class="title">Uses of Class<br>org.cloudbus.cloudsim.VmSchedulerTimeShared</h2>
</div>
<div class="classUseContainer">
<ul class="blockList">
<li class="blockList">
<table class="useSummary" border="0" cellpadding="3" cellspacing="0" summary="Use table, listing packages, and an explanation">
<caption><span>Packages that use <a href="../../../../org/cloudbus/cloudsim/VmSchedulerTimeShared.html" title="class in org.cloudbus.cloudsim">VmSchedulerTimeShared</a></span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Package</th>
<th class="colLast" scope="col">Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colFirst"><a href="#org.cloudbus.cloudsim">org.cloudbus.cloudsim</a></td>
<td class="colLast"> </td>
</tr>
</tbody>
</table>
</li>
<li class="blockList">
<ul class="blockList">
<li class="blockList"><a name="org.cloudbus.cloudsim">
<!-- -->
</a>
<h3>Uses of <a href="../../../../org/cloudbus/cloudsim/VmSchedulerTimeShared.html" title="class in org.cloudbus.cloudsim">VmSchedulerTimeShared</a> in <a href="../../../../org/cloudbus/cloudsim/package-summary.html">org.cloudbus.cloudsim</a></h3>
<table class="useSummary" border="0" cellpadding="3" cellspacing="0" summary="Use table, listing subclasses, and an explanation">
<caption><span>Subclasses of <a href="../../../../org/cloudbus/cloudsim/VmSchedulerTimeShared.html" title="class in org.cloudbus.cloudsim">VmSchedulerTimeShared</a> in <a href="../../../../org/cloudbus/cloudsim/package-summary.html">org.cloudbus.cloudsim</a></span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Class and Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colFirst"><code>class </code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/cloudbus/cloudsim/VmSchedulerTimeSharedOverSubscription.html" title="class in org.cloudbus.cloudsim">VmSchedulerTimeSharedOverSubscription</a></span></code>
<div class="block">This is a Time-Shared VM Scheduler, which allows over-subscription.</div>
</td>
</tr>
</tbody>
</table>
</li>
</ul>
</li>
</ul>
</div>
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a name="navbar.bottom">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
<a name="navbar.bottom.firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../overview-summary.html">Overview</a></li>
<li><a href="../package-summary.html">Package</a></li>
<li><a href="../../../../org/cloudbus/cloudsim/VmSchedulerTimeShared.html" title="class in org.cloudbus.cloudsim">Class</a></li>
<li class="navBarCell1Rev">Use</li>
<li><a href="../package-tree.html">Tree</a></li>
<li><a href="../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../index-files/index-1.html">Index</a></li>
<li><a href="../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li>Prev</li>
<li>Next</li>
</ul>
<ul class="navList">
<li><a href="../../../../index.html?org/cloudbus/cloudsim/class-use/VmSchedulerTimeShared.html" target="_top">Frames</a></li>
<li><a href="VmSchedulerTimeShared.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_bottom");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<a name="skip.navbar.bottom">
<!-- -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
</body>
</html>
| Java |
<?php
/**
* This file is part of Goodahead_Core extension
*
* This extension is supplied with every Goodahead extension and provide common
* features, used by Goodahead extensions.
*
* Copyright (C) 2013 Goodahead Ltd. (http://www.goodahead.com)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* and GNU General Public License along with this program.
* If not, see <http://www.gnu.org/licenses/>.
*
* @category Goodahead
* @package Goodahead_Core
* @copyright Copyright (c) 2013 Goodahead Ltd. (http://www.goodahead.com)
* @license http://www.gnu.org/licenses/lgpl-3.0-standalone.html
*/
class Goodahead_Core_Model_Resource_Cms_Update_Collection extends Mage_Core_Model_Mysql4_Collection_Abstract
{
protected function _construct()
{
$this->_init('goodahead_core/cms_update');
return $this;
}
} | Java |
/////////////////////////////////////////////////////////////////////////////
// Name: wx/utils.h
// Purpose: Miscellaneous utilities
// Author: Julian Smart
// Modified by:
// Created: 29/01/98
// Copyright: (c) 1998 Julian Smart
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
#ifndef _WX_UTILS_H_
#define _WX_UTILS_H_
// ----------------------------------------------------------------------------
// headers
// ----------------------------------------------------------------------------
#include "wx/object.h"
#include "wx/list.h"
#include "wx/filefn.h"
#include "wx/hashmap.h"
#include "wx/versioninfo.h"
#include "wx/meta/implicitconversion.h"
#if wxUSE_GUI
#include "wx/gdicmn.h"
#include "wx/mousestate.h"
#endif
class WXDLLIMPEXP_FWD_BASE wxArrayString;
class WXDLLIMPEXP_FWD_BASE wxArrayInt;
// need this for wxGetDiskSpace() as we can't, unfortunately, forward declare
// wxLongLong
#include "wx/longlong.h"
// needed for wxOperatingSystemId, wxLinuxDistributionInfo
#include "wx/platinfo.h"
#ifdef __WATCOMC__
#include <direct.h>
#elif defined(__X__)
#include <dirent.h>
#include <unistd.h>
#endif
#include <stdio.h>
// ----------------------------------------------------------------------------
// Forward declaration
// ----------------------------------------------------------------------------
class WXDLLIMPEXP_FWD_BASE wxProcess;
class WXDLLIMPEXP_FWD_CORE wxFrame;
class WXDLLIMPEXP_FWD_CORE wxWindow;
class wxWindowList;
class WXDLLIMPEXP_FWD_CORE wxEventLoop;
// ----------------------------------------------------------------------------
// Arithmetic functions
// ----------------------------------------------------------------------------
template<typename T1, typename T2>
inline typename wxImplicitConversionType<T1,T2>::value
wxMax(T1 a, T2 b)
{
typedef typename wxImplicitConversionType<T1,T2>::value ResultType;
// Cast both operands to the same type before comparing them to avoid
// warnings about signed/unsigned comparisons from some compilers:
return static_cast<ResultType>(a) > static_cast<ResultType>(b) ? a : b;
}
template<typename T1, typename T2>
inline typename wxImplicitConversionType<T1,T2>::value
wxMin(T1 a, T2 b)
{
typedef typename wxImplicitConversionType<T1,T2>::value ResultType;
return static_cast<ResultType>(a) < static_cast<ResultType>(b) ? a : b;
}
template<typename T1, typename T2, typename T3>
inline typename wxImplicitConversionType3<T1,T2,T3>::value
wxClip(T1 a, T2 b, T3 c)
{
typedef typename wxImplicitConversionType3<T1,T2,T3>::value ResultType;
if ( static_cast<ResultType>(a) < static_cast<ResultType>(b) )
return b;
if ( static_cast<ResultType>(a) > static_cast<ResultType>(c) )
return c;
return a;
}
// ----------------------------------------------------------------------------
// wxMemorySize
// ----------------------------------------------------------------------------
// wxGetFreeMemory can return huge amount of memory on 32-bit platforms as well
// so to always use long long for its result type on all platforms which
// support it
#if wxUSE_LONGLONG
typedef wxLongLong wxMemorySize;
#else
typedef long wxMemorySize;
#endif
// ----------------------------------------------------------------------------
// String functions (deprecated, use wxString)
// ----------------------------------------------------------------------------
#if WXWIN_COMPATIBILITY_2_8
// A shorter way of using strcmp
wxDEPRECATED_INLINE(inline bool wxStringEq(const char *s1, const char *s2),
return wxCRT_StrcmpA(s1, s2) == 0; )
#if wxUSE_UNICODE
wxDEPRECATED_INLINE(inline bool wxStringEq(const wchar_t *s1, const wchar_t *s2),
return wxCRT_StrcmpW(s1, s2) == 0; )
#endif // wxUSE_UNICODE
#endif // WXWIN_COMPATIBILITY_2_8
// ----------------------------------------------------------------------------
// Miscellaneous functions
// ----------------------------------------------------------------------------
// Sound the bell
WXDLLIMPEXP_CORE void wxBell();
#if wxUSE_MSGDLG
// Show wxWidgets information
WXDLLIMPEXP_CORE void wxInfoMessageBox(wxWindow* parent);
#endif // wxUSE_MSGDLG
WXDLLIMPEXP_CORE wxVersionInfo wxGetLibraryVersionInfo();
// Get OS description as a user-readable string
WXDLLIMPEXP_BASE wxString wxGetOsDescription();
// Get OS version
WXDLLIMPEXP_BASE wxOperatingSystemId wxGetOsVersion(int *majorVsn = NULL,
int *minorVsn = NULL);
// Get platform endianness
WXDLLIMPEXP_BASE bool wxIsPlatformLittleEndian();
// Get platform architecture
WXDLLIMPEXP_BASE bool wxIsPlatform64Bit();
#ifdef __LINUX__
// Get linux-distro informations
WXDLLIMPEXP_BASE wxLinuxDistributionInfo wxGetLinuxDistributionInfo();
#endif
// Return a string with the current date/time
WXDLLIMPEXP_BASE wxString wxNow();
// Return path where wxWidgets is installed (mostly useful in Unices)
WXDLLIMPEXP_BASE const wxChar *wxGetInstallPrefix();
// Return path to wxWin data (/usr/share/wx/%{version}) (Unices)
WXDLLIMPEXP_BASE wxString wxGetDataDir();
#if wxUSE_GUI
// Get the state of a key (true if pressed, false if not)
// This is generally most useful getting the state of
// the modifier or toggle keys.
WXDLLIMPEXP_CORE bool wxGetKeyState(wxKeyCode key);
// Don't synthesize KeyUp events holding down a key and producing
// KeyDown events with autorepeat. On by default and always on
// in wxMSW.
WXDLLIMPEXP_CORE bool wxSetDetectableAutoRepeat( bool flag );
// Returns the current state of the mouse position, buttons and modifers
WXDLLIMPEXP_CORE wxMouseState wxGetMouseState();
#endif // wxUSE_GUI
// ----------------------------------------------------------------------------
// wxPlatform
// ----------------------------------------------------------------------------
/*
* Class to make it easier to specify platform-dependent values
*
* Examples:
* long val = wxPlatform::If(wxMac, 1).ElseIf(wxGTK, 2).ElseIf(stPDA, 5).Else(3);
* wxString strVal = wxPlatform::If(wxMac, wxT("Mac")).ElseIf(wxMSW, wxT("MSW")).Else(wxT("Other"));
*
* A custom platform symbol:
*
* #define stPDA 100
* #ifdef __WXWINCE__
* wxPlatform::AddPlatform(stPDA);
* #endif
*
* long windowStyle = wxCAPTION | (long) wxPlatform::IfNot(stPDA, wxRESIZE_BORDER);
*
*/
class WXDLLIMPEXP_BASE wxPlatform
{
public:
wxPlatform() { Init(); }
wxPlatform(const wxPlatform& platform) { Copy(platform); }
void operator = (const wxPlatform& platform) { if (&platform != this) Copy(platform); }
void Copy(const wxPlatform& platform);
// Specify an optional default value
wxPlatform(int defValue) { Init(); m_longValue = (long)defValue; }
wxPlatform(long defValue) { Init(); m_longValue = defValue; }
wxPlatform(const wxString& defValue) { Init(); m_stringValue = defValue; }
wxPlatform(double defValue) { Init(); m_doubleValue = defValue; }
static wxPlatform If(int platform, long value);
static wxPlatform IfNot(int platform, long value);
wxPlatform& ElseIf(int platform, long value);
wxPlatform& ElseIfNot(int platform, long value);
wxPlatform& Else(long value);
static wxPlatform If(int platform, int value) { return If(platform, (long)value); }
static wxPlatform IfNot(int platform, int value) { return IfNot(platform, (long)value); }
wxPlatform& ElseIf(int platform, int value) { return ElseIf(platform, (long) value); }
wxPlatform& ElseIfNot(int platform, int value) { return ElseIfNot(platform, (long) value); }
wxPlatform& Else(int value) { return Else((long) value); }
static wxPlatform If(int platform, double value);
static wxPlatform IfNot(int platform, double value);
wxPlatform& ElseIf(int platform, double value);
wxPlatform& ElseIfNot(int platform, double value);
wxPlatform& Else(double value);
static wxPlatform If(int platform, const wxString& value);
static wxPlatform IfNot(int platform, const wxString& value);
wxPlatform& ElseIf(int platform, const wxString& value);
wxPlatform& ElseIfNot(int platform, const wxString& value);
wxPlatform& Else(const wxString& value);
long GetInteger() const { return m_longValue; }
const wxString& GetString() const { return m_stringValue; }
double GetDouble() const { return m_doubleValue; }
operator int() const { return (int) GetInteger(); }
operator long() const { return GetInteger(); }
operator double() const { return GetDouble(); }
operator const wxString&() const { return GetString(); }
static void AddPlatform(int platform);
static bool Is(int platform);
static void ClearPlatforms();
private:
void Init() { m_longValue = 0; m_doubleValue = 0.0; }
long m_longValue;
double m_doubleValue;
wxString m_stringValue;
static wxArrayInt* sm_customPlatforms;
};
/// Function for testing current platform
inline bool wxPlatformIs(int platform) { return wxPlatform::Is(platform); }
// ----------------------------------------------------------------------------
// Window ID management
// ----------------------------------------------------------------------------
// Ensure subsequent IDs don't clash with this one
WXDLLIMPEXP_BASE void wxRegisterId(int id);
// Return the current ID
WXDLLIMPEXP_BASE int wxGetCurrentId();
// Generate a unique ID
WXDLLIMPEXP_BASE int wxNewId();
// ----------------------------------------------------------------------------
// Various conversions
// ----------------------------------------------------------------------------
// Convert 2-digit hex number to decimal
WXDLLIMPEXP_BASE int wxHexToDec(const wxString& buf);
// Convert 2-digit hex number to decimal
inline int wxHexToDec(const char* buf)
{
int firstDigit, secondDigit;
if (buf[0] >= 'A')
firstDigit = buf[0] - 'A' + 10;
else
firstDigit = buf[0] - '0';
if (buf[1] >= 'A')
secondDigit = buf[1] - 'A' + 10;
else
secondDigit = buf[1] - '0';
return (firstDigit & 0xF) * 16 + (secondDigit & 0xF );
}
// Convert decimal integer to 2-character hex string
WXDLLIMPEXP_BASE void wxDecToHex(int dec, wxChar *buf);
WXDLLIMPEXP_BASE void wxDecToHex(int dec, char* ch1, char* ch2);
WXDLLIMPEXP_BASE wxString wxDecToHex(int dec);
// ----------------------------------------------------------------------------
// Process management
// ----------------------------------------------------------------------------
// NB: for backwards compatibility reasons the values of wxEXEC_[A]SYNC *must*
// be 0 and 1, don't change!
enum
{
// execute the process asynchronously
wxEXEC_ASYNC = 0,
// execute it synchronously, i.e. wait until it finishes
wxEXEC_SYNC = 1,
// under Windows, don't hide the child even if it's IO is redirected (this
// is done by default)
wxEXEC_SHOW_CONSOLE = 2,
// deprecated synonym for wxEXEC_SHOW_CONSOLE, use the new name as it's
// more clear
wxEXEC_NOHIDE = wxEXEC_SHOW_CONSOLE,
// under Unix, if the process is the group leader then passing wxKILL_CHILDREN to wxKill
// kills all children as well as pid
// under Windows (NT family only), sets the CREATE_NEW_PROCESS_GROUP flag,
// which allows to target Ctrl-Break signal to the spawned process.
// applies to console processes only.
wxEXEC_MAKE_GROUP_LEADER = 4,
// by default synchronous execution disables all program windows to avoid
// that the user interacts with the program while the child process is
// running, you can use this flag to prevent this from happening
wxEXEC_NODISABLE = 8,
// by default, the event loop is run while waiting for synchronous execution
// to complete and this flag can be used to simply block the main process
// until the child process finishes
wxEXEC_NOEVENTS = 16,
// under Windows, hide the console of the child process if it has one, even
// if its IO is not redirected
wxEXEC_HIDE_CONSOLE = 32,
// convenient synonym for flags given system()-like behaviour
wxEXEC_BLOCK = wxEXEC_SYNC | wxEXEC_NOEVENTS
};
// Map storing environment variables.
typedef wxStringToStringHashMap wxEnvVariableHashMap;
// Used to pass additional parameters for child process to wxExecute(). Could
// be extended with other fields later.
struct wxExecuteEnv
{
wxString cwd; // If empty, CWD is not changed.
wxEnvVariableHashMap env; // If empty, environment is unchanged.
};
// Execute another program.
//
// If flags contain wxEXEC_SYNC, return -1 on failure and the exit code of the
// process if everything was ok. Otherwise (i.e. if wxEXEC_ASYNC), return 0 on
// failure and the PID of the launched process if ok.
WXDLLIMPEXP_BASE long wxExecute(const wxString& command,
int flags = wxEXEC_ASYNC,
wxProcess *process = NULL,
const wxExecuteEnv *env = NULL);
WXDLLIMPEXP_BASE long wxExecute(char **argv,
int flags = wxEXEC_ASYNC,
wxProcess *process = NULL,
const wxExecuteEnv *env = NULL);
#if wxUSE_UNICODE
WXDLLIMPEXP_BASE long wxExecute(wchar_t **argv,
int flags = wxEXEC_ASYNC,
wxProcess *process = NULL,
const wxExecuteEnv *env = NULL);
#endif // wxUSE_UNICODE
// execute the command capturing its output into an array line by line, this is
// always synchronous
WXDLLIMPEXP_BASE long wxExecute(const wxString& command,
wxArrayString& output,
int flags = 0,
const wxExecuteEnv *env = NULL);
// also capture stderr (also synchronous)
WXDLLIMPEXP_BASE long wxExecute(const wxString& command,
wxArrayString& output,
wxArrayString& error,
int flags = 0,
const wxExecuteEnv *env = NULL);
#if defined(__WINDOWS__) && wxUSE_IPC
// ask a DDE server to execute the DDE request with given parameters
WXDLLIMPEXP_BASE bool wxExecuteDDE(const wxString& ddeServer,
const wxString& ddeTopic,
const wxString& ddeCommand);
#endif // __WINDOWS__ && wxUSE_IPC
enum wxSignal
{
wxSIGNONE = 0, // verify if the process exists under Unix
wxSIGHUP,
wxSIGINT,
wxSIGQUIT,
wxSIGILL,
wxSIGTRAP,
wxSIGABRT,
wxSIGIOT = wxSIGABRT, // another name
wxSIGEMT,
wxSIGFPE,
wxSIGKILL,
wxSIGBUS,
wxSIGSEGV,
wxSIGSYS,
wxSIGPIPE,
wxSIGALRM,
wxSIGTERM
// further signals are different in meaning between different Unix systems
};
enum wxKillError
{
wxKILL_OK, // no error
wxKILL_BAD_SIGNAL, // no such signal
wxKILL_ACCESS_DENIED, // permission denied
wxKILL_NO_PROCESS, // no such process
wxKILL_ERROR // another, unspecified error
};
enum wxKillFlags
{
wxKILL_NOCHILDREN = 0, // don't kill children
wxKILL_CHILDREN = 1 // kill children
};
enum wxShutdownFlags
{
wxSHUTDOWN_FORCE = 1,// can be combined with other flags (MSW-only)
wxSHUTDOWN_POWEROFF = 2,// power off the computer
wxSHUTDOWN_REBOOT = 4,// shutdown and reboot
wxSHUTDOWN_LOGOFF = 8 // close session (currently MSW-only)
};
// Shutdown or reboot the PC
WXDLLIMPEXP_BASE bool wxShutdown(int flags = wxSHUTDOWN_POWEROFF);
// send the given signal to the process (only NONE and KILL are supported under
// Windows, all others mean TERM), return 0 if ok and -1 on error
//
// return detailed error in rc if not NULL
WXDLLIMPEXP_BASE int wxKill(long pid,
wxSignal sig = wxSIGTERM,
wxKillError *rc = NULL,
int flags = wxKILL_NOCHILDREN);
// Execute a command in an interactive shell window (always synchronously)
// If no command then just the shell
WXDLLIMPEXP_BASE bool wxShell(const wxString& command = wxEmptyString);
// As wxShell(), but must give a (non interactive) command and its output will
// be returned in output array
WXDLLIMPEXP_BASE bool wxShell(const wxString& command, wxArrayString& output);
// Sleep for nSecs seconds
WXDLLIMPEXP_BASE void wxSleep(int nSecs);
// Sleep for a given amount of milliseconds
WXDLLIMPEXP_BASE void wxMilliSleep(unsigned long milliseconds);
// Sleep for a given amount of microseconds
WXDLLIMPEXP_BASE void wxMicroSleep(unsigned long microseconds);
#if WXWIN_COMPATIBILITY_2_8
// Sleep for a given amount of milliseconds (old, bad name), use wxMilliSleep
wxDEPRECATED( WXDLLIMPEXP_BASE void wxUsleep(unsigned long milliseconds) );
#endif
// Get the process id of the current process
WXDLLIMPEXP_BASE unsigned long wxGetProcessId();
// Get free memory in bytes, or -1 if cannot determine amount (e.g. on UNIX)
WXDLLIMPEXP_BASE wxMemorySize wxGetFreeMemory();
#if wxUSE_ON_FATAL_EXCEPTION
// should wxApp::OnFatalException() be called?
WXDLLIMPEXP_BASE bool wxHandleFatalExceptions(bool doit = true);
#endif // wxUSE_ON_FATAL_EXCEPTION
// ----------------------------------------------------------------------------
// Environment variables
// ----------------------------------------------------------------------------
// returns true if variable exists (value may be NULL if you just want to check
// for this)
WXDLLIMPEXP_BASE bool wxGetEnv(const wxString& var, wxString *value);
// set the env var name to the given value, return true on success
WXDLLIMPEXP_BASE bool wxSetEnv(const wxString& var, const wxString& value);
// remove the env var from environment
WXDLLIMPEXP_BASE bool wxUnsetEnv(const wxString& var);
#if WXWIN_COMPATIBILITY_2_8
inline bool wxSetEnv(const wxString& var, const char *value)
{ return wxSetEnv(var, wxString(value)); }
inline bool wxSetEnv(const wxString& var, const wchar_t *value)
{ return wxSetEnv(var, wxString(value)); }
template<typename T>
inline bool wxSetEnv(const wxString& var, const wxScopedCharTypeBuffer<T>& value)
{ return wxSetEnv(var, wxString(value)); }
inline bool wxSetEnv(const wxString& var, const wxCStrData& value)
{ return wxSetEnv(var, wxString(value)); }
// this one is for passing NULL directly - don't use it, use wxUnsetEnv instead
wxDEPRECATED( inline bool wxSetEnv(const wxString& var, int value) );
inline bool wxSetEnv(const wxString& var, int value)
{
wxASSERT_MSG( value == 0, "using non-NULL integer as string?" );
wxUnusedVar(value); // fix unused parameter warning in release build
return wxUnsetEnv(var);
}
#endif // WXWIN_COMPATIBILITY_2_8
// Retrieve the complete environment by filling specified map.
// Returns true on success or false if an error occurred.
WXDLLIMPEXP_BASE bool wxGetEnvMap(wxEnvVariableHashMap *map);
// ----------------------------------------------------------------------------
// Network and username functions.
// ----------------------------------------------------------------------------
// NB: "char *" functions are deprecated, use wxString ones!
// Get eMail address
WXDLLIMPEXP_BASE bool wxGetEmailAddress(wxChar *buf, int maxSize);
WXDLLIMPEXP_BASE wxString wxGetEmailAddress();
// Get hostname.
WXDLLIMPEXP_BASE bool wxGetHostName(wxChar *buf, int maxSize);
WXDLLIMPEXP_BASE wxString wxGetHostName();
// Get FQDN
WXDLLIMPEXP_BASE wxString wxGetFullHostName();
WXDLLIMPEXP_BASE bool wxGetFullHostName(wxChar *buf, int maxSize);
// Get user ID e.g. jacs (this is known as login name under Unix)
WXDLLIMPEXP_BASE bool wxGetUserId(wxChar *buf, int maxSize);
WXDLLIMPEXP_BASE wxString wxGetUserId();
// Get user name e.g. Julian Smart
WXDLLIMPEXP_BASE bool wxGetUserName(wxChar *buf, int maxSize);
WXDLLIMPEXP_BASE wxString wxGetUserName();
// Get current Home dir and copy to dest (returns pstr->c_str())
WXDLLIMPEXP_BASE wxString wxGetHomeDir();
WXDLLIMPEXP_BASE const wxChar* wxGetHomeDir(wxString *pstr);
// Get the user's (by default use the current user name) home dir,
// return empty string on error
WXDLLIMPEXP_BASE wxString wxGetUserHome(const wxString& user = wxEmptyString);
#if wxUSE_LONGLONG
typedef wxLongLong wxDiskspaceSize_t;
#else
typedef long wxDiskspaceSize_t;
#endif
// get number of total/free bytes on the disk where path belongs
WXDLLIMPEXP_BASE bool wxGetDiskSpace(const wxString& path,
wxDiskspaceSize_t *pTotal = NULL,
wxDiskspaceSize_t *pFree = NULL);
typedef int (*wxSortCallback)(const void* pItem1,
const void* pItem2,
const void* user_data);
WXDLLIMPEXP_BASE void wxQsort(void* pbase, size_t total_elems,
size_t size, wxSortCallback cmp,
const void* user_data);
#if wxUSE_GUI // GUI only things from now on
// ----------------------------------------------------------------------------
// Launch default browser
// ----------------------------------------------------------------------------
// flags for wxLaunchDefaultBrowser
enum
{
wxBROWSER_NEW_WINDOW = 0x01,
wxBROWSER_NOBUSYCURSOR = 0x02
};
// Launch url in the user's default internet browser
WXDLLIMPEXP_CORE bool wxLaunchDefaultBrowser(const wxString& url, int flags = 0);
// Launch document in the user's default application
WXDLLIMPEXP_CORE bool wxLaunchDefaultApplication(const wxString& path, int flags = 0);
// ----------------------------------------------------------------------------
// Menu accelerators related things
// ----------------------------------------------------------------------------
// flags for wxStripMenuCodes
enum
{
// strip '&' characters
wxStrip_Mnemonics = 1,
// strip everything after '\t'
wxStrip_Accel = 2,
// strip everything (this is the default)
wxStrip_All = wxStrip_Mnemonics | wxStrip_Accel
};
// strip mnemonics and/or accelerators from the label
WXDLLIMPEXP_CORE wxString
wxStripMenuCodes(const wxString& str, int flags = wxStrip_All);
#if WXWIN_COMPATIBILITY_2_6
// obsolete and deprecated version, do not use, use the above overload instead
wxDEPRECATED(
WXDLLIMPEXP_CORE wxChar* wxStripMenuCodes(const wxChar *in, wxChar *out = NULL)
);
#if wxUSE_ACCEL
class WXDLLIMPEXP_FWD_CORE wxAcceleratorEntry;
// use wxAcceleratorEntry::Create() or FromString() methods instead
wxDEPRECATED(
WXDLLIMPEXP_CORE wxAcceleratorEntry *wxGetAccelFromString(const wxString& label)
);
#endif // wxUSE_ACCEL
#endif // WXWIN_COMPATIBILITY_2_6
// ----------------------------------------------------------------------------
// Window search
// ----------------------------------------------------------------------------
// Returns menu item id or wxNOT_FOUND if none.
WXDLLIMPEXP_CORE int wxFindMenuItemId(wxFrame *frame, const wxString& menuString, const wxString& itemString);
// Find the wxWindow at the given point. wxGenericFindWindowAtPoint
// is always present but may be less reliable than a native version.
WXDLLIMPEXP_CORE wxWindow* wxGenericFindWindowAtPoint(const wxPoint& pt);
WXDLLIMPEXP_CORE wxWindow* wxFindWindowAtPoint(const wxPoint& pt);
// NB: this function is obsolete, use wxWindow::FindWindowByLabel() instead
//
// Find the window/widget with the given title or label.
// Pass a parent to begin the search from, or NULL to look through
// all windows.
WXDLLIMPEXP_CORE wxWindow* wxFindWindowByLabel(const wxString& title, wxWindow *parent = NULL);
// NB: this function is obsolete, use wxWindow::FindWindowByName() instead
//
// Find window by name, and if that fails, by label.
WXDLLIMPEXP_CORE wxWindow* wxFindWindowByName(const wxString& name, wxWindow *parent = NULL);
// ----------------------------------------------------------------------------
// Message/event queue helpers
// ----------------------------------------------------------------------------
// Yield to other apps/messages and disable user input
WXDLLIMPEXP_CORE bool wxSafeYield(wxWindow *win = NULL, bool onlyIfNeeded = false);
// Enable or disable input to all top level windows
WXDLLIMPEXP_CORE void wxEnableTopLevelWindows(bool enable = true);
// Check whether this window wants to process messages, e.g. Stop button
// in long calculations.
WXDLLIMPEXP_CORE bool wxCheckForInterrupt(wxWindow *wnd);
// Consume all events until no more left
WXDLLIMPEXP_CORE void wxFlushEvents();
// a class which disables all windows (except, may be, the given one) in its
// ctor and enables them back in its dtor
class WXDLLIMPEXP_CORE wxWindowDisabler
{
public:
// this ctor conditionally disables all windows: if the argument is false,
// it doesn't do anything
wxWindowDisabler(bool disable = true);
// ctor disables all windows except winToSkip
wxWindowDisabler(wxWindow *winToSkip);
// dtor enables back all windows disabled by the ctor
~wxWindowDisabler();
private:
// disable all windows except the given one (used by both ctors)
void DoDisable(wxWindow *winToSkip = NULL);
#if defined(__WXOSX__) && wxOSX_USE_COCOA
wxEventLoop* m_modalEventLoop;
#endif
wxWindowList *m_winDisabled;
bool m_disabled;
wxDECLARE_NO_COPY_CLASS(wxWindowDisabler);
};
// ----------------------------------------------------------------------------
// Cursors
// ----------------------------------------------------------------------------
// Set the cursor to the busy cursor for all windows
WXDLLIMPEXP_CORE void wxBeginBusyCursor(const wxCursor *cursor = wxHOURGLASS_CURSOR);
// Restore cursor to normal
WXDLLIMPEXP_CORE void wxEndBusyCursor();
// true if we're between the above two calls
WXDLLIMPEXP_CORE bool wxIsBusy();
// Convenience class so we can just create a wxBusyCursor object on the stack
class WXDLLIMPEXP_CORE wxBusyCursor
{
public:
wxBusyCursor(const wxCursor* cursor = wxHOURGLASS_CURSOR)
{ wxBeginBusyCursor(cursor); }
~wxBusyCursor()
{ wxEndBusyCursor(); }
// FIXME: These two methods are currently only implemented (and needed?)
// in wxGTK. BusyCursor handling should probably be moved to
// common code since the wxGTK and wxMSW implementations are very
// similar except for wxMSW using HCURSOR directly instead of
// wxCursor.. -- RL.
static const wxCursor &GetStoredCursor();
static const wxCursor GetBusyCursor();
};
void WXDLLIMPEXP_CORE wxGetMousePosition( int* x, int* y );
// ----------------------------------------------------------------------------
// X11 Display access
// ----------------------------------------------------------------------------
#if defined(__X__) || defined(__WXGTK__)
#ifdef __WXGTK__
WXDLLIMPEXP_CORE void *wxGetDisplay();
#endif
#ifdef __X__
WXDLLIMPEXP_CORE WXDisplay *wxGetDisplay();
WXDLLIMPEXP_CORE bool wxSetDisplay(const wxString& display_name);
WXDLLIMPEXP_CORE wxString wxGetDisplayName();
#endif // X or GTK+
// use this function instead of the functions above in implementation code
inline struct _XDisplay *wxGetX11Display()
{
return (_XDisplay *)wxGetDisplay();
}
#endif // X11 || wxGTK
#endif // wxUSE_GUI
// ----------------------------------------------------------------------------
// wxYield(): these functions are obsolete, please use wxApp methods instead!
// ----------------------------------------------------------------------------
// avoid redeclaring this function here if it had been already declated by
// wx/app.h, this results in warnings from g++ with -Wredundant-decls
#ifndef wx_YIELD_DECLARED
#define wx_YIELD_DECLARED
// Yield to other apps/messages
WXDLLIMPEXP_CORE bool wxYield();
#endif // wx_YIELD_DECLARED
// Like wxYield, but fails silently if the yield is recursive.
WXDLLIMPEXP_CORE bool wxYieldIfNeeded();
// ----------------------------------------------------------------------------
// Windows resources access
// ----------------------------------------------------------------------------
// Windows only: get user-defined resource from the .res file.
#ifdef __WINDOWS__
// default resource type for wxLoadUserResource()
extern WXDLLIMPEXP_DATA_BASE(const wxChar*) wxUserResourceStr;
// Return the pointer to the resource data. This pointer is read-only, use
// the overload below if you need to modify the data.
//
// Notice that the resource type can be either a real string or an integer
// produced by MAKEINTRESOURCE(). In particular, any standard resource type,
// i.e any RT_XXX constant, could be passed here.
//
// Returns true on success, false on failure. Doesn't log an error message
// if the resource is not found (because this could be expected) but does
// log one if any other error occurs.
WXDLLIMPEXP_BASE bool
wxLoadUserResource(const void **outData,
size_t *outLen,
const wxString& resourceName,
const wxChar* resourceType = wxUserResourceStr,
WXHINSTANCE module = 0);
// This function allocates a new buffer and makes a copy of the resource
// data, remember to delete[] the buffer. And avoid using it entirely if
// the overload above can be used.
//
// Returns NULL on failure.
WXDLLIMPEXP_BASE char*
wxLoadUserResource(const wxString& resourceName,
const wxChar* resourceType = wxUserResourceStr,
int* pLen = NULL,
WXHINSTANCE module = 0);
#endif // __WINDOWS__
#endif
// _WX_UTILSH__
| Java |
#!/bin/bash -i
tmp=`pwd`
source ~/.bashrc
module purge
# Ensure that there is not multiple threads running
export OMP_NUM_THREADS=1
# On thul and interactive nodes, sourching leads to going back
cd $tmp
unset tmp
# We have here the installation of all the stuff for gray....
source install_funcs.sh
# Use ln to link to this file
if [ $# -ne 0 ]; then
[ ! -e $1 ] && echo "File $1 does not exist, please create." && exit 1
source $1
else
[ ! -e compiler.sh ] && echo "Please create file: compiler.sh" && exit 1
source compiler.sh
fi
if [ -z "$(build_get --installation-path)" ]; then
msg_install --message "The installation path has not been set."
echo "I do not dare to guess where to place it..."
echo "Please set it in your source file."
exit 1
fi
if [ -z "$(build_get --module-path)" ]; then
msg_install --message "The module path has not been set."
msg_install --message "Will set it to: $(build_get --installation-path)/modules"
build_set --module-path "$(build_get --installation-path)/modules"
fi
# Begin installation of various packages
# List of archives
# The order is the installation order
# Set the umask 5 means read and execute
#umask 0
# We can always set the env-variable of LMOD
export LMOD_IGNORE_CACHE=1
# Install the helper
source helpers.bash
source libs/zlib.bash
source libs/libxml2.bash
source libs/hwloc.bash
source libs/openmpi-hpc.bash
source applications/valgrind.bash
| Java |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="de">
<head>
<!-- Generated by javadoc (1.8.0_45) on Mon Jan 16 14:28:58 CET 2017 -->
<title>A-Index</title>
<meta name="date" content="2017-01-16">
<link rel="stylesheet" type="text/css" href="../docstyle.css" title="Style">
<script type="text/javascript" src="../script.js"></script>
</head>
<body>
<script type="text/javascript"><!--
try {
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="A-Index";
}
}
catch(err) {
}
//-->
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a name="navbar.top">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
<a name="navbar.top.firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../de/pniehus/jalienfx/package-summary.html">Package</a></li>
<li>Class</li>
<li>Use</li>
<li><a href="../de/pniehus/jalienfx/package-tree.html">Tree</a></li>
<li><a href="../deprecated-list.html">Deprecated</a></li>
<li class="navBarCell1Rev">Index</li>
<li><a href="../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li>Prev Letter</li>
<li><a href="index-2.html">Next Letter</a></li>
</ul>
<ul class="navList">
<li><a href="../index.html?index-files/index-1.html" target="_top">Frames</a></li>
<li><a href="index-1.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_top");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<a name="skip.navbar.top">
<!-- -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
<div class="contentContainer"><a href="index-1.html">A</a> <a href="index-2.html">D</a> <a href="index-3.html">F</a> <a href="index-4.html">G</a> <a href="index-5.html">I</a> <a href="index-6.html">R</a> <a href="index-7.html">S</a> <a href="index-8.html">U</a> <a name="I:A">
<!-- -->
</a>
<h2 class="title">A</h2>
<dl>
<dt><a href="../de/pniehus/jalienfx/AlienFXController.html" title="class in de.pniehus.jalienfx"><span class="typeNameLink">AlienFXController</span></a> - Class in <a href="../de/pniehus/jalienfx/package-summary.html">de.pniehus.jalienfx</a></dt>
<dd>
<div class="block">This class can be used to control the AlienFX lighting of AlienFX compatible windows devices.</div>
</dd>
<dt><span class="memberNameLink"><a href="../de/pniehus/jalienfx/AlienFXController.html#AlienFXController--">AlienFXController()</a></span> - Constructor for class de.pniehus.jalienfx.<a href="../de/pniehus/jalienfx/AlienFXController.html" title="class in de.pniehus.jalienfx">AlienFXController</a></dt>
<dd> </dd>
</dl>
<a href="index-1.html">A</a> <a href="index-2.html">D</a> <a href="index-3.html">F</a> <a href="index-4.html">G</a> <a href="index-5.html">I</a> <a href="index-6.html">R</a> <a href="index-7.html">S</a> <a href="index-8.html">U</a> </div>
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a name="navbar.bottom">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
<a name="navbar.bottom.firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../de/pniehus/jalienfx/package-summary.html">Package</a></li>
<li>Class</li>
<li>Use</li>
<li><a href="../de/pniehus/jalienfx/package-tree.html">Tree</a></li>
<li><a href="../deprecated-list.html">Deprecated</a></li>
<li class="navBarCell1Rev">Index</li>
<li><a href="../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li>Prev Letter</li>
<li><a href="index-2.html">Next Letter</a></li>
</ul>
<ul class="navList">
<li><a href="../index.html?index-files/index-1.html" target="_top">Frames</a></li>
<li><a href="index-1.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_bottom");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<a name="skip.navbar.bottom">
<!-- -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
</body>
</html>
| Java |
mozHistDownload
===============
firefox 26 + download history extractor to standard json
Have you downloaded lots and lots of files with firefox and then gone and lost them? Well this script takes a firefox places.sqlite file as argument and extracts the download history and saves it as a standard json with name and url so you can parse it and redownload everything at once. Enjoy.
| Java |
/******************************************************************************/
/* */
/* EntityCollection.hpp */
/* */
/* Copyright (C) 2015, Joseph Andrew Staedelin IV */
/* */
/* This file is part of the FastGdk project. */
/* */
/* The FastGdk is free software: you can redistribute it and/or modify */
/* it under the terms of the GNU Lesser General Public License as published */
/* by the Free Software Foundation, either version 3 of the License, or */
/* (at your option) any later version. */
/* */
/* The FastGdk is distributed in the hope that it will be useful, */
/* but WITHOUT ANY WARRANTY; without even the implied warranty of */
/* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the */
/* GNU Lesser General Public License for more details. */
/* */
/* You should have received a copy of the GNU Lesser General Public License */
/* along with the FastGdk. If not, see <http://www.gnu.org/licenses/>. */
/* */
/******************************************************************************/
#ifndef FastEntityCollectionHppIncluded
#define FastEntityCollectionHppIncluded
#include <Fast/Types.hpp>
#include <Fast/Array.hpp>
#include <Fast/EntityEntry.hpp>
namespace Fast
{
class GraphicsContext;
class PhysicsScene;
class Entity;
template class FastApi Array<EntityEntry>;
class FastApi EntityCollection
{
private:
PhysicsScene &mPhysicsScene;
Array<EntityEntry> mEntityEntries;
// Hide these functions. No copying collections!
EntityCollection(const EntityCollection &that)
: mPhysicsScene(that.mPhysicsScene)
{}
EntityCollection& operator=(const EntityCollection &that)
{ return *this; }
public:
// (Con/De)structors
EntityCollection(PhysicsScene *physicsScene);
~EntityCollection();
// Entity functions
Int AddEntity(Entity *entity);
void RemoveEntity(Int id);
void RemoveAllEntities();
Entity* GetEntity(Int id);
const Entity& GetEntity(Int id) const;
PhysicsScene* GetPhysicsScene();
const PhysicsScene& GetPhysicsScene() const;
void Update(Long deltaTimeMicroseconds);
void Draw();
};
}
#endif // FastEntityCollectionHppIncluded
| Java |
/*
Copyright 2013-2021 Paul Colby
This file is part of QtAws.
QtAws is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
QtAws is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with the QtAws. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef QTAWS_VOTEONPROPOSALRESPONSE_H
#define QTAWS_VOTEONPROPOSALRESPONSE_H
#include "managedblockchainresponse.h"
#include "voteonproposalrequest.h"
namespace QtAws {
namespace ManagedBlockchain {
class VoteOnProposalResponsePrivate;
class QTAWSMANAGEDBLOCKCHAIN_EXPORT VoteOnProposalResponse : public ManagedBlockchainResponse {
Q_OBJECT
public:
VoteOnProposalResponse(const VoteOnProposalRequest &request, QNetworkReply * const reply, QObject * const parent = 0);
virtual const VoteOnProposalRequest * request() const Q_DECL_OVERRIDE;
protected slots:
virtual void parseSuccess(QIODevice &response) Q_DECL_OVERRIDE;
private:
Q_DECLARE_PRIVATE(VoteOnProposalResponse)
Q_DISABLE_COPY(VoteOnProposalResponse)
};
} // namespace ManagedBlockchain
} // namespace QtAws
#endif
| Java |
<?php
$oForm=new plugin_form($this->oAdresse);
$oForm->setMessage($this->tMessage);
?>
<form class="form-horizontal" action="" method="POST" >
<div class="form-group">
<label class="col-sm-2 control-label">rue</label>
<div class="col-sm-10"><?php echo $oForm->getInputText('rue',array('class'=>'form-control')) ?></div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label">ville</label>
<div class="col-sm-10"><?php echo $oForm->getInputText('ville',array('class'=>'form-control')) ?></div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label">pays</label>
<div class="col-sm-10"><?php echo $oForm->getInputText('pays',array('class'=>'form-control')) ?></div>
</div>
<?php echo $oForm->getToken('token',$this->token)?>
<div class="form-group">
<div class="col-sm-offset-2 col-sm-10">
<input type="submit" class="btn btn-success" value="Ajouter" /> <a class="btn btn-link" href="<?php echo $this->getLink('adresse::list')?>">Annuler</a>
</div>
</div>
</form>
| Java |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns='http://www.w3.org/1999/xhtml' lang='he' dir='rtl'>
<head>
<meta http-equiv='Content-Type' content='text/html; charset=windows-1255' />
<meta http-equiv='Content-Script-Type' content='text/javascript' />
<meta http-equiv='revisit-after' content='15 days' />
<link rel='stylesheet' href='../../../_script/klli.css' />
<link rel='stylesheet' href='../../_themes/klli.css' />
<link rel='canonical' href='http://tora.us.fm/tnk1/ktuv/mja/16-24.html' />
<title>øéôåé áãéáåø</title>
<meta name='author' content='àøàì' />
<meta name='receiver' content='' />
<meta name='jmQovc' content='tnk1/ktuv/mja/16-24.html' />
<meta name='tvnit' content='' />
</head>
<body lang='he' class='newsubject'><div class='pnim'>
<!--NiwutElyon0-->
<div class='NiwutElyon'>
<div class='NiwutElyon'><a class='link_to_homepage' href='../../index.html'>øàùé</a>><a href='../../ktuv/mja/16-24.html'></a>></div>
</div>
<!--NiwutElyon1-->
<h1 id='h1'>øéôåé áãéáåø</h1>
<div id='idfields'>
<p>îàú: àøàì</p>
</div>
<script type='text/javascript' src='../../../_script/vars.js'></script>
<script type='text/javascript'>kotrt()</script>
<div id='tokn'>
<table class='inner_navigation'><tr>
<td class='previous'><a href='16-23.html'> →èæ 23— </a></td>
<td class='current'>îùìé èæ 24</td>
<td class='next'><a href='16-25.html'> — èæ 25← </a></td>
</tr></table><!-- inner_navigation -->
<div class='page single_height'>
<p><a class='psuq' href='/tnk1/prqim/t2816.htm#24'>
îùìé èæ24
</a>: "<q class='psuq'>öåÌó ãÌÀáÇùÑ àÄîÀøÅé ðÉòÇí,
îÈúåÉ÷ ìÇðÌÆôÆùÑ åÌîÇøÀôÌÅà ìÈòÈöÆí.</q>"</p>
<div class='short'>
<div class='tirgum'><p>
<strong>àîéøåú ðòéîåú</strong>, éãéãåúéåú åçëîåú, äï ëîå
<strong>öåó ãáù</strong> - äï âí
<strong>îúå÷åú ìðôù</strong> åâí
<strong>îøôàåú</strong> àú
<strong>äòöí</strong> (äâåó åäîùôçä).</p></div>
</div><!--short-->
<div class='long'>
<div class='cell hqblot longcell'>
<h2 class='subtitle'>ä÷áìåú</h2>
<p>
<strong> öåó ãáù</strong> - ùìåùä ôñå÷éí ðåñôéí áñôø îùìé îãáøéí òì
<strong>ãáù</strong> ëîùì, åðéúï ììîåã îäí âí òì øéôåé áãéáåø:</p> <ul><li>
<a class="psuq" href="/tnk1/prqim/t2824.htm#13">îùìé ëã13</a>: "<q class="psuq">àÁëÈì áÌÀðÄé
<strong>ãÀáÇùÑ</strong> ëÌÄé èåÉá, åÀðÉôÆú îÈúåÉ÷ òÇì
<strong>çÄëÌÆêÈ</strong></q>" - ìëì àçã éù èòí ùåðä, ìëì àçã éù ñåâ àçø ùì ãáù
äîúå÷ ìçéëå. ëê âí àîøé ðåòí - éù ìäúàéí ìëì àçã àú äãáøéí äîúàéîéí ìå,
ìà ìäùúîù áðåñçä àçéãä. äãáø ãåøù çëîä øáä, ëîå ùëúåá áôñå÷ ùàçøéå,
äîîùéì àú äçëîä ìãáù: "<q class="psuq">ëï ãòä
<strong>çëîä</strong> ìðôùê, àí îöàú åéù àçøéú...</q>"
</li><li>
<a class="psuq" href="/tnk1/prqim/t2825.htm#16">îùìé ëä16</a>: "<q class="psuq"><strong>ãÌÀáÇùÑ</strong> îÈöÈàúÈ - àÁëÉì ãÌÇéÌÆêÌÈ, ôÌÆï úÌÄùÒÀáÌÈòÆðÌåÌ åÇäÂ÷ÅàúåÉ</q>"
- äãáù îåòéì áëîåú ÷èðä  àê îæé÷ áëîåú âãåìä. ëê âí àîøé ðåòí - òí ëì
îúé÷åúí, éù ìäùúîù áäí áîéãä, ëãé ùìà ìâøåí ìæåìú ìîàåñ áäí; ëîå ùëúåá
áôñå÷ ùàçøéå "<q class="psuq">ä÷ø øâìê îáéú øòê, ôï éùáòê åùðàê</q>".
</li><li>
<a class="psuq" href="/tnk1/prqim/t2825.htm#27">îùìé ëä27</a>: "<q class="psuq">àÈëÉì
<strong>ãÌÀáÇùÑ</strong> äÇøÀáÌåÉú ìÉà èåÉá, åÀçÅ÷Æø ëÌÀáÉãÈí
<strong>ëÌÈáåÉã</strong></q>" - ìà èåá ìäøáåú áàëéìú ãáù åìà èåá ìäøáåú áîçùáåú òì àéê ìäùéâ òåã ëáåã (<a href="/tnk1/ktuv/mjly/mj-25-27.html">ôéøåè</a>); ëê âí
<strong>àîøé ðåòí</strong> - ìà èåá ìäùúîù áäí òì-îðú ìäùéâ ëáåã îï
äæåìú. àîøé ðåòí ãåøùéí îäàåîø ìäéåú áàåúä øîä ùì äùåîò, áâåáä äòéðééí.
îé ùîðñä ìäùéâ ëáåã, ëîå ìîùì ôåìéèé÷àé ùîðñä ìðçí àáìéí á"àîøé ðåòí"
îæåééôéí òì-îðú ìäùéâ àú úîéëúí á÷ìôé, ìà éöìéç ìøôà.</li></ul>
<p>
<strong>îøôà ìòöí</strong> - àîøé ðåòí îøôàéí àú
äòöîåú, ëìåîø àú äâåó; àáì ìà ø÷ àú äâåó:
</p> <ul><li>
<a class="psuq" href="/tnk1/prqim/t2812.htm#4">îùìé éá4</a>: "<q class="psuq">àÅùÑÆú çÇéÄì òÂèÆøÆú áÌÇòÀìÈäÌ, åÌëÀøÈ÷Èá
<strong>áÌÀòÇöÀîåÉúÈéå</strong> îÀáÄéùÑÈä</q>": àéùä îáéùä (òöìä åìà îåëùøú) ôåâòú ááøéàåúå ùì áòìä, ëé äàéù åàùúå äí ëîå òöîåú áâåó àçã (<a href="/tnk1/ktuv/mjly/mj-12-04.html">ôéøåè</a>); àáì
<strong>àîøé ðåòí</strong>
<strong>îøôàéí</strong> àú
<strong>äòöí</strong> - äàéù äîãáø
<strong>àîøé ðåòí</strong> òí àùúå éëåì ìøôà àú äéçñéí òîä, åìäôåê àåúä î<strong>ø÷á áòöîåúéå</strong> ì<strong>àùú çéì</strong>.</li><li>
<a class="psuq" href="/tnk1/prqim/t2814.htm#30">îùìé éã30</a>: "<q class="psuq">çÇéÌÅé áÀùÒÈøÄéí ìÅá îÇøÀôÌÅà, åÌøÀ÷Çá
<strong>òÂöÈîåÉú</strong> ÷ÄðÀàÈä</q>": ÷ðàä áàãí îöìéç ôåâòú ááøéàåú (<a href="/tnk1/ktuv/mjly/mj-14-30.html">ôéøåè</a>), àê ëùäàãí äîöìéç îãáø
<strong>àîøé ðåòí</strong>, îãáø áçáéáåú åáðòéîåú òí ëì îëøéå, äí ôçåú ðåèéí ì÷ðà áå, åëê àîøé äðåòí ùìå
<strong>îøôàéí</strong> àú
<strong>òöîåúéäí</strong>.</li></ul>
<p>ä÷áìåú ðåñôåú:</p> <ul><li>ãéáåøéí ðòéîéí îåòéìéí ìà ø÷ ìùåîò àìà âí ìîãáø,
<a class="psuq" href="/tnk1/prqim/t2811.htm#25">îùìé éà25</a>: "<q class="psuq">ðÆôÆùÑ áÌÀøÈëÈä úÀãËùÌÈï, åÌîÇøÀåÆä âÌÇí äåÌà éåÉøÆà</q>" - àãí ùðôùå îìàä ááøëä ëìôé àðùéí àçøéí, éæëä ìáøéàåú åùôò (<a href="/tnk1/ktuv/mjly/mj-11-2526.html">ôéøåè</a>).
</li><li> ëîå ùäãéáåø éëåì ìøôà, äåà éëåì âí ìäøåñ, åìëï ãøåùä æäéøåú øáä ëùîãáøéí òí àãí äæ÷å÷ ìøéôåé,
<a class="psuq" href="/tnk1/prqim/t2815.htm#4">îùìé èå4</a>: "<q class="psuq"><strong>îÇøÀôÌÅà</strong> ìÈùÑåÉï òÅõ çÇéÌÄéí, åÀñÆìÆó áÌÈäÌ ùÑÆáÆø áÌÀøåÌçÇ</q>" - ñéìåó åòéååú áìùåï äîøôàú òìåì ìùáåø àú øåçå ùì äùåîò (<a href="/tnk1/ktuv/mjly/mj-15-04.html">ôéøåè</a>).</li><li>
<a class="psuq" href="/tnk1/prqim/t2815.htm#26">îùìé èå26</a>: "<q class="psuq">úÌåÉòÂáÇú ä' îÇçÀùÑÀáåÉú øÈò, åÌèÀäÉøÄéí àÄîÀøÅé
<strong>ðÉòÇí</strong></q>"  - ä' ùåðà
ùàðùéí çåùáéí øò æä òì æä, àê èäåøéí áòéðéå äãéáåøéí ùàðùéí îãáøéí æä
òí æä áðåòí - ãáøé éãéãåú åàäáä, ãéáåøéí îúå÷éí äîøôàéí àú äùðàä (<a href="/tnk1/ktuv/mjly/mj-15-26.html">ôéøåè</a>).
</li><li>
<a class="psuq" href="/tnk1/prqim/t2827.htm#9">îùìé ëæ9</a>: "<q class="psuq">ùÑÆîÆï åÌ÷ÀèÉøÆú éÀùÒÇîÌÇç ìÅá,
<strong>åÌîÆúÆ÷</strong> øÅòÅäåÌ îÅòÂöÇú ðÈôÆùÑ</q>" (<a href="/tnk1/ktuv/mjly/mj-27-09.html">ôéøåè</a>)</li></ul>
<div class="future">øàå âí
<a href="/tnk1/ktuv/mjly/ecm.html">òöîåú áñôø îùìé</a>,
<a href="/tnk1/ktuv/mjly/dvj.html">ãáù áñôø îùìé</a>.
</div>
<div class="future">
<h2>ôñå÷éí ðåñôéí òí äùåøù "ðòí"
</h2>
<ul><li>
<a class="psuq" href="/tnk1/prqim/t1017.htm#10">éùòéäå éæ10</a>: "<q class="psuq">ëÌÄé ùÑÈëÇçÇúÌÀ àÁìÉäÅé éÄùÑÀòÅêÀ åÀöåÌø îÈòËæÌÅêÀ ìÉà æÈëÈøÀúÌÀ òÇì ëÌÅï úÌÄèÌÀòÄé ðÄèÀòÅé
<strong>ðÇòÂîÈðÄéí</strong> åÌæÀîÉøÇú æÈø úÌÄæÀøÈòÆðÌåÌ</q>"
</li><li>
<a class="psuq" href="/tnk1/prqim/t1232.htm#19">éçæ÷àì ìá19</a>: "<q class="psuq">îÄîÌÄé
<strong>ðÈòÈîÀúÌÈ</strong> øÀãÈä åÀäÈùÑÀëÌÀáÈä àÆú òÂøÅìÄéí</q>"
</li><li>
<a class="psuq" href="/tnk1/prqim/t2616.htm#6">úäìéí èæ6</a>: "<q class="psuq">çÂáÈìÄéí ðÈôÀìåÌ ìÄé
<strong>áÌÇðÌÀòÄîÄéí</strong> àÇó ðÇçÂìÈú ùÑÈôÀøÈä òÈìÈé</q>"
</li><li>
<a class="psuq" href="/tnk1/prqim/t2616.htm#11">úäìéí èæ11</a>: "<q class="psuq">úÌåÉãÄéòÅðÄé àÉøÇç çÇéÌÄéí ùÒÉáÇò ùÒÀîÈçåÉú àÆú ôÌÈðÆéêÈ
<strong>ðÀòÄîåÉú</strong> áÌÄéîÄéðÀêÈ ðÆöÇç</q>"
</li><li>
<a class="psuq" href="/tnk1/prqim/t2681.htm#3">úäìéí ôà3</a>: "<q class="psuq">ùÒÀàåÌ æÄîÀøÈä åÌúÀðåÌ úÉó ëÌÄðÌåÉø
<strong>ðÈòÄéí</strong> òÄí ðÈáÆì</q>"
</li><li>
<a class="psuq" href="/tnk1/prqim/t2690.htm#17">úäìéí ö17</a>: "<q class="psuq">åÄéäÄé
<strong>ðÉòÇí</strong> àÂãÉðÈé àÁìÉäÅéðåÌ òÈìÅéðåÌ åÌîÇòÂùÒÅä éÈãÅéðåÌ ëÌåÉðÀðÈä òÈìÅéðåÌ åÌîÇòÂùÒÅä éÈãÅéðåÌ ëÌåÉðÀðÅäåÌ</q>"
</li><li>
<a class="psuq" href="/tnk1/prqim/t26d5.htm#3">úäìéí ÷ìä3</a>: "<q class="psuq">äÇìÀìåÌ éÈäÌ ëÌÄé èåÉá ä'. æÇîÌÀøåÌ ìÄùÑÀîåÉ ëÌÄé
<strong>ðÈòÄéí</strong></q>"
</li><li>
<a class="psuq" href="/tnk1/prqim/t26e1.htm#4">úäìéí ÷îà4</a>: "<q class="psuq">àÇì úÌÇè ìÄáÌÄé ìÀãÈáÈø øÈò ìÀäÄúÀòåÉìÅì òÂìÄìåÉú áÌÀøÆùÑÇò àÆú àÄéùÑÄéí ôÌÉòÂìÅé àÈåÆï åÌáÇì àÆìÀçÇí
<strong>áÌÀîÇðÀòÇîÌÅéäÆí</strong></q>"
</li><li>
<a class="psuq" href="/tnk1/prqim/t26e1.htm#6">úäìéí ÷îà6</a>: "<q class="psuq">ðÄùÑÀîÀèåÌ áÄéãÅé ñÆìÇò ùÑÉôÀèÅéäÆí åÀùÑÈîÀòåÌ àÂîÈøÇé ëÌÄé
<strong>ðÈòÅîåÌ</strong></q>"
</li><li>
<a class="psuq" href="/tnk1/prqim/t2736.htm#11">àéåá ìå11</a>: "<q class="psuq">àÄí éÄùÑÀîÀòåÌ åÀéÇòÂáÉãåÌ éÀëÇìÌåÌ éÀîÅéäÆí áÌÇèÌåÉá åÌùÑÀðÅéäÆí
<strong>áÌÇðÌÀòÄéîÄéí</strong></q>"
</li><li>
<a class="psuq" href="/tnk1/prqim/t2809.htm#17">îùìé è17</a>: "<q class="psuq">àÅùÑÆú
ëÌÀñÄéìåÌú äÉîÄéÌÈä ôÌÀúÇéÌåÌú åÌáÇì-éÈãÀòÈä îÌÈä. åÀéÈùÑÀáÈä ìÀôÆúÇç
áÌÅéúÈäÌ--òÇì-ëÌÄñÌÅà îÀøÉîÅé ÷ÈøÆú ìÄ÷ÀøÉà ìÀòÉáÀøÅé-ãÈøÆêÀ äÇîÀéÇùÌÑÀøÄéí
àÉøÀçåÉúÈí. îÄé-ôÆúÄé éÈñËø äÅðÌÈä åÇçÂñÇø-ìÅá åÀàÈîÀøÈä ìÌåÉ: îÇéÄí-âÌÀðåÌáÄéí
<strong>éÄîÀúÌÈ÷åÌ</strong> åÀìÆçÆí ñÀúÈøÄéí
<strong>éÄðÀòÈí</strong>. åÀìÉà-éÈãÇò ëÌÄé-øÀôÈàÄéí ùÑÈí áÌÀòÄîÀ÷Åé ùÑÀàåÉì ÷ÀøËàÆéäÈ</q>"- çåáä ìäæäéø åìäãâéù ëé îùì æä ðàîø òì-ãøê ääèòéä
<small>(øîé ðéø)</small>.
</li><li>
<a class="psuq" href="/tnk1/prqim/t2822.htm#18">îùìé ëá18</a>: "<q class="psuq">ëÌÄé
<strong>ðÈòÄéí</strong> ëÌÄé úÄùÑÀîÀøÅí áÌÀáÄèÀðÆêÈ, éÄëÌÉðåÌ éÇçÀãÌÈå òÇì ùÒÀôÈúÆéêÈ</q>"
</li><li>
<a class="psuq" href="/tnk1/prqim/t2823.htm#8">îùìé ëâ8</a>: "<q class="psuq">ôÌÄúÌÀêÈ àÈëÇìÀúÌÈ úÀ÷ÄéàÆðÌÈä' åÀùÑÄçÇúÌÈ ãÌÀáÈøÆéêÈ
<strong>äÇðÌÀòÄéîÄéí</strong></q>"
</li><li>
<a class="psuq" href="/tnk1/prqim/t2824.htm#4">îùìé ëã4</a>: "<q class="psuq">åÌáÀãÇòÇú çÂãÈøÄéí éÄîÌÈìÀàåÌ ëÌÈì äåÉï éÈ÷Èø
<strong>åÀðÈòÄéí</strong></q>"
</li><li>
<a class="psuq" href="/tnk1/prqim/t2824.htm#25">îùìé ëã25</a>: "<q class="psuq">åÀìÇîÌåÉëÄéçÄéí
<strong>éÄðÀòÈí</strong>, åÇòÂìÅéäÆí úÌÈáåÉà áÄøÀëÌÇú
<strong>èåÉá</strong></q>" - áðéâåã ìîä ùàôùø ìçùåá, ãåå÷à ìîåëéçéí éäéå éãéãéí.
</li><li>
<a class="psuq" href="/tnk1/prqim/t3001.htm#16">ùéø äùéøéí à16</a>: "<q class="psuq">äÄðÌÀêÈ éÈôÆä
<strong>ãåÉãÄé</strong>, àÇó
<strong>ðÈòÄéí</strong>, àÇó òÇøÀùÒÅðåÌ øÇòÂðÈðÈä</q>"
</li><li>
<a class="psuq" href="/tnk1/prqim/t3007.htm#7">ùéø äùéøéí æ7</a>: "<q class="psuq">îÇä éÌÈôÄéú åÌîÇä
<strong>ðÌÈòÇîÀúÌÀ, àÇäÂáÈä</strong> áÌÇúÌÇòÂðåÌâÄéí</q>"</li></ul></div>
</div>
<div class='cell ecot longcell'>
<h2 class='subtitle'>òöåú</h2>
<p>äôñå÷ îééòõ ìøôà àú äâåó åàú äðôù áàîöòåú ãéáåøéí -
<strong>àîøé ðåòí</strong>. ìîåùâ <strong>ðåòí</strong> éùðï îùîòåéåú ùåðåú, ùàôùø ìñãøï ëðâã àøáòú äòåìîåú:</p><p>1.
<strong>ðåòí</strong> ÷ùåø ìéãéãåú, àäáä åáøéú<small class="small"> (ëðâã òåìí äîòùä)</small>:<br />
</p> <ul><li>
<a class="psuq" href="/tnk1/prqim/t08b01.htm#23">ùîåàì á à23-26</a>: "<q class="psuq">ùÑÈàåÌì åÄéäåÉðÈúÈï,
äÇðÌÆàÁäÈáÄéí
<strong>
åÀäÇðÌÀòÄéîÄí</strong> áÌÀçÇéÌÅéäÆí åÌáÀîåÉúÈí ìÉà ðÄôÀøÈãåÌ, îÄðÌÀùÑÈøÄéí ÷ÇìÌåÌ îÅàÂøÈéåÉú âÌÈáÅøåÌ... öÇø ìÌÄé òÈìÆéêÈ àÈçÄé éÀäåÉðÈúÈï
<strong>
ðÈòÇîÀúÌÈ</strong> ìÄé îÀàÉã ðÄôÀìÀàÇúÈä
àÇäÂáÈúÀêÈ ìÄé îÅàÇäÂáÇú ðÈùÑÄéí</q>"
</li><li>
<a class="psuq" href="/tnk1/prqim/t2311.htm#10">æëøéä éà10</a>: "<q class="psuq">åÈàÆ÷ÌÇç àÆú îÇ÷ÀìÄé àÆú
<strong>ðÉòÇí</strong> åÈàÆâÀãÌÇò àÉúåÉ, ìÀäÈôÅéø àÆú
<strong>áÌÀøÄéúÄé</strong> àÂùÑÆø ëÌÈøÇúÌÄé àÆú ëÌÈì äÈòÇîÌÄéí</q>"
</li><li>
<a class="psuq" href="/tnk1/prqim/t26d3.htm#1">úäìéí ÷ìâ1</a>: "<q class="psuq">ùÑÄéø äÇîÌÇòÂìåÉú ìÀãÈåÄã äÄðÌÅä îÇä èÌåÉá åÌîÇä
<strong>ðÌÈòÄéí</strong> ùÑÆáÆú
<strong>àÇçÄéí</strong> âÌÇí éÈçÇã</q>"</li></ul>
<p> àí ëê, àôùø ìøôà àãí çåìä áëê ùîãáøéí òîå ãéáåøéí ùì éãéãåú åàäáä.</p>
<p>2.
<strong>ðåòí</strong> ÷ùåø âí ìùéøéí<small class="small"> (ëðâã òåìí äøâù)</small>:
<br />
</p> <ul><li>
<a class="psuq" href="/tnk1/prqim/t08b23.htm#1">ùîåàì á ëâ1</a>: "<q class="psuq">åÀàÅìÌÆä ãÌÄáÀøÅé ãÌÈåÄã äÈàÇçÂøÉðÄéí... îÀùÑÄéçÇ àÁìÉäÅé éÇòÂ÷Éá
<strong>åÌðÀòÄéí</strong> æÀîÄøåÉú éÄùÒÀøÈàÅì</q>"
</li><li>
<a class="psuq" href="/tnk1/prqim/t26e7.htm#1">úäìéí ÷îæ1</a>: "<q class="psuq">äÇìÀìåÌ éÈäÌ, ëÌÄé èåÉá æÇîÌÀøÈä àÁìÉäÅéðåÌ, ëÌÄé
<strong>ðÈòÄéí</strong> ðÈàåÈä úÀäÄìÌÈä</q>"</li></ul>
<p> àí ëê, àôùø ìøôà àãí çåìä áëê ùùøéí ìå ùéøéí éôéí.</p><p>3.
<strong>ðåòí</strong> ÷ùåø âí ìçëîä<small class="small"> (ëðâã òåìí äùëì)</small>:<br />
</p> <ul><li>
<a class="psuq" href="/tnk1/prqim/t2802.htm#10">îùìé á10</a>: "<q class="psuq">ëÌÄé úÈáåÉà çÈëÀîÈä áÀìÄáÌÆêÈ, åÀãÇòÇú ìÀðÇôÀùÑÀêÈ<strong> éÄðÀòÈí</strong></q>" (<a href="/tnk1/ktuv/mj/02-10.html">ôéøåè</a>).</li><li>
<a class="psuq" href="/tnk1/prqim/t2803.htm#17">îùìé â17</a>: "<q class="psuq">ãÌÀøÈëÆéäÈ ãÇøÀëÅé<strong> ðÉòÇí,</strong> åÀëÈì ðÀúÄéáåÉúÆéäÈ ùÑÈìåÉí</q>" (<a href="/tnk1/ktuv/mj/03-17.html">ôéøåè</a>).
</li></ul>
<p> àí ëê, àôùø ìøôà àãí çåìä áãéáåøéí ùì çëîä åìéîåã: "<q class="mfrj">éù
ëîä áðé àãí ùðôùí îøä ìäí îôðé ãåç÷í, åðôù îøä âåøîú çåìàéí øòéí øáéí
àì äâåó, åàí éúðå ìéáí ìù÷åã òì ãìúåú áéú äîãøù éåí éåí, äîø ðäôê ìäí
ìîúå÷, åîîéìà éîöàå øôåàä ìðôù åìâåó</q>"<small class="small"> (øî"ã ååàìé)</small>. </p>
<p>4.
<strong>ðåòí</strong> ÷ùåø âí ìðåëçåú ä'<small class="small"> (ëðâã òåìí äðùîä)</small>:<br />
</p> <ul><li>
<a class="psuq" href="/tnk1/prqim/t2627.htm#4">úäìéí ëæ4</a>: "<q class="psuq">àÇçÇú ùÑÈàÇìÀúÌÄé îÅàÅú ä' àåÉúÈäÌ àÂáÇ÷ÌÅùÑ, ùÑÄáÀúÌÄé áÌÀáÅéú ä' ëÌÈì éÀîÅé çÇéÌÇé ìÇçÂæåÉú
<strong>áÌÀðÉòÇí</strong> ä' åÌìÀáÇ÷ÌÅø áÌÀäÅéëÈìåÉ</q>"</li></ul>
<p> àí ëê, àôùø ìøôà àãí çåìä áãéáåøéí ùîøàéí ìå àú ðåëçåú ä' áëì î÷åí åáëì àéøåò ù÷åøä ìå.</p>
</div>
<div class='cell full longcell'>
<h2 class='subtitle'>ìòéåï ðåñó</h2>
<p><a href="/tnk1/ktuv/mjly/mj-16-24.html">äîàîø äî÷åøé</a></p><br />
</div>
</div><!--long-->
</div><!--page-->
<table class='inner_navigation'><tr>
<td class='previous'><a href='16-23.html'> →èæ 23— </a></td>
<td class='current'>îùìé èæ 24</td>
<td class='next'><a href='16-25.html'> — èæ 25← </a></td>
</tr></table><!-- inner_navigation -->
</div><!--tokn-->
<h2 id='tguvot'>úâåáåú</h2>
<ul id='ultguvot'>
<li></li>
</ul><!--end-->
<script type='text/javascript'>tguva();txtit()</script>
</div><!--pnim-->
</body>
</html>
| Java |
<import resource="classpath:alfresco/site-webscripts/org/alfresco/callutils.js">
if (!json.isNull("wikipage"))
{
var wikipage = String(json.get("wikipage"));
model.pagecontent = getPageText(wikipage);
model.title = wikipage.replace(/_/g, " ");
}
else
{
model.pagecontent = "<h3>" + msg.get("message.nopage") + "</h3>";
model.title = "";
}
function getPageText(wikipage)
{
var c = sitedata.getComponent(url.templateArgs.componentId);
c.properties["wikipage"] = wikipage;
c.save();
var siteId = String(json.get("siteId"));
var uri = "/slingshot/wiki/page/" + siteId + "/" + encodeURIComponent(wikipage) + "?format=mediawiki";
var connector = remote.connect("alfresco");
var result = connector.get(uri);
if (result.status == status.STATUS_OK)
{
/**
* Always strip unsafe tags here.
* The config to option this is currently webscript-local elsewhere, so this is the safest option
* until the config can be moved to share-config scope in a future version.
*/
return stringUtils.stripUnsafeHTML(result.response);
}
else
{
return "";
}
} | Java |
#!/bin/bash
# Usage: ./grab_core_on_segfault.sh <firmeare.elf> \
# <piksi_dev> <bmp_dev> \
# <seconds-to-sleep>
#
# Intended to be called from HITL log capture:
# if [ -e $MD_EXTERNAL_RESOURCES_LOCKED_BMP1 ]; then
# ./grab_core_on_segfault.sh ../../piksi_firmware_$GIT_DESCRIBE.elf \
# $MD_EXTERNAL_RESOURCES_LOCKED_PORT1 \
# $MD_EXTERNAL_RESOURCES_LOCKED_BMP1 \
# $SECONDS
# fi
set -e
[ -e $1 ]
[ -e $2 ]
[ -e $3 ]
# Find serial number from Piksi device name
export PIKSI=`echo $2 | egrep -o "PK[0-9]{4}"`
gdb-multiarch -batch -nx \
-ex "tar ext $3" \
-ex "source coredump3.py" \
-ex "set gcore-file-name core-$PIKSI" \
-ex "mon jtag 4 5 6" \
-ex "att 1" \
-ex "run" \
$1 \
&>gdblog.$PIKSI &
sleep 1
trap 'kill $(jobs -p)' SIGINT SIGTERM EXIT
tail -f gdblog.$PIKSI | grep "core dumped" &
sleep $4
| Java |
package org.eso.ias.plugin;
/**
* The exception returned by the Plugin
* @author acaproni
*
*/
public class PluginException extends Exception {
public PluginException() {
}
public PluginException(String message) {
super(message);
}
public PluginException(Throwable cause) {
super(cause);
}
public PluginException(String message, Throwable cause) {
super(message, cause);
}
public PluginException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) {
super(message, cause, enableSuppression, writableStackTrace);
}
}
| Java |
package clearvolume.renderer;
/**
* Overlays that implement this interface can declare a key binding that will be
* used to toggle it's display on/off
*
* @author Loic Royer (2015)
*
*/
public interface SingleKeyToggable
{
/**
* Returns key code of toggle key combination.
*
* @return toggle key as short code.
*/
public short toggleKeyCode();
/**
* Returns modifier of toggle key combination.
*
* @return toggle key as short code.
*/
public int toggleKeyModifierMask();
/**
* Toggle on/off
*
* @return new state
*/
public boolean toggle();
}
| Java |
// Copyright 2020 The go-ethereum Authors
// This file is part of the go-ethereum library.
//
// The go-ethereum library is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// The go-ethereum library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
// along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>.
package abi
import (
"math/big"
"github.com/matthieu/go-ethereum/common"
)
type packUnpackTest struct {
def string
unpacked interface{}
packed string
}
var packUnpackTests = []packUnpackTest{
// Booleans
{
def: `[{ "type": "bool" }]`,
packed: "0000000000000000000000000000000000000000000000000000000000000001",
unpacked: true,
},
{
def: `[{ "type": "bool" }]`,
packed: "0000000000000000000000000000000000000000000000000000000000000000",
unpacked: false,
},
// Integers
{
def: `[{ "type": "uint8" }]`,
unpacked: uint8(2),
packed: "0000000000000000000000000000000000000000000000000000000000000002",
},
{
def: `[{ "type": "uint8[]" }]`,
unpacked: []uint8{1, 2},
packed: "0000000000000000000000000000000000000000000000000000000000000020" +
"0000000000000000000000000000000000000000000000000000000000000002" +
"0000000000000000000000000000000000000000000000000000000000000001" +
"0000000000000000000000000000000000000000000000000000000000000002",
},
{
def: `[{ "type": "uint16" }]`,
unpacked: uint16(2),
packed: "0000000000000000000000000000000000000000000000000000000000000002",
},
{
def: `[{ "type": "uint16[]" }]`,
unpacked: []uint16{1, 2},
packed: "0000000000000000000000000000000000000000000000000000000000000020" +
"0000000000000000000000000000000000000000000000000000000000000002" +
"0000000000000000000000000000000000000000000000000000000000000001" +
"0000000000000000000000000000000000000000000000000000000000000002",
},
{
def: `[{"type": "uint17"}]`,
packed: "0000000000000000000000000000000000000000000000000000000000000001",
unpacked: big.NewInt(1),
},
{
def: `[{"type": "uint32"}]`,
packed: "0000000000000000000000000000000000000000000000000000000000000001",
unpacked: uint32(1),
},
{
def: `[{"type": "uint32[]"}]`,
unpacked: []uint32{1, 2},
packed: "0000000000000000000000000000000000000000000000000000000000000020" +
"0000000000000000000000000000000000000000000000000000000000000002" +
"0000000000000000000000000000000000000000000000000000000000000001" +
"0000000000000000000000000000000000000000000000000000000000000002",
},
{
def: `[{"type": "uint64"}]`,
unpacked: uint64(2),
packed: "0000000000000000000000000000000000000000000000000000000000000002",
},
{
def: `[{"type": "uint64[]"}]`,
unpacked: []uint64{1, 2},
packed: "0000000000000000000000000000000000000000000000000000000000000020" +
"0000000000000000000000000000000000000000000000000000000000000002" +
"0000000000000000000000000000000000000000000000000000000000000001" +
"0000000000000000000000000000000000000000000000000000000000000002",
},
{
def: `[{"type": "uint256"}]`,
unpacked: big.NewInt(2),
packed: "0000000000000000000000000000000000000000000000000000000000000002",
},
{
def: `[{"type": "uint256[]"}]`,
unpacked: []*big.Int{big.NewInt(1), big.NewInt(2)},
packed: "0000000000000000000000000000000000000000000000000000000000000020" +
"0000000000000000000000000000000000000000000000000000000000000002" +
"0000000000000000000000000000000000000000000000000000000000000001" +
"0000000000000000000000000000000000000000000000000000000000000002",
},
{
def: `[{"type": "int8"}]`,
unpacked: int8(2),
packed: "0000000000000000000000000000000000000000000000000000000000000002",
},
{
def: `[{"type": "int8[]"}]`,
unpacked: []int8{1, 2},
packed: "0000000000000000000000000000000000000000000000000000000000000020" +
"0000000000000000000000000000000000000000000000000000000000000002" +
"0000000000000000000000000000000000000000000000000000000000000001" +
"0000000000000000000000000000000000000000000000000000000000000002",
},
{
def: `[{"type": "int16"}]`,
unpacked: int16(2),
packed: "0000000000000000000000000000000000000000000000000000000000000002",
},
{
def: `[{"type": "int16[]"}]`,
unpacked: []int16{1, 2},
packed: "0000000000000000000000000000000000000000000000000000000000000020" +
"0000000000000000000000000000000000000000000000000000000000000002" +
"0000000000000000000000000000000000000000000000000000000000000001" +
"0000000000000000000000000000000000000000000000000000000000000002",
},
{
def: `[{"type": "int17"}]`,
packed: "0000000000000000000000000000000000000000000000000000000000000001",
unpacked: big.NewInt(1),
},
{
def: `[{"type": "int32"}]`,
unpacked: int32(2),
packed: "0000000000000000000000000000000000000000000000000000000000000002",
},
{
def: `[{"type": "int32"}]`,
packed: "0000000000000000000000000000000000000000000000000000000000000001",
unpacked: int32(1),
},
{
def: `[{"type": "int32[]"}]`,
unpacked: []int32{1, 2},
packed: "0000000000000000000000000000000000000000000000000000000000000020" +
"0000000000000000000000000000000000000000000000000000000000000002" +
"0000000000000000000000000000000000000000000000000000000000000001" +
"0000000000000000000000000000000000000000000000000000000000000002",
},
{
def: `[{"type": "int64"}]`,
unpacked: int64(2),
packed: "0000000000000000000000000000000000000000000000000000000000000002",
},
{
def: `[{"type": "int64[]"}]`,
unpacked: []int64{1, 2},
packed: "0000000000000000000000000000000000000000000000000000000000000020" +
"0000000000000000000000000000000000000000000000000000000000000002" +
"0000000000000000000000000000000000000000000000000000000000000001" +
"0000000000000000000000000000000000000000000000000000000000000002",
},
{
def: `[{"type": "int256"}]`,
unpacked: big.NewInt(2),
packed: "0000000000000000000000000000000000000000000000000000000000000002",
},
{
def: `[{"type": "int256"}]`,
packed: "ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff",
unpacked: big.NewInt(-1),
},
{
def: `[{"type": "int256[]"}]`,
unpacked: []*big.Int{big.NewInt(1), big.NewInt(2)},
packed: "0000000000000000000000000000000000000000000000000000000000000020" +
"0000000000000000000000000000000000000000000000000000000000000002" +
"0000000000000000000000000000000000000000000000000000000000000001" +
"0000000000000000000000000000000000000000000000000000000000000002",
},
// Address
{
def: `[{"type": "address"}]`,
packed: "0000000000000000000000000100000000000000000000000000000000000000",
unpacked: common.Address{1},
},
{
def: `[{"type": "address[]"}]`,
unpacked: []common.Address{{1}, {2}},
packed: "0000000000000000000000000000000000000000000000000000000000000020" +
"0000000000000000000000000000000000000000000000000000000000000002" +
"0000000000000000000000000100000000000000000000000000000000000000" +
"0000000000000000000000000200000000000000000000000000000000000000",
},
// Bytes
{
def: `[{"type": "bytes1"}]`,
unpacked: [1]byte{1},
packed: "0100000000000000000000000000000000000000000000000000000000000000",
},
{
def: `[{"type": "bytes2"}]`,
unpacked: [2]byte{1},
packed: "0100000000000000000000000000000000000000000000000000000000000000",
},
{
def: `[{"type": "bytes3"}]`,
unpacked: [3]byte{1},
packed: "0100000000000000000000000000000000000000000000000000000000000000",
},
{
def: `[{"type": "bytes4"}]`,
unpacked: [4]byte{1},
packed: "0100000000000000000000000000000000000000000000000000000000000000",
},
{
def: `[{"type": "bytes5"}]`,
unpacked: [5]byte{1},
packed: "0100000000000000000000000000000000000000000000000000000000000000",
},
{
def: `[{"type": "bytes6"}]`,
unpacked: [6]byte{1},
packed: "0100000000000000000000000000000000000000000000000000000000000000",
},
{
def: `[{"type": "bytes7"}]`,
unpacked: [7]byte{1},
packed: "0100000000000000000000000000000000000000000000000000000000000000",
},
{
def: `[{"type": "bytes8"}]`,
unpacked: [8]byte{1},
packed: "0100000000000000000000000000000000000000000000000000000000000000",
},
{
def: `[{"type": "bytes9"}]`,
unpacked: [9]byte{1},
packed: "0100000000000000000000000000000000000000000000000000000000000000",
},
{
def: `[{"type": "bytes10"}]`,
unpacked: [10]byte{1},
packed: "0100000000000000000000000000000000000000000000000000000000000000",
},
{
def: `[{"type": "bytes11"}]`,
unpacked: [11]byte{1},
packed: "0100000000000000000000000000000000000000000000000000000000000000",
},
{
def: `[{"type": "bytes12"}]`,
unpacked: [12]byte{1},
packed: "0100000000000000000000000000000000000000000000000000000000000000",
},
{
def: `[{"type": "bytes13"}]`,
unpacked: [13]byte{1},
packed: "0100000000000000000000000000000000000000000000000000000000000000",
},
{
def: `[{"type": "bytes14"}]`,
unpacked: [14]byte{1},
packed: "0100000000000000000000000000000000000000000000000000000000000000",
},
{
def: `[{"type": "bytes15"}]`,
unpacked: [15]byte{1},
packed: "0100000000000000000000000000000000000000000000000000000000000000",
},
{
def: `[{"type": "bytes16"}]`,
unpacked: [16]byte{1},
packed: "0100000000000000000000000000000000000000000000000000000000000000",
},
{
def: `[{"type": "bytes17"}]`,
unpacked: [17]byte{1},
packed: "0100000000000000000000000000000000000000000000000000000000000000",
},
{
def: `[{"type": "bytes18"}]`,
unpacked: [18]byte{1},
packed: "0100000000000000000000000000000000000000000000000000000000000000",
},
{
def: `[{"type": "bytes19"}]`,
unpacked: [19]byte{1},
packed: "0100000000000000000000000000000000000000000000000000000000000000",
},
{
def: `[{"type": "bytes20"}]`,
unpacked: [20]byte{1},
packed: "0100000000000000000000000000000000000000000000000000000000000000",
},
{
def: `[{"type": "bytes21"}]`,
unpacked: [21]byte{1},
packed: "0100000000000000000000000000000000000000000000000000000000000000",
},
{
def: `[{"type": "bytes22"}]`,
unpacked: [22]byte{1},
packed: "0100000000000000000000000000000000000000000000000000000000000000",
},
{
def: `[{"type": "bytes23"}]`,
unpacked: [23]byte{1},
packed: "0100000000000000000000000000000000000000000000000000000000000000",
},
{
def: `[{"type": "bytes24"}]`,
unpacked: [24]byte{1},
packed: "0100000000000000000000000000000000000000000000000000000000000000",
},
{
def: `[{"type": "bytes25"}]`,
unpacked: [25]byte{1},
packed: "0100000000000000000000000000000000000000000000000000000000000000",
},
{
def: `[{"type": "bytes26"}]`,
unpacked: [26]byte{1},
packed: "0100000000000000000000000000000000000000000000000000000000000000",
},
{
def: `[{"type": "bytes27"}]`,
unpacked: [27]byte{1},
packed: "0100000000000000000000000000000000000000000000000000000000000000",
},
{
def: `[{"type": "bytes28"}]`,
unpacked: [28]byte{1},
packed: "0100000000000000000000000000000000000000000000000000000000000000",
},
{
def: `[{"type": "bytes29"}]`,
unpacked: [29]byte{1},
packed: "0100000000000000000000000000000000000000000000000000000000000000",
},
{
def: `[{"type": "bytes30"}]`,
unpacked: [30]byte{1},
packed: "0100000000000000000000000000000000000000000000000000000000000000",
},
{
def: `[{"type": "bytes31"}]`,
unpacked: [31]byte{1},
packed: "0100000000000000000000000000000000000000000000000000000000000000",
},
{
def: `[{"type": "bytes32"}]`,
unpacked: [32]byte{1},
packed: "0100000000000000000000000000000000000000000000000000000000000000",
},
{
def: `[{"type": "bytes32"}]`,
packed: "0100000000000000000000000000000000000000000000000000000000000000",
unpacked: [32]byte{1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
},
{
def: `[{"type": "bytes"}]`,
packed: "0000000000000000000000000000000000000000000000000000000000000020" +
"0000000000000000000000000000000000000000000000000000000000000020" +
"0100000000000000000000000000000000000000000000000000000000000000",
unpacked: common.Hex2Bytes("0100000000000000000000000000000000000000000000000000000000000000"),
},
{
def: `[{"type": "bytes32"}]`,
packed: "0100000000000000000000000000000000000000000000000000000000000000",
unpacked: [32]byte{1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
},
// Functions
{
def: `[{"type": "function"}]`,
packed: "0100000000000000000000000000000000000000000000000000000000000000",
unpacked: [24]byte{1},
},
// Slice and Array
{
def: `[{"type": "uint8[]"}]`,
packed: "0000000000000000000000000000000000000000000000000000000000000020" +
"0000000000000000000000000000000000000000000000000000000000000002" +
"0000000000000000000000000000000000000000000000000000000000000001" +
"0000000000000000000000000000000000000000000000000000000000000002",
unpacked: []uint8{1, 2},
},
{
def: `[{"type": "uint8[]"}]`,
packed: "0000000000000000000000000000000000000000000000000000000000000020" +
"0000000000000000000000000000000000000000000000000000000000000000",
unpacked: []uint8{},
},
{
def: `[{"type": "uint256[]"}]`,
packed: "0000000000000000000000000000000000000000000000000000000000000020" +
"0000000000000000000000000000000000000000000000000000000000000000",
unpacked: []*big.Int{},
},
{
def: `[{"type": "uint8[2]"}]`,
packed: "0000000000000000000000000000000000000000000000000000000000000001" +
"0000000000000000000000000000000000000000000000000000000000000002",
unpacked: [2]uint8{1, 2},
},
{
def: `[{"type": "int8[2]"}]`,
packed: "0000000000000000000000000000000000000000000000000000000000000001" +
"0000000000000000000000000000000000000000000000000000000000000002",
unpacked: [2]int8{1, 2},
},
{
def: `[{"type": "int16[]"}]`,
packed: "0000000000000000000000000000000000000000000000000000000000000020" +
"0000000000000000000000000000000000000000000000000000000000000002" +
"0000000000000000000000000000000000000000000000000000000000000001" +
"0000000000000000000000000000000000000000000000000000000000000002",
unpacked: []int16{1, 2},
},
{
def: `[{"type": "int16[2]"}]`,
packed: "0000000000000000000000000000000000000000000000000000000000000001" +
"0000000000000000000000000000000000000000000000000000000000000002",
unpacked: [2]int16{1, 2},
},
{
def: `[{"type": "int32[]"}]`,
packed: "0000000000000000000000000000000000000000000000000000000000000020" +
"0000000000000000000000000000000000000000000000000000000000000002" +
"0000000000000000000000000000000000000000000000000000000000000001" +
"0000000000000000000000000000000000000000000000000000000000000002",
unpacked: []int32{1, 2},
},
{
def: `[{"type": "int32[2]"}]`,
packed: "0000000000000000000000000000000000000000000000000000000000000001" +
"0000000000000000000000000000000000000000000000000000000000000002",
unpacked: [2]int32{1, 2},
},
{
def: `[{"type": "int64[]"}]`,
packed: "0000000000000000000000000000000000000000000000000000000000000020" +
"0000000000000000000000000000000000000000000000000000000000000002" +
"0000000000000000000000000000000000000000000000000000000000000001" +
"0000000000000000000000000000000000000000000000000000000000000002",
unpacked: []int64{1, 2},
},
{
def: `[{"type": "int64[2]"}]`,
packed: "0000000000000000000000000000000000000000000000000000000000000001" +
"0000000000000000000000000000000000000000000000000000000000000002",
unpacked: [2]int64{1, 2},
},
{
def: `[{"type": "int256[]"}]`,
packed: "0000000000000000000000000000000000000000000000000000000000000020" +
"0000000000000000000000000000000000000000000000000000000000000002" +
"0000000000000000000000000000000000000000000000000000000000000001" +
"0000000000000000000000000000000000000000000000000000000000000002",
unpacked: []*big.Int{big.NewInt(1), big.NewInt(2)},
},
{
def: `[{"type": "int256[3]"}]`,
packed: "0000000000000000000000000000000000000000000000000000000000000001" +
"0000000000000000000000000000000000000000000000000000000000000002" +
"0000000000000000000000000000000000000000000000000000000000000003",
unpacked: [3]*big.Int{big.NewInt(1), big.NewInt(2), big.NewInt(3)},
},
// multi dimensional, if these pass, all types that don't require length prefix should pass
{
def: `[{"type": "uint8[][]"}]`,
packed: "0000000000000000000000000000000000000000000000000000000000000020" +
"0000000000000000000000000000000000000000000000000000000000000000",
unpacked: [][]uint8{},
},
{
def: `[{"type": "uint8[][]"}]`,
packed: "0000000000000000000000000000000000000000000000000000000000000020" +
"0000000000000000000000000000000000000000000000000000000000000002" +
"0000000000000000000000000000000000000000000000000000000000000040" +
"00000000000000000000000000000000000000000000000000000000000000a0" +
"0000000000000000000000000000000000000000000000000000000000000002" +
"0000000000000000000000000000000000000000000000000000000000000001" +
"0000000000000000000000000000000000000000000000000000000000000002" +
"0000000000000000000000000000000000000000000000000000000000000002" +
"0000000000000000000000000000000000000000000000000000000000000001" +
"0000000000000000000000000000000000000000000000000000000000000002",
unpacked: [][]uint8{{1, 2}, {1, 2}},
},
{
def: `[{"type": "uint8[][]"}]`,
packed: "0000000000000000000000000000000000000000000000000000000000000020" +
"0000000000000000000000000000000000000000000000000000000000000002" +
"0000000000000000000000000000000000000000000000000000000000000040" +
"00000000000000000000000000000000000000000000000000000000000000a0" +
"0000000000000000000000000000000000000000000000000000000000000002" +
"0000000000000000000000000000000000000000000000000000000000000001" +
"0000000000000000000000000000000000000000000000000000000000000002" +
"0000000000000000000000000000000000000000000000000000000000000003" +
"0000000000000000000000000000000000000000000000000000000000000001" +
"0000000000000000000000000000000000000000000000000000000000000002" +
"0000000000000000000000000000000000000000000000000000000000000003",
unpacked: [][]uint8{{1, 2}, {1, 2, 3}},
},
{
def: `[{"type": "uint8[2][2]"}]`,
packed: "0000000000000000000000000000000000000000000000000000000000000001" +
"0000000000000000000000000000000000000000000000000000000000000002" +
"0000000000000000000000000000000000000000000000000000000000000001" +
"0000000000000000000000000000000000000000000000000000000000000002",
unpacked: [2][2]uint8{{1, 2}, {1, 2}},
},
{
def: `[{"type": "uint8[][2]"}]`,
packed: "0000000000000000000000000000000000000000000000000000000000000020" +
"0000000000000000000000000000000000000000000000000000000000000040" +
"0000000000000000000000000000000000000000000000000000000000000060" +
"0000000000000000000000000000000000000000000000000000000000000000" +
"0000000000000000000000000000000000000000000000000000000000000000",
unpacked: [2][]uint8{{}, {}},
},
{
def: `[{"type": "uint8[][2]"}]`,
packed: "0000000000000000000000000000000000000000000000000000000000000020" +
"0000000000000000000000000000000000000000000000000000000000000040" +
"0000000000000000000000000000000000000000000000000000000000000080" +
"0000000000000000000000000000000000000000000000000000000000000001" +
"0000000000000000000000000000000000000000000000000000000000000001" +
"0000000000000000000000000000000000000000000000000000000000000001" +
"0000000000000000000000000000000000000000000000000000000000000001",
unpacked: [2][]uint8{{1}, {1}},
},
{
def: `[{"type": "uint8[2][]"}]`,
packed: "0000000000000000000000000000000000000000000000000000000000000020" +
"0000000000000000000000000000000000000000000000000000000000000000",
unpacked: [][2]uint8{},
},
{
def: `[{"type": "uint8[2][]"}]`,
packed: "0000000000000000000000000000000000000000000000000000000000000020" +
"0000000000000000000000000000000000000000000000000000000000000001" +
"0000000000000000000000000000000000000000000000000000000000000001" +
"0000000000000000000000000000000000000000000000000000000000000002",
unpacked: [][2]uint8{{1, 2}},
},
{
def: `[{"type": "uint8[2][]"}]`,
packed: "0000000000000000000000000000000000000000000000000000000000000020" +
"0000000000000000000000000000000000000000000000000000000000000002" +
"0000000000000000000000000000000000000000000000000000000000000001" +
"0000000000000000000000000000000000000000000000000000000000000002" +
"0000000000000000000000000000000000000000000000000000000000000001" +
"0000000000000000000000000000000000000000000000000000000000000002",
unpacked: [][2]uint8{{1, 2}, {1, 2}},
},
{
def: `[{"type": "uint16[]"}]`,
packed: "0000000000000000000000000000000000000000000000000000000000000020" +
"0000000000000000000000000000000000000000000000000000000000000002" +
"0000000000000000000000000000000000000000000000000000000000000001" +
"0000000000000000000000000000000000000000000000000000000000000002",
unpacked: []uint16{1, 2},
},
{
def: `[{"type": "uint16[2]"}]`,
packed: "0000000000000000000000000000000000000000000000000000000000000001" +
"0000000000000000000000000000000000000000000000000000000000000002",
unpacked: [2]uint16{1, 2},
},
{
def: `[{"type": "uint32[]"}]`,
packed: "0000000000000000000000000000000000000000000000000000000000000020" +
"0000000000000000000000000000000000000000000000000000000000000002" +
"0000000000000000000000000000000000000000000000000000000000000001" +
"0000000000000000000000000000000000000000000000000000000000000002",
unpacked: []uint32{1, 2},
},
{
def: `[{"type": "uint32[2][3][4]"}]`,
unpacked: [4][3][2]uint32{{{1, 2}, {3, 4}, {5, 6}}, {{7, 8}, {9, 10}, {11, 12}}, {{13, 14}, {15, 16}, {17, 18}}, {{19, 20}, {21, 22}, {23, 24}}},
packed: "0000000000000000000000000000000000000000000000000000000000000001" +
"0000000000000000000000000000000000000000000000000000000000000002" +
"0000000000000000000000000000000000000000000000000000000000000003" +
"0000000000000000000000000000000000000000000000000000000000000004" +
"0000000000000000000000000000000000000000000000000000000000000005" +
"0000000000000000000000000000000000000000000000000000000000000006" +
"0000000000000000000000000000000000000000000000000000000000000007" +
"0000000000000000000000000000000000000000000000000000000000000008" +
"0000000000000000000000000000000000000000000000000000000000000009" +
"000000000000000000000000000000000000000000000000000000000000000a" +
"000000000000000000000000000000000000000000000000000000000000000b" +
"000000000000000000000000000000000000000000000000000000000000000c" +
"000000000000000000000000000000000000000000000000000000000000000d" +
"000000000000000000000000000000000000000000000000000000000000000e" +
"000000000000000000000000000000000000000000000000000000000000000f" +
"0000000000000000000000000000000000000000000000000000000000000010" +
"0000000000000000000000000000000000000000000000000000000000000011" +
"0000000000000000000000000000000000000000000000000000000000000012" +
"0000000000000000000000000000000000000000000000000000000000000013" +
"0000000000000000000000000000000000000000000000000000000000000014" +
"0000000000000000000000000000000000000000000000000000000000000015" +
"0000000000000000000000000000000000000000000000000000000000000016" +
"0000000000000000000000000000000000000000000000000000000000000017" +
"0000000000000000000000000000000000000000000000000000000000000018",
},
{
def: `[{"type": "bytes32[]"}]`,
unpacked: []common.Hash{{1}, {2}},
packed: "0000000000000000000000000000000000000000000000000000000000000020" +
"0000000000000000000000000000000000000000000000000000000000000002" +
"0100000000000000000000000000000000000000000000000000000000000000" +
"0200000000000000000000000000000000000000000000000000000000000000",
},
{
def: `[{"type": "uint32[2]"}]`,
packed: "0000000000000000000000000000000000000000000000000000000000000001" +
"0000000000000000000000000000000000000000000000000000000000000002",
unpacked: [2]uint32{1, 2},
},
{
def: `[{"type": "uint64[]"}]`,
packed: "0000000000000000000000000000000000000000000000000000000000000020" +
"0000000000000000000000000000000000000000000000000000000000000002" +
"0000000000000000000000000000000000000000000000000000000000000001" +
"0000000000000000000000000000000000000000000000000000000000000002",
unpacked: []uint64{1, 2},
},
{
def: `[{"type": "uint64[2]"}]`,
packed: "0000000000000000000000000000000000000000000000000000000000000001" +
"0000000000000000000000000000000000000000000000000000000000000002",
unpacked: [2]uint64{1, 2},
},
{
def: `[{"type": "uint256[]"}]`,
packed: "0000000000000000000000000000000000000000000000000000000000000020" +
"0000000000000000000000000000000000000000000000000000000000000002" +
"0000000000000000000000000000000000000000000000000000000000000001" +
"0000000000000000000000000000000000000000000000000000000000000002",
unpacked: []*big.Int{big.NewInt(1), big.NewInt(2)},
},
{
def: `[{"type": "uint256[3]"}]`,
packed: "0000000000000000000000000000000000000000000000000000000000000001" +
"0000000000000000000000000000000000000000000000000000000000000002" +
"0000000000000000000000000000000000000000000000000000000000000003",
unpacked: [3]*big.Int{big.NewInt(1), big.NewInt(2), big.NewInt(3)},
},
{
def: `[{"type": "string[4]"}]`,
packed: "0000000000000000000000000000000000000000000000000000000000000020" +
"0000000000000000000000000000000000000000000000000000000000000080" +
"00000000000000000000000000000000000000000000000000000000000000c0" +
"0000000000000000000000000000000000000000000000000000000000000100" +
"0000000000000000000000000000000000000000000000000000000000000140" +
"0000000000000000000000000000000000000000000000000000000000000005" +
"48656c6c6f000000000000000000000000000000000000000000000000000000" +
"0000000000000000000000000000000000000000000000000000000000000005" +
"576f726c64000000000000000000000000000000000000000000000000000000" +
"000000000000000000000000000000000000000000000000000000000000000b" +
"476f2d657468657265756d000000000000000000000000000000000000000000" +
"0000000000000000000000000000000000000000000000000000000000000008" +
"457468657265756d000000000000000000000000000000000000000000000000",
unpacked: [4]string{"Hello", "World", "Go-ethereum", "Ethereum"},
},
{
def: `[{"type": "string[]"}]`,
packed: "0000000000000000000000000000000000000000000000000000000000000020" +
"0000000000000000000000000000000000000000000000000000000000000002" +
"0000000000000000000000000000000000000000000000000000000000000040" +
"0000000000000000000000000000000000000000000000000000000000000080" +
"0000000000000000000000000000000000000000000000000000000000000008" +
"457468657265756d000000000000000000000000000000000000000000000000" +
"000000000000000000000000000000000000000000000000000000000000000b" +
"676f2d657468657265756d000000000000000000000000000000000000000000",
unpacked: []string{"Ethereum", "go-ethereum"},
},
{
def: `[{"type": "bytes[]"}]`,
packed: "0000000000000000000000000000000000000000000000000000000000000020" +
"0000000000000000000000000000000000000000000000000000000000000002" +
"0000000000000000000000000000000000000000000000000000000000000040" +
"0000000000000000000000000000000000000000000000000000000000000080" +
"0000000000000000000000000000000000000000000000000000000000000003" +
"f0f0f00000000000000000000000000000000000000000000000000000000000" +
"0000000000000000000000000000000000000000000000000000000000000003" +
"f0f0f00000000000000000000000000000000000000000000000000000000000",
unpacked: [][]byte{{0xf0, 0xf0, 0xf0}, {0xf0, 0xf0, 0xf0}},
},
{
def: `[{"type": "uint256[2][][]"}]`,
packed: "0000000000000000000000000000000000000000000000000000000000000020" +
"0000000000000000000000000000000000000000000000000000000000000002" +
"0000000000000000000000000000000000000000000000000000000000000040" +
"00000000000000000000000000000000000000000000000000000000000000e0" +
"0000000000000000000000000000000000000000000000000000000000000002" +
"0000000000000000000000000000000000000000000000000000000000000001" +
"00000000000000000000000000000000000000000000000000000000000000c8" +
"0000000000000000000000000000000000000000000000000000000000000001" +
"00000000000000000000000000000000000000000000000000000000000003e8" +
"0000000000000000000000000000000000000000000000000000000000000002" +
"0000000000000000000000000000000000000000000000000000000000000001" +
"00000000000000000000000000000000000000000000000000000000000000c8" +
"0000000000000000000000000000000000000000000000000000000000000001" +
"00000000000000000000000000000000000000000000000000000000000003e8",
unpacked: [][][2]*big.Int{{{big.NewInt(1), big.NewInt(200)}, {big.NewInt(1), big.NewInt(1000)}}, {{big.NewInt(1), big.NewInt(200)}, {big.NewInt(1), big.NewInt(1000)}}},
},
// struct outputs
{
def: `[{"name":"int1","type":"int256"},{"name":"int2","type":"int256"}]`,
packed: "0000000000000000000000000000000000000000000000000000000000000001" +
"0000000000000000000000000000000000000000000000000000000000000002",
unpacked: struct {
Int1 *big.Int
Int2 *big.Int
}{big.NewInt(1), big.NewInt(2)},
},
{
def: `[{"name":"int_one","type":"int256"}]`,
packed: "0000000000000000000000000000000000000000000000000000000000000001",
unpacked: struct {
IntOne *big.Int
}{big.NewInt(1)},
},
{
def: `[{"name":"int__one","type":"int256"}]`,
packed: "0000000000000000000000000000000000000000000000000000000000000001",
unpacked: struct {
IntOne *big.Int
}{big.NewInt(1)},
},
{
def: `[{"name":"int_one_","type":"int256"}]`,
packed: "0000000000000000000000000000000000000000000000000000000000000001",
unpacked: struct {
IntOne *big.Int
}{big.NewInt(1)},
},
{
def: `[{"name":"int_one","type":"int256"}, {"name":"intone","type":"int256"}]`,
packed: "0000000000000000000000000000000000000000000000000000000000000001" +
"0000000000000000000000000000000000000000000000000000000000000002",
unpacked: struct {
IntOne *big.Int
Intone *big.Int
}{big.NewInt(1), big.NewInt(2)},
},
{
def: `[{"type": "string"}]`,
unpacked: "foobar",
packed: "0000000000000000000000000000000000000000000000000000000000000020" +
"0000000000000000000000000000000000000000000000000000000000000006" +
"666f6f6261720000000000000000000000000000000000000000000000000000",
},
{
def: `[{"type": "string[]"}]`,
unpacked: []string{"hello", "foobar"},
packed: "0000000000000000000000000000000000000000000000000000000000000020" +
"0000000000000000000000000000000000000000000000000000000000000002" + // len(array) = 2
"0000000000000000000000000000000000000000000000000000000000000040" + // offset 64 to i = 0
"0000000000000000000000000000000000000000000000000000000000000080" + // offset 128 to i = 1
"0000000000000000000000000000000000000000000000000000000000000005" + // len(str[0]) = 5
"68656c6c6f000000000000000000000000000000000000000000000000000000" + // str[0]
"0000000000000000000000000000000000000000000000000000000000000006" + // len(str[1]) = 6
"666f6f6261720000000000000000000000000000000000000000000000000000", // str[1]
},
{
def: `[{"type": "string[2]"}]`,
unpacked: [2]string{"hello", "foobar"},
packed: "0000000000000000000000000000000000000000000000000000000000000020" +
"0000000000000000000000000000000000000000000000000000000000000040" + // offset to i = 0
"0000000000000000000000000000000000000000000000000000000000000080" + // offset to i = 1
"0000000000000000000000000000000000000000000000000000000000000005" + // len(str[0]) = 5
"68656c6c6f000000000000000000000000000000000000000000000000000000" + // str[0]
"0000000000000000000000000000000000000000000000000000000000000006" + // len(str[1]) = 6
"666f6f6261720000000000000000000000000000000000000000000000000000", // str[1]
},
{
def: `[{"type": "bytes32[][]"}]`,
unpacked: [][][32]byte{{{1}, {2}}, {{3}, {4}, {5}}},
packed: "0000000000000000000000000000000000000000000000000000000000000020" +
"0000000000000000000000000000000000000000000000000000000000000002" + // len(array) = 2
"0000000000000000000000000000000000000000000000000000000000000040" + // offset 64 to i = 0
"00000000000000000000000000000000000000000000000000000000000000a0" + // offset 160 to i = 1
"0000000000000000000000000000000000000000000000000000000000000002" + // len(array[0]) = 2
"0100000000000000000000000000000000000000000000000000000000000000" + // array[0][0]
"0200000000000000000000000000000000000000000000000000000000000000" + // array[0][1]
"0000000000000000000000000000000000000000000000000000000000000003" + // len(array[1]) = 3
"0300000000000000000000000000000000000000000000000000000000000000" + // array[1][0]
"0400000000000000000000000000000000000000000000000000000000000000" + // array[1][1]
"0500000000000000000000000000000000000000000000000000000000000000", // array[1][2]
},
{
def: `[{"type": "bytes32[][2]"}]`,
unpacked: [2][][32]byte{{{1}, {2}}, {{3}, {4}, {5}}},
packed: "0000000000000000000000000000000000000000000000000000000000000020" +
"0000000000000000000000000000000000000000000000000000000000000040" + // offset 64 to i = 0
"00000000000000000000000000000000000000000000000000000000000000a0" + // offset 160 to i = 1
"0000000000000000000000000000000000000000000000000000000000000002" + // len(array[0]) = 2
"0100000000000000000000000000000000000000000000000000000000000000" + // array[0][0]
"0200000000000000000000000000000000000000000000000000000000000000" + // array[0][1]
"0000000000000000000000000000000000000000000000000000000000000003" + // len(array[1]) = 3
"0300000000000000000000000000000000000000000000000000000000000000" + // array[1][0]
"0400000000000000000000000000000000000000000000000000000000000000" + // array[1][1]
"0500000000000000000000000000000000000000000000000000000000000000", // array[1][2]
},
{
def: `[{"type": "bytes32[3][2]"}]`,
unpacked: [2][3][32]byte{{{1}, {2}, {3}}, {{3}, {4}, {5}}},
packed: "0100000000000000000000000000000000000000000000000000000000000000" + // array[0][0]
"0200000000000000000000000000000000000000000000000000000000000000" + // array[0][1]
"0300000000000000000000000000000000000000000000000000000000000000" + // array[0][2]
"0300000000000000000000000000000000000000000000000000000000000000" + // array[1][0]
"0400000000000000000000000000000000000000000000000000000000000000" + // array[1][1]
"0500000000000000000000000000000000000000000000000000000000000000", // array[1][2]
},
{
// static tuple
def: `[{"name":"a","type":"int64"},
{"name":"b","type":"int256"},
{"name":"c","type":"int256"},
{"name":"d","type":"bool"},
{"name":"e","type":"bytes32[3][2]"}]`,
unpacked: struct {
A int64
B *big.Int
C *big.Int
D bool
E [2][3][32]byte
}{1, big.NewInt(1), big.NewInt(-1), true, [2][3][32]byte{{{1}, {2}, {3}}, {{3}, {4}, {5}}}},
packed: "0000000000000000000000000000000000000000000000000000000000000001" + // struct[a]
"0000000000000000000000000000000000000000000000000000000000000001" + // struct[b]
"ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff" + // struct[c]
"0000000000000000000000000000000000000000000000000000000000000001" + // struct[d]
"0100000000000000000000000000000000000000000000000000000000000000" + // struct[e] array[0][0]
"0200000000000000000000000000000000000000000000000000000000000000" + // struct[e] array[0][1]
"0300000000000000000000000000000000000000000000000000000000000000" + // struct[e] array[0][2]
"0300000000000000000000000000000000000000000000000000000000000000" + // struct[e] array[1][0]
"0400000000000000000000000000000000000000000000000000000000000000" + // struct[e] array[1][1]
"0500000000000000000000000000000000000000000000000000000000000000", // struct[e] array[1][2]
},
{
def: `[{"name":"a","type":"string"},
{"name":"b","type":"int64"},
{"name":"c","type":"bytes"},
{"name":"d","type":"string[]"},
{"name":"e","type":"int256[]"},
{"name":"f","type":"address[]"}]`,
unpacked: struct {
FieldA string `abi:"a"` // Test whether abi tag works
FieldB int64 `abi:"b"`
C []byte
D []string
E []*big.Int
F []common.Address
}{"foobar", 1, []byte{1}, []string{"foo", "bar"}, []*big.Int{big.NewInt(1), big.NewInt(-1)}, []common.Address{{1}, {2}}},
packed: "00000000000000000000000000000000000000000000000000000000000000c0" + // struct[a] offset
"0000000000000000000000000000000000000000000000000000000000000001" + // struct[b]
"0000000000000000000000000000000000000000000000000000000000000100" + // struct[c] offset
"0000000000000000000000000000000000000000000000000000000000000140" + // struct[d] offset
"0000000000000000000000000000000000000000000000000000000000000220" + // struct[e] offset
"0000000000000000000000000000000000000000000000000000000000000280" + // struct[f] offset
"0000000000000000000000000000000000000000000000000000000000000006" + // struct[a] length
"666f6f6261720000000000000000000000000000000000000000000000000000" + // struct[a] "foobar"
"0000000000000000000000000000000000000000000000000000000000000001" + // struct[c] length
"0100000000000000000000000000000000000000000000000000000000000000" + // []byte{1}
"0000000000000000000000000000000000000000000000000000000000000002" + // struct[d] length
"0000000000000000000000000000000000000000000000000000000000000040" + // foo offset
"0000000000000000000000000000000000000000000000000000000000000080" + // bar offset
"0000000000000000000000000000000000000000000000000000000000000003" + // foo length
"666f6f0000000000000000000000000000000000000000000000000000000000" + // foo
"0000000000000000000000000000000000000000000000000000000000000003" + // bar offset
"6261720000000000000000000000000000000000000000000000000000000000" + // bar
"0000000000000000000000000000000000000000000000000000000000000002" + // struct[e] length
"0000000000000000000000000000000000000000000000000000000000000001" + // 1
"ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff" + // -1
"0000000000000000000000000000000000000000000000000000000000000002" + // struct[f] length
"0000000000000000000000000100000000000000000000000000000000000000" + // common.Address{1}
"0000000000000000000000000200000000000000000000000000000000000000", // common.Address{2}
},
{
def: `[{"components": [{"name": "a","type": "uint256"},
{"name": "b","type": "uint256[]"}],
"name": "a","type": "tuple"},
{"name": "b","type": "uint256[]"}]`,
unpacked: struct {
A struct {
FieldA *big.Int `abi:"a"`
B []*big.Int
}
B []*big.Int
}{
A: struct {
FieldA *big.Int `abi:"a"` // Test whether abi tag works for nested tuple
B []*big.Int
}{big.NewInt(1), []*big.Int{big.NewInt(1), big.NewInt(2)}},
B: []*big.Int{big.NewInt(1), big.NewInt(2)}},
packed: "0000000000000000000000000000000000000000000000000000000000000040" + // a offset
"00000000000000000000000000000000000000000000000000000000000000e0" + // b offset
"0000000000000000000000000000000000000000000000000000000000000001" + // a.a value
"0000000000000000000000000000000000000000000000000000000000000040" + // a.b offset
"0000000000000000000000000000000000000000000000000000000000000002" + // a.b length
"0000000000000000000000000000000000000000000000000000000000000001" + // a.b[0] value
"0000000000000000000000000000000000000000000000000000000000000002" + // a.b[1] value
"0000000000000000000000000000000000000000000000000000000000000002" + // b length
"0000000000000000000000000000000000000000000000000000000000000001" + // b[0] value
"0000000000000000000000000000000000000000000000000000000000000002", // b[1] value
},
{
def: `[{"components": [{"name": "a","type": "int256"},
{"name": "b","type": "int256[]"}],
"name": "a","type": "tuple[]"}]`,
unpacked: []struct {
A *big.Int
B []*big.Int
}{
{big.NewInt(-1), []*big.Int{big.NewInt(1), big.NewInt(3)}},
{big.NewInt(1), []*big.Int{big.NewInt(2), big.NewInt(-1)}},
},
packed: "0000000000000000000000000000000000000000000000000000000000000020" +
"0000000000000000000000000000000000000000000000000000000000000002" + // tuple length
"0000000000000000000000000000000000000000000000000000000000000040" + // tuple[0] offset
"00000000000000000000000000000000000000000000000000000000000000e0" + // tuple[1] offset
"ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff" + // tuple[0].A
"0000000000000000000000000000000000000000000000000000000000000040" + // tuple[0].B offset
"0000000000000000000000000000000000000000000000000000000000000002" + // tuple[0].B length
"0000000000000000000000000000000000000000000000000000000000000001" + // tuple[0].B[0] value
"0000000000000000000000000000000000000000000000000000000000000003" + // tuple[0].B[1] value
"0000000000000000000000000000000000000000000000000000000000000001" + // tuple[1].A
"0000000000000000000000000000000000000000000000000000000000000040" + // tuple[1].B offset
"0000000000000000000000000000000000000000000000000000000000000002" + // tuple[1].B length
"0000000000000000000000000000000000000000000000000000000000000002" + // tuple[1].B[0] value
"ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff", // tuple[1].B[1] value
},
{
def: `[{"components": [{"name": "a","type": "int256"},
{"name": "b","type": "int256"}],
"name": "a","type": "tuple[2]"}]`,
unpacked: [2]struct {
A *big.Int
B *big.Int
}{
{big.NewInt(-1), big.NewInt(1)},
{big.NewInt(1), big.NewInt(-1)},
},
packed: "ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff" + // tuple[0].a
"0000000000000000000000000000000000000000000000000000000000000001" + // tuple[0].b
"0000000000000000000000000000000000000000000000000000000000000001" + // tuple[1].a
"ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff", // tuple[1].b
},
{
def: `[{"components": [{"name": "a","type": "int256[]"}],
"name": "a","type": "tuple[2]"}]`,
unpacked: [2]struct {
A []*big.Int
}{
{[]*big.Int{big.NewInt(-1), big.NewInt(1)}},
{[]*big.Int{big.NewInt(1), big.NewInt(-1)}},
},
packed: "0000000000000000000000000000000000000000000000000000000000000020" +
"0000000000000000000000000000000000000000000000000000000000000040" + // tuple[0] offset
"00000000000000000000000000000000000000000000000000000000000000c0" + // tuple[1] offset
"0000000000000000000000000000000000000000000000000000000000000020" + // tuple[0].A offset
"0000000000000000000000000000000000000000000000000000000000000002" + // tuple[0].A length
"ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff" + // tuple[0].A[0]
"0000000000000000000000000000000000000000000000000000000000000001" + // tuple[0].A[1]
"0000000000000000000000000000000000000000000000000000000000000020" + // tuple[1].A offset
"0000000000000000000000000000000000000000000000000000000000000002" + // tuple[1].A length
"0000000000000000000000000000000000000000000000000000000000000001" + // tuple[1].A[0]
"ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff", // tuple[1].A[1]
},
}
| Java |
package co.edu.unal.sistemasinteligentes.ajedrez.agentes;
import co.edu.unal.sistemasinteligentes.ajedrez.base.*;
import co.edu.unal.sistemasinteligentes.ajedrez.reversi.Tablero;
import co.edu.unal.sistemasinteligentes.ajedrez.reversi.Reversi.EstadoReversi;
import java.io.PrintStream;
/**
* Created by jiacontrerasp on 3/30/15.
*/
public class AgenteHeuristicoBasico extends _AgenteHeuristico {
private Jugador jugador;
private PrintStream output = null;
private int niveles;
/**
* Constructor de AgenteHeuristico1
* @param niveles: niveles de recursión
*/
public AgenteHeuristicoBasico(int niveles)
{
super();
this.niveles = niveles;
}
public AgenteHeuristicoBasico(int niveles, PrintStream output)
{
super();
this.niveles = niveles;
this.output = output;
}
@Override public Jugador jugador() {
return jugador;
}
@Override public void comienzo(Jugador jugador, Estado estado) {
this.jugador = jugador;
}
@Override public void fin(Estado estado) {
// No hay implementación.
}
@Override public void movimiento(Movimiento movimiento, Estado estado) {
if(output != null){
output.println(String.format("Jugador %s mueve %s.", movimiento.jugador(), movimiento));
printEstado(estado);
}
}
protected void printEstado(Estado estado) {
if(output != null){
output.println("\t"+ estado.toString().replace("\n", "\n\t"));
}
}
@Override public String toString() {
return String.format("Agente Heuristico Basico " + jugador.toString());
}
@Override
public double darHeuristica(Estado estado) {
char miFicha = (jugador().toString() == "JugadorNegras" ? 'N' :'B');
char fichaContrario = (jugador().toString() == "JugadorNegras" ? 'B' :'N');
Tablero tablero = ((EstadoReversi)(estado)).getTablero();
int misFichas = tablero.cantidadFichas(miFicha);
int fichasContrario = tablero.cantidadFichas(fichaContrario);
return misFichas - fichasContrario;
}
@Override
public int niveles() {
return niveles;
}
@Override
public double maximoValorHeuristica() {
return 18;
}
}
| Java |
namespace ZeroMQ
{
/// <summary>
/// Specifies possible results for socket receive operations.
/// </summary>
public enum ReceiveStatus
{
/// <summary>
/// No receive operation has been performed.
/// </summary>
None,
/// <summary>
/// The receive operation returned a message that contains data.
/// </summary>
Received,
/// <summary>
/// Non-blocking mode was requested and no messages are available at the moment.
/// </summary>
TryAgain,
/// <summary>
/// The receive operation was interrupted, likely by terminating the containing context.
/// </summary>
Interrupted
}
}
| Java |
<?php
/**
* @author jurgenhaas
*/
namespace GMJH\SQRL\Sample;
use GMJH\SQRL\ClientException;
/**
* An override class for Sample SQRL account
*
* @author jurgenhaas
*
* @link
*/
class Account extends \GMJH\SQRL\Account {
#region Command ==============================================================
/**
* @param Client $client
* @param bool $additional
* @return bool
* @throws ClientException
*/
public function command_setkey($client, $additional = FALSE) {
return FALSE;
}
/**
* @param Client $client
* @return bool
* @throws ClientException
*/
public function command_setlock($client) {
return FALSE;
}
/**
* @param Client $client
* @return bool
* @throws ClientException
*/
public function command_disable($client) {
return FALSE;
}
/**
* @param Client $client
* @return bool
* @throws ClientException
*/
public function command_enable($client) {
return FALSE;
}
/**
* @param Client $client
* @return bool
* @throws ClientException
*/
public function command_delete($client) {
return FALSE;
}
/**
* @param Client $client
* @return bool
* @throws ClientException
*/
public function command_login($client) {
return TRUE;
}
/**
* @param Client $client
* @return bool
* @throws ClientException
*/
public function command_logme($client) {
return FALSE;
}
/**
* @param Client $client
* @return bool
* @throws ClientException
*/
public function command_logoff($client) {
return FALSE;
}
#endregion
}
| Java |
using System;
using System.Linq;
using System.Collections.Generic;
using System.Diagnostics;
using System.Threading.Tasks;
using System.Threading;
namespace CoCoL
{
/// <summary>
/// Static helper class to create channels
/// </summary>
public static class Channel
{
/// <summary>
/// Gets or creates a named channel.
/// </summary>
/// <returns>The named channel.</returns>
/// <param name="name">The name of the channel to find.</param>
/// <param name="buffersize">The number of buffers in the channel.</param>
/// <param name="scope">The scope to create a named channel in, defaults to null which means the current scope</param>
/// <param name="maxPendingReaders">The maximum number of pending readers. A negative value indicates infinite</param>
/// <param name="maxPendingWriters">The maximum number of pending writers. A negative value indicates infinite</param>
/// <param name="pendingReadersOverflowStrategy">The strategy for dealing with overflow for read requests</param>
/// <param name="pendingWritersOverflowStrategy">The strategy for dealing with overflow for write requests</param>
/// <param name="broadcast"><c>True</c> will create the channel as a broadcast channel, the default <c>false</c> will create a normal channel</param>
/// <param name="initialBroadcastBarrier">The number of readers required on the channel before sending the first broadcast, can only be used with broadcast channels</param>
/// <param name="broadcastMinimum">The minimum number of readers required on the channel, before a broadcast can be performed, can only be used with broadcast channels</param>
/// <typeparam name="T">The channel type.</typeparam>
public static IChannel<T> Get<T>(string name, int buffersize = 0, ChannelScope scope = null, int maxPendingReaders = -1, int maxPendingWriters = -1, QueueOverflowStrategy pendingReadersOverflowStrategy = QueueOverflowStrategy.Reject, QueueOverflowStrategy pendingWritersOverflowStrategy = QueueOverflowStrategy.Reject, bool broadcast = false, int initialBroadcastBarrier = -1, int broadcastMinimum = -1)
{
return ChannelManager.GetChannel<T>(name, buffersize, scope, maxPendingReaders, maxPendingWriters, pendingReadersOverflowStrategy, pendingWritersOverflowStrategy, broadcast, initialBroadcastBarrier, broadcastMinimum);
}
/// <summary>
/// Gets or creates a named channel.
/// </summary>
/// <returns>The named channel.</returns>
/// <param name="attr">The attribute describing the channel.</param>
/// <param name="scope">The scope to create a named channel in, defaults to null which means the current scope</param>
/// <typeparam name="T">The channel type.</typeparam>
public static IChannel<T> Get<T>(ChannelNameAttribute attr, ChannelScope scope = null)
{
return ChannelManager.GetChannel<T>(attr, scope);
}
/// <summary>
/// Gets or creates a named channel from a marker setup
/// </summary>
/// <returns>The named channel.</returns>
/// <param name="marker">The channel marker instance that describes the channel.</param>
/// <typeparam name="T">The channel type.</typeparam>
public static IChannel<T> Get<T>(ChannelMarkerWrapper<T> marker)
{
return ChannelManager.GetChannel<T>(marker);
}
/// <summary>
/// Gets a write channel from a marker interface.
/// </summary>
/// <returns>The requested channel.</returns>
/// <param name="channel">The marker interface, or a real channel instance.</param>
/// <typeparam name="T">The channel type.</typeparam>
public static IWriteChannelEnd<T> Get<T>(IWriteChannel<T> channel)
{
return ChannelManager.GetChannel<T>(channel);
}
/// <summary>
/// Gets a read channel from a marker interface.
/// </summary>
/// <returns>The requested channel.</returns>
/// <param name="channel">The marker interface, or a real channel instance.</param>
/// <typeparam name="T">The channel type.</typeparam>
public static IReadChannelEnd<T> Get<T>(IReadChannel<T> channel)
{
return ChannelManager.GetChannel<T>(channel);
}
/// <summary>
/// Creates a channel, possibly unnamed.
/// If a channel name is provided, the channel is created in the supplied scope.
/// If a channel with the given name is already found in the supplied scope, the named channel is returned.
/// </summary>
/// <returns>The channel.</returns>
/// <param name="name">The name of the channel, or null.</param>
/// <param name="buffersize">The number of buffers in the channel.</param>
/// <param name="scope">The scope to create a named channel in, defaults to null which means the current scope</param>
/// <param name="maxPendingReaders">The maximum number of pending readers. A negative value indicates infinite</param>
/// <param name="maxPendingWriters">The maximum number of pending writers. A negative value indicates infinite</param>
/// <param name="pendingReadersOverflowStrategy">The strategy for dealing with overflow for read requests</param>
/// <param name="pendingWritersOverflowStrategy">The strategy for dealing with overflow for write requests</param>
/// <param name="broadcast"><c>True</c> will create the channel as a broadcast channel, the default <c>false</c> will create a normal channel</param>
/// <param name="initialBroadcastBarrier">The number of readers required on the channel before sending the first broadcast, can only be used with broadcast channels</param>
/// <param name="broadcastMinimum">The minimum number of readers required on the channel, before a broadcast can be performed, can only be used with broadcast channels</param>
/// <typeparam name="T">The channel type.</typeparam>
public static IChannel<T> Create<T>(string name = null, int buffersize = 0, ChannelScope scope = null, int maxPendingReaders = -1, int maxPendingWriters = -1, QueueOverflowStrategy pendingReadersOverflowStrategy = QueueOverflowStrategy.Reject, QueueOverflowStrategy pendingWritersOverflowStrategy = QueueOverflowStrategy.Reject, bool broadcast = false, int initialBroadcastBarrier = -1, int broadcastMinimum = -1)
{
return ChannelManager.CreateChannel<T>(name, buffersize, scope, maxPendingReaders, maxPendingWriters, pendingReadersOverflowStrategy, pendingWritersOverflowStrategy, broadcast, initialBroadcastBarrier, broadcastMinimum);
}
/// <summary>
/// Creates a channel, possibly unnamed.
/// If a channel name is provided, the channel is created in the supplied scope.
/// If a channel with the given name is already found in the supplied scope, the named channel is returned.
/// </summary>
/// <returns>The named channel.</returns>
/// <param name="attr">The attribute describing the channel.</param>
/// <param name="scope">The scope to create a named channel in, defaults to null which means the current scope</param>
/// <typeparam name="T">The channel type.</typeparam>
public static IChannel<T> Create<T>(ChannelNameAttribute attr, ChannelScope scope = null)
{
return ChannelManager.CreateChannel<T>(attr, scope);
}
}
/// <summary>
/// A channel that uses continuation callbacks
/// </summary>
public class Channel<T> : IChannel<T>, IUntypedChannel, IJoinAbleChannel, INamedItem
{
/// <summary>
/// The minium value for the cleanup threshold
/// </summary>
protected const int MIN_QUEUE_CLEANUP_THRESHOLD = 100;
/// <summary>
/// Interface for an offer
/// </summary>
protected interface IEntry
{
/// <summary>
/// The two-phase offer instance
/// </summary>
/// <value>The offer.</value>
ITwoPhaseOffer Offer { get; }
}
/// <summary>
/// Structure for keeping a read request
/// </summary>
protected struct ReaderEntry : IEntry, IEquatable<ReaderEntry>
{
/// <summary>
/// The offer handler for the request
/// </summary>
public readonly ITwoPhaseOffer Offer;
/// <summary>
/// The callback method for reporting progress
/// </summary>
public readonly TaskCompletionSource<T> Source;
#if !NO_TASK_ASYNCCONTINUE
/// <summary>
/// A flag indicating if signalling task completion must be enqued on the task pool
/// </summary>
public readonly bool EnqueueContinuation;
#endif
/// <summary>
/// Initializes a new instance of the <see cref="CoCoL.Channel<T>.ReaderEntry"/> struct.
/// </summary>
/// <param name="offer">The offer handler</param>
public ReaderEntry(ITwoPhaseOffer offer)
{
Offer = offer;
#if NO_TASK_ASYNCCONTINUE
Source = new TaskCompletionSource<T>();
#else
EnqueueContinuation = ExecutionScope.Current.IsLimitingPool;
Source = new TaskCompletionSource<T>(
EnqueueContinuation
? TaskCreationOptions.None
: TaskCreationOptions.RunContinuationsAsynchronously);
#endif
}
/// <summary>
/// The offer handler for the request
/// </summary>
ITwoPhaseOffer IEntry.Offer { get { return Offer; } }
/// <summary>
/// Gets a value indicating whether this <see cref="T:CoCoL.Channel`1.ReaderEntry"/> is timed out.
/// </summary>
public bool IsTimeout => Offer is IExpiringOffer expOffer && expOffer.IsExpired;
/// <summary>
/// Gets a value indicating whether this <see cref="T:CoCoL.Channel`1.ReaderEntry"/> is cancelled.
/// </summary>
public bool IsCancelled => Offer is ICancelAbleOffer canOffer && canOffer.CancelToken.IsCancellationRequested;
/// <summary>
/// Gets a value representing the expiration time of this entry
/// </summary>
public DateTime Expires => Offer is IExpiringOffer expOffer ? expOffer.Expires : new DateTime(0);
/// <summary>
/// Signals that the probe phase has finished
/// </summary>
public void ProbeCompleted()
{
if (Offer is IExpiringOffer offer)
offer.ProbeComplete();
}
/// <summary>
/// Explict disable of compares
/// </summary>
/// <param name="other">The item to compare with</param>
/// <returns>Always throws an exception to avoid compares</returns>
public bool Equals(ReaderEntry other)
{
throw new NotImplementedException();
}
}
/// <summary>
/// Structure for keeping a write request
/// </summary>
protected struct WriterEntry : IEntry, IEquatable<WriterEntry>
{
/// <summary>
/// The offer handler for the request
/// </summary>
public readonly ITwoPhaseOffer Offer;
/// <summary>
/// The callback method for reporting progress
/// </summary>
public readonly TaskCompletionSource<bool> Source;
/// <summary>
/// The cancellation token
/// </summary>
public readonly CancellationToken CancelToken;
/// <summary>
/// The value being written
/// </summary>
public readonly T Value;
#if !NO_TASK_ASYNCCONTINUE
/// <summary>
/// A flag indicating if signalling task completion must be enqued on the task pool
/// </summary>
public readonly bool EnqueueContinuation;
#endif
/// <summary>
/// Initializes a new instance of the <see cref="CoCoL.Channel<T>.WriterEntry"/> struct.
/// </summary>
/// <param name="offer">The offer handler</param>
/// <param name="value">The value being written.</param>
public WriterEntry(ITwoPhaseOffer offer, T value)
{
Offer = offer;
#if NO_TASK_ASYNCCONTINUE
Source = new TaskCompletionSource<bool>();
#else
EnqueueContinuation = ExecutionScope.Current.IsLimitingPool;
Source = new TaskCompletionSource<bool>(
EnqueueContinuation
? TaskCreationOptions.None
: TaskCreationOptions.RunContinuationsAsynchronously);
#endif
Value = value;
}
/// <summary>
/// Initializes a new empty instance of the <see cref="CoCoL.Channel<T>.WriterEntry"/> struct.
/// </summary>
/// <param name="value">The value being written.</param>
public WriterEntry(T value)
{
Offer = null;
Source = null;
Value = value;
#if !NO_TASK_ASYNCCONTINUE
EnqueueContinuation = false;
#endif
}
/// <summary>
/// The offer handler for the request
/// </summary>
ITwoPhaseOffer IEntry.Offer { get { return Offer; } }
/// <summary>
/// Gets a value indicating whether this <see cref="T:CoCoL.Channel`1.ReaderEntry"/> is timed out.
/// </summary>
public bool IsTimeout => Offer is IExpiringOffer && ((IExpiringOffer)Offer).IsExpired;
/// <summary>
/// Gets a value indicating whether this <see cref="T:CoCoL.Channel`1.ReaderEntry"/> is cancelled.
/// </summary>
public bool IsCancelled => Offer is ICancelAbleOffer && ((ICancelAbleOffer)Offer).CancelToken.IsCancellationRequested;
/// <summary>
/// Gets a value representing the expiration time of this entry
/// </summary>
public DateTime Expires => Offer is IExpiringOffer ? ((IExpiringOffer)Offer).Expires : new DateTime(0);
/// <summary>
/// Signals that the probe phase has finished
/// </summary>
public void ProbeCompleted()
{
if (Offer is IExpiringOffer offer)
offer.ProbeComplete();
}
/// <summary>
/// Explict disable of compares
/// </summary>
/// <param name="other">The item to compare with</param>
/// <returns>Always throws an exception to avoid compares</returns>
public bool Equals(WriterEntry other)
{
throw new NotImplementedException();
}
}
/// <summary>
/// The queue with pending readers
/// </summary>
protected List<ReaderEntry> m_readerQueue = new List<ReaderEntry>(1);
/// <summary>
/// The queue with pending writers
/// </summary>
protected List<WriterEntry> m_writerQueue = new List<WriterEntry>(1);
/// <summary>
/// The maximal size of the queue
/// </summary>
protected readonly int m_bufferSize;
/// <summary>
/// The lock object protecting access to the queues
/// </summary>
protected readonly AsyncLock m_asynclock = new AsyncLock();
/// <summary>
/// Gets or sets the name of the channel
/// </summary>
/// <value>The name.</value>
public string Name { get; private set; }
/// <summary>
/// Gets a value indicating whether this instance is retired.
/// </summary>
/// <value><c>true</c> if this instance is retired; otherwise, <c>false</c>.</value>
public Task<bool> IsRetiredAsync { get { return GetIsRetiredAsync(); } }
/// <summary>
/// Gets a value indicating whether this instance is retired.
/// </summary>
protected bool m_isRetired;
/// <summary>
/// The number of messages to process before marking the channel as retired
/// </summary>
protected int m_retireCount = -1;
/// <summary>
/// The number of reader processes having joined the channel
/// </summary>
protected int m_joinedReaderCount = 0;
/// <summary>
/// The number of writer processes having joined the channel
/// </summary>
protected int m_joinedWriterCount = 0;
/// <summary>
/// The threshold for performing writer queue cleanup
/// </summary>
protected int m_writerQueueCleanup = MIN_QUEUE_CLEANUP_THRESHOLD;
/// <summary>
/// The threshold for performing reader queue cleanup
/// </summary>
protected int m_readerQueueCleanup = MIN_QUEUE_CLEANUP_THRESHOLD;
/// <summary>
/// The maximum number of pending readers to allow
/// </summary>
protected readonly int m_maxPendingReaders;
/// <summary>
/// The strategy for selecting pending readers to discard on overflow
/// </summary>
protected readonly QueueOverflowStrategy m_pendingReadersOverflowStrategy;
/// <summary>
/// The maximum number of pending writers to allow
/// </summary>
protected readonly int m_maxPendingWriters;
/// <summary>
/// The strategy for selecting pending writers to discard on overflow
/// </summary>
protected readonly QueueOverflowStrategy m_pendingWritersOverflowStrategy;
/// <summary>
/// Initializes a new instance of the <see cref="CoCoL.Channel<T>"/> class.
/// </summary>
/// <param name="attribute">The attribute describing the channel</param>
internal Channel(ChannelNameAttribute attribute)
{
if (attribute == null)
throw new ArgumentNullException(nameof(attribute));
if (attribute.BufferSize < 0)
throw new ArgumentOutOfRangeException(nameof(attribute), "The size parameter must be greater than or equal to zero");
this.Name = attribute.Name;
m_bufferSize = attribute.BufferSize;
m_maxPendingReaders = attribute.MaxPendingReaders;
m_maxPendingWriters = attribute.MaxPendingWriters;
m_pendingReadersOverflowStrategy = attribute.PendingReadersOverflowStrategy;
m_pendingWritersOverflowStrategy = attribute.PendingWritersOverflowStrategy;
}
/// <summary>
/// Helper method for accessor to get the retired state
/// </summary>
/// <returns>The is retired async.</returns>
protected async Task<bool> GetIsRetiredAsync()
{
using (await m_asynclock.LockAsync())
return m_isRetired;
}
/// <summary>
/// Offers a transaction to the write end
/// </summary>
/// <param name="wr">The writer entry.</param>
protected async Task<bool> Offer(WriterEntry wr)
{
Exception tex = null;
bool accept = false;
System.Diagnostics.Debug.Assert(wr.Source == m_writerQueue[0].Source);
try
{
accept =
(wr.Source == null || wr.Source.Task.Status == TaskStatus.WaitingForActivation)
&&
(wr.Offer == null || await wr.Offer.OfferAsync(this).ConfigureAwait(false));
}
catch (Exception ex)
{
tex = ex; // Workaround to support C# 5.0, with no await in catch clause
}
if (tex != null)
{
TrySetException(wr, tex);
m_writerQueue.RemoveAt(0);
return false;
}
if (!accept)
{
TrySetCancelled(wr);
m_writerQueue.RemoveAt(0);
return false;
}
return true;
}
/// <summary>
/// Offersa transaction to the read end
/// </summary>
/// <param name="rd">The reader entry.</param>
protected async Task<bool> Offer(ReaderEntry rd)
{
Exception tex = null;
bool accept = false;
System.Diagnostics.Debug.Assert(rd.Source == m_readerQueue[0].Source);
try
{
accept =
(rd.Source == null || rd.Source.Task.Status == TaskStatus.WaitingForActivation)
&&
(rd.Offer == null || await rd.Offer.OfferAsync(this).ConfigureAwait(false));
}
catch (Exception ex)
{
tex = ex; // Workaround to support C# 5.0, with no await in catch clause
}
if (tex != null)
{
TrySetException(rd, tex);
m_readerQueue.RemoveAt(0);
return false;
}
if (!accept)
{
TrySetCancelled(rd);
m_readerQueue.RemoveAt(0);
return false;
}
return true;
}
/// <summary>
/// Method that examines the queues and matches readers with writers
/// </summary>
/// <returns>An awaitable that signals if the caller has been accepted or rejected.</returns>
/// <param name="asReader"><c>True</c> if the caller method is a reader, <c>false</c> otherwise.</param>
/// <param name="caller">The caller task.</param>
protected virtual async Task<bool> MatchReadersAndWriters(bool asReader, Task caller)
{
var processed = false;
while (m_writerQueue != null && m_readerQueue != null && m_writerQueue.Count > 0 && m_readerQueue.Count > 0)
{
var wr = m_writerQueue[0];
var rd = m_readerQueue[0];
bool offerWriter;
bool offerReader;
// If the caller is a reader, we assume that the
// read call will always proceed, and start emptying
// the write queue, and vice versa if the caller
// is a writer
if (asReader)
{
offerWriter = await Offer(wr).ConfigureAwait(false);
if (!offerWriter)
continue;
offerReader = await Offer(rd).ConfigureAwait(false);
}
else
{
offerReader = await Offer(rd).ConfigureAwait(false);
if (!offerReader)
continue;
offerWriter = await Offer(wr).ConfigureAwait(false);
}
// We flip the first entry, so we do not repeatedly
// offer the side that agrees, and then discover
// that the other side denies
asReader = !asReader;
// If the ends disagree, the declining end
// has been removed from the queue, so we just
// withdraw the offer from the other end
if (!(offerReader && offerWriter))
{
if (wr.Offer != null && offerWriter)
await wr.Offer.WithdrawAsync(this).ConfigureAwait(false);
if (rd.Offer != null && offerReader)
await rd.Offer.WithdrawAsync(this).ConfigureAwait(false);
}
else
{
// transaction complete
m_writerQueue.RemoveAt(0);
m_readerQueue.RemoveAt(0);
if (wr.Offer != null)
await wr.Offer.CommitAsync(this).ConfigureAwait(false);
if (rd.Offer != null)
await rd.Offer.CommitAsync(this).ConfigureAwait(false);
if (caller == rd.Source.Task || (wr.Source != null && caller == wr.Source.Task))
processed = true;
SetResult(rd, wr.Value);
SetResult(wr, true);
// Release items if there is space in the buffer
await ProcessWriteQueueBufferAfterReadAsync(true).ConfigureAwait(false);
// Adjust the cleanup threshold
if (m_writerQueue.Count <= m_writerQueueCleanup - MIN_QUEUE_CLEANUP_THRESHOLD)
m_writerQueueCleanup = Math.Max(MIN_QUEUE_CLEANUP_THRESHOLD, m_writerQueue.Count + MIN_QUEUE_CLEANUP_THRESHOLD);
// Adjust the cleanup threshold
if (m_readerQueue.Count <= m_readerQueueCleanup - MIN_QUEUE_CLEANUP_THRESHOLD)
m_readerQueueCleanup = Math.Max(MIN_QUEUE_CLEANUP_THRESHOLD, m_readerQueue.Count + MIN_QUEUE_CLEANUP_THRESHOLD);
// If this was the last item before the retirement,
// flush all following and set the retired flag
await EmptyQueueIfRetiredAsync(true).ConfigureAwait(false);
}
}
return processed || caller.Status != TaskStatus.WaitingForActivation;
}
/// <summary>
/// Registers a desire to read from the channel
/// </summary>
public Task<T> ReadAsync()
{
return ReadAsync(null);
}
/// <summary>
/// Registers a desire to read from the channel
/// </summary>
/// <param name="offer">A callback method for offering an item, use null to unconditionally accept</param>
public async Task<T> ReadAsync(ITwoPhaseOffer offer)
{
var rd = new ReaderEntry(offer);
if (rd.IsCancelled)
throw new TaskCanceledException();
using (await m_asynclock.LockAsync())
{
if (m_isRetired)
{
TrySetException(rd, new RetiredException(this.Name));
return await rd.Source.Task.ConfigureAwait(false);
}
m_readerQueue.Add(rd);
if (!await MatchReadersAndWriters(true, rd.Source.Task).ConfigureAwait(false))
{
rd.ProbeCompleted();
System.Diagnostics.Debug.Assert(m_readerQueue[m_readerQueue.Count - 1].Source == rd.Source);
// If this was a probe call, return a timeout now
if (rd.IsTimeout)
{
m_readerQueue.RemoveAt(m_readerQueue.Count - 1);
TrySetException(rd, new TimeoutException());
}
else if (rd.IsCancelled)
{
m_readerQueue.RemoveAt(m_readerQueue.Count - 1);
TrySetException(rd, new TaskCanceledException());
}
else
{
// Make room if we have too many
if (m_maxPendingReaders > 0 && (m_readerQueue.Count - 1) >= m_maxPendingReaders)
{
switch (m_pendingReadersOverflowStrategy)
{
case QueueOverflowStrategy.FIFO:
{
var exp = m_readerQueue[0];
m_readerQueue.RemoveAt(0);
TrySetException(exp, new ChannelOverflowException(this.Name));
}
break;
case QueueOverflowStrategy.LIFO:
{
var exp = m_readerQueue[m_readerQueue.Count - 2];
m_readerQueue.RemoveAt(m_readerQueue.Count - 2);
TrySetException(exp, new ChannelOverflowException(this.Name));
}
break;
//case QueueOverflowStrategy.Reject:
default:
{
var exp = m_readerQueue[m_readerQueue.Count - 1];
m_readerQueue.RemoveAt(m_readerQueue.Count - 1);
TrySetException(exp, new ChannelOverflowException(this.Name));
}
break;
}
}
// If we have expanded the queue with a new batch, see if we can purge old entries
m_readerQueueCleanup = await PerformQueueCleanupAsync(m_readerQueue, true, m_readerQueueCleanup).ConfigureAwait(false);
if (rd.Offer is IExpiringOffer && ((IExpiringOffer)rd.Offer).Expires != Timeout.InfiniteDateTime)
ExpirationManager.AddExpirationCallback(((IExpiringOffer)rd.Offer).Expires, () => ExpireItemsAsync().FireAndForget());
}
}
}
return await rd.Source.Task.ConfigureAwait(false);
}
/// <summary>
/// Registers a desire to write to the channel
/// </summary>
/// <param name="value">The value to write to the channel.</param>
public Task WriteAsync(T value)
{
return WriteAsync(value, null);
}
/// <summary>
/// Registers a desire to write to the channel
/// </summary>
/// <param name="offer">A callback method for offering an item, use null to unconditionally accept</param>
/// <param name="value">The value to write to the channel.</param>
public async Task WriteAsync(T value, ITwoPhaseOffer offer)
{
var wr = new WriterEntry(offer, value);
if (wr.IsCancelled)
throw new TaskCanceledException();
using (await m_asynclock.LockAsync())
{
if (m_isRetired)
{
TrySetException(wr, new RetiredException(this.Name));
await wr.Source.Task.ConfigureAwait(false);
return;
}
m_writerQueue.Add(wr);
if (!await MatchReadersAndWriters(false, wr.Source.Task).ConfigureAwait(false))
{
System.Diagnostics.Debug.Assert(m_writerQueue[m_writerQueue.Count - 1].Source == wr.Source);
// If we have a buffer slot to use
if (m_writerQueue.Count <= m_bufferSize && m_retireCount < 0)
{
if (offer == null || await offer.OfferAsync(this))
{
if (offer != null)
await offer.CommitAsync(this).ConfigureAwait(false);
m_writerQueue[m_writerQueue.Count - 1] = new WriterEntry(value);
TrySetResult(wr, true);
}
else
{
TrySetCancelled(wr);
}
// For good measure, we also make sure the probe phase is completed
wr.ProbeCompleted();
}
else
{
wr.ProbeCompleted();
// If this was a probe call, return a timeout now
if (wr.IsTimeout)
{
m_writerQueue.RemoveAt(m_writerQueue.Count - 1);
TrySetException(wr, new TimeoutException());
}
else if (wr.IsCancelled)
{
m_writerQueue.RemoveAt(m_writerQueue.Count - 1);
TrySetException(wr, new TaskCanceledException());
}
else
{
// Make room if we have too many
if (m_maxPendingWriters > 0 && (m_writerQueue.Count - m_bufferSize - 1) >= m_maxPendingWriters)
{
switch (m_pendingWritersOverflowStrategy)
{
case QueueOverflowStrategy.FIFO:
{
var exp = m_writerQueue[m_bufferSize];
m_writerQueue.RemoveAt(m_bufferSize);
TrySetException(exp, new ChannelOverflowException(this.Name));
}
break;
case QueueOverflowStrategy.LIFO:
{
var exp = m_writerQueue[m_writerQueue.Count - 2];
m_writerQueue.RemoveAt(m_writerQueue.Count - 2);
TrySetException(exp, new ChannelOverflowException(this.Name));
}
break;
//case QueueOverflowStrategy.Reject:
default:
{
var exp = m_writerQueue[m_writerQueue.Count - 1];
m_writerQueue.RemoveAt(m_writerQueue.Count - 1);
TrySetException(exp, new ChannelOverflowException(this.Name));
}
break;
}
}
// If we have expanded the queue with a new batch, see if we can purge old entries
m_writerQueueCleanup = await PerformQueueCleanupAsync(m_writerQueue, true, m_writerQueueCleanup).ConfigureAwait(false);
if (wr.Offer is IExpiringOffer && ((IExpiringOffer)wr.Offer).Expires != Timeout.InfiniteDateTime)
ExpirationManager.AddExpirationCallback(((IExpiringOffer)wr.Offer).Expires, () => ExpireItemsAsync().FireAndForget());
}
}
}
}
await wr.Source.Task.ConfigureAwait(false);
return;
}
/// <summary>
/// Purges items in the queue that are no longer active
/// </summary>
/// <param name="queue">The queue to remove from.</param>
/// <param name="queueCleanup">The threshold parameter.</param>
/// <param name="isLocked"><c>True</c> if we are already holding the lock, <c>false</c> otherwise</param>
/// <typeparam name="Tx">The type of list data.</typeparam>
private async Task<int> PerformQueueCleanupAsync<Tx>(List<Tx> queue, bool isLocked, int queueCleanup)
where Tx : IEntry
{
var res = queueCleanup;
using(isLocked ? default(AsyncLock.Releaser) : await m_asynclock.LockAsync())
{
if (queue.Count > queueCleanup)
{
for (var i = queue.Count - 1; i >= 0; i--)
{
if (queue[i].Offer != null)
if (await queue[i].Offer.OfferAsync(this).ConfigureAwait(false))
await queue[i].Offer.WithdrawAsync(this).ConfigureAwait(false);
else
{
TrySetCancelled(queue[i]);
queue.RemoveAt(i);
}
}
// Prevent repeated cleanup requests
res = Math.Max(MIN_QUEUE_CLEANUP_THRESHOLD, queue.Count + MIN_QUEUE_CLEANUP_THRESHOLD);
}
}
return res;
}
/// <summary>
/// Helper method for dequeueing write requests after space has been allocated in the writer queue
/// </summary>
/// <param name="isLocked"><c>True</c> if we are already holding the lock, <c>false</c> otherwise</param>
private async Task ProcessWriteQueueBufferAfterReadAsync(bool isLocked)
{
using(isLocked ? default(AsyncLock.Releaser) : await m_asynclock.LockAsync())
{
// If there is now a buffer slot in the queue, trigger a callback to a waiting item
while (m_retireCount < 0 && m_bufferSize > 0 && m_writerQueue.Count >= m_bufferSize)
{
var nextItem = m_writerQueue[m_bufferSize - 1];
if (nextItem.Offer == null || await nextItem.Offer.OfferAsync(this).ConfigureAwait(false))
{
if (nextItem.Offer != null)
await nextItem.Offer.CommitAsync(this).ConfigureAwait(false);
SetResult(nextItem, true);
// Now that the transaction has completed for the writer, record it as waiting forever
m_writerQueue[m_bufferSize - 1] = new WriterEntry(nextItem.Value);
// We can have at most one, since we process at most one read
break;
}
else
m_writerQueue.RemoveAt(m_bufferSize - 1);
}
}
}
/// <summary>
/// Stops this channel from processing messages
/// </summary>
public Task RetireAsync()
{
return RetireAsync(false, false);
}
/// <summary>
/// Stops this channel from processing messages
/// </summary>
/// <param name="immediate">Retires the channel without processing the queue, which may cause lost messages</param>
public Task RetireAsync(bool immediate)
{
return RetireAsync(immediate, false);
}
/// <summary>
/// Stops this channel from processing messages
/// </summary>
/// <param name="immediate">Retires the channel without processing the queue, which may cause lost messages</param>
/// <param name="isLocked"><c>True</c> if we are already holding the lock, <c>false</c> otherwise</param>
private async Task RetireAsync(bool immediate, bool isLocked)
{
using (isLocked ? default(AsyncLock.Releaser) : await m_asynclock.LockAsync())
{
if (m_isRetired)
return;
if (m_retireCount < 0)
{
// If we have responded to buffered writes,
// make sure we pair those before retiring
m_retireCount = Math.Min(m_writerQueue.Count, m_bufferSize) + 1;
// For immediate retire, remove buffered writes
if (immediate)
while (m_retireCount > 1)
{
if (m_writerQueue[0].Source != null)
TrySetException(m_writerQueue[0], new RetiredException(this.Name));
m_writerQueue.RemoveAt(0);
m_retireCount--;
}
}
await EmptyQueueIfRetiredAsync(true).ConfigureAwait(false);
}
}
/// <summary>
/// Join the channel
/// </summary>
/// <param name="asReader"><c>true</c> if joining as a reader, <c>false</c> otherwise</param>
public virtual async Task JoinAsync(bool asReader)
{
using (await m_asynclock.LockAsync())
{
// Do not allow anyone to join after we retire the channel
if (m_isRetired)
throw new RetiredException(this.Name);
if (asReader)
m_joinedReaderCount++;
else
m_joinedWriterCount++;
}
}
/// <summary>
/// Leave the channel.
/// </summary>
/// <param name="asReader"><c>true</c> if leaving as a reader, <c>false</c> otherwise</param>
public virtual async Task LeaveAsync(bool asReader)
{
using (await m_asynclock.LockAsync())
{
// If we are already retired, skip this call
if (m_isRetired)
return;
// Countdown
if (asReader)
m_joinedReaderCount--;
else
m_joinedWriterCount--;
// Retire if required
if ((asReader && m_joinedReaderCount <= 0) || (!asReader && m_joinedWriterCount <= 0))
await RetireAsync(false, true).ConfigureAwait(false);
}
}
/// <summary>
/// Empties the queue if the channel is retired.
/// </summary>
/// <param name="isLocked"><c>True</c> if we are already holding the lock, <c>false</c> otherwise</param>
private async Task EmptyQueueIfRetiredAsync(bool isLocked)
{
List<ReaderEntry> readers = null;
List<WriterEntry> writers = null;
using (isLocked ? default(AsyncLock.Releaser) : await m_asynclock.LockAsync())
{
// Countdown as required
if (m_retireCount > 0)
{
m_retireCount--;
if (m_retireCount == 0)
{
// Empty the queues, as we are now retired
readers = m_readerQueue;
writers = m_writerQueue;
// Make sure nothing new enters the queues
m_isRetired = true;
m_readerQueue = null;
m_writerQueue = null;
}
}
}
// If there are pending retire messages, send them
if (readers != null || writers != null)
{
if (readers != null)
foreach (var r in readers)
TrySetException(r, new RetiredException(this.Name));
if (writers != null)
foreach (var w in writers)
TrySetException(w, new RetiredException(this.Name));
}
}
/// <summary>
/// Callback method used to signal timeout on expired items
/// </summary>
private async Task ExpireItemsAsync()
{
KeyValuePair<int, ReaderEntry>[] expiredReaders;
KeyValuePair<int, WriterEntry>[] expiredWriters;
// Extract all expired items from their queues
using (await m_asynclock.LockAsync())
{
// If the channel is retired, there is nothing to do here
if (m_readerQueue == null || m_writerQueue == null)
return;
var now = DateTime.Now;
expiredReaders = m_readerQueue.Zip(Enumerable.Range(0, m_readerQueue.Count), (n, i) => new KeyValuePair<int, ReaderEntry>(i, n)).Where(x => x.Value.Expires.Ticks != 0 && (x.Value.Expires - now).Ticks <= ExpirationManager.ALLOWED_ADVANCE_EXPIRE_TICKS).ToArray();
expiredWriters = m_writerQueue.Zip(Enumerable.Range(0, m_writerQueue.Count), (n, i) => new KeyValuePair<int, WriterEntry>(i, n)).Where(x => x.Value.Expires.Ticks != 0 && (x.Value.Expires - now).Ticks <= ExpirationManager.ALLOWED_ADVANCE_EXPIRE_TICKS).ToArray();
foreach (var r in expiredReaders.OrderByDescending(x => x.Key))
m_readerQueue.RemoveAt(r.Key);
foreach (var r in expiredWriters.OrderByDescending(x => x.Key))
m_writerQueue.RemoveAt(r.Key);
}
// Send the notifications
foreach (var r in expiredReaders.OrderBy(x => x.Value.Expires))
TrySetException(r.Value, new TimeoutException());
// Send the notifications
foreach (var w in expiredWriters.OrderBy(x => x.Value.Expires))
TrySetException(w.Value, new TimeoutException());
}
#region Task continuation support methods
/// <summary>
/// Sets the task to be failed
/// </summary>
/// <param name="entry">The task to set</param>
/// <param name="ex">The exception to set</param>
private static void TrySetException(ReaderEntry entry, Exception ex)
{
#if NO_TASK_ASYNCCONTINUE
ThreadPool.QueueItem(() => entry.Source.TrySetException(ex));
#else
if (entry.EnqueueContinuation)
ThreadPool.QueueItem(() => entry.Source.TrySetException(ex));
else
entry.Source.TrySetException(ex);
#endif
}
/// <summary>
/// Sets the task to be failed
/// </summary>
/// <param name="entry">The task to set</param>
/// <param name="ex">The exception to set</param>
private static void TrySetException(WriterEntry entry, Exception ex)
{
if (entry.Source != null)
{
#if NO_TASK_ASYNCCONTINUE
ThreadPool.QueueItem(() => entry.Source.TrySetException(ex));
#else
if (entry.EnqueueContinuation)
ThreadPool.QueueItem(() => entry.Source.TrySetException(ex));
else
entry.Source.TrySetException(ex);
#endif
}
}
/// <summary>
/// Tries to set the source to Cancelled
/// </summary>
/// <param name="entry">The entry to signal</param>
private static void TrySetCancelled(IEntry entry)
{
if (entry is ReaderEntry re)
TrySetCancelled(re);
else if (entry is WriterEntry we)
TrySetCancelled(we);
else
throw new InvalidOperationException("No such type");
}
/// <summary>
/// Tries to set the source to Cancelled
/// </summary>
/// <param name="entry">The entry to signal</param>
private static void TrySetCancelled(ReaderEntry entry)
{
#if NO_TASK_ASYNCCONTINUE
ThreadPool.QueueItem(() => entry.Source.TrySetCanceled());
#else
if (entry.EnqueueContinuation)
ThreadPool.QueueItem(() => entry.Source.TrySetCanceled());
else
entry.Source.TrySetCanceled();
#endif
}
/// <summary>
/// Tries to set the source to Cancelled
/// </summary>
/// <param name="entry">The entry to signal</param>
private static void TrySetCancelled(WriterEntry entry)
{
if (entry.Source != null)
{
#if NO_TASK_ASYNCCONTINUE
ThreadPool.QueueItem(() => entry.Source.TrySetCanceled());
#else
if (entry.EnqueueContinuation)
ThreadPool.QueueItem(() => entry.Source.TrySetCanceled());
else
entry.Source.TrySetCanceled();
#endif
}
}
/// <summary>
/// Tries to set the source result
/// </summary>
/// <param name="entry">The entry to signal</param>
/// <param name="value">The value to signal</param>
private static void TrySetResult(WriterEntry entry, bool value)
{
if (entry.Source != null)
{
#if NO_TASK_ASYNCCONTINUE
ThreadPool.QueueItem(() => entry.Source.TrySetResult(value));
#else
if (entry.EnqueueContinuation)
ThreadPool.QueueItem(() => entry.Source.TrySetResult(value));
else
entry.Source.TrySetResult(value);
#endif
}
}
/// <summary>
/// Sets the source result
/// </summary>
/// <param name="entry">The entry to signal</param>
/// <param name="value">The value to signal</param>
private static void SetResult(WriterEntry entry, bool value)
{
if (entry.Source != null)
{
#if NO_TASK_ASYNCCONTINUE
ThreadPool.QueueItem(() => entry.Source.SetResult(value));
#else
if (entry.EnqueueContinuation)
ThreadPool.QueueItem(() => entry.Source.SetResult(value));
else
entry.Source.SetResult(value);
#endif
}
}
/// <summary>
/// Sets the source result
/// </summary>
/// <param name="entry">The entry to signal</param>
/// <param name="value">The value to signal</param>
private static void SetResult(ReaderEntry entry, T value)
{
#if NO_TASK_ASYNCCONTINUE
ThreadPool.QueueItem(() => entry.Source.SetResult(value));
#else
if (entry.EnqueueContinuation)
ThreadPool.QueueItem(() => entry.Source.SetResult(value));
else
entry.Source.SetResult(value);
#endif
}
#endregion
}
}
| Java |
<?php
class CsvTest extends \PHPUnit_Framework_TestCase
{
use ExcelFileTestCase;
protected $class = '\Maatwebsite\Clerk\Files\Csv';
protected $ext = 'csv';
}
| Java |
#region Dapplo 2017 - GNU Lesser General Public License
// Dapplo - building blocks for .NET applications
// Copyright (C) 2017 Dapplo
//
// For more information see: http://dapplo.net/
// Dapplo repositories are hosted on GitHub: https://github.com/dapplo
//
// This file is part of Dapplo.Jira
//
// Dapplo.Jira is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Dapplo.Jira is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Lesser General Public License for more details.
//
// You should have a copy of the GNU Lesser General Public License
// along with Dapplo.Jira. If not, see <http://www.gnu.org/licenses/lgpl.txt>.
#endregion
namespace Dapplo.Jira.Domains
{
/// <summary>
/// The marker interface of the user domain
/// </summary>
public interface IUserDomain : IJiraDomain
{
}
} | Java |
package tk.teemocode.module.base.vo;
import java.io.Serializable;
public class Vo implements Serializable, Cloneable {
private Long id;
private String uuid;
private Integer tag;
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public String getUuid() {
return uuid;
}
public void setUuid(String uuid) {
this.uuid = uuid;
}
public Integer getTag() {
return tag;
}
public void setTag(Integer tag) {
this.tag = tag;
}
}
| Java |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.5.0_14) on Tue Aug 12 15:38:40 EDT 2008 -->
<TITLE>
BlockingInfo (NITRO 2.0-RC1 API)
</TITLE>
<META NAME="keywords" CONTENT="nitf.BlockingInfo class">
<LINK REL ="stylesheet" TYPE="text/css" HREF="../stylesheet.css" TITLE="Style">
<SCRIPT type="text/javascript">
function windowTitle()
{
parent.document.title="BlockingInfo (NITRO 2.0-RC1 API)";
}
</SCRIPT>
<NOSCRIPT>
</NOSCRIPT>
</HEAD>
<BODY BGCOLOR="white" onload="windowTitle();">
<!-- ========= START OF TOP NAVBAR ======= -->
<A NAME="navbar_top"><!-- --></A>
<A HREF="BlockingInfo.html#skip-navbar_top" title="Skip navigation links"></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_top_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
<TR ALIGN="center" VALIGN="top">
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/BlockingInfo.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
</TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>
<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="BandSource.html" title="class in nitf"><B>PREV CLASS</B></A>
<A HREF="CloneableObject.html" title="class in nitf"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../index.html?nitf%252FBlockingInfo.html" target="_top"><B>FRAMES</B></A>
<A HREF="BlockingInfo.html" target="_top"><B>NO FRAMES</B></A>
<SCRIPT type="text/javascript">
<!--
if(window==top) {
document.writeln('<A HREF="../allclasses-noframe.html"><B>All Classes</B></A>');
}
//-->
</SCRIPT>
<NOSCRIPT>
<A HREF="../allclasses-noframe.html"><B>All Classes</B></A>
</NOSCRIPT>
</FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
SUMMARY: NESTED | <A HREF="BlockingInfo.html#fields_inherited_from_class_nitf.NITFObject">FIELD</A> | <A HREF="BlockingInfo.html#constructor_summary">CONSTR</A> | <A HREF="BlockingInfo.html#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL: FIELD | <A HREF="BlockingInfo.html#constructor_detail">CONSTR</A> | <A HREF="BlockingInfo.html#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_top"></A>
<!-- ========= END OF TOP NAVBAR ========= -->
<HR>
<!-- ======== START OF CLASS DATA ======== -->
<H2>
<FONT SIZE="-1">
nitf</FONT>
<BR>
Class BlockingInfo</H2>
<PRE>
java.lang.Object
<IMG SRC="../resources/inherit.gif" ALT="extended by "><A HREF="NITFObject.html" title="class in nitf">nitf.NITFObject</A>
<IMG SRC="../resources/inherit.gif" ALT="extended by "><A HREF="DestructibleObject.html" title="class in nitf">nitf.DestructibleObject</A>
<IMG SRC="../resources/inherit.gif" ALT="extended by "><B>nitf.BlockingInfo</B>
</PRE>
<HR>
<DL>
<DT><PRE>public final class <B>BlockingInfo</B><DT>extends <A HREF="DestructibleObject.html" title="class in nitf">DestructibleObject</A></DL>
</PRE>
<P>
A representation of the blocking information used
in the library.
<P>
<P>
<HR>
<P>
<!-- =========== FIELD SUMMARY =========== -->
<A NAME="field_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>Field Summary</B></FONT></TH>
</TR>
</TABLE>
<A NAME="fields_inherited_from_class_nitf.NITFObject"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left"><B>Fields inherited from class nitf.<A HREF="NITFObject.html" title="class in nitf">NITFObject</A></B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><A HREF="NITFObject.html#address">address</A>, <A HREF="NITFObject.html#INVALID_ADDRESS">INVALID_ADDRESS</A>, <A HREF="NITFObject.html#NITF_LIBRARY_NAME">NITF_LIBRARY_NAME</A></CODE></TD>
</TR>
</TABLE>
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<A NAME="constructor_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>Constructor Summary</B></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="BlockingInfo.html#BlockingInfo()">BlockingInfo</A></B>()</CODE>
<BR>
</TD>
</TR>
</TABLE>
<!-- ========== METHOD SUMMARY =========== -->
<A NAME="method_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>Method Summary</B></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected void</CODE></FONT></TD>
<TD><CODE><B><A HREF="BlockingInfo.html#destructMemory()">destructMemory</A></B>()</CODE>
<BR>
Destruct the underlying memory</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> int</CODE></FONT></TD>
<TD><CODE><B><A HREF="BlockingInfo.html#getLength()">getLength</A></B>()</CODE>
<BR>
Returns the length</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> int</CODE></FONT></TD>
<TD><CODE><B><A HREF="BlockingInfo.html#getNumBlocksPerCol()">getNumBlocksPerCol</A></B>()</CODE>
<BR>
Returns the number of blocks per column</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> int</CODE></FONT></TD>
<TD><CODE><B><A HREF="BlockingInfo.html#getNumBlocksPerRow()">getNumBlocksPerRow</A></B>()</CODE>
<BR>
Returns the number of blocks per row</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> int</CODE></FONT></TD>
<TD><CODE><B><A HREF="BlockingInfo.html#getNumColsPerBlock()">getNumColsPerBlock</A></B>()</CODE>
<BR>
Returns the number of columns per block</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> int</CODE></FONT></TD>
<TD><CODE><B><A HREF="BlockingInfo.html#getNumRowsPerBlock()">getNumRowsPerBlock</A></B>()</CODE>
<BR>
Returns the number of rows per block</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="BlockingInfo.html#print(java.io.PrintStream)">print</A></B>(java.io.PrintStream out)</CODE>
<BR>
Prints the data pertaining to this object to an OutputStream</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="BlockingInfo.html#setLength(int)">setLength</A></B>(int length)</CODE>
<BR>
Sets the length</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="BlockingInfo.html#setNumBlocksPerCol(int)">setNumBlocksPerCol</A></B>(int numBlocksPerCol)</CODE>
<BR>
Sets the number of blocks per column</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="BlockingInfo.html#setNumBlocksPerRow(int)">setNumBlocksPerRow</A></B>(int numBlocksPerRow)</CODE>
<BR>
Sets the number of blocks per row</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="BlockingInfo.html#setNumColsPerBlock(int)">setNumColsPerBlock</A></B>(int numColsPerBlock)</CODE>
<BR>
Sets the number of columns per block</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="BlockingInfo.html#setNumRowsPerBlock(int)">setNumRowsPerBlock</A></B>(int numRowsPerBlock)</CODE>
<BR>
Sets the number of rows per block</TD>
</TR>
</TABLE>
<A NAME="methods_inherited_from_class_nitf.DestructibleObject"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left"><B>Methods inherited from class nitf.<A HREF="DestructibleObject.html" title="class in nitf">DestructibleObject</A></B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><A HREF="DestructibleObject.html#destruct()">destruct</A>, <A HREF="DestructibleObject.html#finalize()">finalize</A>, <A HREF="DestructibleObject.html#getInfo()">getInfo</A>, <A HREF="DestructibleObject.html#isManaged()">isManaged</A>, <A HREF="DestructibleObject.html#setManaged(boolean)">setManaged</A>, <A HREF="DestructibleObject.html#toString()">toString</A></CODE></TD>
</TR>
</TABLE>
<A NAME="methods_inherited_from_class_nitf.NITFObject"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left"><B>Methods inherited from class nitf.<A HREF="NITFObject.html" title="class in nitf">NITFObject</A></B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><A HREF="NITFObject.html#equals(java.lang.Object)">equals</A>, <A HREF="NITFObject.html#isValid()">isValid</A></CODE></TD>
</TR>
</TABLE>
<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE>clone, getClass, hashCode, notify, notifyAll, wait, wait, wait</CODE></TD>
</TR>
</TABLE>
<P>
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<A NAME="constructor_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
<B>Constructor Detail</B></FONT></TH>
</TR>
</TABLE>
<A NAME="BlockingInfo()"><!-- --></A><H3>
BlockingInfo</H3>
<PRE>
public <B>BlockingInfo</B>()
throws <A HREF="NITFException.html" title="class in nitf">NITFException</A></PRE>
<DL>
<DL>
<DT><B>Throws:</B>
<DD><CODE><A HREF="NITFException.html" title="class in nitf">NITFException</A></CODE></DL>
</DL>
<!-- ============ METHOD DETAIL ========== -->
<A NAME="method_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
<B>Method Detail</B></FONT></TH>
</TR>
</TABLE>
<A NAME="destructMemory()"><!-- --></A><H3>
destructMemory</H3>
<PRE>
protected void <B>destructMemory</B>()</PRE>
<DL>
<DD>Destruct the underlying memory
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><A HREF="DestructibleObject.html#destructMemory()">destructMemory</A></CODE> in class <CODE><A HREF="DestructibleObject.html" title="class in nitf">DestructibleObject</A></CODE></DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="getNumBlocksPerRow()"><!-- --></A><H3>
getNumBlocksPerRow</H3>
<PRE>
public int <B>getNumBlocksPerRow</B>()</PRE>
<DL>
<DD>Returns the number of blocks per row
<P>
<DD><DL>
<DT><B>Returns:</B><DD></DL>
</DD>
</DL>
<HR>
<A NAME="setNumBlocksPerRow(int)"><!-- --></A><H3>
setNumBlocksPerRow</H3>
<PRE>
public void <B>setNumBlocksPerRow</B>(int numBlocksPerRow)</PRE>
<DL>
<DD>Sets the number of blocks per row
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>numBlocksPerRow</CODE> - </DL>
</DD>
</DL>
<HR>
<A NAME="getNumBlocksPerCol()"><!-- --></A><H3>
getNumBlocksPerCol</H3>
<PRE>
public int <B>getNumBlocksPerCol</B>()</PRE>
<DL>
<DD>Returns the number of blocks per column
<P>
<DD><DL>
<DT><B>Returns:</B><DD></DL>
</DD>
</DL>
<HR>
<A NAME="setNumBlocksPerCol(int)"><!-- --></A><H3>
setNumBlocksPerCol</H3>
<PRE>
public void <B>setNumBlocksPerCol</B>(int numBlocksPerCol)</PRE>
<DL>
<DD>Sets the number of blocks per column
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>numBlocksPerCol</CODE> - </DL>
</DD>
</DL>
<HR>
<A NAME="getNumRowsPerBlock()"><!-- --></A><H3>
getNumRowsPerBlock</H3>
<PRE>
public int <B>getNumRowsPerBlock</B>()</PRE>
<DL>
<DD>Returns the number of rows per block
<P>
<DD><DL>
<DT><B>Returns:</B><DD></DL>
</DD>
</DL>
<HR>
<A NAME="setNumRowsPerBlock(int)"><!-- --></A><H3>
setNumRowsPerBlock</H3>
<PRE>
public void <B>setNumRowsPerBlock</B>(int numRowsPerBlock)</PRE>
<DL>
<DD>Sets the number of rows per block
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>numRowsPerBlock</CODE> - </DL>
</DD>
</DL>
<HR>
<A NAME="getNumColsPerBlock()"><!-- --></A><H3>
getNumColsPerBlock</H3>
<PRE>
public int <B>getNumColsPerBlock</B>()</PRE>
<DL>
<DD>Returns the number of columns per block
<P>
<DD><DL>
<DT><B>Returns:</B><DD></DL>
</DD>
</DL>
<HR>
<A NAME="setNumColsPerBlock(int)"><!-- --></A><H3>
setNumColsPerBlock</H3>
<PRE>
public void <B>setNumColsPerBlock</B>(int numColsPerBlock)</PRE>
<DL>
<DD>Sets the number of columns per block
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>numColsPerBlock</CODE> - </DL>
</DD>
</DL>
<HR>
<A NAME="getLength()"><!-- --></A><H3>
getLength</H3>
<PRE>
public int <B>getLength</B>()</PRE>
<DL>
<DD>Returns the length
<P>
<DD><DL>
<DT><B>Returns:</B><DD></DL>
</DD>
</DL>
<HR>
<A NAME="setLength(int)"><!-- --></A><H3>
setLength</H3>
<PRE>
public void <B>setLength</B>(int length)</PRE>
<DL>
<DD>Sets the length
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>length</CODE> - </DL>
</DD>
</DL>
<HR>
<A NAME="print(java.io.PrintStream)"><!-- --></A><H3>
print</H3>
<PRE>
public void <B>print</B>(java.io.PrintStream out)
throws java.io.IOException</PRE>
<DL>
<DD>Prints the data pertaining to this object to an OutputStream
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>out</CODE> -
<DT><B>Throws:</B>
<DD><CODE>java.io.IOException</CODE></DL>
</DD>
</DL>
<!-- ========= END OF CLASS DATA ========= -->
<HR>
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<A NAME="navbar_bottom"><!-- --></A>
<A HREF="BlockingInfo.html#skip-navbar_bottom" title="Skip navigation links"></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_bottom_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
<TR ALIGN="center" VALIGN="top">
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/BlockingInfo.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
</TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
<b>Created: 08/12/2008 03:38:34 PM</b></EM>
</TD>
</TR>
<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="BandSource.html" title="class in nitf"><B>PREV CLASS</B></A>
<A HREF="CloneableObject.html" title="class in nitf"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../index.html?nitf%252FBlockingInfo.html" target="_top"><B>FRAMES</B></A>
<A HREF="BlockingInfo.html" target="_top"><B>NO FRAMES</B></A>
<SCRIPT type="text/javascript">
<!--
if(window==top) {
document.writeln('<A HREF="../allclasses-noframe.html"><B>All Classes</B></A>');
}
//-->
</SCRIPT>
<NOSCRIPT>
<A HREF="../allclasses-noframe.html"><B>All Classes</B></A>
</NOSCRIPT>
</FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
SUMMARY: NESTED | <A HREF="BlockingInfo.html#fields_inherited_from_class_nitf.NITFObject">FIELD</A> | <A HREF="BlockingInfo.html#constructor_summary">CONSTR</A> | <A HREF="BlockingInfo.html#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL: FIELD | <A HREF="BlockingInfo.html#constructor_detail">CONSTR</A> | <A HREF="BlockingInfo.html#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_bottom"></A>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
<HR>
<i>Copyright © 2004-2008 General Dynamics All Rights Reserved.</i>
<div style="float:left;"><a href="http://sourceforge.net/" target="_blank"><img style="width: 151px; height: 38px;" src="http://web.sourceforge.com/images/footer/source.gif" alt="SourceForge.net" border="0" height="38" width="151"></a></div>
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
var pageTracker = _gat._getTracker("UA-3779761-1");
pageTracker._initData();
pageTracker._trackPageview();
</script>
</BODY>
</HTML>
| Java |
/*******************************************************************************
* Copyright (c) 2011 Dipanjan Das
* Language Technologies Institute,
* Carnegie Mellon University,
* All Rights Reserved.
*
* IntCounter.java is part of SEMAFOR 2.0.
*
* SEMAFOR 2.0 is free software: you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
* Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* SEMAFOR 2.0 is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
* See the GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with SEMAFOR 2.0. If not, see <http://www.gnu.org/licenses/>.
******************************************************************************/
package edu.cmu.cs.lti.ark.util.ds.map;
import gnu.trove.TObjectIntHashMap;
import gnu.trove.TObjectIntIterator;
import gnu.trove.TObjectIntProcedure;
import java.util.Collection;
import java.util.HashSet;
import java.util.Map;
import java.util.Set;
/**
* Simple integer counter: stores integer values for keys; lookup on nonexistent keys returns 0.
* Stores the sum of all values and provides methods for normalizing them.
*
* A {@code null} key is allowed, although the Iterator returned by {@link #getIterator()}
* will not include an entry whose key is {@code null}.
*
* @author Nathan Schneider (nschneid)
* @since 2009-03-19
* @param <T> Type for keys
*/
public class IntCounter<T> extends AbstractCounter<T, Integer> implements java.io.Serializable {
private static final long serialVersionUID = -5622820446958578575L;
protected TObjectIntHashMap<T> m_map;
protected int m_sum = 0;
public final int DEFAULT_VALUE = 0;
public IntCounter() {
m_map = new TObjectIntHashMap<T>();
}
public IntCounter(TObjectIntHashMap<T> map) {
m_map = map;
int vals[] = map.getValues();
for (int val : vals) {
m_sum += val;
}
}
/**
* @param key
* @return The value stored for a particular key (if present), or 0 otherwise
*/
public int getT(T key) {
if (m_map.containsKey(key))
return m_map.get(key);
return DEFAULT_VALUE;
}
/** Calls {@link #getT(T)}; required for compliance with {@link Map} */
@SuppressWarnings("unchecked")
public Integer get(Object key) {
return getT((T)key);
}
/**
* @param key
* @param newValue
* @return Previous value for the key
*/
public int set(T key, int newValue) {
int preval = getT(key);
m_map.put(key, newValue);
m_sum += newValue - preval;
return preval;
}
/**
* Increments a value in the counter by 1.
* @param key
* @return The new value
*/
public int increment(T key) {
return incrementBy(key, 1);
}
/**
* Changes a value in the counter by adding the specified delta to its current value.
* @param key
* @param delta
* @return The new value
*/
public int incrementBy(T key, int delta) {
int curval = getT(key);
int newValue = curval+delta;
set(key, newValue);
return newValue;
}
/**
* Returns a new counter containing only keys with nonzero values in
* at least one of the provided counters. Each key's value is the
* number of counters in which it occurs.
*/
public static <T> IntCounter<T> or(Collection<IntCounter<? extends T>> counters) {
IntCounter<T> result = new IntCounter<T>();
for (IntCounter<? extends T> counter : counters) {
for (TObjectIntIterator<? extends T> iter = counter.getIterator();
iter.hasNext();) {
iter.advance();
if (iter.value()!=0)
result.increment(iter.key());
}
}
return result;
}
/**
* @return Sum of all values currently in the Counter
*/
public int getSum() {
return m_sum;
}
public IntCounter<T> add(final int val) {
final IntCounter<T> result = new IntCounter<T>();
m_map.forEachEntry(new TObjectIntProcedure<T>() {
private boolean first = true;
public boolean execute(T key, int value) {
if ( first ) first = false;
int newValue = value + val;
result.set(key, newValue);
return true;
}
});
return result;
}
/**
* @return Iterator for the counter. Ignores the {@code null} key (if present).
*/
public TObjectIntIterator<T> getIterator() {
return m_map.iterator();
}
@SuppressWarnings("unchecked")
public Set<T> keySet() {
Object[] okeys = m_map.keys();
HashSet<T> keyset = new HashSet<T>();
for(Object o:okeys) {
keyset.add((T)o);
}
return keyset;
}
/**
* @param valueThreshold
* @return New IntCounter containing only entries whose value equals or exceeds the given threshold
*/
public IntCounter<T> filter(int valueThreshold) {
IntCounter<T> result = new IntCounter<T>();
for (TObjectIntIterator<T> iter = getIterator();
iter.hasNext();) {
iter.advance();
T key = iter.key();
int value = getT(key);
if (value >= valueThreshold) {
result.set(key, value);
}
}
int nullValue = getT(null);
if (containsKey(null) && nullValue >= valueThreshold)
result.set(null, nullValue);
return result;
}
/** Calls {@link #containsKeyT(T)}; required for compliance with {@link Map} */
@SuppressWarnings("unchecked")
public boolean containsKey(Object key) {
return containsKeyT((T)key);
}
public boolean containsKeyT(T key) {
return m_map.containsKey(key);
}
public int size() {
return m_map.size();
}
public String toString() {
return toString(Integer.MIN_VALUE, null);
}
public String toString(int valueThreshold) {
return toString(valueThreshold, null);
}
/**
* @param sep Array with two Strings: an entry separator ("," by default, if this is {@code null}), and a key-value separator ("=" by default)
*/
public String toString(String[] sep) {
return toString(Integer.MIN_VALUE, sep);
}
/**
* @param valueThreshold
* @param sep Array with two Strings: an entry separator ("," by default, if this is {@code null}), and a key-value separator ("=" by default)
* @return A string representation of all (key, value) pairs such that the value equals or exceeds the given threshold
*/
public String toString(final int valueThreshold, String[] sep) {
String entrySep = ","; // default
String kvSep = "="; // default
if (sep!=null && sep.length>0) {
if (sep[0]!=null)
entrySep = sep[0];
if (sep.length>1 && sep[1]!=null)
kvSep = sep[1];
}
final String ENTRYSEP = entrySep;
final String KVSEP = kvSep;
final StringBuilder buf = new StringBuilder("{");
m_map.forEachEntry(new TObjectIntProcedure<T>() {
private boolean first = true;
public boolean execute(T key, int value) {
if (value >= valueThreshold) {
if ( first ) first = false;
else buf.append(ENTRYSEP);
buf.append(key);
buf.append(KVSEP);
buf.append(value);
}
return true;
}
});
buf.append("}");
return buf.toString();
}
public IntCounter<T> clone() {
return new IntCounter<T>(m_map.clone());
}
// Other methods implemented by the Map interface
@Override
public void clear() {
throw new UnsupportedOperationException("IntCounter.clear() unsupported");
}
@Override
public boolean containsValue(Object value) {
return m_map.containsValue((Integer)value);
}
@Override
public Set<java.util.Map.Entry<T, Integer>> entrySet() {
throw new UnsupportedOperationException("IntCounter.entrySet() unsupported");
}
@Override
public boolean isEmpty() {
return m_map.isEmpty();
}
@Override
public Integer put(T key, Integer value) {
return set(key,value);
}
@Override
public void putAll(Map<? extends T, ? extends Integer> m) {
throw new UnsupportedOperationException("IntCounter.putAll() unsupported");
}
@Override
public Integer remove(Object key) {
throw new UnsupportedOperationException("IntCounter.remove() unsupported");
}
@Override
public Collection<Integer> values() {
throw new UnsupportedOperationException("IntCounter.values() unsupported");
}
}
| Java |
/************************************************************************/
/* */
/* FramepaC -- frame manipulation in C++ */
/* Version 2.01 */
/* by Ralf Brown <ralf@cs.cmu.edu> */
/* */
/* File frsymbol.h class FrSymbol */
/* LastEdit: 08nov2015 */
/* */
/* (c) Copyright 1994,1995,1996,1997,1998,2000,2001,2009,2012,2015 */
/* Ralf Brown/Carnegie Mellon University */
/* This program is free software; you can redistribute it and/or */
/* modify it under the terms of the GNU Lesser General Public */
/* License as published by the Free Software Foundation, */
/* version 3. */
/* */
/* This program is distributed in the hope that it will be */
/* useful, but WITHOUT ANY WARRANTY; without even the implied */
/* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR */
/* PURPOSE. See the GNU Lesser General Public License for more */
/* details. */
/* */
/* You should have received a copy of the GNU Lesser General */
/* Public License (file COPYING) and General Public License (file */
/* GPL.txt) along with this program. If not, see */
/* http://www.gnu.org/licenses/ */
/* */
/************************************************************************/
#ifndef __FRSYMBOL_H_INCLUDED
#define __FRSYMBOL_H_INCLUDED
#ifndef __FRLIST_H_INCLUDED
#include "frlist.h"
#endif
#include <string.h>
#if defined(__GNUC__)
# pragma interface
#endif
/**********************************************************************/
/* Optional Demon support */
/**********************************************************************/
typedef bool FrDemonFunc(const FrSymbol *frame, const FrSymbol *slot,
const FrSymbol *facet, const FrObject *value,
va_list args) ;
enum FrDemonType
{
DT_IfCreated, DT_IfAdded, DT_IfRetrieved, DT_IfMissing, DT_IfDeleted
} ;
struct FrDemonList ;
struct FrDemons
{
FrDemonList *if_created ; // demons to call just after creating facet
FrDemonList *if_added ; // demons to call just before adding filler
FrDemonList *if_missing ; // demons to call before attempting inheritance
FrDemonList *if_retrieved ; // demons to call just before returning filler
FrDemonList *if_deleted ; // demons to call just after deleting filler
void *operator new(size_t size) { return FrMalloc(size) ; }
void operator delete(void *obj) { FrFree(obj) ; }
} ;
/**********************************************************************/
/**********************************************************************/
#ifdef FrSYMBOL_RELATION
# define if_FrSYMBOL_RELATION(x) x
#else
# define if_FrSYMBOL_RELATION(x)
#endif
#ifdef FrSYMBOL_VALUE
# define if_FrSYMBOL_VALUE(x) x
#else
# define if_FrSYMBOL_VALUE(x)
#endif
#ifdef FrDEMONS
# define if_FrDEMONS(x) x
#else
# define if_FrDEMONS(x)
#endif
FrSymbol *findSymbol(const char *name) ;
class FrSymbol : public FrAtom
{
private:
FrFrame *m_frame ; // in lieu of a full property list,
if_FrSYMBOL_RELATION(FrSymbol *m_inv_relation) ;// we have these 2 ptrs
if_FrSYMBOL_VALUE(FrObject *m_value) ;
if_FrDEMONS(FrDemons *theDemons) ;
char m_name[1] ; //__attribute__((bnd_variable_size)) ;
private: // methods
void setInvRelation(FrSymbol *inv)
{
(void)inv ; if_FrSYMBOL_RELATION(m_inv_relation = inv) ;
}
void setDemons(FrDemons *d)
{
(void)d ; if_FrDEMONS(theDemons = d) ;
}
void *operator new(size_t size,void *where)
{ (void)size; return where ; }
FrSymbol(const char *symname,int len)
// private use for FramepaC only //
{ memcpy(m_name,(char *)symname,len) ;
if_FrSYMBOL_VALUE(m_value = &UNBOUND) ;
setFrame(0) ;
setInvRelation(0) ;
setDemons(0) ;
}
public:
FrSymbol() _fnattr_noreturn ;
virtual ~FrSymbol() _fnattr_noreturn ;
void *operator new(size_t size) { return FrMalloc(size) ; }
void operator delete(void *sym, size_t) { FrFree(sym) ; }
virtual FrObjectType objType() const ;
virtual const char *objTypeName() const ;
virtual FrObjectType objSuperclass() const ;
virtual ostream &printValue(ostream &output) const ;
virtual char *displayValue(char *buffer) const ;
virtual size_t displayLength() const ;
virtual void freeObject() {} // can never free a FrSymbol
virtual long int intValue() const ;
virtual const char *printableName() const ;
virtual FrSymbol *coerce2symbol(FrCharEncoding) const
{ return (FrSymbol*)this ; }
virtual bool symbolp() const ;
virtual size_t length() const ;
virtual int compare(const FrObject *obj) const ;
FrSymbol *makeSymbol(const char *nam) const ;
FrSymbol *findSymbol(const char *nam) const ;
const char *symbolName() const { return m_name ; }
static bool nameNeedsQuoting(const char *name) ;
FrFrame *symbolFrame() const { return m_frame ; }
ostream &printBinding(ostream &output) const ;
#ifdef FrSYMBOL_VALUE
void setValue(const FrObject *newval) { m_value = (FrObject *)newval; }
FrObject *symbolValue() const { return m_value ; }
#else
void setValue(const FrObject *newval) ;
FrObject *symbolValue() const ;
#endif /* FrSYMBOL_VALUE */
#ifdef FrDEMONS
FrDemons *demons() const { return theDemons ; }
bool addDemon(FrDemonType type,FrDemonFunc *func, va_list args = 0) ;
bool removeDemon(FrDemonType type, FrDemonFunc *func) ;
#else
FrDemons *demons() const { return 0 ; }
bool addDemon(FrDemonType,FrDemonFunc,va_list=0) { return false ; }
bool removeDemon(FrDemonType,FrDemonFunc) { return false ; }
#endif /* FrDEMONS */
void setFrame(const FrFrame *fr) { m_frame = (FrFrame *)fr ; }
void defineRelation(const FrSymbol *inverse) ;
void undefineRelation() ;
#ifdef FrSYMBOL_RELATION
FrSymbol *inverseRelation() const { return m_inv_relation ; }
#else
FrSymbol *inverseRelation() const { return 0 ; }
#endif /* FrSYMBOL_RELATION */
//functions to support VFrames
FrFrame *createFrame() ;
FrFrame *createVFrame() ;
FrFrame *createInstanceFrame() ;
bool isFrame() ;
bool isDeletedFrame() ;
FrFrame *findFrame() ;
int startTransaction() ;
int endTransaction(int transaction) ;
int abortTransaction(int transaction) ;
FrFrame *lockFrame() ;
static bool lockFrames(FrList *locklist) ;
bool unlockFrame() ;
static bool unlockFrames(FrList *locklist) ;
bool isLocked() const ;
bool emptyFrame() ;
bool dirtyFrame() ;
int commitFrame() ;
int discardFrame() ;
int deleteFrame() ;
FrFrame *oldFrame(int generation) ;
FrFrame *copyFrame(FrSymbol *newframe, bool temporary = false) ;
bool renameFrame(FrSymbol *newname) ;
FrSlot *createSlot(const FrSymbol *slotname) ;
void createFacet(const FrSymbol *slotname, const FrSymbol *facetname) ;
void addFiller(const FrSymbol *slotname,const FrSymbol *facet,
const FrObject *filler) ;
void addValue(const FrSymbol *slotname, const FrObject *filler) ;
void addSem(const FrSymbol *slotname, const FrObject *filler) ;
void addFillers(const FrSymbol *slotname,const FrSymbol *facet,
const FrList *fillers);
void addValues(const FrSymbol *slotname, const FrList *fillers) ;
void addSems(const FrSymbol *slotname, const FrList *fillers) ;
void pushFiller(const FrSymbol *slotname,const FrSymbol *facet,
const FrObject *filler) ;
FrObject *popFiller(const FrSymbol *slotname, const FrSymbol *facet) ;
void replaceFiller(const FrSymbol *slotname, const FrSymbol *facetname,
const FrObject *old, const FrObject *newfiller) ;
void replaceFiller(const FrSymbol *slotname, const FrSymbol *facetname,
const FrObject *old, const FrObject *newfiller,
FrCompareFunc cmp) ;
void replaceFacet(const FrSymbol *slotname, const FrSymbol *facet,
const FrList *newfillers) ;
void eraseFrame() ;
void eraseCopyFrame() ;
void eraseSlot(const char *slotname) ;
void eraseSlot(const FrSymbol *slotname) ;
void eraseFacet(const FrSymbol *slotname,const FrSymbol *facetname) ;
void eraseFiller(const FrSymbol *slotname,const FrSymbol *facetname,
const FrObject *filler) ;
void eraseFiller(const FrSymbol *slotname,const FrSymbol *facetname,
const FrObject *filler,FrCompareFunc cmp) ;
void eraseSem(const FrSymbol *slotname, const FrObject *filler) ;
void eraseSem(const FrSymbol *slotname, const FrObject *filler,
FrCompareFunc cmp) ;
void eraseValue(const FrSymbol *slotname, const FrObject *filler) ;
void eraseValue(const FrSymbol *slotname, const FrObject *filler,
FrCompareFunc cmp) ;
// const FrList *getImmedFillers(const FrSymbol *slotname,
// const FrSymbol *facet) const ;
const FrList *getFillers(const FrSymbol *slotname,
const FrSymbol *facet, bool inherit = true) ;
FrObject *firstFiller(const FrSymbol *slotname,const FrSymbol *facet,
bool inherit = true) ;
const FrList *getValues(const FrSymbol *slotname,bool inherit = true) ;
FrObject *getValue(const FrSymbol *slotname,bool inherit=true) ;
const FrList *getSem(const FrSymbol *slotname,bool inherit = true) ;
bool isA_p(FrSymbol *poss_parent) ;
bool partOf_p(FrSymbol *poss_container) ;
FrList *collectSlots(FrInheritanceType inherit,FrList *allslots=0,
bool include_names = false) ;
void inheritAll() ;
void inheritAll(FrInheritanceType inherit) ;
FrList *allSlots() const ;
FrList *slotFacets(const FrSymbol *slotname) const ;
bool doSlots(bool (*func)(const FrFrame *frame,
const FrSymbol *slot, va_list args),
va_list args) ;
bool doFacets(const FrSymbol *slotname,
bool (*func)(const FrFrame *frame,
const FrSymbol *slot,
const FrSymbol *facet, va_list args),
va_list args) ;
bool doAllFacets(bool (*func)(const FrFrame *frame,
const FrSymbol *slot,
const FrSymbol *facet, va_list args),
va_list args) ;
//overloaded operators
int operator == (const char *symname) const
{ return (FrSymbol *)this == findSymbol(symname) ; }
int operator != (const char *symname) const
{ return (FrSymbol *)this != findSymbol(symname) ; }
operator char* () const { return (char*)symbolName() ; }
//friends
friend class FrSymbolTable ;
} ;
//----------------------------------------------------------------------
// non-member functions related to class FrSymbol
FrSymbol *read_Symbol(istream &input) ;
FrSymbol *string_to_Symbol(const char *&input) ;
bool verify_Symbol(const char *&input, bool strict = false) ;
FrSymbol *makeSymbol(const FrSymbol *sym) ; // copy from another symbol table
FrSymbol *gensym(const char *basename = 0, const char *suffix = 0) ;
FrSymbol *gensym(const FrSymbol *basename) ;
void define_relation(const char *relname,const char *invname) ;
void undefine_relation(const char *relname) ;
/**********************************************************************/
/* Optional Demon support */
/**********************************************************************/
#ifdef FrDEMONS
inline bool add_demon(FrSymbol *sym, FrDemonType type,
FrDemonFunc *func,va_list args)
{ return (sym) ? sym->addDemon(type,func,args) : false ; }
inline bool remove_demon(FrSymbol *sym, FrDemonType type, FrDemonFunc *func)
{ return (sym) ? sym->removeDemon(type,func) : false ; }
#endif /* FrDEMONS */
/**********************************************************************/
/* overloaded operators (non-member functions) */
/**********************************************************************/
inline istream &operator >> (istream &input,FrSymbol *&obj)
{
FramepaC_bgproc() ;
obj = read_Symbol(input) ;
return input ;
}
#endif /* !__FRSYMBOL_H_INCLUDED */
// end of file frsymbol.h //
| Java |
<?php
/**
* Custom factory for photos with method to get next sort order
*
* @package Modules
* @subpackage PhotoGallery
* @author Peter Epp
* @version $Id: photo_factory.php 13843 2011-07-27 19:45:49Z teknocat $
*/
class PhotoFactory extends ModelFactory {
/**
* Find and return the next sort order to use
*
* @return void
* @author Peter Epp
*/
public function next_sort_order($album_id) {
return parent::next_highest('sort_order',1,"`album_id` = {$album_id}");
}
}
| Java |
/*
* Copyright (C) 2010 Tieto Czech, s.r.o.
* All rights reserved.
* Contact: Tomáš Hanák <tomas.hanak@tieto.com>
* Radek Valášek <radek.valasek@tieto.com>
* Martin Kampas <martin.kampas@tieto.com>
* Jiří Litomyský <jiri.litomysky@tieto.com>
*
* This file is part of sfd [Simple Form Designer].
*
* SFD is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or (at
* your option) any later version.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
/*! \file
* \brief This is an automatically included header file.
*
* This file should mostly contain imports of things defined somewhere else.
* Usual piece of code put in this file is supposed to looks like
*
* \code
#include "path/to/some/header/file.hpp"
namespace sfd {
using some::symbol;
using some::other_symbol;
}
* \endcode
*
* \author Martin Kampas <martin.kampas@tieto.com>, 01/2010
*/
#pragma once
//////////////////////////////////////////////////////////////////////////////
// IMPORTS
#include "tools/PIMPL.hpp"
namespace sfd {
using tools::p_ptr;
}
//////////////////////////////////////////////////////////////////////////////
// OTHER STUFF
//! Redefinition to make use of GCC's __PRETTY_FUNCTION__
#define __func__ __PRETTY_FUNCTION__
//! Use it to mark deprecated symbols
#define SFD_DEPRECATED __attribute__((deprecated))
#include <QtCore/QDebug>
| Java |
/*
Copyright 2013-2021 Paul Colby
This file is part of QtAws.
QtAws is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
QtAws is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with the QtAws. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef QTAWS_STARTONDEMANDAPPREPLICATIONRESPONSE_P_H
#define QTAWS_STARTONDEMANDAPPREPLICATIONRESPONSE_P_H
#include "smsresponse_p.h"
namespace QtAws {
namespace SMS {
class StartOnDemandAppReplicationResponse;
class StartOnDemandAppReplicationResponsePrivate : public SmsResponsePrivate {
public:
explicit StartOnDemandAppReplicationResponsePrivate(StartOnDemandAppReplicationResponse * const q);
void parseStartOnDemandAppReplicationResponse(QXmlStreamReader &xml);
private:
Q_DECLARE_PUBLIC(StartOnDemandAppReplicationResponse)
Q_DISABLE_COPY(StartOnDemandAppReplicationResponsePrivate)
};
} // namespace SMS
} // namespace QtAws
#endif
| Java |
/*
* Project: NextGIS Mobile
* Purpose: Mobile GIS for Android.
* Author: Dmitry Baryshnikov (aka Bishop), bishop.dev@gmail.com
* Author: NikitaFeodonit, nfeodonit@yandex.com
* Author: Stanislav Petriakov, becomeglory@gmail.com
* *****************************************************************************
* Copyright (c) 2015-2017, 2019 NextGIS, info@nextgis.com
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser Public License for more details.
*
* You should have received a copy of the GNU Lesser Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.nextgis.maplib.util;
import android.accounts.Account;
import android.annotation.TargetApi;
import android.content.ContentResolver;
import android.content.Context;
import android.content.SyncInfo;
import android.os.Build;
import android.util.Base64;
import com.nextgis.maplib.api.IGISApplication;
import org.json.JSONException;
import org.json.JSONObject;
import java.io.File;
import java.io.IOException;
import java.security.KeyFactory;
import java.security.PublicKey;
import java.security.Signature;
import java.security.spec.X509EncodedKeySpec;
import static com.nextgis.maplib.util.Constants.JSON_END_DATE_KEY;
import static com.nextgis.maplib.util.Constants.JSON_SIGNATURE_KEY;
import static com.nextgis.maplib.util.Constants.JSON_START_DATE_KEY;
import static com.nextgis.maplib.util.Constants.JSON_SUPPORTED_KEY;
import static com.nextgis.maplib.util.Constants.JSON_USER_ID_KEY;
import static com.nextgis.maplib.util.Constants.SUPPORT;
public class AccountUtil {
public static boolean isProUser(Context context) {
File support = context.getExternalFilesDir(null);
if (support == null)
support = new File(context.getFilesDir(), SUPPORT);
else
support = new File(support, SUPPORT);
try {
String jsonString = FileUtil.readFromFile(support);
JSONObject json = new JSONObject(jsonString);
if (json.optBoolean(JSON_SUPPORTED_KEY)) {
final String id = json.getString(JSON_USER_ID_KEY);
final String start = json.getString(JSON_START_DATE_KEY);
final String end = json.getString(JSON_END_DATE_KEY);
final String data = id + start + end + "true";
final String signature = json.getString(JSON_SIGNATURE_KEY);
return verifySignature(data, signature);
}
} catch (JSONException | IOException ignored) { }
return false;
}
private static boolean verifySignature(String data, String signature) {
try {
// add public key
KeyFactory keyFactory = KeyFactory.getInstance("RSA");
String key = "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAzbmnrTLjTLxqCnIqXgIJ\n" +
"jebXVOn4oV++8z5VsBkQwK+svDkGK/UcJ4YjXUuPqyiZwauHGy1wizGCgVIRcPNM\n" +
"I0n9W6797NMFaC1G6Rp04ISv7DAu0GIZ75uDxE/HHDAH48V4PqQeXMp01Uf4ttti\n" +
"XfErPKGio7+SL3GloEqtqGbGDj6Yx4DQwWyIi6VvmMsbXKmdMm4ErczWFDFHIxpV\n" +
"ln/VfX43r/YOFxqt26M7eTpaBIvAU6/yWkIsvidMNL/FekQVTiRCl/exPgioDGrf\n" +
"06z5a0sd3NDbS++GMCJstcKxkzk5KLQljAJ85Jciiuy2vv14WU621ves8S9cMISO\n" + "HwIDAQAB";
byte[] keyBytes = Base64.decode(key.getBytes("UTF-8"), Base64.DEFAULT);
X509EncodedKeySpec spec = new X509EncodedKeySpec(keyBytes);
PublicKey publicKey = keyFactory.generatePublic(spec);
// verify signature
Signature signCheck = Signature.getInstance("SHA256withRSA");
signCheck.initVerify(publicKey);
signCheck.update(data.getBytes("UTF-8"));
byte[] sigBytes = Base64.decode(signature, Base64.DEFAULT);
return signCheck.verify(sigBytes);
} catch (Exception e) {
return false;
}
}
public static boolean isSyncActive(Account account, String authority) {
return isSyncActiveHoneycomb(account, authority);
}
public static boolean isSyncActiveHoneycomb(Account account, String authority) {
for (SyncInfo syncInfo : ContentResolver.getCurrentSyncs()) {
if (syncInfo.account.equals(account) && syncInfo.authority.equals(authority)) {
return true;
}
}
return false;
}
public static AccountData getAccountData(Context context, String accountName) throws IllegalStateException {
IGISApplication app = (IGISApplication) context.getApplicationContext();
Account account = app.getAccount(accountName);
if (null == account) {
throw new IllegalStateException("Account is null");
}
AccountData accountData = new AccountData();
accountData.url = app.getAccountUrl(account);
accountData.login = app.getAccountLogin(account);
accountData.password = app.getAccountPassword(account);
return accountData;
}
public static class AccountData {
public String url;
public String login;
public String password;
}
}
| Java |
package edu.ucsd.arcum.interpreter.ast;
import java.util.List;
import java.util.Set;
import org.eclipse.core.runtime.CoreException;
import com.google.common.collect.Lists;
import com.google.common.collect.Sets;
import edu.ucsd.arcum.exceptions.ArcumError;
import edu.ucsd.arcum.exceptions.SourceLocation;
import edu.ucsd.arcum.interpreter.ast.expressions.ConstraintExpression;
import edu.ucsd.arcum.interpreter.query.EntityDataBase;
import edu.ucsd.arcum.interpreter.query.OptionMatchTable;
import edu.ucsd.arcum.util.StringUtil;
public class MapTraitArgument extends MapNameValueBinding
{
private RequireMap map;
private ConstraintExpression patternExpr;
private List<FormalParameter> formals;
// TODO: paramNames should be allowed to have the types explicit, just like
// any other realize statement
public MapTraitArgument(SourceLocation location, RequireMap map, String traitName,
List<FormalParameter> formals, ConstraintExpression patternExpr)
{
super(location, traitName);
this.map = map;
this.patternExpr = patternExpr;
this.formals = formals;
}
public void initializeValue(EntityDataBase edb, Option option, OptionMatchTable table)
throws CoreException
{
StaticRealizationStatement pseudoStmt;
OptionInterface optionIntf = option.getOptionInterface();
List<FormalParameter> allParams = optionIntf.getSingletonParameters();
List<FormalParameter> formals = null;
for (FormalParameter param : allParams) {
if (param.getIdentifier().equals(getName())) {
formals = param.getTraitArguments();
break;
}
}
if (formals == null) {
ArcumError.fatalUserError(getLocation(), "Couldn't find %s", getName());
}
pseudoStmt = StaticRealizationStatement.makeNested(map, getName(), patternExpr,
formals, this.getLocation());
pseudoStmt.typeCheckAndValidate(optionIntf);
List<StaticRealizationStatement> stmts = Lists.newArrayList(pseudoStmt);
try {
EntityDataBase.pushCurrentDataBase(edb);
RealizationStatement.collectivelyRealizeStatements(stmts, edb, table);
}
finally {
EntityDataBase.popMostRecentDataBase();
}
}
@Override public Object getValue() {
return this;
}
@Override public String toString() {
return String.format("%s(%s): %s", getName(), StringUtil.separate(formals),
patternExpr.toString());
}
public void checkUserDefinedPredicates(List<TraitSignature> tupleSets) {
Set<String> names = Sets.newHashSet();
names.addAll(Lists.transform(formals, FormalParameter.getIdentifier));
patternExpr.checkUserDefinedPredicates(tupleSets, names);
}
} | Java |
package edu.hm.gamedev.server.packets.client2server;
import org.codehaus.jackson.annotate.JsonCreator;
import org.codehaus.jackson.annotate.JsonProperty;
import edu.hm.gamedev.server.packets.Packet;
import edu.hm.gamedev.server.packets.Type;
public class JoinGame extends Packet {
private final String gameName;
@JsonCreator
public JoinGame(@JsonProperty("gameName") String gameName) {
super(Type.JOIN_GAME);
this.gameName = gameName;
}
public String getGameName() {
return gameName;
}
@Override
public String toString() {
return "JoinGame{" +
"gameName='" + gameName + '\'' +
'}';
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
if (!super.equals(o)) {
return false;
}
JoinGame joinGame = (JoinGame) o;
if (gameName != null ? !gameName.equals(joinGame.gameName) : joinGame.gameName != null) {
return false;
}
return true;
}
@Override
public int hashCode() {
int result = super.hashCode();
result = 31 * result + (gameName != null ? gameName.hashCode() : 0);
return result;
}
}
| Java |
#!/usr/bin/env python
import sys, argparse
def main():
parser = argparse.ArgumentParser()
parser.add_argument('-i', '--input', type=str, action='store', dest='input', default=None, help="Input file")
args = parser.parse_args()
stats = dict()
if args.input is None:
print "Error: No input file"
with open(args.input) as in_file:
for line in in_file.readlines():
time = int(line.split()[0])
tx_bytes = int(line.split()[1])
stats[time] = tx_bytes
stats = sorted(stats.items())
start_time = stats[0][0]
prev_tx = stats[0][1]
no_traffic_flag = True
for time, tx_bytes in stats:
if no_traffic_flag:
if tx_bytes > (prev_tx+100000):
no_traffic_flag = False
start_time, prev_tx = time, tx_bytes
else:
print (time-start_time), (tx_bytes-prev_tx)
prev_tx = tx_bytes
if __name__ == "__main__":
main()
| Java |
// Copyright 2017 The AriseID Authors
// This file is part AriseID.
//
// AriseID free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// AriseID distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with AriseID. If not, see <http://www.gnu.org/licenses/>.
package main
import (
"bytes"
"fmt"
"math/big"
"math/rand"
"time"
"github.com/ariseid/ariseid-core/common"
"github.com/ariseid/ariseid-core/core"
"github.com/ariseid/ariseid-core/log"
"github.com/ariseid/ariseid-core/params"
)
// makeGenesis creates a new genesis struct based on some user input.
func (w *wizard) makeGenesis() {
// Construct a default genesis block
genesis := &core.Genesis{
Timestamp: uint64(time.Now().Unix()),
LifeLimit: 4700000,
Difficulty: big.NewInt(1048576),
Alloc: make(core.GenesisAlloc),
Config: ¶ms.ChainConfig{
HomesteadBlock: big.NewInt(1),
EIP150Block: big.NewInt(2),
EIP155Block: big.NewInt(3),
EIP158Block: big.NewInt(3),
},
}
// Figure out which consensus engine to choose
fmt.Println()
fmt.Println("Which consensus engine to use? (default = clique)")
fmt.Println(" 1. Idhash - proof-of-work")
fmt.Println(" 2. Clique - proof-of-authority")
choice := w.read()
switch {
case choice == "1":
// In case of idhash, we're pretty much done
genesis.Config.Idhash = new(params.IdhashConfig)
genesis.ExtraData = make([]byte, 32)
case choice == "" || choice == "2":
// In the case of clique, configure the consensus parameters
genesis.Difficulty = big.NewInt(1)
genesis.Config.Clique = ¶ms.CliqueConfig{
Period: 15,
Epoch: 30000,
}
fmt.Println()
fmt.Println("How many seconds should blocks take? (default = 15)")
genesis.Config.Clique.Period = uint64(w.readDefaultInt(15))
// We also need the initial list of signers
fmt.Println()
fmt.Println("Which accounts are allowed to seal? (mandatory at least one)")
var signers []common.Address
for {
if address := w.readAddress(); address != nil {
signers = append(signers, *address)
continue
}
if len(signers) > 0 {
break
}
}
// Sort the signers and embed into the extra-data section
for i := 0; i < len(signers); i++ {
for j := i + 1; j < len(signers); j++ {
if bytes.Compare(signers[i][:], signers[j][:]) > 0 {
signers[i], signers[j] = signers[j], signers[i]
}
}
}
genesis.ExtraData = make([]byte, 32+len(signers)*common.AddressLength+65)
for i, signer := range signers {
copy(genesis.ExtraData[32+i*common.AddressLength:], signer[:])
}
default:
log.Crit("Invalid consensus engine choice", "choice", choice)
}
// Consensus all set, just ask for initial funds and go
fmt.Println()
fmt.Println("Which accounts should be pre-funded? (advisable at least one)")
for {
// Read the address of the account to fund
if address := w.readAddress(); address != nil {
genesis.Alloc[*address] = core.GenesisAccount{
Balance: new(big.Int).Lsh(big.NewInt(1), 256-7), // 2^256 / 128 (allow many pre-funds without balance overflows)
}
continue
}
break
}
// Add a batch of precompile balances to avoid them getting deleted
for i := int64(0); i < 256; i++ {
genesis.Alloc[common.BigToAddress(big.NewInt(i))] = core.GenesisAccount{Balance: big.NewInt(1)}
}
fmt.Println()
// Query the user for some custom extras
fmt.Println()
fmt.Println("Specify your chain/network ID if you want an explicit one (default = random)")
genesis.Config.ChainId = new(big.Int).SetUint64(uint64(w.readDefaultInt(rand.Intn(65536))))
fmt.Println()
fmt.Println("Anything fun to embed into the genesis block? (max 32 bytes)")
extra := w.read()
if len(extra) > 32 {
extra = extra[:32]
}
genesis.ExtraData = append([]byte(extra), genesis.ExtraData[len(extra):]...)
// All done, store the genesis and flush to disk
w.conf.genesis = genesis
}
| Java |
@echo off
rem HTMLParser Library - A java-based parser for HTML
rem http:remhtmlparser.org
rem Copyright (C) 2006 Derrick Oswald
rem
rem Revision Control Information
rem
rem $URL: file:///svn/p/htmlparser/code/tags/HTMLParserProject-2.1/src/main/bin/beanybaby.cmd $
rem $Author: derrickoswald $
rem $Date: 2006-09-16 14:44:17 +0000 (Sat, 16 Sep 2006) $
rem $Revision: 4 $
rem
rem This library is free software; you can redistribute it and/or
rem modify it under the terms of the Common Public License; either
rem version 1.0 of the License, or (at your option) any later version.
rem
rem This library is distributed in the hope that it will be useful,
rem but WITHOUT ANY WARRANTY; without even the implied warranty of
rem MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
rem Common Public License for more details.
rem
rem You should have received a copy of the Common Public License
rem along with this library; if not, the license is available from
rem the Open Source Initiative (OSI) website:
rem http://opensource.org/licenses/cpl1.0.php
rem
setlocal enableextensions
if errorlevel 1 goto no_extensions_error
for %%i in ("%0") do set cmd_path=%%~dpi
for /D %%i in ("%cmd_path%..\lib\") do set lib_path=%%~dpi
if not exist "%lib_path%htmllexer.jar" goto no_htmllexer_jar_error
if not exist "%lib_path%htmlparser.jar" goto no_htmlparser_jar_error
for %%i in (java.exe) do set java_executable=%%~$PATH:i
if "%java_executable%"=="" goto no_java_error
@echo on
%java_executable% -classpath "%lib_path%htmlparser.jar;%lib_path%htmllexer.jar" org.htmlparser.beans.BeanyBaby %1 %2
@echo off
goto end
:no_extensions_error
echo Unable to use CMD extensions
goto end
:no_htmllexer_jar_error
echo Unable to find htmllexer.jar
goto end
:no_htmlparser_jar_error
echo Unable to find htmlparser.jar
goto end
:no_java_error
echo Unable to find java.exe
goto end
:end
| Java |
package uk.co.wehavecookies56.kk.common.container.slot;
import net.minecraft.item.ItemStack;
import net.minecraftforge.items.IItemHandler;
import net.minecraftforge.items.SlotItemHandler;
import uk.co.wehavecookies56.kk.common.item.ItemSynthesisBagS;
import uk.co.wehavecookies56.kk.common.item.base.ItemSynthesisMaterial;
public class SlotSynthesisBag extends SlotItemHandler {
public SlotSynthesisBag (IItemHandler inventory, int index, int x, int y) {
super(inventory, index, x, y);
}
@Override
public boolean isItemValid (ItemStack stack) {
return !(stack.getItem() instanceof ItemSynthesisBagS) && stack.getItem() instanceof ItemSynthesisMaterial;
}
}
| Java |
/*
* SonarQube
* Copyright (C) 2009-2022 SonarSource SA
* mailto:info AT sonarsource DOT com
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3 of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this program; if not, write to the Free Software Foundation,
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
package org.sonar.duplications.statement;
import org.sonar.duplications.statement.matcher.AnyTokenMatcher;
import org.sonar.duplications.statement.matcher.BridgeTokenMatcher;
import org.sonar.duplications.statement.matcher.ExactTokenMatcher;
import org.sonar.duplications.statement.matcher.ForgetLastTokenMatcher;
import org.sonar.duplications.statement.matcher.OptTokenMatcher;
import org.sonar.duplications.statement.matcher.TokenMatcher;
import org.sonar.duplications.statement.matcher.UptoTokenMatcher;
public final class TokenMatcherFactory {
private TokenMatcherFactory() {
}
public static TokenMatcher from(String token) {
return new ExactTokenMatcher(token);
}
public static TokenMatcher to(String... tokens) {
return new UptoTokenMatcher(tokens);
}
public static TokenMatcher bridge(String lToken, String rToken) {
return new BridgeTokenMatcher(lToken, rToken);
}
public static TokenMatcher anyToken() {
// TODO Godin: we can return singleton instance
return new AnyTokenMatcher();
}
public static TokenMatcher opt(TokenMatcher optMatcher) {
return new OptTokenMatcher(optMatcher);
}
public static TokenMatcher forgetLastToken() {
// TODO Godin: we can return singleton instance
return new ForgetLastTokenMatcher();
}
public static TokenMatcher token(String token) {
return new ExactTokenMatcher(token);
}
}
| Java |
package com.farevee.groceries;
public class BulkItem
implements Item
{
//+--------+------------------------------------------------------
// | Fields |
// +--------+
/**
* The type of food of the bulk item
*/
BulkFood food;
/**
* The unit of the bulk item
*/
Units unit;
/**
* The amount of bulk item
*/
int amount;
// +--------------+------------------------------------------------
// | Constructor |
// +--------------+
public BulkItem(BulkFood food, Units unit, int amount)
{
this.food = food;
this.unit = unit;
this.amount = amount;
} // BulkItem (BulkFood, Units, int)
//+-----------+---------------------------------------------------
// | Methods |
// +-----------+
/**
* Retrieve the Weight of BulkItem, including unit and amount
*/
public Weight getWeight()
{
return new Weight(this.unit, this.amount);
}//getWeight()
/**
* Retrieve the amount of Weight of BulkItem
*/
@Override
public int getWeightAmount()
{
return this.getWeight().amount;
}//getWeightAmount()
//Get the unit of weight
@Override
public Units getWeightUnit()
{
return this.unit;
}//getWeightUnit()
//Get the price
public int getPrice()
{
return this.food.pricePerUnit * this.amount;
}//getPrice()
//Creates a string for the name
public String toString()
{
return (amount + " " + unit.name + " of " + food.name);
}//toString()
//Gets the name
@Override
public String getName()
{
return this.food.name;
}//getName()
//Get the type of BulkFood
public BulkFood getBulkFoodType()
{
return this.food;
}//getBulkFoodType()
//Get the amount of BulkItem
public int getBulkItemAmount()
{
return this.amount;
}//getBulkItemAmount()
//Compares two BulkItem
public boolean equalZ(Object thing)
{
if (thing instanceof BulkItem)
{
BulkItem anotherBulkItem = (BulkItem) thing;
return ((this.food.name.equals(anotherBulkItem.food.name)) && (this.unit.name.equals(anotherBulkItem.unit.name)));
}
else
{
return Boolean.FALSE;
}
}//equals(Object)
public void increaseAmount(int x)
{
this.amount += x;
}//increaseAmount(int)
}
| Java |
/********************************************************************
** Image Component Library (ICL) **
** **
** Copyright (C) 2006-2013 CITEC, University of Bielefeld **
** Neuroinformatics Group **
** Website: www.iclcv.org and **
** http://opensource.cit-ec.de/projects/icl **
** **
** File : ICLFilter/src/ICLFilter/InplaceLogicalOp.h **
** Module : ICLFilter **
** Authors: Christof Elbrechter **
** **
** **
** GNU LESSER GENERAL PUBLIC LICENSE **
** This file may be used under the terms of the GNU Lesser General **
** Public License version 3.0 as published by the **
** **
** Free Software Foundation and appearing in the file LICENSE.LGPL **
** included in the packaging of this file. Please review the **
** following information to ensure the license requirements will **
** be met: http://www.gnu.org/licenses/lgpl-3.0.txt **
** **
** The development of this software was supported by the **
** Excellence Cluster EXC 277 Cognitive Interaction Technology. **
** The Excellence Cluster EXC 277 is a grant of the Deutsche **
** Forschungsgemeinschaft (DFG) in the context of the German **
** Excellence Initiative. **
** **
********************************************************************/
#pragma once
#include <ICLUtils/CompatMacros.h>
#include <ICLFilter/InplaceOp.h>
namespace icl{
namespace filter{
/// Filter class for logical in-place operations \ingroup INPLACE
/** The InplaceLogicalOp class provides functionalities for
arbitrary logical in-place operations on images. The operator
can be set to implement a certain operation using a given
optype value. Logical (non-bit-wise) operations result in
images of value 0 or 255.\n
Operation list can be split into two sections:
- pure logical operations (AND OR XOR and NOT)
- bit-wise operations (bit-wise-AND bit-wise-OR bit-wise-XOR and bit-wise-NOT)
Pure Logical operations are available for all types; bit-wise operations
make no sense on floating point data, hence these operations are available
for integer types only.
Supported operator types (implementation on pixel value P and operator value
V in braces)
- <b>andOp</b> "logical and" ((P&&V)*255)
- <b>orOp</b> "logical or" ((P||V)*255)
- <b>xorOp</b> "logical and" ((!!P xor !!V)*255)
- <b>notOp</b> "logical not" ((!P)*255) operator value is not used in this case
- <b>binAndOp</b> "binary and" (P&V) [integer types only]
- <b>binOrOp</b> "binary or" ((P|V) [integer types only]
- <b>binXorOp</b> "binary and" (P^V) [integer types only]
- <b>binNotOp</b> "binary not" (~P) operator value is not used in this case
[integer types only]
\section IPP-Optimization
IPP-Optimization is possible, but not yet implemented.
*/
class ICLFilter_API InplaceLogicalOp : public InplaceOp{
public:
enum optype{
andOp=0, ///< logical "and"
orOp=1, ///< logical "or"
xorOp=2, ///< logical "xor"
notOp=3, ///< logical "not"
binAndOp=4,///< binary "and" (for integer types only)
binOrOp=5, ///< binary "or" (for integer types only)
binXorOp=6,///< binary "xor" (for integer types only)
binNotOp=7 ///< binary "not" (for integer types only)
};
/// Creates a new InplaceLogicalOp instance with given optype and value
InplaceLogicalOp(optype t, icl64f value=0):
m_eOpType(t),m_dValue(value){}
/// applies this operation in-place on given source image
virtual core::ImgBase *apply(core::ImgBase *src);
/// returns current value
icl64f getValue() const { return m_dValue; }
/// set current value
void setValue(icl64f val){ m_dValue = val; }
/// returns current optype
optype getOpType() const { return m_eOpType; }
/// set current optype
void setOpType(optype t) { m_eOpType = t; }
private:
/// optype
optype m_eOpType;
/// value
icl64f m_dValue;
};
} // namespace filter
}
| Java |
#ifndef __TESTNGPPST_TEST_HIERARCHY_SANDBOX_RUNNER_H
#define __TESTNGPPST_TEST_HIERARCHY_SANDBOX_RUNNER_H
#include <testngppst/testngppst.h>
#include <testngppst/runner/TestHierarchyRunner.h>
TESTNGPPST_NS_START
struct TestCaseRunner;
struct TestHierarchySandboxRunnerImpl;
struct TestHierarchySandboxRunner
: public TestHierarchyRunner
{
TestHierarchySandboxRunner
( unsigned int maxCurrentProcess
, TestCaseRunner*);
~TestHierarchySandboxRunner();
void run ( TestHierarchyHandler*
, TestFixtureResultCollector*);
private:
TestHierarchySandboxRunnerImpl* This;
};
TESTNGPPST_NS_END
#endif
| Java |
package org.logicobjects.converter.old;
import java.util.Arrays;
import java.util.List;
import org.jpc.term.Term;
import org.jpc.util.ParadigmLeakUtil;
import org.logicobjects.converter.IncompatibleAdapterException;
import org.logicobjects.converter.context.old.AdaptationContext;
import org.logicobjects.converter.context.old.AnnotatedElementAdaptationContext;
import org.logicobjects.converter.context.old.BeanPropertyAdaptationContext;
import org.logicobjects.converter.context.old.ClassAdaptationContext;
import org.logicobjects.converter.descriptor.LogicObjectDescriptor;
import org.logicobjects.core.LogicObject;
import org.logicobjects.methodadapter.LogicAdapter;
import org.minitoolbox.reflection.BeansUtil;
public class AnnotatedObjectToTermConverter<From> extends LogicAdapter<From, Term> {
@Override
public Term adapt(From object) {
return adapt(object, null);
}
public Term adapt(From object, AdaptationContext context) {
AnnotatedElementAdaptationContext annotatedContext;
if(context != null) {
if(understandsContext(context))
annotatedContext = (AnnotatedElementAdaptationContext)context;
else
throw new UnrecognizedAdaptationContextException(this.getClass(), context);
} else {
annotatedContext = new ClassAdaptationContext(object.getClass()); //the current context is null, then create default context
}
if(annotatedContext.hasObjectToTermConverter()) { //first check if there is an explicit adapter, in the current implementation, an Adapter annotation overrides any method invoker description
return adaptToTermWithAdapter(object, annotatedContext);
}
else if(annotatedContext.hasLogicObjectDescription()) {
return adaptToTermFromDescription(object, annotatedContext);
}
throw new IncompatibleAdapterException(this.getClass(), object);
}
protected Term adaptToTermWithAdapter(From object, AnnotatedElementAdaptationContext annotatedContext) {
ObjectToTermConverter termAdapter = annotatedContext.getObjectToTermConverter();
return termAdapter.adapt(object);
}
protected Term adaptToTermFromDescription(From object, AnnotatedElementAdaptationContext annotatedContext) {
LogicObjectDescriptor logicObjectDescription = annotatedContext.getLogicObjectDescription();
String logicObjectName = logicObjectDescription.name();
if(logicObjectName.isEmpty())
logicObjectName = infereLogicObjectName(annotatedContext);
List<Term> arguments;
String argsListPropertyName = logicObjectDescription.argsList();
if(argsListPropertyName != null && !argsListPropertyName.isEmpty()) {
BeanPropertyAdaptationContext adaptationContext = new BeanPropertyAdaptationContext(object.getClass(), argsListPropertyName);
Object argsListObject = BeansUtil.getProperty(object, argsListPropertyName, adaptationContext.getGuidingClass());
List argsList = null;
if(List.class.isAssignableFrom(argsListObject.getClass()))
argsList = (List) argsListObject;
else if(Object[].class.isAssignableFrom(argsListObject.getClass()))
argsList = Arrays.asList((Object[])argsListObject);
else
throw new RuntimeException("Property " + argsListPropertyName + " is neither a list nor an array");
arguments = new ObjectToTermConverter().adaptObjects(argsList, adaptationContext);
} else {
arguments = LogicObject.propertiesAsTerms(object, logicObjectDescription.args());
}
return new LogicObject(logicObjectName, arguments).asTerm();
}
/**
* In case the id is not explicitly specified (e.g., with an annotation), it will have to be inferred
* It can be inferred from a class id (if the transformation context is a class instance to a logic object), from a field id (if the context is the transformation of a field), etc
* Different context override this method to specify how they infer the logic id of the object
* @return
*/
public String infereLogicObjectName(AnnotatedElementAdaptationContext annotatedContext) {
return ParadigmLeakUtil.javaClassNameToProlog(annotatedContext.getGuidingClass().getSimpleName());
}
public static boolean understandsContext(AdaptationContext context) {
return context != null && context instanceof AnnotatedElementAdaptationContext;
}
}
| Java |
<?php
/**
* @copyright Copyright (c) Metaways Infosystems GmbH, 2011
* @license LGPLv3, http://www.arcavias.com/en/license
*/
return array(
'item' => array(
'delete' => '
DELETE FROM "mshop_product"
WHERE :cond AND siteid = ?
',
'insert' => '
INSERT INTO "mshop_product" (
"siteid", "typeid", "code", "suppliercode", "label", "status",
"start", "end", "mtime", "editor", "ctime"
) VALUES (
?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?
)
',
'update' => '
UPDATE "mshop_product"
SET "siteid" = ?, "typeid" = ?, "code" = ?, "suppliercode" = ?,
"label" = ?, "status" = ?, "start" = ?, "end" = ?, "mtime" = ?,
"editor" = ?
WHERE "id" = ?
',
'search' => '
SELECT DISTINCT mpro."id", mpro."siteid", mpro."typeid",
mpro."label", mpro."status", mpro."start", mpro."end",
mpro."code", mpro."suppliercode", mpro."ctime", mpro."mtime",
mpro."editor"
FROM "mshop_product" AS mpro
:joins
WHERE :cond
/*-orderby*/ ORDER BY :order /*orderby-*/
LIMIT :size OFFSET :start
',
'count' => '
SELECT COUNT(*) AS "count"
FROM (
SELECT DISTINCT mpro."id"
FROM "mshop_product" AS mpro
:joins
WHERE :cond
LIMIT 10000 OFFSET 0
) AS list
',
),
);
| Java |
/*
Copyright (C) 2007 <SWGEmu>
This File is part of Core3.
This program is free software; you can redistribute
it and/or modify it under the terms of the GNU Lesser
General Public License as published by the Free Software
Foundation; either version 2 of the License,
or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the GNU Lesser General Public License for
more details.
You should have received a copy of the GNU Lesser General
Public License along with this program; if not, write to
the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
Linking Engine3 statically or dynamically with other modules
is making a combined work based on Engine3.
Thus, the terms and conditions of the GNU Lesser General Public License
cover the whole combination.
In addition, as a special exception, the copyright holders of Engine3
give you permission to combine Engine3 program with free software
programs or libraries that are released under the GNU LGPL and with
code included in the standard release of Core3 under the GNU LGPL
license (or modified versions of such code, with unchanged license).
You may copy and distribute such a system following the terms of the
GNU LGPL for Engine3 and the licenses of the other code concerned,
provided that you include the source code of that other code when
and as the GNU LGPL requires distribution of source code.
Note that people who make modified versions of Engine3 are not obligated
to grant this special exception for their modified versions;
it is their choice whether to do so. The GNU Lesser General Public License
gives permission to release a modified version without this exception;
this exception also makes it possible to release a modified version
which carries forward this exception.
*/
#ifndef STEADYAIMCOMMAND_H_
#define STEADYAIMCOMMAND_H_
#include "server/zone/objects/scene/SceneObject.h"
#include "SquadLeaderCommand.h"
class SteadyaimCommand : public SquadLeaderCommand {
public:
SteadyaimCommand(const String& name, ZoneProcessServer* server)
: SquadLeaderCommand(name, server) {
}
int doQueueCommand(CreatureObject* creature, const uint64& target, const UnicodeString& arguments) {
if (!checkStateMask(creature))
return INVALIDSTATE;
if (!checkInvalidLocomotions(creature))
return INVALIDLOCOMOTION;
if (!creature->isPlayerCreature())
return GENERALERROR;
ManagedReference<CreatureObject*> player = cast<CreatureObject*>(creature);
ManagedReference<GroupObject*> group = player->getGroup();
if (!checkGroupLeader(player, group))
return GENERALERROR;
float skillMod = (float) creature->getSkillMod("steadyaim");
int hamCost = (int) (100.0f * (1.0f - (skillMod / 100.0f))) * calculateGroupModifier(group);
int healthCost = creature->calculateCostAdjustment(CreatureAttribute::STRENGTH, hamCost);
int actionCost = creature->calculateCostAdjustment(CreatureAttribute::QUICKNESS, hamCost);
int mindCost = creature->calculateCostAdjustment(CreatureAttribute::FOCUS, hamCost);
if (!inflictHAM(player, healthCost, actionCost, mindCost))
return GENERALERROR;
// shoutCommand(player, group);
int amount = 5 + skillMod;
if (!doSteadyAim(player, group, amount))
return GENERALERROR;
if (player->isPlayerCreature() && player->getPlayerObject()->getCommandMessageString(String("steadyaim").hashCode()).isEmpty()==false) {
UnicodeString shout(player->getPlayerObject()->getCommandMessageString(String("steadyaim").hashCode()));
server->getChatManager()->broadcastMessage(player, shout, 0, 0, 80);
}
return SUCCESS;
}
bool doSteadyAim(CreatureObject* leader, GroupObject* group, int amount) {
if (leader == NULL || group == NULL)
return false;
for (int i = 0; i < group->getGroupSize(); i++) {
ManagedReference<SceneObject*> member = group->getGroupMember(i);
if (!member->isPlayerCreature() || member == NULL || member->getZone() != leader->getZone())
continue;
ManagedReference<CreatureObject*> memberPlayer = cast<CreatureObject*>( member.get());
Locker clocker(memberPlayer, leader);
sendCombatSpam(memberPlayer);
ManagedReference<WeaponObject*> weapon = memberPlayer->getWeapon();
if (!weapon->isRangedWeapon())
continue;
int duration = 300;
ManagedReference<Buff*> buff = new Buff(memberPlayer, actionCRC, duration, BuffType::SKILL);
buff->setSkillModifier("private_aim", amount);
memberPlayer->addBuff(buff);
}
return true;
}
};
#endif //STEADYAIMCOMMAND_H_
| Java |
/*
* SonarQube
* Copyright (C) 2009-2017 SonarSource SA
* mailto:info AT sonarsource DOT com
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3 of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this program; if not, write to the Free Software Foundation,
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
package org.sonar.api.utils;
import org.apache.commons.io.FileUtils;
import org.junit.Test;
import java.io.File;
import java.io.IOException;
import static org.hamcrest.core.Is.is;
import static org.junit.Assert.assertThat;
public class TempFileUtilsTest {
@Test
public void createTempDirectory() throws IOException {
File dir = TempFileUtils.createTempDirectory();
try {
assertThat(dir.exists(), is(true));
assertThat(dir.isDirectory(), is(true));
assertThat(dir.listFiles().length, is(0));
} finally {
FileUtils.deleteDirectory(dir);
}
}
}
| Java |
package net.anthavio.sewer.test;
import net.anthavio.sewer.ServerInstance;
import net.anthavio.sewer.ServerInstanceManager;
import net.anthavio.sewer.ServerMetadata;
import net.anthavio.sewer.ServerMetadata.CacheScope;
import net.anthavio.sewer.ServerType;
import org.junit.rules.TestRule;
import org.junit.runner.Description;
import org.junit.runners.model.Statement;
/**
*
* public class MyCoolTests {
*
* @Rule
* private SewerRule sewer = new SewerRule(ServerType.JETTY, "src/test/jetty8", 0);
*
* @Test
* public void test() {
* int port = sewer.getServer().getLocalPorts()[0];
* }
*
* }
*
* Can interact with method annotations - http://www.codeaffine.com/2012/09/24/junit-rules/
*
* @author martin.vanek
*
*/
public class SewerRule implements TestRule {
private final ServerInstanceManager manager = ServerInstanceManager.INSTANCE;
private final ServerMetadata metadata;
private ServerInstance server;
public SewerRule(ServerType type, String home) {
this(type, home, -1, null, CacheScope.JVM);
}
public SewerRule(ServerType type, String home, int port) {
this(type, home, port, null, CacheScope.JVM);
}
public SewerRule(ServerType type, String home, int port, CacheScope cache) {
this(type, home, port, null, cache);
}
public SewerRule(ServerType type, String home, int port, String[] configs, CacheScope cache) {
this.metadata = new ServerMetadata(type, home, port, configs, cache);
}
public ServerInstance getServer() {
return server;
}
@Override
public Statement apply(Statement base, Description description) {
return new SewerStatement(base);
}
public class SewerStatement extends Statement {
private final Statement base;
public SewerStatement(Statement base) {
this.base = base;
}
@Override
public void evaluate() throws Throwable {
server = manager.borrowServer(metadata);
try {
base.evaluate();
} finally {
manager.returnServer(metadata);
}
}
}
}
| Java |
/*
* SonarQube
* Copyright (C) 2009-2017 SonarSource SA
* mailto:info AT sonarsource DOT com
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3 of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this program; if not, write to the Free Software Foundation,
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
package org.sonar.api.ce.posttask;
/**
* @since 5.5
*/
public interface CeTask {
/**
* Id of the Compute Engine task.
* <p>
* This is the id under which the processing of the project analysis report has been added to the Compute Engine
* queue.
*
*/
String getId();
/**
* Indicates whether the Compute Engine task ended successfully or not.
*/
Status getStatus();
enum Status {
SUCCESS, FAILED
}
}
| Java |
/*
Copyright 2013-2021 Paul Colby
This file is part of QtAws.
QtAws is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
QtAws is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with the QtAws. If not, see <http://www.gnu.org/licenses/>.
*/
#include "applypendingmaintenanceactionrequest.h"
#include "applypendingmaintenanceactionrequest_p.h"
#include "applypendingmaintenanceactionresponse.h"
#include "rdsrequest_p.h"
namespace QtAws {
namespace RDS {
/*!
* \class QtAws::RDS::ApplyPendingMaintenanceActionRequest
* \brief The ApplyPendingMaintenanceActionRequest class provides an interface for RDS ApplyPendingMaintenanceAction requests.
*
* \inmodule QtAwsRDS
*
* <fullname>Amazon Relational Database Service</fullname>
*
*
* </p
*
* Amazon Relational Database Service (Amazon RDS) is a web service that makes it easier to set up, operate, and scale a
* relational database in the cloud. It provides cost-efficient, resizeable capacity for an industry-standard relational
* database and manages common database administration tasks, freeing up developers to focus on what makes their
* applications and businesses
*
* unique>
*
* Amazon RDS gives you access to the capabilities of a MySQL, MariaDB, PostgreSQL, Microsoft SQL Server, Oracle, or Amazon
* Aurora database server. These capabilities mean that the code, applications, and tools you already use today with your
* existing databases work with Amazon RDS without modification. Amazon RDS automatically backs up your database and
* maintains the database software that powers your DB instance. Amazon RDS is flexible: you can scale your DB instance's
* compute resources and storage capacity to meet your application's demand. As with all Amazon Web Services, there are no
* up-front investments, and you pay only for the resources you
*
* use>
*
* This interface reference for Amazon RDS contains documentation for a programming or command line interface you can use
* to manage Amazon RDS. Amazon RDS is asynchronous, which means that some interfaces might require techniques such as
* polling or callback functions to determine when a command has been applied. In this reference, the parameter
* descriptions indicate whether a command is applied immediately, on the next instance reboot, or during the maintenance
* window. The reference structure is as follows, and we list following some related topics from the user
*
* guide>
*
* <b>Amazon RDS API Reference</b>
*
* </p <ul> <li>
*
* For the alphabetical list of API actions, see <a
* href="https://docs.aws.amazon.com/AmazonRDS/latest/APIReference/API_Operations.html">API
*
* Actions</a>> </li> <li>
*
* For the alphabetical list of data types, see <a
* href="https://docs.aws.amazon.com/AmazonRDS/latest/APIReference/API_Types.html">Data
*
* Types</a>> </li> <li>
*
* For a list of common query parameters, see <a
* href="https://docs.aws.amazon.com/AmazonRDS/latest/APIReference/CommonParameters.html">Common
*
* Parameters</a>> </li> <li>
*
* For descriptions of the error codes, see <a
* href="https://docs.aws.amazon.com/AmazonRDS/latest/APIReference/CommonErrors.html">Common
*
* Errors</a>> </li> </ul>
*
* <b>Amazon RDS User Guide</b>
*
* </p <ul> <li>
*
* For a summary of the Amazon RDS interfaces, see <a
* href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Welcome.html#Welcome.Interfaces">Available RDS
*
* Interfaces</a>> </li> <li>
*
* For more information about how to use the Query API, see <a
* href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Using_the_Query_API.html">Using the Query
*
* \sa RdsClient::applyPendingMaintenanceAction
*/
/*!
* Constructs a copy of \a other.
*/
ApplyPendingMaintenanceActionRequest::ApplyPendingMaintenanceActionRequest(const ApplyPendingMaintenanceActionRequest &other)
: RdsRequest(new ApplyPendingMaintenanceActionRequestPrivate(*other.d_func(), this))
{
}
/*!
* Constructs a ApplyPendingMaintenanceActionRequest object.
*/
ApplyPendingMaintenanceActionRequest::ApplyPendingMaintenanceActionRequest()
: RdsRequest(new ApplyPendingMaintenanceActionRequestPrivate(RdsRequest::ApplyPendingMaintenanceActionAction, this))
{
}
/*!
* \reimp
*/
bool ApplyPendingMaintenanceActionRequest::isValid() const
{
return false;
}
/*!
* Returns a ApplyPendingMaintenanceActionResponse object to process \a reply.
*
* \sa QtAws::Core::AwsAbstractClient::send
*/
QtAws::Core::AwsAbstractResponse * ApplyPendingMaintenanceActionRequest::response(QNetworkReply * const reply) const
{
return new ApplyPendingMaintenanceActionResponse(*this, reply);
}
/*!
* \class QtAws::RDS::ApplyPendingMaintenanceActionRequestPrivate
* \brief The ApplyPendingMaintenanceActionRequestPrivate class provides private implementation for ApplyPendingMaintenanceActionRequest.
* \internal
*
* \inmodule QtAwsRDS
*/
/*!
* Constructs a ApplyPendingMaintenanceActionRequestPrivate object for Rds \a action,
* with public implementation \a q.
*/
ApplyPendingMaintenanceActionRequestPrivate::ApplyPendingMaintenanceActionRequestPrivate(
const RdsRequest::Action action, ApplyPendingMaintenanceActionRequest * const q)
: RdsRequestPrivate(action, q)
{
}
/*!
* Constructs a copy of \a other, with public implementation \a q.
*
* This copy-like constructor exists for the benefit of the ApplyPendingMaintenanceActionRequest
* class' copy constructor.
*/
ApplyPendingMaintenanceActionRequestPrivate::ApplyPendingMaintenanceActionRequestPrivate(
const ApplyPendingMaintenanceActionRequestPrivate &other, ApplyPendingMaintenanceActionRequest * const q)
: RdsRequestPrivate(other, q)
{
}
} // namespace RDS
} // namespace QtAws
| Java |
var KevoreeEntity = require('./KevoreeEntity');
/**
* AbstractChannel entity
*
* @type {AbstractChannel} extends KevoreeEntity
*/
module.exports = KevoreeEntity.extend({
toString: 'AbstractChannel',
construct: function () {
this.remoteNodes = {};
this.inputs = {};
},
internalSend: function (portPath, msg) {
var remoteNodeNames = this.remoteNodes[portPath];
for (var remoteNodeName in remoteNodeNames) {
this.onSend(remoteNodeName, msg);
}
},
/**
*
* @param remoteNodeName
* @param msg
*/
onSend: function (remoteNodeName, msg) {
},
remoteCallback: function (msg) {
for (var name in this.inputs) {
this.inputs[name].getCallback().call(this, msg);
}
},
addInternalRemoteNodes: function (portPath, remoteNodes) {
this.remoteNodes[portPath] = remoteNodes;
},
addInternalInputPort: function (port) {
this.inputs[port.getName()] = port;
}
}); | Java |
package calc.lib;
/** Class (POJO) used to store Uninhabited Solar System JSON objects
*
* @author Carlin Robertson
* @version 1.0
*
*/
public class SolarSystemUninhabited {
private String[] information;
private String requirePermit;
private Coords coords;
private String name;
public String[] getInformation ()
{
return information;
}
public void setInformation (String[] information)
{
this.information = information;
}
public String getRequirePermit ()
{
return requirePermit;
}
public void setRequirePermit (String requirePermit)
{
this.requirePermit = requirePermit;
}
public Coords getCoords ()
{
return coords;
}
public void setCoords (Coords coords)
{
this.coords = coords;
}
public String getName ()
{
return name;
}
public void setName (String name)
{
this.name = name;
}
}
| Java |
<?php
require_once '../../../config.php';
require_once $config['root_path'] . '/system/functions.php';
include_once $config['system_path'] . '/start_system.php';
admin_login();
if (isset($_POST['delete']) && isset($_POST['id']) && isset($_SESSION['member']['access']['countries'])) {
require_once ROOT_PATH . '/applications/news/modeles/news.class.php';
$cms = new news();
$cms->delete(intval($_POST['id']));
die (
json_encode(
array_merge(
$_POST, array (
'status' => 'true'
)
)
)
);
}
echo json_encode (
array_merge (
$_POST, array (
'status' => 'unknown error'
)
)
);
die ();
?> | Java |
// Catalano Fuzzy Library
// The Catalano Framework
//
// Copyright © Diego Catalano, 2013
// diego.catalano at live.com
//
// Copyright © Andrew Kirillov, 2007-2008
// andrew.kirillov at gmail.com
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 of the License, or (at your option) any later version.
//
// This library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with this library; if not, write to the Free Software
// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
//
package Catalano.Fuzzy;
/**
* Interface with the common methods of Fuzzy Unary Operator.
* @author Diego Catalano
*/
public interface IUnaryOperator {
/**
* Calculates the numerical result of a Unary operation applied to one fuzzy membership value.
* @param membership A fuzzy membership value, [0..1].
* @return The numerical result of the operation applied to <paramref name="membership"/>.
*/
float Evaluate( float membership );
}
| Java |
<?php
namespace Google\AdsApi\Dfp\v201708;
/**
* This file was generated from WSDL. DO NOT EDIT.
*/
class ReportQueryAdUnitView
{
const TOP_LEVEL = 'TOP_LEVEL';
const FLAT = 'FLAT';
const HIERARCHICAL = 'HIERARCHICAL';
}
| Java |
package flabs.mods.magitech.aura;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.world.WorldSavedData;
public class AuraSavedData extends WorldSavedData{
public static final String nbtName="MagiAura";
public AuraSavedData(String name) {
super(name);
}
@Override
public void readFromNBT(NBTTagCompound nbttagcompound) {
System.out.println("Reading Aura Data");
}
@Override
public void writeToNBT(NBTTagCompound nbttagcompound) {
System.out.println("Writing Aura Data");
}
}
| Java |
.iwl-height-full {
height: 100%; }
/*# sourceMappingURL=!design.css.map */ | Java |
--Copyright (C) 2009 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
--This program is distributed in the hope that it will be useful,
--but WITHOUT ANY WARRANTY; without even the implied warranty of
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--See the GNU Lesser General Public License for
--more details.
--You should have received a copy of the GNU Lesser General
--Public License along with this program; if not, write to
--the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
--Linking Engine3 statically or dynamically with other modules
--is making a combined work based on Engine3.
--Thus, the terms and conditions of the GNU Lesser General Public License
--cover the whole combination.
--In addition, as a special exception, the copyright holders of Engine3
--give you permission to combine Engine3 program with free software
--programs or libraries that are released under the GNU LGPL and with
--code included in the standard release of Core3 under the GNU LGPL
--license (or modified versions of such code, with unchanged license).
--You may copy and distribute such a system following the terms of the
--GNU LGPL for Engine3 and the licenses of the other code concerned,
--provided that you include the source code of that other code when
--and as the GNU LGPL requires distribution of source code.
--Note that people who make modified versions of Engine3 are not obligated
--to grant this special exception for their modified versions;
--it is their choice whether to do so. The GNU Lesser General Public License
--gives permission to release a modified version without this exception;
--this exception also makes it possible to release a modified version
--which carries forward this exception.
object_tangible_lair_womp_rat_shared_lair_womp_rat = SharedTangibleObjectTemplate:new {
appearanceFilename = "appearance/poi_all_skeleton_human_headandbody.apt",
arrangementDescriptorFilename = "",
certificationsRequired = {},
clearFloraRadius = 25,
clientDataFile = "clientdata/lair/shared_poi_all_lair_bones.cdf",
collisionActionBlockFlags = 0,
collisionActionFlags = 51,
collisionActionPassFlags = 1,
collisionMaterialBlockFlags = 0,
collisionMaterialFlags = 1,
collisionMaterialPassFlags = 0,
containerType = 0,
containerVolumeLimit = 1,
customizationVariableMapping = {},
detailedDescription = "@lair_d:womp_rat",
gameObjectType = 4,
locationReservationRadius = 0,
lookAtText = "string_id_table",
noBuildRadius = 64,
objectName = "@lair_n:womp_rat",
onlyVisibleInTools = 0,
paletteColorCustomizationVariables = {},
portalLayoutFilename = "",
rangedIntCustomizationVariables = {},
scale = 1,
scaleThresholdBeforeExtentTest = 0.5,
sendToClient = 1,
slotDescriptorFilename = "",
snapToTerrain = 1,
socketDestinations = {},
structureFootprintFileName = "",
surfaceType = 0,
targetable = 1,
useStructureFootprintOutline = 0
}
ObjectTemplates:addTemplate(object_tangible_lair_womp_rat_shared_lair_womp_rat, 2053935761)
object_tangible_lair_womp_rat_shared_lair_womp_rat_desert = SharedTangibleObjectTemplate:new {
appearanceFilename = "appearance/poi_all_skeleton_human_headandbody.apt",
arrangementDescriptorFilename = "",
certificationsRequired = {},
clearFloraRadius = 25,
clientDataFile = "clientdata/lair/shared_poi_all_lair_bones.cdf",
collisionActionBlockFlags = 0,
collisionActionFlags = 51,
collisionActionPassFlags = 1,
collisionMaterialBlockFlags = 0,
collisionMaterialFlags = 1,
collisionMaterialPassFlags = 0,
containerType = 0,
containerVolumeLimit = 1,
customizationVariableMapping = {},
detailedDescription = "@lair_d:womp_rat_desert",
gameObjectType = 4,
locationReservationRadius = 0,
lookAtText = "string_id_table",
noBuildRadius = 64,
objectName = "@lair_n:womp_rat_desert",
onlyVisibleInTools = 0,
paletteColorCustomizationVariables = {},
portalLayoutFilename = "",
rangedIntCustomizationVariables = {},
scale = 1,
scaleThresholdBeforeExtentTest = 0.5,
sendToClient = 1,
slotDescriptorFilename = "",
snapToTerrain = 1,
socketDestinations = {},
structureFootprintFileName = "",
surfaceType = 0,
targetable = 1,
useStructureFootprintOutline = 0
}
ObjectTemplates:addTemplate(object_tangible_lair_womp_rat_shared_lair_womp_rat_desert, 703016558)
| Java |
package edu.ut.mobile.network;
public class NetInfo{
//public static byte[] IPAddress = {Integer.valueOf("54").byteValue(),Integer.valueOf("73").byteValue(),Integer.valueOf("28").byteValue(),Integer.valueOf("236").byteValue()};
static byte[] IPAddress = {Integer.valueOf("192").byteValue(),Integer.valueOf("168").byteValue(),Integer.valueOf("1").byteValue(),Integer.valueOf("67").byteValue()};
static int port = 6000;
static int waitTime = 100000;
}
| Java |
/*
Copyright 2009 Semantic Discovery, Inc. (www.semanticdiscovery.com)
This file is part of the Semantic Discovery Toolkit.
The Semantic Discovery Toolkit is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
The Semantic Discovery Toolkit is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with The Semantic Discovery Toolkit. If not, see <http://www.gnu.org/licenses/>.
*/
package org.sd.text;
import org.sd.io.FileUtil;
import org.sd.nlp.AbstractLexicon;
import org.sd.nlp.AbstractNormalizer;
import org.sd.nlp.Break;
import org.sd.nlp.BreakStrategy;
import org.sd.nlp.Categories;
import org.sd.nlp.Category;
import org.sd.nlp.CategoryFactory;
import org.sd.nlp.GeneralNormalizer;
import org.sd.nlp.GenericLexicon;
import org.sd.nlp.Lexicon;
import org.sd.nlp.LexiconPipeline;
import org.sd.nlp.TokenizationStrategy;
import org.sd.nlp.TokenizerWrapper;
import org.sd.nlp.StringWrapper;
import org.sd.util.PropertiesParser;
import org.sd.util.tree.Tree;
import java.io.BufferedReader;
import java.io.File;
import java.io.IOException;
import java.net.MalformedURLException;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
import java.util.HashMap;
import java.util.Iterator;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;
import java.util.Properties;
/**
* Utility to find meaningful words in strings.
* <p>
* @author Spence Koehler
*/
public class MungedWordFinder {
private static final String UNDETERMINED_LETTER = "X";
private static final String UNDETERMINED_WORD = "U";
private static final String WORD = "W";
private static final String NUMBER = "N";
private static final String SEQUENCE = "S";
private static final String CONSTITUENT = "C";
private static final String[] CATEGORIES = new String[] {
UNDETERMINED_LETTER,
UNDETERMINED_WORD,
WORD,
NUMBER,
SEQUENCE,
CONSTITUENT,
};
private static final AbstractNormalizer NORMALIZER = GeneralNormalizer.getCaseInsensitiveInstance();
private static final BreakStrategy BREAK_STRATEGY = new MyBreakStrategy();
private static final Comparator<WordSequence> SEQUENCE_COMPARATOR = new Comparator<WordSequence>() {
public int compare(WordSequence ws1, WordSequence ws2) {
return ws1.size() - ws2.size();
}
public boolean equals(Object o) {
return this == o;
}
};
private CategoryFactory categoryFactory;
private Map<String, File> wordFiles;
private Map<String, String[]> wordSets;
private List<Lexicon> lexicons;
private TokenizerWrapper _tokenizerWrapper;
/**
* Construct without any dictionaries.
* <p>
* Add dictionaries to use for finding munged words using the
* addWordFile, addWordSet, and addLexicon methods.
*/
public MungedWordFinder() {
this.categoryFactory = new CategoryFactory(CATEGORIES);
this.wordFiles = new HashMap<String, File>();
this.wordSets = new HashMap<String, String[]>();
this.lexicons = new ArrayList<Lexicon>();
this._tokenizerWrapper = null;
}
/**
* Add a word file defining words to recognize.
*/
public final void addWordFile(String name, File wordFile) {
this.wordFiles.put(name, wordFile);
this._tokenizerWrapper = null; // force rebuild.
}
/**
* Add a word set defining words to recognize.
*/
public final void addWordSet(String name, String[] words) {
this.wordSets.put(name, words);
this._tokenizerWrapper = null; // force rebuild.
}
/**
* Add a lexicon defining words to recognize.
*/
public final void addLexicon(Lexicon lexicon) {
this.lexicons.add(lexicon);
this._tokenizerWrapper = null; // force rebuild.
}
protected final TokenizerWrapper getTokenizerWrapper() {
if (_tokenizerWrapper == null) {
try {
final Lexicon lexicon = new LexiconPipeline(buildLexicons());
_tokenizerWrapper = new TokenizerWrapper(
lexicon, categoryFactory,
TokenizationStrategy.Type.LONGEST_TO_SHORTEST,
NORMALIZER, BREAK_STRATEGY,
false, 0, false); //NOTE: lexicon should classify every token
}
catch (IOException e) {
throw new IllegalStateException(e);
}
}
return _tokenizerWrapper;
}
private final Lexicon[] buildLexicons() throws IOException {
final List<Lexicon> result = new ArrayList<Lexicon>();
final Category wordCategory = categoryFactory.getCategory(WORD);
// add a lexicon that identifies/recognizes number sequences.
result.add(new NumberLexicon(categoryFactory.getCategory(NUMBER)));
// add a lexicon for each wordSet
for (Map.Entry<String, String[]> wordSetEntry : wordSets.entrySet()) {
final String name = wordSetEntry.getKey();
final String[] terms = wordSetEntry.getValue();
final GenericLexicon genericLexicon =
new GenericLexicon(terms, NORMALIZER, wordCategory, false, true, false,
"name=" + name);
genericLexicon.setMaxNumWords(0); // disable "word" limit. each char counts as a word with our break strategy.
result.add(genericLexicon);
}
// add a lexicon for each wordFile
for (Map.Entry<String, File> wordFileEntry : wordFiles.entrySet()) {
final String name = wordFileEntry.getKey();
final File wordFile = wordFileEntry.getValue();
final GenericLexicon genericLexicon =
new GenericLexicon(FileUtil.getInputStream(wordFile),
NORMALIZER, wordCategory, false, true, false,
"name=" + name);
genericLexicon.setMaxNumWords(0); // disable "word" limit. each char counts as a word with our break strategy.
result.add(genericLexicon);
}
// add each lexicon
for (Lexicon lexicon : lexicons) {
result.add(lexicon);
}
// add a lexicon that identifies a single letter as unknown.
result.add(new UnknownLexicon(categoryFactory.getCategory(UNDETERMINED_LETTER)));
return result.toArray(new Lexicon[result.size()]);
//todo: what about conjugations?
}
public List<WordSequence> getBestSplits(String string) {
List<WordSequence> result = new ArrayList<WordSequence>();
final TokenizerWrapper tokenizerWrapper = getTokenizerWrapper();
final Tree<StringWrapper.SubString> tokenTree = tokenizerWrapper.tokenize(string);
final List<Tree<StringWrapper.SubString>> leaves = tokenTree.gatherLeaves();
int maxScore = -1;
for (Tree<StringWrapper.SubString> leaf : leaves) {
final WordSequence wordSequence = new WordSequence(leaf);
final int curScore = wordSequence.getScore();
if (curScore >= maxScore) {
if (curScore > maxScore) {
result.clear();
maxScore = curScore;
}
result.add(wordSequence);
}
}
if (result.size() > 0) {
Collections.sort(result, SEQUENCE_COMPARATOR);
}
return result;
}
public List<WordSequence> getBestDomainSplits(String domain) {
final int dotPos = domain.indexOf('.');
if (dotPos > 0 && dotPos < domain.length() - 1) {
final DetailedUrl dUrl = new DetailedUrl(domain);
domain = dUrl.getHost(false, false, false);
}
return getBestSplits(domain);
}
public String getSplitsAsString(List<WordSequence> splits) {
final StringBuilder result = new StringBuilder();
if (splits != null) {
for (Iterator<WordSequence> splitIter = splits.iterator(); splitIter.hasNext(); ) {
final WordSequence split = splitIter.next();
result.append(split.toString());
if (splitIter.hasNext()) result.append('|');
}
}
return result.toString();
}
// symbols are hard breaks... letters are soft breaks... consecutive digits aren't (don't break numbers)
private static final class MyBreakStrategy implements BreakStrategy {
public Break[] computeBreaks(int[] codePoints) {
final Break[] result = new Break[codePoints.length];
boolean inNumber = false;
for (int i = 0; i < codePoints.length; ++i) {
Break curBreak = Break.NONE;
final int cp = codePoints[i];
if (Character.isDigit(cp)) {
if (i > 0 && !inNumber && result[i - 1] != Break.HARD) {
curBreak = Break.SOFT_SPLIT;
}
else {
curBreak = Break.NONE;
}
inNumber = true;
}
else if (Character.isLetter(cp)) {
// first letter after a hard break (or at start) isn't a break
if (i == 0 || result[i - 1] == Break.HARD) {
curBreak = Break.NONE;
}
else {
curBreak = Break.SOFT_SPLIT;
}
inNumber = false;
}
else {
// if following a digit or with-digit-symbol, then consider the number parts as a whole
if (inNumber) {
curBreak = Break.NONE;
}
// else if a digit or digit-symbol follows, then consider the number parts as a whole
else if (i + 1 < codePoints.length &&
(Character.isDigit(codePoints[i + 1]) ||
(i + 2 < codePoints.length && Character.isDigit(codePoints[i + 2])))) {
curBreak = Break.NONE;
inNumber = true;
}
else {
curBreak = Break.HARD;
inNumber = false;
}
}
result[i] = curBreak;
}
return result;
}
}
private static final class NumberLexicon extends AbstractLexicon {
private Category category;
public NumberLexicon(Category category) {
super(null);
this.category = category;
}
/**
* Define applicable categories in the subString.
* <p>
* In this case, if a digit is found in the subString, then the NUMBER category is added.
*
* @param subString The substring to define.
* @param normalizer The normalizer to use.
*/
protected void define(StringWrapper.SubString subString, AbstractNormalizer normalizer) {
if (!subString.hasDefinitiveDefinition()) {
boolean isNumber = true;
int lastNumberPos = -1;
for (int i = subString.startPos; i < subString.endPos; ++i) {
final int cp = subString.stringWrapper.getCodePoint(i);
if (cp > '9' || cp < '0') {
isNumber = false;
break;
}
lastNumberPos = i;
}
if (!isNumber) {
// check for "text" numbers
if (lastNumberPos >= 0 && lastNumberPos == subString.endPos - 3) {
// check for number suffix
isNumber = TextNumber.isNumberEnding(subString.originalSubString.substring(lastNumberPos + 1).toLowerCase());
}
else if (lastNumberPos < 0) {
// check for number word
isNumber = TextNumber.isNumber(subString.originalSubString.toLowerCase());
}
}
if (isNumber) {
subString.setAttribute("name", NUMBER);
subString.addCategory(category);
subString.setDefinitive(true);
}
}
}
/**
* Determine whether the categories container already has category type(s)
* that this lexicon would add.
* <p>
* NOTE: this is used to avoid calling "define" when categories already exist
* for the substring.
*
* @return true if this lexicon's category type(s) are already present.
*/
protected boolean alreadyHasTypes(Categories categories) {
return categories.hasType(category);
}
}
private static final class UnknownLexicon extends AbstractLexicon {
private Category category;
public UnknownLexicon(Category category) {
super(null);
this.category = category;
}
/**
* Define applicable categories in the subString.
* <p>
* In this case, if a digit is found in the subString, then the NUMBER category is added.
*
* @param subString The substring to define.
* @param normalizer The normalizer to use.
*/
protected void define(StringWrapper.SubString subString, AbstractNormalizer normalizer) {
if (!subString.hasDefinitiveDefinition() && subString.length() == 1) {
subString.addCategory(category);
subString.setAttribute("name", UNDETERMINED_WORD);
}
}
/**
* Determine whether the categories container already has category type(s)
* that this lexicon would add.
* <p>
* NOTE: this is used to avoid calling "define" when categories already exist
* for the substring.
*
* @return true if this lexicon's category type(s) are already present.
*/
protected boolean alreadyHasTypes(Categories categories) {
return categories.hasType(category);
}
}
/**
* Container class for a word.
*/
public static final class Word {
public final StringWrapper.SubString word;
public final String type;
private Integer _score;
public Word(StringWrapper.SubString word, String type) {
this.word = word;
this.type = type;
this._score = null;
}
/**
* Get this word's score.
* <p>
* A word's score is its number of defined letters.
*/
public int getScore() {
if (_score == null) {
_score = UNDETERMINED_WORD.equals(type) ? 0 : word.length() * word.length();
}
return _score;
}
public String toString() {
final StringBuilder result = new StringBuilder();
result.append(type).append('=').append(word.originalSubString);
return result.toString();
}
}
/**
* Container for a sequence of words for a string.
*/
public static final class WordSequence {
public final String string;
public final List<Word> words;
private int score;
public WordSequence(Tree<StringWrapper.SubString> leaf) {
final LinkedList<Word> theWords = new LinkedList<Word>();
this.words = theWords;
this.score = 0;
String theString = null;
while (leaf != null) {
final StringWrapper.SubString subString = leaf.getData();
if (subString == null) break; // hit root.
final String nameValue = subString.getAttribute("name");
final Word word = new Word(subString, nameValue == null ? UNDETERMINED_WORD : nameValue);
theWords.addFirst(word);
score += word.getScore();
if (theString == null) theString = subString.stringWrapper.string;
leaf = leaf.getParent();
}
this.string = theString;
}
/**
* Get this sequence's score.
* <p>
* The score is the total number of defined letters in the sequence's words.
*/
public int getScore() {
return score;
}
public int size() {
return words.size();
}
public String toString() {
return asString(",");
}
public String asString(String delim) {
final StringBuilder result = new StringBuilder();
for (Iterator<Word> wordIter = words.iterator(); wordIter.hasNext(); ) {
final Word word = wordIter.next();
result.append(word.toString());
if (wordIter.hasNext()) result.append(delim);
}
// result.append('(').append(getScore()).append(')');
return result.toString();
}
}
//java -Xmx640m org.sd.nlp.MungedWordFinder wordSet="foo,bar,baz" wordSetName="fbb" foobarbaz "foo-bar-baz" "foobArbaz" gesundheit
public static final void main(String[] args) throws IOException {
// properties:
// wordFiles="file1,file2,..."
// wordSet="word1,word2,..."
// wordSetName="name"
// non-property arguments are munged strings to split.
// STDIN has other munged strings or domains to split.
final PropertiesParser propertiesParser = new PropertiesParser(args);
final Properties properties = propertiesParser.getProperties();
final String wordFileNames = properties.getProperty("wordFiles");
final String wordSet = properties.getProperty("wordSet");
final String wordSetName = properties.getProperty("wordSetName");
final MungedWordFinder mungedWordFinder = new MungedWordFinder();
if (wordFileNames != null) {
for (String wordFile : wordFileNames.split("\\s*,\\s*")) {
final File file = new File(wordFile);
mungedWordFinder.addWordFile(file.getName().split("\\.")[0], file);
}
}
if (wordSet != null) {
mungedWordFinder.addWordSet(wordSetName, wordSet.split("\\s*,\\s*"));
}
final String[] mungedWords = propertiesParser.getArgs();
for (String mungedWord : mungedWords) {
final List<WordSequence> splits = mungedWordFinder.getBestDomainSplits(mungedWord);
final String splitsString = mungedWordFinder.getSplitsAsString(splits);
System.out.println(mungedWord + "|" + splitsString);
}
final BufferedReader reader = FileUtil.getReader(System.in);
String line = null;
while ((line = reader.readLine()) != null) {
final List<WordSequence> splits = mungedWordFinder.getBestDomainSplits(line);
final String splitsString = mungedWordFinder.getSplitsAsString(splits);
System.out.println(line + "|" + splitsString);
}
reader.close();
}
}
| Java |
/*******************************************************************************
* Copyright (c) 2015 Open Software Solutions GmbH.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the GNU Lesser Public License v3.0
* which accompanies this distribution, and is available at
* http://www.gnu.org/licenses/lgpl-3.0.html
*
* Contributors:
* Open Software Solutions GmbH
******************************************************************************/
package org.oss.pdfreporter.sql.factory;
import java.io.InputStream;
import java.util.Date;
import org.oss.pdfreporter.sql.IBlob;
import org.oss.pdfreporter.sql.IConnection;
import org.oss.pdfreporter.sql.IDate;
import org.oss.pdfreporter.sql.IDateTime;
import org.oss.pdfreporter.sql.ITime;
import org.oss.pdfreporter.sql.ITimestamp;
import org.oss.pdfreporter.sql.SQLException;
/**
* Sql connectivity factory.
* The interface supports queries with prepared statements.
* No DDL or modifying operations are supported, neither transactions or cursors.
* @author donatmuller, 2013, last change 5:39:58 PM
*/
public interface ISqlFactory {
/**
* Returns a connection for the connection parameter.
* It is up to the implementor to define the syntax of the connection parameter.<br>
* The parameter could include a driver class name or just an url and assume that a driver
* was already loaded.
* @param url
* @param user
* @param password
* @return
*/
IConnection newConnection(String url, String user, String password) throws SQLException;
/**
* used by dynamic loading of specific database driver and JDBC-URL, when the implementation don't know about the specific driver-implementation.
* @param jdbcUrl
* @param user
* @param password
* @return
* @throws SQLException
*/
IConnection createConnection(String jdbcUrl, String user, String password) throws SQLException;
/**
* Creates a Date.
* @param date
* @return
*/
IDate newDate(Date date);
/**
* Creates a Time.
* @param time
* @return
*/
ITime newTime(Date time);
/**
* Creates a Timestamp.
* @param timestamp
* @return
*/
ITimestamp newTimestamp(long milliseconds);
/**
* Creates a DateTime.
* @param datetime
* @return
*/
IDateTime newDateTime(Date datetime);
/**
* Creates a Blob.
* @param is
* @return
*/
IBlob newBlob(InputStream is);
/**
* Creates a Blob.
* @param bytes
* @return
*/
IBlob newBlob(byte[] bytes);
}
| Java |
/*
* Copyright (C) 2005-2010 Alfresco Software Limited.
*
* This file is part of Alfresco
*
* Alfresco is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Alfresco is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
*/
package org.alfresco.repo.admin.registry;
import java.io.Serializable;
import java.util.Collection;
/**
* Interface for service providing access to key-value pairs for storage
* of system-controlled metadata.
*
* @author Derek Hulley
*/
public interface RegistryService
{
/**
* Assign a value to the registry key, which must be of the form <b>/a/b/c</b>.
*
* @param key the registry key.
* @param value any value that can be stored in the repository.
*/
void addProperty(RegistryKey key, Serializable value);
/**
* @param key the registry key.
* @return Returns the value stored in the key or <tt>null</tt> if
* no value exists at the path and name provided
*
* @see #addProperty(String, Serializable)
*/
Serializable getProperty(RegistryKey key);
/**
* Fetches all child elements for the given path. The key's property should be
* <tt>null</tt> as it is completely ignored.
* <code><pre>
* ...
* registryService.addValue(KEY_A_B_C_1, VALUE_ONE);
* registryService.addValue(KEY_A_B_C_2, VALUE_TWO);
* ...
* assertTrue(registryService.getChildElements(KEY_A_B_null).contains("C"));
* ...
* </pre></code>
*
* @param key the registry key with the path. The last element in the path
* will be ignored, and can be any acceptable value localname or <tt>null</tt>.
* @return Returns all child elements (not values) for the given key, ignoring
* the last element in the key.
*
* @see RegistryKey#getPath()
*/
Collection<String> getChildElements(RegistryKey key);
/**
* Copies the path or value from the source to the target location. The source and target
* keys <b>must</b> be both either path-specific or property-specific. If the source doesn't
* exist, then nothing will be done; there is no guarantee that the target will exist after
* the call.
* <p>
* This is essentially a merge operation. Use {@link #delete(RegistryKey) delete} first
* if the target must be cleaned.
*
* @param sourceKey the source registry key to take values from
* @param targetKey the target registyr key to move the path or value to
*/
void copy(RegistryKey sourceKey, RegistryKey targetKey);
/**
* Delete the path element or value described by the key. If the key points to nothing,
* then nothing is done.
* <code>delete(/a/b/c)</code> will remove value <b>c</b> from path <b>/a/b</b>.<br/>
* <code>delete(/a/b/null)</code> will remove node <b>/a/b</b> along with all values and child
* elements.
*
* @param key the path or value to delete
*/
void delete(RegistryKey key);
}
| Java |
Simple-CFG-Compiler
===================
A simple syntax directed translator
| Java |
import java.util.*;
import Jakarta.util.FixDosOutputStream;
import java.io.*;
//------------------------ j2jBase layer -------------------
//------ mixin-layer for dealing with Overrides and New Modifier
//------ offhand, I wonder why we can't let j2j map these modifiers
//------ to nothing, instead of letting PJ do some of this mapping
// it would make more sense for PJ and Mixin to have similar
// output.
public class ModOverrides {
public void reduce2java( AstProperties props ) {
// Step 1: the overrides modifier should not be present, UNLESS
// there is a SoUrCe property. It's an error otherwise.
if ( props.getProperty( "SoUrCe" ) == null ) {
AstNode.error( tok[0], "overrides modifier should not be present" );
return;
}
// Step 2: it's OK to be present. If so, the reduction is to
// print the white-space in front for pretty-printing
props.print( getComment() );
}
}
| Java |
# -*- coding: utf-8 -*-
"""digitalocean API to manage droplets"""
__version__ = "1.16.0"
__author__ = "Lorenzo Setale ( http://who.is.lorenzo.setale.me/? )"
__author_email__ = "lorenzo@setale.me"
__license__ = "LGPL v3"
__copyright__ = "Copyright (c) 2012-2020 Lorenzo Setale"
from .Manager import Manager
from .Droplet import Droplet, DropletError, BadKernelObject, BadSSHKeyFormat
from .Region import Region
from .Size import Size
from .Image import Image
from .Action import Action
from .Account import Account
from .Balance import Balance
from .Domain import Domain
from .Record import Record
from .SSHKey import SSHKey
from .Kernel import Kernel
from .FloatingIP import FloatingIP
from .Volume import Volume
from .baseapi import Error, EndPointError, TokenError, DataReadError, NotFoundError
from .Tag import Tag
from .LoadBalancer import LoadBalancer
from .LoadBalancer import StickySessions, ForwardingRule, HealthCheck
from .Certificate import Certificate
from .Snapshot import Snapshot
from .Project import Project
from .Firewall import Firewall, InboundRule, OutboundRule, Destinations, Sources
from .VPC import VPC
| Java |
/*
* Copyright (C) 2003-2014 eXo Platform SAS.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package org.exoplatform.social.core.storage.proxy;
import java.lang.reflect.Proxy;
import org.exoplatform.social.core.activity.model.ExoSocialActivity;
/**
* Created by The eXo Platform SAS
* Author : eXoPlatform
* exo@exoplatform.com
* Apr 28, 2014
*/
public class ActivityProxyBuilder {
@SuppressWarnings("unchecked")
static <T> T of(ProxyInvocation invocation) {
Class<?> targetClass = invocation.getTargetClass();
//1. loader - the class loader to define the proxy class
//2. the list of interfaces for the proxy class to implement
//3. the invocation handler to dispatch method invocations to
return (T) Proxy.newProxyInstance(targetClass.getClassLoader(),
new Class<?>[]{targetClass}, invocation);
}
public static <T> T of(Class<T> aClass, ExoSocialActivity activity) {
return of(new ProxyInvocation(aClass, activity));
}
}
| Java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.