text
stringlengths 4
5.48M
| meta
stringlengths 14
6.54k
|
---|---|
/**
* Created by Tundaey on 6/24/2015.
*/
var auth = require('../controllers/auth');
module.exports = function(app, express){
var apiRouter = express.Router();
apiRouter.post('/register',auth.register);
apiRouter.post('/verify',auth.verify);
apiRouter.post('/invite',auth.invite);
apiRouter.post('/signup',auth.verify);
/* apiRouter.post('/verify', auth.verify)
apiRouter.post('/signup', auth.signup);
apiRouter.post('/register', auth.register);
apiRouter.post('/login', auth.login);*/
/*apiRouter.use(auth.authenticate);
apiRouter.route('/users/:id')
.get(userController.getUser)
.put(userController.updateUser)
.delete(userController.deleteUser);
apiRouter.get('/doctors', doctorController.getAll);
apiRouter.get('/doctors/:docId', doctorController.getOne);
apiRouter.get('/medical_history', historyController.view_medical_history);
//apiRouter.get('/medical_history/:id', historyController.getOne);
apiRouter.post('/medical_history', historyController.addHistory);*/
return apiRouter;
}
| {'content_hash': 'd235b05c4a2157a84fc73145070154ee', 'timestamp': '', 'source': 'github', 'line_count': 32, 'max_line_length': 78, 'avg_line_length': 34.15625, 'alnum_prop': 0.6825251601097896, 'repo_name': 'tundaey/syte', 'id': 'c6834ab6c700ea43a4ac5ea6ba6ae2452e727c26', 'size': '1093', 'binary': False, 'copies': '1', 'ref': 'refs/heads/master', 'path': 'server/app/routes/api.js', 'mode': '33188', 'license': 'mit', 'language': [{'name': 'Batchfile', 'bytes': '11293'}, {'name': 'C', 'bytes': '638'}, {'name': 'C#', 'bytes': '16006'}, {'name': 'C++', 'bytes': '211682'}, {'name': 'CSS', 'bytes': '2642421'}, {'name': 'HTML', 'bytes': '70312'}, {'name': 'Java', 'bytes': '306290'}, {'name': 'JavaScript', 'bytes': '9709044'}, {'name': 'Objective-C', 'bytes': '87915'}, {'name': 'Shell', 'bytes': '1613'}]} |
// Copyright 2022 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.chromium.net.impl;
/**
* Implements a CronetLogger that does nothing.
*/
public final class NoOpLogger extends CronetLogger {
@Override
public void logCronetEngineCreation(int cronetEngineId,
CronetEngineBuilderInfo engineBuilderInfo, CronetVersion version, CronetSource source) {
}
@Override
public void logCronetTrafficInfo(int cronetEngineId, CronetTrafficInfo trafficInfo) {}
}
| {'content_hash': '3f728b3c5a36445b07b8f7b1f9987c45', 'timestamp': '', 'source': 'github', 'line_count': 18, 'max_line_length': 100, 'avg_line_length': 31.88888888888889, 'alnum_prop': 0.7578397212543554, 'repo_name': 'chromium/chromium', 'id': '341c4ae8faad999de92913bdd21a1d59865a6ea7', 'size': '574', 'binary': False, 'copies': '6', 'ref': 'refs/heads/main', 'path': 'components/cronet/android/java/src/org/chromium/net/impl/NoOpLogger.java', 'mode': '33188', 'license': 'bsd-3-clause', 'language': []} |
/*
* This file was semi-automatically converted from the public-domain USGS PROJ source.
*/
package org.jproj.proj;
import org.jproj.ProjCoordinate;
import org.jproj.ProjectionException;
import org.jproj.util.ProjectionMath;
public class McBrydeThomasFlatPolarParabolicProjection extends Projection {
private static final double CS = .95257934441568037152;
private static final double FXC = .92582009977255146156;
private static final double FYC = 3.40168025708304504493;
private static final double C23 = .66666666666666666666;
private static final double C13 = .33333333333333333333;
private static final double ONEEPS = 1.0000001;
public ProjCoordinate project(double lplam, double lpphi, ProjCoordinate out) {
out.y = Math.asin(CS * Math.sin(lpphi));
out.x = FXC * lplam * (2. * Math.cos(C23 * lpphi) - 1.);
out.y = FYC * Math.sin(C13 * lpphi);
return out;
}
public ProjCoordinate projectInverse(double xyx, double xyy, ProjCoordinate out) {
out.y = xyy / FYC;
if (Math.abs(out.y) >= 1.) {
if (Math.abs(out.y) > ONEEPS) throw new ProjectionException("I");
else out.y = (out.y < 0.) ? -ProjectionMath.HALFPI : ProjectionMath.HALFPI;
} else
out.y = Math.asin(out.y);
out.x = xyx / ( FXC * (2. * Math.cos(C23 * (out.y *= 3.)) - 1.) );
if (Math.abs(out.y = Math.sin(out.y) / CS) >= 1.) {
if (Math.abs(out.y) > ONEEPS) throw new ProjectionException("I");
else out.y = (out.y < 0.) ? -ProjectionMath.HALFPI : ProjectionMath.HALFPI;
} else
out.y = Math.asin(out.y);
return out;
}
public boolean hasInverse() {
return true;
}
public String toString() {
return "McBride-Thomas Flat-Polar Parabolic";
}
}
| {'content_hash': '815d76ca65e8e064c6db1978b24cb9e4', 'timestamp': '', 'source': 'github', 'line_count': 52, 'max_line_length': 86, 'avg_line_length': 32.09615384615385, 'alnum_prop': 0.6962252846015579, 'repo_name': 'ebocher/jproj', 'id': '791d3c1cbe3e06b3bc220ba7e4133f68e1505acc', 'size': '2228', 'binary': False, 'copies': '1', 'ref': 'refs/heads/master', 'path': 'src/main/java/org/jproj/proj/McBrydeThomasFlatPolarParabolicProjection.java', 'mode': '33188', 'license': 'apache-2.0', 'language': [{'name': 'Java', 'bytes': '653594'}]} |
<?php
class ServeCategoryModel extends CI_Model{
function __construct()
{
parent::__construct();
$this->load->database();
}
function getServeCategoryByName( $cate , $limit , $status){
$sql = "SELECT serve_category_id,serve_category_icon,serve_category_name from nham_serve_category
WHERE REPLACE(serve_category_name, ' ', '') LIKE REPLACE(?,' ','') AND serve_category_status in (?,?)
ORDER BY serve_category_type DESC
LIMIT ?";
$cate = "%".$cate."%";
$limit = (int)$limit;
$query = $this->db->query($sql, array($cate, $status["statusA"] , $status["statusB"] ,$limit) );
$data = $query->result();
return $data;
}
function getAllServeCategory(){
$sql = "SELECT serve_category_id,serve_category_icon,serve_category_name from nham_serve_category
WHERE serve_category_status = 1
ORDER BY serve_category_type DESC";
$query = $this->db->query($sql);
$data = $query->result();
return $data;
}
function getServeCategoryByShopId( $shopid ){
$sql = "SELECT
m.serve_category_id,
c.serve_category_icon,
c.serve_category_name
FROM nham_serve_cate_map_shop m
LEFT JOIN nham_serve_category c ON c.serve_category_id = m.serve_category_id
WHERE m.shop_id = ? and c.serve_category_status = 1 ";
$query = $this->db->query($sql, $shopid);
$response = $query->result();
return $response;
}
function getServeCategoryByProId( $proid ){
$sql = "SELECT
p.serve_category_id,
c.serve_category_icon,
c.serve_category_name
FROM nham_serve_cate_map_pro p
LEFT JOIN nham_serve_category c ON c.serve_category_id =p.serve_category_id
WHERE p.pro_id = ? and c.serve_category_status = 1 ";
$query = $this->db->query($sql, $proid);
$response = $query->result();
return $response;
}
function insertServeCategory( $servecatearr ){
$this->db->trans_start();
$query = $this->db->query('INSERT INTO nham_serve_category(serve_category_name, serve_category_type , serve_category_icon , serve_category_remark, admin_id) values (? ,? , ? , ?, ?)', $servecatearr);
$insert_id = $this->db->insert_id();
$isinsert = ($this->db->affected_rows() != 1) ? false : true;
$this->db->trans_complete();
$data["serve_category_id"] = $insert_id;
$data["is_insert"] = $isinsert;
return $data;
}
}
?> | {'content_hash': 'dd9bcbe4f0812ce78c841e1c882e10c5', 'timestamp': '', 'source': 'github', 'line_count': 76, 'max_line_length': 201, 'avg_line_length': 31.986842105263158, 'alnum_prop': 0.6149732620320856, 'repo_name': 'SrunSundy/admin', 'id': 'f8449ff2f1de280f6e41cc4d9af06a7d7fce4a17', 'size': '2431', 'binary': False, 'copies': '2', 'ref': 'refs/heads/master', 'path': 'application/models/ServeCategoryModel.php', 'mode': '33188', 'license': 'mit', 'language': [{'name': 'CSS', 'bytes': '709669'}, {'name': 'HTML', 'bytes': '1296425'}, {'name': 'JavaScript', 'bytes': '2063888'}, {'name': 'PHP', 'bytes': '3131525'}, {'name': 'Python', 'bytes': '32324'}]} |
declare namespace jasmine {
interface Matchers<T> {
toBeElement(expected: any): boolean;
toHaveClass(expected: string): boolean;
toMatchStructure(expected: any): boolean;
}
}
| {'content_hash': '66aa634fd3743560aaca2ab0575b7d86', 'timestamp': '', 'source': 'github', 'line_count': 7, 'max_line_length': 49, 'avg_line_length': 29.571428571428573, 'alnum_prop': 0.6570048309178744, 'repo_name': 'FlockOfBirds/boolean-slider', 'id': '403cced03b5badd811b4b4c1ce1b4b2a599a24f1', 'size': '356', 'binary': False, 'copies': '6', 'ref': 'refs/heads/master', 'path': 'typings/customMatchers.d.ts', 'mode': '33188', 'license': 'apache-2.0', 'language': [{'name': 'CSS', 'bytes': '10606'}, {'name': 'JavaScript', 'bytes': '10207'}, {'name': 'TypeScript', 'bytes': '32618'}]} |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>OpenLayers 3 API Documentation - Class: Heatmap</title>
<script src="scripts/prettify/prettify.js"> </script>
<script src="scripts/prettify/lang-css.js"> </script>
<script src="scripts/jquery.min.js"> </script>
<!--[if lt IE 9]>
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<link type="text/css" rel="stylesheet" href="styles/prettify-tomorrow.css">
<link type="text/css" rel="stylesheet" href="styles/bootstrap.min.css">
<link type="text/css" rel="stylesheet" href="styles/jaguar.css">
</head>
<body>
<div class="navbar navbar-inverse navbar-fixed-top">
<div class="navbar-inner">
<div class="container">
<a class="brand" href="/"><img src="../resources/logo.png" width="40"> OpenLayers 3</a>
<a class="brand" href="index.html">API Documentation</a>
<label id="stability">
<input type="checkbox" id="stability-toggle" checked> Stable Only
</label>
</div>
</div>
</div>
<div id="wrap" class="clearfix">
<div class="navigation">
<div class="search">
<input id="search" type="text" class="form-control input-sm" placeholder="Search Documentation">
</div>
<ul class="list">
<li class="item" data-name="ol">
<span class="title">
<a href="ol.html">ol</a>
</span>
<ul class="members itemMembers">
<span class="subtitle">Members</span>
<li data-name="ol.WEBGL_MAX_TEXTURE_SIZE"><a href="ol.html#WEBGL_MAX_TEXTURE_SIZE">WEBGL_MAX_TEXTURE_SIZE</a></li>
</ul>
<ul class="typedefs itemMembers">
<span class="subtitle">Typedefs</span>
<li data-name="ol.CanvasFunctionType" class="unstable">
<a href="ol.html#CanvasFunctionType">CanvasFunctionType</a>
</li>
<li data-name="ol.Color" class="unstable">
<a href="ol.html#Color">Color</a>
</li>
<li data-name="ol.Coordinate" class="">
<a href="ol.html#Coordinate">Coordinate</a>
</li>
<li data-name="ol.CoordinateFormatType" class="">
<a href="ol.html#CoordinateFormatType">CoordinateFormatType</a>
</li>
<li data-name="ol.Extent" class="">
<a href="ol.html#Extent">Extent</a>
</li>
<li data-name="ol.ImageLoadFunctionType" class="unstable">
<a href="ol.html#ImageLoadFunctionType">ImageLoadFunctionType</a>
</li>
<li data-name="ol.OverlayPositioning" class="">
<a href="ol.html#OverlayPositioning">OverlayPositioning</a>
</li>
<li data-name="ol.Pixel" class="">
<a href="ol.html#Pixel">Pixel</a>
</li>
<li data-name="ol.PreRenderFunction" class="unstable">
<a href="ol.html#PreRenderFunction">PreRenderFunction</a>
</li>
<li data-name="ol.RendererType" class="">
<a href="ol.html#RendererType">RendererType</a>
</li>
<li data-name="ol.Size" class="">
<a href="ol.html#Size">Size</a>
</li>
<li data-name="ol.TileCoord" class="unstable">
<a href="ol.html#TileCoord">TileCoord</a>
</li>
<li data-name="ol.TileLoadFunctionType" class="unstable">
<a href="ol.html#TileLoadFunctionType">TileLoadFunctionType</a>
</li>
<li data-name="ol.TileUrlFunctionType" class="unstable">
<a href="ol.html#TileUrlFunctionType">TileUrlFunctionType</a>
</li>
<li data-name="ol.TransformFunction" class="">
<a href="ol.html#TransformFunction">TransformFunction</a>
</li>
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.inherits" class="unstable">
<a href="ol.html#inherits">inherits</a>
</li>
</ul>
<ul class="fires itemMembers">
</ul>
</li>
<li class="item" data-name="ol.Attribution">
<span class="title">
<a href="ol.Attribution.html">ol.Attribution</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.Attribution#getHTML" class="">
<a href="ol.Attribution.html#getHTML">getHTML</a>
</li>
</ul>
<ul class="fires itemMembers">
</ul>
</li>
<li class="item" data-name="ol.Collection">
<span class="title">
<a href="ol.Collection.html">ol.Collection</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.Collection#bindTo" class="unstable">
<a href="ol.Collection.html#bindTo">bindTo</a>
</li>
<li data-name="ol.Collection#changed" class="unstable">
<a href="ol.Collection.html#changed">changed</a>
</li>
<li data-name="ol.Collection#clear" class="">
<a href="ol.Collection.html#clear">clear</a>
</li>
<li data-name="ol.Collection#extend" class="">
<a href="ol.Collection.html#extend">extend</a>
</li>
<li data-name="ol.Collection#forEach" class="">
<a href="ol.Collection.html#forEach">forEach</a>
</li>
<li data-name="ol.Collection#get" class="unstable">
<a href="ol.Collection.html#get">get</a>
</li>
<li data-name="ol.Collection#getArray" class="">
<a href="ol.Collection.html#getArray">getArray</a>
</li>
<li data-name="ol.Collection#getKeys" class="unstable">
<a href="ol.Collection.html#getKeys">getKeys</a>
</li>
<li data-name="ol.Collection#getLength" class="">
<a href="ol.Collection.html#getLength">getLength</a>
</li>
<li data-name="ol.Collection#getProperties" class="unstable">
<a href="ol.Collection.html#getProperties">getProperties</a>
</li>
<li data-name="ol.Collection#getRevision" class="unstable">
<a href="ol.Collection.html#getRevision">getRevision</a>
</li>
<li data-name="ol.Collection#insertAt" class="">
<a href="ol.Collection.html#insertAt">insertAt</a>
</li>
<li data-name="ol.Collection#item" class="">
<a href="ol.Collection.html#item">item</a>
</li>
<li data-name="ol.Collection#on" class="">
<a href="ol.Collection.html#on">on</a>
</li>
<li data-name="ol.Collection#once" class="">
<a href="ol.Collection.html#once">once</a>
</li>
<li data-name="ol.Collection#pop" class="">
<a href="ol.Collection.html#pop">pop</a>
</li>
<li data-name="ol.Collection#push" class="">
<a href="ol.Collection.html#push">push</a>
</li>
<li data-name="ol.Collection#remove" class="">
<a href="ol.Collection.html#remove">remove</a>
</li>
<li data-name="ol.Collection#removeAt" class="">
<a href="ol.Collection.html#removeAt">removeAt</a>
</li>
<li data-name="ol.Collection#set" class="unstable">
<a href="ol.Collection.html#set">set</a>
</li>
<li data-name="ol.Collection#setAt" class="">
<a href="ol.Collection.html#setAt">setAt</a>
</li>
<li data-name="ol.Collection#setProperties" class="unstable">
<a href="ol.Collection.html#setProperties">setProperties</a>
</li>
<li data-name="ol.Collection#un" class="">
<a href="ol.Collection.html#un">un</a>
</li>
<li data-name="ol.Collection#unbind" class="unstable">
<a href="ol.Collection.html#unbind">unbind</a>
</li>
<li data-name="ol.Collection#unbindAll" class="unstable">
<a href="ol.Collection.html#unbindAll">unbindAll</a>
</li>
<li data-name="ol.Collection#unByKey" class="">
<a href="ol.Collection.html#unByKey">unByKey</a>
</li>
</ul>
<ul class="fires itemMembers">
<span class="subtitle">Fires</span>
<li data-name="ol.CollectionEvent#event:add" class="">
<a href="ol.CollectionEvent.html#event:add">add</a>
</li>
<li data-name="ol.ObjectEvent#event:change:length" class="unstable">
change:length
</li>
<li data-name="ol.ObjectEvent#event:propertychange" class="unstable">
<a href="ol.ObjectEvent.html#event:propertychange">propertychange</a>
</li>
<li data-name="ol.CollectionEvent#event:remove" class="">
<a href="ol.CollectionEvent.html#event:remove">remove</a>
</li>
</ul>
</li>
<li class="item" data-name="ol.CollectionEvent">
<span class="title">
<a href="ol.CollectionEvent.html">ol.CollectionEvent</a>
</span>
<ul class="members itemMembers">
<span class="subtitle">Members</span>
<li data-name="ol.CollectionEvent#element"><a href="ol.CollectionEvent.html#element">element</a></li>
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
</ul>
<ul class="fires itemMembers">
</ul>
</li>
<li class="item" data-name="ol.DeviceOrientation">
<span class="title">
<a href="ol.DeviceOrientation.html">ol.DeviceOrientation</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.DeviceOrientation#bindTo" class="unstable">
<a href="ol.DeviceOrientation.html#bindTo">bindTo</a>
</li>
<li data-name="ol.DeviceOrientation#changed" class="unstable">
<a href="ol.DeviceOrientation.html#changed">changed</a>
</li>
<li data-name="ol.DeviceOrientation#get" class="unstable">
<a href="ol.DeviceOrientation.html#get">get</a>
</li>
<li data-name="ol.DeviceOrientation#getAlpha" class="unstable">
<a href="ol.DeviceOrientation.html#getAlpha">getAlpha</a>
</li>
<li data-name="ol.DeviceOrientation#getBeta" class="unstable">
<a href="ol.DeviceOrientation.html#getBeta">getBeta</a>
</li>
<li data-name="ol.DeviceOrientation#getGamma" class="unstable">
<a href="ol.DeviceOrientation.html#getGamma">getGamma</a>
</li>
<li data-name="ol.DeviceOrientation#getHeading" class="unstable">
<a href="ol.DeviceOrientation.html#getHeading">getHeading</a>
</li>
<li data-name="ol.DeviceOrientation#getKeys" class="unstable">
<a href="ol.DeviceOrientation.html#getKeys">getKeys</a>
</li>
<li data-name="ol.DeviceOrientation#getProperties" class="unstable">
<a href="ol.DeviceOrientation.html#getProperties">getProperties</a>
</li>
<li data-name="ol.DeviceOrientation#getRevision" class="unstable">
<a href="ol.DeviceOrientation.html#getRevision">getRevision</a>
</li>
<li data-name="ol.DeviceOrientation#getTracking" class="unstable">
<a href="ol.DeviceOrientation.html#getTracking">getTracking</a>
</li>
<li data-name="ol.DeviceOrientation#on" class="">
<a href="ol.DeviceOrientation.html#on">on</a>
</li>
<li data-name="ol.DeviceOrientation#once" class="">
<a href="ol.DeviceOrientation.html#once">once</a>
</li>
<li data-name="ol.DeviceOrientation#set" class="unstable">
<a href="ol.DeviceOrientation.html#set">set</a>
</li>
<li data-name="ol.DeviceOrientation#setProperties" class="unstable">
<a href="ol.DeviceOrientation.html#setProperties">setProperties</a>
</li>
<li data-name="ol.DeviceOrientation#setTracking" class="unstable">
<a href="ol.DeviceOrientation.html#setTracking">setTracking</a>
</li>
<li data-name="ol.DeviceOrientation#un" class="">
<a href="ol.DeviceOrientation.html#un">un</a>
</li>
<li data-name="ol.DeviceOrientation#unbind" class="unstable">
<a href="ol.DeviceOrientation.html#unbind">unbind</a>
</li>
<li data-name="ol.DeviceOrientation#unbindAll" class="unstable">
<a href="ol.DeviceOrientation.html#unbindAll">unbindAll</a>
</li>
<li data-name="ol.DeviceOrientation#unByKey" class="">
<a href="ol.DeviceOrientation.html#unByKey">unByKey</a>
</li>
</ul>
<ul class="fires itemMembers">
<span class="subtitle">Fires</span>
<li data-name="event:change Triggered when the device orientation changes." class="unstable">
change Triggered when the device orientation changes.
</li>
<li data-name="ol.ObjectEvent#event:change:alpha" class="unstable">
change:alpha
</li>
<li data-name="ol.ObjectEvent#event:change:beta" class="unstable">
change:beta
</li>
<li data-name="ol.ObjectEvent#event:change:gamma" class="unstable">
change:gamma
</li>
<li data-name="ol.ObjectEvent#event:change:heading" class="unstable">
change:heading
</li>
<li data-name="ol.ObjectEvent#event:change:tracking" class="unstable">
change:tracking
</li>
<li data-name="ol.ObjectEvent#event:propertychange" class="unstable">
<a href="ol.ObjectEvent.html#event:propertychange">propertychange</a>
</li>
</ul>
</li>
<li class="item" data-name="ol.DragBoxEvent">
<span class="title">
<a href="ol.DragBoxEvent.html">ol.DragBoxEvent</a>
</span>
<ul class="members itemMembers">
<span class="subtitle">Members</span>
<li data-name="ol.DragBoxEvent#coordinate"><a href="ol.DragBoxEvent.html#coordinate">coordinate</a></li>
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
</ul>
<ul class="fires itemMembers">
</ul>
</li>
<li class="item" data-name="ol.DrawEvent">
<span class="title">
<a href="ol.DrawEvent.html">ol.DrawEvent</a>
</span>
<ul class="members itemMembers">
<span class="subtitle">Members</span>
<li data-name="ol.DrawEvent#feature"><a href="ol.DrawEvent.html#feature">feature</a></li>
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
</ul>
<ul class="fires itemMembers">
</ul>
</li>
<li class="item" data-name="ol.Feature">
<span class="title">
<a href="ol.Feature.html">ol.Feature</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.Feature#bindTo" class="unstable">
<a href="ol.Feature.html#bindTo">bindTo</a>
</li>
<li data-name="ol.Feature#changed" class="unstable">
<a href="ol.Feature.html#changed">changed</a>
</li>
<li data-name="ol.Feature#clone" class="">
<a href="ol.Feature.html#clone">clone</a>
</li>
<li data-name="ol.Feature#get" class="unstable">
<a href="ol.Feature.html#get">get</a>
</li>
<li data-name="ol.Feature#getGeometry" class="">
<a href="ol.Feature.html#getGeometry">getGeometry</a>
</li>
<li data-name="ol.Feature#getGeometryName" class="">
<a href="ol.Feature.html#getGeometryName">getGeometryName</a>
</li>
<li data-name="ol.Feature#getId" class="">
<a href="ol.Feature.html#getId">getId</a>
</li>
<li data-name="ol.Feature#getKeys" class="unstable">
<a href="ol.Feature.html#getKeys">getKeys</a>
</li>
<li data-name="ol.Feature#getProperties" class="unstable">
<a href="ol.Feature.html#getProperties">getProperties</a>
</li>
<li data-name="ol.Feature#getRevision" class="unstable">
<a href="ol.Feature.html#getRevision">getRevision</a>
</li>
<li data-name="ol.Feature#getStyle" class="">
<a href="ol.Feature.html#getStyle">getStyle</a>
</li>
<li data-name="ol.Feature#getStyleFunction" class="">
<a href="ol.Feature.html#getStyleFunction">getStyleFunction</a>
</li>
<li data-name="ol.Feature#on" class="">
<a href="ol.Feature.html#on">on</a>
</li>
<li data-name="ol.Feature#once" class="">
<a href="ol.Feature.html#once">once</a>
</li>
<li data-name="ol.Feature#set" class="unstable">
<a href="ol.Feature.html#set">set</a>
</li>
<li data-name="ol.Feature#setGeometry" class="">
<a href="ol.Feature.html#setGeometry">setGeometry</a>
</li>
<li data-name="ol.Feature#setGeometryName" class="">
<a href="ol.Feature.html#setGeometryName">setGeometryName</a>
</li>
<li data-name="ol.Feature#setId" class="">
<a href="ol.Feature.html#setId">setId</a>
</li>
<li data-name="ol.Feature#setProperties" class="unstable">
<a href="ol.Feature.html#setProperties">setProperties</a>
</li>
<li data-name="ol.Feature#setStyle" class="">
<a href="ol.Feature.html#setStyle">setStyle</a>
</li>
<li data-name="ol.Feature#un" class="">
<a href="ol.Feature.html#un">un</a>
</li>
<li data-name="ol.Feature#unbind" class="unstable">
<a href="ol.Feature.html#unbind">unbind</a>
</li>
<li data-name="ol.Feature#unbindAll" class="unstable">
<a href="ol.Feature.html#unbindAll">unbindAll</a>
</li>
<li data-name="ol.Feature#unByKey" class="">
<a href="ol.Feature.html#unByKey">unByKey</a>
</li>
</ul>
<ul class="fires itemMembers">
<span class="subtitle">Fires</span>
<li data-name="change Triggered when the id, the geometry or the style of the
feature changes.event:" class="unstable">
change Triggered when the id, the geometry or the style of the
feature changes.event:
</li>
<li data-name="ol.ObjectEvent#event:change:geometry" class="unstable">
change:geometry
</li>
<li data-name="ol.ObjectEvent#event:propertychange" class="unstable">
<a href="ol.ObjectEvent.html#event:propertychange">propertychange</a>
</li>
</ul>
</li>
<li class="item" data-name="ol.FeatureOverlay">
<span class="title">
<a href="ol.FeatureOverlay.html">ol.FeatureOverlay</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.FeatureOverlay#addFeature" class="unstable">
<a href="ol.FeatureOverlay.html#addFeature">addFeature</a>
</li>
<li data-name="ol.FeatureOverlay#getFeatures" class="unstable">
<a href="ol.FeatureOverlay.html#getFeatures">getFeatures</a>
</li>
<li data-name="ol.FeatureOverlay#getMap" class="unstable">
<a href="ol.FeatureOverlay.html#getMap">getMap</a>
</li>
<li data-name="ol.FeatureOverlay#getStyle" class="unstable">
<a href="ol.FeatureOverlay.html#getStyle">getStyle</a>
</li>
<li data-name="ol.FeatureOverlay#getStyleFunction" class="unstable">
<a href="ol.FeatureOverlay.html#getStyleFunction">getStyleFunction</a>
</li>
<li data-name="ol.FeatureOverlay#removeFeature" class="unstable">
<a href="ol.FeatureOverlay.html#removeFeature">removeFeature</a>
</li>
<li data-name="ol.FeatureOverlay#setFeatures" class="unstable">
<a href="ol.FeatureOverlay.html#setFeatures">setFeatures</a>
</li>
<li data-name="ol.FeatureOverlay#setMap" class="unstable">
<a href="ol.FeatureOverlay.html#setMap">setMap</a>
</li>
<li data-name="ol.FeatureOverlay#setStyle" class="unstable">
<a href="ol.FeatureOverlay.html#setStyle">setStyle</a>
</li>
</ul>
<ul class="fires itemMembers">
</ul>
</li>
<li class="item" data-name="ol.Geolocation">
<span class="title">
<a href="ol.Geolocation.html">ol.Geolocation</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.Geolocation#bindTo" class="unstable">
<a href="ol.Geolocation.html#bindTo">bindTo</a>
</li>
<li data-name="ol.Geolocation#changed" class="unstable">
<a href="ol.Geolocation.html#changed">changed</a>
</li>
<li data-name="ol.Geolocation#get" class="unstable">
<a href="ol.Geolocation.html#get">get</a>
</li>
<li data-name="ol.Geolocation#getAccuracy" class="">
<a href="ol.Geolocation.html#getAccuracy">getAccuracy</a>
</li>
<li data-name="ol.Geolocation#getAccuracyGeometry" class="">
<a href="ol.Geolocation.html#getAccuracyGeometry">getAccuracyGeometry</a>
</li>
<li data-name="ol.Geolocation#getAltitude" class="">
<a href="ol.Geolocation.html#getAltitude">getAltitude</a>
</li>
<li data-name="ol.Geolocation#getAltitudeAccuracy" class="">
<a href="ol.Geolocation.html#getAltitudeAccuracy">getAltitudeAccuracy</a>
</li>
<li data-name="ol.Geolocation#getHeading" class="">
<a href="ol.Geolocation.html#getHeading">getHeading</a>
</li>
<li data-name="ol.Geolocation#getKeys" class="unstable">
<a href="ol.Geolocation.html#getKeys">getKeys</a>
</li>
<li data-name="ol.Geolocation#getPosition" class="">
<a href="ol.Geolocation.html#getPosition">getPosition</a>
</li>
<li data-name="ol.Geolocation#getProjection" class="">
<a href="ol.Geolocation.html#getProjection">getProjection</a>
</li>
<li data-name="ol.Geolocation#getProperties" class="unstable">
<a href="ol.Geolocation.html#getProperties">getProperties</a>
</li>
<li data-name="ol.Geolocation#getRevision" class="unstable">
<a href="ol.Geolocation.html#getRevision">getRevision</a>
</li>
<li data-name="ol.Geolocation#getSpeed" class="">
<a href="ol.Geolocation.html#getSpeed">getSpeed</a>
</li>
<li data-name="ol.Geolocation#getTracking" class="">
<a href="ol.Geolocation.html#getTracking">getTracking</a>
</li>
<li data-name="ol.Geolocation#getTrackingOptions" class="">
<a href="ol.Geolocation.html#getTrackingOptions">getTrackingOptions</a>
</li>
<li data-name="ol.Geolocation#on" class="">
<a href="ol.Geolocation.html#on">on</a>
</li>
<li data-name="ol.Geolocation#once" class="">
<a href="ol.Geolocation.html#once">once</a>
</li>
<li data-name="ol.Geolocation#set" class="unstable">
<a href="ol.Geolocation.html#set">set</a>
</li>
<li data-name="ol.Geolocation#setProjection" class="">
<a href="ol.Geolocation.html#setProjection">setProjection</a>
</li>
<li data-name="ol.Geolocation#setProperties" class="unstable">
<a href="ol.Geolocation.html#setProperties">setProperties</a>
</li>
<li data-name="ol.Geolocation#setTracking" class="">
<a href="ol.Geolocation.html#setTracking">setTracking</a>
</li>
<li data-name="ol.Geolocation#setTrackingOptions" class="">
<a href="ol.Geolocation.html#setTrackingOptions">setTrackingOptions</a>
</li>
<li data-name="ol.Geolocation#un" class="">
<a href="ol.Geolocation.html#un">un</a>
</li>
<li data-name="ol.Geolocation#unbind" class="unstable">
<a href="ol.Geolocation.html#unbind">unbind</a>
</li>
<li data-name="ol.Geolocation#unbindAll" class="unstable">
<a href="ol.Geolocation.html#unbindAll">unbindAll</a>
</li>
<li data-name="ol.Geolocation#unByKey" class="">
<a href="ol.Geolocation.html#unByKey">unByKey</a>
</li>
</ul>
<ul class="fires itemMembers">
<span class="subtitle">Fires</span>
<li data-name="event:change Triggered when the position changes." class="unstable">
change Triggered when the position changes.
</li>
<li data-name="ol.ObjectEvent#event:change:accuracy" class="unstable">
change:accuracy
</li>
<li data-name="ol.ObjectEvent#event:change:accuracyGeometry" class="unstable">
change:accuracyGeometry
</li>
<li data-name="ol.ObjectEvent#event:change:altitude" class="unstable">
change:altitude
</li>
<li data-name="ol.ObjectEvent#event:change:altitudeAccuracy" class="unstable">
change:altitudeAccuracy
</li>
<li data-name="ol.ObjectEvent#event:change:heading" class="unstable">
change:heading
</li>
<li data-name="ol.ObjectEvent#event:change:position" class="unstable">
change:position
</li>
<li data-name="ol.ObjectEvent#event:change:projection" class="unstable">
change:projection
</li>
<li data-name="ol.ObjectEvent#event:change:speed" class="unstable">
change:speed
</li>
<li data-name="ol.ObjectEvent#event:change:tracking" class="unstable">
change:tracking
</li>
<li data-name="ol.ObjectEvent#event:change:trackingOptions" class="unstable">
change:trackingOptions
</li>
<li data-name="ol.ObjectEvent#event:propertychange" class="unstable">
<a href="ol.ObjectEvent.html#event:propertychange">propertychange</a>
</li>
</ul>
</li>
<li class="item" data-name="ol.Graticule">
<span class="title">
<a href="ol.Graticule.html">ol.Graticule</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.Graticule#getMap" class="unstable">
<a href="ol.Graticule.html#getMap">getMap</a>
</li>
<li data-name="ol.Graticule#getMeridians" class="unstable">
<a href="ol.Graticule.html#getMeridians">getMeridians</a>
</li>
<li data-name="ol.Graticule#getParallels" class="unstable">
<a href="ol.Graticule.html#getParallels">getParallels</a>
</li>
<li data-name="ol.Graticule#setMap" class="unstable">
<a href="ol.Graticule.html#setMap">setMap</a>
</li>
</ul>
<ul class="fires itemMembers">
</ul>
</li>
<li class="item" data-name="ol.Image">
<span class="title">
<a href="ol.Image.html">ol.Image</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.Image#getImage" class="unstable">
<a href="ol.Image.html#getImage">getImage</a>
</li>
</ul>
<ul class="fires itemMembers">
</ul>
</li>
<li class="item" data-name="ol.ImageBase">
<span class="title">
<a href="ol.ImageBase.html">ol.ImageBase</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
</ul>
<ul class="fires itemMembers">
</ul>
</li>
<li class="item" data-name="ol.ImageTile">
<span class="title">
<a href="ol.ImageTile.html">ol.ImageTile</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.ImageTile#getImage" class="unstable">
<a href="ol.ImageTile.html#getImage">getImage</a>
</li>
<li data-name="ol.ImageTile#getTileCoord" class="unstable">
<a href="ol.ImageTile.html#getTileCoord">getTileCoord</a>
</li>
</ul>
<ul class="fires itemMembers">
</ul>
</li>
<li class="item" data-name="ol.Kinetic">
<span class="title">
<a href="ol.Kinetic.html">ol.Kinetic</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
</ul>
<ul class="fires itemMembers">
</ul>
</li>
<li class="item" data-name="ol.Map">
<span class="title">
<a href="ol.Map.html">ol.Map</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.Map#addControl" class="">
<a href="ol.Map.html#addControl">addControl</a>
</li>
<li data-name="ol.Map#addInteraction" class="">
<a href="ol.Map.html#addInteraction">addInteraction</a>
</li>
<li data-name="ol.Map#addLayer" class="">
<a href="ol.Map.html#addLayer">addLayer</a>
</li>
<li data-name="ol.Map#addOverlay" class="">
<a href="ol.Map.html#addOverlay">addOverlay</a>
</li>
<li data-name="ol.Map#beforeRender" class="unstable">
<a href="ol.Map.html#beforeRender">beforeRender</a>
</li>
<li data-name="ol.Map#bindTo" class="unstable">
<a href="ol.Map.html#bindTo">bindTo</a>
</li>
<li data-name="ol.Map#changed" class="unstable">
<a href="ol.Map.html#changed">changed</a>
</li>
<li data-name="ol.Map#forEachFeatureAtPixel" class="">
<a href="ol.Map.html#forEachFeatureAtPixel">forEachFeatureAtPixel</a>
</li>
<li data-name="ol.Map#forEachLayerAtPixel" class="">
<a href="ol.Map.html#forEachLayerAtPixel">forEachLayerAtPixel</a>
</li>
<li data-name="ol.Map#get" class="unstable">
<a href="ol.Map.html#get">get</a>
</li>
<li data-name="ol.Map#getControls" class="">
<a href="ol.Map.html#getControls">getControls</a>
</li>
<li data-name="ol.Map#getCoordinateFromPixel" class="">
<a href="ol.Map.html#getCoordinateFromPixel">getCoordinateFromPixel</a>
</li>
<li data-name="ol.Map#getEventCoordinate" class="">
<a href="ol.Map.html#getEventCoordinate">getEventCoordinate</a>
</li>
<li data-name="ol.Map#getEventPixel" class="">
<a href="ol.Map.html#getEventPixel">getEventPixel</a>
</li>
<li data-name="ol.Map#getInteractions" class="">
<a href="ol.Map.html#getInteractions">getInteractions</a>
</li>
<li data-name="ol.Map#getKeys" class="unstable">
<a href="ol.Map.html#getKeys">getKeys</a>
</li>
<li data-name="ol.Map#getLayerGroup" class="">
<a href="ol.Map.html#getLayerGroup">getLayerGroup</a>
</li>
<li data-name="ol.Map#getLayers" class="">
<a href="ol.Map.html#getLayers">getLayers</a>
</li>
<li data-name="ol.Map#getOverlays" class="">
<a href="ol.Map.html#getOverlays">getOverlays</a>
</li>
<li data-name="ol.Map#getPixelFromCoordinate" class="">
<a href="ol.Map.html#getPixelFromCoordinate">getPixelFromCoordinate</a>
</li>
<li data-name="ol.Map#getProperties" class="unstable">
<a href="ol.Map.html#getProperties">getProperties</a>
</li>
<li data-name="ol.Map#getRevision" class="unstable">
<a href="ol.Map.html#getRevision">getRevision</a>
</li>
<li data-name="ol.Map#getSize" class="">
<a href="ol.Map.html#getSize">getSize</a>
</li>
<li data-name="ol.Map#getTarget" class="">
<a href="ol.Map.html#getTarget">getTarget</a>
</li>
<li data-name="ol.Map#getTargetElement" class="unstable">
<a href="ol.Map.html#getTargetElement">getTargetElement</a>
</li>
<li data-name="ol.Map#getView" class="">
<a href="ol.Map.html#getView">getView</a>
</li>
<li data-name="ol.Map#getViewport" class="">
<a href="ol.Map.html#getViewport">getViewport</a>
</li>
<li data-name="ol.Map#hasFeatureAtPixel" class="unstable">
<a href="ol.Map.html#hasFeatureAtPixel">hasFeatureAtPixel</a>
</li>
<li data-name="ol.Map#on" class="">
<a href="ol.Map.html#on">on</a>
</li>
<li data-name="ol.Map#once" class="">
<a href="ol.Map.html#once">once</a>
</li>
<li data-name="ol.Map#removeControl" class="">
<a href="ol.Map.html#removeControl">removeControl</a>
</li>
<li data-name="ol.Map#removeInteraction" class="">
<a href="ol.Map.html#removeInteraction">removeInteraction</a>
</li>
<li data-name="ol.Map#removeLayer" class="">
<a href="ol.Map.html#removeLayer">removeLayer</a>
</li>
<li data-name="ol.Map#removeOverlay" class="">
<a href="ol.Map.html#removeOverlay">removeOverlay</a>
</li>
<li data-name="ol.Map#render" class="">
<a href="ol.Map.html#render">render</a>
</li>
<li data-name="ol.Map#renderSync" class="">
<a href="ol.Map.html#renderSync">renderSync</a>
</li>
<li data-name="ol.Map#set" class="unstable">
<a href="ol.Map.html#set">set</a>
</li>
<li data-name="ol.Map#setLayerGroup" class="">
<a href="ol.Map.html#setLayerGroup">setLayerGroup</a>
</li>
<li data-name="ol.Map#setProperties" class="unstable">
<a href="ol.Map.html#setProperties">setProperties</a>
</li>
<li data-name="ol.Map#setSize" class="unstable">
<a href="ol.Map.html#setSize">setSize</a>
</li>
<li data-name="ol.Map#setTarget" class="">
<a href="ol.Map.html#setTarget">setTarget</a>
</li>
<li data-name="ol.Map#setView" class="">
<a href="ol.Map.html#setView">setView</a>
</li>
<li data-name="ol.Map#un" class="">
<a href="ol.Map.html#un">un</a>
</li>
<li data-name="ol.Map#unbind" class="unstable">
<a href="ol.Map.html#unbind">unbind</a>
</li>
<li data-name="ol.Map#unbindAll" class="unstable">
<a href="ol.Map.html#unbindAll">unbindAll</a>
</li>
<li data-name="ol.Map#unByKey" class="">
<a href="ol.Map.html#unByKey">unByKey</a>
</li>
<li data-name="ol.Map#updateSize" class="">
<a href="ol.Map.html#updateSize">updateSize</a>
</li>
</ul>
<ul class="fires itemMembers">
<span class="subtitle">Fires</span>
<li data-name="ol.ObjectEvent#event:change:layerGroup" class="unstable">
change:layerGroup
</li>
<li data-name="ol.ObjectEvent#event:change:size" class="unstable">
change:size
</li>
<li data-name="ol.ObjectEvent#event:change:target" class="unstable">
change:target
</li>
<li data-name="ol.ObjectEvent#event:change:view" class="unstable">
change:view
</li>
<li data-name="ol.MapBrowserEvent#event:click" class="unstable">
<a href="ol.MapBrowserEvent.html#event:click">click</a>
</li>
<li data-name="ol.MapBrowserEvent#event:dblclick" class="unstable">
<a href="ol.MapBrowserEvent.html#event:dblclick">dblclick</a>
</li>
<li data-name="ol.MapEvent#event:moveend" class="unstable">
<a href="ol.MapEvent.html#event:moveend">moveend</a>
</li>
<li data-name="ol.MapBrowserEvent#event:pointerdrag" class="unstable">
<a href="ol.MapBrowserEvent.html#event:pointerdrag">pointerdrag</a>
</li>
<li data-name="ol.MapBrowserEvent#event:pointermove" class="unstable">
<a href="ol.MapBrowserEvent.html#event:pointermove">pointermove</a>
</li>
<li data-name="ol.render.Event#event:postcompose" class="unstable">
<a href="ol.render.Event.html#event:postcompose">postcompose</a>
</li>
<li data-name="ol.MapEvent#event:postrender" class="unstable">
<a href="ol.MapEvent.html#event:postrender">postrender</a>
</li>
<li data-name="ol.render.Event#event:precompose" class="unstable">
<a href="ol.render.Event.html#event:precompose">precompose</a>
</li>
<li data-name="ol.ObjectEvent#event:propertychange" class="unstable">
<a href="ol.ObjectEvent.html#event:propertychange">propertychange</a>
</li>
<li data-name="ol.MapBrowserEvent#event:singleclick" class="unstable">
<a href="ol.MapBrowserEvent.html#event:singleclick">singleclick</a>
</li>
</ul>
</li>
<li class="item" data-name="ol.MapBrowserEvent">
<span class="title">
<a href="ol.MapBrowserEvent.html">ol.MapBrowserEvent</a>
</span>
<ul class="members itemMembers">
<span class="subtitle">Members</span>
<li data-name="ol.MapBrowserEvent#coordinate"><a href="ol.MapBrowserEvent.html#coordinate">coordinate</a></li>
<li data-name="ol.MapBrowserEvent#dragging"><a href="ol.MapBrowserEvent.html#dragging">dragging</a></li>
<li data-name="ol.MapBrowserEvent#frameState"><a href="ol.MapBrowserEvent.html#frameState">frameState</a></li>
<li data-name="ol.MapBrowserEvent#map"><a href="ol.MapBrowserEvent.html#map">map</a></li>
<li data-name="ol.MapBrowserEvent#originalEvent"><a href="ol.MapBrowserEvent.html#originalEvent">originalEvent</a></li>
<li data-name="ol.MapBrowserEvent#pixel"><a href="ol.MapBrowserEvent.html#pixel">pixel</a></li>
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.MapBrowserEvent#preventDefault" class="">
<a href="ol.MapBrowserEvent.html#preventDefault">preventDefault</a>
</li>
<li data-name="ol.MapBrowserEvent#stopPropagation" class="">
<a href="ol.MapBrowserEvent.html#stopPropagation">stopPropagation</a>
</li>
</ul>
<ul class="fires itemMembers">
</ul>
</li>
<li class="item" data-name="ol.MapEvent">
<span class="title">
<a href="ol.MapEvent.html">ol.MapEvent</a>
</span>
<ul class="members itemMembers">
<span class="subtitle">Members</span>
<li data-name="ol.MapEvent#frameState"><a href="ol.MapEvent.html#frameState">frameState</a></li>
<li data-name="ol.MapEvent#map"><a href="ol.MapEvent.html#map">map</a></li>
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
</ul>
<ul class="fires itemMembers">
</ul>
</li>
<li class="item" data-name="ol.Object">
<span class="title">
<a href="ol.Object.html">ol.Object</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.Object#bindTo" class="unstable">
<a href="ol.Object.html#bindTo">bindTo</a>
</li>
<li data-name="ol.Object#changed" class="unstable">
<a href="ol.Object.html#changed">changed</a>
</li>
<li data-name="ol.Object#get" class="unstable">
<a href="ol.Object.html#get">get</a>
</li>
<li data-name="ol.Object#getKeys" class="unstable">
<a href="ol.Object.html#getKeys">getKeys</a>
</li>
<li data-name="ol.Object#getProperties" class="unstable">
<a href="ol.Object.html#getProperties">getProperties</a>
</li>
<li data-name="ol.Object#getRevision" class="unstable">
<a href="ol.Object.html#getRevision">getRevision</a>
</li>
<li data-name="ol.Object#on" class="">
<a href="ol.Object.html#on">on</a>
</li>
<li data-name="ol.Object#once" class="">
<a href="ol.Object.html#once">once</a>
</li>
<li data-name="ol.Object#set" class="unstable">
<a href="ol.Object.html#set">set</a>
</li>
<li data-name="ol.Object#setProperties" class="unstable">
<a href="ol.Object.html#setProperties">setProperties</a>
</li>
<li data-name="ol.Object#un" class="">
<a href="ol.Object.html#un">un</a>
</li>
<li data-name="ol.Object#unbind" class="unstable">
<a href="ol.Object.html#unbind">unbind</a>
</li>
<li data-name="ol.Object#unbindAll" class="unstable">
<a href="ol.Object.html#unbindAll">unbindAll</a>
</li>
<li data-name="ol.Object#unByKey" class="">
<a href="ol.Object.html#unByKey">unByKey</a>
</li>
</ul>
<ul class="fires itemMembers">
<span class="subtitle">Fires</span>
<li data-name="ol.ObjectEvent#event:propertychange" class="unstable">
<a href="ol.ObjectEvent.html#event:propertychange">propertychange</a>
</li>
</ul>
</li>
<li class="item" data-name="ol.ObjectAccessor">
<span class="title">
<a href="ol.ObjectAccessor.html">ol.ObjectAccessor</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.ObjectAccessor#transform" class="unstable">
<a href="ol.ObjectAccessor.html#transform">transform</a>
</li>
</ul>
<ul class="fires itemMembers">
</ul>
</li>
<li class="item" data-name="ol.ObjectEvent">
<span class="title">
<a href="ol.ObjectEvent.html">ol.ObjectEvent</a>
</span>
<ul class="members itemMembers">
<span class="subtitle">Members</span>
<li data-name="ol.ObjectEvent#key"><a href="ol.ObjectEvent.html#key">key</a></li>
<li data-name="ol.ObjectEvent#oldValue"><a href="ol.ObjectEvent.html#oldValue">oldValue</a></li>
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
</ul>
<ul class="fires itemMembers">
</ul>
</li>
<li class="item" data-name="ol.Observable">
<span class="title">
<a href="ol.Observable.html">ol.Observable</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.Observable.unByKey" class="">
<a href="ol.Observable.html#unByKey">unByKey</a>
</li>
<li data-name="ol.Observable#changed" class="unstable">
<a href="ol.Observable.html#changed">changed</a>
</li>
<li data-name="ol.Observable#getRevision" class="unstable">
<a href="ol.Observable.html#getRevision">getRevision</a>
</li>
<li data-name="ol.Observable#on" class="">
<a href="ol.Observable.html#on">on</a>
</li>
<li data-name="ol.Observable#once" class="">
<a href="ol.Observable.html#once">once</a>
</li>
<li data-name="ol.Observable#un" class="">
<a href="ol.Observable.html#un">un</a>
</li>
<li data-name="ol.Observable#unByKey" class="">
<a href="ol.Observable.html#unByKey">unByKey</a>
</li>
</ul>
<ul class="fires itemMembers">
</ul>
</li>
<li class="item" data-name="ol.Overlay">
<span class="title">
<a href="ol.Overlay.html">ol.Overlay</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.Overlay#bindTo" class="unstable">
<a href="ol.Overlay.html#bindTo">bindTo</a>
</li>
<li data-name="ol.Overlay#changed" class="unstable">
<a href="ol.Overlay.html#changed">changed</a>
</li>
<li data-name="ol.Overlay#get" class="unstable">
<a href="ol.Overlay.html#get">get</a>
</li>
<li data-name="ol.Overlay#getElement" class="">
<a href="ol.Overlay.html#getElement">getElement</a>
</li>
<li data-name="ol.Overlay#getKeys" class="unstable">
<a href="ol.Overlay.html#getKeys">getKeys</a>
</li>
<li data-name="ol.Overlay#getMap" class="">
<a href="ol.Overlay.html#getMap">getMap</a>
</li>
<li data-name="ol.Overlay#getOffset" class="">
<a href="ol.Overlay.html#getOffset">getOffset</a>
</li>
<li data-name="ol.Overlay#getPosition" class="">
<a href="ol.Overlay.html#getPosition">getPosition</a>
</li>
<li data-name="ol.Overlay#getPositioning" class="">
<a href="ol.Overlay.html#getPositioning">getPositioning</a>
</li>
<li data-name="ol.Overlay#getProperties" class="unstable">
<a href="ol.Overlay.html#getProperties">getProperties</a>
</li>
<li data-name="ol.Overlay#getRevision" class="unstable">
<a href="ol.Overlay.html#getRevision">getRevision</a>
</li>
<li data-name="ol.Overlay#on" class="">
<a href="ol.Overlay.html#on">on</a>
</li>
<li data-name="ol.Overlay#once" class="">
<a href="ol.Overlay.html#once">once</a>
</li>
<li data-name="ol.Overlay#set" class="unstable">
<a href="ol.Overlay.html#set">set</a>
</li>
<li data-name="ol.Overlay#setElement" class="">
<a href="ol.Overlay.html#setElement">setElement</a>
</li>
<li data-name="ol.Overlay#setMap" class="">
<a href="ol.Overlay.html#setMap">setMap</a>
</li>
<li data-name="ol.Overlay#setOffset" class="">
<a href="ol.Overlay.html#setOffset">setOffset</a>
</li>
<li data-name="ol.Overlay#setPosition" class="">
<a href="ol.Overlay.html#setPosition">setPosition</a>
</li>
<li data-name="ol.Overlay#setPositioning" class="">
<a href="ol.Overlay.html#setPositioning">setPositioning</a>
</li>
<li data-name="ol.Overlay#setProperties" class="unstable">
<a href="ol.Overlay.html#setProperties">setProperties</a>
</li>
<li data-name="ol.Overlay#un" class="">
<a href="ol.Overlay.html#un">un</a>
</li>
<li data-name="ol.Overlay#unbind" class="unstable">
<a href="ol.Overlay.html#unbind">unbind</a>
</li>
<li data-name="ol.Overlay#unbindAll" class="unstable">
<a href="ol.Overlay.html#unbindAll">unbindAll</a>
</li>
<li data-name="ol.Overlay#unByKey" class="">
<a href="ol.Overlay.html#unByKey">unByKey</a>
</li>
</ul>
<ul class="fires itemMembers">
<span class="subtitle">Fires</span>
<li data-name="ol.ObjectEvent#event:change:element" class="unstable">
change:element
</li>
<li data-name="ol.ObjectEvent#event:change:map" class="unstable">
change:map
</li>
<li data-name="ol.ObjectEvent#event:change:offset" class="unstable">
change:offset
</li>
<li data-name="ol.ObjectEvent#event:change:position" class="unstable">
change:position
</li>
<li data-name="ol.ObjectEvent#event:change:positioning" class="unstable">
change:positioning
</li>
<li data-name="ol.ObjectEvent#event:propertychange" class="unstable">
<a href="ol.ObjectEvent.html#event:propertychange">propertychange</a>
</li>
</ul>
</li>
<li class="item" data-name="ol.Sphere">
<span class="title">
<a href="ol.Sphere.html">ol.Sphere</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
</ul>
<ul class="fires itemMembers">
</ul>
</li>
<li class="item" data-name="ol.Tile">
<span class="title">
<a href="ol.Tile.html">ol.Tile</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.Tile#getTileCoord" class="unstable">
<a href="ol.Tile.html#getTileCoord">getTileCoord</a>
</li>
</ul>
<ul class="fires itemMembers">
</ul>
</li>
<li class="item" data-name="ol.View">
<span class="title">
<a href="ol.View.html">ol.View</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.View#bindTo" class="unstable">
<a href="ol.View.html#bindTo">bindTo</a>
</li>
<li data-name="ol.View#calculateExtent" class="unstable">
<a href="ol.View.html#calculateExtent">calculateExtent</a>
</li>
<li data-name="ol.View#centerOn" class="unstable">
<a href="ol.View.html#centerOn">centerOn</a>
</li>
<li data-name="ol.View#changed" class="unstable">
<a href="ol.View.html#changed">changed</a>
</li>
<li data-name="ol.View#constrainCenter" class="unstable">
<a href="ol.View.html#constrainCenter">constrainCenter</a>
</li>
<li data-name="ol.View#constrainResolution" class="unstable">
<a href="ol.View.html#constrainResolution">constrainResolution</a>
</li>
<li data-name="ol.View#constrainRotation" class="unstable">
<a href="ol.View.html#constrainRotation">constrainRotation</a>
</li>
<li data-name="ol.View#fitExtent" class="unstable">
<a href="ol.View.html#fitExtent">fitExtent</a>
</li>
<li data-name="ol.View#fitGeometry" class="unstable">
<a href="ol.View.html#fitGeometry">fitGeometry</a>
</li>
<li data-name="ol.View#get" class="unstable">
<a href="ol.View.html#get">get</a>
</li>
<li data-name="ol.View#getCenter" class="">
<a href="ol.View.html#getCenter">getCenter</a>
</li>
<li data-name="ol.View#getKeys" class="unstable">
<a href="ol.View.html#getKeys">getKeys</a>
</li>
<li data-name="ol.View#getProjection" class="">
<a href="ol.View.html#getProjection">getProjection</a>
</li>
<li data-name="ol.View#getProperties" class="unstable">
<a href="ol.View.html#getProperties">getProperties</a>
</li>
<li data-name="ol.View#getResolution" class="">
<a href="ol.View.html#getResolution">getResolution</a>
</li>
<li data-name="ol.View#getResolutionForExtent" class="unstable">
<a href="ol.View.html#getResolutionForExtent">getResolutionForExtent</a>
</li>
<li data-name="ol.View#getRevision" class="unstable">
<a href="ol.View.html#getRevision">getRevision</a>
</li>
<li data-name="ol.View#getRotation" class="">
<a href="ol.View.html#getRotation">getRotation</a>
</li>
<li data-name="ol.View#getZoom" class="">
<a href="ol.View.html#getZoom">getZoom</a>
</li>
<li data-name="ol.View#on" class="">
<a href="ol.View.html#on">on</a>
</li>
<li data-name="ol.View#once" class="">
<a href="ol.View.html#once">once</a>
</li>
<li data-name="ol.View#rotate" class="">
<a href="ol.View.html#rotate">rotate</a>
</li>
<li data-name="ol.View#set" class="unstable">
<a href="ol.View.html#set">set</a>
</li>
<li data-name="ol.View#setCenter" class="">
<a href="ol.View.html#setCenter">setCenter</a>
</li>
<li data-name="ol.View#setProperties" class="unstable">
<a href="ol.View.html#setProperties">setProperties</a>
</li>
<li data-name="ol.View#setResolution" class="">
<a href="ol.View.html#setResolution">setResolution</a>
</li>
<li data-name="ol.View#setRotation" class="">
<a href="ol.View.html#setRotation">setRotation</a>
</li>
<li data-name="ol.View#setZoom" class="">
<a href="ol.View.html#setZoom">setZoom</a>
</li>
<li data-name="ol.View#un" class="">
<a href="ol.View.html#un">un</a>
</li>
<li data-name="ol.View#unbind" class="unstable">
<a href="ol.View.html#unbind">unbind</a>
</li>
<li data-name="ol.View#unbindAll" class="unstable">
<a href="ol.View.html#unbindAll">unbindAll</a>
</li>
<li data-name="ol.View#unByKey" class="">
<a href="ol.View.html#unByKey">unByKey</a>
</li>
</ul>
<ul class="fires itemMembers">
<span class="subtitle">Fires</span>
<li data-name="ol.ObjectEvent#event:change:center" class="unstable">
change:center
</li>
<li data-name="ol.ObjectEvent#event:change:resolution" class="unstable">
change:resolution
</li>
<li data-name="ol.ObjectEvent#event:change:rotation" class="unstable">
change:rotation
</li>
<li data-name="ol.ObjectEvent#event:propertychange" class="unstable">
<a href="ol.ObjectEvent.html#event:propertychange">propertychange</a>
</li>
</ul>
</li>
<li class="item" data-name="ol.animation">
<span class="title">
<a href="ol.animation.html">ol.animation</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.animation.bounce" class="unstable">
<a href="ol.animation.html#bounce">bounce</a>
</li>
<li data-name="ol.animation.pan" class="unstable">
<a href="ol.animation.html#pan">pan</a>
</li>
<li data-name="ol.animation.rotate" class="unstable">
<a href="ol.animation.html#rotate">rotate</a>
</li>
<li data-name="ol.animation.zoom" class="unstable">
<a href="ol.animation.html#zoom">zoom</a>
</li>
</ul>
<ul class="fires itemMembers">
</ul>
</li>
<li class="item" data-name="ol.color">
<span class="title">
<a href="ol.color.html">ol.color</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.color.asArray" class="unstable">
<a href="ol.color.html#asArray">asArray</a>
</li>
<li data-name="ol.color.asString" class="unstable">
<a href="ol.color.html#asString">asString</a>
</li>
</ul>
<ul class="fires itemMembers">
</ul>
</li>
<li class="item" data-name="ol.control">
<span class="title">
<a href="ol.control.html">ol.control</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
<span class="subtitle">Typedefs</span>
<li data-name="ol.control.ScaleLineUnits" class="">
<a href="ol.control.html#ScaleLineUnits">ScaleLineUnits</a>
</li>
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.control.defaults" class="">
<a href="ol.control.html#defaults">defaults</a>
</li>
</ul>
<ul class="fires itemMembers">
</ul>
</li>
<li class="item" data-name="ol.control.Attribution">
<span class="title">
<a href="ol.control.Attribution.html">ol.control.Attribution</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.control.Attribution.render" class="unstable">
<a href="ol.control.Attribution.html#render">render</a>
</li>
<li data-name="ol.control.Attribution#bindTo" class="unstable">
<a href="ol.control.Attribution.html#bindTo">bindTo</a>
</li>
<li data-name="ol.control.Attribution#changed" class="unstable">
<a href="ol.control.Attribution.html#changed">changed</a>
</li>
<li data-name="ol.control.Attribution#get" class="unstable">
<a href="ol.control.Attribution.html#get">get</a>
</li>
<li data-name="ol.control.Attribution#getCollapsed" class="">
<a href="ol.control.Attribution.html#getCollapsed">getCollapsed</a>
</li>
<li data-name="ol.control.Attribution#getCollapsible" class="">
<a href="ol.control.Attribution.html#getCollapsible">getCollapsible</a>
</li>
<li data-name="ol.control.Attribution#getKeys" class="unstable">
<a href="ol.control.Attribution.html#getKeys">getKeys</a>
</li>
<li data-name="ol.control.Attribution#getMap" class="">
<a href="ol.control.Attribution.html#getMap">getMap</a>
</li>
<li data-name="ol.control.Attribution#getProperties" class="unstable">
<a href="ol.control.Attribution.html#getProperties">getProperties</a>
</li>
<li data-name="ol.control.Attribution#getRevision" class="unstable">
<a href="ol.control.Attribution.html#getRevision">getRevision</a>
</li>
<li data-name="ol.control.Attribution#on" class="">
<a href="ol.control.Attribution.html#on">on</a>
</li>
<li data-name="ol.control.Attribution#once" class="">
<a href="ol.control.Attribution.html#once">once</a>
</li>
<li data-name="ol.control.Attribution#set" class="unstable">
<a href="ol.control.Attribution.html#set">set</a>
</li>
<li data-name="ol.control.Attribution#setCollapsed" class="">
<a href="ol.control.Attribution.html#setCollapsed">setCollapsed</a>
</li>
<li data-name="ol.control.Attribution#setCollapsible" class="">
<a href="ol.control.Attribution.html#setCollapsible">setCollapsible</a>
</li>
<li data-name="ol.control.Attribution#setMap" class="">
<a href="ol.control.Attribution.html#setMap">setMap</a>
</li>
<li data-name="ol.control.Attribution#setProperties" class="unstable">
<a href="ol.control.Attribution.html#setProperties">setProperties</a>
</li>
<li data-name="ol.control.Attribution#setTarget" class="unstable">
<a href="ol.control.Attribution.html#setTarget">setTarget</a>
</li>
<li data-name="ol.control.Attribution#un" class="">
<a href="ol.control.Attribution.html#un">un</a>
</li>
<li data-name="ol.control.Attribution#unbind" class="unstable">
<a href="ol.control.Attribution.html#unbind">unbind</a>
</li>
<li data-name="ol.control.Attribution#unbindAll" class="unstable">
<a href="ol.control.Attribution.html#unbindAll">unbindAll</a>
</li>
<li data-name="ol.control.Attribution#unByKey" class="">
<a href="ol.control.Attribution.html#unByKey">unByKey</a>
</li>
</ul>
<ul class="fires itemMembers">
<span class="subtitle">Fires</span>
<li data-name="ol.ObjectEvent#event:propertychange" class="unstable">
<a href="ol.ObjectEvent.html#event:propertychange">propertychange</a>
</li>
</ul>
</li>
<li class="item" data-name="ol.control.Control">
<span class="title">
<a href="ol.control.Control.html">ol.control.Control</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.control.Control#bindTo" class="unstable">
<a href="ol.control.Control.html#bindTo">bindTo</a>
</li>
<li data-name="ol.control.Control#changed" class="unstable">
<a href="ol.control.Control.html#changed">changed</a>
</li>
<li data-name="ol.control.Control#get" class="unstable">
<a href="ol.control.Control.html#get">get</a>
</li>
<li data-name="ol.control.Control#getKeys" class="unstable">
<a href="ol.control.Control.html#getKeys">getKeys</a>
</li>
<li data-name="ol.control.Control#getMap" class="">
<a href="ol.control.Control.html#getMap">getMap</a>
</li>
<li data-name="ol.control.Control#getProperties" class="unstable">
<a href="ol.control.Control.html#getProperties">getProperties</a>
</li>
<li data-name="ol.control.Control#getRevision" class="unstable">
<a href="ol.control.Control.html#getRevision">getRevision</a>
</li>
<li data-name="ol.control.Control#on" class="">
<a href="ol.control.Control.html#on">on</a>
</li>
<li data-name="ol.control.Control#once" class="">
<a href="ol.control.Control.html#once">once</a>
</li>
<li data-name="ol.control.Control#set" class="unstable">
<a href="ol.control.Control.html#set">set</a>
</li>
<li data-name="ol.control.Control#setMap" class="">
<a href="ol.control.Control.html#setMap">setMap</a>
</li>
<li data-name="ol.control.Control#setProperties" class="unstable">
<a href="ol.control.Control.html#setProperties">setProperties</a>
</li>
<li data-name="ol.control.Control#setTarget" class="unstable">
<a href="ol.control.Control.html#setTarget">setTarget</a>
</li>
<li data-name="ol.control.Control#un" class="">
<a href="ol.control.Control.html#un">un</a>
</li>
<li data-name="ol.control.Control#unbind" class="unstable">
<a href="ol.control.Control.html#unbind">unbind</a>
</li>
<li data-name="ol.control.Control#unbindAll" class="unstable">
<a href="ol.control.Control.html#unbindAll">unbindAll</a>
</li>
<li data-name="ol.control.Control#unByKey" class="">
<a href="ol.control.Control.html#unByKey">unByKey</a>
</li>
</ul>
<ul class="fires itemMembers">
<span class="subtitle">Fires</span>
<li data-name="ol.ObjectEvent#event:propertychange" class="unstable">
<a href="ol.ObjectEvent.html#event:propertychange">propertychange</a>
</li>
</ul>
</li>
<li class="item" data-name="ol.control.FullScreen">
<span class="title">
<a href="ol.control.FullScreen.html">ol.control.FullScreen</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.control.FullScreen#bindTo" class="unstable">
<a href="ol.control.FullScreen.html#bindTo">bindTo</a>
</li>
<li data-name="ol.control.FullScreen#changed" class="unstable">
<a href="ol.control.FullScreen.html#changed">changed</a>
</li>
<li data-name="ol.control.FullScreen#get" class="unstable">
<a href="ol.control.FullScreen.html#get">get</a>
</li>
<li data-name="ol.control.FullScreen#getKeys" class="unstable">
<a href="ol.control.FullScreen.html#getKeys">getKeys</a>
</li>
<li data-name="ol.control.FullScreen#getMap" class="">
<a href="ol.control.FullScreen.html#getMap">getMap</a>
</li>
<li data-name="ol.control.FullScreen#getProperties" class="unstable">
<a href="ol.control.FullScreen.html#getProperties">getProperties</a>
</li>
<li data-name="ol.control.FullScreen#getRevision" class="unstable">
<a href="ol.control.FullScreen.html#getRevision">getRevision</a>
</li>
<li data-name="ol.control.FullScreen#on" class="">
<a href="ol.control.FullScreen.html#on">on</a>
</li>
<li data-name="ol.control.FullScreen#once" class="">
<a href="ol.control.FullScreen.html#once">once</a>
</li>
<li data-name="ol.control.FullScreen#set" class="unstable">
<a href="ol.control.FullScreen.html#set">set</a>
</li>
<li data-name="ol.control.FullScreen#setMap" class="">
<a href="ol.control.FullScreen.html#setMap">setMap</a>
</li>
<li data-name="ol.control.FullScreen#setProperties" class="unstable">
<a href="ol.control.FullScreen.html#setProperties">setProperties</a>
</li>
<li data-name="ol.control.FullScreen#setTarget" class="unstable">
<a href="ol.control.FullScreen.html#setTarget">setTarget</a>
</li>
<li data-name="ol.control.FullScreen#un" class="">
<a href="ol.control.FullScreen.html#un">un</a>
</li>
<li data-name="ol.control.FullScreen#unbind" class="unstable">
<a href="ol.control.FullScreen.html#unbind">unbind</a>
</li>
<li data-name="ol.control.FullScreen#unbindAll" class="unstable">
<a href="ol.control.FullScreen.html#unbindAll">unbindAll</a>
</li>
<li data-name="ol.control.FullScreen#unByKey" class="">
<a href="ol.control.FullScreen.html#unByKey">unByKey</a>
</li>
</ul>
<ul class="fires itemMembers">
<span class="subtitle">Fires</span>
<li data-name="ol.ObjectEvent#event:propertychange" class="unstable">
<a href="ol.ObjectEvent.html#event:propertychange">propertychange</a>
</li>
</ul>
</li>
<li class="item" data-name="ol.control.MousePosition">
<span class="title">
<a href="ol.control.MousePosition.html">ol.control.MousePosition</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.control.MousePosition.render" class="unstable">
<a href="ol.control.MousePosition.html#render">render</a>
</li>
<li data-name="ol.control.MousePosition#bindTo" class="unstable">
<a href="ol.control.MousePosition.html#bindTo">bindTo</a>
</li>
<li data-name="ol.control.MousePosition#changed" class="unstable">
<a href="ol.control.MousePosition.html#changed">changed</a>
</li>
<li data-name="ol.control.MousePosition#get" class="unstable">
<a href="ol.control.MousePosition.html#get">get</a>
</li>
<li data-name="ol.control.MousePosition#getCoordinateFormat" class="">
<a href="ol.control.MousePosition.html#getCoordinateFormat">getCoordinateFormat</a>
</li>
<li data-name="ol.control.MousePosition#getKeys" class="unstable">
<a href="ol.control.MousePosition.html#getKeys">getKeys</a>
</li>
<li data-name="ol.control.MousePosition#getMap" class="">
<a href="ol.control.MousePosition.html#getMap">getMap</a>
</li>
<li data-name="ol.control.MousePosition#getProjection" class="">
<a href="ol.control.MousePosition.html#getProjection">getProjection</a>
</li>
<li data-name="ol.control.MousePosition#getProperties" class="unstable">
<a href="ol.control.MousePosition.html#getProperties">getProperties</a>
</li>
<li data-name="ol.control.MousePosition#getRevision" class="unstable">
<a href="ol.control.MousePosition.html#getRevision">getRevision</a>
</li>
<li data-name="ol.control.MousePosition#on" class="">
<a href="ol.control.MousePosition.html#on">on</a>
</li>
<li data-name="ol.control.MousePosition#once" class="">
<a href="ol.control.MousePosition.html#once">once</a>
</li>
<li data-name="ol.control.MousePosition#set" class="unstable">
<a href="ol.control.MousePosition.html#set">set</a>
</li>
<li data-name="ol.control.MousePosition#setCoordinateFormat" class="">
<a href="ol.control.MousePosition.html#setCoordinateFormat">setCoordinateFormat</a>
</li>
<li data-name="ol.control.MousePosition#setMap" class="">
<a href="ol.control.MousePosition.html#setMap">setMap</a>
</li>
<li data-name="ol.control.MousePosition#setProjection" class="">
<a href="ol.control.MousePosition.html#setProjection">setProjection</a>
</li>
<li data-name="ol.control.MousePosition#setProperties" class="unstable">
<a href="ol.control.MousePosition.html#setProperties">setProperties</a>
</li>
<li data-name="ol.control.MousePosition#setTarget" class="unstable">
<a href="ol.control.MousePosition.html#setTarget">setTarget</a>
</li>
<li data-name="ol.control.MousePosition#un" class="">
<a href="ol.control.MousePosition.html#un">un</a>
</li>
<li data-name="ol.control.MousePosition#unbind" class="unstable">
<a href="ol.control.MousePosition.html#unbind">unbind</a>
</li>
<li data-name="ol.control.MousePosition#unbindAll" class="unstable">
<a href="ol.control.MousePosition.html#unbindAll">unbindAll</a>
</li>
<li data-name="ol.control.MousePosition#unByKey" class="">
<a href="ol.control.MousePosition.html#unByKey">unByKey</a>
</li>
</ul>
<ul class="fires itemMembers">
<span class="subtitle">Fires</span>
<li data-name="ol.ObjectEvent#event:change:coordinateFormat" class="unstable">
change:coordinateFormat
</li>
<li data-name="ol.ObjectEvent#event:change:projection" class="unstable">
change:projection
</li>
<li data-name="ol.ObjectEvent#event:propertychange" class="unstable">
<a href="ol.ObjectEvent.html#event:propertychange">propertychange</a>
</li>
</ul>
</li>
<li class="item" data-name="ol.control.OverviewMap">
<span class="title">
<a href="ol.control.OverviewMap.html">ol.control.OverviewMap</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.control.OverviewMap.render" class="unstable">
<a href="ol.control.OverviewMap.html#render">render</a>
</li>
<li data-name="ol.control.OverviewMap#bindTo" class="unstable">
<a href="ol.control.OverviewMap.html#bindTo">bindTo</a>
</li>
<li data-name="ol.control.OverviewMap#changed" class="unstable">
<a href="ol.control.OverviewMap.html#changed">changed</a>
</li>
<li data-name="ol.control.OverviewMap#get" class="unstable">
<a href="ol.control.OverviewMap.html#get">get</a>
</li>
<li data-name="ol.control.OverviewMap#getCollapsed" class="">
<a href="ol.control.OverviewMap.html#getCollapsed">getCollapsed</a>
</li>
<li data-name="ol.control.OverviewMap#getCollapsible" class="">
<a href="ol.control.OverviewMap.html#getCollapsible">getCollapsible</a>
</li>
<li data-name="ol.control.OverviewMap#getKeys" class="unstable">
<a href="ol.control.OverviewMap.html#getKeys">getKeys</a>
</li>
<li data-name="ol.control.OverviewMap#getMap" class="">
<a href="ol.control.OverviewMap.html#getMap">getMap</a>
</li>
<li data-name="ol.control.OverviewMap#getProperties" class="unstable">
<a href="ol.control.OverviewMap.html#getProperties">getProperties</a>
</li>
<li data-name="ol.control.OverviewMap#getRevision" class="unstable">
<a href="ol.control.OverviewMap.html#getRevision">getRevision</a>
</li>
<li data-name="ol.control.OverviewMap#on" class="">
<a href="ol.control.OverviewMap.html#on">on</a>
</li>
<li data-name="ol.control.OverviewMap#once" class="">
<a href="ol.control.OverviewMap.html#once">once</a>
</li>
<li data-name="ol.control.OverviewMap#set" class="unstable">
<a href="ol.control.OverviewMap.html#set">set</a>
</li>
<li data-name="ol.control.OverviewMap#setCollapsed" class="">
<a href="ol.control.OverviewMap.html#setCollapsed">setCollapsed</a>
</li>
<li data-name="ol.control.OverviewMap#setCollapsible" class="">
<a href="ol.control.OverviewMap.html#setCollapsible">setCollapsible</a>
</li>
<li data-name="ol.control.OverviewMap#setMap" class="">
<a href="ol.control.OverviewMap.html#setMap">setMap</a>
</li>
<li data-name="ol.control.OverviewMap#setProperties" class="unstable">
<a href="ol.control.OverviewMap.html#setProperties">setProperties</a>
</li>
<li data-name="ol.control.OverviewMap#setTarget" class="unstable">
<a href="ol.control.OverviewMap.html#setTarget">setTarget</a>
</li>
<li data-name="ol.control.OverviewMap#un" class="">
<a href="ol.control.OverviewMap.html#un">un</a>
</li>
<li data-name="ol.control.OverviewMap#unbind" class="unstable">
<a href="ol.control.OverviewMap.html#unbind">unbind</a>
</li>
<li data-name="ol.control.OverviewMap#unbindAll" class="unstable">
<a href="ol.control.OverviewMap.html#unbindAll">unbindAll</a>
</li>
<li data-name="ol.control.OverviewMap#unByKey" class="">
<a href="ol.control.OverviewMap.html#unByKey">unByKey</a>
</li>
</ul>
<ul class="fires itemMembers">
<span class="subtitle">Fires</span>
<li data-name="ol.ObjectEvent#event:propertychange" class="unstable">
<a href="ol.ObjectEvent.html#event:propertychange">propertychange</a>
</li>
</ul>
</li>
<li class="item" data-name="ol.control.Rotate">
<span class="title">
<a href="ol.control.Rotate.html">ol.control.Rotate</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.control.Rotate.render" class="unstable">
<a href="ol.control.Rotate.html#render">render</a>
</li>
<li data-name="ol.control.Rotate#bindTo" class="unstable">
<a href="ol.control.Rotate.html#bindTo">bindTo</a>
</li>
<li data-name="ol.control.Rotate#changed" class="unstable">
<a href="ol.control.Rotate.html#changed">changed</a>
</li>
<li data-name="ol.control.Rotate#get" class="unstable">
<a href="ol.control.Rotate.html#get">get</a>
</li>
<li data-name="ol.control.Rotate#getKeys" class="unstable">
<a href="ol.control.Rotate.html#getKeys">getKeys</a>
</li>
<li data-name="ol.control.Rotate#getMap" class="">
<a href="ol.control.Rotate.html#getMap">getMap</a>
</li>
<li data-name="ol.control.Rotate#getProperties" class="unstable">
<a href="ol.control.Rotate.html#getProperties">getProperties</a>
</li>
<li data-name="ol.control.Rotate#getRevision" class="unstable">
<a href="ol.control.Rotate.html#getRevision">getRevision</a>
</li>
<li data-name="ol.control.Rotate#on" class="">
<a href="ol.control.Rotate.html#on">on</a>
</li>
<li data-name="ol.control.Rotate#once" class="">
<a href="ol.control.Rotate.html#once">once</a>
</li>
<li data-name="ol.control.Rotate#set" class="unstable">
<a href="ol.control.Rotate.html#set">set</a>
</li>
<li data-name="ol.control.Rotate#setMap" class="">
<a href="ol.control.Rotate.html#setMap">setMap</a>
</li>
<li data-name="ol.control.Rotate#setProperties" class="unstable">
<a href="ol.control.Rotate.html#setProperties">setProperties</a>
</li>
<li data-name="ol.control.Rotate#setTarget" class="unstable">
<a href="ol.control.Rotate.html#setTarget">setTarget</a>
</li>
<li data-name="ol.control.Rotate#un" class="">
<a href="ol.control.Rotate.html#un">un</a>
</li>
<li data-name="ol.control.Rotate#unbind" class="unstable">
<a href="ol.control.Rotate.html#unbind">unbind</a>
</li>
<li data-name="ol.control.Rotate#unbindAll" class="unstable">
<a href="ol.control.Rotate.html#unbindAll">unbindAll</a>
</li>
<li data-name="ol.control.Rotate#unByKey" class="">
<a href="ol.control.Rotate.html#unByKey">unByKey</a>
</li>
</ul>
<ul class="fires itemMembers">
<span class="subtitle">Fires</span>
<li data-name="ol.ObjectEvent#event:propertychange" class="unstable">
<a href="ol.ObjectEvent.html#event:propertychange">propertychange</a>
</li>
</ul>
</li>
<li class="item" data-name="ol.control.ScaleLine">
<span class="title">
<a href="ol.control.ScaleLine.html">ol.control.ScaleLine</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.control.ScaleLine.render" class="unstable">
<a href="ol.control.ScaleLine.html#render">render</a>
</li>
<li data-name="ol.control.ScaleLine#bindTo" class="unstable">
<a href="ol.control.ScaleLine.html#bindTo">bindTo</a>
</li>
<li data-name="ol.control.ScaleLine#changed" class="unstable">
<a href="ol.control.ScaleLine.html#changed">changed</a>
</li>
<li data-name="ol.control.ScaleLine#get" class="unstable">
<a href="ol.control.ScaleLine.html#get">get</a>
</li>
<li data-name="ol.control.ScaleLine#getKeys" class="unstable">
<a href="ol.control.ScaleLine.html#getKeys">getKeys</a>
</li>
<li data-name="ol.control.ScaleLine#getMap" class="">
<a href="ol.control.ScaleLine.html#getMap">getMap</a>
</li>
<li data-name="ol.control.ScaleLine#getProperties" class="unstable">
<a href="ol.control.ScaleLine.html#getProperties">getProperties</a>
</li>
<li data-name="ol.control.ScaleLine#getRevision" class="unstable">
<a href="ol.control.ScaleLine.html#getRevision">getRevision</a>
</li>
<li data-name="ol.control.ScaleLine#getUnits" class="">
<a href="ol.control.ScaleLine.html#getUnits">getUnits</a>
</li>
<li data-name="ol.control.ScaleLine#on" class="">
<a href="ol.control.ScaleLine.html#on">on</a>
</li>
<li data-name="ol.control.ScaleLine#once" class="">
<a href="ol.control.ScaleLine.html#once">once</a>
</li>
<li data-name="ol.control.ScaleLine#set" class="unstable">
<a href="ol.control.ScaleLine.html#set">set</a>
</li>
<li data-name="ol.control.ScaleLine#setMap" class="">
<a href="ol.control.ScaleLine.html#setMap">setMap</a>
</li>
<li data-name="ol.control.ScaleLine#setProperties" class="unstable">
<a href="ol.control.ScaleLine.html#setProperties">setProperties</a>
</li>
<li data-name="ol.control.ScaleLine#setTarget" class="unstable">
<a href="ol.control.ScaleLine.html#setTarget">setTarget</a>
</li>
<li data-name="ol.control.ScaleLine#setUnits" class="">
<a href="ol.control.ScaleLine.html#setUnits">setUnits</a>
</li>
<li data-name="ol.control.ScaleLine#un" class="">
<a href="ol.control.ScaleLine.html#un">un</a>
</li>
<li data-name="ol.control.ScaleLine#unbind" class="unstable">
<a href="ol.control.ScaleLine.html#unbind">unbind</a>
</li>
<li data-name="ol.control.ScaleLine#unbindAll" class="unstable">
<a href="ol.control.ScaleLine.html#unbindAll">unbindAll</a>
</li>
<li data-name="ol.control.ScaleLine#unByKey" class="">
<a href="ol.control.ScaleLine.html#unByKey">unByKey</a>
</li>
</ul>
<ul class="fires itemMembers">
<span class="subtitle">Fires</span>
<li data-name="ol.ObjectEvent#event:change:units" class="unstable">
change:units
</li>
<li data-name="ol.ObjectEvent#event:propertychange" class="unstable">
<a href="ol.ObjectEvent.html#event:propertychange">propertychange</a>
</li>
</ul>
</li>
<li class="item" data-name="ol.control.Zoom">
<span class="title">
<a href="ol.control.Zoom.html">ol.control.Zoom</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.control.Zoom#bindTo" class="unstable">
<a href="ol.control.Zoom.html#bindTo">bindTo</a>
</li>
<li data-name="ol.control.Zoom#changed" class="unstable">
<a href="ol.control.Zoom.html#changed">changed</a>
</li>
<li data-name="ol.control.Zoom#get" class="unstable">
<a href="ol.control.Zoom.html#get">get</a>
</li>
<li data-name="ol.control.Zoom#getKeys" class="unstable">
<a href="ol.control.Zoom.html#getKeys">getKeys</a>
</li>
<li data-name="ol.control.Zoom#getMap" class="">
<a href="ol.control.Zoom.html#getMap">getMap</a>
</li>
<li data-name="ol.control.Zoom#getProperties" class="unstable">
<a href="ol.control.Zoom.html#getProperties">getProperties</a>
</li>
<li data-name="ol.control.Zoom#getRevision" class="unstable">
<a href="ol.control.Zoom.html#getRevision">getRevision</a>
</li>
<li data-name="ol.control.Zoom#on" class="">
<a href="ol.control.Zoom.html#on">on</a>
</li>
<li data-name="ol.control.Zoom#once" class="">
<a href="ol.control.Zoom.html#once">once</a>
</li>
<li data-name="ol.control.Zoom#set" class="unstable">
<a href="ol.control.Zoom.html#set">set</a>
</li>
<li data-name="ol.control.Zoom#setMap" class="">
<a href="ol.control.Zoom.html#setMap">setMap</a>
</li>
<li data-name="ol.control.Zoom#setProperties" class="unstable">
<a href="ol.control.Zoom.html#setProperties">setProperties</a>
</li>
<li data-name="ol.control.Zoom#setTarget" class="unstable">
<a href="ol.control.Zoom.html#setTarget">setTarget</a>
</li>
<li data-name="ol.control.Zoom#un" class="">
<a href="ol.control.Zoom.html#un">un</a>
</li>
<li data-name="ol.control.Zoom#unbind" class="unstable">
<a href="ol.control.Zoom.html#unbind">unbind</a>
</li>
<li data-name="ol.control.Zoom#unbindAll" class="unstable">
<a href="ol.control.Zoom.html#unbindAll">unbindAll</a>
</li>
<li data-name="ol.control.Zoom#unByKey" class="">
<a href="ol.control.Zoom.html#unByKey">unByKey</a>
</li>
</ul>
<ul class="fires itemMembers">
<span class="subtitle">Fires</span>
<li data-name="ol.ObjectEvent#event:propertychange" class="unstable">
<a href="ol.ObjectEvent.html#event:propertychange">propertychange</a>
</li>
</ul>
</li>
<li class="item" data-name="ol.control.ZoomSlider">
<span class="title">
<a href="ol.control.ZoomSlider.html">ol.control.ZoomSlider</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.control.ZoomSlider.render" class="unstable">
<a href="ol.control.ZoomSlider.html#render">render</a>
</li>
<li data-name="ol.control.ZoomSlider#bindTo" class="unstable">
<a href="ol.control.ZoomSlider.html#bindTo">bindTo</a>
</li>
<li data-name="ol.control.ZoomSlider#changed" class="unstable">
<a href="ol.control.ZoomSlider.html#changed">changed</a>
</li>
<li data-name="ol.control.ZoomSlider#get" class="unstable">
<a href="ol.control.ZoomSlider.html#get">get</a>
</li>
<li data-name="ol.control.ZoomSlider#getKeys" class="unstable">
<a href="ol.control.ZoomSlider.html#getKeys">getKeys</a>
</li>
<li data-name="ol.control.ZoomSlider#getMap" class="">
<a href="ol.control.ZoomSlider.html#getMap">getMap</a>
</li>
<li data-name="ol.control.ZoomSlider#getProperties" class="unstable">
<a href="ol.control.ZoomSlider.html#getProperties">getProperties</a>
</li>
<li data-name="ol.control.ZoomSlider#getRevision" class="unstable">
<a href="ol.control.ZoomSlider.html#getRevision">getRevision</a>
</li>
<li data-name="ol.control.ZoomSlider#on" class="">
<a href="ol.control.ZoomSlider.html#on">on</a>
</li>
<li data-name="ol.control.ZoomSlider#once" class="">
<a href="ol.control.ZoomSlider.html#once">once</a>
</li>
<li data-name="ol.control.ZoomSlider#set" class="unstable">
<a href="ol.control.ZoomSlider.html#set">set</a>
</li>
<li data-name="ol.control.ZoomSlider#setMap" class="">
<a href="ol.control.ZoomSlider.html#setMap">setMap</a>
</li>
<li data-name="ol.control.ZoomSlider#setProperties" class="unstable">
<a href="ol.control.ZoomSlider.html#setProperties">setProperties</a>
</li>
<li data-name="ol.control.ZoomSlider#setTarget" class="unstable">
<a href="ol.control.ZoomSlider.html#setTarget">setTarget</a>
</li>
<li data-name="ol.control.ZoomSlider#un" class="">
<a href="ol.control.ZoomSlider.html#un">un</a>
</li>
<li data-name="ol.control.ZoomSlider#unbind" class="unstable">
<a href="ol.control.ZoomSlider.html#unbind">unbind</a>
</li>
<li data-name="ol.control.ZoomSlider#unbindAll" class="unstable">
<a href="ol.control.ZoomSlider.html#unbindAll">unbindAll</a>
</li>
<li data-name="ol.control.ZoomSlider#unByKey" class="">
<a href="ol.control.ZoomSlider.html#unByKey">unByKey</a>
</li>
</ul>
<ul class="fires itemMembers">
<span class="subtitle">Fires</span>
<li data-name="ol.ObjectEvent#event:propertychange" class="unstable">
<a href="ol.ObjectEvent.html#event:propertychange">propertychange</a>
</li>
</ul>
</li>
<li class="item" data-name="ol.control.ZoomToExtent">
<span class="title">
<a href="ol.control.ZoomToExtent.html">ol.control.ZoomToExtent</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.control.ZoomToExtent#bindTo" class="unstable">
<a href="ol.control.ZoomToExtent.html#bindTo">bindTo</a>
</li>
<li data-name="ol.control.ZoomToExtent#changed" class="unstable">
<a href="ol.control.ZoomToExtent.html#changed">changed</a>
</li>
<li data-name="ol.control.ZoomToExtent#get" class="unstable">
<a href="ol.control.ZoomToExtent.html#get">get</a>
</li>
<li data-name="ol.control.ZoomToExtent#getKeys" class="unstable">
<a href="ol.control.ZoomToExtent.html#getKeys">getKeys</a>
</li>
<li data-name="ol.control.ZoomToExtent#getMap" class="">
<a href="ol.control.ZoomToExtent.html#getMap">getMap</a>
</li>
<li data-name="ol.control.ZoomToExtent#getProperties" class="unstable">
<a href="ol.control.ZoomToExtent.html#getProperties">getProperties</a>
</li>
<li data-name="ol.control.ZoomToExtent#getRevision" class="unstable">
<a href="ol.control.ZoomToExtent.html#getRevision">getRevision</a>
</li>
<li data-name="ol.control.ZoomToExtent#on" class="">
<a href="ol.control.ZoomToExtent.html#on">on</a>
</li>
<li data-name="ol.control.ZoomToExtent#once" class="">
<a href="ol.control.ZoomToExtent.html#once">once</a>
</li>
<li data-name="ol.control.ZoomToExtent#set" class="unstable">
<a href="ol.control.ZoomToExtent.html#set">set</a>
</li>
<li data-name="ol.control.ZoomToExtent#setMap" class="">
<a href="ol.control.ZoomToExtent.html#setMap">setMap</a>
</li>
<li data-name="ol.control.ZoomToExtent#setProperties" class="unstable">
<a href="ol.control.ZoomToExtent.html#setProperties">setProperties</a>
</li>
<li data-name="ol.control.ZoomToExtent#setTarget" class="unstable">
<a href="ol.control.ZoomToExtent.html#setTarget">setTarget</a>
</li>
<li data-name="ol.control.ZoomToExtent#un" class="">
<a href="ol.control.ZoomToExtent.html#un">un</a>
</li>
<li data-name="ol.control.ZoomToExtent#unbind" class="unstable">
<a href="ol.control.ZoomToExtent.html#unbind">unbind</a>
</li>
<li data-name="ol.control.ZoomToExtent#unbindAll" class="unstable">
<a href="ol.control.ZoomToExtent.html#unbindAll">unbindAll</a>
</li>
<li data-name="ol.control.ZoomToExtent#unByKey" class="">
<a href="ol.control.ZoomToExtent.html#unByKey">unByKey</a>
</li>
</ul>
<ul class="fires itemMembers">
<span class="subtitle">Fires</span>
<li data-name="ol.ObjectEvent#event:propertychange" class="unstable">
<a href="ol.ObjectEvent.html#event:propertychange">propertychange</a>
</li>
</ul>
</li>
<li class="item" data-name="ol.coordinate">
<span class="title">
<a href="ol.coordinate.html">ol.coordinate</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.coordinate.add" class="">
<a href="ol.coordinate.html#add">add</a>
</li>
<li data-name="ol.coordinate.createStringXY" class="">
<a href="ol.coordinate.html#createStringXY">createStringXY</a>
</li>
<li data-name="ol.coordinate.format" class="">
<a href="ol.coordinate.html#format">format</a>
</li>
<li data-name="ol.coordinate.rotate" class="">
<a href="ol.coordinate.html#rotate">rotate</a>
</li>
<li data-name="ol.coordinate.toStringHDMS" class="">
<a href="ol.coordinate.html#toStringHDMS">toStringHDMS</a>
</li>
<li data-name="ol.coordinate.toStringXY" class="">
<a href="ol.coordinate.html#toStringXY">toStringXY</a>
</li>
</ul>
<ul class="fires itemMembers">
</ul>
</li>
<li class="item" data-name="ol.dom.Input">
<span class="title">
<a href="ol.dom.Input.html">ol.dom.Input</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.dom.Input#bindTo" class="unstable">
<a href="ol.dom.Input.html#bindTo">bindTo</a>
</li>
<li data-name="ol.dom.Input#changed" class="unstable">
<a href="ol.dom.Input.html#changed">changed</a>
</li>
<li data-name="ol.dom.Input#get" class="unstable">
<a href="ol.dom.Input.html#get">get</a>
</li>
<li data-name="ol.dom.Input#getChecked" class="unstable">
<a href="ol.dom.Input.html#getChecked">getChecked</a>
</li>
<li data-name="ol.dom.Input#getKeys" class="unstable">
<a href="ol.dom.Input.html#getKeys">getKeys</a>
</li>
<li data-name="ol.dom.Input#getProperties" class="unstable">
<a href="ol.dom.Input.html#getProperties">getProperties</a>
</li>
<li data-name="ol.dom.Input#getRevision" class="unstable">
<a href="ol.dom.Input.html#getRevision">getRevision</a>
</li>
<li data-name="ol.dom.Input#getValue" class="unstable">
<a href="ol.dom.Input.html#getValue">getValue</a>
</li>
<li data-name="ol.dom.Input#on" class="">
<a href="ol.dom.Input.html#on">on</a>
</li>
<li data-name="ol.dom.Input#once" class="">
<a href="ol.dom.Input.html#once">once</a>
</li>
<li data-name="ol.dom.Input#set" class="unstable">
<a href="ol.dom.Input.html#set">set</a>
</li>
<li data-name="ol.dom.Input#setChecked" class="unstable">
<a href="ol.dom.Input.html#setChecked">setChecked</a>
</li>
<li data-name="ol.dom.Input#setProperties" class="unstable">
<a href="ol.dom.Input.html#setProperties">setProperties</a>
</li>
<li data-name="ol.dom.Input#setValue" class="unstable">
<a href="ol.dom.Input.html#setValue">setValue</a>
</li>
<li data-name="ol.dom.Input#un" class="">
<a href="ol.dom.Input.html#un">un</a>
</li>
<li data-name="ol.dom.Input#unbind" class="unstable">
<a href="ol.dom.Input.html#unbind">unbind</a>
</li>
<li data-name="ol.dom.Input#unbindAll" class="unstable">
<a href="ol.dom.Input.html#unbindAll">unbindAll</a>
</li>
<li data-name="ol.dom.Input#unByKey" class="">
<a href="ol.dom.Input.html#unByKey">unByKey</a>
</li>
</ul>
<ul class="fires itemMembers">
<span class="subtitle">Fires</span>
<li data-name="ol.ObjectEvent#event:change:checked" class="unstable">
change:checked
</li>
<li data-name="ol.ObjectEvent#event:change:value" class="unstable">
change:value
</li>
<li data-name="ol.ObjectEvent#event:propertychange" class="unstable">
<a href="ol.ObjectEvent.html#event:propertychange">propertychange</a>
</li>
</ul>
</li>
<li class="item" data-name="ol.easing">
<span class="title">
<a href="ol.easing.html">ol.easing</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.easing.easeIn" class="unstable">
<a href="ol.easing.html#easeIn">easeIn</a>
</li>
<li data-name="ol.easing.easeOut" class="unstable">
<a href="ol.easing.html#easeOut">easeOut</a>
</li>
<li data-name="ol.easing.inAndOut" class="unstable">
<a href="ol.easing.html#inAndOut">inAndOut</a>
</li>
<li data-name="ol.easing.linear" class="unstable">
<a href="ol.easing.html#linear">linear</a>
</li>
<li data-name="ol.easing.upAndDown" class="unstable">
<a href="ol.easing.html#upAndDown">upAndDown</a>
</li>
</ul>
<ul class="fires itemMembers">
</ul>
</li>
<li class="item" data-name="ol.events">
<span class="title">
<a href="ol.events.html">ol.events</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
<span class="subtitle">Typedefs</span>
<li data-name="ol.events.ConditionType" class="">
<a href="ol.events.html#ConditionType">ConditionType</a>
</li>
</ul>
<ul class="methods itemMembers">
</ul>
<ul class="fires itemMembers">
</ul>
</li>
<li class="item" data-name="ol.events.condition">
<span class="title">
<a href="ol.events.condition.html">ol.events.condition</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.events.condition.altKeyOnly" class="">
<a href="ol.events.condition.html#altKeyOnly">altKeyOnly</a>
</li>
<li data-name="ol.events.condition.altShiftKeysOnly" class="">
<a href="ol.events.condition.html#altShiftKeysOnly">altShiftKeysOnly</a>
</li>
<li data-name="ol.events.condition.always" class="">
<a href="ol.events.condition.html#always">always</a>
</li>
<li data-name="ol.events.condition.click" class="">
<a href="ol.events.condition.html#click">click</a>
</li>
<li data-name="ol.events.condition.mouseMove" class="unstable">
<a href="ol.events.condition.html#mouseMove">mouseMove</a>
</li>
<li data-name="ol.events.condition.mouseOnly" class="">
<a href="ol.events.condition.html#mouseOnly">mouseOnly</a>
</li>
<li data-name="ol.events.condition.never" class="">
<a href="ol.events.condition.html#never">never</a>
</li>
<li data-name="ol.events.condition.noModifierKeys" class="">
<a href="ol.events.condition.html#noModifierKeys">noModifierKeys</a>
</li>
<li data-name="ol.events.condition.platformModifierKeyOnly" class="">
<a href="ol.events.condition.html#platformModifierKeyOnly">platformModifierKeyOnly</a>
</li>
<li data-name="ol.events.condition.shiftKeyOnly" class="">
<a href="ol.events.condition.html#shiftKeyOnly">shiftKeyOnly</a>
</li>
<li data-name="ol.events.condition.singleClick" class="">
<a href="ol.events.condition.html#singleClick">singleClick</a>
</li>
<li data-name="ol.events.condition.targetNotEditable" class="unstable">
<a href="ol.events.condition.html#targetNotEditable">targetNotEditable</a>
</li>
</ul>
<ul class="fires itemMembers">
</ul>
</li>
<li class="item" data-name="ol.extent">
<span class="title">
<a href="ol.extent.html">ol.extent</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.extent.applyTransform" class="">
<a href="ol.extent.html#applyTransform">applyTransform</a>
</li>
<li data-name="ol.extent.boundingExtent" class="">
<a href="ol.extent.html#boundingExtent">boundingExtent</a>
</li>
<li data-name="ol.extent.buffer" class="">
<a href="ol.extent.html#buffer">buffer</a>
</li>
<li data-name="ol.extent.containsCoordinate" class="">
<a href="ol.extent.html#containsCoordinate">containsCoordinate</a>
</li>
<li data-name="ol.extent.containsExtent" class="">
<a href="ol.extent.html#containsExtent">containsExtent</a>
</li>
<li data-name="ol.extent.containsXY" class="">
<a href="ol.extent.html#containsXY">containsXY</a>
</li>
<li data-name="ol.extent.createEmpty" class="">
<a href="ol.extent.html#createEmpty">createEmpty</a>
</li>
<li data-name="ol.extent.equals" class="">
<a href="ol.extent.html#equals">equals</a>
</li>
<li data-name="ol.extent.extend" class="">
<a href="ol.extent.html#extend">extend</a>
</li>
<li data-name="ol.extent.getBottomLeft" class="">
<a href="ol.extent.html#getBottomLeft">getBottomLeft</a>
</li>
<li data-name="ol.extent.getBottomRight" class="">
<a href="ol.extent.html#getBottomRight">getBottomRight</a>
</li>
<li data-name="ol.extent.getCenter" class="">
<a href="ol.extent.html#getCenter">getCenter</a>
</li>
<li data-name="ol.extent.getHeight" class="">
<a href="ol.extent.html#getHeight">getHeight</a>
</li>
<li data-name="ol.extent.getIntersection" class="">
<a href="ol.extent.html#getIntersection">getIntersection</a>
</li>
<li data-name="ol.extent.getSize" class="">
<a href="ol.extent.html#getSize">getSize</a>
</li>
<li data-name="ol.extent.getTopLeft" class="">
<a href="ol.extent.html#getTopLeft">getTopLeft</a>
</li>
<li data-name="ol.extent.getTopRight" class="">
<a href="ol.extent.html#getTopRight">getTopRight</a>
</li>
<li data-name="ol.extent.getWidth" class="">
<a href="ol.extent.html#getWidth">getWidth</a>
</li>
<li data-name="ol.extent.intersects" class="">
<a href="ol.extent.html#intersects">intersects</a>
</li>
<li data-name="ol.extent.isEmpty" class="">
<a href="ol.extent.html#isEmpty">isEmpty</a>
</li>
</ul>
<ul class="fires itemMembers">
</ul>
</li>
<li class="item" data-name="ol.feature">
<span class="title">
<a href="ol.feature_.html">ol.feature</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
<span class="subtitle">Typedefs</span>
<li data-name="ol.feature.FeatureStyleFunction" class="">
<a href="ol.feature_.html#FeatureStyleFunction">FeatureStyleFunction</a>
</li>
</ul>
<ul class="methods itemMembers">
</ul>
<ul class="fires itemMembers">
</ul>
</li>
<li class="item" data-name="ol.format">
<span class="title">
<a href="ol.format.html">ol.format</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
<span class="subtitle">Typedefs</span>
<li data-name="ol.format.IGCZ" class="unstable">
<a href="ol.format.html#IGCZ">IGCZ</a>
</li>
</ul>
<ul class="methods itemMembers">
</ul>
<ul class="fires itemMembers">
</ul>
</li>
<li class="item" data-name="ol.format.Feature">
<span class="title">
<a href="ol.format.Feature.html">ol.format.Feature</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
</ul>
<ul class="fires itemMembers">
</ul>
</li>
<li class="item" data-name="ol.format.GML">
<span class="title">
<a href="ol.format.GML.html">ol.format.GML</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.format.GML#readFeatures" class="">
<a href="ol.format.GML.html#readFeatures">readFeatures</a>
</li>
<li data-name="ol.format.GML#writeFeatures" class="">
<a href="ol.format.GML.html#writeFeatures">writeFeatures</a>
</li>
<li data-name="ol.format.GML#writeFeaturesNode" class="unstable">
<a href="ol.format.GML.html#writeFeaturesNode">writeFeaturesNode</a>
</li>
</ul>
<ul class="fires itemMembers">
</ul>
</li>
<li class="item" data-name="ol.format.GML2">
<span class="title">
<a href="ol.format.GML2.html">ol.format.GML2</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.format.GML2#readFeatures" class="">
<a href="ol.format.GML2.html#readFeatures">readFeatures</a>
</li>
</ul>
<ul class="fires itemMembers">
</ul>
</li>
<li class="item" data-name="ol.format.GML3">
<span class="title">
<a href="ol.format.GML3.html">ol.format.GML3</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.format.GML3#readFeatures" class="">
<a href="ol.format.GML3.html#readFeatures">readFeatures</a>
</li>
<li data-name="ol.format.GML3#writeFeatures" class="">
<a href="ol.format.GML3.html#writeFeatures">writeFeatures</a>
</li>
<li data-name="ol.format.GML3#writeFeaturesNode" class="unstable">
<a href="ol.format.GML3.html#writeFeaturesNode">writeFeaturesNode</a>
</li>
<li data-name="ol.format.GML3#writeGeometryNode" class="unstable">
<a href="ol.format.GML3.html#writeGeometryNode">writeGeometryNode</a>
</li>
</ul>
<ul class="fires itemMembers">
</ul>
</li>
<li class="item" data-name="ol.format.GMLBase">
<span class="title">
<a href="ol.format.GMLBase.html">ol.format.GMLBase</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.format.GMLBase#readFeatures" class="">
<a href="ol.format.GMLBase.html#readFeatures">readFeatures</a>
</li>
</ul>
<ul class="fires itemMembers">
</ul>
</li>
<li class="item" data-name="ol.format.GPX">
<span class="title">
<a href="ol.format.GPX.html">ol.format.GPX</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.format.GPX#readFeature" class="">
<a href="ol.format.GPX.html#readFeature">readFeature</a>
</li>
<li data-name="ol.format.GPX#readFeatures" class="">
<a href="ol.format.GPX.html#readFeatures">readFeatures</a>
</li>
<li data-name="ol.format.GPX#readProjection" class="">
<a href="ol.format.GPX.html#readProjection">readProjection</a>
</li>
<li data-name="ol.format.GPX#writeFeatures" class="">
<a href="ol.format.GPX.html#writeFeatures">writeFeatures</a>
</li>
<li data-name="ol.format.GPX#writeFeaturesNode" class="unstable">
<a href="ol.format.GPX.html#writeFeaturesNode">writeFeaturesNode</a>
</li>
</ul>
<ul class="fires itemMembers">
</ul>
</li>
<li class="item" data-name="ol.format.GeoJSON">
<span class="title">
<a href="ol.format.GeoJSON.html">ol.format.GeoJSON</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.format.GeoJSON#readFeature" class="">
<a href="ol.format.GeoJSON.html#readFeature">readFeature</a>
</li>
<li data-name="ol.format.GeoJSON#readFeatures" class="">
<a href="ol.format.GeoJSON.html#readFeatures">readFeatures</a>
</li>
<li data-name="ol.format.GeoJSON#readGeometry" class="">
<a href="ol.format.GeoJSON.html#readGeometry">readGeometry</a>
</li>
<li data-name="ol.format.GeoJSON#readProjection" class="">
<a href="ol.format.GeoJSON.html#readProjection">readProjection</a>
</li>
<li data-name="ol.format.GeoJSON#writeFeature" class="">
<a href="ol.format.GeoJSON.html#writeFeature">writeFeature</a>
</li>
<li data-name="ol.format.GeoJSON#writeFeatureObject" class="unstable">
<a href="ol.format.GeoJSON.html#writeFeatureObject">writeFeatureObject</a>
</li>
<li data-name="ol.format.GeoJSON#writeFeatures" class="">
<a href="ol.format.GeoJSON.html#writeFeatures">writeFeatures</a>
</li>
<li data-name="ol.format.GeoJSON#writeFeaturesObject" class="unstable">
<a href="ol.format.GeoJSON.html#writeFeaturesObject">writeFeaturesObject</a>
</li>
<li data-name="ol.format.GeoJSON#writeGeometry" class="">
<a href="ol.format.GeoJSON.html#writeGeometry">writeGeometry</a>
</li>
<li data-name="ol.format.GeoJSON#writeGeometryObject" class="unstable">
<a href="ol.format.GeoJSON.html#writeGeometryObject">writeGeometryObject</a>
</li>
</ul>
<ul class="fires itemMembers">
</ul>
</li>
<li class="item" data-name="ol.format.IGC">
<span class="title">
<a href="ol.format.IGC.html">ol.format.IGC</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.format.IGC#readFeature" class="unstable">
<a href="ol.format.IGC.html#readFeature">readFeature</a>
</li>
<li data-name="ol.format.IGC#readFeatures" class="unstable">
<a href="ol.format.IGC.html#readFeatures">readFeatures</a>
</li>
<li data-name="ol.format.IGC#readProjection" class="unstable">
<a href="ol.format.IGC.html#readProjection">readProjection</a>
</li>
</ul>
<ul class="fires itemMembers">
</ul>
</li>
<li class="item" data-name="ol.format.JSONFeature">
<span class="title">
<a href="ol.format.JSONFeature.html">ol.format.JSONFeature</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
</ul>
<ul class="fires itemMembers">
</ul>
</li>
<li class="item" data-name="ol.format.KML">
<span class="title">
<a href="ol.format.KML.html">ol.format.KML</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.format.KML#readFeature" class="">
<a href="ol.format.KML.html#readFeature">readFeature</a>
</li>
<li data-name="ol.format.KML#readFeatures" class="">
<a href="ol.format.KML.html#readFeatures">readFeatures</a>
</li>
<li data-name="ol.format.KML#readName" class="">
<a href="ol.format.KML.html#readName">readName</a>
</li>
<li data-name="ol.format.KML#readNetworkLinks" class="unstable">
<a href="ol.format.KML.html#readNetworkLinks">readNetworkLinks</a>
</li>
<li data-name="ol.format.KML#readProjection" class="">
<a href="ol.format.KML.html#readProjection">readProjection</a>
</li>
<li data-name="ol.format.KML#writeFeatures" class="">
<a href="ol.format.KML.html#writeFeatures">writeFeatures</a>
</li>
<li data-name="ol.format.KML#writeFeaturesNode" class="unstable">
<a href="ol.format.KML.html#writeFeaturesNode">writeFeaturesNode</a>
</li>
</ul>
<ul class="fires itemMembers">
</ul>
</li>
<li class="item" data-name="ol.format.OSMXML">
<span class="title">
<a href="ol.format.OSMXML.html">ol.format.OSMXML</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.format.OSMXML#readFeatures" class="">
<a href="ol.format.OSMXML.html#readFeatures">readFeatures</a>
</li>
<li data-name="ol.format.OSMXML#readProjection" class="">
<a href="ol.format.OSMXML.html#readProjection">readProjection</a>
</li>
</ul>
<ul class="fires itemMembers">
</ul>
</li>
<li class="item" data-name="ol.format.Polyline">
<span class="title">
<a href="ol.format.Polyline.html">ol.format.Polyline</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.format.Polyline.decodeDeltas" class="unstable">
<a href="ol.format.Polyline.html#decodeDeltas">decodeDeltas</a>
</li>
<li data-name="ol.format.Polyline.decodeFloats" class="unstable">
<a href="ol.format.Polyline.html#decodeFloats">decodeFloats</a>
</li>
<li data-name="ol.format.Polyline.encodeDeltas" class="unstable">
<a href="ol.format.Polyline.html#encodeDeltas">encodeDeltas</a>
</li>
<li data-name="ol.format.Polyline.encodeFloats" class="unstable">
<a href="ol.format.Polyline.html#encodeFloats">encodeFloats</a>
</li>
<li data-name="ol.format.Polyline#readFeature" class="">
<a href="ol.format.Polyline.html#readFeature">readFeature</a>
</li>
<li data-name="ol.format.Polyline#readFeatures" class="">
<a href="ol.format.Polyline.html#readFeatures">readFeatures</a>
</li>
<li data-name="ol.format.Polyline#readGeometry" class="">
<a href="ol.format.Polyline.html#readGeometry">readGeometry</a>
</li>
<li data-name="ol.format.Polyline#readProjection" class="">
<a href="ol.format.Polyline.html#readProjection">readProjection</a>
</li>
<li data-name="ol.format.Polyline#writeGeometry" class="">
<a href="ol.format.Polyline.html#writeGeometry">writeGeometry</a>
</li>
</ul>
<ul class="fires itemMembers">
</ul>
</li>
<li class="item" data-name="ol.format.TextFeature">
<span class="title">
<a href="ol.format.TextFeature.html">ol.format.TextFeature</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
</ul>
<ul class="fires itemMembers">
</ul>
</li>
<li class="item" data-name="ol.format.TopoJSON">
<span class="title">
<a href="ol.format.TopoJSON.html">ol.format.TopoJSON</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.format.TopoJSON#readFeatures" class="">
<a href="ol.format.TopoJSON.html#readFeatures">readFeatures</a>
</li>
<li data-name="ol.format.TopoJSON#readProjection" class="">
<a href="ol.format.TopoJSON.html#readProjection">readProjection</a>
</li>
</ul>
<ul class="fires itemMembers">
</ul>
</li>
<li class="item" data-name="ol.format.WFS">
<span class="title">
<a href="ol.format.WFS.html">ol.format.WFS</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
<span class="subtitle">Typedefs</span>
<li data-name="ol.format.WFS.FeatureCollectionMetadata" class="">
<a href="ol.format.WFS.html#FeatureCollectionMetadata">FeatureCollectionMetadata</a>
</li>
<li data-name="ol.format.WFS.TransactionResponse" class="">
<a href="ol.format.WFS.html#TransactionResponse">TransactionResponse</a>
</li>
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.format.WFS#readFeatureCollectionMetadata" class="">
<a href="ol.format.WFS.html#readFeatureCollectionMetadata">readFeatureCollectionMetadata</a>
</li>
<li data-name="ol.format.WFS#readFeatures" class="">
<a href="ol.format.WFS.html#readFeatures">readFeatures</a>
</li>
<li data-name="ol.format.WFS#readProjection" class="">
<a href="ol.format.WFS.html#readProjection">readProjection</a>
</li>
<li data-name="ol.format.WFS#readTransactionResponse" class="">
<a href="ol.format.WFS.html#readTransactionResponse">readTransactionResponse</a>
</li>
<li data-name="ol.format.WFS#writeGetFeature" class="">
<a href="ol.format.WFS.html#writeGetFeature">writeGetFeature</a>
</li>
<li data-name="ol.format.WFS#writeTransaction" class="">
<a href="ol.format.WFS.html#writeTransaction">writeTransaction</a>
</li>
</ul>
<ul class="fires itemMembers">
</ul>
</li>
<li class="item" data-name="ol.format.WKT">
<span class="title">
<a href="ol.format.WKT.html">ol.format.WKT</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.format.WKT#readFeature" class="">
<a href="ol.format.WKT.html#readFeature">readFeature</a>
</li>
<li data-name="ol.format.WKT#readFeatures" class="">
<a href="ol.format.WKT.html#readFeatures">readFeatures</a>
</li>
<li data-name="ol.format.WKT#readGeometry" class="">
<a href="ol.format.WKT.html#readGeometry">readGeometry</a>
</li>
<li data-name="ol.format.WKT#writeFeature" class="">
<a href="ol.format.WKT.html#writeFeature">writeFeature</a>
</li>
<li data-name="ol.format.WKT#writeFeatures" class="">
<a href="ol.format.WKT.html#writeFeatures">writeFeatures</a>
</li>
<li data-name="ol.format.WKT#writeGeometry" class="">
<a href="ol.format.WKT.html#writeGeometry">writeGeometry</a>
</li>
</ul>
<ul class="fires itemMembers">
</ul>
</li>
<li class="item" data-name="ol.format.WMSCapabilities">
<span class="title">
<a href="ol.format.WMSCapabilities.html">ol.format.WMSCapabilities</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.format.WMSCapabilities#read" class="unstable">
<a href="ol.format.WMSCapabilities.html#read">read</a>
</li>
</ul>
<ul class="fires itemMembers">
</ul>
</li>
<li class="item" data-name="ol.format.WMSGetFeatureInfo">
<span class="title">
<a href="ol.format.WMSGetFeatureInfo.html">ol.format.WMSGetFeatureInfo</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.format.WMSGetFeatureInfo#readFeatures" class="">
<a href="ol.format.WMSGetFeatureInfo.html#readFeatures">readFeatures</a>
</li>
</ul>
<ul class="fires itemMembers">
</ul>
</li>
<li class="item" data-name="ol.format.WMTSCapabilities">
<span class="title">
<a href="ol.format.WMTSCapabilities.html">ol.format.WMTSCapabilities</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.format.WMTSCapabilities#read" class="unstable">
<a href="ol.format.WMTSCapabilities.html#read">read</a>
</li>
</ul>
<ul class="fires itemMembers">
</ul>
</li>
<li class="item" data-name="ol.format.XML">
<span class="title">
<a href="ol.format.XML.html">ol.format.XML</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
</ul>
<ul class="fires itemMembers">
</ul>
</li>
<li class="item" data-name="ol.format.XMLFeature">
<span class="title">
<a href="ol.format.XMLFeature.html">ol.format.XMLFeature</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
</ul>
<ul class="fires itemMembers">
</ul>
</li>
<li class="item" data-name="ol.geom">
<span class="title">
<a href="ol.geom.html">ol.geom</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
<span class="subtitle">Typedefs</span>
<li data-name="ol.geom.GeometryLayout" class="">
<a href="ol.geom.html#GeometryLayout">GeometryLayout</a>
</li>
<li data-name="ol.geom.GeometryType" class="">
<a href="ol.geom.html#GeometryType">GeometryType</a>
</li>
</ul>
<ul class="methods itemMembers">
</ul>
<ul class="fires itemMembers">
</ul>
</li>
<li class="item" data-name="ol.geom.Circle">
<span class="title">
<a href="ol.geom.Circle.html">ol.geom.Circle</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.geom.Circle#applyTransform" class="">
<a href="ol.geom.Circle.html#applyTransform">applyTransform</a>
</li>
<li data-name="ol.geom.Circle#changed" class="unstable">
<a href="ol.geom.Circle.html#changed">changed</a>
</li>
<li data-name="ol.geom.Circle#clone" class="unstable">
<a href="ol.geom.Circle.html#clone">clone</a>
</li>
<li data-name="ol.geom.Circle#getCenter" class="unstable">
<a href="ol.geom.Circle.html#getCenter">getCenter</a>
</li>
<li data-name="ol.geom.Circle#getClosestPoint" class="">
<a href="ol.geom.Circle.html#getClosestPoint">getClosestPoint</a>
</li>
<li data-name="ol.geom.Circle#getExtent" class="">
<a href="ol.geom.Circle.html#getExtent">getExtent</a>
</li>
<li data-name="ol.geom.Circle#getFirstCoordinate" class="">
<a href="ol.geom.Circle.html#getFirstCoordinate">getFirstCoordinate</a>
</li>
<li data-name="ol.geom.Circle#getLastCoordinate" class="">
<a href="ol.geom.Circle.html#getLastCoordinate">getLastCoordinate</a>
</li>
<li data-name="ol.geom.Circle#getLayout" class="">
<a href="ol.geom.Circle.html#getLayout">getLayout</a>
</li>
<li data-name="ol.geom.Circle#getRadius" class="unstable">
<a href="ol.geom.Circle.html#getRadius">getRadius</a>
</li>
<li data-name="ol.geom.Circle#getRevision" class="unstable">
<a href="ol.geom.Circle.html#getRevision">getRevision</a>
</li>
<li data-name="ol.geom.Circle#getType" class="">
<a href="ol.geom.Circle.html#getType">getType</a>
</li>
<li data-name="ol.geom.Circle#intersectsExtent" class="unstable">
<a href="ol.geom.Circle.html#intersectsExtent">intersectsExtent</a>
</li>
<li data-name="ol.geom.Circle#on" class="">
<a href="ol.geom.Circle.html#on">on</a>
</li>
<li data-name="ol.geom.Circle#once" class="">
<a href="ol.geom.Circle.html#once">once</a>
</li>
<li data-name="ol.geom.Circle#setCenter" class="unstable">
<a href="ol.geom.Circle.html#setCenter">setCenter</a>
</li>
<li data-name="ol.geom.Circle#setCenterAndRadius" class="unstable">
<a href="ol.geom.Circle.html#setCenterAndRadius">setCenterAndRadius</a>
</li>
<li data-name="ol.geom.Circle#setRadius" class="unstable">
<a href="ol.geom.Circle.html#setRadius">setRadius</a>
</li>
<li data-name="ol.geom.Circle#transform" class="">
<a href="ol.geom.Circle.html#transform">transform</a>
</li>
<li data-name="ol.geom.Circle#translate" class="unstable">
<a href="ol.geom.Circle.html#translate">translate</a>
</li>
<li data-name="ol.geom.Circle#un" class="">
<a href="ol.geom.Circle.html#un">un</a>
</li>
<li data-name="ol.geom.Circle#unByKey" class="">
<a href="ol.geom.Circle.html#unByKey">unByKey</a>
</li>
</ul>
<ul class="fires itemMembers">
<span class="subtitle">Fires</span>
<li data-name="event:change Triggered when the geometry changes." class="unstable">
change Triggered when the geometry changes.
</li>
</ul>
</li>
<li class="item" data-name="ol.geom.Geometry">
<span class="title">
<a href="ol.geom.Geometry.html">ol.geom.Geometry</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.geom.Geometry#applyTransform" class="">
<a href="ol.geom.Geometry.html#applyTransform">applyTransform</a>
</li>
<li data-name="ol.geom.Geometry#changed" class="unstable">
<a href="ol.geom.Geometry.html#changed">changed</a>
</li>
<li data-name="ol.geom.Geometry#clone" class="">
<a href="ol.geom.Geometry.html#clone">clone</a>
</li>
<li data-name="ol.geom.Geometry#getClosestPoint" class="">
<a href="ol.geom.Geometry.html#getClosestPoint">getClosestPoint</a>
</li>
<li data-name="ol.geom.Geometry#getExtent" class="">
<a href="ol.geom.Geometry.html#getExtent">getExtent</a>
</li>
<li data-name="ol.geom.Geometry#getRevision" class="unstable">
<a href="ol.geom.Geometry.html#getRevision">getRevision</a>
</li>
<li data-name="ol.geom.Geometry#getType" class="">
<a href="ol.geom.Geometry.html#getType">getType</a>
</li>
<li data-name="ol.geom.Geometry#intersectsExtent" class="unstable">
<a href="ol.geom.Geometry.html#intersectsExtent">intersectsExtent</a>
</li>
<li data-name="ol.geom.Geometry#on" class="">
<a href="ol.geom.Geometry.html#on">on</a>
</li>
<li data-name="ol.geom.Geometry#once" class="">
<a href="ol.geom.Geometry.html#once">once</a>
</li>
<li data-name="ol.geom.Geometry#transform" class="">
<a href="ol.geom.Geometry.html#transform">transform</a>
</li>
<li data-name="ol.geom.Geometry#translate" class="unstable">
<a href="ol.geom.Geometry.html#translate">translate</a>
</li>
<li data-name="ol.geom.Geometry#un" class="">
<a href="ol.geom.Geometry.html#un">un</a>
</li>
<li data-name="ol.geom.Geometry#unByKey" class="">
<a href="ol.geom.Geometry.html#unByKey">unByKey</a>
</li>
</ul>
<ul class="fires itemMembers">
<span class="subtitle">Fires</span>
<li data-name="event:change Triggered when the geometry changes." class="unstable">
change Triggered when the geometry changes.
</li>
</ul>
</li>
<li class="item" data-name="ol.geom.GeometryCollection">
<span class="title">
<a href="ol.geom.GeometryCollection.html">ol.geom.GeometryCollection</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.geom.GeometryCollection#applyTransform" class="">
<a href="ol.geom.GeometryCollection.html#applyTransform">applyTransform</a>
</li>
<li data-name="ol.geom.GeometryCollection#changed" class="unstable">
<a href="ol.geom.GeometryCollection.html#changed">changed</a>
</li>
<li data-name="ol.geom.GeometryCollection#clone" class="">
<a href="ol.geom.GeometryCollection.html#clone">clone</a>
</li>
<li data-name="ol.geom.GeometryCollection#getClosestPoint" class="">
<a href="ol.geom.GeometryCollection.html#getClosestPoint">getClosestPoint</a>
</li>
<li data-name="ol.geom.GeometryCollection#getExtent" class="">
<a href="ol.geom.GeometryCollection.html#getExtent">getExtent</a>
</li>
<li data-name="ol.geom.GeometryCollection#getGeometries" class="">
<a href="ol.geom.GeometryCollection.html#getGeometries">getGeometries</a>
</li>
<li data-name="ol.geom.GeometryCollection#getRevision" class="unstable">
<a href="ol.geom.GeometryCollection.html#getRevision">getRevision</a>
</li>
<li data-name="ol.geom.GeometryCollection#getType" class="">
<a href="ol.geom.GeometryCollection.html#getType">getType</a>
</li>
<li data-name="ol.geom.GeometryCollection#intersectsExtent" class="unstable">
<a href="ol.geom.GeometryCollection.html#intersectsExtent">intersectsExtent</a>
</li>
<li data-name="ol.geom.GeometryCollection#on" class="">
<a href="ol.geom.GeometryCollection.html#on">on</a>
</li>
<li data-name="ol.geom.GeometryCollection#once" class="">
<a href="ol.geom.GeometryCollection.html#once">once</a>
</li>
<li data-name="ol.geom.GeometryCollection#setGeometries" class="">
<a href="ol.geom.GeometryCollection.html#setGeometries">setGeometries</a>
</li>
<li data-name="ol.geom.GeometryCollection#transform" class="">
<a href="ol.geom.GeometryCollection.html#transform">transform</a>
</li>
<li data-name="ol.geom.GeometryCollection#translate" class="unstable">
<a href="ol.geom.GeometryCollection.html#translate">translate</a>
</li>
<li data-name="ol.geom.GeometryCollection#un" class="">
<a href="ol.geom.GeometryCollection.html#un">un</a>
</li>
<li data-name="ol.geom.GeometryCollection#unByKey" class="">
<a href="ol.geom.GeometryCollection.html#unByKey">unByKey</a>
</li>
</ul>
<ul class="fires itemMembers">
<span class="subtitle">Fires</span>
<li data-name="event:change Triggered when the geometry changes." class="unstable">
change Triggered when the geometry changes.
</li>
</ul>
</li>
<li class="item" data-name="ol.geom.LineString">
<span class="title">
<a href="ol.geom.LineString.html">ol.geom.LineString</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.geom.LineString#appendCoordinate" class="">
<a href="ol.geom.LineString.html#appendCoordinate">appendCoordinate</a>
</li>
<li data-name="ol.geom.LineString#applyTransform" class="">
<a href="ol.geom.LineString.html#applyTransform">applyTransform</a>
</li>
<li data-name="ol.geom.LineString#changed" class="unstable">
<a href="ol.geom.LineString.html#changed">changed</a>
</li>
<li data-name="ol.geom.LineString#clone" class="">
<a href="ol.geom.LineString.html#clone">clone</a>
</li>
<li data-name="ol.geom.LineString#getClosestPoint" class="">
<a href="ol.geom.LineString.html#getClosestPoint">getClosestPoint</a>
</li>
<li data-name="ol.geom.LineString#getCoordinateAtM" class="">
<a href="ol.geom.LineString.html#getCoordinateAtM">getCoordinateAtM</a>
</li>
<li data-name="ol.geom.LineString#getCoordinates" class="">
<a href="ol.geom.LineString.html#getCoordinates">getCoordinates</a>
</li>
<li data-name="ol.geom.LineString#getExtent" class="">
<a href="ol.geom.LineString.html#getExtent">getExtent</a>
</li>
<li data-name="ol.geom.LineString#getFirstCoordinate" class="">
<a href="ol.geom.LineString.html#getFirstCoordinate">getFirstCoordinate</a>
</li>
<li data-name="ol.geom.LineString#getLastCoordinate" class="">
<a href="ol.geom.LineString.html#getLastCoordinate">getLastCoordinate</a>
</li>
<li data-name="ol.geom.LineString#getLayout" class="">
<a href="ol.geom.LineString.html#getLayout">getLayout</a>
</li>
<li data-name="ol.geom.LineString#getLength" class="">
<a href="ol.geom.LineString.html#getLength">getLength</a>
</li>
<li data-name="ol.geom.LineString#getRevision" class="unstable">
<a href="ol.geom.LineString.html#getRevision">getRevision</a>
</li>
<li data-name="ol.geom.LineString#getType" class="">
<a href="ol.geom.LineString.html#getType">getType</a>
</li>
<li data-name="ol.geom.LineString#intersectsExtent" class="unstable">
<a href="ol.geom.LineString.html#intersectsExtent">intersectsExtent</a>
</li>
<li data-name="ol.geom.LineString#on" class="">
<a href="ol.geom.LineString.html#on">on</a>
</li>
<li data-name="ol.geom.LineString#once" class="">
<a href="ol.geom.LineString.html#once">once</a>
</li>
<li data-name="ol.geom.LineString#setCoordinates" class="">
<a href="ol.geom.LineString.html#setCoordinates">setCoordinates</a>
</li>
<li data-name="ol.geom.LineString#transform" class="">
<a href="ol.geom.LineString.html#transform">transform</a>
</li>
<li data-name="ol.geom.LineString#translate" class="unstable">
<a href="ol.geom.LineString.html#translate">translate</a>
</li>
<li data-name="ol.geom.LineString#un" class="">
<a href="ol.geom.LineString.html#un">un</a>
</li>
<li data-name="ol.geom.LineString#unByKey" class="">
<a href="ol.geom.LineString.html#unByKey">unByKey</a>
</li>
</ul>
<ul class="fires itemMembers">
<span class="subtitle">Fires</span>
<li data-name="event:change Triggered when the geometry changes." class="unstable">
change Triggered when the geometry changes.
</li>
</ul>
</li>
<li class="item" data-name="ol.geom.LinearRing">
<span class="title">
<a href="ol.geom.LinearRing.html">ol.geom.LinearRing</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.geom.LinearRing#applyTransform" class="">
<a href="ol.geom.LinearRing.html#applyTransform">applyTransform</a>
</li>
<li data-name="ol.geom.LinearRing#changed" class="unstable">
<a href="ol.geom.LinearRing.html#changed">changed</a>
</li>
<li data-name="ol.geom.LinearRing#clone" class="">
<a href="ol.geom.LinearRing.html#clone">clone</a>
</li>
<li data-name="ol.geom.LinearRing#getArea" class="">
<a href="ol.geom.LinearRing.html#getArea">getArea</a>
</li>
<li data-name="ol.geom.LinearRing#getClosestPoint" class="">
<a href="ol.geom.LinearRing.html#getClosestPoint">getClosestPoint</a>
</li>
<li data-name="ol.geom.LinearRing#getCoordinates" class="">
<a href="ol.geom.LinearRing.html#getCoordinates">getCoordinates</a>
</li>
<li data-name="ol.geom.LinearRing#getExtent" class="">
<a href="ol.geom.LinearRing.html#getExtent">getExtent</a>
</li>
<li data-name="ol.geom.LinearRing#getFirstCoordinate" class="">
<a href="ol.geom.LinearRing.html#getFirstCoordinate">getFirstCoordinate</a>
</li>
<li data-name="ol.geom.LinearRing#getLastCoordinate" class="">
<a href="ol.geom.LinearRing.html#getLastCoordinate">getLastCoordinate</a>
</li>
<li data-name="ol.geom.LinearRing#getLayout" class="">
<a href="ol.geom.LinearRing.html#getLayout">getLayout</a>
</li>
<li data-name="ol.geom.LinearRing#getRevision" class="unstable">
<a href="ol.geom.LinearRing.html#getRevision">getRevision</a>
</li>
<li data-name="ol.geom.LinearRing#getType" class="">
<a href="ol.geom.LinearRing.html#getType">getType</a>
</li>
<li data-name="ol.geom.LinearRing#intersectsExtent" class="unstable">
<a href="ol.geom.LinearRing.html#intersectsExtent">intersectsExtent</a>
</li>
<li data-name="ol.geom.LinearRing#on" class="">
<a href="ol.geom.LinearRing.html#on">on</a>
</li>
<li data-name="ol.geom.LinearRing#once" class="">
<a href="ol.geom.LinearRing.html#once">once</a>
</li>
<li data-name="ol.geom.LinearRing#setCoordinates" class="">
<a href="ol.geom.LinearRing.html#setCoordinates">setCoordinates</a>
</li>
<li data-name="ol.geom.LinearRing#transform" class="">
<a href="ol.geom.LinearRing.html#transform">transform</a>
</li>
<li data-name="ol.geom.LinearRing#translate" class="unstable">
<a href="ol.geom.LinearRing.html#translate">translate</a>
</li>
<li data-name="ol.geom.LinearRing#un" class="">
<a href="ol.geom.LinearRing.html#un">un</a>
</li>
<li data-name="ol.geom.LinearRing#unByKey" class="">
<a href="ol.geom.LinearRing.html#unByKey">unByKey</a>
</li>
</ul>
<ul class="fires itemMembers">
<span class="subtitle">Fires</span>
<li data-name="event:change Triggered when the geometry changes." class="unstable">
change Triggered when the geometry changes.
</li>
</ul>
</li>
<li class="item" data-name="ol.geom.MultiLineString">
<span class="title">
<a href="ol.geom.MultiLineString.html">ol.geom.MultiLineString</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.geom.MultiLineString#appendLineString" class="">
<a href="ol.geom.MultiLineString.html#appendLineString">appendLineString</a>
</li>
<li data-name="ol.geom.MultiLineString#applyTransform" class="">
<a href="ol.geom.MultiLineString.html#applyTransform">applyTransform</a>
</li>
<li data-name="ol.geom.MultiLineString#changed" class="unstable">
<a href="ol.geom.MultiLineString.html#changed">changed</a>
</li>
<li data-name="ol.geom.MultiLineString#clone" class="">
<a href="ol.geom.MultiLineString.html#clone">clone</a>
</li>
<li data-name="ol.geom.MultiLineString#getClosestPoint" class="">
<a href="ol.geom.MultiLineString.html#getClosestPoint">getClosestPoint</a>
</li>
<li data-name="ol.geom.MultiLineString#getCoordinateAtM" class="">
<a href="ol.geom.MultiLineString.html#getCoordinateAtM">getCoordinateAtM</a>
</li>
<li data-name="ol.geom.MultiLineString#getCoordinates" class="">
<a href="ol.geom.MultiLineString.html#getCoordinates">getCoordinates</a>
</li>
<li data-name="ol.geom.MultiLineString#getExtent" class="">
<a href="ol.geom.MultiLineString.html#getExtent">getExtent</a>
</li>
<li data-name="ol.geom.MultiLineString#getFirstCoordinate" class="">
<a href="ol.geom.MultiLineString.html#getFirstCoordinate">getFirstCoordinate</a>
</li>
<li data-name="ol.geom.MultiLineString#getLastCoordinate" class="">
<a href="ol.geom.MultiLineString.html#getLastCoordinate">getLastCoordinate</a>
</li>
<li data-name="ol.geom.MultiLineString#getLayout" class="">
<a href="ol.geom.MultiLineString.html#getLayout">getLayout</a>
</li>
<li data-name="ol.geom.MultiLineString#getLineString" class="">
<a href="ol.geom.MultiLineString.html#getLineString">getLineString</a>
</li>
<li data-name="ol.geom.MultiLineString#getLineStrings" class="">
<a href="ol.geom.MultiLineString.html#getLineStrings">getLineStrings</a>
</li>
<li data-name="ol.geom.MultiLineString#getRevision" class="unstable">
<a href="ol.geom.MultiLineString.html#getRevision">getRevision</a>
</li>
<li data-name="ol.geom.MultiLineString#getType" class="">
<a href="ol.geom.MultiLineString.html#getType">getType</a>
</li>
<li data-name="ol.geom.MultiLineString#intersectsExtent" class="unstable">
<a href="ol.geom.MultiLineString.html#intersectsExtent">intersectsExtent</a>
</li>
<li data-name="ol.geom.MultiLineString#on" class="">
<a href="ol.geom.MultiLineString.html#on">on</a>
</li>
<li data-name="ol.geom.MultiLineString#once" class="">
<a href="ol.geom.MultiLineString.html#once">once</a>
</li>
<li data-name="ol.geom.MultiLineString#setCoordinates" class="">
<a href="ol.geom.MultiLineString.html#setCoordinates">setCoordinates</a>
</li>
<li data-name="ol.geom.MultiLineString#transform" class="">
<a href="ol.geom.MultiLineString.html#transform">transform</a>
</li>
<li data-name="ol.geom.MultiLineString#translate" class="unstable">
<a href="ol.geom.MultiLineString.html#translate">translate</a>
</li>
<li data-name="ol.geom.MultiLineString#un" class="">
<a href="ol.geom.MultiLineString.html#un">un</a>
</li>
<li data-name="ol.geom.MultiLineString#unByKey" class="">
<a href="ol.geom.MultiLineString.html#unByKey">unByKey</a>
</li>
</ul>
<ul class="fires itemMembers">
<span class="subtitle">Fires</span>
<li data-name="event:change Triggered when the geometry changes." class="unstable">
change Triggered when the geometry changes.
</li>
</ul>
</li>
<li class="item" data-name="ol.geom.MultiPoint">
<span class="title">
<a href="ol.geom.MultiPoint.html">ol.geom.MultiPoint</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.geom.MultiPoint#appendPoint" class="">
<a href="ol.geom.MultiPoint.html#appendPoint">appendPoint</a>
</li>
<li data-name="ol.geom.MultiPoint#applyTransform" class="">
<a href="ol.geom.MultiPoint.html#applyTransform">applyTransform</a>
</li>
<li data-name="ol.geom.MultiPoint#changed" class="unstable">
<a href="ol.geom.MultiPoint.html#changed">changed</a>
</li>
<li data-name="ol.geom.MultiPoint#clone" class="">
<a href="ol.geom.MultiPoint.html#clone">clone</a>
</li>
<li data-name="ol.geom.MultiPoint#getClosestPoint" class="">
<a href="ol.geom.MultiPoint.html#getClosestPoint">getClosestPoint</a>
</li>
<li data-name="ol.geom.MultiPoint#getCoordinates" class="">
<a href="ol.geom.MultiPoint.html#getCoordinates">getCoordinates</a>
</li>
<li data-name="ol.geom.MultiPoint#getExtent" class="">
<a href="ol.geom.MultiPoint.html#getExtent">getExtent</a>
</li>
<li data-name="ol.geom.MultiPoint#getFirstCoordinate" class="">
<a href="ol.geom.MultiPoint.html#getFirstCoordinate">getFirstCoordinate</a>
</li>
<li data-name="ol.geom.MultiPoint#getLastCoordinate" class="">
<a href="ol.geom.MultiPoint.html#getLastCoordinate">getLastCoordinate</a>
</li>
<li data-name="ol.geom.MultiPoint#getLayout" class="">
<a href="ol.geom.MultiPoint.html#getLayout">getLayout</a>
</li>
<li data-name="ol.geom.MultiPoint#getPoint" class="">
<a href="ol.geom.MultiPoint.html#getPoint">getPoint</a>
</li>
<li data-name="ol.geom.MultiPoint#getPoints" class="">
<a href="ol.geom.MultiPoint.html#getPoints">getPoints</a>
</li>
<li data-name="ol.geom.MultiPoint#getRevision" class="unstable">
<a href="ol.geom.MultiPoint.html#getRevision">getRevision</a>
</li>
<li data-name="ol.geom.MultiPoint#getType" class="">
<a href="ol.geom.MultiPoint.html#getType">getType</a>
</li>
<li data-name="ol.geom.MultiPoint#intersectsExtent" class="unstable">
<a href="ol.geom.MultiPoint.html#intersectsExtent">intersectsExtent</a>
</li>
<li data-name="ol.geom.MultiPoint#on" class="">
<a href="ol.geom.MultiPoint.html#on">on</a>
</li>
<li data-name="ol.geom.MultiPoint#once" class="">
<a href="ol.geom.MultiPoint.html#once">once</a>
</li>
<li data-name="ol.geom.MultiPoint#setCoordinates" class="">
<a href="ol.geom.MultiPoint.html#setCoordinates">setCoordinates</a>
</li>
<li data-name="ol.geom.MultiPoint#transform" class="">
<a href="ol.geom.MultiPoint.html#transform">transform</a>
</li>
<li data-name="ol.geom.MultiPoint#translate" class="unstable">
<a href="ol.geom.MultiPoint.html#translate">translate</a>
</li>
<li data-name="ol.geom.MultiPoint#un" class="">
<a href="ol.geom.MultiPoint.html#un">un</a>
</li>
<li data-name="ol.geom.MultiPoint#unByKey" class="">
<a href="ol.geom.MultiPoint.html#unByKey">unByKey</a>
</li>
</ul>
<ul class="fires itemMembers">
<span class="subtitle">Fires</span>
<li data-name="event:change Triggered when the geometry changes." class="unstable">
change Triggered when the geometry changes.
</li>
</ul>
</li>
<li class="item" data-name="ol.geom.MultiPolygon">
<span class="title">
<a href="ol.geom.MultiPolygon.html">ol.geom.MultiPolygon</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.geom.MultiPolygon#appendPolygon" class="">
<a href="ol.geom.MultiPolygon.html#appendPolygon">appendPolygon</a>
</li>
<li data-name="ol.geom.MultiPolygon#applyTransform" class="">
<a href="ol.geom.MultiPolygon.html#applyTransform">applyTransform</a>
</li>
<li data-name="ol.geom.MultiPolygon#changed" class="unstable">
<a href="ol.geom.MultiPolygon.html#changed">changed</a>
</li>
<li data-name="ol.geom.MultiPolygon#clone" class="">
<a href="ol.geom.MultiPolygon.html#clone">clone</a>
</li>
<li data-name="ol.geom.MultiPolygon#getArea" class="">
<a href="ol.geom.MultiPolygon.html#getArea">getArea</a>
</li>
<li data-name="ol.geom.MultiPolygon#getClosestPoint" class="">
<a href="ol.geom.MultiPolygon.html#getClosestPoint">getClosestPoint</a>
</li>
<li data-name="ol.geom.MultiPolygon#getCoordinates" class="">
<a href="ol.geom.MultiPolygon.html#getCoordinates">getCoordinates</a>
</li>
<li data-name="ol.geom.MultiPolygon#getExtent" class="">
<a href="ol.geom.MultiPolygon.html#getExtent">getExtent</a>
</li>
<li data-name="ol.geom.MultiPolygon#getFirstCoordinate" class="">
<a href="ol.geom.MultiPolygon.html#getFirstCoordinate">getFirstCoordinate</a>
</li>
<li data-name="ol.geom.MultiPolygon#getInteriorPoints" class="">
<a href="ol.geom.MultiPolygon.html#getInteriorPoints">getInteriorPoints</a>
</li>
<li data-name="ol.geom.MultiPolygon#getLastCoordinate" class="">
<a href="ol.geom.MultiPolygon.html#getLastCoordinate">getLastCoordinate</a>
</li>
<li data-name="ol.geom.MultiPolygon#getLayout" class="">
<a href="ol.geom.MultiPolygon.html#getLayout">getLayout</a>
</li>
<li data-name="ol.geom.MultiPolygon#getPolygon" class="">
<a href="ol.geom.MultiPolygon.html#getPolygon">getPolygon</a>
</li>
<li data-name="ol.geom.MultiPolygon#getPolygons" class="">
<a href="ol.geom.MultiPolygon.html#getPolygons">getPolygons</a>
</li>
<li data-name="ol.geom.MultiPolygon#getRevision" class="unstable">
<a href="ol.geom.MultiPolygon.html#getRevision">getRevision</a>
</li>
<li data-name="ol.geom.MultiPolygon#getType" class="">
<a href="ol.geom.MultiPolygon.html#getType">getType</a>
</li>
<li data-name="ol.geom.MultiPolygon#intersectsExtent" class="unstable">
<a href="ol.geom.MultiPolygon.html#intersectsExtent">intersectsExtent</a>
</li>
<li data-name="ol.geom.MultiPolygon#on" class="">
<a href="ol.geom.MultiPolygon.html#on">on</a>
</li>
<li data-name="ol.geom.MultiPolygon#once" class="">
<a href="ol.geom.MultiPolygon.html#once">once</a>
</li>
<li data-name="ol.geom.MultiPolygon#setCoordinates" class="">
<a href="ol.geom.MultiPolygon.html#setCoordinates">setCoordinates</a>
</li>
<li data-name="ol.geom.MultiPolygon#transform" class="">
<a href="ol.geom.MultiPolygon.html#transform">transform</a>
</li>
<li data-name="ol.geom.MultiPolygon#translate" class="unstable">
<a href="ol.geom.MultiPolygon.html#translate">translate</a>
</li>
<li data-name="ol.geom.MultiPolygon#un" class="">
<a href="ol.geom.MultiPolygon.html#un">un</a>
</li>
<li data-name="ol.geom.MultiPolygon#unByKey" class="">
<a href="ol.geom.MultiPolygon.html#unByKey">unByKey</a>
</li>
</ul>
<ul class="fires itemMembers">
<span class="subtitle">Fires</span>
<li data-name="event:change Triggered when the geometry changes." class="unstable">
change Triggered when the geometry changes.
</li>
</ul>
</li>
<li class="item" data-name="ol.geom.Point">
<span class="title">
<a href="ol.geom.Point.html">ol.geom.Point</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.geom.Point#applyTransform" class="">
<a href="ol.geom.Point.html#applyTransform">applyTransform</a>
</li>
<li data-name="ol.geom.Point#changed" class="unstable">
<a href="ol.geom.Point.html#changed">changed</a>
</li>
<li data-name="ol.geom.Point#clone" class="">
<a href="ol.geom.Point.html#clone">clone</a>
</li>
<li data-name="ol.geom.Point#getClosestPoint" class="">
<a href="ol.geom.Point.html#getClosestPoint">getClosestPoint</a>
</li>
<li data-name="ol.geom.Point#getCoordinates" class="">
<a href="ol.geom.Point.html#getCoordinates">getCoordinates</a>
</li>
<li data-name="ol.geom.Point#getExtent" class="">
<a href="ol.geom.Point.html#getExtent">getExtent</a>
</li>
<li data-name="ol.geom.Point#getFirstCoordinate" class="">
<a href="ol.geom.Point.html#getFirstCoordinate">getFirstCoordinate</a>
</li>
<li data-name="ol.geom.Point#getLastCoordinate" class="">
<a href="ol.geom.Point.html#getLastCoordinate">getLastCoordinate</a>
</li>
<li data-name="ol.geom.Point#getLayout" class="">
<a href="ol.geom.Point.html#getLayout">getLayout</a>
</li>
<li data-name="ol.geom.Point#getRevision" class="unstable">
<a href="ol.geom.Point.html#getRevision">getRevision</a>
</li>
<li data-name="ol.geom.Point#getType" class="">
<a href="ol.geom.Point.html#getType">getType</a>
</li>
<li data-name="ol.geom.Point#intersectsExtent" class="unstable">
<a href="ol.geom.Point.html#intersectsExtent">intersectsExtent</a>
</li>
<li data-name="ol.geom.Point#on" class="">
<a href="ol.geom.Point.html#on">on</a>
</li>
<li data-name="ol.geom.Point#once" class="">
<a href="ol.geom.Point.html#once">once</a>
</li>
<li data-name="ol.geom.Point#setCoordinates" class="">
<a href="ol.geom.Point.html#setCoordinates">setCoordinates</a>
</li>
<li data-name="ol.geom.Point#transform" class="">
<a href="ol.geom.Point.html#transform">transform</a>
</li>
<li data-name="ol.geom.Point#translate" class="unstable">
<a href="ol.geom.Point.html#translate">translate</a>
</li>
<li data-name="ol.geom.Point#un" class="">
<a href="ol.geom.Point.html#un">un</a>
</li>
<li data-name="ol.geom.Point#unByKey" class="">
<a href="ol.geom.Point.html#unByKey">unByKey</a>
</li>
</ul>
<ul class="fires itemMembers">
<span class="subtitle">Fires</span>
<li data-name="event:change Triggered when the geometry changes." class="unstable">
change Triggered when the geometry changes.
</li>
</ul>
</li>
<li class="item" data-name="ol.geom.Polygon">
<span class="title">
<a href="ol.geom.Polygon.html">ol.geom.Polygon</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.geom.Polygon.circular" class="">
<a href="ol.geom.Polygon.html#circular">circular</a>
</li>
<li data-name="ol.geom.Polygon.fromExtent" class="unstable">
<a href="ol.geom.Polygon.html#fromExtent">fromExtent</a>
</li>
<li data-name="ol.geom.Polygon#appendLinearRing" class="">
<a href="ol.geom.Polygon.html#appendLinearRing">appendLinearRing</a>
</li>
<li data-name="ol.geom.Polygon#applyTransform" class="">
<a href="ol.geom.Polygon.html#applyTransform">applyTransform</a>
</li>
<li data-name="ol.geom.Polygon#changed" class="unstable">
<a href="ol.geom.Polygon.html#changed">changed</a>
</li>
<li data-name="ol.geom.Polygon#clone" class="">
<a href="ol.geom.Polygon.html#clone">clone</a>
</li>
<li data-name="ol.geom.Polygon#getArea" class="">
<a href="ol.geom.Polygon.html#getArea">getArea</a>
</li>
<li data-name="ol.geom.Polygon#getClosestPoint" class="">
<a href="ol.geom.Polygon.html#getClosestPoint">getClosestPoint</a>
</li>
<li data-name="ol.geom.Polygon#getCoordinates" class="">
<a href="ol.geom.Polygon.html#getCoordinates">getCoordinates</a>
</li>
<li data-name="ol.geom.Polygon#getExtent" class="">
<a href="ol.geom.Polygon.html#getExtent">getExtent</a>
</li>
<li data-name="ol.geom.Polygon#getFirstCoordinate" class="">
<a href="ol.geom.Polygon.html#getFirstCoordinate">getFirstCoordinate</a>
</li>
<li data-name="ol.geom.Polygon#getInteriorPoint" class="">
<a href="ol.geom.Polygon.html#getInteriorPoint">getInteriorPoint</a>
</li>
<li data-name="ol.geom.Polygon#getLastCoordinate" class="">
<a href="ol.geom.Polygon.html#getLastCoordinate">getLastCoordinate</a>
</li>
<li data-name="ol.geom.Polygon#getLayout" class="">
<a href="ol.geom.Polygon.html#getLayout">getLayout</a>
</li>
<li data-name="ol.geom.Polygon#getLinearRing" class="">
<a href="ol.geom.Polygon.html#getLinearRing">getLinearRing</a>
</li>
<li data-name="ol.geom.Polygon#getLinearRingCount" class="unstable">
<a href="ol.geom.Polygon.html#getLinearRingCount">getLinearRingCount</a>
</li>
<li data-name="ol.geom.Polygon#getLinearRings" class="">
<a href="ol.geom.Polygon.html#getLinearRings">getLinearRings</a>
</li>
<li data-name="ol.geom.Polygon#getRevision" class="unstable">
<a href="ol.geom.Polygon.html#getRevision">getRevision</a>
</li>
<li data-name="ol.geom.Polygon#getType" class="">
<a href="ol.geom.Polygon.html#getType">getType</a>
</li>
<li data-name="ol.geom.Polygon#intersectsExtent" class="unstable">
<a href="ol.geom.Polygon.html#intersectsExtent">intersectsExtent</a>
</li>
<li data-name="ol.geom.Polygon#on" class="">
<a href="ol.geom.Polygon.html#on">on</a>
</li>
<li data-name="ol.geom.Polygon#once" class="">
<a href="ol.geom.Polygon.html#once">once</a>
</li>
<li data-name="ol.geom.Polygon#setCoordinates" class="">
<a href="ol.geom.Polygon.html#setCoordinates">setCoordinates</a>
</li>
<li data-name="ol.geom.Polygon#transform" class="">
<a href="ol.geom.Polygon.html#transform">transform</a>
</li>
<li data-name="ol.geom.Polygon#translate" class="unstable">
<a href="ol.geom.Polygon.html#translate">translate</a>
</li>
<li data-name="ol.geom.Polygon#un" class="">
<a href="ol.geom.Polygon.html#un">un</a>
</li>
<li data-name="ol.geom.Polygon#unByKey" class="">
<a href="ol.geom.Polygon.html#unByKey">unByKey</a>
</li>
</ul>
<ul class="fires itemMembers">
<span class="subtitle">Fires</span>
<li data-name="event:change Triggered when the geometry changes." class="unstable">
change Triggered when the geometry changes.
</li>
</ul>
</li>
<li class="item" data-name="ol.geom.SimpleGeometry">
<span class="title">
<a href="ol.geom.SimpleGeometry.html">ol.geom.SimpleGeometry</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.geom.SimpleGeometry#applyTransform" class="">
<a href="ol.geom.SimpleGeometry.html#applyTransform">applyTransform</a>
</li>
<li data-name="ol.geom.SimpleGeometry#changed" class="unstable">
<a href="ol.geom.SimpleGeometry.html#changed">changed</a>
</li>
<li data-name="ol.geom.SimpleGeometry#clone" class="">
<a href="ol.geom.SimpleGeometry.html#clone">clone</a>
</li>
<li data-name="ol.geom.SimpleGeometry#getClosestPoint" class="">
<a href="ol.geom.SimpleGeometry.html#getClosestPoint">getClosestPoint</a>
</li>
<li data-name="ol.geom.SimpleGeometry#getExtent" class="">
<a href="ol.geom.SimpleGeometry.html#getExtent">getExtent</a>
</li>
<li data-name="ol.geom.SimpleGeometry#getFirstCoordinate" class="">
<a href="ol.geom.SimpleGeometry.html#getFirstCoordinate">getFirstCoordinate</a>
</li>
<li data-name="ol.geom.SimpleGeometry#getLastCoordinate" class="">
<a href="ol.geom.SimpleGeometry.html#getLastCoordinate">getLastCoordinate</a>
</li>
<li data-name="ol.geom.SimpleGeometry#getLayout" class="">
<a href="ol.geom.SimpleGeometry.html#getLayout">getLayout</a>
</li>
<li data-name="ol.geom.SimpleGeometry#getRevision" class="unstable">
<a href="ol.geom.SimpleGeometry.html#getRevision">getRevision</a>
</li>
<li data-name="ol.geom.SimpleGeometry#getType" class="">
<a href="ol.geom.SimpleGeometry.html#getType">getType</a>
</li>
<li data-name="ol.geom.SimpleGeometry#intersectsExtent" class="unstable">
<a href="ol.geom.SimpleGeometry.html#intersectsExtent">intersectsExtent</a>
</li>
<li data-name="ol.geom.SimpleGeometry#on" class="">
<a href="ol.geom.SimpleGeometry.html#on">on</a>
</li>
<li data-name="ol.geom.SimpleGeometry#once" class="">
<a href="ol.geom.SimpleGeometry.html#once">once</a>
</li>
<li data-name="ol.geom.SimpleGeometry#transform" class="">
<a href="ol.geom.SimpleGeometry.html#transform">transform</a>
</li>
<li data-name="ol.geom.SimpleGeometry#translate" class="unstable">
<a href="ol.geom.SimpleGeometry.html#translate">translate</a>
</li>
<li data-name="ol.geom.SimpleGeometry#un" class="">
<a href="ol.geom.SimpleGeometry.html#un">un</a>
</li>
<li data-name="ol.geom.SimpleGeometry#unByKey" class="">
<a href="ol.geom.SimpleGeometry.html#unByKey">unByKey</a>
</li>
</ul>
<ul class="fires itemMembers">
<span class="subtitle">Fires</span>
<li data-name="event:change Triggered when the geometry changes." class="unstable">
change Triggered when the geometry changes.
</li>
</ul>
</li>
<li class="item" data-name="ol.has">
<span class="title">
<a href="ol.has.html">ol.has</a>
</span>
<ul class="members itemMembers">
<span class="subtitle">Members</span>
<li data-name="ol.has.CANVAS"><a href="ol.has.html#CANVAS">CANVAS</a></li>
<li data-name="ol.has.DEVICE_ORIENTATION"><a href="ol.has.html#DEVICE_ORIENTATION">DEVICE_ORIENTATION</a></li>
<li data-name="ol.has.DEVICE_PIXEL_RATIO"><a href="ol.has.html#DEVICE_PIXEL_RATIO">DEVICE_PIXEL_RATIO</a></li>
<li data-name="ol.has.GEOLOCATION"><a href="ol.has.html#GEOLOCATION">GEOLOCATION</a></li>
<li data-name="ol.has.TOUCH"><a href="ol.has.html#TOUCH">TOUCH</a></li>
<li data-name="ol.has.WEBGL"><a href="ol.has.html#WEBGL">WEBGL</a></li>
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
</ul>
<ul class="fires itemMembers">
</ul>
</li>
<li class="item" data-name="ol.interaction">
<span class="title">
<a href="ol.interaction.html">ol.interaction</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.interaction.defaults" class="">
<a href="ol.interaction.html#defaults">defaults</a>
</li>
</ul>
<ul class="fires itemMembers">
</ul>
</li>
<li class="item" data-name="ol.interaction.DoubleClickZoom">
<span class="title">
<a href="ol.interaction.DoubleClickZoom.html">ol.interaction.DoubleClickZoom</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.interaction.DoubleClickZoom.handleEvent" class="unstable">
<a href="ol.interaction.DoubleClickZoom.html#handleEvent">handleEvent</a>
</li>
<li data-name="ol.interaction.DoubleClickZoom#bindTo" class="unstable">
<a href="ol.interaction.DoubleClickZoom.html#bindTo">bindTo</a>
</li>
<li data-name="ol.interaction.DoubleClickZoom#changed" class="unstable">
<a href="ol.interaction.DoubleClickZoom.html#changed">changed</a>
</li>
<li data-name="ol.interaction.DoubleClickZoom#get" class="unstable">
<a href="ol.interaction.DoubleClickZoom.html#get">get</a>
</li>
<li data-name="ol.interaction.DoubleClickZoom#getActive" class="unstable">
<a href="ol.interaction.DoubleClickZoom.html#getActive">getActive</a>
</li>
<li data-name="ol.interaction.DoubleClickZoom#getKeys" class="unstable">
<a href="ol.interaction.DoubleClickZoom.html#getKeys">getKeys</a>
</li>
<li data-name="ol.interaction.DoubleClickZoom#getProperties" class="unstable">
<a href="ol.interaction.DoubleClickZoom.html#getProperties">getProperties</a>
</li>
<li data-name="ol.interaction.DoubleClickZoom#getRevision" class="unstable">
<a href="ol.interaction.DoubleClickZoom.html#getRevision">getRevision</a>
</li>
<li data-name="ol.interaction.DoubleClickZoom#on" class="">
<a href="ol.interaction.DoubleClickZoom.html#on">on</a>
</li>
<li data-name="ol.interaction.DoubleClickZoom#once" class="">
<a href="ol.interaction.DoubleClickZoom.html#once">once</a>
</li>
<li data-name="ol.interaction.DoubleClickZoom#set" class="unstable">
<a href="ol.interaction.DoubleClickZoom.html#set">set</a>
</li>
<li data-name="ol.interaction.DoubleClickZoom#setActive" class="unstable">
<a href="ol.interaction.DoubleClickZoom.html#setActive">setActive</a>
</li>
<li data-name="ol.interaction.DoubleClickZoom#setProperties" class="unstable">
<a href="ol.interaction.DoubleClickZoom.html#setProperties">setProperties</a>
</li>
<li data-name="ol.interaction.DoubleClickZoom#un" class="">
<a href="ol.interaction.DoubleClickZoom.html#un">un</a>
</li>
<li data-name="ol.interaction.DoubleClickZoom#unbind" class="unstable">
<a href="ol.interaction.DoubleClickZoom.html#unbind">unbind</a>
</li>
<li data-name="ol.interaction.DoubleClickZoom#unbindAll" class="unstable">
<a href="ol.interaction.DoubleClickZoom.html#unbindAll">unbindAll</a>
</li>
<li data-name="ol.interaction.DoubleClickZoom#unByKey" class="">
<a href="ol.interaction.DoubleClickZoom.html#unByKey">unByKey</a>
</li>
</ul>
<ul class="fires itemMembers">
<span class="subtitle">Fires</span>
<li data-name="ol.ObjectEvent#event:change:active" class="unstable">
change:active
</li>
<li data-name="ol.ObjectEvent#event:propertychange" class="unstable">
<a href="ol.ObjectEvent.html#event:propertychange">propertychange</a>
</li>
</ul>
</li>
<li class="item" data-name="ol.interaction.DragAndDrop">
<span class="title">
<a href="ol.interaction.DragAndDrop.html">ol.interaction.DragAndDrop</a>
</span>
<ul class="members itemMembers">
<span class="subtitle">Members</span>
<li data-name="ol.interaction.DragAndDrop.handleEvent"><a href="ol.interaction.DragAndDrop.html#handleEvent">handleEvent</a></li>
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.interaction.DragAndDrop#bindTo" class="unstable">
<a href="ol.interaction.DragAndDrop.html#bindTo">bindTo</a>
</li>
<li data-name="ol.interaction.DragAndDrop#changed" class="unstable">
<a href="ol.interaction.DragAndDrop.html#changed">changed</a>
</li>
<li data-name="ol.interaction.DragAndDrop#get" class="unstable">
<a href="ol.interaction.DragAndDrop.html#get">get</a>
</li>
<li data-name="ol.interaction.DragAndDrop#getActive" class="unstable">
<a href="ol.interaction.DragAndDrop.html#getActive">getActive</a>
</li>
<li data-name="ol.interaction.DragAndDrop#getKeys" class="unstable">
<a href="ol.interaction.DragAndDrop.html#getKeys">getKeys</a>
</li>
<li data-name="ol.interaction.DragAndDrop#getProperties" class="unstable">
<a href="ol.interaction.DragAndDrop.html#getProperties">getProperties</a>
</li>
<li data-name="ol.interaction.DragAndDrop#getRevision" class="unstable">
<a href="ol.interaction.DragAndDrop.html#getRevision">getRevision</a>
</li>
<li data-name="ol.interaction.DragAndDrop#on" class="">
<a href="ol.interaction.DragAndDrop.html#on">on</a>
</li>
<li data-name="ol.interaction.DragAndDrop#once" class="">
<a href="ol.interaction.DragAndDrop.html#once">once</a>
</li>
<li data-name="ol.interaction.DragAndDrop#set" class="unstable">
<a href="ol.interaction.DragAndDrop.html#set">set</a>
</li>
<li data-name="ol.interaction.DragAndDrop#setActive" class="unstable">
<a href="ol.interaction.DragAndDrop.html#setActive">setActive</a>
</li>
<li data-name="ol.interaction.DragAndDrop#setProperties" class="unstable">
<a href="ol.interaction.DragAndDrop.html#setProperties">setProperties</a>
</li>
<li data-name="ol.interaction.DragAndDrop#un" class="">
<a href="ol.interaction.DragAndDrop.html#un">un</a>
</li>
<li data-name="ol.interaction.DragAndDrop#unbind" class="unstable">
<a href="ol.interaction.DragAndDrop.html#unbind">unbind</a>
</li>
<li data-name="ol.interaction.DragAndDrop#unbindAll" class="unstable">
<a href="ol.interaction.DragAndDrop.html#unbindAll">unbindAll</a>
</li>
<li data-name="ol.interaction.DragAndDrop#unByKey" class="">
<a href="ol.interaction.DragAndDrop.html#unByKey">unByKey</a>
</li>
</ul>
<ul class="fires itemMembers">
<span class="subtitle">Fires</span>
<li data-name="ol.interaction.DragAndDropEvent#event:addfeatures" class="">
<a href="ol.interaction.DragAndDropEvent.html#event:addfeatures">addfeatures</a>
</li>
<li data-name="ol.ObjectEvent#event:change:active" class="unstable">
change:active
</li>
<li data-name="ol.ObjectEvent#event:propertychange" class="unstable">
<a href="ol.ObjectEvent.html#event:propertychange">propertychange</a>
</li>
</ul>
</li>
<li class="item" data-name="ol.interaction.DragAndDropEvent">
<span class="title">
<a href="ol.interaction.DragAndDropEvent.html">ol.interaction.DragAndDropEvent</a>
</span>
<ul class="members itemMembers">
<span class="subtitle">Members</span>
<li data-name="ol.interaction.DragAndDropEvent#features"><a href="ol.interaction.DragAndDropEvent.html#features">features</a></li>
<li data-name="ol.interaction.DragAndDropEvent#file"><a href="ol.interaction.DragAndDropEvent.html#file">file</a></li>
<li data-name="ol.interaction.DragAndDropEvent#projection"><a href="ol.interaction.DragAndDropEvent.html#projection">projection</a></li>
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
</ul>
<ul class="fires itemMembers">
</ul>
</li>
<li class="item" data-name="ol.interaction.DragBox">
<span class="title">
<a href="ol.interaction.DragBox.html">ol.interaction.DragBox</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.interaction.DragBox#bindTo" class="unstable">
<a href="ol.interaction.DragBox.html#bindTo">bindTo</a>
</li>
<li data-name="ol.interaction.DragBox#changed" class="unstable">
<a href="ol.interaction.DragBox.html#changed">changed</a>
</li>
<li data-name="ol.interaction.DragBox#get" class="unstable">
<a href="ol.interaction.DragBox.html#get">get</a>
</li>
<li data-name="ol.interaction.DragBox#getActive" class="unstable">
<a href="ol.interaction.DragBox.html#getActive">getActive</a>
</li>
<li data-name="ol.interaction.DragBox#getGeometry" class="">
<a href="ol.interaction.DragBox.html#getGeometry">getGeometry</a>
</li>
<li data-name="ol.interaction.DragBox#getKeys" class="unstable">
<a href="ol.interaction.DragBox.html#getKeys">getKeys</a>
</li>
<li data-name="ol.interaction.DragBox#getProperties" class="unstable">
<a href="ol.interaction.DragBox.html#getProperties">getProperties</a>
</li>
<li data-name="ol.interaction.DragBox#getRevision" class="unstable">
<a href="ol.interaction.DragBox.html#getRevision">getRevision</a>
</li>
<li data-name="ol.interaction.DragBox#on" class="">
<a href="ol.interaction.DragBox.html#on">on</a>
</li>
<li data-name="ol.interaction.DragBox#once" class="">
<a href="ol.interaction.DragBox.html#once">once</a>
</li>
<li data-name="ol.interaction.DragBox#set" class="unstable">
<a href="ol.interaction.DragBox.html#set">set</a>
</li>
<li data-name="ol.interaction.DragBox#setActive" class="unstable">
<a href="ol.interaction.DragBox.html#setActive">setActive</a>
</li>
<li data-name="ol.interaction.DragBox#setProperties" class="unstable">
<a href="ol.interaction.DragBox.html#setProperties">setProperties</a>
</li>
<li data-name="ol.interaction.DragBox#un" class="">
<a href="ol.interaction.DragBox.html#un">un</a>
</li>
<li data-name="ol.interaction.DragBox#unbind" class="unstable">
<a href="ol.interaction.DragBox.html#unbind">unbind</a>
</li>
<li data-name="ol.interaction.DragBox#unbindAll" class="unstable">
<a href="ol.interaction.DragBox.html#unbindAll">unbindAll</a>
</li>
<li data-name="ol.interaction.DragBox#unByKey" class="">
<a href="ol.interaction.DragBox.html#unByKey">unByKey</a>
</li>
</ul>
<ul class="fires itemMembers">
<span class="subtitle">Fires</span>
<li data-name="ol.DragBoxEvent#event:boxend" class="">
<a href="ol.DragBoxEvent.html#event:boxend">boxend</a>
</li>
<li data-name="ol.DragBoxEvent#event:boxstart" class="">
<a href="ol.DragBoxEvent.html#event:boxstart">boxstart</a>
</li>
<li data-name="ol.ObjectEvent#event:change:active" class="unstable">
change:active
</li>
<li data-name="ol.ObjectEvent#event:propertychange" class="unstable">
<a href="ol.ObjectEvent.html#event:propertychange">propertychange</a>
</li>
</ul>
</li>
<li class="item" data-name="ol.interaction.DragPan">
<span class="title">
<a href="ol.interaction.DragPan.html">ol.interaction.DragPan</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.interaction.DragPan#bindTo" class="unstable">
<a href="ol.interaction.DragPan.html#bindTo">bindTo</a>
</li>
<li data-name="ol.interaction.DragPan#changed" class="unstable">
<a href="ol.interaction.DragPan.html#changed">changed</a>
</li>
<li data-name="ol.interaction.DragPan#get" class="unstable">
<a href="ol.interaction.DragPan.html#get">get</a>
</li>
<li data-name="ol.interaction.DragPan#getActive" class="unstable">
<a href="ol.interaction.DragPan.html#getActive">getActive</a>
</li>
<li data-name="ol.interaction.DragPan#getKeys" class="unstable">
<a href="ol.interaction.DragPan.html#getKeys">getKeys</a>
</li>
<li data-name="ol.interaction.DragPan#getProperties" class="unstable">
<a href="ol.interaction.DragPan.html#getProperties">getProperties</a>
</li>
<li data-name="ol.interaction.DragPan#getRevision" class="unstable">
<a href="ol.interaction.DragPan.html#getRevision">getRevision</a>
</li>
<li data-name="ol.interaction.DragPan#on" class="">
<a href="ol.interaction.DragPan.html#on">on</a>
</li>
<li data-name="ol.interaction.DragPan#once" class="">
<a href="ol.interaction.DragPan.html#once">once</a>
</li>
<li data-name="ol.interaction.DragPan#set" class="unstable">
<a href="ol.interaction.DragPan.html#set">set</a>
</li>
<li data-name="ol.interaction.DragPan#setActive" class="unstable">
<a href="ol.interaction.DragPan.html#setActive">setActive</a>
</li>
<li data-name="ol.interaction.DragPan#setProperties" class="unstable">
<a href="ol.interaction.DragPan.html#setProperties">setProperties</a>
</li>
<li data-name="ol.interaction.DragPan#un" class="">
<a href="ol.interaction.DragPan.html#un">un</a>
</li>
<li data-name="ol.interaction.DragPan#unbind" class="unstable">
<a href="ol.interaction.DragPan.html#unbind">unbind</a>
</li>
<li data-name="ol.interaction.DragPan#unbindAll" class="unstable">
<a href="ol.interaction.DragPan.html#unbindAll">unbindAll</a>
</li>
<li data-name="ol.interaction.DragPan#unByKey" class="">
<a href="ol.interaction.DragPan.html#unByKey">unByKey</a>
</li>
</ul>
<ul class="fires itemMembers">
<span class="subtitle">Fires</span>
<li data-name="ol.ObjectEvent#event:change:active" class="unstable">
change:active
</li>
<li data-name="ol.ObjectEvent#event:propertychange" class="unstable">
<a href="ol.ObjectEvent.html#event:propertychange">propertychange</a>
</li>
</ul>
</li>
<li class="item" data-name="ol.interaction.DragRotate">
<span class="title">
<a href="ol.interaction.DragRotate.html">ol.interaction.DragRotate</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.interaction.DragRotate#bindTo" class="unstable">
<a href="ol.interaction.DragRotate.html#bindTo">bindTo</a>
</li>
<li data-name="ol.interaction.DragRotate#changed" class="unstable">
<a href="ol.interaction.DragRotate.html#changed">changed</a>
</li>
<li data-name="ol.interaction.DragRotate#get" class="unstable">
<a href="ol.interaction.DragRotate.html#get">get</a>
</li>
<li data-name="ol.interaction.DragRotate#getActive" class="unstable">
<a href="ol.interaction.DragRotate.html#getActive">getActive</a>
</li>
<li data-name="ol.interaction.DragRotate#getKeys" class="unstable">
<a href="ol.interaction.DragRotate.html#getKeys">getKeys</a>
</li>
<li data-name="ol.interaction.DragRotate#getProperties" class="unstable">
<a href="ol.interaction.DragRotate.html#getProperties">getProperties</a>
</li>
<li data-name="ol.interaction.DragRotate#getRevision" class="unstable">
<a href="ol.interaction.DragRotate.html#getRevision">getRevision</a>
</li>
<li data-name="ol.interaction.DragRotate#on" class="">
<a href="ol.interaction.DragRotate.html#on">on</a>
</li>
<li data-name="ol.interaction.DragRotate#once" class="">
<a href="ol.interaction.DragRotate.html#once">once</a>
</li>
<li data-name="ol.interaction.DragRotate#set" class="unstable">
<a href="ol.interaction.DragRotate.html#set">set</a>
</li>
<li data-name="ol.interaction.DragRotate#setActive" class="unstable">
<a href="ol.interaction.DragRotate.html#setActive">setActive</a>
</li>
<li data-name="ol.interaction.DragRotate#setProperties" class="unstable">
<a href="ol.interaction.DragRotate.html#setProperties">setProperties</a>
</li>
<li data-name="ol.interaction.DragRotate#un" class="">
<a href="ol.interaction.DragRotate.html#un">un</a>
</li>
<li data-name="ol.interaction.DragRotate#unbind" class="unstable">
<a href="ol.interaction.DragRotate.html#unbind">unbind</a>
</li>
<li data-name="ol.interaction.DragRotate#unbindAll" class="unstable">
<a href="ol.interaction.DragRotate.html#unbindAll">unbindAll</a>
</li>
<li data-name="ol.interaction.DragRotate#unByKey" class="">
<a href="ol.interaction.DragRotate.html#unByKey">unByKey</a>
</li>
</ul>
<ul class="fires itemMembers">
<span class="subtitle">Fires</span>
<li data-name="ol.ObjectEvent#event:change:active" class="unstable">
change:active
</li>
<li data-name="ol.ObjectEvent#event:propertychange" class="unstable">
<a href="ol.ObjectEvent.html#event:propertychange">propertychange</a>
</li>
</ul>
</li>
<li class="item" data-name="ol.interaction.DragRotateAndZoom">
<span class="title">
<a href="ol.interaction.DragRotateAndZoom.html">ol.interaction.DragRotateAndZoom</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.interaction.DragRotateAndZoom#bindTo" class="unstable">
<a href="ol.interaction.DragRotateAndZoom.html#bindTo">bindTo</a>
</li>
<li data-name="ol.interaction.DragRotateAndZoom#changed" class="unstable">
<a href="ol.interaction.DragRotateAndZoom.html#changed">changed</a>
</li>
<li data-name="ol.interaction.DragRotateAndZoom#get" class="unstable">
<a href="ol.interaction.DragRotateAndZoom.html#get">get</a>
</li>
<li data-name="ol.interaction.DragRotateAndZoom#getActive" class="unstable">
<a href="ol.interaction.DragRotateAndZoom.html#getActive">getActive</a>
</li>
<li data-name="ol.interaction.DragRotateAndZoom#getKeys" class="unstable">
<a href="ol.interaction.DragRotateAndZoom.html#getKeys">getKeys</a>
</li>
<li data-name="ol.interaction.DragRotateAndZoom#getProperties" class="unstable">
<a href="ol.interaction.DragRotateAndZoom.html#getProperties">getProperties</a>
</li>
<li data-name="ol.interaction.DragRotateAndZoom#getRevision" class="unstable">
<a href="ol.interaction.DragRotateAndZoom.html#getRevision">getRevision</a>
</li>
<li data-name="ol.interaction.DragRotateAndZoom#on" class="">
<a href="ol.interaction.DragRotateAndZoom.html#on">on</a>
</li>
<li data-name="ol.interaction.DragRotateAndZoom#once" class="">
<a href="ol.interaction.DragRotateAndZoom.html#once">once</a>
</li>
<li data-name="ol.interaction.DragRotateAndZoom#set" class="unstable">
<a href="ol.interaction.DragRotateAndZoom.html#set">set</a>
</li>
<li data-name="ol.interaction.DragRotateAndZoom#setActive" class="unstable">
<a href="ol.interaction.DragRotateAndZoom.html#setActive">setActive</a>
</li>
<li data-name="ol.interaction.DragRotateAndZoom#setProperties" class="unstable">
<a href="ol.interaction.DragRotateAndZoom.html#setProperties">setProperties</a>
</li>
<li data-name="ol.interaction.DragRotateAndZoom#un" class="">
<a href="ol.interaction.DragRotateAndZoom.html#un">un</a>
</li>
<li data-name="ol.interaction.DragRotateAndZoom#unbind" class="unstable">
<a href="ol.interaction.DragRotateAndZoom.html#unbind">unbind</a>
</li>
<li data-name="ol.interaction.DragRotateAndZoom#unbindAll" class="unstable">
<a href="ol.interaction.DragRotateAndZoom.html#unbindAll">unbindAll</a>
</li>
<li data-name="ol.interaction.DragRotateAndZoom#unByKey" class="">
<a href="ol.interaction.DragRotateAndZoom.html#unByKey">unByKey</a>
</li>
</ul>
<ul class="fires itemMembers">
<span class="subtitle">Fires</span>
<li data-name="ol.ObjectEvent#event:change:active" class="unstable">
change:active
</li>
<li data-name="ol.ObjectEvent#event:propertychange" class="unstable">
<a href="ol.ObjectEvent.html#event:propertychange">propertychange</a>
</li>
</ul>
</li>
<li class="item" data-name="ol.interaction.DragZoom">
<span class="title">
<a href="ol.interaction.DragZoom.html">ol.interaction.DragZoom</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.interaction.DragZoom#bindTo" class="unstable">
<a href="ol.interaction.DragZoom.html#bindTo">bindTo</a>
</li>
<li data-name="ol.interaction.DragZoom#changed" class="unstable">
<a href="ol.interaction.DragZoom.html#changed">changed</a>
</li>
<li data-name="ol.interaction.DragZoom#get" class="unstable">
<a href="ol.interaction.DragZoom.html#get">get</a>
</li>
<li data-name="ol.interaction.DragZoom#getActive" class="unstable">
<a href="ol.interaction.DragZoom.html#getActive">getActive</a>
</li>
<li data-name="ol.interaction.DragZoom#getGeometry" class="">
<a href="ol.interaction.DragZoom.html#getGeometry">getGeometry</a>
</li>
<li data-name="ol.interaction.DragZoom#getKeys" class="unstable">
<a href="ol.interaction.DragZoom.html#getKeys">getKeys</a>
</li>
<li data-name="ol.interaction.DragZoom#getProperties" class="unstable">
<a href="ol.interaction.DragZoom.html#getProperties">getProperties</a>
</li>
<li data-name="ol.interaction.DragZoom#getRevision" class="unstable">
<a href="ol.interaction.DragZoom.html#getRevision">getRevision</a>
</li>
<li data-name="ol.interaction.DragZoom#on" class="">
<a href="ol.interaction.DragZoom.html#on">on</a>
</li>
<li data-name="ol.interaction.DragZoom#once" class="">
<a href="ol.interaction.DragZoom.html#once">once</a>
</li>
<li data-name="ol.interaction.DragZoom#set" class="unstable">
<a href="ol.interaction.DragZoom.html#set">set</a>
</li>
<li data-name="ol.interaction.DragZoom#setActive" class="unstable">
<a href="ol.interaction.DragZoom.html#setActive">setActive</a>
</li>
<li data-name="ol.interaction.DragZoom#setProperties" class="unstable">
<a href="ol.interaction.DragZoom.html#setProperties">setProperties</a>
</li>
<li data-name="ol.interaction.DragZoom#un" class="">
<a href="ol.interaction.DragZoom.html#un">un</a>
</li>
<li data-name="ol.interaction.DragZoom#unbind" class="unstable">
<a href="ol.interaction.DragZoom.html#unbind">unbind</a>
</li>
<li data-name="ol.interaction.DragZoom#unbindAll" class="unstable">
<a href="ol.interaction.DragZoom.html#unbindAll">unbindAll</a>
</li>
<li data-name="ol.interaction.DragZoom#unByKey" class="">
<a href="ol.interaction.DragZoom.html#unByKey">unByKey</a>
</li>
</ul>
<ul class="fires itemMembers">
<span class="subtitle">Fires</span>
<li data-name="ol.DragBoxEvent#event:boxend" class="">
<a href="ol.DragBoxEvent.html#event:boxend">boxend</a>
</li>
<li data-name="ol.DragBoxEvent#event:boxstart" class="">
<a href="ol.DragBoxEvent.html#event:boxstart">boxstart</a>
</li>
<li data-name="ol.ObjectEvent#event:change:active" class="unstable">
change:active
</li>
<li data-name="ol.ObjectEvent#event:propertychange" class="unstable">
<a href="ol.ObjectEvent.html#event:propertychange">propertychange</a>
</li>
</ul>
</li>
<li class="item" data-name="ol.interaction.Draw">
<span class="title">
<a href="ol.interaction.Draw.html">ol.interaction.Draw</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.interaction.Draw.handleEvent" class="unstable">
<a href="ol.interaction.Draw.html#handleEvent">handleEvent</a>
</li>
<li data-name="ol.interaction.Draw#bindTo" class="unstable">
<a href="ol.interaction.Draw.html#bindTo">bindTo</a>
</li>
<li data-name="ol.interaction.Draw#changed" class="unstable">
<a href="ol.interaction.Draw.html#changed">changed</a>
</li>
<li data-name="ol.interaction.Draw#finishDrawing" class="unstable">
<a href="ol.interaction.Draw.html#finishDrawing">finishDrawing</a>
</li>
<li data-name="ol.interaction.Draw#get" class="unstable">
<a href="ol.interaction.Draw.html#get">get</a>
</li>
<li data-name="ol.interaction.Draw#getActive" class="unstable">
<a href="ol.interaction.Draw.html#getActive">getActive</a>
</li>
<li data-name="ol.interaction.Draw#getKeys" class="unstable">
<a href="ol.interaction.Draw.html#getKeys">getKeys</a>
</li>
<li data-name="ol.interaction.Draw#getProperties" class="unstable">
<a href="ol.interaction.Draw.html#getProperties">getProperties</a>
</li>
<li data-name="ol.interaction.Draw#getRevision" class="unstable">
<a href="ol.interaction.Draw.html#getRevision">getRevision</a>
</li>
<li data-name="ol.interaction.Draw#on" class="">
<a href="ol.interaction.Draw.html#on">on</a>
</li>
<li data-name="ol.interaction.Draw#once" class="">
<a href="ol.interaction.Draw.html#once">once</a>
</li>
<li data-name="ol.interaction.Draw#set" class="unstable">
<a href="ol.interaction.Draw.html#set">set</a>
</li>
<li data-name="ol.interaction.Draw#setActive" class="unstable">
<a href="ol.interaction.Draw.html#setActive">setActive</a>
</li>
<li data-name="ol.interaction.Draw#setProperties" class="unstable">
<a href="ol.interaction.Draw.html#setProperties">setProperties</a>
</li>
<li data-name="ol.interaction.Draw#un" class="">
<a href="ol.interaction.Draw.html#un">un</a>
</li>
<li data-name="ol.interaction.Draw#unbind" class="unstable">
<a href="ol.interaction.Draw.html#unbind">unbind</a>
</li>
<li data-name="ol.interaction.Draw#unbindAll" class="unstable">
<a href="ol.interaction.Draw.html#unbindAll">unbindAll</a>
</li>
<li data-name="ol.interaction.Draw#unByKey" class="">
<a href="ol.interaction.Draw.html#unByKey">unByKey</a>
</li>
</ul>
<ul class="fires itemMembers">
<span class="subtitle">Fires</span>
<li data-name="ol.ObjectEvent#event:change:active" class="unstable">
change:active
</li>
<li data-name="ol.DrawEvent#event:drawend" class="">
<a href="ol.DrawEvent.html#event:drawend">drawend</a>
</li>
<li data-name="ol.DrawEvent#event:drawstart" class="">
<a href="ol.DrawEvent.html#event:drawstart">drawstart</a>
</li>
<li data-name="ol.ObjectEvent#event:propertychange" class="unstable">
<a href="ol.ObjectEvent.html#event:propertychange">propertychange</a>
</li>
</ul>
</li>
<li class="item" data-name="ol.interaction.Interaction">
<span class="title">
<a href="ol.interaction.Interaction.html">ol.interaction.Interaction</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.interaction.Interaction#bindTo" class="unstable">
<a href="ol.interaction.Interaction.html#bindTo">bindTo</a>
</li>
<li data-name="ol.interaction.Interaction#changed" class="unstable">
<a href="ol.interaction.Interaction.html#changed">changed</a>
</li>
<li data-name="ol.interaction.Interaction#get" class="unstable">
<a href="ol.interaction.Interaction.html#get">get</a>
</li>
<li data-name="ol.interaction.Interaction#getActive" class="unstable">
<a href="ol.interaction.Interaction.html#getActive">getActive</a>
</li>
<li data-name="ol.interaction.Interaction#getKeys" class="unstable">
<a href="ol.interaction.Interaction.html#getKeys">getKeys</a>
</li>
<li data-name="ol.interaction.Interaction#getProperties" class="unstable">
<a href="ol.interaction.Interaction.html#getProperties">getProperties</a>
</li>
<li data-name="ol.interaction.Interaction#getRevision" class="unstable">
<a href="ol.interaction.Interaction.html#getRevision">getRevision</a>
</li>
<li data-name="ol.interaction.Interaction#on" class="">
<a href="ol.interaction.Interaction.html#on">on</a>
</li>
<li data-name="ol.interaction.Interaction#once" class="">
<a href="ol.interaction.Interaction.html#once">once</a>
</li>
<li data-name="ol.interaction.Interaction#set" class="unstable">
<a href="ol.interaction.Interaction.html#set">set</a>
</li>
<li data-name="ol.interaction.Interaction#setActive" class="unstable">
<a href="ol.interaction.Interaction.html#setActive">setActive</a>
</li>
<li data-name="ol.interaction.Interaction#setProperties" class="unstable">
<a href="ol.interaction.Interaction.html#setProperties">setProperties</a>
</li>
<li data-name="ol.interaction.Interaction#un" class="">
<a href="ol.interaction.Interaction.html#un">un</a>
</li>
<li data-name="ol.interaction.Interaction#unbind" class="unstable">
<a href="ol.interaction.Interaction.html#unbind">unbind</a>
</li>
<li data-name="ol.interaction.Interaction#unbindAll" class="unstable">
<a href="ol.interaction.Interaction.html#unbindAll">unbindAll</a>
</li>
<li data-name="ol.interaction.Interaction#unByKey" class="">
<a href="ol.interaction.Interaction.html#unByKey">unByKey</a>
</li>
</ul>
<ul class="fires itemMembers">
<span class="subtitle">Fires</span>
<li data-name="ol.ObjectEvent#event:change:active" class="unstable">
change:active
</li>
<li data-name="ol.ObjectEvent#event:propertychange" class="unstable">
<a href="ol.ObjectEvent.html#event:propertychange">propertychange</a>
</li>
</ul>
</li>
<li class="item" data-name="ol.interaction.KeyboardPan">
<span class="title">
<a href="ol.interaction.KeyboardPan.html">ol.interaction.KeyboardPan</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.interaction.KeyboardPan.handleEvent" class="unstable">
<a href="ol.interaction.KeyboardPan.html#handleEvent">handleEvent</a>
</li>
<li data-name="ol.interaction.KeyboardPan#bindTo" class="unstable">
<a href="ol.interaction.KeyboardPan.html#bindTo">bindTo</a>
</li>
<li data-name="ol.interaction.KeyboardPan#changed" class="unstable">
<a href="ol.interaction.KeyboardPan.html#changed">changed</a>
</li>
<li data-name="ol.interaction.KeyboardPan#get" class="unstable">
<a href="ol.interaction.KeyboardPan.html#get">get</a>
</li>
<li data-name="ol.interaction.KeyboardPan#getActive" class="unstable">
<a href="ol.interaction.KeyboardPan.html#getActive">getActive</a>
</li>
<li data-name="ol.interaction.KeyboardPan#getKeys" class="unstable">
<a href="ol.interaction.KeyboardPan.html#getKeys">getKeys</a>
</li>
<li data-name="ol.interaction.KeyboardPan#getProperties" class="unstable">
<a href="ol.interaction.KeyboardPan.html#getProperties">getProperties</a>
</li>
<li data-name="ol.interaction.KeyboardPan#getRevision" class="unstable">
<a href="ol.interaction.KeyboardPan.html#getRevision">getRevision</a>
</li>
<li data-name="ol.interaction.KeyboardPan#on" class="">
<a href="ol.interaction.KeyboardPan.html#on">on</a>
</li>
<li data-name="ol.interaction.KeyboardPan#once" class="">
<a href="ol.interaction.KeyboardPan.html#once">once</a>
</li>
<li data-name="ol.interaction.KeyboardPan#set" class="unstable">
<a href="ol.interaction.KeyboardPan.html#set">set</a>
</li>
<li data-name="ol.interaction.KeyboardPan#setActive" class="unstable">
<a href="ol.interaction.KeyboardPan.html#setActive">setActive</a>
</li>
<li data-name="ol.interaction.KeyboardPan#setProperties" class="unstable">
<a href="ol.interaction.KeyboardPan.html#setProperties">setProperties</a>
</li>
<li data-name="ol.interaction.KeyboardPan#un" class="">
<a href="ol.interaction.KeyboardPan.html#un">un</a>
</li>
<li data-name="ol.interaction.KeyboardPan#unbind" class="unstable">
<a href="ol.interaction.KeyboardPan.html#unbind">unbind</a>
</li>
<li data-name="ol.interaction.KeyboardPan#unbindAll" class="unstable">
<a href="ol.interaction.KeyboardPan.html#unbindAll">unbindAll</a>
</li>
<li data-name="ol.interaction.KeyboardPan#unByKey" class="">
<a href="ol.interaction.KeyboardPan.html#unByKey">unByKey</a>
</li>
</ul>
<ul class="fires itemMembers">
<span class="subtitle">Fires</span>
<li data-name="ol.ObjectEvent#event:change:active" class="unstable">
change:active
</li>
<li data-name="ol.ObjectEvent#event:propertychange" class="unstable">
<a href="ol.ObjectEvent.html#event:propertychange">propertychange</a>
</li>
</ul>
</li>
<li class="item" data-name="ol.interaction.KeyboardZoom">
<span class="title">
<a href="ol.interaction.KeyboardZoom.html">ol.interaction.KeyboardZoom</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.interaction.KeyboardZoom.handleEvent" class="unstable">
<a href="ol.interaction.KeyboardZoom.html#handleEvent">handleEvent</a>
</li>
<li data-name="ol.interaction.KeyboardZoom#bindTo" class="unstable">
<a href="ol.interaction.KeyboardZoom.html#bindTo">bindTo</a>
</li>
<li data-name="ol.interaction.KeyboardZoom#changed" class="unstable">
<a href="ol.interaction.KeyboardZoom.html#changed">changed</a>
</li>
<li data-name="ol.interaction.KeyboardZoom#get" class="unstable">
<a href="ol.interaction.KeyboardZoom.html#get">get</a>
</li>
<li data-name="ol.interaction.KeyboardZoom#getActive" class="unstable">
<a href="ol.interaction.KeyboardZoom.html#getActive">getActive</a>
</li>
<li data-name="ol.interaction.KeyboardZoom#getKeys" class="unstable">
<a href="ol.interaction.KeyboardZoom.html#getKeys">getKeys</a>
</li>
<li data-name="ol.interaction.KeyboardZoom#getProperties" class="unstable">
<a href="ol.interaction.KeyboardZoom.html#getProperties">getProperties</a>
</li>
<li data-name="ol.interaction.KeyboardZoom#getRevision" class="unstable">
<a href="ol.interaction.KeyboardZoom.html#getRevision">getRevision</a>
</li>
<li data-name="ol.interaction.KeyboardZoom#on" class="">
<a href="ol.interaction.KeyboardZoom.html#on">on</a>
</li>
<li data-name="ol.interaction.KeyboardZoom#once" class="">
<a href="ol.interaction.KeyboardZoom.html#once">once</a>
</li>
<li data-name="ol.interaction.KeyboardZoom#set" class="unstable">
<a href="ol.interaction.KeyboardZoom.html#set">set</a>
</li>
<li data-name="ol.interaction.KeyboardZoom#setActive" class="unstable">
<a href="ol.interaction.KeyboardZoom.html#setActive">setActive</a>
</li>
<li data-name="ol.interaction.KeyboardZoom#setProperties" class="unstable">
<a href="ol.interaction.KeyboardZoom.html#setProperties">setProperties</a>
</li>
<li data-name="ol.interaction.KeyboardZoom#un" class="">
<a href="ol.interaction.KeyboardZoom.html#un">un</a>
</li>
<li data-name="ol.interaction.KeyboardZoom#unbind" class="unstable">
<a href="ol.interaction.KeyboardZoom.html#unbind">unbind</a>
</li>
<li data-name="ol.interaction.KeyboardZoom#unbindAll" class="unstable">
<a href="ol.interaction.KeyboardZoom.html#unbindAll">unbindAll</a>
</li>
<li data-name="ol.interaction.KeyboardZoom#unByKey" class="">
<a href="ol.interaction.KeyboardZoom.html#unByKey">unByKey</a>
</li>
</ul>
<ul class="fires itemMembers">
<span class="subtitle">Fires</span>
<li data-name="ol.ObjectEvent#event:change:active" class="unstable">
change:active
</li>
<li data-name="ol.ObjectEvent#event:propertychange" class="unstable">
<a href="ol.ObjectEvent.html#event:propertychange">propertychange</a>
</li>
</ul>
</li>
<li class="item" data-name="ol.interaction.Modify">
<span class="title">
<a href="ol.interaction.Modify.html">ol.interaction.Modify</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.interaction.Modify.handleEvent" class="unstable">
<a href="ol.interaction.Modify.html#handleEvent">handleEvent</a>
</li>
<li data-name="ol.interaction.Modify#bindTo" class="unstable">
<a href="ol.interaction.Modify.html#bindTo">bindTo</a>
</li>
<li data-name="ol.interaction.Modify#changed" class="unstable">
<a href="ol.interaction.Modify.html#changed">changed</a>
</li>
<li data-name="ol.interaction.Modify#get" class="unstable">
<a href="ol.interaction.Modify.html#get">get</a>
</li>
<li data-name="ol.interaction.Modify#getActive" class="unstable">
<a href="ol.interaction.Modify.html#getActive">getActive</a>
</li>
<li data-name="ol.interaction.Modify#getKeys" class="unstable">
<a href="ol.interaction.Modify.html#getKeys">getKeys</a>
</li>
<li data-name="ol.interaction.Modify#getProperties" class="unstable">
<a href="ol.interaction.Modify.html#getProperties">getProperties</a>
</li>
<li data-name="ol.interaction.Modify#getRevision" class="unstable">
<a href="ol.interaction.Modify.html#getRevision">getRevision</a>
</li>
<li data-name="ol.interaction.Modify#on" class="">
<a href="ol.interaction.Modify.html#on">on</a>
</li>
<li data-name="ol.interaction.Modify#once" class="">
<a href="ol.interaction.Modify.html#once">once</a>
</li>
<li data-name="ol.interaction.Modify#set" class="unstable">
<a href="ol.interaction.Modify.html#set">set</a>
</li>
<li data-name="ol.interaction.Modify#setActive" class="unstable">
<a href="ol.interaction.Modify.html#setActive">setActive</a>
</li>
<li data-name="ol.interaction.Modify#setProperties" class="unstable">
<a href="ol.interaction.Modify.html#setProperties">setProperties</a>
</li>
<li data-name="ol.interaction.Modify#un" class="">
<a href="ol.interaction.Modify.html#un">un</a>
</li>
<li data-name="ol.interaction.Modify#unbind" class="unstable">
<a href="ol.interaction.Modify.html#unbind">unbind</a>
</li>
<li data-name="ol.interaction.Modify#unbindAll" class="unstable">
<a href="ol.interaction.Modify.html#unbindAll">unbindAll</a>
</li>
<li data-name="ol.interaction.Modify#unByKey" class="">
<a href="ol.interaction.Modify.html#unByKey">unByKey</a>
</li>
</ul>
<ul class="fires itemMembers">
<span class="subtitle">Fires</span>
<li data-name="ol.ObjectEvent#event:change:active" class="unstable">
change:active
</li>
<li data-name="ol.ObjectEvent#event:propertychange" class="unstable">
<a href="ol.ObjectEvent.html#event:propertychange">propertychange</a>
</li>
</ul>
</li>
<li class="item" data-name="ol.interaction.MouseWheelZoom">
<span class="title">
<a href="ol.interaction.MouseWheelZoom.html">ol.interaction.MouseWheelZoom</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.interaction.MouseWheelZoom.handleEvent" class="unstable">
<a href="ol.interaction.MouseWheelZoom.html#handleEvent">handleEvent</a>
</li>
<li data-name="ol.interaction.MouseWheelZoom#bindTo" class="unstable">
<a href="ol.interaction.MouseWheelZoom.html#bindTo">bindTo</a>
</li>
<li data-name="ol.interaction.MouseWheelZoom#changed" class="unstable">
<a href="ol.interaction.MouseWheelZoom.html#changed">changed</a>
</li>
<li data-name="ol.interaction.MouseWheelZoom#get" class="unstable">
<a href="ol.interaction.MouseWheelZoom.html#get">get</a>
</li>
<li data-name="ol.interaction.MouseWheelZoom#getActive" class="unstable">
<a href="ol.interaction.MouseWheelZoom.html#getActive">getActive</a>
</li>
<li data-name="ol.interaction.MouseWheelZoom#getKeys" class="unstable">
<a href="ol.interaction.MouseWheelZoom.html#getKeys">getKeys</a>
</li>
<li data-name="ol.interaction.MouseWheelZoom#getProperties" class="unstable">
<a href="ol.interaction.MouseWheelZoom.html#getProperties">getProperties</a>
</li>
<li data-name="ol.interaction.MouseWheelZoom#getRevision" class="unstable">
<a href="ol.interaction.MouseWheelZoom.html#getRevision">getRevision</a>
</li>
<li data-name="ol.interaction.MouseWheelZoom#on" class="">
<a href="ol.interaction.MouseWheelZoom.html#on">on</a>
</li>
<li data-name="ol.interaction.MouseWheelZoom#once" class="">
<a href="ol.interaction.MouseWheelZoom.html#once">once</a>
</li>
<li data-name="ol.interaction.MouseWheelZoom#set" class="unstable">
<a href="ol.interaction.MouseWheelZoom.html#set">set</a>
</li>
<li data-name="ol.interaction.MouseWheelZoom#setActive" class="unstable">
<a href="ol.interaction.MouseWheelZoom.html#setActive">setActive</a>
</li>
<li data-name="ol.interaction.MouseWheelZoom#setProperties" class="unstable">
<a href="ol.interaction.MouseWheelZoom.html#setProperties">setProperties</a>
</li>
<li data-name="ol.interaction.MouseWheelZoom#un" class="">
<a href="ol.interaction.MouseWheelZoom.html#un">un</a>
</li>
<li data-name="ol.interaction.MouseWheelZoom#unbind" class="unstable">
<a href="ol.interaction.MouseWheelZoom.html#unbind">unbind</a>
</li>
<li data-name="ol.interaction.MouseWheelZoom#unbindAll" class="unstable">
<a href="ol.interaction.MouseWheelZoom.html#unbindAll">unbindAll</a>
</li>
<li data-name="ol.interaction.MouseWheelZoom#unByKey" class="">
<a href="ol.interaction.MouseWheelZoom.html#unByKey">unByKey</a>
</li>
</ul>
<ul class="fires itemMembers">
<span class="subtitle">Fires</span>
<li data-name="ol.ObjectEvent#event:change:active" class="unstable">
change:active
</li>
<li data-name="ol.ObjectEvent#event:propertychange" class="unstable">
<a href="ol.ObjectEvent.html#event:propertychange">propertychange</a>
</li>
</ul>
</li>
<li class="item" data-name="ol.interaction.PinchRotate">
<span class="title">
<a href="ol.interaction.PinchRotate.html">ol.interaction.PinchRotate</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.interaction.PinchRotate#bindTo" class="unstable">
<a href="ol.interaction.PinchRotate.html#bindTo">bindTo</a>
</li>
<li data-name="ol.interaction.PinchRotate#changed" class="unstable">
<a href="ol.interaction.PinchRotate.html#changed">changed</a>
</li>
<li data-name="ol.interaction.PinchRotate#get" class="unstable">
<a href="ol.interaction.PinchRotate.html#get">get</a>
</li>
<li data-name="ol.interaction.PinchRotate#getActive" class="unstable">
<a href="ol.interaction.PinchRotate.html#getActive">getActive</a>
</li>
<li data-name="ol.interaction.PinchRotate#getKeys" class="unstable">
<a href="ol.interaction.PinchRotate.html#getKeys">getKeys</a>
</li>
<li data-name="ol.interaction.PinchRotate#getProperties" class="unstable">
<a href="ol.interaction.PinchRotate.html#getProperties">getProperties</a>
</li>
<li data-name="ol.interaction.PinchRotate#getRevision" class="unstable">
<a href="ol.interaction.PinchRotate.html#getRevision">getRevision</a>
</li>
<li data-name="ol.interaction.PinchRotate#on" class="">
<a href="ol.interaction.PinchRotate.html#on">on</a>
</li>
<li data-name="ol.interaction.PinchRotate#once" class="">
<a href="ol.interaction.PinchRotate.html#once">once</a>
</li>
<li data-name="ol.interaction.PinchRotate#set" class="unstable">
<a href="ol.interaction.PinchRotate.html#set">set</a>
</li>
<li data-name="ol.interaction.PinchRotate#setActive" class="unstable">
<a href="ol.interaction.PinchRotate.html#setActive">setActive</a>
</li>
<li data-name="ol.interaction.PinchRotate#setProperties" class="unstable">
<a href="ol.interaction.PinchRotate.html#setProperties">setProperties</a>
</li>
<li data-name="ol.interaction.PinchRotate#un" class="">
<a href="ol.interaction.PinchRotate.html#un">un</a>
</li>
<li data-name="ol.interaction.PinchRotate#unbind" class="unstable">
<a href="ol.interaction.PinchRotate.html#unbind">unbind</a>
</li>
<li data-name="ol.interaction.PinchRotate#unbindAll" class="unstable">
<a href="ol.interaction.PinchRotate.html#unbindAll">unbindAll</a>
</li>
<li data-name="ol.interaction.PinchRotate#unByKey" class="">
<a href="ol.interaction.PinchRotate.html#unByKey">unByKey</a>
</li>
</ul>
<ul class="fires itemMembers">
<span class="subtitle">Fires</span>
<li data-name="ol.ObjectEvent#event:change:active" class="unstable">
change:active
</li>
<li data-name="ol.ObjectEvent#event:propertychange" class="unstable">
<a href="ol.ObjectEvent.html#event:propertychange">propertychange</a>
</li>
</ul>
</li>
<li class="item" data-name="ol.interaction.PinchZoom">
<span class="title">
<a href="ol.interaction.PinchZoom.html">ol.interaction.PinchZoom</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.interaction.PinchZoom#bindTo" class="unstable">
<a href="ol.interaction.PinchZoom.html#bindTo">bindTo</a>
</li>
<li data-name="ol.interaction.PinchZoom#changed" class="unstable">
<a href="ol.interaction.PinchZoom.html#changed">changed</a>
</li>
<li data-name="ol.interaction.PinchZoom#get" class="unstable">
<a href="ol.interaction.PinchZoom.html#get">get</a>
</li>
<li data-name="ol.interaction.PinchZoom#getActive" class="unstable">
<a href="ol.interaction.PinchZoom.html#getActive">getActive</a>
</li>
<li data-name="ol.interaction.PinchZoom#getKeys" class="unstable">
<a href="ol.interaction.PinchZoom.html#getKeys">getKeys</a>
</li>
<li data-name="ol.interaction.PinchZoom#getProperties" class="unstable">
<a href="ol.interaction.PinchZoom.html#getProperties">getProperties</a>
</li>
<li data-name="ol.interaction.PinchZoom#getRevision" class="unstable">
<a href="ol.interaction.PinchZoom.html#getRevision">getRevision</a>
</li>
<li data-name="ol.interaction.PinchZoom#on" class="">
<a href="ol.interaction.PinchZoom.html#on">on</a>
</li>
<li data-name="ol.interaction.PinchZoom#once" class="">
<a href="ol.interaction.PinchZoom.html#once">once</a>
</li>
<li data-name="ol.interaction.PinchZoom#set" class="unstable">
<a href="ol.interaction.PinchZoom.html#set">set</a>
</li>
<li data-name="ol.interaction.PinchZoom#setActive" class="unstable">
<a href="ol.interaction.PinchZoom.html#setActive">setActive</a>
</li>
<li data-name="ol.interaction.PinchZoom#setProperties" class="unstable">
<a href="ol.interaction.PinchZoom.html#setProperties">setProperties</a>
</li>
<li data-name="ol.interaction.PinchZoom#un" class="">
<a href="ol.interaction.PinchZoom.html#un">un</a>
</li>
<li data-name="ol.interaction.PinchZoom#unbind" class="unstable">
<a href="ol.interaction.PinchZoom.html#unbind">unbind</a>
</li>
<li data-name="ol.interaction.PinchZoom#unbindAll" class="unstable">
<a href="ol.interaction.PinchZoom.html#unbindAll">unbindAll</a>
</li>
<li data-name="ol.interaction.PinchZoom#unByKey" class="">
<a href="ol.interaction.PinchZoom.html#unByKey">unByKey</a>
</li>
</ul>
<ul class="fires itemMembers">
<span class="subtitle">Fires</span>
<li data-name="ol.ObjectEvent#event:change:active" class="unstable">
change:active
</li>
<li data-name="ol.ObjectEvent#event:propertychange" class="unstable">
<a href="ol.ObjectEvent.html#event:propertychange">propertychange</a>
</li>
</ul>
</li>
<li class="item" data-name="ol.interaction.Pointer">
<span class="title">
<a href="ol.interaction.Pointer.html">ol.interaction.Pointer</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.interaction.Pointer.handleEvent" class="unstable">
<a href="ol.interaction.Pointer.html#handleEvent">handleEvent</a>
</li>
<li data-name="ol.interaction.Pointer#bindTo" class="unstable">
<a href="ol.interaction.Pointer.html#bindTo">bindTo</a>
</li>
<li data-name="ol.interaction.Pointer#changed" class="unstable">
<a href="ol.interaction.Pointer.html#changed">changed</a>
</li>
<li data-name="ol.interaction.Pointer#get" class="unstable">
<a href="ol.interaction.Pointer.html#get">get</a>
</li>
<li data-name="ol.interaction.Pointer#getActive" class="unstable">
<a href="ol.interaction.Pointer.html#getActive">getActive</a>
</li>
<li data-name="ol.interaction.Pointer#getKeys" class="unstable">
<a href="ol.interaction.Pointer.html#getKeys">getKeys</a>
</li>
<li data-name="ol.interaction.Pointer#getProperties" class="unstable">
<a href="ol.interaction.Pointer.html#getProperties">getProperties</a>
</li>
<li data-name="ol.interaction.Pointer#getRevision" class="unstable">
<a href="ol.interaction.Pointer.html#getRevision">getRevision</a>
</li>
<li data-name="ol.interaction.Pointer#on" class="">
<a href="ol.interaction.Pointer.html#on">on</a>
</li>
<li data-name="ol.interaction.Pointer#once" class="">
<a href="ol.interaction.Pointer.html#once">once</a>
</li>
<li data-name="ol.interaction.Pointer#set" class="unstable">
<a href="ol.interaction.Pointer.html#set">set</a>
</li>
<li data-name="ol.interaction.Pointer#setActive" class="unstable">
<a href="ol.interaction.Pointer.html#setActive">setActive</a>
</li>
<li data-name="ol.interaction.Pointer#setProperties" class="unstable">
<a href="ol.interaction.Pointer.html#setProperties">setProperties</a>
</li>
<li data-name="ol.interaction.Pointer#un" class="">
<a href="ol.interaction.Pointer.html#un">un</a>
</li>
<li data-name="ol.interaction.Pointer#unbind" class="unstable">
<a href="ol.interaction.Pointer.html#unbind">unbind</a>
</li>
<li data-name="ol.interaction.Pointer#unbindAll" class="unstable">
<a href="ol.interaction.Pointer.html#unbindAll">unbindAll</a>
</li>
<li data-name="ol.interaction.Pointer#unByKey" class="">
<a href="ol.interaction.Pointer.html#unByKey">unByKey</a>
</li>
</ul>
<ul class="fires itemMembers">
<span class="subtitle">Fires</span>
<li data-name="ol.ObjectEvent#event:change:active" class="unstable">
change:active
</li>
<li data-name="ol.ObjectEvent#event:propertychange" class="unstable">
<a href="ol.ObjectEvent.html#event:propertychange">propertychange</a>
</li>
</ul>
</li>
<li class="item" data-name="ol.interaction.Select">
<span class="title">
<a href="ol.interaction.Select.html">ol.interaction.Select</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.interaction.Select.handleEvent" class="unstable">
<a href="ol.interaction.Select.html#handleEvent">handleEvent</a>
</li>
<li data-name="ol.interaction.Select#bindTo" class="unstable">
<a href="ol.interaction.Select.html#bindTo">bindTo</a>
</li>
<li data-name="ol.interaction.Select#changed" class="unstable">
<a href="ol.interaction.Select.html#changed">changed</a>
</li>
<li data-name="ol.interaction.Select#get" class="unstable">
<a href="ol.interaction.Select.html#get">get</a>
</li>
<li data-name="ol.interaction.Select#getActive" class="unstable">
<a href="ol.interaction.Select.html#getActive">getActive</a>
</li>
<li data-name="ol.interaction.Select#getFeatures" class="">
<a href="ol.interaction.Select.html#getFeatures">getFeatures</a>
</li>
<li data-name="ol.interaction.Select#getKeys" class="unstable">
<a href="ol.interaction.Select.html#getKeys">getKeys</a>
</li>
<li data-name="ol.interaction.Select#getProperties" class="unstable">
<a href="ol.interaction.Select.html#getProperties">getProperties</a>
</li>
<li data-name="ol.interaction.Select#getRevision" class="unstable">
<a href="ol.interaction.Select.html#getRevision">getRevision</a>
</li>
<li data-name="ol.interaction.Select#on" class="">
<a href="ol.interaction.Select.html#on">on</a>
</li>
<li data-name="ol.interaction.Select#once" class="">
<a href="ol.interaction.Select.html#once">once</a>
</li>
<li data-name="ol.interaction.Select#set" class="unstable">
<a href="ol.interaction.Select.html#set">set</a>
</li>
<li data-name="ol.interaction.Select#setActive" class="unstable">
<a href="ol.interaction.Select.html#setActive">setActive</a>
</li>
<li data-name="ol.interaction.Select#setMap" class="">
<a href="ol.interaction.Select.html#setMap">setMap</a>
</li>
<li data-name="ol.interaction.Select#setProperties" class="unstable">
<a href="ol.interaction.Select.html#setProperties">setProperties</a>
</li>
<li data-name="ol.interaction.Select#un" class="">
<a href="ol.interaction.Select.html#un">un</a>
</li>
<li data-name="ol.interaction.Select#unbind" class="unstable">
<a href="ol.interaction.Select.html#unbind">unbind</a>
</li>
<li data-name="ol.interaction.Select#unbindAll" class="unstable">
<a href="ol.interaction.Select.html#unbindAll">unbindAll</a>
</li>
<li data-name="ol.interaction.Select#unByKey" class="">
<a href="ol.interaction.Select.html#unByKey">unByKey</a>
</li>
</ul>
<ul class="fires itemMembers">
<span class="subtitle">Fires</span>
<li data-name="ol.ObjectEvent#event:change:active" class="unstable">
change:active
</li>
<li data-name="ol.ObjectEvent#event:propertychange" class="unstable">
<a href="ol.ObjectEvent.html#event:propertychange">propertychange</a>
</li>
</ul>
</li>
<li class="item" data-name="ol.layer">
<span class="title">
<a href="ol.layer.html">ol.layer</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
</ul>
<ul class="fires itemMembers">
</ul>
</li>
<li class="item" data-name="ol.layer.Base">
<span class="title">
<a href="ol.layer.Base.html">ol.layer.Base</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.layer.Base#bindTo" class="unstable">
<a href="ol.layer.Base.html#bindTo">bindTo</a>
</li>
<li data-name="ol.layer.Base#changed" class="unstable">
<a href="ol.layer.Base.html#changed">changed</a>
</li>
<li data-name="ol.layer.Base#get" class="unstable">
<a href="ol.layer.Base.html#get">get</a>
</li>
<li data-name="ol.layer.Base#getBrightness" class="unstable">
<a href="ol.layer.Base.html#getBrightness">getBrightness</a>
</li>
<li data-name="ol.layer.Base#getContrast" class="unstable">
<a href="ol.layer.Base.html#getContrast">getContrast</a>
</li>
<li data-name="ol.layer.Base#getExtent" class="">
<a href="ol.layer.Base.html#getExtent">getExtent</a>
</li>
<li data-name="ol.layer.Base#getHue" class="unstable">
<a href="ol.layer.Base.html#getHue">getHue</a>
</li>
<li data-name="ol.layer.Base#getKeys" class="unstable">
<a href="ol.layer.Base.html#getKeys">getKeys</a>
</li>
<li data-name="ol.layer.Base#getMaxResolution" class="">
<a href="ol.layer.Base.html#getMaxResolution">getMaxResolution</a>
</li>
<li data-name="ol.layer.Base#getMinResolution" class="">
<a href="ol.layer.Base.html#getMinResolution">getMinResolution</a>
</li>
<li data-name="ol.layer.Base#getOpacity" class="">
<a href="ol.layer.Base.html#getOpacity">getOpacity</a>
</li>
<li data-name="ol.layer.Base#getProperties" class="unstable">
<a href="ol.layer.Base.html#getProperties">getProperties</a>
</li>
<li data-name="ol.layer.Base#getRevision" class="unstable">
<a href="ol.layer.Base.html#getRevision">getRevision</a>
</li>
<li data-name="ol.layer.Base#getSaturation" class="unstable">
<a href="ol.layer.Base.html#getSaturation">getSaturation</a>
</li>
<li data-name="ol.layer.Base#getVisible" class="">
<a href="ol.layer.Base.html#getVisible">getVisible</a>
</li>
<li data-name="ol.layer.Base#on" class="">
<a href="ol.layer.Base.html#on">on</a>
</li>
<li data-name="ol.layer.Base#once" class="">
<a href="ol.layer.Base.html#once">once</a>
</li>
<li data-name="ol.layer.Base#set" class="unstable">
<a href="ol.layer.Base.html#set">set</a>
</li>
<li data-name="ol.layer.Base#setBrightness" class="unstable">
<a href="ol.layer.Base.html#setBrightness">setBrightness</a>
</li>
<li data-name="ol.layer.Base#setContrast" class="unstable">
<a href="ol.layer.Base.html#setContrast">setContrast</a>
</li>
<li data-name="ol.layer.Base#setExtent" class="">
<a href="ol.layer.Base.html#setExtent">setExtent</a>
</li>
<li data-name="ol.layer.Base#setHue" class="unstable">
<a href="ol.layer.Base.html#setHue">setHue</a>
</li>
<li data-name="ol.layer.Base#setMaxResolution" class="">
<a href="ol.layer.Base.html#setMaxResolution">setMaxResolution</a>
</li>
<li data-name="ol.layer.Base#setMinResolution" class="">
<a href="ol.layer.Base.html#setMinResolution">setMinResolution</a>
</li>
<li data-name="ol.layer.Base#setOpacity" class="">
<a href="ol.layer.Base.html#setOpacity">setOpacity</a>
</li>
<li data-name="ol.layer.Base#setProperties" class="unstable">
<a href="ol.layer.Base.html#setProperties">setProperties</a>
</li>
<li data-name="ol.layer.Base#setSaturation" class="unstable">
<a href="ol.layer.Base.html#setSaturation">setSaturation</a>
</li>
<li data-name="ol.layer.Base#setVisible" class="">
<a href="ol.layer.Base.html#setVisible">setVisible</a>
</li>
<li data-name="ol.layer.Base#un" class="">
<a href="ol.layer.Base.html#un">un</a>
</li>
<li data-name="ol.layer.Base#unbind" class="unstable">
<a href="ol.layer.Base.html#unbind">unbind</a>
</li>
<li data-name="ol.layer.Base#unbindAll" class="unstable">
<a href="ol.layer.Base.html#unbindAll">unbindAll</a>
</li>
<li data-name="ol.layer.Base#unByKey" class="">
<a href="ol.layer.Base.html#unByKey">unByKey</a>
</li>
</ul>
<ul class="fires itemMembers">
<span class="subtitle">Fires</span>
<li data-name="ol.ObjectEvent#event:change:brightness" class="unstable">
change:brightness
</li>
<li data-name="ol.ObjectEvent#event:change:contrast" class="unstable">
change:contrast
</li>
<li data-name="ol.ObjectEvent#event:change:extent" class="unstable">
change:extent
</li>
<li data-name="ol.ObjectEvent#event:change:hue" class="unstable">
change:hue
</li>
<li data-name="ol.ObjectEvent#event:change:maxResolution" class="unstable">
change:maxResolution
</li>
<li data-name="ol.ObjectEvent#event:change:minResolution" class="unstable">
change:minResolution
</li>
<li data-name="ol.ObjectEvent#event:change:opacity" class="unstable">
change:opacity
</li>
<li data-name="ol.ObjectEvent#event:change:saturation" class="unstable">
change:saturation
</li>
<li data-name="ol.ObjectEvent#event:change:visible" class="unstable">
change:visible
</li>
<li data-name="ol.ObjectEvent#event:propertychange" class="unstable">
<a href="ol.ObjectEvent.html#event:propertychange">propertychange</a>
</li>
</ul>
</li>
<li class="item" data-name="ol.layer.Group">
<span class="title">
<a href="ol.layer.Group.html">ol.layer.Group</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.layer.Group#bindTo" class="unstable">
<a href="ol.layer.Group.html#bindTo">bindTo</a>
</li>
<li data-name="ol.layer.Group#changed" class="unstable">
<a href="ol.layer.Group.html#changed">changed</a>
</li>
<li data-name="ol.layer.Group#get" class="unstable">
<a href="ol.layer.Group.html#get">get</a>
</li>
<li data-name="ol.layer.Group#getBrightness" class="unstable">
<a href="ol.layer.Group.html#getBrightness">getBrightness</a>
</li>
<li data-name="ol.layer.Group#getContrast" class="unstable">
<a href="ol.layer.Group.html#getContrast">getContrast</a>
</li>
<li data-name="ol.layer.Group#getExtent" class="">
<a href="ol.layer.Group.html#getExtent">getExtent</a>
</li>
<li data-name="ol.layer.Group#getHue" class="unstable">
<a href="ol.layer.Group.html#getHue">getHue</a>
</li>
<li data-name="ol.layer.Group#getKeys" class="unstable">
<a href="ol.layer.Group.html#getKeys">getKeys</a>
</li>
<li data-name="ol.layer.Group#getLayers" class="">
<a href="ol.layer.Group.html#getLayers">getLayers</a>
</li>
<li data-name="ol.layer.Group#getMaxResolution" class="">
<a href="ol.layer.Group.html#getMaxResolution">getMaxResolution</a>
</li>
<li data-name="ol.layer.Group#getMinResolution" class="">
<a href="ol.layer.Group.html#getMinResolution">getMinResolution</a>
</li>
<li data-name="ol.layer.Group#getOpacity" class="">
<a href="ol.layer.Group.html#getOpacity">getOpacity</a>
</li>
<li data-name="ol.layer.Group#getProperties" class="unstable">
<a href="ol.layer.Group.html#getProperties">getProperties</a>
</li>
<li data-name="ol.layer.Group#getRevision" class="unstable">
<a href="ol.layer.Group.html#getRevision">getRevision</a>
</li>
<li data-name="ol.layer.Group#getSaturation" class="unstable">
<a href="ol.layer.Group.html#getSaturation">getSaturation</a>
</li>
<li data-name="ol.layer.Group#getVisible" class="">
<a href="ol.layer.Group.html#getVisible">getVisible</a>
</li>
<li data-name="ol.layer.Group#on" class="">
<a href="ol.layer.Group.html#on">on</a>
</li>
<li data-name="ol.layer.Group#once" class="">
<a href="ol.layer.Group.html#once">once</a>
</li>
<li data-name="ol.layer.Group#set" class="unstable">
<a href="ol.layer.Group.html#set">set</a>
</li>
<li data-name="ol.layer.Group#setBrightness" class="unstable">
<a href="ol.layer.Group.html#setBrightness">setBrightness</a>
</li>
<li data-name="ol.layer.Group#setContrast" class="unstable">
<a href="ol.layer.Group.html#setContrast">setContrast</a>
</li>
<li data-name="ol.layer.Group#setExtent" class="">
<a href="ol.layer.Group.html#setExtent">setExtent</a>
</li>
<li data-name="ol.layer.Group#setHue" class="unstable">
<a href="ol.layer.Group.html#setHue">setHue</a>
</li>
<li data-name="ol.layer.Group#setLayers" class="">
<a href="ol.layer.Group.html#setLayers">setLayers</a>
</li>
<li data-name="ol.layer.Group#setMaxResolution" class="">
<a href="ol.layer.Group.html#setMaxResolution">setMaxResolution</a>
</li>
<li data-name="ol.layer.Group#setMinResolution" class="">
<a href="ol.layer.Group.html#setMinResolution">setMinResolution</a>
</li>
<li data-name="ol.layer.Group#setOpacity" class="">
<a href="ol.layer.Group.html#setOpacity">setOpacity</a>
</li>
<li data-name="ol.layer.Group#setProperties" class="unstable">
<a href="ol.layer.Group.html#setProperties">setProperties</a>
</li>
<li data-name="ol.layer.Group#setSaturation" class="unstable">
<a href="ol.layer.Group.html#setSaturation">setSaturation</a>
</li>
<li data-name="ol.layer.Group#setVisible" class="">
<a href="ol.layer.Group.html#setVisible">setVisible</a>
</li>
<li data-name="ol.layer.Group#un" class="">
<a href="ol.layer.Group.html#un">un</a>
</li>
<li data-name="ol.layer.Group#unbind" class="unstable">
<a href="ol.layer.Group.html#unbind">unbind</a>
</li>
<li data-name="ol.layer.Group#unbindAll" class="unstable">
<a href="ol.layer.Group.html#unbindAll">unbindAll</a>
</li>
<li data-name="ol.layer.Group#unByKey" class="">
<a href="ol.layer.Group.html#unByKey">unByKey</a>
</li>
</ul>
<ul class="fires itemMembers">
<span class="subtitle">Fires</span>
<li data-name="event:change Triggered when the group/Collection changes." class="unstable">
change Triggered when the group/Collection changes.
</li>
<li data-name="ol.ObjectEvent#event:change:brightness" class="unstable">
change:brightness
</li>
<li data-name="ol.ObjectEvent#event:change:contrast" class="unstable">
change:contrast
</li>
<li data-name="ol.ObjectEvent#event:change:extent" class="unstable">
change:extent
</li>
<li data-name="ol.ObjectEvent#event:change:hue" class="unstable">
change:hue
</li>
<li data-name="ol.ObjectEvent#event:change:layers" class="unstable">
change:layers
</li>
<li data-name="ol.ObjectEvent#event:change:maxResolution" class="unstable">
change:maxResolution
</li>
<li data-name="ol.ObjectEvent#event:change:minResolution" class="unstable">
change:minResolution
</li>
<li data-name="ol.ObjectEvent#event:change:opacity" class="unstable">
change:opacity
</li>
<li data-name="ol.ObjectEvent#event:change:saturation" class="unstable">
change:saturation
</li>
<li data-name="ol.ObjectEvent#event:change:visible" class="unstable">
change:visible
</li>
<li data-name="ol.ObjectEvent#event:propertychange" class="unstable">
<a href="ol.ObjectEvent.html#event:propertychange">propertychange</a>
</li>
</ul>
</li>
<li class="item" data-name="ol.layer.Heatmap">
<span class="title">
<a href="ol.layer.Heatmap.html">ol.layer.Heatmap</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.layer.Heatmap#bindTo" class="unstable">
<a href="ol.layer.Heatmap.html#bindTo">bindTo</a>
</li>
<li data-name="ol.layer.Heatmap#changed" class="unstable">
<a href="ol.layer.Heatmap.html#changed">changed</a>
</li>
<li data-name="ol.layer.Heatmap#get" class="unstable">
<a href="ol.layer.Heatmap.html#get">get</a>
</li>
<li data-name="ol.layer.Heatmap#getBrightness" class="unstable">
<a href="ol.layer.Heatmap.html#getBrightness">getBrightness</a>
</li>
<li data-name="ol.layer.Heatmap#getContrast" class="unstable">
<a href="ol.layer.Heatmap.html#getContrast">getContrast</a>
</li>
<li data-name="ol.layer.Heatmap#getExtent" class="">
<a href="ol.layer.Heatmap.html#getExtent">getExtent</a>
</li>
<li data-name="ol.layer.Heatmap#getGradient" class="unstable">
<a href="ol.layer.Heatmap.html#getGradient">getGradient</a>
</li>
<li data-name="ol.layer.Heatmap#getHue" class="unstable">
<a href="ol.layer.Heatmap.html#getHue">getHue</a>
</li>
<li data-name="ol.layer.Heatmap#getKeys" class="unstable">
<a href="ol.layer.Heatmap.html#getKeys">getKeys</a>
</li>
<li data-name="ol.layer.Heatmap#getMaxResolution" class="">
<a href="ol.layer.Heatmap.html#getMaxResolution">getMaxResolution</a>
</li>
<li data-name="ol.layer.Heatmap#getMinResolution" class="">
<a href="ol.layer.Heatmap.html#getMinResolution">getMinResolution</a>
</li>
<li data-name="ol.layer.Heatmap#getOpacity" class="">
<a href="ol.layer.Heatmap.html#getOpacity">getOpacity</a>
</li>
<li data-name="ol.layer.Heatmap#getProperties" class="unstable">
<a href="ol.layer.Heatmap.html#getProperties">getProperties</a>
</li>
<li data-name="ol.layer.Heatmap#getRevision" class="unstable">
<a href="ol.layer.Heatmap.html#getRevision">getRevision</a>
</li>
<li data-name="ol.layer.Heatmap#getSaturation" class="unstable">
<a href="ol.layer.Heatmap.html#getSaturation">getSaturation</a>
</li>
<li data-name="ol.layer.Heatmap#getSource" class="">
<a href="ol.layer.Heatmap.html#getSource">getSource</a>
</li>
<li data-name="ol.layer.Heatmap#getStyle" class="">
<a href="ol.layer.Heatmap.html#getStyle">getStyle</a>
</li>
<li data-name="ol.layer.Heatmap#getStyleFunction" class="">
<a href="ol.layer.Heatmap.html#getStyleFunction">getStyleFunction</a>
</li>
<li data-name="ol.layer.Heatmap#getVisible" class="">
<a href="ol.layer.Heatmap.html#getVisible">getVisible</a>
</li>
<li data-name="ol.layer.Heatmap#on" class="">
<a href="ol.layer.Heatmap.html#on">on</a>
</li>
<li data-name="ol.layer.Heatmap#once" class="">
<a href="ol.layer.Heatmap.html#once">once</a>
</li>
<li data-name="ol.layer.Heatmap#set" class="unstable">
<a href="ol.layer.Heatmap.html#set">set</a>
</li>
<li data-name="ol.layer.Heatmap#setBrightness" class="unstable">
<a href="ol.layer.Heatmap.html#setBrightness">setBrightness</a>
</li>
<li data-name="ol.layer.Heatmap#setContrast" class="unstable">
<a href="ol.layer.Heatmap.html#setContrast">setContrast</a>
</li>
<li data-name="ol.layer.Heatmap#setExtent" class="">
<a href="ol.layer.Heatmap.html#setExtent">setExtent</a>
</li>
<li data-name="ol.layer.Heatmap#setGradient" class="unstable">
<a href="ol.layer.Heatmap.html#setGradient">setGradient</a>
</li>
<li data-name="ol.layer.Heatmap#setHue" class="unstable">
<a href="ol.layer.Heatmap.html#setHue">setHue</a>
</li>
<li data-name="ol.layer.Heatmap#setMaxResolution" class="">
<a href="ol.layer.Heatmap.html#setMaxResolution">setMaxResolution</a>
</li>
<li data-name="ol.layer.Heatmap#setMinResolution" class="">
<a href="ol.layer.Heatmap.html#setMinResolution">setMinResolution</a>
</li>
<li data-name="ol.layer.Heatmap#setOpacity" class="">
<a href="ol.layer.Heatmap.html#setOpacity">setOpacity</a>
</li>
<li data-name="ol.layer.Heatmap#setProperties" class="unstable">
<a href="ol.layer.Heatmap.html#setProperties">setProperties</a>
</li>
<li data-name="ol.layer.Heatmap#setSaturation" class="unstable">
<a href="ol.layer.Heatmap.html#setSaturation">setSaturation</a>
</li>
<li data-name="ol.layer.Heatmap#setSource" class="">
<a href="ol.layer.Heatmap.html#setSource">setSource</a>
</li>
<li data-name="ol.layer.Heatmap#setStyle" class="">
<a href="ol.layer.Heatmap.html#setStyle">setStyle</a>
</li>
<li data-name="ol.layer.Heatmap#setVisible" class="">
<a href="ol.layer.Heatmap.html#setVisible">setVisible</a>
</li>
<li data-name="ol.layer.Heatmap#un" class="">
<a href="ol.layer.Heatmap.html#un">un</a>
</li>
<li data-name="ol.layer.Heatmap#unbind" class="unstable">
<a href="ol.layer.Heatmap.html#unbind">unbind</a>
</li>
<li data-name="ol.layer.Heatmap#unbindAll" class="unstable">
<a href="ol.layer.Heatmap.html#unbindAll">unbindAll</a>
</li>
<li data-name="ol.layer.Heatmap#unByKey" class="">
<a href="ol.layer.Heatmap.html#unByKey">unByKey</a>
</li>
</ul>
<ul class="fires itemMembers">
<span class="subtitle">Fires</span>
<li data-name="event:change Triggered when the state of the source changes." class="unstable">
change Triggered when the state of the source changes.
</li>
<li data-name="ol.ObjectEvent#event:change:brightness" class="unstable">
change:brightness
</li>
<li data-name="ol.ObjectEvent#event:change:contrast" class="unstable">
change:contrast
</li>
<li data-name="ol.ObjectEvent#event:change:extent" class="unstable">
change:extent
</li>
<li data-name="ol.ObjectEvent#event:change:gradient" class="unstable">
change:gradient
</li>
<li data-name="ol.ObjectEvent#event:change:hue" class="unstable">
change:hue
</li>
<li data-name="ol.ObjectEvent#event:change:maxResolution" class="unstable">
change:maxResolution
</li>
<li data-name="ol.ObjectEvent#event:change:minResolution" class="unstable">
change:minResolution
</li>
<li data-name="ol.ObjectEvent#event:change:opacity" class="unstable">
change:opacity
</li>
<li data-name="ol.ObjectEvent#event:change:saturation" class="unstable">
change:saturation
</li>
<li data-name="ol.ObjectEvent#event:change:source" class="unstable">
change:source
</li>
<li data-name="ol.ObjectEvent#event:change:visible" class="unstable">
change:visible
</li>
<li data-name="ol.render.Event#event:postcompose" class="unstable">
<a href="ol.render.Event.html#event:postcompose">postcompose</a>
</li>
<li data-name="ol.render.Event#event:precompose" class="unstable">
<a href="ol.render.Event.html#event:precompose">precompose</a>
</li>
<li data-name="ol.ObjectEvent#event:propertychange" class="unstable">
<a href="ol.ObjectEvent.html#event:propertychange">propertychange</a>
</li>
<li data-name="ol.render.Event#event:render" class="unstable">
<a href="ol.render.Event.html#event:render">render</a>
</li>
</ul>
</li>
<li class="item" data-name="ol.layer.Image">
<span class="title">
<a href="ol.layer.Image.html">ol.layer.Image</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.layer.Image#bindTo" class="unstable">
<a href="ol.layer.Image.html#bindTo">bindTo</a>
</li>
<li data-name="ol.layer.Image#changed" class="unstable">
<a href="ol.layer.Image.html#changed">changed</a>
</li>
<li data-name="ol.layer.Image#get" class="unstable">
<a href="ol.layer.Image.html#get">get</a>
</li>
<li data-name="ol.layer.Image#getBrightness" class="unstable">
<a href="ol.layer.Image.html#getBrightness">getBrightness</a>
</li>
<li data-name="ol.layer.Image#getContrast" class="unstable">
<a href="ol.layer.Image.html#getContrast">getContrast</a>
</li>
<li data-name="ol.layer.Image#getExtent" class="">
<a href="ol.layer.Image.html#getExtent">getExtent</a>
</li>
<li data-name="ol.layer.Image#getHue" class="unstable">
<a href="ol.layer.Image.html#getHue">getHue</a>
</li>
<li data-name="ol.layer.Image#getKeys" class="unstable">
<a href="ol.layer.Image.html#getKeys">getKeys</a>
</li>
<li data-name="ol.layer.Image#getMaxResolution" class="">
<a href="ol.layer.Image.html#getMaxResolution">getMaxResolution</a>
</li>
<li data-name="ol.layer.Image#getMinResolution" class="">
<a href="ol.layer.Image.html#getMinResolution">getMinResolution</a>
</li>
<li data-name="ol.layer.Image#getOpacity" class="">
<a href="ol.layer.Image.html#getOpacity">getOpacity</a>
</li>
<li data-name="ol.layer.Image#getProperties" class="unstable">
<a href="ol.layer.Image.html#getProperties">getProperties</a>
</li>
<li data-name="ol.layer.Image#getRevision" class="unstable">
<a href="ol.layer.Image.html#getRevision">getRevision</a>
</li>
<li data-name="ol.layer.Image#getSaturation" class="unstable">
<a href="ol.layer.Image.html#getSaturation">getSaturation</a>
</li>
<li data-name="ol.layer.Image#getSource" class="">
<a href="ol.layer.Image.html#getSource">getSource</a>
</li>
<li data-name="ol.layer.Image#getVisible" class="">
<a href="ol.layer.Image.html#getVisible">getVisible</a>
</li>
<li data-name="ol.layer.Image#on" class="">
<a href="ol.layer.Image.html#on">on</a>
</li>
<li data-name="ol.layer.Image#once" class="">
<a href="ol.layer.Image.html#once">once</a>
</li>
<li data-name="ol.layer.Image#set" class="unstable">
<a href="ol.layer.Image.html#set">set</a>
</li>
<li data-name="ol.layer.Image#setBrightness" class="unstable">
<a href="ol.layer.Image.html#setBrightness">setBrightness</a>
</li>
<li data-name="ol.layer.Image#setContrast" class="unstable">
<a href="ol.layer.Image.html#setContrast">setContrast</a>
</li>
<li data-name="ol.layer.Image#setExtent" class="">
<a href="ol.layer.Image.html#setExtent">setExtent</a>
</li>
<li data-name="ol.layer.Image#setHue" class="unstable">
<a href="ol.layer.Image.html#setHue">setHue</a>
</li>
<li data-name="ol.layer.Image#setMaxResolution" class="">
<a href="ol.layer.Image.html#setMaxResolution">setMaxResolution</a>
</li>
<li data-name="ol.layer.Image#setMinResolution" class="">
<a href="ol.layer.Image.html#setMinResolution">setMinResolution</a>
</li>
<li data-name="ol.layer.Image#setOpacity" class="">
<a href="ol.layer.Image.html#setOpacity">setOpacity</a>
</li>
<li data-name="ol.layer.Image#setProperties" class="unstable">
<a href="ol.layer.Image.html#setProperties">setProperties</a>
</li>
<li data-name="ol.layer.Image#setSaturation" class="unstable">
<a href="ol.layer.Image.html#setSaturation">setSaturation</a>
</li>
<li data-name="ol.layer.Image#setSource" class="">
<a href="ol.layer.Image.html#setSource">setSource</a>
</li>
<li data-name="ol.layer.Image#setVisible" class="">
<a href="ol.layer.Image.html#setVisible">setVisible</a>
</li>
<li data-name="ol.layer.Image#un" class="">
<a href="ol.layer.Image.html#un">un</a>
</li>
<li data-name="ol.layer.Image#unbind" class="unstable">
<a href="ol.layer.Image.html#unbind">unbind</a>
</li>
<li data-name="ol.layer.Image#unbindAll" class="unstable">
<a href="ol.layer.Image.html#unbindAll">unbindAll</a>
</li>
<li data-name="ol.layer.Image#unByKey" class="">
<a href="ol.layer.Image.html#unByKey">unByKey</a>
</li>
</ul>
<ul class="fires itemMembers">
<span class="subtitle">Fires</span>
<li data-name="event:change Triggered when the state of the source changes." class="unstable">
change Triggered when the state of the source changes.
</li>
<li data-name="ol.ObjectEvent#event:change:brightness" class="unstable">
change:brightness
</li>
<li data-name="ol.ObjectEvent#event:change:contrast" class="unstable">
change:contrast
</li>
<li data-name="ol.ObjectEvent#event:change:extent" class="unstable">
change:extent
</li>
<li data-name="ol.ObjectEvent#event:change:hue" class="unstable">
change:hue
</li>
<li data-name="ol.ObjectEvent#event:change:maxResolution" class="unstable">
change:maxResolution
</li>
<li data-name="ol.ObjectEvent#event:change:minResolution" class="unstable">
change:minResolution
</li>
<li data-name="ol.ObjectEvent#event:change:opacity" class="unstable">
change:opacity
</li>
<li data-name="ol.ObjectEvent#event:change:saturation" class="unstable">
change:saturation
</li>
<li data-name="ol.ObjectEvent#event:change:source" class="unstable">
change:source
</li>
<li data-name="ol.ObjectEvent#event:change:visible" class="unstable">
change:visible
</li>
<li data-name="ol.render.Event#event:postcompose" class="unstable">
<a href="ol.render.Event.html#event:postcompose">postcompose</a>
</li>
<li data-name="ol.render.Event#event:precompose" class="unstable">
<a href="ol.render.Event.html#event:precompose">precompose</a>
</li>
<li data-name="ol.ObjectEvent#event:propertychange" class="unstable">
<a href="ol.ObjectEvent.html#event:propertychange">propertychange</a>
</li>
<li data-name="ol.render.Event#event:render" class="unstable">
<a href="ol.render.Event.html#event:render">render</a>
</li>
</ul>
</li>
<li class="item" data-name="ol.layer.Layer">
<span class="title">
<a href="ol.layer.Layer.html">ol.layer.Layer</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.layer.Layer#bindTo" class="unstable">
<a href="ol.layer.Layer.html#bindTo">bindTo</a>
</li>
<li data-name="ol.layer.Layer#changed" class="unstable">
<a href="ol.layer.Layer.html#changed">changed</a>
</li>
<li data-name="ol.layer.Layer#get" class="unstable">
<a href="ol.layer.Layer.html#get">get</a>
</li>
<li data-name="ol.layer.Layer#getBrightness" class="unstable">
<a href="ol.layer.Layer.html#getBrightness">getBrightness</a>
</li>
<li data-name="ol.layer.Layer#getContrast" class="unstable">
<a href="ol.layer.Layer.html#getContrast">getContrast</a>
</li>
<li data-name="ol.layer.Layer#getExtent" class="">
<a href="ol.layer.Layer.html#getExtent">getExtent</a>
</li>
<li data-name="ol.layer.Layer#getHue" class="unstable">
<a href="ol.layer.Layer.html#getHue">getHue</a>
</li>
<li data-name="ol.layer.Layer#getKeys" class="unstable">
<a href="ol.layer.Layer.html#getKeys">getKeys</a>
</li>
<li data-name="ol.layer.Layer#getMaxResolution" class="">
<a href="ol.layer.Layer.html#getMaxResolution">getMaxResolution</a>
</li>
<li data-name="ol.layer.Layer#getMinResolution" class="">
<a href="ol.layer.Layer.html#getMinResolution">getMinResolution</a>
</li>
<li data-name="ol.layer.Layer#getOpacity" class="">
<a href="ol.layer.Layer.html#getOpacity">getOpacity</a>
</li>
<li data-name="ol.layer.Layer#getProperties" class="unstable">
<a href="ol.layer.Layer.html#getProperties">getProperties</a>
</li>
<li data-name="ol.layer.Layer#getRevision" class="unstable">
<a href="ol.layer.Layer.html#getRevision">getRevision</a>
</li>
<li data-name="ol.layer.Layer#getSaturation" class="unstable">
<a href="ol.layer.Layer.html#getSaturation">getSaturation</a>
</li>
<li data-name="ol.layer.Layer#getSource" class="">
<a href="ol.layer.Layer.html#getSource">getSource</a>
</li>
<li data-name="ol.layer.Layer#getVisible" class="">
<a href="ol.layer.Layer.html#getVisible">getVisible</a>
</li>
<li data-name="ol.layer.Layer#on" class="">
<a href="ol.layer.Layer.html#on">on</a>
</li>
<li data-name="ol.layer.Layer#once" class="">
<a href="ol.layer.Layer.html#once">once</a>
</li>
<li data-name="ol.layer.Layer#set" class="unstable">
<a href="ol.layer.Layer.html#set">set</a>
</li>
<li data-name="ol.layer.Layer#setBrightness" class="unstable">
<a href="ol.layer.Layer.html#setBrightness">setBrightness</a>
</li>
<li data-name="ol.layer.Layer#setContrast" class="unstable">
<a href="ol.layer.Layer.html#setContrast">setContrast</a>
</li>
<li data-name="ol.layer.Layer#setExtent" class="">
<a href="ol.layer.Layer.html#setExtent">setExtent</a>
</li>
<li data-name="ol.layer.Layer#setHue" class="unstable">
<a href="ol.layer.Layer.html#setHue">setHue</a>
</li>
<li data-name="ol.layer.Layer#setMaxResolution" class="">
<a href="ol.layer.Layer.html#setMaxResolution">setMaxResolution</a>
</li>
<li data-name="ol.layer.Layer#setMinResolution" class="">
<a href="ol.layer.Layer.html#setMinResolution">setMinResolution</a>
</li>
<li data-name="ol.layer.Layer#setOpacity" class="">
<a href="ol.layer.Layer.html#setOpacity">setOpacity</a>
</li>
<li data-name="ol.layer.Layer#setProperties" class="unstable">
<a href="ol.layer.Layer.html#setProperties">setProperties</a>
</li>
<li data-name="ol.layer.Layer#setSaturation" class="unstable">
<a href="ol.layer.Layer.html#setSaturation">setSaturation</a>
</li>
<li data-name="ol.layer.Layer#setSource" class="">
<a href="ol.layer.Layer.html#setSource">setSource</a>
</li>
<li data-name="ol.layer.Layer#setVisible" class="">
<a href="ol.layer.Layer.html#setVisible">setVisible</a>
</li>
<li data-name="ol.layer.Layer#un" class="">
<a href="ol.layer.Layer.html#un">un</a>
</li>
<li data-name="ol.layer.Layer#unbind" class="unstable">
<a href="ol.layer.Layer.html#unbind">unbind</a>
</li>
<li data-name="ol.layer.Layer#unbindAll" class="unstable">
<a href="ol.layer.Layer.html#unbindAll">unbindAll</a>
</li>
<li data-name="ol.layer.Layer#unByKey" class="">
<a href="ol.layer.Layer.html#unByKey">unByKey</a>
</li>
</ul>
<ul class="fires itemMembers">
<span class="subtitle">Fires</span>
<li data-name="event:change Triggered when the state of the source changes." class="unstable">
change Triggered when the state of the source changes.
</li>
<li data-name="ol.ObjectEvent#event:change:brightness" class="unstable">
change:brightness
</li>
<li data-name="ol.ObjectEvent#event:change:contrast" class="unstable">
change:contrast
</li>
<li data-name="ol.ObjectEvent#event:change:extent" class="unstable">
change:extent
</li>
<li data-name="ol.ObjectEvent#event:change:hue" class="unstable">
change:hue
</li>
<li data-name="ol.ObjectEvent#event:change:maxResolution" class="unstable">
change:maxResolution
</li>
<li data-name="ol.ObjectEvent#event:change:minResolution" class="unstable">
change:minResolution
</li>
<li data-name="ol.ObjectEvent#event:change:opacity" class="unstable">
change:opacity
</li>
<li data-name="ol.ObjectEvent#event:change:saturation" class="unstable">
change:saturation
</li>
<li data-name="ol.ObjectEvent#event:change:source" class="unstable">
change:source
</li>
<li data-name="ol.ObjectEvent#event:change:visible" class="unstable">
change:visible
</li>
<li data-name="ol.render.Event#event:postcompose" class="unstable">
<a href="ol.render.Event.html#event:postcompose">postcompose</a>
</li>
<li data-name="ol.render.Event#event:precompose" class="unstable">
<a href="ol.render.Event.html#event:precompose">precompose</a>
</li>
<li data-name="ol.ObjectEvent#event:propertychange" class="unstable">
<a href="ol.ObjectEvent.html#event:propertychange">propertychange</a>
</li>
<li data-name="ol.render.Event#event:render" class="unstable">
<a href="ol.render.Event.html#event:render">render</a>
</li>
</ul>
</li>
<li class="item" data-name="ol.layer.Tile">
<span class="title">
<a href="ol.layer.Tile.html">ol.layer.Tile</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.layer.Tile#bindTo" class="unstable">
<a href="ol.layer.Tile.html#bindTo">bindTo</a>
</li>
<li data-name="ol.layer.Tile#changed" class="unstable">
<a href="ol.layer.Tile.html#changed">changed</a>
</li>
<li data-name="ol.layer.Tile#get" class="unstable">
<a href="ol.layer.Tile.html#get">get</a>
</li>
<li data-name="ol.layer.Tile#getBrightness" class="unstable">
<a href="ol.layer.Tile.html#getBrightness">getBrightness</a>
</li>
<li data-name="ol.layer.Tile#getContrast" class="unstable">
<a href="ol.layer.Tile.html#getContrast">getContrast</a>
</li>
<li data-name="ol.layer.Tile#getExtent" class="">
<a href="ol.layer.Tile.html#getExtent">getExtent</a>
</li>
<li data-name="ol.layer.Tile#getHue" class="unstable">
<a href="ol.layer.Tile.html#getHue">getHue</a>
</li>
<li data-name="ol.layer.Tile#getKeys" class="unstable">
<a href="ol.layer.Tile.html#getKeys">getKeys</a>
</li>
<li data-name="ol.layer.Tile#getMaxResolution" class="">
<a href="ol.layer.Tile.html#getMaxResolution">getMaxResolution</a>
</li>
<li data-name="ol.layer.Tile#getMinResolution" class="">
<a href="ol.layer.Tile.html#getMinResolution">getMinResolution</a>
</li>
<li data-name="ol.layer.Tile#getOpacity" class="">
<a href="ol.layer.Tile.html#getOpacity">getOpacity</a>
</li>
<li data-name="ol.layer.Tile#getPreload" class="unstable">
<a href="ol.layer.Tile.html#getPreload">getPreload</a>
</li>
<li data-name="ol.layer.Tile#getProperties" class="unstable">
<a href="ol.layer.Tile.html#getProperties">getProperties</a>
</li>
<li data-name="ol.layer.Tile#getRevision" class="unstable">
<a href="ol.layer.Tile.html#getRevision">getRevision</a>
</li>
<li data-name="ol.layer.Tile#getSaturation" class="unstable">
<a href="ol.layer.Tile.html#getSaturation">getSaturation</a>
</li>
<li data-name="ol.layer.Tile#getSource" class="">
<a href="ol.layer.Tile.html#getSource">getSource</a>
</li>
<li data-name="ol.layer.Tile#getUseInterimTilesOnError" class="unstable">
<a href="ol.layer.Tile.html#getUseInterimTilesOnError">getUseInterimTilesOnError</a>
</li>
<li data-name="ol.layer.Tile#getVisible" class="">
<a href="ol.layer.Tile.html#getVisible">getVisible</a>
</li>
<li data-name="ol.layer.Tile#on" class="">
<a href="ol.layer.Tile.html#on">on</a>
</li>
<li data-name="ol.layer.Tile#once" class="">
<a href="ol.layer.Tile.html#once">once</a>
</li>
<li data-name="ol.layer.Tile#set" class="unstable">
<a href="ol.layer.Tile.html#set">set</a>
</li>
<li data-name="ol.layer.Tile#setBrightness" class="unstable">
<a href="ol.layer.Tile.html#setBrightness">setBrightness</a>
</li>
<li data-name="ol.layer.Tile#setContrast" class="unstable">
<a href="ol.layer.Tile.html#setContrast">setContrast</a>
</li>
<li data-name="ol.layer.Tile#setExtent" class="">
<a href="ol.layer.Tile.html#setExtent">setExtent</a>
</li>
<li data-name="ol.layer.Tile#setHue" class="unstable">
<a href="ol.layer.Tile.html#setHue">setHue</a>
</li>
<li data-name="ol.layer.Tile#setMaxResolution" class="">
<a href="ol.layer.Tile.html#setMaxResolution">setMaxResolution</a>
</li>
<li data-name="ol.layer.Tile#setMinResolution" class="">
<a href="ol.layer.Tile.html#setMinResolution">setMinResolution</a>
</li>
<li data-name="ol.layer.Tile#setOpacity" class="">
<a href="ol.layer.Tile.html#setOpacity">setOpacity</a>
</li>
<li data-name="ol.layer.Tile#setPreload" class="unstable">
<a href="ol.layer.Tile.html#setPreload">setPreload</a>
</li>
<li data-name="ol.layer.Tile#setProperties" class="unstable">
<a href="ol.layer.Tile.html#setProperties">setProperties</a>
</li>
<li data-name="ol.layer.Tile#setSaturation" class="unstable">
<a href="ol.layer.Tile.html#setSaturation">setSaturation</a>
</li>
<li data-name="ol.layer.Tile#setSource" class="">
<a href="ol.layer.Tile.html#setSource">setSource</a>
</li>
<li data-name="ol.layer.Tile#setUseInterimTilesOnError" class="unstable">
<a href="ol.layer.Tile.html#setUseInterimTilesOnError">setUseInterimTilesOnError</a>
</li>
<li data-name="ol.layer.Tile#setVisible" class="">
<a href="ol.layer.Tile.html#setVisible">setVisible</a>
</li>
<li data-name="ol.layer.Tile#un" class="">
<a href="ol.layer.Tile.html#un">un</a>
</li>
<li data-name="ol.layer.Tile#unbind" class="unstable">
<a href="ol.layer.Tile.html#unbind">unbind</a>
</li>
<li data-name="ol.layer.Tile#unbindAll" class="unstable">
<a href="ol.layer.Tile.html#unbindAll">unbindAll</a>
</li>
<li data-name="ol.layer.Tile#unByKey" class="">
<a href="ol.layer.Tile.html#unByKey">unByKey</a>
</li>
</ul>
<ul class="fires itemMembers">
<span class="subtitle">Fires</span>
<li data-name="event:change Triggered when the state of the source changes." class="unstable">
change Triggered when the state of the source changes.
</li>
<li data-name="ol.ObjectEvent#event:change:brightness" class="unstable">
change:brightness
</li>
<li data-name="ol.ObjectEvent#event:change:contrast" class="unstable">
change:contrast
</li>
<li data-name="ol.ObjectEvent#event:change:extent" class="unstable">
change:extent
</li>
<li data-name="ol.ObjectEvent#event:change:hue" class="unstable">
change:hue
</li>
<li data-name="ol.ObjectEvent#event:change:maxResolution" class="unstable">
change:maxResolution
</li>
<li data-name="ol.ObjectEvent#event:change:minResolution" class="unstable">
change:minResolution
</li>
<li data-name="ol.ObjectEvent#event:change:opacity" class="unstable">
change:opacity
</li>
<li data-name="ol.ObjectEvent#event:change:preload" class="unstable">
change:preload
</li>
<li data-name="ol.ObjectEvent#event:change:saturation" class="unstable">
change:saturation
</li>
<li data-name="ol.ObjectEvent#event:change:source" class="unstable">
change:source
</li>
<li data-name="ol.ObjectEvent#event:change:useInterimTilesOnError" class="unstable">
change:useInterimTilesOnError
</li>
<li data-name="ol.ObjectEvent#event:change:visible" class="unstable">
change:visible
</li>
<li data-name="ol.render.Event#event:postcompose" class="unstable">
<a href="ol.render.Event.html#event:postcompose">postcompose</a>
</li>
<li data-name="ol.render.Event#event:precompose" class="unstable">
<a href="ol.render.Event.html#event:precompose">precompose</a>
</li>
<li data-name="ol.ObjectEvent#event:propertychange" class="unstable">
<a href="ol.ObjectEvent.html#event:propertychange">propertychange</a>
</li>
<li data-name="ol.render.Event#event:render" class="unstable">
<a href="ol.render.Event.html#event:render">render</a>
</li>
</ul>
</li>
<li class="item" data-name="ol.layer.Vector">
<span class="title">
<a href="ol.layer.Vector.html">ol.layer.Vector</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.layer.Vector#bindTo" class="unstable">
<a href="ol.layer.Vector.html#bindTo">bindTo</a>
</li>
<li data-name="ol.layer.Vector#changed" class="unstable">
<a href="ol.layer.Vector.html#changed">changed</a>
</li>
<li data-name="ol.layer.Vector#get" class="unstable">
<a href="ol.layer.Vector.html#get">get</a>
</li>
<li data-name="ol.layer.Vector#getBrightness" class="unstable">
<a href="ol.layer.Vector.html#getBrightness">getBrightness</a>
</li>
<li data-name="ol.layer.Vector#getContrast" class="unstable">
<a href="ol.layer.Vector.html#getContrast">getContrast</a>
</li>
<li data-name="ol.layer.Vector#getExtent" class="">
<a href="ol.layer.Vector.html#getExtent">getExtent</a>
</li>
<li data-name="ol.layer.Vector#getHue" class="unstable">
<a href="ol.layer.Vector.html#getHue">getHue</a>
</li>
<li data-name="ol.layer.Vector#getKeys" class="unstable">
<a href="ol.layer.Vector.html#getKeys">getKeys</a>
</li>
<li data-name="ol.layer.Vector#getMaxResolution" class="">
<a href="ol.layer.Vector.html#getMaxResolution">getMaxResolution</a>
</li>
<li data-name="ol.layer.Vector#getMinResolution" class="">
<a href="ol.layer.Vector.html#getMinResolution">getMinResolution</a>
</li>
<li data-name="ol.layer.Vector#getOpacity" class="">
<a href="ol.layer.Vector.html#getOpacity">getOpacity</a>
</li>
<li data-name="ol.layer.Vector#getProperties" class="unstable">
<a href="ol.layer.Vector.html#getProperties">getProperties</a>
</li>
<li data-name="ol.layer.Vector#getRevision" class="unstable">
<a href="ol.layer.Vector.html#getRevision">getRevision</a>
</li>
<li data-name="ol.layer.Vector#getSaturation" class="unstable">
<a href="ol.layer.Vector.html#getSaturation">getSaturation</a>
</li>
<li data-name="ol.layer.Vector#getSource" class="">
<a href="ol.layer.Vector.html#getSource">getSource</a>
</li>
<li data-name="ol.layer.Vector#getStyle" class="">
<a href="ol.layer.Vector.html#getStyle">getStyle</a>
</li>
<li data-name="ol.layer.Vector#getStyleFunction" class="">
<a href="ol.layer.Vector.html#getStyleFunction">getStyleFunction</a>
</li>
<li data-name="ol.layer.Vector#getVisible" class="">
<a href="ol.layer.Vector.html#getVisible">getVisible</a>
</li>
<li data-name="ol.layer.Vector#on" class="">
<a href="ol.layer.Vector.html#on">on</a>
</li>
<li data-name="ol.layer.Vector#once" class="">
<a href="ol.layer.Vector.html#once">once</a>
</li>
<li data-name="ol.layer.Vector#set" class="unstable">
<a href="ol.layer.Vector.html#set">set</a>
</li>
<li data-name="ol.layer.Vector#setBrightness" class="unstable">
<a href="ol.layer.Vector.html#setBrightness">setBrightness</a>
</li>
<li data-name="ol.layer.Vector#setContrast" class="unstable">
<a href="ol.layer.Vector.html#setContrast">setContrast</a>
</li>
<li data-name="ol.layer.Vector#setExtent" class="">
<a href="ol.layer.Vector.html#setExtent">setExtent</a>
</li>
<li data-name="ol.layer.Vector#setHue" class="unstable">
<a href="ol.layer.Vector.html#setHue">setHue</a>
</li>
<li data-name="ol.layer.Vector#setMaxResolution" class="">
<a href="ol.layer.Vector.html#setMaxResolution">setMaxResolution</a>
</li>
<li data-name="ol.layer.Vector#setMinResolution" class="">
<a href="ol.layer.Vector.html#setMinResolution">setMinResolution</a>
</li>
<li data-name="ol.layer.Vector#setOpacity" class="">
<a href="ol.layer.Vector.html#setOpacity">setOpacity</a>
</li>
<li data-name="ol.layer.Vector#setProperties" class="unstable">
<a href="ol.layer.Vector.html#setProperties">setProperties</a>
</li>
<li data-name="ol.layer.Vector#setSaturation" class="unstable">
<a href="ol.layer.Vector.html#setSaturation">setSaturation</a>
</li>
<li data-name="ol.layer.Vector#setSource" class="">
<a href="ol.layer.Vector.html#setSource">setSource</a>
</li>
<li data-name="ol.layer.Vector#setStyle" class="">
<a href="ol.layer.Vector.html#setStyle">setStyle</a>
</li>
<li data-name="ol.layer.Vector#setVisible" class="">
<a href="ol.layer.Vector.html#setVisible">setVisible</a>
</li>
<li data-name="ol.layer.Vector#un" class="">
<a href="ol.layer.Vector.html#un">un</a>
</li>
<li data-name="ol.layer.Vector#unbind" class="unstable">
<a href="ol.layer.Vector.html#unbind">unbind</a>
</li>
<li data-name="ol.layer.Vector#unbindAll" class="unstable">
<a href="ol.layer.Vector.html#unbindAll">unbindAll</a>
</li>
<li data-name="ol.layer.Vector#unByKey" class="">
<a href="ol.layer.Vector.html#unByKey">unByKey</a>
</li>
</ul>
<ul class="fires itemMembers">
<span class="subtitle">Fires</span>
<li data-name="event:change Triggered when the state of the source changes." class="unstable">
change Triggered when the state of the source changes.
</li>
<li data-name="ol.ObjectEvent#event:change:brightness" class="unstable">
change:brightness
</li>
<li data-name="ol.ObjectEvent#event:change:contrast" class="unstable">
change:contrast
</li>
<li data-name="ol.ObjectEvent#event:change:extent" class="unstable">
change:extent
</li>
<li data-name="ol.ObjectEvent#event:change:hue" class="unstable">
change:hue
</li>
<li data-name="ol.ObjectEvent#event:change:maxResolution" class="unstable">
change:maxResolution
</li>
<li data-name="ol.ObjectEvent#event:change:minResolution" class="unstable">
change:minResolution
</li>
<li data-name="ol.ObjectEvent#event:change:opacity" class="unstable">
change:opacity
</li>
<li data-name="ol.ObjectEvent#event:change:saturation" class="unstable">
change:saturation
</li>
<li data-name="ol.ObjectEvent#event:change:source" class="unstable">
change:source
</li>
<li data-name="ol.ObjectEvent#event:change:visible" class="unstable">
change:visible
</li>
<li data-name="ol.render.Event#event:postcompose" class="unstable">
<a href="ol.render.Event.html#event:postcompose">postcompose</a>
</li>
<li data-name="ol.render.Event#event:precompose" class="unstable">
<a href="ol.render.Event.html#event:precompose">precompose</a>
</li>
<li data-name="ol.ObjectEvent#event:propertychange" class="unstable">
<a href="ol.ObjectEvent.html#event:propertychange">propertychange</a>
</li>
<li data-name="ol.render.Event#event:render" class="unstable">
<a href="ol.render.Event.html#event:render">render</a>
</li>
</ul>
</li>
<li class="item" data-name="ol.loadingstrategy">
<span class="title">
<a href="ol.loadingstrategy.html">ol.loadingstrategy</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.loadingstrategy.all" class="unstable">
<a href="ol.loadingstrategy.html#all">all</a>
</li>
<li data-name="ol.loadingstrategy.bbox" class="unstable">
<a href="ol.loadingstrategy.html#bbox">bbox</a>
</li>
<li data-name="ol.loadingstrategy.createTile" class="unstable">
<a href="ol.loadingstrategy.html#createTile">createTile</a>
</li>
</ul>
<ul class="fires itemMembers">
</ul>
</li>
<li class="item" data-name="ol.proj">
<span class="title">
<a href="ol.proj.html">ol.proj</a>
</span>
<ul class="members itemMembers">
<span class="subtitle">Members</span>
<li data-name="ol.proj.METERS_PER_UNIT"><a href="ol.proj.html#METERS_PER_UNIT">METERS_PER_UNIT</a></li>
</ul>
<ul class="typedefs itemMembers">
<span class="subtitle">Typedefs</span>
<li data-name="ol.proj.ProjectionLike" class="">
<a href="ol.proj.html#ProjectionLike">ProjectionLike</a>
</li>
<li data-name="ol.proj.Units" class="">
<a href="ol.proj.html#Units">Units</a>
</li>
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.proj.addCoordinateTransforms" class="">
<a href="ol.proj.html#addCoordinateTransforms">addCoordinateTransforms</a>
</li>
<li data-name="ol.proj.addEquivalentProjections" class="unstable">
<a href="ol.proj.html#addEquivalentProjections">addEquivalentProjections</a>
</li>
<li data-name="ol.proj.addProjection" class="">
<a href="ol.proj.html#addProjection">addProjection</a>
</li>
<li data-name="ol.proj.get" class="">
<a href="ol.proj.html#get">get</a>
</li>
<li data-name="ol.proj.getTransform" class="">
<a href="ol.proj.html#getTransform">getTransform</a>
</li>
<li data-name="ol.proj.transform" class="">
<a href="ol.proj.html#transform">transform</a>
</li>
<li data-name="ol.proj.transformExtent" class="">
<a href="ol.proj.html#transformExtent">transformExtent</a>
</li>
</ul>
<ul class="fires itemMembers">
</ul>
</li>
<li class="item" data-name="ol.proj.Projection">
<span class="title">
<a href="ol.proj.Projection.html">ol.proj.Projection</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.proj.Projection#getCode" class="">
<a href="ol.proj.Projection.html#getCode">getCode</a>
</li>
<li data-name="ol.proj.Projection#getExtent" class="">
<a href="ol.proj.Projection.html#getExtent">getExtent</a>
</li>
<li data-name="ol.proj.Projection#getMetersPerUnit" class="">
<a href="ol.proj.Projection.html#getMetersPerUnit">getMetersPerUnit</a>
</li>
<li data-name="ol.proj.Projection#getUnits" class="">
<a href="ol.proj.Projection.html#getUnits">getUnits</a>
</li>
<li data-name="ol.proj.Projection#getWorldExtent" class="unstable">
<a href="ol.proj.Projection.html#getWorldExtent">getWorldExtent</a>
</li>
<li data-name="ol.proj.Projection#isGlobal" class="">
<a href="ol.proj.Projection.html#isGlobal">isGlobal</a>
</li>
<li data-name="ol.proj.Projection#setExtent" class="">
<a href="ol.proj.Projection.html#setExtent">setExtent</a>
</li>
<li data-name="ol.proj.Projection#setWorldExtent" class="unstable">
<a href="ol.proj.Projection.html#setWorldExtent">setWorldExtent</a>
</li>
</ul>
<ul class="fires itemMembers">
</ul>
</li>
<li class="item" data-name="ol.render">
<span class="title">
<a href="ol.render.html">ol.render</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
</ul>
<ul class="fires itemMembers">
</ul>
</li>
<li class="item" data-name="ol.render.Event">
<span class="title">
<a href="ol.render.Event.html">ol.render.Event</a>
</span>
<ul class="members itemMembers">
<span class="subtitle">Members</span>
<li data-name="ol.render.Event#context"><a href="ol.render.Event.html#context">context</a></li>
<li data-name="ol.render.Event#frameState"><a href="ol.render.Event.html#frameState">frameState</a></li>
<li data-name="ol.render.Event#glContext"><a href="ol.render.Event.html#glContext">glContext</a></li>
<li data-name="ol.render.Event#vectorContext"><a href="ol.render.Event.html#vectorContext">vectorContext</a></li>
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
</ul>
<ul class="fires itemMembers">
</ul>
</li>
<li class="item" data-name="ol.render.canvas">
<span class="title">
<a href="ol.render.canvas.html">ol.render.canvas</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
</ul>
<ul class="fires itemMembers">
</ul>
</li>
<li class="item" data-name="ol.render.canvas.Immediate">
<span class="title">
<a href="ol.render.canvas.Immediate.html">ol.render.canvas.Immediate</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.render.canvas.Immediate#drawAsync" class="unstable">
<a href="ol.render.canvas.Immediate.html#drawAsync">drawAsync</a>
</li>
<li data-name="ol.render.canvas.Immediate#drawCircleGeometry" class="unstable">
<a href="ol.render.canvas.Immediate.html#drawCircleGeometry">drawCircleGeometry</a>
</li>
<li data-name="ol.render.canvas.Immediate#drawFeature" class="unstable">
<a href="ol.render.canvas.Immediate.html#drawFeature">drawFeature</a>
</li>
<li data-name="ol.render.canvas.Immediate#drawLineStringGeometry" class="unstable">
<a href="ol.render.canvas.Immediate.html#drawLineStringGeometry">drawLineStringGeometry</a>
</li>
<li data-name="ol.render.canvas.Immediate#drawMultiLineStringGeometry" class="unstable">
<a href="ol.render.canvas.Immediate.html#drawMultiLineStringGeometry">drawMultiLineStringGeometry</a>
</li>
<li data-name="ol.render.canvas.Immediate#drawMultiPointGeometry" class="unstable">
<a href="ol.render.canvas.Immediate.html#drawMultiPointGeometry">drawMultiPointGeometry</a>
</li>
<li data-name="ol.render.canvas.Immediate#drawMultiPolygonGeometry" class="unstable">
<a href="ol.render.canvas.Immediate.html#drawMultiPolygonGeometry">drawMultiPolygonGeometry</a>
</li>
<li data-name="ol.render.canvas.Immediate#drawPointGeometry" class="unstable">
<a href="ol.render.canvas.Immediate.html#drawPointGeometry">drawPointGeometry</a>
</li>
<li data-name="ol.render.canvas.Immediate#drawPolygonGeometry" class="unstable">
<a href="ol.render.canvas.Immediate.html#drawPolygonGeometry">drawPolygonGeometry</a>
</li>
<li data-name="ol.render.canvas.Immediate#setFillStrokeStyle" class="unstable">
<a href="ol.render.canvas.Immediate.html#setFillStrokeStyle">setFillStrokeStyle</a>
</li>
<li data-name="ol.render.canvas.Immediate#setImageStyle" class="unstable">
<a href="ol.render.canvas.Immediate.html#setImageStyle">setImageStyle</a>
</li>
<li data-name="ol.render.canvas.Immediate#setTextStyle" class="unstable">
<a href="ol.render.canvas.Immediate.html#setTextStyle">setTextStyle</a>
</li>
</ul>
<ul class="fires itemMembers">
</ul>
</li>
<li class="item" data-name="ol.render.webgl.Immediate">
<span class="title">
<a href="ol.render.webgl.Immediate.html">ol.render.webgl.Immediate</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.render.webgl.Immediate#drawAsync" class="unstable">
<a href="ol.render.webgl.Immediate.html#drawAsync">drawAsync</a>
</li>
<li data-name="ol.render.webgl.Immediate#drawCircleGeometry" class="unstable">
<a href="ol.render.webgl.Immediate.html#drawCircleGeometry">drawCircleGeometry</a>
</li>
<li data-name="ol.render.webgl.Immediate#drawFeature" class="unstable">
<a href="ol.render.webgl.Immediate.html#drawFeature">drawFeature</a>
</li>
<li data-name="ol.render.webgl.Immediate#drawGeometryCollectionGeometry" class="unstable">
<a href="ol.render.webgl.Immediate.html#drawGeometryCollectionGeometry">drawGeometryCollectionGeometry</a>
</li>
<li data-name="ol.render.webgl.Immediate#drawLineStringGeometry" class="unstable">
<a href="ol.render.webgl.Immediate.html#drawLineStringGeometry">drawLineStringGeometry</a>
</li>
<li data-name="ol.render.webgl.Immediate#drawMultiLineStringGeometry" class="unstable">
<a href="ol.render.webgl.Immediate.html#drawMultiLineStringGeometry">drawMultiLineStringGeometry</a>
</li>
<li data-name="ol.render.webgl.Immediate#drawMultiPointGeometry" class="unstable">
<a href="ol.render.webgl.Immediate.html#drawMultiPointGeometry">drawMultiPointGeometry</a>
</li>
<li data-name="ol.render.webgl.Immediate#drawMultiPolygonGeometry" class="unstable">
<a href="ol.render.webgl.Immediate.html#drawMultiPolygonGeometry">drawMultiPolygonGeometry</a>
</li>
<li data-name="ol.render.webgl.Immediate#drawPointGeometry" class="unstable">
<a href="ol.render.webgl.Immediate.html#drawPointGeometry">drawPointGeometry</a>
</li>
<li data-name="ol.render.webgl.Immediate#drawPolygonGeometry" class="unstable">
<a href="ol.render.webgl.Immediate.html#drawPolygonGeometry">drawPolygonGeometry</a>
</li>
<li data-name="ol.render.webgl.Immediate#drawText" class="unstable">
<a href="ol.render.webgl.Immediate.html#drawText">drawText</a>
</li>
<li data-name="ol.render.webgl.Immediate#setFillStrokeStyle" class="unstable">
<a href="ol.render.webgl.Immediate.html#setFillStrokeStyle">setFillStrokeStyle</a>
</li>
<li data-name="ol.render.webgl.Immediate#setImageStyle" class="unstable">
<a href="ol.render.webgl.Immediate.html#setImageStyle">setImageStyle</a>
</li>
<li data-name="ol.render.webgl.Immediate#setTextStyle" class="unstable">
<a href="ol.render.webgl.Immediate.html#setTextStyle">setTextStyle</a>
</li>
</ul>
<ul class="fires itemMembers">
</ul>
</li>
<li class="item" data-name="ol.source">
<span class="title">
<a href="ol.source.html">ol.source</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
<span class="subtitle">Typedefs</span>
<li data-name="ol.source.State" class="unstable">
<a href="ol.source.html#State">State</a>
</li>
<li data-name="ol.source.WMTSRequestEncoding" class="unstable">
<a href="ol.source.html#WMTSRequestEncoding">WMTSRequestEncoding</a>
</li>
</ul>
<ul class="methods itemMembers">
</ul>
<ul class="fires itemMembers">
</ul>
</li>
<li class="item" data-name="ol.source.BingMaps">
<span class="title">
<a href="ol.source.BingMaps.html">ol.source.BingMaps</a>
</span>
<ul class="members itemMembers">
<span class="subtitle">Members</span>
<li data-name="ol.source.BingMaps.TOS_ATTRIBUTION"><a href="ol.source.BingMaps.html#TOS_ATTRIBUTION">TOS_ATTRIBUTION</a></li>
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.source.BingMaps#changed" class="unstable">
<a href="ol.source.BingMaps.html#changed">changed</a>
</li>
<li data-name="ol.source.BingMaps#getAttributions" class="">
<a href="ol.source.BingMaps.html#getAttributions">getAttributions</a>
</li>
<li data-name="ol.source.BingMaps#getLogo" class="">
<a href="ol.source.BingMaps.html#getLogo">getLogo</a>
</li>
<li data-name="ol.source.BingMaps#getProjection" class="unstable">
<a href="ol.source.BingMaps.html#getProjection">getProjection</a>
</li>
<li data-name="ol.source.BingMaps#getRevision" class="unstable">
<a href="ol.source.BingMaps.html#getRevision">getRevision</a>
</li>
<li data-name="ol.source.BingMaps#getState" class="unstable">
<a href="ol.source.BingMaps.html#getState">getState</a>
</li>
<li data-name="ol.source.BingMaps#getTileGrid" class="">
<a href="ol.source.BingMaps.html#getTileGrid">getTileGrid</a>
</li>
<li data-name="ol.source.BingMaps#getTileLoadFunction" class="unstable">
<a href="ol.source.BingMaps.html#getTileLoadFunction">getTileLoadFunction</a>
</li>
<li data-name="ol.source.BingMaps#getTileUrlFunction" class="unstable">
<a href="ol.source.BingMaps.html#getTileUrlFunction">getTileUrlFunction</a>
</li>
<li data-name="ol.source.BingMaps#on" class="">
<a href="ol.source.BingMaps.html#on">on</a>
</li>
<li data-name="ol.source.BingMaps#once" class="">
<a href="ol.source.BingMaps.html#once">once</a>
</li>
<li data-name="ol.source.BingMaps#setTileLoadFunction" class="unstable">
<a href="ol.source.BingMaps.html#setTileLoadFunction">setTileLoadFunction</a>
</li>
<li data-name="ol.source.BingMaps#setTileUrlFunction" class="unstable">
<a href="ol.source.BingMaps.html#setTileUrlFunction">setTileUrlFunction</a>
</li>
<li data-name="ol.source.BingMaps#un" class="">
<a href="ol.source.BingMaps.html#un">un</a>
</li>
<li data-name="ol.source.BingMaps#unByKey" class="">
<a href="ol.source.BingMaps.html#unByKey">unByKey</a>
</li>
</ul>
<ul class="fires itemMembers">
<span class="subtitle">Fires</span>
<li data-name="event:change Triggered when the state of the source changes." class="unstable">
change Triggered when the state of the source changes.
</li>
</ul>
</li>
<li class="item" data-name="ol.source.Cluster">
<span class="title">
<a href="ol.source.Cluster.html">ol.source.Cluster</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.source.Cluster#addFeature" class="">
<a href="ol.source.Cluster.html#addFeature">addFeature</a>
</li>
<li data-name="ol.source.Cluster#addFeatures" class="">
<a href="ol.source.Cluster.html#addFeatures">addFeatures</a>
</li>
<li data-name="ol.source.Cluster#changed" class="unstable">
<a href="ol.source.Cluster.html#changed">changed</a>
</li>
<li data-name="ol.source.Cluster#clear" class="">
<a href="ol.source.Cluster.html#clear">clear</a>
</li>
<li data-name="ol.source.Cluster#forEachFeature" class="">
<a href="ol.source.Cluster.html#forEachFeature">forEachFeature</a>
</li>
<li data-name="ol.source.Cluster#forEachFeatureInExtent" class="unstable">
<a href="ol.source.Cluster.html#forEachFeatureInExtent">forEachFeatureInExtent</a>
</li>
<li data-name="ol.source.Cluster#forEachFeatureIntersectingExtent" class="unstable">
<a href="ol.source.Cluster.html#forEachFeatureIntersectingExtent">forEachFeatureIntersectingExtent</a>
</li>
<li data-name="ol.source.Cluster#getAttributions" class="">
<a href="ol.source.Cluster.html#getAttributions">getAttributions</a>
</li>
<li data-name="ol.source.Cluster#getClosestFeatureToCoordinate" class="">
<a href="ol.source.Cluster.html#getClosestFeatureToCoordinate">getClosestFeatureToCoordinate</a>
</li>
<li data-name="ol.source.Cluster#getExtent" class="">
<a href="ol.source.Cluster.html#getExtent">getExtent</a>
</li>
<li data-name="ol.source.Cluster#getFeatureById" class="">
<a href="ol.source.Cluster.html#getFeatureById">getFeatureById</a>
</li>
<li data-name="ol.source.Cluster#getFeatures" class="">
<a href="ol.source.Cluster.html#getFeatures">getFeatures</a>
</li>
<li data-name="ol.source.Cluster#getFeaturesAtCoordinate" class="">
<a href="ol.source.Cluster.html#getFeaturesAtCoordinate">getFeaturesAtCoordinate</a>
</li>
<li data-name="ol.source.Cluster#getLogo" class="">
<a href="ol.source.Cluster.html#getLogo">getLogo</a>
</li>
<li data-name="ol.source.Cluster#getProjection" class="unstable">
<a href="ol.source.Cluster.html#getProjection">getProjection</a>
</li>
<li data-name="ol.source.Cluster#getRevision" class="unstable">
<a href="ol.source.Cluster.html#getRevision">getRevision</a>
</li>
<li data-name="ol.source.Cluster#getState" class="unstable">
<a href="ol.source.Cluster.html#getState">getState</a>
</li>
<li data-name="ol.source.Cluster#on" class="">
<a href="ol.source.Cluster.html#on">on</a>
</li>
<li data-name="ol.source.Cluster#once" class="">
<a href="ol.source.Cluster.html#once">once</a>
</li>
<li data-name="ol.source.Cluster#removeFeature" class="">
<a href="ol.source.Cluster.html#removeFeature">removeFeature</a>
</li>
<li data-name="ol.source.Cluster#un" class="">
<a href="ol.source.Cluster.html#un">un</a>
</li>
<li data-name="ol.source.Cluster#unByKey" class="">
<a href="ol.source.Cluster.html#unByKey">unByKey</a>
</li>
</ul>
<ul class="fires itemMembers">
<span class="subtitle">Fires</span>
<li data-name="ol.source.VectorEvent#event:addfeature" class="">
<a href="ol.source.VectorEvent.html#event:addfeature">addfeature</a>
</li>
<li data-name="event:change Triggered when the state of the source changes." class="unstable">
change Triggered when the state of the source changes.
</li>
<li data-name="ol.source.VectorEvent#event:changefeature" class="unstable">
<a href="ol.source.VectorEvent.html#event:changefeature">changefeature</a>
</li>
<li data-name="ol.source.VectorEvent#event:clear" class="unstable">
<a href="ol.source.VectorEvent.html#event:clear">clear</a>
</li>
<li data-name="ol.source.VectorEvent#event:removefeature" class="">
<a href="ol.source.VectorEvent.html#event:removefeature">removefeature</a>
</li>
</ul>
</li>
<li class="item" data-name="ol.source.FormatVector">
<span class="title">
<a href="ol.source.FormatVector.html">ol.source.FormatVector</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.source.FormatVector#addFeature" class="">
<a href="ol.source.FormatVector.html#addFeature">addFeature</a>
</li>
<li data-name="ol.source.FormatVector#addFeatures" class="">
<a href="ol.source.FormatVector.html#addFeatures">addFeatures</a>
</li>
<li data-name="ol.source.FormatVector#changed" class="unstable">
<a href="ol.source.FormatVector.html#changed">changed</a>
</li>
<li data-name="ol.source.FormatVector#clear" class="">
<a href="ol.source.FormatVector.html#clear">clear</a>
</li>
<li data-name="ol.source.FormatVector#forEachFeature" class="">
<a href="ol.source.FormatVector.html#forEachFeature">forEachFeature</a>
</li>
<li data-name="ol.source.FormatVector#forEachFeatureInExtent" class="unstable">
<a href="ol.source.FormatVector.html#forEachFeatureInExtent">forEachFeatureInExtent</a>
</li>
<li data-name="ol.source.FormatVector#forEachFeatureIntersectingExtent" class="unstable">
<a href="ol.source.FormatVector.html#forEachFeatureIntersectingExtent">forEachFeatureIntersectingExtent</a>
</li>
<li data-name="ol.source.FormatVector#getAttributions" class="">
<a href="ol.source.FormatVector.html#getAttributions">getAttributions</a>
</li>
<li data-name="ol.source.FormatVector#getClosestFeatureToCoordinate" class="">
<a href="ol.source.FormatVector.html#getClosestFeatureToCoordinate">getClosestFeatureToCoordinate</a>
</li>
<li data-name="ol.source.FormatVector#getExtent" class="">
<a href="ol.source.FormatVector.html#getExtent">getExtent</a>
</li>
<li data-name="ol.source.FormatVector#getFeatureById" class="">
<a href="ol.source.FormatVector.html#getFeatureById">getFeatureById</a>
</li>
<li data-name="ol.source.FormatVector#getFeatures" class="">
<a href="ol.source.FormatVector.html#getFeatures">getFeatures</a>
</li>
<li data-name="ol.source.FormatVector#getFeaturesAtCoordinate" class="">
<a href="ol.source.FormatVector.html#getFeaturesAtCoordinate">getFeaturesAtCoordinate</a>
</li>
<li data-name="ol.source.FormatVector#getLogo" class="">
<a href="ol.source.FormatVector.html#getLogo">getLogo</a>
</li>
<li data-name="ol.source.FormatVector#getProjection" class="unstable">
<a href="ol.source.FormatVector.html#getProjection">getProjection</a>
</li>
<li data-name="ol.source.FormatVector#getRevision" class="unstable">
<a href="ol.source.FormatVector.html#getRevision">getRevision</a>
</li>
<li data-name="ol.source.FormatVector#getState" class="unstable">
<a href="ol.source.FormatVector.html#getState">getState</a>
</li>
<li data-name="ol.source.FormatVector#on" class="">
<a href="ol.source.FormatVector.html#on">on</a>
</li>
<li data-name="ol.source.FormatVector#once" class="">
<a href="ol.source.FormatVector.html#once">once</a>
</li>
<li data-name="ol.source.FormatVector#readFeatures" class="unstable">
<a href="ol.source.FormatVector.html#readFeatures">readFeatures</a>
</li>
<li data-name="ol.source.FormatVector#removeFeature" class="">
<a href="ol.source.FormatVector.html#removeFeature">removeFeature</a>
</li>
<li data-name="ol.source.FormatVector#un" class="">
<a href="ol.source.FormatVector.html#un">un</a>
</li>
<li data-name="ol.source.FormatVector#unByKey" class="">
<a href="ol.source.FormatVector.html#unByKey">unByKey</a>
</li>
</ul>
<ul class="fires itemMembers">
<span class="subtitle">Fires</span>
<li data-name="ol.source.VectorEvent#event:addfeature" class="">
<a href="ol.source.VectorEvent.html#event:addfeature">addfeature</a>
</li>
<li data-name="event:change Triggered when the state of the source changes." class="unstable">
change Triggered when the state of the source changes.
</li>
<li data-name="ol.source.VectorEvent#event:changefeature" class="unstable">
<a href="ol.source.VectorEvent.html#event:changefeature">changefeature</a>
</li>
<li data-name="ol.source.VectorEvent#event:clear" class="unstable">
<a href="ol.source.VectorEvent.html#event:clear">clear</a>
</li>
<li data-name="ol.source.VectorEvent#event:removefeature" class="">
<a href="ol.source.VectorEvent.html#event:removefeature">removefeature</a>
</li>
</ul>
</li>
<li class="item" data-name="ol.source.GPX">
<span class="title">
<a href="ol.source.GPX.html">ol.source.GPX</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.source.GPX#addFeature" class="">
<a href="ol.source.GPX.html#addFeature">addFeature</a>
</li>
<li data-name="ol.source.GPX#addFeatures" class="">
<a href="ol.source.GPX.html#addFeatures">addFeatures</a>
</li>
<li data-name="ol.source.GPX#changed" class="unstable">
<a href="ol.source.GPX.html#changed">changed</a>
</li>
<li data-name="ol.source.GPX#clear" class="">
<a href="ol.source.GPX.html#clear">clear</a>
</li>
<li data-name="ol.source.GPX#forEachFeature" class="">
<a href="ol.source.GPX.html#forEachFeature">forEachFeature</a>
</li>
<li data-name="ol.source.GPX#forEachFeatureInExtent" class="unstable">
<a href="ol.source.GPX.html#forEachFeatureInExtent">forEachFeatureInExtent</a>
</li>
<li data-name="ol.source.GPX#forEachFeatureIntersectingExtent" class="unstable">
<a href="ol.source.GPX.html#forEachFeatureIntersectingExtent">forEachFeatureIntersectingExtent</a>
</li>
<li data-name="ol.source.GPX#getAttributions" class="">
<a href="ol.source.GPX.html#getAttributions">getAttributions</a>
</li>
<li data-name="ol.source.GPX#getClosestFeatureToCoordinate" class="">
<a href="ol.source.GPX.html#getClosestFeatureToCoordinate">getClosestFeatureToCoordinate</a>
</li>
<li data-name="ol.source.GPX#getExtent" class="">
<a href="ol.source.GPX.html#getExtent">getExtent</a>
</li>
<li data-name="ol.source.GPX#getFeatureById" class="">
<a href="ol.source.GPX.html#getFeatureById">getFeatureById</a>
</li>
<li data-name="ol.source.GPX#getFeatures" class="">
<a href="ol.source.GPX.html#getFeatures">getFeatures</a>
</li>
<li data-name="ol.source.GPX#getFeaturesAtCoordinate" class="">
<a href="ol.source.GPX.html#getFeaturesAtCoordinate">getFeaturesAtCoordinate</a>
</li>
<li data-name="ol.source.GPX#getLogo" class="">
<a href="ol.source.GPX.html#getLogo">getLogo</a>
</li>
<li data-name="ol.source.GPX#getProjection" class="unstable">
<a href="ol.source.GPX.html#getProjection">getProjection</a>
</li>
<li data-name="ol.source.GPX#getRevision" class="unstable">
<a href="ol.source.GPX.html#getRevision">getRevision</a>
</li>
<li data-name="ol.source.GPX#getState" class="unstable">
<a href="ol.source.GPX.html#getState">getState</a>
</li>
<li data-name="ol.source.GPX#on" class="">
<a href="ol.source.GPX.html#on">on</a>
</li>
<li data-name="ol.source.GPX#once" class="">
<a href="ol.source.GPX.html#once">once</a>
</li>
<li data-name="ol.source.GPX#readFeatures" class="unstable">
<a href="ol.source.GPX.html#readFeatures">readFeatures</a>
</li>
<li data-name="ol.source.GPX#removeFeature" class="">
<a href="ol.source.GPX.html#removeFeature">removeFeature</a>
</li>
<li data-name="ol.source.GPX#un" class="">
<a href="ol.source.GPX.html#un">un</a>
</li>
<li data-name="ol.source.GPX#unByKey" class="">
<a href="ol.source.GPX.html#unByKey">unByKey</a>
</li>
</ul>
<ul class="fires itemMembers">
<span class="subtitle">Fires</span>
<li data-name="ol.source.VectorEvent#event:addfeature" class="">
<a href="ol.source.VectorEvent.html#event:addfeature">addfeature</a>
</li>
<li data-name="event:change Triggered when the state of the source changes." class="unstable">
change Triggered when the state of the source changes.
</li>
<li data-name="ol.source.VectorEvent#event:changefeature" class="unstable">
<a href="ol.source.VectorEvent.html#event:changefeature">changefeature</a>
</li>
<li data-name="ol.source.VectorEvent#event:clear" class="unstable">
<a href="ol.source.VectorEvent.html#event:clear">clear</a>
</li>
<li data-name="ol.source.VectorEvent#event:removefeature" class="">
<a href="ol.source.VectorEvent.html#event:removefeature">removefeature</a>
</li>
</ul>
</li>
<li class="item" data-name="ol.source.GeoJSON">
<span class="title">
<a href="ol.source.GeoJSON.html">ol.source.GeoJSON</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.source.GeoJSON#addFeature" class="">
<a href="ol.source.GeoJSON.html#addFeature">addFeature</a>
</li>
<li data-name="ol.source.GeoJSON#addFeatures" class="">
<a href="ol.source.GeoJSON.html#addFeatures">addFeatures</a>
</li>
<li data-name="ol.source.GeoJSON#changed" class="unstable">
<a href="ol.source.GeoJSON.html#changed">changed</a>
</li>
<li data-name="ol.source.GeoJSON#clear" class="">
<a href="ol.source.GeoJSON.html#clear">clear</a>
</li>
<li data-name="ol.source.GeoJSON#forEachFeature" class="">
<a href="ol.source.GeoJSON.html#forEachFeature">forEachFeature</a>
</li>
<li data-name="ol.source.GeoJSON#forEachFeatureInExtent" class="unstable">
<a href="ol.source.GeoJSON.html#forEachFeatureInExtent">forEachFeatureInExtent</a>
</li>
<li data-name="ol.source.GeoJSON#forEachFeatureIntersectingExtent" class="unstable">
<a href="ol.source.GeoJSON.html#forEachFeatureIntersectingExtent">forEachFeatureIntersectingExtent</a>
</li>
<li data-name="ol.source.GeoJSON#getAttributions" class="">
<a href="ol.source.GeoJSON.html#getAttributions">getAttributions</a>
</li>
<li data-name="ol.source.GeoJSON#getClosestFeatureToCoordinate" class="">
<a href="ol.source.GeoJSON.html#getClosestFeatureToCoordinate">getClosestFeatureToCoordinate</a>
</li>
<li data-name="ol.source.GeoJSON#getExtent" class="">
<a href="ol.source.GeoJSON.html#getExtent">getExtent</a>
</li>
<li data-name="ol.source.GeoJSON#getFeatureById" class="">
<a href="ol.source.GeoJSON.html#getFeatureById">getFeatureById</a>
</li>
<li data-name="ol.source.GeoJSON#getFeatures" class="">
<a href="ol.source.GeoJSON.html#getFeatures">getFeatures</a>
</li>
<li data-name="ol.source.GeoJSON#getFeaturesAtCoordinate" class="">
<a href="ol.source.GeoJSON.html#getFeaturesAtCoordinate">getFeaturesAtCoordinate</a>
</li>
<li data-name="ol.source.GeoJSON#getLogo" class="">
<a href="ol.source.GeoJSON.html#getLogo">getLogo</a>
</li>
<li data-name="ol.source.GeoJSON#getProjection" class="unstable">
<a href="ol.source.GeoJSON.html#getProjection">getProjection</a>
</li>
<li data-name="ol.source.GeoJSON#getRevision" class="unstable">
<a href="ol.source.GeoJSON.html#getRevision">getRevision</a>
</li>
<li data-name="ol.source.GeoJSON#getState" class="unstable">
<a href="ol.source.GeoJSON.html#getState">getState</a>
</li>
<li data-name="ol.source.GeoJSON#on" class="">
<a href="ol.source.GeoJSON.html#on">on</a>
</li>
<li data-name="ol.source.GeoJSON#once" class="">
<a href="ol.source.GeoJSON.html#once">once</a>
</li>
<li data-name="ol.source.GeoJSON#readFeatures" class="unstable">
<a href="ol.source.GeoJSON.html#readFeatures">readFeatures</a>
</li>
<li data-name="ol.source.GeoJSON#removeFeature" class="">
<a href="ol.source.GeoJSON.html#removeFeature">removeFeature</a>
</li>
<li data-name="ol.source.GeoJSON#un" class="">
<a href="ol.source.GeoJSON.html#un">un</a>
</li>
<li data-name="ol.source.GeoJSON#unByKey" class="">
<a href="ol.source.GeoJSON.html#unByKey">unByKey</a>
</li>
</ul>
<ul class="fires itemMembers">
<span class="subtitle">Fires</span>
<li data-name="ol.source.VectorEvent#event:addfeature" class="">
<a href="ol.source.VectorEvent.html#event:addfeature">addfeature</a>
</li>
<li data-name="event:change Triggered when the state of the source changes." class="unstable">
change Triggered when the state of the source changes.
</li>
<li data-name="ol.source.VectorEvent#event:changefeature" class="unstable">
<a href="ol.source.VectorEvent.html#event:changefeature">changefeature</a>
</li>
<li data-name="ol.source.VectorEvent#event:clear" class="unstable">
<a href="ol.source.VectorEvent.html#event:clear">clear</a>
</li>
<li data-name="ol.source.VectorEvent#event:removefeature" class="">
<a href="ol.source.VectorEvent.html#event:removefeature">removefeature</a>
</li>
</ul>
</li>
<li class="item" data-name="ol.source.IGC">
<span class="title">
<a href="ol.source.IGC.html">ol.source.IGC</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.source.IGC#addFeature" class="">
<a href="ol.source.IGC.html#addFeature">addFeature</a>
</li>
<li data-name="ol.source.IGC#addFeatures" class="">
<a href="ol.source.IGC.html#addFeatures">addFeatures</a>
</li>
<li data-name="ol.source.IGC#changed" class="unstable">
<a href="ol.source.IGC.html#changed">changed</a>
</li>
<li data-name="ol.source.IGC#clear" class="">
<a href="ol.source.IGC.html#clear">clear</a>
</li>
<li data-name="ol.source.IGC#forEachFeature" class="">
<a href="ol.source.IGC.html#forEachFeature">forEachFeature</a>
</li>
<li data-name="ol.source.IGC#forEachFeatureInExtent" class="unstable">
<a href="ol.source.IGC.html#forEachFeatureInExtent">forEachFeatureInExtent</a>
</li>
<li data-name="ol.source.IGC#forEachFeatureIntersectingExtent" class="unstable">
<a href="ol.source.IGC.html#forEachFeatureIntersectingExtent">forEachFeatureIntersectingExtent</a>
</li>
<li data-name="ol.source.IGC#getAttributions" class="">
<a href="ol.source.IGC.html#getAttributions">getAttributions</a>
</li>
<li data-name="ol.source.IGC#getClosestFeatureToCoordinate" class="">
<a href="ol.source.IGC.html#getClosestFeatureToCoordinate">getClosestFeatureToCoordinate</a>
</li>
<li data-name="ol.source.IGC#getExtent" class="">
<a href="ol.source.IGC.html#getExtent">getExtent</a>
</li>
<li data-name="ol.source.IGC#getFeatureById" class="">
<a href="ol.source.IGC.html#getFeatureById">getFeatureById</a>
</li>
<li data-name="ol.source.IGC#getFeatures" class="">
<a href="ol.source.IGC.html#getFeatures">getFeatures</a>
</li>
<li data-name="ol.source.IGC#getFeaturesAtCoordinate" class="">
<a href="ol.source.IGC.html#getFeaturesAtCoordinate">getFeaturesAtCoordinate</a>
</li>
<li data-name="ol.source.IGC#getLogo" class="">
<a href="ol.source.IGC.html#getLogo">getLogo</a>
</li>
<li data-name="ol.source.IGC#getProjection" class="unstable">
<a href="ol.source.IGC.html#getProjection">getProjection</a>
</li>
<li data-name="ol.source.IGC#getRevision" class="unstable">
<a href="ol.source.IGC.html#getRevision">getRevision</a>
</li>
<li data-name="ol.source.IGC#getState" class="unstable">
<a href="ol.source.IGC.html#getState">getState</a>
</li>
<li data-name="ol.source.IGC#on" class="">
<a href="ol.source.IGC.html#on">on</a>
</li>
<li data-name="ol.source.IGC#once" class="">
<a href="ol.source.IGC.html#once">once</a>
</li>
<li data-name="ol.source.IGC#readFeatures" class="unstable">
<a href="ol.source.IGC.html#readFeatures">readFeatures</a>
</li>
<li data-name="ol.source.IGC#removeFeature" class="">
<a href="ol.source.IGC.html#removeFeature">removeFeature</a>
</li>
<li data-name="ol.source.IGC#un" class="">
<a href="ol.source.IGC.html#un">un</a>
</li>
<li data-name="ol.source.IGC#unByKey" class="">
<a href="ol.source.IGC.html#unByKey">unByKey</a>
</li>
</ul>
<ul class="fires itemMembers">
<span class="subtitle">Fires</span>
<li data-name="ol.source.VectorEvent#event:addfeature" class="">
<a href="ol.source.VectorEvent.html#event:addfeature">addfeature</a>
</li>
<li data-name="event:change Triggered when the state of the source changes." class="unstable">
change Triggered when the state of the source changes.
</li>
<li data-name="ol.source.VectorEvent#event:changefeature" class="unstable">
<a href="ol.source.VectorEvent.html#event:changefeature">changefeature</a>
</li>
<li data-name="ol.source.VectorEvent#event:clear" class="unstable">
<a href="ol.source.VectorEvent.html#event:clear">clear</a>
</li>
<li data-name="ol.source.VectorEvent#event:removefeature" class="">
<a href="ol.source.VectorEvent.html#event:removefeature">removefeature</a>
</li>
</ul>
</li>
<li class="item" data-name="ol.source.Image">
<span class="title">
<a href="ol.source.Image.html">ol.source.Image</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.source.Image#changed" class="unstable">
<a href="ol.source.Image.html#changed">changed</a>
</li>
<li data-name="ol.source.Image#getAttributions" class="">
<a href="ol.source.Image.html#getAttributions">getAttributions</a>
</li>
<li data-name="ol.source.Image#getLogo" class="">
<a href="ol.source.Image.html#getLogo">getLogo</a>
</li>
<li data-name="ol.source.Image#getProjection" class="unstable">
<a href="ol.source.Image.html#getProjection">getProjection</a>
</li>
<li data-name="ol.source.Image#getRevision" class="unstable">
<a href="ol.source.Image.html#getRevision">getRevision</a>
</li>
<li data-name="ol.source.Image#getState" class="unstable">
<a href="ol.source.Image.html#getState">getState</a>
</li>
<li data-name="ol.source.Image#on" class="">
<a href="ol.source.Image.html#on">on</a>
</li>
<li data-name="ol.source.Image#once" class="">
<a href="ol.source.Image.html#once">once</a>
</li>
<li data-name="ol.source.Image#un" class="">
<a href="ol.source.Image.html#un">un</a>
</li>
<li data-name="ol.source.Image#unByKey" class="">
<a href="ol.source.Image.html#unByKey">unByKey</a>
</li>
</ul>
<ul class="fires itemMembers">
<span class="subtitle">Fires</span>
<li data-name="event:change Triggered when the state of the source changes." class="unstable">
change Triggered when the state of the source changes.
</li>
</ul>
</li>
<li class="item" data-name="ol.source.ImageCanvas">
<span class="title">
<a href="ol.source.ImageCanvas.html">ol.source.ImageCanvas</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.source.ImageCanvas#changed" class="unstable">
<a href="ol.source.ImageCanvas.html#changed">changed</a>
</li>
<li data-name="ol.source.ImageCanvas#getAttributions" class="">
<a href="ol.source.ImageCanvas.html#getAttributions">getAttributions</a>
</li>
<li data-name="ol.source.ImageCanvas#getLogo" class="">
<a href="ol.source.ImageCanvas.html#getLogo">getLogo</a>
</li>
<li data-name="ol.source.ImageCanvas#getProjection" class="unstable">
<a href="ol.source.ImageCanvas.html#getProjection">getProjection</a>
</li>
<li data-name="ol.source.ImageCanvas#getRevision" class="unstable">
<a href="ol.source.ImageCanvas.html#getRevision">getRevision</a>
</li>
<li data-name="ol.source.ImageCanvas#getState" class="unstable">
<a href="ol.source.ImageCanvas.html#getState">getState</a>
</li>
<li data-name="ol.source.ImageCanvas#on" class="">
<a href="ol.source.ImageCanvas.html#on">on</a>
</li>
<li data-name="ol.source.ImageCanvas#once" class="">
<a href="ol.source.ImageCanvas.html#once">once</a>
</li>
<li data-name="ol.source.ImageCanvas#un" class="">
<a href="ol.source.ImageCanvas.html#un">un</a>
</li>
<li data-name="ol.source.ImageCanvas#unByKey" class="">
<a href="ol.source.ImageCanvas.html#unByKey">unByKey</a>
</li>
</ul>
<ul class="fires itemMembers">
<span class="subtitle">Fires</span>
<li data-name="event:change Triggered when the state of the source changes." class="unstable">
change Triggered when the state of the source changes.
</li>
</ul>
</li>
<li class="item" data-name="ol.source.ImageMapGuide">
<span class="title">
<a href="ol.source.ImageMapGuide.html">ol.source.ImageMapGuide</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.source.ImageMapGuide#changed" class="unstable">
<a href="ol.source.ImageMapGuide.html#changed">changed</a>
</li>
<li data-name="ol.source.ImageMapGuide#getAttributions" class="">
<a href="ol.source.ImageMapGuide.html#getAttributions">getAttributions</a>
</li>
<li data-name="ol.source.ImageMapGuide#getImageLoadFunction" class="unstable">
<a href="ol.source.ImageMapGuide.html#getImageLoadFunction">getImageLoadFunction</a>
</li>
<li data-name="ol.source.ImageMapGuide#getLogo" class="">
<a href="ol.source.ImageMapGuide.html#getLogo">getLogo</a>
</li>
<li data-name="ol.source.ImageMapGuide#getParams" class="">
<a href="ol.source.ImageMapGuide.html#getParams">getParams</a>
</li>
<li data-name="ol.source.ImageMapGuide#getProjection" class="unstable">
<a href="ol.source.ImageMapGuide.html#getProjection">getProjection</a>
</li>
<li data-name="ol.source.ImageMapGuide#getRevision" class="unstable">
<a href="ol.source.ImageMapGuide.html#getRevision">getRevision</a>
</li>
<li data-name="ol.source.ImageMapGuide#getState" class="unstable">
<a href="ol.source.ImageMapGuide.html#getState">getState</a>
</li>
<li data-name="ol.source.ImageMapGuide#on" class="">
<a href="ol.source.ImageMapGuide.html#on">on</a>
</li>
<li data-name="ol.source.ImageMapGuide#once" class="">
<a href="ol.source.ImageMapGuide.html#once">once</a>
</li>
<li data-name="ol.source.ImageMapGuide#setImageLoadFunction" class="unstable">
<a href="ol.source.ImageMapGuide.html#setImageLoadFunction">setImageLoadFunction</a>
</li>
<li data-name="ol.source.ImageMapGuide#un" class="">
<a href="ol.source.ImageMapGuide.html#un">un</a>
</li>
<li data-name="ol.source.ImageMapGuide#unByKey" class="">
<a href="ol.source.ImageMapGuide.html#unByKey">unByKey</a>
</li>
<li data-name="ol.source.ImageMapGuide#updateParams" class="">
<a href="ol.source.ImageMapGuide.html#updateParams">updateParams</a>
</li>
</ul>
<ul class="fires itemMembers">
<span class="subtitle">Fires</span>
<li data-name="event:change Triggered when the state of the source changes." class="unstable">
change Triggered when the state of the source changes.
</li>
</ul>
</li>
<li class="item" data-name="ol.source.ImageStatic">
<span class="title">
<a href="ol.source.ImageStatic.html">ol.source.ImageStatic</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.source.ImageStatic#changed" class="unstable">
<a href="ol.source.ImageStatic.html#changed">changed</a>
</li>
<li data-name="ol.source.ImageStatic#getAttributions" class="">
<a href="ol.source.ImageStatic.html#getAttributions">getAttributions</a>
</li>
<li data-name="ol.source.ImageStatic#getLogo" class="">
<a href="ol.source.ImageStatic.html#getLogo">getLogo</a>
</li>
<li data-name="ol.source.ImageStatic#getProjection" class="unstable">
<a href="ol.source.ImageStatic.html#getProjection">getProjection</a>
</li>
<li data-name="ol.source.ImageStatic#getRevision" class="unstable">
<a href="ol.source.ImageStatic.html#getRevision">getRevision</a>
</li>
<li data-name="ol.source.ImageStatic#getState" class="unstable">
<a href="ol.source.ImageStatic.html#getState">getState</a>
</li>
<li data-name="ol.source.ImageStatic#on" class="">
<a href="ol.source.ImageStatic.html#on">on</a>
</li>
<li data-name="ol.source.ImageStatic#once" class="">
<a href="ol.source.ImageStatic.html#once">once</a>
</li>
<li data-name="ol.source.ImageStatic#un" class="">
<a href="ol.source.ImageStatic.html#un">un</a>
</li>
<li data-name="ol.source.ImageStatic#unByKey" class="">
<a href="ol.source.ImageStatic.html#unByKey">unByKey</a>
</li>
</ul>
<ul class="fires itemMembers">
<span class="subtitle">Fires</span>
<li data-name="event:change Triggered when the state of the source changes." class="unstable">
change Triggered when the state of the source changes.
</li>
</ul>
</li>
<li class="item" data-name="ol.source.ImageVector">
<span class="title">
<a href="ol.source.ImageVector.html">ol.source.ImageVector</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.source.ImageVector#changed" class="unstable">
<a href="ol.source.ImageVector.html#changed">changed</a>
</li>
<li data-name="ol.source.ImageVector#getAttributions" class="">
<a href="ol.source.ImageVector.html#getAttributions">getAttributions</a>
</li>
<li data-name="ol.source.ImageVector#getLogo" class="">
<a href="ol.source.ImageVector.html#getLogo">getLogo</a>
</li>
<li data-name="ol.source.ImageVector#getProjection" class="unstable">
<a href="ol.source.ImageVector.html#getProjection">getProjection</a>
</li>
<li data-name="ol.source.ImageVector#getRevision" class="unstable">
<a href="ol.source.ImageVector.html#getRevision">getRevision</a>
</li>
<li data-name="ol.source.ImageVector#getSource" class="unstable">
<a href="ol.source.ImageVector.html#getSource">getSource</a>
</li>
<li data-name="ol.source.ImageVector#getState" class="unstable">
<a href="ol.source.ImageVector.html#getState">getState</a>
</li>
<li data-name="ol.source.ImageVector#getStyle" class="">
<a href="ol.source.ImageVector.html#getStyle">getStyle</a>
</li>
<li data-name="ol.source.ImageVector#getStyleFunction" class="">
<a href="ol.source.ImageVector.html#getStyleFunction">getStyleFunction</a>
</li>
<li data-name="ol.source.ImageVector#on" class="">
<a href="ol.source.ImageVector.html#on">on</a>
</li>
<li data-name="ol.source.ImageVector#once" class="">
<a href="ol.source.ImageVector.html#once">once</a>
</li>
<li data-name="ol.source.ImageVector#setStyle" class="">
<a href="ol.source.ImageVector.html#setStyle">setStyle</a>
</li>
<li data-name="ol.source.ImageVector#un" class="">
<a href="ol.source.ImageVector.html#un">un</a>
</li>
<li data-name="ol.source.ImageVector#unByKey" class="">
<a href="ol.source.ImageVector.html#unByKey">unByKey</a>
</li>
</ul>
<ul class="fires itemMembers">
<span class="subtitle">Fires</span>
<li data-name="event:change Triggered when the state of the source changes." class="unstable">
change Triggered when the state of the source changes.
</li>
</ul>
</li>
<li class="item" data-name="ol.source.ImageWMS">
<span class="title">
<a href="ol.source.ImageWMS.html">ol.source.ImageWMS</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.source.ImageWMS#changed" class="unstable">
<a href="ol.source.ImageWMS.html#changed">changed</a>
</li>
<li data-name="ol.source.ImageWMS#getAttributions" class="">
<a href="ol.source.ImageWMS.html#getAttributions">getAttributions</a>
</li>
<li data-name="ol.source.ImageWMS#getGetFeatureInfoUrl" class="">
<a href="ol.source.ImageWMS.html#getGetFeatureInfoUrl">getGetFeatureInfoUrl</a>
</li>
<li data-name="ol.source.ImageWMS#getImageLoadFunction" class="unstable">
<a href="ol.source.ImageWMS.html#getImageLoadFunction">getImageLoadFunction</a>
</li>
<li data-name="ol.source.ImageWMS#getLogo" class="">
<a href="ol.source.ImageWMS.html#getLogo">getLogo</a>
</li>
<li data-name="ol.source.ImageWMS#getParams" class="">
<a href="ol.source.ImageWMS.html#getParams">getParams</a>
</li>
<li data-name="ol.source.ImageWMS#getProjection" class="unstable">
<a href="ol.source.ImageWMS.html#getProjection">getProjection</a>
</li>
<li data-name="ol.source.ImageWMS#getRevision" class="unstable">
<a href="ol.source.ImageWMS.html#getRevision">getRevision</a>
</li>
<li data-name="ol.source.ImageWMS#getState" class="unstable">
<a href="ol.source.ImageWMS.html#getState">getState</a>
</li>
<li data-name="ol.source.ImageWMS#getUrl" class="">
<a href="ol.source.ImageWMS.html#getUrl">getUrl</a>
</li>
<li data-name="ol.source.ImageWMS#on" class="">
<a href="ol.source.ImageWMS.html#on">on</a>
</li>
<li data-name="ol.source.ImageWMS#once" class="">
<a href="ol.source.ImageWMS.html#once">once</a>
</li>
<li data-name="ol.source.ImageWMS#setImageLoadFunction" class="unstable">
<a href="ol.source.ImageWMS.html#setImageLoadFunction">setImageLoadFunction</a>
</li>
<li data-name="ol.source.ImageWMS#setUrl" class="">
<a href="ol.source.ImageWMS.html#setUrl">setUrl</a>
</li>
<li data-name="ol.source.ImageWMS#un" class="">
<a href="ol.source.ImageWMS.html#un">un</a>
</li>
<li data-name="ol.source.ImageWMS#unByKey" class="">
<a href="ol.source.ImageWMS.html#unByKey">unByKey</a>
</li>
<li data-name="ol.source.ImageWMS#updateParams" class="">
<a href="ol.source.ImageWMS.html#updateParams">updateParams</a>
</li>
</ul>
<ul class="fires itemMembers">
<span class="subtitle">Fires</span>
<li data-name="event:change Triggered when the state of the source changes." class="unstable">
change Triggered when the state of the source changes.
</li>
</ul>
</li>
<li class="item" data-name="ol.source.KML">
<span class="title">
<a href="ol.source.KML.html">ol.source.KML</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.source.KML#addFeature" class="">
<a href="ol.source.KML.html#addFeature">addFeature</a>
</li>
<li data-name="ol.source.KML#addFeatures" class="">
<a href="ol.source.KML.html#addFeatures">addFeatures</a>
</li>
<li data-name="ol.source.KML#changed" class="unstable">
<a href="ol.source.KML.html#changed">changed</a>
</li>
<li data-name="ol.source.KML#clear" class="">
<a href="ol.source.KML.html#clear">clear</a>
</li>
<li data-name="ol.source.KML#forEachFeature" class="">
<a href="ol.source.KML.html#forEachFeature">forEachFeature</a>
</li>
<li data-name="ol.source.KML#forEachFeatureInExtent" class="unstable">
<a href="ol.source.KML.html#forEachFeatureInExtent">forEachFeatureInExtent</a>
</li>
<li data-name="ol.source.KML#forEachFeatureIntersectingExtent" class="unstable">
<a href="ol.source.KML.html#forEachFeatureIntersectingExtent">forEachFeatureIntersectingExtent</a>
</li>
<li data-name="ol.source.KML#getAttributions" class="">
<a href="ol.source.KML.html#getAttributions">getAttributions</a>
</li>
<li data-name="ol.source.KML#getClosestFeatureToCoordinate" class="">
<a href="ol.source.KML.html#getClosestFeatureToCoordinate">getClosestFeatureToCoordinate</a>
</li>
<li data-name="ol.source.KML#getExtent" class="">
<a href="ol.source.KML.html#getExtent">getExtent</a>
</li>
<li data-name="ol.source.KML#getFeatureById" class="">
<a href="ol.source.KML.html#getFeatureById">getFeatureById</a>
</li>
<li data-name="ol.source.KML#getFeatures" class="">
<a href="ol.source.KML.html#getFeatures">getFeatures</a>
</li>
<li data-name="ol.source.KML#getFeaturesAtCoordinate" class="">
<a href="ol.source.KML.html#getFeaturesAtCoordinate">getFeaturesAtCoordinate</a>
</li>
<li data-name="ol.source.KML#getLogo" class="">
<a href="ol.source.KML.html#getLogo">getLogo</a>
</li>
<li data-name="ol.source.KML#getProjection" class="unstable">
<a href="ol.source.KML.html#getProjection">getProjection</a>
</li>
<li data-name="ol.source.KML#getRevision" class="unstable">
<a href="ol.source.KML.html#getRevision">getRevision</a>
</li>
<li data-name="ol.source.KML#getState" class="unstable">
<a href="ol.source.KML.html#getState">getState</a>
</li>
<li data-name="ol.source.KML#on" class="">
<a href="ol.source.KML.html#on">on</a>
</li>
<li data-name="ol.source.KML#once" class="">
<a href="ol.source.KML.html#once">once</a>
</li>
<li data-name="ol.source.KML#readFeatures" class="unstable">
<a href="ol.source.KML.html#readFeatures">readFeatures</a>
</li>
<li data-name="ol.source.KML#removeFeature" class="">
<a href="ol.source.KML.html#removeFeature">removeFeature</a>
</li>
<li data-name="ol.source.KML#un" class="">
<a href="ol.source.KML.html#un">un</a>
</li>
<li data-name="ol.source.KML#unByKey" class="">
<a href="ol.source.KML.html#unByKey">unByKey</a>
</li>
</ul>
<ul class="fires itemMembers">
<span class="subtitle">Fires</span>
<li data-name="ol.source.VectorEvent#event:addfeature" class="">
<a href="ol.source.VectorEvent.html#event:addfeature">addfeature</a>
</li>
<li data-name="event:change Triggered when the state of the source changes." class="unstable">
change Triggered when the state of the source changes.
</li>
<li data-name="ol.source.VectorEvent#event:changefeature" class="unstable">
<a href="ol.source.VectorEvent.html#event:changefeature">changefeature</a>
</li>
<li data-name="ol.source.VectorEvent#event:clear" class="unstable">
<a href="ol.source.VectorEvent.html#event:clear">clear</a>
</li>
<li data-name="ol.source.VectorEvent#event:removefeature" class="">
<a href="ol.source.VectorEvent.html#event:removefeature">removefeature</a>
</li>
</ul>
</li>
<li class="item" data-name="ol.source.MapQuest">
<span class="title">
<a href="ol.source.MapQuest.html">ol.source.MapQuest</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.source.MapQuest#changed" class="unstable">
<a href="ol.source.MapQuest.html#changed">changed</a>
</li>
<li data-name="ol.source.MapQuest#getAttributions" class="">
<a href="ol.source.MapQuest.html#getAttributions">getAttributions</a>
</li>
<li data-name="ol.source.MapQuest#getLogo" class="">
<a href="ol.source.MapQuest.html#getLogo">getLogo</a>
</li>
<li data-name="ol.source.MapQuest#getProjection" class="unstable">
<a href="ol.source.MapQuest.html#getProjection">getProjection</a>
</li>
<li data-name="ol.source.MapQuest#getRevision" class="unstable">
<a href="ol.source.MapQuest.html#getRevision">getRevision</a>
</li>
<li data-name="ol.source.MapQuest#getState" class="unstable">
<a href="ol.source.MapQuest.html#getState">getState</a>
</li>
<li data-name="ol.source.MapQuest#getTileGrid" class="">
<a href="ol.source.MapQuest.html#getTileGrid">getTileGrid</a>
</li>
<li data-name="ol.source.MapQuest#getTileLoadFunction" class="unstable">
<a href="ol.source.MapQuest.html#getTileLoadFunction">getTileLoadFunction</a>
</li>
<li data-name="ol.source.MapQuest#getTileUrlFunction" class="unstable">
<a href="ol.source.MapQuest.html#getTileUrlFunction">getTileUrlFunction</a>
</li>
<li data-name="ol.source.MapQuest#on" class="">
<a href="ol.source.MapQuest.html#on">on</a>
</li>
<li data-name="ol.source.MapQuest#once" class="">
<a href="ol.source.MapQuest.html#once">once</a>
</li>
<li data-name="ol.source.MapQuest#setTileLoadFunction" class="unstable">
<a href="ol.source.MapQuest.html#setTileLoadFunction">setTileLoadFunction</a>
</li>
<li data-name="ol.source.MapQuest#setTileUrlFunction" class="unstable">
<a href="ol.source.MapQuest.html#setTileUrlFunction">setTileUrlFunction</a>
</li>
<li data-name="ol.source.MapQuest#setUrl" class="">
<a href="ol.source.MapQuest.html#setUrl">setUrl</a>
</li>
<li data-name="ol.source.MapQuest#un" class="">
<a href="ol.source.MapQuest.html#un">un</a>
</li>
<li data-name="ol.source.MapQuest#unByKey" class="">
<a href="ol.source.MapQuest.html#unByKey">unByKey</a>
</li>
</ul>
<ul class="fires itemMembers">
<span class="subtitle">Fires</span>
<li data-name="event:change Triggered when the state of the source changes." class="unstable">
change Triggered when the state of the source changes.
</li>
</ul>
</li>
<li class="item" data-name="ol.source.OSM">
<span class="title">
<a href="ol.source.OSM.html">ol.source.OSM</a>
</span>
<ul class="members itemMembers">
<span class="subtitle">Members</span>
<li data-name="ol.source.OSM.ATTRIBUTION"><a href="ol.source.OSM.html#ATTRIBUTION">ATTRIBUTION</a></li>
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.source.OSM#changed" class="unstable">
<a href="ol.source.OSM.html#changed">changed</a>
</li>
<li data-name="ol.source.OSM#getAttributions" class="">
<a href="ol.source.OSM.html#getAttributions">getAttributions</a>
</li>
<li data-name="ol.source.OSM#getLogo" class="">
<a href="ol.source.OSM.html#getLogo">getLogo</a>
</li>
<li data-name="ol.source.OSM#getProjection" class="unstable">
<a href="ol.source.OSM.html#getProjection">getProjection</a>
</li>
<li data-name="ol.source.OSM#getRevision" class="unstable">
<a href="ol.source.OSM.html#getRevision">getRevision</a>
</li>
<li data-name="ol.source.OSM#getState" class="unstable">
<a href="ol.source.OSM.html#getState">getState</a>
</li>
<li data-name="ol.source.OSM#getTileGrid" class="">
<a href="ol.source.OSM.html#getTileGrid">getTileGrid</a>
</li>
<li data-name="ol.source.OSM#getTileLoadFunction" class="unstable">
<a href="ol.source.OSM.html#getTileLoadFunction">getTileLoadFunction</a>
</li>
<li data-name="ol.source.OSM#getTileUrlFunction" class="unstable">
<a href="ol.source.OSM.html#getTileUrlFunction">getTileUrlFunction</a>
</li>
<li data-name="ol.source.OSM#on" class="">
<a href="ol.source.OSM.html#on">on</a>
</li>
<li data-name="ol.source.OSM#once" class="">
<a href="ol.source.OSM.html#once">once</a>
</li>
<li data-name="ol.source.OSM#setTileLoadFunction" class="unstable">
<a href="ol.source.OSM.html#setTileLoadFunction">setTileLoadFunction</a>
</li>
<li data-name="ol.source.OSM#setTileUrlFunction" class="unstable">
<a href="ol.source.OSM.html#setTileUrlFunction">setTileUrlFunction</a>
</li>
<li data-name="ol.source.OSM#setUrl" class="">
<a href="ol.source.OSM.html#setUrl">setUrl</a>
</li>
<li data-name="ol.source.OSM#un" class="">
<a href="ol.source.OSM.html#un">un</a>
</li>
<li data-name="ol.source.OSM#unByKey" class="">
<a href="ol.source.OSM.html#unByKey">unByKey</a>
</li>
</ul>
<ul class="fires itemMembers">
<span class="subtitle">Fires</span>
<li data-name="event:change Triggered when the state of the source changes." class="unstable">
change Triggered when the state of the source changes.
</li>
</ul>
</li>
<li class="item" data-name="ol.source.OSMXML">
<span class="title">
<a href="ol.source.OSMXML.html">ol.source.OSMXML</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.source.OSMXML#addFeature" class="">
<a href="ol.source.OSMXML.html#addFeature">addFeature</a>
</li>
<li data-name="ol.source.OSMXML#addFeatures" class="">
<a href="ol.source.OSMXML.html#addFeatures">addFeatures</a>
</li>
<li data-name="ol.source.OSMXML#changed" class="unstable">
<a href="ol.source.OSMXML.html#changed">changed</a>
</li>
<li data-name="ol.source.OSMXML#clear" class="">
<a href="ol.source.OSMXML.html#clear">clear</a>
</li>
<li data-name="ol.source.OSMXML#forEachFeature" class="">
<a href="ol.source.OSMXML.html#forEachFeature">forEachFeature</a>
</li>
<li data-name="ol.source.OSMXML#forEachFeatureInExtent" class="unstable">
<a href="ol.source.OSMXML.html#forEachFeatureInExtent">forEachFeatureInExtent</a>
</li>
<li data-name="ol.source.OSMXML#forEachFeatureIntersectingExtent" class="unstable">
<a href="ol.source.OSMXML.html#forEachFeatureIntersectingExtent">forEachFeatureIntersectingExtent</a>
</li>
<li data-name="ol.source.OSMXML#getAttributions" class="">
<a href="ol.source.OSMXML.html#getAttributions">getAttributions</a>
</li>
<li data-name="ol.source.OSMXML#getClosestFeatureToCoordinate" class="">
<a href="ol.source.OSMXML.html#getClosestFeatureToCoordinate">getClosestFeatureToCoordinate</a>
</li>
<li data-name="ol.source.OSMXML#getExtent" class="">
<a href="ol.source.OSMXML.html#getExtent">getExtent</a>
</li>
<li data-name="ol.source.OSMXML#getFeatureById" class="">
<a href="ol.source.OSMXML.html#getFeatureById">getFeatureById</a>
</li>
<li data-name="ol.source.OSMXML#getFeatures" class="">
<a href="ol.source.OSMXML.html#getFeatures">getFeatures</a>
</li>
<li data-name="ol.source.OSMXML#getFeaturesAtCoordinate" class="">
<a href="ol.source.OSMXML.html#getFeaturesAtCoordinate">getFeaturesAtCoordinate</a>
</li>
<li data-name="ol.source.OSMXML#getLogo" class="">
<a href="ol.source.OSMXML.html#getLogo">getLogo</a>
</li>
<li data-name="ol.source.OSMXML#getProjection" class="unstable">
<a href="ol.source.OSMXML.html#getProjection">getProjection</a>
</li>
<li data-name="ol.source.OSMXML#getRevision" class="unstable">
<a href="ol.source.OSMXML.html#getRevision">getRevision</a>
</li>
<li data-name="ol.source.OSMXML#getState" class="unstable">
<a href="ol.source.OSMXML.html#getState">getState</a>
</li>
<li data-name="ol.source.OSMXML#on" class="">
<a href="ol.source.OSMXML.html#on">on</a>
</li>
<li data-name="ol.source.OSMXML#once" class="">
<a href="ol.source.OSMXML.html#once">once</a>
</li>
<li data-name="ol.source.OSMXML#readFeatures" class="unstable">
<a href="ol.source.OSMXML.html#readFeatures">readFeatures</a>
</li>
<li data-name="ol.source.OSMXML#removeFeature" class="">
<a href="ol.source.OSMXML.html#removeFeature">removeFeature</a>
</li>
<li data-name="ol.source.OSMXML#un" class="">
<a href="ol.source.OSMXML.html#un">un</a>
</li>
<li data-name="ol.source.OSMXML#unByKey" class="">
<a href="ol.source.OSMXML.html#unByKey">unByKey</a>
</li>
</ul>
<ul class="fires itemMembers">
<span class="subtitle">Fires</span>
<li data-name="ol.source.VectorEvent#event:addfeature" class="">
<a href="ol.source.VectorEvent.html#event:addfeature">addfeature</a>
</li>
<li data-name="event:change Triggered when the state of the source changes." class="unstable">
change Triggered when the state of the source changes.
</li>
<li data-name="ol.source.VectorEvent#event:changefeature" class="unstable">
<a href="ol.source.VectorEvent.html#event:changefeature">changefeature</a>
</li>
<li data-name="ol.source.VectorEvent#event:clear" class="unstable">
<a href="ol.source.VectorEvent.html#event:clear">clear</a>
</li>
<li data-name="ol.source.VectorEvent#event:removefeature" class="">
<a href="ol.source.VectorEvent.html#event:removefeature">removefeature</a>
</li>
</ul>
</li>
<li class="item" data-name="ol.source.ServerVector">
<span class="title">
<a href="ol.source.ServerVector.html">ol.source.ServerVector</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.source.ServerVector#addFeature" class="">
<a href="ol.source.ServerVector.html#addFeature">addFeature</a>
</li>
<li data-name="ol.source.ServerVector#addFeatures" class="">
<a href="ol.source.ServerVector.html#addFeatures">addFeatures</a>
</li>
<li data-name="ol.source.ServerVector#changed" class="unstable">
<a href="ol.source.ServerVector.html#changed">changed</a>
</li>
<li data-name="ol.source.ServerVector#clear" class="">
<a href="ol.source.ServerVector.html#clear">clear</a>
</li>
<li data-name="ol.source.ServerVector#forEachFeature" class="">
<a href="ol.source.ServerVector.html#forEachFeature">forEachFeature</a>
</li>
<li data-name="ol.source.ServerVector#forEachFeatureInExtent" class="unstable">
<a href="ol.source.ServerVector.html#forEachFeatureInExtent">forEachFeatureInExtent</a>
</li>
<li data-name="ol.source.ServerVector#forEachFeatureIntersectingExtent" class="unstable">
<a href="ol.source.ServerVector.html#forEachFeatureIntersectingExtent">forEachFeatureIntersectingExtent</a>
</li>
<li data-name="ol.source.ServerVector#getAttributions" class="">
<a href="ol.source.ServerVector.html#getAttributions">getAttributions</a>
</li>
<li data-name="ol.source.ServerVector#getClosestFeatureToCoordinate" class="">
<a href="ol.source.ServerVector.html#getClosestFeatureToCoordinate">getClosestFeatureToCoordinate</a>
</li>
<li data-name="ol.source.ServerVector#getExtent" class="">
<a href="ol.source.ServerVector.html#getExtent">getExtent</a>
</li>
<li data-name="ol.source.ServerVector#getFeatureById" class="">
<a href="ol.source.ServerVector.html#getFeatureById">getFeatureById</a>
</li>
<li data-name="ol.source.ServerVector#getFeatures" class="">
<a href="ol.source.ServerVector.html#getFeatures">getFeatures</a>
</li>
<li data-name="ol.source.ServerVector#getFeaturesAtCoordinate" class="">
<a href="ol.source.ServerVector.html#getFeaturesAtCoordinate">getFeaturesAtCoordinate</a>
</li>
<li data-name="ol.source.ServerVector#getLogo" class="">
<a href="ol.source.ServerVector.html#getLogo">getLogo</a>
</li>
<li data-name="ol.source.ServerVector#getProjection" class="unstable">
<a href="ol.source.ServerVector.html#getProjection">getProjection</a>
</li>
<li data-name="ol.source.ServerVector#getRevision" class="unstable">
<a href="ol.source.ServerVector.html#getRevision">getRevision</a>
</li>
<li data-name="ol.source.ServerVector#getState" class="unstable">
<a href="ol.source.ServerVector.html#getState">getState</a>
</li>
<li data-name="ol.source.ServerVector#on" class="">
<a href="ol.source.ServerVector.html#on">on</a>
</li>
<li data-name="ol.source.ServerVector#once" class="">
<a href="ol.source.ServerVector.html#once">once</a>
</li>
<li data-name="ol.source.ServerVector#readFeatures" class="unstable">
<a href="ol.source.ServerVector.html#readFeatures">readFeatures</a>
</li>
<li data-name="ol.source.ServerVector#removeFeature" class="">
<a href="ol.source.ServerVector.html#removeFeature">removeFeature</a>
</li>
<li data-name="ol.source.ServerVector#un" class="">
<a href="ol.source.ServerVector.html#un">un</a>
</li>
<li data-name="ol.source.ServerVector#unByKey" class="">
<a href="ol.source.ServerVector.html#unByKey">unByKey</a>
</li>
</ul>
<ul class="fires itemMembers">
<span class="subtitle">Fires</span>
<li data-name="ol.source.VectorEvent#event:addfeature" class="">
<a href="ol.source.VectorEvent.html#event:addfeature">addfeature</a>
</li>
<li data-name="event:change Triggered when the state of the source changes." class="unstable">
change Triggered when the state of the source changes.
</li>
<li data-name="ol.source.VectorEvent#event:changefeature" class="unstable">
<a href="ol.source.VectorEvent.html#event:changefeature">changefeature</a>
</li>
<li data-name="ol.source.VectorEvent#event:clear" class="unstable">
<a href="ol.source.VectorEvent.html#event:clear">clear</a>
</li>
<li data-name="ol.source.VectorEvent#event:removefeature" class="">
<a href="ol.source.VectorEvent.html#event:removefeature">removefeature</a>
</li>
</ul>
</li>
<li class="item" data-name="ol.source.Source">
<span class="title">
<a href="ol.source.Source.html">ol.source.Source</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.source.Source#changed" class="unstable">
<a href="ol.source.Source.html#changed">changed</a>
</li>
<li data-name="ol.source.Source#getAttributions" class="">
<a href="ol.source.Source.html#getAttributions">getAttributions</a>
</li>
<li data-name="ol.source.Source#getLogo" class="">
<a href="ol.source.Source.html#getLogo">getLogo</a>
</li>
<li data-name="ol.source.Source#getProjection" class="unstable">
<a href="ol.source.Source.html#getProjection">getProjection</a>
</li>
<li data-name="ol.source.Source#getRevision" class="unstable">
<a href="ol.source.Source.html#getRevision">getRevision</a>
</li>
<li data-name="ol.source.Source#getState" class="unstable">
<a href="ol.source.Source.html#getState">getState</a>
</li>
<li data-name="ol.source.Source#on" class="">
<a href="ol.source.Source.html#on">on</a>
</li>
<li data-name="ol.source.Source#once" class="">
<a href="ol.source.Source.html#once">once</a>
</li>
<li data-name="ol.source.Source#un" class="">
<a href="ol.source.Source.html#un">un</a>
</li>
<li data-name="ol.source.Source#unByKey" class="">
<a href="ol.source.Source.html#unByKey">unByKey</a>
</li>
</ul>
<ul class="fires itemMembers">
<span class="subtitle">Fires</span>
<li data-name="event:change Triggered when the state of the source changes." class="unstable">
change Triggered when the state of the source changes.
</li>
</ul>
</li>
<li class="item" data-name="ol.source.Stamen">
<span class="title">
<a href="ol.source.Stamen.html">ol.source.Stamen</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.source.Stamen#changed" class="unstable">
<a href="ol.source.Stamen.html#changed">changed</a>
</li>
<li data-name="ol.source.Stamen#getAttributions" class="">
<a href="ol.source.Stamen.html#getAttributions">getAttributions</a>
</li>
<li data-name="ol.source.Stamen#getLogo" class="">
<a href="ol.source.Stamen.html#getLogo">getLogo</a>
</li>
<li data-name="ol.source.Stamen#getProjection" class="unstable">
<a href="ol.source.Stamen.html#getProjection">getProjection</a>
</li>
<li data-name="ol.source.Stamen#getRevision" class="unstable">
<a href="ol.source.Stamen.html#getRevision">getRevision</a>
</li>
<li data-name="ol.source.Stamen#getState" class="unstable">
<a href="ol.source.Stamen.html#getState">getState</a>
</li>
<li data-name="ol.source.Stamen#getTileGrid" class="">
<a href="ol.source.Stamen.html#getTileGrid">getTileGrid</a>
</li>
<li data-name="ol.source.Stamen#getTileLoadFunction" class="unstable">
<a href="ol.source.Stamen.html#getTileLoadFunction">getTileLoadFunction</a>
</li>
<li data-name="ol.source.Stamen#getTileUrlFunction" class="unstable">
<a href="ol.source.Stamen.html#getTileUrlFunction">getTileUrlFunction</a>
</li>
<li data-name="ol.source.Stamen#on" class="">
<a href="ol.source.Stamen.html#on">on</a>
</li>
<li data-name="ol.source.Stamen#once" class="">
<a href="ol.source.Stamen.html#once">once</a>
</li>
<li data-name="ol.source.Stamen#setTileLoadFunction" class="unstable">
<a href="ol.source.Stamen.html#setTileLoadFunction">setTileLoadFunction</a>
</li>
<li data-name="ol.source.Stamen#setTileUrlFunction" class="unstable">
<a href="ol.source.Stamen.html#setTileUrlFunction">setTileUrlFunction</a>
</li>
<li data-name="ol.source.Stamen#setUrl" class="">
<a href="ol.source.Stamen.html#setUrl">setUrl</a>
</li>
<li data-name="ol.source.Stamen#un" class="">
<a href="ol.source.Stamen.html#un">un</a>
</li>
<li data-name="ol.source.Stamen#unByKey" class="">
<a href="ol.source.Stamen.html#unByKey">unByKey</a>
</li>
</ul>
<ul class="fires itemMembers">
<span class="subtitle">Fires</span>
<li data-name="event:change Triggered when the state of the source changes." class="unstable">
change Triggered when the state of the source changes.
</li>
</ul>
</li>
<li class="item" data-name="ol.source.StaticVector">
<span class="title">
<a href="ol.source.StaticVector.html">ol.source.StaticVector</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.source.StaticVector#addFeature" class="">
<a href="ol.source.StaticVector.html#addFeature">addFeature</a>
</li>
<li data-name="ol.source.StaticVector#addFeatures" class="">
<a href="ol.source.StaticVector.html#addFeatures">addFeatures</a>
</li>
<li data-name="ol.source.StaticVector#changed" class="unstable">
<a href="ol.source.StaticVector.html#changed">changed</a>
</li>
<li data-name="ol.source.StaticVector#clear" class="">
<a href="ol.source.StaticVector.html#clear">clear</a>
</li>
<li data-name="ol.source.StaticVector#forEachFeature" class="">
<a href="ol.source.StaticVector.html#forEachFeature">forEachFeature</a>
</li>
<li data-name="ol.source.StaticVector#forEachFeatureInExtent" class="unstable">
<a href="ol.source.StaticVector.html#forEachFeatureInExtent">forEachFeatureInExtent</a>
</li>
<li data-name="ol.source.StaticVector#forEachFeatureIntersectingExtent" class="unstable">
<a href="ol.source.StaticVector.html#forEachFeatureIntersectingExtent">forEachFeatureIntersectingExtent</a>
</li>
<li data-name="ol.source.StaticVector#getAttributions" class="">
<a href="ol.source.StaticVector.html#getAttributions">getAttributions</a>
</li>
<li data-name="ol.source.StaticVector#getClosestFeatureToCoordinate" class="">
<a href="ol.source.StaticVector.html#getClosestFeatureToCoordinate">getClosestFeatureToCoordinate</a>
</li>
<li data-name="ol.source.StaticVector#getExtent" class="">
<a href="ol.source.StaticVector.html#getExtent">getExtent</a>
</li>
<li data-name="ol.source.StaticVector#getFeatureById" class="">
<a href="ol.source.StaticVector.html#getFeatureById">getFeatureById</a>
</li>
<li data-name="ol.source.StaticVector#getFeatures" class="">
<a href="ol.source.StaticVector.html#getFeatures">getFeatures</a>
</li>
<li data-name="ol.source.StaticVector#getFeaturesAtCoordinate" class="">
<a href="ol.source.StaticVector.html#getFeaturesAtCoordinate">getFeaturesAtCoordinate</a>
</li>
<li data-name="ol.source.StaticVector#getLogo" class="">
<a href="ol.source.StaticVector.html#getLogo">getLogo</a>
</li>
<li data-name="ol.source.StaticVector#getProjection" class="unstable">
<a href="ol.source.StaticVector.html#getProjection">getProjection</a>
</li>
<li data-name="ol.source.StaticVector#getRevision" class="unstable">
<a href="ol.source.StaticVector.html#getRevision">getRevision</a>
</li>
<li data-name="ol.source.StaticVector#getState" class="unstable">
<a href="ol.source.StaticVector.html#getState">getState</a>
</li>
<li data-name="ol.source.StaticVector#on" class="">
<a href="ol.source.StaticVector.html#on">on</a>
</li>
<li data-name="ol.source.StaticVector#once" class="">
<a href="ol.source.StaticVector.html#once">once</a>
</li>
<li data-name="ol.source.StaticVector#readFeatures" class="unstable">
<a href="ol.source.StaticVector.html#readFeatures">readFeatures</a>
</li>
<li data-name="ol.source.StaticVector#removeFeature" class="">
<a href="ol.source.StaticVector.html#removeFeature">removeFeature</a>
</li>
<li data-name="ol.source.StaticVector#un" class="">
<a href="ol.source.StaticVector.html#un">un</a>
</li>
<li data-name="ol.source.StaticVector#unByKey" class="">
<a href="ol.source.StaticVector.html#unByKey">unByKey</a>
</li>
</ul>
<ul class="fires itemMembers">
<span class="subtitle">Fires</span>
<li data-name="ol.source.VectorEvent#event:addfeature" class="">
<a href="ol.source.VectorEvent.html#event:addfeature">addfeature</a>
</li>
<li data-name="event:change Triggered when the state of the source changes." class="unstable">
change Triggered when the state of the source changes.
</li>
<li data-name="ol.source.VectorEvent#event:changefeature" class="unstable">
<a href="ol.source.VectorEvent.html#event:changefeature">changefeature</a>
</li>
<li data-name="ol.source.VectorEvent#event:clear" class="unstable">
<a href="ol.source.VectorEvent.html#event:clear">clear</a>
</li>
<li data-name="ol.source.VectorEvent#event:removefeature" class="">
<a href="ol.source.VectorEvent.html#event:removefeature">removefeature</a>
</li>
</ul>
</li>
<li class="item" data-name="ol.source.Tile">
<span class="title">
<a href="ol.source.Tile.html">ol.source.Tile</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.source.Tile#changed" class="unstable">
<a href="ol.source.Tile.html#changed">changed</a>
</li>
<li data-name="ol.source.Tile#getAttributions" class="">
<a href="ol.source.Tile.html#getAttributions">getAttributions</a>
</li>
<li data-name="ol.source.Tile#getLogo" class="">
<a href="ol.source.Tile.html#getLogo">getLogo</a>
</li>
<li data-name="ol.source.Tile#getProjection" class="unstable">
<a href="ol.source.Tile.html#getProjection">getProjection</a>
</li>
<li data-name="ol.source.Tile#getRevision" class="unstable">
<a href="ol.source.Tile.html#getRevision">getRevision</a>
</li>
<li data-name="ol.source.Tile#getState" class="unstable">
<a href="ol.source.Tile.html#getState">getState</a>
</li>
<li data-name="ol.source.Tile#getTileGrid" class="">
<a href="ol.source.Tile.html#getTileGrid">getTileGrid</a>
</li>
<li data-name="ol.source.Tile#on" class="">
<a href="ol.source.Tile.html#on">on</a>
</li>
<li data-name="ol.source.Tile#once" class="">
<a href="ol.source.Tile.html#once">once</a>
</li>
<li data-name="ol.source.Tile#un" class="">
<a href="ol.source.Tile.html#un">un</a>
</li>
<li data-name="ol.source.Tile#unByKey" class="">
<a href="ol.source.Tile.html#unByKey">unByKey</a>
</li>
</ul>
<ul class="fires itemMembers">
<span class="subtitle">Fires</span>
<li data-name="event:change Triggered when the state of the source changes." class="unstable">
change Triggered when the state of the source changes.
</li>
</ul>
</li>
<li class="item" data-name="ol.source.TileDebug">
<span class="title">
<a href="ol.source.TileDebug.html">ol.source.TileDebug</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.source.TileDebug#changed" class="unstable">
<a href="ol.source.TileDebug.html#changed">changed</a>
</li>
<li data-name="ol.source.TileDebug#getAttributions" class="">
<a href="ol.source.TileDebug.html#getAttributions">getAttributions</a>
</li>
<li data-name="ol.source.TileDebug#getLogo" class="">
<a href="ol.source.TileDebug.html#getLogo">getLogo</a>
</li>
<li data-name="ol.source.TileDebug#getProjection" class="unstable">
<a href="ol.source.TileDebug.html#getProjection">getProjection</a>
</li>
<li data-name="ol.source.TileDebug#getRevision" class="unstable">
<a href="ol.source.TileDebug.html#getRevision">getRevision</a>
</li>
<li data-name="ol.source.TileDebug#getState" class="unstable">
<a href="ol.source.TileDebug.html#getState">getState</a>
</li>
<li data-name="ol.source.TileDebug#getTileGrid" class="">
<a href="ol.source.TileDebug.html#getTileGrid">getTileGrid</a>
</li>
<li data-name="ol.source.TileDebug#on" class="">
<a href="ol.source.TileDebug.html#on">on</a>
</li>
<li data-name="ol.source.TileDebug#once" class="">
<a href="ol.source.TileDebug.html#once">once</a>
</li>
<li data-name="ol.source.TileDebug#un" class="">
<a href="ol.source.TileDebug.html#un">un</a>
</li>
<li data-name="ol.source.TileDebug#unByKey" class="">
<a href="ol.source.TileDebug.html#unByKey">unByKey</a>
</li>
</ul>
<ul class="fires itemMembers">
<span class="subtitle">Fires</span>
<li data-name="event:change Triggered when the state of the source changes." class="unstable">
change Triggered when the state of the source changes.
</li>
</ul>
</li>
<li class="item" data-name="ol.source.TileImage">
<span class="title">
<a href="ol.source.TileImage.html">ol.source.TileImage</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.source.TileImage#changed" class="unstable">
<a href="ol.source.TileImage.html#changed">changed</a>
</li>
<li data-name="ol.source.TileImage#getAttributions" class="">
<a href="ol.source.TileImage.html#getAttributions">getAttributions</a>
</li>
<li data-name="ol.source.TileImage#getLogo" class="">
<a href="ol.source.TileImage.html#getLogo">getLogo</a>
</li>
<li data-name="ol.source.TileImage#getProjection" class="unstable">
<a href="ol.source.TileImage.html#getProjection">getProjection</a>
</li>
<li data-name="ol.source.TileImage#getRevision" class="unstable">
<a href="ol.source.TileImage.html#getRevision">getRevision</a>
</li>
<li data-name="ol.source.TileImage#getState" class="unstable">
<a href="ol.source.TileImage.html#getState">getState</a>
</li>
<li data-name="ol.source.TileImage#getTileGrid" class="">
<a href="ol.source.TileImage.html#getTileGrid">getTileGrid</a>
</li>
<li data-name="ol.source.TileImage#getTileLoadFunction" class="unstable">
<a href="ol.source.TileImage.html#getTileLoadFunction">getTileLoadFunction</a>
</li>
<li data-name="ol.source.TileImage#getTileUrlFunction" class="unstable">
<a href="ol.source.TileImage.html#getTileUrlFunction">getTileUrlFunction</a>
</li>
<li data-name="ol.source.TileImage#on" class="">
<a href="ol.source.TileImage.html#on">on</a>
</li>
<li data-name="ol.source.TileImage#once" class="">
<a href="ol.source.TileImage.html#once">once</a>
</li>
<li data-name="ol.source.TileImage#setTileLoadFunction" class="unstable">
<a href="ol.source.TileImage.html#setTileLoadFunction">setTileLoadFunction</a>
</li>
<li data-name="ol.source.TileImage#setTileUrlFunction" class="unstable">
<a href="ol.source.TileImage.html#setTileUrlFunction">setTileUrlFunction</a>
</li>
<li data-name="ol.source.TileImage#un" class="">
<a href="ol.source.TileImage.html#un">un</a>
</li>
<li data-name="ol.source.TileImage#unByKey" class="">
<a href="ol.source.TileImage.html#unByKey">unByKey</a>
</li>
</ul>
<ul class="fires itemMembers">
<span class="subtitle">Fires</span>
<li data-name="event:change Triggered when the state of the source changes." class="unstable">
change Triggered when the state of the source changes.
</li>
</ul>
</li>
<li class="item" data-name="ol.source.TileJSON">
<span class="title">
<a href="ol.source.TileJSON.html">ol.source.TileJSON</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.source.TileJSON#changed" class="unstable">
<a href="ol.source.TileJSON.html#changed">changed</a>
</li>
<li data-name="ol.source.TileJSON#getAttributions" class="">
<a href="ol.source.TileJSON.html#getAttributions">getAttributions</a>
</li>
<li data-name="ol.source.TileJSON#getLogo" class="">
<a href="ol.source.TileJSON.html#getLogo">getLogo</a>
</li>
<li data-name="ol.source.TileJSON#getProjection" class="unstable">
<a href="ol.source.TileJSON.html#getProjection">getProjection</a>
</li>
<li data-name="ol.source.TileJSON#getRevision" class="unstable">
<a href="ol.source.TileJSON.html#getRevision">getRevision</a>
</li>
<li data-name="ol.source.TileJSON#getState" class="unstable">
<a href="ol.source.TileJSON.html#getState">getState</a>
</li>
<li data-name="ol.source.TileJSON#getTileGrid" class="">
<a href="ol.source.TileJSON.html#getTileGrid">getTileGrid</a>
</li>
<li data-name="ol.source.TileJSON#getTileLoadFunction" class="unstable">
<a href="ol.source.TileJSON.html#getTileLoadFunction">getTileLoadFunction</a>
</li>
<li data-name="ol.source.TileJSON#getTileUrlFunction" class="unstable">
<a href="ol.source.TileJSON.html#getTileUrlFunction">getTileUrlFunction</a>
</li>
<li data-name="ol.source.TileJSON#on" class="">
<a href="ol.source.TileJSON.html#on">on</a>
</li>
<li data-name="ol.source.TileJSON#once" class="">
<a href="ol.source.TileJSON.html#once">once</a>
</li>
<li data-name="ol.source.TileJSON#setTileLoadFunction" class="unstable">
<a href="ol.source.TileJSON.html#setTileLoadFunction">setTileLoadFunction</a>
</li>
<li data-name="ol.source.TileJSON#setTileUrlFunction" class="unstable">
<a href="ol.source.TileJSON.html#setTileUrlFunction">setTileUrlFunction</a>
</li>
<li data-name="ol.source.TileJSON#un" class="">
<a href="ol.source.TileJSON.html#un">un</a>
</li>
<li data-name="ol.source.TileJSON#unByKey" class="">
<a href="ol.source.TileJSON.html#unByKey">unByKey</a>
</li>
</ul>
<ul class="fires itemMembers">
<span class="subtitle">Fires</span>
<li data-name="event:change Triggered when the state of the source changes." class="unstable">
change Triggered when the state of the source changes.
</li>
</ul>
</li>
<li class="item" data-name="ol.source.TileUTFGrid">
<span class="title">
<a href="ol.source.TileUTFGrid.html">ol.source.TileUTFGrid</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.source.TileUTFGrid#changed" class="unstable">
<a href="ol.source.TileUTFGrid.html#changed">changed</a>
</li>
<li data-name="ol.source.TileUTFGrid#forDataAtCoordinateAndResolution" class="unstable">
<a href="ol.source.TileUTFGrid.html#forDataAtCoordinateAndResolution">forDataAtCoordinateAndResolution</a>
</li>
<li data-name="ol.source.TileUTFGrid#getAttributions" class="">
<a href="ol.source.TileUTFGrid.html#getAttributions">getAttributions</a>
</li>
<li data-name="ol.source.TileUTFGrid#getLogo" class="">
<a href="ol.source.TileUTFGrid.html#getLogo">getLogo</a>
</li>
<li data-name="ol.source.TileUTFGrid#getProjection" class="unstable">
<a href="ol.source.TileUTFGrid.html#getProjection">getProjection</a>
</li>
<li data-name="ol.source.TileUTFGrid#getRevision" class="unstable">
<a href="ol.source.TileUTFGrid.html#getRevision">getRevision</a>
</li>
<li data-name="ol.source.TileUTFGrid#getState" class="unstable">
<a href="ol.source.TileUTFGrid.html#getState">getState</a>
</li>
<li data-name="ol.source.TileUTFGrid#getTemplate" class="unstable">
<a href="ol.source.TileUTFGrid.html#getTemplate">getTemplate</a>
</li>
<li data-name="ol.source.TileUTFGrid#getTileGrid" class="">
<a href="ol.source.TileUTFGrid.html#getTileGrid">getTileGrid</a>
</li>
<li data-name="ol.source.TileUTFGrid#on" class="">
<a href="ol.source.TileUTFGrid.html#on">on</a>
</li>
<li data-name="ol.source.TileUTFGrid#once" class="">
<a href="ol.source.TileUTFGrid.html#once">once</a>
</li>
<li data-name="ol.source.TileUTFGrid#un" class="">
<a href="ol.source.TileUTFGrid.html#un">un</a>
</li>
<li data-name="ol.source.TileUTFGrid#unByKey" class="">
<a href="ol.source.TileUTFGrid.html#unByKey">unByKey</a>
</li>
</ul>
<ul class="fires itemMembers">
<span class="subtitle">Fires</span>
<li data-name="event:change Triggered when the state of the source changes." class="unstable">
change Triggered when the state of the source changes.
</li>
</ul>
</li>
<li class="item" data-name="ol.source.TileVector">
<span class="title">
<a href="ol.source.TileVector.html">ol.source.TileVector</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.source.TileVector#addFeature" class="">
<a href="ol.source.TileVector.html#addFeature">addFeature</a>
</li>
<li data-name="ol.source.TileVector#addFeatures" class="">
<a href="ol.source.TileVector.html#addFeatures">addFeatures</a>
</li>
<li data-name="ol.source.TileVector#changed" class="unstable">
<a href="ol.source.TileVector.html#changed">changed</a>
</li>
<li data-name="ol.source.TileVector#clear" class="">
<a href="ol.source.TileVector.html#clear">clear</a>
</li>
<li data-name="ol.source.TileVector#forEachFeature" class="">
<a href="ol.source.TileVector.html#forEachFeature">forEachFeature</a>
</li>
<li data-name="ol.source.TileVector#forEachFeatureInExtent" class="unstable">
<a href="ol.source.TileVector.html#forEachFeatureInExtent">forEachFeatureInExtent</a>
</li>
<li data-name="ol.source.TileVector#forEachFeatureIntersectingExtent" class="unstable">
<a href="ol.source.TileVector.html#forEachFeatureIntersectingExtent">forEachFeatureIntersectingExtent</a>
</li>
<li data-name="ol.source.TileVector#getAttributions" class="">
<a href="ol.source.TileVector.html#getAttributions">getAttributions</a>
</li>
<li data-name="ol.source.TileVector#getClosestFeatureToCoordinate" class="">
<a href="ol.source.TileVector.html#getClosestFeatureToCoordinate">getClosestFeatureToCoordinate</a>
</li>
<li data-name="ol.source.TileVector#getExtent" class="">
<a href="ol.source.TileVector.html#getExtent">getExtent</a>
</li>
<li data-name="ol.source.TileVector#getFeatureById" class="">
<a href="ol.source.TileVector.html#getFeatureById">getFeatureById</a>
</li>
<li data-name="ol.source.TileVector#getFeatures" class="">
<a href="ol.source.TileVector.html#getFeatures">getFeatures</a>
</li>
<li data-name="ol.source.TileVector#getFeaturesAtCoordinate" class="">
<a href="ol.source.TileVector.html#getFeaturesAtCoordinate">getFeaturesAtCoordinate</a>
</li>
<li data-name="ol.source.TileVector#getFeaturesAtCoordinateAndResolution" class="unstable">
<a href="ol.source.TileVector.html#getFeaturesAtCoordinateAndResolution">getFeaturesAtCoordinateAndResolution</a>
</li>
<li data-name="ol.source.TileVector#getLogo" class="">
<a href="ol.source.TileVector.html#getLogo">getLogo</a>
</li>
<li data-name="ol.source.TileVector#getProjection" class="unstable">
<a href="ol.source.TileVector.html#getProjection">getProjection</a>
</li>
<li data-name="ol.source.TileVector#getRevision" class="unstable">
<a href="ol.source.TileVector.html#getRevision">getRevision</a>
</li>
<li data-name="ol.source.TileVector#getState" class="unstable">
<a href="ol.source.TileVector.html#getState">getState</a>
</li>
<li data-name="ol.source.TileVector#on" class="">
<a href="ol.source.TileVector.html#on">on</a>
</li>
<li data-name="ol.source.TileVector#once" class="">
<a href="ol.source.TileVector.html#once">once</a>
</li>
<li data-name="ol.source.TileVector#readFeatures" class="unstable">
<a href="ol.source.TileVector.html#readFeatures">readFeatures</a>
</li>
<li data-name="ol.source.TileVector#removeFeature" class="">
<a href="ol.source.TileVector.html#removeFeature">removeFeature</a>
</li>
<li data-name="ol.source.TileVector#un" class="">
<a href="ol.source.TileVector.html#un">un</a>
</li>
<li data-name="ol.source.TileVector#unByKey" class="">
<a href="ol.source.TileVector.html#unByKey">unByKey</a>
</li>
</ul>
<ul class="fires itemMembers">
<span class="subtitle">Fires</span>
<li data-name="ol.source.VectorEvent#event:addfeature" class="">
<a href="ol.source.VectorEvent.html#event:addfeature">addfeature</a>
</li>
<li data-name="event:change Triggered when the state of the source changes." class="unstable">
change Triggered when the state of the source changes.
</li>
<li data-name="ol.source.VectorEvent#event:changefeature" class="unstable">
<a href="ol.source.VectorEvent.html#event:changefeature">changefeature</a>
</li>
<li data-name="ol.source.VectorEvent#event:clear" class="unstable">
<a href="ol.source.VectorEvent.html#event:clear">clear</a>
</li>
<li data-name="ol.source.VectorEvent#event:removefeature" class="">
<a href="ol.source.VectorEvent.html#event:removefeature">removefeature</a>
</li>
</ul>
</li>
<li class="item" data-name="ol.source.TileWMS">
<span class="title">
<a href="ol.source.TileWMS.html">ol.source.TileWMS</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.source.TileWMS#changed" class="unstable">
<a href="ol.source.TileWMS.html#changed">changed</a>
</li>
<li data-name="ol.source.TileWMS#getAttributions" class="">
<a href="ol.source.TileWMS.html#getAttributions">getAttributions</a>
</li>
<li data-name="ol.source.TileWMS#getGetFeatureInfoUrl" class="">
<a href="ol.source.TileWMS.html#getGetFeatureInfoUrl">getGetFeatureInfoUrl</a>
</li>
<li data-name="ol.source.TileWMS#getLogo" class="">
<a href="ol.source.TileWMS.html#getLogo">getLogo</a>
</li>
<li data-name="ol.source.TileWMS#getParams" class="">
<a href="ol.source.TileWMS.html#getParams">getParams</a>
</li>
<li data-name="ol.source.TileWMS#getProjection" class="unstable">
<a href="ol.source.TileWMS.html#getProjection">getProjection</a>
</li>
<li data-name="ol.source.TileWMS#getRevision" class="unstable">
<a href="ol.source.TileWMS.html#getRevision">getRevision</a>
</li>
<li data-name="ol.source.TileWMS#getState" class="unstable">
<a href="ol.source.TileWMS.html#getState">getState</a>
</li>
<li data-name="ol.source.TileWMS#getTileGrid" class="">
<a href="ol.source.TileWMS.html#getTileGrid">getTileGrid</a>
</li>
<li data-name="ol.source.TileWMS#getTileLoadFunction" class="unstable">
<a href="ol.source.TileWMS.html#getTileLoadFunction">getTileLoadFunction</a>
</li>
<li data-name="ol.source.TileWMS#getTileUrlFunction" class="unstable">
<a href="ol.source.TileWMS.html#getTileUrlFunction">getTileUrlFunction</a>
</li>
<li data-name="ol.source.TileWMS#getUrls" class="">
<a href="ol.source.TileWMS.html#getUrls">getUrls</a>
</li>
<li data-name="ol.source.TileWMS#on" class="">
<a href="ol.source.TileWMS.html#on">on</a>
</li>
<li data-name="ol.source.TileWMS#once" class="">
<a href="ol.source.TileWMS.html#once">once</a>
</li>
<li data-name="ol.source.TileWMS#setTileLoadFunction" class="unstable">
<a href="ol.source.TileWMS.html#setTileLoadFunction">setTileLoadFunction</a>
</li>
<li data-name="ol.source.TileWMS#setTileUrlFunction" class="unstable">
<a href="ol.source.TileWMS.html#setTileUrlFunction">setTileUrlFunction</a>
</li>
<li data-name="ol.source.TileWMS#setUrl" class="">
<a href="ol.source.TileWMS.html#setUrl">setUrl</a>
</li>
<li data-name="ol.source.TileWMS#setUrls" class="">
<a href="ol.source.TileWMS.html#setUrls">setUrls</a>
</li>
<li data-name="ol.source.TileWMS#un" class="">
<a href="ol.source.TileWMS.html#un">un</a>
</li>
<li data-name="ol.source.TileWMS#unByKey" class="">
<a href="ol.source.TileWMS.html#unByKey">unByKey</a>
</li>
<li data-name="ol.source.TileWMS#updateParams" class="">
<a href="ol.source.TileWMS.html#updateParams">updateParams</a>
</li>
</ul>
<ul class="fires itemMembers">
<span class="subtitle">Fires</span>
<li data-name="event:change Triggered when the state of the source changes." class="unstable">
change Triggered when the state of the source changes.
</li>
</ul>
</li>
<li class="item" data-name="ol.source.TopoJSON">
<span class="title">
<a href="ol.source.TopoJSON.html">ol.source.TopoJSON</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.source.TopoJSON#addFeature" class="">
<a href="ol.source.TopoJSON.html#addFeature">addFeature</a>
</li>
<li data-name="ol.source.TopoJSON#addFeatures" class="">
<a href="ol.source.TopoJSON.html#addFeatures">addFeatures</a>
</li>
<li data-name="ol.source.TopoJSON#changed" class="unstable">
<a href="ol.source.TopoJSON.html#changed">changed</a>
</li>
<li data-name="ol.source.TopoJSON#clear" class="">
<a href="ol.source.TopoJSON.html#clear">clear</a>
</li>
<li data-name="ol.source.TopoJSON#forEachFeature" class="">
<a href="ol.source.TopoJSON.html#forEachFeature">forEachFeature</a>
</li>
<li data-name="ol.source.TopoJSON#forEachFeatureInExtent" class="unstable">
<a href="ol.source.TopoJSON.html#forEachFeatureInExtent">forEachFeatureInExtent</a>
</li>
<li data-name="ol.source.TopoJSON#forEachFeatureIntersectingExtent" class="unstable">
<a href="ol.source.TopoJSON.html#forEachFeatureIntersectingExtent">forEachFeatureIntersectingExtent</a>
</li>
<li data-name="ol.source.TopoJSON#getAttributions" class="">
<a href="ol.source.TopoJSON.html#getAttributions">getAttributions</a>
</li>
<li data-name="ol.source.TopoJSON#getClosestFeatureToCoordinate" class="">
<a href="ol.source.TopoJSON.html#getClosestFeatureToCoordinate">getClosestFeatureToCoordinate</a>
</li>
<li data-name="ol.source.TopoJSON#getExtent" class="">
<a href="ol.source.TopoJSON.html#getExtent">getExtent</a>
</li>
<li data-name="ol.source.TopoJSON#getFeatureById" class="">
<a href="ol.source.TopoJSON.html#getFeatureById">getFeatureById</a>
</li>
<li data-name="ol.source.TopoJSON#getFeatures" class="">
<a href="ol.source.TopoJSON.html#getFeatures">getFeatures</a>
</li>
<li data-name="ol.source.TopoJSON#getFeaturesAtCoordinate" class="">
<a href="ol.source.TopoJSON.html#getFeaturesAtCoordinate">getFeaturesAtCoordinate</a>
</li>
<li data-name="ol.source.TopoJSON#getLogo" class="">
<a href="ol.source.TopoJSON.html#getLogo">getLogo</a>
</li>
<li data-name="ol.source.TopoJSON#getProjection" class="unstable">
<a href="ol.source.TopoJSON.html#getProjection">getProjection</a>
</li>
<li data-name="ol.source.TopoJSON#getRevision" class="unstable">
<a href="ol.source.TopoJSON.html#getRevision">getRevision</a>
</li>
<li data-name="ol.source.TopoJSON#getState" class="unstable">
<a href="ol.source.TopoJSON.html#getState">getState</a>
</li>
<li data-name="ol.source.TopoJSON#on" class="">
<a href="ol.source.TopoJSON.html#on">on</a>
</li>
<li data-name="ol.source.TopoJSON#once" class="">
<a href="ol.source.TopoJSON.html#once">once</a>
</li>
<li data-name="ol.source.TopoJSON#readFeatures" class="unstable">
<a href="ol.source.TopoJSON.html#readFeatures">readFeatures</a>
</li>
<li data-name="ol.source.TopoJSON#removeFeature" class="">
<a href="ol.source.TopoJSON.html#removeFeature">removeFeature</a>
</li>
<li data-name="ol.source.TopoJSON#un" class="">
<a href="ol.source.TopoJSON.html#un">un</a>
</li>
<li data-name="ol.source.TopoJSON#unByKey" class="">
<a href="ol.source.TopoJSON.html#unByKey">unByKey</a>
</li>
</ul>
<ul class="fires itemMembers">
<span class="subtitle">Fires</span>
<li data-name="ol.source.VectorEvent#event:addfeature" class="">
<a href="ol.source.VectorEvent.html#event:addfeature">addfeature</a>
</li>
<li data-name="event:change Triggered when the state of the source changes." class="unstable">
change Triggered when the state of the source changes.
</li>
<li data-name="ol.source.VectorEvent#event:changefeature" class="unstable">
<a href="ol.source.VectorEvent.html#event:changefeature">changefeature</a>
</li>
<li data-name="ol.source.VectorEvent#event:clear" class="unstable">
<a href="ol.source.VectorEvent.html#event:clear">clear</a>
</li>
<li data-name="ol.source.VectorEvent#event:removefeature" class="">
<a href="ol.source.VectorEvent.html#event:removefeature">removefeature</a>
</li>
</ul>
</li>
<li class="item" data-name="ol.source.Vector">
<span class="title">
<a href="ol.source.Vector.html">ol.source.Vector</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.source.Vector#addFeature" class="">
<a href="ol.source.Vector.html#addFeature">addFeature</a>
</li>
<li data-name="ol.source.Vector#addFeatures" class="">
<a href="ol.source.Vector.html#addFeatures">addFeatures</a>
</li>
<li data-name="ol.source.Vector#changed" class="unstable">
<a href="ol.source.Vector.html#changed">changed</a>
</li>
<li data-name="ol.source.Vector#clear" class="">
<a href="ol.source.Vector.html#clear">clear</a>
</li>
<li data-name="ol.source.Vector#forEachFeature" class="">
<a href="ol.source.Vector.html#forEachFeature">forEachFeature</a>
</li>
<li data-name="ol.source.Vector#forEachFeatureInExtent" class="unstable">
<a href="ol.source.Vector.html#forEachFeatureInExtent">forEachFeatureInExtent</a>
</li>
<li data-name="ol.source.Vector#forEachFeatureIntersectingExtent" class="unstable">
<a href="ol.source.Vector.html#forEachFeatureIntersectingExtent">forEachFeatureIntersectingExtent</a>
</li>
<li data-name="ol.source.Vector#getAttributions" class="">
<a href="ol.source.Vector.html#getAttributions">getAttributions</a>
</li>
<li data-name="ol.source.Vector#getClosestFeatureToCoordinate" class="">
<a href="ol.source.Vector.html#getClosestFeatureToCoordinate">getClosestFeatureToCoordinate</a>
</li>
<li data-name="ol.source.Vector#getExtent" class="">
<a href="ol.source.Vector.html#getExtent">getExtent</a>
</li>
<li data-name="ol.source.Vector#getFeatureById" class="">
<a href="ol.source.Vector.html#getFeatureById">getFeatureById</a>
</li>
<li data-name="ol.source.Vector#getFeatures" class="">
<a href="ol.source.Vector.html#getFeatures">getFeatures</a>
</li>
<li data-name="ol.source.Vector#getFeaturesAtCoordinate" class="">
<a href="ol.source.Vector.html#getFeaturesAtCoordinate">getFeaturesAtCoordinate</a>
</li>
<li data-name="ol.source.Vector#getLogo" class="">
<a href="ol.source.Vector.html#getLogo">getLogo</a>
</li>
<li data-name="ol.source.Vector#getProjection" class="unstable">
<a href="ol.source.Vector.html#getProjection">getProjection</a>
</li>
<li data-name="ol.source.Vector#getRevision" class="unstable">
<a href="ol.source.Vector.html#getRevision">getRevision</a>
</li>
<li data-name="ol.source.Vector#getState" class="unstable">
<a href="ol.source.Vector.html#getState">getState</a>
</li>
<li data-name="ol.source.Vector#on" class="">
<a href="ol.source.Vector.html#on">on</a>
</li>
<li data-name="ol.source.Vector#once" class="">
<a href="ol.source.Vector.html#once">once</a>
</li>
<li data-name="ol.source.Vector#removeFeature" class="">
<a href="ol.source.Vector.html#removeFeature">removeFeature</a>
</li>
<li data-name="ol.source.Vector#un" class="">
<a href="ol.source.Vector.html#un">un</a>
</li>
<li data-name="ol.source.Vector#unByKey" class="">
<a href="ol.source.Vector.html#unByKey">unByKey</a>
</li>
</ul>
<ul class="fires itemMembers">
<span class="subtitle">Fires</span>
<li data-name="ol.source.VectorEvent#event:addfeature" class="">
<a href="ol.source.VectorEvent.html#event:addfeature">addfeature</a>
</li>
<li data-name="event:change Triggered when the state of the source changes." class="unstable">
change Triggered when the state of the source changes.
</li>
<li data-name="ol.source.VectorEvent#event:changefeature" class="unstable">
<a href="ol.source.VectorEvent.html#event:changefeature">changefeature</a>
</li>
<li data-name="ol.source.VectorEvent#event:clear" class="unstable">
<a href="ol.source.VectorEvent.html#event:clear">clear</a>
</li>
<li data-name="ol.source.VectorEvent#event:removefeature" class="">
<a href="ol.source.VectorEvent.html#event:removefeature">removefeature</a>
</li>
</ul>
</li>
<li class="item" data-name="ol.source.VectorEvent">
<span class="title">
<a href="ol.source.VectorEvent.html">ol.source.VectorEvent</a>
</span>
<ul class="members itemMembers">
<span class="subtitle">Members</span>
<li data-name="ol.source.VectorEvent#feature"><a href="ol.source.VectorEvent.html#feature">feature</a></li>
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
</ul>
<ul class="fires itemMembers">
</ul>
</li>
<li class="item" data-name="ol.source.WMTS">
<span class="title">
<a href="ol.source.WMTS.html">ol.source.WMTS</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.source.WMTS#changed" class="unstable">
<a href="ol.source.WMTS.html#changed">changed</a>
</li>
<li data-name="ol.source.WMTS#getAttributions" class="">
<a href="ol.source.WMTS.html#getAttributions">getAttributions</a>
</li>
<li data-name="ol.source.WMTS#getDimensions" class="unstable">
<a href="ol.source.WMTS.html#getDimensions">getDimensions</a>
</li>
<li data-name="ol.source.WMTS#getLogo" class="">
<a href="ol.source.WMTS.html#getLogo">getLogo</a>
</li>
<li data-name="ol.source.WMTS#getProjection" class="unstable">
<a href="ol.source.WMTS.html#getProjection">getProjection</a>
</li>
<li data-name="ol.source.WMTS#getRevision" class="unstable">
<a href="ol.source.WMTS.html#getRevision">getRevision</a>
</li>
<li data-name="ol.source.WMTS#getState" class="unstable">
<a href="ol.source.WMTS.html#getState">getState</a>
</li>
<li data-name="ol.source.WMTS#getTileGrid" class="">
<a href="ol.source.WMTS.html#getTileGrid">getTileGrid</a>
</li>
<li data-name="ol.source.WMTS#getTileLoadFunction" class="unstable">
<a href="ol.source.WMTS.html#getTileLoadFunction">getTileLoadFunction</a>
</li>
<li data-name="ol.source.WMTS#getTileUrlFunction" class="unstable">
<a href="ol.source.WMTS.html#getTileUrlFunction">getTileUrlFunction</a>
</li>
<li data-name="ol.source.WMTS#on" class="">
<a href="ol.source.WMTS.html#on">on</a>
</li>
<li data-name="ol.source.WMTS#once" class="">
<a href="ol.source.WMTS.html#once">once</a>
</li>
<li data-name="ol.source.WMTS#setTileLoadFunction" class="unstable">
<a href="ol.source.WMTS.html#setTileLoadFunction">setTileLoadFunction</a>
</li>
<li data-name="ol.source.WMTS#setTileUrlFunction" class="unstable">
<a href="ol.source.WMTS.html#setTileUrlFunction">setTileUrlFunction</a>
</li>
<li data-name="ol.source.WMTS#un" class="">
<a href="ol.source.WMTS.html#un">un</a>
</li>
<li data-name="ol.source.WMTS#unByKey" class="">
<a href="ol.source.WMTS.html#unByKey">unByKey</a>
</li>
<li data-name="ol.source.WMTS#updateDimensions" class="unstable">
<a href="ol.source.WMTS.html#updateDimensions">updateDimensions</a>
</li>
</ul>
<ul class="fires itemMembers">
<span class="subtitle">Fires</span>
<li data-name="event:change Triggered when the state of the source changes." class="unstable">
change Triggered when the state of the source changes.
</li>
</ul>
</li>
<li class="item" data-name="ol.source.XYZ">
<span class="title">
<a href="ol.source.XYZ.html">ol.source.XYZ</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.source.XYZ#changed" class="unstable">
<a href="ol.source.XYZ.html#changed">changed</a>
</li>
<li data-name="ol.source.XYZ#getAttributions" class="">
<a href="ol.source.XYZ.html#getAttributions">getAttributions</a>
</li>
<li data-name="ol.source.XYZ#getLogo" class="">
<a href="ol.source.XYZ.html#getLogo">getLogo</a>
</li>
<li data-name="ol.source.XYZ#getProjection" class="unstable">
<a href="ol.source.XYZ.html#getProjection">getProjection</a>
</li>
<li data-name="ol.source.XYZ#getRevision" class="unstable">
<a href="ol.source.XYZ.html#getRevision">getRevision</a>
</li>
<li data-name="ol.source.XYZ#getState" class="unstable">
<a href="ol.source.XYZ.html#getState">getState</a>
</li>
<li data-name="ol.source.XYZ#getTileGrid" class="">
<a href="ol.source.XYZ.html#getTileGrid">getTileGrid</a>
</li>
<li data-name="ol.source.XYZ#getTileLoadFunction" class="unstable">
<a href="ol.source.XYZ.html#getTileLoadFunction">getTileLoadFunction</a>
</li>
<li data-name="ol.source.XYZ#getTileUrlFunction" class="unstable">
<a href="ol.source.XYZ.html#getTileUrlFunction">getTileUrlFunction</a>
</li>
<li data-name="ol.source.XYZ#on" class="">
<a href="ol.source.XYZ.html#on">on</a>
</li>
<li data-name="ol.source.XYZ#once" class="">
<a href="ol.source.XYZ.html#once">once</a>
</li>
<li data-name="ol.source.XYZ#setTileLoadFunction" class="unstable">
<a href="ol.source.XYZ.html#setTileLoadFunction">setTileLoadFunction</a>
</li>
<li data-name="ol.source.XYZ#setTileUrlFunction" class="unstable">
<a href="ol.source.XYZ.html#setTileUrlFunction">setTileUrlFunction</a>
</li>
<li data-name="ol.source.XYZ#setUrl" class="">
<a href="ol.source.XYZ.html#setUrl">setUrl</a>
</li>
<li data-name="ol.source.XYZ#un" class="">
<a href="ol.source.XYZ.html#un">un</a>
</li>
<li data-name="ol.source.XYZ#unByKey" class="">
<a href="ol.source.XYZ.html#unByKey">unByKey</a>
</li>
</ul>
<ul class="fires itemMembers">
<span class="subtitle">Fires</span>
<li data-name="event:change Triggered when the state of the source changes." class="unstable">
change Triggered when the state of the source changes.
</li>
</ul>
</li>
<li class="item" data-name="ol.source.Zoomify">
<span class="title">
<a href="ol.source.Zoomify.html">ol.source.Zoomify</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.source.Zoomify#changed" class="unstable">
<a href="ol.source.Zoomify.html#changed">changed</a>
</li>
<li data-name="ol.source.Zoomify#getAttributions" class="">
<a href="ol.source.Zoomify.html#getAttributions">getAttributions</a>
</li>
<li data-name="ol.source.Zoomify#getLogo" class="">
<a href="ol.source.Zoomify.html#getLogo">getLogo</a>
</li>
<li data-name="ol.source.Zoomify#getProjection" class="unstable">
<a href="ol.source.Zoomify.html#getProjection">getProjection</a>
</li>
<li data-name="ol.source.Zoomify#getRevision" class="unstable">
<a href="ol.source.Zoomify.html#getRevision">getRevision</a>
</li>
<li data-name="ol.source.Zoomify#getState" class="unstable">
<a href="ol.source.Zoomify.html#getState">getState</a>
</li>
<li data-name="ol.source.Zoomify#getTileGrid" class="">
<a href="ol.source.Zoomify.html#getTileGrid">getTileGrid</a>
</li>
<li data-name="ol.source.Zoomify#getTileLoadFunction" class="unstable">
<a href="ol.source.Zoomify.html#getTileLoadFunction">getTileLoadFunction</a>
</li>
<li data-name="ol.source.Zoomify#getTileUrlFunction" class="unstable">
<a href="ol.source.Zoomify.html#getTileUrlFunction">getTileUrlFunction</a>
</li>
<li data-name="ol.source.Zoomify#on" class="">
<a href="ol.source.Zoomify.html#on">on</a>
</li>
<li data-name="ol.source.Zoomify#once" class="">
<a href="ol.source.Zoomify.html#once">once</a>
</li>
<li data-name="ol.source.Zoomify#setTileLoadFunction" class="unstable">
<a href="ol.source.Zoomify.html#setTileLoadFunction">setTileLoadFunction</a>
</li>
<li data-name="ol.source.Zoomify#setTileUrlFunction" class="unstable">
<a href="ol.source.Zoomify.html#setTileUrlFunction">setTileUrlFunction</a>
</li>
<li data-name="ol.source.Zoomify#un" class="">
<a href="ol.source.Zoomify.html#un">un</a>
</li>
<li data-name="ol.source.Zoomify#unByKey" class="">
<a href="ol.source.Zoomify.html#unByKey">unByKey</a>
</li>
</ul>
<ul class="fires itemMembers">
<span class="subtitle">Fires</span>
<li data-name="event:change Triggered when the state of the source changes." class="unstable">
change Triggered when the state of the source changes.
</li>
</ul>
</li>
<li class="item" data-name="ol.source.wms">
<span class="title">
<a href="ol.source.wms.html">ol.source.wms</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
<span class="subtitle">Typedefs</span>
<li data-name="ol.source.wms.ServerType" class="unstable">
<a href="ol.source.wms.html#ServerType">ServerType</a>
</li>
</ul>
<ul class="methods itemMembers">
</ul>
<ul class="fires itemMembers">
</ul>
</li>
<li class="item" data-name="ol.style">
<span class="title">
<a href="ol.style.html">ol.style</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
<span class="subtitle">Typedefs</span>
<li data-name="ol.style.GeometryFunction" class="unstable">
<a href="ol.style.html#GeometryFunction">GeometryFunction</a>
</li>
<li data-name="ol.style.IconAnchorUnits" class="unstable">
<a href="ol.style.html#IconAnchorUnits">IconAnchorUnits</a>
</li>
<li data-name="ol.style.IconOrigin" class="unstable">
<a href="ol.style.html#IconOrigin">IconOrigin</a>
</li>
<li data-name="ol.style.StyleFunction" class="unstable">
<a href="ol.style.html#StyleFunction">StyleFunction</a>
</li>
</ul>
<ul class="methods itemMembers">
</ul>
<ul class="fires itemMembers">
</ul>
</li>
<li class="item" data-name="ol.style.AtlasManager">
<span class="title">
<a href="ol.style.AtlasManager.html">ol.style.AtlasManager</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
</ul>
<ul class="fires itemMembers">
</ul>
</li>
<li class="item" data-name="ol.style.Circle">
<span class="title">
<a href="ol.style.Circle.html">ol.style.Circle</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.style.Circle#getAnchor" class="unstable">
<a href="ol.style.Circle.html#getAnchor">getAnchor</a>
</li>
<li data-name="ol.style.Circle#getFill" class="unstable">
<a href="ol.style.Circle.html#getFill">getFill</a>
</li>
<li data-name="ol.style.Circle#getImage" class="unstable">
<a href="ol.style.Circle.html#getImage">getImage</a>
</li>
<li data-name="ol.style.Circle#getOpacity" class="unstable">
<a href="ol.style.Circle.html#getOpacity">getOpacity</a>
</li>
<li data-name="ol.style.Circle#getOrigin" class="unstable">
<a href="ol.style.Circle.html#getOrigin">getOrigin</a>
</li>
<li data-name="ol.style.Circle#getRadius" class="unstable">
<a href="ol.style.Circle.html#getRadius">getRadius</a>
</li>
<li data-name="ol.style.Circle#getRotateWithView" class="unstable">
<a href="ol.style.Circle.html#getRotateWithView">getRotateWithView</a>
</li>
<li data-name="ol.style.Circle#getRotation" class="unstable">
<a href="ol.style.Circle.html#getRotation">getRotation</a>
</li>
<li data-name="ol.style.Circle#getScale" class="unstable">
<a href="ol.style.Circle.html#getScale">getScale</a>
</li>
<li data-name="ol.style.Circle#getSize" class="unstable">
<a href="ol.style.Circle.html#getSize">getSize</a>
</li>
<li data-name="ol.style.Circle#getSnapToPixel" class="unstable">
<a href="ol.style.Circle.html#getSnapToPixel">getSnapToPixel</a>
</li>
<li data-name="ol.style.Circle#getStroke" class="unstable">
<a href="ol.style.Circle.html#getStroke">getStroke</a>
</li>
<li data-name="ol.style.Circle#setRotation" class="unstable">
<a href="ol.style.Circle.html#setRotation">setRotation</a>
</li>
<li data-name="ol.style.Circle#setScale" class="unstable">
<a href="ol.style.Circle.html#setScale">setScale</a>
</li>
</ul>
<ul class="fires itemMembers">
</ul>
</li>
<li class="item" data-name="ol.style.Fill">
<span class="title">
<a href="ol.style.Fill.html">ol.style.Fill</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.style.Fill#getColor" class="unstable">
<a href="ol.style.Fill.html#getColor">getColor</a>
</li>
<li data-name="ol.style.Fill#setColor" class="unstable">
<a href="ol.style.Fill.html#setColor">setColor</a>
</li>
</ul>
<ul class="fires itemMembers">
</ul>
</li>
<li class="item" data-name="ol.style.Icon">
<span class="title">
<a href="ol.style.Icon.html">ol.style.Icon</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.style.Icon#getAnchor" class="unstable">
<a href="ol.style.Icon.html#getAnchor">getAnchor</a>
</li>
<li data-name="ol.style.Icon#getImage" class="unstable">
<a href="ol.style.Icon.html#getImage">getImage</a>
</li>
<li data-name="ol.style.Icon#getOpacity" class="unstable">
<a href="ol.style.Icon.html#getOpacity">getOpacity</a>
</li>
<li data-name="ol.style.Icon#getOrigin" class="unstable">
<a href="ol.style.Icon.html#getOrigin">getOrigin</a>
</li>
<li data-name="ol.style.Icon#getRotateWithView" class="unstable">
<a href="ol.style.Icon.html#getRotateWithView">getRotateWithView</a>
</li>
<li data-name="ol.style.Icon#getRotation" class="unstable">
<a href="ol.style.Icon.html#getRotation">getRotation</a>
</li>
<li data-name="ol.style.Icon#getScale" class="unstable">
<a href="ol.style.Icon.html#getScale">getScale</a>
</li>
<li data-name="ol.style.Icon#getSize" class="unstable">
<a href="ol.style.Icon.html#getSize">getSize</a>
</li>
<li data-name="ol.style.Icon#getSnapToPixel" class="unstable">
<a href="ol.style.Icon.html#getSnapToPixel">getSnapToPixel</a>
</li>
<li data-name="ol.style.Icon#getSrc" class="unstable">
<a href="ol.style.Icon.html#getSrc">getSrc</a>
</li>
<li data-name="ol.style.Icon#setRotation" class="unstable">
<a href="ol.style.Icon.html#setRotation">setRotation</a>
</li>
<li data-name="ol.style.Icon#setScale" class="unstable">
<a href="ol.style.Icon.html#setScale">setScale</a>
</li>
</ul>
<ul class="fires itemMembers">
</ul>
</li>
<li class="item" data-name="ol.style.Image">
<span class="title">
<a href="ol.style.Image.html">ol.style.Image</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.style.Image#getImage" class="unstable">
<a href="ol.style.Image.html#getImage">getImage</a>
</li>
<li data-name="ol.style.Image#getOpacity" class="unstable">
<a href="ol.style.Image.html#getOpacity">getOpacity</a>
</li>
<li data-name="ol.style.Image#getRotateWithView" class="unstable">
<a href="ol.style.Image.html#getRotateWithView">getRotateWithView</a>
</li>
<li data-name="ol.style.Image#getRotation" class="unstable">
<a href="ol.style.Image.html#getRotation">getRotation</a>
</li>
<li data-name="ol.style.Image#getScale" class="unstable">
<a href="ol.style.Image.html#getScale">getScale</a>
</li>
<li data-name="ol.style.Image#getSnapToPixel" class="unstable">
<a href="ol.style.Image.html#getSnapToPixel">getSnapToPixel</a>
</li>
<li data-name="ol.style.Image#setRotation" class="unstable">
<a href="ol.style.Image.html#setRotation">setRotation</a>
</li>
<li data-name="ol.style.Image#setScale" class="unstable">
<a href="ol.style.Image.html#setScale">setScale</a>
</li>
</ul>
<ul class="fires itemMembers">
</ul>
</li>
<li class="item" data-name="ol.style.RegularShape">
<span class="title">
<a href="ol.style.RegularShape.html">ol.style.RegularShape</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.style.RegularShape#getAnchor" class="unstable">
<a href="ol.style.RegularShape.html#getAnchor">getAnchor</a>
</li>
<li data-name="ol.style.RegularShape#getAngle" class="unstable">
<a href="ol.style.RegularShape.html#getAngle">getAngle</a>
</li>
<li data-name="ol.style.RegularShape#getFill" class="unstable">
<a href="ol.style.RegularShape.html#getFill">getFill</a>
</li>
<li data-name="ol.style.RegularShape#getImage" class="unstable">
<a href="ol.style.RegularShape.html#getImage">getImage</a>
</li>
<li data-name="ol.style.RegularShape#getOpacity" class="unstable">
<a href="ol.style.RegularShape.html#getOpacity">getOpacity</a>
</li>
<li data-name="ol.style.RegularShape#getOrigin" class="unstable">
<a href="ol.style.RegularShape.html#getOrigin">getOrigin</a>
</li>
<li data-name="ol.style.RegularShape#getPoints" class="unstable">
<a href="ol.style.RegularShape.html#getPoints">getPoints</a>
</li>
<li data-name="ol.style.RegularShape#getRadius" class="unstable">
<a href="ol.style.RegularShape.html#getRadius">getRadius</a>
</li>
<li data-name="ol.style.RegularShape#getRadius2" class="unstable">
<a href="ol.style.RegularShape.html#getRadius2">getRadius2</a>
</li>
<li data-name="ol.style.RegularShape#getRotateWithView" class="unstable">
<a href="ol.style.RegularShape.html#getRotateWithView">getRotateWithView</a>
</li>
<li data-name="ol.style.RegularShape#getRotation" class="unstable">
<a href="ol.style.RegularShape.html#getRotation">getRotation</a>
</li>
<li data-name="ol.style.RegularShape#getScale" class="unstable">
<a href="ol.style.RegularShape.html#getScale">getScale</a>
</li>
<li data-name="ol.style.RegularShape#getSize" class="unstable">
<a href="ol.style.RegularShape.html#getSize">getSize</a>
</li>
<li data-name="ol.style.RegularShape#getSnapToPixel" class="unstable">
<a href="ol.style.RegularShape.html#getSnapToPixel">getSnapToPixel</a>
</li>
<li data-name="ol.style.RegularShape#getStroke" class="unstable">
<a href="ol.style.RegularShape.html#getStroke">getStroke</a>
</li>
<li data-name="ol.style.RegularShape#setRotation" class="unstable">
<a href="ol.style.RegularShape.html#setRotation">setRotation</a>
</li>
<li data-name="ol.style.RegularShape#setScale" class="unstable">
<a href="ol.style.RegularShape.html#setScale">setScale</a>
</li>
</ul>
<ul class="fires itemMembers">
</ul>
</li>
<li class="item" data-name="ol.style.Stroke">
<span class="title">
<a href="ol.style.Stroke.html">ol.style.Stroke</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.style.Stroke#getColor" class="unstable">
<a href="ol.style.Stroke.html#getColor">getColor</a>
</li>
<li data-name="ol.style.Stroke#getLineCap" class="unstable">
<a href="ol.style.Stroke.html#getLineCap">getLineCap</a>
</li>
<li data-name="ol.style.Stroke#getLineDash" class="unstable">
<a href="ol.style.Stroke.html#getLineDash">getLineDash</a>
</li>
<li data-name="ol.style.Stroke#getLineJoin" class="unstable">
<a href="ol.style.Stroke.html#getLineJoin">getLineJoin</a>
</li>
<li data-name="ol.style.Stroke#getMiterLimit" class="unstable">
<a href="ol.style.Stroke.html#getMiterLimit">getMiterLimit</a>
</li>
<li data-name="ol.style.Stroke#getWidth" class="unstable">
<a href="ol.style.Stroke.html#getWidth">getWidth</a>
</li>
<li data-name="ol.style.Stroke#setColor" class="unstable">
<a href="ol.style.Stroke.html#setColor">setColor</a>
</li>
<li data-name="ol.style.Stroke#setLineCap" class="unstable">
<a href="ol.style.Stroke.html#setLineCap">setLineCap</a>
</li>
<li data-name="ol.style.Stroke#setLineDash" class="unstable">
<a href="ol.style.Stroke.html#setLineDash">setLineDash</a>
</li>
<li data-name="ol.style.Stroke#setLineJoin" class="unstable">
<a href="ol.style.Stroke.html#setLineJoin">setLineJoin</a>
</li>
<li data-name="ol.style.Stroke#setMiterLimit" class="unstable">
<a href="ol.style.Stroke.html#setMiterLimit">setMiterLimit</a>
</li>
<li data-name="ol.style.Stroke#setWidth" class="unstable">
<a href="ol.style.Stroke.html#setWidth">setWidth</a>
</li>
</ul>
<ul class="fires itemMembers">
</ul>
</li>
<li class="item" data-name="ol.style.Style">
<span class="title">
<a href="ol.style.Style.html">ol.style.Style</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.style.Style#getFill" class="unstable">
<a href="ol.style.Style.html#getFill">getFill</a>
</li>
<li data-name="ol.style.Style#getGeometry" class="unstable">
<a href="ol.style.Style.html#getGeometry">getGeometry</a>
</li>
<li data-name="ol.style.Style#getGeometryFunction" class="unstable">
<a href="ol.style.Style.html#getGeometryFunction">getGeometryFunction</a>
</li>
<li data-name="ol.style.Style#getImage" class="unstable">
<a href="ol.style.Style.html#getImage">getImage</a>
</li>
<li data-name="ol.style.Style#getStroke" class="unstable">
<a href="ol.style.Style.html#getStroke">getStroke</a>
</li>
<li data-name="ol.style.Style#getText" class="unstable">
<a href="ol.style.Style.html#getText">getText</a>
</li>
<li data-name="ol.style.Style#getZIndex" class="unstable">
<a href="ol.style.Style.html#getZIndex">getZIndex</a>
</li>
<li data-name="ol.style.Style#setGeometry" class="unstable">
<a href="ol.style.Style.html#setGeometry">setGeometry</a>
</li>
<li data-name="ol.style.Style#setZIndex" class="unstable">
<a href="ol.style.Style.html#setZIndex">setZIndex</a>
</li>
</ul>
<ul class="fires itemMembers">
</ul>
</li>
<li class="item" data-name="ol.style.Text">
<span class="title">
<a href="ol.style.Text.html">ol.style.Text</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.style.Text#getFill" class="unstable">
<a href="ol.style.Text.html#getFill">getFill</a>
</li>
<li data-name="ol.style.Text#getFont" class="unstable">
<a href="ol.style.Text.html#getFont">getFont</a>
</li>
<li data-name="ol.style.Text#getOffsetX" class="unstable">
<a href="ol.style.Text.html#getOffsetX">getOffsetX</a>
</li>
<li data-name="ol.style.Text#getOffsetY" class="unstable">
<a href="ol.style.Text.html#getOffsetY">getOffsetY</a>
</li>
<li data-name="ol.style.Text#getRotation" class="unstable">
<a href="ol.style.Text.html#getRotation">getRotation</a>
</li>
<li data-name="ol.style.Text#getScale" class="unstable">
<a href="ol.style.Text.html#getScale">getScale</a>
</li>
<li data-name="ol.style.Text#getStroke" class="unstable">
<a href="ol.style.Text.html#getStroke">getStroke</a>
</li>
<li data-name="ol.style.Text#getText" class="unstable">
<a href="ol.style.Text.html#getText">getText</a>
</li>
<li data-name="ol.style.Text#getTextAlign" class="unstable">
<a href="ol.style.Text.html#getTextAlign">getTextAlign</a>
</li>
<li data-name="ol.style.Text#getTextBaseline" class="unstable">
<a href="ol.style.Text.html#getTextBaseline">getTextBaseline</a>
</li>
<li data-name="ol.style.Text#setFill" class="unstable">
<a href="ol.style.Text.html#setFill">setFill</a>
</li>
<li data-name="ol.style.Text#setFont" class="unstable">
<a href="ol.style.Text.html#setFont">setFont</a>
</li>
<li data-name="ol.style.Text#setRotation" class="unstable">
<a href="ol.style.Text.html#setRotation">setRotation</a>
</li>
<li data-name="ol.style.Text#setScale" class="unstable">
<a href="ol.style.Text.html#setScale">setScale</a>
</li>
<li data-name="ol.style.Text#setStroke" class="unstable">
<a href="ol.style.Text.html#setStroke">setStroke</a>
</li>
<li data-name="ol.style.Text#setText" class="unstable">
<a href="ol.style.Text.html#setText">setText</a>
</li>
<li data-name="ol.style.Text#setTextAlign" class="unstable">
<a href="ol.style.Text.html#setTextAlign">setTextAlign</a>
</li>
<li data-name="ol.style.Text#setTextBaseline" class="unstable">
<a href="ol.style.Text.html#setTextBaseline">setTextBaseline</a>
</li>
</ul>
<ul class="fires itemMembers">
</ul>
</li>
<li class="item" data-name="ol.tilegrid">
<span class="title">
<a href="ol.tilegrid.html">ol.tilegrid</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
</ul>
<ul class="fires itemMembers">
</ul>
</li>
<li class="item" data-name="ol.tilegrid.TileGrid">
<span class="title">
<a href="ol.tilegrid.TileGrid.html">ol.tilegrid.TileGrid</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.tilegrid.TileGrid#getMaxZoom" class="unstable">
<a href="ol.tilegrid.TileGrid.html#getMaxZoom">getMaxZoom</a>
</li>
<li data-name="ol.tilegrid.TileGrid#getMinZoom" class="unstable">
<a href="ol.tilegrid.TileGrid.html#getMinZoom">getMinZoom</a>
</li>
<li data-name="ol.tilegrid.TileGrid#getOrigin" class="">
<a href="ol.tilegrid.TileGrid.html#getOrigin">getOrigin</a>
</li>
<li data-name="ol.tilegrid.TileGrid#getResolution" class="">
<a href="ol.tilegrid.TileGrid.html#getResolution">getResolution</a>
</li>
<li data-name="ol.tilegrid.TileGrid#getResolutions" class="">
<a href="ol.tilegrid.TileGrid.html#getResolutions">getResolutions</a>
</li>
<li data-name="ol.tilegrid.TileGrid#getTileCoordForCoordAndResolution" class="unstable">
<a href="ol.tilegrid.TileGrid.html#getTileCoordForCoordAndResolution">getTileCoordForCoordAndResolution</a>
</li>
<li data-name="ol.tilegrid.TileGrid#getTileCoordForCoordAndZ" class="unstable">
<a href="ol.tilegrid.TileGrid.html#getTileCoordForCoordAndZ">getTileCoordForCoordAndZ</a>
</li>
<li data-name="ol.tilegrid.TileGrid#getTileSize" class="">
<a href="ol.tilegrid.TileGrid.html#getTileSize">getTileSize</a>
</li>
</ul>
<ul class="fires itemMembers">
</ul>
</li>
<li class="item" data-name="ol.tilegrid.WMTS">
<span class="title">
<a href="ol.tilegrid.WMTS.html">ol.tilegrid.WMTS</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.tilegrid.WMTS#getMatrixIds" class="unstable">
<a href="ol.tilegrid.WMTS.html#getMatrixIds">getMatrixIds</a>
</li>
<li data-name="ol.tilegrid.WMTS#getMaxZoom" class="unstable">
<a href="ol.tilegrid.WMTS.html#getMaxZoom">getMaxZoom</a>
</li>
<li data-name="ol.tilegrid.WMTS#getMinZoom" class="unstable">
<a href="ol.tilegrid.WMTS.html#getMinZoom">getMinZoom</a>
</li>
<li data-name="ol.tilegrid.WMTS#getOrigin" class="">
<a href="ol.tilegrid.WMTS.html#getOrigin">getOrigin</a>
</li>
<li data-name="ol.tilegrid.WMTS#getResolution" class="">
<a href="ol.tilegrid.WMTS.html#getResolution">getResolution</a>
</li>
<li data-name="ol.tilegrid.WMTS#getResolutions" class="">
<a href="ol.tilegrid.WMTS.html#getResolutions">getResolutions</a>
</li>
<li data-name="ol.tilegrid.WMTS#getTileCoordForCoordAndResolution" class="unstable">
<a href="ol.tilegrid.WMTS.html#getTileCoordForCoordAndResolution">getTileCoordForCoordAndResolution</a>
</li>
<li data-name="ol.tilegrid.WMTS#getTileCoordForCoordAndZ" class="unstable">
<a href="ol.tilegrid.WMTS.html#getTileCoordForCoordAndZ">getTileCoordForCoordAndZ</a>
</li>
<li data-name="ol.tilegrid.WMTS#getTileSize" class="">
<a href="ol.tilegrid.WMTS.html#getTileSize">getTileSize</a>
</li>
</ul>
<ul class="fires itemMembers">
</ul>
</li>
<li class="item" data-name="ol.tilegrid.XYZ">
<span class="title">
<a href="ol.tilegrid.XYZ.html">ol.tilegrid.XYZ</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.tilegrid.XYZ#getMaxZoom" class="unstable">
<a href="ol.tilegrid.XYZ.html#getMaxZoom">getMaxZoom</a>
</li>
<li data-name="ol.tilegrid.XYZ#getMinZoom" class="unstable">
<a href="ol.tilegrid.XYZ.html#getMinZoom">getMinZoom</a>
</li>
<li data-name="ol.tilegrid.XYZ#getOrigin" class="">
<a href="ol.tilegrid.XYZ.html#getOrigin">getOrigin</a>
</li>
<li data-name="ol.tilegrid.XYZ#getResolution" class="">
<a href="ol.tilegrid.XYZ.html#getResolution">getResolution</a>
</li>
<li data-name="ol.tilegrid.XYZ#getResolutions" class="">
<a href="ol.tilegrid.XYZ.html#getResolutions">getResolutions</a>
</li>
<li data-name="ol.tilegrid.XYZ#getTileCoordForCoordAndResolution" class="unstable">
<a href="ol.tilegrid.XYZ.html#getTileCoordForCoordAndResolution">getTileCoordForCoordAndResolution</a>
</li>
<li data-name="ol.tilegrid.XYZ#getTileCoordForCoordAndZ" class="unstable">
<a href="ol.tilegrid.XYZ.html#getTileCoordForCoordAndZ">getTileCoordForCoordAndZ</a>
</li>
<li data-name="ol.tilegrid.XYZ#getTileSize" class="">
<a href="ol.tilegrid.XYZ.html#getTileSize">getTileSize</a>
</li>
</ul>
<ul class="fires itemMembers">
</ul>
</li>
<li class="item" data-name="ol.tilegrid.Zoomify">
<span class="title">
<a href="ol.tilegrid.Zoomify.html">ol.tilegrid.Zoomify</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.tilegrid.Zoomify#getMaxZoom" class="unstable">
<a href="ol.tilegrid.Zoomify.html#getMaxZoom">getMaxZoom</a>
</li>
<li data-name="ol.tilegrid.Zoomify#getMinZoom" class="unstable">
<a href="ol.tilegrid.Zoomify.html#getMinZoom">getMinZoom</a>
</li>
<li data-name="ol.tilegrid.Zoomify#getOrigin" class="">
<a href="ol.tilegrid.Zoomify.html#getOrigin">getOrigin</a>
</li>
<li data-name="ol.tilegrid.Zoomify#getResolution" class="">
<a href="ol.tilegrid.Zoomify.html#getResolution">getResolution</a>
</li>
<li data-name="ol.tilegrid.Zoomify#getResolutions" class="">
<a href="ol.tilegrid.Zoomify.html#getResolutions">getResolutions</a>
</li>
<li data-name="ol.tilegrid.Zoomify#getTileCoordForCoordAndResolution" class="unstable">
<a href="ol.tilegrid.Zoomify.html#getTileCoordForCoordAndResolution">getTileCoordForCoordAndResolution</a>
</li>
<li data-name="ol.tilegrid.Zoomify#getTileCoordForCoordAndZ" class="unstable">
<a href="ol.tilegrid.Zoomify.html#getTileCoordForCoordAndZ">getTileCoordForCoordAndZ</a>
</li>
<li data-name="ol.tilegrid.Zoomify#getTileSize" class="">
<a href="ol.tilegrid.Zoomify.html#getTileSize">getTileSize</a>
</li>
</ul>
<ul class="fires itemMembers">
</ul>
</li>
<li class="item" data-name="ol.webgl.Context">
<span class="title">
<a href="ol.webgl.Context.html">ol.webgl.Context</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.webgl.Context#getGL" class="unstable">
<a href="ol.webgl.Context.html#getGL">getGL</a>
</li>
<li data-name="ol.webgl.Context#getHitDetectionFramebuffer" class="unstable">
<a href="ol.webgl.Context.html#getHitDetectionFramebuffer">getHitDetectionFramebuffer</a>
</li>
<li data-name="ol.webgl.Context#useProgram" class="unstable">
<a href="ol.webgl.Context.html#useProgram">useProgram</a>
</li>
</ul>
<ul class="fires itemMembers">
</ul>
</li>
</ul>
</div>
<div class="main">
<h1 class="page-title" data-filename="ol.layer.Heatmap.html">Class: Heatmap</h1>
<section>
<header>
<h2>
<span class="ancestors"><a href="ol.html">ol</a><a href="ol.layer.html">.layer</a>.</span>Heatmap
</h2>
<div class="class-description"><p>Layer for rendering vector data as a heatmap.
Note that any property set in the options is set as a <a href="ol.Object.html"><code>ol.Object</code></a>
property on the layer object; for example, setting <code>title: 'My Title'</code> in the
options means that <code>title</code> is observable, and has get/set accessors.</p></div>
</header>
<article>
<div class="container-overview">
<dt class="unstable">
<div class="nameContainer">
<h4 class="name" id="Heatmap">
new ol.layer.Heatmap<span class="signature">(<span class="optional">opt_options</span>)</span>
<span class="stability experimental">experimental</span>
</h4>
<div class="tag-source">
src/ol/layer/heatmaplayer.js, line 37
</div>
</div>
</dt>
<dd class="unstable">
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr class="">
<td class="name"><code>options</code></td>
<td colspan=2 class="description last">
<p>Options.</p>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr class="unstable">
<td class="name"><code>brightness</code></td>
<td class="type">
<span class="param-type">number</span>
|
<span class="param-type">undefined</span>
</td>
<td class="description last">
<span class="stability experimental">experimental</span>
<p>Brightness.</p></td>
</tr>
<tr class="unstable">
<td class="name"><code>contrast</code></td>
<td class="type">
<span class="param-type">number</span>
|
<span class="param-type">undefined</span>
</td>
<td class="description last">
<span class="stability experimental">experimental</span>
<p>Contrast.</p></td>
</tr>
<tr class="unstable">
<td class="name"><code>hue</code></td>
<td class="type">
<span class="param-type">number</span>
|
<span class="param-type">undefined</span>
</td>
<td class="description last">
<span class="stability experimental">experimental</span>
<p>Hue.</p></td>
</tr>
<tr class="unstable">
<td class="name"><code>gradient</code></td>
<td class="type">
<span class="param-type">Array.<string></span>
|
<span class="param-type">undefined</span>
</td>
<td class="description last">
<span class="stability experimental">experimental</span>
<p>The color gradient of the heatmap, specified as an array of CSS color
strings. Default is <code>['#00f', '#0ff', '#0f0', '#ff0', '#f00']</code>.</p></td>
</tr>
<tr class="unstable">
<td class="name"><code>radius</code></td>
<td class="type">
<span class="param-type">number</span>
|
<span class="param-type">undefined</span>
</td>
<td class="description last">
<span class="stability experimental">experimental</span>
<p>Radius size in pixels. Default is <code>8</code>.</p></td>
</tr>
<tr class="unstable">
<td class="name"><code>blur</code></td>
<td class="type">
<span class="param-type">number</span>
|
<span class="param-type">undefined</span>
</td>
<td class="description last">
<span class="stability experimental">experimental</span>
<p>Blur size in pixels. Default is <code>15</code>.</p></td>
</tr>
<tr class="unstable">
<td class="name"><code>shadow</code></td>
<td class="type">
<span class="param-type">number</span>
|
<span class="param-type">undefined</span>
</td>
<td class="description last">
<span class="stability experimental">experimental</span>
<p>Shadow size in pixels. Default is <code>250</code>.</p></td>
</tr>
<tr class="unstable">
<td class="name"><code>weight</code></td>
<td class="type">
<span class="param-type">string</span>
|
<span class="param-type">function</span>
</td>
<td class="description last">
<span class="stability experimental">experimental</span>
<p>The feature attribute to use for the weight or a function that returns a
weight from a feature. Weight values should range from 0 to 1 (and values
outside will be clamped to that range). Default is <code>weight</code>.</p></td>
</tr>
<tr class="unstable">
<td class="name"><code>extent</code></td>
<td class="type">
<span class="param-type"><a href="ol.html#Extent">ol.Extent</a></span>
|
<span class="param-type">undefined</span>
</td>
<td class="description last">
<span class="stability experimental">experimental</span>
<p>The bounding extent for layer rendering. The layer will not be rendered
outside of this extent.</p></td>
</tr>
<tr class="unstable">
<td class="name"><code>minResolution</code></td>
<td class="type">
<span class="param-type">number</span>
|
<span class="param-type">undefined</span>
</td>
<td class="description last">
<span class="stability experimental">experimental</span>
<p>The minimum resolution (inclusive) at which this layer will be visible.</p></td>
</tr>
<tr class="unstable">
<td class="name"><code>maxResolution</code></td>
<td class="type">
<span class="param-type">number</span>
|
<span class="param-type">undefined</span>
</td>
<td class="description last">
<span class="stability experimental">experimental</span>
<p>The maximum resolution (exclusive) below which this layer will be visible.</p></td>
</tr>
<tr class="unstable">
<td class="name"><code>opacity</code></td>
<td class="type">
<span class="param-type">number</span>
|
<span class="param-type">undefined</span>
</td>
<td class="description last">
<span class="stability experimental">experimental</span>
<p>Opacity. 0-1. Default is <code>1</code>.</p></td>
</tr>
<tr class="unstable">
<td class="name"><code>saturation</code></td>
<td class="type">
<span class="param-type">number</span>
|
<span class="param-type">undefined</span>
</td>
<td class="description last">
<span class="stability experimental">experimental</span>
<p>Saturation.</p></td>
</tr>
<tr class="unstable">
<td class="name"><code>source</code></td>
<td class="type">
<span class="param-type"><a href="ol.source.Vector.html">ol.source.Vector</a></span>
</td>
<td class="description last">
<span class="stability experimental">experimental</span>
<p>Source.</p></td>
</tr>
<tr class="unstable">
<td class="name"><code>visible</code></td>
<td class="type">
<span class="param-type">boolean</span>
|
<span class="param-type">undefined</span>
</td>
<td class="description last">
<span class="stability experimental">experimental</span>
<p>Visibility. Default is <code>true</code> (visible).</p></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
<dl class="details">
</dl>
<h5>Fires:</h5>
<ul>
<li class="unstable">
<code>change</code>
<span class="stability experimental">experimental</span>
-
Triggered when the state of the source changes.
</li>
<li class="unstable">
<code>change:brightness</code>
(<a href="ol.ObjectEvent.html">ol.ObjectEvent</a>)
<span class="stability experimental">experimental</span>
</li>
<li class="unstable">
<code>change:contrast</code>
(<a href="ol.ObjectEvent.html">ol.ObjectEvent</a>)
<span class="stability experimental">experimental</span>
</li>
<li class="unstable">
<code>change:extent</code>
(<a href="ol.ObjectEvent.html">ol.ObjectEvent</a>)
<span class="stability experimental">experimental</span>
</li>
<li class="unstable">
<code>change:gradient</code>
(<a href="ol.ObjectEvent.html">ol.ObjectEvent</a>)
<span class="stability experimental">experimental</span>
</li>
<li class="unstable">
<code>change:hue</code>
(<a href="ol.ObjectEvent.html">ol.ObjectEvent</a>)
<span class="stability experimental">experimental</span>
</li>
<li class="unstable">
<code>change:maxResolution</code>
(<a href="ol.ObjectEvent.html">ol.ObjectEvent</a>)
<span class="stability experimental">experimental</span>
</li>
<li class="unstable">
<code>change:minResolution</code>
(<a href="ol.ObjectEvent.html">ol.ObjectEvent</a>)
<span class="stability experimental">experimental</span>
</li>
<li class="unstable">
<code>change:opacity</code>
(<a href="ol.ObjectEvent.html">ol.ObjectEvent</a>)
<span class="stability experimental">experimental</span>
</li>
<li class="unstable">
<code>change:saturation</code>
(<a href="ol.ObjectEvent.html">ol.ObjectEvent</a>)
<span class="stability experimental">experimental</span>
</li>
<li class="unstable">
<code>change:source</code>
(<a href="ol.ObjectEvent.html">ol.ObjectEvent</a>)
<span class="stability experimental">experimental</span>
</li>
<li class="unstable">
<code>change:visible</code>
(<a href="ol.ObjectEvent.html">ol.ObjectEvent</a>)
<span class="stability experimental">experimental</span>
</li>
<li class="unstable">
<code><a href="ol.render.Event.html#event:postcompose">postcompose</a></code>
(<a href="ol.render.Event.html">ol.render.Event</a>)
<span class="stability experimental">experimental</span>
</li>
<li class="unstable">
<code><a href="ol.render.Event.html#event:precompose">precompose</a></code>
(<a href="ol.render.Event.html">ol.render.Event</a>)
<span class="stability experimental">experimental</span>
</li>
<li class="unstable">
<code><a href="ol.ObjectEvent.html#event:propertychange">propertychange</a></code>
(<a href="ol.ObjectEvent.html">ol.ObjectEvent</a>)
<span class="stability experimental">experimental</span>
-
Triggered when a property is changed.
</li>
<li class="unstable">
<code><a href="ol.render.Event.html#event:render">render</a></code>
(<a href="ol.render.Event.html">ol.render.Event</a>)
<span class="stability experimental">experimental</span>
</li>
</ul>
</dd>
</div>
<h3 class="subsection-title">Extends</h3>
<ul>
<li><a href="ol.layer.Vector.html">ol.layer.Vector</a></li>
</ul>
<h3 class="subsection-title">Observable Properties</h3>
<dl>
<table class="props">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th>Settable</th>
<th><a href="ol.ObjectEvent.html">ol.ObjectEvent</a> type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr class="unstable">
<td class="name"><code>brightness</code></td>
<td class="type">
<span class="param-type">number</span>
</td>
<td class="setter">yes</td>
<td class="event"><code>change:brightness</code></td>
<td class="description last"><p>The brightness of the layer.</p></td>
</tr>
<tr class="unstable">
<td class="name"><code>contrast</code></td>
<td class="type">
<span class="param-type">number</span>
</td>
<td class="setter">yes</td>
<td class="event"><code>change:contrast</code></td>
<td class="description last"><p>The contrast of the layer.</p></td>
</tr>
<tr class="">
<td class="name"><code>extent</code></td>
<td class="type">
<span class="param-type"><a href="ol.html#Extent">ol.Extent</a></span>
|
<span class="param-type">undefined</span>
</td>
<td class="setter">yes</td>
<td class="event"><code>change:extent</code></td>
<td class="description last"><p>The layer extent.</p></td>
</tr>
<tr class="unstable">
<td class="name"><code>gradient</code></td>
<td class="type">
<span class="param-type">Array.<string></span>
</td>
<td class="setter">yes</td>
<td class="event"><code>change:gradient</code></td>
<td class="description last"><p>Colors.</p></td>
</tr>
<tr class="unstable">
<td class="name"><code>hue</code></td>
<td class="type">
<span class="param-type">number</span>
</td>
<td class="setter">yes</td>
<td class="event"><code>change:hue</code></td>
<td class="description last"><p>The hue of the layer.</p></td>
</tr>
<tr class="">
<td class="name"><code>maxResolution</code></td>
<td class="type">
<span class="param-type">number</span>
</td>
<td class="setter">yes</td>
<td class="event"><code>change:maxresolution</code></td>
<td class="description last"><p>The maximum resolution of the layer.</p></td>
</tr>
<tr class="">
<td class="name"><code>minResolution</code></td>
<td class="type">
<span class="param-type">number</span>
</td>
<td class="setter">yes</td>
<td class="event"><code>change:minresolution</code></td>
<td class="description last"><p>The minimum resolution of the layer.</p></td>
</tr>
<tr class="">
<td class="name"><code>opacity</code></td>
<td class="type">
<span class="param-type">number</span>
</td>
<td class="setter">yes</td>
<td class="event"><code>change:opacity</code></td>
<td class="description last"><p>The opacity of the layer.</p></td>
</tr>
<tr class="unstable">
<td class="name"><code>saturation</code></td>
<td class="type">
<span class="param-type">number</span>
</td>
<td class="setter">yes</td>
<td class="event"><code>change:saturation</code></td>
<td class="description last"><p>The saturation of the layer.</p></td>
</tr>
<tr class="">
<td class="name"><code>source</code></td>
<td class="type">
<span class="param-type"><a href="ol.source.Source.html">ol.source.Source</a></span>
</td>
<td class="setter">yes</td>
<td class="event"><code>change:source</code></td>
<td class="description last"><p>The layer source (or <code>null</code> if not yet set).</p></td>
</tr>
<tr class="">
<td class="name"><code>visible</code></td>
<td class="type">
<span class="param-type">boolean</span>
</td>
<td class="setter">yes</td>
<td class="event"><code>change:visible</code></td>
<td class="description last"><p>The visibility of the layer.</p></td>
</tr>
</tbody>
</table>
</dl>
<h3 class="subsection-title">Methods</h3>
<dl>
<dt class="unstable">
<div class="nameContainer inherited">
<h4 class="name" id="bindTo">
bindTo<span class="signature">(key, target, <span class="optional">opt_targetKey</span>)</span><span class="glyphicon glyphicon-circle-arrow-right"></span><span class="type-signature returnType">{<a href="ol.ObjectAccessor.html">ol.ObjectAccessor</a>}</span>
<span class="inherited"><a href="ol.Object.html#bindTo">inherited</a></span>
<span class="stability experimental">experimental</span>
</h4>
<div class="tag-source">
src/ol/object.js, line 326
</div>
</div>
</dt>
<dd class="unstable">
<div class="description">
<p>The bindTo method allows you to set up a two-way binding between a
<code>source</code> and <code>target</code> object. The method returns an object with a
<code>transform</code> method that you can use to provide <code>from</code> and <code>to</code>
functions to transform values on the way from the source to the
target and on the way back.</p>
<p>For example, if you had two map views (sourceView and targetView)
and you wanted the target view to have double the resolution of the
source view, you could transform the resolution on the way to and
from the target with the following:</p>
<pre class="prettyprint source"><code>sourceView.bindTo('resolution', targetView)
.transform(
function(sourceResolution) {
// from sourceView.resolution to targetView.resolution
return 2 * sourceResolution;
},
function(targetResolution) {
// from targetView.resolution to sourceView.resolution
return targetResolution / 2;
}
);</code></pre>
</div>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr class="">
<td class="name"><code>key</code></td>
<td class="type">
<span class="param-type">string</span>
</td>
<td class="description last">
<p>Key name.</p></td>
</tr>
<tr class="">
<td class="name"><code>target</code></td>
<td class="type">
<span class="param-type"><a href="ol.Object.html">ol.Object</a></span>
</td>
<td class="description last">
<p>Target.</p></td>
</tr>
<tr class="">
<td class="name"><code>targetKey</code></td>
<td class="type">
<span class="param-type">string</span>
</td>
<td class="description last">
<p>Target key.</p></td>
</tr>
</tbody>
</table>
<dl class="details">
</dl>
</dd>
<dt class="unstable">
<div class="nameContainer inherited">
<h4 class="name" id="changed">
changed<span class="signature">()</span>
<span class="inherited"><a href="ol.Observable.html#changed">inherited</a></span>
<span class="stability experimental">experimental</span>
</h4>
<div class="tag-source">
src/ol/observable.js, line 52
</div>
</div>
</dt>
<dd class="unstable">
<div class="description">
<p>Increases the revision counter and disptches a 'change' event.</p>
</div>
<dl class="details">
</dl>
<h5>Fires:</h5>
<ul>
<li class="unstable">
<code>change</code>
<span class="stability experimental">experimental</span>
</li>
</ul>
</dd>
<dt class="unstable">
<div class="nameContainer inherited">
<h4 class="name" id="get">
get<span class="signature">(key)</span><span class="glyphicon glyphicon-circle-arrow-right"></span><span class="type-signature returnType">{*}</span>
<span class="inherited"><a href="ol.Object.html#get">inherited</a></span>
<span class="stability experimental">experimental</span>
</h4>
<div class="tag-source">
src/ol/object.js, line 354
</div>
</div>
</dt>
<dd class="unstable">
<div class="description">
<p>Gets a value.</p>
</div>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr class="">
<td class="name"><code>key</code></td>
<td class="type">
<span class="param-type">string</span>
</td>
<td class="description last">
<p>Key name.</p></td>
</tr>
</tbody>
</table>
<dl class="details">
</dl>
<h5>Returns:</h5>
Value.
<br />
</dd>
<dt class="unstable">
<div class="nameContainer inherited">
<h4 class="name" id="getBrightness">
getBrightness<span class="signature">()</span><span class="glyphicon glyphicon-circle-arrow-right"></span><span class="type-signature returnType">{number}</span>
<span class="inherited"><a href="ol.layer.Base.html#getBrightness">inherited</a></span>
<span class="stability experimental">experimental</span>
</h4>
<div class="tag-source">
src/ol/layer/layerbase.js, line 94
</div>
</div>
</dt>
<dd class="unstable">
<dl class="details">
</dl>
<h5>Returns:</h5>
The brightness of the layer.
<br />
</dd>
<dt class="unstable">
<div class="nameContainer inherited">
<h4 class="name" id="getContrast">
getContrast<span class="signature">()</span><span class="glyphicon glyphicon-circle-arrow-right"></span><span class="type-signature returnType">{number}</span>
<span class="inherited"><a href="ol.layer.Base.html#getContrast">inherited</a></span>
<span class="stability experimental">experimental</span>
</h4>
<div class="tag-source">
src/ol/layer/layerbase.js, line 108
</div>
</div>
</dt>
<dd class="unstable">
<dl class="details">
</dl>
<h5>Returns:</h5>
The contrast of the layer.
<br />
</dd>
<dt class="">
<div class="nameContainer inherited">
<h4 class="name" id="getExtent">
getExtent<span class="signature">()</span><span class="glyphicon glyphicon-circle-arrow-right"></span><span class="type-signature returnType">{<a href="ol.html#Extent">ol.Extent</a>|undefined}</span>
<span class="inherited"><a href="ol.layer.Base.html#getExtent">inherited</a></span>
</h4>
<div class="tag-source">
src/ol/layer/layerbase.js, line 182
</div>
</div>
</dt>
<dd class="">
<dl class="details">
</dl>
<h5>Returns:</h5>
The layer extent.
<br />
</dd>
<dt class="unstable">
<div class="nameContainer">
<h4 class="name" id="getGradient">
getGradient<span class="signature">()</span><span class="glyphicon glyphicon-circle-arrow-right"></span><span class="type-signature returnType">{Array.<string>}</span>
<span class="stability experimental">experimental</span>
</h4>
<div class="tag-source">
src/ol/layer/heatmaplayer.js, line 171
</div>
</div>
</dt>
<dd class="unstable">
<dl class="details">
</dl>
<h5>Returns:</h5>
Colors.
<br />
</dd>
<dt class="unstable">
<div class="nameContainer inherited">
<h4 class="name" id="getHue">
getHue<span class="signature">()</span><span class="glyphicon glyphicon-circle-arrow-right"></span><span class="type-signature returnType">{number}</span>
<span class="inherited"><a href="ol.layer.Base.html#getHue">inherited</a></span>
<span class="stability experimental">experimental</span>
</h4>
<div class="tag-source">
src/ol/layer/layerbase.js, line 122
</div>
</div>
</dt>
<dd class="unstable">
<dl class="details">
</dl>
<h5>Returns:</h5>
The hue of the layer.
<br />
</dd>
<dt class="unstable">
<div class="nameContainer inherited">
<h4 class="name" id="getKeys">
getKeys<span class="signature">()</span><span class="glyphicon glyphicon-circle-arrow-right"></span><span class="type-signature returnType">{Array.<string>}</span>
<span class="inherited"><a href="ol.Object.html#getKeys">inherited</a></span>
<span class="stability experimental">experimental</span>
</h4>
<div class="tag-source">
src/ol/object.js, line 373
</div>
</div>
</dt>
<dd class="unstable">
<div class="description">
<p>Get a list of object property names.</p>
</div>
<dl class="details">
</dl>
<h5>Returns:</h5>
List of property names.
<br />
</dd>
<dt class="">
<div class="nameContainer inherited">
<h4 class="name" id="getMaxResolution">
getMaxResolution<span class="signature">()</span><span class="glyphicon glyphicon-circle-arrow-right"></span><span class="type-signature returnType">{number}</span>
<span class="inherited"><a href="ol.layer.Base.html#getMaxResolution">inherited</a></span>
</h4>
<div class="tag-source">
src/ol/layer/layerbase.js, line 197
</div>
</div>
</dt>
<dd class="">
<dl class="details">
</dl>
<h5>Returns:</h5>
The maximum resolution of the layer.
<br />
</dd>
<dt class="">
<div class="nameContainer inherited">
<h4 class="name" id="getMinResolution">
getMinResolution<span class="signature">()</span><span class="glyphicon glyphicon-circle-arrow-right"></span><span class="type-signature returnType">{number}</span>
<span class="inherited"><a href="ol.layer.Base.html#getMinResolution">inherited</a></span>
</h4>
<div class="tag-source">
src/ol/layer/layerbase.js, line 212
</div>
</div>
</dt>
<dd class="">
<dl class="details">
</dl>
<h5>Returns:</h5>
The minimum resolution of the layer.
<br />
</dd>
<dt class="">
<div class="nameContainer inherited">
<h4 class="name" id="getOpacity">
getOpacity<span class="signature">()</span><span class="glyphicon glyphicon-circle-arrow-right"></span><span class="type-signature returnType">{number}</span>
<span class="inherited"><a href="ol.layer.Base.html#getOpacity">inherited</a></span>
</h4>
<div class="tag-source">
src/ol/layer/layerbase.js, line 227
</div>
</div>
</dt>
<dd class="">
<dl class="details">
</dl>
<h5>Returns:</h5>
The opacity of the layer.
<br />
</dd>
<dt class="unstable">
<div class="nameContainer inherited">
<h4 class="name" id="getProperties">
getProperties<span class="signature">()</span><span class="glyphicon glyphicon-circle-arrow-right"></span><span class="type-signature returnType">{Object.<string, *>}</span>
<span class="inherited"><a href="ol.Object.html#getProperties">inherited</a></span>
<span class="stability experimental">experimental</span>
</h4>
<div class="tag-source">
src/ol/object.js, line 405
</div>
</div>
</dt>
<dd class="unstable">
<div class="description">
<p>Get an object of all property names and values.</p>
</div>
<dl class="details">
</dl>
<h5>Returns:</h5>
Object.
<br />
</dd>
<dt class="unstable">
<div class="nameContainer inherited">
<h4 class="name" id="getRevision">
getRevision<span class="signature">()</span><span class="glyphicon glyphicon-circle-arrow-right"></span><span class="type-signature returnType">{number}</span>
<span class="inherited"><a href="ol.Observable.html#getRevision">inherited</a></span>
<span class="stability experimental">experimental</span>
</h4>
<div class="tag-source">
src/ol/observable.js, line 62
</div>
</div>
</dt>
<dd class="unstable">
<dl class="details">
</dl>
<h5>Returns:</h5>
Revision.
<br />
</dd>
<dt class="unstable">
<div class="nameContainer inherited">
<h4 class="name" id="getSaturation">
getSaturation<span class="signature">()</span><span class="glyphicon glyphicon-circle-arrow-right"></span><span class="type-signature returnType">{number}</span>
<span class="inherited"><a href="ol.layer.Base.html#getSaturation">inherited</a></span>
<span class="stability experimental">experimental</span>
</h4>
<div class="tag-source">
src/ol/layer/layerbase.js, line 241
</div>
</div>
</dt>
<dd class="unstable">
<dl class="details">
</dl>
<h5>Returns:</h5>
The saturation of the layer.
<br />
</dd>
<dt class="">
<div class="nameContainer inherited">
<h4 class="name" id="getSource">
getSource<span class="signature">()</span><span class="glyphicon glyphicon-circle-arrow-right"></span><span class="type-signature returnType">{<a href="ol.source.Vector.html">ol.source.Vector</a>}</span>
<span class="inherited"><a href="ol.layer.Vector.html#getSource">inherited</a></span>
</h4>
<div class="tag-source">
src/ol/layer/vectorlayer.js, line 99
</div>
</div>
</dt>
<dd class="">
<dl class="details">
</dl>
<h5>Returns:</h5>
Source.
<br />
</dd>
<dt class="">
<div class="nameContainer inherited">
<h4 class="name" id="getStyle">
getStyle<span class="signature">()</span><span class="glyphicon glyphicon-circle-arrow-right"></span><span class="type-signature returnType">{<a href="ol.style.Style.html">ol.style.Style</a>|Array.<<a href="ol.style.Style.html">ol.style.Style</a>>|<a href="ol.style.html#StyleFunction">ol.style.StyleFunction</a>}</span>
<span class="inherited"><a href="ol.layer.Vector.html#getStyle">inherited</a></span>
</h4>
<div class="tag-source">
src/ol/layer/vectorlayer.js, line 109
</div>
</div>
</dt>
<dd class="">
<div class="description">
<p>Get the style for features. This returns whatever was passed to the <code>style</code>
option at construction or to the <code>setStyle</code> method.</p>
</div>
<dl class="details">
</dl>
<h5>Returns:</h5>
Layer style.
<br />
</dd>
<dt class="">
<div class="nameContainer inherited">
<h4 class="name" id="getStyleFunction">
getStyleFunction<span class="signature">()</span><span class="glyphicon glyphicon-circle-arrow-right"></span><span class="type-signature returnType">{<a href="ol.style.html#StyleFunction">ol.style.StyleFunction</a>|undefined}</span>
<span class="inherited"><a href="ol.layer.Vector.html#getStyleFunction">inherited</a></span>
</h4>
<div class="tag-source">
src/ol/layer/vectorlayer.js, line 119
</div>
</div>
</dt>
<dd class="">
<div class="description">
<p>Get the style function.</p>
</div>
<dl class="details">
</dl>
<h5>Returns:</h5>
Layer style function.
<br />
</dd>
<dt class="">
<div class="nameContainer inherited">
<h4 class="name" id="getVisible">
getVisible<span class="signature">()</span><span class="glyphicon glyphicon-circle-arrow-right"></span><span class="type-signature returnType">{boolean}</span>
<span class="inherited"><a href="ol.layer.Base.html#getVisible">inherited</a></span>
</h4>
<div class="tag-source">
src/ol/layer/layerbase.js, line 261
</div>
</div>
</dt>
<dd class="">
<dl class="details">
</dl>
<h5>Returns:</h5>
The visibility of the layer.
<br />
</dd>
<dt class="">
<div class="nameContainer inherited">
<h4 class="name" id="on">
on<span class="signature">(type, listener, <span class="optional">opt_this</span>)</span><span class="glyphicon glyphicon-circle-arrow-right"></span><span class="type-signature returnType">{goog.events.Key}</span>
<span class="inherited"><a href="ol.Observable.html#on">inherited</a></span>
</h4>
<div class="tag-source">
src/ol/observable.js, line 75
</div>
</div>
</dt>
<dd class="">
<div class="description">
<p>Listen for a certain type of event.</p>
</div>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr class="">
<td class="name"><code>type</code></td>
<td class="type">
<span class="param-type">string</span>
|
<span class="param-type">Array.<string></span>
</td>
<td class="description last">
<p>The event type or array of event types.</p></td>
</tr>
<tr class="">
<td class="name"><code>listener</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="description last">
<p>The listener function.</p></td>
</tr>
<tr class="">
<td class="name"><code>this</code></td>
<td class="type">
<span class="param-type">Object</span>
</td>
<td class="description last">
<p>The object to use as <code>this</code> in <code>listener</code>.</p></td>
</tr>
</tbody>
</table>
<dl class="details">
</dl>
<h5>Returns:</h5>
Unique key for the listener.
<br />
</dd>
<dt class="">
<div class="nameContainer inherited">
<h4 class="name" id="once">
once<span class="signature">(type, listener, <span class="optional">opt_this</span>)</span><span class="glyphicon glyphicon-circle-arrow-right"></span><span class="type-signature returnType">{goog.events.Key}</span>
<span class="inherited"><a href="ol.Observable.html#once">inherited</a></span>
</h4>
<div class="tag-source">
src/ol/observable.js, line 88
</div>
</div>
</dt>
<dd class="">
<div class="description">
<p>Listen once for a certain type of event.</p>
</div>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr class="">
<td class="name"><code>type</code></td>
<td class="type">
<span class="param-type">string</span>
|
<span class="param-type">Array.<string></span>
</td>
<td class="description last">
<p>The event type or array of event types.</p></td>
</tr>
<tr class="">
<td class="name"><code>listener</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="description last">
<p>The listener function.</p></td>
</tr>
<tr class="">
<td class="name"><code>this</code></td>
<td class="type">
<span class="param-type">Object</span>
</td>
<td class="description last">
<p>The object to use as <code>this</code> in <code>listener</code>.</p></td>
</tr>
</tbody>
</table>
<dl class="details">
</dl>
<h5>Returns:</h5>
Unique key for the listener.
<br />
</dd>
<dt class="unstable">
<div class="nameContainer inherited">
<h4 class="name" id="set">
set<span class="signature">(key, value)</span>
<span class="inherited"><a href="ol.Object.html#set">inherited</a></span>
<span class="stability experimental">experimental</span>
</h4>
<div class="tag-source">
src/ol/object.js, line 437
</div>
</div>
</dt>
<dd class="unstable">
<div class="description">
<p>Sets a value.</p>
</div>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr class="">
<td class="name"><code>key</code></td>
<td class="type">
<span class="param-type">string</span>
</td>
<td class="description last">
<p>Key name.</p></td>
</tr>
<tr class="">
<td class="name"><code>value</code></td>
<td class="type">
<span class="param-type">*</span>
</td>
<td class="description last">
<p>Value.</p></td>
</tr>
</tbody>
</table>
<dl class="details">
</dl>
</dd>
<dt class="unstable">
<div class="nameContainer inherited">
<h4 class="name" id="setBrightness">
setBrightness<span class="signature">(brightness)</span>
<span class="inherited"><a href="ol.layer.Base.html#setBrightness">inherited</a></span>
<span class="stability experimental">experimental</span>
</h4>
<div class="tag-source">
src/ol/layer/layerbase.js, line 292
</div>
</div>
</dt>
<dd class="unstable">
<div class="description">
<p>Adjust the layer brightness. A value of -1 will render the layer completely
black. A value of 0 will leave the brightness unchanged. A value of 1 will
render the layer completely white. Other values are linear multipliers on
the effect (values are clamped between -1 and 1).</p>
<p>The filter effects draft [1] says the brightness function is supposed to
render 0 black, 1 unchanged, and all other values as a linear multiplier.</p>
<p>The current WebKit implementation clamps values between -1 (black) and 1
(white) [2]. There is a bug open to change the filter effect spec [3].</p>
<p>TODO: revisit this if the spec is still unmodified before we release</p>
<p>[1] https://dvcs.w3.org/hg/FXTF/raw-file/tip/filters/index.html
[2] https://github.com/WebKit/webkit/commit/8f4765e569
[3] https://www.w3.org/Bugs/Public/show_bug.cgi?id=15647</p>
</div>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr class="">
<td class="name"><code>brightness</code></td>
<td class="type">
<span class="param-type">number</span>
</td>
<td class="description last">
<p>The brightness of the layer.</p></td>
</tr>
</tbody>
</table>
<dl class="details">
</dl>
</dd>
<dt class="unstable">
<div class="nameContainer inherited">
<h4 class="name" id="setContrast">
setContrast<span class="signature">(contrast)</span>
<span class="inherited"><a href="ol.layer.Base.html#setContrast">inherited</a></span>
<span class="stability experimental">experimental</span>
</h4>
<div class="tag-source">
src/ol/layer/layerbase.js, line 310
</div>
</div>
</dt>
<dd class="unstable">
<div class="description">
<p>Adjust the layer contrast. A value of 0 will render the layer completely
grey. A value of 1 will leave the contrast unchanged. Other values are
linear multipliers on the effect (and values over 1 are permitted).</p>
</div>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr class="">
<td class="name"><code>contrast</code></td>
<td class="type">
<span class="param-type">number</span>
</td>
<td class="description last">
<p>The contrast of the layer.</p></td>
</tr>
</tbody>
</table>
<dl class="details">
</dl>
</dd>
<dt class="">
<div class="nameContainer inherited">
<h4 class="name" id="setExtent">
setExtent<span class="signature">(extent)</span>
<span class="inherited"><a href="ol.layer.Base.html#setExtent">inherited</a></span>
</h4>
<div class="tag-source">
src/ol/layer/layerbase.js, line 342
</div>
</div>
</dt>
<dd class="">
<div class="description">
<p>Set the extent at which the layer is visible. If <code>undefined</code>, the layer
will be visible at all extents.</p>
</div>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr class="">
<td class="name"><code>extent</code></td>
<td class="type">
<span class="param-type"><a href="ol.html#Extent">ol.Extent</a></span>
|
<span class="param-type">undefined</span>
</td>
<td class="description last">
<p>The extent of the layer.</p></td>
</tr>
</tbody>
</table>
<dl class="details">
</dl>
</dd>
<dt class="unstable">
<div class="nameContainer">
<h4 class="name" id="setGradient">
setGradient<span class="signature">(colors)</span>
<span class="stability experimental">experimental</span>
</h4>
<div class="tag-source">
src/ol/layer/heatmaplayer.js, line 217
</div>
</div>
</dt>
<dd class="unstable">
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr class="">
<td class="name"><code>colors</code></td>
<td class="type">
<span class="param-type">Array.<string></span>
</td>
<td class="description last">
<p>Gradient.</p></td>
</tr>
</tbody>
</table>
<dl class="details">
</dl>
</dd>
<dt class="unstable">
<div class="nameContainer inherited">
<h4 class="name" id="setHue">
setHue<span class="signature">(hue)</span>
<span class="inherited"><a href="ol.layer.Base.html#setHue">inherited</a></span>
<span class="stability experimental">experimental</span>
</h4>
<div class="tag-source">
src/ol/layer/layerbase.js, line 326
</div>
</div>
</dt>
<dd class="unstable">
<div class="description">
<p>Apply a hue-rotation to the layer. A value of 0 will leave the hue
unchanged. Other values are radians around the color circle.</p>
</div>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr class="">
<td class="name"><code>hue</code></td>
<td class="type">
<span class="param-type">number</span>
</td>
<td class="description last">
<p>The hue of the layer.</p></td>
</tr>
</tbody>
</table>
<dl class="details">
</dl>
</dd>
<dt class="">
<div class="nameContainer inherited">
<h4 class="name" id="setMaxResolution">
setMaxResolution<span class="signature">(maxResolution)</span>
<span class="inherited"><a href="ol.layer.Base.html#setMaxResolution">inherited</a></span>
</h4>
<div class="tag-source">
src/ol/layer/layerbase.js, line 356
</div>
</div>
</dt>
<dd class="">
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr class="">
<td class="name"><code>maxResolution</code></td>
<td class="type">
<span class="param-type">number</span>
</td>
<td class="description last">
<p>The maximum resolution of the layer.</p></td>
</tr>
</tbody>
</table>
<dl class="details">
</dl>
</dd>
<dt class="">
<div class="nameContainer inherited">
<h4 class="name" id="setMinResolution">
setMinResolution<span class="signature">(minResolution)</span>
<span class="inherited"><a href="ol.layer.Base.html#setMinResolution">inherited</a></span>
</h4>
<div class="tag-source">
src/ol/layer/layerbase.js, line 370
</div>
</div>
</dt>
<dd class="">
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr class="">
<td class="name"><code>minResolution</code></td>
<td class="type">
<span class="param-type">number</span>
</td>
<td class="description last">
<p>The minimum resolution of the layer.</p></td>
</tr>
</tbody>
</table>
<dl class="details">
</dl>
</dd>
<dt class="">
<div class="nameContainer inherited">
<h4 class="name" id="setOpacity">
setOpacity<span class="signature">(opacity)</span>
<span class="inherited"><a href="ol.layer.Base.html#setOpacity">inherited</a></span>
</h4>
<div class="tag-source">
src/ol/layer/layerbase.js, line 384
</div>
</div>
</dt>
<dd class="">
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr class="">
<td class="name"><code>opacity</code></td>
<td class="type">
<span class="param-type">number</span>
</td>
<td class="description last">
<p>The opacity of the layer.</p></td>
</tr>
</tbody>
</table>
<dl class="details">
</dl>
</dd>
<dt class="unstable">
<div class="nameContainer inherited">
<h4 class="name" id="setProperties">
setProperties<span class="signature">(values)</span>
<span class="inherited"><a href="ol.Object.html#setProperties">inherited</a></span>
<span class="stability experimental">experimental</span>
</h4>
<div class="tag-source">
src/ol/object.js, line 456
</div>
</div>
</dt>
<dd class="unstable">
<div class="description">
<p>Sets a collection of key-value pairs.</p>
</div>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr class="">
<td class="name"><code>values</code></td>
<td class="type">
<span class="param-type">Object.<string, *></span>
</td>
<td class="description last">
<p>Values.</p></td>
</tr>
</tbody>
</table>
<dl class="details">
</dl>
</dd>
<dt class="unstable">
<div class="nameContainer inherited">
<h4 class="name" id="setSaturation">
setSaturation<span class="signature">(saturation)</span>
<span class="inherited"><a href="ol.layer.Base.html#setSaturation">inherited</a></span>
<span class="stability experimental">experimental</span>
</h4>
<div class="tag-source">
src/ol/layer/layerbase.js, line 403
</div>
</div>
</dt>
<dd class="unstable">
<div class="description">
<p>Adjust layer saturation. A value of 0 will render the layer completely
unsaturated. A value of 1 will leave the saturation unchanged. Other
values are linear multipliers of the effect (and values over 1 are
permitted).</p>
</div>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr class="">
<td class="name"><code>saturation</code></td>
<td class="type">
<span class="param-type">number</span>
</td>
<td class="description last">
<p>The saturation of the layer.</p></td>
</tr>
</tbody>
</table>
<dl class="details">
</dl>
</dd>
<dt class="">
<div class="nameContainer inherited">
<h4 class="name" id="setSource">
setSource<span class="signature">(source)</span>
<span class="inherited"><a href="ol.layer.Layer.html#setSource">inherited</a></span>
</h4>
<div class="tag-source">
src/ol/layer/layer.js, line 142
</div>
</div>
</dt>
<dd class="">
<div class="description">
<p>Set the layer source.</p>
</div>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr class="">
<td class="name"><code>source</code></td>
<td class="type">
<span class="param-type"><a href="ol.source.Source.html">ol.source.Source</a></span>
</td>
<td class="description last">
<p>The layer source.</p></td>
</tr>
</tbody>
</table>
<dl class="details">
</dl>
</dd>
<dt class="">
<div class="nameContainer inherited">
<h4 class="name" id="setStyle">
setStyle<span class="signature">(style)</span>
<span class="inherited"><a href="ol.layer.Vector.html#setStyle">inherited</a></span>
</h4>
<div class="tag-source">
src/ol/layer/vectorlayer.js, line 153
</div>
</div>
</dt>
<dd class="">
<div class="description">
<p>Set the style for features. This can be a single style object, an array
of styles, or a function that takes a feature and resolution and returns
an array of styles. If it is <code>undefined</code> the default style is used. If
it is <code>null</code> the layer has no style (a <code>null</code> style), so only features
that have their own styles will be rendered in the layer. See
<a href="ol.style.html"><code>ol.style</code></a> for information on the default style.</p>
</div>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr class="">
<td class="name"><code>style</code></td>
<td class="type">
<span class="param-type"><a href="ol.style.Style.html">ol.style.Style</a></span>
|
<span class="param-type">Array.<<a href="ol.style.Style.html">ol.style.Style</a>></span>
|
<span class="param-type"><a href="ol.style.html#StyleFunction">ol.style.StyleFunction</a></span>
|
<span class="param-type">undefined</span>
</td>
<td class="description last">
<p>Layer style.</p></td>
</tr>
</tbody>
</table>
<dl class="details">
</dl>
</dd>
<dt class="">
<div class="nameContainer inherited">
<h4 class="name" id="setVisible">
setVisible<span class="signature">(visible)</span>
<span class="inherited"><a href="ol.layer.Base.html#setVisible">inherited</a></span>
</h4>
<div class="tag-source">
src/ol/layer/layerbase.js, line 417
</div>
</div>
</dt>
<dd class="">
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr class="">
<td class="name"><code>visible</code></td>
<td class="type">
<span class="param-type">boolean</span>
</td>
<td class="description last">
<p>The visibility of the layer.</p></td>
</tr>
</tbody>
</table>
<dl class="details">
</dl>
</dd>
<dt class="">
<div class="nameContainer inherited">
<h4 class="name" id="un">
un<span class="signature">(type, listener, <span class="optional">opt_this</span>)</span>
<span class="inherited"><a href="ol.Observable.html#un">inherited</a></span>
</h4>
<div class="tag-source">
src/ol/observable.js, line 101
</div>
</div>
</dt>
<dd class="">
<div class="description">
<p>Unlisten for a certain type of event.</p>
</div>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr class="">
<td class="name"><code>type</code></td>
<td class="type">
<span class="param-type">string</span>
|
<span class="param-type">Array.<string></span>
</td>
<td class="description last">
<p>The event type or array of event types.</p></td>
</tr>
<tr class="">
<td class="name"><code>listener</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="description last">
<p>The listener function.</p></td>
</tr>
<tr class="">
<td class="name"><code>this</code></td>
<td class="type">
<span class="param-type">Object</span>
</td>
<td class="description last">
<p>The object which was used as <code>this</code> by the
<code>listener</code>.</p></td>
</tr>
</tbody>
</table>
<dl class="details">
</dl>
</dd>
<dt class="unstable">
<div class="nameContainer inherited">
<h4 class="name" id="unbind">
unbind<span class="signature">(key)</span>
<span class="inherited"><a href="ol.Object.html#unbind">inherited</a></span>
<span class="stability experimental">experimental</span>
</h4>
<div class="tag-source">
src/ol/object.js, line 470
</div>
</div>
</dt>
<dd class="unstable">
<div class="description">
<p>Removes a binding. Unbinding will set the unbound property to the current
value. The object will not be notified, as the value has not changed.</p>
</div>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr class="">
<td class="name"><code>key</code></td>
<td class="type">
<span class="param-type">string</span>
</td>
<td class="description last">
<p>Key name.</p></td>
</tr>
</tbody>
</table>
<dl class="details">
</dl>
</dd>
<dt class="unstable">
<div class="nameContainer inherited">
<h4 class="name" id="unbindAll">
unbindAll<span class="signature">()</span>
<span class="inherited"><a href="ol.Object.html#unbindAll">inherited</a></span>
<span class="stability experimental">experimental</span>
</h4>
<div class="tag-source">
src/ol/object.js, line 487
</div>
</div>
</dt>
<dd class="unstable">
<div class="description">
<p>Removes all bindings.</p>
</div>
<dl class="details">
</dl>
</dd>
<dt class="">
<div class="nameContainer inherited">
<h4 class="name" id="unByKey">
unByKey<span class="signature">(key)</span>
<span class="inherited"><a href="ol.Observable.html#unByKey">inherited</a></span>
</h4>
<div class="tag-source">
src/ol/observable.js, line 114
</div>
</div>
</dt>
<dd class="">
<div class="description">
<p>Removes an event listener using the key returned by <code>on()</code> or <code>once()</code>.
Note that using the <a href="ol.Observable.html#unByKey"><code>ol.Observable.unByKey</code></a> static function is to
be preferred.</p>
</div>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr class="">
<td class="name"><code>key</code></td>
<td class="type">
<span class="param-type">goog.events.Key</span>
</td>
<td class="description last">
<p>The key returned by <code>on()</code> or <code>once()</code>.</p></td>
</tr>
</tbody>
</table>
<dl class="details">
</dl>
</dd>
</dl>
</article>
</section>
<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.3.0-alpha9</a> on Fri Feb 13 2015 11:21:39 GMT-0700 (MST)
</footer>
</div>
</div>
<script>prettyPrint();</script>
<script src="scripts/linenumber.js"></script>
<script src="scripts/main.js"></script>
</body>
</html> | {'content_hash': 'a93fee5861685e1541f4823df95cbde2', 'timestamp': '', 'source': 'github', 'line_count': 18884, 'max_line_length': 335, 'avg_line_length': 33.73347807667867, 'alnum_prop': 0.45990019198678855, 'repo_name': 'gbif/gbif-drupal', 'id': '13ff8a47a8fd5e5a056d0b2535c55702449bf474', 'size': '637023', 'binary': False, 'copies': '8', 'ref': 'refs/heads/master', 'path': 'sites/all/libraries/openlayers3/apidoc/ol.layer.Heatmap.html', 'mode': '33188', 'license': 'apache-2.0', 'language': [{'name': 'ApacheConf', 'bytes': '5813'}, {'name': 'CSS', 'bytes': '2103805'}, {'name': 'Emacs Lisp', 'bytes': '2410'}, {'name': 'GLSL', 'bytes': '4241'}, {'name': 'HTML', 'bytes': '112329875'}, {'name': 'JavaScript', 'bytes': '30551237'}, {'name': 'Makefile', 'bytes': '13757'}, {'name': 'PHP', 'bytes': '14399403'}, {'name': 'PowerShell', 'bytes': '468'}, {'name': 'Python', 'bytes': '87562'}, {'name': 'Roff', 'bytes': '2167'}, {'name': 'Ruby', 'bytes': '2793'}, {'name': 'Scheme', 'bytes': '1882'}, {'name': 'Shell', 'bytes': '13857'}]} |
<!-- Copyright 2012-2017 Raytheon BBN Technologies Corp. All Rights Reserved. -->
<!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_20) on Wed Nov 15 19:26:03 EST 2017 -->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Uses of Interface adept.module.IDocumentListProcessor (adept-api 2.7.4 API)</title>
<meta name="date" content="2017-11-15">
<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 Interface adept.module.IDocumentListProcessor (adept-api 2.7.4 API)";
}
}
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="../../../adept/module/IDocumentListProcessor.html" title="interface in adept.module">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-all.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?adept/module/class-use/IDocumentListProcessor.html" target="_top">Frames</a></li>
<li><a href="IDocumentListProcessor.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 Interface adept.module.IDocumentListProcessor" class="title">Uses of Interface<br>adept.module.IDocumentListProcessor</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="../../../adept/module/IDocumentListProcessor.html" title="interface in adept.module">IDocumentListProcessor</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="#adept.module">adept.module</a></td>
<td class="colLast">
<div class="block">Provides interfaces and classes to support DEFT TA1 algorithm implementations in the ADEPT framework, primarily based on the AbstractModule class along with a set of Processor interfaces, which together support specific subclasses for analysis, extraction, tagging and other algorithms.</div>
</td>
</tr>
</tbody>
</table>
</li>
<li class="blockList">
<ul class="blockList">
<li class="blockList"><a name="adept.module">
<!-- -->
</a>
<h3>Uses of <a href="../../../adept/module/IDocumentListProcessor.html" title="interface in adept.module">IDocumentListProcessor</a> in <a href="../../../adept/module/package-summary.html">adept.module</a></h3>
<table class="useSummary" border="0" cellpadding="3" cellspacing="0" summary="Use table, listing classes, and an explanation">
<caption><span>Classes in <a href="../../../adept/module/package-summary.html">adept.module</a> that implement <a href="../../../adept/module/IDocumentListProcessor.html" title="interface in adept.module">IDocumentListProcessor</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="../../../adept/module/CoreferenceResolver.html" title="class in adept.module">CoreferenceResolver</a></span></code>
<div class="block">The Class CoreferenceResolver.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>class </code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../adept/module/EventCoreferenceResolver.html" title="class in adept.module">EventCoreferenceResolver</a></span></code>
<div class="block">The Class EventCoreferenceResolver.</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="../../../adept/module/IDocumentListProcessor.html" title="interface in adept.module">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-all.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?adept/module/class-use/IDocumentListProcessor.html" target="_top">Frames</a></li>
<li><a href="IDocumentListProcessor.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 ======= -->
<p class="legalCopy"><small>Copyright © 2012–2017 Raytheon BBN Technologies. All rights reserved.</small></p>
</body>
</html>
| {'content_hash': 'ff8e8be7aacbd4fee2e9379b8f9e35a2', 'timestamp': '', 'source': 'github', 'line_count': 178, 'max_line_length': 311, 'avg_line_length': 39.646067415730336, 'alnum_prop': 0.6626045061640924, 'repo_name': 'BBN-E/Adept', 'id': '81fcf39412e09e0476a33464a7cfc858cab45618', 'size': '7057', 'binary': False, 'copies': '1', 'ref': 'refs/heads/master', 'path': 'javadocs/adept-api/adept/module/class-use/IDocumentListProcessor.html', 'mode': '33188', 'license': 'apache-2.0', 'language': [{'name': 'CSS', 'bytes': '25616'}, {'name': 'HTML', 'bytes': '15089709'}, {'name': 'Java', 'bytes': '2467577'}, {'name': 'JavaScript', 'bytes': '1654'}, {'name': 'Python', 'bytes': '7958'}, {'name': 'Scheme', 'bytes': '255519'}, {'name': 'XSLT', 'bytes': '489564'}]} |
<?php
namespace yiiunit\framework\mutex;
use yii\mutex\FileMutex;
use yiiunit\TestCase;
/**
* Class FileMutexTest
*
* @group mutex
*/
class FileMutexTest extends TestCase
{
use MutexTestTrait;
/**
* @return FileMutex
* @throws \yii\base\InvalidConfigException
*/
protected function createMutex()
{
return \Yii::createObject([
'class' => FileMutex::className(),
'mutexPath' => '@yiiunit/runtime/mutex',
]);
}
public function testDeleteLockFile()
{
$mutex = $this->createMutex();
$fileName = $mutex->mutexPath . '/' . md5(self::$mutexName) . '.lock';
$mutex->acquire(self::$mutexName);
$this->assertFileExists($fileName);
$mutex->release(self::$mutexName);
$this->assertFileNotExists($fileName);
}
}
| {'content_hash': 'ed1fc1770c7684fa844592c258ad18fb', 'timestamp': '', 'source': 'github', 'line_count': 41, 'max_line_length': 78, 'avg_line_length': 20.609756097560975, 'alnum_prop': 0.5940828402366863, 'repo_name': 'HanafiAhmat/yii2', 'id': '778f0f8ff3c0bb6fa37a69fd189d98a64bad9f1f', 'size': '989', 'binary': False, 'copies': '3', 'ref': 'refs/heads/master', 'path': 'tests/framework/mutex/FileMutexTest.php', 'mode': '33188', 'license': 'bsd-3-clause', 'language': [{'name': 'ApacheConf', 'bytes': '28'}, {'name': 'Batchfile', 'bytes': '1085'}, {'name': 'CSS', 'bytes': '20'}, {'name': 'HTML', 'bytes': '11952'}, {'name': 'JavaScript', 'bytes': '259267'}, {'name': 'PHP', 'bytes': '6013918'}, {'name': 'PLSQL', 'bytes': '17331'}, {'name': 'Ruby', 'bytes': '207'}, {'name': 'Shell', 'bytes': '5742'}]} |
declare subscriptionId=""
declare location=""
declare dnsPrefix=""
declare resourceGroup=""
while getopts ":d:l:r:s:" arg; do
case "${arg}" in
d)
dnsPrefix=${OPTARG}
;;
l)
location=${OPTARG}
;;
r)
resourceGroup=${OPTARG}
;;
s)
subscriptionId=${OPTARG}
;;
esac
done
shift $((OPTIND-1))
acs-engine deploy --subscription-id $subscriptionId \
--resource-group $resourceGroup \
--dns-prefix $dnsPrefix \
--auto-suffix \
--location $location \
./kubernetes-vmas.json
kubeconfig=$(ls -d ./_output/* -t -1 | head -1)/kubeconfig/kubeconfig.$location.json
kubeconfigFullPath=$(readlink -f $kubeconfig)
mv ~/.kube/config ~/.kube/config.$(date +%Y%m%d%H%M%s).bkp
cp $kubeconfigFullPath ~/.kube/config | {'content_hash': 'e804e087f9c9a925167e5e7b3ce425fc', 'timestamp': '', 'source': 'github', 'line_count': 35, 'max_line_length': 84, 'avg_line_length': 21.257142857142856, 'alnum_prop': 0.6518817204301075, 'repo_name': 'rafaelgodinho/couchbase-acs', 'id': '39581d5ff841f6e115c1101e182266038d0991b2', 'size': '756', 'binary': False, 'copies': '1', 'ref': 'refs/heads/master', 'path': 'acs-engine/deploy-acs-engine.sh', 'mode': '33188', 'license': 'apache-2.0', 'language': [{'name': 'Shell', 'bytes': '5335'}, {'name': 'Smarty', 'bytes': '1030'}]} |
var gulp = require('gulp'), // Gulp JS
path = require('path'), // Path module
rename = require('gulp-rename'), // File rename
cache = require('gulp-cached'), // Gulp cache module
gulpif = require('gulp-if'), // Gulp if module
notify = require('gulp-notify'), // Plugin for notify
notifyConfig = require('../../projectConfig').notifyConfig, // Notify config
modifyDate = require('../helpers/modifyDateFormatter'), // Date formatter for notify
browserSync = require('browser-sync'); // Plugin for sync with browser
// Move images from assets modules of modules
module.exports = function(cb) {
gulp.src('./markup/modules/**/assets/*.*')
.pipe(cache('move-assets'))
.pipe(rename(function(path) {
path.dirname = '';
}))
.on('error', notify.onError(function (error) {
return notifyConfig.errorMessage(error);
}))
.pipe(gulp.dest('./dev/static/img/assets'))
.pipe(browserSync.reload({stream:true}))
.pipe(
gulpif(notifyConfig.useNotify,
notify({
onLast: true,
sound: notifyConfig.sounds.onSuccess,
title: notifyConfig.title,
message: 'Assets\'ve been moved \n'+ notifyConfig.taskFinishedText +'<%= options.date %>',
templateOptions: {
date: modifyDate.getTimeOfModify()
}
})
)
);
cb(null);
}; | {'content_hash': 'f691c5cfdd2b6f663467e80c549153c3', 'timestamp': '', 'source': 'github', 'line_count': 39, 'max_line_length': 110, 'avg_line_length': 44.92307692307692, 'alnum_prop': 0.4811643835616438, 'repo_name': 'alexHlebnikov/markupBuilder2GIS', 'id': '8193df739a1ebd2f36e9573d1644895b8c8dab00', 'size': '1752', 'binary': False, 'copies': '1', 'ref': 'refs/heads/master', 'path': 'gulpy/taskFunctions/moveAssets.js', 'mode': '33261', 'license': 'mit', 'language': []} |
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using System;
using System.Globalization;
using System.IO;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.CodeAnalysis.Diagnostics;
using Microsoft.CodeAnalysis.Options;
using Microsoft.CodeAnalysis.Shared.TestHooks;
using Roslyn.Utilities;
namespace Microsoft.CodeAnalysis.Internal.Log
{
/// <summary>
/// A logger that publishes events to a log file.
/// </summary>
internal sealed class FileLogger : ILogger
{
private readonly object _gate;
private readonly string _logFilePath;
private readonly StringBuilder _buffer;
private bool _enabled;
/// <summary>
/// Task queue to serialize all the IO to the log file.
/// </summary>
private readonly TaskQueue _taskQueue;
public FileLogger(IGlobalOptionService optionService, string logFilePath)
{
_logFilePath = logFilePath;
_gate = new();
_buffer = new();
_taskQueue = new(AsynchronousOperationListenerProvider.NullListener, TaskScheduler.Default);
_enabled = optionService.GetOption(InternalDiagnosticsOptions.EnableFileLoggingForDiagnostics);
optionService.OptionChanged += OptionService_OptionChanged;
}
public FileLogger(IGlobalOptionService optionService)
: this(optionService, Path.Combine(Path.GetTempPath(), "Roslyn", "Telemetry", GetLogFileName()))
{
}
private static string GetLogFileName()
=> DateTime.Now.ToString(CultureInfo.InvariantCulture).Replace(' ', '_').Replace('/', '_').Replace(':', '_') + ".log";
private void OptionService_OptionChanged(object? sender, OptionChangedEventArgs e)
{
if (e.Option == InternalDiagnosticsOptions.EnableFileLoggingForDiagnostics)
{
Contract.ThrowIfNull(e.Value);
_enabled = (bool)e.Value;
}
}
public bool IsEnabled(FunctionId functionId)
{
if (!_enabled)
{
return false;
}
// Limit logged function IDs to keep a reasonable log file size.
var str = functionId.ToString();
return str.StartsWith("Diagnostic") ||
str.StartsWith("CodeAnalysisService") ||
str.StartsWith("Workspace") ||
str.StartsWith("WorkCoordinator") ||
str.StartsWith("IncrementalAnalyzerProcessor") ||
str.StartsWith("ExternalErrorDiagnosticUpdateSource");
}
private void Log(FunctionId functionId, string message)
{
_taskQueue.ScheduleTask(nameof(FileLogger), () =>
{
lock (_gate)
{
_buffer.AppendLine($"{DateTime.Now} ({functionId}) : {message}");
try
{
if (!File.Exists(_logFilePath))
{
Directory.CreateDirectory(PathUtilities.GetDirectoryName(_logFilePath));
}
File.AppendAllText(_logFilePath, _buffer.ToString());
_buffer.Clear();
}
catch (IOException)
{
// Ignore IOException, we will log the buffer contents in next Log call.
}
}
}, CancellationToken.None);
}
public void Log(FunctionId functionId, LogMessage logMessage)
=> Log(functionId, logMessage.GetMessage());
public void LogBlockStart(FunctionId functionId, LogMessage logMessage, int uniquePairId, CancellationToken cancellationToken)
=> LogBlockEvent(functionId, logMessage, uniquePairId, "BlockStart");
public void LogBlockEnd(FunctionId functionId, LogMessage logMessage, int uniquePairId, int delta, CancellationToken cancellationToken)
=> LogBlockEvent(functionId, logMessage, uniquePairId, cancellationToken.IsCancellationRequested ? "BlockCancelled" : "BlockEnd");
private void LogBlockEvent(FunctionId functionId, LogMessage logMessage, int uniquePairId, string blockEvent)
=> Log(functionId, $"[{blockEvent} - {uniquePairId}] {logMessage.GetMessage()}");
}
}
| {'content_hash': 'c2f95856933c3b11984bc7cc5ba35836', 'timestamp': '', 'source': 'github', 'line_count': 116, 'max_line_length': 143, 'avg_line_length': 39.55172413793103, 'alnum_prop': 0.6054925893635571, 'repo_name': 'diryboy/roslyn', 'id': 'fbf9487570d1cda2135d06a5bcc75a14dddc4426', 'size': '4590', 'binary': False, 'copies': '2', 'ref': 'refs/heads/main', 'path': 'src/Workspaces/Core/Portable/Log/FileLogger.cs', 'mode': '33188', 'license': 'mit', 'language': [{'name': '1C Enterprise', 'bytes': '289100'}, {'name': 'Batchfile', 'bytes': '8757'}, {'name': 'C#', 'bytes': '122552814'}, {'name': 'C++', 'bytes': '5392'}, {'name': 'CMake', 'bytes': '9153'}, {'name': 'Dockerfile', 'bytes': '2102'}, {'name': 'F#', 'bytes': '508'}, {'name': 'PowerShell', 'bytes': '218917'}, {'name': 'Rich Text Format', 'bytes': '14887'}, {'name': 'Shell', 'bytes': '80001'}, {'name': 'Smalltalk', 'bytes': '622'}, {'name': 'Visual Basic', 'bytes': '70016491'}]} |
package com.facebook.buck.cxx;
import com.facebook.buck.cli.BuckConfig;
import com.google.common.base.Optional;
import java.nio.file.Path;
public class InferBuckConfig {
private static final String INFER_SECTION_PREFIX = "infer";
private final BuckConfig delegate;
public InferBuckConfig(BuckConfig delegate) {
this.delegate = delegate;
}
public Optional<Path> getPath(String name) {
return delegate.getPath(INFER_SECTION_PREFIX, name);
}
public Optional<String> getValue(String name) {
return delegate.getValue(INFER_SECTION_PREFIX, name);
}
}
| {'content_hash': '08912ed37405048aa9d7bf04b284b9d8', 'timestamp': '', 'source': 'github', 'line_count': 28, 'max_line_length': 61, 'avg_line_length': 20.857142857142858, 'alnum_prop': 0.7448630136986302, 'repo_name': 'rowillia/buck', 'id': '31214dbcf7d93952dbd7ca94b95637f719fa03b0', 'size': '1189', 'binary': False, 'copies': '6', 'ref': 'refs/heads/master', 'path': 'src/com/facebook/buck/cxx/InferBuckConfig.java', 'mode': '33188', 'license': 'apache-2.0', 'language': [{'name': 'Assembly', 'bytes': '87'}, {'name': 'Batchfile', 'bytes': '726'}, {'name': 'C', 'bytes': '247157'}, {'name': 'C#', 'bytes': '237'}, {'name': 'C++', 'bytes': '5453'}, {'name': 'CSS', 'bytes': '54863'}, {'name': 'D', 'bytes': '1017'}, {'name': 'Go', 'bytes': '13780'}, {'name': 'Groff', 'bytes': '440'}, {'name': 'Groovy', 'bytes': '3362'}, {'name': 'HTML', 'bytes': '5108'}, {'name': 'IDL', 'bytes': '128'}, {'name': 'Java', 'bytes': '12838130'}, {'name': 'JavaScript', 'bytes': '931960'}, {'name': 'Lex', 'bytes': '2442'}, {'name': 'Makefile', 'bytes': '1791'}, {'name': 'Matlab', 'bytes': '47'}, {'name': 'OCaml', 'bytes': '3060'}, {'name': 'Objective-C', 'bytes': '108013'}, {'name': 'Objective-C++', 'bytes': '34'}, {'name': 'PowerShell', 'bytes': '244'}, {'name': 'Python', 'bytes': '259935'}, {'name': 'Rust', 'bytes': '938'}, {'name': 'Scala', 'bytes': '898'}, {'name': 'Shell', 'bytes': '30060'}, {'name': 'Smalltalk', 'bytes': '897'}, {'name': 'Standard ML', 'bytes': '15'}, {'name': 'Swift', 'bytes': '3735'}, {'name': 'Thrift', 'bytes': '2452'}, {'name': 'Yacc', 'bytes': '323'}]} |
package com.distelli.europa.filters;
import com.distelli.europa.EuropaRequestContext;
import com.distelli.europa.models.SslSettings;
import com.distelli.webserver.RequestFilter;
import com.distelli.webserver.RequestFilterChain;
import com.distelli.webserver.WebConstants;
import com.distelli.webserver.WebResponse;
import lombok.extern.log4j.Log4j;
import javax.inject.Inject;
import javax.inject.Provider;
@Log4j
public class ForceHttpsFilter implements RequestFilter<EuropaRequestContext>
{
@Inject
protected Provider<SslSettings> _sslSettingsProvider;
@Inject
private HttpAlwaysAllowedPaths _httpAlwaysAllowedPaths;
public ForceHttpsFilter()
{
}
@Override
public WebResponse filter(EuropaRequestContext requestContext, RequestFilterChain next)
{
String protocol = requestContext.getProto();
String path = requestContext.getPath();
// The health check endpoint needs to work over HTTP
if(protocol.equalsIgnoreCase("http") && !_httpAlwaysAllowedPaths.isHttpAlwaysAllowedPath(path)) {
SslSettings sslSettings = _sslSettingsProvider.get();
if (sslSettings != null && sslSettings.getForceHttps()) {
StringBuilder newLocation = new StringBuilder();
newLocation.append("https://");
String hostName = sslSettings.getDnsName();
if (null == hostName) {
hostName = requestContext.getHost("");
}
newLocation.append(hostName);
newLocation.append(requestContext.getOriginalPath());
if (null != requestContext.getQueryString()) {
newLocation.append("?");
newLocation.append(requestContext.getQueryString());
}
WebResponse redirectResponse = new WebResponse(307);
redirectResponse.setResponseHeader(WebConstants.LOCATION_HEADER, newLocation.toString());
return redirectResponse;
}
}
return next.filter(requestContext);
}
}
| {'content_hash': '7e1c351dd58aed80f5c57d4283eb3bf6', 'timestamp': '', 'source': 'github', 'line_count': 55, 'max_line_length': 105, 'avg_line_length': 38.10909090909091, 'alnum_prop': 0.6655534351145038, 'repo_name': 'Distelli/europa', 'id': '1721b1ab1a8cbdb40e0ba3dcb8b348dbebe75b82', 'size': '2096', 'binary': False, 'copies': '1', 'ref': 'refs/heads/master', 'path': 'src/main/java/com/distelli/europa/filters/ForceHttpsFilter.java', 'mode': '33188', 'license': 'apache-2.0', 'language': [{'name': 'CSS', 'bytes': '62392'}, {'name': 'Java', 'bytes': '547246'}, {'name': 'JavaScript', 'bytes': '270941'}, {'name': 'Makefile', 'bytes': '1060'}, {'name': 'Shell', 'bytes': '1137'}]} |
<!DOCTYPE html>
<!--
Copyright (c) 2014 Intel Corporation.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
* Redistributions of works must retain the original copyright notice, this list
of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the original copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
* Neither the name of Intel Corporation nor the names of its contributors
may be used to endorse or promote products derived from this work without
specific prior written permission.
THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "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 INTEL CORPORATION 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.
Authors:
Zhang, Jing <[email protected]>
-->
<html>
<head>
<meta charset="utf-8">
<title>[NFC Test]:NDEFRecord_constructor_tnf_type</title>
<link rel="author" title="Intel" href="http://www.intel.com">
<link rel="help" href="http://www.w3.org/TR/nfc/">
<script type="text/javascript" src="support/unitcommon.js"></script>
<script type="text/javascript" src="support/nfc_common.js"></script>
</head>
<body>
<div id="log"></div>
<script>
//==== TEST: NDEFRecord_constructor_tnf_type
//==== PRIORITY P1
//==== LABEL Check NDEFRecord constructor works with byte tnf, DOMString type parameters
//==== SPEC_URL http://www.w3.org/TR/nfc/
test(function () {
var record, recordText;
recordText = new NDEFRecordText("Hi!", "en-GB", "UTF-8");
record = new NDEFRecord(recordText.tnf, recordText.type);
assert_true(record instanceof NDEFRecord,
"constructed record is instance of NDEFRecord");
assert_true("tnf" in record, "NDEFRecord.tnf exists");
assert_true("type" in record, "NDEFRecord.type exists");
assert_true("id" in record, "NDEFRecord.id exists");
assert_true("recordType" in record, "NDEFRecord.recordType exists");
assert_true("getPayload" in record, "NDEFRecord.getPayload() exists");
}, document.title);
</script>
</body>
</html>
| {'content_hash': '2ec1eab918c5dbf4ca5da86dd8faca13', 'timestamp': '', 'source': 'github', 'line_count': 63, 'max_line_length': 88, 'avg_line_length': 43.44444444444444, 'alnum_prop': 0.7500913408841797, 'repo_name': 'yunxliu/crosswalk-test-suite', 'id': '6d3a82fb05b8deb643fcbd6cf77c88fe50771307', 'size': '2737', 'binary': False, 'copies': '29', 'ref': 'refs/heads/master', 'path': 'webapi/webapi-nfc-w3c-tests/nfc/NDEFRecord_constructor_tnf_type.html', 'mode': '33188', 'license': 'bsd-3-clause', 'language': [{'name': 'C', 'bytes': '30874'}, {'name': 'C#', 'bytes': '1437'}, {'name': 'CSS', 'bytes': '67127'}, {'name': 'Cucumber', 'bytes': '137831'}, {'name': 'GLSL', 'bytes': '6990'}, {'name': 'HTML', 'bytes': '29760809'}, {'name': 'Java', 'bytes': '1463364'}, {'name': 'JavaScript', 'bytes': '2808863'}, {'name': 'Makefile', 'bytes': '1044'}, {'name': 'PHP', 'bytes': '37474'}, {'name': 'Python', 'bytes': '1858768'}, {'name': 'Shell', 'bytes': '599181'}]} |
<!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.9.1"/>
<title>V8 API Reference Guide for node.js v0.10.16 - v0.10.21: deps/v8/include Directory 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="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
$(document).ready(function() { init_search(); });
</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">V8 API Reference Guide for node.js v0.10.16 - v0.10.21
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.9.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="namespaces.html"><span>Namespaces</span></a></li>
<li><a href="annotated.html"><span>Classes</span></a></li>
<li><a href="files.html"><span>Files</span></a></li>
<li><a href="examples.html"><span>Examples</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>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</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>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="dir_94a36784afa54c0b50996002372b429e.html">deps</a></li><li class="navelem"><a class="el" href="dir_7edecdc49f3d0e5b35ff20670f3bf33e.html">v8</a></li><li class="navelem"><a class="el" href="dir_3debe4bd29323c1699f247c91661804b.html">include</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="headertitle">
<div class="title">include Directory Reference</div> </div>
</div><!--header-->
<div class="contents">
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="files"></a>
Files</h2></td></tr>
<tr class="memitem:v8-debug_8h"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>v8-debug.h</b> <a href="v8-debug_8h_source.html">[code]</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:v8-preparser_8h"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>v8-preparser.h</b> <a href="v8-preparser_8h_source.html">[code]</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:v8-profiler_8h"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>v8-profiler.h</b> <a href="v8-profiler_8h_source.html">[code]</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:v8-testing_8h"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>v8-testing.h</b> <a href="v8-testing_8h_source.html">[code]</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:v8_8h"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>v8.h</b> <a href="v8_8h_source.html">[code]</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:v8stdint_8h"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>v8stdint.h</b> <a href="v8stdint_8h_source.html">[code]</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
</table>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Tue Aug 11 2015 23:45:02 for V8 API Reference Guide for node.js v0.10.16 - v0.10.21 by  <a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.9.1
</small></address>
</body>
</html>
| {'content_hash': '18d02404a3a302150635b0dd7fa8a3bd', 'timestamp': '', 'source': 'github', 'line_count': 111, 'max_line_length': 296, 'avg_line_length': 53.63963963963964, 'alnum_prop': 0.658380920389654, 'repo_name': 'v8-dox/v8-dox.github.io', 'id': '10e6324e194d78a62662aea24eb56bb42415493f', 'size': '5954', 'binary': False, 'copies': '1', 'ref': 'refs/heads/master', 'path': '6b92a71/html/dir_3debe4bd29323c1699f247c91661804b.html', 'mode': '33188', 'license': 'mit', 'language': []} |
\documentclass[a4paper,10pt]{article}
\usepackage[margin=0.5in]{geometry}
\usepackage{multicol}
\usepackage{algorithm}
\usepackage{algpseudocode}
\usepackage[slovak]{babel}
\usepackage[utf8x]{inputenc}
\begin{document}
\section{Programovacie Jazyky}
\begin{multicols}{2}
\subsection{Základné pojmy}
V kontexte programovacích jazykov uvažujeme dva základné pojmy:
\begin{itemize}
\item Výraz (expression) - kombinácia operátorov, konštánt, premenných, funkcií a iných prvkov jazyka ktorá sa vyhodnotí na nejakú výslednú hodnotu (môže ísť o prázdnu hodnotu). Výraz môže ale nemusí mať vedľajšie efekty. (Príklady: 2+1.5, A == 3, null, pop())
\item Príkaz (statement) - Najmenšia vykonateľná samostatná jednotka imperatívneho jazyka. Príkaz nevracia hodnotu a podstatné sú teda len jeho vedľajšie efekty. (Príklady: A = 4, return 5, if A == 3 then X)
\end{itemize}
Program sa tradične skladá z postupnosti príkazov ktoré pri svojom vykonaní môžu vyhodnocovať rôzne výrazy potrebné k ich dokončeniu. Vyhodnocovanie výrazov môže prebiehať podľa rôznych pravidiel, tieto pravidlá potom súhrnne nazývame \emph{vyhodnocovacia stratégia} (napr. lenivá alebo striktná).
Príkazy sa bežne združujú do blokov (v niektorých jazykoch je pojem blok zameniteľný s pojmom funkcia) , pričom bloky môžu byť pomenované aj nepomenované a tradične majú jeden vstupný bod a jeden alebo viac výstupných bodov (return).
Na označenie výrazov ktoré sa vyhodnotia na true alebo false (tzv. booleovské výrazy) sa často používa pojem \emph{podmienka}.
Pri programovacích jazykoch môžeme hovoriť jednak o \emph{syntaxi} - teda o spôsobe, akým sú jednotlivé príkazy a výrazy zapísané - a o \emph{sémantike} - teda o tom, akým spôsobom sa jednotlivé príkazy a výrazy vykonávajú.
\subsection{Dátové typy}
Typ predstavuje vlastnosti a spôsob reprezentácie nejakých dát počítačom.
Typy delíme na:
\subsubsection{Prázdny dátový typ (void)}
Reprezentuje absenciu hodnoty.
\subsubsection{Primitívne dátové typy}
Tieto typy sú typicky implementované na úrovni jazyka a väčšinou sa priamo mapujú na reprezentáciu údajov v procesore. Typicky sem patrí integer, Float, Boolean, Char, Fixed Point(fixný počet desatinných miest), Bignum(ľubovoľne veľké číslo) a ich varianty s rôznymi bitovými šírkami v závislosti na architektúre.
\subsubsection{Zložené dátové typy}
Zložené typy vznikajú spojením niekoľkých hodnôt primitívneho typu. Výsledkom je potom dátová štruktúra.
Rôzne jazyky implementujú rôzne základné dátové štruktúry. (Dátová štruktúra = spôsob efektívneho uloženia informácie v pamäti) Nízkoúrovňové jazyky často žiadne dátové štruktúry neimplementujú a poskytujú iba priamy prístup do pamäte. Vyššie programovacie jazyky potom implementujú napr:
\begin{itemize}
\item Štruktúra - fixný počet prvkov s jasnou adresou (nemusí byť priamo za sebou, ale je pevne dané ako sa k jednotlivým prvkom dostanem)
\item Union/Tagged Union - Taktiež má fixnú veľkosť, avšak môže obsahovať hodnoty rôznych typov. Prípadne môže zahŕňať príznak indikujúci ktorý typ je aktuálne uložený.
\item Pole - prvky sú uložené v pamäti postupne za sebou. Typicky ide o prvky jedného typu.
\item Reťazec - typicky pole znakov, avšak môže byť zložitejší, keďže nie všetky kódovania majú fixnú dĺžku znaku
\item Zoznam - Prvky sú nejakým spôsobom zoradené, avšak nemusia byť nutne v pamäti za sebou (spojovaný zoznam). Nie vždy musí ísť o prvky jedného typu.
\item Množina - Prvky nie sú zoradené a každý prvok je v množine maximálne raz.
\item Asociatívne pole/mapa - Umožňuje prístup k prvkom na báze kľúč/hodnota.
\end{itemize}
\subsubsection{Výpočtové typy (enum)}
Výpočtový typ je typ, ktorý môže nadobúdať hodnoty z pevnej danej množiny prvkov. Tieto hodnoty môžu, ale nemusia byť usporiadateľné.
\subsubsection{Odkazy a referencie}
Ide o hodnoty ktoré obsahujú odkaz na nejaký kus pamäte. Rozdiel medzi odkazom a referenciou nie je pevne daný, ale všeobecne sa predpokladá že referencia je "inteligentnejší" pointer (napr. taký pre ktorý sa priebežne kontroluje či je pamäť kam odkazuje platná).
Typicky existuje špeciálna hodnota pre odkaz, ktorá predstavuje neplatnú pamäť (null).
Odkaz môže potenciálne ukazovať aj na spustiteľný kód.
\subsubsection{Abstraktné dátové typy}
Abstraktný dátový typ popisuje isté vlastnosti pamäte ktorú reprezentuje, ale necháva priestor na rôzne implementačné detaily. Typicky napr. rozhranie v objektovom programovaní.
\subsection{Riadiace štruktúry \emph{(control structures)}}
Riadiaca štruktúra je príkaz ktorý na základe poskytnutých údajov (precondition) mení poradie/smer vykonávania programu (control flow).
\subsubsection{If-Then-Else}
Riadiaca štruktúra If-Then-Else umožňuje podmienené vykonávanie blokov kódu. V prípade splnenia podmienky danej klauzulou IF sa vykoná blok kódu daný klauzulou Then, v opačnom prípade blok kódu daný klauzulou Else. V extrémne jednoduchých jazykoch nemusí byť klauzula Else prítomná, avšak dá sa nahradiť testom na negáciu pôvodnej podmienky.
If-Then-Else sa dá v prípade potreby násobne vnárať (do Else vetvy sa vloží ďalšie IF). Pokiaľ jazyk takúto konštrukciu podporuje priamo na syntaktickej úrovni, hovoríme o riadiacej štruktúre If-Then-Elseif-Else.
\begin{algorithm}
\begin{algorithmic}[1]
\If {A} \Comment{Jednoduchá ukážka použitia If-Then-Elseif-Else}
\State Kód ktorý sa vykoná ak je podmienka A splnená (Na B nezáleží).
\ElsIf {B}
\State Kód ktorý sa vykoná ak je podmienka A nesplnená a súčasne B splnená.
\Else
\State Kód ktorý sa vykoná ak sú podmienky A aj B nesplnené.
\EndIf
\end{algorithmic}
\end{algorithm}
\subsubsection{Switch/Case a Pattern Matching}
V prípade že treba zvážiť veľké množstvo prípadov, stáva sa často kombinácia if-else veľmi neprehľadnou. Z toho dôvodu sa zaviedla riadiaca štruktúra Switch (V mnohých jazykoch nazývaná aj Case).
Príkaz switch sa tradične vyhodnocuje pre nejakú premennú, pričom v tele príkazu sú uvedené možné hodnoty danej premennej a k nim sú priradené bloky kódy. Pri vykonávaní príkazu sa vyhodnotí ten blok kódu, ktorý je priradený hodnote ktorú daná premenná aktuálne nadobúda. Často je taktiež možné uviesť ešte dodatočný blok, ktorý sa vykoná v prípade že žiadna z hodnôt nevyhovuje aktuálnemu obsahu premennej.
Pattern matching (Hľadanie vzorov?) je potom rozšírenie tejto techniky, ktoré dovoľuje okrem klasickej rovnosti testovať na širšiu skupinu vlastností (napr. regulárne výrazy v prípade textových reťazcov) prípadne sa pýtať na samotnú štruktúru/typ premennej (je to dvojica? Je to zoznam s troma prvkami?). Pattern matching je oveľa silnejší ako samotný switch, avšak narozdiel od switchu, daná premenná nemusí vždy vyhovovať len jednému vzoru (problém či sú dva vzory disjunktné/ekvivalentné nemusí byť ani rozhodnuteľný). V takom prípade sa štandardne vykoná kód asociovaný s prvým nájdeným vyhovujúcim vzorom. Konkrétna špecifikácia podporovaných vzorov je potom závislá priamo na jazyku.
\subsubsection{While-Do/Do-While}
Riadiaca štruktúra While-Do (while cyklus) umožňuje opakovane vykonávať daný blok kódu v prípade že je splnená potrebná podmienka. Pri vykonávaní sa najskôr otestuje podmienka daná klauzulou While. V prípade že je podmienka splnená, vykoná sa blok kódu daný klauzulou Do (telo cyklu). Následne sa proces opakuje až do okamihu kedy je podmienka nesplnená. Ide o najjednoduchší používaný spôsob iterácie s premenlivým počtom opakovaní.
Alternatívou k While-Do je štruktúra Do-While ktorá sa od While-Do líši iba v tom, že vyhodnotenie prebieha v opačnom poradí. Teda najskôr sa vykoná kód daný klauzulou Do a až následne sa testuje podmienka. V prípade že je podmienka splnená sa opäť pokračuje ďalším vykonaním tela cyklu. Praktický význam Do-While spočíva v tom, že garantuje aspoň jedno vykonanie tela cyklu.
\begin{algorithm}
\begin{algorithmic}[1]
\While {A} \Comment{Jednoduchá ukážka použitia While-Do}
\State Telo cyklu - pri vstupe do tela garantovane platí podmienka A
\EndWhile
\State Po výstupe z cyklu garantovane platí $\neg$A
\end{algorithmic}
\end{algorithm}
\subsubsection{For-Do/Foreach}
Riadiaca štruktúra For-Do (for cyklus) je rozšírenie while cyklu ktoré umožňuje prirodzenejšiu kontrolu nad počtom iterácií. For cyklus sa skladá z dvoch príkazov, jednej podmienky a tela cyklu. Prvý príkaz slúži na inicializáciu iterácie a vykoná sa len raz, hneď pri vstupe do for cyklu. Následne sa vyhodnotí podmienka. V prípade že je podmienka splnená, vykoná sa telo cyklu. Ak podmienka splnená nie je, cyklus končí. Po úspešnom vykonaní tela cyklu sa vykoná posledný tretí príkaz, ktorý má za úlohu posunúť stav na ďalšiu iteráciu. Následne sa pokračuje opäť testovaním podmienky.
Druhou, striktnejšou variantov for cyklu je tzv. Foreach cyklus. Foreach cyklus sa používa na zlepšenie prehľadnosti kódu v miestach, kde je počet iterácií cyklu dopredu známy (napr. iterácia cez všetky prvky poľa). Foreach cyklus vykoná telo cyklu raz pre každý prvok nejakej iterovateľnej premennej (Čo je to iterovateľná premenná závisí na implementácií daného jazyka, štandardne ide o nejaký zoznam, množinu, prípadne ohraničený interval).
\begin{algorithm}
\begin{algorithmic}[1]
\For {X = 0; X $<$ A; X = X + 1} \Comment{Ukážka použitia For}
\State Telo cyklu - pri vstupe do tela garantovane platí podmienka X $<$ A
\EndFor
\State Po výstupe z cyklu garantovane platí X $\geq$ A (alebo X nie je vôbec definované)
\end{algorithmic}
\end{algorithm}
\begin{quote}
Poznámka: Alternatívny spôsob delenia cyklov je na Podmienkami riadené (while), Počítadlom riadené (for) a Riadené kolekciou (foreach).
\end{quote}
\subsubsection{Break/Continue}
Riadiace štruktúry Break a Continue umožňujú predčasné ukončenie iterácie cyklu alebo celého cyklu.
Príkaz break vykoná okamžitý skok hneď za koniec cyklu, bez toho aby kontroloval podmienky alebo vykonával nejaké dodatočné akcie. Break je taktiež jediný spôsob ako zastaviť nekonečný cyklus. Alternatívou príkazu break môžu byť cykly s tzv. stredovou podmienkou, čo je v podstate podmienený break.
Príkaz continue funguje obdobne, avšak skočí iba na koniec tela cyklu, čím efektívne preskočí zbytok práve vykonávanej iterácie. Ďalej sa pokračuje štandardne, teda sa vyhodnotí podmienka cyklu prípadne sa vykonajú nejaké ďalšie nutné akcie.
Okrem break a continue sa používajú ešte príkazy Retry a Redy ktoré sú prakticky opakom break a continue. Retry spôsobí skok pred začiatok cyklu, takže sa celý cyklus začne vykonávať znovu (ale nevracia premenné do pôvodného stavu). Retry zase spôsobí skok na začiatok iterácie. Tieto príkazy sa často nepoužívajú, lebo majú pomerne neintuitívnu sémantiku, avšak sú implementované napr. v Ruby alebo Perle.
\subsubsection{Goto a Značky (labels)}
Label je označené/pomenované miesto v programe. Príkaz goto label (prípadne podmienené goto) je potom skok na danú značku. Všeobecne sa neodporúča používať kvôli zlej čitateľnosti výsledného kódu (program stráca "lineratiu").
Príkaz lebel sa niekedy používa v súvislosti s vnorenými cyklami a príkazmi break/continue na indikáciu toho, na ktorý cyklus sa daný break/continue vzťahuje.
\subsubsection{Throw, Try-Catch, Finally (Výnimky)}
Throw-Try-Catch-Finally je riadiaca štruktúra súvisiaca s obsluhou výnimiek (výnimočných/nečakaných udalostí v programe). Výnimky slúžia na relatívne pohodlnú obsluhu možných zlyhaní a problémov v programe bez nutnosti zavádzať niektoré explicitné kontroly.
Príkaz Try-Catch(E) indikuje, že sa má vykonať kód v bloku danom klauzulou Try. Pokiaľ je pri vykonávaní tohto kódu vyvolaná výnimka typu E, pôvodné vyhodnocovanie sa zastaví a vykoná sa blok daný klauzulou Catch.
V súvislosti s Try-Catch sa používa aj príkaz Finally, ktorý je spojený s dvomi blokmi kodu. Prvý blok sa vyhodnotí normálne (teda v prípade vyvolania výnimky skončí) pričom pre druhý blok platí, že sa vyhodnotí po skončení prvého bloku vždy, bez ohľadu na to či sa v prvom bloku vyvolá výnimka alebo nie.
Príkaz Throw vyvolá výnimku. Vyvolanie výnimky v podstate znamená skok do najbližšieho Catch bloku zodpovedného za obsluhu daného typu výnimky. Pokiaľ taký blok neexistuje, vykonávanie programu je zastavené s chybou. (Výnimka môže byť okrem throw vyvolaná aj inými príkazmi jazyka, napr. pri delení nulou)
\subsection{Typy programovacích jazykov}
Existuje množstvo kritérií podľa ktorých sa dajú deliť programovacie jazyky. Väčšina jazykov sa ale nedá vždy úplne striktne zaradiť do jedného typu.
Jedným kritériom je paradigma ktoré implementujú:
\begin{itemize}
\item Imperatívne - štruktúrované/objektové paradigma (C, C++, Java, .NET)
\item Deklaratívne - funkcionálne/logické paradigma (Haskell, Prolog, Lisp, F\#)
\end{itemize}
Iným je typový systém ktorý používajú:
\begin{itemize}
\item Staticky typované - Typy sa kontrolujú iba podľa obsahu zdrojového kódu (napr. v čase kompilácie) (C)
\item Dynamicky typované - Typy sa kontrolujú priamo za behu programu (Python)
\end{itemize}
Iné možné kategorizácie sú potom podľa účelu, miery abstrakcie a podobných "neobjektívnych" metrík :)
Posledným dôležitým kritériom je spôsob vykonávania kódu. V tomto prípade sú tri základné možnosti: Interpretácia, Kompilácia a Just-In-Time kompilácia.
\subsubsection{Kompilácia}
Kompilované programovacie jazyky sú pred spustením prevedené z textového zápisu priamo do strojového kódu ktorý je vykonávaný procesorom. Kompilované jazyky sú väčšinou rýchle, pretože kompilátor môže stráviť netriviálny čas optimalizáciou jednotlivých častí kódu. Zároveň ale vyžadujú rôzny kompilátor pre rôzne architektúry procesorov a ťažko sa prispôsobujú dynamickým vlastnostiam zariadenia (napr. počtu dostupných procesorov alebo množstvu pamäte). Kompilácia veľkých programov je taktiež často zdĺhavá, teda spomaľuje samotný vývoj.
Kompilácia prebieha v niekoľkých krokoch, ktoré sa môžu prípadne opakovať. Celý proces sa štandardne rozdeľuje na tzv. Front-End a Back-End.
Front-End je tradične zodpovedný za:
\begin{itemize}
\item Preprocessing - Rozvinutie makier, importovanie súborov...
\item Lexikálna analýza - Rozdelenie súvislého textu do tzv. tokenov. Token je jedna atomická jednotka jazyka (číslo, kľúčové slovo, názov premennej). Na špecifikovanie a hľadanie tokenov sa štandardne používajú regulárne výrazy a automaty.
\item Syntaktická analýza - Sekvencia tokenov je usporiadaná do stromu(parse tree) daného gramatikou spracúvaného jazyka. Rozpoznávajú sa jednotlivé príkazy a výrazy.
\item Sémantická analýza - Vyhodnocuje sa korektnosť zadaného programu z pohľadu sémantiky daného jazyka. Objekty v spracúvanom strome sa doplnia o sémantické informácie na základe ktorých sa vyhodnotia typy, prítomnosť nedefinovaných symbolov a pod.
\item Výstup do medzijazyka - Pre zjednodušenie sa výsledný strom často ukladá do medizjazyka ktorému bude rozumieť back-end fáza spracovania. Napr. assemblér alebo LLVM bitkód.
\end{itemize}
Back-End následne pracuje s výstupom front-endu, teda buď so samotným sémantickým stromom alebo s kódom v medzijazyku. Tradične vykonáva tieto kroky:
\begin{itemize}
\item Analýza - analyzuje sa control flow a data flow programu, rôzne závislosti premenných a pod.
\item Optimalizácia - Na základe analýzy sa program transformuje tak, aby pracoval efektívnejšie prípadne aby bol menší.
\item Generovanie kódu - Optimalizovaný program sa uloží vo finálnej podobe spustiteľnej na cieľovom procesore.
\end{itemize}
\subsubsection{Interpretácia}
Interpretovaný program je vykonávaný interpretom, čo je program (sám môže byť kompilovaný alebo interpretovaný) ktorý priebežne parsuje a vykonáva zdrojový kód daného programu. Interpretované programy sú typicky pomalšie, pretože kód sa prakticky neoptimalizuje a navyše je nutné ho dynamicky spracúvať počas vykonávania. Avšak odpadá nutnosť kompilácie, čím sa zrýchľuje vývoj a zlepšuje prenositeľnosť jazyka.
Alternatívne niektoré interpretery môžu zdrojový kod pred spustením preložiť do istej formy medzijazyka ktorý sa potom jednoduchšie interpretuje.
\subsubsection{Just-In-Time Kompilácia}
Just in time (JIT) kompilácia sa snaží spojiť výhody interpretácie a kompilácie. Kód takéhoto jazyka sa štandardne kompiluje až v okamihu keď je spustený (tradične sa taktiež nekompiluje celý naraz, ale kompilujú sa len tie kúsky ktoré budú skutočne spustené). Prípadne je možné časť programu iba interpretovať a kompilovať iba často vykonávané miesta. Tým sa výrazne zvýši výkon a zároveň sa zachová väčšina dobrých vlastností interpretovaných jazykov.
JIT sa hodí hlavne pre dlhodobo bežiace aplikácie, keďže čas potrebný na prvotnú kompiláciu je v takom prípade zanedbateľný. Výhodou je taktiež to, že je potenciálne možné za behu meniť implementáciu a znovu kompilovať jednotlivé časti kódu, prípadne uplatňovať rôzne optimalizácie až v okamihu keď je potvrdené že budú efektívne.
\end{multicols}
\section{Objektové programovanie}
\begin{multicols}{2}
Objektové programovanie je spôsob uvažovania o programe ako o skupine vzájomne komunikujúcich objektov. Každý objekt má pritom svoj interný stav a verejné rozhranie pomocou ktorého komunikuje s inými objektami. Objektové programovanie v podstate nie je v spore s imperatívnym ani funkcionálnym paradigmatom, iba zavádza dodatočné pravidlá ktorými sa musí programátor riadiť pri písaní kódu.
\subsection{Základné pojmy}
\emph{Trieda} predstavuje definíciu objektov určitého typu. Trieda určuje aké atribúty (vnútorné premenné) a aké metódy (funkcie vykonateľné nad objektom) bude po vytvorení objekt mať. Trieda taktiež môže definovať špeciálne metódy konštruktor a deštruktor určené na vytvorenie/zničenie objektu danej triedy.
\emph{Objekt} je inštancia triedy ktorá vznikla použitím konštruktora. Projekt obsahuje atributy a metódy definované triedou.
\subsection{Zapúzdrenie}
Zapúzdrenie je mechanizmus ktorý dovoľuje pre každý z prvkov danej triedy (atribúty/metódy) špecifikovať viditeľnosť, teda skupiny objektov, ktoré môžu s daným prvkom pracovať. Štandardne ide buď o privátne prvky (má k nim prístup len sám objekt), chránené prvky (má k nim prístup objekt a jeho potomkovia) a verejné prvky (majú k nim prístup všetky objekty). Princíp zapúzdrenia následne tieto pravidlá vynucuje naprieč celým programom.
Zapúzdrenie sa využíva na skrytie informácií ktoré sú buď implementačne závislé alebo nesmú byť menené inými objektami. Tým sa dá dosiahnuť dobrá izolácia rozhrania objektu a implementácie objektu a nie je problém zamieňať implementácie pri zachovaní rozhrania.
Pri zapúzdrení sa taktiež odporúča dodržiavať princíp zachovania najnižšej možnej viditeľnosti. Ten hovorí, že prvky by mali byť viditeľné skutočne len pre tie objekty, ktoré s nimi budú pracovať.
\subsection{Dedičnosť}
Dedičnosť je mechanizmus ktorý umožňuje vyjadriť hierarchickú štruktúru medzi objektami (generalizácia-špecifikácia) a zároveň umožňuje zdieľať kód ktorý je pre takéto objekty spoločný. Trieda môže dediť z jednej alebo viacerých(diamond problem) iných tried, pričom týmto spôsobom získa všetky vlastnosti rodičovských tried.
Trieda môže prekryť vlastnosti rodičovských tried vlastnou implementáciu (pozor na virtuálne metódy v C++). V takom prípade ale musí platiť princíp substitúcie. Teda že všade, kde je možné použiť rodičovskú triedu je možné použiť aj potomka. Toto zaisťuje jednak kompilátor, ktorý nedovolí odstrániť už existujúce metódy, druhak programátor, ktorý musí zabezpečiť že prekryté vlastnosti nekolidujú s už použitým kódom.
\subsection{Polymorfizmus}
Potomkovia môžu vystupovať miesto rodičov.
\subsection{Udalosťami riadené programovanie}
Program obsahuje hlavnú slučku ktorá zbiera udalosti a následne ich spracúva. Celý tok programu je riadený vyvolávaním a spracúvaním udalostí. Dobré na UI.
\subsection{Výnimky}
Viď. Try-Catch-Finally
\section{Základné princípy počítačov}
\subsection{Číselné sústavy}
\begin{itemize}
\item Nepozičné číselné sústavy - zastaralé (Rímska, Egyptská) - hodnota čísla závisí iba na počte znakov.
\item Pozičné číselné sústavy - "váha" znaku je ovplyvnená jeho pozíciou v zápise čísla.
\item Polyadické sústavy - špeciálny prípad pozičných - váha sa počíta ako polynóm
\end{itemize}
\emph{Základ} - Počet znakov v sústave
\emph{Rád} - váha číslice
TODO: Sem dať zápis číslice ako polynóm a potom zhustene
Sústavy používané v IT:
\begin{itemize}
\item dvojková
\item sem tam osmičková
\item desiatková (duh)
\item šestnástková
\end{itemize}
Prevod: Medzi základmi kedy jeden je mocnina druhého je jednoduchý. Stačí postupovať "po čísliciach" a prevádzať vždy toľko "bitov" po sebe, koľko mi kóduje jedno číslo v druhej sústave.
Pokiaľ toto neplatí, musíme postupovať "po polynóme". Najistejší algoritmus:
Pri prevode do vyššej sústavy si zostrojím želaný polynóm v danej sústave. Tj. napr. číslo 101(2) v sedmičkovej sústave bude $1 * 11 + 1 * 4 + 0 * 2 + 1 * 1 = 16$ (koeficienty polynómu už sú v sedmičkovej sústave).
Pri prevode do nižšej sústavy delím číslo so zvyškom postupne jednotlivými prvkami polynómu (postupujem samostatne pre celočíselnú a desatinnú časť). Pozor, pri prevode desatinnej časti nedelím ale násobím a sledujem pretečenie do celočíselnej časti.
\subsection{Zobrazenie čísel v počítači}
\subsubsection{Priamy kód}
Kladné čísla sa dajú zobrazovať klasicky. Rozsah $<0, 2^N-1>$.
Záporné čísla potrebujú znamienkový bit. Rozsah $<-2^{N-1} + 1, -0>$ a $<0, 2^{N-1} - 1>$. Obsahuje dvojitú nulu (neplatí že -0 + 1 = +0). Pri pretečení pokračujem do zápornej nuly.
\subsubsection{Inverzný kód}
Záporné čísla zobrazujem inverzne (prvý bit držím ako znamienkový). Rovnaký rozsah ako priamy kód, ale pri pretečení sa dostanem na -MAX, nie -0. Taktiež platí že -0 + 1 = +0.
Problém dvoch núl sa pri sčítaní rieši pripočítaním prenosu zo znamienkového bitu (kruhový prenos).
\subsubsection{Doplnkový kód}
Dvojkový doplnkový kód = Inverzia všetkých bitov a pripočítanie jednotky. Rozsah $<-2^{N-1}, -0>$ a $<0, 2^{N-1} - 1>$ (získal som o jedno záporné číslo viac). Nemám dvojitú nulu, lebo $ 0 = 1 + 1 $. Mám pekný prechod z -1 na 0, z 0 na 1 a aj pri pretečení spadnem na -MAX.
Sčíta sa úplne normálne. Pretečenie nastáva keď sa prenos do znamienkového bitu nerovná prenosu z neho. (lebo to nastáva v okamihu keď je číslo kladné a zmení sa na záporné, ak je záporné tak sa prenos rovná)
\subsubsection{Kód s posunutou nulou}
Záporné čísla sa simulujú tak, že sa povie že celé to číslo je posunuté o polovicu rozsahu zobrazenia.
\subsubsection{Floating point čísla (IEEE 754)}
Číslo má tri zložky. Každá zložka môže mať rôznu šírku (bežne 1, 8, 23 v 32bite)
Znamienkový bit - nuda
Exponent - Zadaný v kóde s posunutou nulou.
Mantisa - Vždy je vo formáte 1.XXXX. Začiatočná jednotka je implicitná.
Výsledné číslo je teda dané ako $(ZB ? -1 : 1) * 1.MANTISA * 2^{EXPONENT}$. (Toto je efektívne prevod do desiatkovej sústavy)
Prevod do IEEE 754: Najprv si prevediem do dvojkovej, tam vyjadrím číslo cez exponent a následne zakódujem sem.
\subsection{Kombinačné a sekvenčné logické obvody}
Originálna idea je implementovať v obvodoch booleovu algebru. Tá vyžaduje tri operátory. Alternatívne sa preto implementuje Schefferova (NAND) alebo Pierceova (NOR) algebra ktoré vyžadujú len jednu operáciu.
Kombinačné logické obvody (logické funkcie):
\begin{itemize}
\item AND, OR, NEG, NAND, NOR, XOR, NOXOR
\end{itemize}
Ako ich zapísať vo forme obvodu vymyslíš na mieste, hlavne si treba pamätať že tam potrebuješ vstupy, výstup, napájanie a uzemnenie. (A nejaký ten tranzistor - typicky vstupy idú na bázu a riadia či ide prúd na výstup alebo na uzemnenie)
Z tohto sa potom skladajú sčítačky, násobičky, dekodéry a pod.
Sekvenčné logické obvody (majú pamäťovú časť ktorá si uchováva stav, môžu byť riadené vstupom alebo hodinami, typické sekvenčné súčiastky: sekvenčný/paralelný register, sekvenčná sčítačka):
\subsubsection{Klopný obvod RS}
Najjednoduchšia pamäť. Riadená vstupom. Má dva vstupy, set a reset. Má dva výstupy Q, a $\neg$Q. Ak je nastavený set, platí Q, ak je nastavený reset, platí negácia Q. Ak nie je nastavené nič, platí rovnaká hodnota ako v minulosti. Ak sú nastavné obe, ide o neplatný stav.
Obvod RS riadený nulami je ako klasický RS ale s negovanými vstupmi.
Implementácia pomocou dvoch NAND hradiel, ktorých výstup sa zároveň posiela na vstup toho opačného hradla. Druhý vstup je potom R alebo S bit. Takže ak sa nastaví S, NAND1 sa spustí, vyvolá prúd na výstupe, ten vyvolá prúd na NAND2, ten vyvolá prúd na výstupe NAND2 a ten zase vyvolá prúd na vstupe pôvodného NAND1.
Dá sa upraviť tak aby bol riadený hodinami keď sa vstup synchronizuje cez hodiny (Vstup AND Hodiny).
\subsubsection{Klopný obvod D}
Modifikácia RS obvodu umožňujúca riadenie hodinami a zjednodušený vstup. Má iba jeden vstup (výstupy ako RS). Pri tiku hodín sa zoberie vstup, uloží sa do D obvodu a až kým sa tam neuloží niečo iné, hodnota tam zostáva.
Implementuje sa cez RS riadený hodinami. Vstup sa privedie na S, negácia vstupu na R. Keď tiknú hodiny, AND začne platiť, vstup sa prenesie do RS obvodu. Tam zostáva až kým znovu netiknú hodiny.
\subsubsection{Klopný obvod JK}
Modifikácia RS ktorá eliminuje zakázaný stav. J funguje ako S, K ako R. Ak platia obe súčasne, obsah obvodu sa neguje. To je docielené tým, že na vstup RS obvodu ide J AND $\neg$Q a K AND Q. Tým pádom nemôžu byť oba vstupy pravdivé naraz, a pravdivý je len variant ktorý aktuálne neplatí v obvode. (Keby sa prehodilo J a K, ale nechalo Q, tak by si zachovával stav. To už ale funguje pri vstupe 0,0 takže toto je zaujímavejšie)
\subsection{Von Neumannova architektúra}
Komponenty: Vstup, Radič, CPU, Pamäť, Výstup.
Dva typy signálov: Riadiace a Dátové. Dáta prúdia zo vstupu do CPU, z CPU do Radiča, Pamäte a na výstup, z Pamäte do CPU. Riadiace signály idú z radiča všade inde a naspäť (všetko riadi, no).
Iný typ: Harvardská architektúra - oddelená pamäť na inštrukcie a na dáta, inak skoro rovnaká.
\subsection{Princípy fungovania procesorov, Prerušenia}
Radič, Cache, CISC, RICS, Pipeline, Registre, FPU, Zbernice(šírka)... boooring
Prerušenie je metóda asynchronného spracovania udalostí. Umožňuje rýchlo riešiť I/O operácie a chyby pri vykonávaní programu.
Maska prerušení - špeciálny register ktorý indikuje ktoré prerušenia sú aktuálne povolené
Tabuľka prerušení - obsahuje informáciu aký kód sa má vykonať v prípade ktorého prerušenia.
Typy prerušenia: Vonkajšie (I/O), vnútorné (delenie nulou, memory fault), softwarové(debugging, výnimky)
\end{multicols}
\section{Operačné systémy}
\begin{multicols}{2}
Funkcie operačných systémov:
\begin{itemize}
\item správa procesov, operačnej pamäte, súborov, siete, sekundárnej pamäte(disk) a iného I/O, ochrana a zabezpečenie (sandboxing), interpret príkazov, reakcia na chyby, štatistiky o systéme
\end{itemize}
Typy architektúry operačných systémov:
\begin{itemize}
\item Monolitické jadro - jeden veľký pamäťový priestor, dobrý výkon, zložité (Linux)
\item Mikrojadro - minimum funkcií priamo v jadre, pomalé (Mach, Symbian)
\item Hybridné - trochu z oboch (Windows, OS X)
\end{itemize}
Komunikácia s OS funguje na základe tzv. systémových volaní. Tie sa typicky implementujú pomocou prerušení. Aplikácia vyvolá softwarové prerušenie, operačný systém si prečíta čo aplikácia potrebuje a vybaví to. (Prerušenie zabezpečí zmenu privilégií, etc.)
\subsection{Procesy, vlákna, synchronizácia}
Proces - aktívne bežiaci program. Má dátový, inštrukčný a zásobníkový segment pamäti.
Hierarchické usporiadanie procesov (originálny rodič je prvý proces 0)
Stavy procesu:
\begin{itemize}
\item New, Ready(môže sa začať vykonávať), Running, Blocked(čaká na niečo, I/O napr.), Termianted
\end{itemize}
Informácie o procese (Process Control Block - PCB): PID, PID rodiča, ID uživateľa, stav, info o pamäti a súboroch, štatistiky, informácie pre plánovač.
Prepnutie medzi procesmi procesmi = context switch.
Vlákno - jedna vykonateľná sekvencia inštrukcií v rámci procesu. Má vlastný zásobník a program counter, registre a context, ale zdieľa dátový a inštrukčný priestor a iné zdroje. Vlákno je de facto low-cost náhrada za proces vyžadujúca menšiu réžiu.
Vlákna môžu byť implementované buď na užívateľskej úrovni (OS o nich nevie = nenaplánuje ich na rôzne procesory) alebo na úrovni OS (discount process scheduling).
\subsubsection{Synchronizácia}
Miesto v kóde ktoré v istom časovom okamihu vykonáva iba jeden proces sa nazýva kritická sekcia. Kritická sekcia musí zaručiť: Safety (max. jeden proces naraz), Progress (ak je sekcia prázdna, nikto nečaká do nekonečna), Fairness (žiadny proces nečaká nekončne dlho).
Realizácia: Čisto software (busy waiting, problém optimalizácie a out of order vykonávania), Hardware (CAS, Test-And-Set, stále busy waiting, ale lepšie riadené), OS (synchronizuje OS s tým že OS si môže riadiť scheduler tak aby minimalizoval busy wait).
Synchronizačné primitíva: Mutex (lock, unlock), Semafór (give, take, init), Monitor (kritická sekcia nad zámkom, prípadne s podmienkami), Podmienkové premenné (wait, notify).
\subsubsection{Uviaznutie (Deadlock)}
Stav programu z ktorého nie je možné pokračovať. (Alternatíva livelock - program pracuje, ale nikam sa neposúva).
Podmienky vzniku uviaznutia pri prístupu k zdrojom: Vzájomné vylúčenie (každý zdroj môže mať naraz len jeden proces), Ponechanie si zdroja a čakanie (Proces čo chce viac zdrojov si ich postupne berie a čaká na ďalšie), Absencia predbiehania (Zdroj sa uvoľní iba ak sa ho proces vzdá), Kruhové čakanie.
Ochrana pred uviaznutím: Prevencia (nejaká forma verifikácie programu, nemusí byť úplne formálna), Obchádzanie (zdetekujem potenciálne uviaznutie a riešim to napr. tak že zdroj nepridelím), Detekcia (zdetekujem uviaznutie keď nastane a napr. zabijem jeden zo zaseknutých procesov), Ignorancia.
Prevencia uviaznutia:
\begin{itemize}
\item Virtualizujem zdroje, takže každý zdroj môže používať viac procesov naraz a uviaznuť teda môže len OS, ktorý si to už nejak zariadi.
\item Zakážem postupné získavanie zdrojov - buď sa zamkne naraz všetko, alebo nič
\item Alternatíva k minulému - v prípade že ďalší požadovaný zdroj nejde zamknúť, uvoľním všetko
\item Zavediem totálne usporiadanie na zdrojoch
\end{itemize}
Obchádzanie a detekcia: OS má informáciu o hornom limite na zdroje ktoré môže proces požadovať (niekedy ťažko určite). Následne OS testuje či aktuálne dostupné, aktuálne rozdané a potenciálne požadované zdroje môžu vytvoriť cyklický graf. Takto sa dá vyriešiť aj prevencia, lebo detekcia môže prebehnúť napr. ešte pred spustením problémového procesu. Alternatívne sa môžeme vykašlať na informáciu o maximálnom počte zdrojov a uvažovať iba aktuálne pridelené zdroje a z toho získať aktuálne čakajúce procesy. Z tohto dostaneme graf čakania a ak je v ňom cyklus, máme problém. Nevýhoda je že takto detekujeme len existujúce uviaznutie, nie potenciálne. Riešenie je potom buď prerozdelenie zdrojov alebo zabitie procesu.
\subsection{Plánovanie procesov}
OS udržuje niekoľko front procesov: Pripravené procesy, Čakajúce na I/O, Čakajúce na pamäť (swappované), Čakajúce na synchronizáciu. Toto všetko ešte môže byť obohatené prioritami, privilégiami a pod. V podstate iba prvá fronta vyžaduje seriózne plánovanie, keďže zvyšné sa uvoľňujú keď sú dostupné potrebné zdroje.
OS má nejakú internú hierarchiu plánovačov. Typicky ide o krátkodobý (ktorý pripravený proces sa pustí, milisekundy), strednedobý (ktorý proces sa odswappuje) a dlhodobý plánovač (ktorý proces sa spustí kedy, rádovo sekundy). Krátkodobý plánovač sa okrem pravidelných intervalov štandardne vyvoláva v okamihu keď nejaký proces zaspáva alebo začína čakať, prípadne až nejaký proces prestáva čakať a je znovu pripravený. Pokiaľ má plánovač moc proces pozastaviť (bežiaci->pripravený), hovoríme o preemptívnom plánovaní (predbiehanie).
Pri plánovaní treba optimalizovať množstvo kritérií: Využitie CPU, dobu vykonávania procesu, dobu čakania, dobu odozvy, prioritu, spravodlivosť...
Plánovacie algoritmy:
\begin{itemize}
\item First Come, First Serve - klasické nudné FIFO, bez predbiehania. Problém krátkych vs. dlhých procesov.
\item Round Robin - Po časovom kvante sa prepína proces. Procesy sa rovnomerne striedajú. Problém u procesov ktoré často čakajú (zbytočné si minú časové kvantum)
\item Prioritné plánovanie - FIFO, ale každá priorita má svoju frontu. Preemptívny variant umožňuje novému procesu s vyššou prioritou zastaviť bežiace nižšie procesy.
\item Shortest Job First - Každý proces má časový odhad na vykonávanie (ak nie je známy, počíta sa štatistika histórie), vyberá sa proces s najkratším potenciálnym časom vykonávania. Preemptívny variant potom predbehne bežiaci proces ak sa objaví proces ktorý má zostávajúci čas menší ako bežiaci proces.
\end{itemize}
\end{multicols}
\section{Práca s pamäťou, Vstupy a Výstupy}
\begin{multicols}{2}
\subsection{Hierarchia pamätí}
Register $>$ Vnútorná (RAM, Cache) $>$ Vonkajšia pamäť
\subsection{Vlastnosti pamätí}
\begin{itemize}
\item Kapacita
\item Prístupová doba (latenica)
\item Priepustnosť (bandwidth)
\item Statickosť / Dynamickosť - Dynamická pamäť musí informáciu dynamicky obnovovať
\item Deštruktívnosť čítania
\item Volatilita
\item Prístup - sekvenčný, priamy
\item Spoľahlivosť, Cena, etc...
\end{itemize}
\subsubsection{Vnútorná pamäť}
RAM - random access memory - dá sa pristupovať priamo k jednotlivým bunkám. Dočasné ukladanie - len za behu počítača.
Matica pamäťových buniek. Čítanie/Zápis - nastaví sa riadiaci vodič(vodiče) pre danú bunku, to vyvolá čítanie/zápis (alternatívne čítanie po riadkoch/stĺpcoch).
Možná realizácia:
\begin{itemize}
\item ROM - obsahuje informáciu od výroby
\item PROM - ako ROM, ale dá sa do nej raz zapísať (prepálenie poistky)
\item EPROM - ako PROM, ale dá sa zmazať UV svetlom
\item EEPROM - ako EPROM, ale dá sa zmazať aj elektricky
\item Flash - dá sa mazať po kúskoch. Obsahuje bunky, každá bunka má potom Control a Floating gate.
\item SRAM - statická RAM (L1-L3 Cache), drahé ale rýchle, podobné ako klopné ER obvody
\item DRAM - dynamická RAM, realizovaná ako kondenzátor, vyžaduje obnovovanie
\end{itemize}
\subsubsection{Vonkajšia pamäť}
Nie je dostupná priamo z procesora, dáta sa kopírujú do RAM radičom. Slúži na trvalé ukladanie informácií.
\begin{itemize}
\item Pevný disk - adresácia cez cylinder, hlavu a sektor prípadne cez lineárne očíslovanie sektorov (preklad je na disku).
\item Disketa, CD, USB Flash, Network storage
\end{itemize}
\subsection{Práca s vnútornou pamäťou}
Zaisťuje pre jednotlivé procesy ilúziu neobmedzeného súvislého pamäťového priestoru začínajúceho na nule pomocou logických adries. Tým sa eliminuje nutnosť používať fyzické adresy pri preklade.
\subsubsection{Segmentácia}
Rieši problém zabezpečenia a problém relokácie pamäte. Pamäťová bunka je určená adresou začiatku segmentu a offsetom v rámci segmentu. Každý segment môže byť nastavený ako read only, prípadne môže mať rôzne privilégia (typicky 4 rôzne okruhy zabezpečenia). Teda je možné presunúť proces v pamäti na nové miesto bez toho aby o tom vedel (zmení sa bázový register). Zároveň je možné vynútiť zabezpečenie - proces nemôže pristupovať za hranice segmentu a do segmentov iných procesov (pokiaľ nemá povolenie).
Potrebuje tabuľku segmentov ktorá udáva limit, typ a privilégia segmentu.
Jediný kto ho vlastne poriadne používal bol Intel v x86, dnes sa už nepoužíva (v x64 je vypnuté), ochrana pamäte a relokácia bola prenesená do stránkovania, čiastočne s podporou operačného systému.
\subsubsection{Stránkovanie}
Primárne rieši fragmentáciu pamäte a virtuálnu pamäť. Pamäť sa delí na malé kúsky, stránky, ktoré v podstate fungujú ako malinké segmenty. Proces má logickú adresu podľa ktorej sa v tabuľke stránok nájde správna fyzická adresa (prípadne sa zistí že stránka je odswapovaná - page fault). Tabuľka stránok je kvôli efektivite hierarchická a často hľadané stránky sú uložené v Translation Lookaside Buffer. Stránky môžu byť v pamäti usporiadané ľubovoľne. Pre každú stránku je potom možné nastavovať privilégiá a vlastníka, čím sa zaručí bezpečnosť prístupu. Stránky je možné swapovať na disk.
\subsection{Práca s I/O}
\begin{itemize}
\item Polling, prerušenie, DMA.
\item Blokujúce/neblokujúce volania.
\item OS: caching, buffering, fronty požiadavkov, rezervácia
\end{itemize}
\end{multicols}
\section{Databáze}
\begin{multicols}{2}
\end{multicols}
\end{document} | {'content_hash': '3af582d3bd054a50bba1d9ff8466adb2', 'timestamp': '', 'source': 'github', 'line_count': 562, 'max_line_length': 719, 'avg_line_length': 66.53914590747331, 'alnum_prop': 0.7836341756919374, 'repo_name': 'daemontus/statnice_priprava', 'id': '28835c12cb0cf8c1319bc9e75ca9a4bb4aa927a1', 'size': '40199', 'binary': False, 'copies': '1', 'ref': 'refs/heads/master', 'path': 'programove_a_informacne_systemy.tex', 'mode': '33188', 'license': 'mit', 'language': [{'name': 'TeX', 'bytes': '162844'}]} |
package net.sourceforge.plantuml;
import net.sourceforge.plantuml.graphic.color.ColorType;
import net.sourceforge.plantuml.graphic.color.Colors;
import net.sourceforge.plantuml.ugraphic.color.HColor;
public interface LineConfigurable {
public Colors getColors();
public void setSpecificColorTOBEREMOVED(ColorType type, HColor color);
}
| {'content_hash': '896ab11c72e7139cfa8d4e0009ad6594', 'timestamp': '', 'source': 'github', 'line_count': 16, 'max_line_length': 71, 'avg_line_length': 21.6875, 'alnum_prop': 0.8184438040345822, 'repo_name': 'talsma-ict/umldoclet', 'id': '82dcfc0d017f71cedc4ddb7d76db6eac52cac7bd', 'size': '1436', 'binary': False, 'copies': '1', 'ref': 'refs/heads/develop', 'path': 'src/plantuml-asl/src/net/sourceforge/plantuml/LineConfigurable.java', 'mode': '33188', 'license': 'apache-2.0', 'language': [{'name': 'Batchfile', 'bytes': '56'}, {'name': 'CSS', 'bytes': '99'}, {'name': 'Java', 'bytes': '11407401'}, {'name': 'JavaScript', 'bytes': '2582'}]} |
ACCEPTED
#### According to
The Catalogue of Life, 3rd January 2011
#### Published in
null
#### Original name
null
### Remarks
null | {'content_hash': '9ca7d6ac705eb86f5dd7b1d5700094fe', 'timestamp': '', 'source': 'github', 'line_count': 13, 'max_line_length': 39, 'avg_line_length': 10.307692307692308, 'alnum_prop': 0.6940298507462687, 'repo_name': 'mdoering/backbone', 'id': 'e0648a69163fc09b051f7ae6130b21654a688bd1', 'size': '185', 'binary': False, 'copies': '1', 'ref': 'refs/heads/master', 'path': 'life/Plantae/Magnoliophyta/Magnoliopsida/Lamiales/Gesneriaceae/Cyrtandra/Cyrtandra samoensis/README.md', 'mode': '33188', 'license': 'apache-2.0', 'language': []} |
//
// Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may not use this file except in compliance
// with the License. You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing,
// software distributed under the License is distributed on an
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
// under the License.
//
package com.cloud.agent.api;
import com.cloud.storage.StoragePool;
public class UpgradeSnapshotCommand extends SnapshotCommand {
private String version;
private Long templateId;
private Long tmpltAccountId;
protected UpgradeSnapshotCommand() {
}
/**
* @param primaryStoragePoolNameLabel The UUID of the primary storage Pool
* @param secondaryStoragePoolURL This is what shows up in the UI when you click on Secondary storage.
* @param snapshotUuid The UUID of the snapshot which is going to be upgraded
* @param _version version for this snapshot
*/
public UpgradeSnapshotCommand(StoragePool pool, String secondaryStoragePoolURL, Long dcId, Long accountId, Long volumeId, Long templateId, Long tmpltAccountId,
String volumePath, String snapshotUuid, String snapshotName, String version) {
super(pool, secondaryStoragePoolURL, snapshotUuid, snapshotName, dcId, accountId, volumeId);
this.version = version;
this.templateId = templateId;
this.tmpltAccountId = tmpltAccountId;
}
public String getVersion() {
return version;
}
public Long getTemplateId() {
return templateId;
}
public Long getTmpltAccountId() {
return tmpltAccountId;
}
}
| {'content_hash': 'db4cc880b9f406f95e99f059ee59d137', 'timestamp': '', 'source': 'github', 'line_count': 58, 'max_line_length': 163, 'avg_line_length': 36.62068965517241, 'alnum_prop': 0.7189265536723164, 'repo_name': 'wido/cloudstack', 'id': '1353dbce2a4361825e1115e36ab89cd5a8a49782', 'size': '2124', 'binary': False, 'copies': '7', 'ref': 'refs/heads/master', 'path': 'core/src/main/java/com/cloud/agent/api/UpgradeSnapshotCommand.java', 'mode': '33188', 'license': 'apache-2.0', 'language': [{'name': 'Batchfile', 'bytes': '10890'}, {'name': 'C#', 'bytes': '2356211'}, {'name': 'CSS', 'bytes': '358651'}, {'name': 'Dockerfile', 'bytes': '2374'}, {'name': 'FreeMarker', 'bytes': '4887'}, {'name': 'Groovy', 'bytes': '146420'}, {'name': 'HTML', 'bytes': '149088'}, {'name': 'Java', 'bytes': '36088724'}, {'name': 'JavaScript', 'bytes': '7976318'}, {'name': 'Python', 'bytes': '13363686'}, {'name': 'Ruby', 'bytes': '37714'}, {'name': 'Shell', 'bytes': '784058'}, {'name': 'XSLT', 'bytes': '58008'}]} |
#pragma once
#include "BluEye.generated.h"
class BrowserClient;
class RenderHandler;
DECLARE_DYNAMIC_MULTICAST_DELEGATE_TwoParams(FScriptEvent, const FString&, EventName, const FString&, EventMessage);
struct FBluTextureParams
{
// Pointer to our Texture's resource
FTexture2DResource* Texture2DResource;
};
struct FUpdateTextureRegionsData
{
FTexture2DResource * Texture2DResource;
uint32 NumRegions;
FUpdateTextureRegion2D * Regions;
uint32 SrcPitch;
uint32 SrcBpp;
uint8 * SrcData;
};
UENUM(BlueprintType)
enum EBluSpecialKeys
{
backspacekey = 8 UMETA(DisplayName = "Backspace"),
tabkey = 9 UMETA(DisplayName = "Tab"),
enterkey = 13 UMETA(DisplayName = "Enter"),
pausekey = 19 UMETA(DisplayName = "Pause"),
escapekey = 27 UMETA(DisplayName = "Escape"),
pageupkey = 33 UMETA(DisplayName = "Page Up"),
pagedownkey = 34 UMETA(DisplayName = "Page Down"),
endkey = 35 UMETA(DisplayName = "End"),
homekey = 36 UMETA(DisplayName = "Home"),
leftarrowkey = 37 UMETA(DisplayName = "Left Arrow"),
rightarrowkey = 38 UMETA(DisplayName = "Right Arrow"),
downarrowkey = 39 UMETA(DisplayName = "Down Arrow"),
uparrowkey = 40 UMETA(DisplayName = "Up Arrow"),
insertkey = 45 UMETA(DisplayName = "Insert"),
deletekey = 46 UMETA(DisplayName = "Delete"),
numlockkey = 144 UMETA(DisplayName = "Num Lock"),
scrolllockkey = 145 UMETA(DisplayName = "Scroll Lock")
};
UCLASS(ClassGroup = Blu, Blueprintable)
class BLU_API UBluEye : public UObject
{
GENERATED_BODY()
UBluEye(const class FObjectInitializer& PCIP);
public:
//GENERATED_UCLASS_BODY()
/** Initialize function, should be called after properties are set */
UFUNCTION(BlueprintCallable, Category = "Blu", meta = (WorldContext = "WorldContextObject"))
void init(UObject* WorldContextObject);
/** The default URL this UI component will load */
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Blu")
FString DefaultURL;
/** Is this UI component current active? */
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Blu")
bool bEnabled;
/** Should this be rendered in game to be transparent? */
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Blu")
bool bIsTransparent;
/** Width of the view resolution */
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Blu")
int32 Width;
/** Height of the view resolution */
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Blu")
int32 Height;
/** Material that will be instanced to load UI texture into it */
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Blu")
UMaterialInterface* BaseMaterial;
/** Name of parameter to load UI texture into material */
UPROPERTY(EditAnywhere, BlueprintReadOnly, Category = "Blu")
FName TextureParameterName = "BluTexture";
/** Get the texture data from our UI component */
UFUNCTION(BlueprintCallable, Category = "Blu")
UTexture2D* GetTexture() const;
/**
* Material instance that contains texture inside it
* @deprecated Please use raw texture using GetTexture method. GetMaterialInstance will be removed in the next release!
*/
DEPRECATED(4.8, "Please use raw texture using GetTexture method. GetMaterialInstance will be removed in the next release!")
UFUNCTION(BlueprintCallable, Category = "Blu", meta = (DeprecatedFunction, DeprecatedNode, DeprecationMessage = "Please use raw texture using GetTexture method. GetMaterialInstance will be removed in the next release!"))
UMaterialInstanceDynamic* GetMaterialInstance() const;
/** Execute JS code inside the browser */
UFUNCTION(BlueprintCallable, Category = "Blu")
void ExecuteJS(const FString& code);
/**
* Execute a JS function/method by name with FString Array as params.
* Each element in the array will be passed into the function in order and separated by a ,
* If you want to pass a JSON string as an object, simply don't put quotes around the outside braces {"foo" : "bar"}
* If you want to pass a number, do similar: 10.5
* To pass as a string, place quotes around the param when adding to the array: "10.5" and "hello" are strings
*/
UFUNCTION(BlueprintCallable, Category = "Blu", meta = (DisplayName = "Execute Javascript With Params", Keywords = "js javascript parameters"))
void ExecuteJSMethodWithParams(const FString& methodName, const TArray<FString> params);
/** Load a new URL into the browser */
UFUNCTION(BlueprintCallable, Category = "Blu")
void LoadURL(const FString& newURL);
/** Trigger a LEFT click in the browser via a Vector2D */
UFUNCTION(BlueprintCallable, Category = "Blu")
void TriggerLeftClick(const FVector2D& pos, const float scale = 1);
/** Trigger a RIGHT click in the browser via a Vector2D */
UFUNCTION(BlueprintCallable, Category = "Blu")
void TriggerRightClick(const FVector2D& pos, const float scale = 1);
/** Trigger a LEFT MOUSE DOWN in the browser via a Vector2D */
UFUNCTION(BlueprintCallable, Category = "Blu")
void TriggerLeftMouseDown(const FVector2D& pos, const float scale = 1);
/** Trigger a RIGHT MOUSE DOWN in the browser via a Vector2D */
UFUNCTION(BlueprintCallable, Category = "Blu")
void TriggerRightMouseDown(const FVector2D& pos, const float scale = 1);
/** Trigger a LEFT MOUSE UP in the browser via a Vector2D */
UFUNCTION(BlueprintCallable, Category = "Blu")
void TriggerLeftMouseUp(const FVector2D& pos, const float scale = 1);
/* Trigger a RIGHT MOUSE UP in the browser via a Vector2D */
UFUNCTION(BlueprintCallable, Category = "Blu")
void TriggerRightMouseUp(const FVector2D& pos, const float scale = 1);
/** Move the mouse in the browser */
UFUNCTION(BlueprintCallable, Category = "Blu")
void TriggerMouseMove(const FVector2D& pos, const float scale = 1);
/** Move the mouse in the browser */
UFUNCTION(BlueprintCallable, Category = "Blu")
void TriggerMouseWheel(const float MouseWheelDelta, const FVector2D& pos, const float scale = 1);
/** Javascript event emitter */
UPROPERTY(BlueprintAssignable)
FScriptEvent ScriptEventEmitter;
/** Trigger a key down event */
UFUNCTION(BlueprintCallable, Category = "Blu")
void KeyDown(FKeyEvent InKey);
/** Trigger a key up event */
UFUNCTION(BlueprintCallable, Category = "Blu")
void KeyUp(FKeyEvent InKey);
/** Trigger a key press event */
UFUNCTION(BlueprintCallable, Category = "Blu")
void KeyPress(FKeyEvent InKey);
/** Trigger a character key event */
UFUNCTION(BlueprintCallable, Category = "Blu")
void CharKeyPress(FCharacterEvent CharEvent);
/** Trigger a raw keypress via a character */
UFUNCTION(BlueprintCallable, Category = "Blu", meta = (AdvancedDisplay = "2"))
void RawCharKeyPress(const FString charToPress, bool isRepeat,
bool LeftShiftDown,
bool RightShiftDown,
bool LeftControlDown,
bool RightControlDown,
bool LeftAltDown,
bool RightAltDown,
bool LeftCommandDown,
bool RightCommandDown,
bool CapsLocksOn);
UFUNCTION(BlueprintCallable, Category = "Blu", meta = (AdvancedDisplay = "2"))
void SpecialKeyPress(EBluSpecialKeys key,
bool LeftShiftDown,
bool RightShiftDown,
bool LeftControlDown,
bool RightControlDown,
bool LeftAltDown,
bool RightAltDown,
bool LeftCommandDown,
bool RightCommandDown,
bool CapsLocksOn);
/** Close the browser */
UFUNCTION(BlueprintCallable, Category = "Blu")
void CloseBrowser();
/** Check if the browser is still loading */
UFUNCTION(BlueprintCallable, Category = "Blu")
bool IsBrowserLoading();
/** Reloads the browser's current page */
UFUNCTION(BlueprintCallable, Category = "Blu")
void ReloadBrowser(bool IgnoreCache);
/** Navigate back in this web view's history */
UFUNCTION(BlueprintCallable, Category = "Blu")
void NavBack();
/** Navigate forward in this web view's history */
UFUNCTION(BlueprintCallable, Category = "Blu")
void NavForward();
/** Resize the browser's viewport */
UFUNCTION(BlueprintCallable, Category = "Blu")
UTexture2D* ResizeBrowser(const int32 NewWidth, const int32 NewHeight);
CefRefPtr<CefBrowser> browser;
void TextureUpdate(const void* buffer, FUpdateTextureRegion2D * updateRegions, uint32 regionCount);
void BeginDestroy() override;
protected:
CefWindowInfo info;
CefRefPtr<BrowserClient> g_handler;
CefBrowserSettings browserSettings;
RenderHandler* renderer;
void ResetTexture();
void DestroyTexture();
void ResetMatInstance();
// Parse UE4 key events, helper
void processKeyCode(FKeyEvent InKey);
// Helper for processing key modifiers
void processKeyMods(FInputEvent InKey);
// Store UI state in this UTexture2D
UTexture2D* Texture;
UMaterialInstanceDynamic* MaterialInstance;
CefMouseEvent mouse_event;
CefKeyEvent key_event;
private:
FBluTextureParams RenderParams;
};
| {'content_hash': '598170a249b3a149225c8557327f7705', 'timestamp': '', 'source': 'github', 'line_count': 257, 'max_line_length': 221, 'avg_line_length': 34.221789883268485, 'alnum_prop': 0.7366685616827743, 'repo_name': 'marcthenarc/BLUI', 'id': '1e00f72ef80b843367c8551d971fecdae15e5e1f', 'size': '8795', 'binary': False, 'copies': '3', 'ref': 'refs/heads/master', 'path': 'Source/Blu/Public/BluEye.h', 'mode': '33188', 'license': 'mit', 'language': [{'name': 'C', 'bytes': '745'}, {'name': 'C#', 'bytes': '3339'}, {'name': 'C++', 'bytes': '38592'}]} |
<!--
~ Licensed to the Apache Software Foundation (ASF) under one
~ or more contributor license agreements. See the NOTICE file
~ distributed with this work for additional information
~ regarding copyright ownership. The ASF licenses this file
~ to you under the Apache License, Version 2.0 (the
~ "License"); you may not use this file except in compliance
~ with the License. You may obtain a copy of the License at
~
~ http://www.apache.org/licenses/LICENSE-2.0
~
~ Unless required by applicable law or agreed to in writing,
~ software distributed under the License is distributed on an
~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
~ KIND, either express or implied. See the License for the
~ specific language governing permissions and limitations
~ under the License.
-->
<ipojo xmlns:tr="org.apache.felix.ipojo.transaction">
<component classname="org.apache.felix.ipojo.handler.transaction.components.FooDelegator" name="requires-ok">
<provides/>
<requires field="foo"/>
<tr:transaction field="transaction">
<transactional method="doSomethingGood"/>
<transactional method="getCurrentTransaction"/>
<transactional method="doSomethingBad"/>
<transactional method="doSomethingBad2" norollbackfor="java.lang.UnsupportedOperationException"/>
<transactional method="doSomethingLong"/>
</tr:transaction>
</component>
<component classname="org.apache.felix.ipojo.handler.transaction.components.FooDelegator" name="requires-cb">
<provides/>
<requires field="foo" />
<tr:transaction field="transaction" onCommit="onCommit" onRollback="onRollback">
<transactional method="doSomethingGood"/>
<transactional method="getCurrentTransaction"/>
<transactional method="doSomethingBad"/>
<transactional method="doSomethingBad2" norollbackfor="java.lang.UnsupportedOperationException"/>
<transactional method="doSomethingLong"/>
</tr:transaction>
</component>
</ipojo> | {'content_hash': '29d80829876a714d86d9f18ea60322f3', 'timestamp': '', 'source': 'github', 'line_count': 44, 'max_line_length': 110, 'avg_line_length': 44.5, 'alnum_prop': 0.7517875383043923, 'repo_name': 'apache/felix-dev', 'id': 'f209c65de38400c850c19bad219b3b91c1a70da1', 'size': '1958', 'binary': False, 'copies': '2', 'ref': 'refs/heads/master', 'path': 'ipojo/handler/transaction/transaction-handler-it/src/it/transaction-it/src/main/resources/requires.xml', 'mode': '33188', 'license': 'apache-2.0', 'language': [{'name': 'CSS', 'bytes': '53237'}, {'name': 'Groovy', 'bytes': '9231'}, {'name': 'HTML', 'bytes': '372812'}, {'name': 'Java', 'bytes': '28836360'}, {'name': 'JavaScript', 'bytes': '248796'}, {'name': 'Scala', 'bytes': '40378'}, {'name': 'Shell', 'bytes': '12628'}, {'name': 'XSLT', 'bytes': '151258'}]} |
package io.openshift.booster.messaging;
import java.util.Hashtable;
import javax.jms.Connection;
import javax.jms.ConnectionFactory;
import javax.jms.DeliveryMode;
import javax.jms.Destination;
import javax.jms.JMSException;
import javax.jms.Message;
import javax.jms.MessageProducer;
import javax.jms.Session;
import javax.jms.TextMessage;
import javax.naming.Context;
import javax.naming.NamingException;
import io.openshift.common.CommonConstants;
import io.vertx.core.AbstractVerticle;
import io.vertx.core.eventbus.MessageConsumer;
import io.vertx.core.json.JsonObject;
import io.vertx.core.logging.Logger;
import io.vertx.core.logging.LoggerFactory;
import io.vertx.servicediscovery.Record;
import io.vertx.servicediscovery.ServiceDiscovery;
import io.vertx.servicediscovery.kubernetes.KubernetesServiceImporter;
public class AMQProducerVerticle extends AbstractVerticle {
private static final Logger log = LoggerFactory.getLogger("AMQProducerVerticle");
private static final String AMQ_DEFAULT_HOST = "localhost";
private static final int AMQP_DEFAULT_PORT = 5672;
private static final String AMQP_DEFAULT_ADDRESS = "aTopic";
private static final String SENT = "Sent: %s";
private String amqBrokerHost;
private int amqBrokerPort;
private String amqBrokerUsername;
private String amqBrokerPassword;
private String amqBrokerAddress;
private String kubernetesProject;
private static final int DELIVERY_MODE = DeliveryMode.NON_PERSISTENT;
public AMQProducerVerticle() {
amqBrokerHost = System.getenv(CommonConstants.AMQP_BROKER_HOST_ENV) != null
? System.getenv(CommonConstants.AMQP_BROKER_HOST_ENV) : AMQ_DEFAULT_HOST;
amqBrokerPort = System.getenv(CommonConstants.AMQP_BROKER_PORT_ENV) != null
? Integer.parseInt(System.getenv(CommonConstants.AMQP_BROKER_PORT_ENV)) : AMQP_DEFAULT_PORT;
amqBrokerAddress = System.getenv(CommonConstants.AMQP_BROKER_ADDRESS_ENV) != null
? System.getenv(CommonConstants.AMQP_BROKER_ADDRESS_ENV) : AMQP_DEFAULT_ADDRESS;
amqBrokerUsername = System.getenv(CommonConstants.AMQP_BROKER_USER_ENV);
amqBrokerPassword = System.getenv(CommonConstants.AMQP_BROKER_PASSWORD_ENV);
kubernetesProject = System.getenv(CommonConstants.KUBERNETES_PROJECT_ENV);
}
@Override
public void start() throws Exception {
super.start();
ServiceDiscovery discovery = ServiceDiscovery.create(vertx);
discovery.registerServiceImporter(new KubernetesServiceImporter(),
new JsonObject().put("namespace", kubernetesProject));
MessageConsumer<JsonObject> ebConsumer = vertx.eventBus()
.consumer(CommonConstants.VERTX_EVENTBUS_DATA_ADDRESS_ENV);
ebConsumer.handler(payload -> {
log.info("Message received from event bus");
discovery.getRecord(new JsonObject().put("name", "broker-amq-amqp"), ks -> {
// Create the context env
Hashtable<Object, Object> env = new Hashtable<Object, Object>();
env.put(Context.INITIAL_CONTEXT_FACTORY, "org.apache.qpid.jms.jndi.JmsInitialContextFactory");
if (ks.failed()) {
log.warn(
"Kubernetes service not found in the vert.x service registry. Either configure the Kubernetes service bridge, or assign environment variables for Broker configuration. ");
env.put("connectionfactory.amqBrokerLookup", "amqp://" + amqBrokerHost + ":" + amqBrokerPort);
env.put("queue.dataLookup", amqBrokerAddress);
env.put("topic.liveDataLookup", amqBrokerAddress);
} else {
Record brokerRecord = ks.result();
log.info("Kubernetes service found in the vert.x service registry: " + brokerRecord.toString());
String brokerHost = brokerRecord.getLocation().getString("host");
Integer brokerPort = brokerRecord.getLocation().getInteger("port");
env.put("connectionfactory.amqBrokerLookup", "amqp://" + brokerHost + ":" + brokerPort);
env.put("queue.dataLookup", amqBrokerAddress);
env.put("topic.liveDataLookup", amqBrokerAddress);
}
try {
// Create the context
Context context = new javax.naming.InitialContext(env);
produceMessage(payload, context);
} catch (NamingException e) {
log.error("Oops", e);
}
});
});
}
private boolean produceMessage(io.vertx.core.eventbus.Message<JsonObject> payload, Context context) {
boolean success = false;
ConnectionFactory factory = null;
Connection connection = null;
Session session = null;
MessageProducer messageProducer = null;
Destination destination = null;
try {
factory = (ConnectionFactory) context.lookup("amqBrokerLookup");
destination = (Destination) context.lookup("liveDataLookup");
connection = factory.createConnection(amqBrokerUsername, amqBrokerPassword);
connection.start();
session = connection.createSession(false, Session.AUTO_ACKNOWLEDGE);
messageProducer = session.createProducer(destination);
TextMessage message = session.createTextMessage(payload.body().encodePrettily());
messageProducer.send(message, DELIVERY_MODE, Message.DEFAULT_PRIORITY, Message.DEFAULT_TIME_TO_LIVE);
log.info(String.format(SENT, message));
} catch (Exception e1) {
log.error("Oops", e1);
} finally {
try {
messageProducer.close();
session.close();
connection.close();
} catch (JMSException jms) {
log.error("Slightly bigger 'oops'", jms);
}
}
return success;
}
}
| {'content_hash': '9501739130aab0abbd6e6b1f4a49c30c', 'timestamp': '', 'source': 'github', 'line_count': 162, 'max_line_length': 178, 'avg_line_length': 32.888888888888886, 'alnum_prop': 0.7507507507507507, 'repo_name': 'benemon/vertx-rest-amqp-example', 'id': '316e76b0208f234198e77cdc0c5a7e75af9d92e0', 'size': '5328', 'binary': False, 'copies': '1', 'ref': 'refs/heads/master', 'path': 'src/main/java/io/openshift/booster/messaging/AMQProducerVerticle.java', 'mode': '33188', 'license': 'apache-2.0', 'language': [{'name': 'Java', 'bytes': '9241'}]} |
package org.apache.hadoop.io.compress;
import static org.junit.Assert.assertArrayEquals;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertTrue;
import static org.junit.Assert.fail;
import static org.junit.Assume.assumeTrue;
import java.io.BufferedInputStream;
import java.io.BufferedOutputStream;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.OutputStream;
import java.io.OutputStreamWriter;
import java.util.Arrays;
import java.util.HashMap;
import java.util.Map;
import java.util.Random;
import java.util.zip.GZIPInputStream;
import java.util.zip.GZIPOutputStream;
import org.apache.commons.codec.binary.Base64;
import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.fs.CommonConfigurationKeys;
import org.apache.hadoop.fs.FileStatus;
import org.apache.hadoop.fs.FileSystem;
import org.apache.hadoop.fs.Path;
import org.apache.hadoop.io.DataInputBuffer;
import org.apache.hadoop.io.DataOutputBuffer;
import org.apache.hadoop.io.IOUtils;
import org.apache.hadoop.io.MapFile;
import org.apache.hadoop.io.RandomDatum;
import org.apache.hadoop.io.SequenceFile;
import org.apache.hadoop.io.SequenceFile.CompressionType;
import org.apache.hadoop.io.Text;
import org.apache.hadoop.io.Writable;
import org.apache.hadoop.io.compress.bzip2.Bzip2Factory;
import org.apache.hadoop.io.compress.zlib.BuiltInGzipDecompressor;
import org.apache.hadoop.io.compress.zlib.BuiltInZlibDeflater;
import org.apache.hadoop.io.compress.zlib.BuiltInZlibInflater;
import org.apache.hadoop.io.compress.zlib.ZlibCompressor;
import org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionLevel;
import org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionStrategy;
import org.apache.hadoop.test.GenericTestUtils;
import org.apache.hadoop.io.compress.zlib.ZlibFactory;
import org.apache.hadoop.util.LineReader;
import org.apache.hadoop.util.NativeCodeLoader;
import org.apache.hadoop.util.ReflectionUtils;
import org.junit.After;
import org.junit.Assert;
import org.junit.Assume;
import org.junit.Test;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
public class TestCodec {
private static final Logger LOG= LoggerFactory.getLogger(TestCodec.class);
private Configuration conf = new Configuration();
private int count = 10000;
private int seed = new Random().nextInt();
@After
public void after() {
ZlibFactory.loadNativeZLib();
}
@Test
public void testDefaultCodec() throws IOException {
codecTest(conf, seed, 0, "org.apache.hadoop.io.compress.DefaultCodec");
codecTest(conf, seed, count, "org.apache.hadoop.io.compress.DefaultCodec");
}
@Test
public void testGzipCodec() throws IOException {
codecTest(conf, seed, 0, "org.apache.hadoop.io.compress.GzipCodec");
codecTest(conf, seed, count, "org.apache.hadoop.io.compress.GzipCodec");
}
@Test(timeout=20000)
public void testBZip2Codec() throws IOException {
Configuration conf = new Configuration();
conf.set("io.compression.codec.bzip2.library", "java-builtin");
codecTest(conf, seed, 0, "org.apache.hadoop.io.compress.BZip2Codec");
codecTest(conf, seed, count, "org.apache.hadoop.io.compress.BZip2Codec");
}
@Test(timeout=20000)
public void testBZip2NativeCodec() throws IOException {
Configuration conf = new Configuration();
conf.set("io.compression.codec.bzip2.library", "system-native");
if (NativeCodeLoader.isNativeCodeLoaded()) {
if (Bzip2Factory.isNativeBzip2Loaded(conf)) {
codecTest(conf, seed, 0, "org.apache.hadoop.io.compress.BZip2Codec");
codecTest(conf, seed, count,
"org.apache.hadoop.io.compress.BZip2Codec");
conf.set("io.compression.codec.bzip2.library", "java-builtin");
codecTest(conf, seed, 0, "org.apache.hadoop.io.compress.BZip2Codec");
codecTest(conf, seed, count,
"org.apache.hadoop.io.compress.BZip2Codec");
} else {
LOG.warn("Native hadoop library available but native bzip2 is not");
}
}
}
@Test
public void testSnappyCodec() throws IOException {
if (SnappyCodec.isNativeCodeLoaded()) {
codecTest(conf, seed, 0, "org.apache.hadoop.io.compress.SnappyCodec");
codecTest(conf, seed, count, "org.apache.hadoop.io.compress.SnappyCodec");
}
}
@Test
public void testLz4Codec() throws IOException {
if (NativeCodeLoader.isNativeCodeLoaded()) {
if (Lz4Codec.isNativeCodeLoaded()) {
conf.setBoolean(
CommonConfigurationKeys.IO_COMPRESSION_CODEC_LZ4_USELZ4HC_KEY,
false);
codecTest(conf, seed, 0, "org.apache.hadoop.io.compress.Lz4Codec");
codecTest(conf, seed, count, "org.apache.hadoop.io.compress.Lz4Codec");
conf.setBoolean(
CommonConfigurationKeys.IO_COMPRESSION_CODEC_LZ4_USELZ4HC_KEY,
true);
codecTest(conf, seed, 0, "org.apache.hadoop.io.compress.Lz4Codec");
codecTest(conf, seed, count, "org.apache.hadoop.io.compress.Lz4Codec");
} else {
Assert.fail("Native hadoop library available but lz4 not");
}
}
}
@Test
public void testDeflateCodec() throws IOException {
codecTest(conf, seed, 0, "org.apache.hadoop.io.compress.DeflateCodec");
codecTest(conf, seed, count, "org.apache.hadoop.io.compress.DeflateCodec");
}
@Test
public void testGzipCodecWithParam() throws IOException {
Configuration conf = new Configuration(this.conf);
ZlibFactory.setCompressionLevel(conf, CompressionLevel.BEST_COMPRESSION);
ZlibFactory.setCompressionStrategy(conf, CompressionStrategy.HUFFMAN_ONLY);
codecTest(conf, seed, 0, "org.apache.hadoop.io.compress.GzipCodec");
codecTest(conf, seed, count, "org.apache.hadoop.io.compress.GzipCodec");
}
private static void codecTest(Configuration conf, int seed, int count,
String codecClass)
throws IOException {
// Create the codec
CompressionCodec codec = null;
try {
codec = (CompressionCodec)
ReflectionUtils.newInstance(conf.getClassByName(codecClass), conf);
} catch (ClassNotFoundException cnfe) {
throw new IOException("Illegal codec!");
}
LOG.info("Created a Codec object of type: " + codecClass);
// Generate data
DataOutputBuffer data = new DataOutputBuffer();
RandomDatum.Generator generator = new RandomDatum.Generator(seed);
for(int i=0; i < count; ++i) {
generator.next();
RandomDatum key = generator.getKey();
RandomDatum value = generator.getValue();
key.write(data);
value.write(data);
}
LOG.info("Generated " + count + " records");
// Compress data
DataOutputBuffer compressedDataBuffer = new DataOutputBuffer();
int leasedCompressorsBefore = codec.getCompressorType() == null ? -1
: CodecPool.getLeasedCompressorsCount(codec);
try (CompressionOutputStream deflateFilter =
codec.createOutputStream(compressedDataBuffer);
DataOutputStream deflateOut =
new DataOutputStream(new BufferedOutputStream(deflateFilter))) {
deflateOut.write(data.getData(), 0, data.getLength());
deflateOut.flush();
deflateFilter.finish();
}
if (leasedCompressorsBefore > -1) {
assertEquals("leased compressor not returned to the codec pool",
leasedCompressorsBefore, CodecPool.getLeasedCompressorsCount(codec));
}
LOG.info("Finished compressing data");
// De-compress data
DataInputBuffer deCompressedDataBuffer = new DataInputBuffer();
deCompressedDataBuffer.reset(compressedDataBuffer.getData(), 0,
compressedDataBuffer.getLength());
DataInputBuffer originalData = new DataInputBuffer();
int leasedDecompressorsBefore =
CodecPool.getLeasedDecompressorsCount(codec);
try (CompressionInputStream inflateFilter =
codec.createInputStream(deCompressedDataBuffer);
DataInputStream inflateIn =
new DataInputStream(new BufferedInputStream(inflateFilter))) {
// Check
originalData.reset(data.getData(), 0, data.getLength());
DataInputStream originalIn =
new DataInputStream(new BufferedInputStream(originalData));
for(int i=0; i < count; ++i) {
RandomDatum k1 = new RandomDatum();
RandomDatum v1 = new RandomDatum();
k1.readFields(originalIn);
v1.readFields(originalIn);
RandomDatum k2 = new RandomDatum();
RandomDatum v2 = new RandomDatum();
k2.readFields(inflateIn);
v2.readFields(inflateIn);
assertTrue("original and compressed-then-decompressed-output not equal",
k1.equals(k2) && v1.equals(v2));
// original and compressed-then-decompressed-output have the same
// hashCode
Map<RandomDatum, String> m = new HashMap<RandomDatum, String>();
m.put(k1, k1.toString());
m.put(v1, v1.toString());
String result = m.get(k2);
assertEquals("k1 and k2 hashcode not equal", result, k1.toString());
result = m.get(v2);
assertEquals("v1 and v2 hashcode not equal", result, v1.toString());
}
}
assertEquals("leased decompressor not returned to the codec pool",
leasedDecompressorsBefore,
CodecPool.getLeasedDecompressorsCount(codec));
// De-compress data byte-at-a-time
originalData.reset(data.getData(), 0, data.getLength());
deCompressedDataBuffer.reset(compressedDataBuffer.getData(), 0,
compressedDataBuffer.getLength());
try (CompressionInputStream inflateFilter =
codec.createInputStream(deCompressedDataBuffer);
DataInputStream originalIn =
new DataInputStream(new BufferedInputStream(originalData))) {
// Check
int expected;
do {
expected = originalIn.read();
assertEquals("Inflated stream read by byte does not match",
expected, inflateFilter.read());
} while (expected != -1);
}
LOG.info("SUCCESS! Completed checking " + count + " records");
}
@Test
public void testSplitableCodecs() throws Exception {
testSplitableCodec(BZip2Codec.class);
}
private void testSplitableCodec(
Class<? extends SplittableCompressionCodec> codecClass)
throws IOException {
final long DEFLBYTES = 2 * 1024 * 1024;
final Configuration conf = new Configuration();
final Random rand = new Random();
final long seed = rand.nextLong();
LOG.info("seed: " + seed);
rand.setSeed(seed);
SplittableCompressionCodec codec =
ReflectionUtils.newInstance(codecClass, conf);
final FileSystem fs = FileSystem.getLocal(conf);
final FileStatus infile =
fs.getFileStatus(writeSplitTestFile(fs, rand, codec, DEFLBYTES));
if (infile.getLen() > Integer.MAX_VALUE) {
fail("Unexpected compression: " + DEFLBYTES + " -> " + infile.getLen());
}
final int flen = (int) infile.getLen();
final Text line = new Text();
final Decompressor dcmp = CodecPool.getDecompressor(codec);
try {
for (int pos = 0; pos < infile.getLen(); pos += rand.nextInt(flen / 8)) {
// read from random positions, verifying that there exist two sequential
// lines as written in writeSplitTestFile
final SplitCompressionInputStream in =
codec.createInputStream(fs.open(infile.getPath()), dcmp,
pos, flen, SplittableCompressionCodec.READ_MODE.BYBLOCK);
if (in.getAdjustedStart() >= flen) {
break;
}
LOG.info("SAMPLE " + in.getAdjustedStart() + "," + in.getAdjustedEnd());
final LineReader lreader = new LineReader(in);
lreader.readLine(line); // ignore; likely partial
if (in.getPos() >= flen) {
break;
}
lreader.readLine(line);
final int seq1 = readLeadingInt(line);
lreader.readLine(line);
if (in.getPos() >= flen) {
break;
}
final int seq2 = readLeadingInt(line);
assertEquals("Mismatched lines", seq1 + 1, seq2);
}
} finally {
CodecPool.returnDecompressor(dcmp);
}
// remove on success
fs.delete(infile.getPath().getParent(), true);
}
private static int readLeadingInt(Text txt) throws IOException {
DataInputStream in =
new DataInputStream(new ByteArrayInputStream(txt.getBytes()));
return in.readInt();
}
/** Write infLen bytes (deflated) to file in test dir using codec.
* Records are of the form
* <i><b64 rand><i+i><b64 rand>
*/
private static Path writeSplitTestFile(FileSystem fs, Random rand,
CompressionCodec codec, long infLen) throws IOException {
final int REC_SIZE = 1024;
final Path wd = new Path(GenericTestUtils.getTempPath(
codec.getClass().getSimpleName())).makeQualified(
fs.getUri(), fs.getWorkingDirectory());
final Path file = new Path(wd, "test" + codec.getDefaultExtension());
final byte[] b = new byte[REC_SIZE];
final Base64 b64 = new Base64(0, null);
DataOutputStream fout = null;
Compressor cmp = CodecPool.getCompressor(codec);
try {
fout = new DataOutputStream(codec.createOutputStream(
fs.create(file, true), cmp));
final DataOutputBuffer dob = new DataOutputBuffer(REC_SIZE * 4 / 3 + 4);
int seq = 0;
while (infLen > 0) {
rand.nextBytes(b);
final byte[] b64enc = b64.encode(b); // ensures rand printable, no LF
dob.reset();
dob.writeInt(seq);
System.arraycopy(dob.getData(), 0, b64enc, 0, dob.getLength());
fout.write(b64enc);
fout.write('\n');
++seq;
infLen -= b64enc.length;
}
LOG.info("Wrote " + seq + " records to " + file);
} finally {
IOUtils.cleanupWithLogger(LOG, fout);
CodecPool.returnCompressor(cmp);
}
return file;
}
@Test
public void testCodecPoolGzipReuse() throws Exception {
Configuration conf = new Configuration();
assumeTrue(ZlibFactory.isNativeZlibLoaded(conf));
GzipCodec gzc = ReflectionUtils.newInstance(GzipCodec.class, conf);
DefaultCodec dfc = ReflectionUtils.newInstance(DefaultCodec.class, conf);
Compressor c1 = CodecPool.getCompressor(gzc);
Compressor c2 = CodecPool.getCompressor(dfc);
CodecPool.returnCompressor(c1);
CodecPool.returnCompressor(c2);
assertTrue("Got mismatched ZlibCompressor", c2 != CodecPool.getCompressor(gzc));
}
private static void gzipReinitTest(Configuration conf, CompressionCodec codec)
throws IOException {
// Add codec to cache
ZlibFactory.setCompressionLevel(conf, CompressionLevel.BEST_COMPRESSION);
ZlibFactory.setCompressionStrategy(conf,
CompressionStrategy.DEFAULT_STRATEGY);
Compressor c1 = CodecPool.getCompressor(codec);
CodecPool.returnCompressor(c1);
// reset compressor's compression level to perform no compression
ZlibFactory.setCompressionLevel(conf, CompressionLevel.NO_COMPRESSION);
Compressor c2 = CodecPool.getCompressor(codec, conf);
// ensure same compressor placed earlier
assertTrue("Got mismatched ZlibCompressor", c1 == c2);
ByteArrayOutputStream bos = new ByteArrayOutputStream();
CompressionOutputStream cos = null;
// write trivially compressable data
byte[] b = new byte[1 << 15];
Arrays.fill(b, (byte) 43);
try {
cos = codec.createOutputStream(bos, c2);
cos.write(b);
} finally {
if (cos != null) {
cos.close();
}
CodecPool.returnCompressor(c2);
}
byte[] outbytes = bos.toByteArray();
// verify data were not compressed
assertTrue("Compressed bytes contrary to configuration",
outbytes.length >= b.length);
}
private static void codecTestWithNOCompression (Configuration conf,
String codecClass) throws IOException {
// Create a compressor with NO_COMPRESSION and make sure that
// output is not compressed by comparing the size with the
// original input
CompressionCodec codec = null;
ZlibFactory.setCompressionLevel(conf, CompressionLevel.NO_COMPRESSION);
try {
codec = (CompressionCodec)
ReflectionUtils.newInstance(conf.getClassByName(codecClass), conf);
} catch (ClassNotFoundException cnfe) {
throw new IOException("Illegal codec!");
}
Compressor c = codec.createCompressor();
// ensure same compressor placed earlier
ByteArrayOutputStream bos = new ByteArrayOutputStream();
CompressionOutputStream cos = null;
// write trivially compressable data
byte[] b = new byte[1 << 15];
Arrays.fill(b, (byte) 43);
try {
cos = codec.createOutputStream(bos, c);
cos.write(b);
} finally {
if (cos != null) {
cos.close();
}
}
byte[] outbytes = bos.toByteArray();
// verify data were not compressed
assertTrue("Compressed bytes contrary to configuration(NO_COMPRESSION)",
outbytes.length >= b.length);
}
@Test
public void testCodecInitWithCompressionLevel() throws Exception {
Configuration conf = new Configuration();
if (ZlibFactory.isNativeZlibLoaded(conf)) {
LOG.info("testCodecInitWithCompressionLevel with native");
codecTestWithNOCompression(conf,
"org.apache.hadoop.io.compress.GzipCodec");
codecTestWithNOCompression(conf,
"org.apache.hadoop.io.compress.DefaultCodec");
} else {
LOG.warn("testCodecInitWithCompressionLevel for native skipped"
+ ": native libs not loaded");
}
conf = new Configuration();
// don't use native libs
ZlibFactory.setNativeZlibLoaded(false);
codecTestWithNOCompression( conf,
"org.apache.hadoop.io.compress.DefaultCodec");
}
@Test
public void testCodecPoolCompressorReinit() throws Exception {
Configuration conf = new Configuration();
if (ZlibFactory.isNativeZlibLoaded(conf)) {
GzipCodec gzc = ReflectionUtils.newInstance(GzipCodec.class, conf);
gzipReinitTest(conf, gzc);
} else {
LOG.warn("testCodecPoolCompressorReinit skipped: native libs not loaded");
}
// don't use native libs
ZlibFactory.setNativeZlibLoaded(false);
DefaultCodec dfc = ReflectionUtils.newInstance(DefaultCodec.class, conf);
gzipReinitTest(conf, dfc);
}
@Test
public void testSequenceFileDefaultCodec() throws IOException, ClassNotFoundException,
InstantiationException, IllegalAccessException {
sequenceFileCodecTest(conf, 100, "org.apache.hadoop.io.compress.DefaultCodec", 100);
sequenceFileCodecTest(conf, 200000, "org.apache.hadoop.io.compress.DefaultCodec", 1000000);
}
@Test(timeout=20000)
public void testSequenceFileBZip2Codec() throws IOException, ClassNotFoundException,
InstantiationException, IllegalAccessException {
Configuration conf = new Configuration();
conf.set("io.compression.codec.bzip2.library", "java-builtin");
sequenceFileCodecTest(conf, 0, "org.apache.hadoop.io.compress.BZip2Codec", 100);
sequenceFileCodecTest(conf, 100, "org.apache.hadoop.io.compress.BZip2Codec", 100);
sequenceFileCodecTest(conf, 200000, "org.apache.hadoop.io.compress.BZip2Codec", 1000000);
}
@Test(timeout=20000)
public void testSequenceFileZStandardCodec() throws Exception {
assumeTrue(ZStandardCodec.isNativeCodeLoaded());
Configuration conf = new Configuration();
sequenceFileCodecTest(conf, 0,
"org.apache.hadoop.io.compress.ZStandardCodec", 100);
sequenceFileCodecTest(conf, 100,
"org.apache.hadoop.io.compress.ZStandardCodec", 100);
sequenceFileCodecTest(conf, 200000,
"org.apache.hadoop.io.compress.ZStandardCodec", 1000000);
}
@Test(timeout=20000)
public void testSequenceFileBZip2NativeCodec() throws IOException,
ClassNotFoundException, InstantiationException,
IllegalAccessException {
Configuration conf = new Configuration();
conf.set("io.compression.codec.bzip2.library", "system-native");
if (NativeCodeLoader.isNativeCodeLoaded()) {
if (Bzip2Factory.isNativeBzip2Loaded(conf)) {
sequenceFileCodecTest(conf, 0,
"org.apache.hadoop.io.compress.BZip2Codec", 100);
sequenceFileCodecTest(conf, 100,
"org.apache.hadoop.io.compress.BZip2Codec", 100);
sequenceFileCodecTest(conf, 200000,
"org.apache.hadoop.io.compress.BZip2Codec",
1000000);
} else {
LOG.warn("Native hadoop library available but native bzip2 is not");
}
}
}
@Test
public void testSequenceFileDeflateCodec() throws IOException, ClassNotFoundException,
InstantiationException, IllegalAccessException {
sequenceFileCodecTest(conf, 100, "org.apache.hadoop.io.compress.DeflateCodec", 100);
sequenceFileCodecTest(conf, 200000, "org.apache.hadoop.io.compress.DeflateCodec", 1000000);
}
private static void sequenceFileCodecTest(Configuration conf, int lines,
String codecClass, int blockSize)
throws IOException, ClassNotFoundException, InstantiationException, IllegalAccessException {
Path filePath = new Path("SequenceFileCodecTest." + codecClass);
// Configuration
conf.setInt("io.seqfile.compress.blocksize", blockSize);
// Create the SequenceFile
FileSystem fs = FileSystem.get(conf);
LOG.info("Creating SequenceFile with codec \"" + codecClass + "\"");
SequenceFile.Writer writer = SequenceFile.createWriter(fs, conf, filePath,
Text.class, Text.class, CompressionType.BLOCK,
(CompressionCodec)Class.forName(codecClass).newInstance());
// Write some data
LOG.info("Writing to SequenceFile...");
for (int i=0; i<lines; i++) {
Text key = new Text("key" + i);
Text value = new Text("value" + i);
writer.append(key, value);
}
writer.close();
// Read the data back and check
LOG.info("Reading from the SequenceFile...");
SequenceFile.Reader reader = new SequenceFile.Reader(fs, filePath, conf);
Writable key = (Writable)reader.getKeyClass().newInstance();
Writable value = (Writable)reader.getValueClass().newInstance();
int lc = 0;
try {
while (reader.next(key, value)) {
assertEquals("key" + lc, key.toString());
assertEquals("value" + lc, value.toString());
lc ++;
}
} finally {
reader.close();
}
assertEquals(lines, lc);
// Delete temporary files
fs.delete(filePath, false);
LOG.info("SUCCESS! Completed SequenceFileCodecTest with codec \"" + codecClass + "\"");
}
/**
* Regression test for HADOOP-8423: seeking in a block-compressed
* stream would not properly reset the block decompressor state.
*/
@Test
public void testSnappyMapFile() throws Exception {
Assume.assumeTrue(SnappyCodec.isNativeCodeLoaded());
codecTestMapFile(SnappyCodec.class, CompressionType.BLOCK, 100);
}
private void codecTestMapFile(Class<? extends CompressionCodec> clazz,
CompressionType type, int records) throws Exception {
FileSystem fs = FileSystem.get(conf);
LOG.info("Creating MapFiles with " + records +
" records using codec " + clazz.getSimpleName());
Path path = new Path(GenericTestUtils.getTempPath(
clazz.getSimpleName() + "-" + type + "-" + records));
LOG.info("Writing " + path);
createMapFile(conf, fs, path, clazz.newInstance(), type, records);
MapFile.Reader reader = new MapFile.Reader(path, conf);
Text key1 = new Text("002");
assertNotNull(reader.get(key1, new Text()));
Text key2 = new Text("004");
assertNotNull(reader.get(key2, new Text()));
}
private static void createMapFile(Configuration conf, FileSystem fs, Path path,
CompressionCodec codec, CompressionType type, int records) throws IOException {
MapFile.Writer writer =
new MapFile.Writer(conf, path,
MapFile.Writer.keyClass(Text.class),
MapFile.Writer.valueClass(Text.class),
MapFile.Writer.compression(type, codec));
Text key = new Text();
for (int j = 0; j < records; j++) {
key.set(String.format("%03d", j));
writer.append(key, key);
}
writer.close();
}
public static void main(String[] args) throws IOException {
int count = 10000;
String codecClass = "org.apache.hadoop.io.compress.DefaultCodec";
String usage = "TestCodec [-count N] [-codec <codec class>]";
if (args.length == 0) {
System.err.println(usage);
System.exit(-1);
}
for (int i=0; i < args.length; ++i) { // parse command line
if (args[i] == null) {
continue;
} else if (args[i].equals("-count")) {
count = Integer.parseInt(args[++i]);
} else if (args[i].equals("-codec")) {
codecClass = args[++i];
}
}
Configuration conf = new Configuration();
int seed = 0;
// Note that exceptions will propagate out.
codecTest(conf, seed, count, codecClass);
}
@Test
public void testGzipCompatibility() throws IOException {
Random r = new Random();
long seed = r.nextLong();
r.setSeed(seed);
LOG.info("seed: " + seed);
DataOutputBuffer dflbuf = new DataOutputBuffer();
GZIPOutputStream gzout = new GZIPOutputStream(dflbuf);
byte[] b = new byte[r.nextInt(128 * 1024 + 1)];
r.nextBytes(b);
gzout.write(b);
gzout.close();
DataInputBuffer gzbuf = new DataInputBuffer();
gzbuf.reset(dflbuf.getData(), dflbuf.getLength());
Configuration conf = new Configuration();
// don't use native libs
ZlibFactory.setNativeZlibLoaded(false);
CompressionCodec codec = ReflectionUtils.newInstance(GzipCodec.class, conf);
Decompressor decom = codec.createDecompressor();
assertNotNull(decom);
assertEquals(BuiltInGzipDecompressor.class, decom.getClass());
InputStream gzin = codec.createInputStream(gzbuf, decom);
dflbuf.reset();
IOUtils.copyBytes(gzin, dflbuf, 4096);
final byte[] dflchk = Arrays.copyOf(dflbuf.getData(), dflbuf.getLength());
assertArrayEquals(b, dflchk);
}
void GzipConcatTest(Configuration conf,
Class<? extends Decompressor> decomClass) throws IOException {
Random r = new Random();
long seed = r.nextLong();
r.setSeed(seed);
LOG.info(decomClass + " seed: " + seed);
final int CONCAT = r.nextInt(4) + 3;
final int BUFLEN = 128 * 1024;
DataOutputBuffer dflbuf = new DataOutputBuffer();
DataOutputBuffer chkbuf = new DataOutputBuffer();
byte[] b = new byte[BUFLEN];
for (int i = 0; i < CONCAT; ++i) {
GZIPOutputStream gzout = new GZIPOutputStream(dflbuf);
r.nextBytes(b);
int len = r.nextInt(BUFLEN);
int off = r.nextInt(BUFLEN - len);
chkbuf.write(b, off, len);
gzout.write(b, off, len);
gzout.close();
}
final byte[] chk = Arrays.copyOf(chkbuf.getData(), chkbuf.getLength());
CompressionCodec codec = ReflectionUtils.newInstance(GzipCodec.class, conf);
Decompressor decom = codec.createDecompressor();
assertNotNull(decom);
assertEquals(decomClass, decom.getClass());
DataInputBuffer gzbuf = new DataInputBuffer();
gzbuf.reset(dflbuf.getData(), dflbuf.getLength());
InputStream gzin = codec.createInputStream(gzbuf, decom);
dflbuf.reset();
IOUtils.copyBytes(gzin, dflbuf, 4096);
final byte[] dflchk = Arrays.copyOf(dflbuf.getData(), dflbuf.getLength());
assertArrayEquals(chk, dflchk);
}
@Test
public void testBuiltInGzipConcat() throws IOException {
Configuration conf = new Configuration();
// don't use native libs
ZlibFactory.setNativeZlibLoaded(false);
GzipConcatTest(conf, BuiltInGzipDecompressor.class);
}
@Test
public void testNativeGzipConcat() throws IOException {
Configuration conf = new Configuration();
assumeTrue(ZlibFactory.isNativeZlibLoaded(conf));
GzipConcatTest(conf, GzipCodec.GzipZlibDecompressor.class);
}
@Test
public void testGzipCodecRead() throws IOException {
// Create a gzipped file and try to read it back, using a decompressor
// from the CodecPool.
// Don't use native libs for this test.
Configuration conf = new Configuration();
ZlibFactory.setNativeZlibLoaded(false);
// Ensure that the CodecPool has a BuiltInZlibInflater in it.
Decompressor zlibDecompressor = ZlibFactory.getZlibDecompressor(conf);
assertNotNull("zlibDecompressor is null!", zlibDecompressor);
assertTrue("ZlibFactory returned unexpected inflator",
zlibDecompressor instanceof BuiltInZlibInflater);
CodecPool.returnDecompressor(zlibDecompressor);
// Now create a GZip text file.
Path f = new Path(GenericTestUtils.getTempPath("testGzipCodecRead.txt.gz"));
BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(
new GZIPOutputStream(new FileOutputStream(f.toString()))));
final String msg = "This is the message in the file!";
bw.write(msg);
bw.close();
// Now read it back, using the CodecPool to establish the
// decompressor to use.
CompressionCodecFactory ccf = new CompressionCodecFactory(conf);
CompressionCodec codec = ccf.getCodec(f);
Decompressor decompressor = CodecPool.getDecompressor(codec);
FileSystem fs = FileSystem.getLocal(conf);
InputStream is = fs.open(f);
is = codec.createInputStream(is, decompressor);
BufferedReader br = new BufferedReader(new InputStreamReader(is));
String line = br.readLine();
assertEquals("Didn't get the same message back!", msg, line);
br.close();
}
private void verifyGzipFile(String filename, String msg) throws IOException {
BufferedReader r = new BufferedReader(new InputStreamReader(
new GZIPInputStream(new FileInputStream(filename))));
try {
String line = r.readLine();
assertEquals("Got invalid line back from " + filename, msg, line);
} finally {
r.close();
new File(filename).delete();
}
}
@Test
public void testGzipLongOverflow() throws IOException {
LOG.info("testGzipLongOverflow");
// Don't use native libs for this test.
Configuration conf = new Configuration();
ZlibFactory.setNativeZlibLoaded(false);
assertFalse("ZlibFactory is using native libs against request",
ZlibFactory.isNativeZlibLoaded(conf));
// Ensure that the CodecPool has a BuiltInZlibInflater in it.
Decompressor zlibDecompressor = ZlibFactory.getZlibDecompressor(conf);
assertNotNull("zlibDecompressor is null!", zlibDecompressor);
assertTrue("ZlibFactory returned unexpected inflator",
zlibDecompressor instanceof BuiltInZlibInflater);
CodecPool.returnDecompressor(zlibDecompressor);
// Now create a GZip text file.
Path f = new Path(GenericTestUtils.getTempPath("testGzipLongOverflow.bin.gz"));
BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(
new GZIPOutputStream(new FileOutputStream(f.toString()))));
final int NBUF = 1024 * 4 + 1;
final char[] buf = new char[1024 * 1024];
for (int i = 0; i < buf.length; i++) buf[i] = '\0';
for (int i = 0; i < NBUF; i++) {
bw.write(buf);
}
bw.close();
// Now read it back, using the CodecPool to establish the
// decompressor to use.
CompressionCodecFactory ccf = new CompressionCodecFactory(conf);
CompressionCodec codec = ccf.getCodec(f);
Decompressor decompressor = CodecPool.getDecompressor(codec);
FileSystem fs = FileSystem.getLocal(conf);
InputStream is = fs.open(f);
is = codec.createInputStream(is, decompressor);
BufferedReader br = new BufferedReader(new InputStreamReader(is));
for (int j = 0; j < NBUF; j++) {
int n = br.read(buf);
assertEquals("got wrong read length!", n, buf.length);
for (int i = 0; i < buf.length; i++)
assertEquals("got wrong byte!", buf[i], '\0');
}
br.close();
}
private void testGzipCodecWrite(boolean useNative) throws IOException {
// Create a gzipped file using a compressor from the CodecPool,
// and try to read it back via the regular GZIPInputStream.
// Use native libs per the parameter
Configuration conf = new Configuration();
if (useNative) {
assumeTrue(ZlibFactory.isNativeZlibLoaded(conf));
} else {
assertFalse("ZlibFactory is using native libs against request",
ZlibFactory.isNativeZlibLoaded(conf));
}
// Ensure that the CodecPool has a BuiltInZlibDeflater in it.
Compressor zlibCompressor = ZlibFactory.getZlibCompressor(conf);
assertNotNull("zlibCompressor is null!", zlibCompressor);
assertTrue("ZlibFactory returned unexpected deflator",
useNative ? zlibCompressor instanceof ZlibCompressor
: zlibCompressor instanceof BuiltInZlibDeflater);
CodecPool.returnCompressor(zlibCompressor);
// Create a GZIP text file via the Compressor interface.
CompressionCodecFactory ccf = new CompressionCodecFactory(conf);
CompressionCodec codec = ccf.getCodec(new Path("foo.gz"));
assertTrue("Codec for .gz file is not GzipCodec",
codec instanceof GzipCodec);
final String msg = "This is the message we are going to compress.";
final String fileName = new Path(GenericTestUtils.getTempPath(
"testGzipCodecWrite.txt.gz")).toString();
BufferedWriter w = null;
Compressor gzipCompressor = CodecPool.getCompressor(codec);
if (null != gzipCompressor) {
// If it gives us back a Compressor, we should be able to use this
// to write files we can then read back with Java's gzip tools.
OutputStream os = new CompressorStream(new FileOutputStream(fileName),
gzipCompressor);
w = new BufferedWriter(new OutputStreamWriter(os));
w.write(msg);
w.close();
CodecPool.returnCompressor(gzipCompressor);
verifyGzipFile(fileName, msg);
}
// Create a gzip text file via codec.getOutputStream().
w = new BufferedWriter(new OutputStreamWriter(
codec.createOutputStream(new FileOutputStream(fileName))));
w.write(msg);
w.close();
verifyGzipFile(fileName, msg);
}
@Test
public void testGzipCodecWriteJava() throws IOException {
// don't use native libs
ZlibFactory.setNativeZlibLoaded(false);
testGzipCodecWrite(false);
}
@Test
public void testGzipNativeCodecWrite() throws IOException {
testGzipCodecWrite(true);
}
@Test
public void testCodecPoolAndGzipDecompressor() {
// BuiltInZlibInflater should not be used as the GzipCodec decompressor.
// Assert that this is the case.
// Don't use native libs for this test.
Configuration conf = new Configuration();
ZlibFactory.setNativeZlibLoaded(false);
assertFalse("ZlibFactory is using native libs against request",
ZlibFactory.isNativeZlibLoaded(conf));
// This should give us a BuiltInZlibInflater.
Decompressor zlibDecompressor = ZlibFactory.getZlibDecompressor(conf);
assertNotNull("zlibDecompressor is null!", zlibDecompressor);
assertTrue("ZlibFactory returned unexpected inflator",
zlibDecompressor instanceof BuiltInZlibInflater);
// its createOutputStream() just wraps the existing stream in a
// java.util.zip.GZIPOutputStream.
CompressionCodecFactory ccf = new CompressionCodecFactory(conf);
CompressionCodec codec = ccf.getCodec(new Path("foo.gz"));
assertTrue("Codec for .gz file is not GzipCodec",
codec instanceof GzipCodec);
// make sure we don't get a null decompressor
Decompressor codecDecompressor = codec.createDecompressor();
if (null == codecDecompressor) {
fail("Got null codecDecompressor");
}
// Asking the CodecPool for a decompressor for GzipCodec
// should not return null
Decompressor poolDecompressor = CodecPool.getDecompressor(codec);
if (null == poolDecompressor) {
fail("Got null poolDecompressor");
}
// return a couple decompressors
CodecPool.returnDecompressor(zlibDecompressor);
CodecPool.returnDecompressor(poolDecompressor);
Decompressor poolDecompressor2 = CodecPool.getDecompressor(codec);
if (poolDecompressor.getClass() == BuiltInGzipDecompressor.class) {
if (poolDecompressor == poolDecompressor2) {
fail("Reused java gzip decompressor in pool");
}
} else {
if (poolDecompressor != poolDecompressor2) {
fail("Did not reuse native gzip decompressor in pool");
}
}
}
}
| {'content_hash': 'a0e1bad90f5d3fa0f48fc1a68e7f390d', 'timestamp': '', 'source': 'github', 'line_count': 963, 'max_line_length': 96, 'avg_line_length': 38.665628245067495, 'alnum_prop': 0.6870149053310057, 'repo_name': '979969786/hadoop', 'id': '133ff9a7ffff70a2872df6a4b481cfe391ae6ffd', 'size': '38041', 'binary': False, 'copies': '7', 'ref': 'refs/heads/trunk', 'path': 'hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/io/compress/TestCodec.java', 'mode': '33188', 'license': 'apache-2.0', 'language': [{'name': 'AspectJ', 'bytes': '29602'}, {'name': 'Batchfile', 'bytes': '67517'}, {'name': 'C', 'bytes': '1431136'}, {'name': 'C++', 'bytes': '1741547'}, {'name': 'CMake', 'bytes': '50732'}, {'name': 'CSS', 'bytes': '43072'}, {'name': 'HTML', 'bytes': '151850'}, {'name': 'Java', 'bytes': '52624472'}, {'name': 'JavaScript', 'bytes': '28573'}, {'name': 'Protocol Buffer', 'bytes': '240736'}, {'name': 'Python', 'bytes': '38263'}, {'name': 'Shell', 'bytes': '384206'}, {'name': 'TeX', 'bytes': '19322'}, {'name': 'XSLT', 'bytes': '15460'}]} |
FROM balenalib/nitrogen6x-debian:bullseye-run
# remove several traces of debian python
RUN apt-get purge -y python.*
# http://bugs.python.org/issue19846
# > At the moment, setting "LANG=C" on a Linux system *fundamentally breaks Python 3*, and that's not OK.
ENV LANG C.UTF-8
# install python dependencies
RUN apt-get update && apt-get install -y --no-install-recommends \
ca-certificates \
netbase \
&& rm -rf /var/lib/apt/lists/*
# key 63C7CC90: public key "Simon McVittie <[email protected]>" imported
# key 3372DCFA: public key "Donald Stufft (dstufft) <[email protected]>" imported
RUN gpg --batch --keyserver keyring.debian.org --recv-keys 4DE8FF2A63C7CC90 \
&& gpg --batch --keyserver keyserver.ubuntu.com --recv-key 6E3CBCE93372DCFA \
&& gpg --batch --keyserver keyserver.ubuntu.com --recv-keys 0x52a43a1e4b77b059
ENV PYTHON_VERSION 3.6.15
# if this is called "PIP_VERSION", pip explodes with "ValueError: invalid truth value '<VERSION>'"
ENV PYTHON_PIP_VERSION 21.3.1
ENV SETUPTOOLS_VERSION 60.5.4
RUN set -x \
&& buildDeps=' \
curl \
' \
&& apt-get update && apt-get install -y $buildDeps --no-install-recommends && rm -rf /var/lib/apt/lists/* \
&& curl -SLO "http://resin-packages.s3.amazonaws.com/python/v$PYTHON_VERSION/Python-$PYTHON_VERSION.linux-armv7hf-libffi3.3.tar.gz" \
&& echo "7ff252a91617ecbb724b79575986b5e5eb9398c6e500011d9359d7e729b36831 Python-$PYTHON_VERSION.linux-armv7hf-libffi3.3.tar.gz" | sha256sum -c - \
&& tar -xzf "Python-$PYTHON_VERSION.linux-armv7hf-libffi3.3.tar.gz" --strip-components=1 \
&& rm -rf "Python-$PYTHON_VERSION.linux-armv7hf-libffi3.3.tar.gz" \
&& ldconfig \
&& if [ ! -e /usr/local/bin/pip3 ]; then : \
&& curl -SLO "https://raw.githubusercontent.com/pypa/get-pip/430ba37776ae2ad89f794c7a43b90dc23bac334c/get-pip.py" \
&& echo "19dae841a150c86e2a09d475b5eb0602861f2a5b7761ec268049a662dbd2bd0c get-pip.py" | sha256sum -c - \
&& python3 get-pip.py \
&& rm get-pip.py \
; fi \
&& pip3 install --no-cache-dir --upgrade --force-reinstall pip=="$PYTHON_PIP_VERSION" setuptools=="$SETUPTOOLS_VERSION" \
&& find /usr/local \
\( -type d -a -name test -o -name tests \) \
-o \( -type f -a -name '*.pyc' -o -name '*.pyo' \) \
-exec rm -rf '{}' + \
&& cd / \
&& rm -rf /usr/src/python ~/.cache
# make some useful symlinks that are expected to exist
RUN cd /usr/local/bin \
&& ln -sf pip3 pip \
&& { [ -e easy_install ] || ln -s easy_install-* easy_install; } \
&& ln -sf idle3 idle \
&& ln -sf pydoc3 pydoc \
&& ln -sf python3 python \
&& ln -sf python3-config python-config
# set PYTHONPATH to point to dist-packages
ENV PYTHONPATH /usr/lib/python3/dist-packages:$PYTHONPATH
CMD ["echo","'No CMD command was set in Dockerfile! Details about CMD command could be found in Dockerfile Guide section in our Docs. Here's the link: https://balena.io/docs"]
RUN curl -SLO "https://raw.githubusercontent.com/balena-io-library/base-images/8accad6af708fca7271c5c65f18a86782e19f877/scripts/assets/tests/[email protected]" \
&& echo "Running test-stack@python" \
&& chmod +x [email protected] \
&& bash [email protected] \
&& rm -rf [email protected]
RUN [ ! -d /.balena/messages ] && mkdir -p /.balena/messages; echo 'Here are a few details about this Docker image (For more information please visit https://www.balena.io/docs/reference/base-images/base-images/): \nArchitecture: ARM v7 \nOS: Debian Bullseye \nVariant: run variant \nDefault variable(s): UDEV=off \nThe following software stack is preinstalled: \nPython v3.6.15, Pip v21.3.1, Setuptools v60.5.4 \nExtra features: \n- Easy way to install packages with `install_packages <package-name>` command \n- Run anywhere with cross-build feature (for ARM only) \n- Keep the container idling with `balena-idle` command \n- Show base image details with `balena-info` command' > /.balena/messages/image-info
RUN echo '#!/bin/sh.real\nbalena-info\nrm -f /bin/sh\ncp /bin/sh.real /bin/sh\n/bin/sh "$@"' > /bin/sh-shim \
&& chmod +x /bin/sh-shim \
&& cp /bin/sh /bin/sh.real \
&& mv /bin/sh-shim /bin/sh | {'content_hash': '783155a751ea738720268129059ef17d', 'timestamp': '', 'source': 'github', 'line_count': 78, 'max_line_length': 711, 'avg_line_length': 52.23076923076923, 'alnum_prop': 0.7079037800687286, 'repo_name': 'resin-io-library/base-images', 'id': 'fdd22a44aa39ebca16b349141420c3ed1538b642', 'size': '4095', 'binary': False, 'copies': '1', 'ref': 'refs/heads/master', 'path': 'balena-base-images/python/nitrogen6x/debian/bullseye/3.6.15/run/Dockerfile', 'mode': '33188', 'license': 'apache-2.0', 'language': [{'name': 'Dockerfile', 'bytes': '71234697'}, {'name': 'JavaScript', 'bytes': '13096'}, {'name': 'Shell', 'bytes': '12051936'}, {'name': 'Smarty', 'bytes': '59789'}]} |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Rebase - FAKE - F# Make</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">
<meta name="author" content="Steffen Forkmann, Mauricio Scheffer, Colin Bull">
<script src="https://code.jquery.com/jquery-1.8.0.js"></script>
<script src="https://code.jquery.com/ui/1.8.23/jquery-ui.js"></script>
<script src="https://netdna.bootstrapcdn.com/twitter-bootstrap/2.2.1/js/bootstrap.min.js"></script>
<script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>
<link href="https://netdna.bootstrapcdn.com/twitter-bootstrap/2.2.1/css/bootstrap-combined.min.css" rel="stylesheet">
<link type="text/css" rel="stylesheet" href="http://fsharp.github.io/FAKE/content/style.css" />
<script type="text/javascript" src="http://fsharp.github.io/FAKE/content/tips.js"></script>
<!-- HTML5 shim, for IE6-8 support of HTML5 elements -->
<!--[if lt IE 9]>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
</head>
<body>
<div class="container">
<div class="masthead">
<ul class="nav nav-pills pull-right">
<li><a href="http://fsharp.org">fsharp.org</a></li>
<li><a href="http://github.com/fsharp/fake">github page</a></li>
</ul>
<h3 class="muted"><a href="http://fsharp.github.io/FAKE/index.html">FAKE - F# Make</a></h3>
</div>
<hr />
<div class="row">
<div class="span9" id="main">
<h1>Rebase</h1>
<div class="xmldoc">
<p>Contains helper functions which allow to deal with git rebase.</p>
</div>
<!-- Render nested types and modules, if there are any -->
<h3>Functions and values</h3>
<table class="table table-bordered member-list">
<thead>
<tr><td>Function or value</td><td>Description</td></tr>
</thead>
<tbody>
<tr>
<td class="member-name">
<code onmouseout="hideTip(event, '622', 622)" onmouseover="showTip(event, '622', 622)">
abort repositoryDir
</code>
<div class="tip" id="622">
<strong>Signature:</strong> repositoryDir:string -> unit<br />
</div>
</td>
<td class="xmldoc">
<a href="https://github.com/fsharp/FAKE/blob/master/src/app/FakeLib/Git/Rebase.fs#L15-15" class="github-link">
<img src="../content/img/github.png" class="normal" />
<img src="../content/img/github-blue.png" class="hover" />
</a>
<p>Restore the original branch and abort the rebase operation.</p>
</td>
</tr>
<tr>
<td class="member-name">
<code onmouseout="hideTip(event, '624', 624)" onmouseover="showTip(event, '624', 624)">
continueRebase repositoryDir
</code>
<div class="tip" id="624">
<strong>Signature:</strong> repositoryDir:string -> unit<br />
</div>
</td>
<td class="xmldoc">
<a href="https://github.com/fsharp/FAKE/blob/master/src/app/FakeLib/Git/Rebase.fs#L18-18" class="github-link">
<img src="../content/img/github.png" class="normal" />
<img src="../content/img/github-blue.png" class="hover" />
</a>
<p>Restart the rebasing process after having resolved a merge conflict.</p>
</td>
</tr>
<tr>
<td class="member-name">
<code onmouseout="hideTip(event, '625', 625)" onmouseover="showTip(event, '625', 625)">
rebaseOrFallbackOnMerge (...)
</code>
<div class="tip" id="625">
<strong>Signature:</strong> repositoryDir:string -> onTopOfBranch:string -> bool<br />
</div>
</td>
<td class="xmldoc">
<a href="https://github.com/fsharp/FAKE/blob/master/src/app/FakeLib/Git/Rebase.fs#L33-33" class="github-link">
<img src="../content/img/github.png" class="normal" />
<img src="../content/img/github-blue.png" class="hover" />
</a>
<p>Tries to rebase on top of the given branch.
If the rebasing process fails a normal merge will be started.
Returns if the process used merge instead of rebase.</p>
</td>
</tr>
<tr>
<td class="member-name">
<code onmouseout="hideTip(event, '626', 626)" onmouseover="showTip(event, '626', 626)">
skip repositoryDir
</code>
<div class="tip" id="626">
<strong>Signature:</strong> repositoryDir:string -> unit<br />
</div>
</td>
<td class="xmldoc">
<a href="https://github.com/fsharp/FAKE/blob/master/src/app/FakeLib/Git/Rebase.fs#L21-21" class="github-link">
<img src="../content/img/github.png" class="normal" />
<img src="../content/img/github-blue.png" class="hover" />
</a>
<p>Restart the rebasing process by skipping the current patch.</p>
</td>
</tr>
<tr>
<td class="member-name">
<code onmouseout="hideTip(event, '627', 627)" onmouseover="showTip(event, '627', 627)">
start repositoryDir onTopOfBranch
</code>
<div class="tip" id="627">
<strong>Signature:</strong> repositoryDir:string -> onTopOfBranch:string -> unit<br />
</div>
</td>
<td class="xmldoc">
<a href="https://github.com/fsharp/FAKE/blob/master/src/app/FakeLib/Git/Rebase.fs#L7-7" class="github-link">
<img src="../content/img/github.png" class="normal" />
<img src="../content/img/github-blue.png" class="hover" />
</a>
<p>Performs a rebase on top of the given branch with the current branch</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="span3">
<a href="http://fsharp.github.io/FAKE/index.html">
<img src="http://fsharp.github.io/FAKE/pics/logo.png" style="width:140px;height:140px;margin:10px 0px 0px 35px;border-style:none;" />
</a>
<ul class="nav nav-list" id="menu">
<li class="nav-header">FAKE - F# Make</li>
<li class="divider"></li>
<li><a href="http://fsharp.github.io/FAKE/index.html">Home page</a></li>
<li class="divider"></li>
<li><a href="https://www.nuget.org/packages/FAKE">Get FAKE - F# Make via NuGet</a></li>
<li><a href="http://github.com/fsharp/fake">Source Code on GitHub</a></li>
<li><a href="http://github.com/fsharp/fake/blob/master/License.txt">License (MS-PL)</a></li>
<li><a href="http://fsharp.github.io/FAKE/RELEASE_NOTES.html">Release Notes</a></li>
<li><a href="http://fsharp.github.io/FAKE//contributing.html">Contributing to FAKE - F# Make</a></li>
<li><a href="http://fsharp.github.io/FAKE/users.html">Who is using FAKE?</a></li>
<li><a href="http://stackoverflow.com/questions/tagged/f%23-fake">Ask a question</a></li>
<li class="nav-header">Tutorials</li>
<li><a href="http://fsharp.github.io/FAKE/gettingstarted.html">Getting started</a></li>
<li class="divider"></li>
<li><a href="http://fsharp.github.io/FAKE/nuget.html">NuGet package restore</a></li>
<li><a href="http://fsharp.github.io/FAKE/fxcop.html">Using FxCop in a build</a></li>
<li><a href="http://fsharp.github.io/FAKE/assemblyinfo.html">Generating AssemblyInfo</a></li>
<li><a href="http://fsharp.github.io/FAKE/create-nuget-package.html">Create NuGet packages</a></li>
<li><a href="http://fsharp.github.io/FAKE/specifictargets.html">Running specific targets</a></li>
<li><a href="http://fsharp.github.io/FAKE/commandline.html">Running FAKE from command line</a></li>
<li><a href="http://fsharp.github.io/FAKE/fsc.html">Using the F# compiler from FAKE</a></li>
<li><a href="http://fsharp.github.io/FAKE/customtasks.html">Creating custom tasks</a></li>
<li><a href="http://fsharp.github.io/FAKE/teamcity.html">TeamCity integration</a></li>
<li><a href="http://fsharp.github.io/FAKE/canopy.html">Running canopy tests</a></li>
<li><a href="http://fsharp.github.io/FAKE/octopusdeploy.html">Octopus Deploy</a></li>
<li><a href="http://fsharp.github.io/FAKE/typescript.html">TypeScript support</a></li>
<li class="divider"></li>
<li><a href="http://fsharp.github.io/FAKE/deploy.html">Fake.Deploy</a></li>
<li class="nav-header">Reference</li>
<li><a href="http://fsharp.github.io/FAKE/apidocs/index.html">API Reference</a></li>
</ul>
</div>
</div>
</div>
<a href="http://github.com/fsharp/fake"><img style="position: absolute; top: 0; right: 0; border: 0;" src="https://s3.amazonaws.com/github/ribbons/forkme_right_gray_6d6d6d.png" alt="Fork me on GitHub"></a>
</body>
</html>
| {'content_hash': '03a7e408b60d13d6052368fe0803c45f', 'timestamp': '', 'source': 'github', 'line_count': 200, 'max_line_length': 209, 'avg_line_length': 47.545, 'alnum_prop': 0.563781680513198, 'repo_name': 'MatthiasKainer/DotNetRules.Events.Data.MongoDb', 'id': '75126ed8716e86c92f058ac1de81627b9a4a5641', 'size': '9509', 'binary': False, 'copies': '2', 'ref': 'refs/heads/master', 'path': 'packages/FAKE/docs/apidocs/fake-git-rebase.html', 'mode': '33188', 'license': 'mit', 'language': [{'name': 'C#', 'bytes': '5810'}, {'name': 'CSS', 'bytes': '4399'}, {'name': 'F#', 'bytes': '560'}, {'name': 'JavaScript', 'bytes': '1340'}, {'name': 'Shell', 'bytes': '141'}]} |
EW_ENTER
class MvcViewProxy : public wxEvtHandler
{
public:
MvcView& view;
MvcViewProxy(MvcView& view_):view(view_){}
virtual bool TryBefore(wxEvent& evt)
{
if(view.ProcessEventLocally(evt))
{
return true;
}
return wxEvtHandler::TryBefore(evt);
}
};
MvcView::MvcView(MvcModel& tar):Target(tar),fn(tar.fn)
{
Target.AttachView(this);
Target.IncRef();
}
MvcView* MvcView::ms_pActiveView=NULL;
MvcView::~MvcView()
{
Target.DetachView(this);
Target.DecRef();
}
MvcView* MvcView::GetViewByCanvas(wxWindow* w)
{
if(!w) return NULL;
MvcViewProxy* k=dynamic_cast<MvcViewProxy*>(w->GetEventHandler());
return k? &k->view:NULL;
}
MvcView* MvcView::GetViewByHandler(wxEvtHandler* h)
{
MvcViewProxy* k=dynamic_cast<MvcViewProxy*>(h);
return k? &k->view:NULL;
}
void MvcView::OnDestroy()
{
delete this;
}
void MvcView::SetCanvas(wxWindow* w)
{
if(m_pCanvas==w)
{
return;
}
if(m_pCanvas)
{
m_pCanvas->PopEventHandler(true);
}
m_pCanvas=w;
if(m_pCanvas)
{
m_pCanvas->PushEventHandler(new MvcViewProxy(*this));
}
}
wxWindow* MvcView::CreateCanvas(wxWindow* w)
{
return new wxWindow(w,wxID_ANY);
}
bool MvcView::IsActive()
{
return flags.get(FLAG_ACTIVE);
}
bool MvcView::OnCreated()
{
return true;
}
bool MvcView::OnClose(WndManager& wm)
{
if(Target.TestId(CmdProc::CP_DIRTY,NULL))
{
String fp;
Target.TestId(CmdProc::CP_SAVEAS, fp);
String msg = fp.empty() ? "File modified, save?" : String::Format("File \"%s\" modified, save?",fp);
int ret=Wrapper::MsgsDialog(msg,IDefs::DLG_YES_NO_CANCEL|IDefs::ICON_QUESTION);
ICmdParam cmd;
for (cmd.param1 = CmdProc::CP_SAVE; ret == IDefs::BTN_YES; cmd.param1 = CmdProc::CP_SAVEAS)
{
if (Target.DoExecId(cmd)) break;
ret=Wrapper::MsgsDialog("File save failed, try another?",IDefs::DLG_YES_NO_CANCEL|IDefs::ICON_QUESTION);
}
if(ret==IDefs::BTN_CANCEL)
{
return false;
}
}
if(!DoClose(wm))
{
return false;
}
if(flags.get(FLAG_ACTIVE))
{
if(!OnActivate(wm,-2))
{
System::LogMessage("OnActivate(-2) return false!");
}
}
return true;
}
bool MvcView::OnActivate(WndManager& wm,int v)
{
EW_ASSERT(v!=0);
if(v>0 && flags.get(FLAG_ACTIVE)) return true;
if(v<0 &&!flags.get(FLAG_ACTIVE)) return true;
if(v>0)
{
wm.cmdptr.SetData(&Target);
flags.set(FLAG_ACTIVE,true);
}
if(!DoActivate(wm,v))
{
return false;
}
if(v<0)
{
flags.set(FLAG_ACTIVE,false);
wm.cmdptr.SetData(NULL);
}
else if (v > 0)
{
UpdateStatus();
}
return true;
}
bool MvcView::DoClose(WndManager&)
{
return true;
}
bool MvcView::DoActivate(WndManager& wm,int v)
{
if (v>0 && !flags.get(FLAG_INITED))
{
if (!DoInitialize())
{
return false;
}
flags.add(FLAG_INITED);
Target.ExecId(CmdProc::CP_INIT);
}
for (size_t i = 0; i < arr_items.size(); i++)
{
if (arr_items[i]->DoActivate(wm, v)) continue;
if (v != 0)
{
System::LogError("invalid DoActivate State");
return true;
}
while (i > 0)
{
arr_items[--i]->DoActivate(wm, -v);
}
return false;
}
return true;
}
void MvcView::UpdateView()
{
}
String MvcView::GetName()
{
return _hT("view");
}
String MvcView::GetTitle()
{
String fs=fn.GetFilename();
if (fs != "")
{
fs.replace('\\', '/');
return string_split(fs, "/").back();
}
return _hT("unnamed");
}
bool MvcView::DoInitialize()
{
return true;
}
void MvcView::Refresh()
{
if (!IsActive()) return;
if (m_nRequestFresh++) return;
WndManager::current().evtmgr.pending("View.Refresh");
}
void MvcView::DoRefresh()
{
if (!m_pCanvas) return;
m_pCanvas->Refresh();
m_nRequestFresh = 0;
}
void MvcView::CaptureMouse()
{
if(m_pCanvas) m_pCanvas->CaptureMouse();
}
void MvcView::ReleaseMouse()
{
if(m_pCanvas) m_pCanvas->ReleaseMouse();
}
void MvcView::SetFocus()
{
if(m_pCanvas) m_pCanvas->SetFocus();
}
MvcViewEx::MvcViewEx(MvcModel& tar):MvcView(tar)
{
fn.UnShare();
}
bool MvcViewEx::DoActivate(WndManager& wm,int v)
{
if(v>0) Target.SetData(m_pCmdProc.get());
if(v<0) Target.SetData(NULL);
return MvcView::DoActivate(wm,v);
}
class MvcItemBookData : public MvcItemData
{
public:
String sbook;
IWnd_bookbase* pbook;
AutoPtrT<wxWindow> pview;
bool DoActivate(WndManager& wm, int v)
{
if (pbook)
{
pbook->SelPage(v > 0 ? pview.get() : NULL);
wm.evtmgr[sbook].CmdExecuteEx(v>0 ? 2 : -2);
}
return true;
}
};
bool MvcView::LinkBookData(const String& sbook, DataModel* pmodel)
{
DataPtrT<MvcItemBookData> pdata(new MvcItemBookData);
pdata->pbook = dynamic_cast<IWnd_bookbase*>(WndManager::current().evtmgr[sbook].GetWindow());
if (!pdata->pbook) return false;
pdata->sbook = sbook;
pdata->pview.reset(pmodel->CreateDataView(pdata->pbook));
arr_items.push_back(pdata);
return true;
}
EW_LEAVE
| {'content_hash': '3e4cd6cfb4094a8cd2aecf1d694a628e', 'timestamp': '', 'source': 'github', 'line_count': 302, 'max_line_length': 107, 'avg_line_length': 15.745033112582782, 'alnum_prop': 0.6565720294426919, 'repo_name': 'hanwd/ew_base', 'id': '713fc7819488769a4d7abb5318b22e81252edaab', 'size': '5028', 'binary': False, 'copies': '1', 'ref': 'refs/heads/master', 'path': 'src/ewc_base/mvc/mvc_view.cpp', 'mode': '33188', 'license': 'apache-2.0', 'language': [{'name': 'C', 'bytes': '4048'}, {'name': 'C++', 'bytes': '2128305'}]} |
package icmp // import "golang.org/x/net/icmp"
import (
"encoding/binary"
"errors"
"net"
"golang.org/x/net/internal/iana"
"golang.org/x/net/ipv4"
"golang.org/x/net/ipv6"
)
// BUG(mikio): This package is not implemented on AIX, JS, NaCl and
// Plan 9.
var (
errInvalidConn = errors.New("invalid connection")
errInvalidProtocol = errors.New("invalid protocol")
errMessageTooShort = errors.New("message too short")
errHeaderTooShort = errors.New("header too short")
errBufferTooShort = errors.New("buffer too short")
errOpNoSupport = errors.New("operation not supported")
errNoExtension = errors.New("no extension")
errInvalidExtension = errors.New("invalid extension")
)
func checksum(b []byte) uint16 {
csumcv := len(b) - 1 // checksum coverage
s := uint32(0)
for i := 0; i < csumcv; i += 2 {
s += uint32(b[i+1])<<8 | uint32(b[i])
}
if csumcv&1 == 0 {
s += uint32(b[csumcv])
}
s = s>>16 + s&0xffff
s = s + s>>16
return ^uint16(s)
}
// A Type represents an ICMP message type.
type Type interface {
Protocol() int
}
// A Message represents an ICMP message.
type Message struct {
Type Type // type, either ipv4.ICMPType or ipv6.ICMPType
Code int // code
Checksum int // checksum
Body MessageBody // body
}
// Marshal returns the binary encoding of the ICMP message m.
//
// For an ICMPv4 message, the returned message always contains the
// calculated checksum field.
//
// For an ICMPv6 message, the returned message contains the calculated
// checksum field when psh is not nil, otherwise the kernel will
// compute the checksum field during the message transmission.
// When psh is not nil, it must be the pseudo header for IPv6.
func (m *Message) Marshal(psh []byte) ([]byte, error) {
var mtype int
switch typ := m.Type.(type) {
case ipv4.ICMPType:
mtype = int(typ)
case ipv6.ICMPType:
mtype = int(typ)
default:
return nil, errInvalidProtocol
}
b := []byte{byte(mtype), byte(m.Code), 0, 0}
if m.Type.Protocol() == iana.ProtocolIPv6ICMP && psh != nil {
b = append(psh, b...)
}
if m.Body != nil && m.Body.Len(m.Type.Protocol()) != 0 {
mb, err := m.Body.Marshal(m.Type.Protocol())
if err != nil {
return nil, err
}
b = append(b, mb...)
}
if m.Type.Protocol() == iana.ProtocolIPv6ICMP {
if psh == nil { // cannot calculate checksum here
return b, nil
}
off, l := 2*net.IPv6len, len(b)-len(psh)
binary.BigEndian.PutUint32(b[off:off+4], uint32(l))
}
s := checksum(b)
// Place checksum back in header; using ^= avoids the
// assumption the checksum bytes are zero.
b[len(psh)+2] ^= byte(s)
b[len(psh)+3] ^= byte(s >> 8)
return b[len(psh):], nil
}
var parseFns = map[Type]func(int, Type, []byte) (MessageBody, error){
ipv4.ICMPTypeDestinationUnreachable: parseDstUnreach,
ipv4.ICMPTypeTimeExceeded: parseTimeExceeded,
ipv4.ICMPTypeParameterProblem: parseParamProb,
ipv4.ICMPTypeEcho: parseEcho,
ipv4.ICMPTypeEchoReply: parseEcho,
ipv4.ICMPTypeExtendedEchoRequest: parseExtendedEchoRequest,
ipv4.ICMPTypeExtendedEchoReply: parseExtendedEchoReply,
ipv6.ICMPTypeDestinationUnreachable: parseDstUnreach,
ipv6.ICMPTypePacketTooBig: parsePacketTooBig,
ipv6.ICMPTypeTimeExceeded: parseTimeExceeded,
ipv6.ICMPTypeParameterProblem: parseParamProb,
ipv6.ICMPTypeEchoRequest: parseEcho,
ipv6.ICMPTypeEchoReply: parseEcho,
ipv6.ICMPTypeExtendedEchoRequest: parseExtendedEchoRequest,
ipv6.ICMPTypeExtendedEchoReply: parseExtendedEchoReply,
}
// ParseMessage parses b as an ICMP message.
// The provided proto must be either the ICMPv4 or ICMPv6 protocol
// number.
func ParseMessage(proto int, b []byte) (*Message, error) {
if len(b) < 4 {
return nil, errMessageTooShort
}
var err error
m := &Message{Code: int(b[1]), Checksum: int(binary.BigEndian.Uint16(b[2:4]))}
switch proto {
case iana.ProtocolICMP:
m.Type = ipv4.ICMPType(b[0])
case iana.ProtocolIPv6ICMP:
m.Type = ipv6.ICMPType(b[0])
default:
return nil, errInvalidProtocol
}
if fn, ok := parseFns[m.Type]; !ok {
m.Body, err = parseDefaultMessageBody(proto, b[4:])
} else {
m.Body, err = fn(proto, m.Type, b[4:])
}
if err != nil {
return nil, err
}
return m, nil
}
| {'content_hash': 'b36a327e8e7f05140601b53ae2bca743', 'timestamp': '', 'source': 'github', 'line_count': 146, 'max_line_length': 79, 'avg_line_length': 29.34246575342466, 'alnum_prop': 0.6823062558356676, 'repo_name': 'glycerine/goq', 'id': 'b7883cc9f5dc8c92ec8932177779aaa882673eb5', 'size': '4924', 'binary': False, 'copies': '11', 'ref': 'refs/heads/master', 'path': 'vendor/golang.org/x/net/icmp/message.go', 'mode': '33188', 'license': 'bsd-2-clause', 'language': [{'name': 'C', 'bytes': '194'}, {'name': "Cap'n Proto", 'bytes': '4312'}, {'name': 'Go', 'bytes': '344969'}, {'name': 'Makefile', 'bytes': '2429'}, {'name': 'Shell', 'bytes': '2562'}]} |
module Spree
BaseController.class_eval do
include Spree::Core::ControllerHelpers::PriceList
end
end
| {'content_hash': '6e2d8f925f983118ad0d39d7ed7b6299', 'timestamp': '', 'source': 'github', 'line_count': 5, 'max_line_length': 53, 'avg_line_length': 21.6, 'alnum_prop': 0.7777777777777778, 'repo_name': 'freego/spree_price_lists', 'id': 'afcf7852f1a58d491caf9997b4f9d09c1adbda09', 'size': '108', 'binary': False, 'copies': '1', 'ref': 'refs/heads/master', 'path': 'app/controllers/spree/base_controller_decorator.rb', 'mode': '33188', 'license': 'bsd-3-clause', 'language': [{'name': 'CSS', 'bytes': '305'}, {'name': 'HTML', 'bytes': '4436'}, {'name': 'JavaScript', 'bytes': '299'}, {'name': 'Ruby', 'bytes': '15775'}]} |
This is the seed project you need to use if you're going to create a Symfony app that will use Auth0.
## Running the example
In order to run the example you need to have `composer` and `php` installed.
You also need to set the ClientSecret, ClientId and Domain for your Auth0 app as enviroment variables with the following names respectively: `AUTH0_CLIENT_SECRET`,`AUTH0_CLIENT_ID` and `AUTH0_DOMAIN`.
For that, if you just create a file named .env in the directory and set the values like the following, the app will just work:
```
# .env file
AUTH0_CLIENT_SECRET=myCoolSecret
AUTH0_CLIENT_ID=myCoolClientId
AUTH0_DOMAIN=yourDomain.auth0.com
```
Once you've set those 4 enviroment variables, install the dependencies by running the following command:
```
composer install
```
Now you can use Apache or the built-in server:
```
php app/console server:run
```
Try calling [http://localhost:8000/](http://localhost:8000/)
## What is Auth0?
Auth0 helps you to:
* Add authentication with [multiple authentication sources](https://docs.auth0.com/identityproviders), either social like **Google, Facebook, Microsoft Account, LinkedIn, GitHub, Twitter, Box, Salesforce, amont others**, or enterprise identity systems like **Windows Azure AD, Google Apps, Active Directory, ADFS or any SAML Identity Provider**.
* Add authentication through more traditional **[username/password databases](https://docs.auth0.com/mysql-connection-tutorial)**.
* Add support for **[linking different user accounts](https://docs.auth0.com/link-accounts)** with the same user.
* Support for generating signed [Json Web Tokens](https://docs.auth0.com/jwt) to call your APIs and **flow the user identity** securely.
* Analytics of how, when and where users are logging in.
* Pull data from other sources and add it to the user profile, through [JavaScript rules](https://docs.auth0.com/rules).
## Create a free account in Auth0
1. Go to [Auth0](https://auth0.com) and click Sign Up.
2. Use Google, GitHub or Microsoft Account to login.
## Author
[Auth0](auth0.com)
## License
This project is licensed under the MIT license. See the [LICENSE](LICENSE) file for more info.
| {'content_hash': 'f65f614d784fb7f3f65f0ffcbd99f457', 'timestamp': '', 'source': 'github', 'line_count': 54, 'max_line_length': 345, 'avg_line_length': 40.03703703703704, 'alnum_prop': 0.7580943570767807, 'repo_name': 'Amialc/auth0-symfony-seed', 'id': '41e58b9ec3e63f59dc34e8dcfe7e3d9eee2d3e57', 'size': '2186', 'binary': False, 'copies': '2', 'ref': 'refs/heads/master', 'path': 'README.md', 'mode': '33188', 'license': 'mit', 'language': [{'name': 'ApacheConf', 'bytes': '3606'}, {'name': 'HTML', 'bytes': '6046'}, {'name': 'PHP', 'bytes': '50123'}]} |
package org.stagemonitor.tracing.elasticsearch.impl;
import io.jaegertracing.internal.JaegerTracer;
import io.jaegertracing.internal.propagation.B3TextMapCodec;
import io.jaegertracing.internal.reporters.NoopReporter;
import io.jaegertracing.internal.samplers.ConstSampler;
import org.stagemonitor.core.StagemonitorPlugin;
import org.stagemonitor.tracing.B3HeaderFormat;
import org.stagemonitor.tracing.TracerFactory;
import org.stagemonitor.tracing.wrapper.SpanWrapper;
import io.opentracing.Span;
import io.opentracing.Tracer;
import io.opentracing.propagation.Format;
public class JaegerTracerFactory extends TracerFactory {
@Override
public Tracer getTracer(StagemonitorPlugin.InitArguments initArguments) {
final B3TextMapCodec b3TextMapCodec = new B3TextMapCodec.Builder().build();
final JaegerTracer.Builder builder = new JaegerTracer.Builder(
initArguments.getMeasurementSession().getApplicationName())
.withReporter(new NoopReporter())
.withSampler(new ConstSampler(true))
.registerInjector(B3HeaderFormat.INSTANCE, b3TextMapCodec)
.registerInjector(Format.Builtin.HTTP_HEADERS, b3TextMapCodec)
.registerExtractor(Format.Builtin.HTTP_HEADERS, b3TextMapCodec);
return builder.build();
}
@Override
public boolean isRoot(Span span) {
// TODO replace with Span#unwrap once https://github.com/opentracing/opentracing-java/pull/211 is merged
if (span instanceof SpanWrapper) {
span = ((SpanWrapper) span).getDelegate();
}
if (span instanceof io.jaegertracing.internal.JaegerSpan) {
final io.jaegertracing.internal.JaegerSpan jaegerSpan = (io.jaegertracing.internal.JaegerSpan) span;
return jaegerSpan.context().getParentId() == 0;
}
return false;
}
@Override
public boolean isSampled(Span span) {
if (span instanceof SpanWrapper) {
span = ((SpanWrapper) span).unwrap(Span.class);
}
if (span instanceof io.jaegertracing.internal.JaegerSpan) {
final io.jaegertracing.internal.JaegerSpan jaegerSpan = (io.jaegertracing.internal.JaegerSpan) span;
return jaegerSpan.context().isSampled();
}
return false;
}
}
| {'content_hash': '978f35d9cc30a778a18688b61596bab1', 'timestamp': '', 'source': 'github', 'line_count': 56, 'max_line_length': 106, 'avg_line_length': 37.375, 'alnum_prop': 0.7902532250358337, 'repo_name': 'stagemonitor/stagemonitor', 'id': 'e8d5aa9016c89c4ba98021f4abfbb1aa6f52ef42', 'size': '2093', 'binary': False, 'copies': '1', 'ref': 'refs/heads/master', 'path': 'stagemonitor-tracing-elasticsearch/src/main/java/org/stagemonitor/tracing/elasticsearch/impl/JaegerTracerFactory.java', 'mode': '33188', 'license': 'apache-2.0', 'language': [{'name': 'CSS', 'bytes': '17795'}, {'name': 'Groovy', 'bytes': '2121'}, {'name': 'HTML', 'bytes': '134489'}, {'name': 'Java', 'bytes': '1592820'}, {'name': 'JavaScript', 'bytes': '109019'}, {'name': 'Shell', 'bytes': '773'}]} |
package stripe
import "encoding/json"
// SubStatus is the list of allowed values for the subscription's status.
// Allowed values are "trialing", "active", "past_due", "canceled", "unpaid".
type SubStatus string
// SubParams is the set of parameters that can be used when creating or updating a subscription.
// For more details see https://stripe.com/docs/api#create_subscription and https://stripe.com/docs/api#update_subscription.
type SubParams struct {
Params
Customer, Plan string
Coupon, Token string
TrialEnd int64
Card *CardParams
Quantity uint64
ProrationDate int64
FeePercent, TaxPercent float64
NoProrate, EndCancel, QuantityZero, TrialEndNow bool
BillingCycleAnchor int64
BillingCycleAnchorNow bool
}
// SubListParams is the set of parameters that can be used when listing active subscriptions.
// For more details see https://stripe.com/docs/api#list_subscriptions.
type SubListParams struct {
ListParams
Customer string
}
// Sub is the resource representing a Stripe subscription.
// For more details see https://stripe.com/docs/api#subscriptions.
type Sub struct {
ID string `json:"id"`
EndCancel bool `json:"cancel_at_period_end"`
Customer *Customer `json:"customer"`
Plan *Plan `json:"plan"`
Quantity uint64 `json:"quantity"`
Status SubStatus `json:"status"`
FeePercent float64 `json:"application_fee_percent"`
Canceled int64 `json:"canceled_at"`
PeriodEnd int64 `json:"current_period_end"`
PeriodStart int64 `json:"current_period_start"`
Discount *Discount `json:"discount"`
Ended int64 `json:"ended_at"`
Meta map[string]string `json:"metadata"`
TaxPercent float64 `json:"tax_percent"`
TrialEnd int64 `json:"trial_end"`
TrialStart int64 `json:"trial_start"`
}
// SubList is a list object for subscriptions.
type SubList struct {
ListMeta
Values []*Sub `json:"data"`
}
// UnmarshalJSON handles deserialization of a Sub.
// This custom unmarshaling is needed because the resulting
// property may be an id or the full struct if it was expanded.
func (s *Sub) UnmarshalJSON(data []byte) error {
type sub Sub
var ss sub
err := json.Unmarshal(data, &ss)
if err == nil {
*s = Sub(ss)
} else {
// the id is surrounded by "\" characters, so strip them
s.ID = string(data[1 : len(data)-1])
}
return nil
}
| {'content_hash': 'c87db29d74d6eee558040c432f808562', 'timestamp': '', 'source': 'github', 'line_count': 74, 'max_line_length': 124, 'avg_line_length': 37.67567567567568, 'alnum_prop': 0.6058106169296987, 'repo_name': 'hyperworks/stripe-go', 'id': '7a21032327954fbe8e1eb1a49738e20e0d2cdb79', 'size': '2788', 'binary': False, 'copies': '2', 'ref': 'refs/heads/master', 'path': 'sub.go', 'mode': '33188', 'license': 'mit', 'language': [{'name': 'Go', 'bytes': '298277'}, {'name': 'Makefile', 'bytes': '110'}]} |
$(function() {
var body = $('html');
var backgrounds = ['url(assets/sky.jpg)', 'url(assets/sky1.jpg)','url(assets/sky2.jpg)','url(assets/sky3.jpg)'];
var current = 0;
function nextBackground() {
body.css(
'background-image',
backgrounds[current = ++current % backgrounds.length]
);
setTimeout(nextBackground, 10000);
}
setTimeout(nextBackground, 10000);
body.css('background-image', backgrounds[0]);
}); | {'content_hash': '40c5c276de22a18b6ae83d6e2193cae8', 'timestamp': '', 'source': 'github', 'line_count': 16, 'max_line_length': 114, 'avg_line_length': 26.75, 'alnum_prop': 0.6658878504672897, 'repo_name': 'SilviaDGregorio/GestorDeFotosRoR', 'id': 'c43c509293bafc8ea2f60f22113466215401a726', 'size': '453', 'binary': False, 'copies': '1', 'ref': 'refs/heads/master', 'path': 'gestordefotos/app/assets/javascripts/login.js', 'mode': '33188', 'license': 'mit', 'language': [{'name': 'CSS', 'bytes': '12263'}, {'name': 'CoffeeScript', 'bytes': '633'}, {'name': 'HTML', 'bytes': '19121'}, {'name': 'JavaScript', 'bytes': '946'}, {'name': 'Ruby', 'bytes': '30594'}]} |
package eu.chargetime.ocpp.model;
public class SOAPHostInfo {
public static final String NAMESPACE_CHARGEBOX = "urn://Ocpp/Cs/2015/10";
public static final String NAMESPACE_CENTRALSYSTEM = "urn://Ocpp/Cp/2015/10";
private String chargeBoxIdentity;
private String fromUrl;
private String toUrl;
private String namespace;
private boolean isClient;
public String getChargeBoxIdentity() {
return chargeBoxIdentity;
}
public String getFromUrl() {
return fromUrl;
}
public String getToUrl() {
return toUrl;
}
public void setToUrl(String toUrl) {
this.toUrl = toUrl;
}
public String getNamespace() {
return namespace;
}
public boolean isClient() {
return isClient;
}
public static class Builder {
private String chargeBoxIdentity;
private String fromUrl;
private String toUrl;
private String namespace;
private boolean isClient;
public Builder chargeBoxIdentity(String chargeBoxIdentity) {
if (chargeBoxIdentity == null) {
throw new IllegalArgumentException("The object 'chargeBoxIdentity' cannot be null");
}
this.chargeBoxIdentity = chargeBoxIdentity;
return this;
}
public Builder fromUrl(String fromUrl) {
if (fromUrl == null) {
throw new IllegalArgumentException("The object 'fromUrl' cannot be null");
}
this.fromUrl = fromUrl;
return this;
}
public Builder toUrl(String toUrl) {
if (toUrl == null) {
throw new IllegalArgumentException("The object 'toUrl' cannot be null");
}
this.toUrl = toUrl;
return this;
}
public Builder namespace(String namespace) {
if (namespace == null) {
throw new IllegalArgumentException("The object 'namespace' cannot be null");
}
this.namespace = namespace;
return this;
}
public Builder isClient(boolean value) {
this.isClient = value;
return this;
}
public SOAPHostInfo build()
{
SOAPHostInfo res = new SOAPHostInfo();
res.fromUrl = this.fromUrl;
res.chargeBoxIdentity = this.chargeBoxIdentity;
res.namespace = this.namespace;
res.toUrl = this.toUrl;
res.isClient = this.isClient;
validate(res);
return res;
}
private void validate(SOAPHostInfo hostInfo) {
if (hostInfo.fromUrl == null || hostInfo.chargeBoxIdentity == null || hostInfo.namespace == null) {
throw new IllegalStateException("Some required fields where not set.");
}
}
}
}
| {'content_hash': '4db48b44c0a2a2f2c6dc63bbf6afe2f0', 'timestamp': '', 'source': 'github', 'line_count': 99, 'max_line_length': 111, 'avg_line_length': 29.21212121212121, 'alnum_prop': 0.5798755186721992, 'repo_name': 'ivard/Java-OCA-OCPP--CLONE-', 'id': '23bb340dd0c41e945bb5981563bf4cf7881412fa', 'size': '4094', 'binary': False, 'copies': '1', 'ref': 'refs/heads/master', 'path': 'ocpp-v1_6/src/main/java/eu/chargetime/ocpp/model/SOAPHostInfo.java', 'mode': '33188', 'license': 'mit', 'language': [{'name': 'Groovy', 'bytes': '47354'}, {'name': 'Java', 'bytes': '809963'}]} |
package org.keycloak.testsuite.oidc;
import org.junit.Assert;
import org.junit.Rule;
import org.junit.Test;
import org.keycloak.OAuth2Constants;
import org.keycloak.OAuthErrorException;
import org.keycloak.events.Details;
import org.keycloak.events.Errors;
import org.keycloak.protocol.oidc.utils.OIDCResponseMode;
import org.keycloak.representations.AccessToken;
import org.keycloak.representations.AuthorizationResponseToken;
import org.keycloak.representations.IDToken;
import org.keycloak.representations.idm.RealmRepresentation;
import org.keycloak.testsuite.AbstractTestRealmKeycloakTest;
import org.keycloak.testsuite.AssertEvents;
import org.keycloak.testsuite.util.ClientManager;
import org.keycloak.testsuite.util.OAuthClient;
import org.openqa.selenium.By;
import javax.ws.rs.core.UriBuilder;
import java.io.IOException;
import java.net.URI;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertNotEquals;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertTrue;
public class AuthorizationTokenResponseModeTest extends AbstractTestRealmKeycloakTest {
@Rule
public AssertEvents events = new AssertEvents(this);
@Test
public void authorizationRequestQueryJWTResponseMode() throws Exception {
oauth.responseMode(OIDCResponseMode.QUERY_JWT.value());
oauth.stateParamHardcoded("OpenIdConnect.AuthenticationProperties=2302984sdlk");
OAuthClient.AuthorizationEndpointResponse response = oauth.doLogin("test-user@localhost", "password");
assertTrue(response.isRedirected());
AuthorizationResponseToken responseToken = oauth.verifyAuthorizationResponseToken(response.getResponse());
assertEquals("test-app", responseToken.getAudience()[0]);
Assert.assertNotNull(responseToken.getOtherClaims().get("code"));
assertEquals("OpenIdConnect.AuthenticationProperties=2302984sdlk", responseToken.getOtherClaims().get("state"));
Assert.assertNull(responseToken.getOtherClaims().get("error"));
String codeId = events.expectLogin().assertEvent().getDetails().get(Details.CODE_ID);
}
@Test
public void authorizationRequestJWTResponseMode() throws Exception {
// jwt response_mode. It should fallback to query.jwt
oauth.responseMode("jwt");
oauth.stateParamHardcoded("OpenIdConnect.AuthenticationProperties=2302984sdlk");
OAuthClient.AuthorizationEndpointResponse response = oauth.doLogin("test-user@localhost", "password");
assertTrue(response.isRedirected());
AuthorizationResponseToken responseToken = oauth.verifyAuthorizationResponseToken(response.getResponse());
assertEquals("test-app", responseToken.getAudience()[0]);
Assert.assertNotNull(responseToken.getOtherClaims().get("code"));
// should not return code when response_type not 'token'
assertFalse(responseToken.getOtherClaims().containsKey(OAuth2Constants.SCOPE));
assertEquals("OpenIdConnect.AuthenticationProperties=2302984sdlk", responseToken.getOtherClaims().get("state"));
Assert.assertNull(responseToken.getOtherClaims().get("error"));
URI currentUri = new URI(driver.getCurrentUrl());
Assert.assertNotNull(currentUri.getRawQuery());
Assert.assertNull(currentUri.getRawFragment());
String codeId = events.expectLogin().assertEvent().getDetails().get(Details.CODE_ID);
}
@Test
public void authorizationRequestFragmentJWTResponseMode() throws Exception {
oauth.responseMode(OIDCResponseMode.FRAGMENT_JWT.value());
oauth.stateParamHardcoded("OpenIdConnect.AuthenticationProperties=2302984sdlk");
OAuthClient.AuthorizationEndpointResponse response = oauth.doLogin("test-user@localhost", "password");
assertTrue(response.isRedirected());
AuthorizationResponseToken responseToken = oauth.verifyAuthorizationResponseToken(response.getResponse());
assertEquals("test-app", responseToken.getAudience()[0]);
Assert.assertNotNull(responseToken.getOtherClaims().get("code"));
assertEquals("OpenIdConnect.AuthenticationProperties=2302984sdlk", responseToken.getOtherClaims().get("state"));
Assert.assertNull(responseToken.getOtherClaims().get("error"));
URI currentUri = new URI(driver.getCurrentUrl());
Assert.assertNull(currentUri.getRawQuery());
Assert.assertNotNull(currentUri.getRawFragment());
String codeId = events.expectLogin().assertEvent().getDetails().get(Details.CODE_ID);
}
@Test
public void authorizationRequestFormPostJWTResponseMode() throws IOException {
oauth.responseMode(OIDCResponseMode.FORM_POST_JWT.value());
oauth.stateParamHardcoded("OpenIdConnect.AuthenticationProperties=2302984sdlk");
oauth.doLoginGrant("test-user@localhost", "password");
String sources = driver.getPageSource();
System.out.println(sources);
String responseTokenEncoded = driver.findElement(By.id("response")).getText();
AuthorizationResponseToken responseToken = oauth.verifyAuthorizationResponseToken(responseTokenEncoded);
assertEquals("test-app", responseToken.getAudience()[0]);
Assert.assertNotNull(responseToken.getOtherClaims().get("code"));
assertEquals("OpenIdConnect.AuthenticationProperties=2302984sdlk", responseToken.getOtherClaims().get("state"));
Assert.assertNull(responseToken.getOtherClaims().get("error"));
String codeId = events.expectLogin().assertEvent().getDetails().get(Details.CODE_ID);
}
@Test
public void authorizationRequestJWTResponseModeIdTokenResponseType() throws Exception {
ClientManager.realm(adminClient.realm("test")).clientId("test-app").implicitFlow(true);
// jwt response_mode. It should fallback to fragment.jwt when its hybrid flow
oauth.responseMode("jwt");
oauth.responseType("code id_token");
oauth.stateParamHardcoded("OpenIdConnect.AuthenticationProperties=2302984sdlk");
oauth.nonce("123456");
OAuthClient.AuthorizationEndpointResponse response = oauth.doLogin("test-user@localhost", "password");
assertTrue(response.isRedirected());
AuthorizationResponseToken responseToken = oauth.verifyAuthorizationResponseToken(response.getResponse());
assertEquals("test-app", responseToken.getAudience()[0]);
Assert.assertNotNull(responseToken.getOtherClaims().get("code"));
assertEquals("OpenIdConnect.AuthenticationProperties=2302984sdlk", responseToken.getOtherClaims().get("state"));
Assert.assertNull(responseToken.getOtherClaims().get("error"));
Assert.assertNotNull(responseToken.getOtherClaims().get("id_token"));
String idTokenEncoded = (String) responseToken.getOtherClaims().get("id_token");
IDToken idToken = oauth.verifyIDToken(idTokenEncoded);
assertEquals("123456", idToken.getNonce());
URI currentUri = new URI(driver.getCurrentUrl());
Assert.assertNull(currentUri.getRawQuery());
Assert.assertNotNull(currentUri.getRawFragment());
String codeId = events.expectLogin().assertEvent().getDetails().get(Details.CODE_ID);
}
@Test
public void authorizationRequestJWTResponseModeAccessTokenResponseType() throws Exception {
ClientManager.realm(adminClient.realm("test")).clientId("test-app").implicitFlow(true);
// jwt response_mode. It should fallback to fragment.jwt when its hybrid flow
oauth.responseMode("jwt");
oauth.responseType("token id_token");
oauth.stateParamHardcoded("OpenIdConnect.AuthenticationProperties=2302984sdlk");
oauth.nonce("123456");
OAuthClient.AuthorizationEndpointResponse response = oauth.doLogin("test-user@localhost", "password");
assertTrue(response.isRedirected());
AuthorizationResponseToken responseToken = oauth.verifyAuthorizationResponseToken(response.getResponse());
assertEquals("test-app", responseToken.getAudience()[0]);
Assert.assertNull(responseToken.getOtherClaims().get("code"));
assertEquals("OpenIdConnect.AuthenticationProperties=2302984sdlk", responseToken.getOtherClaims().get("state"));
Assert.assertNull(responseToken.getOtherClaims().get("error"));
Assert.assertNotNull(responseToken.getOtherClaims().get("id_token"));
String idTokenEncoded = (String) responseToken.getOtherClaims().get("id_token");
IDToken idToken = oauth.verifyIDToken(idTokenEncoded);
assertEquals("123456", idToken.getNonce());
Assert.assertNotNull(responseToken.getOtherClaims().get("access_token"));
String accessTokenEncoded = (String) responseToken.getOtherClaims().get("access_token");
AccessToken accessToken = oauth.verifyToken(accessTokenEncoded);
assertEquals("123456", accessToken.getNonce());
URI currentUri = new URI(driver.getCurrentUrl());
Assert.assertNull(currentUri.getRawQuery());
Assert.assertNotNull(currentUri.getRawFragment());
}
@Test
public void authorizationRequestFailInvalidResponseModeQueryJWT() throws Exception {
ClientManager.realm(adminClient.realm("test")).clientId("test-app").implicitFlow(true);
oauth.responseMode("query.jwt");
oauth.responseType("code id_token");
oauth.stateParamHardcoded("OpenIdConnect.AuthenticationProperties=2302984sdlk");
oauth.nonce("123456");
UriBuilder b = UriBuilder.fromUri(oauth.getLoginFormUrl());
driver.navigate().to(b.build().toURL());
OAuthClient.AuthorizationEndpointResponse errorResponse = new OAuthClient.AuthorizationEndpointResponse(oauth);
AuthorizationResponseToken responseToken = oauth.verifyAuthorizationResponseToken(errorResponse.getResponse());
Assert.assertEquals(OAuthErrorException.INVALID_REQUEST, responseToken.getOtherClaims().get("error"));
Assert.assertEquals("Response_mode 'query.jwt' is allowed only when the authorization response token is encrypted", responseToken.getOtherClaims().get("error_description"));
events.expectLogin().error(Errors.INVALID_REQUEST).user((String) null).session((String) null).clearDetails().assertEvent();
}
@Test
public void testErrorObjectExpectedClaims() throws Exception {
ClientManager.realm(adminClient.realm("test")).clientId("test-app").implicitFlow(true);
oauth.responseMode("query.jwt");
oauth.responseType("code id_token");
oauth.stateParamHardcoded("OpenIdConnect.AuthenticationProperties=2302984sdlk");
oauth.nonce("123456");
UriBuilder b = UriBuilder.fromUri(oauth.getLoginFormUrl());
driver.navigate().to(b.build().toURL());
OAuthClient.AuthorizationEndpointResponse errorResponse = new OAuthClient.AuthorizationEndpointResponse(oauth);
AuthorizationResponseToken responseToken = oauth.verifyAuthorizationResponseToken(errorResponse.getResponse());
assertNotNull(responseToken.getIssuer());
assertNotNull(responseToken.getExp());
assertNotNull(responseToken.getAudience());
assertNotEquals(0, responseToken.getAudience().length);
assertTrue(responseToken.getOtherClaims().containsKey("error"));
assertTrue(responseToken.getOtherClaims().containsKey("error_description"));
}
@Override
public void configureTestRealm(RealmRepresentation testRealm) {
}
}
| {'content_hash': '48824bf8e2b4bb5d20778edef06eb98f', 'timestamp': '', 'source': 'github', 'line_count': 230, 'max_line_length': 181, 'avg_line_length': 50.28695652173913, 'alnum_prop': 0.741829500259381, 'repo_name': 'stianst/keycloak', 'id': 'fdd103be02ad998b2ca4389c134ab15a25691d28', 'size': '12240', 'binary': False, 'copies': '15', 'ref': 'refs/heads/main', 'path': 'testsuite/integration-arquillian/tests/base/src/test/java/org/keycloak/testsuite/oidc/AuthorizationTokenResponseModeTest.java', 'mode': '33188', 'license': 'apache-2.0', 'language': [{'name': 'AMPL', 'bytes': '1552'}, {'name': 'Batchfile', 'bytes': '1605'}, {'name': 'CSS', 'bytes': '33151'}, {'name': 'Dockerfile', 'bytes': '5560'}, {'name': 'Fluent', 'bytes': '217'}, {'name': 'FreeMarker', 'bytes': '225274'}, {'name': 'Gnuplot', 'bytes': '2173'}, {'name': 'Groovy', 'bytes': '4915'}, {'name': 'HTML', 'bytes': '1067837'}, {'name': 'Java', 'bytes': '34551067'}, {'name': 'JavaScript', 'bytes': '1139293'}, {'name': 'Scala', 'bytes': '67371'}, {'name': 'Shell', 'bytes': '71627'}, {'name': 'TypeScript', 'bytes': '206123'}, {'name': 'XSLT', 'bytes': '39257'}]} |
package ie.cmrc.smtx.skos.index;
import ie.cmrc.util.Term;
/**
* Utility enumeration for storing the conventional SKOS index field names used by the
* {@link SKOSIndex}
* @author Yassine Lassoued <[email protected]>
*/
public class IndexField {
/**
* Searchable fields of a {@link SKOSIndex}
*/
public static enum Searchable {
/**
* Concept URI [value = "uri"]
*/
URI("uri"),
/**
* Concept local name [value = "name"]
*/
NAME("name"),
/**
* Preferred label of a concept, use this for inexact or fuzzy matches
* [value = "ixprefLabel"]
*/
IX_PREF_LABEL("ixprefLabel", true),
/**
* Preferred label of a concept, use this for exact matches
* [value = "prefLabel"]
*/
PREF_LABEL("prefLabel", true),
/**
* Alternative label of a concept, use this for inexact or fuzzy matches
* [value = "ixaltLabel"]
*/
IX_ALT_LABEL("ixaltLabel", true),
/**
* Alternative label of a concept, use this for exact matches
* [value = "altLabel"]
*/
ALT_LABEL("altLabel", true),
/**
* Hidden label of a concept, use this for inexact or fuzzy matches
* [value = "ixhiddenLabel"]
*/
IX_HIDDEN_LABEL("ixhiddenLabel", true),
/**
* Hidden label of a concept, use this for exact matches
* [value = "hiddenLabel"]
*/
HIDDEN_LABEL("hiddenLabel", true),
/**
* Label of a concept, use this for inexact or fuzzy matches
* [value = "ixlabel"]
*/
IX_LABEL("ixlabel", true),
/**
* Label of a concept, use this for exact matches [value = "label"]
*/
LABEL("label", true),
/**
* Concept definition
*/
DEFINITION("definition", true);
/**
* Name of the field
*/
private final String fieldName;
private final boolean multilingual;
/**
* Constructs a filtrable field using the provided name. By default the
* index field is not multilingual
* @param fieldName name of a field
*/
private Searchable(String fieldName) {
this.fieldName = fieldName;
this.multilingual = false;
}
/**
* Constructs a filtrable field using the provided name
* @param fieldName name of a field
* @param multilingual indicates if this field is multilingual
*/
private Searchable(String fieldName, boolean multilingual) {
this.fieldName = fieldName;
this.multilingual = multilingual;
}
/**
* Name of the field
* @return Name of the field
*/
public String fieldName() {
return this.fieldName;
}
/**
* Indicates whether this filtrable field can be multilingual
* @return {@code true} is the filtrable index field can be multilingual;
* {@code false} otherwise
*/
public boolean isMultilingual() {
return this.multilingual;
}
/**
* Return a {@link ie.cmrc.util.Term} Term with the name of the field
* as a value, and {@code null} as a language
* @return {@link ie.cmrc.util.Term} whose value is the name of this
* field and language is {@code null}
*/
public Term field() {
return new Term(this.fieldName, null);
}
/**
* Return a {@link ie.cmrc.util.Term} Term with the name of the field as
* a value, and the provided {@code language} as a language
* @param language Language of the returned {@link ie.cmrc.util.Term}
* @return {@link ie.cmrc.util.Term} whose value is the name of this
* field and whose language is: {@code language} if the filtrable index
* field is multilingual, null otherwise
*/
public Term field(String language) {
if (multilingual) return new Term(this.fieldName, language);
else return new Term(this.fieldName, null);
}
/**
* Returns the {@code Searchable} whose name matches the provided String
* value
* @param value String value to parse
* @return {@code Searchable} whose field name matches {@code value} if
* any, otherwise {@code null}. This method is <b>case insensitive</b>.
*/
public static Searchable fromString(String value) {
if (value != null) {
for (Searchable searchable: Searchable.values()) {
if (value.equals(searchable.fieldName)) return searchable;
}
}
return null;
}
/**
* {@inheritDoc}
* @return String representation of this field. This is the
* same result as {@linkplain #fieldName()}.
*/
@Override
public String toString() {
return this.fieldName;
}
}
/**
* Fields used for filtering index results
*/
public static enum Filterable {
/**
* Resource type (Concept, Collection, or ConceptScheme)
*/
TYPE("type"),
/**
* Concept scheme to which a resource belongs
*/
CS("cs"),
/**
* Collection to which a resource belongs
*/
COLLECTION("collection"),
/**
* Collection to which a resource belongs directly or indirectly
*/
COLLECTION_TRANSITIVE("collTrans");
/**
* Name of the field
*/
private final String fieldName;
/**
* Constructs a string field using the provided name
* @param name name of a field
*/
private Filterable(String name) {
this.fieldName = name;
}
/**
* Name of the field
* @return Name of the field
*/
public String fieldName() {
return this.fieldName;
}
/**
* Returns the {@code Filterable} field whose name matches the provided
* String value
* @param value String value to parse
* @return {@code Filterable} whose field name matches {@code value} if
* any, otherwise {@code null}. This method is <b>case insensitive</b>.
*/
public static Filterable fromString(String value) {
if (value != null) {
for (Filterable filtrable: Filterable.values()) {
if (value.matches("(?i)"+filtrable.fieldName)) return filtrable;
}
}
return null;
}
/**
* {@inheritDoc}
* @return String representation of this field. This is the
* same result as {@linkplain #fieldName()}.
*/
@Override
public String toString() {
return this.fieldName;
}
}
}
| {'content_hash': '6cb09a087a8efe45909091be10ca8db5', 'timestamp': '', 'source': 'github', 'line_count': 254, 'max_line_length': 86, 'avg_line_length': 28.236220472440944, 'alnum_prop': 0.5302565532626883, 'repo_name': 'beaufort/semantix', 'id': '7207c61da27a86a30412790864c4aa2e4eb74ddc', 'size': '7946', 'binary': False, 'copies': '1', 'ref': 'refs/heads/master', 'path': 'semantix-skos-index/src/main/java/ie/cmrc/smtx/skos/index/IndexField.java', 'mode': '33188', 'license': 'apache-2.0', 'language': [{'name': 'HTML', 'bytes': '217'}, {'name': 'Java', 'bytes': '1061237'}, {'name': 'Web Ontology Language', 'bytes': '4284'}]} |
<?php
/**
* Validates arbitrary text according to the HTML spec.
*/
class HTMLPurifier_AttrDef_Text extends HTMLPurifier_AttrDef
{
public function validate($string, $config, $context) {
return $this->parseCDATA($string);
}
}
| {'content_hash': 'c8985d4363e2afaf4f3adb14b4d6a77b', 'timestamp': '', 'source': 'github', 'line_count': 14, 'max_line_length': 60, 'avg_line_length': 18.214285714285715, 'alnum_prop': 0.6588235294117647, 'repo_name': 'jhwohlgemuth/pentest-lab', 'id': 'e88a8456eb75a2a56494dbe118e302a6414efd33', 'size': '255', 'binary': False, 'copies': '18', 'ref': 'refs/heads/master', 'path': 'DVWA/external/phpids/0.6/lib/IDS/vendors/htmlpurifier/HTMLPurifier/AttrDef/Text.php', 'mode': '33188', 'license': 'mit', 'language': [{'name': 'ApacheConf', 'bytes': '480'}, {'name': 'CSS', 'bytes': '4675'}, {'name': 'JavaScript', 'bytes': '740'}, {'name': 'PHP', 'bytes': '94434'}, {'name': 'Python', 'bytes': '25304'}, {'name': 'Shell', 'bytes': '2880'}]} |
<?php
namespace CacheTool\Proxy;
abstract class ProxyTest extends \PHPUnit\Framework\TestCase
{
abstract protected function createProxyInstance();
protected function assertProxyCode($code, $function, $arguments)
{
$mock = $this->createMock('CacheTool\Adapter\Cli');
$mock->expects($this->once())
->method('run')
->will($this->returnArgument(0));
$proxy = $this->createProxyInstance();
$proxy->setAdapter($mock);
$result = $proxy->$function(...$arguments);
$this->assertSame($code, $result->getCode());
}
protected function assertProxyCodeArray($code, $function, $arguments)
{
$mock = $this->createMock('CacheTool\Adapter\Cli');
$mock->expects($this->once())
->method('run')
->will($this->returnCallback(function ($code) {
return [$code];
}));
$proxy = $this->createProxyInstance();
$proxy->setAdapter($mock);
$result = $proxy->$function(...$arguments);
$this->assertSame($code, $result->getCode());
}
protected function assertFailedProxyCode($code, $function, $arguments)
{
$mock = $this->createMock('CacheTool\Adapter\Cli');
$proxy = $this->createProxyInstance();
$proxy->setAdapter($mock);
$result = $proxy->$function(...$arguments);
$this->assertSame($code, $result->getCode());
}
}
| {'content_hash': '2402f396209d64345ae07efe75a8d6e4', 'timestamp': '', 'source': 'github', 'line_count': 51, 'max_line_length': 74, 'avg_line_length': 28.45098039215686, 'alnum_prop': 0.5823569951757409, 'repo_name': 'gordalina/cachetool', 'id': '345d9643be5021fc5620fe88080c81843dbc8d8f', 'size': '1451', 'binary': False, 'copies': '1', 'ref': 'refs/heads/main', 'path': 'tests/Proxy/ProxyTest.php', 'mode': '33188', 'license': 'mit', 'language': [{'name': 'Dockerfile', 'bytes': '1628'}, {'name': 'PHP', 'bytes': '157579'}, {'name': 'Shell', 'bytes': '1358'}]} |
"use strict";
angular.module("playNew", ["core.play"]);
| {'content_hash': '480be52d6fdfe530ae6d1ff774f99142', 'timestamp': '', 'source': 'github', 'line_count': 3, 'max_line_length': 41, 'avg_line_length': 19.0, 'alnum_prop': 0.6491228070175439, 'repo_name': 'zesk06/scores', 'id': '4f331ac19be74167996bafb5f985bee73ce5ac46', 'size': '57', 'binary': False, 'copies': '1', 'ref': 'refs/heads/master', 'path': 'static/app/play-new/play-new.module.js', 'mode': '33188', 'license': 'mit', 'language': [{'name': 'CSS', 'bytes': '3000'}, {'name': 'HTML', 'bytes': '30229'}, {'name': 'JavaScript', 'bytes': '24362'}, {'name': 'Python', 'bytes': '76500'}]} |
package org.springframework.boot.context.properties;
import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* Indicates that a field in a {@link ConfigurationProperties @ConfigurationProperties}
* object should be treated as if it were a nested type. This annotation has no bearing on
* the actual binding processes, but it is used by the
* {@code spring-boot-configuration-processor} as a hint that a field is not bound as a
* single value. When this is specified, a nested group is created for the field and its
* type is harvested.
* <p>
* This has no effect on collections and maps as these types are automatically identified.
*
* @author Stephane Nicoll
* @author Phillip Webb
* @since 1.2.0
*/
@Target(ElementType.FIELD)
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface NestedConfigurationProperty {
}
| {'content_hash': 'c3ad55b1b1027bb2866c5deef98e762a', 'timestamp': '', 'source': 'github', 'line_count': 30, 'max_line_length': 90, 'avg_line_length': 33.1, 'alnum_prop': 0.7784491440080564, 'repo_name': 'mbenson/spring-boot', 'id': '9beee6c18373599d5bd78e74f8552570d7c5a713', 'size': '1614', 'binary': False, 'copies': '16', 'ref': 'refs/heads/master', 'path': 'spring-boot-project/spring-boot/src/main/java/org/springframework/boot/context/properties/NestedConfigurationProperty.java', 'mode': '33188', 'license': 'apache-2.0', 'language': [{'name': 'Batchfile', 'bytes': '1948'}, {'name': 'CSS', 'bytes': '5769'}, {'name': 'Dockerfile', 'bytes': '5379'}, {'name': 'FreeMarker', 'bytes': '3599'}, {'name': 'Groovy', 'bytes': '51602'}, {'name': 'HTML', 'bytes': '69601'}, {'name': 'Java', 'bytes': '14060047'}, {'name': 'JavaScript', 'bytes': '37789'}, {'name': 'Kotlin', 'bytes': '25029'}, {'name': 'Ruby', 'bytes': '1308'}, {'name': 'Shell', 'bytes': '31639'}, {'name': 'Smarty', 'bytes': '2885'}, {'name': 'XSLT', 'bytes': '36394'}]} |
package s3
import (
"crypto/md5"
"encoding/base64"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/awserr"
"github.com/aws/aws-sdk-go/aws/awsutil"
)
var errSSERequiresSSL = awserr.New("ConfigError", "cannot send SSE keys over HTTP.", nil)
func validateSSERequiresSSL(r *aws.Request) {
if r.HTTPRequest.URL.Scheme != "https" {
p := awsutil.ValuesAtPath(r.Params, "SSECustomerKey||CopySourceSSECustomerKey")
if len(p) > 0 {
r.Error = errSSERequiresSSL
}
}
}
func computeSSEKeys(r *aws.Request) {
headers := []string{
"x-amz-server-side-encryption-customer-key",
"x-amz-copy-source-server-side-encryption-customer-key",
}
for _, h := range headers {
md5h := h + "-md5"
if key := r.HTTPRequest.Header.Get(h); key != "" {
// Base64-encode the value
b64v := base64.StdEncoding.EncodeToString([]byte(key))
r.HTTPRequest.Header.Set(h, b64v)
// Add MD5 if it wasn't computed
if r.HTTPRequest.Header.Get(md5h) == "" {
sum := md5.Sum([]byte(key))
b64sum := base64.StdEncoding.EncodeToString(sum[:])
r.HTTPRequest.Header.Set(md5h, b64sum)
}
}
}
}
| {'content_hash': '4e7b5e5a0450447fe28ec3cc2970129a', 'timestamp': '', 'source': 'github', 'line_count': 44, 'max_line_length': 89, 'avg_line_length': 25.386363636363637, 'alnum_prop': 0.6705461056401074, 'repo_name': 'rail/aws-sdk-go', 'id': '01350f7c15607329a058fab29271bdb470e4b173', 'size': '1117', 'binary': False, 'copies': '27', 'ref': 'refs/heads/master', 'path': 'service/s3/sse.go', 'mode': '33188', 'license': 'apache-2.0', 'language': [{'name': 'Cucumber', 'bytes': '22856'}, {'name': 'Go', 'bytes': '8846706'}, {'name': 'HTML', 'bytes': '3604'}, {'name': 'Makefile', 'bytes': '1636'}, {'name': 'Ruby', 'bytes': '7346'}]} |
package rosa.scanvas.demo.website.client.event;
import com.google.gwt.event.shared.EventHandler;
public interface PanelMoveEventHandler extends EventHandler {
void onPanelMove(PanelMoveEvent event);
}
| {'content_hash': 'fe9bba4a60c6af154af747a60db6eef5', 'timestamp': '', 'source': 'github', 'line_count': 7, 'max_line_length': 61, 'avg_line_length': 30.142857142857142, 'alnum_prop': 0.8056872037914692, 'repo_name': 'jhu-digital-manuscripts/rosa', 'id': '76396cdc8b645cd3ad05148b5340df126b43786f', 'size': '211', 'binary': False, 'copies': '1', 'ref': 'refs/heads/master', 'path': 'rosa-sharedcanvas-demo-website/src/main/java/rosa/scanvas/demo/website/client/event/PanelMoveEventHandler.java', 'mode': '33188', 'license': 'apache-2.0', 'language': [{'name': 'CSS', 'bytes': '23761'}, {'name': 'Java', 'bytes': '1136338'}, {'name': 'JavaScript', 'bytes': '173904'}, {'name': 'Shell', 'bytes': '811'}]} |
title: "How to install plugins using assets"
linkTitle: "Installing Plugins with Assets"
description: "Assets are shareable, reusable packages that make it easy to deploy Sensu plugins. You can use assets to provide the plugins, libraries, and runtimes you need to power your monitoring workflows. Read the guide to get started using assets."
weight: 40
version: "5.6"
product: "Sensu Go"
platformContent: False
menu:
sensu-go-5.6:
parent: guides
---
- [1. Download an asset definition from Bonsai](#1-download-an-asset-definition-from-bonsai)
- [2. Register the asset with Sensu](#2-register-the-asset-with-sensu)
- [3. Create a monitoring workflow](#3-create-a-workflow)
- [Next steps](#next-steps)
Assets are shareable, reusable packages that make it easy to deploy Sensu plugins.
You can use assets to provide the plugins, libraries, and runtimes you need to automate your monitoring workflows.
See the [asset reference](../../reference/assets) for more information about assets.
### 1. Download an asset definition from Bonsai
You can discover, download, and share assets using [Bonsai, the Sensu asset index][16].
To use an asset, select the Download button on the asset page in Bonsai to download the asset definition for your Sensu backend platform and architecture.
Asset definitions tell Sensu how to download and verify the asset when required by a check, filter, mutator, or handler.
For example, here's the asset definition for version 1.1.0 of the [Sensu PagerDuty handler asset][19] for Linux AMD64.
{{< highlight yml >}}
---
type: Asset
api_version: core/v2
metadata:
name: sensu-pagerduty-handler
namespace: default
labels: {}
annotations: {}
spec:
url: https://assets.bonsai.sensu.io/698710262d59c72ace3e31524960630dc1e4f190/sensu-pagerduty-handler_1.1.0_linux_amd64.tar.gz
sha512: e93ec4465af5a2057664e8c3cd68e9352457b81315b97578eaae5e21f0cf7419d4fc36feb0155eeb0dd5a227e267307a58ee58a9f3e85bf3d44da3738bf691ca
filters:
- entity.system.os == 'linux'
- entity.system.arch == 'amd64'
{{< /highlight >}}
After downloading an asset definition, open the file and adjust the `namespace` and `filters` for your Sensu instance.
Filters for _check_ assets should match entity platforms, while filters for _handler and filter_ assets should match your Sensu backend platform.
If the provided filters are too restrictive for your platform, replace `os` and `arch` with any supported [entity system attributes][4] (for example: `entity.system.platform_family == 'rhel'`).
You may also want to customize the asset `name` to reflect the supported platform (for example: `sensu-pagerduty-handler-linux`) and add custom attributes using [`labels` and `annotations`][5].
**Enterprise-tier assets** (like the [ServiceNow](https://bonsai.sensu.io/assets/sensu/sensu-servicenow-handler) and [Jira](https://bonsai.sensu.io/assets/sensu/sensu-jira-handler) event handlers) require a Sensu license. For more information about licensed-tier features and to activate your license, see the [getting started guide](../../getting-started/enterprise).
### 2. Register the asset with Sensu
Once you've downloaded the asset definition, you can register the asset with Sensu using sensuctl.
{{< highlight shell >}}
sensuctl create --file sensu-sensu-pagerduty-handler-1.1.0-linux-amd64.yml
{{< /highlight >}}
You can use sensuctl to verify that the asset is registered and ready to use.
{{< highlight shell >}}
sensuctl asset list
{{< /highlight >}}
### 3. Create a workflow
Now we can use assets in a monitoring workflow.
Depending on the asset, you may want to create Sensu checks, filters, mutators, and handlers.
The asset details in Bonsai are the best resource for information about asset capabilities and configuration.
For example, to use the [Sensu PagerDuty handler asset][19], create a `pagerduty` handler that includes your PagerDuty service API key in place of `SECRET` and `sensu-pagerduty-handler` as a runtime asset.
{{< language-toggle >}}
{{< highlight yml >}}
type: Handler
api_version: core/v2
metadata:
name: pagerduty
namespace: default
spec:
command: sensu-pagerduty-handler
env_vars:
- PAGERDUTY_TOKEN=SECRET
filters:
- is_incident
runtime_assets:
- sensu-pagerduty-handler
timeout: 10
type: pipe
{{< /highlight >}}
{{< highlight json >}}
{
"api_version": "core/v2",
"type": "Handler",
"metadata": {
"namespace": "default",
"name": "pagerduty"
},
"spec": {
"type": "pipe",
"command": "sensu-pagerduty-handler",
"env_vars": [
"PAGERDUTY_TOKEN=SECRET"
],
"runtime_assets": ["sensu-pagerduty-handler"],
"timeout": 10,
"filters": [
"is_incident"
]
}
}
{{< /highlight >}}
{{< /language-toggle >}}
Save the definition to a file (for example: `pagerduty-handler.json`), and add to Sensu using sensuctl.
{{< highlight shell >}}
sensuctl create --file pagerduty-handler.json
{{< /highlight >}}
Now that Sensu can create incidents in PagerDuty, we can automate this workflow by adding the `pagerduty` handler to our Sensu service checks.
To get started with checks, see the [guide to monitoring server resources](../monitor-server-resources).
### Next steps
- [Learn more about assets](../../reference/assets#how-do-assets-work)
- [Read the asset specification](../../reference/assets#asset-format-specification)
- [Share your assets on Bonsai](../../reference/assets#sharing-an-asset-on-bonsai)
[1]: ../../reference/assets/
[2]: #creating-an-asset
[3]: https://bonsai.sensu.io
[4]: ../../reference/entities/#system-attributes
[5]: ../../reference/assets/#metadata-attributes
[6]: ../checks
[7]: ../filters
[8]: ../mutators
[9]: ../handlers
[16]: https://bonsai.sensu.io
[17]: ../../getting-started/enterprise
[19]: https://bonsai.sensu.io/assets/sensu/sensu-pagerduty-handler
| {'content_hash': '3818e94a6c38f147893d8651fbc08efc', 'timestamp': '', 'source': 'github', 'line_count': 147, 'max_line_length': 368, 'avg_line_length': 39.97278911564626, 'alnum_prop': 0.7288972089857045, 'repo_name': 'sensu/sensu-docs', 'id': 'df79b54a90f31d996feb8a77edb3e33a568e0371', 'size': '5880', 'binary': False, 'copies': '1', 'ref': 'refs/heads/main', 'path': 'archived/sensu-go/5.6/guides/install-check-executables-with-assets.md', 'mode': '33188', 'license': 'mit', 'language': [{'name': 'HTML', 'bytes': '123020'}, {'name': 'JavaScript', 'bytes': '61971'}, {'name': 'Procfile', 'bytes': '14'}, {'name': 'Python', 'bytes': '3764'}, {'name': 'Ruby', 'bytes': '4422'}, {'name': 'SCSS', 'bytes': '32403'}, {'name': 'Shell', 'bytes': '30924'}]} |
<?php
use Symfony\Component\HttpKernel\Kernel;
use Symfony\Component\Config\Loader\LoaderInterface;
class AppKernel extends Kernel
{
public function registerBundles()
{
$bundles = array(
new AppBundle\AppBundle(),
new Doctrine\Bundle\DoctrineBundle\DoctrineBundle(),
new Sensio\Bundle\FrameworkExtraBundle\SensioFrameworkExtraBundle(),
new Symfony\Bundle\FrameworkBundle\FrameworkBundle(),
new Symfony\Bundle\SecurityBundle\SecurityBundle(),
new Symfony\Bundle\TwigBundle\TwigBundle(),
new Symfony\Bundle\MonologBundle\MonologBundle(),
new Symfony\Bundle\SwiftmailerBundle\SwiftmailerBundle(),
new Symfony\Bundle\AsseticBundle\AsseticBundle(),
);
if (in_array($this->getEnvironment(), array('dev', 'test'))) {
$bundles[] = new Symfony\Bundle\DebugBundle\DebugBundle();
$bundles[] = new Symfony\Bundle\WebProfilerBundle\WebProfilerBundle();
$bundles[] = new Sensio\Bundle\DistributionBundle\SensioDistributionBundle();
$bundles[] = new Sensio\Bundle\GeneratorBundle\SensioGeneratorBundle();
}
return $bundles;
}
public function registerContainerConfiguration(LoaderInterface $loader)
{
$loader->load(__DIR__.'/config/config_'.$this->getEnvironment().'.yml');
}
}
| {'content_hash': '667f0661e7710a3889f43573c3769896', 'timestamp': '', 'source': 'github', 'line_count': 36, 'max_line_length': 89, 'avg_line_length': 38.75, 'alnum_prop': 0.6637992831541218, 'repo_name': 'almacbe/translatable-symfony', 'id': '59122be36cf1a85069e2f6a7bce7a329e2d9460e', 'size': '1395', 'binary': False, 'copies': '1', 'ref': 'refs/heads/master', 'path': 'app/AppKernel.php', 'mode': '33188', 'license': 'mit', 'language': [{'name': 'PHP', 'bytes': '55345'}]} |
/* jshint camelcase: false */
/* jshint expr: true */
var chai = require('chai')
, Sequelize = require('../../index')
, expect = chai.expect
, Support = require(__dirname + '/../support')
, DataTypes = require(__dirname + "/../../lib/data-types")
, dialect = Support.getTestDialect()
, config = require(__dirname + "/../config/config")
, sinon = require('sinon')
, datetime = require('chai-datetime')
, _ = require('lodash')
, moment = require('moment')
, async = require('async')
chai.use(datetime)
chai.Assertion.includeStack = true
var sortById = function(a, b) {
return a.id < b.id ? -1 : 1
}
describe(Support.getTestDialectTeaser("Include"), function () {
describe('findAll', function () {
beforeEach(function () {
this.fixtureA = function(done) {
var User = this.sequelize.define('User', {})
, Company = this.sequelize.define('Company', {
name: DataTypes.STRING
})
, Product = this.sequelize.define('Product', {
title: DataTypes.STRING
})
, Tag = this.sequelize.define('Tag', {
name: DataTypes.STRING
})
, Price = this.sequelize.define('Price', {
value: DataTypes.FLOAT
})
, Customer = this.sequelize.define('Customer', {
name: DataTypes.STRING
})
, Group = this.sequelize.define('Group', {
name: DataTypes.STRING
})
, GroupMember = this.sequelize.define('GroupMember', {
})
, Rank = this.sequelize.define('Rank', {
name: DataTypes.STRING,
canInvite: {
type: DataTypes.INTEGER,
defaultValue: 0
},
canRemove: {
type: DataTypes.INTEGER,
defaultValue: 0
},
canPost: {
type: DataTypes.INTEGER,
defaultValue: 0
}
})
this.models = {
User: User,
Company: Company,
Product: Product,
Tag: Tag,
Price: Price,
Customer: Customer,
Group: Group,
GroupMember: GroupMember,
Rank: Rank
}
User.hasMany(Product)
Product.belongsTo(User)
Product.hasMany(Tag)
Tag.hasMany(Product)
Product.belongsTo(Tag, {as: 'Category'})
Product.belongsTo(Company)
Product.hasMany(Price)
Price.belongsTo(Product)
User.hasMany(GroupMember, {as: 'Memberships'})
GroupMember.belongsTo(User)
GroupMember.belongsTo(Rank)
GroupMember.belongsTo(Group)
Group.hasMany(GroupMember, {as: 'Memberships'})
this.sequelize.sync({force: true}).done(function () {
var count = 4
, i = -1
async.auto({
groups: function(callback) {
Group.bulkCreate([
{name: 'Developers'},
{name: 'Designers'},
{name: 'Managers'}
]).done(function () {
Group.findAll().done(callback)
})
},
companies: function(callback) {
Company.bulkCreate([
{name: 'Sequelize'},
{name: 'Coca Cola'},
{name: 'Bonanza'},
{name: 'NYSE'},
{name: 'Coshopr'}
]).done(function (err) {
if (err) return callback(err);
Company.findAll().done(callback)
})
},
ranks: function(callback) {
Rank.bulkCreate([
{name: 'Admin', canInvite: 1, canRemove: 1, canPost: 1},
{name: 'Trustee', canInvite: 1, canRemove: 0, canPost: 1},
{name: 'Member', canInvite: 1, canRemove: 0, canPost: 0}
]).done(function (err) {
Rank.findAll().done(callback)
})
},
tags: function(callback) {
Tag.bulkCreate([
{name: 'A'},
{name: 'B'},
{name: 'C'},
{name: 'D'},
{name: 'E'}
]).done(function () {
Tag.findAll().done(callback)
})
},
loop: ['groups', 'ranks', 'tags', 'companies', function (done, results) {
var groups = results.groups
, ranks = results.ranks
, tags = results.tags
, companies = results.companies
async.whilst(
function () { return i < count; },
function (callback) {
i++
async.auto({
user: function (callback) {
User.create().done(callback)
},
memberships: ['user', function (callback, results) {
var groupMembers = [
{UserId: results.user.id, GroupId: groups[0].id, RankId: ranks[0].id},
{UserId: results.user.id, GroupId: groups[1].id, RankId: ranks[2].id}
]
if (i < 3) {
groupMembers.push({UserId: results.user.id, GroupId: groups[2].id, RankId: ranks[1].id})
}
GroupMember.bulkCreate(groupMembers).done(callback)
}],
products: function (callback) {
Product.bulkCreate([
{title: 'Chair'},
{title: 'Desk'},
{title: 'Bed'},
{title: 'Pen'},
{title: 'Monitor'}
]).done(function (err) {
if (err) return callback(err);
Product.findAll().done(callback)
})
},
userProducts: ['user', 'products', function (callback, results) {
results.user.setProducts([
results.products[(i * 5)+0],
results.products[(i * 5)+1],
results.products[(i * 5)+3]
]).done(callback)
}],
productTags: ['products', function (callback, results) {
var chainer = new Sequelize.Utils.QueryChainer()
chainer.add(results.products[(i * 5) + 0].setTags([
tags[0],
tags[2]
]))
chainer.add(results.products[(i * 5) + 1].setTags([
tags[1]
]))
chainer.add(results.products[(i * 5) + 0].setCategory(tags[1]))
chainer.add(results.products[(i * 5) + 2].setTags([
tags[0]
]))
chainer.add(results.products[(i * 5) + 3].setTags([
tags[0]
]))
chainer.run().done(callback)
}],
companies: ['products', function (callback, results) {
var chainer = new Sequelize.Utils.QueryChainer()
results.products[(i * 5)+0].setCompany(companies[4])
results.products[(i * 5)+1].setCompany(companies[3])
results.products[(i * 5)+2].setCompany(companies[2])
results.products[(i * 5)+3].setCompany(companies[1])
results.products[(i * 5)+4].setCompany(companies[0])
chainer.run().done(callback)
}],
prices: ['products', function (callback, results) {
Price.bulkCreate([
{ProductId: results.products[(i * 5) + 0].id, value: 5},
{ProductId: results.products[(i * 5) + 0].id, value: 10},
{ProductId: results.products[(i * 5) + 1].id, value: 5},
{ProductId: results.products[(i * 5) + 1].id, value: 10},
{ProductId: results.products[(i * 5) + 1].id, value: 15},
{ProductId: results.products[(i * 5) + 1].id, value: 20},
{ProductId: results.products[(i * 5) + 2].id, value: 20},
{ProductId: results.products[(i * 5) + 3].id, value: 20}
]).done(callback)
}]
}, callback)
},
function (err) {
expect(err).not.to.be.ok
done()
}
)
}]
}, done.bind(this))
})
}
})
it('should support an include with multiple different association types', function (done) {
var User = this.sequelize.define('User', {})
, Product = this.sequelize.define('Product', {
title: DataTypes.STRING
})
, Tag = this.sequelize.define('Tag', {
name: DataTypes.STRING
})
, Price = this.sequelize.define('Price', {
value: DataTypes.FLOAT
})
, Customer = this.sequelize.define('Customer', {
name: DataTypes.STRING
})
, Group = this.sequelize.define('Group', {
name: DataTypes.STRING
})
, GroupMember = this.sequelize.define('GroupMember', {
})
, Rank = this.sequelize.define('Rank', {
name: DataTypes.STRING,
canInvite: {
type: DataTypes.INTEGER,
defaultValue: 0
},
canRemove: {
type: DataTypes.INTEGER,
defaultValue: 0
}
})
User.hasMany(Product)
Product.belongsTo(User)
Product.hasMany(Tag)
Tag.hasMany(Product)
Product.belongsTo(Tag, {as: 'Category'})
Product.hasMany(Price)
Price.belongsTo(Product)
User.hasMany(GroupMember, {as: 'Memberships'})
GroupMember.belongsTo(User)
GroupMember.belongsTo(Rank)
GroupMember.belongsTo(Group)
Group.hasMany(GroupMember, {as: 'Memberships'})
this.sequelize.sync({force: true}).done(function () {
var count = 4
, i = -1
async.auto({
groups: function(callback) {
Group.bulkCreate([
{name: 'Developers'},
{name: 'Designers'}
]).done(function () {
Group.findAll().done(callback)
})
},
ranks: function(callback) {
Rank.bulkCreate([
{name: 'Admin', canInvite: 1, canRemove: 1},
{name: 'Member', canInvite: 1, canRemove: 0}
]).done(function () {
Rank.findAll().done(callback)
})
},
tags: function(callback) {
Tag.bulkCreate([
{name: 'A'},
{name: 'B'},
{name: 'C'}
]).done(function () {
Tag.findAll().done(callback)
})
},
loop: ['groups', 'ranks', 'tags', function (done, results) {
var groups = results.groups
, ranks = results.ranks
, tags = results.tags
async.whilst(
function () { return i < count; },
function (callback) {
i++
async.auto({
user: function (callback) {
User.create().done(callback)
},
memberships: ['user', function (callback, results) {
GroupMember.bulkCreate([
{UserId: results.user.id, GroupId: groups[0].id, RankId: ranks[0].id},
{UserId: results.user.id, GroupId: groups[1].id, RankId: ranks[1].id}
]).done(callback)
}],
products: function (callback) {
Product.bulkCreate([
{title: 'Chair'},
{title: 'Desk'}
]).done(function () {
Product.findAll().done(callback)
})
},
userProducts: ['user', 'products', function (callback, results) {
results.user.setProducts([
results.products[(i * 2)+0],
results.products[(i * 2)+1]
]).done(callback)
}],
productTags: ['products', function (callback, results) {
var chainer = new Sequelize.Utils.QueryChainer()
chainer.add(results.products[(i * 2) + 0].setTags([
tags[0],
tags[2]
]))
chainer.add(results.products[(i * 2) + 1].setTags([
tags[1]
]))
chainer.add(results.products[(i * 2) + 0].setCategory(tags[1]))
chainer.run().done(callback)
}],
prices: ['products', function (callback, results) {
Price.bulkCreate([
{ProductId: results.products[(i * 2) + 0].id, value: 5},
{ProductId: results.products[(i * 2) + 0].id, value: 10},
{ProductId: results.products[(i * 2) + 1].id, value: 5},
{ProductId: results.products[(i * 2) + 1].id, value: 10},
{ProductId: results.products[(i * 2) + 1].id, value: 15},
{ProductId: results.products[(i * 2) + 1].id, value: 20}
]).done(callback)
}]
}, callback)
},
function (err) {
expect(err).not.to.be.ok
User.findAll({
include: [
{model: GroupMember, as: 'Memberships', include: [
Group,
Rank
]},
{model: Product, include: [
Tag,
{model: Tag, as: 'Category'},
Price
]}
],
order: [
['Users.id', 'ASC']
]
}).done(function (err, users) {
expect(err).not.to.be.ok
users.forEach(function (user, i) {
user.memberships.sort(sortById)
expect(user.memberships.length).to.equal(2)
expect(user.memberships[0].group.name).to.equal('Developers')
expect(user.memberships[0].rank.canRemove).to.equal(1)
expect(user.memberships[1].group.name).to.equal('Designers')
expect(user.memberships[1].rank.canRemove).to.equal(0)
user.products.sort(sortById)
expect(user.products.length).to.equal(2)
expect(user.products[0].tags.length).to.equal(2)
expect(user.products[1].tags.length).to.equal(1)
expect(user.products[0].category).to.be.ok
expect(user.products[1].category).not.to.be.ok
expect(user.products[0].prices.length).to.equal(2)
expect(user.products[1].prices.length).to.equal(4)
done()
})
})
}
)
}]
}, done)
})
})
it('should support many levels of belongsTo', function (done) {
var A = this.sequelize.define('A', {})
, B = this.sequelize.define('B', {})
, C = this.sequelize.define('C', {})
, D = this.sequelize.define('D', {})
, E = this.sequelize.define('E', {})
, F = this.sequelize.define('F', {})
, G = this.sequelize.define('G', {})
, H = this.sequelize.define('H', {})
A.belongsTo(B)
B.belongsTo(C)
C.belongsTo(D)
D.belongsTo(E)
E.belongsTo(F)
F.belongsTo(G)
G.belongsTo(H)
var b, singles = [
B,
C,
D,
E,
F,
G,
H
]
this.sequelize.sync().done(function () {
async.auto({
as: function (callback) {
A.bulkCreate([
{},
{},
{},
{},
{},
{},
{},
{}
]).done(function () {
A.findAll().done(callback)
})
},
singleChain: function (callback) {
var previousInstance
, previousModel
async.eachSeries(singles, function (model, callback, i) {
model.create({}).done(function (err, instance) {
if (previousInstance) {
previousInstance["set"+model.name](instance).done(function () {
previousInstance = instance
callback()
})
} else {
previousInstance = b = instance
callback()
}
})
}, callback)
},
abs: ['as', 'singleChain', function (callback, results) {
var chainer = new Sequelize.Utils.QueryChainer()
results.as.forEach(function (a) {
chainer.add(a.setB(b))
})
chainer.run().done(callback)
}]
}, function () {
A.findAll({
include: [
{model: B, include: [
{model: C, include: [
{model: D, include: [
{model: E, include: [
{model: F, include: [
{model: G, include: [
{model: H}
]}
]}
]}
]}
]}
]}
]
}).done(function (err, as) {
expect(err).not.to.be.ok
expect(as.length).to.be.ok
as.forEach(function (a) {
expect(a.b.c.d.e.f.g.h).to.be.ok
})
done()
})
})
})
})
it('should support ordering with only belongsTo includes', function(done) {
var User = this.sequelize.define('User', {})
, Item = this.sequelize.define('Item', {'test': DataTypes.STRING})
, Order = this.sequelize.define('Order', {'position': DataTypes.INTEGER})
User.belongsTo(Item, {'as': 'itemA', foreignKey: 'itemA_id'})
User.belongsTo(Item, {'as': 'itemB', foreignKey: 'itemB_id'})
User.belongsTo(Order)
this.sequelize.sync().done(function() {
async.auto({
users: function(callback) {
User.bulkCreate([{}, {}, {}]).done(function() {
User.findAll().done(callback)
})
},
items: function(callback) {
Item.bulkCreate([
{'test': 'abc'},
{'test': 'def'},
{'test': 'ghi'},
{'test': 'jkl'}
]).done(function() {
Item.findAll({order: ['id']}).done(callback)
})
},
orders: function(callback) {
Order.bulkCreate([
{'position': 2},
{'position': 3},
{'position': 1}
]).done(function() {
Order.findAll({order: ['id']}).done(callback)
})
},
associate: ['users', 'items', 'orders', function(callback, results) {
var chainer = new Sequelize.Utils.QueryChainer()
var user1 = results.users[0]
var user2 = results.users[1]
var user3 = results.users[2]
var item1 = results.items[0]
var item2 = results.items[1]
var item3 = results.items[2]
var item4 = results.items[3]
var order1 = results.orders[0]
var order2 = results.orders[1]
var order3 = results.orders[2]
chainer.add(user1.setItemA(item1))
chainer.add(user1.setItemB(item2))
chainer.add(user1.setOrder(order3))
chainer.add(user2.setItemA(item3))
chainer.add(user2.setItemB(item4))
chainer.add(user2.setOrder(order2))
chainer.add(user3.setItemA(item1))
chainer.add(user3.setItemB(item4))
chainer.add(user3.setOrder(order1))
chainer.run().done(callback)
}]
}, function() {
User.findAll({
'where': {'itemA.test': 'abc'},
'include': [
{'model': Item, 'as': 'itemA'},
{'model': Item, 'as': 'itemB'},
Order],
'order': ['Order.position']
}).done(function(err, as) {
expect(err).not.to.be.ok
expect(as.length).to.eql(2)
expect(as[0].itemA.test).to.eql('abc')
expect(as[1].itemA.test).to.eql('abc')
expect(as[0].order.position).to.eql(1)
expect(as[1].order.position).to.eql(2)
done()
})
})
})
})
it('should include attributes from through models', function (done) {
var Product = this.sequelize.define('Product', {
title: DataTypes.STRING
})
, Tag = this.sequelize.define('Tag', {
name: DataTypes.STRING
})
, ProductTag = this.sequelize.define('ProductTag', {
priority: DataTypes.INTEGER
})
Product.hasMany(Tag, {through: ProductTag})
Tag.hasMany(Product, {through: ProductTag})
this.sequelize.sync({force: true}).done(function () {
async.auto({
products: function (callback) {
Product.bulkCreate([
{title: 'Chair'},
{title: 'Desk'},
{title: 'Dress'}
]).done(function () {
Product.findAll().done(callback)
})
},
tags: function(callback) {
Tag.bulkCreate([
{name: 'A'},
{name: 'B'},
{name: 'C'}
]).done(function () {
Tag.findAll().done(callback)
})
},
productTags: ['products', 'tags', function (callback, results) {
var chainer = new Sequelize.Utils.QueryChainer()
chainer.add(results.products[0].addTag(results.tags[0], {priority: 1}))
chainer.add(results.products[0].addTag(results.tags[1], {priority: 2}))
chainer.add(results.products[1].addTag(results.tags[1], {priority: 1}))
chainer.add(results.products[2].addTag(results.tags[0], {priority: 3}))
chainer.add(results.products[2].addTag(results.tags[1], {priority: 1}))
chainer.add(results.products[2].addTag(results.tags[2], {priority: 2}))
chainer.run().done(callback)
}]
}, function (err, results) {
expect(err).not.to.be.ok
Product.findAll({
include: [
{model: Tag}
],
order: [
['id', 'ASC'],
['Tags.id', 'ASC']
]
}).done(function (err, products) {
expect(err).not.to.be.ok
expect(products[0].tags[0].productTag.priority).to.equal(1)
expect(products[0].tags[1].productTag.priority).to.equal(2)
expect(products[1].tags[0].productTag.priority).to.equal(1)
expect(products[2].tags[0].productTag.priority).to.equal(3)
expect(products[2].tags[1].productTag.priority).to.equal(1)
expect(products[2].tags[2].productTag.priority).to.equal(2)
done()
})
})
})
})
it('should support a required belongsTo include', function (done) {
var User = this.sequelize.define('User', {})
, Group = this.sequelize.define('Group', {})
User.belongsTo(Group)
this.sequelize.sync({force: true}).done(function () {
async.auto({
groups: function (callback) {
Group.bulkCreate([{}, {}]).done(function () {
Group.findAll().done(callback)
})
},
users: function (callback) {
User.bulkCreate([{}, {}, {}]).done(function () {
User.findAll().done(callback)
})
},
userGroups: ['users', 'groups', function (callback, results) {
results.users[2].setGroup(results.groups[1]).done(callback)
}]
}, function (err, results) {
expect(err).not.to.be.ok
User.findAll({
include: [
{model: Group, required: true}
]
}).done(function (err, users) {
expect(err).not.to.be.ok
expect(users.length).to.equal(1)
expect(users[0].group).to.be.ok
done()
})
})
})
})
it('should be possible to extend the on clause with a where option on a belongsTo include', function (done) {
var User = this.sequelize.define('User', {})
, Group = this.sequelize.define('Group', {
name: DataTypes.STRING
})
User.belongsTo(Group)
this.sequelize.sync({force: true}).done(function () {
async.auto({
groups: function (callback) {
Group.bulkCreate([
{name: 'A'},
{name: 'B'}
]).done(function () {
Group.findAll().done(callback)
})
},
users: function (callback) {
User.bulkCreate([{}, {}]).done(function () {
User.findAll().done(callback)
})
},
userGroups: ['users', 'groups', function (callback, results) {
var chainer = new Sequelize.Utils.QueryChainer()
chainer.add(results.users[0].setGroup(results.groups[1]))
chainer.add(results.users[1].setGroup(results.groups[0]))
chainer.run().done(callback)
}]
}, function (err, results) {
expect(err).not.to.be.ok
User.findAll({
include: [
{model: Group, where: {name: 'A'}}
]
}).done(function (err, users) {
expect(err).not.to.be.ok
expect(users.length).to.equal(1)
expect(users[0].group).to.be.ok
expect(users[0].group.name).to.equal('A')
done()
})
})
})
})
it('should be possible to extend the on clause with a where option on a belongsTo include', function (done) {
var User = this.sequelize.define('User', {})
, Group = this.sequelize.define('Group', {
name: DataTypes.STRING
})
User.belongsTo(Group)
this.sequelize.sync({force: true}).done(function () {
async.auto({
groups: function (callback) {
Group.bulkCreate([
{name: 'A'},
{name: 'B'}
]).done(function () {
Group.findAll().done(callback)
})
},
users: function (callback) {
User.bulkCreate([{}, {}]).done(function () {
User.findAll().done(callback)
})
},
userGroups: ['users', 'groups', function (callback, results) {
var chainer = new Sequelize.Utils.QueryChainer()
chainer.add(results.users[0].setGroup(results.groups[1]))
chainer.add(results.users[1].setGroup(results.groups[0]))
chainer.run().done(callback)
}]
}, function (err, results) {
expect(err).not.to.be.ok
User.findAll({
include: [
{model: Group, required: true}
]
}).done(function (err, users) {
expect(err).not.to.be.ok
users.forEach(function (user) {
expect(user.group).to.be.ok
})
done()
})
})
})
})
it('should be possible to define a belongsTo include as required with child hasMany with limit', function (done) {
var User = this.sequelize.define('User', {})
, Group = this.sequelize.define('Group', {
name: DataTypes.STRING
})
, Category = this.sequelize.define('Category', {
category: DataTypes.STRING
})
User.belongsTo(Group)
Group.hasMany(Category)
this.sequelize.sync({force: true}).done(function () {
async.auto({
groups: function (callback) {
Group.bulkCreate([
{name: 'A'},
{name: 'B'}
]).done(function () {
Group.findAll().done(callback)
})
},
users: function (callback) {
User.bulkCreate([{}, {}]).done(function () {
User.findAll().done(callback)
})
},
categories: function (callback) {
Category.bulkCreate([{}, {}]).done(function () {
Category.findAll().done(callback)
})
},
userGroups: ['users', 'groups', function (callback, results) {
var chainer = new Sequelize.Utils.QueryChainer()
chainer.add(results.users[0].setGroup(results.groups[1]))
chainer.add(results.users[1].setGroup(results.groups[0]))
chainer.run().done(callback)
}],
groupCategories: ['groups', 'categories', function (callback, results) {
var chainer = new Sequelize.Utils.QueryChainer()
results.groups.forEach(function (group) {
chainer.add(group.setCategories(results.categories))
})
chainer.run().done(callback)
}]
}, function (err, results) {
expect(err).not.to.be.ok
User.findAll({
include: [
{model: Group, required: true, include: [
{model: Category}
]}
],
limit: 1
}).done(function (err, users) {
expect(err).not.to.be.ok
expect(users.length).to.equal(1)
users.forEach(function (user) {
expect(user.group).to.be.ok
expect(user.group.categories).to.be.ok
})
done()
})
})
})
})
it('should be possible to define a belongsTo include as required with child hasMany with limit and aliases', function (done) {
var User = this.sequelize.define('User', {})
, Group = this.sequelize.define('Group', {
name: DataTypes.STRING
})
, Category = this.sequelize.define('Category', {
category: DataTypes.STRING
})
User.belongsTo(Group, {as: 'Team'})
Group.hasMany(Category, {as: 'Tags'})
this.sequelize.sync({force: true}).done(function () {
async.auto({
groups: function (callback) {
Group.bulkCreate([
{name: 'A'},
{name: 'B'}
]).done(function () {
Group.findAll().done(callback)
})
},
users: function (callback) {
User.bulkCreate([{}, {}]).done(function () {
User.findAll().done(callback)
})
},
categories: function (callback) {
Category.bulkCreate([{}, {}]).done(function () {
Category.findAll().done(callback)
})
},
userGroups: ['users', 'groups', function (callback, results) {
var chainer = new Sequelize.Utils.QueryChainer()
chainer.add(results.users[0].setTeam(results.groups[1]))
chainer.add(results.users[1].setTeam(results.groups[0]))
chainer.run().done(callback)
}],
groupCategories: ['groups', 'categories', function (callback, results) {
var chainer = new Sequelize.Utils.QueryChainer()
results.groups.forEach(function (group) {
chainer.add(group.setTags(results.categories))
})
chainer.run().done(callback)
}]
}, function (err, results) {
expect(err).not.to.be.ok
User.findAll({
include: [
{model: Group, required: true, as: 'Team', include: [
{model: Category, as: 'Tags'}
]}
],
limit: 1
}).done(function (err, users) {
expect(err).not.to.be.ok
expect(users.length).to.equal(1)
users.forEach(function (user) {
expect(user.team).to.be.ok
expect(user.team.tags).to.be.ok
})
done()
})
})
})
})
it('should be possible to define a belongsTo include as required with child hasMany which is not required with limit', function (done) {
var User = this.sequelize.define('User', {})
, Group = this.sequelize.define('Group', {
name: DataTypes.STRING
})
, Category = this.sequelize.define('Category', {
category: DataTypes.STRING
})
User.belongsTo(Group)
Group.hasMany(Category)
this.sequelize.sync({force: true}).done(function () {
async.auto({
groups: function (callback) {
Group.bulkCreate([
{name: 'A'},
{name: 'B'}
]).done(function () {
Group.findAll().done(callback)
})
},
users: function (callback) {
User.bulkCreate([{}, {}]).done(function () {
User.findAll().done(callback)
})
},
categories: function (callback) {
Category.bulkCreate([{}, {}]).done(function () {
Category.findAll().done(callback)
})
},
userGroups: ['users', 'groups', function (callback, results) {
var chainer = new Sequelize.Utils.QueryChainer()
chainer.add(results.users[0].setGroup(results.groups[1]))
chainer.add(results.users[1].setGroup(results.groups[0]))
chainer.run().done(callback)
}],
groupCategories: ['groups', 'categories', function (callback, results) {
var chainer = new Sequelize.Utils.QueryChainer()
results.groups.forEach(function (group) {
chainer.add(group.setCategories(results.categories))
})
chainer.run().done(callback)
}]
}, function (err, results) {
expect(err).not.to.be.ok
User.findAll({
include: [
{model: Group, required: true, include: [
{model: Category, required: false}
]}
],
limit: 1
}).done(function (err, users) {
expect(err).not.to.be.ok
expect(users.length).to.equal(1)
users.forEach(function (user) {
expect(user.group).to.be.ok
expect(user.group.categories).to.be.ok
})
done()
})
})
})
})
it('should be possible to extend the on clause with a where option on a hasOne include', function (done) {
var User = this.sequelize.define('User', {})
, Project = this.sequelize.define('Project', {
title: DataTypes.STRING
})
User.hasOne(Project, {as: 'LeaderOf'})
this.sequelize.sync({force: true}).done(function () {
async.auto({
projects: function (callback) {
Project.bulkCreate([
{title: 'Alpha'},
{title: 'Beta'}
]).done(function () {
Project.findAll().done(callback)
})
},
users: function (callback) {
User.bulkCreate([{}, {}]).done(function () {
User.findAll().done(callback)
})
},
userProjects: ['users', 'projects', function (callback, results) {
var chainer = new Sequelize.Utils.QueryChainer()
chainer.add(results.users[1].setLeaderOf(results.projects[1]))
chainer.add(results.users[0].setLeaderOf(results.projects[0]))
chainer.run().done(callback)
}]
}, function (err, results) {
expect(err).not.to.be.ok
User.findAll({
include: [
{model: Project, as: 'LeaderOf', where: {title: 'Beta'}}
]
}).done(function (err, users) {
expect(err).not.to.be.ok
expect(users.length).to.equal(1)
expect(users[0].leaderOf).to.be.ok
expect(users[0].leaderOf.title).to.equal('Beta')
done()
})
})
})
})
it('should be possible to extend the on clause with a where option on a hasMany include with a through model', function (done) {
var Product = this.sequelize.define('Product', {
title: DataTypes.STRING
})
, Tag = this.sequelize.define('Tag', {
name: DataTypes.STRING
})
, ProductTag = this.sequelize.define('ProductTag', {
priority: DataTypes.INTEGER
})
Product.hasMany(Tag, {through: ProductTag})
Tag.hasMany(Product, {through: ProductTag})
this.sequelize.sync({force: true}).done(function () {
async.auto({
products: function (callback) {
Product.bulkCreate([
{title: 'Chair'},
{title: 'Desk'},
{title: 'Dress'}
]).done(function () {
Product.findAll().done(callback)
})
},
tags: function(callback) {
Tag.bulkCreate([
{name: 'A'},
{name: 'B'},
{name: 'C'}
]).done(function () {
Tag.findAll().done(callback)
})
},
productTags: ['products', 'tags', function (callback, results) {
var chainer = new Sequelize.Utils.QueryChainer()
chainer.add(results.products[0].addTag(results.tags[0], {priority: 1}))
chainer.add(results.products[0].addTag(results.tags[1], {priority: 2}))
chainer.add(results.products[1].addTag(results.tags[1], {priority: 1}))
chainer.add(results.products[2].addTag(results.tags[0], {priority: 3}))
chainer.add(results.products[2].addTag(results.tags[1], {priority: 1}))
chainer.add(results.products[2].addTag(results.tags[2], {priority: 2}))
chainer.run().done(callback)
}]
}, function (err, results) {
expect(err).not.to.be.ok
Product.findAll({
include: [
{model: Tag, where: {name: 'C'}}
]
}).done(function (err, products) {
expect(err).not.to.be.ok
expect(products.length).to.equal(1)
expect(products[0].tags.length).to.equal(1)
done()
})
})
})
})
it('should be possible to extend the on clause with a where option on nested includes', function (done) {
var User = this.sequelize.define('User', {
name: DataTypes.STRING
})
, Product = this.sequelize.define('Product', {
title: DataTypes.STRING
})
, Tag = this.sequelize.define('Tag', {
name: DataTypes.STRING
})
, Price = this.sequelize.define('Price', {
value: DataTypes.FLOAT
})
, Customer = this.sequelize.define('Customer', {
name: DataTypes.STRING
})
, Group = this.sequelize.define('Group', {
name: DataTypes.STRING
})
, GroupMember = this.sequelize.define('GroupMember', {
})
, Rank = this.sequelize.define('Rank', {
name: DataTypes.STRING,
canInvite: {
type: DataTypes.INTEGER,
defaultValue: 0
},
canRemove: {
type: DataTypes.INTEGER,
defaultValue: 0
}
})
User.hasMany(Product)
Product.belongsTo(User)
Product.hasMany(Tag)
Tag.hasMany(Product)
Product.belongsTo(Tag, {as: 'Category'})
Product.hasMany(Price)
Price.belongsTo(Product)
User.hasMany(GroupMember, {as: 'Memberships'})
GroupMember.belongsTo(User)
GroupMember.belongsTo(Rank)
GroupMember.belongsTo(Group)
Group.hasMany(GroupMember, {as: 'Memberships'})
this.sequelize.sync({force: true}).done(function () {
var count = 4
, i = -1
async.auto({
groups: function(callback) {
Group.bulkCreate([
{name: 'Developers'},
{name: 'Designers'}
]).done(function () {
Group.findAll().done(callback)
})
},
ranks: function(callback) {
Rank.bulkCreate([
{name: 'Admin', canInvite: 1, canRemove: 1},
{name: 'Member', canInvite: 1, canRemove: 0}
]).done(function () {
Rank.findAll().done(callback)
})
},
tags: function(callback) {
Tag.bulkCreate([
{name: 'A'},
{name: 'B'},
{name: 'C'}
]).done(function () {
Tag.findAll().done(callback)
})
},
loop: ['groups', 'ranks', 'tags', function (done, results) {
var groups = results.groups
, ranks = results.ranks
, tags = results.tags
async.whilst(
function () { return i < count; },
function (callback) {
i++
async.auto({
user: function (callback) {
User.create({name: 'FooBarzz'}).done(callback)
},
memberships: ['user', function (callback, results) {
GroupMember.bulkCreate([
{UserId: results.user.id, GroupId: groups[0].id, RankId: ranks[0].id},
{UserId: results.user.id, GroupId: groups[1].id, RankId: ranks[1].id}
]).done(callback)
}],
products: function (callback) {
Product.bulkCreate([
{title: 'Chair'},
{title: 'Desk'}
]).done(function () {
Product.findAll().done(callback)
})
},
userProducts: ['user', 'products', function (callback, results) {
results.user.setProducts([
results.products[(i * 2)+0],
results.products[(i * 2)+1]
]).done(callback)
}],
productTags: ['products', function (callback, results) {
var chainer = new Sequelize.Utils.QueryChainer()
chainer.add(results.products[(i * 2) + 0].setTags([
tags[0],
tags[2]
]))
chainer.add(results.products[(i * 2) + 1].setTags([
tags[1]
]))
chainer.add(results.products[(i * 2) + 0].setCategory(tags[1]))
chainer.run().done(callback)
}],
prices: ['products', function (callback, results) {
Price.bulkCreate([
{ProductId: results.products[(i * 2) + 0].id, value: 5},
{ProductId: results.products[(i * 2) + 0].id, value: 10},
{ProductId: results.products[(i * 2) + 1].id, value: 5},
{ProductId: results.products[(i * 2) + 1].id, value: 10},
{ProductId: results.products[(i * 2) + 1].id, value: 15},
{ProductId: results.products[(i * 2) + 1].id, value: 20}
]).done(callback)
}]
}, callback)
},
function (err) {
expect(err).not.to.be.ok
User.findAll({
include: [
{model: GroupMember, as: 'Memberships', include: [
Group,
{model: Rank, where: {name: 'Admin'}}
]},
{model: Product, include: [
Tag,
{model: Tag, as: 'Category'},
{model: Price, where: {
value: {
gt: 15
}
}}
]}
],
order: 'id ASC'
}).done(function (err, users) {
expect(err).not.to.be.ok
users.forEach(function (user) {
expect(user.memberships.length).to.equal(1)
expect(user.memberships[0].rank.name).to.equal('Admin')
expect(user.products.length).to.equal(1)
expect(user.products[0].prices.length).to.equal(1)
})
done()
})
}
)
}]
}, done)
})
})
it('should be possible to use limit and a where with a belongsTo include', function (done) {
var User = this.sequelize.define('User', {})
, Group = this.sequelize.define('Group', {
name: DataTypes.STRING
})
User.belongsTo(Group)
this.sequelize.sync({force: true}).done(function () {
async.auto({
groups: function (callback) {
Group.bulkCreate([
{name: 'A'},
{name: 'B'},
]).done(function () {
Group.findAll().done(callback)
})
},
users: function (callback) {
User.bulkCreate([{}, {}, {}, {}]).done(function () {
User.findAll().done(callback)
})
},
userGroups: ['users', 'groups', function (callback, results) {
var chainer = new Sequelize.Utils.QueryChainer()
chainer.add(results.users[0].setGroup(results.groups[0]))
chainer.add(results.users[1].setGroup(results.groups[0]))
chainer.add(results.users[2].setGroup(results.groups[0]))
chainer.add(results.users[3].setGroup(results.groups[1]))
chainer.run().done(callback)
}]
}, function (err, results) {
expect(err).not.to.be.ok
User.findAll({
include: [
{model: Group, where: {name: 'A'}}
],
limit: 2
}).done(function (err, users) {
expect(err).not.to.be.ok
expect(users.length).to.equal(2)
users.forEach(function (user) {
expect(user.group.name).to.equal('A')
})
done()
})
})
})
})
it('should be possible use limit, attributes and a where on a belongsTo with additional hasMany includes', function (done) {
var self = this
this.fixtureA(function () {
self.models.Product.findAll({
attributes: ['title'],
include: [
{model: self.models.Company, where: {name: 'NYSE'}},
{model: self.models.Tag},
{model: self.models.Price}
],
limit: 3,
order: [
[self.sequelize.col(self.models.Product.tableName+'.id'), 'ASC']
]
}).done(function (err, products) {
expect(err).not.to.be.ok
expect(products.length).to.equal(3)
products.forEach(function (product) {
expect(product.company.name).to.equal('NYSE')
expect(product.tags.length).to.be.ok
expect(product.prices.length).to.be.ok
})
done()
})
})
})
it('should be possible to use limit and a where on a hasMany with additional includes', function (done) {
var self = this
this.fixtureA(function () {
self.models.Product.findAll({
include: [
{model: self.models.Company},
{model: self.models.Tag},
{model: self.models.Price, where: {
value: {gt: 5}
}}
],
limit: 6,
order: 'id ASC'
}).done(function (err, products) {
expect(err).not.to.be.ok
expect(products.length).to.equal(6)
products.forEach(function (product) {
expect(product.tags.length).to.be.ok
expect(product.prices.length).to.be.ok
product.prices.forEach(function (price) {
expect(price.value).to.be.above(5)
})
})
done()
})
})
})
it('should be possible to use limit and a where on a hasMany with a through model with additional includes', function (done) {
var self = this
this.fixtureA(function () {
self.models.Product.findAll({
include: [
{model: self.models.Company},
{model: self.models.Tag, where: {name: ['A', 'B','C']}},
{model: self.models.Price}
],
limit: 10,
order: 'id ASC'
}).done(function (err, products) {
expect(err).not.to.be.ok
expect(products.length).to.equal(10)
products.forEach(function (product) {
expect(product.tags.length).to.be.ok
expect(product.prices.length).to.be.ok
product.tags.forEach(function (tag) {
expect(['A', 'B', 'C']).to.include(tag.name)
})
})
done()
})
})
})
it('should support including date fields, with the correct timeszone', function (done) {
var User = this.sequelize.define('user', {
dateField: Sequelize.DATE
}, {timestamps: false})
, Group = this.sequelize.define('group', {
dateField: Sequelize.DATE
}, {timestamps: false})
User.hasMany(Group)
Group.hasMany(User)
this.sequelize.sync().success(function () {
User.create({ dateField: Date.UTC(2014, 1, 20) }).success(function (user) {
Group.create({ dateField: Date.UTC(2014, 1, 20) }).success(function (group) {
user.addGroup(group).success(function () {
User.findAll({
where: {
id: user.id
},
include: [Group]
}).success(function (users) {
expect(users[0].dateField.getTime()).to.equal(Date.UTC(2014, 1, 20))
expect(users[0].groups[0].dateField.getTime()).to.equal(Date.UTC(2014, 1, 20))
done()
})
})
})
})
})
})
})
}) | {'content_hash': 'de03d20a347903331d88d21d99c9b6a1', 'timestamp': '', 'source': 'github', 'line_count': 1504, 'max_line_length': 140, 'avg_line_length': 34.39494680851064, 'alnum_prop': 0.46282621302919, 'repo_name': 'niceilm/sequelize', 'id': 'f7a44582e877873262f77cbd597b766b82357258', 'size': '51730', 'binary': False, 'copies': '2', 'ref': 'refs/heads/master', 'path': 'test/include/findAll.test.js', 'mode': '33188', 'license': 'mit', 'language': [{'name': 'CSS', 'bytes': '18133'}, {'name': 'CoffeeScript', 'bytes': '362'}, {'name': 'JavaScript', 'bytes': '1450900'}]} |
from yeelight import Bulb
from LedLight import LedLight
# Class to control two kinds of RGB LED Lights / controllers.
# This is just a start, an exploration of the protocol
#
class LedLightYeeLight(LedLight):
def __init__(self, name, ipAddrOrName=None):
if ipAddrOrName is None:
ipAddrOrName = name
self.bulb = Bulb(ipAddrOrName)
self.name = name
try:
self.bulb.set_name(name)
except Exception as exc:
print "Caught exception socket.error : %s" % exc
# Send an RGB message
def sendRGB(self,red, green, blue):
try:
self.bulb.set_rgb(red, green, blue)
except Exception as exc:
print "Caught exception socket.error : %s" % exc
# Send a white message
def sendWhite(self, white):
try:
self.bulb.set_color_temp(5000)
self.bulb.set_brightness(white)
except Exception as exc:
print "Caught exception socket.error : %s" % exc
def turnOff(self):
try:
return self.bulb.turn_off()
except Exception as exc:
print "Caught exception socket.error : %s" % exc
def turnOn(self):
try:
self.bulb.turn_on()
except Exception as exc:
print "Caught exception socket.error : %s" % exc
def isOn(self):
try:
return self.bulb.get_properties()['power'] == 'on'
except Exception as exc:
print "Caught exception socket.error : %s" % exc
def getWhite(self):
try:
properties = self.bulb.get_properties()
if(properties['color_mode']=='2'):
return int(properties['bright'])
else:
return -1
except Exception as exc:
print "Caught exception socket.error : %s" % exc
# comment
def getRGB(self):
try:
properties = self.bulb.get_properties()
if(properties['color_mode']=='1'):
rgb = int(properties['rgb'])
return [(rgb >> 16) & 255, (rgb >> 8) & 255, rgb & 255]
else:
return -1
except Exception as exc:
print "Caught exception socket.error : %s" % exc
| {'content_hash': '194c40474aaca90b45c9b4e6caa47353', 'timestamp': '', 'source': 'github', 'line_count': 76, 'max_line_length': 63, 'avg_line_length': 26.289473684210527, 'alnum_prop': 0.6251251251251251, 'repo_name': 'triphoppingman/rgbledcontrol.py', 'id': '339fb9867f21f0ecf2ea995e8cb3b5aecdf5da97', 'size': '2020', 'binary': False, 'copies': '1', 'ref': 'refs/heads/master', 'path': 'src/ledlib/LedLightYeeLight.py', 'mode': '33188', 'license': 'apache-2.0', 'language': [{'name': 'Python', 'bytes': '34998'}]} |
package gr.iti.mklab.visual.utilities;
import com.sleepycat.persist.model.Entity;
import com.sleepycat.persist.model.PrimaryKey;
/**
* Objects of this class are used to wrap an regular object that contains metadata for a vector into an object
* that can be stored as a BDB Entity.
*
* @author Eleftherios Spyromitros-Xioufis
*
*/
@Entity
public class MetaDataEntity {
@PrimaryKey
private int id;
/**
* The class of a metadata object should be annotated as @Persistent!
*/
private Object metaData;
public MetaDataEntity(int id, Object metaData) {
this.id = id;
this.metaData = metaData;
}
public Object getMetaData() {
return metaData;
}
}
| {'content_hash': '9eed54065c8ea456847a1cff339ad408', 'timestamp': '', 'source': 'github', 'line_count': 34, 'max_line_length': 110, 'avg_line_length': 20.794117647058822, 'alnum_prop': 0.693069306930693, 'repo_name': 'kandreadou/reveal-multimedia-indexing', 'id': '6982ad9bfc81cbc139e70f76be5cd17d32b638cc', 'size': '707', 'binary': False, 'copies': '2', 'ref': 'refs/heads/master', 'path': 'src/main/java/gr/iti/mklab/visual/utilities/MetaDataEntity.java', 'mode': '33188', 'license': 'apache-2.0', 'language': [{'name': 'Java', 'bytes': '478332'}]} |
@interface LoginViewController : UIViewController
@end
| {'content_hash': '9cc24232cdce27dc1dd7b27528acce14', 'timestamp': '', 'source': 'github', 'line_count': 3, 'max_line_length': 49, 'avg_line_length': 18.666666666666668, 'alnum_prop': 0.8392857142857143, 'repo_name': 'MoDaBao/TcCourier', 'id': '4b7038407c4d38fe30df85977e2dab4c61bad1bb', 'size': '214', 'binary': False, 'copies': '1', 'ref': 'refs/heads/master', 'path': 'TcCourier/TcCourier/Login/Controller/LoginViewController.h', 'mode': '33188', 'license': 'apache-2.0', 'language': [{'name': 'C', 'bytes': '652'}, {'name': 'Objective-C', 'bytes': '1171946'}, {'name': 'Shell', 'bytes': '8307'}]} |
cc.g_NumberOfDraws = 0;
cc.GLToClipTransform = function (transformOut) {
//var projection = new cc.math.Matrix4();
//cc.kmGLGetMatrix(cc.KM_GL_PROJECTION, projection);
cc.kmGLGetMatrix(cc.KM_GL_PROJECTION, transformOut);
var modelview = new cc.math.Matrix4();
cc.kmGLGetMatrix(cc.KM_GL_MODELVIEW, modelview);
transformOut.multiply(modelview);
};
//----------------------------------------------------------------------------------------------------------------------
/**
* <p>
* ATTENTION: USE cc.director INSTEAD OF cc.Director.<br/>
* cc.director is a singleton object which manage your game's logic flow.<br/>
* Since the cc.director is a singleton, you don't need to call any constructor or create functions,<br/>
* the standard way to use it is by calling:<br/>
* - cc.director.methodName(); <br/>
*
* It creates and handle the main Window and manages how and when to execute the Scenes.<br/>
* <br/>
* The cc.director is also responsible for:<br/>
* - initializing the OpenGL context<br/>
* - setting the OpenGL pixel format (default on is RGB565)<br/>
* - setting the OpenGL pixel format (default on is RGB565)<br/>
* - setting the OpenGL buffer depth (default one is 0-bit)<br/>
* - setting the projection (default one is 3D)<br/>
* - setting the orientation (default one is Portrait)<br/>
* <br/>
* <br/>
* The cc.director also sets the default OpenGL context:<br/>
* - GL_TEXTURE_2D is enabled<br/>
* - GL_VERTEX_ARRAY is enabled<br/>
* - GL_COLOR_ARRAY is enabled<br/>
* - GL_TEXTURE_COORD_ARRAY is enabled<br/>
* </p>
* <p>
* cc.director also synchronizes timers with the refresh rate of the display.<br/>
* Features and Limitations:<br/>
* - Scheduled timers & drawing are synchronizes with the refresh rate of the display<br/>
* - Only supports animation intervals of 1/60 1/30 & 1/15<br/>
* </p>
* @class
* @name cc.Director
*/
cc.Director = cc.Class.extend(/** @lends cc.Director# */{
//Variables
_landscape: false,
_nextDeltaTimeZero: false,
_paused: false,
_purgeDirectorInNextLoop: false,
_sendCleanupToScene: false,
_animationInterval: 0.0,
_oldAnimationInterval: 0.0,
_projection: 0,
_accumDt: 0.0,
_contentScaleFactor: 1.0,
_displayStats: false,
_deltaTime: 0.0,
_frameRate: 0.0,
_FPSLabel: null,
_SPFLabel: null,
_drawsLabel: null,
_winSizeInPoints: null,
_lastUpdate: null,
_nextScene: null,
_notificationNode: null,
_openGLView: null,
_scenesStack: null,
_projectionDelegate: null,
_runningScene: null,
_frames: 0,
_totalFrames: 0,
_secondsPerFrame: 0,
_dirtyRegion: null,
_scheduler: null,
_actionManager: null,
_eventProjectionChanged: null,
_eventAfterDraw: null,
_eventAfterVisit: null,
_eventAfterUpdate: null,
ctor: function () {
var self = this;
self._lastUpdate = Date.now();
cc.eventManager.addCustomListener(cc.game.EVENT_SHOW, function () {
self._lastUpdate = Date.now();
});
},
init: function () {
// scenes
this._oldAnimationInterval = this._animationInterval = 1.0 / cc.defaultFPS;
this._scenesStack = [];
// Set default projection (3D)
this._projection = cc.Director.PROJECTION_DEFAULT;
// projection delegate if "Custom" projection is used
this._projectionDelegate = null;
//FPS
this._accumDt = 0;
this._frameRate = 0;
this._displayStats = false;//can remove
this._totalFrames = this._frames = 0;
this._lastUpdate = Date.now();
//Paused?
this._paused = false;
//purge?
this._purgeDirectorInNextLoop = false;
this._winSizeInPoints = cc.size(0, 0);
this._openGLView = null;
this._contentScaleFactor = 1.0;
//scheduler
this._scheduler = new cc.Scheduler();
//action manager
this._actionManager = cc.ActionManager ? new cc.ActionManager() : null;
this._scheduler.scheduleUpdate(this._actionManager, cc.Scheduler.PRIORITY_SYSTEM, false);
this._eventAfterDraw = new cc.EventCustom(cc.Director.EVENT_AFTER_DRAW);
this._eventAfterDraw.setUserData(this);
this._eventAfterVisit = new cc.EventCustom(cc.Director.EVENT_AFTER_VISIT);
this._eventAfterVisit.setUserData(this);
this._eventAfterUpdate = new cc.EventCustom(cc.Director.EVENT_AFTER_UPDATE);
this._eventAfterUpdate.setUserData(this);
this._eventProjectionChanged = new cc.EventCustom(cc.Director.EVENT_PROJECTION_CHANGED);
this._eventProjectionChanged.setUserData(this);
return true;
},
/**
* calculates delta time since last time it was called
*/
calculateDeltaTime: function () {
var now = Date.now();
// new delta time.
if (this._nextDeltaTimeZero) {
this._deltaTime = 0;
this._nextDeltaTimeZero = false;
} else {
this._deltaTime = (now - this._lastUpdate) / 1000;
}
if ((cc.game.config[cc.game.CONFIG_KEY.debugMode] > 0) && (this._deltaTime > 0.2))
this._deltaTime = 1 / 60.0;
this._lastUpdate = now;
},
/**
* Converts a view coordinate to an WebGL coordinate<br/>
* Useful to convert (multi) touches coordinates to the current layout (portrait or landscape)<br/>
* Implementation can be found in CCDirectorWebGL
* @function
* @param {cc.Point} uiPoint
* @return {cc.Point}
*/
convertToGL: null,
/**
* Converts an WebGL coordinate to a view coordinate<br/>
* Useful to convert node points to window points for calls such as glScissor<br/>
* Implementation can be found in CCDirectorWebGL
* @function
* @param {cc.Point} glPoint
* @return {cc.Point}
*/
convertToUI: null,
/**
* Draw the scene. This method is called every frame. Don't call it manually.
*/
drawScene: function () {
var renderer = cc.renderer;
// calculate "global" dt
this.calculateDeltaTime();
//tick before glClear: issue #533
if (!this._paused) {
this._scheduler.update(this._deltaTime);
cc.eventManager.dispatchEvent(this._eventAfterUpdate);
}
this._clear();
/* to avoid flickr, nextScene MUST be here: after tick and before draw.
XXX: Which bug is this one. It seems that it can't be reproduced with v0.9 */
if (this._nextScene) {
this.setNextScene();
}
if (this._beforeVisitScene)
this._beforeVisitScene();
// draw the scene
if (this._runningScene) {
if (renderer.childrenOrderDirty === true) {
cc.renderer.clearRenderCommands();
this._runningScene._renderCmd._curLevel = 0; //level start from 0;
this._runningScene.visit();
renderer.resetFlag();
} else if (renderer.transformDirty() === true)
renderer.transform();
cc.eventManager.dispatchEvent(this._eventAfterVisit);
}
// draw the notifications node
if (this._notificationNode)
this._notificationNode.visit();
if (this._displayStats)
this._showStats();
if (this._afterVisitScene)
this._afterVisitScene();
renderer.rendering(cc._renderContext);
cc.eventManager.dispatchEvent(this._eventAfterDraw);
this._totalFrames++;
if (this._displayStats)
this._calculateMPF();
},
_beforeVisitScene: null,
_afterVisitScene: null,
/**
* End the life of director in the next frame
*/
end: function () {
this._purgeDirectorInNextLoop = true;
},
/**
* Returns the size in pixels of the surface. It could be different than the screen size.<br/>
* High-res devices might have a higher surface size than the screen size.
* @return {Number}
*/
getContentScaleFactor: function () {
return this._contentScaleFactor;
},
/**
* This object will be visited after the main scene is visited.<br/>
* This object MUST implement the "visit" selector.<br/>
* Useful to hook a notification object
* @return {cc.Node}
*/
getNotificationNode: function () {
return this._notificationNode;
},
/**
* Returns the size of the WebGL view in points.<br/>
* It takes into account any possible rotation (device orientation) of the window
* @return {cc.Size}
*/
getWinSize: function () {
return cc.size(this._winSizeInPoints);
},
/**
* Returns the size of the OpenGL view in pixels.<br/>
* It takes into account any possible rotation (device orientation) of the window.<br/>
* On Mac winSize and winSizeInPixels return the same value.
* @return {cc.Size}
*/
getWinSizeInPixels: function () {
return cc.size(this._winSizeInPoints.width * this._contentScaleFactor, this._winSizeInPoints.height * this._contentScaleFactor);
},
/**
* getVisibleSize/getVisibleOrigin move to CCDirectorWebGL/CCDirectorCanvas
* getZEye move to CCDirectorWebGL
*/
/**
* Returns the visible size of the running scene
* @function
* @return {cc.Size}
*/
getVisibleSize: null,
/**
* Returns the visible origin of the running scene
* @function
* @return {cc.Point}
*/
getVisibleOrigin: null,
/**
* Returns the z eye, only available in WebGL mode
* @function
* @return {Number}
*/
getZEye: null,
/**
* Pause the director's ticker
*/
pause: function () {
if (this._paused)
return;
this._oldAnimationInterval = this._animationInterval;
// when paused, don't consume CPU
this.setAnimationInterval(1 / 4.0);
this._paused = true;
},
/**
* Pops out a scene from the queue.<br/>
* This scene will replace the running one.<br/>
* The running scene will be deleted. If there are no more scenes in the stack the execution is terminated.<br/>
* ONLY call it if there is a running scene.
*/
popScene: function () {
cc.assert(this._runningScene, cc._LogInfos.Director_popScene);
this._scenesStack.pop();
var c = this._scenesStack.length;
if (c === 0)
this.end();
else {
this._sendCleanupToScene = true;
this._nextScene = this._scenesStack[c - 1];
}
},
/**
* Removes cached all cocos2d cached data. It will purge the cc.textureCache, cc.spriteFrameCache, cc.animationCache
*/
purgeCachedData: function () {
cc.animationCache._clear();
cc.spriteFrameCache._clear();
cc.textureCache._clear();
},
/**
* Purge the cc.director itself, including unschedule all schedule, remove all event listeners, clean up and exit the running scene, stops all animations, clear cached data.
*/
purgeDirector: function () {
//cleanup scheduler
this.getScheduler().unscheduleAll();
// Disable event dispatching
if (cc.eventManager)
cc.eventManager.setEnabled(false);
// don't release the event handlers
// They are needed in case the director is run again
if (this._runningScene) {
this._runningScene.onExitTransitionDidStart();
this._runningScene.onExit();
this._runningScene.cleanup();
}
this._runningScene = null;
this._nextScene = null;
// remove all objects, but don't release it.
// runScene might be executed after 'end'.
this._scenesStack.length = 0;
this.stopAnimation();
// Clear all caches
this.purgeCachedData();
cc.checkGLErrorDebug();
},
/**
* Suspends the execution of the running scene, pushing it on the stack of suspended scenes.<br/>
* The new scene will be executed.<br/>
* Try to avoid big stacks of pushed scenes to reduce memory allocation.<br/>
* ONLY call it if there is a running scene.
* @param {cc.Scene} scene
*/
pushScene: function (scene) {
cc.assert(scene, cc._LogInfos.Director_pushScene);
this._sendCleanupToScene = false;
this._scenesStack.push(scene);
this._nextScene = scene;
},
/**
* Run a scene. Replaces the running scene with a new one or enter the first scene.
* @param {cc.Scene} scene
*/
runScene: function (scene) {
cc.assert(scene, cc._LogInfos.Director_pushScene);
if (!this._runningScene) {
//start scene
this.pushScene(scene);
this.startAnimation();
} else {
//replace scene
var i = this._scenesStack.length;
if (i === 0) {
this._sendCleanupToScene = true;
this._scenesStack[i] = scene;
this._nextScene = scene;
} else {
this._sendCleanupToScene = true;
this._scenesStack[i - 1] = scene;
this._nextScene = scene;
}
}
},
/**
* Resume director after pause, if the current scene is not paused, nothing will happen.
*/
resume: function () {
if (!this._paused) {
return;
}
this.setAnimationInterval(this._oldAnimationInterval);
this._lastUpdate = Date.now();
if (!this._lastUpdate) {
cc.log(cc._LogInfos.Director_resume);
}
this._paused = false;
this._deltaTime = 0;
},
/**
* The size in pixels of the surface. It could be different than the screen size.<br/>
* High-res devices might have a higher surface size than the screen size.
* @param {Number} scaleFactor
*/
setContentScaleFactor: function (scaleFactor) {
if (scaleFactor !== this._contentScaleFactor) {
this._contentScaleFactor = scaleFactor;
this._createStatsLabel();
}
},
/**
* Enables or disables WebGL depth test.<br/>
* Implementation can be found in CCDirectorCanvas.js/CCDirectorWebGL.js
* @function
* @param {Boolean} on
*/
setDepthTest: null,
/**
* Sets the default values based on the CCConfiguration info
*/
setDefaultValues: function () {
},
/**
* Sets whether next delta time equals to zero
* @param {Boolean} nextDeltaTimeZero
*/
setNextDeltaTimeZero: function (nextDeltaTimeZero) {
this._nextDeltaTimeZero = nextDeltaTimeZero;
},
/**
* Starts the registered next scene
*/
setNextScene: function () {
var runningIsTransition = false, newIsTransition = false;
if (cc.TransitionScene) {
runningIsTransition = this._runningScene ? this._runningScene instanceof cc.TransitionScene : false;
newIsTransition = this._nextScene ? this._nextScene instanceof cc.TransitionScene : false;
}
// If it is not a transition, call onExit/cleanup
if (!newIsTransition) {
var locRunningScene = this._runningScene;
if (locRunningScene) {
locRunningScene.onExitTransitionDidStart();
locRunningScene.onExit();
}
// issue #709. the root node (scene) should receive the cleanup message too
// otherwise it might be leaked.
if (this._sendCleanupToScene && locRunningScene)
locRunningScene.cleanup();
}
this._runningScene = this._nextScene;
cc.renderer.childrenOrderDirty = true;
this._nextScene = null;
if ((!runningIsTransition) && (this._runningScene !== null)) {
this._runningScene.onEnter();
this._runningScene.onEnterTransitionDidFinish();
}
},
/**
* Sets Notification Node
* @param {cc.Node} node
*/
setNotificationNode: function (node) {
this._notificationNode = node;
},
/**
* Returns the cc.director delegate.
* @return {cc.DirectorDelegate}
*/
getDelegate: function () {
return this._projectionDelegate;
},
/**
* Sets the cc.director delegate. It shall implement the CCDirectorDelegate protocol
* @return {cc.DirectorDelegate}
*/
setDelegate: function (delegate) {
this._projectionDelegate = delegate;
},
/**
* Sets the view, where everything is rendered, do not call this function.<br/>
* Implementation can be found in CCDirectorCanvas.js/CCDirectorWebGL.js.
* @function
* @param {cc.view} openGLView
*/
setOpenGLView: null,
/**
* Sets an OpenGL projection.<br/>
* Implementation can be found in CCDirectorCanvas.js/CCDirectorWebGL.js.
* @function
* @param {Number} projection
*/
setProjection: null,
/**
* Update the view port.<br/>
* Implementation can be found in CCDirectorCanvas.js/CCDirectorWebGL.js.
* @function
*/
setViewport: null,
/**
* Get the CCEGLView, where everything is rendered.<br/>
* Implementation can be found in CCDirectorCanvas.js/CCDirectorWebGL.js.
* @function
* @return {cc.view}
*/
getOpenGLView: null,
/**
* Sets an OpenGL projection.<br/>
* Implementation can be found in CCDirectorCanvas.js/CCDirectorWebGL.js.
* @function
* @return {Number}
*/
getProjection: null,
/**
* Enables/disables OpenGL alpha blending.<br/>
* Implementation can be found in CCDirectorCanvas.js/CCDirectorWebGL.js.
* @function
* @param {Boolean} on
*/
setAlphaBlending: null,
_showStats: function () {
this._frames++;
this._accumDt += this._deltaTime;
if (this._FPSLabel && this._SPFLabel && this._drawsLabel) {
if (this._accumDt > cc.DIRECTOR_FPS_INTERVAL) {
this._SPFLabel.string = this._secondsPerFrame.toFixed(3);
this._frameRate = this._frames / this._accumDt;
this._frames = 0;
this._accumDt = 0;
this._FPSLabel.string = this._frameRate.toFixed(1);
this._drawsLabel.string = (0 | cc.g_NumberOfDraws).toString();
}
this._FPSLabel.visit();
this._SPFLabel.visit();
this._drawsLabel.visit();
} else
this._createStatsLabel();
cc.g_NumberOfDraws = 0;
},
/**
* Returns whether or not the replaced scene will receive the cleanup message.<br>
* If the new scene is pushed, then the old scene won't receive the "cleanup" message.<br/>
* If the new scene replaces the old one, the it will receive the "cleanup" message.
* @return {Boolean}
*/
isSendCleanupToScene: function () {
return this._sendCleanupToScene;
},
/**
* Returns current running Scene. Director can only run one Scene at the time
* @return {cc.Scene}
*/
getRunningScene: function () {
return this._runningScene;
},
/**
* Returns the FPS value
* @return {Number}
*/
getAnimationInterval: function () {
return this._animationInterval;
},
/**
* Returns whether or not to display the FPS informations
* @return {Boolean}
*/
isDisplayStats: function () {
return this._displayStats;
},
/**
* Sets whether display the FPS on the bottom-left corner
* @param {Boolean} displayStats
*/
setDisplayStats: function (displayStats) {
this._displayStats = displayStats;
},
/**
* Returns seconds per frame
* @return {Number}
*/
getSecondsPerFrame: function () {
return this._secondsPerFrame;
},
/**
* Returns whether next delta time equals to zero
* @return {Boolean}
*/
isNextDeltaTimeZero: function () {
return this._nextDeltaTimeZero;
},
/**
* Returns whether or not the Director is paused
* @return {Boolean}
*/
isPaused: function () {
return this._paused;
},
/**
* Returns how many frames were called since the director started
* @return {Number}
*/
getTotalFrames: function () {
return this._totalFrames;
},
/**
* Pops out all scenes from the queue until the root scene in the queue. <br/>
* This scene will replace the running one. <br/>
* Internally it will call "popToSceneStackLevel(1)"
*/
popToRootScene: function () {
this.popToSceneStackLevel(1);
},
/**
* Pops out all scenes from the queue until it reaches "level". <br/>
* If level is 0, it will end the director. <br/>
* If level is 1, it will pop all scenes until it reaches to root scene. <br/>
* If level is <= than the current stack level, it won't do anything.
* @param {Number} level
*/
popToSceneStackLevel: function (level) {
cc.assert(this._runningScene, cc._LogInfos.Director_popToSceneStackLevel_2);
var locScenesStack = this._scenesStack;
var c = locScenesStack.length;
if (c === 0) {
this.end();
return;
}
// current level or lower -> nothing
if (level > c)
return;
// pop stack until reaching desired level
while (c > level) {
var current = locScenesStack.pop();
if (current.running) {
current.onExitTransitionDidStart();
current.onExit();
}
current.cleanup();
c--;
}
this._nextScene = locScenesStack[locScenesStack.length - 1];
this._sendCleanupToScene = false;
},
/**
* Returns the cc.Scheduler associated with this director
* @return {cc.Scheduler}
*/
getScheduler: function () {
return this._scheduler;
},
/**
* Sets the cc.Scheduler associated with this director
* @param {cc.Scheduler} scheduler
*/
setScheduler: function (scheduler) {
if (this._scheduler !== scheduler) {
this._scheduler = scheduler;
}
},
/**
* Returns the cc.ActionManager associated with this director
* @return {cc.ActionManager}
*/
getActionManager: function () {
return this._actionManager;
},
/**
* Sets the cc.ActionManager associated with this director
* @param {cc.ActionManager} actionManager
*/
setActionManager: function (actionManager) {
if (this._actionManager !== actionManager) {
this._actionManager = actionManager;
}
},
/**
* Returns the delta time since last frame
* @return {Number}
*/
getDeltaTime: function () {
return this._deltaTime;
},
_createStatsLabel: null,
_calculateMPF: function () {
var now = Date.now();
this._secondsPerFrame = (now - this._lastUpdate) / 1000;
}
});
/**
* The event projection changed of cc.Director
* @constant
* @type {string}
* @example
* cc.eventManager.addCustomListener(cc.Director.EVENT_PROJECTION_CHANGED, function(event) {
* cc.log("Projection changed.");
* });
*/
cc.Director.EVENT_PROJECTION_CHANGED = "director_projection_changed";
/**
* The event after draw of cc.Director
* @constant
* @type {string}
* @example
* cc.eventManager.addCustomListener(cc.Director.EVENT_AFTER_DRAW, function(event) {
* cc.log("after draw event.");
* });
*/
cc.Director.EVENT_AFTER_DRAW = "director_after_draw";
/**
* The event after visit of cc.Director
* @constant
* @type {string}
* @example
* cc.eventManager.addCustomListener(cc.Director.EVENT_AFTER_VISIT, function(event) {
* cc.log("after visit event.");
* });
*/
cc.Director.EVENT_AFTER_VISIT = "director_after_visit";
/**
* The event after update of cc.Director
* @constant
* @type {string}
* @example
* cc.eventManager.addCustomListener(cc.Director.EVENT_AFTER_UPDATE, function(event) {
* cc.log("after update event.");
* });
*/
cc.Director.EVENT_AFTER_UPDATE = "director_after_update";
/***************************************************
* implementation of DisplayLinkDirector
**************************************************/
cc.DisplayLinkDirector = cc.Director.extend(/** @lends cc.Director# */{
invalid: false,
/**
* Starts Animation
*/
startAnimation: function () {
this._nextDeltaTimeZero = true;
this.invalid = false;
},
/**
* Run main loop of director
*/
mainLoop: function () {
if (this._purgeDirectorInNextLoop) {
this._purgeDirectorInNextLoop = false;
this.purgeDirector();
}
else if (!this.invalid) {
this.drawScene();
}
},
/**
* Stops animation
*/
stopAnimation: function () {
this.invalid = true;
},
/**
* Sets animation interval
* @param {Number} value the animation interval desired
*/
setAnimationInterval: function (value) {
this._animationInterval = value;
if (!this.invalid) {
this.stopAnimation();
this.startAnimation();
}
}
});
cc.Director.sharedDirector = null;
cc.Director.firstUseDirector = true;
cc.Director._getInstance = function () {
if (cc.Director.firstUseDirector) {
cc.Director.firstUseDirector = false;
cc.Director.sharedDirector = new cc.DisplayLinkDirector();
cc.Director.sharedDirector.init();
}
return cc.Director.sharedDirector;
};
/**
* Default fps is 60
* @type {Number}
*/
cc.defaultFPS = 60;
//Possible OpenGL projections used by director
/**
* Constant for 2D projection (orthogonal projection)
* @constant
* @type {Number}
*/
cc.Director.PROJECTION_2D = 0;
/**
* Constant for 3D projection with a fovy=60, znear=0.5f and zfar=1500.
* @constant
* @type {Number}
*/
cc.Director.PROJECTION_3D = 1;
/**
* Constant for custom projection, if cc.Director's projection set to it, it calls "updateProjection" on the projection delegate.
* @constant
* @type {Number}
*/
cc.Director.PROJECTION_CUSTOM = 3;
/**
* Constant for default projection of cc.Director, default projection is 3D projection
* @constant
* @type {Number}
*/
cc.Director.PROJECTION_DEFAULT = cc.Director.PROJECTION_3D;
if (cc._renderType === cc._RENDER_TYPE_CANVAS) {
var _p = cc.Director.prototype;
_p.setProjection = function (projection) {
this._projection = projection;
cc.eventManager.dispatchEvent(this._eventProjectionChanged);
};
_p.setDepthTest = function () {
};
_p.setOpenGLView = function (openGLView) {
// set size
this._winSizeInPoints.width = cc._canvas.width; //this._openGLView.getDesignResolutionSize();
this._winSizeInPoints.height = cc._canvas.height;
this._openGLView = openGLView || cc.view;
if (cc.eventManager)
cc.eventManager.setEnabled(true);
};
_p._clear = function () {
var viewport = this._openGLView.getViewPortRect();
var context = cc._renderContext.getContext();
context.setTransform(1,0,0,1, 0, 0);
context.clearRect(-viewport.x, viewport.y, viewport.width, viewport.height);
};
_p._createStatsLabel = function () {
var _t = this;
var fontSize = 0;
if (_t._winSizeInPoints.width > _t._winSizeInPoints.height)
fontSize = 0 | (_t._winSizeInPoints.height / 320 * 24);
else
fontSize = 0 | (_t._winSizeInPoints.width / 320 * 24);
_t._FPSLabel = new cc.LabelTTF("000.0", "Arial", fontSize);
_t._SPFLabel = new cc.LabelTTF("0.000", "Arial", fontSize);
_t._drawsLabel = new cc.LabelTTF("0000", "Arial", fontSize);
var locStatsPosition = cc.DIRECTOR_STATS_POSITION;
_t._drawsLabel.setPosition(_t._drawsLabel.width / 2 + locStatsPosition.x, _t._drawsLabel.height * 5 / 2 + locStatsPosition.y);
_t._SPFLabel.setPosition(_t._SPFLabel.width / 2 + locStatsPosition.x, _t._SPFLabel.height * 3 / 2 + locStatsPosition.y);
_t._FPSLabel.setPosition(_t._FPSLabel.width / 2 + locStatsPosition.x, _t._FPSLabel.height / 2 + locStatsPosition.y);
};
_p.getVisibleSize = function () {
//if (this._openGLView) {
//return this._openGLView.getVisibleSize();
//} else {
return this.getWinSize();
//}
};
_p.getVisibleOrigin = function () {
//if (this._openGLView) {
//return this._openGLView.getVisibleOrigin();
//} else {
return cc.p(0, 0);
//}
};
} else {
cc.Director._fpsImage = new Image();
cc._addEventListener(cc.Director._fpsImage, "load", function () {
cc.Director._fpsImageLoaded = true;
});
if (cc._fpsImage) {
cc.Director._fpsImage.src = cc._fpsImage;
}
} | {'content_hash': 'c7135ce302f9fc4fc1249c57351c459e', 'timestamp': '', 'source': 'github', 'line_count': 996, 'max_line_length': 177, 'avg_line_length': 29.64859437751004, 'alnum_prop': 0.5907213003725026, 'repo_name': 'allen-zh/lianliankan', 'id': '02141cbda597813fd664b2af05f57661530ff672', 'size': '30883', 'binary': False, 'copies': '2', 'ref': 'refs/heads/master', 'path': 'src/cocos2d/core/CCDirector.js', 'mode': '33188', 'license': 'mit', 'language': [{'name': 'HTML', 'bytes': '963'}, {'name': 'JavaScript', 'bytes': '2569270'}]} |
.class abstract Landroid/accounts/AccountManagerService$Session;
.super Landroid/accounts/IAccountAuthenticatorResponse$Stub;
.source "AccountManagerService.java"
# interfaces
.implements Landroid/os/IBinder$DeathRecipient;
.implements Landroid/content/ServiceConnection;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Landroid/accounts/AccountManagerService;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x402
name = "Session"
.end annotation
# instance fields
.field final mAccountType:Ljava/lang/String;
.field protected final mAccounts:Landroid/accounts/AccountManagerService$UserAccounts;
.field mAuthenticator:Landroid/accounts/IAccountAuthenticator;
.field final mCreationTime:J
.field final mExpectActivityLaunch:Z
.field private mNumErrors:I
.field private mNumRequestContinued:I
.field public mNumResults:I
.field mResponse:Landroid/accounts/IAccountManagerResponse;
.field private final mStripAuthTokenFromResult:Z
.field final synthetic this$0:Landroid/accounts/AccountManagerService;
# direct methods
.method public constructor <init>(Landroid/accounts/AccountManagerService;Landroid/accounts/AccountManagerService$UserAccounts;Landroid/accounts/IAccountManagerResponse;Ljava/lang/String;ZZ)V
.locals 5
.parameter
.parameter "accounts"
.parameter "response"
.parameter "accountType"
.parameter "expectActivityLaunch"
.parameter "stripAuthTokenFromResult"
.prologue
const/4 v4, 0x0
const/4 v1, 0x0
.line 1630
iput-object p1, p0, Landroid/accounts/AccountManagerService$Session;->this$0:Landroid/accounts/AccountManagerService;
.line 1631
invoke-direct {p0}, Landroid/accounts/IAccountAuthenticatorResponse$Stub;-><init>()V
.line 1619
iput v1, p0, Landroid/accounts/AccountManagerService$Session;->mNumResults:I
.line 1620
iput v1, p0, Landroid/accounts/AccountManagerService$Session;->mNumRequestContinued:I
.line 1621
iput v1, p0, Landroid/accounts/AccountManagerService$Session;->mNumErrors:I
.line 1624
iput-object v4, p0, Landroid/accounts/AccountManagerService$Session;->mAuthenticator:Landroid/accounts/IAccountAuthenticator;
.line 1632
if-nez p3, :cond_0
new-instance v1, Ljava/lang/IllegalArgumentException;
const-string/jumbo v2, "response is null"
invoke-direct {v1, v2}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw v1
.line 1633
:cond_0
if-nez p4, :cond_1
new-instance v1, Ljava/lang/IllegalArgumentException;
const-string v2, "accountType is null"
invoke-direct {v1, v2}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw v1
.line 1634
:cond_1
iput-object p2, p0, Landroid/accounts/AccountManagerService$Session;->mAccounts:Landroid/accounts/AccountManagerService$UserAccounts;
.line 1635
iput-boolean p6, p0, Landroid/accounts/AccountManagerService$Session;->mStripAuthTokenFromResult:Z
.line 1636
iput-object p3, p0, Landroid/accounts/AccountManagerService$Session;->mResponse:Landroid/accounts/IAccountManagerResponse;
.line 1637
iput-object p4, p0, Landroid/accounts/AccountManagerService$Session;->mAccountType:Ljava/lang/String;
.line 1638
iput-boolean p5, p0, Landroid/accounts/AccountManagerService$Session;->mExpectActivityLaunch:Z
.line 1639
invoke-static {}, Landroid/os/SystemClock;->elapsedRealtime()J
move-result-wide v1
iput-wide v1, p0, Landroid/accounts/AccountManagerService$Session;->mCreationTime:J
.line 1640
#getter for: Landroid/accounts/AccountManagerService;->mSessions:Ljava/util/LinkedHashMap;
invoke-static {p1}, Landroid/accounts/AccountManagerService;->access$1400(Landroid/accounts/AccountManagerService;)Ljava/util/LinkedHashMap;
move-result-object v2
monitor-enter v2
.line 1641
:try_start_0
#getter for: Landroid/accounts/AccountManagerService;->mSessions:Ljava/util/LinkedHashMap;
invoke-static {p1}, Landroid/accounts/AccountManagerService;->access$1400(Landroid/accounts/AccountManagerService;)Ljava/util/LinkedHashMap;
move-result-object v1
invoke-virtual {p0}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object v3
invoke-virtual {v1, v3, p0}, Ljava/util/LinkedHashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
.line 1642
monitor-exit v2
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
.line 1644
:try_start_1
invoke-interface {p3}, Landroid/accounts/IAccountManagerResponse;->asBinder()Landroid/os/IBinder;
move-result-object v1
const/4 v2, 0x0
invoke-interface {v1, p0, v2}, Landroid/os/IBinder;->linkToDeath(Landroid/os/IBinder$DeathRecipient;I)V
:try_end_1
.catch Landroid/os/RemoteException; {:try_start_1 .. :try_end_1} :catch_0
.line 1649
:goto_0
return-void
.line 1642
:catchall_0
move-exception v1
:try_start_2
monitor-exit v2
:try_end_2
.catchall {:try_start_2 .. :try_end_2} :catchall_0
throw v1
.line 1645
:catch_0
move-exception v0
.line 1646
.local v0, e:Landroid/os/RemoteException;
iput-object v4, p0, Landroid/accounts/AccountManagerService$Session;->mResponse:Landroid/accounts/IAccountManagerResponse;
.line 1647
invoke-virtual {p0}, Landroid/accounts/AccountManagerService$Session;->binderDied()V
goto :goto_0
.end method
.method private bindToAuthenticator(Ljava/lang/String;)Z
.locals 8
.parameter "authenticatorType"
.prologue
const/4 v3, 0x1
const/4 v2, 0x0
const/4 v7, 0x2
.line 1841
iget-object v4, p0, Landroid/accounts/AccountManagerService$Session;->this$0:Landroid/accounts/AccountManagerService;
#getter for: Landroid/accounts/AccountManagerService;->mAuthenticatorCache:Landroid/accounts/IAccountAuthenticatorCache;
invoke-static {v4}, Landroid/accounts/AccountManagerService;->access$1800(Landroid/accounts/AccountManagerService;)Landroid/accounts/IAccountAuthenticatorCache;
move-result-object v4
invoke-static {p1}, Landroid/accounts/AuthenticatorDescription;->newKey(Ljava/lang/String;)Landroid/accounts/AuthenticatorDescription;
move-result-object v5
invoke-interface {v4, v5}, Landroid/accounts/IAccountAuthenticatorCache;->getServiceInfo(Landroid/accounts/AuthenticatorDescription;)Landroid/content/pm/RegisteredServicesCache$ServiceInfo;
move-result-object v0
.line 1844
.local v0, authenticatorInfo:Landroid/content/pm/RegisteredServicesCache$ServiceInfo;,"Landroid/content/pm/RegisteredServicesCache$ServiceInfo<Landroid/accounts/AuthenticatorDescription;>;"
if-nez v0, :cond_1
.line 1845
const-string v3, "AccountManagerService"
invoke-static {v3, v7}, Landroid/util/Log;->isLoggable(Ljava/lang/String;I)Z
move-result v3
if-eqz v3, :cond_0
.line 1846
const-string v3, "AccountManagerService"
new-instance v4, Ljava/lang/StringBuilder;
invoke-direct {v4}, Ljava/lang/StringBuilder;-><init>()V
const-string/jumbo v5, "there is no authenticator for "
invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v4
invoke-virtual {v4, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v4
const-string v5, ", bailing out"
invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v4
invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v4
invoke-static {v3, v4}, Landroid/util/Log;->v(Ljava/lang/String;Ljava/lang/String;)I
.line 1866
:cond_0
:goto_0
return v2
.line 1852
:cond_1
new-instance v1, Landroid/content/Intent;
invoke-direct {v1}, Landroid/content/Intent;-><init>()V
.line 1853
.local v1, intent:Landroid/content/Intent;
const-string v4, "android.accounts.AccountAuthenticator"
invoke-virtual {v1, v4}, Landroid/content/Intent;->setAction(Ljava/lang/String;)Landroid/content/Intent;
.line 1854
iget-object v4, v0, Landroid/content/pm/RegisteredServicesCache$ServiceInfo;->componentName:Landroid/content/ComponentName;
invoke-virtual {v1, v4}, Landroid/content/Intent;->setComponent(Landroid/content/ComponentName;)Landroid/content/Intent;
.line 1855
const-string v4, "AccountManagerService"
invoke-static {v4, v7}, Landroid/util/Log;->isLoggable(Ljava/lang/String;I)Z
move-result v4
if-eqz v4, :cond_2
.line 1856
const-string v4, "AccountManagerService"
new-instance v5, Ljava/lang/StringBuilder;
invoke-direct {v5}, Ljava/lang/StringBuilder;-><init>()V
const-string/jumbo v6, "performing bindService to "
invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v5
iget-object v6, v0, Landroid/content/pm/RegisteredServicesCache$ServiceInfo;->componentName:Landroid/content/ComponentName;
invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
move-result-object v5
invoke-virtual {v5}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v5
invoke-static {v4, v5}, Landroid/util/Log;->v(Ljava/lang/String;Ljava/lang/String;)I
.line 1858
:cond_2
iget-object v4, p0, Landroid/accounts/AccountManagerService$Session;->this$0:Landroid/accounts/AccountManagerService;
#getter for: Landroid/accounts/AccountManagerService;->mContext:Landroid/content/Context;
invoke-static {v4}, Landroid/accounts/AccountManagerService;->access$1500(Landroid/accounts/AccountManagerService;)Landroid/content/Context;
move-result-object v4
iget-object v5, p0, Landroid/accounts/AccountManagerService$Session;->mAccounts:Landroid/accounts/AccountManagerService$UserAccounts;
#getter for: Landroid/accounts/AccountManagerService$UserAccounts;->userId:I
invoke-static {v5}, Landroid/accounts/AccountManagerService$UserAccounts;->access$700(Landroid/accounts/AccountManagerService$UserAccounts;)I
move-result v5
invoke-virtual {v4, v1, p0, v3, v5}, Landroid/content/Context;->bindService(Landroid/content/Intent;Landroid/content/ServiceConnection;II)Z
move-result v4
if-nez v4, :cond_3
.line 1859
const-string v3, "AccountManagerService"
invoke-static {v3, v7}, Landroid/util/Log;->isLoggable(Ljava/lang/String;I)Z
move-result v3
if-eqz v3, :cond_0
.line 1860
const-string v3, "AccountManagerService"
new-instance v4, Ljava/lang/StringBuilder;
invoke-direct {v4}, Ljava/lang/StringBuilder;-><init>()V
const-string v5, "bindService to "
invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v4
iget-object v5, v0, Landroid/content/pm/RegisteredServicesCache$ServiceInfo;->componentName:Landroid/content/ComponentName;
invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
move-result-object v4
const-string v5, " failed"
invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v4
invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v4
invoke-static {v3, v4}, Landroid/util/Log;->v(Ljava/lang/String;Ljava/lang/String;)I
goto :goto_0
:cond_3
move v2, v3
.line 1866
goto :goto_0
.end method
.method private close()V
.locals 3
.prologue
.line 1662
iget-object v0, p0, Landroid/accounts/AccountManagerService$Session;->this$0:Landroid/accounts/AccountManagerService;
#getter for: Landroid/accounts/AccountManagerService;->mSessions:Ljava/util/LinkedHashMap;
invoke-static {v0}, Landroid/accounts/AccountManagerService;->access$1400(Landroid/accounts/AccountManagerService;)Ljava/util/LinkedHashMap;
move-result-object v1
monitor-enter v1
.line 1663
:try_start_0
iget-object v0, p0, Landroid/accounts/AccountManagerService$Session;->this$0:Landroid/accounts/AccountManagerService;
#getter for: Landroid/accounts/AccountManagerService;->mSessions:Ljava/util/LinkedHashMap;
invoke-static {v0}, Landroid/accounts/AccountManagerService;->access$1400(Landroid/accounts/AccountManagerService;)Ljava/util/LinkedHashMap;
move-result-object v0
invoke-virtual {p0}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object v2
invoke-virtual {v0, v2}, Ljava/util/LinkedHashMap;->remove(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v0
if-nez v0, :cond_0
.line 1665
monitor-exit v1
.line 1677
:goto_0
return-void
.line 1667
:cond_0
monitor-exit v1
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
.line 1668
iget-object v0, p0, Landroid/accounts/AccountManagerService$Session;->mResponse:Landroid/accounts/IAccountManagerResponse;
if-eqz v0, :cond_1
.line 1670
iget-object v0, p0, Landroid/accounts/AccountManagerService$Session;->mResponse:Landroid/accounts/IAccountManagerResponse;
invoke-interface {v0}, Landroid/accounts/IAccountManagerResponse;->asBinder()Landroid/os/IBinder;
move-result-object v0
const/4 v1, 0x0
invoke-interface {v0, p0, v1}, Landroid/os/IBinder;->unlinkToDeath(Landroid/os/IBinder$DeathRecipient;I)Z
.line 1673
const/4 v0, 0x0
iput-object v0, p0, Landroid/accounts/AccountManagerService$Session;->mResponse:Landroid/accounts/IAccountManagerResponse;
.line 1675
:cond_1
invoke-virtual {p0}, Landroid/accounts/AccountManagerService$Session;->cancelTimeout()V
.line 1676
invoke-direct {p0}, Landroid/accounts/AccountManagerService$Session;->unbind()V
goto :goto_0
.line 1667
:catchall_0
move-exception v0
:try_start_1
monitor-exit v1
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_0
throw v0
.end method
.method private unbind()V
.locals 1
.prologue
.line 1707
iget-object v0, p0, Landroid/accounts/AccountManagerService$Session;->mAuthenticator:Landroid/accounts/IAccountAuthenticator;
if-eqz v0, :cond_0
.line 1708
const/4 v0, 0x0
iput-object v0, p0, Landroid/accounts/AccountManagerService$Session;->mAuthenticator:Landroid/accounts/IAccountAuthenticator;
.line 1709
iget-object v0, p0, Landroid/accounts/AccountManagerService$Session;->this$0:Landroid/accounts/AccountManagerService;
#getter for: Landroid/accounts/AccountManagerService;->mContext:Landroid/content/Context;
invoke-static {v0}, Landroid/accounts/AccountManagerService;->access$1500(Landroid/accounts/AccountManagerService;)Landroid/content/Context;
move-result-object v0
invoke-virtual {v0, p0}, Landroid/content/Context;->unbindService(Landroid/content/ServiceConnection;)V
.line 1711
:cond_0
return-void
.end method
# virtual methods
.method bind()V
.locals 3
.prologue
.line 1697
const-string v0, "AccountManagerService"
const/4 v1, 0x2
invoke-static {v0, v1}, Landroid/util/Log;->isLoggable(Ljava/lang/String;I)Z
move-result v0
if-eqz v0, :cond_0
.line 1698
const-string v0, "AccountManagerService"
new-instance v1, Ljava/lang/StringBuilder;
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
const-string v2, "initiating bind to authenticator type "
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v1
iget-object v2, p0, Landroid/accounts/AccountManagerService$Session;->mAccountType:Ljava/lang/String;
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v1
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v1
invoke-static {v0, v1}, Landroid/util/Log;->v(Ljava/lang/String;Ljava/lang/String;)I
.line 1700
:cond_0
iget-object v0, p0, Landroid/accounts/AccountManagerService$Session;->mAccountType:Ljava/lang/String;
invoke-direct {p0, v0}, Landroid/accounts/AccountManagerService$Session;->bindToAuthenticator(Ljava/lang/String;)Z
move-result v0
if-nez v0, :cond_1
.line 1701
const-string v0, "AccountManagerService"
new-instance v1, Ljava/lang/StringBuilder;
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
const-string v2, "bind attempt failed for "
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v1
invoke-virtual {p0}, Landroid/accounts/AccountManagerService$Session;->toDebugString()Ljava/lang/String;
move-result-object v2
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v1
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v1
invoke-static {v0, v1}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I
.line 1702
const/4 v0, 0x1
const-string v1, "bind failure"
invoke-virtual {p0, v0, v1}, Landroid/accounts/AccountManagerService$Session;->onError(ILjava/lang/String;)V
.line 1704
:cond_1
return-void
.end method
.method public binderDied()V
.locals 1
.prologue
.line 1680
const/4 v0, 0x0
iput-object v0, p0, Landroid/accounts/AccountManagerService$Session;->mResponse:Landroid/accounts/IAccountManagerResponse;
.line 1681
invoke-direct {p0}, Landroid/accounts/AccountManagerService$Session;->close()V
.line 1682
return-void
.end method
.method public cancelTimeout()V
.locals 2
.prologue
.line 1719
iget-object v0, p0, Landroid/accounts/AccountManagerService$Session;->this$0:Landroid/accounts/AccountManagerService;
#getter for: Landroid/accounts/AccountManagerService;->mMessageHandler:Landroid/accounts/AccountManagerService$MessageHandler;
invoke-static {v0}, Landroid/accounts/AccountManagerService;->access$1600(Landroid/accounts/AccountManagerService;)Landroid/accounts/AccountManagerService$MessageHandler;
move-result-object v0
const/4 v1, 0x3
invoke-virtual {v0, v1, p0}, Landroid/accounts/AccountManagerService$MessageHandler;->removeMessages(ILjava/lang/Object;)V
.line 1720
return-void
.end method
.method getResponseAndClose()Landroid/accounts/IAccountManagerResponse;
.locals 2
.prologue
.line 1652
iget-object v1, p0, Landroid/accounts/AccountManagerService$Session;->mResponse:Landroid/accounts/IAccountManagerResponse;
if-nez v1, :cond_0
.line 1654
const/4 v0, 0x0
.line 1658
:goto_0
return-object v0
.line 1656
:cond_0
iget-object v0, p0, Landroid/accounts/AccountManagerService$Session;->mResponse:Landroid/accounts/IAccountManagerResponse;
.line 1657
.local v0, response:Landroid/accounts/IAccountManagerResponse;
invoke-direct {p0}, Landroid/accounts/AccountManagerService$Session;->close()V
goto :goto_0
.end method
.method public onError(ILjava/lang/String;)V
.locals 6
.parameter "errorCode"
.parameter "errorMessage"
.prologue
const/4 v5, 0x2
.line 1815
iget v2, p0, Landroid/accounts/AccountManagerService$Session;->mNumErrors:I
add-int/lit8 v2, v2, 0x1
iput v2, p0, Landroid/accounts/AccountManagerService$Session;->mNumErrors:I
.line 1816
invoke-virtual {p0}, Landroid/accounts/AccountManagerService$Session;->getResponseAndClose()Landroid/accounts/IAccountManagerResponse;
move-result-object v1
.line 1817
.local v1, response:Landroid/accounts/IAccountManagerResponse;
if-eqz v1, :cond_2
.line 1818
const-string v2, "AccountManagerService"
invoke-static {v2, v5}, Landroid/util/Log;->isLoggable(Ljava/lang/String;I)Z
move-result v2
if-eqz v2, :cond_0
.line 1819
const-string v2, "AccountManagerService"
new-instance v3, Ljava/lang/StringBuilder;
invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V
invoke-virtual {p0}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
move-result-object v4
invoke-virtual {v4}, Ljava/lang/Class;->getSimpleName()Ljava/lang/String;
move-result-object v4
invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v3
const-string v4, " calling onError() on response "
invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v3
invoke-virtual {v3, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
move-result-object v3
invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v3
invoke-static {v2, v3}, Landroid/util/Log;->v(Ljava/lang/String;Ljava/lang/String;)I
.line 1823
:cond_0
:try_start_0
invoke-interface {v1, p1, p2}, Landroid/accounts/IAccountManagerResponse;->onError(ILjava/lang/String;)V
:try_end_0
.catch Landroid/os/RemoteException; {:try_start_0 .. :try_end_0} :catch_0
.line 1834
:cond_1
:goto_0
return-void
.line 1824
:catch_0
move-exception v0
.line 1825
.local v0, e:Landroid/os/RemoteException;
const-string v2, "AccountManagerService"
invoke-static {v2, v5}, Landroid/util/Log;->isLoggable(Ljava/lang/String;I)Z
move-result v2
if-eqz v2, :cond_1
.line 1826
const-string v2, "AccountManagerService"
const-string v3, "Session.onError: caught RemoteException while responding"
invoke-static {v2, v3, v0}, Landroid/util/Log;->v(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I
goto :goto_0
.line 1830
.end local v0 #e:Landroid/os/RemoteException;
:cond_2
const-string v2, "AccountManagerService"
invoke-static {v2, v5}, Landroid/util/Log;->isLoggable(Ljava/lang/String;I)Z
move-result v2
if-eqz v2, :cond_1
.line 1831
const-string v2, "AccountManagerService"
const-string v3, "Session.onError: already closed"
invoke-static {v2, v3}, Landroid/util/Log;->v(Ljava/lang/String;Ljava/lang/String;)I
goto :goto_0
.end method
.method public onRequestContinued()V
.locals 1
.prologue
.line 1811
iget v0, p0, Landroid/accounts/AccountManagerService$Session;->mNumRequestContinued:I
add-int/lit8 v0, v0, 0x1
iput v0, p0, Landroid/accounts/AccountManagerService$Session;->mNumRequestContinued:I
.line 1812
return-void
.end method
.method public onResult(Landroid/os/Bundle;)V
.locals 9
.parameter "result"
.prologue
const/4 v8, 0x2
.line 1766
iget v5, p0, Landroid/accounts/AccountManagerService$Session;->mNumResults:I
add-int/lit8 v5, v5, 0x1
iput v5, p0, Landroid/accounts/AccountManagerService$Session;->mNumResults:I
.line 1767
if-eqz p1, :cond_0
const-string v5, "authtoken"
invoke-virtual {p1, v5}, Landroid/os/Bundle;->getString(Ljava/lang/String;)Ljava/lang/String;
move-result-object v5
invoke-static {v5}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
move-result v5
if-nez v5, :cond_0
.line 1768
const-string v5, "authAccount"
invoke-virtual {p1, v5}, Landroid/os/Bundle;->getString(Ljava/lang/String;)Ljava/lang/String;
move-result-object v1
.line 1769
.local v1, accountName:Ljava/lang/String;
const-string v5, "accountType"
invoke-virtual {p1, v5}, Landroid/os/Bundle;->getString(Ljava/lang/String;)Ljava/lang/String;
move-result-object v2
.line 1770
.local v2, accountType:Ljava/lang/String;
invoke-static {v1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
move-result v5
if-nez v5, :cond_0
invoke-static {v2}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
move-result v5
if-nez v5, :cond_0
.line 1771
new-instance v0, Landroid/accounts/Account;
invoke-direct {v0, v1, v2}, Landroid/accounts/Account;-><init>(Ljava/lang/String;Ljava/lang/String;)V
.line 1772
.local v0, account:Landroid/accounts/Account;
iget-object v5, p0, Landroid/accounts/AccountManagerService$Session;->this$0:Landroid/accounts/AccountManagerService;
iget-object v6, p0, Landroid/accounts/AccountManagerService$Session;->this$0:Landroid/accounts/AccountManagerService;
iget-object v7, p0, Landroid/accounts/AccountManagerService$Session;->mAccounts:Landroid/accounts/AccountManagerService$UserAccounts;
#calls: Landroid/accounts/AccountManagerService;->getSigninRequiredNotificationId(Landroid/accounts/AccountManagerService$UserAccounts;Landroid/accounts/Account;)Ljava/lang/Integer;
invoke-static {v6, v7, v0}, Landroid/accounts/AccountManagerService;->access$1700(Landroid/accounts/AccountManagerService;Landroid/accounts/AccountManagerService$UserAccounts;Landroid/accounts/Account;)Ljava/lang/Integer;
move-result-object v6
invoke-virtual {v6}, Ljava/lang/Integer;->intValue()I
move-result v6
invoke-virtual {v5, v6}, Landroid/accounts/AccountManagerService;->cancelNotification(I)V
.line 1776
.end local v0 #account:Landroid/accounts/Account;
.end local v1 #accountName:Ljava/lang/String;
.end local v2 #accountType:Ljava/lang/String;
:cond_0
iget-boolean v5, p0, Landroid/accounts/AccountManagerService$Session;->mExpectActivityLaunch:Z
if-eqz v5, :cond_3
if-eqz p1, :cond_3
const-string v5, "intent"
invoke-virtual {p1, v5}, Landroid/os/Bundle;->containsKey(Ljava/lang/String;)Z
move-result v5
if-eqz v5, :cond_3
.line 1778
iget-object v4, p0, Landroid/accounts/AccountManagerService$Session;->mResponse:Landroid/accounts/IAccountManagerResponse;
.line 1782
.local v4, response:Landroid/accounts/IAccountManagerResponse;
:goto_0
if-eqz v4, :cond_2
.line 1784
if-nez p1, :cond_4
.line 1785
:try_start_0
const-string v5, "AccountManagerService"
const/4 v6, 0x2
invoke-static {v5, v6}, Landroid/util/Log;->isLoggable(Ljava/lang/String;I)Z
move-result v5
if-eqz v5, :cond_1
.line 1786
const-string v5, "AccountManagerService"
new-instance v6, Ljava/lang/StringBuilder;
invoke-direct {v6}, Ljava/lang/StringBuilder;-><init>()V
invoke-virtual {p0}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
move-result-object v7
invoke-virtual {v7}, Ljava/lang/Class;->getSimpleName()Ljava/lang/String;
move-result-object v7
invoke-virtual {v6, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v6
const-string v7, " calling onError() on response "
invoke-virtual {v6, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v6
invoke-virtual {v6, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
move-result-object v6
invoke-virtual {v6}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v6
invoke-static {v5, v6}, Landroid/util/Log;->v(Ljava/lang/String;Ljava/lang/String;)I
.line 1789
:cond_1
const/4 v5, 0x5
const-string/jumbo v6, "null bundle returned"
invoke-interface {v4, v5, v6}, Landroid/accounts/IAccountManagerResponse;->onError(ILjava/lang/String;)V
:try_end_0
.catch Landroid/os/RemoteException; {:try_start_0 .. :try_end_0} :catch_0
.line 1808
:cond_2
:goto_1
return-void
.line 1780
.end local v4 #response:Landroid/accounts/IAccountManagerResponse;
:cond_3
invoke-virtual {p0}, Landroid/accounts/AccountManagerService$Session;->getResponseAndClose()Landroid/accounts/IAccountManagerResponse;
move-result-object v4
.restart local v4 #response:Landroid/accounts/IAccountManagerResponse;
goto :goto_0
.line 1792
:cond_4
:try_start_1
iget-boolean v5, p0, Landroid/accounts/AccountManagerService$Session;->mStripAuthTokenFromResult:Z
if-eqz v5, :cond_5
.line 1793
const-string v5, "authtoken"
invoke-virtual {p1, v5}, Landroid/os/Bundle;->remove(Ljava/lang/String;)V
.line 1795
:cond_5
const-string v5, "AccountManagerService"
const/4 v6, 0x2
invoke-static {v5, v6}, Landroid/util/Log;->isLoggable(Ljava/lang/String;I)Z
move-result v5
if-eqz v5, :cond_6
.line 1796
const-string v5, "AccountManagerService"
new-instance v6, Ljava/lang/StringBuilder;
invoke-direct {v6}, Ljava/lang/StringBuilder;-><init>()V
invoke-virtual {p0}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
move-result-object v7
invoke-virtual {v7}, Ljava/lang/Class;->getSimpleName()Ljava/lang/String;
move-result-object v7
invoke-virtual {v6, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v6
const-string v7, " calling onResult() on response "
invoke-virtual {v6, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v6
invoke-virtual {v6, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
move-result-object v6
invoke-virtual {v6}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v6
invoke-static {v5, v6}, Landroid/util/Log;->v(Ljava/lang/String;Ljava/lang/String;)I
.line 1799
:cond_6
invoke-interface {v4, p1}, Landroid/accounts/IAccountManagerResponse;->onResult(Landroid/os/Bundle;)V
:try_end_1
.catch Landroid/os/RemoteException; {:try_start_1 .. :try_end_1} :catch_0
goto :goto_1
.line 1801
:catch_0
move-exception v3
.line 1803
.local v3, e:Landroid/os/RemoteException;
const-string v5, "AccountManagerService"
invoke-static {v5, v8}, Landroid/util/Log;->isLoggable(Ljava/lang/String;I)Z
move-result v5
if-eqz v5, :cond_2
.line 1804
const-string v5, "AccountManagerService"
const-string v6, "failure while notifying response"
invoke-static {v5, v6, v3}, Landroid/util/Log;->v(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I
goto :goto_1
.end method
.method public onServiceConnected(Landroid/content/ComponentName;Landroid/os/IBinder;)V
.locals 3
.parameter "name"
.parameter "service"
.prologue
.line 1723
invoke-static {p2}, Landroid/accounts/IAccountAuthenticator$Stub;->asInterface(Landroid/os/IBinder;)Landroid/accounts/IAccountAuthenticator;
move-result-object v1
iput-object v1, p0, Landroid/accounts/AccountManagerService$Session;->mAuthenticator:Landroid/accounts/IAccountAuthenticator;
.line 1725
:try_start_0
invoke-virtual {p0}, Landroid/accounts/AccountManagerService$Session;->run()V
:try_end_0
.catch Landroid/os/RemoteException; {:try_start_0 .. :try_end_0} :catch_0
.line 1730
:goto_0
return-void
.line 1726
:catch_0
move-exception v0
.line 1727
.local v0, e:Landroid/os/RemoteException;
const/4 v1, 0x1
const-string/jumbo v2, "remote exception"
invoke-virtual {p0, v1, v2}, Landroid/accounts/AccountManagerService$Session;->onError(ILjava/lang/String;)V
goto :goto_0
.end method
.method public onServiceDisconnected(Landroid/content/ComponentName;)V
.locals 4
.parameter "name"
.prologue
.line 1733
const/4 v2, 0x0
iput-object v2, p0, Landroid/accounts/AccountManagerService$Session;->mAuthenticator:Landroid/accounts/IAccountAuthenticator;
.line 1734
invoke-virtual {p0}, Landroid/accounts/AccountManagerService$Session;->getResponseAndClose()Landroid/accounts/IAccountManagerResponse;
move-result-object v1
.line 1735
.local v1, response:Landroid/accounts/IAccountManagerResponse;
if-eqz v1, :cond_0
.line 1737
const/4 v2, 0x1
:try_start_0
const-string v3, "disconnected"
invoke-interface {v1, v2, v3}, Landroid/accounts/IAccountManagerResponse;->onError(ILjava/lang/String;)V
:try_end_0
.catch Landroid/os/RemoteException; {:try_start_0 .. :try_end_0} :catch_0
.line 1746
:cond_0
:goto_0
return-void
.line 1739
:catch_0
move-exception v0
.line 1740
.local v0, e:Landroid/os/RemoteException;
const-string v2, "AccountManagerService"
const/4 v3, 0x2
invoke-static {v2, v3}, Landroid/util/Log;->isLoggable(Ljava/lang/String;I)Z
move-result v2
if-eqz v2, :cond_0
.line 1741
const-string v2, "AccountManagerService"
const-string v3, "Session.onServiceDisconnected: caught RemoteException while responding"
invoke-static {v2, v3, v0}, Landroid/util/Log;->v(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I
goto :goto_0
.end method
.method public onTimedOut()V
.locals 4
.prologue
.line 1751
invoke-virtual {p0}, Landroid/accounts/AccountManagerService$Session;->getResponseAndClose()Landroid/accounts/IAccountManagerResponse;
move-result-object v1
.line 1752
.local v1, response:Landroid/accounts/IAccountManagerResponse;
if-eqz v1, :cond_0
.line 1754
const/4 v2, 0x1
:try_start_0
const-string/jumbo v3, "timeout"
invoke-interface {v1, v2, v3}, Landroid/accounts/IAccountManagerResponse;->onError(ILjava/lang/String;)V
:try_end_0
.catch Landroid/os/RemoteException; {:try_start_0 .. :try_end_0} :catch_0
.line 1763
:cond_0
:goto_0
return-void
.line 1756
:catch_0
move-exception v0
.line 1757
.local v0, e:Landroid/os/RemoteException;
const-string v2, "AccountManagerService"
const/4 v3, 0x2
invoke-static {v2, v3}, Landroid/util/Log;->isLoggable(Ljava/lang/String;I)Z
move-result v2
if-eqz v2, :cond_0
.line 1758
const-string v2, "AccountManagerService"
const-string v3, "Session.onTimedOut: caught RemoteException while responding"
invoke-static {v2, v3, v0}, Landroid/util/Log;->v(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I
goto :goto_0
.end method
.method public abstract run()V
.annotation system Ldalvik/annotation/Throws;
value = {
Landroid/os/RemoteException;
}
.end annotation
.end method
.method public scheduleTimeout()V
.locals 4
.prologue
.line 1714
iget-object v0, p0, Landroid/accounts/AccountManagerService$Session;->this$0:Landroid/accounts/AccountManagerService;
#getter for: Landroid/accounts/AccountManagerService;->mMessageHandler:Landroid/accounts/AccountManagerService$MessageHandler;
invoke-static {v0}, Landroid/accounts/AccountManagerService;->access$1600(Landroid/accounts/AccountManagerService;)Landroid/accounts/AccountManagerService$MessageHandler;
move-result-object v0
iget-object v1, p0, Landroid/accounts/AccountManagerService$Session;->this$0:Landroid/accounts/AccountManagerService;
#getter for: Landroid/accounts/AccountManagerService;->mMessageHandler:Landroid/accounts/AccountManagerService$MessageHandler;
invoke-static {v1}, Landroid/accounts/AccountManagerService;->access$1600(Landroid/accounts/AccountManagerService;)Landroid/accounts/AccountManagerService$MessageHandler;
move-result-object v1
const/4 v2, 0x3
invoke-virtual {v1, v2, p0}, Landroid/accounts/AccountManagerService$MessageHandler;->obtainMessage(ILjava/lang/Object;)Landroid/os/Message;
move-result-object v1
const-wide/32 v2, 0xea60
invoke-virtual {v0, v1, v2, v3}, Landroid/accounts/AccountManagerService$MessageHandler;->sendMessageDelayed(Landroid/os/Message;J)Z
.line 1716
return-void
.end method
.method protected toDebugString()Ljava/lang/String;
.locals 2
.prologue
.line 1685
invoke-static {}, Landroid/os/SystemClock;->elapsedRealtime()J
move-result-wide v0
invoke-virtual {p0, v0, v1}, Landroid/accounts/AccountManagerService$Session;->toDebugString(J)Ljava/lang/String;
move-result-object v0
return-object v0
.end method
.method protected toDebugString(J)Ljava/lang/String;
.locals 5
.parameter "now"
.prologue
.line 1689
new-instance v0, Ljava/lang/StringBuilder;
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
const-string v1, "Session: expectLaunch "
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
iget-boolean v1, p0, Landroid/accounts/AccountManagerService$Session;->mExpectActivityLaunch:Z
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Z)Ljava/lang/StringBuilder;
move-result-object v0
const-string v1, ", connected "
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v1
iget-object v0, p0, Landroid/accounts/AccountManagerService$Session;->mAuthenticator:Landroid/accounts/IAccountAuthenticator;
if-eqz v0, :cond_0
const/4 v0, 0x1
:goto_0
invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Z)Ljava/lang/StringBuilder;
move-result-object v0
const-string v1, ", stats ("
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
iget v1, p0, Landroid/accounts/AccountManagerService$Session;->mNumResults:I
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
move-result-object v0
const-string v1, "/"
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
iget v1, p0, Landroid/accounts/AccountManagerService$Session;->mNumRequestContinued:I
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
move-result-object v0
const-string v1, "/"
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
iget v1, p0, Landroid/accounts/AccountManagerService$Session;->mNumErrors:I
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
move-result-object v0
const-string v1, ")"
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
const-string v1, ", lifetime "
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
iget-wide v1, p0, Landroid/accounts/AccountManagerService$Session;->mCreationTime:J
sub-long v1, p1, v1
long-to-double v1, v1
const-wide v3, 0x408f400000000000L
div-double/2addr v1, v3
invoke-virtual {v0, v1, v2}, Ljava/lang/StringBuilder;->append(D)Ljava/lang/StringBuilder;
move-result-object v0
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
return-object v0
:cond_0
const/4 v0, 0x0
goto :goto_0
.end method
| {'content_hash': '6e3839e221834de0a6741f642010ffe1', 'timestamp': '', 'source': 'github', 'line_count': 1392, 'max_line_length': 225, 'avg_line_length': 28.594827586206897, 'alnum_prop': 0.7230931564666868, 'repo_name': 'baidurom/devices-n7108', 'id': 'fdb2b561c74370e0dbbf2a4cd1b76a30402f48bf', 'size': '39804', 'binary': False, 'copies': '2', 'ref': 'refs/heads/coron-4.1', 'path': 'framework.jar.out/smali/android/accounts/AccountManagerService$Session.smali', 'mode': '33188', 'license': 'apache-2.0', 'language': [{'name': 'Makefile', 'bytes': '12697'}, {'name': 'Shell', 'bytes': '1974'}]} |
<?php
use app\models\general\GeneralLabel;
use yii\helpers\Html;
use yii\grid\GridView;
/* @var $this yii\web\View */
/* @var $searchModel frontend\models\RefMaklumatProgramSearch */
/* @var $dataProvider yii\data\ActiveDataProvider */
$this->title = GeneralLabel::maklumat_program;
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="ref-maklumat-program-index">
<h1><?= Html::encode($this->title) ?></h1>
<?php // echo $this->render('_search', ['model' => $searchModel]); ?>
<p>
<?= Html::a(GeneralLabel::createTitle.' '.GeneralLabel::maklumat_program, ['create'], ['class' => 'btn btn-success']) ?>
</p>
<?= GridView::widget([
'dataProvider' => $dataProvider,
'filterModel' => $searchModel,
'columns' => [
['class' => 'yii\grid\SerialColumn'],
[
'attribute' => 'desc',
'filterInputOptions' => [
'class' => 'form-control',
'placeholder' => GeneralLabel::filter.' '.GeneralLabel::desc,
]
],
//'aktif',
[
'attribute' => 'aktif',
'filterInputOptions' => [
'class' => 'form-control',
'placeholder' => GeneralLabel::filter.' '.GeneralLabel::aktif,
],
'value' => function ($model) {
return $model->aktif == 1 ? GeneralLabel::yes : GeneralLabel::no;
},
],
// 'created',
// 'updated',
['class' => 'yii\grid\ActionColumn'],
],
]); ?>
</div>
| {'content_hash': 'e15d2592409cfe5c708afef5f3aaf729', 'timestamp': '', 'source': 'github', 'line_count': 55, 'max_line_length': 128, 'avg_line_length': 30.29090909090909, 'alnum_prop': 0.4831932773109244, 'repo_name': 'hung101/kbs', 'id': '658e351ed0e397b28aefbd525346728be8a64658', 'size': '1666', 'binary': False, 'copies': '1', 'ref': 'refs/heads/master', 'path': 'frontend/views/ref-maklumat-program/index.php', 'mode': '33188', 'license': 'bsd-3-clause', 'language': [{'name': 'ApacheConf', 'bytes': '113'}, {'name': 'Batchfile', 'bytes': '1541'}, {'name': 'CSS', 'bytes': '4999813'}, {'name': 'HTML', 'bytes': '32884422'}, {'name': 'JavaScript', 'bytes': '38543640'}, {'name': 'PHP', 'bytes': '30558998'}, {'name': 'PowerShell', 'bytes': '936'}, {'name': 'Shell', 'bytes': '5561'}]} |
package bluefinger4j.math.parsii.eval;
import java.util.List;
/**
* Represents an unary function.
* <p>
* An unary function has one arguments which is always evaluated in order to compute the final result.
*/
public abstract class UnaryFunction implements Function {
@Override
public int getNumberOfArguments() {
return 1;
}
@Override
public double eval(List<Expression> args) {
double a = args.get(0).evaluate();
if (Double.isNaN(a)) {
return a;
}
return eval(a);
}
/**
* Performs the computation of the unary function
*
* @param a the argument of the function
* @return the result of calling the function with a as argument
*/
protected abstract double eval(double a);
@Override
public boolean isNaturalFunction() {
return true;
}
}
| {'content_hash': '328f82179f0396967f7571189a87c0f5', 'timestamp': '', 'source': 'github', 'line_count': 40, 'max_line_length': 102, 'avg_line_length': 22.9, 'alnum_prop': 0.6026200873362445, 'repo_name': 'olhoscastanhosrj/Bluefinger4j', 'id': '45715f4769177a77e00bb22acbf0b7b66715238a', 'size': '2058', 'binary': False, 'copies': '1', 'ref': 'refs/heads/master', 'path': 'src/bluefinger4j/math/parsii/eval/UnaryFunction.java', 'mode': '33188', 'license': 'bsd-3-clause', 'language': [{'name': 'Java', 'bytes': '312450'}]} |
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
/*
|--------------------------------------------------------------------------
| Base Site URL
|--------------------------------------------------------------------------
|
| URL to your CodeIgniter root. Typically this will be your base URL,
| WITH a trailing slash:
|
| http://example.com/
|
| If this is not set then CodeIgniter will try guess the protocol, domain
| and path to your installation. However, you should always configure this
| explicitly and never rely on auto-guessing, especially in production
| environments.
|
*/
$config['base_url'] = 'http://localhost/bateman/trunk/';
/*
|--------------------------------------------------------------------------
| Index File
|--------------------------------------------------------------------------
|
| Typically this will be your index.php file, unless you've renamed it to
| something else. If you are using mod_rewrite to remove the page set this
| variable so that it is blank.
|
*/
$config['index_page'] = 'index.php';
/*
|--------------------------------------------------------------------------
| URI PROTOCOL
|--------------------------------------------------------------------------
|
| This item determines which server global should be used to retrieve the
| URI string. The default setting of 'REQUEST_URI' works for most servers.
| If your links do not seem to work, try one of the other delicious flavors:
|
| 'REQUEST_URI' Uses $_SERVER['REQUEST_URI']
| 'QUERY_STRING' Uses $_SERVER['QUERY_STRING']
| 'PATH_INFO' Uses $_SERVER['PATH_INFO']
|
| WARNING: If you set this to 'PATH_INFO', URIs will always be URL-decoded!
*/
$config['uri_protocol'] = 'AUTO';
/*
|--------------------------------------------------------------------------
| URL suffix
|--------------------------------------------------------------------------
|
| This option allows you to add a suffix to all URLs generated by CodeIgniter.
| For more information please see the user guide:
|
| http://codeigniter.com/user_guide/general/urls.html
*/
$config['url_suffix'] = '';
/*
|--------------------------------------------------------------------------
| Default Language
|--------------------------------------------------------------------------
|
| This determines which set of language files should be used. Make sure
| there is an available translation if you intend to use something other
| than english.
|
*/
$config['language'] = 'english';
/*
|--------------------------------------------------------------------------
| Default Character Set
|--------------------------------------------------------------------------
|
| This determines which character set is used by default in various methods
| that require a character set to be provided.
|
| See http://php.net/htmlspecialchars for a list of supported charsets.
|
*/
$config['charset'] = 'UTF-8';
/*
|--------------------------------------------------------------------------
| Enable/Disable System Hooks
|--------------------------------------------------------------------------
|
| If you would like to use the 'hooks' feature you must enable it by
| setting this variable to TRUE (boolean). See the user guide for details.
|
*/
$config['enable_hooks'] = FALSE;
/*
|--------------------------------------------------------------------------
| Class Extension Prefix
|--------------------------------------------------------------------------
|
| This item allows you to set the filename/classname prefix when extending
| native libraries. For more information please see the user guide:
|
| http://codeigniter.com/user_guide/general/core_classes.html
| http://codeigniter.com/user_guide/general/creating_libraries.html
|
*/
$config['subclass_prefix'] = 'MY_';
/*
|--------------------------------------------------------------------------
| Composer auto-loading
|--------------------------------------------------------------------------
|
| Enabling this setting will tell CodeIgniter to look for a Composer
| package auto-loader script in application/vendor/autoload.php.
|
| $config['composer_autoload'] = TRUE;
|
| Or if you have your vendor/ directory located somewhere else, you
| can opt to set a specific path as well:
|
| $config['composer_autoload'] = '/path/to/vendor/autoload.php';
|
| For more information about Composer, please visit http://getcomposer.org/
|
| Note: This will NOT disable or override the CodeIgniter-specific
| autoloading (application/config/autoload.php)
*/
$config['composer_autoload'] = FALSE;
/*
|--------------------------------------------------------------------------
| Allowed URL Characters
|--------------------------------------------------------------------------
|
| This lets you specify which characters are permitted within your URLs.
| When someone tries to submit a URL with disallowed characters they will
| get a warning message.
|
| As a security measure you are STRONGLY encouraged to restrict URLs to
| as few characters as possible. By default only these are allowed: a-z 0-9~%.:_-
|
| Leave blank to allow all characters -- but only if you are insane.
|
| The configured value is actually a regular expression character group
| and it will be executed as: ! preg_match('/^[<permitted_uri_chars>]+$/i
|
| DO NOT CHANGE THIS UNLESS YOU FULLY UNDERSTAND THE REPERCUSSIONS!!
|
*/
$config['permitted_uri_chars'] = 'a-z 0-9~%.:_\-';
/*
|--------------------------------------------------------------------------
| Enable Query Strings
|--------------------------------------------------------------------------
|
| By default CodeIgniter uses search-engine friendly segment based URLs:
| example.com/who/what/where/
|
| By default CodeIgniter enables access to the $_GET array. If for some
| reason you would like to disable it, set 'allow_get_array' to FALSE.
|
| You can optionally enable standard query string based URLs:
| example.com?who=me&what=something&where=here
|
| Options are: TRUE or FALSE (boolean)
|
| The other items let you set the query string 'words' that will
| invoke your controllers and its functions:
| example.com/index.php?c=controller&m=function
|
| Please note that some of the helpers won't work as expected when
| this feature is enabled, since CodeIgniter is designed primarily to
| use segment based URLs.
|
*/
$config['allow_get_array'] = TRUE;
$config['enable_query_strings'] = FALSE;
$config['controller_trigger'] = 'c';
$config['function_trigger'] = 'm';
$config['directory_trigger'] = 'd';
/*
|--------------------------------------------------------------------------
| Error Logging Threshold
|--------------------------------------------------------------------------
|
| You can enable error logging by setting a threshold over zero. The
| threshold determines what gets logged. Threshold options are:
|
| 0 = Disables logging, Error logging TURNED OFF
| 1 = Error Messages (including PHP errors)
| 2 = Debug Messages
| 3 = Informational Messages
| 4 = All Messages
|
| You can also pass an array with threshold levels to show individual error types
|
| array(2) = Debug Messages, without Error Messages
|
| For a live site you'll usually only enable Errors (1) to be logged otherwise
| your log files will fill up very fast.
|
*/
$config['log_threshold'] = 0;
/*
|--------------------------------------------------------------------------
| Error Logging Directory Path
|--------------------------------------------------------------------------
|
| Leave this BLANK unless you would like to set something other than the default
| application/logs/ directory. Use a full server path with trailing slash.
|
*/
$config['log_path'] = '';
/*
|--------------------------------------------------------------------------
| Log File Extension
|--------------------------------------------------------------------------
|
| The default filename extension for log files. The default 'php' allows for
| protecting the log files via basic scripting, when they are to be stored
| under a publicly accessible directory.
|
| Note: Leaving it blank will default to 'php'.
|
*/
$config['log_file_extension'] = '';
/*
|--------------------------------------------------------------------------
| Log File Permissions
|--------------------------------------------------------------------------
|
| The file system permissions to be applied on newly created log files.
|
| IMPORTANT: This MUST be an integer (no quotes) and you MUST use octal
| integer notation (i.e. 0700, 0644, etc.)
*/
$config['log_file_permissions'] = 0644;
/*
|--------------------------------------------------------------------------
| Date Format for Logs
|--------------------------------------------------------------------------
|
| Each item that is logged has an associated date. You can use PHP date
| codes to set your own date formatting
|
*/
$config['log_date_format'] = 'Y-m-d H:i:s';
/*
|--------------------------------------------------------------------------
| Error Views Directory Path
|--------------------------------------------------------------------------
|
| Leave this BLANK unless you would like to set something other than the default
| application/views/errors/ directory. Use a full server path with trailing slash.
|
*/
$config['error_views_path'] = '';
/*
|--------------------------------------------------------------------------
| Cache Directory Path
|--------------------------------------------------------------------------
|
| Leave this BLANK unless you would like to set something other than the default
| application/cache/ directory. Use a full server path with trailing slash.
|
*/
$config['cache_path'] = '';
/*
|--------------------------------------------------------------------------
| Cache Include Query String
|--------------------------------------------------------------------------
|
| Whether to take the URL query string into consideration when generating
| output cache files. Valid options are:
|
| FALSE = Disabled
| TRUE = Enabled, take all query parameters into account.
| Please be aware that this may result in numerous cache
| files generated for the same page over and over again.
| array('q') = Enabled, but only take into account the specified list
| of query parameters.
|
*/
$config['cache_query_string'] = FALSE;
/*
|--------------------------------------------------------------------------
| Encryption Key
|--------------------------------------------------------------------------
|
| If you use the Encryption class, you must set an encryption key.
| See the user guide for more info.
|
| http://codeigniter.com/user_guide/libraries/encryption.html
|
*/
$config['encryption_key'] = '';
/*
|--------------------------------------------------------------------------
| Session Variables
|--------------------------------------------------------------------------
|
| 'sess_driver'
|
| The storage driver to use: files, database, redis, memcached
|
| 'sess_cookie_name'
|
| The session cookie name, must contain only [0-9a-z_-] characters
|
| 'sess_expiration'
|
| The number of SECONDS you want the session to last.
| Setting to 0 (zero) means expire when the browser is closed.
|
| 'sess_save_path'
|
| The location to save sessions to, driver dependent.
|
| For the 'files' driver, it's a path to a writable directory.
| WARNING: Only absolute paths are supported!
|
| For the 'database' driver, it's a table name.
| Please read up the manual for the format with other session drivers.
|
| IMPORTANT: You are REQUIRED to set a valid save path!
|
| 'sess_match_ip'
|
| Whether to match the user's IP address when reading the session data.
|
| 'sess_time_to_update'
|
| How many seconds between CI regenerating the session ID.
|
| 'sess_regenerate_destroy'
|
| Whether to destroy session data associated with the old session ID
| when auto-regenerating the session ID. When set to FALSE, the data
| will be later deleted by the garbage collector.
|
| Other session cookie settings are shared with the rest of the application,
| except for 'cookie_prefix' and 'cookie_httponly', which are ignored here.
|
*/
$config['sess_driver'] = 'files';
$config['sess_cookie_name'] = 'ci_session';
$config['sess_expiration'] = 7200;
$config['sess_save_path'] = NULL;
$config['sess_match_ip'] = FALSE;
$config['sess_time_to_update'] = 300;
$config['sess_regenerate_destroy'] = FALSE;
/*
|--------------------------------------------------------------------------
| Cookie Related Variables
|--------------------------------------------------------------------------
|
| 'cookie_prefix' = Set a cookie name prefix if you need to avoid collisions
| 'cookie_domain' = Set to .your-domain.com for site-wide cookies
| 'cookie_path' = Typically will be a forward slash
| 'cookie_secure' = Cookie will only be set if a secure HTTPS connection exists.
| 'cookie_httponly' = Cookie will only be accessible via HTTP(S) (no javascript)
|
| Note: These settings (with the exception of 'cookie_prefix' and
| 'cookie_httponly') will also affect sessions.
|
*/
$config['cookie_prefix'] = '';
$config['cookie_domain'] = '';
$config['cookie_path'] = '/';
$config['cookie_secure'] = FALSE;
$config['cookie_httponly'] = FALSE;
/*
|--------------------------------------------------------------------------
| Standardize newlines
|--------------------------------------------------------------------------
|
| Determines whether to standardize newline characters in input data,
| meaning to replace \r\n, \r, \n occurrences with the PHP_EOL value.
|
| This is particularly useful for portability between UNIX-based OSes,
| (usually \n) and Windows (\r\n).
|
*/
$config['standardize_newlines'] = FALSE;
/*
|--------------------------------------------------------------------------
| Global XSS Filtering
|--------------------------------------------------------------------------
|
| Determines whether the XSS filter is always active when GET, POST or
| COOKIE data is encountered
|
| WARNING: This feature is DEPRECATED and currently available only
| for backwards compatibility purposes!
|
*/
$config['global_xss_filtering'] = FALSE;
/*
|--------------------------------------------------------------------------
| Cross Site Request Forgery
|--------------------------------------------------------------------------
| Enables a CSRF cookie token to be set. When set to TRUE, token will be
| checked on a submitted form. If you are accepting user data, it is strongly
| recommended CSRF protection be enabled.
|
| 'csrf_token_name' = The token name
| 'csrf_cookie_name' = The cookie name
| 'csrf_expire' = The number in seconds the token should expire.
| 'csrf_regenerate' = Regenerate token on every submission
| 'csrf_exclude_uris' = Array of URIs which ignore CSRF checks
*/
$config['csrf_protection'] = FALSE;
$config['csrf_token_name'] = 'csrf_test_name';
$config['csrf_cookie_name'] = 'csrf_cookie_name';
$config['csrf_expire'] = 7200;
$config['csrf_regenerate'] = TRUE;
$config['csrf_exclude_uris'] = array();
/*
|--------------------------------------------------------------------------
| Output Compression
|--------------------------------------------------------------------------
|
| Enables Gzip output compression for faster page loads. When enabled,
| the output class will test whether your server supports Gzip.
| Even if it does, however, not all browsers support compression
| so enable only if you are reasonably sure your visitors can handle it.
|
| Only used if zlib.output_compression is turned off in your php.ini.
| Please do not use it together with httpd-level output compression.
|
| VERY IMPORTANT: If you are getting a blank page when compression is enabled it
| means you are prematurely outputting something to your browser. It could
| even be a line of whitespace at the end of one of your scripts. For
| compression to work, nothing can be sent before the output buffer is called
| by the output class. Do not 'echo' any values with compression enabled.
|
*/
$config['compress_output'] = FALSE;
/*
|--------------------------------------------------------------------------
| Master Time Reference
|--------------------------------------------------------------------------
|
| Options are 'local' or any PHP supported timezone. This preference tells
| the system whether to use your server's local time as the master 'now'
| reference, or convert it to the configured one timezone. See the 'date
| helper' page of the user guide for information regarding date handling.
|
*/
$config['time_reference'] = 'local';
/*
|--------------------------------------------------------------------------
| Rewrite PHP Short Tags
|--------------------------------------------------------------------------
|
| If your PHP installation does not have short tag support enabled CI
| can rewrite the tags on-the-fly, enabling you to utilize that syntax
| in your view files. Options are TRUE or FALSE (boolean)
|
| Note: You need to have eval() enabled for this to work.
|
*/
$config['rewrite_short_tags'] = FALSE;
/*
|--------------------------------------------------------------------------
| Reverse Proxy IPs
|--------------------------------------------------------------------------
|
| If your server is behind a reverse proxy, you must whitelist the proxy
| IP addresses from which CodeIgniter should trust headers such as
| HTTP_X_FORWARDED_FOR and HTTP_CLIENT_IP in order to properly identify
| the visitor's IP address.
|
| You can use both an array or a comma-separated list of proxy addresses,
| as well as specifying whole subnets. Here are a few examples:
|
| Comma-separated: '10.0.1.200,192.168.5.0/24'
| Array: array('10.0.1.200', '192.168.5.0/24')
*/
$config['proxy_ips'] = '';
$config['header_js'] = array('supersized.3.2.7.min.js'); | {'content_hash': 'fdf1dcdb9725b72548bba8f4b47bc6f2', 'timestamp': '', 'source': 'github', 'line_count': 505, 'max_line_length': 83, 'avg_line_length': 35.233663366336636, 'alnum_prop': 0.5417298937784522, 'repo_name': 'ekkymelynda/bateman', 'id': 'db9412d16c3b1ad48068b9ea227d7375ee411d06', 'size': '17793', 'binary': False, 'copies': '1', 'ref': 'refs/heads/master', 'path': 'application/config/config.php', 'mode': '33188', 'license': 'mit', 'language': [{'name': 'ApacheConf', 'bytes': '436'}, {'name': 'CSS', 'bytes': '944258'}, {'name': 'HTML', 'bytes': '5459559'}, {'name': 'JavaScript', 'bytes': '337258'}, {'name': 'PHP', 'bytes': '2102149'}]} |
import logging
import os
import subprocess
LOG = logging.getLogger(__name__)
def execute(command, cwd=None, exit=0):
"""
Executes a command in a subprocess. Returns a tuple of
(exitcode, out, err).
:param command: Command string to execute.
:param cwd: Directory to execute from.
:param exit: The expected exit code.
"""
original_dir = None
if cwd:
original_dir = os.getcwd()
os.chdir(cwd)
LOG.debug("Changed directory to %s", cwd)
LOG.info("Running: '%s'", command)
process = subprocess.Popen(command,
cwd=os.getcwd(),
stdin=subprocess.PIPE,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE,
shell=True)
(out, err) = process.communicate()
exitcode = process.wait()
LOG.debug("Command exited with rc: %s; STDOUT: %s; STDERR: %s" %
(exitcode, out, err))
if cwd:
os.chdir(original_dir)
LOG.debug("Changed directory back to %s", original_dir)
if exitcode != exit:
raise Exception("Failed to run '%s': rc: %d, out: '%s', err: '%s'" %
(command, exitcode, out, err))
return out
def relative_pathify(path):
if path.startswith('/'):
return path[1:]
return path
| {'content_hash': 'cdfa1a45080c36f9b0dea371bceeb956', 'timestamp': '', 'source': 'github', 'line_count': 51, 'max_line_length': 76, 'avg_line_length': 27.235294117647058, 'alnum_prop': 0.5413966882649388, 'repo_name': 'blueboxgroup/giftwrap', 'id': '476ed756a379e5c0b06cb75eaeda2119cc8896c7', 'size': '2061', 'binary': False, 'copies': '3', 'ref': 'refs/heads/master', 'path': 'giftwrap/util.py', 'mode': '33188', 'license': 'apache-2.0', 'language': [{'name': 'Makefile', 'bytes': '140'}, {'name': 'Python', 'bytes': '53998'}, {'name': 'Shell', 'bytes': '468'}]} |
'*******************************************************************************************'
' '
' Download Free Evaluation Version From: https://bytescout.com/download/web-installer '
' '
' Also available as Web API! Get free API Key https://app.pdf.co/signup '
' '
' Copyright © 2017-2020 ByteScout, Inc. All rights reserved. '
' https://www.bytescout.com '
' https://www.pdf.co '
'*******************************************************************************************'
Imports Bytescout.BarCode
Partial Class _Default
Inherits System.Web.UI.Page
' IF YOU SEE TEMPORARY FOLDER ACCESS ERRORS:
' Temporary folder access is required for web application when you use ByteScout SDK in it.
' If you are getting errors related to the access to temporary folder like "Access to the path 'C:\Windows\TEMP\... is denied" then you need to add permission for this temporary folder to make ByteScout SDK working on that machine and IIS configuration because ByteScout SDK requires access to temp folder to cache some of its data for more efficient work.
' SOLUTION:
' If your IIS Application Pool has "Load User Profile" option enabled the IIS provides access to user's temp folder. Check user's temporary folder
' If you are running Web Application under an impersonated account or IIS_IUSRS group, IIS may redirect all requests into separate temp folder like "c:\temp\".
' In this case
' - check the User or User Group your web application is running under
' - then add permissions for this User or User Group to read and write into that temp folder (c:\temp or c:\windows\temp\ folder)
' - restart your web application and try again
Protected Sub form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles form1.Load
' Fill the datasource from DB
Dim ta As New AdventureWorksTableAdapters.vProductAndDescriptionTableAdapter()
Dim dt As New AdventureWorks.vProductAndDescriptionDataTable()
ta.Fill(dt)
' Create and setup an instance of Bytescout Barcode SDK
Dim bc As New Barcode(SymbologyType.Code128)
bc.RegistrationName = "demo"
bc.RegistrationKey = "demo"
bc.DrawCaption = False
' Update DataTable with barcode image
Dim row As AdventureWorks.vProductAndDescriptionRow
For Each row In dt.Rows
' Set the value to encode
bc.Value = row.ProductID.ToString()
'Generate the barcode image and store it into the Barcode Column
row.Barcode = bc.GetImageBytesPNG()
Next
'Create Report Data Source
Dim rptDataSource As New Microsoft.Reporting.WebForms.ReportDataSource("AdventureWorks_vProductAndDescription", dt)
Me.ReportViewer1.LocalReport.DataSources.Add(rptDataSource)
Me.ReportViewer1.LocalReport.ReportPath = Server.MapPath("BarcodeReport.rdlc")
Me.ReportViewer1.LocalReport.Refresh()
End Sub
End Class
| {'content_hash': 'f83e2b643c271b923057212155ae8693', 'timestamp': '', 'source': 'github', 'line_count': 64, 'max_line_length': 360, 'avg_line_length': 54.53125, 'alnum_prop': 0.5744985673352435, 'repo_name': 'bytescout/ByteScout-SDK-SourceCode', 'id': '383209ad437afdee901b0e38a2977bc50ef1d383', 'size': '3491', 'binary': False, 'copies': '3', 'ref': 'refs/heads/master', 'path': 'Barcode Suite/ASP.NET VB/Generate Barcode in VB with BarCode SDK.NET Local Reports (RDLC)/Default.aspx.vb', 'mode': '33188', 'license': 'apache-2.0', 'language': [{'name': 'ASP.NET', 'bytes': '364116'}, {'name': 'Apex', 'bytes': '243500'}, {'name': 'Batchfile', 'bytes': '151832'}, {'name': 'C', 'bytes': '224568'}, {'name': 'C#', 'bytes': '12909855'}, {'name': 'C++', 'bytes': '440474'}, {'name': 'CSS', 'bytes': '56817'}, {'name': 'Classic ASP', 'bytes': '46655'}, {'name': 'Dockerfile', 'bytes': '776'}, {'name': 'Gherkin', 'bytes': '3386'}, {'name': 'HTML', 'bytes': '17276296'}, {'name': 'Java', 'bytes': '1483408'}, {'name': 'JavaScript', 'bytes': '3033610'}, {'name': 'PHP', 'bytes': '838746'}, {'name': 'Pascal', 'bytes': '398090'}, {'name': 'PowerShell', 'bytes': '715204'}, {'name': 'Python', 'bytes': '703542'}, {'name': 'QMake', 'bytes': '880'}, {'name': 'TSQL', 'bytes': '3080'}, {'name': 'VBA', 'bytes': '383773'}, {'name': 'VBScript', 'bytes': '1504410'}, {'name': 'Visual Basic .NET', 'bytes': '9489450'}]} |
/****************************************************************/
/* Parallel Combinatorial BLAS Library (for Graph Computations) */
/* version 1.4 -------------------------------------------------*/
/* date: 1/17/2014 ---------------------------------------------*/
/* authors: Aydin Buluc ([email protected]), Adam Lugowski --------*/
/****************************************************************/
/*
Copyright (c) 2010-2014, The Regents of the University of California
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
#include <limits>
#include "SpParVec.h"
#include "SpDefs.h"
#include "SpHelper.h"
using namespace std;
template <class IT, class NT>
SpParVec<IT, NT>::SpParVec ( shared_ptr<CommGrid> grid): commGrid(grid), length(0), NOT_FOUND(numeric_limits<NT>::min())
{
if(commGrid->GetRankInProcRow() == commGrid->GetRankInProcCol())
diagonal = true;
else
diagonal = false;
};
template <class IT, class NT>
SpParVec<IT, NT>::SpParVec ( shared_ptr<CommGrid> grid, IT loclen): commGrid(grid), NOT_FOUND(numeric_limits<NT>::min())
{
if(commGrid->GetRankInProcRow() == commGrid->GetRankInProcCol())
{
diagonal = true;
length = loclen;
}
else
{
diagonal = false;
length = 0;
}
};
template <class IT, class NT>
SpParVec<IT, NT>::SpParVec (): length(0), NOT_FOUND(numeric_limits<NT>::min())
{
commGrid.reset(new CommGrid(MPI_COMM_WORLD, 0, 0));
if(commGrid->GetRankInProcRow() == commGrid->GetRankInProcCol())
diagonal = true;
else
diagonal = false;
};
template <class IT, class NT>
SpParVec<IT, NT>::SpParVec (IT loclen): NOT_FOUND(numeric_limits<NT>::min())
{
commGrid.reset(new CommGrid(MPI_COMM_WORLD, 0, 0));
if(commGrid->GetRankInProcRow() == commGrid->GetRankInProcCol())
{
diagonal = true;
length = loclen;
}
else
{
diagonal = false;
length = 0;
}
}
template <class IT, class NT>
void SpParVec<IT,NT>::stealFrom(SpParVec<IT,NT> & victim)
{
commGrid.reset(new CommGrid(*(victim.commGrid)));
ind.swap(victim.ind);
num.swap(victim.num);
diagonal = victim.diagonal;
length = victim.length;
}
template <class IT, class NT>
NT SpParVec<IT,NT>::operator[](IT indx) const
{
MPI_Comm DiagWorld = commGrid->GetDiagWorld();
NT val;
if(DiagWorld != MPI_COMM_NULL) // Diagonal processors only
{
int rank, size;
MPI_Comm_rank(DiagWorld, &rank);
MPI_Comm_size(DiagWorld, &size);
IT dgrank = (IT) rank;
IT nprocs = (IT) size;
IT n_perproc = getTypicalLocLength();
IT offset = dgrank * n_perproc;
IT owner = (indx) / n_perproc;
owner = std::min(owner, nprocs-1); // find its owner
NT diagval;
if(owner == dgrank)
{
IT locindx = indx-offset;
typename vector<IT>::const_iterator it = lower_bound(ind.begin(), ind.end(), locindx); // ind is a sorted vector
if(it != ind.end() && locindx == (*it)) // found
{
diagval = num[it-ind.begin()];
}
else
{
diagval = NOT_FOUND; // return NULL
}
}
MPI_Bcast(&diagval, 1, MPIType<NT>(), owner, DiagWorld);
val = diagval;
}
IT diaginrow = commGrid->GetDiagOfProcRow();
MPI_Bcast(&val, 1, MPIType<NT>(), diaginrow, commGrid->GetRowWorld());
return val;
}
//! Performs almost no communication other than getnnz()
//! Indexing is performed 0-based
template <class IT, class NT>
void SpParVec<IT,NT>::SetElement (IT indx, NT numx)
{
MPI_Comm DiagWorld = commGrid->GetDiagWorld();
if(DiagWorld != MPI_COMM_NULL) // Diagonal processors only
{
int dgrank, nprocs;
MPI_Comm_rank(DiagWorld, &dgrank);
MPI_Comm_size(DiagWorld, &nprocs);
IT n_perproc = getTypicalLocLength();
int owner = std::min(static_cast<int>(indx/n_perproc), nprocs-1);
if(owner == dgrank) // insert if this process is the owner
{
IT locindx = indx-(dgrank*n_perproc);
typename vector<IT>::iterator iter = lower_bound(ind.begin(), ind.end(), locindx);
if(iter == ind.end()) // beyond limits, insert from back
{
ind.push_back(locindx);
num.push_back(numx);
}
else if (locindx < *iter) // not found, insert in the middle
{
// the order of insertions is crucial
// if we first insert to ind, then ind.begin() is invalidated !
num.insert(num.begin() + (iter-ind.begin()), numx);
ind.insert(iter, locindx);
}
else // found
{
*(num.begin() + (iter-ind.begin())) = numx;
}
}
}
}
/**
* The distribution and length are inherited from ri
* Example: This is [{1,n1},{4,n4},{7,n7},{8,n8},{9,n9}] with P_00 owning {1,4} and P_11 rest
* Assume ri = [{1,4},{2,1}] is distributed as one element per processor
* Then result has length 2, distrubuted one element per processor
* TODO: Indexing (with this given semantics) would just work with
* the prototype operator() (const DenseParVec<IT,IT> & ri)
* because this code makes no reference to ri.ind()
**/
template <class IT, class NT>
SpParVec<IT,NT> SpParVec<IT,NT>::operator() (const SpParVec<IT,IT> & ri) const
{
MPI_Comm DiagWorld = commGrid->GetDiagWorld();
SpParVec<IT,NT> Indexed(commGrid);
if(DiagWorld != MPI_COMM_NULL) // Diagonal processors only
{
int dgrank, nprocs;
MPI_Comm_rank(DiagWorld, &dgrank);
MPI_Comm_size(DiagWorld, &nprocs);
IT n_perproc = getTypicalLocLength();
vector< vector<IT> > data_req(nprocs);
for(IT i=0; i < ri.num.size(); ++i)
{
int owner = (ri.num[i]) / n_perproc; // numerical values in ri are 0-based
int rec = std::min(owner, nprocs-1); // find its owner
data_req[rec].push_back(ri.num[i] - (rec * n_perproc));
}
IT * sendbuf = new IT[ri.num.size()];
int * sendcnt = new int[nprocs];
int * sdispls = new int[nprocs];
for(int i=0; i<nprocs; ++i)
sendcnt[i] = data_req[i].size();
int * rdispls = new int[nprocs];
int * recvcnt = new int[nprocs];
MPI_Alltoall(sendcnt, 1, MPI_INT, recvcnt, 1, MPI_INT, DiagWorld); // share the request counts
sdispls[0] = 0;
rdispls[0] = 0;
for(int i=0; i<nprocs-1; ++i)
{
sdispls[i+1] = sdispls[i] + sendcnt[i];
rdispls[i+1] = rdispls[i] + recvcnt[i];
}
IT totrecv = accumulate(recvcnt,recvcnt+nprocs,0);
IT * recvbuf = new IT[totrecv];
for(int i=0; i<nprocs; ++i)
copy(data_req[i].begin(), data_req[i].end(), sendbuf+sdispls[i]);
MPI_Alltoallv(sendbuf, sendcnt, sdispls, MPIType<IT>(), recvbuf, recvcnt, rdispls, MPIType<IT>(), DiagWorld); // request data
// We will return the requested data,
// our return can be at most as big as the request
// and smaller if we are missing some elements
IT * indsback = new IT[totrecv];
NT * databack = new NT[totrecv];
int * ddispls = new int[nprocs];
copy(rdispls, rdispls+nprocs, ddispls);
for(int i=0; i<nprocs; ++i)
{
// this is not the most efficient method because it scans ind vector nprocs = sqrt(p) times
IT * it = set_intersection(recvbuf+rdispls[i], recvbuf+rdispls[i]+recvcnt[i], ind.begin(), ind.end(), indsback+rdispls[i]);
recvcnt[i] = (it - (indsback+rdispls[i])); // update with size of the intersection
IT vi = 0;
for(int j = rdispls[i]; j < rdispls[i] + recvcnt[i]; ++j) // fetch the numerical values
{
// indsback is a subset of ind
while(indsback[j] > ind[vi])
++vi;
databack[j] = num[vi++];
}
}
DeleteAll(recvbuf, ddispls);
NT * databuf = new NT[ri.num.size()];
MPI_Alltoall(recvcnt, 1, MPI_INT, sendcnt, 1, MPI_INT, DiagWorld); // share the response counts, overriding request counts
MPI_Alltoallv(indsback, recvcnt, rdispls, MPIType<IT>(), sendbuf, sendcnt, sdispls, MPIType<IT>(), DiagWorld); // send data
MPI_Alltoallv(databack, recvcnt, rdispls, MPIType<NT>(), databuf, sendcnt, sdispls, MPIType<NT>(), DiagWorld); // send data
DeleteAll(rdispls, recvcnt, indsback, databack);
// Now create the output from databuf
for(int i=0; i<nprocs; ++i)
{
// data will come globally sorted from processors
// i.e. ind owned by proc_i is always smaller than
// ind owned by proc_j for j < i
for(int j=sdispls[i]; j< sdispls[i]+sendcnt[i]; ++j)
{
Indexed.ind.push_back(sendbuf[j]);
Indexed.num.push_back(databuf[j]);
}
}
Indexed.length = ri.length;
DeleteAll(sdispls, sendcnt, sendbuf, databuf);
}
return Indexed;
}
template <class IT, class NT>
void SpParVec<IT,NT>::iota(IT size, NT first)
{
MPI_Comm DiagWorld = commGrid->GetDiagWorld();
if(DiagWorld != MPI_COMM_NULL) // Diagonal processors only
{
int dgrank, nprocs;
MPI_Comm_rank(DiagWorld, &dgrank);
MPI_Comm_size(DiagWorld, &nprocs);
IT n_perproc = size / nprocs;
length = (dgrank != nprocs-1) ? n_perproc: (size - (n_perproc * (nprocs-1)));
ind.resize(length);
num.resize(length);
SpHelper::iota(ind.begin(), ind.end(), 0); // offset'd within processors
SpHelper::iota(num.begin(), num.end(), (dgrank * n_perproc) + first); // global across processors
}
}
template <class IT, class NT>
SpParVec<IT, IT> SpParVec<IT, NT>::sort()
{
MPI_Comm DiagWorld = commGrid->GetDiagWorld();
SpParVec<IT,IT> temp(commGrid);
if(DiagWorld != MPI_COMM_NULL) // Diagonal processors only
{
IT nnz = ind.size();
pair<IT,IT> * vecpair = new pair<IT,IT>[nnz];
int dgrank, nprocs;
MPI_Comm_rank(DiagWorld, &dgrank);
MPI_Comm_size(DiagWorld, &nprocs);
IT * dist = new IT[nprocs];
dist[dgrank] = nnz;
MPI_Allgather(MPI_IN_PLACE, 1, MPIType<IT>(), dist, 1, MPIType<IT>(), DiagWorld);
IT lengthuntil = accumulate(dist, dist+dgrank, static_cast<IT>(0));
for(size_t i=0; i<nnz; ++i)
{
vecpair[i].first = num[i]; // we'll sort wrt numerical values
vecpair[i].second = ind[i] + lengthuntil; // return 0-based indices
}
long * dist_in = new long[nprocs];
for(int i=0; i< nprocs; ++i) dist_in[i] = (long) dist[i];
vpsort::parallel_sort (vecpair, vecpair + nnz, dist_in, DiagWorld);
DeleteAll(dist_in,dist);
vector< IT > nind(nnz);
vector< IT > nnum(nnz);
for(size_t i=0; i<nnz; ++i)
{
num[i] = vecpair[i].first; // sorted range
nind[i] = ind[i]; // make sure the sparsity distribution is the same
nnum[i] = vecpair[i].second; // inverse permutation stored as numerical values
}
delete [] vecpair;
temp.length = length;
temp.ind = nind;
temp.num = nnum;
}
return temp;
}
template <class IT, class NT>
SpParVec<IT,NT> & SpParVec<IT, NT>::operator+=(const SpParVec<IT,NT> & rhs)
{
if(this != &rhs)
{
if(diagonal) // Only the diagonal processors hold values
{
if(length != rhs.length)
{
cerr << "Vector dimensions don't match for addition\n";
return *this;
}
IT lsize = ind.size();
IT rsize = rhs.ind.size();
vector< IT > nind;
vector< NT > nnum;
nind.reserve(lsize+rsize);
nnum.reserve(lsize+rsize);
IT i=0, j=0;
while(i < lsize && j < rsize)
{
// assignment won't change the size of vector, push_back is necessary
if(ind[i] > rhs.ind[j])
{
nind.push_back( rhs.ind[j] );
nnum.push_back( rhs.num[j++] );
}
else if(ind[i] < rhs.ind[j])
{
nind.push_back( ind[i] );
nnum.push_back( num[i++] );
}
else
{
nind.push_back( ind[i] );
nnum.push_back( num[i++] + rhs.num[j++] );
}
}
while( i < lsize) // rhs was depleted first
{
nind.push_back( ind[i] );
nnum.push_back( num[i++] );
}
while( j < rsize) // *this was depleted first
{
nind.push_back( rhs.ind[j] );
nnum.push_back( rhs.num[j++] );
}
ind.swap(nind); // ind will contain the elements of nind with capacity shrunk-to-fit size
num.swap(nnum);
}
}
else
{
if(diagonal)
{
typename vector<NT>::iterator it;
for(it = num.begin(); it != num.end(); ++it)
(*it) *= 2;
}
}
return *this;
};
template <class IT, class NT>
SpParVec<IT,NT> & SpParVec<IT, NT>::operator-=(const SpParVec<IT,NT> & rhs)
{
if(this != &rhs)
{
if(diagonal) // Only the diagonal processors hold values
{
if(length != rhs.length)
{
cerr << "Vector dimensions don't match for addition\n";
return *this;
}
IT lsize = ind.size();
IT rsize = rhs.ind.size();
vector< IT > nind;
vector< NT > nnum;
nind.reserve(lsize+rsize);
nnum.reserve(lsize+rsize);
IT i=0, j=0;
while(i < lsize && j < rsize)
{
// assignment won't change the size of vector, push_back is necessary
if(ind[i] > rhs.ind[j])
{
nind.push_back( rhs.ind[j] );
nnum.push_back( -rhs.num[j++] );
}
else if(ind[i] < rhs.ind[j])
{
nind.push_back( ind[i] );
nnum.push_back( num[i++] );
}
else
{
nind.push_back( ind[i] );
nnum.push_back( num[i++] - rhs.num[j++] );
}
}
while( i < lsize) // rhs was depleted first
{
nind.push_back( ind[i] );
nnum.push_back( num[i++] );
}
while( j < rsize) // *this was depleted first
{
nind.push_back( rhs.ind[j] );
nnum.push_back( -rhs.num[j++] );
}
ind.swap(nind); // ind will contain the elements of nind with capacity shrunk-to-fit size
num.swap(nnum);
}
}
else
{
if(diagonal)
{
ind.clear();
num.clear();
}
}
return *this;
};
//! Called on an existing object
template <class IT, class NT>
ifstream& SpParVec<IT,NT>::ReadDistribute (ifstream& infile, int master)
{
length = 0; // will be updated for diagonal processors
IT total_n, total_nnz, n_perproc;
MPI_Comm DiagWorld = commGrid->GetDiagWorld();
if(DiagWorld != MPI_COMM_NULL) // Diagonal processors only
{
int neighs, diagrank;
MPI_Comm_size(DiagWorld, &neighs); // number of neighbors along diagonal (including oneself)
MPI_Comm_rank(DiagWorld, &diagrank);
int buffperneigh = MEMORYINBYTES / (neighs * (sizeof(IT) + sizeof(NT)));
int * displs = new int[neighs];
for (int i=0; i<neighs; ++i)
displs[i] = i*buffperneigh;
int * curptrs;
int recvcount;
IT * inds;
NT * vals;
if(diagrank == master) // 1 processor only
{
inds = new IT [ buffperneigh * neighs ];
vals = new NT [ buffperneigh * neighs ];
curptrs = new int[neighs];
fill_n(curptrs, neighs, 0); // fill with zero
if (infile.is_open())
{
infile.clear();
infile.seekg(0);
infile >> total_n >> total_nnz;
n_perproc = total_n / neighs; // the last proc gets the extras
MPI_Bcast(&total_n, 1, MPIType<IT>(), master, DiagWorld);
IT tempind;
NT tempval;
IT cnz = 0;
while ( (!infile.eof()) && cnz < total_nnz)
{
infile >> tempind;
infile >> tempval;
tempind--;
int rec = std::min((int)(tempind / n_perproc), neighs-1); // recipient processor along the diagonal
inds[ rec * buffperneigh + curptrs[rec] ] = tempind;
vals[ rec * buffperneigh + curptrs[rec] ] = tempval;
++ (curptrs[rec]);
if(curptrs[rec] == buffperneigh || (cnz == (total_nnz-1)) ) // one buffer is full, or file is done !
{
// first, send the receive counts ...
MPI_Scatter(curptrs, 1, MPI_INT, &recvcount, 1, MPI_INT, master, DiagWorld);
// generate space for own recv data ... (use arrays because vector<bool> is cripled, if NT=bool)
IT * tempinds = new IT[recvcount];
NT * tempvals = new NT[recvcount];
// then, send all buffers that to their recipients ...
MPI_Scatterv(inds, curptrs, displs, MPIType<IT>(), tempinds, recvcount, MPIType<IT>(), master, DiagWorld);
MPI_Scatterv(vals, curptrs, displs, MPIType<NT>(), tempvals, recvcount, MPIType<NT>(), master, DiagWorld);
// now push what is ours to tuples
IT offset = master * n_perproc;
for(IT i=0; i< recvcount; ++i)
{
ind.push_back( tempinds[i]-offset );
num.push_back( tempvals[i] );
}
// reset current pointers so that we can reuse {inds,vals} buffers
fill_n(curptrs, neighs, 0);
DeleteAll(tempinds, tempvals);
}
++ cnz;
}
assert (cnz == total_nnz);
// Signal the end of file to other processors along the diagonal
fill_n(curptrs, neighs, numeric_limits<int>::max());
MPI_Scatter(curptrs, 1, MPI_INT, &recvcount, 1, MPI_INT, master, DiagWorld);
}
else // input file does not exist !
{
total_n = 0;
MPI_Bcast(&total_n, 1, MPIType<IT>(), master, DiagWorld);
}
DeleteAll(inds,vals, curptrs);
}
else // (r-1) processors on the diagonal
{
MPI_Bcast(&total_n, 1, MPIType<IT>(), master, DiagWorld);
n_perproc = total_n / neighs;
while(total_n > 0) // otherwise, input file do not exist
{
// first receive the receive counts ...
MPI_Scatter(curptrs, 1, MPI_INT, &recvcount, 1, MPI_INT, master, DiagWorld);
if( recvcount == numeric_limits<int>::max())
break;
// create space for incoming data ...
IT * tempinds = new IT[recvcount];
NT * tempvals = new NT[recvcount];
// receive actual data ... (first 4 arguments are ignored in the receiver side)
MPI_Scatterv(inds, curptrs, displs, MPIType<IT>(), tempinds, recvcount, MPIType<IT>(), master, DiagWorld);
MPI_Scatterv(vals, curptrs, displs, MPIType<NT>(), tempvals, recvcount, MPIType<NT>(), master, DiagWorld);
// now push what is ours to tuples
IT offset = diagrank * n_perproc;
for(IT i=0; i< recvcount; ++i)
{
ind.push_back( tempinds[i]-offset );
num.push_back( tempvals[i] );
}
DeleteAll(tempinds, tempvals);
}
}
delete [] displs;
length = (diagrank != neighs-1) ? n_perproc: (total_n - (n_perproc * (neighs-1)));
}
MPI_Barrier(commGrid->GetWorld());
return infile;
}
template <class IT, class NT>
IT SpParVec<IT,NT>::getTotalLength(MPI_Comm & comm) const
{
IT totlen = 0;
if(comm != MPI_COMM_NULL)
{
MPI_Allreduce( &length, & totlen, 1, MPIType<IT>(), MPI_SUM, comm);
}
return totlen;
}
template <class IT, class NT>
IT SpParVec<IT,NT>::getTypicalLocLength() const
{
IT n_perproc = 0 ;
MPI_Comm DiagWorld = commGrid->GetDiagWorld();
if(DiagWorld != MPI_COMM_NULL) // Diagonal processors only
{
int dgrank, nprocs;
MPI_Comm_rank(DiagWorld, &dgrank);
MPI_Comm_size(DiagWorld, &nprocs);
n_perproc = length;
if (dgrank == nprocs-1 && nprocs > 1)
{
// the local length on the last processor will be greater than the others if the vector length is not evenly divisible
// but for these calculations we need that length
MPI_Recv(&n_perproc, 1, MPIType<IT>(), 0, 1, DiagWorld, NULL);
}
else if (dgrank == 0 && nprocs > 1)
{
MPI_Send(&n_perproc, 1, MPIType<IT>(), nprocs-1, 1, DiagWorld);
}
}
return n_perproc;
}
template <class IT, class NT>
template <typename _BinaryOperation>
NT SpParVec<IT,NT>::Reduce(_BinaryOperation __binary_op, NT init)
{
// std::accumulate returns init for empty sequences
// the semantics are init + num[0] + ... + num[n]
NT localsum = std::accumulate( num.begin(), num.end(), init, __binary_op);
NT totalsum = init;
MPI_Allreduce( &localsum, &totalsum, 1, MPIType<NT>(), MPIOp<_BinaryOperation, NT>::op(), commGrid->GetWorld());
return totalsum;
}
template <class IT, class NT>
void SpParVec<IT,NT>::PrintInfo(string vectorname) const
{
IT nznz = getnnz();
IT totl = getTotalLength();
if(diagonal)
{
if (commGrid->GetRank() == 0)
cout << "As a whole, " << vectorname << " has: " << nznz << " nonzeros and length " << totl << endl;
}
}
template <class IT, class NT>
void SpParVec<IT,NT>::DebugPrint()
{
MPI_Comm DiagWorld = commGrid->GetDiagWorld();
if(DiagWorld != MPI_COMM_NULL) // Diagonal processors only
{
int dgrank, nprocs;
MPI_Comm_rank(DiagWorld, &dgrank);
MPI_Comm_size(DiagWorld, &nprocs);
IT* all_nnzs = new IT[nprocs];
all_nnzs[dgrank] = ind.size();
MPI_Allgather(MPI_IN_PLACE, 1, MPIType<IT>(), all_nnzs, 1, MPIType<IT>(), DiagWorld);
IT offset = 0;
for (int i = 0; i < nprocs; i++)
{
if (i == dgrank)
{
cout << "stored on proc " << dgrank << "," << dgrank << ":" << endl;
for (int j = 0; j < ind.size(); j++)
{
cout << "Element #" << (j+offset) << ": [" << (ind[j]) << "] = " << num[j] << endl;
}
}
offset += all_nnzs[i];
MPI_Barrier(DiagWorld);
}
MPI_Barrier(DiagWorld);
if (dgrank == 0)
cout << "total size: " << offset << endl;
}
}
| {'content_hash': '5dcb2e684150bf0dab4c4f9e0ec7b9ba', 'timestamp': '', 'source': 'github', 'line_count': 701, 'max_line_length': 142, 'avg_line_length': 30.223965763195434, 'alnum_prop': 0.6210412045122009, 'repo_name': 'cjain7/parconnect', 'id': '9d48b1b44d5b7cdcadf479c43d557b5a880341c0', 'size': '21187', 'binary': False, 'copies': '2', 'ref': 'refs/heads/master', 'path': 'ext/CombBLAS/SpParVec.cpp', 'mode': '33188', 'license': 'apache-2.0', 'language': [{'name': 'Assembly', 'bytes': '54'}, {'name': 'C', 'bytes': '1713442'}, {'name': 'C++', 'bytes': '3119098'}, {'name': 'CMake', 'bytes': '11546'}, {'name': 'HTML', 'bytes': '259840'}, {'name': 'Makefile', 'bytes': '36165'}, {'name': 'Matlab', 'bytes': '5915'}, {'name': 'Python', 'bytes': '410'}, {'name': 'Shell', 'bytes': '658'}]} |
/*jshint browser: true */
/*jshint unused: false */
/*global $, arangoHelper, jasmine, nv, d3, describe, beforeEach, afterEach, it, spyOn, expect*/
(function () {
"use strict";
describe("The Show Cluster View", function () {
var view, serverDummy, arangoDocumentsDummy, statisticsDescriptionDummy,
jqueryDummy,serverDummy2, dyGraphConfigDummy;
beforeEach(function () {
window.App = {
navigate: function () {
throw "This should be a spy";
},
addAuth : {
bind : function () {
return "authBinding";
}
},
serverToShow: undefined,
dashboard: function () {
return undefined;
}
};
arangoDocumentsDummy = {
getStatisticsHistory : function () {
return undefined;
},
history : [
{
time : 20000,
server : {
uptime : 10000
},
client : {
totalTime : {
count : 0,
sum : 0
}
}
},
{
time : 30000,
server : {
uptime : 100
},
client : {
totalTime : {
count : 1,
sum : 4
}
}
}
]
};
serverDummy = {
getList : function () {
return undefined;
},
byAddress : function () {
return undefined;
},
getStatuses : function () {
return undefined;
},
findWhere : function () {
return undefined;
},
forEach : function () {
return undefined;
}
};
serverDummy2 = {
getList : function () {
return undefined;
},
byAddress : function () {
return undefined;
},
getStatuses : function () {
return undefined;
},
findWhere : function () {
return undefined;
},
forEach : function () {
return undefined;
},
first : function () {
return undefined;
}
};
dyGraphConfigDummy = {
getDetailChartConfig: function () {
return {
header: "dummyheader"
};
},
getDashBoardFigures: function () {
return ["a", "b", "c"];
},
getDefaultConfig: function (d) {
return {
header: "dummyheader",
div: "#" + d
};
},
mapStatToFigure: {
a: ["times", "x", "blub"],
d: ["times", "y"],
c: ["times", "z"],
abc: [1]
},
getColors : function () {
return undefined;
},
colors: [1, 2]
};
statisticsDescriptionDummy = {
fetch: function () {
return undefined;
}
};
spyOn(window, "ClusterServers").andReturn(serverDummy);
spyOn(window, "ClusterDatabases").andReturn(serverDummy);
spyOn(window, "ClusterCoordinators").andReturn(serverDummy2);
spyOn(window, "ClusterCollections").andReturn(serverDummy);
spyOn(window, "ClusterShards").andReturn(serverDummy);
spyOn(window, "arangoDocuments").andReturn(arangoDocumentsDummy);
spyOn(window, "StatisticsDescription").andReturn(statisticsDescriptionDummy);
spyOn(statisticsDescriptionDummy, "fetch");
view = new window.ShowClusterView({dygraphConfig: dyGraphConfigDummy});
expect(view.interval).toEqual(10000);
expect(view.isUpdating).toEqual(true);
expect(view.knownServers).toEqual([]);
expect(view.graph).toEqual(undefined);
expect(view.graphShowAll).toEqual(false);
expect(window.ClusterServers).toHaveBeenCalledWith([], {
interval: view.interval
});
expect(window.ClusterCoordinators).toHaveBeenCalledWith([], {
interval: view.interval
});
expect(window.ClusterDatabases).toHaveBeenCalledWith([], {
interval: view.interval
});
expect(statisticsDescriptionDummy.fetch).toHaveBeenCalledWith({
async: false
});
});
afterEach(function () {
delete window.App;
});
it("assert the basics", function () {
expect(view.events).toEqual({
"change #selectDB" : "updateCollections",
"change #selectCol" : "updateShards",
"click .dbserver" : "dashboard",
"click .coordinator" : "dashboard"
});
expect(view.defaultFrame).toEqual(20 * 60 * 1000);
});
it("assert replaceSVGs", function () {
spyOn($.fn, "each").andCallFake(function (a) {
a();
});
spyOn($, "get").andCallFake(function (a, b) {
b();
});
spyOn($.fn, "find").andCallThrough();
view.replaceSVGs();
expect($.fn.find).toHaveBeenCalledWith("svg");
});
it("assert updateServerTime", function () {
view.serverTime = 10;
var before = view.serverTime;
view.updateServerTime();
expect(view.serverTime > before).toEqual(true);
});
it("assert setShowAll", function () {
view.setShowAll();
expect(view.graphShowAll).toEqual(true);
});
it("assert resetShowAll", function () {
spyOn(view, "renderLineChart");
view.resetShowAll();
expect(view.graphShowAll).toEqual(false);
expect(view.renderLineChart).toHaveBeenCalled();
});
it("assert listByAddress", function () {
spyOn(serverDummy2, "byAddress").andReturn("byAddress");
spyOn(serverDummy, "byAddress").andReturn("byAddress");
view.listByAddress();
expect(view.graphShowAll).toEqual(false);
expect(serverDummy.byAddress).toHaveBeenCalledWith();
expect(serverDummy2.byAddress).toHaveBeenCalledWith("byAddress");
});
it("assert updateCollections", function () {
jqueryDummy = {
find : function () {
return jqueryDummy;
},
attr : function () {
return undefined;
},
html : function () {
return jqueryDummy;
},
append : function () {
return jqueryDummy;
}
};
spyOn(window, "$").andReturn(jqueryDummy);
spyOn(jqueryDummy, "find").andCallThrough();
spyOn(jqueryDummy, "attr").andReturn("dbName");
spyOn(jqueryDummy, "html");
spyOn(jqueryDummy, "append");
spyOn(serverDummy, "getList").andReturn(
[
{name : "a"},
{name : "b"},
{name : "c"}
]
);
spyOn(view, "updateShards");
view.updateCollections();
expect(window.$).toHaveBeenCalledWith("#selectDB");
expect(window.$).toHaveBeenCalledWith("#selectCol");
expect(view.updateShards).toHaveBeenCalled();
expect(serverDummy.getList).toHaveBeenCalledWith("dbName");
expect(jqueryDummy.find).toHaveBeenCalledWith(":selected");
expect(jqueryDummy.attr).toHaveBeenCalledWith("id");
expect(jqueryDummy.html).toHaveBeenCalledWith("");
expect(jqueryDummy.append).toHaveBeenCalledWith(
"<option id=\"" + "c" + "\">" + "c" + "</option>"
);
expect(jqueryDummy.append).toHaveBeenCalledWith(
"<option id=\"" + "a" + "\">" + "a" + "</option>"
);
expect(jqueryDummy.append).toHaveBeenCalledWith(
"<option id=\"" + "b" + "\">" + "b" + "</option>"
);
});
it("assert updateShards", function () {
jqueryDummy = {
find : function () {
return jqueryDummy;
},
attr : function () {
return undefined;
},
html : function () {
return jqueryDummy;
},
append : function () {
return jqueryDummy;
}
};
spyOn(window, "$").andReturn(jqueryDummy);
spyOn(jqueryDummy, "find").andCallThrough();
spyOn(jqueryDummy, "attr").andReturn("dbName");
spyOn(jqueryDummy, "html");
spyOn(jqueryDummy, "append");
spyOn(serverDummy, "getList").andReturn(
[
{server : "a", shards : {length : 1}},
{server : "b", shards : {length : 2}},
{server : "c", shards : {length : 3}}
]
);
spyOn(serverDummy2, "getList").andReturn(
[
{server : "a", shards : {length : 1}},
{server : "b", shards : {length : 2}},
{server : "c", shards : {length : 3}}
]
);
view.updateShards();
expect(window.$).toHaveBeenCalledWith("#selectDB");
expect(window.$).toHaveBeenCalledWith("#selectCol");
expect(window.$).toHaveBeenCalledWith(".shardCounter");
expect(window.$).toHaveBeenCalledWith("#aShards");
expect(window.$).toHaveBeenCalledWith("#bShards");
expect(window.$).toHaveBeenCalledWith("#cShards");
expect(serverDummy.getList).toHaveBeenCalledWith("dbName", "dbName");
expect(jqueryDummy.find).toHaveBeenCalledWith(":selected");
expect(jqueryDummy.attr).toHaveBeenCalledWith("id");
expect(jqueryDummy.html).toHaveBeenCalledWith("0");
expect(jqueryDummy.html).toHaveBeenCalledWith(1);
expect(jqueryDummy.html).toHaveBeenCalledWith(2);
expect(jqueryDummy.html).toHaveBeenCalledWith(3);
});
it("assert updateServerStatus", function () {
jqueryDummy = {
attr : function () {
return undefined;
}
};
spyOn(window, "$").andReturn(jqueryDummy);
spyOn(jqueryDummy, "attr").andReturn("a s");
spyOn(serverDummy, "getStatuses").andCallFake(function (a) {
a("ok", "123.456.789:10");
});
spyOn(serverDummy2, "getStatuses").andCallFake(function (a) {
a("ok", "123.456.789:10");
});
view.updateServerStatus();
expect(jqueryDummy.attr).toHaveBeenCalledWith("class");
expect(jqueryDummy.attr).toHaveBeenCalledWith("class", "dbserver " + "s" + " " + "ok");
expect(jqueryDummy.attr).toHaveBeenCalledWith("class",
"coordinator " + "s" + " " + "ok");
expect(window.$).toHaveBeenCalledWith("#id123-456-789_10");
});
it("assert updateDBDetailList", function () {
jqueryDummy = {
find : function () {
return jqueryDummy;
},
attr : function () {
return undefined;
},
html : function () {
return jqueryDummy;
},
append : function () {
return jqueryDummy;
},
prop : function () {
return undefined;
}
};
spyOn(serverDummy, "getList").andReturn(
[
{name : "a", shards : {length : 1}},
{name : "b", shards : {length : 2}},
{name : "c", shards : {length : 3}}
]
);
spyOn(window, "$").andReturn(jqueryDummy);
spyOn(jqueryDummy, "find").andCallThrough();
spyOn(jqueryDummy, "attr").andReturn("dbName");
spyOn(jqueryDummy, "html");
spyOn(jqueryDummy, "append");
spyOn(jqueryDummy, "prop");
view.updateDBDetailList();
expect(window.$).toHaveBeenCalledWith("#selectDB");
expect(window.$).toHaveBeenCalledWith("#selectCol");
expect(jqueryDummy.find).toHaveBeenCalledWith(":selected");
expect(jqueryDummy.prop).toHaveBeenCalledWith("selected", true);
expect(jqueryDummy.attr).toHaveBeenCalledWith("id");
expect(jqueryDummy.html).toHaveBeenCalledWith("");
expect(jqueryDummy.append).toHaveBeenCalledWith(
"<option id=\"" + "c" + "\">" + "c" + "</option>"
);
expect(jqueryDummy.append).toHaveBeenCalledWith(
"<option id=\"" + "a" + "\">" + "a" + "</option>"
);
expect(jqueryDummy.append).toHaveBeenCalledWith(
"<option id=\"" + "b" + "\">" + "b" + "</option>"
);
});
it("assert updateDBDetailList with selected db", function () {
jqueryDummy = {
find : function () {
return jqueryDummy;
},
attr : function () {
return undefined;
},
html : function () {
return jqueryDummy;
},
append : function () {
return jqueryDummy;
},
prop : function () {
return undefined;
},
length : 1
};
spyOn(serverDummy, "getList").andReturn(
[
{name : "a", shards : {length : 1}},
{name : "b", shards : {length : 2}},
{name : "c", shards : {length : 3}}
]
);
spyOn(window, "$").andReturn(jqueryDummy);
spyOn(jqueryDummy, "find").andCallThrough();
spyOn(jqueryDummy, "attr").andReturn("dbName");
spyOn(jqueryDummy, "html");
spyOn(jqueryDummy, "append");
spyOn(jqueryDummy, "prop");
view.updateDBDetailList();
expect(window.$).toHaveBeenCalledWith("#selectDB");
expect(window.$).toHaveBeenCalledWith("#selectCol");
expect(jqueryDummy.find).toHaveBeenCalledWith(":selected");
expect(jqueryDummy.prop).toHaveBeenCalledWith("selected", true);
expect(jqueryDummy.attr).toHaveBeenCalledWith("id");
expect(jqueryDummy.html).toHaveBeenCalledWith("");
expect(jqueryDummy.append).toHaveBeenCalledWith(
"<option id=\"" + "c" + "\">" + "c" + "</option>"
);
expect(jqueryDummy.append).toHaveBeenCalledWith(
"<option id=\"" + "a" + "\">" + "a" + "</option>"
);
expect(jqueryDummy.append).toHaveBeenCalledWith(
"<option id=\"" + "b" + "\">" + "b" + "</option>"
);
});
it("assert rerender", function () {
spyOn(view, "updateServerStatus");
spyOn(view, "getServerStatistics");
spyOn(view, "updateServerTime");
spyOn(view, "generatePieData").andReturn({data: "1"});
spyOn(view, "renderPieChart");
spyOn(view, "renderLineChart");
spyOn(view, "updateDBDetailList");
view.rerender();
expect(view.updateServerStatus).toHaveBeenCalled();
expect(view.getServerStatistics).toHaveBeenCalled();
expect(view.updateServerTime).toHaveBeenCalled();
expect(view.generatePieData).toHaveBeenCalled();
expect(view.renderPieChart).toHaveBeenCalledWith({data: "1"});
expect(view.renderLineChart).toHaveBeenCalled();
expect(view.updateDBDetailList).toHaveBeenCalled();
});
it("assert render", function () {
spyOn(view, "startUpdating");
spyOn(view, "replaceSVGs");
spyOn(view, "listByAddress").andReturn({data: "1"});
spyOn(view, "generatePieData").andReturn({data: "1"});
spyOn(view, "getServerStatistics");
spyOn(view, "renderPieChart");
spyOn(view, "renderLineChart");
spyOn(view, "updateCollections");
view.template = {
render : function () {
return undefined;
}
};
spyOn(serverDummy, "getList").andReturn([
{name : "a", shards : {length : 1}},
{name : "b", shards : {length : 2}},
{name : "c", shards : {length : 3}}
]);
spyOn(view.template, "render");
view.render();
expect(view.startUpdating).toHaveBeenCalled();
expect(view.listByAddress).toHaveBeenCalled();
expect(view.replaceSVGs).toHaveBeenCalled();
expect(view.getServerStatistics).toHaveBeenCalled();
expect(view.renderPieChart).toHaveBeenCalledWith({data: "1"});
expect(view.template.render).toHaveBeenCalledWith({
dbs: ["a", "b", "c"],
byAddress: {data: "1"},
type: "testPlan"
});
expect(view.generatePieData).toHaveBeenCalled();
expect(view.renderLineChart).toHaveBeenCalled();
expect(view.updateCollections).toHaveBeenCalled();
});
it("assert render with more than one address", function () {
spyOn(view, "startUpdating");
spyOn(view, "replaceSVGs");
spyOn(view, "listByAddress").andReturn({data: "1", "ss" : 1});
spyOn(view, "generatePieData").andReturn({data: "1"});
spyOn(view, "getServerStatistics");
spyOn(view, "renderPieChart");
spyOn(view, "renderLineChart");
spyOn(view, "updateCollections");
view.template = {
render : function () {
return undefined;
}
};
spyOn(serverDummy, "getList").andReturn([
{name : "a", shards : {length : 1}},
{name : "b", shards : {length : 2}},
{name : "c", shards : {length : 3}}
]);
spyOn(view.template, "render");
view.render();
expect(view.startUpdating).toHaveBeenCalled();
expect(view.listByAddress).toHaveBeenCalled();
expect(view.replaceSVGs).toHaveBeenCalled();
expect(view.getServerStatistics).toHaveBeenCalled();
expect(view.renderPieChart).toHaveBeenCalledWith({data: "1"});
expect(view.template.render).toHaveBeenCalledWith({
dbs: ["a", "b", "c"],
byAddress: {data: "1", "ss" : 1},
type: "other"
});
expect(view.generatePieData).toHaveBeenCalled();
expect(view.renderLineChart).toHaveBeenCalled();
expect(view.updateCollections).toHaveBeenCalled();
});
it("assert generatePieData", function () {
view.data = [
{
get : function (a) {
if (a === "name") {
return "name1";
}
return {virtualSize: "residentsize1"};
}
},
{
get : function (a) {
if (a === "name") {
return "name2";
}
return {virtualSize: "residentsize2"};
}
}
];
expect(view.generatePieData()).toEqual([
{
key : "name1",
value : "residentsize1",
time : view.serverTime
},
{
key : "name2",
value : "residentsize2",
time : view.serverTime
}
]);
});
/*
it("assert loadHistory", function () {
var serverResult = [
{
id : 1,
get : function (a) {
if (a === "protocol") {return "http";}
if (a === "address") {return "123.456.789";}
if (a === "status") {return "ok";}
if (a === "name") {return "heinz";}
}
},
{
id : 2,
get : function (a) {
if (a === "protocol") {return "https";}
if (a === "address") {return "123.456.799";}
if (a === "status") {return "ok";}
if (a === "name") {return "herbert";}
}
},
{
id : 3,
get : function (a) {
if (a === "protocol") {return "http";}
if (a === "address") {return "123.456.119";}
if (a === "status") {return "notOk";}
if (a === "name") {return "heinzle";}
}
}
], serverResult2 = [
{
id : 4,
get : function (a) {
if (a === "protocol") {return "http";}
if (a === "address") {return "123.456.789";}
if (a === "status") {return "ok";}
if (a === "name") {return "heinz";}
}
},
{
id : 5,
get : function (a) {
if (a === "protocol") {return "https";}
if (a === "address") {return "123.456.799";}
if (a === "status") {return "ok";}
if (a === "name") {return "herbert";}
}
},
{
id : 6,
get : function (a) {
if (a === "protocol") {return "http";}
if (a === "address") {return "123.456.119";}
if (a === "status") {return "notOk";}
if (a === "name") {return "heinzle";}
}
}
];
spyOn(serverDummy2, "findWhere").andReturn(serverResult[0]);
view.dbservers = serverResult;
spyOn(serverDummy, "forEach").andCallFake(function (a) {
serverResult.forEach(a);
});
spyOn(serverDummy2, "forEach").andCallFake(function (a) {
serverResult2.forEach(a);
});
spyOn(arangoDocumentsDummy, "getStatisticsHistory");
view.loadHistory();
expect(serverDummy2.findWhere).toHaveBeenCalledWith({
status: "ok"
});
expect(arangoDocumentsDummy.getStatisticsHistory).toHaveBeenCalledWith({
server: {
raw: "123.456.789",
isDBServer: true,
target: "heinz",
endpoint: "http://123.456.789",
addAuth: "authBinding"
},
figures: ["client.totalTime"]
});
expect(arangoDocumentsDummy.getStatisticsHistory).toHaveBeenCalledWith({
server: {
raw: "123.456.799",
isDBServer: true,
target: "herbert",
endpoint: "http://123.456.789",
addAuth: "authBinding"
},
figures: ["client.totalTime"]
});
expect(arangoDocumentsDummy.getStatisticsHistory).not.toHaveBeenCalledWith({
server: {
raw: "123.456.119",
isDBServer: true,
target: "heinzle",
endpoint: "http://123.456.789",
addAuth: "authBinding"
},
figures: ["client.totalTime"]
});
expect(view.hist).toEqual({
1: {lastTime: 30000000, 20000000: 0, 25000000: null, 30000000: 4},
2: {lastTime: 30000000, 20000000: 0, 25000000: null, 30000000: 4},
4: {lastTime: 30000000, 20000000: 0, 25000000: null, 30000000: 4},
5: {lastTime: 30000000, 20000000: 0, 25000000: null, 30000000: 4}}
);
});
*/
it("assert getServerStatistics", function () {
var getServer1 = function(a) {
switch (a) {
case "protocol":
return "http";
case "address":
return "123.456.789";
case "status":
return "ok";
case "name":
return "heinz";
default:
throw "Requested unknown attribute: " + a;
}
},
getServer2 = function(a) {
switch (a) {
case "protocol":
return "https";
case "address":
return "123.456.799";
case "status":
return "ok";
case "name":
return "herbert";
default:
throw "Requested unknown attribute: " + a;
}
},
getServer3 = function(a) {
switch (a) {
case "protocol":
return "http";
case "address":
return "123.456.119";
case "status":
return "notOk";
case "name":
return "heinzle";
default:
throw "Requested unknown attribute: " + a;
}
},
clusterStatisticsCollectionDummy = {
add : function () {
return undefined;
},
fetch : function () {
return undefined;
},
forEach : function () {
return undefined;
}
}, serverResult = [
{
id: 1,
get: getServer1
},
{
id: 2,
get: getServer2
},
{
id: 3,
get: getServer3
}
], serverResult2 = [
{
id : 4,
get : getServer1
},
{
id : 5,
get : getServer2
},
{
id : 6,
get : getServer3
}
], clusterStatistics = [
{
get: function (a) {
if (a === "server") {return {
uptime : 100
};}
if (a === "client") {return {
totalTime : {
count : 0,
sum : 10
}
};}
if (a === "name") {return "herbert";}
if (a === "http") {
return {
requestsTotal: 200
};
}
if (a === "time") {
return 20;
}
}
},
{
get: function (a) {
if (a === "server") {return {
uptime : 10
};}
if (a === "client") {return {
totalTime : {
count : 1,
sum : 10
}
};}
if (a === "name") {return "heinz";}
if (a ==="http") {
return {
requestsTotal: 500
};
}
if (a === "time") {
return 30;
}
}
}
], foundUrls = [];
spyOn(window, "ClusterStatisticsCollection").andReturn(
clusterStatisticsCollectionDummy
);
spyOn(window, "Statistics").andReturn({});
spyOn(serverDummy2, "forEach").andCallFake(function (a) {
serverResult2.forEach(a);
});
spyOn(clusterStatisticsCollectionDummy, "add").andCallFake(function (y) {
foundUrls.push(y.url);
});
spyOn(clusterStatisticsCollectionDummy, "fetch");
spyOn(clusterStatisticsCollectionDummy, "forEach").andCallFake(function (a) {
clusterStatistics.forEach(a);
});
spyOn(serverDummy2, "first").andReturn({
id : 1,
get : getServer1
});
view.hist = {
};
view.hist.heinz = [];
view.hist.herbert = [];
view.dbservers = serverResult;
view.getServerStatistics();
expect(serverDummy2.first).toHaveBeenCalled();
expect(foundUrls.indexOf(
"http://123.456.789/_admin/clusterStatistics?DBserver=heinz"
)).not.toEqual(-1);
expect(foundUrls.indexOf(
"http://123.456.789/_admin/clusterStatistics?DBserver=herbert"
)).not.toEqual(-1);
expect(foundUrls.indexOf(
"http://123.456.789/_admin/clusterStatistics?DBserver=heinzle"
)).toEqual(-1);
expect(foundUrls.indexOf("http://123.456.789/_admin/statistics")).not.toEqual(-1);
expect(foundUrls.indexOf("https://123.456.799/_admin/statistics")).not.toEqual(-1);
expect(foundUrls.indexOf("http://123.456.119/_admin/statistics")).toEqual(-1);
});
it("assert renderPieChart", function () {
var d3Dummy = {
scale : {
category20 : function () {
return undefined;
}
},
svg : {
arc : function () {
return d3Dummy.svg;
},
outerRadius : function () {
return d3Dummy.svg;
},
innerRadius : function () {
return {
centroid : function (a) {
return a;
}
};
}
},
layout : {
pie : function () {
return d3Dummy.layout;
},
sort : function (a) {
expect(a({value : 1})).toEqual(1);
return d3Dummy.layout;
},
value : function (a) {
expect(a({value : 1})).toEqual(1);
return d3Dummy.layout.pie;
}
},
select : function () {
return d3Dummy;
},
remove : function () {
return undefined;
},
append : function () {
return d3Dummy;
},
attr : function (a, b) {
if (a === "transform" && typeof b === 'function') {
expect(b(1)).toEqual("translate(1)");
}
return d3Dummy;
},
selectAll: function () {
return d3Dummy;
},
data: function () {
return d3Dummy;
},
enter: function () {
return d3Dummy;
},
style: function (a, b) {
if (typeof b === 'function') {
expect(b("item", 1)).toEqual(2);
}
return d3Dummy;
},
text : function (a) {
a({data : {
key : "1",
value : 2
}});
}
};
spyOn(d3.scale, "category20").andReturn(function (i) {
var l = ["red", "white"];
return l[i];
});
spyOn(d3.svg, "arc").andReturn(d3Dummy.svg.arc());
spyOn(d3.layout, "pie").andReturn(d3Dummy.layout.pie());
spyOn(d3, "select").andReturn(d3Dummy.select());
view.renderPieChart();
});
it("assert renderLineChart no remake", function () {
spyOn(dyGraphConfigDummy, "getDefaultConfig").andCallThrough();
view.hist = {
server1 : {
lastTime : 12345,
2334500 : 1,
2334600 : 2,
2334700 : 3
},
server2 : {
lastTime : 12345,
2334500 : 2,
2334800 : 2,
2334900 : 5
}
};
var dygraphDummy = {
};
spyOn(window, "Dygraph").andReturn(dygraphDummy);
view.renderLineChart(false);
expect(window.Dygraph).toHaveBeenCalledWith(
document.getElementById('lineGraph'),
[],
{
header : 'dummyheader',
labels : [ 'datetime' ],
div: "#clusterRequestsPerSecond",
labelsDiv: undefined
}
);
expect(dyGraphConfigDummy.getDefaultConfig).toHaveBeenCalledWith(
"clusterRequestsPerSecond"
);
});
it("assert renderLineChart with remake", function () {
spyOn(dyGraphConfigDummy, "getDefaultConfig").andCallThrough();
spyOn(dyGraphConfigDummy, "getColors");
view.hist = {
server1 : {
lastTime : 12345,
2334500 : 1,
2334600 : 2,
2334700 : 3
},
server2 : {
lastTime : 12345,
2334500 : 2,
2334800 : 2,
2334900 : 5
}
};
var dygraphDummy = {
setSelection : function () {
return undefined;
}
};
spyOn(window, "Dygraph").andReturn(dygraphDummy);
view.renderLineChart(true);
expect(window.Dygraph).toHaveBeenCalledWith(
document.getElementById('lineGraph'),
[],
{
header : 'dummyheader',
labels : [ 'datetime' ],
div: "#clusterRequestsPerSecond",
labelsDiv: undefined
}
);
expect(dyGraphConfigDummy.getDefaultConfig).toHaveBeenCalledWith(
"clusterRequestsPerSecond"
);
});
/*
it("assert renderLineChart with detailView", function () {
spyOn(dyGraphConfigDummy, "getDefaultConfig").andCallThrough();
spyOn(dyGraphConfigDummy, "getColors");
view.hist = {
server1 : {
lastTime : 12345,
2334500 : 1,
2334600 : 2,
2334700 : 3
},
server2 : {
lastTime : 12345,
2334500 : 2,
2334800 : 2,
2334900 : 5
}
};
var dygraphDummy = {
setSelection : function () {
return undefined;
},
updateOptions : function () {
return undefined;
}
};
spyOn(window, "Dygraph").andReturn(dygraphDummy);
spyOn(dygraphDummy, "setSelection");
spyOn(dygraphDummy, "updateOptions").andCallFake(function (opt) {
expect(opt.labels).toEqual(['Date', 'ClusterAverage (avg)',
'server1', 'server2 (max)']);
expect(opt.visibility).toEqual([true, false, true]);
expect(opt.dateWindow).not.toEqual(undefined);
});
view.renderLineChart(false);
view.renderLineChart(false);
expect(dygraphDummy.setSelection).toHaveBeenCalledWith(
false, 'ClusterAverage', true
);
expect(dygraphDummy.updateOptions).toHaveBeenCalled();
expect(window.Dygraph).toHaveBeenCalledWith(
document.getElementById('lineGraph'),
view.graph.data,
{
header : 'dummyheader',
div : '#clusterAverageRequestTime',
visibility : [ true, false, true ],
labels : [ 'Date', 'ClusterAverage (avg)', 'server1', 'server2 (max)' ],
colors : undefined
}
);
expect(dyGraphConfigDummy.getDefaultConfig).toHaveBeenCalledWith(
"clusterAverageRequestTime"
);
expect(dyGraphConfigDummy.getColors).toHaveBeenCalledWith(
['Date', 'ClusterAverage (avg)', 'server1', 'server2 (max)']
);
expect(view.chartData.labelsNormal).toEqual(
['Date', 'ClusterAverage (avg)', 'server1', 'server2 (max)']
);
expect(view.chartData.labelsShowAll).toEqual(
['Date', 'ClusterAverage', 'server1', 'server2']
);
expect(view.chartData.visibilityNormal).toEqual(
[true, false, true]
);
expect(view.chartData.visibilityShowAll).toEqual(
[true, true, true]
);
});
*/
/*
it("assert renderLineChart with detailView and showAll", function () {
spyOn(dyGraphConfigDummy, "getDefaultConfig").andCallThrough();
spyOn(dyGraphConfigDummy, "getColors");
view.hist = {
server1 : {
lastTime : 12345,
2334500 : 1,
2334600 : 2,
2334700 : 3
},
server2 : {
lastTime : 12345,
2334500 : 2,
2334800 : 2,
2334900 : 5
}
};
var dygraphDummy = {
setSelection : function () {
return undefined;
},
updateOptions : function () {
return undefined;
},
dateWindow_ : [0, 1]
};
spyOn(window, "Dygraph").andReturn(dygraphDummy);
spyOn(dygraphDummy, "setSelection");
spyOn(dygraphDummy, "updateOptions").andCallFake(function (opt) {
expect(opt.labels).toEqual(['Date', 'ClusterAverage',
'server1', 'server2']);
expect(opt.visibility).toEqual([true, true, true]);
expect(opt.dateWindow).not.toEqual(undefined);
});
view.renderLineChart(false);
view.graphShowAll = true;
view.renderLineChart(false);
expect(dygraphDummy.setSelection).toHaveBeenCalledWith(
false, 'ClusterAverage', true
);
expect(dygraphDummy.updateOptions).toHaveBeenCalled();
expect(window.Dygraph).toHaveBeenCalledWith(
document.getElementById('lineGraph'),
view.graph.data,
{
header : 'dummyheader',
div : '#clusterAverageRequestTime',
visibility : [ true, false, true ],
labels : [ 'Date', 'ClusterAverage (avg)', 'server1', 'server2 (max)' ],
colors : undefined
}
);
expect(dyGraphConfigDummy.getDefaultConfig).toHaveBeenCalledWith(
"clusterAverageRequestTime"
);
expect(dyGraphConfigDummy.getColors).toHaveBeenCalledWith(
['Date', 'ClusterAverage (avg)', 'server1', 'server2 (max)']
);
expect(view.chartData.labelsNormal).toEqual(
['Date', 'ClusterAverage (avg)', 'server1', 'server2 (max)']
);
expect(view.chartData.labelsShowAll).toEqual(
['Date', 'ClusterAverage', 'server1', 'server2']
);
expect(view.chartData.visibilityNormal).toEqual(
[true, false, true]
);
expect(view.chartData.visibilityShowAll).toEqual(
[true, true, true]
);
});
*/
it("assert stopUpdating", function () {
spyOn(window, "clearTimeout");
view.stopUpdating();
expect(window.clearTimeout).toHaveBeenCalledWith(view.timer);
expect(view.isUpdating).toEqual(false);
});
it("assert startUpdating but is already updating", function () {
spyOn(window, "setInterval");
view.isUpdating = true;
view.startUpdating();
expect(window.setInterval).not.toHaveBeenCalled();
});
it("assert startUpdating", function () {
spyOn(window, "setInterval").andCallFake(function (a) {
a();
});
spyOn(view, "rerender");
view.isUpdating = false;
view.startUpdating();
expect(view.rerender).toHaveBeenCalled();
expect(window.setInterval).toHaveBeenCalledWith(jasmine.any(Function), view.interval);
});
it("assert dashboard for dbserver", function () {
spyOn(view, "stopUpdating");
spyOn(window, "$").andReturn({
remove : function () {
return undefined;
},
hasClass : function () {
return true;
},
attr : function () {
return "AA123-456-789_8529";
}
});
spyOn(serverDummy, "findWhere").andReturn({
get : function () {
return "name";
}
});
spyOn(serverDummy2, "findWhere").andReturn({
get : function (a) {
if (a === "protocol") {
return "http";
}
if (a === "address") {
return "localhost";
}
return "name";
}
});
view.dashboard({currentTarget : "target"});
expect(view.stopUpdating).toHaveBeenCalled();
expect(serverDummy.findWhere).toHaveBeenCalledWith({
address: "123.456.789:8529"
});
expect(serverDummy2.findWhere).toHaveBeenCalledWith({
status: "ok"
});
expect(window.App.serverToShow).toEqual({
raw : "123.456.789:8529",
isDBServer : true,
endpoint : "http://localhost",
target : "name"
});
});
it("assert dashboard for no dbserver", function () {
spyOn(view, "stopUpdating");
spyOn(window, "$").andReturn({
remove : function () {
return undefined;
},
hasClass : function () {
return false;
},
attr : function () {
return "AA123-456-789_8529";
}
});
spyOn(serverDummy, "findWhere").andReturn({
get : function () {
return "name";
}
});
spyOn(serverDummy2, "findWhere").andReturn({
get : function (a) {
if (a === "protocol") {
return "http";
}
if (a === "address") {
return "localhost";
}
return "name";
}
});
view.dashboard({currentTarget : "target"});
expect(view.stopUpdating).toHaveBeenCalled();
expect(serverDummy2.findWhere).toHaveBeenCalledWith({
address : '123.456.789:8529'
});
expect(window.App.serverToShow).toEqual({
raw : "123.456.789:8529",
isDBServer : false,
endpoint : "http://localhost",
target : "name"
});
});
/*
it("assert showDetail", function () {
window.modalView = {
hide : function () {
return undefined;
},
show : function () {
return undefined;
}
};
spyOn(window.modalView, "hide");
spyOn(window.modalView, "show");
jqueryDummy = {
on : function () {
return undefined;
},
toggleClass : function () {
return undefined;
}
};
spyOn(window, "$").andReturn(jqueryDummy);
spyOn(jqueryDummy, "on").andCallFake(function (a, b) {
expect(a).toEqual("hidden");
b();
});
spyOn(jqueryDummy, "toggleClass");
spyOn(view, "resetShowAll");
spyOn(view, "setShowAll");
spyOn(view, "renderLineChart");
view.showDetail();
expect(view.resetShowAll).toHaveBeenCalled();
expect(view.setShowAll).toHaveBeenCalled();
expect(view.renderLineChart).toHaveBeenCalledWith(true);
expect(window.modalView.hide).toHaveBeenCalled();
expect(window.modalView.show).toHaveBeenCalledWith(
"modalGraph.ejs",
"Average request time in milliseconds",
undefined,
undefined,
undefined
);
expect(window.$).toHaveBeenCalledWith('#modal-dialog');
expect(jqueryDummy.toggleClass).toHaveBeenCalledWith(
"modal-chart-detail", true
);
});
*/
it("assert getCurrentSize", function () {
jqueryDummy = {
attr : function () {
return undefined;
},
height : function () {
return undefined;
},
width : function () {
return undefined;
}
};
spyOn(window, "$").andReturn(jqueryDummy);
spyOn(jqueryDummy, "attr");
spyOn(jqueryDummy, "height").andReturn(1);
spyOn(jqueryDummy, "width").andReturn(2);
expect(view.getCurrentSize("aDiv")).toEqual({
height: 1,
width: 2
});
expect(jqueryDummy.attr).toHaveBeenCalledWith(
"style", ""
);
expect(jqueryDummy.height).toHaveBeenCalled();
expect(jqueryDummy.width).toHaveBeenCalled();
});
it("assert resize", function () {
view.graph = {
maindiv_ : {
id : 1
},
resize : function () {
return undefined;
}
};
spyOn(view.graph, "resize");
spyOn(view, "getCurrentSize").andReturn({
height: 1,
width: 2
});
view.resize();
expect(view.getCurrentSize).toHaveBeenCalledWith(1);
expect(view.graph.resize).toHaveBeenCalledWith(2, 1);
});
});
}());
| {'content_hash': '9d81081c792ee10edb02051ad50b1f57', 'timestamp': '', 'source': 'github', 'line_count': 1526, 'max_line_length': 95, 'avg_line_length': 26.158584534731325, 'alnum_prop': 0.5352973595871536, 'repo_name': 'thurt/arangodb', 'id': '3ecafdb4d0e898e8985f6097bf7230f5c622d288', 'size': '39918', 'binary': False, 'copies': '13', 'ref': 'refs/heads/devel', 'path': 'js/apps/system/_admin/aardvark/APP/test/clusterSpecs/views/showClusterViewSpec.js', 'mode': '33188', 'license': 'apache-2.0', 'language': [{'name': 'Ada', 'bytes': '89080'}, {'name': 'AppleScript', 'bytes': '1429'}, {'name': 'Assembly', 'bytes': '142084'}, {'name': 'Batchfile', 'bytes': '10014'}, {'name': 'C', 'bytes': '1863151'}, {'name': 'C#', 'bytes': '55625'}, {'name': 'C++', 'bytes': '80338136'}, {'name': 'CLIPS', 'bytes': '5291'}, {'name': 'CMake', 'bytes': '114961'}, {'name': 'CSS', 'bytes': '1363813'}, {'name': 'DIGITAL Command Language', 'bytes': '27303'}, {'name': 'Emacs Lisp', 'bytes': '15477'}, {'name': 'Go', 'bytes': '1559295'}, {'name': 'Groff', 'bytes': '263567'}, {'name': 'HTML', 'bytes': '361935'}, {'name': 'JavaScript', 'bytes': '49862866'}, {'name': 'LLVM', 'bytes': '39533'}, {'name': 'Lua', 'bytes': '16189'}, {'name': 'Makefile', 'bytes': '185279'}, {'name': 'Module Management System', 'bytes': '1545'}, {'name': 'NSIS', 'bytes': '26909'}, {'name': 'Objective-C', 'bytes': '4430'}, {'name': 'Objective-C++', 'bytes': '1857'}, {'name': 'Pascal', 'bytes': '145262'}, {'name': 'Perl', 'bytes': '227308'}, {'name': 'Protocol Buffer', 'bytes': '12071'}, {'name': 'Python', 'bytes': '3563935'}, {'name': 'Ruby', 'bytes': '1016516'}, {'name': 'SAS', 'bytes': '1847'}, {'name': 'Scheme', 'bytes': '19885'}, {'name': 'Shell', 'bytes': '496777'}, {'name': 'VimL', 'bytes': '4075'}, {'name': 'Yacc', 'bytes': '38646'}]} |
XTOOLS_NAMESPACE_BEGIN
BufferQueue::BufferQueue(uint32 initialSize)
: m_startIndex(0)
, m_endIndex(0)
, m_allocSize(0)
{
Reserve(initialSize);
}
void BufferQueue::Pop(Buffer& msg)
{
const uint32 startingSize = GetUsedSize();
// Read the size
uint32 msgSize = 0;
ReadData(reinterpret_cast<byte*>(&msgSize), sizeof(msgSize));
msg.Reset(msgSize);
byte* data = msg.GetData();
// Read the message data
ReadData(data, msgSize);
// Record the message size
msg.SetUsedSize(msgSize);
const uint32 endSize = GetUsedSize();
XTASSERT(startingSize > endSize);
XTASSERT(startingSize - endSize == msgSize + sizeof(msgSize));
}
void BufferQueue::Push(const byte* data, uint32 size)
{
if (XTVERIFY(size > 0))
{
const uint32 startingSize = GetUsedSize();
uint32 reserveSize = m_allocSize;
while (startingSize + size + sizeof(uint32) >= reserveSize)
{
reserveSize *= 2;
}
Reserve(reserveSize);
// Push the size of the message first
WriteData(reinterpret_cast<byte*>(&size), sizeof(size));
// Then push the data itself
WriteData(data, size);
const uint32 endSize = GetUsedSize();
XTASSERT(endSize > startingSize);
XTASSERT(endSize - startingSize == size + sizeof(size));
}
}
void BufferQueue::Push(const Buffer& msg)
{
Push(msg.GetData(), msg.GetSize());
}
uint32 BufferQueue::GetUsedSize() const
{
return (m_startIndex <= m_endIndex) ? m_endIndex - m_startIndex : m_endIndex + (m_allocSize - m_startIndex);
}
void BufferQueue::Reserve(uint32 newSize)
{
if (newSize > m_allocSize)
{
byte* newBuffer = new byte[newSize];
uint32 originalSize = GetUsedSize();
// If startIndex and endIndex are equal, then there's no existing
// data in the buffer to save
// If the queue has not wrapped around...
if (m_startIndex < m_endIndex)
{
uint32 copySize = m_endIndex - m_startIndex;
XTASSERT(copySize <= m_allocSize);
// Do a straight copy of the data to the start of the new buffer
memcpy(newBuffer, m_data.get() + m_startIndex, copySize);
}
else if (m_endIndex < m_startIndex)
{
// The data wraps to the start of the buffer; do two copies
uint32 startToEndSize = m_allocSize - m_startIndex;
memcpy(newBuffer, m_data.get() + m_startIndex, startToEndSize);
memcpy(newBuffer + startToEndSize, m_data.get(), m_endIndex);
}
m_data = newBuffer;
m_startIndex = 0;
m_endIndex = originalSize;
m_allocSize = newSize;
XTASSERT(GetUsedSize() == originalSize);
}
}
void BufferQueue::ReadData(byte* data, uint32 size)
{
// Copy the data
uint32 copyStart = m_startIndex;
uint32 remainingSize = size;
for (; remainingSize > 0;)
{
copyStart = copyStart % m_allocSize;
XTASSERT(copyStart < m_allocSize);
uint32 copyEnd = std::min(copyStart + remainingSize, m_allocSize);
uint32 copySize = copyEnd - copyStart;
XTASSERT(copyEnd <= m_allocSize);
XTASSERT(copySize <= remainingSize);
memcpy(data, m_data.get() + copyStart, copySize);
remainingSize -= copySize;
data += copySize;
XTASSERT(copyStart + copySize <= m_allocSize);
copyStart = copyStart + copySize;
XTASSERT(copyStart <= m_allocSize);
}
m_startIndex = copyStart;
}
void BufferQueue::WriteData(const byte* data, uint32 size)
{
// Copy the data
uint32 copyStart = m_endIndex;
uint32 remainingSize = size;
for (; remainingSize > 0;)
{
copyStart = copyStart % m_allocSize;
XTASSERT(copyStart < m_allocSize);
uint32 copyEnd = std::min(copyStart + remainingSize, m_allocSize);
uint32 copySize = copyEnd - copyStart;
XTASSERT(copyEnd <= m_allocSize);
XTASSERT(copySize <= remainingSize);
memcpy(m_data.get() + copyStart, data, copySize);
remainingSize -= copySize;
data += copySize;
XTASSERT(copyStart + copySize <= m_allocSize);
copyStart = copyStart + copySize;
XTASSERT(copyStart <= m_allocSize);
}
m_endIndex = copyStart;
}
XTOOLS_NAMESPACE_END | {'content_hash': '9c177c98cf27967e12750a7defc09991', 'timestamp': '', 'source': 'github', 'line_count': 173, 'max_line_length': 109, 'avg_line_length': 22.36416184971098, 'alnum_prop': 0.695528560351512, 'repo_name': 'andymule/HoloToolkit', 'id': '49c3238be1499b92e78abf7eb2aa7b5c27b90a3e', 'size': '4233', 'binary': False, 'copies': '2', 'ref': 'refs/heads/master', 'path': 'Sharing/Src/Source/Common/Private/BufferQueue.cpp', 'mode': '33188', 'license': 'mit', 'language': [{'name': 'ActionScript', 'bytes': '255087'}, {'name': 'Assembly', 'bytes': '67903'}, {'name': 'Awk', 'bytes': '4270'}, {'name': 'Batchfile', 'bytes': '53542'}, {'name': 'C', 'bytes': '19560233'}, {'name': 'C#', 'bytes': '1096489'}, {'name': 'C++', 'bytes': '13585951'}, {'name': 'CMake', 'bytes': '257428'}, {'name': 'CSS', 'bytes': '37186'}, {'name': 'DIGITAL Command Language', 'bytes': '232950'}, {'name': 'Groff', 'bytes': '1011633'}, {'name': 'HLSL', 'bytes': '809'}, {'name': 'HTML', 'bytes': '18970147'}, {'name': 'Inno Setup', 'bytes': '4186'}, {'name': 'Java', 'bytes': '24137'}, {'name': 'JavaScript', 'bytes': '4750'}, {'name': 'M4', 'bytes': '584628'}, {'name': 'Makefile', 'bytes': '3004872'}, {'name': 'Matlab', 'bytes': '2076'}, {'name': 'Module Management System', 'bytes': '13606'}, {'name': 'OCaml', 'bytes': '13032'}, {'name': 'Objective-C', 'bytes': '621792'}, {'name': 'Objective-C++', 'bytes': '13782'}, {'name': 'PAWN', 'bytes': '3443'}, {'name': 'PHP', 'bytes': '10450'}, {'name': 'Perl', 'bytes': '439175'}, {'name': 'Perl 6', 'bytes': '8552'}, {'name': 'Python', 'bytes': '50251'}, {'name': 'Ruby', 'bytes': '234'}, {'name': 'SAS', 'bytes': '14110'}, {'name': 'Scheme', 'bytes': '9578'}, {'name': 'Shell', 'bytes': '1520712'}, {'name': 'Smalltalk', 'bytes': '1252'}, {'name': 'Visual Basic', 'bytes': '11291'}, {'name': 'XSLT', 'bytes': '24635'}]} |
module Unit where
------------------------------------------------------------------------------
import Extensions
import Data.List
import Data.Maybe
import Data.Ratio
------------------------------------------------------------------------------
-- UNIT
------------------------------------------------------------------------------
data Unit = Unit {
meter :: Integer,
kilogram :: Integer,
second :: Integer,
ampere :: Integer,
kelvin :: Integer,
mole :: Integer,
candela :: Integer,
dollar :: Integer}
-- | Must have the same dimensions
instance Eq Unit where
a == b = meter a == meter b && kilogram a == kilogram b && second a == second b && ampere a == ampere b && kelvin a == kelvin b && mole a == mole b && candela a == candela b
-- | Straightforward showing method
instance Show Unit where
show u = intercalate "*" $ map (\d -> if (fst d) /= 1 then (snd d) ++ "^" ++ show (fst d) else (snd d)) visible
where
dimensions = [(meter u, "m"), (kilogram u, "kg"), (second u, "s"), (ampere u, "A"), (kelvin u, "K"), (mole u, "mol"), (candela u, "cd")]
visible = filter (\d -> fst d /= 0) dimensions
------------------------------------------------------------------------------
-- COMBINATION
-- | Must be same unit
addUnits :: Unit -> Unit -> Maybe Unit
addUnits a b = if a == b then Just a else Nothing
multiplyUnits :: Unit -> Unit -> Unit -- guaranteed to succeed
multiplyUnits a b = Unit {
meter = meter a + meter b,
kilogram = kilogram a + kilogram b,
second = second a + second b,
ampere = ampere a + ampere b,
kelvin = kelvin a + kelvin b,
mole = mole a + mole b,
candela = candela a + candela b,
dollar = dollar a + dollar b}
raiseUnit :: Unit -> Rational -> Maybe Unit
raiseUnit u e = if length (catMaybes [m, kg, s, a, k, mol, cd, usd]) /= 8 then Nothing else Just $ Unit {meter = fromJust m, kilogram = fromJust kg, second = fromJust s, ampere = fromJust a, kelvin = fromJust k, mole = fromJust mol, candela = fromJust cd, dollar = fromJust usd}
where
castToInteger :: Rational -> Maybe Integer
castToInteger n = if denominator n == 1 then Just (numerator n) else Nothing
m = castToInteger $ fromIntegral (meter u) * e
kg = castToInteger $ fromIntegral (kilogram u) * e
s = castToInteger $ fromIntegral (second u) * e
a = castToInteger $ fromIntegral (ampere u) * e
k = castToInteger $ fromIntegral (kelvin u) * e
mol = castToInteger $ fromIntegral (mole u) * e
cd = castToInteger $ fromIntegral (candela u) * e
usd = castToInteger $ fromIntegral (dollar u) * e
------------------------------------------------------------------------------
-- DEFAULT UNITS
unitless = Unit {meter = 0, kilogram = 0, second = 0, ampere = 0, kelvin = 0, mole = 0, candela = 0, dollar = 0}
-- SI units
meters = unitless {meter = 1}
kilograms = unitless {kilogram = 1}
seconds = unitless {second = 1}
amperes = unitless {ampere = 1}
kelvins = unitless {kelvin = 1} -- plural of kelvin is kelvin, so added an s here to differentiate
moles = unitless {mole = 1}
candelas = unitless {candela = 1}
dollars = unitless {dollar = 1}
| {'content_hash': 'fbac2edbb04b5cdb1e37fb50d367659d', 'timestamp': '', 'source': 'github', 'line_count': 81, 'max_line_length': 278, 'avg_line_length': 39.123456790123456, 'alnum_prop': 0.5575891448406437, 'repo_name': 'Conflagrationator/HMath', 'id': 'e59833d6bd7733abbf0f97356f236cdf8c9b52bb', 'size': '3260', 'binary': False, 'copies': '1', 'ref': 'refs/heads/master', 'path': 'src/Unit.hs', 'mode': '33188', 'license': 'bsd-3-clause', 'language': [{'name': 'CSS', 'bytes': '544852'}, {'name': 'HTML', 'bytes': '81089338'}, {'name': 'Haskell', 'bytes': '72747'}, {'name': 'JavaScript', 'bytes': '439292'}]} |
package org.apache.hadoop.yarn.server.nodemanager.containermanager.linux.resources;
import org.apache.hadoop.thirdparty.com.google.common.annotations.VisibleForTesting;
import org.apache.hadoop.classification.InterfaceAudience;
import org.apache.hadoop.classification.InterfaceStability;
import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.yarn.conf.YarnConfiguration;
import org.apache.hadoop.yarn.server.nodemanager.Context;
import org.apache.hadoop.yarn.server.nodemanager.containermanager.linux.privileged.PrivilegedOperationExecutor;
import org.apache.hadoop.yarn.server.nodemanager.containermanager.linux.resources.numa.NumaResourceHandlerImpl;
import org.apache.hadoop.yarn.server.nodemanager.containermanager.resourceplugin.ResourcePlugin;
import org.apache.hadoop.yarn.server.nodemanager.containermanager.resourceplugin.ResourcePluginManager;
import org.apache.hadoop.yarn.server.nodemanager.util.CgroupsLCEResourcesHandler;
import org.apache.hadoop.yarn.server.nodemanager.util.DefaultLCEResourcesHandler;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;
/**
* Provides mechanisms to get various resource handlers - cpu, memory, network,
* disk etc., - based on configuration.
*/
@InterfaceAudience.Private
@InterfaceStability.Unstable
public class ResourceHandlerModule {
static final Logger LOG =
LoggerFactory.getLogger(ResourceHandlerModule.class);
private static volatile ResourceHandlerChain resourceHandlerChain;
/**
* This specific implementation might provide resource management as well
* as resource metrics functionality. We need to ensure that the same
* instance is used for both.
*/
private static volatile TrafficControlBandwidthHandlerImpl
trafficControlBandwidthHandler;
private static volatile NetworkPacketTaggingHandlerImpl
networkPacketTaggingHandlerImpl;
private static volatile CGroupsHandler cGroupsHandler;
private static volatile CGroupsBlkioResourceHandlerImpl
cGroupsBlkioResourceHandler;
private static volatile CGroupsMemoryResourceHandlerImpl
cGroupsMemoryResourceHandler;
private static volatile CGroupsCpuResourceHandlerImpl
cGroupsCpuResourceHandler;
/**
* Returns an initialized, thread-safe CGroupsHandler instance.
*/
private static CGroupsHandler getInitializedCGroupsHandler(Configuration conf)
throws ResourceHandlerException {
if (cGroupsHandler == null) {
synchronized (CGroupsHandler.class) {
if (cGroupsHandler == null) {
cGroupsHandler = new CGroupsHandlerImpl(conf,
PrivilegedOperationExecutor.getInstance(conf));
LOG.debug("Value of CGroupsHandler is: {}", cGroupsHandler);
}
}
}
return cGroupsHandler;
}
/**
* Returns a (possibly null) reference to a cGroupsHandler. This handler is
* non-null only if one or more of the known cgroups-based resource
* handlers are in use and have been initialized.
*/
public static CGroupsHandler getCGroupsHandler() {
return cGroupsHandler;
}
/**
* Returns relative root for cgroups. Returns null if cGroupsHandler is
* not initialized, or if the path is empty.
*/
public static String getCgroupsRelativeRoot() {
if (cGroupsHandler == null) {
return null;
}
String cGroupPath = cGroupsHandler.getRelativePathForCGroup("");
if (cGroupPath == null || cGroupPath.isEmpty()) {
return null;
}
return cGroupPath.replaceAll("/$", "");
}
public static NetworkPacketTaggingHandlerImpl
getNetworkResourceHandler() {
return networkPacketTaggingHandlerImpl;
}
public static DiskResourceHandler
getDiskResourceHandler() {
return cGroupsBlkioResourceHandler;
}
public static MemoryResourceHandler
getMemoryResourceHandler() {
return cGroupsMemoryResourceHandler;
}
public static CpuResourceHandler
getCpuResourceHandler() {
return cGroupsCpuResourceHandler;
}
private static CGroupsCpuResourceHandlerImpl initCGroupsCpuResourceHandler(
Configuration conf) throws ResourceHandlerException {
boolean cgroupsCpuEnabled =
conf.getBoolean(YarnConfiguration.NM_CPU_RESOURCE_ENABLED,
YarnConfiguration.DEFAULT_NM_CPU_RESOURCE_ENABLED);
boolean cgroupsLCEResourcesHandlerEnabled =
conf.getClass(YarnConfiguration.NM_LINUX_CONTAINER_RESOURCES_HANDLER,
DefaultLCEResourcesHandler.class)
.equals(CgroupsLCEResourcesHandler.class);
if (cgroupsCpuEnabled || cgroupsLCEResourcesHandlerEnabled) {
if (cGroupsCpuResourceHandler == null) {
synchronized (CpuResourceHandler.class) {
if (cGroupsCpuResourceHandler == null) {
LOG.debug("Creating new cgroups cpu handler");
cGroupsCpuResourceHandler =
new CGroupsCpuResourceHandlerImpl(
getInitializedCGroupsHandler(conf));
return cGroupsCpuResourceHandler;
}
}
}
}
return null;
}
private static TrafficControlBandwidthHandlerImpl
getTrafficControlBandwidthHandler(Configuration conf)
throws ResourceHandlerException {
if (conf.getBoolean(YarnConfiguration.NM_NETWORK_RESOURCE_ENABLED,
YarnConfiguration.DEFAULT_NM_NETWORK_RESOURCE_ENABLED)) {
if (trafficControlBandwidthHandler == null) {
synchronized (OutboundBandwidthResourceHandler.class) {
if (trafficControlBandwidthHandler == null) {
LOG.info("Creating new traffic control bandwidth handler.");
trafficControlBandwidthHandler = new
TrafficControlBandwidthHandlerImpl(PrivilegedOperationExecutor
.getInstance(conf), getInitializedCGroupsHandler(conf),
new TrafficController(conf, PrivilegedOperationExecutor
.getInstance(conf)));
}
}
}
return trafficControlBandwidthHandler;
} else {
return null;
}
}
public static ResourceHandler initNetworkResourceHandler(Configuration conf)
throws ResourceHandlerException {
boolean useNetworkTagHandler = conf.getBoolean(
YarnConfiguration.NM_NETWORK_TAG_HANDLER_ENABLED,
YarnConfiguration.DEFAULT_NM_NETWORK_TAG_HANDLER_ENABLED);
if (useNetworkTagHandler) {
LOG.info("Using network-tagging-handler.");
return getNetworkTaggingHandler(conf);
} else {
LOG.info("Using traffic control bandwidth handler");
return getTrafficControlBandwidthHandler(conf);
}
}
public static ResourceHandler getNetworkTaggingHandler(Configuration conf)
throws ResourceHandlerException {
if (networkPacketTaggingHandlerImpl == null) {
synchronized (OutboundBandwidthResourceHandler.class) {
if (networkPacketTaggingHandlerImpl == null) {
LOG.info("Creating new network-tagging-handler.");
networkPacketTaggingHandlerImpl =
new NetworkPacketTaggingHandlerImpl(
PrivilegedOperationExecutor.getInstance(conf),
getInitializedCGroupsHandler(conf));
}
}
}
return networkPacketTaggingHandlerImpl;
}
public static OutboundBandwidthResourceHandler
initOutboundBandwidthResourceHandler(Configuration conf)
throws ResourceHandlerException {
return getTrafficControlBandwidthHandler(conf);
}
public static DiskResourceHandler initDiskResourceHandler(Configuration conf)
throws ResourceHandlerException {
if (conf.getBoolean(YarnConfiguration.NM_DISK_RESOURCE_ENABLED,
YarnConfiguration.DEFAULT_NM_DISK_RESOURCE_ENABLED)) {
return getCgroupsBlkioResourceHandler(conf);
}
return null;
}
private static CGroupsBlkioResourceHandlerImpl getCgroupsBlkioResourceHandler(
Configuration conf) throws ResourceHandlerException {
if (cGroupsBlkioResourceHandler == null) {
synchronized (DiskResourceHandler.class) {
if (cGroupsBlkioResourceHandler == null) {
LOG.debug("Creating new cgroups blkio handler");
cGroupsBlkioResourceHandler =
new CGroupsBlkioResourceHandlerImpl(
getInitializedCGroupsHandler(conf));
}
}
}
return cGroupsBlkioResourceHandler;
}
public static MemoryResourceHandler initMemoryResourceHandler(
Configuration conf) throws ResourceHandlerException {
if (conf.getBoolean(YarnConfiguration.NM_MEMORY_RESOURCE_ENABLED,
YarnConfiguration.DEFAULT_NM_MEMORY_RESOURCE_ENABLED)) {
return getCgroupsMemoryResourceHandler(conf);
}
return null;
}
private static CGroupsMemoryResourceHandlerImpl
getCgroupsMemoryResourceHandler(
Configuration conf) throws ResourceHandlerException {
if (cGroupsMemoryResourceHandler == null) {
synchronized (MemoryResourceHandler.class) {
if (cGroupsMemoryResourceHandler == null) {
cGroupsMemoryResourceHandler =
new CGroupsMemoryResourceHandlerImpl(
getInitializedCGroupsHandler(conf));
}
}
}
return cGroupsMemoryResourceHandler;
}
private static ResourceHandler getNumaResourceHandler(Configuration conf,
Context nmContext) {
if (YarnConfiguration.numaAwarenessEnabled(conf)) {
return new NumaResourceHandlerImpl(conf, nmContext);
}
return null;
}
private static void addHandlerIfNotNull(List<ResourceHandler> handlerList,
ResourceHandler handler) {
if (handler != null) {
handlerList.add(handler);
}
}
private static void initializeConfiguredResourceHandlerChain(
Configuration conf, Context nmContext)
throws ResourceHandlerException {
ArrayList<ResourceHandler> handlerList = new ArrayList<>();
addHandlerIfNotNull(handlerList,
initNetworkResourceHandler(conf));
addHandlerIfNotNull(handlerList,
initDiskResourceHandler(conf));
addHandlerIfNotNull(handlerList,
initMemoryResourceHandler(conf));
addHandlerIfNotNull(handlerList,
initCGroupsCpuResourceHandler(conf));
addHandlerIfNotNull(handlerList, getNumaResourceHandler(conf, nmContext));
addHandlersFromConfiguredResourcePlugins(handlerList, conf, nmContext);
resourceHandlerChain = new ResourceHandlerChain(handlerList);
}
private static void addHandlersFromConfiguredResourcePlugins(
List<ResourceHandler> handlerList, Configuration conf,
Context nmContext) throws ResourceHandlerException {
ResourcePluginManager pluginManager = nmContext.getResourcePluginManager();
if (pluginManager == null) {
LOG.warn("Plugin manager was null while trying to add " +
"ResourceHandlers from configuration!");
return;
}
Map<String, ResourcePlugin> pluginMap = pluginManager.getNameToPlugins();
if (pluginMap == null) {
LOG.debug("List of plugins of ResourcePluginManager was empty " +
"while trying to add ResourceHandlers from configuration!");
return;
} else {
LOG.debug("List of plugins of ResourcePluginManager: {}",
pluginManager.getNameToPlugins());
}
for (ResourcePlugin plugin : pluginMap.values()) {
addHandlerIfNotNull(handlerList,
plugin.createResourceHandler(nmContext,
getInitializedCGroupsHandler(conf),
PrivilegedOperationExecutor.getInstance(conf)));
}
}
public static ResourceHandlerChain getConfiguredResourceHandlerChain(
Configuration conf, Context nmContext) throws ResourceHandlerException {
if (resourceHandlerChain == null) {
synchronized (ResourceHandlerModule.class) {
if (resourceHandlerChain == null) {
initializeConfiguredResourceHandlerChain(conf, nmContext);
}
}
}
if (resourceHandlerChain.getResourceHandlerList().size() != 0) {
return resourceHandlerChain;
} else {
return null;
}
}
@VisibleForTesting
static void nullifyResourceHandlerChain() throws ResourceHandlerException {
resourceHandlerChain = null;
}
/**
* If a cgroup mount directory is specified, it returns cgroup directories
* with valid names.
* The requirement is that each hierarchy has to be named with the comma
* separated names of subsystems supported.
* For example: /sys/fs/cgroup/cpu,cpuacct
* @param cgroupMountPath Root cgroup mount path (/sys/fs/cgroup in the
* example above)
* @return A path to cgroup subsystem set mapping in the same format as
* {@link CGroupsHandlerImpl#parseMtab(String)}
* @throws IOException if the specified directory cannot be listed
*/
public static Map<String, Set<String>> parseConfiguredCGroupPath(
String cgroupMountPath) throws IOException {
File cgroupDir = new File(cgroupMountPath);
File[] list = cgroupDir.listFiles();
if (list == null) {
throw new IOException("Empty cgroup mount directory specified: " +
cgroupMountPath);
}
Map<String, Set<String>> pathSubsystemMappings = new HashMap<>();
Set<String> validCGroups =
CGroupsHandler.CGroupController.getValidCGroups();
for (File candidate: list) {
Set<String> cgroupList =
new HashSet<>(Arrays.asList(candidate.getName().split(",")));
// Collect the valid subsystem names
cgroupList.retainAll(validCGroups);
if (!cgroupList.isEmpty()) {
if (candidate.isDirectory()) {
pathSubsystemMappings.put(candidate.getAbsolutePath(), cgroupList);
} else {
LOG.warn("The following cgroup is not a directory " +
candidate.getAbsolutePath());
}
}
}
return pathSubsystemMappings;
}
}
| {'content_hash': '53c0842c296b454de4c3993d1d0f1970', 'timestamp': '', 'source': 'github', 'line_count': 379, 'max_line_length': 111, 'avg_line_length': 36.87335092348285, 'alnum_prop': 0.7234347048300537, 'repo_name': 'nandakumar131/hadoop', 'id': 'f322a9b3c52c7c91a6655b82dc45e7e2d2be23b2', 'size': '14796', 'binary': False, 'copies': '2', 'ref': 'refs/heads/trunk', 'path': 'hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/main/java/org/apache/hadoop/yarn/server/nodemanager/containermanager/linux/resources/ResourceHandlerModule.java', 'mode': '33188', 'license': 'apache-2.0', 'language': [{'name': 'Batchfile', 'bytes': '78118'}, {'name': 'C', 'bytes': '1963896'}, {'name': 'C++', 'bytes': '2858990'}, {'name': 'CMake', 'bytes': '114811'}, {'name': 'CSS', 'bytes': '117127'}, {'name': 'Dockerfile', 'bytes': '8160'}, {'name': 'HTML', 'bytes': '401158'}, {'name': 'Java', 'bytes': '91592443'}, {'name': 'JavaScript', 'bytes': '1175143'}, {'name': 'Python', 'bytes': '77552'}, {'name': 'Roff', 'bytes': '8817'}, {'name': 'Shell', 'bytes': '467526'}, {'name': 'TLA', 'bytes': '14997'}, {'name': 'TSQL', 'bytes': '30600'}, {'name': 'TeX', 'bytes': '19322'}, {'name': 'XSLT', 'bytes': '18026'}]} |
package org.jdom;
import com.intellij.openapi.util.Comparing;
import com.intellij.util.ArrayUtil;
import com.intellij.util.containers.EmptyIterator;
import org.jetbrains.annotations.NotNull;
import java.util.*;
class ImmutableSameTypeAttributeList implements List<Attribute> {
private static final String[] EMPTY_STRING_ARRAY = ArrayUtil.EMPTY_STRING_ARRAY;
private final String[] myNameValues;
private final AttributeType myType;
private final Namespace myNs;
ImmutableSameTypeAttributeList(@NotNull String[] nameValues, AttributeType type, @NotNull Namespace ns) {
myNameValues = nameValues.length == 0 ? EMPTY_STRING_ARRAY : nameValues;
myType = type;
myNs = ns;
}
@Override
public Attribute get(int index) {
return new ImmutableAttribute(myNameValues[index*2], myNameValues[index*2+1], myType, myNs);
}
Attribute get(String name, Namespace namespace) {
if (!myNs.equals(namespace)) return null;
for (int i = 0; i < myNameValues.length; i+=2) {
String aname = myNameValues[i];
if (aname.equals(name)) {
return get(i/2);
}
}
return null;
}
String getValue(String name, Namespace namespace, String def) {
if (!myNs.equals(namespace)) return def;
for (int i = 0; i < myNameValues.length; i+=2) {
String aname = myNameValues[i];
if (aname.equals(name)) {
return myNameValues[i + 1];
}
}
return def;
}
@Override
public int size() {
return myNameValues.length/2;
}
@Override
public String toString() {
return toList().toString();
}
@Override
public int indexOf(Object o) {
for (int i = 0; i < size(); i++) {
if (Comparing.equal(0,get(i))) return i;
}
return -1;
}
@Override
public int lastIndexOf(Object o) {
for (int i = size() - 1; i >= 0; i--) {
if (Comparing.equal(0,get(i))) return i;
}
return -1;
}
@NotNull
@Override
public Iterator<Attribute> iterator() {
if (isEmpty()) return EmptyIterator.getInstance();
return new Iterator<Attribute>() {
int i;
@Override
public boolean hasNext() {
return i < size();
}
@Override
public Attribute next() {
return get(i++);
}
@Override
public void remove() {
throw ImmutableElement.immutableError(ImmutableSameTypeAttributeList.this);
}
};
}
@NotNull
@Override
public List<Attribute> subList(int fromIndex, int toIndex) {
return toList().subList(fromIndex, toIndex);
}
private List<Attribute> toList() {
List<Attribute> list = new ArrayList<>(size());
for (int i = 0; i < size(); i++) {
list.add(get(i));
}
return list;
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (!(o instanceof List) || size() != ((List)o).size()) {
return false;
}
if (size() == 0) {
return true;
}
if (o instanceof ImmutableSameTypeAttributeList) {
ImmutableSameTypeAttributeList io = (ImmutableSameTypeAttributeList)o;
return myType == io.myType && myNs.equals(io.myNs) && Arrays.equals(myNameValues, io.myNameValues);
}
List<Attribute> l = (List<Attribute>)o;
for (int i=0; i<myNameValues.length; i+=2) {
String name = myNameValues[i];
String value = myNameValues[i+1];
Attribute a2 = l.get(i/2);
if (!Comparing.equal(name, a2.getName()) ||
!Comparing.equal(value, a2.getValue()) ||
!Comparing.equal(myType, a2.getAttributeType()) ||
!Comparing.equal(myNs, a2.getNamespace())
) return false;
}
return true;
}
@Override
public int hashCode() {
int result = 1;
for (int i=0; i<myNameValues.length; i+=2) {
String name = myNameValues[i];
String value = myNameValues[i + 1];
result = result * 31 + JDOMInterner.computeAttributeHashCode(name, value);
}
return result;
}
@Override
public boolean isEmpty() {
return size() == 0;
}
@Override
public boolean contains(Object o) {
return indexOf(o) != -1;
}
@NotNull
@Override
public Object[] toArray() {
return toList().toArray(new Attribute[0]);
}
@NotNull
@Override
public <T> T[] toArray(@NotNull T[] a) {
return (T[])toArray();
}
@Override
public boolean containsAll(@NotNull Collection<?> c) {
for (Object o : c) {
if (!contains(o)) return false;
}
return true;
}
///////////////////////////////////////////////////
@Override
public boolean add(Attribute obj) {
throw ImmutableElement.immutableError(this);
}
@Override
public void add(int index, Attribute obj) {
throw ImmutableElement.immutableError(this);
}
@Override
public boolean addAll(@NotNull Collection<? extends Attribute> collection) {
throw ImmutableElement.immutableError(this);
}
@Override
public boolean addAll(int index, @NotNull Collection<? extends Attribute> collection) {
throw ImmutableElement.immutableError(this);
}
@Override
public void clear() {
throw ImmutableElement.immutableError(this);
}
@Override
public Attribute remove(int index) {
throw ImmutableElement.immutableError(this);
}
@Override
public Attribute set(int index, Attribute obj) {
throw ImmutableElement.immutableError(this);
}
@NotNull
@Override
public ListIterator<Attribute> listIterator() {
throw ImmutableElement.immutableError(this);
}
@NotNull
@Override
public ListIterator<Attribute> listIterator(int index) {
throw ImmutableElement.immutableError(this);
}
@Override
public boolean remove(Object o) {
throw ImmutableElement.immutableError(this);
}
@Override
public boolean removeAll(@NotNull Collection<?> c) {
throw ImmutableElement.immutableError(this);
}
@Override
public boolean retainAll(@NotNull Collection<?> c) {
throw ImmutableElement.immutableError(this);
}
}
| {'content_hash': '5c24e8f501aa881059acee98b7eb3cd0', 'timestamp': '', 'source': 'github', 'line_count': 249, 'max_line_length': 107, 'avg_line_length': 24.056224899598394, 'alnum_prop': 0.6373956594323873, 'repo_name': 'paplorinc/intellij-community', 'id': '0a67a6cde93b3617af0c45b8a3ec352580fa17ea', 'size': '6584', 'binary': False, 'copies': '1', 'ref': 'refs/heads/master', 'path': 'platform/util/src/org/jdom/ImmutableSameTypeAttributeList.java', 'mode': '33188', 'license': 'apache-2.0', 'language': []} |
// *****************************************************************************
// *****************************************************************************
#ifndef FileConvCmdLineParser_h
#define FileConvCmdLineParser_h
#include "StringParser.hpp"
#include "FileConv/CmdLine/CmdLine.hpp"
namespace tk { class Print; }
namespace fileconv {
//! \brief Command-line parser for FileConv.
//! \details This class is used to interface with PEGTL, for the purpose of
//! parsing command-line arguments for the file converter, FileConv.
class CmdLineParser : public tk::StringParser {
public:
//! Constructor
explicit CmdLineParser( int argc,
char** argv,
const tk::Print& print,
ctr::CmdLine& cmdline );
};
} // fileconv::
#endif // FileConvCmdLineParser_h
| {'content_hash': '21c05c936a0dc21e5e429d72ba15cf42', 'timestamp': '', 'source': 'github', 'line_count': 29, 'max_line_length': 80, 'avg_line_length': 29.655172413793103, 'alnum_prop': 0.5255813953488372, 'repo_name': 'jbakosi/quinoa', 'id': '8f19cc740dd3dd3aa89b963d80bd5c68e91944b7', 'size': '1286', 'binary': False, 'copies': '1', 'ref': 'refs/heads/master', 'path': 'src/Control/FileConv/CmdLine/Parser.hpp', 'mode': '33188', 'license': 'bsd-3-clause', 'language': []} |
package api
import (
"k8s.io/client-go/pkg/api/resource"
"k8s.io/client-go/pkg/api/unversioned"
"k8s.io/client-go/pkg/fields"
"k8s.io/client-go/pkg/labels"
"k8s.io/client-go/pkg/runtime"
"k8s.io/client-go/pkg/types"
"k8s.io/client-go/pkg/util/intstr"
)
// Common string formats
// ---------------------
// Many fields in this API have formatting requirements. The commonly used
// formats are defined here.
//
// C_IDENTIFIER: This is a string that conforms to the definition of an "identifier"
// in the C language. This is captured by the following regex:
// [A-Za-z_][A-Za-z0-9_]*
// This defines the format, but not the length restriction, which should be
// specified at the definition of any field of this type.
//
// DNS_LABEL: This is a string, no more than 63 characters long, that conforms
// to the definition of a "label" in RFCs 1035 and 1123. This is captured
// by the following regex:
// [a-z0-9]([-a-z0-9]*[a-z0-9])?
//
// DNS_SUBDOMAIN: This is a string, no more than 253 characters long, that conforms
// to the definition of a "subdomain" in RFCs 1035 and 1123. This is captured
// by the following regex:
// [a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*
// or more simply:
// DNS_LABEL(\.DNS_LABEL)*
//
// IANA_SVC_NAME: This is a string, no more than 15 characters long, that
// conforms to the definition of IANA service name in RFC 6335.
// It must contains at least one letter [a-z] and it must contains only [a-z0-9-].
// Hypens ('-') cannot be leading or trailing character of the string
// and cannot be adjacent to other hyphens.
// ObjectMeta is metadata that all persisted resources must have, which includes all objects
// users must create.
type ObjectMeta struct {
// Name is unique within a namespace. Name is required when creating resources, although
// some resources may allow a client to request the generation of an appropriate name
// automatically. Name is primarily intended for creation idempotence and configuration
// definition.
Name string `json:"name,omitempty"`
// GenerateName indicates that the name should be made unique by the server prior to persisting
// it. A non-empty value for the field indicates the name will be made unique (and the name
// returned to the client will be different than the name passed). The value of this field will
// be combined with a unique suffix on the server if the Name field has not been provided.
// The provided value must be valid within the rules for Name, and may be truncated by the length
// of the suffix required to make the value unique on the server.
//
// If this field is specified, and Name is not present, the server will NOT return a 409 if the
// generated name exists - instead, it will either return 201 Created or 500 with Reason
// ServerTimeout indicating a unique name could not be found in the time allotted, and the client
// should retry (optionally after the time indicated in the Retry-After header).
GenerateName string `json:"generateName,omitempty"`
// Namespace defines the space within which name must be unique. An empty namespace is
// equivalent to the "default" namespace, but "default" is the canonical representation.
// Not all objects are required to be scoped to a namespace - the value of this field for
// those objects will be empty.
Namespace string `json:"namespace,omitempty"`
// SelfLink is a URL representing this object.
SelfLink string `json:"selfLink,omitempty"`
// UID is the unique in time and space value for this object. It is typically generated by
// the server on successful creation of a resource and is not allowed to change on PUT
// operations.
UID types.UID `json:"uid,omitempty"`
// An opaque value that represents the version of this resource. May be used for optimistic
// concurrency, change detection, and the watch operation on a resource or set of resources.
// Clients must treat these values as opaque and values may only be valid for a particular
// resource or set of resources. Only servers will generate resource versions.
ResourceVersion string `json:"resourceVersion,omitempty"`
// A sequence number representing a specific generation of the desired state.
// Populated by the system. Read-only.
Generation int64 `json:"generation,omitempty"`
// CreationTimestamp is a timestamp representing the server time when this object was
// created. It is not guaranteed to be set in happens-before order across separate operations.
// Clients may not set this value. It is represented in RFC3339 form and is in UTC.
CreationTimestamp unversioned.Time `json:"creationTimestamp,omitempty"`
// DeletionTimestamp is the time after which this resource will be deleted. This
// field is set by the server when a graceful deletion is requested by the user, and is not
// directly settable by a client. The resource will be deleted (no longer visible from
// resource lists, and not reachable by name) after the time in this field. Once set, this
// value may not be unset or be set further into the future, although it may be shortened
// or the resource may be deleted prior to this time. For example, a user may request that
// a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination
// signal to the containers in the pod. Once the resource is deleted in the API, the Kubelet
// will send a hard termination signal to the container.
DeletionTimestamp *unversioned.Time `json:"deletionTimestamp,omitempty"`
// DeletionGracePeriodSeconds records the graceful deletion value set when graceful deletion
// was requested. Represents the most recent grace period, and may only be shortened once set.
DeletionGracePeriodSeconds *int64 `json:"deletionGracePeriodSeconds,omitempty"`
// Labels are key value pairs that may be used to scope and select individual resources.
// Label keys are of the form:
// label-key ::= prefixed-name | name
// prefixed-name ::= prefix '/' name
// prefix ::= DNS_SUBDOMAIN
// name ::= DNS_LABEL
// The prefix is optional. If the prefix is not specified, the key is assumed to be private
// to the user. Other system components that wish to use labels must specify a prefix. The
// "kubernetes.io/" prefix is reserved for use by kubernetes components.
Labels map[string]string `json:"labels,omitempty"`
// Annotations are unstructured key value data stored with a resource that may be set by
// external tooling. They are not queryable and should be preserved when modifying
// objects. Annotation keys have the same formatting restrictions as Label keys. See the
// comments on Labels for details.
Annotations map[string]string `json:"annotations,omitempty"`
// List of objects depended by this object. If ALL objects in the list have
// been deleted, this object will be garbage collected. If this object is managed by a controller,
// then an entry in this list will point to this controller, with the controller field set to true.
// There cannot be more than one managing controller.
OwnerReferences []OwnerReference `json:"ownerReferences,omitempty"`
// Must be empty before the object is deleted from the registry. Each entry
// is an identifier for the responsible component that will remove the entry
// from the list. If the deletionTimestamp of the object is non-nil, entries
// in this list can only be removed.
Finalizers []string `json:"finalizers,omitempty"`
// The name of the cluster which the object belongs to.
// This is used to distinguish resources with same name and namespace in different clusters.
// This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request.
ClusterName string `json:"clusterName,omitempty"`
}
const (
// NamespaceDefault means the object is in the default namespace which is applied when not specified by clients
NamespaceDefault string = "default"
// NamespaceAll is the default argument to specify on a context when you want to list or filter resources across all namespaces
NamespaceAll string = ""
// NamespaceNone is the argument for a context when there is no namespace.
NamespaceNone string = ""
// NamespaceSystem is the system namespace where we place system components.
NamespaceSystem string = "kube-system"
// TerminationMessagePathDefault means the default path to capture the application termination message running in a container
TerminationMessagePathDefault string = "/dev/termination-log"
)
// Volume represents a named volume in a pod that may be accessed by any containers in the pod.
type Volume struct {
// Required: This must be a DNS_LABEL. Each volume in a pod must have
// a unique name.
Name string `json:"name"`
// The VolumeSource represents the location and type of a volume to mount.
// This is optional for now. If not specified, the Volume is implied to be an EmptyDir.
// This implied behavior is deprecated and will be removed in a future version.
VolumeSource `json:",inline,omitempty"`
}
// VolumeSource represents the source location of a volume to mount.
// Only one of its members may be specified.
type VolumeSource struct {
// HostPath represents file or directory on the host machine that is
// directly exposed to the container. This is generally used for system
// agents or other privileged things that are allowed to see the host
// machine. Most containers will NOT need this.
// ---
// TODO(jonesdl) We need to restrict who can use host directory mounts and who can/can not
// mount host directories as read/write.
HostPath *HostPathVolumeSource `json:"hostPath,omitempty"`
// EmptyDir represents a temporary directory that shares a pod's lifetime.
EmptyDir *EmptyDirVolumeSource `json:"emptyDir,omitempty"`
// GCEPersistentDisk represents a GCE Disk resource that is attached to a
// kubelet's host machine and then exposed to the pod.
GCEPersistentDisk *GCEPersistentDiskVolumeSource `json:"gcePersistentDisk,omitempty"`
// AWSElasticBlockStore represents an AWS EBS disk that is attached to a
// kubelet's host machine and then exposed to the pod.
AWSElasticBlockStore *AWSElasticBlockStoreVolumeSource `json:"awsElasticBlockStore,omitempty"`
// GitRepo represents a git repository at a particular revision.
GitRepo *GitRepoVolumeSource `json:"gitRepo,omitempty"`
// Secret represents a secret that should populate this volume.
Secret *SecretVolumeSource `json:"secret,omitempty"`
// NFS represents an NFS mount on the host that shares a pod's lifetime
NFS *NFSVolumeSource `json:"nfs,omitempty"`
// ISCSIVolumeSource represents an ISCSI Disk resource that is attached to a
// kubelet's host machine and then exposed to the pod.
ISCSI *ISCSIVolumeSource `json:"iscsi,omitempty"`
// Glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime
Glusterfs *GlusterfsVolumeSource `json:"glusterfs,omitempty"`
// PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace
PersistentVolumeClaim *PersistentVolumeClaimVolumeSource `json:"persistentVolumeClaim,omitempty"`
// RBD represents a Rados Block Device mount on the host that shares a pod's lifetime
RBD *RBDVolumeSource `json:"rbd,omitempty"`
// Quobyte represents a Quobyte mount on the host that shares a pod's lifetime
Quobyte *QuobyteVolumeSource `json:"quobyte,omitempty"`
// FlexVolume represents a generic volume resource that is
// provisioned/attached using an exec based plugin. This is an alpha feature and may change in future.
FlexVolume *FlexVolumeSource `json:"flexVolume,omitempty"`
// Cinder represents a cinder volume attached and mounted on kubelets host machine
Cinder *CinderVolumeSource `json:"cinder,omitempty"`
// CephFS represents a Cephfs mount on the host that shares a pod's lifetime
CephFS *CephFSVolumeSource `json:"cephfs,omitempty"`
// Flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running
Flocker *FlockerVolumeSource `json:"flocker,omitempty"`
// DownwardAPI represents metadata about the pod that should populate this volume
DownwardAPI *DownwardAPIVolumeSource `json:"downwardAPI,omitempty"`
// FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod.
FC *FCVolumeSource `json:"fc,omitempty"`
// AzureFile represents an Azure File Service mount on the host and bind mount to the pod.
AzureFile *AzureFileVolumeSource `json:"azureFile,omitempty"`
// ConfigMap represents a configMap that should populate this volume
ConfigMap *ConfigMapVolumeSource `json:"configMap,omitempty"`
// VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine
VsphereVolume *VsphereVirtualDiskVolumeSource `json:"vsphereVolume,omitempty"`
// AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod.
AzureDisk *AzureDiskVolumeSource `json:"azureDisk,omitempty"`
}
// Similar to VolumeSource but meant for the administrator who creates PVs.
// Exactly one of its members must be set.
type PersistentVolumeSource struct {
// GCEPersistentDisk represents a GCE Disk resource that is attached to a
// kubelet's host machine and then exposed to the pod.
GCEPersistentDisk *GCEPersistentDiskVolumeSource `json:"gcePersistentDisk,omitempty"`
// AWSElasticBlockStore represents an AWS EBS disk that is attached to a
// kubelet's host machine and then exposed to the pod.
AWSElasticBlockStore *AWSElasticBlockStoreVolumeSource `json:"awsElasticBlockStore,omitempty"`
// HostPath represents a directory on the host.
// Provisioned by a developer or tester.
// This is useful for single-node development and testing only!
// On-host storage is not supported in any way and WILL NOT WORK in a multi-node cluster.
HostPath *HostPathVolumeSource `json:"hostPath,omitempty"`
// Glusterfs represents a Glusterfs volume that is attached to a host and exposed to the pod
Glusterfs *GlusterfsVolumeSource `json:"glusterfs,omitempty"`
// NFS represents an NFS mount on the host that shares a pod's lifetime
NFS *NFSVolumeSource `json:"nfs,omitempty"`
// RBD represents a Rados Block Device mount on the host that shares a pod's lifetime
RBD *RBDVolumeSource `json:"rbd,omitempty"`
// Quobyte represents a Quobyte mount on the host that shares a pod's lifetime
Quobyte *QuobyteVolumeSource `json:"quobyte,omitempty"`
// ISCSIVolumeSource represents an ISCSI resource that is attached to a
// kubelet's host machine and then exposed to the pod.
ISCSI *ISCSIVolumeSource `json:"iscsi,omitempty"`
// FlexVolume represents a generic volume resource that is
// provisioned/attached using an exec based plugin. This is an alpha feature and may change in future.
FlexVolume *FlexVolumeSource `json:"flexVolume,omitempty"`
// Cinder represents a cinder volume attached and mounted on kubelets host machine
Cinder *CinderVolumeSource `json:"cinder,omitempty"`
// CephFS represents a Ceph FS mount on the host that shares a pod's lifetime
CephFS *CephFSVolumeSource `json:"cephfs,omitempty"`
// FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod.
FC *FCVolumeSource `json:"fc,omitempty"`
// Flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running
Flocker *FlockerVolumeSource `json:"flocker,omitempty"`
// AzureFile represents an Azure File Service mount on the host and bind mount to the pod.
AzureFile *AzureFileVolumeSource `json:"azureFile,omitempty"`
// VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine
VsphereVolume *VsphereVirtualDiskVolumeSource `json:"vsphereVolume,omitempty"`
// AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod.
AzureDisk *AzureDiskVolumeSource `json:"azureDisk,omitempty"`
}
type PersistentVolumeClaimVolumeSource struct {
// ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume
ClaimName string `json:"claimName"`
// Optional: Defaults to false (read/write). ReadOnly here
// will force the ReadOnly setting in VolumeMounts
ReadOnly bool `json:"readOnly,omitempty"`
}
// +genclient=true
// +nonNamespaced=true
type PersistentVolume struct {
unversioned.TypeMeta `json:",inline"`
ObjectMeta `json:"metadata,omitempty"`
//Spec defines a persistent volume owned by the cluster
Spec PersistentVolumeSpec `json:"spec,omitempty"`
// Status represents the current information about persistent volume.
Status PersistentVolumeStatus `json:"status,omitempty"`
}
type PersistentVolumeSpec struct {
// Resources represents the actual resources of the volume
Capacity ResourceList `json:"capacity"`
// Source represents the location and type of a volume to mount.
PersistentVolumeSource `json:",inline"`
// AccessModes contains all ways the volume can be mounted
AccessModes []PersistentVolumeAccessMode `json:"accessModes,omitempty"`
// ClaimRef is part of a bi-directional binding between PersistentVolume and PersistentVolumeClaim.
// ClaimRef is expected to be non-nil when bound.
// claim.VolumeName is the authoritative bind between PV and PVC.
// When set to non-nil value, PVC.Spec.Selector of the referenced PVC is
// ignored, i.e. labels of this PV do not need to match PVC selector.
ClaimRef *ObjectReference `json:"claimRef,omitempty"`
// Optional: what happens to a persistent volume when released from its claim.
PersistentVolumeReclaimPolicy PersistentVolumeReclaimPolicy `json:"persistentVolumeReclaimPolicy,omitempty"`
}
// PersistentVolumeReclaimPolicy describes a policy for end-of-life maintenance of persistent volumes
type PersistentVolumeReclaimPolicy string
const (
// PersistentVolumeReclaimRecycle means the volume will be recycled back into the pool of unbound persistent volumes on release from its claim.
// The volume plugin must support Recycling.
PersistentVolumeReclaimRecycle PersistentVolumeReclaimPolicy = "Recycle"
// PersistentVolumeReclaimDelete means the volume will be deleted from Kubernetes on release from its claim.
// The volume plugin must support Deletion.
PersistentVolumeReclaimDelete PersistentVolumeReclaimPolicy = "Delete"
// PersistentVolumeReclaimRetain means the volume will be left in its current phase (Released) for manual reclamation by the administrator.
// The default policy is Retain.
PersistentVolumeReclaimRetain PersistentVolumeReclaimPolicy = "Retain"
)
type PersistentVolumeStatus struct {
// Phase indicates if a volume is available, bound to a claim, or released by a claim
Phase PersistentVolumePhase `json:"phase,omitempty"`
// A human-readable message indicating details about why the volume is in this state.
Message string `json:"message,omitempty"`
// Reason is a brief CamelCase string that describes any failure and is meant for machine parsing and tidy display in the CLI
Reason string `json:"reason,omitempty"`
}
type PersistentVolumeList struct {
unversioned.TypeMeta `json:",inline"`
unversioned.ListMeta `json:"metadata,omitempty"`
Items []PersistentVolume `json:"items"`
}
// +genclient=true
// PersistentVolumeClaim is a user's request for and claim to a persistent volume
type PersistentVolumeClaim struct {
unversioned.TypeMeta `json:",inline"`
ObjectMeta `json:"metadata,omitempty"`
// Spec defines the volume requested by a pod author
Spec PersistentVolumeClaimSpec `json:"spec,omitempty"`
// Status represents the current information about a claim
Status PersistentVolumeClaimStatus `json:"status,omitempty"`
}
type PersistentVolumeClaimList struct {
unversioned.TypeMeta `json:",inline"`
unversioned.ListMeta `json:"metadata,omitempty"`
Items []PersistentVolumeClaim `json:"items"`
}
// PersistentVolumeClaimSpec describes the common attributes of storage devices
// and allows a Source for provider-specific attributes
type PersistentVolumeClaimSpec struct {
// Contains the types of access modes required
AccessModes []PersistentVolumeAccessMode `json:"accessModes,omitempty"`
// A label query over volumes to consider for binding. This selector is
// ignored when VolumeName is set
Selector *unversioned.LabelSelector `json:"selector,omitempty"`
// Resources represents the minimum resources required
Resources ResourceRequirements `json:"resources,omitempty"`
// VolumeName is the binding reference to the PersistentVolume backing this
// claim. When set to non-empty value Selector is not evaluated
VolumeName string `json:"volumeName,omitempty"`
}
type PersistentVolumeClaimStatus struct {
// Phase represents the current phase of PersistentVolumeClaim
Phase PersistentVolumeClaimPhase `json:"phase,omitempty"`
// AccessModes contains all ways the volume backing the PVC can be mounted
AccessModes []PersistentVolumeAccessMode `json:"accessModes,omitempty"`
// Represents the actual resources of the underlying volume
Capacity ResourceList `json:"capacity,omitempty"`
}
type PersistentVolumeAccessMode string
const (
// can be mounted read/write mode to exactly 1 host
ReadWriteOnce PersistentVolumeAccessMode = "ReadWriteOnce"
// can be mounted in read-only mode to many hosts
ReadOnlyMany PersistentVolumeAccessMode = "ReadOnlyMany"
// can be mounted in read/write mode to many hosts
ReadWriteMany PersistentVolumeAccessMode = "ReadWriteMany"
)
type PersistentVolumePhase string
const (
// used for PersistentVolumes that are not available
VolumePending PersistentVolumePhase = "Pending"
// used for PersistentVolumes that are not yet bound
// Available volumes are held by the binder and matched to PersistentVolumeClaims
VolumeAvailable PersistentVolumePhase = "Available"
// used for PersistentVolumes that are bound
VolumeBound PersistentVolumePhase = "Bound"
// used for PersistentVolumes where the bound PersistentVolumeClaim was deleted
// released volumes must be recycled before becoming available again
// this phase is used by the persistent volume claim binder to signal to another process to reclaim the resource
VolumeReleased PersistentVolumePhase = "Released"
// used for PersistentVolumes that failed to be correctly recycled or deleted after being released from a claim
VolumeFailed PersistentVolumePhase = "Failed"
)
type PersistentVolumeClaimPhase string
const (
// used for PersistentVolumeClaims that are not yet bound
ClaimPending PersistentVolumeClaimPhase = "Pending"
// used for PersistentVolumeClaims that are bound
ClaimBound PersistentVolumeClaimPhase = "Bound"
// used for PersistentVolumeClaims that lost their underlying
// PersistentVolume. The claim was bound to a PersistentVolume and this
// volume does not exist any longer and all data on it was lost.
ClaimLost PersistentVolumeClaimPhase = "Lost"
)
// Represents a host path mapped into a pod.
// Host path volumes do not support ownership management or SELinux relabeling.
type HostPathVolumeSource struct {
Path string `json:"path"`
}
// Represents an empty directory for a pod.
// Empty directory volumes support ownership management and SELinux relabeling.
type EmptyDirVolumeSource struct {
// TODO: Longer term we want to represent the selection of underlying
// media more like a scheduling problem - user says what traits they
// need, we give them a backing store that satisfies that. For now
// this will cover the most common needs.
// Optional: what type of storage medium should back this directory.
// The default is "" which means to use the node's default medium.
Medium StorageMedium `json:"medium,omitempty"`
}
// StorageMedium defines ways that storage can be allocated to a volume.
type StorageMedium string
const (
StorageMediumDefault StorageMedium = "" // use whatever the default is for the node
StorageMediumMemory StorageMedium = "Memory" // use memory (tmpfs)
)
// Protocol defines network protocols supported for things like container ports.
type Protocol string
const (
// ProtocolTCP is the TCP protocol.
ProtocolTCP Protocol = "TCP"
// ProtocolUDP is the UDP protocol.
ProtocolUDP Protocol = "UDP"
)
// Represents a Persistent Disk resource in Google Compute Engine.
//
// A GCE PD must exist before mounting to a container. The disk must
// also be in the same GCE project and zone as the kubelet. A GCE PD
// can only be mounted as read/write once or read-only many times. GCE
// PDs support ownership management and SELinux relabeling.
type GCEPersistentDiskVolumeSource struct {
// Unique name of the PD resource. Used to identify the disk in GCE
PDName string `json:"pdName"`
// Filesystem type to mount.
// Must be a filesystem type supported by the host operating system.
// Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
// TODO: how do we prevent errors in the filesystem from compromising the machine
FSType string `json:"fsType,omitempty"`
// Optional: Partition on the disk to mount.
// If omitted, kubelet will attempt to mount the device name.
// Ex. For /dev/sda1, this field is "1", for /dev/sda, this field is 0 or empty.
Partition int32 `json:"partition,omitempty"`
// Optional: Defaults to false (read/write). ReadOnly here will force
// the ReadOnly setting in VolumeMounts.
ReadOnly bool `json:"readOnly,omitempty"`
}
// Represents an ISCSI disk.
// ISCSI volumes can only be mounted as read/write once.
// ISCSI volumes support ownership management and SELinux relabeling.
type ISCSIVolumeSource struct {
// Required: iSCSI target portal
// the portal is either an IP or ip_addr:port if port is other than default (typically TCP ports 860 and 3260)
TargetPortal string `json:"targetPortal,omitempty"`
// Required: target iSCSI Qualified Name
IQN string `json:"iqn,omitempty"`
// Required: iSCSI target lun number
Lun int32 `json:"lun,omitempty"`
// Optional: Defaults to 'default' (tcp). iSCSI interface name that uses an iSCSI transport.
ISCSIInterface string `json:"iscsiInterface,omitempty"`
// Filesystem type to mount.
// Must be a filesystem type supported by the host operating system.
// Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
// TODO: how do we prevent errors in the filesystem from compromising the machine
FSType string `json:"fsType,omitempty"`
// Optional: Defaults to false (read/write). ReadOnly here will force
// the ReadOnly setting in VolumeMounts.
ReadOnly bool `json:"readOnly,omitempty"`
}
// Represents a Fibre Channel volume.
// Fibre Channel volumes can only be mounted as read/write once.
// Fibre Channel volumes support ownership management and SELinux relabeling.
type FCVolumeSource struct {
// Required: FC target worldwide names (WWNs)
TargetWWNs []string `json:"targetWWNs"`
// Required: FC target lun number
Lun *int32 `json:"lun"`
// Filesystem type to mount.
// Must be a filesystem type supported by the host operating system.
// Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
// TODO: how do we prevent errors in the filesystem from compromising the machine
FSType string `json:"fsType,omitempty"`
// Optional: Defaults to false (read/write). ReadOnly here will force
// the ReadOnly setting in VolumeMounts.
ReadOnly bool `json:"readOnly,omitempty"`
}
// FlexVolume represents a generic volume resource that is
// provisioned/attached using an exec based plugin. This is an alpha feature and may change in future.
type FlexVolumeSource struct {
// Driver is the name of the driver to use for this volume.
Driver string `json:"driver"`
// Filesystem type to mount.
// Must be a filesystem type supported by the host operating system.
// Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script.
FSType string `json:"fsType,omitempty"`
// Optional: SecretRef is reference to the secret object containing
// sensitive information to pass to the plugin scripts. This may be
// empty if no secret object is specified. If the secret object
// contains more than one secret, all secrets are passed to the plugin
// scripts.
SecretRef *LocalObjectReference `json:"secretRef,omitempty"`
// Optional: Defaults to false (read/write). ReadOnly here will force
// the ReadOnly setting in VolumeMounts.
ReadOnly bool `json:"readOnly,omitempty"`
// Optional: Extra driver options if any.
Options map[string]string `json:"options,omitempty"`
}
// Represents a Persistent Disk resource in AWS.
//
// An AWS EBS disk must exist before mounting to a container. The disk
// must also be in the same AWS zone as the kubelet. An AWS EBS disk
// can only be mounted as read/write once. AWS EBS volumes support
// ownership management and SELinux relabeling.
type AWSElasticBlockStoreVolumeSource struct {
// Unique id of the persistent disk resource. Used to identify the disk in AWS
VolumeID string `json:"volumeID"`
// Filesystem type to mount.
// Must be a filesystem type supported by the host operating system.
// Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
// TODO: how do we prevent errors in the filesystem from compromising the machine
FSType string `json:"fsType,omitempty"`
// Optional: Partition on the disk to mount.
// If omitted, kubelet will attempt to mount the device name.
// Ex. For /dev/sda1, this field is "1", for /dev/sda, this field is 0 or empty.
Partition int32 `json:"partition,omitempty"`
// Optional: Defaults to false (read/write). ReadOnly here will force
// the ReadOnly setting in VolumeMounts.
ReadOnly bool `json:"readOnly,omitempty"`
}
// Represents a volume that is populated with the contents of a git repository.
// Git repo volumes do not support ownership management.
// Git repo volumes support SELinux relabeling.
type GitRepoVolumeSource struct {
// Repository URL
Repository string `json:"repository"`
// Commit hash, this is optional
Revision string `json:"revision,omitempty"`
// Clone target, this is optional
// Must not contain or start with '..'. If '.' is supplied, the volume directory will be the
// git repository. Otherwise, if specified, the volume will contain the git repository in
// the subdirectory with the given name.
Directory string `json:"directory,omitempty"`
// TODO: Consider credentials here.
}
// Adapts a Secret into a volume.
//
// The contents of the target Secret's Data field will be presented in a volume
// as files using the keys in the Data field as the file names.
// Secret volumes support ownership management and SELinux relabeling.
type SecretVolumeSource struct {
// Name of the secret in the pod's namespace to use.
SecretName string `json:"secretName,omitempty"`
// If unspecified, each key-value pair in the Data field of the referenced
// Secret will be projected into the volume as a file whose name is the
// key and content is the value. If specified, the listed keys will be
// projected into the specified paths, and unlisted keys will not be
// present. If a key is specified which is not present in the Secret,
// the volume setup will error. Paths must be relative and may not contain
// the '..' path or start with '..'.
Items []KeyToPath `json:"items,omitempty"`
// Mode bits to use on created files by default. Must be a value between
// 0 and 0777.
// Directories within the path are not affected by this setting.
// This might be in conflict with other options that affect the file
// mode, like fsGroup, and the result can be other mode bits set.
DefaultMode *int32 `json:"defaultMode,omitempty"`
}
// Represents an NFS mount that lasts the lifetime of a pod.
// NFS volumes do not support ownership management or SELinux relabeling.
type NFSVolumeSource struct {
// Server is the hostname or IP address of the NFS server
Server string `json:"server"`
// Path is the exported NFS share
Path string `json:"path"`
// Optional: Defaults to false (read/write). ReadOnly here will force
// the NFS export to be mounted with read-only permissions
ReadOnly bool `json:"readOnly,omitempty"`
}
// Represents a Quobyte mount that lasts the lifetime of a pod.
// Quobyte volumes do not support ownership management or SELinux relabeling.
type QuobyteVolumeSource struct {
// Registry represents a single or multiple Quobyte Registry services
// specified as a string as host:port pair (multiple entries are separated with commas)
// which acts as the central registry for volumes
Registry string `json:"registry"`
// Volume is a string that references an already created Quobyte volume by name.
Volume string `json:"volume"`
// Defaults to false (read/write). ReadOnly here will force
// the Quobyte to be mounted with read-only permissions
ReadOnly bool `json:"readOnly,omitempty"`
// User to map volume access to
// Defaults to the root user
User string `json:"user,omitempty"`
// Group to map volume access to
// Default is no group
Group string `json:"group,omitempty"`
}
// Represents a Glusterfs mount that lasts the lifetime of a pod.
// Glusterfs volumes do not support ownership management or SELinux relabeling.
type GlusterfsVolumeSource struct {
// Required: EndpointsName is the endpoint name that details Glusterfs topology
EndpointsName string `json:"endpoints"`
// Required: Path is the Glusterfs volume path
Path string `json:"path"`
// Optional: Defaults to false (read/write). ReadOnly here will force
// the Glusterfs to be mounted with read-only permissions
ReadOnly bool `json:"readOnly,omitempty"`
}
// Represents a Rados Block Device mount that lasts the lifetime of a pod.
// RBD volumes support ownership management and SELinux relabeling.
type RBDVolumeSource struct {
// Required: CephMonitors is a collection of Ceph monitors
CephMonitors []string `json:"monitors"`
// Required: RBDImage is the rados image name
RBDImage string `json:"image"`
// Filesystem type to mount.
// Must be a filesystem type supported by the host operating system.
// Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
// TODO: how do we prevent errors in the filesystem from compromising the machine
FSType string `json:"fsType,omitempty"`
// Optional: RadosPool is the rados pool name,default is rbd
RBDPool string `json:"pool,omitempty"`
// Optional: RBDUser is the rados user name, default is admin
RadosUser string `json:"user,omitempty"`
// Optional: Keyring is the path to key ring for RBDUser, default is /etc/ceph/keyring
Keyring string `json:"keyring,omitempty"`
// Optional: SecretRef is name of the authentication secret for RBDUser, default is nil.
SecretRef *LocalObjectReference `json:"secretRef,omitempty"`
// Optional: Defaults to false (read/write). ReadOnly here will force
// the ReadOnly setting in VolumeMounts.
ReadOnly bool `json:"readOnly,omitempty"`
}
// Represents a cinder volume resource in Openstack. A Cinder volume
// must exist before mounting to a container. The volume must also be
// in the same region as the kubelet. Cinder volumes support ownership
// management and SELinux relabeling.
type CinderVolumeSource struct {
// Unique id of the volume used to identify the cinder volume
VolumeID string `json:"volumeID"`
// Filesystem type to mount.
// Must be a filesystem type supported by the host operating system.
// Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
FSType string `json:"fsType,omitempty"`
// Optional: Defaults to false (read/write). ReadOnly here will force
// the ReadOnly setting in VolumeMounts.
ReadOnly bool `json:"readOnly,omitempty"`
}
// Represents a Ceph Filesystem mount that lasts the lifetime of a pod
// Cephfs volumes do not support ownership management or SELinux relabeling.
type CephFSVolumeSource struct {
// Required: Monitors is a collection of Ceph monitors
Monitors []string `json:"monitors"`
// Optional: Used as the mounted root, rather than the full Ceph tree, default is /
Path string `json:"path,omitempty"`
// Optional: User is the rados user name, default is admin
User string `json:"user,omitempty"`
// Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret
SecretFile string `json:"secretFile,omitempty"`
// Optional: SecretRef is reference to the authentication secret for User, default is empty.
SecretRef *LocalObjectReference `json:"secretRef,omitempty"`
// Optional: Defaults to false (read/write). ReadOnly here will force
// the ReadOnly setting in VolumeMounts.
ReadOnly bool `json:"readOnly,omitempty"`
}
// Represents a Flocker volume mounted by the Flocker agent.
// One and only one of datasetName and datasetUUID should be set.
// Flocker volumes do not support ownership management or SELinux relabeling.
type FlockerVolumeSource struct {
// Name of the dataset stored as metadata -> name on the dataset for Flocker
// should be considered as deprecated
DatasetName string `json:"datasetName,omitempty"`
// UUID of the dataset. This is unique identifier of a Flocker dataset
DatasetUUID string `json:"datasetUUID,omitempty"`
}
// Represents a volume containing downward API info.
// Downward API volumes support ownership management and SELinux relabeling.
type DownwardAPIVolumeSource struct {
// Items is a list of DownwardAPIVolume file
Items []DownwardAPIVolumeFile `json:"items,omitempty"`
// Mode bits to use on created files by default. Must be a value between
// 0 and 0777.
// Directories within the path are not affected by this setting.
// This might be in conflict with other options that affect the file
// mode, like fsGroup, and the result can be other mode bits set.
DefaultMode *int32 `json:"defaultMode,omitempty"`
}
// Represents a single file containing information from the downward API
type DownwardAPIVolumeFile struct {
// Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..'
Path string `json:"path"`
// Required: Selects a field of the pod: only annotations, labels, name and namespace are supported.
FieldRef *ObjectFieldSelector `json:"fieldRef,omitempty"`
// Selects a resource of the container: only resources limits and requests
// (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported.
ResourceFieldRef *ResourceFieldSelector `json:"resourceFieldRef,omitempty"`
// Optional: mode bits to use on this file, must be a value between 0
// and 0777. If not specified, the volume defaultMode will be used.
// This might be in conflict with other options that affect the file
// mode, like fsGroup, and the result can be other mode bits set.
Mode *int32 `json:"mode,omitempty"`
}
// AzureFile represents an Azure File Service mount on the host and bind mount to the pod.
type AzureFileVolumeSource struct {
// the name of secret that contains Azure Storage Account Name and Key
SecretName string `json:"secretName"`
// Share Name
ShareName string `json:"shareName"`
// Defaults to false (read/write). ReadOnly here will force
// the ReadOnly setting in VolumeMounts.
ReadOnly bool `json:"readOnly,omitempty"`
}
// Represents a vSphere volume resource.
type VsphereVirtualDiskVolumeSource struct {
// Path that identifies vSphere volume vmdk
VolumePath string `json:"volumePath"`
// Filesystem type to mount.
// Must be a filesystem type supported by the host operating system.
// Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
FSType string `json:"fsType,omitempty"`
}
type AzureDataDiskCachingMode string
const (
AzureDataDiskCachingNone AzureDataDiskCachingMode = "None"
AzureDataDiskCachingReadOnly AzureDataDiskCachingMode = "ReadOnly"
AzureDataDiskCachingReadWrite AzureDataDiskCachingMode = "ReadWrite"
)
// AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod.
type AzureDiskVolumeSource struct {
// The Name of the data disk in the blob storage
DiskName string `json:"diskName"`
// The URI the the data disk in the blob storage
DataDiskURI string `json:"diskURI"`
// Host Caching mode: None, Read Only, Read Write.
CachingMode *AzureDataDiskCachingMode `json:"cachingMode,omitempty"`
// Filesystem type to mount.
// Must be a filesystem type supported by the host operating system.
// Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
FSType *string `json:"fsType,omitempty"`
// Defaults to false (read/write). ReadOnly here will force
// the ReadOnly setting in VolumeMounts.
ReadOnly *bool `json:"readOnly,omitempty"`
}
// Adapts a ConfigMap into a volume.
//
// The contents of the target ConfigMap's Data field will be presented in a
// volume as files using the keys in the Data field as the file names, unless
// the items element is populated with specific mappings of keys to paths.
// ConfigMap volumes support ownership management and SELinux relabeling.
type ConfigMapVolumeSource struct {
LocalObjectReference `json:",inline"`
// If unspecified, each key-value pair in the Data field of the referenced
// ConfigMap will be projected into the volume as a file whose name is the
// key and content is the value. If specified, the listed keys will be
// projected into the specified paths, and unlisted keys will not be
// present. If a key is specified which is not present in the ConfigMap,
// the volume setup will error. Paths must be relative and may not contain
// the '..' path or start with '..'.
Items []KeyToPath `json:"items,omitempty"`
// Mode bits to use on created files by default. Must be a value between
// 0 and 0777.
// Directories within the path are not affected by this setting.
// This might be in conflict with other options that affect the file
// mode, like fsGroup, and the result can be other mode bits set.
DefaultMode *int32 `json:"defaultMode,omitempty"`
}
// Maps a string key to a path within a volume.
type KeyToPath struct {
// The key to project.
Key string `json:"key"`
// The relative path of the file to map the key to.
// May not be an absolute path.
// May not contain the path element '..'.
// May not start with the string '..'.
Path string `json:"path"`
// Optional: mode bits to use on this file, should be a value between 0
// and 0777. If not specified, the volume defaultMode will be used.
// This might be in conflict with other options that affect the file
// mode, like fsGroup, and the result can be other mode bits set.
Mode *int32 `json:"mode,omitempty"`
}
// ContainerPort represents a network port in a single container
type ContainerPort struct {
// Optional: If specified, this must be an IANA_SVC_NAME Each named port
// in a pod must have a unique name.
Name string `json:"name,omitempty"`
// Optional: If specified, this must be a valid port number, 0 < x < 65536.
// If HostNetwork is specified, this must match ContainerPort.
HostPort int32 `json:"hostPort,omitempty"`
// Required: This must be a valid port number, 0 < x < 65536.
ContainerPort int32 `json:"containerPort"`
// Required: Supports "TCP" and "UDP".
Protocol Protocol `json:"protocol,omitempty"`
// Optional: What host IP to bind the external port to.
HostIP string `json:"hostIP,omitempty"`
}
// VolumeMount describes a mounting of a Volume within a container.
type VolumeMount struct {
// Required: This must match the Name of a Volume [above].
Name string `json:"name"`
// Optional: Defaults to false (read-write).
ReadOnly bool `json:"readOnly,omitempty"`
// Required. Must not contain ':'.
MountPath string `json:"mountPath"`
// Path within the volume from which the container's volume should be mounted.
// Defaults to "" (volume's root).
SubPath string `json:"subPath,omitempty"`
}
// EnvVar represents an environment variable present in a Container.
type EnvVar struct {
// Required: This must be a C_IDENTIFIER.
Name string `json:"name"`
// Optional: no more than one of the following may be specified.
// Optional: Defaults to ""; variable references $(VAR_NAME) are expanded
// using the previous defined environment variables in the container and
// any service environment variables. If a variable cannot be resolved,
// the reference in the input string will be unchanged. The $(VAR_NAME)
// syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped
// references will never be expanded, regardless of whether the variable
// exists or not.
Value string `json:"value,omitempty"`
// Optional: Specifies a source the value of this var should come from.
ValueFrom *EnvVarSource `json:"valueFrom,omitempty"`
}
// EnvVarSource represents a source for the value of an EnvVar.
// Only one of its fields may be set.
type EnvVarSource struct {
// Selects a field of the pod: supports metadata.name, metadata.namespace, metadata.labels, metadata.annotations,
// spec.nodeName, spec.serviceAccountName, status.podIP.
FieldRef *ObjectFieldSelector `json:"fieldRef,omitempty"`
// Selects a resource of the container: only resources limits and requests
// (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported.
ResourceFieldRef *ResourceFieldSelector `json:"resourceFieldRef,omitempty"`
// Selects a key of a ConfigMap.
ConfigMapKeyRef *ConfigMapKeySelector `json:"configMapKeyRef,omitempty"`
// Selects a key of a secret in the pod's namespace.
SecretKeyRef *SecretKeySelector `json:"secretKeyRef,omitempty"`
}
// ObjectFieldSelector selects an APIVersioned field of an object.
type ObjectFieldSelector struct {
// Required: Version of the schema the FieldPath is written in terms of.
// If no value is specified, it will be defaulted to the APIVersion of the
// enclosing object.
APIVersion string `json:"apiVersion"`
// Required: Path of the field to select in the specified API version
FieldPath string `json:"fieldPath"`
}
// ResourceFieldSelector represents container resources (cpu, memory) and their output format
type ResourceFieldSelector struct {
// Container name: required for volumes, optional for env vars
ContainerName string `json:"containerName,omitempty"`
// Required: resource to select
Resource string `json:"resource"`
// Specifies the output format of the exposed resources, defaults to "1"
Divisor resource.Quantity `json:"divisor,omitempty"`
}
// Selects a key from a ConfigMap.
type ConfigMapKeySelector struct {
// The ConfigMap to select from.
LocalObjectReference `json:",inline"`
// The key to select.
Key string `json:"key"`
}
// SecretKeySelector selects a key of a Secret.
type SecretKeySelector struct {
// The name of the secret in the pod's namespace to select from.
LocalObjectReference `json:",inline"`
// The key of the secret to select from. Must be a valid secret key.
Key string `json:"key"`
}
// HTTPHeader describes a custom header to be used in HTTP probes
type HTTPHeader struct {
// The header field name
Name string `json:"name"`
// The header field value
Value string `json:"value"`
}
// HTTPGetAction describes an action based on HTTP Get requests.
type HTTPGetAction struct {
// Optional: Path to access on the HTTP server.
Path string `json:"path,omitempty"`
// Required: Name or number of the port to access on the container.
Port intstr.IntOrString `json:"port,omitempty"`
// Optional: Host name to connect to, defaults to the pod IP. You
// probably want to set "Host" in httpHeaders instead.
Host string `json:"host,omitempty"`
// Optional: Scheme to use for connecting to the host, defaults to HTTP.
Scheme URIScheme `json:"scheme,omitempty"`
// Optional: Custom headers to set in the request. HTTP allows repeated headers.
HTTPHeaders []HTTPHeader `json:"httpHeaders,omitempty"`
}
// URIScheme identifies the scheme used for connection to a host for Get actions
type URIScheme string
const (
// URISchemeHTTP means that the scheme used will be http://
URISchemeHTTP URIScheme = "HTTP"
// URISchemeHTTPS means that the scheme used will be https://
URISchemeHTTPS URIScheme = "HTTPS"
)
// TCPSocketAction describes an action based on opening a socket
type TCPSocketAction struct {
// Required: Port to connect to.
Port intstr.IntOrString `json:"port,omitempty"`
}
// ExecAction describes a "run in container" action.
type ExecAction struct {
// Command is the command line to execute inside the container, the working directory for the
// command is root ('/') in the container's filesystem. The command is simply exec'd, it is
// not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use
// a shell, you need to explicitly call out to that shell.
Command []string `json:"command,omitempty"`
}
// Probe describes a health check to be performed against a container to determine whether it is
// alive or ready to receive traffic.
type Probe struct {
// The action taken to determine the health of a container
Handler `json:",inline"`
// Length of time before health checking is activated. In seconds.
InitialDelaySeconds int32 `json:"initialDelaySeconds,omitempty"`
// Length of time before health checking times out. In seconds.
TimeoutSeconds int32 `json:"timeoutSeconds,omitempty"`
// How often (in seconds) to perform the probe.
PeriodSeconds int32 `json:"periodSeconds,omitempty"`
// Minimum consecutive successes for the probe to be considered successful after having failed.
// Must be 1 for liveness.
SuccessThreshold int32 `json:"successThreshold,omitempty"`
// Minimum consecutive failures for the probe to be considered failed after having succeeded.
FailureThreshold int32 `json:"failureThreshold,omitempty"`
}
// PullPolicy describes a policy for if/when to pull a container image
type PullPolicy string
const (
// PullAlways means that kubelet always attempts to pull the latest image. Container will fail If the pull fails.
PullAlways PullPolicy = "Always"
// PullNever means that kubelet never pulls an image, but only uses a local image. Container will fail if the image isn't present
PullNever PullPolicy = "Never"
// PullIfNotPresent means that kubelet pulls if the image isn't present on disk. Container will fail if the image isn't present and the pull fails.
PullIfNotPresent PullPolicy = "IfNotPresent"
)
// Capability represent POSIX capabilities type
type Capability string
// Capabilities represent POSIX capabilities that can be added or removed to a running container.
type Capabilities struct {
// Added capabilities
Add []Capability `json:"add,omitempty"`
// Removed capabilities
Drop []Capability `json:"drop,omitempty"`
}
// ResourceRequirements describes the compute resource requirements.
type ResourceRequirements struct {
// Limits describes the maximum amount of compute resources allowed.
Limits ResourceList `json:"limits,omitempty"`
// Requests describes the minimum amount of compute resources required.
// If Request is omitted for a container, it defaults to Limits if that is explicitly specified,
// otherwise to an implementation-defined value
Requests ResourceList `json:"requests,omitempty"`
}
// Container represents a single container that is expected to be run on the host.
type Container struct {
// Required: This must be a DNS_LABEL. Each container in a pod must
// have a unique name.
Name string `json:"name"`
// Required.
Image string `json:"image"`
// Optional: The docker image's entrypoint is used if this is not provided; cannot be updated.
// Variable references $(VAR_NAME) are expanded using the container's environment. If a variable
// cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax
// can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded,
// regardless of whether the variable exists or not.
Command []string `json:"command,omitempty"`
// Optional: The docker image's cmd is used if this is not provided; cannot be updated.
// Variable references $(VAR_NAME) are expanded using the container's environment. If a variable
// cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax
// can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded,
// regardless of whether the variable exists or not.
Args []string `json:"args,omitempty"`
// Optional: Defaults to Docker's default.
WorkingDir string `json:"workingDir,omitempty"`
Ports []ContainerPort `json:"ports,omitempty"`
Env []EnvVar `json:"env,omitempty"`
// Compute resource requirements.
Resources ResourceRequirements `json:"resources,omitempty"`
VolumeMounts []VolumeMount `json:"volumeMounts,omitempty"`
LivenessProbe *Probe `json:"livenessProbe,omitempty"`
ReadinessProbe *Probe `json:"readinessProbe,omitempty"`
Lifecycle *Lifecycle `json:"lifecycle,omitempty"`
// Required.
TerminationMessagePath string `json:"terminationMessagePath,omitempty"`
// Required: Policy for pulling images for this container
ImagePullPolicy PullPolicy `json:"imagePullPolicy"`
// Optional: SecurityContext defines the security options the container should be run with.
// If set, the fields of SecurityContext override the equivalent fields of PodSecurityContext.
SecurityContext *SecurityContext `json:"securityContext,omitempty"`
// Variables for interactive containers, these have very specialized use-cases (e.g. debugging)
// and shouldn't be used for general purpose containers.
Stdin bool `json:"stdin,omitempty"`
StdinOnce bool `json:"stdinOnce,omitempty"`
TTY bool `json:"tty,omitempty"`
}
// Handler defines a specific action that should be taken
// TODO: pass structured data to these actions, and document that data here.
type Handler struct {
// One and only one of the following should be specified.
// Exec specifies the action to take.
Exec *ExecAction `json:"exec,omitempty"`
// HTTPGet specifies the http request to perform.
HTTPGet *HTTPGetAction `json:"httpGet,omitempty"`
// TCPSocket specifies an action involving a TCP port.
// TODO: implement a realistic TCP lifecycle hook
TCPSocket *TCPSocketAction `json:"tcpSocket,omitempty"`
}
// Lifecycle describes actions that the management system should take in response to container lifecycle
// events. For the PostStart and PreStop lifecycle handlers, management of the container blocks
// until the action is complete, unless the container process fails, in which case the handler is aborted.
type Lifecycle struct {
// PostStart is called immediately after a container is created. If the handler fails, the container
// is terminated and restarted.
PostStart *Handler `json:"postStart,omitempty"`
// PreStop is called immediately before a container is terminated. The reason for termination is
// passed to the handler. Regardless of the outcome of the handler, the container is eventually terminated.
PreStop *Handler `json:"preStop,omitempty"`
}
// The below types are used by kube_client and api_server.
type ConditionStatus string
// These are valid condition statuses. "ConditionTrue" means a resource is in the condition;
// "ConditionFalse" means a resource is not in the condition; "ConditionUnknown" means kubernetes
// can't decide if a resource is in the condition or not. In the future, we could add other
// intermediate conditions, e.g. ConditionDegraded.
const (
ConditionTrue ConditionStatus = "True"
ConditionFalse ConditionStatus = "False"
ConditionUnknown ConditionStatus = "Unknown"
)
type ContainerStateWaiting struct {
// A brief CamelCase string indicating details about why the container is in waiting state.
Reason string `json:"reason,omitempty"`
// A human-readable message indicating details about why the container is in waiting state.
Message string `json:"message,omitempty"`
}
type ContainerStateRunning struct {
StartedAt unversioned.Time `json:"startedAt,omitempty"`
}
type ContainerStateTerminated struct {
ExitCode int32 `json:"exitCode"`
Signal int32 `json:"signal,omitempty"`
Reason string `json:"reason,omitempty"`
Message string `json:"message,omitempty"`
StartedAt unversioned.Time `json:"startedAt,omitempty"`
FinishedAt unversioned.Time `json:"finishedAt,omitempty"`
ContainerID string `json:"containerID,omitempty"`
}
// ContainerState holds a possible state of container.
// Only one of its members may be specified.
// If none of them is specified, the default one is ContainerStateWaiting.
type ContainerState struct {
Waiting *ContainerStateWaiting `json:"waiting,omitempty"`
Running *ContainerStateRunning `json:"running,omitempty"`
Terminated *ContainerStateTerminated `json:"terminated,omitempty"`
}
type ContainerStatus struct {
// Each container in a pod must have a unique name.
Name string `json:"name"`
State ContainerState `json:"state,omitempty"`
LastTerminationState ContainerState `json:"lastState,omitempty"`
// Ready specifies whether the container has passed its readiness check.
Ready bool `json:"ready"`
// Note that this is calculated from dead containers. But those containers are subject to
// garbage collection. This value will get capped at 5 by GC.
RestartCount int32 `json:"restartCount"`
Image string `json:"image"`
ImageID string `json:"imageID"`
ContainerID string `json:"containerID,omitempty"`
}
// PodPhase is a label for the condition of a pod at the current time.
type PodPhase string
// These are the valid statuses of pods.
const (
// PodPending means the pod has been accepted by the system, but one or more of the containers
// has not been started. This includes time before being bound to a node, as well as time spent
// pulling images onto the host.
PodPending PodPhase = "Pending"
// PodRunning means the pod has been bound to a node and all of the containers have been started.
// At least one container is still running or is in the process of being restarted.
PodRunning PodPhase = "Running"
// PodSucceeded means that all containers in the pod have voluntarily terminated
// with a container exit code of 0, and the system is not going to restart any of these containers.
PodSucceeded PodPhase = "Succeeded"
// PodFailed means that all containers in the pod have terminated, and at least one container has
// terminated in a failure (exited with a non-zero exit code or was stopped by the system).
PodFailed PodPhase = "Failed"
// PodUnknown means that for some reason the state of the pod could not be obtained, typically due
// to an error in communicating with the host of the pod.
PodUnknown PodPhase = "Unknown"
)
type PodConditionType string
// These are valid conditions of pod.
const (
// PodScheduled represents status of the scheduling process for this pod.
PodScheduled PodConditionType = "PodScheduled"
// PodReady means the pod is able to service requests and should be added to the
// load balancing pools of all matching services.
PodReady PodConditionType = "Ready"
// PodInitialized means that all init containers in the pod have started successfully.
PodInitialized PodConditionType = "Initialized"
)
type PodCondition struct {
Type PodConditionType `json:"type"`
Status ConditionStatus `json:"status"`
LastProbeTime unversioned.Time `json:"lastProbeTime,omitempty"`
LastTransitionTime unversioned.Time `json:"lastTransitionTime,omitempty"`
Reason string `json:"reason,omitempty"`
Message string `json:"message,omitempty"`
}
// RestartPolicy describes how the container should be restarted.
// Only one of the following restart policies may be specified.
// If none of the following policies is specified, the default one
// is RestartPolicyAlways.
type RestartPolicy string
const (
RestartPolicyAlways RestartPolicy = "Always"
RestartPolicyOnFailure RestartPolicy = "OnFailure"
RestartPolicyNever RestartPolicy = "Never"
)
// PodList is a list of Pods.
type PodList struct {
unversioned.TypeMeta `json:",inline"`
unversioned.ListMeta `json:"metadata,omitempty"`
Items []Pod `json:"items"`
}
// DNSPolicy defines how a pod's DNS will be configured.
type DNSPolicy string
const (
// DNSClusterFirst indicates that the pod should use cluster DNS
// first, if it is available, then fall back on the default (as
// determined by kubelet) DNS settings.
DNSClusterFirst DNSPolicy = "ClusterFirst"
// DNSDefault indicates that the pod should use the default (as
// determined by kubelet) DNS settings.
DNSDefault DNSPolicy = "Default"
)
// A node selector represents the union of the results of one or more label queries
// over a set of nodes; that is, it represents the OR of the selectors represented
// by the node selector terms.
type NodeSelector struct {
//Required. A list of node selector terms. The terms are ORed.
NodeSelectorTerms []NodeSelectorTerm `json:"nodeSelectorTerms"`
}
// A null or empty node selector term matches no objects.
type NodeSelectorTerm struct {
//Required. A list of node selector requirements. The requirements are ANDed.
MatchExpressions []NodeSelectorRequirement `json:"matchExpressions"`
}
// A node selector requirement is a selector that contains values, a key, and an operator
// that relates the key and values.
type NodeSelectorRequirement struct {
// The label key that the selector applies to.
Key string `json:"key" patchStrategy:"merge" patchMergeKey:"key"`
// Represents a key's relationship to a set of values.
// Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt.
Operator NodeSelectorOperator `json:"operator"`
// An array of string values. If the operator is In or NotIn,
// the values array must be non-empty. If the operator is Exists or DoesNotExist,
// the values array must be empty. If the operator is Gt or Lt, the values
// array must have a single element, which will be interpreted as an integer.
// This array is replaced during a strategic merge patch.
Values []string `json:"values,omitempty"`
}
// A node selector operator is the set of operators that can be used in
// a node selector requirement.
type NodeSelectorOperator string
const (
NodeSelectorOpIn NodeSelectorOperator = "In"
NodeSelectorOpNotIn NodeSelectorOperator = "NotIn"
NodeSelectorOpExists NodeSelectorOperator = "Exists"
NodeSelectorOpDoesNotExist NodeSelectorOperator = "DoesNotExist"
NodeSelectorOpGt NodeSelectorOperator = "Gt"
NodeSelectorOpLt NodeSelectorOperator = "Lt"
)
// Affinity is a group of affinity scheduling rules.
type Affinity struct {
// Describes node affinity scheduling rules for the pod.
NodeAffinity *NodeAffinity `json:"nodeAffinity,omitempty"`
// Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)).
PodAffinity *PodAffinity `json:"podAffinity,omitempty"`
// Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)).
PodAntiAffinity *PodAntiAffinity `json:"podAntiAffinity,omitempty"`
}
// Pod affinity is a group of inter pod affinity scheduling rules.
type PodAffinity struct {
// NOT YET IMPLEMENTED. TODO: Uncomment field once it is implemented.
// If the affinity requirements specified by this field are not met at
// scheduling time, the pod will not be scheduled onto the node.
// If the affinity requirements specified by this field cease to be met
// at some point during pod execution (e.g. due to a pod label update), the
// system will try to eventually evict the pod from its node.
// When there are multiple elements, the lists of nodes corresponding to each
// podAffinityTerm are intersected, i.e. all terms must be satisfied.
// RequiredDuringSchedulingRequiredDuringExecution []PodAffinityTerm `json:"requiredDuringSchedulingRequiredDuringExecution,omitempty"`
// If the affinity requirements specified by this field are not met at
// scheduling time, the pod will not be scheduled onto the node.
// If the affinity requirements specified by this field cease to be met
// at some point during pod execution (e.g. due to a pod label update), the
// system may or may not try to eventually evict the pod from its node.
// When there are multiple elements, the lists of nodes corresponding to each
// podAffinityTerm are intersected, i.e. all terms must be satisfied.
RequiredDuringSchedulingIgnoredDuringExecution []PodAffinityTerm `json:"requiredDuringSchedulingIgnoredDuringExecution,omitempty"`
// The scheduler will prefer to schedule pods to nodes that satisfy
// the affinity expressions specified by this field, but it may choose
// a node that violates one or more of the expressions. The node that is
// most preferred is the one with the greatest sum of weights, i.e.
// for each node that meets all of the scheduling requirements (resource
// request, requiredDuringScheduling affinity expressions, etc.),
// compute a sum by iterating through the elements of this field and adding
// "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the
// node(s) with the highest sum are the most preferred.
PreferredDuringSchedulingIgnoredDuringExecution []WeightedPodAffinityTerm `json:"preferredDuringSchedulingIgnoredDuringExecution,omitempty"`
}
// Pod anti affinity is a group of inter pod anti affinity scheduling rules.
type PodAntiAffinity struct {
// NOT YET IMPLEMENTED. TODO: Uncomment field once it is implemented.
// If the anti-affinity requirements specified by this field are not met at
// scheduling time, the pod will not be scheduled onto the node.
// If the anti-affinity requirements specified by this field cease to be met
// at some point during pod execution (e.g. due to a pod label update), the
// system will try to eventually evict the pod from its node.
// When there are multiple elements, the lists of nodes corresponding to each
// podAffinityTerm are intersected, i.e. all terms must be satisfied.
// RequiredDuringSchedulingRequiredDuringExecution []PodAffinityTerm `json:"requiredDuringSchedulingRequiredDuringExecution,omitempty"`
// If the anti-affinity requirements specified by this field are not met at
// scheduling time, the pod will not be scheduled onto the node.
// If the anti-affinity requirements specified by this field cease to be met
// at some point during pod execution (e.g. due to a pod label update), the
// system may or may not try to eventually evict the pod from its node.
// When there are multiple elements, the lists of nodes corresponding to each
// podAffinityTerm are intersected, i.e. all terms must be satisfied.
RequiredDuringSchedulingIgnoredDuringExecution []PodAffinityTerm `json:"requiredDuringSchedulingIgnoredDuringExecution,omitempty"`
// The scheduler will prefer to schedule pods to nodes that satisfy
// the anti-affinity expressions specified by this field, but it may choose
// a node that violates one or more of the expressions. The node that is
// most preferred is the one with the greatest sum of weights, i.e.
// for each node that meets all of the scheduling requirements (resource
// request, requiredDuringScheduling anti-affinity expressions, etc.),
// compute a sum by iterating through the elements of this field and adding
// "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the
// node(s) with the highest sum are the most preferred.
PreferredDuringSchedulingIgnoredDuringExecution []WeightedPodAffinityTerm `json:"preferredDuringSchedulingIgnoredDuringExecution,omitempty"`
}
// The weights of all of the matched WeightedPodAffinityTerm fields are added per-node to find the most preferred node(s)
type WeightedPodAffinityTerm struct {
// weight associated with matching the corresponding podAffinityTerm,
// in the range 1-100.
Weight int `json:"weight"`
// Required. A pod affinity term, associated with the corresponding weight.
PodAffinityTerm PodAffinityTerm `json:"podAffinityTerm"`
}
// Defines a set of pods (namely those matching the labelSelector
// relative to the given namespace(s)) that this pod should be
// co-located (affinity) or not co-located (anti-affinity) with,
// where co-located is defined as running on a node whose value of
// the label with key <topologyKey> matches that of any node on which
// a pod of the set of pods is running.
type PodAffinityTerm struct {
// A label query over a set of resources, in this case pods.
LabelSelector *unversioned.LabelSelector `json:"labelSelector,omitempty"`
// namespaces specifies which namespaces the labelSelector applies to (matches against);
// nil list means "this pod's namespace," empty list means "all namespaces"
// The json tag here is not "omitempty" since we need to distinguish nil and empty.
// See https://golang.org/pkg/encoding/json/#Marshal for more details.
Namespaces []string `json:"namespaces"`
// This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching
// the labelSelector in the specified namespaces, where co-located is defined as running on a node
// whose value of the label with key topologyKey matches that of any node on which any of the
// selected pods is running.
// For PreferredDuringScheduling pod anti-affinity, empty topologyKey is interpreted as "all topologies"
// ("all topologies" here means all the topologyKeys indicated by scheduler command-line argument --failure-domains);
// for affinity and for RequiredDuringScheduling pod anti-affinity, empty topologyKey is not allowed.
TopologyKey string `json:"topologyKey,omitempty"`
}
// Node affinity is a group of node affinity scheduling rules.
type NodeAffinity struct {
// NOT YET IMPLEMENTED. TODO: Uncomment field once it is implemented.
// If the affinity requirements specified by this field are not met at
// scheduling time, the pod will not be scheduled onto the node.
// If the affinity requirements specified by this field cease to be met
// at some point during pod execution (e.g. due to an update), the system
// will try to eventually evict the pod from its node.
// RequiredDuringSchedulingRequiredDuringExecution *NodeSelector `json:"requiredDuringSchedulingRequiredDuringExecution,omitempty"`
// If the affinity requirements specified by this field are not met at
// scheduling time, the pod will not be scheduled onto the node.
// If the affinity requirements specified by this field cease to be met
// at some point during pod execution (e.g. due to an update), the system
// may or may not try to eventually evict the pod from its node.
RequiredDuringSchedulingIgnoredDuringExecution *NodeSelector `json:"requiredDuringSchedulingIgnoredDuringExecution,omitempty"`
// The scheduler will prefer to schedule pods to nodes that satisfy
// the affinity expressions specified by this field, but it may choose
// a node that violates one or more of the expressions. The node that is
// most preferred is the one with the greatest sum of weights, i.e.
// for each node that meets all of the scheduling requirements (resource
// request, requiredDuringScheduling affinity expressions, etc.),
// compute a sum by iterating through the elements of this field and adding
// "weight" to the sum if the node matches the corresponding matchExpressions; the
// node(s) with the highest sum are the most preferred.
PreferredDuringSchedulingIgnoredDuringExecution []PreferredSchedulingTerm `json:"preferredDuringSchedulingIgnoredDuringExecution,omitempty"`
}
// An empty preferred scheduling term matches all objects with implicit weight 0
// (i.e. it's a no-op). A null preferred scheduling term matches no objects (i.e. is also a no-op).
type PreferredSchedulingTerm struct {
// Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100.
Weight int32 `json:"weight"`
// A node selector term, associated with the corresponding weight.
Preference NodeSelectorTerm `json:"preference"`
}
// The node this Taint is attached to has the effect "effect" on
// any pod that that does not tolerate the Taint.
type Taint struct {
// Required. The taint key to be applied to a node.
Key string `json:"key" patchStrategy:"merge" patchMergeKey:"key"`
// Required. The taint value corresponding to the taint key.
Value string `json:"value,omitempty"`
// Required. The effect of the taint on pods
// that do not tolerate the taint.
// Valid effects are NoSchedule and PreferNoSchedule.
Effect TaintEffect `json:"effect"`
}
type TaintEffect string
const (
// Do not allow new pods to schedule onto the node unless they tolerate the taint,
// but allow all pods submitted to Kubelet without going through the scheduler
// to start, and allow all already-running pods to continue running.
// Enforced by the scheduler.
TaintEffectNoSchedule TaintEffect = "NoSchedule"
// Like TaintEffectNoSchedule, but the scheduler tries not to schedule
// new pods onto the node, rather than prohibiting new pods from scheduling
// onto the node entirely. Enforced by the scheduler.
TaintEffectPreferNoSchedule TaintEffect = "PreferNoSchedule"
// NOT YET IMPLEMENTED. TODO: Uncomment field once it is implemented.
// Do not allow new pods to schedule onto the node unless they tolerate the taint,
// do not allow pods to start on Kubelet unless they tolerate the taint,
// but allow all already-running pods to continue running.
// Enforced by the scheduler and Kubelet.
// TaintEffectNoScheduleNoAdmit TaintEffect = "NoScheduleNoAdmit"
// NOT YET IMPLEMENTED. TODO: Uncomment field once it is implemented.
// Do not allow new pods to schedule onto the node unless they tolerate the taint,
// do not allow pods to start on Kubelet unless they tolerate the taint,
// and evict any already-running pods that do not tolerate the taint.
// Enforced by the scheduler and Kubelet.
// TaintEffectNoScheduleNoAdmitNoExecute = "NoScheduleNoAdmitNoExecute"
)
// The pod this Toleration is attached to tolerates any taint that matches
// the triple <key,value,effect> using the matching operator <operator>.
type Toleration struct {
// Required. Key is the taint key that the toleration applies to.
Key string `json:"key,omitempty" patchStrategy:"merge" patchMergeKey:"key"`
// operator represents a key's relationship to the value.
// Valid operators are Exists and Equal. Defaults to Equal.
// Exists is equivalent to wildcard for value, so that a pod can
// tolerate all taints of a particular category.
Operator TolerationOperator `json:"operator,omitempty"`
// Value is the taint value the toleration matches to.
// If the operator is Exists, the value should be empty, otherwise just a regular string.
Value string `json:"value,omitempty"`
// Effect indicates the taint effect to match. Empty means match all taint effects.
// When specified, allowed values are NoSchedule and PreferNoSchedule.
Effect TaintEffect `json:"effect,omitempty"`
// TODO: For forgiveness (#1574), we'd eventually add at least a grace period
// here, and possibly an occurrence threshold and period.
}
// A toleration operator is the set of operators that can be used in a toleration.
type TolerationOperator string
const (
TolerationOpExists TolerationOperator = "Exists"
TolerationOpEqual TolerationOperator = "Equal"
)
// PodSpec is a description of a pod
type PodSpec struct {
Volumes []Volume `json:"volumes"`
// List of initialization containers belonging to the pod.
InitContainers []Container `json:"-"`
// List of containers belonging to the pod.
Containers []Container `json:"containers"`
RestartPolicy RestartPolicy `json:"restartPolicy,omitempty"`
// Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request.
// Value must be non-negative integer. The value zero indicates delete immediately.
// If this value is nil, the default grace period will be used instead.
// The grace period is the duration in seconds after the processes running in the pod are sent
// a termination signal and the time when the processes are forcibly halted with a kill signal.
// Set this value longer than the expected cleanup time for your process.
TerminationGracePeriodSeconds *int64 `json:"terminationGracePeriodSeconds,omitempty"`
// Optional duration in seconds relative to the StartTime that the pod may be active on a node
// before the system actively tries to terminate the pod; value must be positive integer
ActiveDeadlineSeconds *int64 `json:"activeDeadlineSeconds,omitempty"`
// Required: Set DNS policy.
DNSPolicy DNSPolicy `json:"dnsPolicy,omitempty"`
// NodeSelector is a selector which must be true for the pod to fit on a node
NodeSelector map[string]string `json:"nodeSelector,omitempty"`
// ServiceAccountName is the name of the ServiceAccount to use to run this pod
// The pod will be allowed to use secrets referenced by the ServiceAccount
ServiceAccountName string `json:"serviceAccountName"`
// NodeName is a request to schedule this pod onto a specific node. If it is non-empty,
// the scheduler simply schedules this pod onto that node, assuming that it fits resource
// requirements.
NodeName string `json:"nodeName,omitempty"`
// SecurityContext holds pod-level security attributes and common container settings.
// Optional: Defaults to empty. See type description for default values of each field.
SecurityContext *PodSecurityContext `json:"securityContext,omitempty"`
// ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec.
// If specified, these secrets will be passed to individual puller implementations for them to use. For example,
// in the case of docker, only DockerConfig type secrets are honored.
ImagePullSecrets []LocalObjectReference `json:"imagePullSecrets,omitempty"`
// Specifies the hostname of the Pod.
// If not specified, the pod's hostname will be set to a system-defined value.
Hostname string `json:"hostname,omitempty"`
// If specified, the fully qualified Pod hostname will be "<hostname>.<subdomain>.<pod namespace>.svc.<cluster domain>".
// If not specified, the pod will not have a domainname at all.
Subdomain string `json:"subdomain,omitempty"`
}
// Sysctl defines a kernel parameter to be set
type Sysctl struct {
// Name of a property to set
Name string `json:"name"`
// Value of a property to set
Value string `json:"value"`
}
// PodSecurityContext holds pod-level security attributes and common container settings.
// Some fields are also present in container.securityContext. Field values of
// container.securityContext take precedence over field values of PodSecurityContext.
type PodSecurityContext struct {
// Use the host's network namespace. If this option is set, the ports that will be
// used must be specified.
// Optional: Default to false
// +k8s:conversion-gen=false
HostNetwork bool `json:"hostNetwork,omitempty"`
// Use the host's pid namespace.
// Optional: Default to false.
// +k8s:conversion-gen=false
HostPID bool `json:"hostPID,omitempty"`
// Use the host's ipc namespace.
// Optional: Default to false.
// +k8s:conversion-gen=false
HostIPC bool `json:"hostIPC,omitempty"`
// The SELinux context to be applied to all containers.
// If unspecified, the container runtime will allocate a random SELinux context for each
// container. May also be set in SecurityContext. If set in
// both SecurityContext and PodSecurityContext, the value specified in SecurityContext
// takes precedence for that container.
SELinuxOptions *SELinuxOptions `json:"seLinuxOptions,omitempty"`
// The UID to run the entrypoint of the container process.
// Defaults to user specified in image metadata if unspecified.
// May also be set in SecurityContext. If set in both SecurityContext and
// PodSecurityContext, the value specified in SecurityContext takes precedence
// for that container.
RunAsUser *int64 `json:"runAsUser,omitempty"`
// Indicates that the container must run as a non-root user.
// If true, the Kubelet will validate the image at runtime to ensure that it
// does not run as UID 0 (root) and fail to start the container if it does.
// If unset or false, no such validation will be performed.
// May also be set in SecurityContext. If set in both SecurityContext and
// PodSecurityContext, the value specified in SecurityContext takes precedence.
RunAsNonRoot *bool `json:"runAsNonRoot,omitempty"`
// A list of groups applied to the first process run in each container, in addition
// to the container's primary GID. If unspecified, no groups will be added to
// any container.
SupplementalGroups []int64 `json:"supplementalGroups,omitempty"`
// A special supplemental group that applies to all containers in a pod.
// Some volume types allow the Kubelet to change the ownership of that volume
// to be owned by the pod:
//
// 1. The owning GID will be the FSGroup
// 2. The setgid bit is set (new files created in the volume will be owned by FSGroup)
// 3. The permission bits are OR'd with rw-rw----
//
// If unset, the Kubelet will not modify the ownership and permissions of any volume.
FSGroup *int64 `json:"fsGroup,omitempty"`
}
// PodStatus represents information about the status of a pod. Status may trail the actual
// state of a system.
type PodStatus struct {
Phase PodPhase `json:"phase,omitempty"`
Conditions []PodCondition `json:"conditions,omitempty"`
// A human readable message indicating details about why the pod is in this state.
Message string `json:"message,omitempty"`
// A brief CamelCase message indicating details about why the pod is in this state. e.g. 'OutOfDisk'
Reason string `json:"reason,omitempty"`
HostIP string `json:"hostIP,omitempty"`
PodIP string `json:"podIP,omitempty"`
// Date and time at which the object was acknowledged by the Kubelet.
// This is before the Kubelet pulled the container image(s) for the pod.
StartTime *unversioned.Time `json:"startTime,omitempty"`
// The list has one entry per init container in the manifest. The most recent successful
// init container will have ready = true, the most recently started container will have
// startTime set.
// More info: http://kubernetes.io/docs/user-guide/pod-states#container-statuses
InitContainerStatuses []ContainerStatus `json:"-"`
// The list has one entry per container in the manifest. Each entry is
// currently the output of `docker inspect`. This output format is *not*
// final and should not be relied upon.
// TODO: Make real decisions about what our info should look like. Re-enable fuzz test
// when we have done this.
ContainerStatuses []ContainerStatus `json:"containerStatuses,omitempty"`
}
// PodStatusResult is a wrapper for PodStatus returned by kubelet that can be encode/decoded
type PodStatusResult struct {
unversioned.TypeMeta `json:",inline"`
ObjectMeta `json:"metadata,omitempty"`
// Status represents the current information about a pod. This data may not be up
// to date.
Status PodStatus `json:"status,omitempty"`
}
// +genclient=true
// Pod is a collection of containers, used as either input (create, update) or as output (list, get).
type Pod struct {
unversioned.TypeMeta `json:",inline"`
ObjectMeta `json:"metadata,omitempty"`
// Spec defines the behavior of a pod.
Spec PodSpec `json:"spec,omitempty"`
// Status represents the current information about a pod. This data may not be up
// to date.
Status PodStatus `json:"status,omitempty"`
}
// PodTemplateSpec describes the data a pod should have when created from a template
type PodTemplateSpec struct {
// Metadata of the pods created from this template.
ObjectMeta `json:"metadata,omitempty"`
// Spec defines the behavior of a pod.
Spec PodSpec `json:"spec,omitempty"`
}
// +genclient=true
// PodTemplate describes a template for creating copies of a predefined pod.
type PodTemplate struct {
unversioned.TypeMeta `json:",inline"`
ObjectMeta `json:"metadata,omitempty"`
// Template defines the pods that will be created from this pod template
Template PodTemplateSpec `json:"template,omitempty"`
}
// PodTemplateList is a list of PodTemplates.
type PodTemplateList struct {
unversioned.TypeMeta `json:",inline"`
unversioned.ListMeta `json:"metadata,omitempty"`
Items []PodTemplate `json:"items"`
}
// ReplicationControllerSpec is the specification of a replication controller.
// As the internal representation of a replication controller, it may have either
// a TemplateRef or a Template set.
type ReplicationControllerSpec struct {
// Replicas is the number of desired replicas.
Replicas int32 `json:"replicas"`
// Minimum number of seconds for which a newly created pod should be ready
// without any of its container crashing, for it to be considered available.
// Defaults to 0 (pod will be considered available as soon as it is ready)
MinReadySeconds int32 `json:"minReadySeconds,omitempty"`
// Selector is a label query over pods that should match the Replicas count.
Selector map[string]string `json:"selector"`
// TemplateRef is a reference to an object that describes the pod that will be created if
// insufficient replicas are detected. This reference is ignored if a Template is set.
// Must be set before converting to a versioned API object
//TemplateRef *ObjectReference `json:"templateRef,omitempty"`
// Template is the object that describes the pod that will be created if
// insufficient replicas are detected. Internally, this takes precedence over a
// TemplateRef.
Template *PodTemplateSpec `json:"template,omitempty"`
}
// ReplicationControllerStatus represents the current status of a replication
// controller.
type ReplicationControllerStatus struct {
// Replicas is the number of actual replicas.
Replicas int32 `json:"replicas"`
// The number of pods that have labels matching the labels of the pod template of the replication controller.
FullyLabeledReplicas int32 `json:"fullyLabeledReplicas,omitempty"`
// The number of ready replicas for this replication controller.
ReadyReplicas int32 `json:"readyReplicas,omitempty"`
// The number of available replicas (ready for at least minReadySeconds) for this replication controller.
AvailableReplicas int32 `json:"availableReplicas,omitempty"`
// ObservedGeneration is the most recent generation observed by the controller.
ObservedGeneration int64 `json:"observedGeneration,omitempty"`
// Represents the latest available observations of a replication controller's current state.
Conditions []ReplicationControllerCondition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type"`
}
type ReplicationControllerConditionType string
// These are valid conditions of a replication controller.
const (
// ReplicationControllerReplicaFailure is added in a replication controller when one of its pods
// fails to be created due to insufficient quota, limit ranges, pod security policy, node selectors,
// etc. or deleted due to kubelet being down or finalizers are failing.
ReplicationControllerReplicaFailure ReplicationControllerConditionType = "ReplicaFailure"
)
// ReplicationControllerCondition describes the state of a replication controller at a certain point.
type ReplicationControllerCondition struct {
// Type of replication controller condition.
Type ReplicationControllerConditionType `json:"type"`
// Status of the condition, one of True, False, Unknown.
Status ConditionStatus `json:"status"`
// Last time we probed the condition.
LastProbeTime unversioned.Time `json:"lastProbeTime,omitempty"`
// The last time the condition transitioned from one status to another.
LastTransitionTime unversioned.Time `json:"lastTransitionTime,omitempty"`
// The reason for the condition's last transition.
Reason string `json:"reason,omitempty"`
// A human readable message indicating details about the transition.
Message string `json:"message,omitempty"`
}
// +genclient=true
// ReplicationController represents the configuration of a replication controller.
type ReplicationController struct {
unversioned.TypeMeta `json:",inline"`
ObjectMeta `json:"metadata,omitempty"`
// Spec defines the desired behavior of this replication controller.
Spec ReplicationControllerSpec `json:"spec,omitempty"`
// Status is the current status of this replication controller. This data may be
// out of date by some window of time.
Status ReplicationControllerStatus `json:"status,omitempty"`
}
// ReplicationControllerList is a collection of replication controllers.
type ReplicationControllerList struct {
unversioned.TypeMeta `json:",inline"`
unversioned.ListMeta `json:"metadata,omitempty"`
Items []ReplicationController `json:"items"`
}
const (
// ClusterIPNone - do not assign a cluster IP
// no proxying required and no environment variables should be created for pods
ClusterIPNone = "None"
)
// ServiceList holds a list of services.
type ServiceList struct {
unversioned.TypeMeta `json:",inline"`
unversioned.ListMeta `json:"metadata,omitempty"`
Items []Service `json:"items"`
}
// Session Affinity Type string
type ServiceAffinity string
const (
// ServiceAffinityClientIP is the Client IP based.
ServiceAffinityClientIP ServiceAffinity = "ClientIP"
// ServiceAffinityNone - no session affinity.
ServiceAffinityNone ServiceAffinity = "None"
)
// Service Type string describes ingress methods for a service
type ServiceType string
const (
// ServiceTypeClusterIP means a service will only be accessible inside the
// cluster, via the ClusterIP.
ServiceTypeClusterIP ServiceType = "ClusterIP"
// ServiceTypeNodePort means a service will be exposed on one port of
// every node, in addition to 'ClusterIP' type.
ServiceTypeNodePort ServiceType = "NodePort"
// ServiceTypeLoadBalancer means a service will be exposed via an
// external load balancer (if the cloud provider supports it), in addition
// to 'NodePort' type.
ServiceTypeLoadBalancer ServiceType = "LoadBalancer"
// ServiceTypeExternalName means a service consists of only a reference to
// an external name that kubedns or equivalent will return as a CNAME
// record, with no exposing or proxying of any pods involved.
ServiceTypeExternalName ServiceType = "ExternalName"
)
// ServiceStatus represents the current status of a service
type ServiceStatus struct {
// LoadBalancer contains the current status of the load-balancer,
// if one is present.
LoadBalancer LoadBalancerStatus `json:"loadBalancer,omitempty"`
}
// LoadBalancerStatus represents the status of a load-balancer
type LoadBalancerStatus struct {
// Ingress is a list containing ingress points for the load-balancer;
// traffic intended for the service should be sent to these ingress points.
Ingress []LoadBalancerIngress `json:"ingress,omitempty"`
}
// LoadBalancerIngress represents the status of a load-balancer ingress point:
// traffic intended for the service should be sent to an ingress point.
type LoadBalancerIngress struct {
// IP is set for load-balancer ingress points that are IP based
// (typically GCE or OpenStack load-balancers)
IP string `json:"ip,omitempty"`
// Hostname is set for load-balancer ingress points that are DNS based
// (typically AWS load-balancers)
Hostname string `json:"hostname,omitempty"`
}
// ServiceSpec describes the attributes that a user creates on a service
type ServiceSpec struct {
// Type determines how the Service is exposed. Defaults to ClusterIP. Valid
// options are ExternalName, ClusterIP, NodePort, and LoadBalancer.
// "ExternalName" maps to the specified externalName.
// "ClusterIP" allocates a cluster-internal IP address for load-balancing to
// endpoints. Endpoints are determined by the selector or if that is not
// specified, by manual construction of an Endpoints object. If clusterIP is
// "None", no virtual IP is allocated and the endpoints are published as a
// set of endpoints rather than a stable IP.
// "NodePort" builds on ClusterIP and allocates a port on every node which
// routes to the clusterIP.
// "LoadBalancer" builds on NodePort and creates an
// external load-balancer (if supported in the current cloud) which routes
// to the clusterIP.
// More info: http://kubernetes.io/docs/user-guide/services#overview
Type ServiceType `json:"type,omitempty"`
// Required: The list of ports that are exposed by this service.
Ports []ServicePort `json:"ports"`
// Route service traffic to pods with label keys and values matching this
// selector. If empty or not present, the service is assumed to have an
// external process managing its endpoints, which Kubernetes will not
// modify. Only applies to types ClusterIP, NodePort, and LoadBalancer.
// Ignored if type is ExternalName.
// More info: http://kubernetes.io/docs/user-guide/services#overview
Selector map[string]string `json:"selector"`
// ClusterIP is the IP address of the service and is usually assigned
// randomly by the master. If an address is specified manually and is not in
// use by others, it will be allocated to the service; otherwise, creation
// of the service will fail. This field can not be changed through updates.
// Valid values are "None", empty string (""), or a valid IP address. "None"
// can be specified for headless services when proxying is not required.
// Only applies to types ClusterIP, NodePort, and LoadBalancer. Ignored if
// type is ExternalName.
// More info: http://kubernetes.io/docs/user-guide/services#virtual-ips-and-service-proxies
ClusterIP string `json:"clusterIP,omitempty"`
// ExternalName is the external reference that kubedns or equivalent will
// return as a CNAME record for this service. No proxying will be involved.
// Must be a valid DNS name and requires Type to be ExternalName.
ExternalName string
// ExternalIPs are used by external load balancers, or can be set by
// users to handle external traffic that arrives at a node.
ExternalIPs []string `json:"externalIPs,omitempty"`
// Only applies to Service Type: LoadBalancer
// LoadBalancer will get created with the IP specified in this field.
// This feature depends on whether the underlying cloud-provider supports specifying
// the loadBalancerIP when a load balancer is created.
// This field will be ignored if the cloud-provider does not support the feature.
LoadBalancerIP string `json:"loadBalancerIP,omitempty"`
// Optional: Supports "ClientIP" and "None". Used to maintain session affinity.
SessionAffinity ServiceAffinity `json:"sessionAffinity,omitempty"`
// Optional: If specified and supported by the platform, this will restrict traffic through the cloud-provider
// load-balancer will be restricted to the specified client IPs. This field will be ignored if the
// cloud-provider does not support the feature."
LoadBalancerSourceRanges []string `json:"loadBalancerSourceRanges,omitempty"`
}
type ServicePort struct {
// Optional if only one ServicePort is defined on this service: The
// name of this port within the service. This must be a DNS_LABEL.
// All ports within a ServiceSpec must have unique names. This maps to
// the 'Name' field in EndpointPort objects.
Name string `json:"name"`
// The IP protocol for this port. Supports "TCP" and "UDP".
Protocol Protocol `json:"protocol"`
// The port that will be exposed on the service.
Port int32 `json:"port"`
// Optional: The target port on pods selected by this service. If this
// is a string, it will be looked up as a named port in the target
// Pod's container ports. If this is not specified, the value
// of the 'port' field is used (an identity map).
// This field is ignored for services with clusterIP=None, and should be
// omitted or set equal to the 'port' field.
TargetPort intstr.IntOrString `json:"targetPort"`
// The port on each node on which this service is exposed.
// Default is to auto-allocate a port if the ServiceType of this Service requires one.
NodePort int32 `json:"nodePort"`
}
// +genclient=true
// Service is a named abstraction of software service (for example, mysql) consisting of local port
// (for example 3306) that the proxy listens on, and the selector that determines which pods
// will answer requests sent through the proxy.
type Service struct {
unversioned.TypeMeta `json:",inline"`
ObjectMeta `json:"metadata,omitempty"`
// Spec defines the behavior of a service.
Spec ServiceSpec `json:"spec,omitempty"`
// Status represents the current status of a service.
Status ServiceStatus `json:"status,omitempty"`
}
// +genclient=true
// ServiceAccount binds together:
// * a name, understood by users, and perhaps by peripheral systems, for an identity
// * a principal that can be authenticated and authorized
// * a set of secrets
type ServiceAccount struct {
unversioned.TypeMeta `json:",inline"`
ObjectMeta `json:"metadata,omitempty"`
// Secrets is the list of secrets allowed to be used by pods running using this ServiceAccount
Secrets []ObjectReference `json:"secrets"`
// ImagePullSecrets is a list of references to secrets in the same namespace to use for pulling any images
// in pods that reference this ServiceAccount. ImagePullSecrets are distinct from Secrets because Secrets
// can be mounted in the pod, but ImagePullSecrets are only accessed by the kubelet.
ImagePullSecrets []LocalObjectReference `json:"imagePullSecrets,omitempty"`
}
// ServiceAccountList is a list of ServiceAccount objects
type ServiceAccountList struct {
unversioned.TypeMeta `json:",inline"`
unversioned.ListMeta `json:"metadata,omitempty"`
Items []ServiceAccount `json:"items"`
}
// +genclient=true
// Endpoints is a collection of endpoints that implement the actual service. Example:
// Name: "mysvc",
// Subsets: [
// {
// Addresses: [{"ip": "10.10.1.1"}, {"ip": "10.10.2.2"}],
// Ports: [{"name": "a", "port": 8675}, {"name": "b", "port": 309}]
// },
// {
// Addresses: [{"ip": "10.10.3.3"}],
// Ports: [{"name": "a", "port": 93}, {"name": "b", "port": 76}]
// },
// ]
type Endpoints struct {
unversioned.TypeMeta `json:",inline"`
ObjectMeta `json:"metadata,omitempty"`
// The set of all endpoints is the union of all subsets.
Subsets []EndpointSubset
}
// EndpointSubset is a group of addresses with a common set of ports. The
// expanded set of endpoints is the Cartesian product of Addresses x Ports.
// For example, given:
// {
// Addresses: [{"ip": "10.10.1.1"}, {"ip": "10.10.2.2"}],
// Ports: [{"name": "a", "port": 8675}, {"name": "b", "port": 309}]
// }
// The resulting set of endpoints can be viewed as:
// a: [ 10.10.1.1:8675, 10.10.2.2:8675 ],
// b: [ 10.10.1.1:309, 10.10.2.2:309 ]
type EndpointSubset struct {
Addresses []EndpointAddress
NotReadyAddresses []EndpointAddress
Ports []EndpointPort
}
// EndpointAddress is a tuple that describes single IP address.
type EndpointAddress struct {
// The IP of this endpoint.
// IPv6 is also accepted but not fully supported on all platforms. Also, certain
// kubernetes components, like kube-proxy, are not IPv6 ready.
// TODO: This should allow hostname or IP, see #4447.
IP string
// Optional: Hostname of this endpoint
// Meant to be used by DNS servers etc.
Hostname string `json:"hostname,omitempty"`
// Optional: Node hosting this endpoint. This can be used to determine endpoints local to a node.
NodeName *string `json:"nodeName,omitempty"`
// Optional: The kubernetes object related to the entry point.
TargetRef *ObjectReference
}
// EndpointPort is a tuple that describes a single port.
type EndpointPort struct {
// The name of this port (corresponds to ServicePort.Name). Optional
// if only one port is defined. Must be a DNS_LABEL.
Name string
// The port number.
Port int32
// The IP protocol for this port.
Protocol Protocol
}
// EndpointsList is a list of endpoints.
type EndpointsList struct {
unversioned.TypeMeta `json:",inline"`
unversioned.ListMeta `json:"metadata,omitempty"`
Items []Endpoints `json:"items"`
}
// NodeSpec describes the attributes that a node is created with.
type NodeSpec struct {
// PodCIDR represents the pod IP range assigned to the node
// Note: assigning IP ranges to nodes might need to be revisited when we support migratable IPs.
PodCIDR string `json:"podCIDR,omitempty"`
// External ID of the node assigned by some machine database (e.g. a cloud provider)
ExternalID string `json:"externalID,omitempty"`
// ID of the node assigned by the cloud provider
// Note: format is "<ProviderName>://<ProviderSpecificNodeID>"
ProviderID string `json:"providerID,omitempty"`
// Unschedulable controls node schedulability of new pods. By default node is schedulable.
Unschedulable bool `json:"unschedulable,omitempty"`
}
// DaemonEndpoint contains information about a single Daemon endpoint.
type DaemonEndpoint struct {
/*
The port tag was not properly in quotes in earlier releases, so it must be
uppercased for backwards compat (since it was falling back to var name of
'Port').
*/
// Port number of the given endpoint.
Port int32 `json:"Port"`
}
// NodeDaemonEndpoints lists ports opened by daemons running on the Node.
type NodeDaemonEndpoints struct {
// Endpoint on which Kubelet is listening.
KubeletEndpoint DaemonEndpoint `json:"kubeletEndpoint,omitempty"`
}
// NodeSystemInfo is a set of ids/uuids to uniquely identify the node.
type NodeSystemInfo struct {
// MachineID reported by the node. For unique machine identification
// in the cluster this field is prefered. Learn more from man(5)
// machine-id: http://man7.org/linux/man-pages/man5/machine-id.5.html
MachineID string `json:"machineID"`
// SystemUUID reported by the node. For unique machine identification
// MachineID is prefered. This field is specific to Red Hat hosts
// https://access.redhat.com/documentation/en-US/Red_Hat_Subscription_Management/1/html/RHSM/getting-system-uuid.html
SystemUUID string `json:"systemUUID"`
// Boot ID reported by the node.
BootID string `json:"bootID"`
// Kernel Version reported by the node.
KernelVersion string `json:"kernelVersion"`
// OS Image reported by the node.
OSImage string `json:"osImage"`
// ContainerRuntime Version reported by the node.
ContainerRuntimeVersion string `json:"containerRuntimeVersion"`
// Kubelet Version reported by the node.
KubeletVersion string `json:"kubeletVersion"`
// KubeProxy Version reported by the node.
KubeProxyVersion string `json:"kubeProxyVersion"`
// The Operating System reported by the node
OperatingSystem string `json:"operatingSystem"`
// The Architecture reported by the node
Architecture string `json:"architecture"`
}
// NodeStatus is information about the current status of a node.
type NodeStatus struct {
// Capacity represents the total resources of a node.
Capacity ResourceList `json:"capacity,omitempty"`
// Allocatable represents the resources of a node that are available for scheduling.
Allocatable ResourceList `json:"allocatable,omitempty"`
// NodePhase is the current lifecycle phase of the node.
Phase NodePhase `json:"phase,omitempty"`
// Conditions is an array of current node conditions.
Conditions []NodeCondition `json:"conditions,omitempty"`
// Queried from cloud provider, if available.
Addresses []NodeAddress `json:"addresses,omitempty"`
// Endpoints of daemons running on the Node.
DaemonEndpoints NodeDaemonEndpoints `json:"daemonEndpoints,omitempty"`
// Set of ids/uuids to uniquely identify the node.
NodeInfo NodeSystemInfo `json:"nodeInfo,omitempty"`
// List of container images on this node
Images []ContainerImage `json:"images,omitempty"`
// List of attachable volumes in use (mounted) by the node.
VolumesInUse []UniqueVolumeName `json:"volumesInUse,omitempty"`
// List of volumes that are attached to the node.
VolumesAttached []AttachedVolume `json:"volumesAttached,omitempty"`
}
type UniqueVolumeName string
// AttachedVolume describes a volume attached to a node
type AttachedVolume struct {
// Name of the attached volume
Name UniqueVolumeName `json:"name"`
// DevicePath represents the device path where the volume should be available
DevicePath string `json:"devicePath"`
}
// AvoidPods describes pods that should avoid this node. This is the value for a
// Node annotation with key scheduler.alpha.kubernetes.io/preferAvoidPods and
// will eventually become a field of NodeStatus.
type AvoidPods struct {
// Bounded-sized list of signatures of pods that should avoid this node, sorted
// in timestamp order from oldest to newest. Size of the slice is unspecified.
PreferAvoidPods []PreferAvoidPodsEntry `json:"preferAvoidPods,omitempty"`
}
// Describes a class of pods that should avoid this node.
type PreferAvoidPodsEntry struct {
// The class of pods.
PodSignature PodSignature `json:"podSignature"`
// Time at which this entry was added to the list.
EvictionTime unversioned.Time `json:"evictionTime,omitempty"`
// (brief) reason why this entry was added to the list.
Reason string `json:"reason,omitempty"`
// Human readable message indicating why this entry was added to the list.
Message string `json:"message,omitempty"`
}
// Describes the class of pods that should avoid this node.
// Exactly one field should be set.
type PodSignature struct {
// Reference to controller whose pods should avoid this node.
PodController *OwnerReference `json:"podController,omitempty"`
}
// Describe a container image
type ContainerImage struct {
// Names by which this image is known.
Names []string `json:"names"`
// The size of the image in bytes.
SizeBytes int64 `json:"sizeBytes,omitempty"`
}
type NodePhase string
// These are the valid phases of node.
const (
// NodePending means the node has been created/added by the system, but not configured.
NodePending NodePhase = "Pending"
// NodeRunning means the node has been configured and has Kubernetes components running.
NodeRunning NodePhase = "Running"
// NodeTerminated means the node has been removed from the cluster.
NodeTerminated NodePhase = "Terminated"
)
type NodeConditionType string
// These are valid conditions of node. Currently, we don't have enough information to decide
// node condition. In the future, we will add more. The proposed set of conditions are:
// NodeReady, NodeReachable
const (
// NodeReady means kubelet is healthy and ready to accept pods.
NodeReady NodeConditionType = "Ready"
// NodeOutOfDisk means the kubelet will not accept new pods due to insufficient free disk
// space on the node.
NodeOutOfDisk NodeConditionType = "OutOfDisk"
// NodeMemoryPressure means the kubelet is under pressure due to insufficient available memory.
NodeMemoryPressure NodeConditionType = "MemoryPressure"
// NodeDiskPressure means the kubelet is under pressure due to insufficient available disk.
NodeDiskPressure NodeConditionType = "DiskPressure"
// NodeNetworkUnavailable means that network for the node is not correctly configured.
NodeNetworkUnavailable NodeConditionType = "NetworkUnavailable"
// NodeInodePressure means the kublet is under pressure due to insufficient available inodes.
NodeInodePressure NodeConditionType = "InodePressure"
)
type NodeCondition struct {
Type NodeConditionType `json:"type"`
Status ConditionStatus `json:"status"`
LastHeartbeatTime unversioned.Time `json:"lastHeartbeatTime,omitempty"`
LastTransitionTime unversioned.Time `json:"lastTransitionTime,omitempty"`
Reason string `json:"reason,omitempty"`
Message string `json:"message,omitempty"`
}
type NodeAddressType string
// These are valid address types of node. NodeLegacyHostIP is used to transit
// from out-dated HostIP field to NodeAddress.
const (
NodeLegacyHostIP NodeAddressType = "LegacyHostIP"
NodeHostName NodeAddressType = "Hostname"
NodeExternalIP NodeAddressType = "ExternalIP"
NodeInternalIP NodeAddressType = "InternalIP"
)
type NodeAddress struct {
Type NodeAddressType `json:"type"`
Address string `json:"address"`
}
// NodeResources is an object for conveying resource information about a node.
// see http://releases.k8s.io/HEAD/docs/design/resources.md for more details.
type NodeResources struct {
// Capacity represents the available resources of a node
Capacity ResourceList `json:"capacity,omitempty"`
}
// ResourceName is the name identifying various resources in a ResourceList.
type ResourceName string
// Resource names must be not more than 63 characters, consisting of upper- or lower-case alphanumeric characters,
// with the -, _, and . characters allowed anywhere, except the first or last character.
// The default convention, matching that for annotations, is to use lower-case names, with dashes, rather than
// camel case, separating compound words.
// Fully-qualified resource typenames are constructed from a DNS-style subdomain, followed by a slash `/` and a name.
const (
// CPU, in cores. (500m = .5 cores)
ResourceCPU ResourceName = "cpu"
// Memory, in bytes. (500Gi = 500GiB = 500 * 1024 * 1024 * 1024)
ResourceMemory ResourceName = "memory"
// Volume size, in bytes (e,g. 5Gi = 5GiB = 5 * 1024 * 1024 * 1024)
ResourceStorage ResourceName = "storage"
// NVIDIA GPU, in devices. Alpha, might change: although fractional and allowing values >1, only one whole device per node is assigned.
ResourceNvidiaGPU ResourceName = "alpha.kubernetes.io/nvidia-gpu"
// Number of Pods that may be running on this Node: see ResourcePods
)
// ResourceList is a set of (resource name, quantity) pairs.
type ResourceList map[ResourceName]resource.Quantity
// +genclient=true
// +nonNamespaced=true
// Node is a worker node in Kubernetes
// The name of the node according to etcd is in ObjectMeta.Name.
type Node struct {
unversioned.TypeMeta `json:",inline"`
ObjectMeta `json:"metadata,omitempty"`
// Spec defines the behavior of a node.
Spec NodeSpec `json:"spec,omitempty"`
// Status describes the current status of a Node
Status NodeStatus `json:"status,omitempty"`
}
// NodeList is a list of nodes.
type NodeList struct {
unversioned.TypeMeta `json:",inline"`
unversioned.ListMeta `json:"metadata,omitempty"`
Items []Node `json:"items"`
}
// NamespaceSpec describes the attributes on a Namespace
type NamespaceSpec struct {
// Finalizers is an opaque list of values that must be empty to permanently remove object from storage
Finalizers []FinalizerName
}
type FinalizerName string
// These are internal finalizer values to Kubernetes, must be qualified name unless defined here
const (
FinalizerKubernetes FinalizerName = "kubernetes"
FinalizerOrphan string = "orphan"
)
// NamespaceStatus is information about the current status of a Namespace.
type NamespaceStatus struct {
// Phase is the current lifecycle phase of the namespace.
Phase NamespacePhase `json:"phase,omitempty"`
}
type NamespacePhase string
// These are the valid phases of a namespace.
const (
// NamespaceActive means the namespace is available for use in the system
NamespaceActive NamespacePhase = "Active"
// NamespaceTerminating means the namespace is undergoing graceful termination
NamespaceTerminating NamespacePhase = "Terminating"
)
// +genclient=true
// +nonNamespaced=true
// A namespace provides a scope for Names.
// Use of multiple namespaces is optional
type Namespace struct {
unversioned.TypeMeta `json:",inline"`
ObjectMeta `json:"metadata,omitempty"`
// Spec defines the behavior of the Namespace.
Spec NamespaceSpec `json:"spec,omitempty"`
// Status describes the current status of a Namespace
Status NamespaceStatus `json:"status,omitempty"`
}
// NamespaceList is a list of Namespaces.
type NamespaceList struct {
unversioned.TypeMeta `json:",inline"`
unversioned.ListMeta `json:"metadata,omitempty"`
Items []Namespace `json:"items"`
}
// Binding ties one object to another - for example, a pod is bound to a node by a scheduler.
type Binding struct {
unversioned.TypeMeta `json:",inline"`
// ObjectMeta describes the object that is being bound.
ObjectMeta `json:"metadata,omitempty"`
// Target is the object to bind to.
Target ObjectReference `json:"target"`
}
// Preconditions must be fulfilled before an operation (update, delete, etc.) is carried out.
type Preconditions struct {
// Specifies the target UID.
UID *types.UID `json:"uid,omitempty"`
}
// DeleteOptions may be provided when deleting an API object
type DeleteOptions struct {
unversioned.TypeMeta `json:",inline"`
// Optional duration in seconds before the object should be deleted. Value must be non-negative integer.
// The value zero indicates delete immediately. If this value is nil, the default grace period for the
// specified type will be used.
GracePeriodSeconds *int64 `json:"gracePeriodSeconds,omitempty"`
// Must be fulfilled before a deletion is carried out. If not possible, a 409 Conflict status will be
// returned.
Preconditions *Preconditions `json:"preconditions,omitempty"`
// Should the dependent objects be orphaned. If true/false, the "orphan"
// finalizer will be added to/removed from the object's finalizers list.
OrphanDependents *bool `json:"orphanDependents,omitempty"`
}
// ExportOptions is the query options to the standard REST get call.
type ExportOptions struct {
unversioned.TypeMeta `json:",inline"`
// Should this value be exported. Export strips fields that a user can not specify.
Export bool `json:"export"`
// Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'
Exact bool `json:"exact"`
}
// ListOptions is the query options to a standard REST list call, and has future support for
// watch calls.
type ListOptions struct {
unversioned.TypeMeta `json:",inline"`
// A selector based on labels
LabelSelector labels.Selector
// A selector based on fields
FieldSelector fields.Selector
// If true, watch for changes to this list
Watch bool
// For watch, it's the resource version to watch.
// For list,
// - if unset, then the result is returned from remote storage based on quorum-read flag;
// - if it's 0, then we simply return what we currently have in cache, no guarantee;
// - if set to non zero, then the result is as fresh as given rv.
ResourceVersion string
// Timeout for the list/watch call.
TimeoutSeconds *int64
}
// PodLogOptions is the query options for a Pod's logs REST call
type PodLogOptions struct {
unversioned.TypeMeta
// Container for which to return logs
Container string
// If true, follow the logs for the pod
Follow bool
// If true, return previous terminated container logs
Previous bool
// A relative time in seconds before the current time from which to show logs. If this value
// precedes the time a pod was started, only logs since the pod start will be returned.
// If this value is in the future, no logs will be returned.
// Only one of sinceSeconds or sinceTime may be specified.
SinceSeconds *int64
// An RFC3339 timestamp from which to show logs. If this value
// precedes the time a pod was started, only logs since the pod start will be returned.
// If this value is in the future, no logs will be returned.
// Only one of sinceSeconds or sinceTime may be specified.
SinceTime *unversioned.Time
// If true, add an RFC3339 or RFC3339Nano timestamp at the beginning of every line
// of log output.
Timestamps bool
// If set, the number of lines from the end of the logs to show. If not specified,
// logs are shown from the creation of the container or sinceSeconds or sinceTime
TailLines *int64
// If set, the number of bytes to read from the server before terminating the
// log output. This may not display a complete final line of logging, and may return
// slightly more or slightly less than the specified limit.
LimitBytes *int64
}
// PodAttachOptions is the query options to a Pod's remote attach call
// TODO: merge w/ PodExecOptions below for stdin, stdout, etc
type PodAttachOptions struct {
unversioned.TypeMeta `json:",inline"`
// Stdin if true indicates that stdin is to be redirected for the attach call
Stdin bool `json:"stdin,omitempty"`
// Stdout if true indicates that stdout is to be redirected for the attach call
Stdout bool `json:"stdout,omitempty"`
// Stderr if true indicates that stderr is to be redirected for the attach call
Stderr bool `json:"stderr,omitempty"`
// TTY if true indicates that a tty will be allocated for the attach call
TTY bool `json:"tty,omitempty"`
// Container to attach to.
Container string `json:"container,omitempty"`
}
// PodExecOptions is the query options to a Pod's remote exec call
type PodExecOptions struct {
unversioned.TypeMeta
// Stdin if true indicates that stdin is to be redirected for the exec call
Stdin bool
// Stdout if true indicates that stdout is to be redirected for the exec call
Stdout bool
// Stderr if true indicates that stderr is to be redirected for the exec call
Stderr bool
// TTY if true indicates that a tty will be allocated for the exec call
TTY bool
// Container in which to execute the command.
Container string
// Command is the remote command to execute; argv array; not executed within a shell.
Command []string
}
// PodProxyOptions is the query options to a Pod's proxy call
type PodProxyOptions struct {
unversioned.TypeMeta
// Path is the URL path to use for the current proxy request
Path string
}
// NodeProxyOptions is the query options to a Node's proxy call
type NodeProxyOptions struct {
unversioned.TypeMeta
// Path is the URL path to use for the current proxy request
Path string
}
// ServiceProxyOptions is the query options to a Service's proxy call.
type ServiceProxyOptions struct {
unversioned.TypeMeta
// Path is the part of URLs that include service endpoints, suffixes,
// and parameters to use for the current proxy request to service.
// For example, the whole request URL is
// http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy.
// Path is _search?q=user:kimchy.
Path string
}
// OwnerReference contains enough information to let you identify an owning
// object. Currently, an owning object must be in the same namespace, so there
// is no namespace field.
type OwnerReference struct {
// API version of the referent.
APIVersion string `json:"apiVersion"`
// Kind of the referent.
// More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds
Kind string `json:"kind"`
// Name of the referent.
// More info: http://kubernetes.io/docs/user-guide/identifiers#names
Name string `json:"name"`
// UID of the referent.
// More info: http://kubernetes.io/docs/user-guide/identifiers#uids
UID types.UID `json:"uid"`
// If true, this reference points to the managing controller.
Controller *bool `json:"controller,omitempty"`
}
// ObjectReference contains enough information to let you inspect or modify the referred object.
type ObjectReference struct {
Kind string `json:"kind,omitempty"`
Namespace string `json:"namespace,omitempty"`
Name string `json:"name,omitempty"`
UID types.UID `json:"uid,omitempty"`
APIVersion string `json:"apiVersion,omitempty"`
ResourceVersion string `json:"resourceVersion,omitempty"`
// Optional. If referring to a piece of an object instead of an entire object, this string
// should contain information to identify the sub-object. For example, if the object
// reference is to a container within a pod, this would take on a value like:
// "spec.containers{name}" (where "name" refers to the name of the container that triggered
// the event) or if no container name is specified "spec.containers[2]" (container with
// index 2 in this pod). This syntax is chosen only to have some well-defined way of
// referencing a part of an object.
// TODO: this design is not final and this field is subject to change in the future.
FieldPath string `json:"fieldPath,omitempty"`
}
// LocalObjectReference contains enough information to let you locate the referenced object inside the same namespace.
type LocalObjectReference struct {
//TODO: Add other useful fields. apiVersion, kind, uid?
Name string
}
type SerializedReference struct {
unversioned.TypeMeta `json:",inline"`
Reference ObjectReference `json:"reference,omitempty"`
}
type EventSource struct {
// Component from which the event is generated.
Component string `json:"component,omitempty"`
// Node name on which the event is generated.
Host string `json:"host,omitempty"`
}
// Valid values for event types (new types could be added in future)
const (
// Information only and will not cause any problems
EventTypeNormal string = "Normal"
// These events are to warn that something might go wrong
EventTypeWarning string = "Warning"
)
// +genclient=true
// Event is a report of an event somewhere in the cluster.
// TODO: Decide whether to store these separately or with the object they apply to.
type Event struct {
unversioned.TypeMeta `json:",inline"`
ObjectMeta `json:"metadata,omitempty"`
// Required. The object that this event is about.
InvolvedObject ObjectReference `json:"involvedObject,omitempty"`
// Optional; this should be a short, machine understandable string that gives the reason
// for this event being generated. For example, if the event is reporting that a container
// can't start, the Reason might be "ImageNotFound".
// TODO: provide exact specification for format.
Reason string `json:"reason,omitempty"`
// Optional. A human-readable description of the status of this operation.
// TODO: decide on maximum length.
Message string `json:"message,omitempty"`
// Optional. The component reporting this event. Should be a short machine understandable string.
Source EventSource `json:"source,omitempty"`
// The time at which the event was first recorded. (Time of server receipt is in TypeMeta.)
FirstTimestamp unversioned.Time `json:"firstTimestamp,omitempty"`
// The time at which the most recent occurrence of this event was recorded.
LastTimestamp unversioned.Time `json:"lastTimestamp,omitempty"`
// The number of times this event has occurred.
Count int32 `json:"count,omitempty"`
// Type of this event (Normal, Warning), new types could be added in the future.
Type string `json:"type,omitempty"`
}
// EventList is a list of events.
type EventList struct {
unversioned.TypeMeta `json:",inline"`
unversioned.ListMeta `json:"metadata,omitempty"`
Items []Event `json:"items"`
}
// List holds a list of objects, which may not be known by the server.
type List struct {
unversioned.TypeMeta `json:",inline"`
unversioned.ListMeta `json:"metadata,omitempty"`
Items []runtime.Object `json:"items"`
}
// A type of object that is limited
type LimitType string
const (
// Limit that applies to all pods in a namespace
LimitTypePod LimitType = "Pod"
// Limit that applies to all containers in a namespace
LimitTypeContainer LimitType = "Container"
// Limit that applies to all persistent volume claims in a namespace
LimitTypePersistentVolumeClaim LimitType = "PersistentVolumeClaim"
)
// LimitRangeItem defines a min/max usage limit for any resource that matches on kind
type LimitRangeItem struct {
// Type of resource that this limit applies to
Type LimitType `json:"type,omitempty"`
// Max usage constraints on this kind by resource name
Max ResourceList `json:"max,omitempty"`
// Min usage constraints on this kind by resource name
Min ResourceList `json:"min,omitempty"`
// Default resource requirement limit value by resource name.
Default ResourceList `json:"default,omitempty"`
// DefaultRequest resource requirement request value by resource name.
DefaultRequest ResourceList `json:"defaultRequest,omitempty"`
// MaxLimitRequestRatio represents the max burst value for the named resource
MaxLimitRequestRatio ResourceList `json:"maxLimitRequestRatio,omitempty"`
}
// LimitRangeSpec defines a min/max usage limit for resources that match on kind
type LimitRangeSpec struct {
// Limits is the list of LimitRangeItem objects that are enforced
Limits []LimitRangeItem `json:"limits"`
}
// +genclient=true
// LimitRange sets resource usage limits for each kind of resource in a Namespace
type LimitRange struct {
unversioned.TypeMeta `json:",inline"`
ObjectMeta `json:"metadata,omitempty"`
// Spec defines the limits enforced
Spec LimitRangeSpec `json:"spec,omitempty"`
}
// LimitRangeList is a list of LimitRange items.
type LimitRangeList struct {
unversioned.TypeMeta `json:",inline"`
unversioned.ListMeta `json:"metadata,omitempty"`
// Items is a list of LimitRange objects
Items []LimitRange `json:"items"`
}
// The following identify resource constants for Kubernetes object types
const (
// Pods, number
ResourcePods ResourceName = "pods"
// Services, number
ResourceServices ResourceName = "services"
// ReplicationControllers, number
ResourceReplicationControllers ResourceName = "replicationcontrollers"
// ResourceQuotas, number
ResourceQuotas ResourceName = "resourcequotas"
// ResourceSecrets, number
ResourceSecrets ResourceName = "secrets"
// ResourceConfigMaps, number
ResourceConfigMaps ResourceName = "configmaps"
// ResourcePersistentVolumeClaims, number
ResourcePersistentVolumeClaims ResourceName = "persistentvolumeclaims"
// ResourceServicesNodePorts, number
ResourceServicesNodePorts ResourceName = "services.nodeports"
// ResourceServicesLoadBalancers, number
ResourceServicesLoadBalancers ResourceName = "services.loadbalancers"
// CPU request, in cores. (500m = .5 cores)
ResourceRequestsCPU ResourceName = "requests.cpu"
// Memory request, in bytes. (500Gi = 500GiB = 500 * 1024 * 1024 * 1024)
ResourceRequestsMemory ResourceName = "requests.memory"
// Storage request, in bytes
ResourceRequestsStorage ResourceName = "requests.storage"
// CPU limit, in cores. (500m = .5 cores)
ResourceLimitsCPU ResourceName = "limits.cpu"
// Memory limit, in bytes. (500Gi = 500GiB = 500 * 1024 * 1024 * 1024)
ResourceLimitsMemory ResourceName = "limits.memory"
)
// A ResourceQuotaScope defines a filter that must match each object tracked by a quota
type ResourceQuotaScope string
const (
// Match all pod objects where spec.activeDeadlineSeconds
ResourceQuotaScopeTerminating ResourceQuotaScope = "Terminating"
// Match all pod objects where !spec.activeDeadlineSeconds
ResourceQuotaScopeNotTerminating ResourceQuotaScope = "NotTerminating"
// Match all pod objects that have best effort quality of service
ResourceQuotaScopeBestEffort ResourceQuotaScope = "BestEffort"
// Match all pod objects that do not have best effort quality of service
ResourceQuotaScopeNotBestEffort ResourceQuotaScope = "NotBestEffort"
)
// ResourceQuotaSpec defines the desired hard limits to enforce for Quota
type ResourceQuotaSpec struct {
// Hard is the set of desired hard limits for each named resource
Hard ResourceList `json:"hard,omitempty"`
// A collection of filters that must match each object tracked by a quota.
// If not specified, the quota matches all objects.
Scopes []ResourceQuotaScope `json:"scopes,omitempty"`
}
// ResourceQuotaStatus defines the enforced hard limits and observed use
type ResourceQuotaStatus struct {
// Hard is the set of enforced hard limits for each named resource
Hard ResourceList `json:"hard,omitempty"`
// Used is the current observed total usage of the resource in the namespace
Used ResourceList `json:"used,omitempty"`
}
// +genclient=true
// ResourceQuota sets aggregate quota restrictions enforced per namespace
type ResourceQuota struct {
unversioned.TypeMeta `json:",inline"`
ObjectMeta `json:"metadata,omitempty"`
// Spec defines the desired quota
Spec ResourceQuotaSpec `json:"spec,omitempty"`
// Status defines the actual enforced quota and its current usage
Status ResourceQuotaStatus `json:"status,omitempty"`
}
// ResourceQuotaList is a list of ResourceQuota items
type ResourceQuotaList struct {
unversioned.TypeMeta `json:",inline"`
unversioned.ListMeta `json:"metadata,omitempty"`
// Items is a list of ResourceQuota objects
Items []ResourceQuota `json:"items"`
}
// +genclient=true
// Secret holds secret data of a certain type. The total bytes of the values in
// the Data field must be less than MaxSecretSize bytes.
type Secret struct {
unversioned.TypeMeta `json:",inline"`
ObjectMeta `json:"metadata,omitempty"`
// Data contains the secret data. Each key must be a valid DNS_SUBDOMAIN
// or leading dot followed by valid DNS_SUBDOMAIN.
// The serialized form of the secret data is a base64 encoded string,
// representing the arbitrary (possibly non-string) data value here.
Data map[string][]byte `json:"data,omitempty"`
// Used to facilitate programmatic handling of secret data.
Type SecretType `json:"type,omitempty"`
}
const MaxSecretSize = 1 * 1024 * 1024
type SecretType string
const (
// SecretTypeOpaque is the default; arbitrary user-defined data
SecretTypeOpaque SecretType = "Opaque"
// SecretTypeServiceAccountToken contains a token that identifies a service account to the API
//
// Required fields:
// - Secret.Annotations["kubernetes.io/service-account.name"] - the name of the ServiceAccount the token identifies
// - Secret.Annotations["kubernetes.io/service-account.uid"] - the UID of the ServiceAccount the token identifies
// - Secret.Data["token"] - a token that identifies the service account to the API
SecretTypeServiceAccountToken SecretType = "kubernetes.io/service-account-token"
// ServiceAccountNameKey is the key of the required annotation for SecretTypeServiceAccountToken secrets
ServiceAccountNameKey = "kubernetes.io/service-account.name"
// ServiceAccountUIDKey is the key of the required annotation for SecretTypeServiceAccountToken secrets
ServiceAccountUIDKey = "kubernetes.io/service-account.uid"
// ServiceAccountTokenKey is the key of the required data for SecretTypeServiceAccountToken secrets
ServiceAccountTokenKey = "token"
// ServiceAccountKubeconfigKey is the key of the optional kubeconfig data for SecretTypeServiceAccountToken secrets
ServiceAccountKubeconfigKey = "kubernetes.kubeconfig"
// ServiceAccountRootCAKey is the key of the optional root certificate authority for SecretTypeServiceAccountToken secrets
ServiceAccountRootCAKey = "ca.crt"
// ServiceAccountNamespaceKey is the key of the optional namespace to use as the default for namespaced API calls
ServiceAccountNamespaceKey = "namespace"
// SecretTypeDockercfg contains a dockercfg file that follows the same format rules as ~/.dockercfg
//
// Required fields:
// - Secret.Data[".dockercfg"] - a serialized ~/.dockercfg file
SecretTypeDockercfg SecretType = "kubernetes.io/dockercfg"
// DockerConfigKey is the key of the required data for SecretTypeDockercfg secrets
DockerConfigKey = ".dockercfg"
// SecretTypeDockerConfigJson contains a dockercfg file that follows the same format rules as ~/.docker/config.json
//
// Required fields:
// - Secret.Data[".dockerconfigjson"] - a serialized ~/.docker/config.json file
SecretTypeDockerConfigJson SecretType = "kubernetes.io/dockerconfigjson"
// DockerConfigJsonKey is the key of the required data for SecretTypeDockerConfigJson secrets
DockerConfigJsonKey = ".dockerconfigjson"
// SecretTypeBasicAuth contains data needed for basic authentication.
//
// Required at least one of fields:
// - Secret.Data["username"] - username used for authentication
// - Secret.Data["password"] - password or token needed for authentication
SecretTypeBasicAuth SecretType = "kubernetes.io/basic-auth"
// BasicAuthUsernameKey is the key of the username for SecretTypeBasicAuth secrets
BasicAuthUsernameKey = "username"
// BasicAuthPasswordKey is the key of the password or token for SecretTypeBasicAuth secrets
BasicAuthPasswordKey = "password"
// SecretTypeSSHAuth contains data needed for SSH authetication.
//
// Required field:
// - Secret.Data["ssh-privatekey"] - private SSH key needed for authentication
SecretTypeSSHAuth SecretType = "kubernetes.io/ssh-auth"
// SSHAuthPrivateKey is the key of the required SSH private key for SecretTypeSSHAuth secrets
SSHAuthPrivateKey = "ssh-privatekey"
// SecretTypeTLS contains information about a TLS client or server secret. It
// is primarily used with TLS termination of the Ingress resource, but may be
// used in other types.
//
// Required fields:
// - Secret.Data["tls.key"] - TLS private key.
// Secret.Data["tls.crt"] - TLS certificate.
// TODO: Consider supporting different formats, specifying CA/destinationCA.
SecretTypeTLS SecretType = "kubernetes.io/tls"
// TLSCertKey is the key for tls certificates in a TLS secret.
TLSCertKey = "tls.crt"
// TLSPrivateKeyKey is the key for the private key field in a TLS secret.
TLSPrivateKeyKey = "tls.key"
)
type SecretList struct {
unversioned.TypeMeta `json:",inline"`
unversioned.ListMeta `json:"metadata,omitempty"`
Items []Secret `json:"items"`
}
// +genclient=true
// ConfigMap holds configuration data for components or applications to consume.
type ConfigMap struct {
unversioned.TypeMeta `json:",inline"`
ObjectMeta `json:"metadata,omitempty"`
// Data contains the configuration data.
// Each key must be a valid DNS_SUBDOMAIN with an optional leading dot.
Data map[string]string `json:"data,omitempty"`
}
// ConfigMapList is a resource containing a list of ConfigMap objects.
type ConfigMapList struct {
unversioned.TypeMeta `json:",inline"`
unversioned.ListMeta `json:"metadata,omitempty"`
// Items is the list of ConfigMaps.
Items []ConfigMap `json:"items"`
}
// These constants are for remote command execution and port forwarding and are
// used by both the client side and server side components.
//
// This is probably not the ideal place for them, but it didn't seem worth it
// to create pkg/exec and pkg/portforward just to contain a single file with
// constants in it. Suggestions for more appropriate alternatives are
// definitely welcome!
const (
// Enable stdin for remote command execution
ExecStdinParam = "input"
// Enable stdout for remote command execution
ExecStdoutParam = "output"
// Enable stderr for remote command execution
ExecStderrParam = "error"
// Enable TTY for remote command execution
ExecTTYParam = "tty"
// Command to run for remote command execution
ExecCommandParamm = "command"
// Name of header that specifies stream type
StreamType = "streamType"
// Value for streamType header for stdin stream
StreamTypeStdin = "stdin"
// Value for streamType header for stdout stream
StreamTypeStdout = "stdout"
// Value for streamType header for stderr stream
StreamTypeStderr = "stderr"
// Value for streamType header for data stream
StreamTypeData = "data"
// Value for streamType header for error stream
StreamTypeError = "error"
// Value for streamType header for terminal resize stream
StreamTypeResize = "resize"
// Name of header that specifies the port being forwarded
PortHeader = "port"
// Name of header that specifies a request ID used to associate the error
// and data streams for a single forwarded connection
PortForwardRequestIDHeader = "requestID"
)
// Similarly to above, these are constants to support HTTP PATCH utilized by
// both the client and server that didn't make sense for a whole package to be
// dedicated to.
type PatchType string
const (
JSONPatchType PatchType = "application/json-patch+json"
MergePatchType PatchType = "application/merge-patch+json"
StrategicMergePatchType PatchType = "application/strategic-merge-patch+json"
)
// Type and constants for component health validation.
type ComponentConditionType string
// These are the valid conditions for the component.
const (
ComponentHealthy ComponentConditionType = "Healthy"
)
type ComponentCondition struct {
Type ComponentConditionType `json:"type"`
Status ConditionStatus `json:"status"`
Message string `json:"message,omitempty"`
Error string `json:"error,omitempty"`
}
// +genclient=true
// +nonNamespaced=true
// ComponentStatus (and ComponentStatusList) holds the cluster validation info.
type ComponentStatus struct {
unversioned.TypeMeta `json:",inline"`
ObjectMeta `json:"metadata,omitempty"`
Conditions []ComponentCondition `json:"conditions,omitempty"`
}
type ComponentStatusList struct {
unversioned.TypeMeta `json:",inline"`
unversioned.ListMeta `json:"metadata,omitempty"`
Items []ComponentStatus `json:"items"`
}
// SecurityContext holds security configuration that will be applied to a container.
// Some fields are present in both SecurityContext and PodSecurityContext. When both
// are set, the values in SecurityContext take precedence.
type SecurityContext struct {
// The capabilities to add/drop when running containers.
// Defaults to the default set of capabilities granted by the container runtime.
Capabilities *Capabilities `json:"capabilities,omitempty"`
// Run container in privileged mode.
// Processes in privileged containers are essentially equivalent to root on the host.
// Defaults to false.
Privileged *bool `json:"privileged,omitempty"`
// The SELinux context to be applied to the container.
// If unspecified, the container runtime will allocate a random SELinux context for each
// container. May also be set in PodSecurityContext. If set in both SecurityContext and
// PodSecurityContext, the value specified in SecurityContext takes precedence.
SELinuxOptions *SELinuxOptions `json:"seLinuxOptions,omitempty"`
// The UID to run the entrypoint of the container process.
// Defaults to user specified in image metadata if unspecified.
// May also be set in PodSecurityContext. If set in both SecurityContext and
// PodSecurityContext, the value specified in SecurityContext takes precedence.
RunAsUser *int64 `json:"runAsUser,omitempty"`
// Indicates that the container must run as a non-root user.
// If true, the Kubelet will validate the image at runtime to ensure that it
// does not run as UID 0 (root) and fail to start the container if it does.
// If unset or false, no such validation will be performed.
// May also be set in PodSecurityContext. If set in both SecurityContext and
// PodSecurityContext, the value specified in SecurityContext takes precedence.
RunAsNonRoot *bool `json:"runAsNonRoot,omitempty"`
// The read-only root filesystem allows you to restrict the locations that an application can write
// files to, ensuring the persistent data can only be written to mounts.
ReadOnlyRootFilesystem *bool `json:"readOnlyRootFilesystem,omitempty"`
}
// SELinuxOptions are the labels to be applied to the container.
type SELinuxOptions struct {
// SELinux user label
User string `json:"user,omitempty"`
// SELinux role label
Role string `json:"role,omitempty"`
// SELinux type label
Type string `json:"type,omitempty"`
// SELinux level label.
Level string `json:"level,omitempty"`
}
// RangeAllocation is an opaque API object (not exposed to end users) that can be persisted to record
// the global allocation state of the cluster. The schema of Range and Data generic, in that Range
// should be a string representation of the inputs to a range (for instance, for IP allocation it
// might be a CIDR) and Data is an opaque blob understood by an allocator which is typically a
// binary range. Consumers should use annotations to record additional information (schema version,
// data encoding hints). A range allocation should *ALWAYS* be recreatable at any time by observation
// of the cluster, thus the object is less strongly typed than most.
type RangeAllocation struct {
unversioned.TypeMeta `json:",inline"`
ObjectMeta `json:"metadata,omitempty"`
// A string representing a unique label for a range of resources, such as a CIDR "10.0.0.0/8" or
// port range "10000-30000". Range is not strongly schema'd here. The Range is expected to define
// a start and end unless there is an implicit end.
Range string `json:"range"`
// A byte array representing the serialized state of a range allocation. Additional clarifiers on
// the type or format of data should be represented with annotations. For IP allocations, this is
// represented as a bit array starting at the base IP of the CIDR in Range, with each bit representing
// a single allocated address (the fifth bit on CIDR 10.0.0.0/8 is 10.0.0.4).
Data []byte `json:"data"`
}
const (
// "default-scheduler" is the name of default scheduler.
DefaultSchedulerName = "default-scheduler"
// RequiredDuringScheduling affinity is not symmetric, but there is an implicit PreferredDuringScheduling affinity rule
// corresponding to every RequiredDuringScheduling affinity rule.
// When the --hard-pod-affinity-weight scheduler flag is not specified,
// DefaultHardPodAffinityWeight defines the weight of the implicit PreferredDuringScheduling affinity rule.
DefaultHardPodAffinitySymmetricWeight int = 1
// When the --failure-domains scheduler flag is not specified,
// DefaultFailureDomains defines the set of label keys used when TopologyKey is empty in PreferredDuringScheduling anti-affinity.
DefaultFailureDomains string = unversioned.LabelHostname + "," + unversioned.LabelZoneFailureDomain + "," + unversioned.LabelZoneRegion
)
| {'content_hash': '8a292b63e5924f8d6d5a5cfd294d4958', 'timestamp': '', 'source': 'github', 'line_count': 3099, 'max_line_length': 203, 'avg_line_length': 45.81219748305905, 'alnum_prop': 0.7632138731580875, 'repo_name': 'kshafiee/kubernetes', 'id': 'a8148da5250b343afe95045b8e3c9436edf94d2d', 'size': '142541', 'binary': False, 'copies': '9', 'ref': 'refs/heads/master', 'path': 'staging/src/k8s.io/client-go/pkg/api/types.go', 'mode': '33188', 'license': 'apache-2.0', 'language': [{'name': 'C', 'bytes': '978'}, {'name': 'Go', 'bytes': '44562415'}, {'name': 'HTML', 'bytes': '2530253'}, {'name': 'Makefile', 'bytes': '71418'}, {'name': 'Nginx', 'bytes': '1013'}, {'name': 'Protocol Buffer', 'bytes': '571151'}, {'name': 'Python', 'bytes': '913738'}, {'name': 'SaltStack', 'bytes': '54088'}, {'name': 'Shell', 'bytes': '1537135'}]} |
package io.bootique.job.runnable;
import io.bootique.job.JobFuture;
import io.bootique.job.JobMetadata;
import io.bootique.job.JobOutcome;
/**
* @deprecated since 3.0 in favor of {@link io.bootique.job.JobResult}
*/
@Deprecated
public class JobResult extends io.bootique.job.JobResult {
public static JobResult success(JobMetadata metadata) {
return new JobResult(metadata, JobOutcome.SUCCESS, null, null, null);
}
public static JobResult failure(JobMetadata metadata) {
return new JobResult(metadata, JobOutcome.FAILURE, null, null, null);
}
public static JobResult failure(JobMetadata metadata, String message) {
return new JobResult(metadata, JobOutcome.FAILURE, null, message, null);
}
public static JobResult failure(JobMetadata metadata, Throwable th) {
return new JobResult(metadata, JobOutcome.FAILURE, th, null, null);
}
public static JobResult unknown(JobMetadata metadata) {
return new JobResult(metadata, JobOutcome.UNKNOWN, null, null, null);
}
public static io.bootique.job.JobResult unknown(JobMetadata metadata, Throwable th) {
return new JobResult(metadata, JobOutcome.UNKNOWN, th, null, null);
}
public JobResult(JobMetadata metadata, JobOutcome outcome, Throwable throwable, String message) {
this(metadata, outcome, throwable, message, null);
}
protected JobResult(JobMetadata metadata, JobOutcome outcome, Throwable throwable, String message, JobFuture yieldedTo) {
super(metadata, outcome, throwable, message, null);
}
}
| {'content_hash': 'e47301fc74a640650c1abecf4333eade', 'timestamp': '', 'source': 'github', 'line_count': 45, 'max_line_length': 125, 'avg_line_length': 35.2, 'alnum_prop': 0.7253787878787878, 'repo_name': 'bootique/bootique-job', 'id': 'd2f9bfd1252825ed1d0cf1762a3c3ab477a7b544', 'size': '2382', 'binary': False, 'copies': '1', 'ref': 'refs/heads/master', 'path': 'bootique-job/src/main/java/io/bootique/job/runnable/JobResult.java', 'mode': '33188', 'license': 'apache-2.0', 'language': [{'name': 'Java', 'bytes': '356598'}]} |
using net::HttpRequestHeaders;
using net::ScopedURLFetcherFactory;
using net::TestURLFetcher;
using net::URLFetcher;
using net::URLFetcherDelegate;
using net::URLFetcherFactory;
using net::URLRequestContextGetter;
using net::URLRequestStatus;
using testing::_;
using testing::Return;
using testing::StrictMock;
namespace {
const char kAccessToken[] = "access_token";
static std::string CreateBody() {
return "some body";
}
static GURL CreateApiUrl() {
return GURL("https://www.googleapis.com/someapi");
}
// Replaces the global URLFetcher factory so the test can return a custom
// URLFetcher to complete requests.
class MockUrlFetcherFactory : public ScopedURLFetcherFactory,
public URLFetcherFactory {
public:
MockUrlFetcherFactory()
: ScopedURLFetcherFactory(this) {
}
virtual ~MockUrlFetcherFactory() {}
MOCK_METHOD4(CreateURLFetcherMock,
URLFetcher*(int id,
const GURL& url,
URLFetcher::RequestType request_type,
URLFetcherDelegate* d));
scoped_ptr<URLFetcher> CreateURLFetcher(int id,
const GURL& url,
URLFetcher::RequestType request_type,
URLFetcherDelegate* d) override {
return scoped_ptr<URLFetcher>(
CreateURLFetcherMock(id, url, request_type, d));
}
};
class MockApiCallFlow : public OAuth2ApiCallFlow {
public:
MockApiCallFlow() {}
~MockApiCallFlow() {}
MOCK_METHOD0(CreateApiCallUrl, GURL ());
MOCK_METHOD0(CreateApiCallBody, std::string ());
MOCK_METHOD1(ProcessApiCallSuccess,
void (const URLFetcher* source));
MOCK_METHOD1(ProcessApiCallFailure,
void (const URLFetcher* source));
MOCK_METHOD1(ProcessNewAccessToken,
void (const std::string& access_token));
MOCK_METHOD1(ProcessMintAccessTokenFailure,
void (const GoogleServiceAuthError& error));
};
} // namespace
class OAuth2ApiCallFlowTest : public testing::Test {
protected:
OAuth2ApiCallFlowTest()
: request_context_getter_(new net::TestURLRequestContextGetter(
message_loop_.message_loop_proxy())) {}
TestURLFetcher* CreateURLFetcher(
const GURL& url, bool fetch_succeeds,
int response_code, const std::string& body) {
TestURLFetcher* url_fetcher = new TestURLFetcher(0, url, &flow_);
URLRequestStatus::Status status =
fetch_succeeds ? URLRequestStatus::SUCCESS : URLRequestStatus::FAILED;
url_fetcher->set_status(URLRequestStatus(status, 0));
if (response_code != 0)
url_fetcher->set_response_code(response_code);
if (!body.empty())
url_fetcher->SetResponseString(body);
return url_fetcher;
}
TestURLFetcher* SetupApiCall(bool succeeds, net::HttpStatusCode status) {
std::string body(CreateBody());
GURL url(CreateApiUrl());
EXPECT_CALL(flow_, CreateApiCallBody()).WillOnce(Return(body));
EXPECT_CALL(flow_, CreateApiCallUrl()).WillOnce(Return(url));
TestURLFetcher* url_fetcher =
CreateURLFetcher(url, succeeds, status, std::string());
EXPECT_CALL(factory_, CreateURLFetcherMock(_, url, _, _))
.WillOnce(Return(url_fetcher));
return url_fetcher;
}
base::MessageLoop message_loop_;
scoped_refptr<net::TestURLRequestContextGetter> request_context_getter_;
StrictMock<MockApiCallFlow> flow_;
MockUrlFetcherFactory factory_;
};
TEST_F(OAuth2ApiCallFlowTest, ApiCallSucceedsHttpOk) {
TestURLFetcher* url_fetcher = SetupApiCall(true, net::HTTP_OK);
EXPECT_CALL(flow_, ProcessApiCallSuccess(url_fetcher));
flow_.Start(request_context_getter_.get(), kAccessToken);
flow_.OnURLFetchComplete(url_fetcher);
}
TEST_F(OAuth2ApiCallFlowTest, ApiCallSucceedsHttpNoContent) {
TestURLFetcher* url_fetcher = SetupApiCall(true, net::HTTP_NO_CONTENT);
EXPECT_CALL(flow_, ProcessApiCallSuccess(url_fetcher));
flow_.Start(request_context_getter_.get(), kAccessToken);
flow_.OnURLFetchComplete(url_fetcher);
}
TEST_F(OAuth2ApiCallFlowTest, ApiCallFailure) {
TestURLFetcher* url_fetcher = SetupApiCall(true, net::HTTP_UNAUTHORIZED);
EXPECT_CALL(flow_, ProcessApiCallFailure(url_fetcher));
flow_.Start(request_context_getter_.get(), kAccessToken);
flow_.OnURLFetchComplete(url_fetcher);
}
TEST_F(OAuth2ApiCallFlowTest, ExpectedHTTPHeaders) {
std::string body = CreateBody();
GURL url(CreateApiUrl());
TestURLFetcher* url_fetcher = SetupApiCall(true, net::HTTP_OK);
flow_.Start(request_context_getter_.get(), kAccessToken);
HttpRequestHeaders headers;
url_fetcher->GetExtraRequestHeaders(&headers);
std::string auth_header;
EXPECT_TRUE(headers.GetHeader("Authorization", &auth_header));
EXPECT_EQ("Bearer access_token", auth_header);
EXPECT_EQ(url, url_fetcher->GetOriginalURL());
EXPECT_EQ(body, url_fetcher->upload_data());
}
| {'content_hash': '5953085c216755bf1cdef25e6751cfdd', 'timestamp': '', 'source': 'github', 'line_count': 144, 'max_line_length': 79, 'avg_line_length': 34.09722222222222, 'alnum_prop': 0.6995926680244399, 'repo_name': 'PeterWangIntel/chromium-crosswalk', 'id': '1222ae351dbfe5c25797b7c584bc052890bd1ace', 'size': '6065', 'binary': False, 'copies': '3', 'ref': 'refs/heads/master', 'path': 'google_apis/gaia/oauth2_api_call_flow_unittest.cc', 'mode': '33188', 'license': 'bsd-3-clause', 'language': [{'name': 'AppleScript', 'bytes': '6973'}, {'name': 'Arduino', 'bytes': '464'}, {'name': 'Assembly', 'bytes': '34367'}, {'name': 'Batchfile', 'bytes': '8451'}, {'name': 'C', 'bytes': '9385814'}, {'name': 'C++', 'bytes': '234925784'}, {'name': 'CSS', 'bytes': '951745'}, {'name': 'DM', 'bytes': '60'}, {'name': 'Emacs Lisp', 'bytes': '988'}, {'name': 'Groff', 'bytes': '2494'}, {'name': 'HTML', 'bytes': '29070071'}, {'name': 'Java', 'bytes': '10107231'}, {'name': 'JavaScript', 'bytes': '20170506'}, {'name': 'Makefile', 'bytes': '68234'}, {'name': 'Objective-C', 'bytes': '1845625'}, {'name': 'Objective-C++', 'bytes': '9478782'}, {'name': 'PHP', 'bytes': '97817'}, {'name': 'PLpgSQL', 'bytes': '178732'}, {'name': 'Perl', 'bytes': '63937'}, {'name': 'Protocol Buffer', 'bytes': '465313'}, {'name': 'Python', 'bytes': '8153532'}, {'name': 'Shell', 'bytes': '473684'}, {'name': 'Standard ML', 'bytes': '5034'}, {'name': 'XSLT', 'bytes': '418'}, {'name': 'nesC', 'bytes': '18347'}]} |
/*
NOTE: This test is adapted from the 1.x series of unit tests. The tests
are the same except for places where we intend to break the API we instead
validate that we warn the developer appropriately.
CHANGES FROM 1.6:
* Create ObservableObject which includes Ember.Observable
*/
// ========================================================================
// Ember.Observable Tests
// ========================================================================
import {get} from 'ember-metal/property_get';
import EmberObject from 'ember-runtime/system/object';
import Observable from 'ember-runtime/mixins/observable';
var ObservableObject = EmberObject.extend(Observable);
// ..........................................................
// GET()
//
QUnit.module("object.observesForKey()");
QUnit.test("should get observers", function() {
var o1 = ObservableObject.create({ foo: 100 });
var o2 = ObservableObject.create({ func() {} });
var o3 = ObservableObject.create({ func() {} });
var observers = null;
equal(get(o1.observersForKey('foo'), 'length'), 0, "o1.observersForKey should return empty array");
o1.addObserver('foo', o2, o2.func);
o1.addObserver('foo', o3, o3.func);
observers = o1.observersForKey('foo');
equal(get(observers, 'length'), 2, "o2.observersForKey should return an array with length 2");
equal(observers[0][0], o2, "first item in observers array should be o2");
equal(observers[1][0], o3, "second item in observers array should be o3");
});
| {'content_hash': '2c5c19953e96e844223fc1fc81125f81', 'timestamp': '', 'source': 'github', 'line_count': 43, 'max_line_length': 101, 'avg_line_length': 35.04651162790697, 'alnum_prop': 0.6124751161247511, 'repo_name': 'abulrim/ember.js', 'id': 'f5d13a48fb5bd963eb14897c3de80cb740852d70', 'size': '1507', 'binary': False, 'copies': '12', 'ref': 'refs/heads/master', 'path': 'packages/ember-runtime/tests/legacy_1x/mixins/observable/observersForKey_test.js', 'mode': '33188', 'license': 'mit', 'language': [{'name': 'HTML', 'bytes': '5442'}, {'name': 'Handlebars', 'bytes': '365'}, {'name': 'JavaScript', 'bytes': '3082979'}, {'name': 'Ruby', 'bytes': '6190'}, {'name': 'Shell', 'bytes': '2173'}]} |
Powered Thingies's non-farming machines CraftTweaker support.
### Mod Info
Curseforge: <https://minecraft.curseforge.com/projects/powered-thingies>
Github: <https://github.com/faceofcat/Tesla-Powered-Thingies>
Website: [https://www.modcrafters.net](https://www.modcrafters.net/?mod=thingies)
### CT integration methods
All machines integrated with CT support these methods:
```zenscript
XYZ.clear() // will clear the entire recipe registry
XYZ.logKeys() // will output all keys in that registry to CT's log
XYZ.removeRecipe(key: String)) // will remove the recipe with that key from registry
XYZ.addRecipe(...) // adds a new recipe
```
To retrieve the `Tweaker` class for each machine you have to use the static `mods.poweredthingies.Tweaker` class. | {'content_hash': '5410aa9b244636eca3c7f1f1bc992f4e', 'timestamp': '', 'source': 'github', 'line_count': 22, 'max_line_length': 113, 'avg_line_length': 34.40909090909091, 'alnum_prop': 0.7635402906208718, 'repo_name': 'jaredlll08/CraftTweaker-Documentation', 'id': '6d5ef7d09b05a3dc31e9a0ef3abe361596539147', 'size': '777', 'binary': False, 'copies': '10', 'ref': 'refs/heads/master', 'path': 'translations/fr/docs/Mods/PoweredThingies/_PoweredThingies.md', 'mode': '33188', 'license': 'mit', 'language': [{'name': 'CSS', 'bytes': '195475'}, {'name': 'HTML', 'bytes': '11110'}, {'name': 'JavaScript', 'bytes': '155278'}]} |
<?xml version="1.0" encoding="UTF-8"?>
<definitions xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL"
xmlns:camunda="http://camunda.org/schema/1.0/bpmn"
targetNamespace="Examples">
<process id="process" isExecutable="true">
<startEvent id="theStart">
<extensionElements>
<camunda:executionListener event="start" class="org.camunda.bpm.engine.test.standalone.entity.ExecutionOrderListener" />
</extensionElements>
</startEvent>
<sequenceFlow sourceRef="theStart" targetRef="theService" />
<serviceTask id="theService" camunda:expression="${true}">
<extensionElements>
<camunda:executionListener event="start" class="org.camunda.bpm.engine.test.standalone.entity.ExecutionOrderListener" />
</extensionElements>
</serviceTask>
<sequenceFlow sourceRef="theService" targetRef="fork" />
<parallelGateway id="fork">
<extensionElements>
<camunda:executionListener event="start" class="org.camunda.bpm.engine.test.standalone.entity.ExecutionOrderListener" />
</extensionElements>
</parallelGateway>
<sequenceFlow sourceRef="fork" targetRef="theService1" />
<serviceTask id="theService1" camunda:expression="${true}">
<extensionElements>
<camunda:executionListener event="start" class="org.camunda.bpm.engine.test.standalone.entity.ExecutionOrderListener" />
</extensionElements>
</serviceTask>
<sequenceFlow sourceRef="theService1" targetRef="theEnd1" />
<endEvent id="theEnd1">
<extensionElements>
<camunda:executionListener event="start" class="org.camunda.bpm.engine.test.standalone.entity.ExecutionOrderListener" />
</extensionElements>
</endEvent>
<sequenceFlow sourceRef="fork" targetRef="theService2" />
<serviceTask id="theService2" camunda:expression="${true}">
<extensionElements>
<camunda:executionListener event="start" class="org.camunda.bpm.engine.test.standalone.entity.ExecutionOrderListener" />
</extensionElements>
</serviceTask>
<sequenceFlow sourceRef="theService2" targetRef="theService3" />
<serviceTask id="theService3" camunda:expression="${true}">
<extensionElements>
<camunda:executionListener event="start" class="org.camunda.bpm.engine.test.standalone.entity.ExecutionOrderListener" />
</extensionElements>
</serviceTask>
<sequenceFlow sourceRef="theService3" targetRef="theEnd2" />
<endEvent id="theEnd2">
<extensionElements>
<camunda:executionListener event="start" class="org.camunda.bpm.engine.test.standalone.entity.ExecutionOrderListener" />
</extensionElements>
</endEvent>
</process>
</definitions> | {'content_hash': '51363bb9dab22f8a25bfe7d90308caa2', 'timestamp': '', 'source': 'github', 'line_count': 64, 'max_line_length': 128, 'avg_line_length': 42.484375, 'alnum_prop': 0.7083486575947039, 'repo_name': 'camunda/camunda-bpm-platform', 'id': 'a8eadb634579512453325106f3df8862a9528e53', 'size': '2719', 'binary': False, 'copies': '12', 'ref': 'refs/heads/master', 'path': 'engine/src/test/resources/org/camunda/bpm/engine/test/standalone/entity/ExecutionSequenceCounterTest.testForkDifferentSequenceLengthWithoutWaitStates.bpmn20.xml', 'mode': '33188', 'license': 'apache-2.0', 'language': [{'name': 'Batchfile', 'bytes': '8608'}, {'name': 'CSS', 'bytes': '5486'}, {'name': 'Fluent', 'bytes': '3111'}, {'name': 'FreeMarker', 'bytes': '1443842'}, {'name': 'Groovy', 'bytes': '1904'}, {'name': 'HTML', 'bytes': '961289'}, {'name': 'Handlebars', 'bytes': '759'}, {'name': 'Java', 'bytes': '44079665'}, {'name': 'JavaScript', 'bytes': '3064086'}, {'name': 'Less', 'bytes': '154956'}, {'name': 'Python', 'bytes': '192'}, {'name': 'Ruby', 'bytes': '60'}, {'name': 'SQLPL', 'bytes': '44180'}, {'name': 'Shell', 'bytes': '11634'}]} |
<?php
/**
* Class for connecting to SQL databases and performing common operations.
*
* @category Zend
* @package Zend_Db
* @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Db
{
/**
* Use the PROFILER constant in the config of a Zend_Db_Adapter.
*/
const PROFILER = 'profiler';
/**
* Use the CASE_FOLDING constant in the config of a Zend_Db_Adapter.
*/
const CASE_FOLDING = 'caseFolding';
/**
* Use the AUTO_QUOTE_IDENTIFIERS constant in the config of a Zend_Db_Adapter.
*/
const AUTO_QUOTE_IDENTIFIERS = 'autoQuoteIdentifiers';
/**
* Use the ALLOW_SERIALIZATION constant in the config of a Zend_Db_Adapter.
*/
const ALLOW_SERIALIZATION = 'allowSerialization';
/**
* Use the AUTO_RECONNECT_ON_UNSERIALIZE constant in the config of a Zend_Db_Adapter.
*/
const AUTO_RECONNECT_ON_UNSERIALIZE = 'autoReconnectOnUnserialize';
/**
* Use the INT_TYPE, BIGINT_TYPE, and FLOAT_TYPE with the quote() method.
*/
const INT_TYPE = 0;
const BIGINT_TYPE = 1;
const FLOAT_TYPE = 2;
/**
* PDO constant values discovered by this script result:
*
* $list = array(
* 'PARAM_BOOL', 'PARAM_NULL', 'PARAM_INT', 'PARAM_STR', 'PARAM_LOB',
* 'PARAM_STMT', 'PARAM_INPUT_OUTPUT', 'FETCH_LAZY', 'FETCH_ASSOC',
* 'FETCH_NUM', 'FETCH_BOTH', 'FETCH_OBJ', 'FETCH_BOUND',
* 'FETCH_COLUMN', 'FETCH_CLASS', 'FETCH_INTO', 'FETCH_FUNC',
* 'FETCH_GROUP', 'FETCH_UNIQUE', 'FETCH_CLASSTYPE', 'FETCH_SERIALIZE',
* 'FETCH_NAMED', 'ATTR_AUTOCOMMIT', 'ATTR_PREFETCH', 'ATTR_TIMEOUT',
* 'ATTR_ERRMODE', 'ATTR_SERVER_VERSION', 'ATTR_CLIENT_VERSION',
* 'ATTR_SERVER_INFO', 'ATTR_CONNECTION_STATUS', 'ATTR_CASE',
* 'ATTR_CURSOR_NAME', 'ATTR_CURSOR', 'ATTR_ORACLE_NULLS',
* 'ATTR_PERSISTENT', 'ATTR_STATEMENT_CLASS', 'ATTR_FETCH_TABLE_NAMES',
* 'ATTR_FETCH_CATALOG_NAMES', 'ATTR_DRIVER_NAME',
* 'ATTR_STRINGIFY_FETCHES', 'ATTR_MAX_COLUMN_LEN', 'ERRMODE_SILENT',
* 'ERRMODE_WARNING', 'ERRMODE_EXCEPTION', 'CASE_NATURAL',
* 'CASE_LOWER', 'CASE_UPPER', 'NULL_NATURAL', 'NULL_EMPTY_STRING',
* 'NULL_TO_STRING', 'ERR_NONE', 'FETCH_ORI_NEXT',
* 'FETCH_ORI_PRIOR', 'FETCH_ORI_FIRST', 'FETCH_ORI_LAST',
* 'FETCH_ORI_ABS', 'FETCH_ORI_REL', 'CURSOR_FWDONLY', 'CURSOR_SCROLL',
* 'ERR_CANT_MAP', 'ERR_SYNTAX', 'ERR_CONSTRAINT', 'ERR_NOT_FOUND',
* 'ERR_ALREADY_EXISTS', 'ERR_NOT_IMPLEMENTED', 'ERR_MISMATCH',
* 'ERR_TRUNCATED', 'ERR_DISCONNECTED', 'ERR_NO_PERM',
* );
*
* $const = array();
* foreach ($list as $name) {
* $const[$name] = constant("PDO::$name");
* }
* var_export($const);
*/
const ATTR_AUTOCOMMIT = 0;
const ATTR_CASE = 8;
const ATTR_CLIENT_VERSION = 5;
const ATTR_CONNECTION_STATUS = 7;
const ATTR_CURSOR = 10;
const ATTR_CURSOR_NAME = 9;
const ATTR_DRIVER_NAME = 16;
const ATTR_ERRMODE = 3;
const ATTR_FETCH_CATALOG_NAMES = 15;
const ATTR_FETCH_TABLE_NAMES = 14;
const ATTR_MAX_COLUMN_LEN = 18;
const ATTR_ORACLE_NULLS = 11;
const ATTR_PERSISTENT = 12;
const ATTR_PREFETCH = 1;
const ATTR_SERVER_INFO = 6;
const ATTR_SERVER_VERSION = 4;
const ATTR_STATEMENT_CLASS = 13;
const ATTR_STRINGIFY_FETCHES = 17;
const ATTR_TIMEOUT = 2;
const CASE_LOWER = 2;
const CASE_NATURAL = 0;
const CASE_UPPER = 1;
const CURSOR_FWDONLY = 0;
const CURSOR_SCROLL = 1;
const ERR_ALREADY_EXISTS = NULL;
const ERR_CANT_MAP = NULL;
const ERR_CONSTRAINT = NULL;
const ERR_DISCONNECTED = NULL;
const ERR_MISMATCH = NULL;
const ERR_NO_PERM = NULL;
const ERR_NONE = '00000';
const ERR_NOT_FOUND = NULL;
const ERR_NOT_IMPLEMENTED = NULL;
const ERR_SYNTAX = NULL;
const ERR_TRUNCATED = NULL;
const ERRMODE_EXCEPTION = 2;
const ERRMODE_SILENT = 0;
const ERRMODE_WARNING = 1;
const FETCH_ASSOC = 2;
const FETCH_BOTH = 4;
const FETCH_BOUND = 6;
const FETCH_CLASS = 8;
const FETCH_CLASSTYPE = 262144;
const FETCH_COLUMN = 7;
const FETCH_FUNC = 10;
const FETCH_GROUP = 65536;
const FETCH_INTO = 9;
const FETCH_LAZY = 1;
const FETCH_NAMED = 11;
const FETCH_NUM = 3;
const FETCH_OBJ = 5;
const FETCH_ORI_ABS = 4;
const FETCH_ORI_FIRST = 2;
const FETCH_ORI_LAST = 3;
const FETCH_ORI_NEXT = 0;
const FETCH_ORI_PRIOR = 1;
const FETCH_ORI_REL = 5;
const FETCH_SERIALIZE = 524288;
const FETCH_UNIQUE = 196608;
const NULL_EMPTY_STRING = 1;
const NULL_NATURAL = 0;
const NULL_TO_STRING = NULL;
const PARAM_BOOL = 5;
const PARAM_INPUT_OUTPUT = -2147483648;
const PARAM_INT = 1;
const PARAM_LOB = 3;
const PARAM_NULL = 0;
const PARAM_STMT = 4;
const PARAM_STR = 2;
/**
* Factory for Zend_Db_Adapter_Abstract classes.
*
* First argument may be a string containing the base of the adapter class
* name, e.g. 'Mysqli' corresponds to class Zend_Db_Adapter_Mysqli. This
* is case-insensitive.
*
* First argument may alternatively be an object of type Zend_Config.
* The adapter class base name is read from the 'adapter' property.
* The adapter config parameters are read from the 'params' property.
*
* Second argument is optional and may be an associative array of key-value
* pairs. This is used as the argument to the adapter constructor.
*
* If the first argument is of type Zend_Config, it is assumed to contain
* all parameters, and the second argument is ignored.
*
* @param mixed $adapter String name of base adapter class, or Zend_Config object.
* @param mixed $config OPTIONAL; an array or Zend_Config object with adapter parameters.
* @return Zend_Db_Adapter_Abstract
* @throws Zend_Db_Exception
*/
public static function factory($adapter, $config = array())
{
if ($config instanceof Zend_Config) {
$config = $config->toArray();
}
/*
* Convert Zend_Config argument to plain string
* adapter name and separate config object.
*/
if ($adapter instanceof Zend_Config) {
if (isset($adapter->params)) {
$config = $adapter->params->toArray();
}
if (isset($adapter->adapter)) {
$adapter = (string) $adapter->adapter;
} else {
$adapter = null;
}
}
/*
* Verify that adapter parameters are in an array.
*/
if (!is_array($config)) {
/**
* @see Zend_Db_Exception
*/
require_once 'Zend/Db/Exception.php';
throw new Zend_Db_Exception('Adapter parameters must be in an array or a Zend_Config object');
}
/*
* Verify that an adapter name has been specified.
*/
if (!is_string($adapter) || empty($adapter)) {
/**
* @see Zend_Db_Exception
*/
require_once 'Zend/Db/Exception.php';
throw new Zend_Db_Exception('Adapter name must be specified in a string');
}
/*
* Form full adapter class name
*/
$adapterNamespace = 'Zend_Db_Adapter';
if (isset($config['adapterNamespace'])) {
if ($config['adapterNamespace'] != '') {
$adapterNamespace = $config['adapterNamespace'];
}
unset($config['adapterNamespace']);
}
$adapterName = strtolower($adapterNamespace . '_' . $adapter);
$adapterName = str_replace(' ', '_', ucwords(str_replace('_', ' ', $adapterName)));
/*
* Load the adapter class. This throws an exception
* if the specified class cannot be loaded.
*/
if (!class_exists($adapterName)) {
require_once 'Zend/Loader.php';
Zend_Loader::loadClass($adapterName);
}
/*
* Create an instance of the adapter class.
* Pass the config to the adapter class constructor.
*/
$dbAdapter = new $adapterName($config);
/*
* Verify that the object created is a descendent of the abstract adapter type.
*/
if (! $dbAdapter instanceof Zend_Db_Adapter_Abstract) {
/**
* @see Zend_Db_Exception
*/
require_once 'Zend/Db/Exception.php';
throw new Zend_Db_Exception("Adapter class '$adapterName' does not extend Zend_Db_Adapter_Abstract");
}
return $dbAdapter;
}
}
| {'content_hash': '598d27701d91506cb94e153a86217093', 'timestamp': '', 'source': 'github', 'line_count': 258, 'max_line_length': 113, 'avg_line_length': 34.42248062015504, 'alnum_prop': 0.5872086476748114, 'repo_name': 'jodier/tmpdddf', 'id': '9bff0282d982e3e6f3d90299a8543739a6d99f9e', 'size': '9627', 'binary': False, 'copies': '3', 'ref': 'refs/heads/master', 'path': 'web/private/tine20/library/Syncroton/lib/Zend/Db.php', 'mode': '33188', 'license': 'mit', 'language': [{'name': 'PHP', 'bytes': '44010'}, {'name': 'Perl', 'bytes': '794'}, {'name': 'Shell', 'bytes': '286'}]} |
<h3>Form xEditable
<small>Edit in place for AngularJS</small>
</h3>
<div ng-controller="FormxEditableController as form" class="row">
<div class="col-md-6">
<div class="panel panel-default">
<div class="panel-heading">HTML5 Inputs</div>
<div class="panel-body">
<div class="form-horizontal">
<div class="form-group m0">
<label class="col-sm-4 control-label">Email:</label>
<div class="col-sm-8">
<p class="form-control-static"><a href="#" editable-email="form.user.email">{{ form.user.email || 'empty' }}</a>
</p>
</div>
</div>
<div class="form-group m0">
<label class="col-sm-4 control-label">Tel:</label>
<div class="col-sm-8">
<p class="form-control-static"><a href="#" editable-tel="form.user.tel" e-pattern="\d{3}-\d{2}-\d{2}" e-title="xxx-xx-xx">{{ form.user.tel || 'empty' }}</a>
</p>
</div>
</div>
<div class="form-group m0">
<label class="col-sm-4 control-label">Number:</label>
<div class="col-sm-8">
<p class="form-control-static"><a href="#" editable-number="form.user.number" e-min="18">{{ form.user.number || 'empty' }}</a>
</p>
</div>
</div>
<div class="form-group m0">
<label class="col-sm-4 control-label">Range:</label>
<div class="col-sm-8">
<p class="form-control-static"><a href="#" editable-range="form.user.range" e-step="5">{{ form.user.range || 'empty' }}</a>
</p>
</div>
</div>
<div class="form-group m0">
<label class="col-sm-4 control-label">Url:</label>
<div class="col-sm-8">
<p class="form-control-static"><a href="#" editable-url="form.user.url">{{ form.user.url || 'empty' }}</a>
</p>
</div>
</div>
<div class="form-group m0">
<label class="col-sm-4 control-label">Search:</label>
<div class="col-sm-8">
<p class="form-control-static"><a href="#" editable-search="form.user.search">{{ form.user.search || 'empty' }}</a>
</p>
</div>
</div>
<div class="form-group m0">
<label class="col-sm-4 control-label">Color:</label>
<div class="col-sm-8">
<p class="form-control-static"><a href="#" editable-color="form.user.color">{{ form.user.color || 'empty' }}</a>
</p>
</div>
</div>
<div class="form-group m0">
<label class="col-sm-4 control-label">Date:</label>
<div class="col-sm-8">
<p class="form-control-static"><a href="#" editable-date="form.user.date">{{ form.user.date || 'empty' }}</a>
</p>
</div>
</div>
<div class="form-group m0">
<label class="col-sm-4 control-label">Time:</label>
<div class="col-sm-8">
<p class="form-control-static"><a href="#" editable-time="form.user.time">{{ form.user.time || 'empty' }}</a>
</p>
</div>
</div>
<div class="form-group m0">
<label class="col-sm-4 control-label">Datetime:</label>
<div class="col-sm-8">
<p class="form-control-static"><a href="#" editable-datetime="form.user.datetime">{{ form.user.datetime || 'empty' }}</a>
</p>
</div>
</div>
<div class="form-group m0">
<label class="col-sm-4 control-label">Month:</label>
<div class="col-sm-8">
<p class="form-control-static"><a href="#" editable-month="form.user.month">{{ form.user.month || 'empty' }}</a>
</p>
</div>
</div>
<div class="form-group m0">
<label class="col-sm-4 control-label">Week:</label>
<div class="col-sm-8">
<p class="form-control-static"><a href="#" editable-week="form.user.week">{{ form.user.week || 'empty' }}</a>
</p>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="col-md-6">
<div class="panel panel-default">
<div class="panel-heading">Controls</div>
<div class="panel-body">
<div class="form-horizontal">
<div class="form-group m0">
<label class="col-sm-4 control-label">Text</label>
<div class="col-sm-8">
<p class="form-control-static"><a href="#" editable-text="form.user.name">{{ form.user.name || 'empty' }}</a>
</p>
</div>
</div>
<div class="form-group m0">
<label class="col-sm-4 control-label">Local Select</label>
<div class="col-sm-8">
<p class="form-control-static"><a href="#" editable-select="form.user2.status" e-ng-options="s.value as s.text for s in form.statuses">{{ form.showStatus() }}</a>
</p>
</div>
</div>
<div class="form-group m0">
<label class="col-sm-4 control-label">Remote Select</label>
<div class="col-sm-8">
<p class="form-control-static"><a href="#" editable-select="form.user3.text" ng-init="form.loadGroups()" e-ng-options="g.text as g.text for g in form.groups">{{ form.user3.text || 'not set' }} </a>
</p>
</div>
</div>
<div class="form-group m0">
<label class="col-sm-4 control-label">Textarea</label>
<div class="col-sm-8">
<p class="form-control-static"><a href="#" editable-textarea="form.user.desc" e-rows="3" e-cols="30">{{ form.user.desc || 'no description' }} </a>
</p>
</div>
</div>
<div class="form-group m0">
<label class="col-sm-4 control-label">Typeahead</label>
<div class="col-sm-8">
<p class="form-control-static"><a href="#" editable-text="form.user4.state" e-typeahead="state for state in form.states | filter:$viewValue | limitTo:8">{{ form.user4.state || 'empty' }} </a>
</p>
</div>
</div>
</div>
</div>
</div>
</div>
</div> | {'content_hash': '8fadc36e20108d0be4fe6ad166659e60', 'timestamp': '', 'source': 'github', 'line_count': 142, 'max_line_length': 229, 'avg_line_length': 51.2887323943662, 'alnum_prop': 0.44830427021831665, 'repo_name': 'blueror815/Node-Mean', 'id': '17632847088f8416715ca7c055434af0ee455173', 'size': '7283', 'binary': False, 'copies': '3', 'ref': 'refs/heads/master', 'path': 'public/modules/forms/views/form-xeditable.client.view.html', 'mode': '33261', 'license': 'mit', 'language': [{'name': 'CSS', 'bytes': '2447169'}, {'name': 'CoffeeScript', 'bytes': '178346'}, {'name': 'Groff', 'bytes': '2072'}, {'name': 'HTML', 'bytes': '2443047'}, {'name': 'JavaScript', 'bytes': '11289413'}, {'name': 'Makefile', 'bytes': '3957'}, {'name': 'PHP', 'bytes': '536928'}, {'name': 'Perl', 'bytes': '1637'}, {'name': 'PowerShell', 'bytes': '468'}, {'name': 'Shell', 'bytes': '2239'}, {'name': 'Smarty', 'bytes': '27653'}, {'name': 'TypeScript', 'bytes': '501844'}]} |
/*************************************************************************/
/* editor_initialize_ssl.h */
/*************************************************************************/
/* This file is part of: */
/* GODOT ENGINE */
/* http://www.godotengine.org */
/*************************************************************************/
/* Copyright (c) 2007-2016 Juan Linietsky, Ariel Manzur. */
/* */
/* Permission is hereby granted, free of charge, to any person obtaining */
/* a copy of this software and associated documentation files (the */
/* "Software"), to deal in the Software without restriction, including */
/* without limitation the rights to use, copy, modify, merge, publish, */
/* distribute, sublicense, and/or sell copies of the Software, and to */
/* permit persons to whom the Software is furnished to do so, subject to */
/* the following conditions: */
/* */
/* The above copyright notice and this permission notice shall be */
/* included in all copies or substantial portions of the Software. */
/* */
/* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, */
/* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF */
/* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.*/
/* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY */
/* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, */
/* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE */
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/*************************************************************************/
#ifndef EDITOR_INITIALIZE_SSL_H
#define EDITOR_INITIALIZE_SSL_H
void editor_initialize_certificates();
#endif // EDITOR_INITIALIZE_SSL_H
| {'content_hash': 'a142228bf243afa8c76c5c2dfc680e94', 'timestamp': '', 'source': 'github', 'line_count': 34, 'max_line_length': 75, 'avg_line_length': 66.67647058823529, 'alnum_prop': 0.46096162329069257, 'repo_name': 'JoshuaGrams/godot', 'id': '082d546832bcf0a6ed51f4889b07ae8f6c3a0f53', 'size': '2267', 'binary': False, 'copies': '15', 'ref': 'refs/heads/master', 'path': 'tools/editor/editor_initialize_ssl.h', 'mode': '33188', 'license': 'mit', 'language': [{'name': 'Assembly', 'bytes': '11884'}, {'name': 'C', 'bytes': '284362'}, {'name': 'C++', 'bytes': '12326697'}, {'name': 'Java', 'bytes': '452122'}, {'name': 'Objective-C', 'bytes': '28403'}, {'name': 'Objective-C++', 'bytes': '145572'}, {'name': 'PHP', 'bytes': '1095905'}, {'name': 'Python', 'bytes': '133572'}, {'name': 'Shell', 'bytes': '266'}]} |
/*==============================================================================
Program: Gutenberg
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0.txt
==============================================================================*/
#ifndef __QFontIconParser_h
#define __QFontIconParser_h
// Qt includes
#include <QObject>
#include <QMap>
#include <QFont>
class QFontIconParserPrivate;
/// TO DO
class QFontIconParser : public QObject
{
Q_OBJECT
public:
QFontIconParser(QObject *parent=0, QString fileName = "");
virtual ~QFontIconParser();
QString fileName() const;
bool load();
bool load(QString filename, QMap<QString, QString>& map);
QChar icon(QString name) const;
public slots:
bool setFileName(const QString& name);
protected:
QScopedPointer<QFontIconParserPrivate> d_ptr;
private:
Q_DECLARE_PRIVATE(QFontIconParser);
Q_DISABLE_COPY(QFontIconParser);
};
#endif
| {'content_hash': '58ac2c3c7a2e62211ed230eaaa24f485', 'timestamp': '', 'source': 'github', 'line_count': 50, 'max_line_length': 80, 'avg_line_length': 21.6, 'alnum_prop': 0.6240740740740741, 'repo_name': 'vovythevov/Gutenberg', 'id': '41f1a2879f9840749fe7f294bf43321a8670ea7c', 'size': '1080', 'binary': False, 'copies': '1', 'ref': 'refs/heads/master', 'path': 'Application/QFontIconParser.h', 'mode': '33188', 'license': 'apache-2.0', 'language': [{'name': 'C++', 'bytes': '10331'}, {'name': 'CSS', 'bytes': '418'}]} |
namespace password_manager {
CredentialManagerPendingPreventSilentAccessTask::
CredentialManagerPendingPreventSilentAccessTask(
CredentialManagerPendingPreventSilentAccessTaskDelegate* delegate)
: delegate_(delegate), pending_requests_(0) {}
CredentialManagerPendingPreventSilentAccessTask::
~CredentialManagerPendingPreventSilentAccessTask() = default;
void CredentialManagerPendingPreventSilentAccessTask::AddOrigin(
const PasswordStore::FormDigest& form_digest) {
delegate_->GetPasswordStore()->GetLogins(form_digest, this);
pending_requests_++;
}
void CredentialManagerPendingPreventSilentAccessTask::OnGetPasswordStoreResults(
std::vector<std::unique_ptr<autofill::PasswordForm>> results) {
PasswordStore* store = delegate_->GetPasswordStore();
for (const auto& form : results) {
if (!form->skip_zero_click) {
form->skip_zero_click = true;
store->UpdateLogin(*form);
}
}
pending_requests_--;
if (!pending_requests_)
delegate_->DoneRequiringUserMediation();
}
} // namespace password_manager
| {'content_hash': '46b5978365a6bdb86af5fa7131a7a9ef', 'timestamp': '', 'source': 'github', 'line_count': 31, 'max_line_length': 80, 'avg_line_length': 34.45161290322581, 'alnum_prop': 0.7612359550561798, 'repo_name': 'endlessm/chromium-browser', 'id': 'b0e1ab146081a40fcda3b10b7abf49e52158500f', 'size': '1403', 'binary': False, 'copies': '2', 'ref': 'refs/heads/master', 'path': 'components/password_manager/core/browser/credential_manager_pending_prevent_silent_access_task.cc', 'mode': '33188', 'license': 'bsd-3-clause', 'language': []} |
using UnityEngine;
namespace Vacs
{
[ExecuteInEditMode]
[RequireComponent(typeof(MeshRenderer))]
[AddComponentMenu("Vacs/Renderer")]
public sealed class VacsRenderer : MonoBehaviour
{
#region Exposed attributes
[SerializeField] VacsData _data;
[SerializeField, Range(0, 1)] float _dissolve;
[SerializeField, Range(0, 1)] float _inflate;
[SerializeField, Range(0, 1)] float _voxelize;
[SerializeField, Range(0, 1)] float _jitter;
[SerializeField, Range(0, 1)] float _digitize;
public float dissolve { set { _dissolve = value; } }
public float inflate { set { _inflate = value; } }
public float voxelize { set { _voxelize = value; } }
public float jitter { set { _jitter = value; } }
public float digitize { set { _digitize = value; } }
#endregion
#region Hidden attributes
[SerializeField, HideInInspector] ComputeShader _computeDissolve;
[SerializeField, HideInInspector] ComputeShader _computeInflate;
[SerializeField, HideInInspector] ComputeShader _computeVoxelize;
[SerializeField, HideInInspector] ComputeShader _computeJitter;
[SerializeField, HideInInspector] ComputeShader _computeDigitize;
[SerializeField, HideInInspector] ComputeShader _computeReconstruct;
#endregion
#region Private objects
ComputeBuffer _positionSource;
ComputeBuffer _positionBuffer1;
ComputeBuffer _positionBuffer2;
ComputeBuffer _normalSource;
ComputeBuffer _normalBuffer;
ComputeBuffer _tangentSource;
ComputeBuffer _tangentBuffer;
MaterialPropertyBlock _drawProps;
float _randomSeed;
#endregion
#region Internal properties and methods
float globalTime {
get { return Application.isPlaying ? Time.time : 10; }
}
void SetupBuffers()
{
if (_positionSource == null) _positionSource = _data.CreatePositionBuffer();
if (_positionBuffer1 == null) _positionBuffer1 = _data.CreatePositionBuffer();
if (_positionBuffer2 == null) _positionBuffer2 = _data.CreatePositionBuffer();
if (_normalSource == null) _normalSource = _data.CreateNormalBuffer();
if (_normalBuffer == null) _normalBuffer = _data.CreateNormalBuffer();
if (_tangentSource == null) _tangentSource = _data.CreateTangentBuffer();
if (_tangentBuffer == null) _tangentBuffer = _data.CreateTangentBuffer();
}
void ReleaseBuffers()
{
if (_positionSource != null) _positionSource .Release();
if (_positionBuffer1 != null) _positionBuffer1.Release();
if (_positionBuffer2 != null) _positionBuffer2.Release();
_positionSource = _positionBuffer1 = _positionBuffer2 = null;
if (_normalSource != null) _normalSource.Release();
if (_normalBuffer != null) _normalBuffer.Release();
_normalSource = _normalBuffer = null;
if (_tangentSource != null) _tangentSource.Release();
if (_tangentBuffer != null) _tangentBuffer.Release();
_tangentSource = _tangentBuffer = null;
}
void ApplyCompute(
ComputeShader compute, int trianglePerThread, float amplitude,
ComputeBuffer inputBuffer, ComputeBuffer outputBuffer)
{
var kernel = compute.FindKernel("Main");
compute.SetBuffer(kernel, "PositionSource", _positionSource);
compute.SetBuffer(kernel, "NormalSource", _normalSource);
compute.SetBuffer(kernel, "TangentSource", _tangentSource);
compute.SetBuffer(kernel, "PositionInput", inputBuffer);
compute.SetBuffer(kernel, "PositionOutput", outputBuffer);
compute.SetInt("TriangleCount", _data.triangleCount);
compute.SetFloat("Amplitude", amplitude);
compute.SetFloat("RandomSeed", _randomSeed);
compute.SetFloat("Time", globalTime);
var c = compute.GetKernelThreadGroupSizeX(kernel) * trianglePerThread;
compute.Dispatch(kernel, (_data.triangleCount + c - 1) / c, 1, 1);
}
void UpdateVertices()
{
ApplyCompute(_computeDissolve, 1, _dissolve, _positionSource, _positionBuffer1);
ApplyCompute(_computeInflate, 1, _inflate, _positionBuffer1, _positionBuffer2);
ApplyCompute(_computeVoxelize, 1, _voxelize, _positionBuffer2, _positionBuffer1);
ApplyCompute(_computeJitter, 1, _jitter, _positionBuffer1, _positionBuffer2);
ApplyCompute(_computeDigitize, 2, _digitize, _positionBuffer2, _positionBuffer1);
var compute = _computeReconstruct;
var kernel = compute.FindKernel("Main");
compute.SetBuffer(kernel, "PositionSource", _positionSource);
compute.SetBuffer(kernel, "PositionModified", _positionBuffer1);
compute.SetBuffer(kernel, "NormalInput", _normalSource);
compute.SetBuffer(kernel, "NormalOutput", _normalBuffer);
compute.SetBuffer(kernel, "TangentInput", _tangentSource);
compute.SetBuffer(kernel, "TangentOutput", _tangentBuffer);
compute.SetInt("TriangleCount", _data.triangleCount);
var c = compute.GetKernelThreadGroupSizeX(kernel);
compute.Dispatch(kernel, (_data.triangleCount + c - 1) / c, 1, 1);
}
#endregion
#region External component handling
void UpdateMeshFilter()
{
var meshFilter = GetComponent<MeshFilter>();
if (meshFilter == null)
{
meshFilter = gameObject.AddComponent<MeshFilter>();
meshFilter.hideFlags = HideFlags.NotEditable;
}
if (meshFilter.sharedMesh != _data.templateMesh)
meshFilter.sharedMesh = _data.templateMesh;
}
void UpdateMeshRenderer()
{
var meshRenderer = GetComponent<MeshRenderer>();
if (_drawProps == null)
_drawProps = new MaterialPropertyBlock();
_drawProps.SetBuffer("_PositionBuffer", _positionBuffer1);
_drawProps.SetBuffer("_NormalBuffer", _normalBuffer);
_drawProps.SetBuffer("_TangentBuffer", _tangentBuffer);
_drawProps.SetFloat("_TriangleCount", _data.triangleCount);
meshRenderer.SetPropertyBlock(_drawProps);
}
#endregion
#region MonoBehaviour methods
void OnDisable()
{
// In edit mode, we release the compute buffers OnDisable not
// OnDestroy, because Unity spits out warnings before OnDestroy.
// (OnDestroy is too late to prevent warning.)
if (!Application.isPlaying) ReleaseBuffers();
}
void OnDestroy()
{
ReleaseBuffers();
}
void Start()
{
_randomSeed = Random.value;
}
void LateUpdate()
{
if (_data != null)
{
SetupBuffers();
UpdateVertices();
UpdateMeshFilter();
UpdateMeshRenderer();
}
}
#endregion
}
}
| {'content_hash': 'e94bb61a5690ecc7b356aa1e0e0c0d07', 'timestamp': '', 'source': 'github', 'line_count': 206, 'max_line_length': 93, 'avg_line_length': 35.849514563106794, 'alnum_prop': 0.6066350710900474, 'repo_name': 'keijiro/Trinity', 'id': '3b61656ceddc1425f93ea327a85a4c1d1e193dd9', 'size': '7385', 'binary': False, 'copies': '1', 'ref': 'refs/heads/master', 'path': 'Assets/Vacs/VacsRenderer.cs', 'mode': '33188', 'license': 'mit', 'language': [{'name': 'C#', 'bytes': '601052'}, {'name': 'GLSL', 'bytes': '3031'}, {'name': 'HLSL', 'bytes': '48789'}, {'name': 'ShaderLab', 'bytes': '30286'}]} |
class Forem::RedirectController < ApplicationController
def forum
return redirect_to forum_path(params[:forum_id])
end
def topic
return redirect_to topic_path(params[:topic_id])
end
def posts
post = Forem::Post.find(params[:post_id])
return redirect_to root_path, :notice => "Post does not exist" if post.topic == nil
x = 0
if !forem_user || !forem_user.admin
posts = post.topic.posts.approved
else
posts = post.topic.posts
end
posts.by_created_at.each_with_index do |p, i|
x = i
break if p.id == post.id
end
return redirect_to topic_url(post.topic, :page => (x / Forem.per_page) + 1) + "#" + post.id.to_s
end
def subscriptions
return redirect_to my_subscriptions_path
end
end
| {'content_hash': '96a9c7df561ef7f716b999f58a1db970', 'timestamp': '', 'source': 'github', 'line_count': 31, 'max_line_length': 104, 'avg_line_length': 27.677419354838708, 'alnum_prop': 0.5804195804195804, 'repo_name': 'kultus/forem-2', 'id': '1ed4fe437aecd0a551d815af937e9a4834d30f57', 'size': '858', 'binary': False, 'copies': '1', 'ref': 'refs/heads/master', 'path': 'app/controllers/forem/redirect_controller.rb', 'mode': '33188', 'license': 'mit', 'language': []} |
Template.postsList.helpers({
postsWithRank: function() {
return this.posts.map(function(post, index, cursor) {
post._rank = index;
return post;
});
},
ownPost: function() {
return this.userId == Meteor.userId();
},
lastestPostURL: function(){
latestPost = Posts.find({userId: Meteor.userId()}, {sort: {submitted: -1}, limit: 1}).fetch();
return latestPost[0].url;
},
indexColor: function(){
//The .fetch() is necessary to receive the array
latestPost = Posts.find({userId: Meteor.userId()}, {sort: {submitted: -1}, limit: 1}).fetch();
postCount = Posts.find({userId: Meteor.userId()}).count();
console.log(latestPost[0].submitted.getTime());
lastPostTime = latestPost[0].submitted.getTime();
test = new Date();
nowTime = test.getTime();
difference = nowTime - lastPostTime;
//Take the modulus which will allow us to compare times over 10 mins
// 10 mins chosen for the demo-ing time
difference = difference % 600000;
console.log(difference);
switch(true)
{
case (difference < 6000):
return "#7DBD7D";
break;
case (difference < 12000):
return "#FFDE59";
break;
case (difference < 18000):
return "#FFAD5C";
break;
default:
return "#D14719";
break;
}
},
numPosts: function(){
// return Posts.find().count();
return Posts.find({userId: Meteor.userId()}).count();
}
}); | {'content_hash': '32b849244631ee75f9dbd73e36d7e0d4', 'timestamp': '', 'source': 'github', 'line_count': 68, 'max_line_length': 98, 'avg_line_length': 21.823529411764707, 'alnum_prop': 0.6004043126684636, 'repo_name': 'alexkchan/hana3', 'id': '275f36caa812e87be8b99f529182b0724721e0ab', 'size': '1484', 'binary': False, 'copies': '1', 'ref': 'refs/heads/master', 'path': 'client/templates/posts/posts_list.js', 'mode': '33261', 'license': 'mit', 'language': [{'name': 'CSS', 'bytes': '267708'}, {'name': 'HTML', 'bytes': '49398'}, {'name': 'JavaScript', 'bytes': '18450'}, {'name': 'PHP', 'bytes': '31679'}]} |
/**
* Binding validation support.
*/
package org.springframework.boot.context.properties.bind.validation;
| {'content_hash': 'f76a898f6d86a31bd3de9f973a517c56', 'timestamp': '', 'source': 'github', 'line_count': 6, 'max_line_length': 68, 'avg_line_length': 18.333333333333332, 'alnum_prop': 0.7636363636363637, 'repo_name': 'mbenson/spring-boot', 'id': '8c7690396f64701eddcff9ec5ffb9fbeb920fbbb', 'size': '731', 'binary': False, 'copies': '23', 'ref': 'refs/heads/master', 'path': 'spring-boot-project/spring-boot/src/main/java/org/springframework/boot/context/properties/bind/validation/package-info.java', 'mode': '33188', 'license': 'apache-2.0', 'language': [{'name': 'Batchfile', 'bytes': '1948'}, {'name': 'CSS', 'bytes': '5769'}, {'name': 'Dockerfile', 'bytes': '5379'}, {'name': 'FreeMarker', 'bytes': '3599'}, {'name': 'Groovy', 'bytes': '51602'}, {'name': 'HTML', 'bytes': '69601'}, {'name': 'Java', 'bytes': '14060047'}, {'name': 'JavaScript', 'bytes': '37789'}, {'name': 'Kotlin', 'bytes': '25029'}, {'name': 'Ruby', 'bytes': '1308'}, {'name': 'Shell', 'bytes': '31639'}, {'name': 'Smarty', 'bytes': '2885'}, {'name': 'XSLT', 'bytes': '36394'}]} |
set -e
set -v
# http://superuser.com/questions/196848/how-do-i-create-an-administrator-user-on-ubuntu
# http://unix.stackexchange.com/questions/1416/redirecting-stdout-to-a-file-you-dont-have-write-permission-on
# This line assumes the user you created in the preseed directory is vagrant
echo "%admin ALL=NOPASSWD: ALL" | sudo tee -a /etc/sudoers.d/init-users
sudo groupadd admin
sudo usermod -a -G admin vagrant
# Installing vagrant keys
wget --no-check-certificate 'https://raw.github.com/mitchellh/vagrant/master/keys/vagrant.pub'
sudo mkdir -p /home/vagrant/.ssh
sudo chown -R vagrant:vagrant /home/vagrant/.ssh
cat ./vagrant.pub >> /home/vagrant/.ssh/authorized_keys
sudo chown -R vagrant:vagrant /home/vagrant/.ssh/authorized_keys
echo "All Done!"
#http://www.fail2ban.org/wiki/index.php/MANUAL_0_8#Jails
sudo sed -i "s/bantime=600/bantime=-1/g" /etc/fail2ban/jail.conf
sudo systemctl enable fail2ban
sudo service fail2ban restart
# User add customizations here -- keep the above code
sudo apt-get update && sudo apt-get -y dist-upgrade
sudo apt-get -y install texlive texlive-latex-recommended texlive-latex-extra texlive-fonts-recommended texlive-fonts-extra
wget http://packages.sil.org/sil.gpg
sudo apt-key add sil.gpg
sudo apt-add-repository -y "deb http://packages.sil.org/ubuntu/ $(lsb_release -sc) main"
sudo apt-get update
sudo apt-get -y install fonts-sil-charis
wget https://github.com/jgm/pandoc/releases/download/1.19.2.1/pandoc-1.19.2.1-1-amd64.deb
sudo dpkg -i pandoc-1.19.2.1-1-amd64.deb
wget http://kindlegen.s3.amazonaws.com/kindlegen_linux_2.6_i386_v2_9.tar.gz
| {'content_hash': '964850fe4380c15a6ba12f86b976ca25', 'timestamp': '', 'source': 'github', 'line_count': 38, 'max_line_length': 123, 'avg_line_length': 42.0, 'alnum_prop': 0.768170426065163, 'repo_name': 'jhajek/packer-vagrant-build-scripts', 'id': '956d6a6c6fc727a1db0fa2cb6a82880c3ff22097', 'size': '1609', 'binary': False, 'copies': '1', 'ref': 'refs/heads/master', 'path': 'packer/scripts/post_install_pandoc.sh', 'mode': '33188', 'license': 'bsd-3-clause', 'language': [{'name': 'Clojure', 'bytes': '4040'}, {'name': 'HCL', 'bytes': '77034'}, {'name': 'PowerShell', 'bytes': '9646'}, {'name': 'Shell', 'bytes': '326682'}]} |
package messagepacket;
import java.io.Serializable;
/**
* A message that is sent if brush properties changes.
*/
public class BrushMessage implements Serializable {
private static final long serialVersionUID = -5673805286633443205L;
private byte player_id;
private byte r;
private byte g;
private byte b;
private byte alpha;
private byte brush_size;
private boolean[] effects;
public BrushMessage(byte player_id, byte r, byte g,
byte b, byte alpha, byte brush_size,
boolean[] effects ){
this.player_id = player_id;
this.r = r;
this.g = g;
this.b = b;
this.alpha = alpha;
this.brush_size = brush_size;
this.effects = effects;
}
/**
* Get the player id
*/
public byte getPlayerId(){
return player_id;
}
/**
* Get the correct r value
*/
public short getColorR() {
return (short)(r+128);
}
/**
* Get the correct g value
*/
public short getColorG() {
return (short)(g+128);
}
/**
* Get the correct b value
*/
public short getColorB() {
return (short)(b+128);
}
/**
* Get the correct alpha value
*/
public short getAlphaValue(){
return(short)(alpha+128);
}
/**
* Get the brush size
*/
public byte getBrushSize(){
return brush_size;
}
/**
* List of boolean values of which effect is used
*/
public boolean[] getEffects() {
return effects;
}
}
| {'content_hash': '68266e940a383574801dc1d303f154f3', 'timestamp': '', 'source': 'github', 'line_count': 80, 'max_line_length': 68, 'avg_line_length': 20.1875, 'alnum_prop': 0.5430340557275541, 'repo_name': 'BoEmma/netpaint', 'id': '3d8cee28587f3c89d996ad457e0b0ba55e121931', 'size': '1615', 'binary': False, 'copies': '1', 'ref': 'refs/heads/master', 'path': 'src/messagepacket/BrushMessage.java', 'mode': '33261', 'license': 'apache-2.0', 'language': [{'name': 'Java', 'bytes': '168151'}]} |
@interface EMAppDelegate : UIResponder <UIApplicationDelegate>
@property (strong, nonatomic) UIWindow *window;
@end
| {'content_hash': 'b6f59ae1ac18b1fc4fb5498f104f9a63', 'timestamp': '', 'source': 'github', 'line_count': 5, 'max_line_length': 62, 'avg_line_length': 23.6, 'alnum_prop': 0.7966101694915254, 'repo_name': 'elliottminns/EMDatePicker', 'id': '95dd8a6fd7a581a6ad12b85f054c25170d91c3c2', 'size': '285', 'binary': False, 'copies': '2', 'ref': 'refs/heads/master', 'path': 'Demo/Demo/EMAppDelegate.h', 'mode': '33188', 'license': 'mit', 'language': [{'name': 'Objective-C', 'bytes': '43871'}, {'name': 'Ruby', 'bytes': '528'}]} |
package ca.pfv.spmf.algorithms.sequentialpatterns.spam;
public class PatternVMSP implements Comparable<PatternVMSP>{
PrefixVMSP prefix;
public int support;
public PatternVMSP(PrefixVMSP prefix, int suppport) {
this.prefix = prefix;
this.support = suppport;
// if(prefix != null){
// System.out.println("pat prefix" + prefix.toString() + " " + support);
// }
}
public int compareTo(PatternVMSP o) {
if(o == this){
return 0;
}
int compare = o.prefix.sumOfEvenItems + o.prefix.sumOfOddItems
- this.prefix.sumOfEvenItems - this.prefix.sumOfOddItems;
if(compare !=0){
return compare;
}
return this.hashCode() - o.hashCode();
}
public PrefixVMSP getPrefix() {
return prefix;
}
public int getSupport() {
return support;
}
}
| {'content_hash': 'b7ba9454b20d661eb43abe5e63039d2c', 'timestamp': '', 'source': 'github', 'line_count': 37, 'max_line_length': 74, 'avg_line_length': 20.81081081081081, 'alnum_prop': 0.6896103896103896, 'repo_name': 'dragonzhou/humor', 'id': '332bb77e307f600b36d737798295ef85858ed489', 'size': '1802', 'binary': False, 'copies': '1', 'ref': 'refs/heads/master', 'path': 'src/ca/pfv/spmf/algorithms/sequentialpatterns/spam/PatternVMSP.java', 'mode': '33188', 'license': 'apache-2.0', 'language': []} |
package com.rhomobile.rhodes;
public class RhoRubyArrayObjects extends IRhoRubyObject {
public RhoRubyArrayObjects(IRhoRubyObject[] arr) {
super(RhoRubyTypes.Array, arr);
}
public RhoRubyArrayObjects(int c) {
super(RhoRubyTypes.Array, new IRhoRubyObject[c]);
}
public int getCount() {
return ((IRhoRubyObject[]) getValue()).length;
}
public IRhoRubyObject getItem(int index)
{
return ((IRhoRubyObject[])getValue())[index];
}
public RhoRubyObject getRhoObjectItem(int index)
{
return ((RhoRubyObject[])getValue())[index];
}
public void setItem(int index, IRhoRubyObject obj)
{
((IRhoRubyObject[])getValue())[index] = obj;
}
}
| {'content_hash': 'de0c5358a962d409fdb4fa6dc2971bab', 'timestamp': '', 'source': 'github', 'line_count': 33, 'max_line_length': 57, 'avg_line_length': 22.515151515151516, 'alnum_prop': 0.6433378196500673, 'repo_name': 'rhomobile/rhodes', 'id': '58643ca1895b518eb8d123b186bae8f2400d1c2c', 'size': '743', 'binary': False, 'copies': '2', 'ref': 'refs/heads/master', 'path': 'platform/android/Rhodes/src/com/rhomobile/rhodes/RhoRubyArrayObjects.java', 'mode': '33188', 'license': 'mit', 'language': [{'name': 'Assembly', 'bytes': '6291'}, {'name': 'Batchfile', 'bytes': '115330'}, {'name': 'C', 'bytes': '61309502'}, {'name': 'C#', 'bytes': '702078'}, {'name': 'C++', 'bytes': '16790255'}, {'name': 'COBOL', 'bytes': '187'}, {'name': 'CSS', 'bytes': '641054'}, {'name': 'GAP', 'bytes': '76344'}, {'name': 'HTML', 'bytes': '1827679'}, {'name': 'Java', 'bytes': '6590034'}, {'name': 'JavaScript', 'bytes': '1828506'}, {'name': 'MATLAB', 'bytes': '123'}, {'name': 'Makefile', 'bytes': '360667'}, {'name': 'Mustache', 'bytes': '20693'}, {'name': 'NASL', 'bytes': '285'}, {'name': 'NSIS', 'bytes': '75538'}, {'name': 'Objective-C', 'bytes': '5257884'}, {'name': 'Objective-C++', 'bytes': '479778'}, {'name': 'Perl', 'bytes': '1710'}, {'name': 'QML', 'bytes': '29477'}, {'name': 'QMake', 'bytes': '117073'}, {'name': 'Rebol', 'bytes': '130'}, {'name': 'Roff', 'bytes': '328967'}, {'name': 'Ruby', 'bytes': '17391657'}, {'name': 'SWIG', 'bytes': '65013'}, {'name': 'Shell', 'bytes': '39045'}, {'name': 'SourcePawn', 'bytes': '4786'}, {'name': 'XSLT', 'bytes': '4315'}]} |
int main(int argc, char * argv[]) {
@autoreleasepool {
return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));
}
}
| {'content_hash': 'e1715e343ca7e11eca7670faa4c9f0df', 'timestamp': '', 'source': 'github', 'line_count': 5, 'max_line_length': 90, 'avg_line_length': 31.6, 'alnum_prop': 0.6582278481012658, 'repo_name': 'iOS--wsl--victor/FFChineseSort', 'id': '39b7706091cadd4e428cf85f908136ce8149df07', 'size': '339', 'binary': False, 'copies': '6', 'ref': 'refs/heads/master', 'path': 'FFChineseSort Demo/FFChineseSort Demo/main.m', 'mode': '33188', 'license': 'mit', 'language': [{'name': 'C++', 'bytes': '517'}, {'name': 'Objective-C', 'bytes': '10358'}, {'name': 'Ruby', 'bytes': '496'}]} |
CREATE TABLE country (id VARCHAR(2) NOT NULL, name VARCHAR(64) NOT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci ENGINE = InnoDB;
INSERT INTO `country` (`id`, `name`) VALUES ('AD', 'Andorra');
INSERT INTO `country` (`id`, `name`) VALUES ('AE', 'Sameinuðu arabísku furstadæmin');
INSERT INTO `country` (`id`, `name`) VALUES ('AF', 'Afganistan');
INSERT INTO `country` (`id`, `name`) VALUES ('AG', 'Antígva og Barbúda');
INSERT INTO `country` (`id`, `name`) VALUES ('AI', 'Angvilla');
INSERT INTO `country` (`id`, `name`) VALUES ('AL', 'Albanía');
INSERT INTO `country` (`id`, `name`) VALUES ('AM', 'Armenía');
INSERT INTO `country` (`id`, `name`) VALUES ('AN', 'Hollensku Antillur');
INSERT INTO `country` (`id`, `name`) VALUES ('AO', 'Angóla');
INSERT INTO `country` (`id`, `name`) VALUES ('AQ', 'Suðurskautslandið');
INSERT INTO `country` (`id`, `name`) VALUES ('AR', 'Argentína');
INSERT INTO `country` (`id`, `name`) VALUES ('AS', 'Bandaríska Samóa');
INSERT INTO `country` (`id`, `name`) VALUES ('AT', 'Austurríki');
INSERT INTO `country` (`id`, `name`) VALUES ('AU', 'Ástralía');
INSERT INTO `country` (`id`, `name`) VALUES ('AW', 'Arúba');
INSERT INTO `country` (`id`, `name`) VALUES ('AX', 'Álandseyjar');
INSERT INTO `country` (`id`, `name`) VALUES ('AZ', 'Aserbaídsjan');
INSERT INTO `country` (`id`, `name`) VALUES ('BA', 'Bosnía og Hersegóvína');
INSERT INTO `country` (`id`, `name`) VALUES ('BB', 'Barbados');
INSERT INTO `country` (`id`, `name`) VALUES ('BD', 'Bangladess');
INSERT INTO `country` (`id`, `name`) VALUES ('BE', 'Belgía');
INSERT INTO `country` (`id`, `name`) VALUES ('BF', 'Búrkína Fasó');
INSERT INTO `country` (`id`, `name`) VALUES ('BG', 'Búlgaría');
INSERT INTO `country` (`id`, `name`) VALUES ('BH', 'Barein');
INSERT INTO `country` (`id`, `name`) VALUES ('BI', 'Búrúndí');
INSERT INTO `country` (`id`, `name`) VALUES ('BJ', 'Benín');
INSERT INTO `country` (`id`, `name`) VALUES ('BL', 'Saint Barthélemy');
INSERT INTO `country` (`id`, `name`) VALUES ('BM', 'Bermúdaeyjar');
INSERT INTO `country` (`id`, `name`) VALUES ('BN', 'Brúnei');
INSERT INTO `country` (`id`, `name`) VALUES ('BO', 'Bólivía');
INSERT INTO `country` (`id`, `name`) VALUES ('BR', 'Brasilía');
INSERT INTO `country` (`id`, `name`) VALUES ('BS', 'Bahamaeyjar');
INSERT INTO `country` (`id`, `name`) VALUES ('BT', 'Bútan');
INSERT INTO `country` (`id`, `name`) VALUES ('BV', 'Bouveteyja');
INSERT INTO `country` (`id`, `name`) VALUES ('BW', 'Botsvana');
INSERT INTO `country` (`id`, `name`) VALUES ('BY', 'Hvíta-Rússland');
INSERT INTO `country` (`id`, `name`) VALUES ('BZ', 'Belís');
INSERT INTO `country` (`id`, `name`) VALUES ('CA', 'Kanada');
INSERT INTO `country` (`id`, `name`) VALUES ('CC', 'Kókoseyjar');
INSERT INTO `country` (`id`, `name`) VALUES ('CD', 'Austur-Kongó');
INSERT INTO `country` (`id`, `name`) VALUES ('CF', 'Mið-Afríkulýðveldið');
INSERT INTO `country` (`id`, `name`) VALUES ('CG', 'Vestur-Kongó');
INSERT INTO `country` (`id`, `name`) VALUES ('CH', 'Sviss');
INSERT INTO `country` (`id`, `name`) VALUES ('CI', 'Fílabeinsströndin');
INSERT INTO `country` (`id`, `name`) VALUES ('CK', 'Cookseyjar');
INSERT INTO `country` (`id`, `name`) VALUES ('CL', 'Chíle');
INSERT INTO `country` (`id`, `name`) VALUES ('CM', 'Kamerún');
INSERT INTO `country` (`id`, `name`) VALUES ('CN', 'Kína');
INSERT INTO `country` (`id`, `name`) VALUES ('CO', 'Kólumbía');
INSERT INTO `country` (`id`, `name`) VALUES ('CR', 'Kostaríka');
INSERT INTO `country` (`id`, `name`) VALUES ('CS', 'Serbía og Svartfjallaland');
INSERT INTO `country` (`id`, `name`) VALUES ('CU', 'Kúba');
INSERT INTO `country` (`id`, `name`) VALUES ('CV', 'Grænhöfðaeyjar');
INSERT INTO `country` (`id`, `name`) VALUES ('CX', 'Jólaey');
INSERT INTO `country` (`id`, `name`) VALUES ('CY', 'Kýpur');
INSERT INTO `country` (`id`, `name`) VALUES ('CZ', 'Tékkland');
INSERT INTO `country` (`id`, `name`) VALUES ('DE', 'Þýskaland');
INSERT INTO `country` (`id`, `name`) VALUES ('DJ', 'Djíbútí');
INSERT INTO `country` (`id`, `name`) VALUES ('DK', 'Danmörk');
INSERT INTO `country` (`id`, `name`) VALUES ('DM', 'Dóminíka');
INSERT INTO `country` (`id`, `name`) VALUES ('DO', 'Dóminíska lýðveldið');
INSERT INTO `country` (`id`, `name`) VALUES ('DZ', 'Alsír');
INSERT INTO `country` (`id`, `name`) VALUES ('EC', 'Ekvador');
INSERT INTO `country` (`id`, `name`) VALUES ('EE', 'Eistland');
INSERT INTO `country` (`id`, `name`) VALUES ('EG', 'Egyptaland');
INSERT INTO `country` (`id`, `name`) VALUES ('EH', 'Vestur-Sahara');
INSERT INTO `country` (`id`, `name`) VALUES ('ER', 'Erítrea');
INSERT INTO `country` (`id`, `name`) VALUES ('ES', 'Spánn');
INSERT INTO `country` (`id`, `name`) VALUES ('ET', 'Eþíópía');
INSERT INTO `country` (`id`, `name`) VALUES ('FI', 'Finnland');
INSERT INTO `country` (`id`, `name`) VALUES ('FJ', 'Fídjieyjar');
INSERT INTO `country` (`id`, `name`) VALUES ('FK', 'Falklandseyjar');
INSERT INTO `country` (`id`, `name`) VALUES ('FM', 'Mikrónesía');
INSERT INTO `country` (`id`, `name`) VALUES ('FO', 'Færeyjar');
INSERT INTO `country` (`id`, `name`) VALUES ('FR', 'Frakkland');
INSERT INTO `country` (`id`, `name`) VALUES ('GA', 'Gabon');
INSERT INTO `country` (`id`, `name`) VALUES ('GB', 'Bretland');
INSERT INTO `country` (`id`, `name`) VALUES ('GD', 'Grenada');
INSERT INTO `country` (`id`, `name`) VALUES ('GE', 'Georgía');
INSERT INTO `country` (`id`, `name`) VALUES ('GF', 'Franska Gvæjana');
INSERT INTO `country` (`id`, `name`) VALUES ('GG', 'Guernsey');
INSERT INTO `country` (`id`, `name`) VALUES ('GH', 'Gana');
INSERT INTO `country` (`id`, `name`) VALUES ('GI', 'Gíbraltar');
INSERT INTO `country` (`id`, `name`) VALUES ('GL', 'Grænland');
INSERT INTO `country` (`id`, `name`) VALUES ('GM', 'Gambía');
INSERT INTO `country` (`id`, `name`) VALUES ('GN', 'Gínea');
INSERT INTO `country` (`id`, `name`) VALUES ('GP', 'Gvadelúpeyjar');
INSERT INTO `country` (`id`, `name`) VALUES ('GQ', 'Miðbaugs-Gínea');
INSERT INTO `country` (`id`, `name`) VALUES ('GR', 'Grikkland');
INSERT INTO `country` (`id`, `name`) VALUES ('GS', 'Suður-Georgía og Suður-Sandvíkureyjar');
INSERT INTO `country` (`id`, `name`) VALUES ('GT', 'Gvatemala');
INSERT INTO `country` (`id`, `name`) VALUES ('GU', 'Gvam');
INSERT INTO `country` (`id`, `name`) VALUES ('GW', 'Gínea-Bissá');
INSERT INTO `country` (`id`, `name`) VALUES ('GY', 'Gvæjana');
INSERT INTO `country` (`id`, `name`) VALUES ('HK', 'Hong Kong');
INSERT INTO `country` (`id`, `name`) VALUES ('HM', 'Heard og McDonaldseyjar');
INSERT INTO `country` (`id`, `name`) VALUES ('HN', 'Hondúras');
INSERT INTO `country` (`id`, `name`) VALUES ('HR', 'Króatía');
INSERT INTO `country` (`id`, `name`) VALUES ('HT', 'Haítí');
INSERT INTO `country` (`id`, `name`) VALUES ('HU', 'Ungverjaland');
INSERT INTO `country` (`id`, `name`) VALUES ('ID', 'Indónesía');
INSERT INTO `country` (`id`, `name`) VALUES ('IE', 'Írland');
INSERT INTO `country` (`id`, `name`) VALUES ('IL', 'Ísrael');
INSERT INTO `country` (`id`, `name`) VALUES ('IM', 'Mön');
INSERT INTO `country` (`id`, `name`) VALUES ('IN', 'Indland');
INSERT INTO `country` (`id`, `name`) VALUES ('IO', 'Bresku Indlandshafseyjar');
INSERT INTO `country` (`id`, `name`) VALUES ('IQ', 'Írak');
INSERT INTO `country` (`id`, `name`) VALUES ('IR', 'Íran');
INSERT INTO `country` (`id`, `name`) VALUES ('IS', 'Ísland');
INSERT INTO `country` (`id`, `name`) VALUES ('IT', 'Ítalía');
INSERT INTO `country` (`id`, `name`) VALUES ('JE', 'Jersey');
INSERT INTO `country` (`id`, `name`) VALUES ('JM', 'Jamaíka');
INSERT INTO `country` (`id`, `name`) VALUES ('JO', 'Jórdanía');
INSERT INTO `country` (`id`, `name`) VALUES ('JP', 'Japan');
INSERT INTO `country` (`id`, `name`) VALUES ('KE', 'Kenía');
INSERT INTO `country` (`id`, `name`) VALUES ('KG', 'Kirgisistan');
INSERT INTO `country` (`id`, `name`) VALUES ('KH', 'Kambódía');
INSERT INTO `country` (`id`, `name`) VALUES ('KI', 'Kíribatí');
INSERT INTO `country` (`id`, `name`) VALUES ('KM', 'Kómoreyjar');
INSERT INTO `country` (`id`, `name`) VALUES ('KN', 'Sankti Kristófer og Nevis');
INSERT INTO `country` (`id`, `name`) VALUES ('KP', 'Norður-Kórea');
INSERT INTO `country` (`id`, `name`) VALUES ('KR', 'Suður-Kórea');
INSERT INTO `country` (`id`, `name`) VALUES ('KW', 'Kúveit');
INSERT INTO `country` (`id`, `name`) VALUES ('KY', 'Caymaneyjar');
INSERT INTO `country` (`id`, `name`) VALUES ('KZ', 'Kasakstan');
INSERT INTO `country` (`id`, `name`) VALUES ('LA', 'Laos');
INSERT INTO `country` (`id`, `name`) VALUES ('LB', 'Líbanon');
INSERT INTO `country` (`id`, `name`) VALUES ('LC', 'Sankti Lúsía');
INSERT INTO `country` (`id`, `name`) VALUES ('LI', 'Liechtenstein');
INSERT INTO `country` (`id`, `name`) VALUES ('LK', 'Srí Lanka');
INSERT INTO `country` (`id`, `name`) VALUES ('LR', 'Líbería');
INSERT INTO `country` (`id`, `name`) VALUES ('LS', 'Lesótó');
INSERT INTO `country` (`id`, `name`) VALUES ('LT', 'Litháen');
INSERT INTO `country` (`id`, `name`) VALUES ('LU', 'Lúxemborg');
INSERT INTO `country` (`id`, `name`) VALUES ('LV', 'Lettland');
INSERT INTO `country` (`id`, `name`) VALUES ('LY', 'Líbía');
INSERT INTO `country` (`id`, `name`) VALUES ('MA', 'Marokkó');
INSERT INTO `country` (`id`, `name`) VALUES ('MC', 'Mónakó');
INSERT INTO `country` (`id`, `name`) VALUES ('MD', 'Moldóva');
INSERT INTO `country` (`id`, `name`) VALUES ('ME', 'Svartfjallaland');
INSERT INTO `country` (`id`, `name`) VALUES ('MF', 'Saint Martin');
INSERT INTO `country` (`id`, `name`) VALUES ('MG', 'Madagaskar');
INSERT INTO `country` (`id`, `name`) VALUES ('MH', 'Marshalleyjar');
INSERT INTO `country` (`id`, `name`) VALUES ('MK', 'Makedónía');
INSERT INTO `country` (`id`, `name`) VALUES ('ML', 'Malí');
INSERT INTO `country` (`id`, `name`) VALUES ('MM', 'Mjanmar');
INSERT INTO `country` (`id`, `name`) VALUES ('MN', 'Mongólía');
INSERT INTO `country` (`id`, `name`) VALUES ('MO', 'Makaó');
INSERT INTO `country` (`id`, `name`) VALUES ('MP', 'Norður-Maríanaeyjar');
INSERT INTO `country` (`id`, `name`) VALUES ('MQ', 'Martiník');
INSERT INTO `country` (`id`, `name`) VALUES ('MR', 'Máritanía');
INSERT INTO `country` (`id`, `name`) VALUES ('MS', 'Montserrat');
INSERT INTO `country` (`id`, `name`) VALUES ('MT', 'Malta');
INSERT INTO `country` (`id`, `name`) VALUES ('MU', 'Máritíus');
INSERT INTO `country` (`id`, `name`) VALUES ('MV', 'Maldíveyjar');
INSERT INTO `country` (`id`, `name`) VALUES ('MW', 'Malaví');
INSERT INTO `country` (`id`, `name`) VALUES ('MX', 'Mexíkó');
INSERT INTO `country` (`id`, `name`) VALUES ('MY', 'Malasía');
INSERT INTO `country` (`id`, `name`) VALUES ('MZ', 'Mósambík');
INSERT INTO `country` (`id`, `name`) VALUES ('NA', 'Namibía');
INSERT INTO `country` (`id`, `name`) VALUES ('NC', 'Nýja-Kaledónía');
INSERT INTO `country` (`id`, `name`) VALUES ('NE', 'Níger');
INSERT INTO `country` (`id`, `name`) VALUES ('NF', 'Norfolkeyja');
INSERT INTO `country` (`id`, `name`) VALUES ('NG', 'Nígería');
INSERT INTO `country` (`id`, `name`) VALUES ('NI', 'Níkaragva');
INSERT INTO `country` (`id`, `name`) VALUES ('NL', 'Niðurlönd');
INSERT INTO `country` (`id`, `name`) VALUES ('NO', 'Noregur');
INSERT INTO `country` (`id`, `name`) VALUES ('NP', 'Nepal');
INSERT INTO `country` (`id`, `name`) VALUES ('NR', 'Nárú');
INSERT INTO `country` (`id`, `name`) VALUES ('NU', 'Niue');
INSERT INTO `country` (`id`, `name`) VALUES ('NZ', 'Nýja-Sjáland');
INSERT INTO `country` (`id`, `name`) VALUES ('OM', 'Óman');
INSERT INTO `country` (`id`, `name`) VALUES ('PA', 'Panama');
INSERT INTO `country` (`id`, `name`) VALUES ('PE', 'Perú');
INSERT INTO `country` (`id`, `name`) VALUES ('PF', 'Franska Pólýnesía');
INSERT INTO `country` (`id`, `name`) VALUES ('PG', 'Papúa Nýja-Gínea');
INSERT INTO `country` (`id`, `name`) VALUES ('PH', 'Filippseyjar');
INSERT INTO `country` (`id`, `name`) VALUES ('PK', 'Pakistan');
INSERT INTO `country` (`id`, `name`) VALUES ('PL', 'Pólland');
INSERT INTO `country` (`id`, `name`) VALUES ('PM', 'Sankti Pierre og Miquelon');
INSERT INTO `country` (`id`, `name`) VALUES ('PN', 'Pitcairn');
INSERT INTO `country` (`id`, `name`) VALUES ('PR', 'Púertó Ríkó');
INSERT INTO `country` (`id`, `name`) VALUES ('PS', 'Palestína');
INSERT INTO `country` (`id`, `name`) VALUES ('PT', 'Portúgal');
INSERT INTO `country` (`id`, `name`) VALUES ('PW', 'Palá');
INSERT INTO `country` (`id`, `name`) VALUES ('PY', 'Paragvæ');
INSERT INTO `country` (`id`, `name`) VALUES ('QA', 'Katar');
INSERT INTO `country` (`id`, `name`) VALUES ('RE', 'Réunion');
INSERT INTO `country` (`id`, `name`) VALUES ('RO', 'Rúmenía');
INSERT INTO `country` (`id`, `name`) VALUES ('RS', 'Serbía');
INSERT INTO `country` (`id`, `name`) VALUES ('RU', 'Rússland');
INSERT INTO `country` (`id`, `name`) VALUES ('RW', 'Rúanda');
INSERT INTO `country` (`id`, `name`) VALUES ('SA', 'Sádi-Arabía');
INSERT INTO `country` (`id`, `name`) VALUES ('SB', 'Salómonseyjar');
INSERT INTO `country` (`id`, `name`) VALUES ('SC', 'Seychelleseyjar');
INSERT INTO `country` (`id`, `name`) VALUES ('SD', 'Súdan');
INSERT INTO `country` (`id`, `name`) VALUES ('SE', 'Svíþjóð');
INSERT INTO `country` (`id`, `name`) VALUES ('SG', 'Singapúr');
INSERT INTO `country` (`id`, `name`) VALUES ('SH', 'Sankti Helena');
INSERT INTO `country` (`id`, `name`) VALUES ('SI', 'Slóvenía');
INSERT INTO `country` (`id`, `name`) VALUES ('SJ', 'Svalbarði og Jan Mayen');
INSERT INTO `country` (`id`, `name`) VALUES ('SK', 'Slóvakía');
INSERT INTO `country` (`id`, `name`) VALUES ('SL', 'Síerra Leóne');
INSERT INTO `country` (`id`, `name`) VALUES ('SM', 'San Marínó');
INSERT INTO `country` (`id`, `name`) VALUES ('SN', 'Senegal');
INSERT INTO `country` (`id`, `name`) VALUES ('SO', 'Sómalía');
INSERT INTO `country` (`id`, `name`) VALUES ('SR', 'Súrínam');
INSERT INTO `country` (`id`, `name`) VALUES ('ST', 'Saó Tóme og Prinsípe');
INSERT INTO `country` (`id`, `name`) VALUES ('SV', 'El Salvador');
INSERT INTO `country` (`id`, `name`) VALUES ('SY', 'Sýrland');
INSERT INTO `country` (`id`, `name`) VALUES ('SZ', 'Svasíland');
INSERT INTO `country` (`id`, `name`) VALUES ('TC', 'Turks- og Caicoseyjar');
INSERT INTO `country` (`id`, `name`) VALUES ('TD', 'Tsjad');
INSERT INTO `country` (`id`, `name`) VALUES ('TF', 'Frönsku suðlægu landsvæðin');
INSERT INTO `country` (`id`, `name`) VALUES ('TG', 'Tógó');
INSERT INTO `country` (`id`, `name`) VALUES ('TH', 'Taíland');
INSERT INTO `country` (`id`, `name`) VALUES ('TJ', 'Tadsjikistan');
INSERT INTO `country` (`id`, `name`) VALUES ('TK', 'Tókelá');
INSERT INTO `country` (`id`, `name`) VALUES ('TL', 'Austur-Tímor');
INSERT INTO `country` (`id`, `name`) VALUES ('TM', 'Túrkmenistan');
INSERT INTO `country` (`id`, `name`) VALUES ('TN', 'Túnis');
INSERT INTO `country` (`id`, `name`) VALUES ('TO', 'Tonga');
INSERT INTO `country` (`id`, `name`) VALUES ('TR', 'Tyrkland');
INSERT INTO `country` (`id`, `name`) VALUES ('TT', 'Trínidad og Tóbagó');
INSERT INTO `country` (`id`, `name`) VALUES ('TV', 'Túvalú');
INSERT INTO `country` (`id`, `name`) VALUES ('TW', 'Taívan');
INSERT INTO `country` (`id`, `name`) VALUES ('TZ', 'Tansanía');
INSERT INTO `country` (`id`, `name`) VALUES ('UA', 'Úkraína');
INSERT INTO `country` (`id`, `name`) VALUES ('UG', 'Úganda');
INSERT INTO `country` (`id`, `name`) VALUES ('UM', 'Smáeyjar Bandaríkjanna');
INSERT INTO `country` (`id`, `name`) VALUES ('US', 'Bandaríkin');
INSERT INTO `country` (`id`, `name`) VALUES ('UY', 'Úrúgvæ');
INSERT INTO `country` (`id`, `name`) VALUES ('UZ', 'Úsbekistan');
INSERT INTO `country` (`id`, `name`) VALUES ('VA', 'Páfagarður');
INSERT INTO `country` (`id`, `name`) VALUES ('VC', 'Sankti Vinsent og Grenadíneyjar');
INSERT INTO `country` (`id`, `name`) VALUES ('VE', 'Venesúela');
INSERT INTO `country` (`id`, `name`) VALUES ('VG', 'Jómfrúaeyjar (bresku)');
INSERT INTO `country` (`id`, `name`) VALUES ('VI', 'Jómfrúaeyjar (bandarísku)');
INSERT INTO `country` (`id`, `name`) VALUES ('VN', 'Víetnam');
INSERT INTO `country` (`id`, `name`) VALUES ('VU', 'Vanúatú');
INSERT INTO `country` (`id`, `name`) VALUES ('WF', 'Wallis- og Fútúnaeyjar');
INSERT INTO `country` (`id`, `name`) VALUES ('WS', 'Samóa');
INSERT INTO `country` (`id`, `name`) VALUES ('YE', 'Jemen');
INSERT INTO `country` (`id`, `name`) VALUES ('YT', 'Mayotte');
INSERT INTO `country` (`id`, `name`) VALUES ('ZA', 'Suður-Afríka');
INSERT INTO `country` (`id`, `name`) VALUES ('ZM', 'Sambía');
INSERT INTO `country` (`id`, `name`) VALUES ('ZW', 'Simbabve');
INSERT INTO `country` (`id`, `name`) VALUES ('ZZ', 'Óþekkt eða ógilt svæði');
| {'content_hash': '5d116820f1033b44b28741797af58dae', 'timestamp': '', 'source': 'github', 'line_count': 250, 'max_line_length': 157, 'avg_line_length': 65.76, 'alnum_prop': 0.6155717761557178, 'repo_name': 'clausche/libro-exterior', 'id': 'de5f8b79bfe8b252e85d8f21137806c3aeeb6faa', 'size': '16730', 'binary': False, 'copies': '6', 'ref': 'refs/heads/master', 'path': 'vendor/umpirsky/country-list/country/cldr/is/country.mysql.sql', 'mode': '33261', 'license': 'mit', 'language': [{'name': 'CSS', 'bytes': '281770'}, {'name': 'JavaScript', 'bytes': '151468'}, {'name': 'PHP', 'bytes': '465054'}, {'name': 'Shell', 'bytes': '931'}]} |
<?php
$t_set = $this->getVar('t_set');
$vn_set_id = $this->getVar('set_id');
?>
<div id="contentArea">
<h1 class='results'><?php print _t("Slideshow").": ".caNavLink($this->request, $t_set->getLabelForDisplay(), '', '', 'Sets', 'index', array()); ?></h1>
<div id="slideshow_player">
<h1><?php print _t('You must have the Flash Plug-in version 9.0.0 or better installed to play slideshows'); ?></h1>
<p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" /></a></p>
</div>
<script type="text/javascript">
jQuery(document).ready(function() { swfobject.embedSWF(
"/viewers/apps/Slideshow.swf", "slideshow_player", "650", "600", "9.0.0", "swf/expressInstall.swf",
{'data' : '<?php print caNavUrl($this->request, '', 'Sets', 'getSetXML', array('set_id' => $vn_set_id)); ?>?_isFlex=1'}, {'allowscriptaccess': 'always', 'allowfullscreen' : 'true', 'allowNetworking' : 'all'}); }
);
</script>
</div> | {'content_hash': 'b0654824a97b8c783cbc55e63e206e64', 'timestamp': '', 'source': 'github', 'line_count': 20, 'max_line_length': 214, 'avg_line_length': 51.45, 'alnum_prop': 0.6326530612244898, 'repo_name': 'PreserveLafayette/PreserveLafayette', 'id': '8cc7d1603d228762053e0f401ec55c8639f9eba4', 'size': '2239', 'binary': False, 'copies': '4', 'ref': 'refs/heads/master', 'path': 'themes/booklyn/views/Sets/sets_slideshow_html.php', 'mode': '33261', 'license': 'mit', 'language': [{'name': 'PHP', 'bytes': '28850'}]} |
#import <Foundation/Foundation.h>
@class WXBridgeMethod;
@class WXSDKInstance;
@interface WXBridgeManager : NSObject
/**
* return instance at the top of the stack.
**/
@property (nonatomic, weak, readonly) WXSDKInstance *topInstance;
/**
* Create Instance Method
* @param instance : instance id
* @param temp : template data
* @param options : parameters
* @param data : external data
**/
- (void)createInstance:(NSString *)instance
template:(NSString *)temp
options:(NSDictionary *)options
data:(id)data;
/**
* @abstract return currentInstanceId
**/
- (NSArray *)getInstanceIdStack;
/**
* Destroy Instance Method
* @param instance : instance id
**/
- (void)destroyInstance:(NSString *)instance;
/**
* Trigger full GC, for dev and debug only.
**/
- (void)forceGarbageCollection;
/**
* Refresh Instance Method
* @param instance : instance id
* @param data : external data
**/
- (void)refreshInstance:(NSString *)instance data:(id)data;
/**
* Unload
**/
- (void)unload;
/**
* Update Instance State Method
* @param instance : instance id
* @param data : parameters
**/
- (void)updateState:(NSString *)instance data:(id)data;
/**
* Execute JSFramework Script
* @param script : script code
**/
- (void)executeJsFramework:(NSString *)script;
/**
* Register JS service Script
* @param name : service name
* @param serviceScript : script code
* @param options : service options
**/
- (void)registerService:(NSString *)name withService:(NSString *)serviceScript withOptions:(NSDictionary *)options;
/**
* Register JS service Script
* @param name : service name
* @param serviceScriptUrl : script url
* @param options : service options
**/
-(void)registerService:(NSString *)name withServiceUrl:(NSURL *)serviceScriptUrl withOptions:(NSDictionary *)options;
/**
* Unregister JS service Script
* @param name : script code
**/
- (void)unregisterService:(NSString *)name;
/**
* Register Modules Method
* @param modules : module list
**/
- (void)registerModules:(NSDictionary *)modules;
/**
* Register Components Method
* @param components component list
**/
- (void)registerComponents:(NSArray* )components;
/**
* FireEvent
* @param instanceId instance id
* @param ref : node reference
* @param type : event type
* @param params : parameters
* @param domChanges dom value changes, used for two-way data binding
**/
- (void)fireEvent:(NSString *)instanceId ref:(NSString *)ref type:(NSString *)type params:(NSDictionary *)params domChanges:(NSDictionary *)domChanges;
/**
* callBack
*
* @param instanceId instanceId
* @param funcId funcId
* @param params params
* @param keepAlive indicate that whether this func will be reused
*/
- (void)callBack:(NSString *)instanceId funcId:(NSString *)funcId params:(id)params keepAlive:(BOOL)keepAlive;
/**
* Connect To WebSocket for devtool debug
* @param url : url to connect
**/
- (void)connectToDevToolWithUrl:(NSURL *)url;
/**
* CallBack
* @param instanceId instance id
* @param funcId : callback id
* @param params : parameters
**/
- (void)callBack:(NSString *)instanceId funcId:(NSString *)funcId params:(id)params;
/**
* Connect To WebSocket for collecting log
* @param url : url to connect
**/
- (void)connectToWebSocket:(NSURL *)url;
/**
* Log To WebSocket
* @param flag : the tag to identify
* @param message : message to output
**/
- (void)logToWebSocket:(NSString *)flag message:(NSString *)message;
/**
* Reset Environment
**/
- (void)resetEnvironment;
- (void)fireEvent:(NSString *)instanceId ref:(NSString *)ref type:(NSString *)type params:(NSDictionary *)params DEPRECATED_MSG_ATTRIBUTE("Use fireEvent:ref:type:params:domChanges: method instead.");
- (void)executeJsMethod:(WXBridgeMethod *)method DEPRECATED_MSG_ATTRIBUTE();
@end
| {'content_hash': '103ed696a22977ce5f123de5ccc9875c', 'timestamp': '', 'source': 'github', 'line_count': 159, 'max_line_length': 199, 'avg_line_length': 25.47798742138365, 'alnum_prop': 0.6600839298938533, 'repo_name': 'Neeeo/incubator-weex', 'id': '9626e82337c2b0cdc4dc86217ab5f9508a7bc9d8', 'size': '4323', 'binary': False, 'copies': '8', 'ref': 'refs/heads/master', 'path': 'ios/sdk/WeexSDK/Sources/Manager/WXBridgeManager.h', 'mode': '33188', 'license': 'apache-2.0', 'language': [{'name': 'C', 'bytes': '54186'}, {'name': 'CSS', 'bytes': '35985'}, {'name': 'HTML', 'bytes': '6580'}, {'name': 'Java', 'bytes': '7984434'}, {'name': 'JavaScript', 'bytes': '6538322'}, {'name': 'Objective-C', 'bytes': '1098953'}, {'name': 'Objective-C++', 'bytes': '2509'}, {'name': 'Ruby', 'bytes': '6814'}, {'name': 'Shell', 'bytes': '13807'}]} |
"""A setuptools based setup module.
See:
https://packaging.python.org/en/latest/distributing.html
https://github.com/pypa/sampleproject
"""
# Always prefer setuptools over distutils
from setuptools import setup, find_packages
# To use a consistent encoding
from codecs import open
from os import path
here = path.abspath(path.dirname(__file__))
# Get the long description from the README file
with open(path.join(here, 'README.rst'), encoding='utf-8') as f:
long_description = f.read()
setup(
name='spill',
version='0.0.1a',
description='A utility for generating Flask scaffolding and boilerplate.',
long_description=long_description,
url='https://github.com/hawk-sf/spill',
author='James Hawkins',
author_email='[email protected]',
license='MIT',
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'Framework :: Flask',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
],
keywords='Flask web development',
packages=find_packages(exclude=['contrib', 'docs', 'tests']),
install_requires=['Jinja2'],
# List additional groups of dependencies here (e.g. development
# dependencies). You can install these using the following syntax,
# for example:
# $ pip install -e .[dev,test]
# extras_require={
# 'dev': ['check-manifest'],
# 'test': ['coverage'],
# },
entry_points={
'console_scripts': [
'spill=spill:main',
],
},
)
| {'content_hash': '0c6fa249c9710b81ea318cc9c3a50d2e', 'timestamp': '', 'source': 'github', 'line_count': 57, 'max_line_length': 78, 'avg_line_length': 27.614035087719298, 'alnum_prop': 0.6404066073697586, 'repo_name': 'hawk-sf/spill', 'id': '42aaf31399cee104fe39ae9508b57a3f60ba6cde', 'size': '1574', 'binary': False, 'copies': '1', 'ref': 'refs/heads/master', 'path': 'setup.py', 'mode': '33188', 'license': 'mit', 'language': [{'name': 'Python', 'bytes': '17200'}]} |
class NormalizerResolver
include Callee
param :feed
option :logger, optional: true, default: -> { Rails.logger }
def call
available_names.each do |name|
result = normalizer_class_name(name)
logger.debug("normalizer resolved to [#{result}]")
return result
rescue NameError
next
end
raise "can not resolve normalizer for [#{feed&.name}] feed"
end
private
def normalizer_class_name(name)
safe_name = name.to_s.gsub(/-/, '_')
"#{safe_name}_normalizer".classify.constantize
end
def available_names
[feed.normalizer, feed.name, feed.processor].compact
end
end
| {'content_hash': '2d37e746cbfa645b02d71bf73148e711', 'timestamp': '', 'source': 'github', 'line_count': 28, 'max_line_length': 63, 'avg_line_length': 22.535714285714285, 'alnum_prop': 0.6671949286846276, 'repo_name': 'dreikanter/feeder', 'id': '6280b8669a48050e0993320280d5e257a2ba53b9', 'size': '631', 'binary': False, 'copies': '1', 'ref': 'refs/heads/master', 'path': 'app/services/normalizer_resolver.rb', 'mode': '33188', 'license': 'mit', 'language': [{'name': 'Dockerfile', 'bytes': '337'}, {'name': 'HTML', 'bytes': '161529'}, {'name': 'Procfile', 'bytes': '75'}, {'name': 'Ruby', 'bytes': '182496'}, {'name': 'Shell', 'bytes': '3054'}]} |
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>mne.minimum_norm.InverseOperator — MNE 0.15 documentation</title>
<link rel="stylesheet" href="../_static/bootstrap-sphinx.css" type="text/css" />
<link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
<link rel="stylesheet" href="../_static/gallery.css" type="text/css" />
<script type="text/javascript">
var DOCUMENTATION_OPTIONS = {
URL_ROOT: '../',
VERSION: '0.15',
COLLAPSE_INDEX: false,
FILE_SUFFIX: '.html',
HAS_SOURCE: true,
SOURCELINK_SUFFIX: '.txt'
};
</script>
<script type="text/javascript" src="../_static/jquery.js"></script>
<script type="text/javascript" src="../_static/underscore.js"></script>
<script type="text/javascript" src="../_static/doctools.js"></script>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>
<script type="text/javascript" src="../_static/js/jquery-1.11.0.min.js"></script>
<script type="text/javascript" src="../_static/js/jquery-fix.js"></script>
<script type="text/javascript" src="../_static/bootstrap-3.3.7/js/bootstrap.min.js"></script>
<script type="text/javascript" src="../_static/bootstrap-sphinx.js"></script>
<link rel="shortcut icon" href="../_static/favicon.ico"/>
<link rel="index" title="Index" href="../genindex.html" />
<link rel="search" title="Search" href="../search.html" />
<script type="text/javascript" src="../_static/copybutton.js"></script>
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-37225609-1']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
<link rel="stylesheet" href="../_static/style.css " type="text/css" />
<link rel="stylesheet" href="../_static/font-awesome.css" type="text/css" />
<link rel="stylesheet" href="../_static/flag-icon.css" type="text/css" />
<script type="text/javascript">
!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);
js.id=id;js.src="https://platform.twitter.com/widgets.js";
fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");
</script>
<script type="text/javascript">
(function() {
var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
po.src = 'https://apis.google.com/js/plusone.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
})();
</script>
<link rel="canonical" href="https://mne.tools/stable/index.html" />
</head>
<body>
<div id="navbar" class="navbar navbar-default navbar-fixed-top">
<div class="container">
<div class="navbar-header">
<!-- .btn-navbar is used as the toggle for collapsed navbar content -->
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".nav-collapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="../index.html"><span><img src="../_static/mne_logo_small.png"></span>
</a>
<span class="navbar-text navbar-version pull-left"><b>0.15</b></span>
</div>
<div class="collapse navbar-collapse nav-collapse">
<ul class="nav navbar-nav">
<li><a href="../getting_started.html">Install</a></li>
<li><a href="../documentation.html">Documentation</a></li>
<li><a href="../python_reference.html">API</a></li>
<li><a href="../auto_examples/index.html">Examples</a></li>
<li><a href="../contributing.html">Contribute</a></li>
<li class="dropdown globaltoc-container">
<a role="button"
id="dLabelGlobalToc"
data-toggle="dropdown"
data-target="#"
href="../index.html">Site <b class="caret"></b></a>
<ul class="dropdown-menu globaltoc"
role="menu"
aria-labelledby="dLabelGlobalToc"></ul>
</li>
<li class="hidden-sm"></li>
</ul>
<div class="navbar-form navbar-right navbar-btn dropdown btn-group-sm" style="margin-left: 20px; margin-top: 5px; margin-bottom: 5px">
<button type="button" class="btn btn-primary navbar-btn dropdown-toggle" id="dropdownMenu1" data-toggle="dropdown">
v0.15
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dropdownMenu1">
<li><a href="https://mne-tools.github.io/dev/index.html">Development</a></li>
<li><a href="https://mne-tools.github.io/stable/index.html">v0.15 (stable)</a></li>
<li><a href="https://mne-tools.github.io/0.14/index.html">v0.14</a></li>
<li><a href="https://mne-tools.github.io/0.13/index.html">v0.13</a></li>
<li><a href="https://mne-tools.github.io/0.12/index.html">v0.12</a></li>
<li><a href="https://mne-tools.github.io/0.11/index.html">v0.11</a></li>
</ul>
</div>
<form class="navbar-form navbar-right" action="../search.html" method="get">
<div class="form-group">
<input type="text" name="q" class="form-control" placeholder="Search" />
</div>
<input type="hidden" name="check_keywords" value="yes" />
<input type="hidden" name="area" value="default" />
</form>
</div>
</div>
</div>
<div class="container">
<div class="row">
<div class="sphinxsidebar" role="navigation" aria-label="main navigation">
<div class="sphinxsidebarwrapper">
<p class="logo"><a href="../index.html">
<img class="logo" src="../_static/mne_logo_small.png" alt="Logo"/>
</a></p><ul>
<li><a class="reference internal" href="#">mne.minimum_norm.InverseOperator</a></li>
</ul>
<form action="../search.html" method="get">
<div class="form-group">
<input type="text" name="q" class="form-control" placeholder="Search" />
</div>
<input type="hidden" name="check_keywords" value="yes" />
<input type="hidden" name="area" value="default" />
</form>
</div>
</div>
<div class="col-md-12 content">
<div class="section" id="mne-minimum-norm-inverseoperator">
<h1>mne.minimum_norm.InverseOperator<a class="headerlink" href="#mne-minimum-norm-inverseoperator" title="Permalink to this headline">¶</a></h1>
<dl class="class">
<dt id="mne.minimum_norm.InverseOperator">
<em class="property">class </em><code class="descclassname">mne.minimum_norm.</code><code class="descname">InverseOperator</code><a class="reference external" href="http://github.com/mne-tools/mne-python/blob/maint/0.15/mne/minimum_norm/inverse.py#L37-L61"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#mne.minimum_norm.InverseOperator" title="Permalink to this definition">¶</a></dt>
<dd><p>InverseOperator class to represent info from inverse operator.</p>
<p class="rubric">Methods</p>
<table border="1" class="longtable docutils">
<colgroup>
<col width="10%" />
<col width="90%" />
</colgroup>
<tbody valign="top">
<tr class="row-odd"><td><a class="reference internal" href="#mne.minimum_norm.InverseOperator.__contains__" title="mne.minimum_norm.InverseOperator.__contains__"><code class="xref py py-obj docutils literal"><span class="pre">__contains__</span></code></a>((k) -> True if D has a key k, …)</td>
<td></td>
</tr>
<tr class="row-even"><td><a class="reference internal" href="#mne.minimum_norm.InverseOperator.__getitem__" title="mne.minimum_norm.InverseOperator.__getitem__"><code class="xref py py-obj docutils literal"><span class="pre">__getitem__</span></code></a></td>
<td>x.__getitem__(y) <==> x[y]</td>
</tr>
<tr class="row-odd"><td><a class="reference internal" href="#mne.minimum_norm.InverseOperator.__iter__" title="mne.minimum_norm.InverseOperator.__iter__"><code class="xref py py-obj docutils literal"><span class="pre">__iter__</span></code></a>() <==> iter(x)</td>
<td></td>
</tr>
<tr class="row-even"><td><a class="reference internal" href="#mne.minimum_norm.InverseOperator.__len__" title="mne.minimum_norm.InverseOperator.__len__"><code class="xref py py-obj docutils literal"><span class="pre">__len__</span></code></a>() <==> len(x)</td>
<td></td>
</tr>
<tr class="row-odd"><td><a class="reference internal" href="#mne.minimum_norm.InverseOperator.clear" title="mne.minimum_norm.InverseOperator.clear"><code class="xref py py-obj docutils literal"><span class="pre">clear</span></code></a>(() -> None. Remove all items from D.)</td>
<td></td>
</tr>
<tr class="row-even"><td><a class="reference internal" href="#mne.minimum_norm.InverseOperator.copy" title="mne.minimum_norm.InverseOperator.copy"><code class="xref py py-obj docutils literal"><span class="pre">copy</span></code></a>()</td>
<td>Return a copy of the InverseOperator.</td>
</tr>
<tr class="row-odd"><td><a class="reference internal" href="#mne.minimum_norm.InverseOperator.fromkeys" title="mne.minimum_norm.InverseOperator.fromkeys"><code class="xref py py-obj docutils literal"><span class="pre">fromkeys</span></code></a>(…)</td>
<td>v defaults to None.</td>
</tr>
<tr class="row-even"><td><a class="reference internal" href="#mne.minimum_norm.InverseOperator.get" title="mne.minimum_norm.InverseOperator.get"><code class="xref py py-obj docutils literal"><span class="pre">get</span></code></a>((k[,d]) -> D[k] if k in D, …)</td>
<td></td>
</tr>
<tr class="row-odd"><td><a class="reference internal" href="#mne.minimum_norm.InverseOperator.has_key" title="mne.minimum_norm.InverseOperator.has_key"><code class="xref py py-obj docutils literal"><span class="pre">has_key</span></code></a>((k) -> True if D has a key k, else False)</td>
<td></td>
</tr>
<tr class="row-even"><td><a class="reference internal" href="#mne.minimum_norm.InverseOperator.items" title="mne.minimum_norm.InverseOperator.items"><code class="xref py py-obj docutils literal"><span class="pre">items</span></code></a>(() -> list of D’s (key, value) pairs, …)</td>
<td></td>
</tr>
<tr class="row-odd"><td><a class="reference internal" href="#mne.minimum_norm.InverseOperator.iteritems" title="mne.minimum_norm.InverseOperator.iteritems"><code class="xref py py-obj docutils literal"><span class="pre">iteritems</span></code></a>(() -> an iterator over the (key, …)</td>
<td></td>
</tr>
<tr class="row-even"><td><a class="reference internal" href="#mne.minimum_norm.InverseOperator.iterkeys" title="mne.minimum_norm.InverseOperator.iterkeys"><code class="xref py py-obj docutils literal"><span class="pre">iterkeys</span></code></a>(() -> an iterator over the keys of D)</td>
<td></td>
</tr>
<tr class="row-odd"><td><a class="reference internal" href="#mne.minimum_norm.InverseOperator.itervalues" title="mne.minimum_norm.InverseOperator.itervalues"><code class="xref py py-obj docutils literal"><span class="pre">itervalues</span></code></a>(…)</td>
<td></td>
</tr>
<tr class="row-even"><td><a class="reference internal" href="#mne.minimum_norm.InverseOperator.keys" title="mne.minimum_norm.InverseOperator.keys"><code class="xref py py-obj docutils literal"><span class="pre">keys</span></code></a>(() -> list of D’s keys)</td>
<td></td>
</tr>
<tr class="row-odd"><td><a class="reference internal" href="#mne.minimum_norm.InverseOperator.pop" title="mne.minimum_norm.InverseOperator.pop"><code class="xref py py-obj docutils literal"><span class="pre">pop</span></code></a>((k[,d]) -> v, …)</td>
<td>If key is not found, d is returned if given, otherwise KeyError is raised</td>
</tr>
<tr class="row-even"><td><a class="reference internal" href="#mne.minimum_norm.InverseOperator.popitem" title="mne.minimum_norm.InverseOperator.popitem"><code class="xref py py-obj docutils literal"><span class="pre">popitem</span></code></a>(() -> (k, v), …)</td>
<td>2-tuple; but raise KeyError if D is empty.</td>
</tr>
<tr class="row-odd"><td><a class="reference internal" href="#mne.minimum_norm.InverseOperator.setdefault" title="mne.minimum_norm.InverseOperator.setdefault"><code class="xref py py-obj docutils literal"><span class="pre">setdefault</span></code></a>((k[,d]) -> D.get(k,d), …)</td>
<td></td>
</tr>
<tr class="row-even"><td><a class="reference internal" href="#mne.minimum_norm.InverseOperator.update" title="mne.minimum_norm.InverseOperator.update"><code class="xref py py-obj docutils literal"><span class="pre">update</span></code></a>(([E, …)</td>
<td>If E present and has a .keys() method, does: for k in E: D[k] = E[k]</td>
</tr>
<tr class="row-odd"><td><a class="reference internal" href="#mne.minimum_norm.InverseOperator.values" title="mne.minimum_norm.InverseOperator.values"><code class="xref py py-obj docutils literal"><span class="pre">values</span></code></a>(() -> list of D’s values)</td>
<td></td>
</tr>
<tr class="row-even"><td><a class="reference internal" href="#mne.minimum_norm.InverseOperator.viewitems" title="mne.minimum_norm.InverseOperator.viewitems"><code class="xref py py-obj docutils literal"><span class="pre">viewitems</span></code></a>(…)</td>
<td></td>
</tr>
<tr class="row-odd"><td><a class="reference internal" href="#mne.minimum_norm.InverseOperator.viewkeys" title="mne.minimum_norm.InverseOperator.viewkeys"><code class="xref py py-obj docutils literal"><span class="pre">viewkeys</span></code></a>(…)</td>
<td></td>
</tr>
<tr class="row-even"><td><a class="reference internal" href="#mne.minimum_norm.InverseOperator.viewvalues" title="mne.minimum_norm.InverseOperator.viewvalues"><code class="xref py py-obj docutils literal"><span class="pre">viewvalues</span></code></a>(…)</td>
<td></td>
</tr>
</tbody>
</table>
<dl class="method">
<dt id="mne.minimum_norm.InverseOperator.__contains__">
<code class="descname">__contains__</code><span class="sig-paren">(</span><em>k</em><span class="sig-paren">)</span> → True if D has a key k, else False<a class="headerlink" href="#mne.minimum_norm.InverseOperator.__contains__" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>
<dl class="method">
<dt id="mne.minimum_norm.InverseOperator.__getitem__">
<code class="descname">__getitem__</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#mne.minimum_norm.InverseOperator.__getitem__" title="Permalink to this definition">¶</a></dt>
<dd><p>x.__getitem__(y) <==> x[y]</p>
</dd></dl>
<dl class="attribute">
<dt id="mne.minimum_norm.InverseOperator.__iter__">
<code class="descname">__iter__</code><span class="sig-paren">(</span><em>) <==> iter(x</em><span class="sig-paren">)</span><a class="headerlink" href="#mne.minimum_norm.InverseOperator.__iter__" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>
<dl class="attribute">
<dt id="mne.minimum_norm.InverseOperator.__len__">
<code class="descname">__len__</code><span class="sig-paren">(</span><em>) <==> len(x</em><span class="sig-paren">)</span><a class="headerlink" href="#mne.minimum_norm.InverseOperator.__len__" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>
<dl class="method">
<dt id="mne.minimum_norm.InverseOperator.clear">
<code class="descname">clear</code><span class="sig-paren">(</span><span class="sig-paren">)</span> → None. Remove all items from D.<a class="headerlink" href="#mne.minimum_norm.InverseOperator.clear" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>
<dl class="method">
<dt id="mne.minimum_norm.InverseOperator.copy">
<code class="descname">copy</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference external" href="http://github.com/mne-tools/mne-python/blob/maint/0.15/mne/minimum_norm/inverse.py#L40-L42"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#mne.minimum_norm.InverseOperator.copy" title="Permalink to this definition">¶</a></dt>
<dd><p>Return a copy of the InverseOperator.</p>
</dd></dl>
<dl class="method">
<dt id="mne.minimum_norm.InverseOperator.fromkeys">
<code class="descname">fromkeys</code><span class="sig-paren">(</span><em>S</em><span class="optional">[</span>, <em>v</em><span class="optional">]</span><span class="sig-paren">)</span> → New dict with keys from S and values equal to v.<a class="headerlink" href="#mne.minimum_norm.InverseOperator.fromkeys" title="Permalink to this definition">¶</a></dt>
<dd><p>v defaults to None.</p>
</dd></dl>
<dl class="method">
<dt id="mne.minimum_norm.InverseOperator.get">
<code class="descname">get</code><span class="sig-paren">(</span><em>k</em><span class="optional">[</span>, <em>d</em><span class="optional">]</span><span class="sig-paren">)</span> → D[k] if k in D, else d. d defaults to None.<a class="headerlink" href="#mne.minimum_norm.InverseOperator.get" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>
<dl class="method">
<dt id="mne.minimum_norm.InverseOperator.has_key">
<code class="descname">has_key</code><span class="sig-paren">(</span><em>k</em><span class="sig-paren">)</span> → True if D has a key k, else False<a class="headerlink" href="#mne.minimum_norm.InverseOperator.has_key" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>
<dl class="method">
<dt id="mne.minimum_norm.InverseOperator.items">
<code class="descname">items</code><span class="sig-paren">(</span><span class="sig-paren">)</span> → list of D's (key, value) pairs, as 2-tuples<a class="headerlink" href="#mne.minimum_norm.InverseOperator.items" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>
<dl class="method">
<dt id="mne.minimum_norm.InverseOperator.iteritems">
<code class="descname">iteritems</code><span class="sig-paren">(</span><span class="sig-paren">)</span> → an iterator over the (key, value) items of D<a class="headerlink" href="#mne.minimum_norm.InverseOperator.iteritems" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>
<dl class="method">
<dt id="mne.minimum_norm.InverseOperator.iterkeys">
<code class="descname">iterkeys</code><span class="sig-paren">(</span><span class="sig-paren">)</span> → an iterator over the keys of D<a class="headerlink" href="#mne.minimum_norm.InverseOperator.iterkeys" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>
<dl class="method">
<dt id="mne.minimum_norm.InverseOperator.itervalues">
<code class="descname">itervalues</code><span class="sig-paren">(</span><span class="sig-paren">)</span> → an iterator over the values of D<a class="headerlink" href="#mne.minimum_norm.InverseOperator.itervalues" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>
<dl class="method">
<dt id="mne.minimum_norm.InverseOperator.keys">
<code class="descname">keys</code><span class="sig-paren">(</span><span class="sig-paren">)</span> → list of D's keys<a class="headerlink" href="#mne.minimum_norm.InverseOperator.keys" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>
<dl class="method">
<dt id="mne.minimum_norm.InverseOperator.pop">
<code class="descname">pop</code><span class="sig-paren">(</span><em>k</em><span class="optional">[</span>, <em>d</em><span class="optional">]</span><span class="sig-paren">)</span> → v, remove specified key and return the corresponding value.<a class="headerlink" href="#mne.minimum_norm.InverseOperator.pop" title="Permalink to this definition">¶</a></dt>
<dd><p>If key is not found, d is returned if given, otherwise KeyError is raised</p>
</dd></dl>
<dl class="method">
<dt id="mne.minimum_norm.InverseOperator.popitem">
<code class="descname">popitem</code><span class="sig-paren">(</span><span class="sig-paren">)</span> → (k, v), remove and return some (key, value) pair as a<a class="headerlink" href="#mne.minimum_norm.InverseOperator.popitem" title="Permalink to this definition">¶</a></dt>
<dd><p>2-tuple; but raise KeyError if D is empty.</p>
</dd></dl>
<dl class="method">
<dt id="mne.minimum_norm.InverseOperator.setdefault">
<code class="descname">setdefault</code><span class="sig-paren">(</span><em>k</em><span class="optional">[</span>, <em>d</em><span class="optional">]</span><span class="sig-paren">)</span> → D.get(k,d), also set D[k]=d if k not in D<a class="headerlink" href="#mne.minimum_norm.InverseOperator.setdefault" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>
<dl class="method">
<dt id="mne.minimum_norm.InverseOperator.update">
<code class="descname">update</code><span class="sig-paren">(</span><span class="optional">[</span><em>E</em>, <span class="optional">]</span><em>**F</em><span class="sig-paren">)</span> → None. Update D from dict/iterable E and F.<a class="headerlink" href="#mne.minimum_norm.InverseOperator.update" title="Permalink to this definition">¶</a></dt>
<dd><p>If E present and has a .keys() method, does: for k in E: D[k] = E[k]
If E present and lacks .keys() method, does: for (k, v) in E: D[k] = v
In either case, this is followed by: for k in F: D[k] = F[k]</p>
</dd></dl>
<dl class="method">
<dt id="mne.minimum_norm.InverseOperator.values">
<code class="descname">values</code><span class="sig-paren">(</span><span class="sig-paren">)</span> → list of D's values<a class="headerlink" href="#mne.minimum_norm.InverseOperator.values" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>
<dl class="method">
<dt id="mne.minimum_norm.InverseOperator.viewitems">
<code class="descname">viewitems</code><span class="sig-paren">(</span><span class="sig-paren">)</span> → a set-like object providing a view on D's items<a class="headerlink" href="#mne.minimum_norm.InverseOperator.viewitems" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>
<dl class="method">
<dt id="mne.minimum_norm.InverseOperator.viewkeys">
<code class="descname">viewkeys</code><span class="sig-paren">(</span><span class="sig-paren">)</span> → a set-like object providing a view on D's keys<a class="headerlink" href="#mne.minimum_norm.InverseOperator.viewkeys" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>
<dl class="method">
<dt id="mne.minimum_norm.InverseOperator.viewvalues">
<code class="descname">viewvalues</code><span class="sig-paren">(</span><span class="sig-paren">)</span> → an object providing a view on D's values<a class="headerlink" href="#mne.minimum_norm.InverseOperator.viewvalues" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>
</dd></dl>
</div>
</div>
</div>
</div>
<footer class="footer">
<div class="container"><img src="../_static/institutions.png" alt="Institutions"></div>
<div class="container">
<ul class="list-inline">
<li><a href="https://github.com/mne-tools/mne-python">GitHub</a></li>
<li>·</li>
<li><a href="https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis">Mailing list</a></li>
<li>·</li>
<li><a href="https://gitter.im/mne-tools/mne-python">Gitter</a></li>
<li>·</li>
<li><a href="whats_new.html">What's new</a></li>
<li>·</li>
<li><a href="faq.html#cite">Cite MNE</a></li>
<li class="pull-right"><a href="#">Back to top</a></li>
</ul>
<p>© Copyright 2012-2017, MNE Developers. Last updated on 2017-10-31.</p>
</div>
</footer>
<script src="https://mne.tools/versionwarning.js"></script>
</body>
</html> | {'content_hash': '4b9dc48ae2e502200419c6b40a60dd49', 'timestamp': '', 'source': 'github', 'line_count': 403, 'max_line_length': 414, 'avg_line_length': 60.58560794044665, 'alnum_prop': 0.6665711009174312, 'repo_name': 'mne-tools/mne-tools.github.io', 'id': 'a188c825e5ec0f934e7559d3e7e8844e3977054e', 'size': '24476', 'binary': False, 'copies': '1', 'ref': 'refs/heads/main', 'path': '0.15/generated/mne.minimum_norm.InverseOperator.html', 'mode': '33188', 'license': 'bsd-3-clause', 'language': [{'name': 'CSS', 'bytes': '708696'}, {'name': 'Dockerfile', 'bytes': '1820'}, {'name': 'HTML', 'bytes': '1526247783'}, {'name': 'JavaScript', 'bytes': '1323087'}, {'name': 'Jupyter Notebook', 'bytes': '24820047'}, {'name': 'Python', 'bytes': '18575494'}]} |
var projectRoot;
projectRoot = "" + __dirname + "/..";
exports.host = 'localhost';
exports.port = 3000;
exports.dbname = 'test';
| {'content_hash': '5fe62aea3802ff4818d5404715d1a861', 'timestamp': '', 'source': 'github', 'line_count': 6, 'max_line_length': 37, 'avg_line_length': 21.666666666666668, 'alnum_prop': 0.6461538461538462, 'repo_name': 'srconklin/expressApp', 'id': 'aa3acd62d3c6af3ffc8263896a1db6b559c39315', 'size': '130', 'binary': False, 'copies': '1', 'ref': 'refs/heads/master', 'path': 'config/config.js', 'mode': '33188', 'license': 'mit', 'language': [{'name': 'CSS', 'bytes': '1599'}, {'name': 'JavaScript', 'bytes': '19702'}]} |
# scapy.contrib.description = PPI CACE
# scapy.contrib.status = loads
"""
CACE PPI types
"""
import logging,struct
from scapy.config import conf
from scapy.packet import *
from scapy.fields import *
from scapy.layers.l2 import Ether
from scapy.layers.dot11 import Dot11
from scapy.contrib.ppi import *
PPI_DOT11COMMON = 2
PPI_DOT11NMAC = 3
PPI_DOT11NMACPHY = 4
PPI_SPECTRUMMAP = 5
PPI_PROCESSINFO = 6
PPI_CAPTUREINFO = 7
PPI_AGGREGATION = 8
PPI_DOT3 = 9
# PPI 802.11 Common Field Header Fields
class dBmByteField(Field):
def __init__(self, name, default):
Field.__init__(self, name, default, "b")
def i2repr(self, pkt, val):
if (val != None):
val = "%4d dBm" % val
return val
class PPITSFTField(LELongField):
def i2h(self, pkt, val):
flags = 0
if (pkt):
flags = pkt.getfieldval("Pkt_Flags")
if not flags:
flags = 0
if (flags & 0x02):
scale = 1e-3
else:
scale = 1e-6
tout = scale * float(val)
return tout
def h2i(self, pkt, val):
scale = 1e6
if pkt:
flags = pkt.getfieldval("Pkt_Flags")
if flags:
if (flags & 0x02):
scale = 1e3
tout = int((scale * val) + 0.5)
return tout
_PPIDot11CommonChFlags = ['','','','','Turbo','CCK','OFDM','2GHz','5GHz',
'PassiveOnly','Dynamic CCK-OFDM','GSFK']
_PPIDot11CommonPktFlags = ['FCS','TSFT_ms','FCS_Invalid','PHY_Error']
# PPI 802.11 Common Field Header
class Dot11Common(Packet):
name = "PPI 802.11-Common"
fields_desc = [ LEShortField('pfh_type',PPI_DOT11COMMON),
LEShortField('pfh_length', 20),
PPITSFTField('TSF_Timer', 0),
FlagsField('Pkt_Flags',0, -16, _PPIDot11CommonPktFlags),
LEShortField('Rate',0),
LEShortField('Ch_Freq',0),
FlagsField('Ch_Flags', 0, -16, _PPIDot11CommonChFlags),
ByteField('FHSS_Hop',0),
ByteField('FHSS_Pat',0),
dBmByteField('Antsignal',-128),
dBmByteField('Antnoise',-128)]
def extract_padding(self, p):
return "",p
#Hopefully other CACE defined types will be added here.
#Add the dot11common layer to the PPI array
addPPIType(PPI_DOT11COMMON, Dot11Common)
| {'content_hash': '4691196b2fe8d86434eaef55949ffa56', 'timestamp': '', 'source': 'github', 'line_count': 83, 'max_line_length': 76, 'avg_line_length': 30.457831325301203, 'alnum_prop': 0.5443037974683544, 'repo_name': 'vhazali/cs5331', 'id': 'dee51d10de465ab64486e20baf0df921547b324e', 'size': '2714', 'binary': False, 'copies': '17', 'ref': 'refs/heads/master', 'path': 'assignment3/verifier/scapy-2.3.1/scapy/contrib/ppi_cace.py', 'mode': '33188', 'license': 'mit', 'language': [{'name': 'Batchfile', 'bytes': '490'}, {'name': 'CSS', 'bytes': '136542'}, {'name': 'HTML', 'bytes': '373214'}, {'name': 'JavaScript', 'bytes': '723067'}, {'name': 'Makefile', 'bytes': '2506'}, {'name': 'PHP', 'bytes': '4883616'}, {'name': 'Python', 'bytes': '3495970'}, {'name': 'Shell', 'bytes': '6243'}, {'name': 'Smarty', 'bytes': '2452936'}]} |
module.exports = function(bh) {
bh.match('select', function(ctx, json) {
ctx.tParam('_selectCls', json.cls);
});
bh.match('popup', function(ctx) {
var cls = ctx.tParam('_selectCls');
cls && ctx.cls(cls + '-popup');
});
};
| {'content_hash': '940f5ec14b89bc3405426e177f4dd604', 'timestamp': '', 'source': 'github', 'line_count': 13, 'max_line_length': 44, 'avg_line_length': 20.46153846153846, 'alnum_prop': 0.5263157894736842, 'repo_name': 'dima117/devcon-demo', 'id': '431ede23c5d54f7bbeacd587dd259a7fe3509f7f', 'size': '266', 'binary': False, 'copies': '7', 'ref': 'refs/heads/master', 'path': 'Todo/Bem/libs/bem-components/common.blocks/select/select.tests/gemini.blocks/select/select.bh.js', 'mode': '33188', 'license': 'mit', 'language': [{'name': 'ASP', 'bytes': '95'}, {'name': 'C#', 'bytes': '5181'}, {'name': 'CSS', 'bytes': '56441'}, {'name': 'GCC Machine Description', 'bytes': '612'}, {'name': 'HTML', 'bytes': '44031'}, {'name': 'JavaScript', 'bytes': '918169'}]} |
/**
*
* Contains classes used to update the data stores.<br><br>
*
* The UpdateService will load, any correctly defined CachedWebDataSource(s) and call update() on them. The Cached Data Source
* must determine if it needs to be updated and if so perform the update. The sub packages contain classes used to perform the
* actual updates.
*/
package org.owasp.dependencycheck.data.update;
| {'content_hash': 'cb6fb9ba9422e5c0a32e47a29e3e4837', 'timestamp': '', 'source': 'github', 'line_count': 9, 'max_line_length': 126, 'avg_line_length': 43.77777777777778, 'alnum_prop': 0.7563451776649747, 'repo_name': 'colezlaw/DependencyCheck', 'id': 'a9ca92fcf1ab9ed616462071cf7c79ad1c8b767d', 'size': '394', 'binary': False, 'copies': '9', 'ref': 'refs/heads/master', 'path': 'dependency-check-core/src/main/java/org/owasp/dependencycheck/data/update/package-info.java', 'mode': '33188', 'license': 'apache-2.0', 'language': [{'name': 'Batchfile', 'bytes': '287'}, {'name': 'C', 'bytes': '3939'}, {'name': 'C++', 'bytes': '2713'}, {'name': 'CMake', 'bytes': '427624'}, {'name': 'Cuda', 'bytes': '384'}, {'name': 'Groovy', 'bytes': '12519'}, {'name': 'Java', 'bytes': '1823697'}, {'name': 'M4', 'bytes': '66845'}, {'name': 'PLSQL', 'bytes': '2981'}, {'name': 'Python', 'bytes': '7490'}, {'name': 'Ruby', 'bytes': '25386'}, {'name': 'SQLPL', 'bytes': '2470'}, {'name': 'Shell', 'bytes': '6778'}, {'name': 'Swift', 'bytes': '1221'}]} |
package org.wso2.carbon.registry.common.beans;
import edu.umd.cs.findbugs.annotations.SuppressWarnings;
import org.wso2.carbon.registry.common.beans.utils.Comment;
@SuppressWarnings({"EI_EXPOSE_REP", "EI_EXPOSE_REP2"})
public class CommentBean {
private Comment [] comments;
private String errorMessage;
private boolean putAllowed;
private boolean versionView;
private boolean loggedIn;
private String pathWithVersion;
public Comment[] getComments() {
return comments;
}
public void setComments(Comment [] comments) {
this.comments = comments;
}
public String getErrorMessage() {
return errorMessage;
}
public void setErrorMessage(String errorMessage) {
this.errorMessage = errorMessage;
}
public boolean isPutAllowed() {
return putAllowed;
}
public void setPutAllowed(boolean putAllowed) {
this.putAllowed = putAllowed;
}
public boolean isVersionView() {
return versionView;
}
public void setVersionView(boolean versionView) {
this.versionView = versionView;
}
public boolean isLoggedIn() {
return loggedIn;
}
public void setLoggedIn(boolean loggedIn) {
this.loggedIn = loggedIn;
}
public String getPathWithVersion() {
return pathWithVersion;
}
public void setPathWithVersion(String pathWithVersion) {
this.pathWithVersion = pathWithVersion;
}
}
| {'content_hash': 'e7c3abec61c6160207dcb9acdd0fea81', 'timestamp': '', 'source': 'github', 'line_count': 69, 'max_line_length': 60, 'avg_line_length': 21.463768115942027, 'alnum_prop': 0.673869007427414, 'repo_name': 'thushara35/carbon-registry', 'id': 'e2c267131ad12d502728d65b5dcf5e8bd77573d1', 'size': '2122', 'binary': False, 'copies': '17', 'ref': 'refs/heads/master', 'path': 'components/registry/org.wso2.carbon.registry.common/src/main/java/org/wso2/carbon/registry/common/beans/CommentBean.java', 'mode': '33188', 'license': 'apache-2.0', 'language': [{'name': 'Batchfile', 'bytes': '62597'}, {'name': 'CSS', 'bytes': '62539'}, {'name': 'HTML', 'bytes': '46318'}, {'name': 'Java', 'bytes': '5679968'}, {'name': 'JavaScript', 'bytes': '334293'}, {'name': 'PLSQL', 'bytes': '186568'}, {'name': 'Shell', 'bytes': '70140'}, {'name': 'XSLT', 'bytes': '78182'}]} |
static const int kCheckUrlTimeoutMs = 5000;
// TODO(eroman): Downgrade these CHECK()s to DCHECKs once there is more
// unit test coverage.
SafeBrowsingResourceThrottle::SafeBrowsingResourceThrottle(
const net::URLRequest* request,
bool is_subresource,
SafeBrowsingService* safe_browsing)
: state_(STATE_NONE),
defer_state_(DEFERRED_NONE),
threat_type_(SB_THREAT_TYPE_SAFE),
database_manager_(safe_browsing->database_manager()),
ui_manager_(safe_browsing->ui_manager()),
request_(request),
is_subresource_(is_subresource) {
}
SafeBrowsingResourceThrottle::~SafeBrowsingResourceThrottle() {
if (state_ == STATE_CHECKING_URL)
database_manager_->CancelCheck(this);
}
void SafeBrowsingResourceThrottle::WillStartRequest(bool* defer) {
// We need to check the new URL before starting the request.
if (CheckUrl(request_->url()))
return;
// If the URL couldn't be verified synchronously, defer starting the
// request until the check has completed.
defer_state_ = DEFERRED_START;
*defer = true;
}
void SafeBrowsingResourceThrottle::WillRedirectRequest(const GURL& new_url,
bool* defer) {
CHECK(state_ == STATE_NONE);
CHECK(defer_state_ == DEFERRED_NONE);
// Save the redirect urls for possible malware detail reporting later.
redirect_urls_.push_back(new_url);
// We need to check the new URL before following the redirect.
if (CheckUrl(new_url))
return;
// If the URL couldn't be verified synchronously, defer following the
// redirect until the SafeBrowsing check is complete. Store the redirect
// context so we can pass it on to other handlers once we have completed
// our check.
defer_state_ = DEFERRED_REDIRECT;
*defer = true;
}
const char* SafeBrowsingResourceThrottle::GetNameForLogging() const {
return "SafeBrowsingResourceThrottle";
}
// SafeBrowsingService::Client implementation, called on the IO thread once
// the URL has been classified.
void SafeBrowsingResourceThrottle::OnCheckBrowseUrlResult(
const GURL& url, SBThreatType threat_type) {
CHECK(state_ == STATE_CHECKING_URL);
CHECK(defer_state_ != DEFERRED_NONE);
CHECK(url == url_being_checked_) << "Was expecting: " << url_being_checked_
<< " but got: " << url;
timer_.Stop(); // Cancel the timeout timer.
threat_type_ = threat_type;
state_ = STATE_NONE;
if (threat_type == SB_THREAT_TYPE_SAFE) {
// Log how much time the safe browsing check cost us.
ui_manager_->LogPauseDelay(base::TimeTicks::Now() - url_check_start_time_);
// Continue the request.
ResumeRequest();
return;
}
if (request_->load_flags() & net::LOAD_PREFETCH) {
// Don't prefetch resources that fail safe browsing, disallow
// them.
controller()->Cancel();
return;
}
const content::ResourceRequestInfo* info =
content::ResourceRequestInfo::ForRequest(request_);
SafeBrowsingUIManager::UnsafeResource resource;
resource.url = url;
resource.original_url = request_->original_url();
resource.redirect_urls = redirect_urls_;
resource.is_subresource = is_subresource_;
resource.threat_type = threat_type;
resource.callback = base::Bind(
&SafeBrowsingResourceThrottle::OnBlockingPageComplete, AsWeakPtr());
resource.render_process_host_id = info->GetChildID();
resource.render_view_id = info->GetRouteID();
state_ = STATE_DISPLAYING_BLOCKING_PAGE;
content::BrowserThread::PostTask(
content::BrowserThread::UI,
FROM_HERE,
base::Bind(&SafeBrowsingResourceThrottle::StartDisplayingBlockingPage,
AsWeakPtr(), ui_manager_, resource));
}
void SafeBrowsingResourceThrottle::StartDisplayingBlockingPage(
const base::WeakPtr<SafeBrowsingResourceThrottle>& throttle,
scoped_refptr<SafeBrowsingUIManager> ui_manager,
const SafeBrowsingUIManager::UnsafeResource& resource) {
bool should_show_blocking_page = true;
content::RenderViewHost* rvh = content::RenderViewHost::FromID(
resource.render_process_host_id, resource.render_view_id);
if (rvh) {
content::WebContents* web_contents =
content::WebContents::FromRenderViewHost(rvh);
prerender::PrerenderContents* prerender_contents =
prerender::PrerenderContents::FromWebContents(web_contents);
if (prerender_contents) {
prerender_contents->Destroy(prerender::FINAL_STATUS_SAFE_BROWSING);
should_show_blocking_page = false;
}
if (should_show_blocking_page) {
ui_manager->DisplayBlockingPage(resource);
return;
}
}
// Tab is gone or it's being prerendered.
content::BrowserThread::PostTask(
content::BrowserThread::IO,
FROM_HERE,
base::Bind(&SafeBrowsingResourceThrottle::Cancel, throttle));
}
void SafeBrowsingResourceThrottle::Cancel() {
controller()->Cancel();
}
// SafeBrowsingService::UrlCheckCallback implementation, called on the IO
// thread when the user has decided to proceed with the current request, or
// go back.
void SafeBrowsingResourceThrottle::OnBlockingPageComplete(bool proceed) {
CHECK(state_ == STATE_DISPLAYING_BLOCKING_PAGE);
state_ = STATE_NONE;
if (proceed) {
threat_type_ = SB_THREAT_TYPE_SAFE;
ResumeRequest();
} else {
controller()->Cancel();
}
}
bool SafeBrowsingResourceThrottle::CheckUrl(const GURL& url) {
CHECK(state_ == STATE_NONE);
bool succeeded_synchronously = database_manager_->CheckBrowseUrl(url, this);
if (succeeded_synchronously) {
threat_type_ = SB_THREAT_TYPE_SAFE;
ui_manager_->LogPauseDelay(base::TimeDelta()); // No delay.
return true;
}
state_ = STATE_CHECKING_URL;
url_being_checked_ = url;
// Record the start time of the check.
url_check_start_time_ = base::TimeTicks::Now();
// Start a timer to abort the check if it takes too long.
timer_.Start(FROM_HERE,
base::TimeDelta::FromMilliseconds(kCheckUrlTimeoutMs),
this, &SafeBrowsingResourceThrottle::OnCheckUrlTimeout);
return false;
}
void SafeBrowsingResourceThrottle::OnCheckUrlTimeout() {
CHECK(state_ == STATE_CHECKING_URL);
CHECK(defer_state_ != DEFERRED_NONE);
database_manager_->CancelCheck(this);
OnCheckBrowseUrlResult(url_being_checked_, SB_THREAT_TYPE_SAFE);
}
void SafeBrowsingResourceThrottle::ResumeRequest() {
CHECK(state_ == STATE_NONE);
CHECK(defer_state_ != DEFERRED_NONE);
defer_state_ = DEFERRED_NONE;
controller()->Resume();
}
| {'content_hash': 'bc05ac490fd50c0baf2e20c744190702', 'timestamp': '', 'source': 'github', 'line_count': 198, 'max_line_length': 79, 'avg_line_length': 32.87373737373738, 'alnum_prop': 0.6988784759563681, 'repo_name': 'chromium2014/src', 'id': 'e9dc7b13599e0422abbc8c06c315958c3be1ed45', 'size': '7493', 'binary': False, 'copies': '14', 'ref': 'refs/heads/master', 'path': 'chrome/browser/renderer_host/safe_browsing_resource_throttle.cc', 'mode': '33188', 'license': 'bsd-3-clause', 'language': [{'name': 'ASP', 'bytes': '853'}, {'name': 'AppleScript', 'bytes': '6973'}, {'name': 'Arduino', 'bytes': '464'}, {'name': 'Assembly', 'bytes': '1889381'}, {'name': 'Awk', 'bytes': '8660'}, {'name': 'C', 'bytes': '39993418'}, {'name': 'C#', 'bytes': '1132'}, {'name': 'C++', 'bytes': '220757674'}, {'name': 'CSS', 'bytes': '973910'}, {'name': 'Java', 'bytes': '6583410'}, {'name': 'JavaScript', 'bytes': '20967999'}, {'name': 'Mercury', 'bytes': '9480'}, {'name': 'Objective-C', 'bytes': '943237'}, {'name': 'Objective-C++', 'bytes': '7190130'}, {'name': 'PHP', 'bytes': '97817'}, {'name': 'Perl', 'bytes': '674461'}, {'name': 'Python', 'bytes': '10430892'}, {'name': 'Rebol', 'bytes': '262'}, {'name': 'Shell', 'bytes': '1337040'}, {'name': 'Standard ML', 'bytes': '3705'}, {'name': 'Tcl', 'bytes': '277091'}, {'name': 'XSLT', 'bytes': '13493'}, {'name': 'nesC', 'bytes': '15206'}]} |
@ECHO OFF
:subMain
MODE CON: lines=30 cols=45
CLS & @Powershell.exe -File .\IPRanger.ps1
goto:eof | {'content_hash': '8781573e673bfff98d993f6d88fc75d8', 'timestamp': '', 'source': 'github', 'line_count': 6, 'max_line_length': 42, 'avg_line_length': 16.333333333333332, 'alnum_prop': 0.7346938775510204, 'repo_name': 'Killeroo/NetworkTests', 'id': '425a19e8408fca2ab6d8670646b8ae4bb64703c4', 'size': '98', 'binary': False, 'copies': '1', 'ref': 'refs/heads/master', 'path': 'NetworkTest/IPRanger_Launcher.bat', 'mode': '33188', 'license': 'mit', 'language': [{'name': 'Batchfile', 'bytes': '49691'}, {'name': 'PowerShell', 'bytes': '113702'}]} |
use serde;
use serde_json;
use serde_derive;
use orbclient::event::KeyEvent;
pub trait Comparator<S> {
/// The comparator must be informed on_key_press and on_key_release The key_event
/// contains that information. Generic over ShortcutId (enum variant)
fn update(&mut self, key_event: KeyEvent) -> Option<&S>;
/// Generic over ShortcutId (enum variant)
fn compare(&mut self) -> Option<&S>;
/// To make sure that there are no duplicates the vecctors containing the pressed keys
/// must be sorted before dedup'ed.
fn sort(&mut self);
}
#[derive(Debug)]
pub enum GenericShortcutId<S> {
Id(S)
}
/// A shortcut consists of an id and a combination of keystrokes
/// id can be of any generic type
#[derive(Deserialize, Clone, Debug)]
pub struct Shortcut<S> {
pub id: S,
pub keys: Vec<u8>,
}
/// Pseudo shortcut ids
#[derive(PartialEq, Clone, Copy, Debug)]
pub enum PseudoId {
Pressed
}
/// Most common shortcut ids.
#[derive(Deserialize, PartialEq, Clone, Copy, Debug)]
pub enum CommonId {
New, Open, Save, Help, Quit
}
/// Container for the currently pressed keystrokes and of a set of supported shortcuts.
#[derive(Deserialize, Clone, Debug)]
pub struct Shortcuts<S> {
/// A single Shortcut or None
pub pressed: Vec<u8>,
/// A set of Shortcuts or None
pub supported: Option<Vec<Shortcut<S>>>,
/// optional flag for the comparator
pub min_shortcut_len: u8,
}
| {'content_hash': 'a8c8d63fd0621eb370c4fcac73a10659', 'timestamp': '', 'source': 'github', 'line_count': 51, 'max_line_length': 90, 'avg_line_length': 28.19607843137255, 'alnum_prop': 0.6842837273991655, 'repo_name': 'aspera-non-spernit/orbclient_window_shortcuts', 'id': '73988298729b42b02f7a7a123ec5e769f7ab8114', 'size': '1438', 'binary': False, 'copies': '1', 'ref': 'refs/heads/testing', 'path': 'src/shortcut.rs', 'mode': '33188', 'license': 'mit', 'language': [{'name': 'Rust', 'bytes': '5916'}]} |
using System;
using FluentAssertions;
using NUnit.Framework;
using Vostok.Commons.Extensions.Uri;
namespace Vostok.Common.Extensions.Uri
{
public class UrlExtensions_Tests
{
[TestCase("http://vostok/process?p=p1", "http://vostok/process")]
[TestCase("http://vostok/guids/EABC6944-2D64-4590-873F-42EE84651713/process/", "http://vostok/guids/{guid}/process/")]
[TestCase("http://vostok/guids/eabc6944-2d64-4590-873f-42ee84651713/process/", "http://vostok/guids/{guid}/process/")]
[TestCase("http://vostok/page/1-100/process/", "http://vostok/page/{num}/process/")]
[TestCase("http://vostok/message/hello+world/process/", "http://vostok/message/{enc}/process/")]
[TestCase("http://vostok/message/%D0%BF%D1%80%D0%B8%D0%B2%D0%B5%D1%82%2F/process/", "http://vostok/message/{enc}/process/")]
[TestCase("http://vostok/binary/1234567890ABCDEF/process/", "http://vostok/binary/{hex}/process/")]
[TestCase("http://vostok/binary/1234567890abcdef/process/", "http://vostok/binary/{hex}/process/")]
public void Normalize_should_return_normalizedUrl(string urlString, string normalizeUrl)
{
var uri = new System.Uri(urlString);
var actual = uri.Normalize();
actual.Should().Be(normalizeUrl);
}
[TestCase("http://vostok/process?p=p1", "process")]
[TestCase("http://vostok/guids/EABC6944-2D64-4590-873F-42EE84651713/process/", "guids/{guid}/process")]
[TestCase("http://vostok/guids/eabc6944-2d64-4590-873f-42ee84651713/process/", "guids/{guid}/process")]
[TestCase("http://vostok/page/1-100/process/", "page/{num}/process")]
[TestCase("http://vostok/message/hello+world/process/", "message/{enc}/process")]
[TestCase("http://vostok/message/%D0%BF%D1%80%D0%B8%D0%B2%D0%B5%D1%82%2F/process/", "message/{enc}/process")]
[TestCase("http://vostok/binary/1234567890ABCDEF/process/", "binary/{hex}/process")]
[TestCase("http://vostok/binary/1234567890abcdef/process/", "binary/{hex}/process")]
[TestCase("/binary/1234567890abcdef/process/?a=b", "binary/{hex}/process")]
[TestCase("binary/1234567890abcdef/process/?a=b", "binary/{hex}/process")]
public void GetNormalizedPath_should_return_normalized_path(string urlString, string normalizeUrl)
{
var uri = new System.Uri(urlString, UriKind.RelativeOrAbsolute);
var actual = uri.GetNormalizedPath();
actual.Should().Be(normalizeUrl);
}
}
} | {'content_hash': 'aac16bf10f0f0f5c95cc42a8a420223f', 'timestamp': '', 'source': 'github', 'line_count': 46, 'max_line_length': 132, 'avg_line_length': 55.391304347826086, 'alnum_prop': 0.6573783359497645, 'repo_name': 'vostok/core', 'id': 'df352db1189ea528d39740fdf3dbbb5f857767b9', 'size': '2550', 'binary': False, 'copies': '1', 'ref': 'refs/heads/master', 'path': 'Vostok.Core.Tests/Common/Extensions/Uri/UrlExtensions_Tests.cs', 'mode': '33188', 'license': 'mit', 'language': [{'name': 'C#', 'bytes': '220289'}]} |
<div class="product-field" product-form-field>
<div class="product-field__aside">
<label class="product-field__label" for="{{ ::form.key.slice(-1)[0] }}">{{ ::form.title }}</label>
</div>
<div class="product-field__body" ng-class="{'has-error': hasErrors(form.key.slice(-1)[0])}">
<select id="{{ ::form.key.slice(-1)[0] }}" class="product-field__input field__input--select"
name="{{ ::form.key.slice(-1)[0] }}"
ng-model="$$value$$"
ng-model-options="::form.ngModelOptions"
ng-disabled="form.readonly"
schema-validate="form"
ng-options="item.value as item.name group by item.group for item in form.titleMap"></select>
<div class="product-field__feedback" sf-message="form.description"></div>
</div>
</div>
| {'content_hash': '45e0f49a67a6c335f91f4e3a7c8301a6', 'timestamp': '', 'source': 'github', 'line_count': 16, 'max_line_length': 104, 'avg_line_length': 49.875, 'alnum_prop': 0.5989974937343359, 'repo_name': 'dcallner/project-jellyfish-api', 'id': '2a46de196ab803ba3ab794457813cde0bf848f4b', 'size': '798', 'binary': False, 'copies': '1', 'ref': 'refs/heads/master', 'path': 'src/client/app/components/product-form/controls/select.html', 'mode': '33188', 'license': 'apache-2.0', 'language': [{'name': 'CSS', 'bytes': '101291'}, {'name': 'HTML', 'bytes': '171685'}, {'name': 'JavaScript', 'bytes': '262987'}, {'name': 'Ruby', 'bytes': '405521'}]} |
import roslib; roslib.load_manifest('roscpp'); roslib.load_manifest('rospy'); roslib.load_manifest('geometry_msgs'); roslib.load_manifest('rosgraph_msgs')
import rospy
import std_msgs
import math
from geometry_msgs.msg import Twist
def init_extra_module(self, component_instance, function, mw_data):
""" Setup the middleware connection with this data
Prepare the middleware to handle the serialised data as necessary.
"""
component_name = component_instance.blender_obj.name
parent_name = component_instance.robot_parent.blender_obj.name
# Add the new method to the component
component_instance.input_functions.append(function)
self._topics.append(rospy.Subscriber(parent_name + "/" + component_name, Twist, callback_wp, component_instance))
def callback_wp(data, component_instance):
""" this function is called as soon as Twist messages are published on the specific topic """
component_instance.local_data["v"] = data.linear.x
yaw = data.angular.z
component_instance.local_data["w"] = yaw
def read_twist(self, component_instance):
""" dummy function for Waypoints """
| {'content_hash': 'cac5c5a4f6f3be511e078cafcab7d3be', 'timestamp': '', 'source': 'github', 'line_count': 26, 'max_line_length': 156, 'avg_line_length': 43.96153846153846, 'alnum_prop': 0.7296587926509186, 'repo_name': 'Arkapravo/morse-0.6', 'id': '568360bc2da80e035c8bdb632209f27174fdcf20', 'size': '1143', 'binary': False, 'copies': '1', 'ref': 'refs/heads/master', 'path': 'src/morse/middleware/ros/read_vw_twist.py', 'mode': '33188', 'license': 'bsd-3-clause', 'language': [{'name': 'C', 'bytes': '46148'}, {'name': 'C++', 'bytes': '30878'}, {'name': 'Perl', 'bytes': '1705'}, {'name': 'Python', 'bytes': '1117700'}, {'name': 'Shell', 'bytes': '684'}]} |
package mutslam;
import java.util.ArrayList;
import java.util.Map.Entry;
import java.util.Random;
import org.apache.accumulo.core.client.AccumuloException;
import org.apache.accumulo.core.client.AccumuloSecurityException;
import org.apache.accumulo.core.client.BatchWriter;
import org.apache.accumulo.core.client.BatchWriterConfig;
import org.apache.accumulo.core.client.Connector;
import org.apache.accumulo.core.client.MutationsRejectedException;
import org.apache.accumulo.core.client.Scanner;
import org.apache.accumulo.core.client.TableExistsException;
import org.apache.accumulo.core.client.TableNotFoundException;
import org.apache.accumulo.core.client.ZooKeeperInstance;
import org.apache.accumulo.core.client.security.tokens.PasswordToken;
import org.apache.accumulo.core.conf.Property;
import org.apache.accumulo.core.data.Key;
import org.apache.accumulo.core.data.Mutation;
import org.apache.accumulo.core.data.Value;
import org.apache.accumulo.core.security.Authorizations;
import org.apache.commons.configuration.PropertiesConfiguration;
public class Generator {
static Mutation createRandomMutation(Random rand) {
byte row[] = new byte[16];
rand.nextBytes(row);
Mutation m = new Mutation(row);
byte cq[] = new byte[8];
byte val[] = new byte[16];
for (int i = 0; i < 3; i++) {
rand.nextBytes(cq);
rand.nextBytes(val);
m.put("cf".getBytes(), cq, val);
}
return m;
}
static class WriteTask implements Runnable {
private int numToWrite;
private int numToBatch;
private BatchWriter bw;
private volatile long time = -1;
private boolean flush;
WriteTask(BatchWriter bw, int numToWrite, int numToBatch, boolean flush) throws Exception {
this.bw = bw;
this.numToWrite = numToWrite;
this.numToBatch = numToBatch;
this.flush = flush;
}
@Override
public void run() {
Random rand = new Random();
try {
long t1 = System.currentTimeMillis();
for (int i = 0; i < numToWrite; i++) {
Mutation mut = createRandomMutation(rand);
for (int j = 0; j < numToBatch; j++) {
bw.addMutation(mut);
}
if (flush)
bw.flush();
}
if (!flush)
bw.flush();
long t2 = System.currentTimeMillis();
this.time = t2 - t1;
} catch (Exception e) {
e.printStackTrace();
} finally {
try {
bw.close();
} catch (MutationsRejectedException e) {
e.printStackTrace();
}
}
}
long getTime() {
return time;
}
}
public static void main(String[] args) throws Exception {
PropertiesConfiguration config = new PropertiesConfiguration(args[0]);
ZooKeeperInstance zki = new ZooKeeperInstance(config);
Connector conn = zki.getConnector(config.getString("user.name"), new PasswordToken(config.getString("user.password")));
boolean walog = true;
int tests[] = new int[] {1, 2, 8, 16, 32, 128};
for (int i = 0; i < 6; i++) {
if (i > 0) {
System.out.println();
System.out.println("RERUNNING all test");
System.out.println();
} else {
System.out.println();
}
System.out.printf("Running tests w/ walog: %b shared batch writer: %b\n", walog, true);
System.out.println(" This test threads w/ group commit on the client side, using a single batch writer.");
System.out.println(" Each thread flushes after each mutation");
for (int nt : tests) {
runTest(conn, nt, 1, true, walog, true);
}
System.out.println();
System.out.printf("Running tests w/ walog: %b shared batch writer: %b\n", walog, false);
System.out.println(" This test threads w/ group commit on the server side, using a batch writer per thread");
System.out.println(" Each thread flushes after each mutation");
for (int nt : tests) {
runTest(conn, nt, 1, true, walog, false);
}
System.out.println();
System.out.printf("Running tests w/ walog: %b shared batch writer: %b\n", walog, false);
System.out.println(" This test a single thread write a different batch sizes of mutations, flushing after each batch.");
System.out.println(" Group commit should approach these times for the same number mutations.");
for (int nb : tests) {
runTest(conn, 1, nb, true, walog, false);
}
walog = !walog;
}
}
private static void runTest(Connector conn, int numThreads, int numToBatch, boolean flush, boolean walog, boolean useSharedBW) throws AccumuloException,
AccumuloSecurityException, TableNotFoundException, Exception, InterruptedException {
try {
conn.tableOperations().create("mutslam");
if (!walog) {
conn.tableOperations().setProperty("mutslam", Property.TABLE_WALOG_ENABLED.getKey(), "" + walog);
}
} catch (TableExistsException tee) {}
// scan just to wait for tablet be online
Scanner scanner = conn.createScanner("mutslam", Authorizations.EMPTY);
for (Entry<Key,Value> entry : scanner) {
entry.getValue();
}
// number of batches each thread should write
int numToWrite = 100;
ArrayList<WriteTask> wasks = new ArrayList<WriteTask>();
ArrayList<Thread> threads = new ArrayList<Thread>();
BatchWriter bw = null;
SharedBatchWriter sbw = null;
if (useSharedBW) {
bw = conn.createBatchWriter("mutslam", new BatchWriterConfig().setMaxWriteThreads(1));
sbw = new SharedBatchWriter(bw);
}
for (int i = 0; i < numThreads; i++) {
WriteTask wask;
if (useSharedBW)
wask = new WriteTask(sbw, numToWrite, numToBatch, flush);
else
wask = new WriteTask(conn.createBatchWriter("mutslam", new BatchWriterConfig().setMaxWriteThreads(1)), numToWrite, numToBatch, flush);
wasks.add(wask);
Thread thread = new Thread(wask);
threads.add(thread);
}
for (Thread thread : threads) {
thread.start();
}
for (Thread thread : threads) {
thread.join();
}
if (useSharedBW)
bw.close();
long sum = 0;
for (WriteTask writeTask : wasks) {
sum += writeTask.getTime();
}
int totalNumMutations = numToWrite * numThreads * numToBatch;
double rate = totalNumMutations / (sum / (double) wasks.size());
System.out.printf("\ttime: %8.2f #threads: %3d #batch: %2d #mutations: %4d rate: %6.2f mutations/ms\n", sum / (double) wasks.size(), numThreads,
numToBatch,
totalNumMutations, rate);
conn.tableOperations().delete("mutslam");
}
}
| {'content_hash': '241b6e532d8062c89274aa6aaecf6784', 'timestamp': '', 'source': 'github', 'line_count': 211, 'max_line_length': 154, 'avg_line_length': 31.545023696682463, 'alnum_prop': 0.6500901442307693, 'repo_name': 'keith-turner/mutslam', 'id': '012c5725d302990212ee901d0c8e586bbfaf3926', 'size': '6656', 'binary': False, 'copies': '1', 'ref': 'refs/heads/master', 'path': 'src/main/java/mutslam/Generator.java', 'mode': '33188', 'license': 'apache-2.0', 'language': [{'name': 'Java', 'bytes': '10597'}]} |
Subsets and Splits
No saved queries yet
Save your SQL queries to embed, download, and access them later. Queries will appear here once saved.