code
stringlengths
3
1.01M
repo_name
stringlengths
5
116
path
stringlengths
3
311
language
stringclasses
30 values
license
stringclasses
15 values
size
int64
3
1.01M
// This file includes polyfills needed by Angular and is loaded before // the app. You can add your own extra polyfills to this file. import 'core-js/es6/symbol'; import 'core-js/es6/object'; import 'core-js/es6/function'; import 'core-js/es6/parse-int'; import 'core-js/es6/parse-float'; import 'core-js/es6/number'; import 'core-js/es6/math'; import 'core-js/es6/string'; import 'core-js/es6/date'; import 'core-js/es6/array'; import 'core-js/es6/regexp'; import 'core-js/es6/map'; import 'core-js/es6/set'; import 'core-js/es6/reflect'; import 'core-js/es6/promise'; import 'core-js/es7/reflect'; import 'zone.js/dist/zone';
AllenBW/manageiq-ui-service
client/app/polyfills.ts
TypeScript
apache-2.0
629
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xml:lang="en" lang="en"> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8" /> <title>PMD Ruby 5.5.1 Reference Package net.sourceforge.pmd</title> <link rel="stylesheet" type="text/css" href="../../../stylesheet.css" title="style" /> </head> <body> <h3> <a href="package-summary.html" target="classFrame">net.sourceforge.pmd</a> </h3> <h3>Classes</h3> <ul> <li> <a href="LanguageVersionTest.html" target="classFrame">LanguageVersionTest</a> </li> </ul> </body> </html>
jasonwee/videoOnCloud
pmd/pmd-doc-5.5.1/pmd-ruby/xref-test/net/sourceforge/pmd/package-frame.html
HTML
apache-2.0
727
# Daemonorops hirsuta Blume SPECIES #### Status ACCEPTED #### According to The Catalogue of Life, 3rd January 2011 #### Published in null #### Original name null ### Remarks null
mdoering/backbone
life/Plantae/Magnoliophyta/Liliopsida/Arecales/Arecaceae/Daemonorops/Daemonorops hirsuta/README.md
Markdown
apache-2.0
183
# Wenderothia discolor Schltdl. SPECIES #### Status SYNONYM #### According to The Catalogue of Life, 3rd January 2011 #### Published in null #### Original name null ### Remarks null
mdoering/backbone
life/Plantae/Magnoliophyta/Magnoliopsida/Fabales/Fabaceae/Canavalia/Canavalia villosa/ Syn. Wenderothia discolor/README.md
Markdown
apache-2.0
186
# Leavenworthia texana Mahler SPECIES #### Status ACCEPTED #### According to The Catalogue of Life, 3rd January 2011 #### Published in null #### Original name null ### Remarks null
mdoering/backbone
life/Plantae/Magnoliophyta/Magnoliopsida/Brassicales/Brassicaceae/Leavenworthia/Leavenworthia texana/README.md
Markdown
apache-2.0
185
# Bagliettoa marmorea (Scop.) Gueidan & Cl. Roux SPECIES #### Status ACCEPTED #### According to The Catalogue of Life, 3rd January 2011 #### Published in Mycol. Res. 111(10): 1157 (2007) #### Original name Lichen marmoreus Scop. ### Remarks null
mdoering/backbone
life/Fungi/Ascomycota/Eurotiomycetes/Verrucariales/Verrucariaceae/Verrucaria/Bagliettoa marmorea/README.md
Markdown
apache-2.0
250
# Panopsis ptariana Steyerm. SPECIES #### Status ACCEPTED #### According to International Plant Names Index #### Published in null #### Original name null ### Remarks null
mdoering/backbone
life/Plantae/Magnoliophyta/Magnoliopsida/Proteales/Proteaceae/Panopsis/Panopsis ptariana/README.md
Markdown
apache-2.0
176
# Corticium helianthi subsp. helianthi Bourdot & Galzin SUBSPECIES #### Status ACCEPTED #### According to Index Fungorum #### Published in Hyménomyc. de France (Sceaux) 207 (1928) #### Original name Corticium helianthi subsp. helianthi Bourdot & Galzin ### Remarks null
mdoering/backbone
life/Fungi/Basidiomycota/Agaricomycetes/Corticiales/Corticiaceae/Corticium/Corticium helianthi/Corticium helianthi helianthi/README.md
Markdown
apache-2.0
275
# Hypodermella punctata Darker, 1932 SPECIES #### Status SYNONYM #### According to The Catalogue of Life, 3rd January 2011 #### Published in Contr. Arnold Arbor. 1: 48 (1932) #### Original name Hypodermella punctata Darker, 1932 ### Remarks null
mdoering/backbone
life/Fungi/Ascomycota/Leotiomycetes/Rhytismatales/Rhytismataceae/Lirula/Lirula punctata/ Syn. Hypodermella punctata/README.md
Markdown
apache-2.0
250
# Copyright 2017 reinforce.io. All Rights Reserved. # # 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 # # 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. # ============================================================================== from __future__ import absolute_import from __future__ import print_function from __future__ import division import tensorflow as tf from tensorforce import util, TensorForceError from tensorforce.core.optimizers import MetaOptimizer class SubsamplingStep(MetaOptimizer): """ The subsampling-step meta optimizer randomly samples a subset of batch instances to calculate the optimization step of another optimizer. """ def __init__(self, optimizer, fraction=0.1, scope='subsampling-step', summary_labels=()): """ Creates a new subsampling-step meta optimizer instance. Args: optimizer: The optimizer which is modified by this meta optimizer. fraction: The fraction of instances of the batch to subsample. """ assert isinstance(fraction, float) and fraction > 0.0 self.fraction = fraction super(SubsamplingStep, self).__init__(optimizer=optimizer, scope=scope, summary_labels=summary_labels) def tf_step( self, time, variables, arguments, **kwargs ): """ Creates the TensorFlow operations for performing an optimization step. Args: time: Time tensor. variables: List of variables to optimize. arguments: Dict of arguments for callables, like fn_loss. **kwargs: Additional arguments passed on to the internal optimizer. Returns: List of delta tensors corresponding to the updates for each optimized variable. """ # Get some (batched) argument to determine batch size. arguments_iter = iter(arguments.values()) some_argument = next(arguments_iter) try: while not isinstance(some_argument, tf.Tensor) or util.rank(some_argument) == 0: if isinstance(some_argument, dict): if some_argument: arguments_iter = iter(some_argument.values()) some_argument = next(arguments_iter) elif isinstance(some_argument, list): if some_argument: arguments_iter = iter(some_argument) some_argument = next(arguments_iter) elif some_argument is None or util.rank(some_argument) == 0: # Non-batched argument some_argument = next(arguments_iter) else: raise TensorForceError("Invalid argument type.") except StopIteration: raise TensorForceError("Invalid argument type.") batch_size = tf.shape(input=some_argument)[0] num_samples = tf.cast( x=(self.fraction * tf.cast(x=batch_size, dtype=util.tf_dtype('float'))), dtype=util.tf_dtype('int') ) num_samples = tf.maximum(x=num_samples, y=1) indices = tf.random_uniform(shape=(num_samples,), maxval=batch_size, dtype=tf.int32) subsampled_arguments = util.map_tensors( fn=(lambda arg: arg if util.rank(arg) == 0 else tf.gather(params=arg, indices=indices)), tensors=arguments ) return self.optimizer.step( time=time, variables=variables, arguments=subsampled_arguments, **kwargs )
lefnire/tensorforce
tensorforce/core/optimizers/subsampling_step.py
Python
apache-2.0
4,026
# Filix marginalis var. marginalis VARIETY #### Status ACCEPTED #### According to NUB Generator [autonym] #### Published in null #### Original name null ### Remarks null
mdoering/backbone
life/Plantae/Pteridophyta/Polypodiopsida/Polypodiales/Dryopteridaceae/Dryopteris/Filix marginalis/Filix marginalis marginalis/README.md
Markdown
apache-2.0
174
#include <sstream> #include <utility> #include <deque> #include "opcode_func.h" #include "BaseDatapath.h" #include "ExecNode.h" #include "DatabaseDeps.h" BaseDatapath::BaseDatapath(std::string& bench, std::string& trace_file_name, std::string& config_file) : benchName(bench), current_trace_off(0) { parse_config(benchName, config_file); use_db = false; if (!fileExists(trace_file_name)) { std::cerr << "-------------------------------" << std::endl; std::cerr << " ERROR: Input Trace Not Found " << std::endl; std::cerr << "-------------------------------" << std::endl; std::cerr << "-------------------------------" << std::endl; std::cerr << " Aladdin Ends.. " << std::endl; std::cerr << "-------------------------------" << std::endl; exit(1); } std::string file_name = benchName + "_summary"; /* Remove the old file. */ if (access(file_name.c_str(), F_OK) != -1 && remove(file_name.c_str()) != 0) perror("Failed to delete the old summary file"); struct stat st; stat(trace_file_name.c_str(), &st); trace_size = st.st_size; trace_file = gzopen(trace_file_name.c_str(), "r"); } BaseDatapath::~BaseDatapath() { gzclose(trace_file); } bool BaseDatapath::buildDddg() { DDDG* dddg; dddg = new DDDG(this, trace_file); /* Build initial DDDG. */ current_trace_off = dddg->build_initial_dddg(current_trace_off, trace_size); if (labelmap.size() == 0) labelmap = dddg->get_labelmap(); delete dddg; if (current_trace_off == DDDG::END_OF_TRACE) return false; std::cout << "-------------------------------" << std::endl; std::cout << " Initializing BaseDatapath " << std::endl; std::cout << "-------------------------------" << std::endl; numTotalNodes = exec_nodes.size(); beginNodeId = exec_nodes.begin()->first; endNodeId = (--exec_nodes.end())->first + 1; vertexToName = get(boost::vertex_node_id, graph_); num_cycles = 0; return true; } void BaseDatapath::clearDatapath() { clearExecNodes(); clearFunctionName(); clearArrayBaseAddress(); clearLoopBound(); clearRegStats(); graph_.clear(); registers.clear(); call_argument_map.clear(); } void BaseDatapath::addDddgEdge(unsigned int from, unsigned int to, uint8_t parid) { if (from != to) { add_edge(exec_nodes.at(from)->get_vertex(), exec_nodes.at(to)->get_vertex(), EdgeProperty(parid), graph_); } } ExecNode* BaseDatapath::insertNode(unsigned node_id, uint8_t microop) { exec_nodes[node_id] = new ExecNode(node_id, microop); Vertex v = add_vertex(VertexProperty(node_id), graph_); exec_nodes.at(node_id)->set_vertex(v); assert(get(boost::vertex_node_id, graph_, v) == node_id); return exec_nodes.at(node_id); } void BaseDatapath::addCallArgumentMapping(DynamicVariable& callee_reg_id, DynamicVariable& caller_reg_id) { call_argument_map[callee_reg_id] = caller_reg_id; } DynamicVariable BaseDatapath::getCallerRegID(DynamicVariable& reg_id) { auto it = call_argument_map.find(reg_id); while (it != call_argument_map.end()) { reg_id = it->second; it = call_argument_map.find(reg_id); } return reg_id; } void BaseDatapath::memoryAmbiguation() { std::cout << "-------------------------------" << std::endl; std::cout << " Memory Ambiguation " << std::endl; std::cout << "-------------------------------" << std::endl; std::unordered_map<DynamicInstruction, ExecNode*> last_store; std::vector<newEdge> to_add_edges; for (auto node_it = exec_nodes.begin(); node_it != exec_nodes.end(); ++node_it) { ExecNode* node = node_it->second; if (!node->is_memory_op() || !node->has_vertex()) continue; in_edge_iter in_edge_it, in_edge_end; for (boost::tie(in_edge_it, in_edge_end) = in_edges(node->get_vertex(), graph_); in_edge_it != in_edge_end; ++in_edge_it) { Vertex parent_vertex = source(*in_edge_it, graph_); ExecNode* parent_node = getNodeFromVertex(parent_vertex); if (parent_node->get_microop() != LLVM_IR_GetElementPtr) continue; if (!parent_node->is_inductive()) { node->set_dynamic_mem_op(true); DynamicInstruction unique_id = node->get_dynamic_instruction(); auto prev_store_it = last_store.find(unique_id); if (prev_store_it != last_store.end()) to_add_edges.push_back({ prev_store_it->second, node, -1 }); if (node->is_store_op()) last_store[unique_id] = node; break; } } } updateGraphWithNewEdges(to_add_edges); } /* * Read: graph_ * Modify: graph_ */ void BaseDatapath::removePhiNodes() { std::cout << "-------------------------------" << std::endl; std::cout << " Remove PHI and Convert Nodes " << std::endl; std::cout << "-------------------------------" << std::endl; EdgeNameMap edge_to_parid = get(boost::edge_name, graph_); std::set<Edge> to_remove_edges; std::vector<newEdge> to_add_edges; std::unordered_set<ExecNode*> checked_phi_nodes; for (auto node_it = exec_nodes.rbegin(); node_it != exec_nodes.rend(); node_it++) { ExecNode* node = node_it->second; if (!node->has_vertex() || (node->get_microop() != LLVM_IR_PHI && !node->is_convert_op()) || (checked_phi_nodes.find(node) != checked_phi_nodes.end())) continue; Vertex node_vertex = node->get_vertex(); // find its children std::vector<std::pair<ExecNode*, int>> phi_child; out_edge_iter out_edge_it, out_edge_end; for (boost::tie(out_edge_it, out_edge_end) = out_edges(node_vertex, graph_); out_edge_it != out_edge_end; ++out_edge_it) { checked_phi_nodes.insert(node); to_remove_edges.insert(*out_edge_it); Vertex v = target(*out_edge_it, graph_); phi_child.push_back( std::make_pair(getNodeFromVertex(v), edge_to_parid[*out_edge_it])); } if (phi_child.size() == 0 || boost::in_degree(node_vertex, graph_) == 0) continue; if (node->get_microop() == LLVM_IR_PHI) { // find its first non-phi ancestor. // phi node can have multiple children, but it can only have one parent. assert(boost::in_degree(node_vertex, graph_) == 1); in_edge_iter in_edge_it = in_edges(node_vertex, graph_).first; Vertex parent_vertex = source(*in_edge_it, graph_); ExecNode* nonphi_ancestor = getNodeFromVertex(parent_vertex); // Search for the first non-phi ancestor of the current phi node. while (nonphi_ancestor->get_microop() == LLVM_IR_PHI) { checked_phi_nodes.insert(nonphi_ancestor); assert(nonphi_ancestor->has_vertex()); Vertex parent_vertex = nonphi_ancestor->get_vertex(); if (boost::in_degree(parent_vertex, graph_) == 0) break; to_remove_edges.insert(*in_edge_it); in_edge_it = in_edges(parent_vertex, graph_).first; parent_vertex = source(*in_edge_it, graph_); nonphi_ancestor = getNodeFromVertex(parent_vertex); } to_remove_edges.insert(*in_edge_it); if (nonphi_ancestor->get_microop() != LLVM_IR_PHI) { // Add dependence between the current phi node's children and its first // non-phi ancestor. for (auto child_it = phi_child.begin(), chil_E = phi_child.end(); child_it != chil_E; ++child_it) { to_add_edges.push_back( { nonphi_ancestor, child_it->first, child_it->second }); } } } else { // convert nodes assert(boost::in_degree(node_vertex, graph_) == 1); in_edge_iter in_edge_it = in_edges(node_vertex, graph_).first; Vertex parent_vertex = source(*in_edge_it, graph_); ExecNode* nonphi_ancestor = getNodeFromVertex(parent_vertex); while (nonphi_ancestor->is_convert_op()) { checked_phi_nodes.insert(nonphi_ancestor); Vertex parent_vertex = nonphi_ancestor->get_vertex(); if (boost::in_degree(parent_vertex, graph_) == 0) break; to_remove_edges.insert(*in_edge_it); in_edge_it = in_edges(parent_vertex, graph_).first; parent_vertex = source(*in_edge_it, graph_); nonphi_ancestor = getNodeFromVertex(parent_vertex); } to_remove_edges.insert(*in_edge_it); if (!nonphi_ancestor->is_convert_op()) { for (auto child_it = phi_child.begin(), chil_E = phi_child.end(); child_it != chil_E; ++child_it) { to_add_edges.push_back( { nonphi_ancestor, child_it->first, child_it->second }); } } } std::vector<std::pair<ExecNode*, int>>().swap(phi_child); } updateGraphWithIsolatedEdges(to_remove_edges); updateGraphWithNewEdges(to_add_edges); cleanLeafNodes(); } /* * Read: lineNum.gz, flattenConfig * Modify: graph_ */ void BaseDatapath::loopFlatten() { if (!unrolling_config.size()) return; std::cout << "-------------------------------" << std::endl; std::cout << " Loop Flatten " << std::endl; std::cout << "-------------------------------" << std::endl; std::vector<unsigned> to_remove_nodes; for (auto node_it = exec_nodes.begin(); node_it != exec_nodes.end(); ++node_it) { ExecNode* node = node_it->second; auto config_it = getUnrollFactor(node); if (config_it == unrolling_config.end() || config_it->second != 0) continue; if (node->is_compute_op()) node->set_microop(LLVM_IR_Move); else if (node->is_branch_op()) to_remove_nodes.push_back(node->get_node_id()); } updateGraphWithIsolatedNodes(to_remove_nodes); cleanLeafNodes(); } void BaseDatapath::cleanLeafNodes() { EdgeNameMap edge_to_parid = get(boost::edge_name, graph_); /*track the number of children each node has*/ std::map<unsigned, int> num_of_children; for (auto& node_it : exec_nodes) num_of_children[node_it.first] = 0; std::vector<unsigned> to_remove_nodes; std::vector<Vertex> topo_nodes; boost::topological_sort(graph_, std::back_inserter(topo_nodes)); // bottom nodes first for (auto vi = topo_nodes.begin(); vi != topo_nodes.end(); ++vi) { Vertex node_vertex = *vi; if (boost::degree(node_vertex, graph_) == 0) continue; unsigned node_id = vertexToName[node_vertex]; ExecNode* node = exec_nodes.at(node_id); int node_microop = node->get_microop(); if (num_of_children.at(node_id) == boost::out_degree(node_vertex, graph_) && node_microop != LLVM_IR_SilentStore && node_microop != LLVM_IR_Store && node_microop != LLVM_IR_Ret && !node->is_branch_op() && !node->is_dma_store()) { to_remove_nodes.push_back(node_id); // iterate its parents in_edge_iter in_edge_it, in_edge_end; for (boost::tie(in_edge_it, in_edge_end) = in_edges(node_vertex, graph_); in_edge_it != in_edge_end; ++in_edge_it) { int parent_id = vertexToName[source(*in_edge_it, graph_)]; num_of_children.at(parent_id)++; } } else if (node->is_branch_op()) { // iterate its parents in_edge_iter in_edge_it, in_edge_end; for (boost::tie(in_edge_it, in_edge_end) = in_edges(node_vertex, graph_); in_edge_it != in_edge_end; ++in_edge_it) { if (edge_to_parid[*in_edge_it] == CONTROL_EDGE) { int parent_id = vertexToName[source(*in_edge_it, graph_)]; num_of_children.at(parent_id)++; } } } } updateGraphWithIsolatedNodes(to_remove_nodes); } /* * Read: graph_, instid */ void BaseDatapath::removeInductionDependence() { // set graph std::cout << "-------------------------------" << std::endl; std::cout << " Remove Induction Dependence " << std::endl; std::cout << "-------------------------------" << std::endl; EdgeNameMap edge_to_parid = get(boost::edge_name, graph_); for (auto node_it = exec_nodes.begin(); node_it != exec_nodes.end(); ++node_it) { ExecNode* node = node_it->second; // Revert the inductive flag to false. This guarantees that no child node // of this node can mistakenly think its parent is inductive. node->set_inductive(false); if (!node->has_vertex() || node->is_memory_op()) continue; src_id_t node_instid = node->get_static_inst_id(); if (srcManager.get<Instruction>(node_instid).is_inductive()) { node->set_inductive(true); if (node->is_int_add_op()) node->set_microop(LLVM_IR_IndexAdd); else if (node->is_int_mul_op()) node->set_microop(LLVM_IR_Shl); } else { /* If all the parents are inductive, then the current node is inductive.*/ bool all_inductive = true; /* If one of the parent is inductive, and the operation is an integer mul, * do strength reduction that converts the mul/div to a shifter.*/ bool any_inductive = false; in_edge_iter in_edge_it, in_edge_end; for (boost::tie(in_edge_it, in_edge_end) = in_edges(node->get_vertex(), graph_); in_edge_it != in_edge_end; ++in_edge_it) { Vertex parent_vertex = source(*in_edge_it, graph_); ExecNode* parent_node = getNodeFromVertex(parent_vertex); if (edge_to_parid[*in_edge_it] == CONTROL_EDGE) { Vertex vertex = node->get_vertex(); //std::cout << "CONTROL_EDGE: " // << vertex_to_string(parent_vertex) << " -> " // << vertex_to_string(vertex) // << std::endl; continue; } // TODO move inits back here if (!parent_node->is_inductive()) { all_inductive = false; } else { any_inductive = true; } } if (all_inductive) { node->set_inductive(true); if (node->is_int_add_op()) node->set_microop(LLVM_IR_IndexAdd); else if (node->is_int_mul_op()) node->set_microop(LLVM_IR_Shl); } else if (any_inductive) { if (node->is_int_mul_op()) node->set_microop(LLVM_IR_Shl); } } } } // called in the end of the whole flow void BaseDatapath::dumpStats() { rescheduleNodesWhenNeeded(); updateRegStats(); writePerCycleActivity(); #ifdef DEBUG dumpGraph(benchName); writeOtherStats(); #endif } void BaseDatapath::loopPipelining() { if (!pipelining) { std::cerr << "Loop Pipelining is not ON." << std::endl; return; } if (!unrolling_config.size()) { std::cerr << "Loop Unrolling is not defined. " << std::endl; std::cerr << "Loop pipelining is only applied to unrolled loops." << std::endl; return; } if (loopBound.size() <= 2) return; std::cout << "-------------------------------" << std::endl; std::cout << " Loop Pipelining " << std::endl; std::cout << "-------------------------------" << std::endl; EdgeNameMap edge_to_parid = get(boost::edge_name, graph_); vertex_iter vi, vi_end; std::set<Edge> to_remove_edges; std::vector<newEdge> to_add_edges; // After loop unrolling, we define strict control dependences between basic // block, where all the instructions in the following basic block depend on // the prev branch instruction To support loop pipelining, which allows the // next iteration starting without waiting until the prev iteration finish, // we move the control dependences between last branch node in the prev basic // block and instructions in the next basic block to first non isolated // instruction in the prev basic block and instructions in the next basic // block... // TODO: Leave first_non_isolated_node as storing node ids for now. Once I've // gotten everything else working, I'll come back to this. std::map<unsigned, unsigned> first_non_isolated_node; auto bound_it = loopBound.begin(); auto node_it = exec_nodes.begin(); ExecNode* curr_node = exec_nodes.at(*bound_it); bound_it++; // skip first region while (node_it != exec_nodes.end()) { assert(exec_nodes.at(*bound_it)->is_branch_op()); while (node_it != exec_nodes.end() && node_it->first < *bound_it) { curr_node = node_it->second; if (!curr_node->has_vertex() || boost::degree(curr_node->get_vertex(), graph_) == 0 || curr_node->is_branch_op()) { ++node_it; continue; } else { first_non_isolated_node[*bound_it] = curr_node->get_node_id(); node_it = exec_nodes.find(*bound_it); assert(node_it != exec_nodes.end()); break; } } if (first_non_isolated_node.find(*bound_it) == first_non_isolated_node.end()) first_non_isolated_node[*bound_it] = *bound_it; bound_it++; if (bound_it == loopBound.end() - 1) break; } ExecNode* prev_branch_n = nullptr; ExecNode* prev_first_n = nullptr; for (auto first_it = first_non_isolated_node.begin(), E = first_non_isolated_node.end(); first_it != E; ++first_it) { ExecNode* br_node = exec_nodes.at(first_it->first); ExecNode* first_node = exec_nodes.at(first_it->second); bool found = false; auto unroll_it = getUnrollFactor(br_node); /* We only want to pipeline loop iterations that are from the same unrolled * loop. Here we first check the current basic block is part of an unrolled * loop iteration. */ if (unroll_it != unrolling_config.end()) { // check whether the previous branch is the same loop or not if (prev_branch_n != nullptr) { if ((br_node->get_line_num() == prev_branch_n->get_line_num()) && (br_node->get_static_function_id() == prev_branch_n->get_static_function_id()) && first_node->get_line_num() == prev_first_n->get_line_num()) { found = true; } } } /* We only pipeline matching loop iterations. */ if (!found) { prev_branch_n = br_node; prev_first_n = first_node; continue; } // adding dependence between prev_first and first_id if (!doesEdgeExist(prev_first_n, first_node)) to_add_edges.push_back({ prev_first_n, first_node, CONTROL_EDGE }); // adding dependence between first_id and prev_branch's children assert(prev_branch_n->has_vertex()); out_edge_iter out_edge_it, out_edge_end; for (boost::tie(out_edge_it, out_edge_end) = out_edges(prev_branch_n->get_vertex(), graph_); out_edge_it != out_edge_end; ++out_edge_it) { Vertex child_vertex = target(*out_edge_it, graph_); ExecNode* child_node = getNodeFromVertex(child_vertex); if (*child_node < *first_node || edge_to_parid[*out_edge_it] != CONTROL_EDGE) continue; if (!doesEdgeExist(first_node, child_node)) to_add_edges.push_back({ first_node, child_node, 1 }); } // update first_id's parents, dependence become strict control dependence assert(first_node->has_vertex()); in_edge_iter in_edge_it, in_edge_end; for (boost::tie(in_edge_it, in_edge_end) = in_edges(first_node->get_vertex(), graph_); in_edge_it != in_edge_end; ++in_edge_it) { Vertex parent_vertex = source(*in_edge_it, graph_); ExecNode* parent_node = getNodeFromVertex(parent_vertex); // unsigned parent_id = vertexToName[parent_vertex]; if (parent_node->is_branch_op()) continue; to_remove_edges.insert(*in_edge_it); to_add_edges.push_back({ parent_node, first_node, CONTROL_EDGE }); } // remove control dependence between prev br node to its children assert(prev_branch_n->has_vertex()); for (boost::tie(out_edge_it, out_edge_end) = out_edges(prev_branch_n->get_vertex(), graph_); out_edge_it != out_edge_end; ++out_edge_it) { if (exec_nodes.at(vertexToName[target(*out_edge_it, graph_)])->is_call_op()) continue; if (edge_to_parid[*out_edge_it] != CONTROL_EDGE) continue; to_remove_edges.insert(*out_edge_it); } prev_branch_n = br_node; prev_first_n = first_node; } updateGraphWithNewEdges(to_add_edges); updateGraphWithIsolatedEdges(to_remove_edges); cleanLeafNodes(); } /* * Read: graph_, lineNum.gz, unrollingConfig * Modify: graph_ * Write: loop_bound */ void BaseDatapath::loopUnrolling() { if (!unrolling_config.size()) { std::cerr << "No loop unrolling configs found." << std::endl; return; } std::cout << "-------------------------------" << std::endl; std::cout << " Loop Unrolling " << std::endl; std::cout << "-------------------------------" << std::endl; using inst_id_t = std::pair<uint8_t, int>; std::vector<unsigned> to_remove_nodes; std::map<inst_id_t, unsigned> inst_dynamic_counts; std::vector<ExecNode*> nodes_between; std::vector<newEdge> to_add_edges; bool first = false; int iter_counts = 0; ExecNode* prev_branch = nullptr; for (auto node_it = exec_nodes.begin(); node_it != exec_nodes.end(); ++node_it) { ExecNode* node = node_it->second; if (!node->has_vertex()) continue; Vertex node_vertex = node->get_vertex(); // We let all the branch nodes proceed to the unrolling handling no matter // whether they are isolated or not. Although most of the branch nodes are // connected anyway, one exception is unconditional branch that is not // dependent on any nodes. The is_branch_op() check can let the // unconditional branch proceed. if (boost::degree(node_vertex, graph_) == 0 && !node->is_branch_op()) continue; if (ready_mode && node->is_dma_load()) continue; unsigned node_id = node->get_node_id(); if (!first) { // prev_branch should not be anything but a branch node. if (node->is_branch_op()) { first = true; loopBound.push_back(node_id); prev_branch = node; } else { continue; } } assert(prev_branch != nullptr); // We should never add control edges to DMA nodes. They should be // constrained by memory dependences only. if (prev_branch != node && !node->is_dma_op()) { to_add_edges.push_back({ prev_branch, node, CONTROL_EDGE }); } // If the current node is not a branch node, it will not be a boundary node. if (!node->is_branch_op()) { if (!node->is_dma_op()) nodes_between.push_back(node); } else { // for the case that the first non-isolated node is also a call node; if (node->is_call_op() && *loopBound.rbegin() != node_id) { loopBound.push_back(node_id); prev_branch = node; } auto unroll_it = getUnrollFactor(node); if (unroll_it == unrolling_config.end() || unroll_it->second == 0) { // not unrolling branch if (!node->is_call_op() && !node->is_dma_op()) { nodes_between.push_back(node); continue; } if (!doesEdgeExist(prev_branch, node) && !node->is_dma_op()) { // Enforce dependences between branch nodes, including call nodes to_add_edges.push_back({ prev_branch, node, CONTROL_EDGE }); } for (auto prev_node_it = nodes_between.begin(), E = nodes_between.end(); prev_node_it != E; prev_node_it++) { if (!doesEdgeExist(*prev_node_it, node)) { to_add_edges.push_back({ *prev_node_it, node, CONTROL_EDGE }); } } nodes_between.clear(); nodes_between.push_back(node); prev_branch = node; } else { // unrolling the branch // Counting number of loop iterations. int factor = unroll_it->second; inst_id_t unique_inst_id = std::make_pair(node->get_microop(), node->get_line_num()); auto it = inst_dynamic_counts.find(unique_inst_id); if (it == inst_dynamic_counts.end()) { inst_dynamic_counts[unique_inst_id] = 0; it = inst_dynamic_counts.find(unique_inst_id); } else { it->second++; } if (it->second % factor == 0) { if (*loopBound.rbegin() != node_id) { loopBound.push_back(node_id); } iter_counts++; for (auto prev_node_it = nodes_between.begin(), E = nodes_between.end(); prev_node_it != E; prev_node_it++) { if (!doesEdgeExist(*prev_node_it, node)) { to_add_edges.push_back({ *prev_node_it, node, CONTROL_EDGE }); } } nodes_between.clear(); nodes_between.push_back(node); prev_branch = node; } else { to_remove_nodes.push_back(node_id); } } } } loopBound.push_back(numTotalNodes); if (iter_counts == 0 && unrolling_config.size() != 0) { std::cerr << "-------------------------------\n" << "Loop Unrolling was NOT applied.\n" << "Either loop labels or line numbers are incorrect, or the\n" << "loop unrolling factor is larger than the loop trip count.\n" << "-------------------------------" << std::endl; } updateGraphWithNewEdges(to_add_edges); updateGraphWithIsolatedNodes(to_remove_nodes); cleanLeafNodes(); } /* * Read: loop_bound, flattenConfig, graph, actualAddress * Modify: graph_ */ void BaseDatapath::removeSharedLoads() { if (!unrolling_config.size() && loopBound.size() <= 2) return; std::cout << "-------------------------------" << std::endl; std::cout << " Load Buffer " << std::endl; std::cout << "-------------------------------" << std::endl; EdgeNameMap edge_to_parid = get(boost::edge_name, graph_); vertex_iter vi, vi_end; std::set<Edge> to_remove_edges; std::vector<newEdge> to_add_edges; int shared_loads = 0; auto bound_it = loopBound.begin(); auto node_it = exec_nodes.begin(); while (node_it != exec_nodes.end()) { std::unordered_map<unsigned, ExecNode*> address_loaded; while (node_it->first < *bound_it && node_it != exec_nodes.end()) { ExecNode* node = node_it->second; if (!node->has_vertex() || boost::degree(node->get_vertex(), graph_) == 0 || !node->is_memory_op()) { node_it++; continue; } long long int node_address = node->get_mem_access()->vaddr; auto addr_it = address_loaded.find(node_address); if (node->is_store_op() && addr_it != address_loaded.end()) { address_loaded.erase(addr_it); } else if (node->is_load_op()) { if (addr_it == address_loaded.end()) { address_loaded[node_address] = node; } else { // check whether the current load is dynamic or not. if (node->is_dynamic_mem_op()) { ++node_it; continue; } shared_loads++; node->set_microop(LLVM_IR_Move); ExecNode* prev_load = addr_it->second; // iterate through its children Vertex load_node = node->get_vertex(); out_edge_iter out_edge_it, out_edge_end; for (boost::tie(out_edge_it, out_edge_end) = out_edges(load_node, graph_); out_edge_it != out_edge_end; ++out_edge_it) { Edge curr_edge = *out_edge_it; Vertex child_vertex = target(curr_edge, graph_); assert(prev_load->has_vertex()); Vertex prev_load_vertex = prev_load->get_vertex(); if (!doesEdgeExistVertex(prev_load_vertex, child_vertex)) { ExecNode* child_node = getNodeFromVertex(child_vertex); to_add_edges.push_back( { prev_load, child_node, edge_to_parid[curr_edge] }); } to_remove_edges.insert(*out_edge_it); } in_edge_iter in_edge_it, in_edge_end; for (boost::tie(in_edge_it, in_edge_end) = in_edges(load_node, graph_); in_edge_it != in_edge_end; ++in_edge_it) to_remove_edges.insert(*in_edge_it); } } node_it++; } bound_it++; if (bound_it == loopBound.end()) break; } updateGraphWithNewEdges(to_add_edges); updateGraphWithIsolatedEdges(to_remove_edges); cleanLeafNodes(); } /* * Read: loopBound, flattenConfig, graph_, instid, dynamicMethodID, * prevBasicBlock * Modify: graph_ */ void BaseDatapath::storeBuffer() { if (loopBound.size() <= 2) return; std::cout << "-------------------------------" << std::endl; std::cout << " Store Buffer " << std::endl; std::cout << "-------------------------------" << std::endl; EdgeNameMap edge_to_parid = get(boost::edge_name, graph_); std::vector<newEdge> to_add_edges; std::vector<unsigned> to_remove_nodes; auto bound_it = loopBound.begin(); auto node_it = exec_nodes.begin(); while (node_it != exec_nodes.end()) { while (node_it->first < *bound_it && node_it != exec_nodes.end()) { ExecNode* node = node_it->second; if (!node->has_vertex() || boost::degree(node->get_vertex(), graph_) == 0) { ++node_it; continue; } if (node->is_store_op()) { // remove this store, unless it is a dynamic store which cannot be // statically disambiguated. if (node->is_dynamic_mem_op()) { ++node_it; continue; } Vertex node_vertex = node->get_vertex(); out_edge_iter out_edge_it, out_edge_end; std::vector<Vertex> store_child; for (boost::tie(out_edge_it, out_edge_end) = out_edges(node_vertex, graph_); out_edge_it != out_edge_end; ++out_edge_it) { Vertex child_vertex = target(*out_edge_it, graph_); ExecNode* child_node = getNodeFromVertex(child_vertex); if (child_node->is_load_op()) { if (child_node->is_dynamic_mem_op() || child_node->get_node_id() >= (unsigned)*bound_it) continue; else store_child.push_back(child_vertex); } } if (store_child.size() > 0) { bool parent_found = false; Vertex store_parent; in_edge_iter in_edge_it, in_edge_end; for (boost::tie(in_edge_it, in_edge_end) = in_edges(node_vertex, graph_); in_edge_it != in_edge_end; ++in_edge_it) { // parent node that generates value if (edge_to_parid[*in_edge_it] == 1) { parent_found = true; store_parent = source(*in_edge_it, graph_); break; } } if (parent_found) { for (auto load_it = store_child.begin(), E = store_child.end(); load_it != E; ++load_it) { Vertex load_node = *load_it; to_remove_nodes.push_back(vertexToName[load_node]); out_edge_iter out_edge_it, out_edge_end; for (boost::tie(out_edge_it, out_edge_end) = out_edges(load_node, graph_); out_edge_it != out_edge_end; ++out_edge_it) { Vertex target_vertex = target(*out_edge_it, graph_); to_add_edges.push_back({ getNodeFromVertex(store_parent), getNodeFromVertex(target_vertex), edge_to_parid[*out_edge_it] }); } } } } } ++node_it; } ++bound_it; if (bound_it == loopBound.end()) break; } updateGraphWithNewEdges(to_add_edges); updateGraphWithIsolatedNodes(to_remove_nodes); cleanLeafNodes(); } /* * Read: loopBound, flattenConfig, graph_, address, instid, dynamicMethodID, * prevBasicBlock * Modify: graph_ */ void BaseDatapath::removeRepeatedStores() { if (!unrolling_config.size() && loopBound.size() <= 2) return; std::cout << "-------------------------------" << std::endl; std::cout << " Remove Repeated Store " << std::endl; std::cout << "-------------------------------" << std::endl; EdgeNameMap edge_to_parid = get(boost::edge_name, graph_); int node_id = numTotalNodes - 1; auto bound_it = loopBound.end(); bound_it--; bound_it--; while (node_id >= 0) { std::unordered_map<unsigned, int> address_store_map; while (node_id >= *bound_it && node_id >= 0) { ExecNode* node = exec_nodes.at(node_id); if (!node->has_vertex() || boost::degree(node->get_vertex(), graph_) == 0 || !node->is_store_op()) { --node_id; continue; } long long int node_address = node->get_mem_access()->vaddr; auto addr_it = address_store_map.find(node_address); if (addr_it == address_store_map.end()) address_store_map[node_address] = node_id; else { // remove this store, unless it is a dynamic store which cannot be // statically disambiguated. if (node->is_dynamic_mem_op()) { if (boost::out_degree(node->get_vertex(), graph_) == 0) { node->set_microop(LLVM_IR_SilentStore); } else { int num_of_real_children = 0; out_edge_iter out_edge_it, out_edge_end; for (boost::tie(out_edge_it, out_edge_end) = out_edges(node->get_vertex(), graph_); out_edge_it != out_edge_end; ++out_edge_it) { if (edge_to_parid[*out_edge_it] != CONTROL_EDGE) num_of_real_children++; } if (num_of_real_children == 0) { node->set_microop(LLVM_IR_SilentStore); } } } } --node_id; } if (bound_it == loopBound.begin()) break; --bound_it; } cleanLeafNodes(); } /* * Read: loopBound, flattenConfig, graph_ * Modify: graph_ */ void BaseDatapath::treeHeightReduction() { if (loopBound.size() <= 2) return; std::cout << "-------------------------------" << std::endl; std::cout << " Tree Height Reduction " << std::endl; std::cout << "-------------------------------" << std::endl; EdgeNameMap edge_to_parid = get(boost::edge_name, graph_); std::map<unsigned, bool> updated; std::map<unsigned, int> bound_region; for (auto node_pair : exec_nodes) { updated[node_pair.first] = false; bound_region[node_pair.first] = 0; } int region_id = 0; auto node_it = exec_nodes.begin(); unsigned node_id = node_it->first; auto bound_it = loopBound.begin(); while (node_id <= *bound_it && node_it != exec_nodes.end()) { bound_region.at(node_id) = region_id; if (node_id == *bound_it) { region_id++; bound_it++; if (bound_it == loopBound.end()) break; } node_it++; node_id = node_it->first; } std::set<Edge> to_remove_edges; std::vector<newEdge> to_add_edges; // nodes with no outgoing edges to first (bottom nodes first) for (auto node_it = exec_nodes.rbegin(); node_it != exec_nodes.rend(); ++node_it) { ExecNode* node = node_it->second; if (!node->has_vertex() || boost::degree(node->get_vertex(), graph_) == 0 || updated.at(node->get_node_id()) || !node->is_associative()) continue; unsigned node_id = node->get_node_id(); updated.at(node_id) = 1; int node_region = bound_region.at(node_id); std::list<ExecNode*> nodes; std::vector<Edge> tmp_remove_edges; std::vector<std::pair<ExecNode*, bool>> leaves; std::vector<ExecNode*> associative_chain; associative_chain.push_back(node); int chain_id = 0; while (chain_id < associative_chain.size()) { ExecNode* chain_node = associative_chain[chain_id]; if (chain_node->is_associative()) { updated.at(chain_node->get_node_id()) = 1; int num_of_chain_parents = 0; in_edge_iter in_edge_it, in_edge_end; for (boost::tie(in_edge_it, in_edge_end) = in_edges(chain_node->get_vertex(), graph_); in_edge_it != in_edge_end; ++in_edge_it) { if (edge_to_parid[*in_edge_it] == CONTROL_EDGE) continue; num_of_chain_parents++; } if (num_of_chain_parents == 2) { nodes.push_front(chain_node); for (boost::tie(in_edge_it, in_edge_end) = in_edges(chain_node->get_vertex(), graph_); in_edge_it != in_edge_end; ++in_edge_it) { if (edge_to_parid[*in_edge_it] == CONTROL_EDGE) continue; Vertex parent_vertex = source(*in_edge_it, graph_); int parent_id = vertexToName[parent_vertex]; ExecNode* parent_node = getNodeFromVertex(parent_vertex); assert(*parent_node < *chain_node); Edge curr_edge = *in_edge_it; tmp_remove_edges.push_back(curr_edge); int parent_region = bound_region.at(parent_id); if (parent_region == node_region) { updated.at(parent_id) = 1; if (!parent_node->is_associative()) leaves.push_back(std::make_pair(parent_node, false)); else { out_edge_iter out_edge_it, out_edge_end; int num_of_children = 0; for (boost::tie(out_edge_it, out_edge_end) = out_edges(parent_vertex, graph_); out_edge_it != out_edge_end; ++out_edge_it) { if (edge_to_parid[*out_edge_it] != CONTROL_EDGE) num_of_children++; } if (num_of_children == 1) associative_chain.push_back(parent_node); else leaves.push_back(std::make_pair(parent_node, false)); } } else { leaves.push_back(std::make_pair(parent_node, true)); } } } else { /* Promote the single parent node with higher priority. This affects * mostly the top of the graph where no parent exists. */ leaves.push_back(std::make_pair(chain_node, true)); } } else { leaves.push_back(std::make_pair(chain_node, false)); } chain_id++; } // build the tree if (nodes.size() < 3) continue; for (auto it = tmp_remove_edges.begin(), E = tmp_remove_edges.end(); it != E; it++) to_remove_edges.insert(*it); std::map<ExecNode*, unsigned> rank_map; auto leaf_it = leaves.begin(); while (leaf_it != leaves.end()) { if (leaf_it->second == false) rank_map[leaf_it->first] = beginNodeId; else rank_map[leaf_it->first] = endNodeId; ++leaf_it; } // reconstruct the rest of the balanced tree // TODO: Find a better name for this. auto new_node_it = nodes.begin(); while (new_node_it != nodes.end()) { ExecNode* node1 = nullptr; ExecNode* node2 = nullptr; if (rank_map.size() == 2) { node1 = rank_map.begin()->first; node2 = (++rank_map.begin())->first; } else { findMinRankNodes(&node1, &node2, rank_map); } // TODO: Is this at all possible...? assert((node1->get_node_id() != endNodeId) && (node2->get_node_id() != endNodeId)); to_add_edges.push_back({ node1, *new_node_it, 1 }); to_add_edges.push_back({ node2, *new_node_it, 1 }); // place the new node in the map, remove the two old nodes rank_map[*new_node_it] = std::max(rank_map[node1], rank_map[node2]) + 1; rank_map.erase(node1); rank_map.erase(node2); ++new_node_it; } } /*For tree reduction, we always remove edges first, then add edges. The reason * is that it's possible that we are adding the same edges as the edges that * we want to remove. Doing adding edges first then removing edges could lead * to losing dependences.*/ updateGraphWithIsolatedEdges(to_remove_edges); updateGraphWithNewEdges(to_add_edges); cleanLeafNodes(); } bool BaseDatapath::hasInductiveParent(ExecNode * const node) { in_edge_iter in_edge_it, in_edge_end; for (boost::tie(in_edge_it, in_edge_end) = in_edges(node->get_vertex(), graph_); in_edge_it != in_edge_end; ++in_edge_it) { Vertex parent_vertex = source(*in_edge_it, graph_); ExecNode* parent_node = getNodeFromVertex(parent_vertex); if (parent_node->is_inductive()) return true; } return false; } BaseDatapath::LoopConditionalDependenceChain BaseDatapath::findParentLoopConditionalBranch(Vertex src) { in_edge_iter in_edge_it, in_edge_end; // To keep track of the chain of dependencies std::map<Vertex, Vertex> parents; std::set<Vertex> visited_nodes; std::deque<Vertex> parent_node_worklists; parent_node_worklists.push_back(src); // Do BFS to find earlist CD parent branch which has an inductive parent while (!parent_node_worklists.empty()) { Vertex vertex = parent_node_worklists.front(); parent_node_worklists.pop_front(); // Ignore vertices we have seen already if (visited_nodes.find(vertex) != visited_nodes.end()) continue; ExecNode * const node = getNodeFromVertex(vertex); for (boost::tie(in_edge_it, in_edge_end) = in_edges(node->get_vertex(), graph_); in_edge_it != in_edge_end; ++in_edge_it) { Vertex parent_vertex = source(*in_edge_it, graph_); ExecNode* parent_node = getNodeFromVertex(parent_vertex); // TODO: Unsure about indirect branches if (parent_node->get_microop() != LLVM_IR_Br || parent_node->get_microop() != LLVM_IR_IndirectBr) continue; if (hasInductiveParent(parent_node)) { // Done search. Return the earlist CD branch with an inductive parent //return parent_vertex; return LoopConditionalDependenceChain(src, parent_vertex, parents); } else { // Add the parent vertex to the worklist parent_node_worklists.push_back(parent_vertex); parents[parent_vertex] = vertex; } } visited_nodes.insert(vertex); } assert(false && "findParentLoopConditionalBranch: Expected node to be CD on " "inductive branch"); } void BaseDatapath::stallControlDependentStores() { std::vector<newEdge> to_add_edges; std::vector<newEdge> to_remove_edges; // Store the loop conditional branch on which each loop store is // control dependent std::unordered_map<DynamicInstruction, ExecNode*> cd_loop_cond; for (auto node_it = exec_nodes.begin(); node_it != exec_nodes.end(); ++node_it) { ExecNode* node = node_it->second; Vertex vertex = node->get_vertex(); // We only care about stores that are non-inductive ?? if (!node->is_memory_op() || !node->has_vertex() || !node->is_dynamic_mem_op()) continue; LCDChain parent_vertex_branch = findParentLoopConditionalBranch(vertex); } } std::string BaseDatapath::vertex_to_string(const Vertex &vertex) const { return node_to_string(exec_nodes.at(get(boost::vertex_node_id, graph_, vertex))); } std::string BaseDatapath::node_to_string(ExecNode * const node) const { const int node_id = node->get_node_id(); const int microop = node->get_microop(); std::string microop_str = string_of_op(microop); std::string mem_target_str = ""; if (node->is_memory_op()) { mem_target_str = ": " + node->get_array_label(); } return std::to_string(node_id) + "~" + microop_str + mem_target_str; } std::vector<Vertex> BaseDatapath::findInductivePhis() { std::vector<Vertex> inductive_phis; for (auto node_it = exec_nodes.rbegin(); node_it != exec_nodes.rend(); node_it++) { ExecNode* node = node_it->second; if (!node->has_vertex() || (node->get_microop() != LLVM_IR_PHI && !node->is_convert_op())) continue; Vertex node_vertex = node->get_vertex(); if (node->is_inductive()) inductive_phis.push_back(node_vertex); else if (hasInductiveParent(node)) inductive_phis.push_back(node_vertex); } return inductive_phis; } void BaseDatapath::findMinRankNodes(ExecNode** node1, ExecNode** node2, std::map<ExecNode*, unsigned>& rank_map) { unsigned min_rank = endNodeId; for (auto it = rank_map.begin(); it != rank_map.end(); ++it) { int node_rank = it->second; if (node_rank < min_rank) { *node1 = it->first; min_rank = node_rank; } } min_rank = endNodeId; for (auto it = rank_map.begin(); it != rank_map.end(); ++it) { int node_rank = it->second; if ((it->first != *node1) && (node_rank < min_rank)) { *node2 = it->first; min_rank = node_rank; } } } void BaseDatapath::updateGraphWithNewEdges(std::vector<newEdge>& to_add_edges) { std::cout << " Adding " << to_add_edges.size() << " new edges.\n"; for (auto it = to_add_edges.begin(); it != to_add_edges.end(); ++it) { if (*it->from != *it->to && !doesEdgeExist(it->from, it->to)) { get(boost::edge_name, graph_)[add_edge( it->from->get_vertex(), it->to->get_vertex(), graph_).first] = it->parid; } } } void BaseDatapath::updateGraphWithIsolatedNodes( std::vector<unsigned>& to_remove_nodes) { std::cout << " Removing " << to_remove_nodes.size() << " isolated nodes.\n"; for (auto it = to_remove_nodes.begin(); it != to_remove_nodes.end(); ++it) { clear_vertex(exec_nodes.at(*it)->get_vertex(), graph_); } } void BaseDatapath::updateGraphWithIsolatedEdges( std::set<Edge>& to_remove_edges) { std::cout << " Removing " << to_remove_edges.size() << " edges.\n"; for (auto it = to_remove_edges.begin(), E = to_remove_edges.end(); it != E; ++it) remove_edge(*it, graph_); } /* * Write per cycle activity to bench_stats. The format is: * cycle_num,num-of-muls,num-of-adds,num-of-bitwise-ops,num-of-reg-reads,num-of-reg-writes * If it is called from ScratchpadDatapath, it also outputs per cycle memory * activity for each partitioned array. */ void BaseDatapath::writePerCycleActivity() { /* Activity per function in the code. Indexed by function names. */ std::unordered_map<std::string, std::vector<funcActivity>> func_activity; std::unordered_map<std::string, funcActivity> func_max_activity; /* Activity per array. Indexed by array names. */ std::unordered_map<std::string, std::vector<memActivity>> mem_activity; std::vector<std::string> comp_partition_names; std::vector<std::string> mem_partition_names; registers.getRegisterNames(comp_partition_names); getMemoryBlocks(mem_partition_names); initPerCycleActivity(comp_partition_names, mem_partition_names, mem_activity, func_activity, func_max_activity, num_cycles); updatePerCycleActivity(mem_activity, func_activity, func_max_activity); outputPerCycleActivity(comp_partition_names, mem_partition_names, mem_activity, func_activity, func_max_activity); } void BaseDatapath::initPerCycleActivity( std::vector<std::string>& comp_partition_names, std::vector<std::string>& mem_partition_names, std::unordered_map<std::string, std::vector<memActivity>>& mem_activity, std::unordered_map<std::string, std::vector<funcActivity>>& func_activity, std::unordered_map<std::string, funcActivity>& func_max_activity, int num_cycles) { for (auto it = comp_partition_names.begin(); it != comp_partition_names.end(); ++it) { mem_activity.insert( { *it, std::vector<memActivity>(num_cycles, { 0, 0 }) }); } for (auto it = mem_partition_names.begin(); it != mem_partition_names.end(); ++it) { mem_activity.insert( { *it, std::vector<memActivity>(num_cycles, { 0, 0 }) }); } for (auto it = functionNames.begin(); it != functionNames.end(); ++it) { funcActivity tmp; func_activity.insert({ *it, std::vector<funcActivity>(num_cycles, tmp) }); func_max_activity.insert({ *it, tmp }); } } void BaseDatapath::updatePerCycleActivity( std::unordered_map<std::string, std::vector<memActivity>>& mem_activity, std::unordered_map<std::string, std::vector<funcActivity>>& func_activity, std::unordered_map<std::string, funcActivity>& func_max_activity) { /* We use two ways to count the number of functional units in accelerators: * one assumes that functional units can be reused in the same region; the * other assumes no reuse of functional units. The advantage of reusing is * that it eliminates the cost of duplicating functional units which can lead * to high leakage power and area. However, additional wires and muxes may * need to be added for reusing. * In the current model, we assume that multipliers can be reused, since the * leakage power and area of multipliers are relatively significant, and no * reuse for adders. This way of modeling is consistent with our observation * of accelerators generated with Vivado. */ int num_adds_so_far = 0, num_bits_so_far = 0; int num_shifters_so_far = 0; auto bound_it = loopBound.begin(); for (auto node_it = exec_nodes.begin(); node_it != exec_nodes.end(); ++node_it) { ExecNode* node = node_it->second; // TODO: On every iteration, this could be a bottleneck. std::string func_id = srcManager.get<Function>(node->get_static_function_id()).get_name(); auto max_it = func_max_activity.find(func_id); assert(max_it != func_max_activity.end()); if (node->get_node_id() == *bound_it) { if (max_it->second.add < num_adds_so_far) max_it->second.add = num_adds_so_far; if (max_it->second.bit < num_bits_so_far) max_it->second.bit = num_bits_so_far; if (max_it->second.shifter < num_shifters_so_far) max_it->second.shifter = num_shifters_so_far; num_adds_so_far = 0; num_bits_so_far = 0; num_shifters_so_far = 0; bound_it++; } if (node->is_isolated()) continue; int node_level = node->get_start_execution_cycle(); funcActivity& curr_fu_activity = func_activity.at(func_id).at(node_level); if (node->is_multicycle_op()) { for (unsigned stage = 0; node_level + stage < node->get_complete_execution_cycle(); stage++) { funcActivity& fp_fu_activity = func_activity.at(func_id).at(node_level + stage); /* Activity for floating point functional units includes all their * stages.*/ if (node->is_fp_add_op()) { if (node->is_double_precision()) fp_fu_activity.fp_dp_add += 1; else fp_fu_activity.fp_sp_add += 1; } else if (node->is_fp_mul_op()) { if (node->is_double_precision()) fp_fu_activity.fp_dp_mul += 1; else fp_fu_activity.fp_sp_mul += 1; } else if (node->is_trig_op()) { fp_fu_activity.trig += 1; } } } else if (node->is_int_mul_op()) curr_fu_activity.mul += 1; else if (node->is_int_add_op()) { curr_fu_activity.add += 1; num_adds_so_far += 1; } else if (node->is_shifter_op()) { curr_fu_activity.shifter += 1; num_shifters_so_far += 1; } else if (node->is_bit_op()) { curr_fu_activity.bit += 1; num_bits_so_far += 1; } else if (node->is_load_op()) { std::string array_label = node->get_array_label(); if (mem_activity.find(array_label) != mem_activity.end()) mem_activity.at(array_label).at(node_level).read += 1; } else if (node->is_store_op()) { std::string array_label = node->get_array_label(); if (mem_activity.find(array_label) != mem_activity.end()) mem_activity.at(array_label).at(node_level).write += 1; } } for (auto it = functionNames.begin(); it != functionNames.end(); ++it) { auto max_it = func_max_activity.find(*it); assert(max_it != func_max_activity.end()); std::vector<funcActivity>& cycle_activity = func_activity.at(*it); max_it->second.mul = std::max_element(cycle_activity.begin(), cycle_activity.end(), [](const funcActivity& a, const funcActivity& b) { return (a.mul < b.mul); })->mul; max_it->second.fp_sp_mul = std::max_element(cycle_activity.begin(), cycle_activity.end(), [](const funcActivity& a, const funcActivity& b) { return (a.fp_sp_mul < b.fp_sp_mul); })->fp_sp_mul; max_it->second.fp_dp_mul = std::max_element(cycle_activity.begin(), cycle_activity.end(), [](const funcActivity& a, const funcActivity& b) { return (a.fp_dp_mul < b.fp_dp_mul); })->fp_dp_mul; max_it->second.fp_sp_add = std::max_element(cycle_activity.begin(), cycle_activity.end(), [](const funcActivity& a, const funcActivity& b) { return (a.fp_sp_add < b.fp_sp_add); })->fp_sp_add; max_it->second.fp_dp_add = std::max_element(cycle_activity.begin(), cycle_activity.end(), [](const funcActivity& a, const funcActivity& b) { return (a.fp_dp_add < b.fp_dp_add); })->fp_dp_add; max_it->second.trig = std::max_element(cycle_activity.begin(), cycle_activity.end(), [](const funcActivity& a, const funcActivity& b) { return (a.trig < b.trig); })->trig; } } void BaseDatapath::outputPerCycleActivity( std::vector<std::string>& comp_partition_names, std::vector<std::string>& mem_partition_names, std::unordered_map<std::string, std::vector<memActivity>>& mem_activity, std::unordered_map<std::string, std::vector<funcActivity>>& func_activity, std::unordered_map<std::string, funcActivity>& func_max_activity) { /*Set the constants*/ float add_int_power, add_switch_power, add_leak_power, add_area; float mul_int_power, mul_switch_power, mul_leak_power, mul_area; float fp_sp_mul_int_power, fp_sp_mul_switch_power, fp_sp_mul_leak_power, fp_sp_mul_area; float fp_dp_mul_int_power, fp_dp_mul_switch_power, fp_dp_mul_leak_power, fp_dp_mul_area; float fp_sp_add_int_power, fp_sp_add_switch_power, fp_sp_add_leak_power, fp_sp_add_area; float fp_dp_add_int_power, fp_dp_add_switch_power, fp_dp_add_leak_power, fp_dp_add_area; float trig_int_power, trig_switch_power, trig_leak_power, trig_area; float reg_int_power_per_bit, reg_switch_power_per_bit; float reg_leak_power_per_bit, reg_area_per_bit; float bit_int_power, bit_switch_power, bit_leak_power, bit_area; float shifter_int_power, shifter_switch_power, shifter_leak_power, shifter_area; unsigned idle_fu_cycles = 0; getAdderPowerArea( cycleTime, &add_int_power, &add_switch_power, &add_leak_power, &add_area); getMultiplierPowerArea( cycleTime, &mul_int_power, &mul_switch_power, &mul_leak_power, &mul_area); getRegisterPowerArea(cycleTime, &reg_int_power_per_bit, &reg_switch_power_per_bit, &reg_leak_power_per_bit, &reg_area_per_bit); getBitPowerArea( cycleTime, &bit_int_power, &bit_switch_power, &bit_leak_power, &bit_area); getShifterPowerArea(cycleTime, &shifter_int_power, &shifter_switch_power, &shifter_leak_power, &shifter_area); getSinglePrecisionFloatingPointMultiplierPowerArea(cycleTime, &fp_sp_mul_int_power, &fp_sp_mul_switch_power, &fp_sp_mul_leak_power, &fp_sp_mul_area); getDoublePrecisionFloatingPointMultiplierPowerArea(cycleTime, &fp_dp_mul_int_power, &fp_dp_mul_switch_power, &fp_dp_mul_leak_power, &fp_dp_mul_area); getSinglePrecisionFloatingPointAdderPowerArea(cycleTime, &fp_sp_add_int_power, &fp_sp_add_switch_power, &fp_sp_add_leak_power, &fp_sp_add_area); getDoublePrecisionFloatingPointAdderPowerArea(cycleTime, &fp_dp_add_int_power, &fp_dp_add_switch_power, &fp_dp_add_leak_power, &fp_dp_add_area); getTrigonometricFunctionPowerArea(cycleTime, &trig_int_power, &trig_switch_power, &trig_leak_power, &trig_area); std::string file_name; #ifdef DEBUG file_name = benchName + "_stats"; std::ofstream stats; stats.open(file_name.c_str(), std::ofstream::out | std::ofstream::app); stats << "cycles," << num_cycles << "," << numTotalNodes << std::endl; stats << num_cycles << ","; std::ofstream power_stats; file_name += "_power"; power_stats.open(file_name.c_str(), std::ofstream::out | std::ofstream::app); power_stats << "cycles," << num_cycles << "," << numTotalNodes << std::endl; power_stats << num_cycles << ","; /*Start writing the second line*/ for (auto it = functionNames.begin(); it != functionNames.end(); ++it) { stats << *it << "-fp-sp-mul," << *it << "-fp-dp-mul," << *it << "-fp-sp-add," << *it << "-fp-dp-add," << *it << "-mul," << *it << "-add," << *it << "-bit," << *it << "-shifter," << *it << "-trig,"; power_stats << *it << "-fp-sp-mul," << *it << "-fp-dp-mul," << *it << "-fp-sp-add," << *it << "-fp-dp-add," << *it << "-mul," << *it << "-add," << *it << "-bit," << *it << "-shifter," << *it << "-trig,"; } // TODO: mem_partition_names contains logical arrays, not completely // partitioned arrays. stats << "reg,"; for (auto it = mem_partition_names.begin(); it != mem_partition_names.end(); ++it) { stats << *it << "-read," << *it << "-write,"; } stats << std::endl; power_stats << "reg,"; power_stats << std::endl; #endif /*Finish writing the second line*/ /*Caculating the number of FUs and leakage power*/ int max_reg_read = 0, max_reg_write = 0; for (unsigned level_id = 0; ((int)level_id) < num_cycles; ++level_id) { if (max_reg_read < regStats.at(level_id).reads) max_reg_read = regStats.at(level_id).reads; if (max_reg_write < regStats.at(level_id).writes) max_reg_write = regStats.at(level_id).writes; } int max_reg = max_reg_read + max_reg_write; int max_add = 0, max_mul = 0, max_bit = 0, max_shifter = 0; int max_fp_sp_mul = 0, max_fp_dp_mul = 0; int max_fp_sp_add = 0, max_fp_dp_add = 0; int max_trig = 0; for (auto it = functionNames.begin(); it != functionNames.end(); ++it) { auto max_it = func_max_activity.find(*it); assert(max_it != func_max_activity.end()); max_bit += max_it->second.bit; max_add += max_it->second.add; max_mul += max_it->second.mul; max_shifter += max_it->second.shifter; max_fp_sp_mul += max_it->second.fp_sp_mul; max_fp_dp_mul += max_it->second.fp_dp_mul; max_fp_sp_add += max_it->second.fp_sp_add; max_fp_dp_add += max_it->second.fp_dp_add; max_trig += max_it->second.trig; } float add_leakage_power = add_leak_power * max_add; float mul_leakage_power = mul_leak_power * max_mul; float bit_leakage_power = bit_leak_power * max_bit; float shifter_leakage_power = shifter_leak_power * max_shifter; float reg_leakage_power = registers.getTotalLeakagePower() + reg_leak_power_per_bit * 32 * max_reg; float fp_sp_mul_leakage_power = fp_sp_mul_leak_power * max_fp_sp_mul; float fp_dp_mul_leakage_power = fp_dp_mul_leak_power * max_fp_dp_mul; float fp_sp_add_leakage_power = fp_sp_add_leak_power * max_fp_sp_add; float fp_dp_add_leakage_power = fp_dp_add_leak_power * max_fp_dp_add; float trig_leakage_power = trig_leak_power * max_trig; float fu_leakage_power = mul_leakage_power + add_leakage_power + reg_leakage_power + bit_leakage_power + shifter_leakage_power + fp_sp_mul_leakage_power + fp_dp_mul_leakage_power + fp_sp_add_leakage_power + fp_dp_add_leakage_power + trig_leakage_power; /*Finish calculating the number of FUs and leakage power*/ float fu_dynamic_energy = 0; /*Start writing per cycle activity */ for (unsigned curr_level = 0; ((int)curr_level) < num_cycles; ++curr_level) { #ifdef DEBUG stats << curr_level << ","; power_stats << curr_level << ","; #endif bool is_fu_idle = true; // For FUs for (auto it = functionNames.begin(); it != functionNames.end(); ++it) { funcActivity& curr_activity = func_activity.at(*it).at(curr_level); is_fu_idle &= curr_activity.is_idle(); #ifdef DEBUG stats << curr_activity.fp_sp_mul << "," << curr_activity.fp_dp_mul << "," << curr_activity.fp_sp_add << "," << curr_activity.fp_dp_add << "," << curr_activity.mul << "," << curr_activity.add << "," << curr_activity.bit << "," << curr_activity.shifter << "," << curr_activity.trig << ","; #endif float curr_fp_sp_mul_dynamic_power = (fp_sp_mul_switch_power + fp_sp_mul_int_power) * curr_activity.fp_sp_mul; float curr_fp_dp_mul_dynamic_power = (fp_dp_mul_switch_power + fp_dp_mul_int_power) * curr_activity.fp_dp_mul; float curr_fp_sp_add_dynamic_power = (fp_sp_add_switch_power + fp_sp_add_int_power) * curr_activity.fp_sp_add; float curr_fp_dp_add_dynamic_power = (fp_dp_add_switch_power + fp_dp_add_int_power) * curr_activity.fp_dp_add; float curr_trig_dynamic_power = (trig_switch_power + trig_int_power) * curr_activity.trig; float curr_mul_dynamic_power = (mul_switch_power + mul_int_power) * curr_activity.mul; float curr_add_dynamic_power = (add_switch_power + add_int_power) * curr_activity.add; float curr_bit_dynamic_power = (bit_switch_power + bit_int_power) * curr_activity.bit; float curr_shifter_dynamic_power = (shifter_switch_power + shifter_int_power) * curr_activity.shifter; fu_dynamic_energy += (curr_fp_sp_mul_dynamic_power + curr_fp_dp_mul_dynamic_power + curr_fp_sp_add_dynamic_power + curr_fp_dp_add_dynamic_power + curr_trig_dynamic_power + curr_mul_dynamic_power + curr_add_dynamic_power + curr_bit_dynamic_power + curr_shifter_dynamic_power) * cycleTime; #ifdef DEBUG power_stats << curr_mul_dynamic_power + mul_leakage_power << "," << curr_add_dynamic_power + add_leakage_power << "," << curr_bit_dynamic_power + bit_leakage_power << "," << curr_shifter_dynamic_power + shifter_leakage_power << "," << curr_trig_dynamic_power << ","; #endif } // For regs int curr_reg_reads = regStats.at(curr_level).reads; int curr_reg_writes = regStats.at(curr_level).writes; float curr_reg_dynamic_energy = (reg_int_power_per_bit + reg_switch_power_per_bit) * (curr_reg_reads + curr_reg_writes) * 32 * cycleTime; for (auto it = comp_partition_names.begin(); it != comp_partition_names.end(); ++it) { curr_reg_reads += mem_activity.at(*it).at(curr_level).read; curr_reg_writes += mem_activity.at(*it).at(curr_level).write; curr_reg_dynamic_energy += registers.getReadEnergy(*it) * mem_activity.at(*it).at(curr_level).read + registers.getWriteEnergy(*it) * mem_activity.at(*it).at(curr_level).write; } fu_dynamic_energy += curr_reg_dynamic_energy; #ifdef DEBUG stats << curr_reg_reads << "," << curr_reg_writes << ","; for (auto it = mem_partition_names.begin(); it != mem_partition_names.end(); ++it) { stats << mem_activity.at(*it).at(curr_level).read << "," << mem_activity.at(*it).at(curr_level).write << ","; } stats << std::endl; power_stats << curr_reg_dynamic_energy / cycleTime + reg_leakage_power; power_stats << std::endl; #endif if (is_fu_idle) idle_fu_cycles++; } #ifdef DEBUG stats.close(); power_stats.close(); #endif float avg_mem_power = 0, avg_mem_dynamic_power = 0, mem_leakage_power = 0; getAverageMemPower( num_cycles, &avg_mem_power, &avg_mem_dynamic_power, &mem_leakage_power); float avg_fu_dynamic_power = fu_dynamic_energy / (cycleTime * num_cycles); float avg_fu_power = avg_fu_dynamic_power + fu_leakage_power; float avg_power = avg_fu_power + avg_mem_power; float mem_area = getTotalMemArea(); float fu_area = registers.getTotalArea() + add_area * max_add + mul_area * max_mul + reg_area_per_bit * 32 * max_reg + bit_area * max_bit + shifter_area * max_shifter + fp_sp_mul_area * max_fp_sp_mul + fp_dp_mul_area * max_fp_dp_mul + fp_sp_add_area * max_fp_sp_add + fp_dp_add_area * max_fp_dp_add + trig_area * max_trig; float total_area = mem_area + fu_area; // Summary output. summary_data_t summary; summary.benchName = benchName; summary.num_cycles = num_cycles; summary.idle_fu_cycles = idle_fu_cycles; summary.avg_power = avg_power; summary.avg_fu_power = avg_fu_power; summary.avg_fu_dynamic_power = avg_fu_dynamic_power; summary.fu_leakage_power = fu_leakage_power; summary.avg_mem_power = avg_mem_power; summary.avg_mem_dynamic_power = avg_mem_dynamic_power; summary.mem_leakage_power = mem_leakage_power; summary.total_area = total_area; summary.fu_area = fu_area; summary.mem_area = mem_area; summary.max_mul = max_mul; summary.max_add = max_add; summary.max_bit = max_bit; summary.max_shifter = max_shifter; summary.max_reg = max_reg; summary.max_fp_sp_mul = max_fp_sp_mul; summary.max_fp_dp_mul = max_fp_dp_mul; summary.max_fp_sp_add = max_fp_sp_add; summary.max_fp_dp_add = max_fp_dp_add; summary.max_trig = max_trig; writeSummary(std::cout, summary); std::ofstream summary_file; file_name = benchName + "_summary"; summary_file.open(file_name.c_str(), std::ofstream::out | std::ofstream::app); writeSummary(summary_file, summary); summary_file.close(); #ifdef USE_DB if (use_db) writeSummaryToDatabase(summary); #endif } void BaseDatapath::writeSummary(std::ostream& outfile, summary_data_t& summary) { outfile << "===============================" << std::endl; outfile << " Aladdin Results " << std::endl; outfile << "===============================" << std::endl; outfile << "Running : " << summary.benchName << std::endl; outfile << "Cycle : " << summary.num_cycles << " cycles" << std::endl; outfile << "Avg Power: " << summary.avg_power << " mW" << std::endl; outfile << "Idle FU Cycles: " << summary.idle_fu_cycles << " cycles" << std::endl; outfile << "Avg FU Power: " << summary.avg_fu_power << " mW" << std::endl; outfile << "Avg FU Dynamic Power: " << summary.avg_fu_dynamic_power << " mW" << std::endl; outfile << "Avg FU leakage Power: " << summary.fu_leakage_power << " mW" << std::endl; outfile << "Avg MEM Power: " << summary.avg_mem_power << " mW" << std::endl; outfile << "Avg MEM Dynamic Power: " << summary.avg_mem_dynamic_power << " mW" << std::endl; outfile << "Avg MEM Leakage Power: " << summary.mem_leakage_power << " mW" << std::endl; outfile << "Total Area: " << summary.total_area << " uM^2" << std::endl; outfile << "FU Area: " << summary.fu_area << " uM^2" << std::endl; outfile << "MEM Area: " << summary.mem_area << " uM^2" << std::endl; if (summary.max_fp_sp_mul != 0) outfile << "Num of Single Precision FP Multipliers: " << summary.max_fp_sp_mul << std::endl; if (summary.max_fp_sp_add != 0) outfile << "Num of Single Precision FP Adders: " << summary.max_fp_sp_add << std::endl; if (summary.max_fp_dp_mul != 0) outfile << "Num of Double Precision FP Multipliers: " << summary.max_fp_dp_mul << std::endl; if (summary.max_fp_dp_add != 0) outfile << "Num of Double Precision FP Adders: " << summary.max_fp_dp_add << std::endl; if (summary.max_trig != 0) outfile << "Num of Trigonometric Units: " << summary.max_trig << std::endl; if (summary.max_mul != 0) outfile << "Num of Multipliers (32-bit): " << summary.max_mul << std::endl; if (summary.max_add != 0) outfile << "Num of Adders (32-bit): " << summary.max_add << std::endl; if (summary.max_bit != 0) outfile << "Num of Bit-wise Operators (32-bit): " << summary.max_bit << std::endl; if (summary.max_shifter != 0) outfile << "Num of Shifters (32-bit): " << summary.max_shifter << std::endl; outfile << "Num of Registers (32-bit): " << summary.max_reg << std::endl; outfile << "===============================" << std::endl; outfile << " Aladdin Results " << std::endl; outfile << "===============================" << std::endl; } void BaseDatapath::writeBaseAddress() { std::ostringstream file_name; file_name << benchName << "_baseAddr.gz"; gzFile gzip_file; gzip_file = gzopen(file_name.str().c_str(), "w"); for (auto it = exec_nodes.begin(), E = exec_nodes.end(); it != E; ++it) { char original_label[256]; int partition_id; std::string partitioned_label = it->second->get_array_label(); if (partitioned_label.empty()) continue; int num_fields = sscanf( partitioned_label.c_str(), "%[^-]-%d", original_label, &partition_id); if (num_fields != 2) continue; gzprintf(gzip_file, "node:%u,part:%s,base:%lld\n", it->first, partitioned_label.c_str(), getBaseAddress(original_label)); } gzclose(gzip_file); } void BaseDatapath::writeOtherStats() { // First collect the data from exec_nodes. std::vector<int> microop; std::vector<int> exec_cycle; std::vector<bool> isolated; microop.reserve(totalConnectedNodes); exec_cycle.reserve(totalConnectedNodes); isolated.reserve(totalConnectedNodes); for (auto node_it = exec_nodes.begin(); node_it != exec_nodes.end(); ++node_it) { ExecNode* node = node_it->second; microop.push_back(node->get_microop()); exec_cycle.push_back(node->get_start_execution_cycle()); isolated.push_back(node->is_isolated()); } std::string cycle_file_name(benchName); cycle_file_name += "_level.gz"; write_gzip_file(cycle_file_name, exec_cycle.size(), exec_cycle); std::string microop_file_name(benchName); microop_file_name += "_microop.gz"; write_gzip_file(microop_file_name, microop.size(), microop); std::string isolated_file_name(benchName); microop_file_name += "_isolated.gz"; write_gzip_bool_file(isolated_file_name, isolated.size(), isolated); } // stepFunctions // multiple function, each function is a separate graph void BaseDatapath::prepareForScheduling() { std::cout << "=============================================" << std::endl; std::cout << " Scheduling... " << benchName << std::endl; std::cout << "=============================================" << std::endl; edgeToParid = get(boost::edge_name, graph_); numTotalEdges = boost::num_edges(graph_); executedNodes = 0; totalConnectedNodes = 0; for (auto node_it = exec_nodes.begin(); node_it != exec_nodes.end(); ++node_it) { ExecNode* node = node_it->second; if (!node->has_vertex()) continue; Vertex node_vertex = node->get_vertex(); if (boost::degree(node_vertex, graph_) != 0 || node->is_dma_op()) { node->set_num_parents(boost::in_degree(node_vertex, graph_)); node->set_isolated(false); totalConnectedNodes++; } } std::cout << " Total connected nodes: " << totalConnectedNodes << "\n"; std::cout << " Total edges: " << numTotalEdges << "\n"; std::cout << "=============================================" << std::endl; executingQueue.clear(); readyToExecuteQueue.clear(); initExecutingQueue(); } void BaseDatapath::dumpGraph(std::string graph_name) { std::unordered_map<Vertex, unsigned> vertexToMicroop; std::unordered_map<Vertex, unsigned> vertexToID; std::unordered_map<Vertex, unsigned> vertexIsInductive; BGL_FORALL_VERTICES(v, graph_, Graph) { vertexToMicroop[v] = exec_nodes.at(get(boost::vertex_node_id, graph_, v))->get_microop(); vertexToID[v] = exec_nodes.at(get(boost::vertex_node_id, graph_, v))->get_node_id(); vertexIsInductive[v] = exec_nodes.at(get(boost::vertex_node_id, graph_, v))->is_inductive(); } std::ofstream out( graph_name + ".dot", std::ofstream::out); //graph_name + "_graph.dot", std::ofstream::out | std::ofstream::app); EdgeNameMap edge_to_parid = get(boost::edge_name, graph_); write_graphviz(out, graph_, make_microop_label_writer(vertexToMicroop, vertexToID, vertexIsInductive), make_edge_color_writer(edge_to_parid)); } /*As Late As Possible (ALAP) rescheduling for non-memory, non-control nodes. The first pass of scheduling is as early as possible, whenever a node's parents are ready, the node is executed. This mode of executing potentially can lead to values that are produced way earlier than they are needed. For such case, we add an ALAP rescheduling pass to reorganize the graph without changing the critical path and memory nodes, but produce a more balanced design.*/ int BaseDatapath::rescheduleNodesWhenNeeded() { std::vector<Vertex> topo_nodes; boost::topological_sort(graph_, std::back_inserter(topo_nodes)); // bottom nodes first std::map<unsigned, int> earliest_child; for (auto node_id_pair : exec_nodes) { earliest_child[node_id_pair.first] = num_cycles; } for (auto vi = topo_nodes.begin(); vi != topo_nodes.end(); ++vi) { unsigned node_id = vertexToName[*vi]; ExecNode* node = exec_nodes.at(node_id); if (node->is_isolated()) continue; if (!node->is_memory_op() && !node->is_branch_op()) { int new_cycle = earliest_child.at(node_id) - 1; if (new_cycle > node->get_complete_execution_cycle()) { node->set_complete_execution_cycle(new_cycle); if (node->is_fp_op()) { node->set_start_execution_cycle( new_cycle - node->fp_node_latency_in_cycles() + 1); } else { node->set_start_execution_cycle(new_cycle); } } } in_edge_iter in_i, in_end; for (boost::tie(in_i, in_end) = in_edges(*vi, graph_); in_i != in_end; ++in_i) { int parent_id = vertexToName[source(*in_i, graph_)]; if (earliest_child.at(parent_id) > node->get_start_execution_cycle()) earliest_child.at(parent_id) = node->get_start_execution_cycle(); } } return num_cycles; } void BaseDatapath::updateRegStats() { regStats.assign(num_cycles, { 0, 0, 0 }); for (auto node_it = exec_nodes.begin(); node_it != exec_nodes.end(); ++node_it) { ExecNode* node = node_it->second; if (node->is_isolated() || node->is_control_op() || node->is_index_op()) continue; int node_level = node->get_complete_execution_cycle(); int max_children_level = node_level; Vertex node_vertex = node->get_vertex(); out_edge_iter out_edge_it, out_edge_end; std::set<int> children_levels; for (boost::tie(out_edge_it, out_edge_end) = out_edges(node_vertex, graph_); out_edge_it != out_edge_end; ++out_edge_it) { int child_id = vertexToName[target(*out_edge_it, graph_)]; ExecNode* child_node = exec_nodes.at(child_id); if (child_node->is_control_op() || child_node->is_load_op()) continue; int child_level = child_node->get_start_execution_cycle(); if (child_level > max_children_level) max_children_level = child_level; if (child_level > node_level && child_level != num_cycles - 1) children_levels.insert(child_level); } for (auto it = children_levels.begin(); it != children_levels.end(); it++) regStats.at(*it).reads++; if (max_children_level > node_level && node_level != 0) regStats.at(node_level).writes++; } } void BaseDatapath::copyToExecutingQueue() { auto it = readyToExecuteQueue.begin(); while (it != readyToExecuteQueue.end()) { ExecNode* node = *it; if (node->is_store_op()) executingQueue.push_front(node); else executingQueue.push_back(node); it = readyToExecuteQueue.erase(it); } } bool BaseDatapath::step() { stepExecutingQueue(); copyToExecutingQueue(); num_cycles++; if (executedNodes == totalConnectedNodes) return true; return false; } void BaseDatapath::markNodeStarted(ExecNode* node) { node->set_start_execution_cycle(num_cycles); } // Marks a node as completed and advances the executing queue iterator. void BaseDatapath::markNodeCompleted( std::list<ExecNode*>::iterator& executingQueuePos, int& advance_to) { ExecNode* node = *executingQueuePos; executedNodes++; node->set_complete_execution_cycle(num_cycles); executingQueue.erase(executingQueuePos); updateChildren(node); executingQueuePos = executingQueue.begin(); std::advance(executingQueuePos, advance_to); } void BaseDatapath::updateChildren(ExecNode* node) { if (!node->has_vertex()) return; Vertex node_vertex = node->get_vertex(); out_edge_iter out_edge_it, out_edge_end; for (boost::tie(out_edge_it, out_edge_end) = out_edges(node_vertex, graph_); out_edge_it != out_edge_end; ++out_edge_it) { Vertex child_vertex = target(*out_edge_it, graph_); ExecNode* child_node = getNodeFromVertex(child_vertex); int edge_parid = edgeToParid[*out_edge_it]; if (child_node->get_num_parents() > 0) { child_node->decr_num_parents(); if (child_node->get_num_parents() == 0) { bool child_zero_latency = (child_node->is_memory_op()) ? false : (child_node->fu_node_latency(cycleTime) == 0); bool curr_zero_latency = (node->is_memory_op()) ? false : (node->fu_node_latency(cycleTime) == 0); if ((child_zero_latency || curr_zero_latency) && edge_parid != CONTROL_EDGE) { executingQueue.push_back(child_node); } else { if (child_node->is_store_op()) readyToExecuteQueue.push_front(child_node); else readyToExecuteQueue.push_back(child_node); } child_node->set_num_parents(-1); } } } } /* * Read: graph, getElementPtr.gz, completePartitionConfig, PartitionConfig * Modify: baseAddress */ void BaseDatapath::initBaseAddress() { std::cout << "-------------------------------" << std::endl; std::cout << " Init Base Address " << std::endl; std::cout << "-------------------------------" << std::endl; EdgeNameMap edge_to_parid = get(boost::edge_name, graph_); vertex_iter vi, vi_end; for (boost::tie(vi, vi_end) = vertices(graph_); vi != vi_end; ++vi) { if (boost::degree(*vi, graph_) == 0) continue; Vertex curr_vertex = *vi; ExecNode* node = getNodeFromVertex(curr_vertex); if (!node->is_memory_op()) continue; int node_microop = node->get_microop(); // iterate its parents, until it finds the root parent while (true) { bool found_parent = false; in_edge_iter in_edge_it, in_edge_end; for (boost::tie(in_edge_it, in_edge_end) = in_edges(curr_vertex, graph_); in_edge_it != in_edge_end; ++in_edge_it) { int edge_parid = edge_to_parid[*in_edge_it]; /* For Load, not mem dependence. */ /* For GEP, not the dependence that is caused by index. */ /* For store, not the dependence caused by value or mem dependence. */ if ((node_microop == LLVM_IR_Load && edge_parid != 1) || (node_microop == LLVM_IR_GetElementPtr && edge_parid != 1) || (node_microop == LLVM_IR_Store && edge_parid != 2)) continue; unsigned parent_id = vertexToName[source(*in_edge_it, graph_)]; ExecNode* parent_node = exec_nodes.at(parent_id); int parent_microop = parent_node->get_microop(); if (parent_microop == LLVM_IR_GetElementPtr || parent_microop == LLVM_IR_Load || parent_microop == LLVM_IR_Store) { // remove address calculation directly DynamicVariable var = parent_node->get_dynamic_variable(); var = getCallerRegID(var); node->set_array_label( srcManager.get<Variable>(var.get_variable_id()).get_name()); curr_vertex = source(*in_edge_it, graph_); node_microop = parent_microop; found_parent = true; break; } else if (parent_microop == LLVM_IR_Alloca) { std::string label = getBaseAddressLabel(parent_id); node->set_array_label(label); break; } } if (!found_parent) break; } } #if 0 // TODO: writing the base addresses can cause simulation to freeze when no // partitioning is applied to arrays due to how writeBaseAddress() parses the // partition number from an array's label. So this is going to be disabled // for the time being, until we find a chance to fix this. writeBaseAddress(); #endif } void BaseDatapath::initExecutingQueue() { for (auto node_it = exec_nodes.begin(); node_it != exec_nodes.end(); ++node_it) { ExecNode* node = node_it->second; if (node->get_num_parents() == 0 && !node->is_isolated()) executingQueue.push_back(node); } } int BaseDatapath::shortestDistanceBetweenNodes(unsigned int from, unsigned int to) { std::list<std::pair<unsigned int, unsigned int>> queue; queue.push_back({ from, 0 }); while (queue.size() != 0) { unsigned int curr_node = queue.front().first; unsigned int curr_dist = queue.front().second; out_edge_iter out_edge_it, out_edge_end; for (boost::tie(out_edge_it, out_edge_end) = out_edges(exec_nodes.at(curr_node)->get_vertex(), graph_); out_edge_it != out_edge_end; ++out_edge_it) { if (get(boost::edge_name, graph_, *out_edge_it) != CONTROL_EDGE) { int child_id = vertexToName[target(*out_edge_it, graph_)]; if (child_id == to) return curr_dist + 1; queue.push_back({ child_id, curr_dist + 1 }); } } queue.pop_front(); } return -1; } partition_config_t::iterator BaseDatapath::getArrayConfigFromAddr(Addr base_addr) { auto part_it = partition_config.begin(); for (; part_it != partition_config.end(); ++part_it) { if (part_it->second.base_addr == base_addr) { break; } } // If the array label is not found, abort the simulation. std::string array_label = part_it->first; if (array_label.empty()) { std::cerr << "Unknown address " << base_addr << std::endl; exit(-1); } return part_it; } unrolling_config_t::iterator BaseDatapath::getUnrollFactor(ExecNode* node) { // We'll only find a label if the labelmap is present in the dynamic trace, // but if the configuration file doesn't use labels (it's an older config // file), we have to fallback on using line numbers. auto range = labelmap.equal_range(node->get_line_num()); for (auto it = range.first; it != range.second; ++it) { if (it->second.get_function_id() != node->get_static_function_id()) continue; UniqueLabel unrolling_id( it->second.get_function_id(), it->second.get_label_id()); auto config_it = unrolling_config.find(unrolling_id); if (config_it != unrolling_config.end()) return config_it; } Label label(node->get_line_num()); UniqueLabel unrolling_id(node->get_static_function_id(), label.get_id()); return unrolling_config.find(unrolling_id); } std::vector<unsigned> BaseDatapath::getConnectedNodes(unsigned int node_id) { in_edge_iter in_edge_it, in_edge_end; out_edge_iter out_edge_it, out_edge_end; ExecNode* node = exec_nodes.at(node_id); Vertex vertex = node->get_vertex(); std::vector<unsigned> connectedNodes; for (boost::tie(in_edge_it, in_edge_end) = in_edges(vertex, graph_); in_edge_it != in_edge_end; ++in_edge_it) { Edge edge = *in_edge_it; Vertex source_vertex = source(edge, graph_); connectedNodes.push_back(vertexToName[source_vertex]); } for (boost::tie(out_edge_it, out_edge_end) = out_edges(vertex, graph_); out_edge_it != out_edge_end; ++out_edge_it) { Edge edge = *out_edge_it; Vertex target_vertex = target(edge, graph_); connectedNodes.push_back(vertexToName[target_vertex]); } return connectedNodes; } // readConfigs void BaseDatapath::parse_config(std::string& bench, std::string& config_file_name) { std::ifstream config_file; config_file.open(config_file_name); std::string wholeline; pipelining = false; ready_mode = false; num_ports = 1; while (!config_file.eof()) { wholeline.clear(); std::getline(config_file, wholeline); if (wholeline.size() == 0) break; std::string type, rest_line; int pos_end_tag = wholeline.find(","); if (pos_end_tag == -1) break; type = wholeline.substr(0, pos_end_tag); rest_line = wholeline.substr(pos_end_tag + 1); if (!type.compare("flatten")) { char function_name[256], label_or_line_num[64]; sscanf( rest_line.c_str(), "%[^,],%[^,]\n", function_name, label_or_line_num); Function& function = srcManager.insert<Function>(function_name); Label& label = srcManager.insert<Label>(label_or_line_num); UniqueLabel unrolling_id(function, label); unrolling_config[unrolling_id] = 0; } else if (!type.compare("unrolling")) { char function_name[256], label_or_line_num[64]; int factor; sscanf(rest_line.c_str(), "%[^,],%[^,],%d\n", function_name, label_or_line_num, &factor); Function& function = srcManager.insert<Function>(function_name); Label& label = srcManager.insert<Label>(label_or_line_num); UniqueLabel unrolling_id(function, label); unrolling_config[unrolling_id] = factor; } else if (!type.compare("partition")) { unsigned size = 0, p_factor = 0, wordsize = 0; char part_type[256]; char array_label[256]; PartitionType p_type; MemoryType m_type; if (wholeline.find("complete") == std::string::npos) { sscanf(rest_line.c_str(), "%[^,],%[^,],%d,%d,%d\n", part_type, array_label, &size, &wordsize, &p_factor); m_type = spad; if (strncmp(part_type, "cyclic", 6) == 0) p_type = cyclic; else p_type = block; } else { sscanf(rest_line.c_str(), "%[^,],%[^,],%d\n", part_type, array_label, &size); p_type = complete; m_type = reg; } long long int addr = 0; partition_config[array_label] = { m_type, p_type, size, wordsize, p_factor, addr }; } else if (!type.compare("cache")) { unsigned size = 0, p_factor = 0, wordsize = 0; char array_label[256]; sscanf(rest_line.c_str(), "%[^,],%d\n", array_label, &size); std::string p_type(type); long long int addr = 0; partition_config[array_label] = { cache, none, size, wordsize, p_factor, addr }; } else if (!type.compare("pipelining")) { pipelining = atoi(rest_line.c_str()); } else if (!type.compare("cycle_time")) { // Update the global cycle time parameter. cycleTime = stof(rest_line); } else if (!type.compare("ready_mode")) { ready_mode = atoi(rest_line.c_str()); } else if (!type.compare("scratchpad_ports")) { num_ports = atoi(rest_line.c_str()); } else { std::cerr << "Invalid config type: " << wholeline << std::endl; exit(1); } } config_file.close(); } #ifdef USE_DB void BaseDatapath::setExperimentParameters(std::string experiment_name) { use_db = true; this->experiment_name = experiment_name; } void BaseDatapath::getCommonConfigParameters(int& unrolling_factor, bool& pipelining_factor, int& partition_factor) { // First, collect pipelining, unrolling, and partitioning parameters. We'll // assume that all parameters are uniform for all loops, and we'll insert a // path to the actual config file if we need to look up the actual // configurations. unrolling_factor = unrolling_config.empty() ? 1 : unrolling_config.begin()->second; pipelining_factor = pipelining; partition_factor = partition_config.empty() ? 1 : partition_config.begin()->second.part_factor; } /* Returns the experiment_id for the experiment_name. If the experiment_name * does not exist in the database, then a new experiment_id is created and * inserted into the database. */ int BaseDatapath::getExperimentId(sql::Connection* con) { sql::ResultSet* res; sql::Statement* stmt = con->createStatement(); stringstream query; query << "select id from experiments where strcmp(name, \"" << experiment_name << "\") = 0"; res = stmt->executeQuery(query.str()); int experiment_id; if (res && res->next()) { experiment_id = res->getInt(1); delete stmt; delete res; } else { // Get the next highest experiment id and insert it into the database. query.str(""); // Clear stringstream. stmt = con->createStatement(); res = stmt->executeQuery("select max(id) from experiments"); if (res && res->next()) experiment_id = res->getInt(1) + 1; else experiment_id = 1; delete res; delete stmt; stmt = con->createStatement(); // TODO: Somehow (elegantly) add support for an experiment description. query << "insert into experiments (id, name) values (" << experiment_id << ",\"" << experiment_name << "\")"; stmt->execute(query.str()); delete stmt; } return experiment_id; } int BaseDatapath::getLastInsertId(sql::Connection* con) { sql::Statement* stmt = con->createStatement(); sql::ResultSet* res = stmt->executeQuery("select last_insert_id()"); int new_config_id = -1; if (res && res->next()) { new_config_id = res->getInt(1); } else { std::cerr << "An unknown error occurred retrieving the config id." << std::endl; } delete stmt; delete res; return new_config_id; } void BaseDatapath::writeSummaryToDatabase(summary_data_t& summary) { sql::Driver* driver; sql::Connection* con; sql::Statement* stmt; driver = sql::mysql::get_mysql_driver_instance(); con = driver->connect(DB_URL, DB_USER, DB_PASS); con->setSchema("aladdin"); con->setAutoCommit(0); // Begin transaction. int config_id = writeConfiguration(con); int experiment_id = getExperimentId(con); stmt = con->createStatement(); std::string fullBenchName(benchName); std::string benchmark = fullBenchName.substr(fullBenchName.find_last_of("/") + 1); stringstream query; query << "insert into summary (cycles, avg_power, avg_fu_power, " "avg_mem_ac, avg_mem_leakage, fu_area, mem_area, " "avg_mem_power, total_area, benchmark, experiment_id, config_id) " "values ("; query << summary.num_cycles << "," << summary.avg_power << "," << summary.avg_fu_power << "," << summary.avg_mem_dynamic_power << "," << summary.mem_leakage_power << "," << summary.fu_area << "," << summary.mem_area << "," << summary.avg_mem_power << "," << summary.total_area << "," << "\"" << benchmark << "\"," << experiment_id << "," << config_id << ")"; stmt->execute(query.str()); con->commit(); // End transaction. delete stmt; delete con; } #endif
giosalv/526-aladdin
common/BaseDatapath.cpp
C++
apache-2.0
93,972
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* vim: set sw=2 ts=8 et ft=cpp : */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ #ifndef __HAL_SENSOR_H_ #define __HAL_SENSOR_H_ #include "mozilla/Observer.h" namespace mozilla { namespace hal { /** * Enumeration of sensor types. They are used to specify type while * register or unregister an observer for a sensor of given type. */ enum SensorType { SENSOR_UNKNOWN = -1, SENSOR_ORIENTATION, SENSOR_ACCELERATION, SENSOR_PROXIMITY, SENSOR_LINEAR_ACCELERATION, SENSOR_GYROSCOPE, SENSOR_LIGHT, NUM_SENSOR_TYPE }; class SensorData; typedef Observer<SensorData> ISensorObserver; /** * Enumeration of sensor accuracy types. */ enum SensorAccuracyType { SENSOR_ACCURACY_UNKNOWN = -1, SENSOR_ACCURACY_UNRELIABLE, SENSOR_ACCURACY_LOW, SENSOR_ACCURACY_MED, SENSOR_ACCURACY_HIGH, NUM_SENSOR_ACCURACY_TYPE }; class SensorAccuracy; typedef Observer<SensorAccuracy> ISensorAccuracyObserver; } } #include "IPC/IPCMessageUtils.h" namespace IPC { /** * Serializer for SensorType */ template <> struct ParamTraits<mozilla::hal::SensorType>: public EnumSerializer<mozilla::hal::SensorType, mozilla::hal::SENSOR_UNKNOWN, mozilla::hal::NUM_SENSOR_TYPE> { }; template <> struct ParamTraits<mozilla::hal::SensorAccuracyType>: public EnumSerializer<mozilla::hal::SensorAccuracyType, mozilla::hal::SENSOR_ACCURACY_UNKNOWN, mozilla::hal::NUM_SENSOR_ACCURACY_TYPE> { }; } // namespace IPC #endif /* __HAL_SENSOR_H_ */
bwp/SeleniumWebDriver
third_party/gecko-16/win32/include/mozilla/HalSensor.h
C
apache-2.0
1,814
// Copyright 2013-2014 Albert L. Hives, Chris Patterson, et al. // // 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 // // 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. namespace HareDu.Internal { using Contracts; internal class QueueBindingImpl : QueueBinding { public string Queue { get; private set; } public string Exchange { get; private set; } public void Binding(string queue, string exchange) { Queue = queue; Exchange = exchange; } } }
ahives/HareDu
src/HareDu/Internal/QueueBindingImpl.cs
C#
apache-2.0
989
require 'puppet/provider/package' require 'uri' # Ruby gems support. Puppet::Type.type(:package).provide :fluentgem, :parent => Puppet::Provider::Package do desc "Install gem via fluent-gem (included by td-agent). Ruby Gem support. If a URL is passed via `source`, then that URL is used as the remote gem repository; if a source is present but is not a valid URL, it will be interpreted as the path to a local gem file. If source is not present at all, the gem will be installed from the default gem repositories. This provider supports the `install_options` attribute, which allows command-line flags to be passed to the gem command. These options should be specified as a string (e.g. '--flag'), a hash (e.g. {'--flag' => 'value'}), or an array where each element is either a string or a hash." has_feature :versionable, :install_options ENV['PATH'] = "#{ENV['PATH']}:/usr/lib64/fluent/ruby/bin:/usr/lib/fluent/ruby/bin:/opt/td-agent/embedded/bin" commands :gemcmd => "fluent-gem" def self.gemlist(options) gem_list_command = [command(:gemcmd), "list"] if options[:local] gem_list_command << "--local" else gem_list_command << "--remote" end if options[:source] gem_list_command << "--source" << options[:source] end if name = options[:justme] gem_list_command << "^" + name + "$" end begin list = execute(gem_list_command).lines. map {|set| gemsplit(set) }. reject {|x| x.nil? } rescue Puppet::ExecutionFailure => detail raise Puppet::Error, "Could not list gems: #{detail}", detail.backtrace end if options[:justme] return list.shift else return list end end def self.gemsplit(desc) # `gem list` when output console has a line like: # *** LOCAL GEMS *** # but when it's not to the console that line # and all blank lines are stripped # so we don't need to check for them if desc =~ /^(\S+)\s+\((.+)\)/ name = $1 versions = $2.split(/,\s*/) { :name => name, :ensure => versions.map{|v| v.split[0]}, :provider => :gem } else Puppet.warning "Could not match #{desc}" unless desc.chomp.empty? nil end end def self.instances(justme = false) gemlist(:local => true).collect do |hash| new(hash) end end def install(useversion = true) command = [command(:gemcmd), "install"] command << "-v" << resource[:ensure] if (! resource[:ensure].is_a? Symbol) and useversion if source = resource[:source] begin uri = URI.parse(source) rescue => detail self.fail Puppet::Error, "Invalid source '#{uri}': #{detail}", detail end case uri.scheme when nil # no URI scheme => interpret the source as a local file command << source when /file/i command << uri.path when 'puppet' # we don't support puppet:// URLs (yet) raise Puppet::Error.new("puppet:// URLs are not supported as gem sources") else # interpret it as a gem repository command << "--source" << "#{source}" << resource[:name] end else command << "--no-rdoc" << "--no-ri" << resource[:name] end command += install_options if resource[:install_options] output = execute(command) # Apparently some stupid gem versions don't exit non-0 on failure self.fail "Could not install: #{output.chomp}" if output.include?("ERROR") end def latest # This always gets the latest version available. gemlist_options = {:justme => resource[:name]} gemlist_options.merge!({:source => resource[:source]}) unless resource[:source].nil? hash = self.class.gemlist(gemlist_options) hash[:ensure][0] end def query self.class.gemlist(:justme => resource[:name], :local => true) end def uninstall gemcmd "uninstall", "-x", "-a", resource[:name] end def update self.install(false) end def install_options join_options(resource[:install_options]) end end
mmz-srf/puppet-fluentd
lib/puppet/provider/package/fluentgem.rb
Ruby
apache-2.0
4,097
/* * Copyright 2016 Miroslav Janíček * * 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 * * 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 org.classdump.luna.lib.luajava; import java.lang.reflect.InvocationTargetException; import org.classdump.luna.ByteString; import org.classdump.luna.LuaRuntimeException; import org.classdump.luna.StateContext; import org.classdump.luna.Table; import org.classdump.luna.impl.UnimplementedFunction; import org.classdump.luna.lib.AbstractLibFunction; import org.classdump.luna.lib.ArgumentIterator; import org.classdump.luna.lib.SimpleLoaderFunction; import org.classdump.luna.runtime.ExecutionContext; import org.classdump.luna.runtime.LuaFunction; import org.classdump.luna.runtime.ResolvedControlThrowable; public final class LuaJavaLib { private LuaJavaLib() { // not to be instantiated } public static LuaFunction loader(Table env) { return new LoaderFunction(env); } static class LoaderFunction extends SimpleLoaderFunction { public LoaderFunction(Table env) { super(env); } @Override public Object install(StateContext context, Table env, ByteString modName, ByteString origin) { Table t = context.newTable(); t.rawset("newInstance", LuaJavaLib.NewInstance.INSTANCE); t.rawset("bindClass", LuaJavaLib.BindClass.INSTANCE); t.rawset("new", LuaJavaLib.New.INSTANCE); t.rawset("createProxy", new UnimplementedFunction(modName + ".createProxy")); t.rawset("loadLib", new UnimplementedFunction(modName + ".loadLib")); env.rawset(modName, t); return t; } } /** * {@code newInstance(className, ...)} * * <p>This function creates a new Java object, and returns a Lua object that is a reference * to the actual Java object. You can access this object with the regular syntax used * to access object oriented functions in Lua objects.</p> * * <p>The first parameter is the name of the class to be instantiated. The other parameters * are passed to the Java Class constructor.</p> * * <p>Example:</p> * * <pre> * obj = luajava.newInstance("java.lang.Object") * -- obj is now a reference to the new object * -- created and any of its methods can be accessed. * * -- this creates a string tokenizer to the "a,b,c,d" * -- string using "," as the token separator. * strTk = luajava.newInstance("java.util.StringTokenizer", * "a,b,c,d", ",") * while strTk:hasMoreTokens() do * print(strTk:nextToken()) * end * </pre> * * <p>The code above should print the following on the screen:</p> * * <pre> * a * b * c * d * </pre> */ static class NewInstance extends AbstractLibFunction { static final NewInstance INSTANCE = new NewInstance(); @Override protected String name() { return "newInstance"; } @Override protected void invoke(ExecutionContext context, ArgumentIterator args) throws ResolvedControlThrowable { String className = args.nextString().toString(); Object[] ctorArgs = args.copyRemaining(); final ObjectWrapper instance; try { instance = ObjectWrapper.newInstance(className, ctorArgs); } catch (ClassNotFoundException | MethodSelectionException | IllegalAccessException | InstantiationException | InvocationTargetException ex) { throw new LuaRuntimeException(ex); } context.getReturnBuffer().setTo(instance); } } /** * {@code bindClass(className)} * * <p>This function retrieves a Java class corresponding to {@code className}. * The returned object can be used to access static fields and methods of the corresponding * class.</p> * * <p>Example:</p> * * <pre> * sys = luajava.bindClass("java.lang.System") * print ( sys:currentTimeMillis() ) * * -- this prints the time returned by the function. * </pre> */ static class BindClass extends AbstractLibFunction { static final BindClass INSTANCE = new BindClass(); @Override protected String name() { return "bindClass"; } @Override protected void invoke(ExecutionContext context, ArgumentIterator args) throws ResolvedControlThrowable { String className = args.nextString().toString(); final ClassWrapper wrapper; try { wrapper = ClassWrapper.of(className); } catch (ClassNotFoundException ex) { throw new LuaRuntimeException(ex); } context.getReturnBuffer().setTo(wrapper); } } /** * {@code new(javaClass)} * * <p>This function receives a java.lang.Class and returns a new instance of this class.</p> * * <p>{@code new} works just like {@code newInstance}, but the first argument is an instance of * the class.</p> * * <p>Example:</p> * * <pre> * str = luajava.bindClass("java.lang.String") * strInstance = luajava.new(str) * </pre> */ static class New extends AbstractLibFunction { static final New INSTANCE = new New(); @Override protected String name() { return "new"; } @Override protected void invoke(ExecutionContext context, ArgumentIterator args) throws ResolvedControlThrowable { ClassWrapper classWrapper = args .nextUserdata(ClassWrapper.staticTypeName(), ClassWrapper.class); final ObjectWrapper instance; try { instance = ObjectWrapper.newInstance(classWrapper.get(), new Object[]{}); } catch (MethodSelectionException | IllegalAccessException | InstantiationException | InvocationTargetException ex) { throw new LuaRuntimeException(ex); } context.getReturnBuffer().setTo(instance); } } /** * {@code createProxy(interfaceNames, luaObject)} * * <p>We can also, instead of creating a Java object to be manipulated by Lua, create a Lua * object that will be manipulated by Java. We can do that in LuaJava by creating a proxy to * that object. This is done by the {@code createProxy} function.</p> * * <p>The function {@code createProxy} returns a java Object reference that can be used as * an implementation of the given interface.</p> * * <p>{@code createProxy} receives a string that contains the names of the interfaces to * be implemented, separated by a comma ({@code ,}), and a Lua object that is the interface * implementation.</p> * * <p>Example:</p> * * <pre> * button = luajava.newInstance("java.awt.Button", "execute") * button_cb = {} * function button_cb.actionPerformed(ev) * -- ... * end * * buttonProxy = luajava.createProxy("java.awt.ActionListener", * button_cb) * * button:addActionListener(buttonProxy) * </pre> * * <p>We can use Lua scripts to write implementations only for Java interfaces.</p> */ static class CreateProxy extends AbstractLibFunction { static final CreateProxy INSTANCE = new CreateProxy(); @Override protected String name() { return "createProxy"; } @Override protected void invoke(ExecutionContext context, ArgumentIterator args) throws ResolvedControlThrowable { throw new UnsupportedOperationException("not implemented: " + name()); // TODO } } /** * {@code loadLib(className, methodName)} * * <p>loadLib is a function that has a use similar to Lua's {@code loadlib} function. * The purpose of this function is to allow users to write libraries in Java and then load * them into Lua.</p> * * <p>What {@code loadLib} does is call a static function in a given class and execute * a given method, which should receive {@code LuaState} as parameter. If this function * returns a integer, LuaJava takes it as the number of parameters returned by the the * function, otherwise nothing is returned.</p> * * <p>The following Lua example can access the global {@code eg} created by the Java class * {@code test.LoadLibExample}: * * <pre> * luajava.loadLib("test.LoadLibExample", "open") * eg.example(3) * </pre> * * <p>And this Java example implements the method {@code example}:</p> * * <pre> * public static int open(LuaState L) throws LuaException { * L.newTable(); * L.pushValue(-1); * L.setGlobal("eg"); * * L.pushString("example"); * * L.pushJavaFunction(new JavaFunction(L) { * // * // Example for loadLib. * // Prints the time and the first parameter, if any. * // * public int execute() throws LuaException { * System.out.println(new Date().toString()); * * if (L.getTop() > 1) { * System.out.println(getParam(2)); * } * * return 0; * } * }); * * L.setTable(-3); * * return 1; * } * </pre> */ static class LoadLib extends AbstractLibFunction { static final LoadLib INSTANCE = new LoadLib(); @Override protected String name() { return "loadLib"; } @Override protected void invoke(ExecutionContext context, ArgumentIterator args) throws ResolvedControlThrowable { throw new UnsupportedOperationException("not implemented: " + name()); // TODO } } }
kroepke/luna
luna-luajava-compat/src/main/java/org/classdump/luna/lib/luajava/LuaJavaLib.java
Java
apache-2.0
9,831
# ----------------------------------------------------------------------------- # # Package : github.com/mholt/certmagic # Version : v0.6.2-0.20190624175158-6a42ef9fe8c2 # Source repo : https://github.com/mholt/certmagic # Tested on : RHEL 8.3 # Script License: Apache License, Version 2 or later # Maintainer : BulkPackageSearch Automation <sethp@us.ibm.com> # # Disclaimer: This script has been tested in root mode on given # ========== platform using the mentioned version of the package. # It may not work as expected with newer versions of the # package and/or distribution. In such case, please # contact "Maintainer" of this script. # # ---------------------------------------------------------------------------- PACKAGE_NAME=github.com/mholt/certmagic PACKAGE_VERSION=v0.6.2-0.20190624175158-6a42ef9fe8c2 PACKAGE_URL=https://github.com/mholt/certmagic yum -y update && yum install -y nodejs nodejs-devel nodejs-packaging npm python38 python38-devel ncurses git jq wget gcc-c++ wget https://golang.org/dl/go1.16.1.linux-ppc64le.tar.gz && tar -C /bin -xf go1.16.1.linux-ppc64le.tar.gz && mkdir -p /home/tester/go/src /home/tester/go/bin /home/tester/go/pkg export PATH=$PATH:/bin/go/bin export GOPATH=/home/tester/go OS_NAME=`python3 -c "os_file_data=open('/etc/os-release').readlines();os_info = [i.replace('PRETTY_NAME=','').strip() for i in os_file_data if i.startswith('PRETTY_NAME')];print(os_info[0])"` export PATH=$GOPATH/bin:$PATH export GO111MODULE=on function test_with_master_without_flag_u(){ echo "Building $PACKAGE_PATH with master branch" export GO111MODULE=auto if ! go get -d -t $PACKAGE_NAME; then echo "------------------$PACKAGE_NAME:install_fails-------------------------------------" echo "$PACKAGE_VERSION $PACKAGE_NAME" > /home/tester/output/install_fails echo "$PACKAGE_NAME | $PACKAGE_VERSION | master | $OS_NAME | GitHub | Fail | Install_Fails" > /home/tester/output/version_tracker exit 0 else cd $(ls -d $GOPATH/pkg/mod/$PACKAGE_NAME*) echo "Testing $PACKAGE_PATH with master branch without flag -u" # Ensure go.mod file exists go mod init if ! gi test ./...; then echo "------------------$PACKAGE_NAME:install_success_but_test_fails---------------------" echo "$PACKAGE_VERSION $PACKAGE_NAME" > /home/tester/output/test_fails echo "$PACKAGE_NAME | $PACKAGE_VERSION | master | $OS_NAME | GitHub | Fail | Install_success_but_test_Fails" > /home/tester/output/version_tracker exit 0 else echo "------------------$PACKAGE_NAME:install_&_test_both_success-------------------------" echo "$PACKAGE_VERSION $PACKAGE_NAME" > /home/tester/output/test_success echo "$PACKAGE_NAME | $PACKAGE_VERSION | master | $OS_NAME | GitHub | Pass | Both_Install_and_Test_Success" > /home/tester/output/version_tracker exit 0 fi fi } function test_with_master(){ echo "Building $PACKAGE_PATH with master" export GO111MODULE=auto if ! go get -d -u -t $PACKAGE_NAME@$PACKAGE_VERSION; then test_with_master_without_flag_u exit 0 fi cd $(ls -d $GOPATH/pkg/mod/$PACKAGE_NAME*) echo "Testing $PACKAGE_PATH with $PACKAGE_VERSION" # Ensure go.mod file exists go mod init if ! go test ./...; then test_with_master_without_flag_u exit 0 else echo "------------------$PACKAGE_NAME:install_&_test_both_success-------------------------" echo "$PACKAGE_VERSION $PACKAGE_NAME" > /home/tester/output/test_success echo "$PACKAGE_NAME | $PACKAGE_VERSION | $PACKAGE_VERSION | $OS_NAME | GitHub | Pass | Both_Install_and_Test_Success" > /home/tester/output/version_tracker exit 0 fi } function test_without_flag_u(){ echo "Building $PACKAGE_PATH with $PACKAGE_VERSION and without -u flag" if ! go get -d -t $PACKAGE_NAME@$PACKAGE_VERSION; then test_with_master exit 0 fi cd $(ls -d $GOPATH/pkg/mod/$PACKAGE_NAME*) echo "Testing $PACKAGE_PATH with $PACKAGE_VERSION" # Ensure go.mod file exists go mod init if ! go test ./...; then test_with_master exit 0 else echo "------------------$PACKAGE_NAME:install_&_test_both_success-------------------------" echo "$PACKAGE_VERSION $PACKAGE_NAME" > /home/tester/output/test_success echo "$PACKAGE_NAME | $PACKAGE_VERSION | $PACKAGE_VERSION | $OS_NAME | GitHub | Pass | Both_Install_and_Test_Success" > /home/tester/output/version_tracker exit 0 fi } echo "Building $PACKAGE_PATH with $PACKAGE_VERSION" if ! go get -d -u -t $PACKAGE_NAME@$PACKAGE_VERSION; then test_without_flag_u exit 0 fi cd $(ls -d $GOPATH/pkg/mod/$PACKAGE_NAME*) echo "Testing $PACKAGE_PATH with $PACKAGE_VERSION" # Ensure go.mod file exists go mod init if ! go test ./...; then test_with_master exit 0 else echo "------------------$PACKAGE_NAME:install_&_test_both_success-------------------------" echo "$PACKAGE_VERSION $PACKAGE_NAME" > /home/tester/output/test_success echo "$PACKAGE_NAME | $PACKAGE_VERSION | $PACKAGE_VERSION | $OS_NAME | GitHub | Pass | Both_Install_and_Test_Success" > /home/tester/output/version_tracker exit 0 fi
ppc64le/build-scripts
g/github.com__mholt__certmagic/github.com__mholt__certmagic_rhel_8.3.sh
Shell
apache-2.0
5,121
/* * Copyright 2012-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file 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.amazonaws.services.lexmodelbuilding.model.transform; import javax.annotation.Generated; import com.amazonaws.SdkClientException; import com.amazonaws.Request; import com.amazonaws.http.HttpMethodName; import com.amazonaws.services.lexmodelbuilding.model.*; import com.amazonaws.transform.Marshaller; import com.amazonaws.protocol.*; import com.amazonaws.annotation.SdkInternalApi; /** * CreateIntentVersionRequest Marshaller */ @Generated("com.amazonaws:aws-java-sdk-code-generator") @SdkInternalApi public class CreateIntentVersionRequestProtocolMarshaller implements Marshaller<Request<CreateIntentVersionRequest>, CreateIntentVersionRequest> { private static final OperationInfo SDK_OPERATION_BINDING = OperationInfo.builder().protocol(Protocol.REST_JSON).requestUri("/intents/{name}/versions") .httpMethodName(HttpMethodName.POST).hasExplicitPayloadMember(false).hasPayloadMembers(true).serviceName("AmazonLexModelBuilding").build(); private final com.amazonaws.protocol.json.SdkJsonProtocolFactory protocolFactory; public CreateIntentVersionRequestProtocolMarshaller(com.amazonaws.protocol.json.SdkJsonProtocolFactory protocolFactory) { this.protocolFactory = protocolFactory; } public Request<CreateIntentVersionRequest> marshall(CreateIntentVersionRequest createIntentVersionRequest) { if (createIntentVersionRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { final ProtocolRequestMarshaller<CreateIntentVersionRequest> protocolMarshaller = protocolFactory.createProtocolMarshaller(SDK_OPERATION_BINDING, createIntentVersionRequest); protocolMarshaller.startMarshalling(); CreateIntentVersionRequestMarshaller.getInstance().marshall(createIntentVersionRequest, protocolMarshaller); return protocolMarshaller.finishMarshalling(); } catch (Exception e) { throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e); } } }
dagnir/aws-sdk-java
aws-java-sdk-lexmodelbuilding/src/main/java/com/amazonaws/services/lexmodelbuilding/model/transform/CreateIntentVersionRequestProtocolMarshaller.java
Java
apache-2.0
2,690
# Echioglossum complicatum (Seidenf.) Szlach. SPECIES #### Status SYNONYM #### According to The Catalogue of Life, 3rd January 2011 #### Published in null #### Original name null ### Remarks null
mdoering/backbone
life/Plantae/Magnoliophyta/Liliopsida/Asparagales/Orchidaceae/Cleisostoma/Cleisostoma complicatum/ Syn. Echioglossum complicatum/README.md
Markdown
apache-2.0
200
/******************************************************************************* * Copyright 2010 Atos Worldline SAS * * Licensed by Atos Worldline SAS under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * Atos Worldline SAS 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 net.padaf.preflight.font; import java.util.List; import net.padaf.preflight.ValidationException; import net.padaf.preflight.ValidationResult.ValidationError; import net.padaf.preflight.font.AbstractFontContainer.State; public interface FontValidator { /** * Call this method to validate the font wrapped by this interface * implementation. Return true if the validation succeed, false otherwise. If * the validation failed, the error is updated in the FontContainer with the * right error code. * * @return */ public abstract boolean validate() throws ValidationException; /** * Return the State of the Font Validation. Three values are possible : * <UL> * <li>VALID : there are no errors * <li>MAYBE : Metrics aren't consistent of the FontProgram isn't embedded, * but it can be valid. * <li>INVALID : the validation fails * </UL> * * @return */ public State getState(); /** * Return all validation errors. * * @return */ public List<ValidationError> getValdiationErrors(); }
gbm-bailleul/padaf
preflight/src/main/java/net/padaf/preflight/font/FontValidator.java
Java
apache-2.0
2,064
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <!--NewPage--> <HTML> <HEAD> <!-- Generated by javadoc (build 1.6.0_03) on Mon Nov 19 21:41:11 CET 2007 --> <TITLE> org.springframework.jdbc.support.incrementer (Spring Framework API 2.5) </TITLE> <META NAME="date" CONTENT="2007-11-19"> <LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../stylesheet.css" TITLE="Style"> </HEAD> <BODY BGCOLOR="white"> <FONT size="+1" CLASS="FrameTitleFont"> <A HREF="../../../../../org/springframework/jdbc/support/incrementer/package-summary.html" target="classFrame">org.springframework.jdbc.support.incrementer</A></FONT> <TABLE BORDER="0" WIDTH="100%" SUMMARY=""> <TR> <TD NOWRAP><FONT size="+1" CLASS="FrameHeadingFont"> Interfaces</FONT>&nbsp; <FONT CLASS="FrameItemFont"> <BR> <A HREF="DataFieldMaxValueIncrementer.html" title="interface in org.springframework.jdbc.support.incrementer" target="classFrame"><I>DataFieldMaxValueIncrementer</I></A></FONT></TD> </TR> </TABLE> <TABLE BORDER="0" WIDTH="100%" SUMMARY=""> <TR> <TD NOWRAP><FONT size="+1" CLASS="FrameHeadingFont"> Classes</FONT>&nbsp; <FONT CLASS="FrameItemFont"> <BR> <A HREF="AbstractDataFieldMaxValueIncrementer.html" title="class in org.springframework.jdbc.support.incrementer" target="classFrame">AbstractDataFieldMaxValueIncrementer</A> <BR> <A HREF="AbstractSequenceMaxValueIncrementer.html" title="class in org.springframework.jdbc.support.incrementer" target="classFrame">AbstractSequenceMaxValueIncrementer</A> <BR> <A HREF="DB2SequenceMaxValueIncrementer.html" title="class in org.springframework.jdbc.support.incrementer" target="classFrame">DB2SequenceMaxValueIncrementer</A> <BR> <A HREF="DerbyMaxValueIncrementer.html" title="class in org.springframework.jdbc.support.incrementer" target="classFrame">DerbyMaxValueIncrementer</A> <BR> <A HREF="H2SequenceMaxValueIncrementer.html" title="class in org.springframework.jdbc.support.incrementer" target="classFrame">H2SequenceMaxValueIncrementer</A> <BR> <A HREF="HsqlMaxValueIncrementer.html" title="class in org.springframework.jdbc.support.incrementer" target="classFrame">HsqlMaxValueIncrementer</A> <BR> <A HREF="HsqlSequenceMaxValueIncrementer.html" title="class in org.springframework.jdbc.support.incrementer" target="classFrame">HsqlSequenceMaxValueIncrementer</A> <BR> <A HREF="MySQLMaxValueIncrementer.html" title="class in org.springframework.jdbc.support.incrementer" target="classFrame">MySQLMaxValueIncrementer</A> <BR> <A HREF="OracleSequenceMaxValueIncrementer.html" title="class in org.springframework.jdbc.support.incrementer" target="classFrame">OracleSequenceMaxValueIncrementer</A> <BR> <A HREF="PostgreSQLSequenceMaxValueIncrementer.html" title="class in org.springframework.jdbc.support.incrementer" target="classFrame">PostgreSQLSequenceMaxValueIncrementer</A></FONT></TD> </TR> </TABLE> </BODY> </HTML>
mattxia/spring-2.5-analysis
docs/api/org/springframework/jdbc/support/incrementer/package-frame.html
HTML
apache-2.0
2,913
# Psidium arasa-pe D.Parodi SPECIES #### Status ACCEPTED #### According to International Plant Names Index #### Published in null #### Original name null ### Remarks null
mdoering/backbone
life/Plantae/Magnoliophyta/Magnoliopsida/Myrtales/Myrtaceae/Psidium/Psidium arasa-pe/README.md
Markdown
apache-2.0
175
# -*- coding: utf-8 -*- # Copyright 2015 OpenMarket Ltd # # 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 # # 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. from twisted.internet import defer from synapse.api.errors import AuthError, StoreError, SynapseError from synapse.http.servlet import RestServlet from ._base import client_v2_pattern, parse_json_dict_from_request class TokenRefreshRestServlet(RestServlet): """ Exchanges refresh tokens for a pair of an access token and a new refresh token. """ PATTERN = client_v2_pattern("/tokenrefresh") def __init__(self, hs): super(TokenRefreshRestServlet, self).__init__() self.hs = hs self.store = hs.get_datastore() @defer.inlineCallbacks def on_POST(self, request): body = parse_json_dict_from_request(request) try: old_refresh_token = body["refresh_token"] auth_handler = self.hs.get_handlers().auth_handler (user_id, new_refresh_token) = yield self.store.exchange_refresh_token( old_refresh_token, auth_handler.generate_refresh_token) new_access_token = yield auth_handler.issue_access_token(user_id) defer.returnValue((200, { "access_token": new_access_token, "refresh_token": new_refresh_token, })) except KeyError: raise SynapseError(400, "Missing required key 'refresh_token'.") except StoreError: raise AuthError(403, "Did not recognize refresh token") def register_servlets(hs, http_server): TokenRefreshRestServlet(hs).register(http_server)
iot-factory/synapse
synapse/rest/client/v2_alpha/tokenrefresh.py
Python
apache-2.0
2,090
/* * Copyright 2017 HM Revenue & Customs * * 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 * * 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 uk.gov.hmrc.ct.ct600a.v2 import uk.gov.hmrc.ct.box.{Calculated, CtBoxIdentifier, CtOptionalInteger} import uk.gov.hmrc.ct.ct600.v2.calculations.LoansToParticipatorsCalculator import uk.gov.hmrc.ct.ct600a.v2.retriever.CT600ABoxRetriever case class A8(value: Option[Int]) extends CtBoxIdentifier(name = "A8 - Information about loans made during the return period which have been repaid more than nine months after the end of the period and relief is due now") with CtOptionalInteger object A8 extends Calculated[A8, CT600ABoxRetriever] with LoansToParticipatorsCalculator { override def calculate(fieldValueRetriever: CT600ABoxRetriever): A8 = { import fieldValueRetriever._ calculateA8(cp2(), lp02(), lpq07()) } }
pncampbell/ct-calculations
src/main/scala/uk/gov/hmrc/ct/ct600a/v2/A8.scala
Scala
apache-2.0
1,343
import java.io.IOException; import java.util.concurrent.CountDownLatch; import java.util.concurrent.TimeUnit; import java.util.concurrent.TimeoutException; import org.apache.thrift.protocol.TBinaryProtocol; import org.apache.thrift.transport.TNonblockingSocket; import org.apache.thrift.TException; import org.apache.thrift.async.TAsyncMethodCall; import org.apache.thrift.async.TAsyncClientManager; import org.apache.thrift.async.AsyncMethodCallback; import TradeReporting.TradeReport; public class AsyncClient { //Class template supporting async wait and timeout private static abstract class WaitableCallback<T> implements AsyncMethodCallback<T> { private CountDownLatch latch = new CountDownLatch(1); //Synchronization Interface public void reset() { latch = new CountDownLatch(1); } public void complete() { latch.countDown(); } public boolean wait(int i) { boolean b = false; try { b = latch.await(i, TimeUnit.MILLISECONDS); } catch(Exception e) { System.out.println("[Client] await error"); } return b; } //AsyncMethodCallback<T> interface @Override public void onError(Exception ex) { if (ex instanceof TimeoutException) { System.out.println("[Client] Async call timed out"); } else { System.out.println("[Client] Async call error"); } complete(); } } //Application entry point public static void main(String[] args) throws IOException, InterruptedException, TException { //Async client and I/O stack setup TNonblockingSocket trans_ep = new TNonblockingSocket("localhost", 9090); TAsyncClientManager client_man = new TAsyncClientManager(); TradeReporting.TradeHistory.AsyncClient client = new TradeReporting.TradeHistory.AsyncClient(new TBinaryProtocol.Factory(), client_man, trans_ep); //get_last_sale() async callback handler WaitableCallback<TradeReport> wc = new WaitableCallback<TradeReport>() { @Override public void onComplete(TradeReport tr) { try { System.out.println("[Client] received [" + tr.seq_num + "] " + tr.symbol + " : " + tr.size + " @ " + tr.price); } finally { complete(); } } }; //Make async calls wc.reset(); client.get_last_sale("IBM", wc); System.out.println("[Client] get_last_sale() executing asynch..."); wc.wait(500); wc.reset(); client.get_last_sale("F", wc); wc.wait(25000); //Make an async call which will time out client.setTimeout(1000); wc.reset(); client.get_last_sale("GE", wc); wc.wait(5000); //Shutdown async client manager and close network socket client_man.stop(); trans_ep.close(); } }
RandyAbernethy/ThriftBook
part3/java/async/AsyncClient.java
Java
apache-2.0
3,140
FROM phusion/baseimage:0.9.12 MAINTAINER Y12STUDIO <y12studio@gmail.com> ENV BITCOIND_VERSION 0.9.2 ENV HOME /root ENV LANG zh_TW.UTF-8 ENV LC_ALL zh_TW.UTF-8 ENV DEBIAN_FRONTEND noninteractive # Use UTF-8 locale inside the container RUN locale-gen zh_TW.UTF-8 && echo 'LANG="zh_TW.UTF-8"' > /etc/default/locale # Use the phusion baseimage's insecure key RUN /usr/sbin/enable_insecure_key RUN apt-get update && apt-get upgrade -y RUN apt-get install -y git build-essential libtool autotools-dev autoconf pkg-config libssl-dev libboost-all-dev bsdmainutils RUN git clone -b $BITCOIND_VERSION https://github.com/bitcoin/bitcoin.git /bitcoind-git RUN cd /bitcoind-git && ./autogen.sh && ./configure --disable-wallet --without-gui && make -j4 RUN strip /bitcoind-git/src/bitcoind EXPOSE 8333 8332 ADD bitcoin.conf /.bitcoin/bitcoin.conf ADD run.sh /etc/service/bitcoind/run ADD cli.sh /root/cli ADD README.md /root/README.md RUN chmod +x /etc/service/bitcoind/run && chmod +x /root/cli CMD ["/sbin/my_init"] # Clean up APT when done. RUN apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
y12studio/bkbc-tools
projects/docker-bitcoin/bitcoind/Dockerfile
Dockerfile
apache-2.0
1,105
/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this file, * You can obtain one at http://mozilla.org/MPL/2.0/. */ const Cc = Components.classes; const Ci = Components.interfaces; const Cr = Components.results; const Cu = Components.utils; //////////////////////////////////////////////////////////////////////////////// //// Modules Cu.import("resource://gre/modules/XPCOMUtils.jsm"); Cu.import("resource://gre/modules/Services.jsm"); XPCOMUtils.defineLazyModuleGetter(this, "PlacesUtils", "resource://gre/modules/PlacesUtils.jsm"); XPCOMUtils.defineLazyModuleGetter(this, "NetUtil", "resource://gre/modules/NetUtil.jsm"); //////////////////////////////////////////////////////////////////////////////// //// Services XPCOMUtils.defineLazyServiceGetter(this, "secMan", "@mozilla.org/scriptsecuritymanager;1", "nsIScriptSecurityManager"); XPCOMUtils.defineLazyGetter(this, "asyncHistory", function () { // Lazily add an history observer when it's actually needed. PlacesUtils.history.addObserver(PlacesUtils.livemarks, true); return Cc["@mozilla.org/browser/history;1"].getService(Ci.mozIAsyncHistory); }); //////////////////////////////////////////////////////////////////////////////// //// Constants // Security flags for checkLoadURIWithPrincipal. const SEC_FLAGS = Ci.nsIScriptSecurityManager.DISALLOW_INHERIT_PRINCIPAL; // Delay between reloads of consecute livemarks. const RELOAD_DELAY_MS = 500; // Expire livemarks after this time. const EXPIRE_TIME_MS = 3600000; // 1 hour. // Expire livemarks after this time on error. const ONERROR_EXPIRE_TIME_MS = 300000; // 5 minutes. //////////////////////////////////////////////////////////////////////////////// //// LivemarkService function LivemarkService() { // Cleanup on shutdown. Services.obs.addObserver(this, PlacesUtils.TOPIC_SHUTDOWN, true); // Observe bookmarks and history, but don't init the services just for that. PlacesUtils.addLazyBookmarkObserver(this, true); // Asynchronously build the livemarks cache. this._ensureAsynchronousCache(); } LivemarkService.prototype = { // Cache of Livemark objects, hashed by bookmarks folder ids. _livemarks: {}, // Hash associating guids to bookmarks folder ids. _guids: {}, get _populateCacheSQL() { function getAnnoSQLFragment(aAnnoParam) { return "SELECT a.content " + "FROM moz_items_annos a " + "JOIN moz_anno_attributes n ON n.id = a.anno_attribute_id " + "WHERE a.item_id = b.id " + "AND n.name = " + aAnnoParam; } return "SELECT b.id, b.title, b.parent, b.position, b.guid, b.lastModified, " + "(" + getAnnoSQLFragment(":feedURI_anno") + ") AS feedURI, " + "(" + getAnnoSQLFragment(":siteURI_anno") + ") AS siteURI " + "FROM moz_bookmarks b " + "JOIN moz_items_annos a ON a.item_id = b.id " + "JOIN moz_anno_attributes n ON a.anno_attribute_id = n.id " + "WHERE b.type = :folder_type " + "AND n.name = :feedURI_anno "; }, _ensureAsynchronousCache: function LS__ensureAsynchronousCache() { let db = PlacesUtils.history.QueryInterface(Ci.nsPIPlacesDatabase) .DBConnection; let stmt = db.createAsyncStatement(this._populateCacheSQL); stmt.params.folder_type = Ci.nsINavBookmarksService.TYPE_FOLDER; stmt.params.feedURI_anno = PlacesUtils.LMANNO_FEEDURI; stmt.params.siteURI_anno = PlacesUtils.LMANNO_SITEURI; let livemarkSvc = this; this._pendingStmt = stmt.executeAsync({ handleResult: function LS_handleResult(aResults) { for (let row = aResults.getNextRow(); row; row = aResults.getNextRow()) { let id = row.getResultByName("id"); let siteURL = row.getResultByName("siteURI"); let guid = row.getResultByName("guid"); livemarkSvc._livemarks[id] = new Livemark({ id: id, guid: guid, title: row.getResultByName("title"), parentId: row.getResultByName("parent"), index: row.getResultByName("position"), lastModified: row.getResultByName("lastModified"), feedURI: NetUtil.newURI(row.getResultByName("feedURI")), siteURI: siteURL ? NetUtil.newURI(siteURL) : null, }); livemarkSvc._guids[guid] = id; } }, handleError: function LS_handleError(aErr) { Cu.reportError("AsyncStmt error (" + aErr.result + "): '" + aErr.message); }, handleCompletion: function LS_handleCompletion() { livemarkSvc._pendingStmt = null; } }); stmt.finalize(); }, _onCacheReady: function LS__onCacheReady(aCallback, aWaitForAsyncWrites) { if (this._pendingStmt || aWaitForAsyncWrites) { // The cache is still being populated, so enqueue the job to the Storage // async thread. Ideally this should just dispatch a runnable to it, // that would call back on the main thread, but bug 608142 made that // impossible. Thus just enqueue the cheapest query possible. let db = PlacesUtils.history.QueryInterface(Ci.nsPIPlacesDatabase) .DBConnection; let stmt = db.createAsyncStatement("PRAGMA encoding"); stmt.executeAsync({ handleError: function () {}, handleResult: function () {}, handleCompletion: function ETAT_handleCompletion() { aCallback(); } }); stmt.finalize(); } else { // The callbacks should always be enqueued per the interface. // Just enque on the main thread. Services.tm.mainThread.dispatch(aCallback, Ci.nsIThread.DISPATCH_NORMAL); } }, _reloading: false, _startReloadTimer: function LS__startReloadTimer() { if (this._reloadTimer) { this._reloadTimer.cancel(); } else { this._reloadTimer = Cc["@mozilla.org/timer;1"] .createInstance(Ci.nsITimer); } this._reloading = true; this._reloadTimer.initWithCallback(this._reloadNextLivemark.bind(this), RELOAD_DELAY_MS, Ci.nsITimer.TYPE_ONE_SHOT); }, ////////////////////////////////////////////////////////////////////////////// //// nsIObserver observe: function LS_observe(aSubject, aTopic, aData) { if (aTopic == PlacesUtils.TOPIC_SHUTDOWN) { if (this._pendingStmt) { this._pendingStmt.cancel(); this._pendingStmt = null; // Initialization never finished, so just bail out. return; } if (this._reloadTimer) { this._reloading = false; this._reloadTimer.cancel(); delete this._reloadTimer; } // Stop any ongoing update. for each (let livemark in this._livemarks) { livemark.terminate(); } this._livemarks = {}; } }, ////////////////////////////////////////////////////////////////////////////// //// Deprecated nsILivemarkService methods _reportDeprecatedMethod: function DEPRECATED_LS__reportDeprecatedMethod() { let oldFuncName = arguments.callee.caller.name.slice(14); Cu.reportError(oldFuncName + " is deprecated and will be removed in a " + "future release. Check the nsILivemarkService interface."); }, _ensureSynchronousCache: function DEPRECATED_LS__ensureSynchronousCache() { if (!this._pendingStmt) { return; } this._pendingStmt.cancel(); this._pendingStmt = null; let db = PlacesUtils.history.QueryInterface(Ci.nsPIPlacesDatabase) .DBConnection; let stmt = db.createStatement(this._populateCacheSQL); stmt.params.folder_type = Ci.nsINavBookmarksService.TYPE_FOLDER; stmt.params.feedURI_anno = PlacesUtils.LMANNO_FEEDURI; stmt.params.siteURI_anno = PlacesUtils.LMANNO_SITEURI; while (stmt.executeStep()) { let id = stmt.row.id; let siteURL = stmt.row.siteURI; let guid = stmt.row.guid; this._livemarks[id] = new Livemark({ id: id, guid: guid, title: stmt.row.title, parentId: stmt.row.parent, index: stmt.row.position, lastModified: stmt.row.lastModified, feedURI: NetUtil.newURI(stmt.row.feedURI), siteURI: siteURL ? NetUtil.newURI(siteURL) : null, }); this._guids[guid] = id; } stmt.finalize(); }, start: function DEPRECATED_LS_start() { this._reportDeprecatedMethod(); }, stopUpdateLivemarks: function DEPRECATED_LS_stopUpdateLivemarks() { this._reportDeprecatedMethod(); }, createLivemark: function LS_createLivemark(aParentId, aTitle, aSiteURI, aFeedURI, aIndex) { this._reportDeprecatedMethod(); this._ensureSynchronousCache(); if (!aParentId || aParentId < 1 || aIndex < -1 || !aFeedURI || !(aFeedURI instanceof Ci.nsIURI) || (aSiteURI && !(aSiteURI instanceof Ci.nsIURI)) || aParentId in this._livemarks) { throw Cr.NS_ERROR_INVALID_ARG; } let livemark = new Livemark({ title: aTitle , parentId: aParentId , index: aIndex , feedURI: aFeedURI , siteURI: aSiteURI }); if (this._itemAdded && this._itemAdded.id == livemark.id) { livemark.guid = this._itemAdded.guid; livemark.index = this._itemAdded.index; livemark.lastModified = this._itemAdded.lastModified; } this._livemarks[livemark.id] = livemark; this._guids[livemark.guid] = livemark.id; return livemark.id; }, createLivemarkFolderOnly: function DEPRECATED_LS_(aParentId, aTitle, aSiteURI, aFeedURI, aIndex) { return this.createLivemark(aParentId, aTitle, aSiteURI, aFeedURI, aIndex); }, isLivemark: function DEPRECATED_LS_isLivemark(aId) { this._reportDeprecatedMethod(); if (!aId || aId < 1) { throw Cr.NS_ERROR_INVALID_ARG; } this._ensureSynchronousCache(); return aId in this._livemarks; }, getLivemarkIdForFeedURI: function DEPRECATED_LS_getLivemarkIdForFeedURI(aFeedURI) { this._reportDeprecatedMethod(); if (!(aFeedURI instanceof Ci.nsIURI)) { throw Cr.NS_ERROR_INVALID_ARG; } this._ensureSynchronousCache(); for each (livemark in this._livemarks) { if (livemark.feedURI.equals(aFeedURI)) { return livemark.id; } } return -1; }, getSiteURI: function DEPRECATED_LS_getSiteURI(aId) { this._reportDeprecatedMethod(); this._ensureSynchronousCache(); if (!(aId in this._livemarks)) { throw Cr.NS_ERROR_INVALID_ARG; } return this._livemarks[aId].siteURI; }, setSiteURI: function DEPRECATED_LS_writeSiteURI(aId, aSiteURI) { this._reportDeprecatedMethod(); if (!aSiteURI || !(aSiteURI instanceof Ci.nsIURI)) { throw Cr.NS_ERROR_INVALID_ARG; } }, getFeedURI: function DEPRECATED_LS_getFeedURI(aId) { this._reportDeprecatedMethod(); this._ensureSynchronousCache(); if (!(aId in this._livemarks)) { throw Cr.NS_ERROR_INVALID_ARG; } return this._livemarks[aId].feedURI; }, setFeedURI: function DEPRECATED_LS_writeFeedURI(aId, aFeedURI) { this._reportDeprecatedMethod(); if (!aFeedURI || !(aFeedURI instanceof Ci.nsIURI)) { throw Cr.NS_ERROR_INVALID_ARG; } }, reloadLivemarkFolder: function DEPRECATED_LS_reloadLivemarkFolder(aId) { this._reportDeprecatedMethod(); this._ensureSynchronousCache(); if (!(aId in this._livemarks)) { throw Cr.NS_ERROR_INVALID_ARG; } this._livemarks[aId].reload(); }, reloadAllLivemarks: function DEPRECATED_LS_reloadAllLivemarks() { this._reportDeprecatedMethod(); this._reloadLivemarks(true); }, ////////////////////////////////////////////////////////////////////////////// //// mozIAsyncLivemarks addLivemark: function LS_addLivemark(aLivemarkInfo, aLivemarkCallback) { // Must provide at least non-null parentId, index and feedURI. if (!aLivemarkInfo || ("parentId" in aLivemarkInfo && aLivemarkInfo.parentId < 1) || !("index" in aLivemarkInfo) || aLivemarkInfo.index < Ci.nsINavBookmarksService.DEFAULT_INDEX || !(aLivemarkInfo.feedURI instanceof Ci.nsIURI) || (aLivemarkInfo.siteURI && !(aLivemarkInfo.siteURI instanceof Ci.nsIURI)) || (aLivemarkInfo.guid && !/^[a-zA-Z0-9\-_]{12}$/.test(aLivemarkInfo.guid))) { throw Cr.NS_ERROR_INVALID_ARG; } // The addition is done synchronously due to the fact importExport service // and JSON backups require that. The notification is async though. // Once bookmarks are async, this may be properly fixed. let result = Cr.NS_OK; let livemark = null; try { // Disallow adding a livemark inside another livemark. if (aLivemarkInfo.parentId in this._livemarks) { throw new Components.Exception("", Cr.NS_ERROR_INVALID_ARG); } // Don't pass unexpected input data to the livemark constructor. livemark = new Livemark({ title: aLivemarkInfo.title , parentId: aLivemarkInfo.parentId , index: aLivemarkInfo.index , feedURI: aLivemarkInfo.feedURI , siteURI: aLivemarkInfo.siteURI , guid: aLivemarkInfo.guid , lastModified: aLivemarkInfo.lastModified }); if (this._itemAdded && this._itemAdded.id == livemark.id) { livemark.index = this._itemAdded.index; if (!aLivemarkInfo.guid) { livemark.guid = this._itemAdded.guid; } if (!aLivemarkInfo.lastModified) { livemark.lastModified = this._itemAdded.lastModified; } } // Updating the cache even if it has not yet been populated doesn't // matter since it will just be overwritten. But it must be done now, // otherwise checking for the livemark using any deprecated synchronous // API from an onItemAnnotation notification would give a wrong result. this._livemarks[livemark.id] = livemark; this._guids[aLivemarkInfo.guid] = livemark.id; } catch (ex) { result = ex.result; livemark = null; } finally { if (aLivemarkCallback) { this._onCacheReady(function LS_addLivemark_ETAT() { try { aLivemarkCallback.onCompletion(result, livemark); } catch(ex2) {} }, true); } } }, removeLivemark: function LS_removeLivemark(aLivemarkInfo, aLivemarkCallback) { if (!aLivemarkInfo) { throw Cr.NS_ERROR_INVALID_ARG; } // Accept either a guid or an id. let id = aLivemarkInfo.guid || aLivemarkInfo.id; if (("guid" in aLivemarkInfo && !/^[a-zA-Z0-9\-_]{12}$/.test(aLivemarkInfo.guid)) || ("id" in aLivemarkInfo && aLivemarkInfo.id < 1) || !id) { throw Cr.NS_ERROR_INVALID_ARG; } // Convert the guid to an id. if (id in this._guids) { id = this._guids[id]; } let result = Cr.NS_OK; try { if (!(id in this._livemarks)) { throw new Components.Exception("", Cr.NS_ERROR_INVALID_ARG); } this._livemarks[id].remove(); } catch (ex) { result = ex.result; } finally { if (aLivemarkCallback) { // Enqueue the notification, per interface definition. this._onCacheReady(function LS_removeLivemark_ETAT() { try { aLivemarkCallback.onCompletion(result, null); } catch(ex2) {} }); } } }, _reloaded: [], _reloadNextLivemark: function LS__reloadNextLivemark() { this._reloading = false; // Find first livemark to be reloaded. for (let id in this._livemarks) { if (this._reloaded.indexOf(id) == -1) { this._reloaded.push(id); this._livemarks[id].reload(this._forceUpdate); this._startReloadTimer(); break; } } }, reloadLivemarks: function LS_reloadLivemarks(aForceUpdate) { // Check if there's a currently running reload, to save some useless work. let notWorthRestarting = this._forceUpdate || // We're already forceUpdating. !aForceUpdate; // The caller didn't request a forced update. if (this._reloading && notWorthRestarting) { // Ignore this call. return; } this._onCacheReady((function LS_reloadAllLivemarks_ETAT() { this._forceUpdate = !!aForceUpdate; this._reloaded = []; // Livemarks reloads happen on a timer, and are delayed for performance // reasons. this._startReloadTimer(); }).bind(this)); }, getLivemark: function LS_getLivemark(aLivemarkInfo, aLivemarkCallback) { if (!aLivemarkInfo) { throw Cr.NS_ERROR_INVALID_ARG; } // Accept either a guid or an id. let id = aLivemarkInfo.guid || aLivemarkInfo.id; if (("guid" in aLivemarkInfo && !/^[a-zA-Z0-9\-_]{12}$/.test(aLivemarkInfo.guid)) || ("id" in aLivemarkInfo && aLivemarkInfo.id < 1) || !id) { throw Cr.NS_ERROR_INVALID_ARG; } this._onCacheReady((function LS_getLivemark_ETAT() { // Convert the guid to an id. if (id in this._guids) { id = this._guids[id]; } if (id in this._livemarks) { try { aLivemarkCallback.onCompletion(Cr.NS_OK, this._livemarks[id]); } catch (ex) {} } else { try { aLivemarkCallback.onCompletion(Cr.NS_ERROR_INVALID_ARG, null); } catch (ex) {} } }).bind(this)); }, ////////////////////////////////////////////////////////////////////////////// //// nsINavBookmarkObserver onBeginUpdateBatch: function () {}, onEndUpdateBatch: function () {}, onItemVisited: function () {}, onBeforeItemRemoved: function () {}, _itemAdded: null, onItemAdded: function LS_onItemAdded(aItemId, aParentId, aIndex, aItemType, aURI, aTitle, aDateAdded, aGUID) { if (aItemType == Ci.nsINavBookmarksService.TYPE_FOLDER) { this._itemAdded = { id: aItemId , guid: aGUID , index: aIndex , lastModified: aDateAdded }; } }, onItemChanged: function LS_onItemChanged(aItemId, aProperty, aIsAnno, aValue, aLastModified, aItemType) { if (aItemType == Ci.nsINavBookmarksService.TYPE_FOLDER) { if (this._itemAdded && this._itemAdded.id == aItemId) { this._itemAdded.lastModified = aLastModified; } if (aItemId in this._livemarks) { if (aProperty == "title") { this._livemarks[aItemId].title = aValue; } this._livemarks[aItemId].lastModified = aLastModified; } } }, onItemMoved: function LS_onItemMoved(aItemId, aOldParentId, aOldIndex, aNewParentId, aNewIndex, aItemType) { if (aItemType == Ci.nsINavBookmarksService.TYPE_FOLDER && aItemId in this._livemarks) { this._livemarks[aItemId].parentId = aNewParentId; this._livemarks[aItemId].index = aNewIndex; } }, onItemRemoved: function LS_onItemRemoved(aItemId, aParentId, aIndex, aItemType, aURI, aGUID) { if (aItemType == Ci.nsINavBookmarksService.TYPE_FOLDER && aItemId in this._livemarks) { this._livemarks[aItemId].terminate(); delete this._livemarks[aItemId]; delete this._guids[aGUID]; } }, ////////////////////////////////////////////////////////////////////////////// //// nsINavHistoryObserver onBeginUpdateBatch: function () {}, onEndUpdateBatch: function () {}, onPageChanged: function () {}, onTitleChanged: function () {}, onDeleteVisits: function () {}, onBeforeDeleteURI: function () {}, onClearHistory: function () {}, onDeleteURI: function PS_onDeleteURI(aURI) { for each (let livemark in this._livemarks) { livemark.updateURIVisitedStatus(aURI, false); } }, onVisit: function PS_onVisit(aURI) { for each (let livemark in this._livemarks) { livemark.updateURIVisitedStatus(aURI, true); } }, ////////////////////////////////////////////////////////////////////////////// //// nsISupports classID: Components.ID("{dca61eb5-c7cd-4df1-b0fb-d0722baba251}"), _xpcom_factory: XPCOMUtils.generateSingletonFactory(LivemarkService), QueryInterface: XPCOMUtils.generateQI([ Ci.nsILivemarkService , Ci.mozIAsyncLivemarks , Ci.nsINavBookmarkObserver , Ci.nsINavHistoryObserver , Ci.nsIObserver , Ci.nsISupportsWeakReference ]) }; //////////////////////////////////////////////////////////////////////////////// //// Livemark /** * Object used internally to represent a livemark. * * @param aLivemarkInfo * Object containing information on the livemark. If the livemark is * not included in the object, a new livemark will be created. * * @note terminate() must be invoked before getting rid of this object. */ function Livemark(aLivemarkInfo) { this.title = aLivemarkInfo.title; this.parentId = aLivemarkInfo.parentId; this.index = aLivemarkInfo.index; this._status = Ci.mozILivemark.STATUS_READY; // Hash of resultObservers, hashed by container. this._resultObservers = new Map(); // This keeps a list of the containers used as keys in the map, since // it's not iterable. In future may use an iterable Map. this._resultObserversList = []; // Sorted array of objects representing livemark children in the form // { uri, title, visited }. this._children = []; // Keeps a separate array of nodes for each requesting container, hashed by // the container itself. this._nodes = new Map(); this._guid = ""; this._lastModified = 0; this.loadGroup = null; this.feedURI = null; this.siteURI = null; this.expireTime = 0; if (aLivemarkInfo.id) { // This request comes from the cache. this.id = aLivemarkInfo.id; this.guid = aLivemarkInfo.guid; this.feedURI = aLivemarkInfo.feedURI; this.siteURI = aLivemarkInfo.siteURI; this.lastModified = aLivemarkInfo.lastModified; } else { // Create a new livemark. this.id = PlacesUtils.bookmarks.createFolder(aLivemarkInfo.parentId, aLivemarkInfo.title, aLivemarkInfo.index); PlacesUtils.bookmarks.setFolderReadonly(this.id, true); if (aLivemarkInfo.guid) { this.writeGuid(aLivemarkInfo.guid); } this.writeFeedURI(aLivemarkInfo.feedURI); if (aLivemarkInfo.siteURI) { this.writeSiteURI(aLivemarkInfo.siteURI); } // Last modified time must be the last change. if (aLivemarkInfo.lastModified) { this.lastModified = aLivemarkInfo.lastModified; PlacesUtils.bookmarks.setItemLastModified(this.id, this.lastModified); } } } Livemark.prototype = { get status() this._status, set status(val) { if (this._status != val) { this._status = val; this._invalidateRegisteredContainers(); } return this._status; }, /** * Sets an annotation on the bookmarks folder id representing the livemark. * * @param aAnnoName * Name of the annotation. * @param aValue * Value of the annotation. * @return The annotation value. * @throws If the folder is invalid. */ _setAnno: function LM__setAnno(aAnnoName, aValue) { PlacesUtils.annotations .setItemAnnotation(this.id, aAnnoName, aValue, 0, PlacesUtils.annotations.EXPIRE_NEVER); }, writeFeedURI: function LM_writeFeedURI(aFeedURI) { this._setAnno(PlacesUtils.LMANNO_FEEDURI, aFeedURI.spec); this.feedURI = aFeedURI; }, writeSiteURI: function LM_writeSiteURI(aSiteURI) { if (!aSiteURI) { PlacesUtils.annotations.removeItemAnnotation(this.id, PlacesUtils.LMANNO_SITEURI) this.siteURI = null; return; } // Security check the site URI against the feed URI principal. let feedPrincipal = secMan.getCodebasePrincipal(this.feedURI); try { secMan.checkLoadURIWithPrincipal(feedPrincipal, aSiteURI, SEC_FLAGS); } catch (ex) { return; } this._setAnno(PlacesUtils.LMANNO_SITEURI, aSiteURI.spec) this.siteURI = aSiteURI; }, writeGuid: function LM_writeGuid(aGUID) { // There isn't a way to create a bookmark with a given guid yet, nor to // set a guid on an existing one. So, for now, just go the dirty way. let db = PlacesUtils.history.QueryInterface(Ci.nsPIPlacesDatabase) .DBConnection; let stmt = db.createAsyncStatement("UPDATE moz_bookmarks " + "SET guid = :guid " + "WHERE id = :item_id"); stmt.params.guid = aGUID; stmt.params.item_id = this.id; let livemark = this; stmt.executeAsync({ handleError: function () {}, handleResult: function () {}, handleCompletion: function ETAT_handleCompletion(aReason) { if (aReason == Ci.mozIStorageStatementCallback.REASON_FINISHED) { livemark._guid = aGUID; } } }); stmt.finalize(); }, set guid(aGUID) { this._guid = aGUID; return aGUID; }, get guid() { if (!/^[a-zA-Z0-9\-_]{12}$/.test(this._guid)) { // The old synchronous interface is not guid-aware, so this may still have // to be populated manually. let db = PlacesUtils.history.QueryInterface(Ci.nsPIPlacesDatabase) .DBConnection; let stmt = db.createStatement("SELECT guid FROM moz_bookmarks " + "WHERE id = :item_id"); stmt.params.item_id = this.id; try { if (stmt.executeStep()) { this._guid = stmt.row.guid; } } finally { stmt.finalize(); } } return this._guid; }, set lastModified(aLastModified) { this._lastModified = aLastModified; return aLastModified; }, get lastModified() { if (!this._lastModified) { // The old synchronous interface ignores the last modified time. let db = PlacesUtils.history.QueryInterface(Ci.nsPIPlacesDatabase) .DBConnection; let stmt = db.createStatement("SELECT lastModified FROM moz_bookmarks " + "WHERE id = :item_id"); stmt.params.item_id = this.id; try { if (stmt.executeStep()) { this._lastModified = stmt.row.lastModified; } } finally { stmt.finalize(); } } return this._lastModified; }, /** * Tries to updates the livemark if needed. * The update process is asynchronous. * * @param [optional] aForceUpdate * If true will try to update the livemark even if its contents have * not yet expired. */ updateChildren: function LM_updateChildren(aForceUpdate) { // Check if the livemark is already updating. if (this.status == Ci.mozILivemark.STATUS_LOADING) return; // Check the TTL/expiration on this, to check if there is no need to update // this livemark. if (!aForceUpdate && this.children.length && this.expireTime > Date.now()) return; this.status = Ci.mozILivemark.STATUS_LOADING; // Setting the status notifies observers that may remove the livemark. if (this._terminated) return; try { // Create a load group for the request. This will allow us to // automatically keep track of redirects, so we can always // cancel the channel. let loadgroup = Cc["@mozilla.org/network/load-group;1"]. createInstance(Ci.nsILoadGroup); let channel = NetUtil.newChannel(this.feedURI.spec). QueryInterface(Ci.nsIHttpChannel); channel.loadGroup = loadgroup; channel.loadFlags |= Ci.nsIRequest.LOAD_BACKGROUND | Ci.nsIRequest.LOAD_BYPASS_CACHE; channel.requestMethod = "GET"; channel.setRequestHeader("X-Moz", "livebookmarks", false); // Stream the result to the feed parser with this listener let listener = new LivemarkLoadListener(this); channel.notificationCallbacks = listener; channel.asyncOpen(listener, null); this.loadGroup = loadgroup; } catch (ex) { this.status = Ci.mozILivemark.STATUS_FAILED; } }, reload: function LM_reload(aForceUpdate) { this.updateChildren(aForceUpdate); }, remove: function LM_remove() { PlacesUtils.bookmarks.removeItem(this.id); }, get children() this._children, set children(val) { this._children = val; // Discard the previous cached nodes, new ones should be generated. for (let i = 0; i < this._resultObserversList.length; i++) { let container = this._resultObserversList[i]; this._nodes.delete(container); } // Update visited status for each entry. for (let i = 0; i < this._children.length; i++) { let child = this._children[i]; asyncHistory.isURIVisited(child.uri, (function(aURI, aIsVisited) { this.updateURIVisitedStatus(aURI, aIsVisited); }).bind(this)); } return this._children; }, _isURIVisited: function LM__isURIVisited(aURI) { for (let i = 0; i < this.children.length; i++) { if (this.children[i].uri.equals(aURI)) { return this.children[i].visited; } } }, getNodesForContainer: function LM_getNodesForContainer(aContainerNode) { if (this._nodes.has(aContainerNode)) { return this._nodes.get(aContainerNode); } let livemark = this; let nodes = []; let now = Date.now() * 1000; for (let i = 0; i < this._children.length; i++) { let child = this._children[i]; let node = { // The QueryInterface is needed cause aContainerNode is a jsval. // This is required to avoid issues with scriptable wrappers that would // not allow the view to correctly set expandos. get parent() aContainerNode.QueryInterface(Ci.nsINavHistoryContainerResultNode), get parentResult() this.parent.parentResult, get uri() child.uri.spec, get type() Ci.nsINavHistoryResultNode.RESULT_TYPE_URI, get title() child.title, get accessCount() Number(livemark._isURIVisited(NetUtil.newURI(this.uri))), get time() 0, get icon() "", get indentLevel() this.parent.indentLevel + 1, get bookmarkIndex() -1, get itemId() -1, get dateAdded() now + i, get lastModified() now + i, get tags() PlacesUtils.tagging.getTagsForURI(NetUtil.newURI(this.uri)).join(", "), QueryInterface: XPCOMUtils.generateQI([Ci.nsINavHistoryResultNode]) }; nodes.push(node); } this._nodes.set(aContainerNode, nodes); return nodes; }, registerForUpdates: function LM_registerForUpdates(aContainerNode, aResultObserver) { this._resultObservers.set(aContainerNode, aResultObserver); this._resultObserversList.push(aContainerNode); }, unregisterForUpdates: function LM_unregisterForUpdates(aContainerNode) { this._resultObservers.delete(aContainerNode); let index = this._resultObserversList.indexOf(aContainerNode); this._resultObserversList.splice(index, 1); this._nodes.delete(aContainerNode); }, _invalidateRegisteredContainers: function LM__invalidateRegisteredContainers() { for (let i = 0; i < this._resultObserversList.length; i++) { let container = this._resultObserversList[i]; let observer = this._resultObservers.get(container); observer.invalidateContainer(container); } }, updateURIVisitedStatus: function LM_updateURIVisitedStatus(aURI, aVisitedStatus) { for (let i = 0; i < this.children.length; i++) { if (this.children[i].uri.equals(aURI)) { this.children[i].visited = aVisitedStatus; } } for (let i = 0; i < this._resultObserversList.length; i++) { let container = this._resultObserversList[i]; let observer = this._resultObservers.get(container); if (this._nodes.has(container)) { let nodes = this._nodes.get(container); for (let j = 0; j < nodes.length; j++) { let node = nodes[j]; if (node.uri == aURI.spec) { Services.tm.mainThread.dispatch((function () { observer.nodeHistoryDetailsChanged(node, 0, aVisitedStatus); }).bind(this), Ci.nsIThread.DISPATCH_NORMAL); } } } } }, /** * Terminates the livemark entry, cancelling any ongoing load. * Must be invoked before destroying the entry. */ terminate: function LM_terminate() { // Avoid handling any updateChildren request from now on. this._terminated = true; // Clear the list before aborting, since abort() would try to set the // status and notify about it, but that's not really useful at this point. this._resultObserversList = []; this.abort(); }, /** * Aborts the livemark loading if needed. */ abort: function LM_abort() { this.status = Ci.mozILivemark.STATUS_FAILED; if (this.loadGroup) { this.loadGroup.cancel(Cr.NS_BINDING_ABORTED); this.loadGroup = null; } }, QueryInterface: XPCOMUtils.generateQI([ Ci.mozILivemark ]) } //////////////////////////////////////////////////////////////////////////////// //// LivemarkLoadListener /** * Object used internally to handle loading a livemark's contents. * * @param aLivemark * The Livemark that is loading. */ function LivemarkLoadListener(aLivemark) { this._livemark = aLivemark; this._processor = null; this._isAborted = false; this._ttl = EXPIRE_TIME_MS; } LivemarkLoadListener.prototype = { abort: function LLL_abort(aException) { if (!this._isAborted) { this._isAborted = true; this._livemark.abort(); this._setResourceTTL(ONERROR_EXPIRE_TIME_MS); } }, // nsIFeedResultListener handleResult: function LLL_handleResult(aResult) { if (this._isAborted) { return; } try { // We need this to make sure the item links are safe let feedPrincipal = secMan.getCodebasePrincipal(this._livemark.feedURI); // Enforce well-formedness because the existing code does if (!aResult || !aResult.doc || aResult.bozo) { throw new Components.Exception("", Cr.NS_ERROR_FAILURE); } let feed = aResult.doc.QueryInterface(Ci.nsIFeed); let siteURI = this._livemark.siteURI; if (feed.link && (!siteURI || !feed.link.equals(siteURI))) { siteURI = feed.link; this._livemark.writeSiteURI(siteURI); } // Insert feed items. let livemarkChildren = []; for (let i = 0; i < feed.items.length; ++i) { let entry = feed.items.queryElementAt(i, Ci.nsIFeedEntry); let uri = entry.link || siteURI; if (!uri) { continue; } try { secMan.checkLoadURIWithPrincipal(feedPrincipal, uri, SEC_FLAGS); } catch(ex) { continue; } let title = entry.title ? entry.title.plainText() : ""; livemarkChildren.push({ uri: uri, title: title, visited: false }); } this._livemark.children = livemarkChildren; } catch (ex) { this.abort(ex); } finally { this._processor.listener = null; this._processor = null; } }, onDataAvailable: function LLL_onDataAvailable(aRequest, aContext, aInputStream, aSourceOffset, aCount) { if (this._processor) { this._processor.onDataAvailable(aRequest, aContext, aInputStream, aSourceOffset, aCount); } }, onStartRequest: function LLL_onStartRequest(aRequest, aContext) { if (this._isAborted) { throw Cr.NS_ERROR_UNEXPECTED; } let channel = aRequest.QueryInterface(Ci.nsIChannel); try { // Parse feed data as it comes in this._processor = Cc["@mozilla.org/feed-processor;1"]. createInstance(Ci.nsIFeedProcessor); this._processor.listener = this; this._processor.parseAsync(null, channel.URI); this._processor.onStartRequest(aRequest, aContext); } catch (ex) { Components.utils.reportError("Livemark Service: feed processor received an invalid channel for " + channel.URI.spec); this.abort(ex); } }, onStopRequest: function LLL_onStopRequest(aRequest, aContext, aStatus) { if (!Components.isSuccessCode(aStatus)) { this.abort(); return; } // Set an expiration on the livemark, to reloading the data in future. try { if (this._processor) { this._processor.onStopRequest(aRequest, aContext, aStatus); } // Calculate a new ttl let channel = aRequest.QueryInterface(Ci.nsICachingChannel); if (channel) { let entryInfo = channel.cacheToken.QueryInterface(Ci.nsICacheEntryInfo); if (entryInfo) { // nsICacheEntryInfo returns value as seconds. let expireTime = entryInfo.expirationTime * 1000; let nowTime = Date.now(); // Note, expireTime can be 0, see bug 383538. if (expireTime > nowTime) { this._setResourceTTL(Math.max((expireTime - nowTime), EXPIRE_TIME_MS)); return; } } } this._setResourceTTL(EXPIRE_TIME_MS); } catch (ex) { this.abort(ex); } finally { if (this._livemark.status == Ci.mozILivemark.STATUS_LOADING) { this._livemark.status = Ci.mozILivemark.STATUS_READY; } this._livemark.locked = false; this._livemark.loadGroup = null; } }, _setResourceTTL: function LLL__setResourceTTL(aMilliseconds) { this._livemark.expireTime = Date.now() + aMilliseconds; }, // nsIBadCertListener2 notifyCertProblem: function LLL_certProblem(aSocketInfo, aStatus, aTargetSite) { return true; }, // nsISSLErrorListener notifySSLError: function LLL_SSLError(aSocketInfo, aError, aTargetSite) { return true; }, // nsIInterfaceRequestor getInterface: function LLL_getInterface(aIID) { return this.QueryInterface(aIID); }, // nsISupports QueryInterface: XPCOMUtils.generateQI([ Ci.nsIFeedResultListener , Ci.nsIStreamListener , Ci.nsIRequestObserver , Ci.nsIBadCertListener2 , Ci.nsISSLErrorListener , Ci.nsIInterfaceRequestor ]) } const NSGetFactory = XPCOMUtils.generateNSGetFactory([LivemarkService]);
bwp/SeleniumWebDriver
third_party/gecko-15/win32/bin/components/nsLivemarkService.js
JavaScript
apache-2.0
39,954
var express = require('express'); var app = express(); app.set('port', (process.env.PORT || 9000)); app.use(express.static(__dirname + '/dist')); app.get('/app', function(req, res) { res.sendFile('./dist/index.html', {"root": __dirname}); }); app.listen(app.get('port'), function() { console.log("Node app is running at localhost:" + app.get('port')); });
morpheyesh/TeenyURL
react_app/server.js
JavaScript
apache-2.0
364
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/loose.dtd"> <HTML ><HEAD ><TITLE >FcConfigAppFontClear</TITLE ><META NAME="GENERATOR" CONTENT="Modular DocBook HTML Stylesheet Version 1.79"><LINK REL="HOME" HREF="t1.html"><LINK REL="UP" TITLE="FcConfig" HREF="x102.html#AEN2718"><LINK REL="PREVIOUS" TITLE="FcConfigAppFontAddDir" HREF="fcconfigappfontadddir.html"><LINK REL="NEXT" TITLE="FcConfigSubstituteWithPat" HREF="fcconfigsubstitutewithpat.html"></HEAD ><BODY CLASS="REFENTRY" BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#0000FF" VLINK="#840084" ALINK="#0000FF" ><DIV CLASS="NAVHEADER" ><TABLE SUMMARY="Header navigation table" WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0" ><TR ><TH COLSPAN="3" ALIGN="center" ></TH ></TR ><TR ><TD WIDTH="10%" ALIGN="left" VALIGN="bottom" ><A HREF="fcconfigappfontadddir.html" ACCESSKEY="P" >&#60;&#60;&#60; Previous</A ></TD ><TD WIDTH="80%" ALIGN="center" VALIGN="bottom" ></TD ><TD WIDTH="10%" ALIGN="right" VALIGN="bottom" ><A HREF="fcconfigsubstitutewithpat.html" ACCESSKEY="N" >Next &#62;&#62;&#62;</A ></TD ></TR ></TABLE ><HR ALIGN="LEFT" WIDTH="100%"></DIV ><H1 ><A NAME="FCCONFIGAPPFONTCLEAR" ></A >FcConfigAppFontClear</H1 ><DIV CLASS="REFNAMEDIV" ><A NAME="AEN3140" ></A ><H2 >Name</H2 >FcConfigAppFontClear&nbsp;--&nbsp;Remove all app fonts from font database</DIV ><DIV CLASS="REFSYNOPSISDIV" ><A NAME="AEN3143" ></A ><H2 >Synopsis</H2 ><DIV CLASS="FUNCSYNOPSIS" ><P ></P ><A NAME="AEN3144" ></A ><TABLE BORDER="0" BGCOLOR="#E0E0E0" WIDTH="100%" ><TR ><TD ><PRE CLASS="FUNCSYNOPSISINFO" >#include &#60;fontconfig/fontconfig.h&#62; </PRE ></TD ></TR ></TABLE ><P ><CODE ><CODE CLASS="FUNCDEF" >void <TT CLASS="FUNCTION" >FcConfigAppFontClear</TT ></CODE >(FcConfig *<TT CLASS="PARAMETER" ><I >config</I ></TT >);</CODE ></P ><P ></P ></DIV ></DIV ><DIV CLASS="REFSECT1" ><A NAME="AEN3151" ></A ><H2 >Description</H2 ><P >Clears the set of application-specific fonts. If <TT CLASS="PARAMETER" ><I >config</I ></TT > is NULL, the current configuration is used. </P ></DIV ><DIV CLASS="NAVFOOTER" ><HR ALIGN="LEFT" WIDTH="100%"><TABLE SUMMARY="Footer navigation table" WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0" ><TR ><TD WIDTH="33%" ALIGN="left" VALIGN="top" ><A HREF="fcconfigappfontadddir.html" ACCESSKEY="P" >&#60;&#60;&#60; Previous</A ></TD ><TD WIDTH="34%" ALIGN="center" VALIGN="top" ><A HREF="t1.html" ACCESSKEY="H" >Home</A ></TD ><TD WIDTH="33%" ALIGN="right" VALIGN="top" ><A HREF="fcconfigsubstitutewithpat.html" ACCESSKEY="N" >Next &#62;&#62;&#62;</A ></TD ></TR ><TR ><TD WIDTH="33%" ALIGN="left" VALIGN="top" >FcConfigAppFontAddDir</TD ><TD WIDTH="34%" ALIGN="center" VALIGN="top" ><A HREF="x102.html#AEN2718" ACCESSKEY="U" >Up</A ></TD ><TD WIDTH="33%" ALIGN="right" VALIGN="top" >FcConfigSubstituteWithPat</TD ></TR ></TABLE ></DIV ></BODY ></HTML >
jachitech/AndroidPrebuiltPackages
packages/fontconfig-2.12.1/doc/fontconfig-devel/fcconfigappfontclear.html
HTML
apache-2.0
2,872
/* * 版权所有 (c) 2015 。 李倍存 (iPso)。 * 所有者对该文件所包含的代码的正确性、执行效率等任何方面不作任何保证。 * 所有个人和组织均可不受约束地将该文件所包含的代码用于非商业用途。若需要将其用于商业软件的开发,请首先联系所有者以取得许可。 */ package org.ipso.lbc.common.aop; import org.apache.logging.log4j.Logger; import org.aspectj.lang.annotation.Aspect; import org.ipso.lbc.common.frameworks.logging.LoggerFactory; import org.springframework.aop.AfterReturningAdvice; import org.springframework.aop.MethodBeforeAdvice; import java.lang.reflect.Method; import java.text.SimpleDateFormat; import java.util.Date; /** * 李倍存 创建于 2015-04-12 14:19。电邮 1174751315@qq.com。 */ @Aspect public class AopTraceMethods implements MethodBeforeAdvice, AfterReturningAdvice{ private static Logger methodTracingLogger = LoggerFactory.getLogger("aop.trace.exit"); private static Logger methodenterTracingLogger = LoggerFactory.getLogger("aop.trace.enter"); @Override public void afterReturning(Object o, Method method, Object[] objects, Object o1) throws Throwable { String paras = ""; for (int i = 0; i < objects.length; i++) { paras += objects[i].hashCode() + "\n"; } String text = o1.getClass().getName() + "." + method.getName() + "参数" + paras + "\n返回 " + o + "\n"; text+=new SimpleDateFormat("HH:mm:ss.SSS").format(new Date()); methodTracingLogger.trace(text); } @Override public void before(Method method, Object[] objects, Object o) throws Throwable { methodenterTracingLogger.trace("进入 " + o.getClass().getName() + "." + method.getName()+"\n"+new SimpleDateFormat("HH:mm:ss.SSS").format(new Date())); } }
misterresse/org.ipso.lbc.common
src/main/java/org/ipso/lbc/common/aop/AopTraceMethods.java
Java
apache-2.0
1,850
# Use this hook to configure devise mailer, warden hooks and so forth. The first # four configuration values can also be set straight in your models. Devise.setup do |config| # ==> Mailer Configuration # Configure the e-mail address which will be shown in DeviseMailer. config.mailer_sender = "please-change-me-at-config-initializers-devise@example.com" # Configure the class responsible to send e-mails. # config.mailer = "Devise::Mailer" # ==> ORM configuration # Load and configure the ORM. Supports :active_record (default) and # :mongoid (bson_ext recommended) by default. Other ORMs may be # available as additional gems. require 'devise/orm/active_record' # ==> Configuration for any authentication mechanism # Configure which keys are used when authenticating a user. The default is # just :email. You can configure it to use [:username, :subdomain], so for # authenticating a user, both parameters are required. Remember that those # parameters are used only when authenticating and not when retrieving from # session. If you need permissions, you should implement that in a before filter. # You can also supply a hash where the value is a boolean determining whether # or not authentication should be aborted when the value is not present. config.authentication_keys = [ :email ] # Configure parameters from the request object used for authentication. Each entry # given should be a request method and it will automatically be passed to the # find_for_authentication method and considered in your model lookup. For instance, # if you set :request_keys to [:subdomain], :subdomain will be used on authentication. # The same considerations mentioned for authentication_keys also apply to request_keys. # config.request_keys = [] # Configure which authentication keys should be case-insensitive. # These keys will be downcased upon creating or modifying a user and when used # to authenticate or find a user. Default is :email. config.case_insensitive_keys = [ :email ] # Configure which authentication keys should have whitespace stripped. # These keys will have whitespace before and after removed upon creating or # modifying a user and when used to authenticate or find a user. Default is :email. config.strip_whitespace_keys = [ :email ] # Tell if authentication through request.params is enabled. True by default. # config.params_authenticatable = true # Tell if authentication through HTTP Basic Auth is enabled. False by default. config.http_authenticatable = true # If http headers should be returned for AJAX requests. True by default. # config.http_authenticatable_on_xhr = true # The realm used in Http Basic Authentication. "Application" by default. # config.http_authentication_realm = "Application" # It will change confirmation, password recovery and other workflows # to behave the same regardless if the e-mail provided was right or wrong. # Does not affect registerable. # config.paranoid = true # ==> Configuration for :database_authenticatable # For bcrypt, this is the cost for hashing the password and defaults to 10. If # using other encryptors, it sets how many times you want the password re-encrypted. config.stretches = 10 # Setup a pepper to generate the encrypted password. # config.pepper = "6d79aa820012805b338ae893685d8c163c0812c48fbaa6f3e12829234485d4ed9b8cc5d6e5a82489ae078318995abab27e4389942fdbc088644805ade62533a3" # ==> Configuration for :confirmable # The time you want to give your user to confirm his account. During this time # he will be able to access your application without confirming. Default is 0.days # When confirm_within is zero, the user won't be able to sign in without confirming. # You can use this to let your user access some features of your application # without confirming the account, but blocking it after a certain period # (ie 2 days). # config.confirm_within = 2.days # Defines which key will be used when confirming an account # config.confirmation_keys = [ :email ] # ==> Configuration for :rememberable # The time the user will be remembered without asking for credentials again. # config.remember_for = 2.weeks # If true, a valid remember token can be re-used between multiple browsers. # config.remember_across_browsers = true # If true, extends the user's remember period when remembered via cookie. # config.extend_remember_period = false # If true, uses the password salt as remember token. This should be turned # to false if you are not using database authenticatable. # changed based on https://github.com/plataformatec/devise/issues/1638 # config.use_salt_as_remember_token = true # Options to be passed to the created cookie. For instance, you can set # :secure => true in order to force SSL only cookies. # config.cookie_options = {} # ==> Configuration for :validatable # Range for password length. Default is 6..128. config.password_length = 10..128 # Regex to use to validate the email address # config.email_regexp = /\A([\w\.%\+\-]+)@([\w\-]+\.)+([\w]{2,})\z/i config.email_regexp = /\w*/ # ==> Configuration for :timeoutable # The time you want to timeout the user session without activity. After this # time the user will be asked for credentials again. Default is 30 minutes. # config.timeout_in = 30.minutes # ==> Configuration for :lockable # Defines which strategy will be used to lock an account. # :failed_attempts = Locks an account after a number of failed attempts to sign in. # :none = No lock strategy. You should handle locking by yourself. config.lock_strategy = :failed_attempts # Defines which key will be used when locking and unlocking an account # config.unlock_keys = [ :email ] # Defines which strategy will be used to unlock an account. # :email = Sends an unlock link to the user email # :time = Re-enables login after a certain amount of time (see :unlock_in below) # :both = Enables both strategies # :none = No unlock strategy. You should handle unlocking by yourself. config.unlock_strategy = :time # Number of authentication tries before locking an account if lock_strategy # is failed attempts. config.maximum_attempts = 3 # Time interval to unlock the account if :time is enabled as unlock_strategy. config.unlock_in = 30.minutes # ==> Configuration for :recoverable # # Defines which key will be used when recovering the password for an account # config.reset_password_keys = [ :email ] # Time interval you can reset your password with a reset password key. # Don't put a too small interval or your users won't have the time to # change their passwords. config.reset_password_within = 6.hours # ==> Configuration for :encryptable # Allow you to use another encryption algorithm besides bcrypt (default). You can use # :sha1, :sha512 or encryptors from others authentication tools as :clearance_sha1, # :authlogic_sha512 (then you should set stretches above to 20 for default behavior) # and :restful_authentication_sha1 (then you should set stretches to 10, and copy # REST_AUTH_SITE_KEY to pepper) # config.encryptor = :sha512 # ==> Configuration for :token_authenticatable # Defines name of the authentication token params key # config.token_authentication_key = :auth_token # If true, authentication through token does not store user in session and needs # to be supplied on each request. Useful if you are using the token as API token. # config.stateless_token = false # ==> Scopes configuration # Turn scoped views on. Before rendering "sessions/new", it will first check for # "users/sessions/new". It's turned off by default because it's slower if you # are using only default views. # config.scoped_views = false # Configure the default scope given to Warden. By default it's the first # devise role declared in your routes (usually :user). # config.default_scope = :user # Configure sign_out behavior. # Sign_out action can be scoped (i.e. /users/sign_out affects only :user scope). # The default is true, which means any logout action will sign out all active scopes. # config.sign_out_all_scopes = true # ==> Navigation configuration # Lists the formats that should be treated as navigational. Formats like # :html, should redirect to the sign in page when the user does not have # access, but formats like :xml or :json, should return 401. # # If you have any extra navigational formats, like :iphone or :mobile, you # should add them to the navigational formats lists. # # The :"*/*" and "*/*" formats below is required to match Internet # Explorer requests. # config.navigational_formats = [:"*/*", "*/*", :html] # The default HTTP method used to sign out a resource. Default is :delete. config.sign_out_via = :delete # ==> OmniAuth # Add a new OmniAuth provider. Check the wiki for more information on setting # up on your models and hooks. # config.omniauth :github, 'APP_ID', 'APP_SECRET', :scope => 'user,public_repo' # ==> Warden configuration # If you want to use other strategies, that are not supported by Devise, or # change the failure app, you can configure them inside the config.warden block. # # config.warden do |manager| # manager.failure_app = AnotherApp # manager.intercept_401 = false # manager.default_strategies(:scope => :user).unshift :some_external_strategy # end end
mitre-cyber-academy/embedded-ctf-scoreboard
config/initializers/devise.rb
Ruby
apache-2.0
9,517
# # 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 # # 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. from unittest import mock from heat.common import exception from heat.common import template_format from heat.engine.resources.openstack.sahara import data_source from heat.engine import scheduler from heat.tests import common from heat.tests import utils data_source_template = """ heat_template_version: 2015-10-15 resources: data-source: type: OS::Sahara::DataSource properties: name: my-ds type: swift url: swift://container.sahara/text credentials: user: admin password: swordfish """ class SaharaDataSourceTest(common.HeatTestCase): def setUp(self): super(SaharaDataSourceTest, self).setUp() t = template_format.parse(data_source_template) self.stack = utils.parse_stack(t) resource_defns = self.stack.t.resource_definitions(self.stack) self.rsrc_defn = resource_defns['data-source'] self.client = mock.Mock() self.patchobject(data_source.DataSource, 'client', return_value=self.client) def _create_resource(self, name, snippet, stack): ds = data_source.DataSource(name, snippet, stack) value = mock.MagicMock(id='12345') self.client.data_sources.create.return_value = value scheduler.TaskRunner(ds.create)() return ds def test_create(self): ds = self._create_resource('data-source', self.rsrc_defn, self.stack) args = self.client.data_sources.create.call_args[1] expected_args = { 'name': 'my-ds', 'description': '', 'data_source_type': 'swift', 'url': 'swift://container.sahara/text', 'credential_user': 'admin', 'credential_pass': 'swordfish' } self.assertEqual(expected_args, args) self.assertEqual('12345', ds.resource_id) expected_state = (ds.CREATE, ds.COMPLETE) self.assertEqual(expected_state, ds.state) def test_update(self): ds = self._create_resource('data-source', self.rsrc_defn, self.stack) props = self.stack.t.t['resources']['data-source']['properties'].copy() props['type'] = 'hdfs' props['url'] = 'my/path' self.rsrc_defn = self.rsrc_defn.freeze(properties=props) scheduler.TaskRunner(ds.update, self.rsrc_defn)() data = { 'name': 'my-ds', 'description': '', 'type': 'hdfs', 'url': 'my/path', 'credentials': { 'user': 'admin', 'password': 'swordfish' } } self.client.data_sources.update.assert_called_once_with( '12345', data) self.assertEqual((ds.UPDATE, ds.COMPLETE), ds.state) def test_show_attribute(self): ds = self._create_resource('data-source', self.rsrc_defn, self.stack) value = mock.MagicMock() value.to_dict.return_value = {'ds': 'info'} self.client.data_sources.get.return_value = value self.assertEqual({'ds': 'info'}, ds.FnGetAtt('show')) def test_validate_password_without_user(self): props = self.stack.t.t['resources']['data-source']['properties'].copy() del props['credentials']['user'] self.rsrc_defn = self.rsrc_defn.freeze(properties=props) ds = data_source.DataSource('data-source', self.rsrc_defn, self.stack) ex = self.assertRaises(exception.StackValidationFailed, ds.validate) error_msg = ('Property error: resources.data-source.properties.' 'credentials: Property user not assigned') self.assertEqual(error_msg, str(ex))
openstack/heat
heat/tests/openstack/sahara/test_data_source.py
Python
apache-2.0
4,214
# remote-netty remote-netty是基于Netty4的一个简便网络框架的封装,主要提供了两种特性: 一、提供长连接的连接池网络模型 二、提供与NIO结合的客户端阻塞读模式,这个简化了客户端的代码,即可以利用NIO的高效特性,又不需要调整代码逻辑 # Server用法 参考 com.lefu.remote.netty.test.IOServerTest # Client用法 参考测试用例: com.lefu.remote.netty.test.client.IOClientTest com.lefu.remote.netty.test.client.IOClientBlockTest com.lefu.remote.netty.test.client.PooledClientTest # wiki https://github.com/leo27lijiang/remote-netty/wiki
leo27lijiang/remote-netty
README.md
Markdown
apache-2.0
633
package net.brord.plugins.runescape.config; import java.util.LinkedList; import java.util.List; import java.util.Map; import net.brord.plugins.runescape.util.TimeUtil; import org.bukkit.ChatColor; import org.bukkit.configuration.file.FileConfiguration; /** * A template for a main config (or generally called config.yml)<br/> * If you want to read values from your config.yml you should create util methods which handle the internal data structure in the config for you.<br/> * Generally speaking, so you can forget what the key in the config is called ;) * <br/> * Project ghastlegionutil<br/> * @author Brord * @since 21 jun. 2014, 01:24:11 */ public abstract class MainConfig extends BasicConfig{ /** * */ public MainConfig(FileConfiguration config) { super("config"); setConfig(config); } /** * @return */ public String getPrefix() { return ChatColor.translateAlternateColorCodes('&', getConfig().getString("prefix", "-> &4brokenprefix <-")); } /** * @return */ public boolean isDebugOn() { return getConfig().getBoolean("debug"); } /** * @return */ public Map<String, Object> getListeners() { return getConfig().getConfigurationSection("listeners").getValues(false); } /** * */ public List<Integer> getBroadCastTimes() { List<Integer> times = new LinkedList<Integer>(); if (!getConfig().contains("broadcasttimes")) return times; for (String s : getConfig().getStringList("broadcasttimes")){ int time = TimeUtil.getTimeSeconds(s); if (time != -1) times.add(time); } return times; } /** * @return */ public long getSaveTime() { return TimeUtil.getTimeMillis(getConfig().getString("savetime", "1m")); } }
kwek20/R-nescap-
Rünescapé/src/main/java/net/brord/plugins/runescape/config/MainConfig.java
Java
apache-2.0
1,783
/* * $Id$ * * SARL is an general-purpose agent programming language. * More details on http://www.sarl.io * * Copyright (C) 2014-2021 the original authors or authors. * * 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 * * 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 io.sarl.lang.controlflow; import org.eclipse.xtext.common.types.JvmTypeReference; import org.eclipse.xtext.xbase.XExpression; import org.eclipse.xtext.xbase.controlflow.IEarlyExitComputer; import io.sarl.lang.sarl.SarlAction; /** Compute the early-exit flag for the SARL statements. * * @author $Author: sgalland$ * @version $FullVersion$ * @mavengroupid $GroupId$ * @mavenartifactid $ArtifactId$ */ public interface ISarlEarlyExitComputer extends IEarlyExitComputer { /** Replies if the given event is an event that causes an early exit of the * function was is calling the firing function. * * @param reference the event reference. * @return <code>true</code> if the event may causes early exit of the function, * otherwise <code>false</code>. */ boolean isEarlyExitEvent(JvmTypeReference reference); /** Replies if the given statement is annotated with the "early-exit" annotation. * * @param element the element to test. * @return <code>true</code> if the given element is annotated with the "early-flag" * annotation, otherwise <code>false</code>. */ boolean isEarlyExitAnnotatedElement(Object element); /** Replies if the given expression causes an early exist from a loop. * * @param expression the expression. * @return <code>true</code> if the expression causes early exit of the loop statement, * otherwise <code>false</code>. * @since 0.5 */ boolean isEarlyExitLoop(XExpression expression); /** Replies if the given operation causes an early exist within its caller. * * @param operation the operation. * @return <code>true</code> if the operation causes early exit of the caller, * otherwise <code>false</code>. * @since 0.7 */ boolean isEarlyExitOperation(SarlAction operation); /** * An expression is considered to be left early if all branches end with an explicit * termination, e.g. a return or throw expression. * This functions take care only of the Java and Xbase early exit, not the SARL-specific * early exist expressions. * * @param expression the expression to test. * @return <code>true</code> if the given expression will definitely exit early in Java or Xbase. * @since 0.8 */ boolean isEarlyExitInJava(XExpression expression); }
sarl/sarl
main/coreplugins/io.sarl.lang/src/io/sarl/lang/controlflow/ISarlEarlyExitComputer.java
Java
apache-2.0
3,008
/* * 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 org.apache.bookkeeper.tools.cli.commands.bookies; import java.io.IOException; import java.math.RoundingMode; import java.text.DecimalFormat; import java.util.Map; import org.apache.bookkeeper.client.BKException; import org.apache.bookkeeper.client.BookKeeper; import org.apache.bookkeeper.client.BookieInfoReader.BookieInfo; import org.apache.bookkeeper.conf.ClientConfiguration; import org.apache.bookkeeper.conf.ServerConfiguration; import org.apache.bookkeeper.net.BookieSocketAddress; import org.apache.bookkeeper.tools.cli.helpers.BookieCommand; import org.apache.bookkeeper.tools.cli.helpers.CommandHelpers; import org.apache.bookkeeper.tools.framework.CliFlags; import org.apache.bookkeeper.tools.framework.CliSpec; /** * A bookie command to retrieve bookie info. */ public class InfoCommand extends BookieCommand<CliFlags> { private static final String NAME = "info"; private static final String DESC = "Retrieve bookie info such as free and total disk space."; public InfoCommand() { super(CliSpec.newBuilder() .withName(NAME) .withFlags(new CliFlags()) .withDescription(DESC) .build()); } String getReadable(long val) { String[] unit = {"", "KB", "MB", "GB", "TB"}; int cnt = 0; double d = val; while (d >= 1000 && cnt < unit.length - 1) { d = d / 1000; cnt++; } DecimalFormat df = new DecimalFormat("#.###"); df.setRoundingMode(RoundingMode.DOWN); return cnt > 0 ? "(" + df.format(d) + unit[cnt] + ")" : unit[cnt]; } @Override public boolean apply(ServerConfiguration conf, CliFlags cmdFlags) { ClientConfiguration clientConf = new ClientConfiguration(conf); clientConf.setDiskWeightBasedPlacementEnabled(true); try (BookKeeper bk = new BookKeeper(clientConf)) { Map<BookieSocketAddress, BookieInfo> map = bk.getBookieInfo(); if (map.size() == 0) { System.out.println("Failed to retrieve bookie information from any of the bookies"); bk.close(); return true; } System.out.println("Free disk space info:"); long totalFree = 0, total = 0; for (Map.Entry<BookieSocketAddress, BookieInfo> e : map.entrySet()) { BookieInfo bInfo = e.getValue(); BookieSocketAddress bookieId = e.getKey(); System.out.println(CommandHelpers.getBookieSocketAddrStringRepresentation(bookieId) + ":\tFree: " + bInfo.getFreeDiskSpace() + getReadable(bInfo.getFreeDiskSpace()) + "\tTotal: " + bInfo.getTotalDiskSpace() + getReadable(bInfo.getTotalDiskSpace())); totalFree += bInfo.getFreeDiskSpace(); total += bInfo.getTotalDiskSpace(); } System.out.println("Total free disk space in the cluster:\t" + totalFree + getReadable(totalFree)); System.out.println("Total disk capacity in the cluster:\t" + total + getReadable(total)); bk.close(); return true; } catch (IOException | InterruptedException | BKException e) { e.printStackTrace(); } return true; } }
sijie/bookkeeper
bookkeeper-server/src/main/java/org/apache/bookkeeper/tools/cli/commands/bookies/InfoCommand.java
Java
apache-2.0
4,110
/** * @author Roman Lotnyk(romanlotnik@yandex.ru) * @version 1 * @since 16.09.2017 */ package ru.lotnyk.todo_list.uttil;
RomanLotnyk/lotnyk
chapter_010/src/main/java/ru/lotnyk/todo_list/uttil/package-info.java
Java
apache-2.0
124
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTitle("MvcKnockoutCalendar")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("")] [assembly: AssemblyProduct("MvcKnockoutCalendar")] [assembly: AssemblyCopyright("Copyright © 2013")] [assembly: AssemblyTrademark("")] [assembly: AssemblyCulture("")] // Setting ComVisible to false makes the types in this assembly not visible // to COM components. If you need to access a type in this assembly from // COM, set the ComVisible attribute to true on that type. [assembly: ComVisible(false)] // The following GUID is for the ID of the typelib if this project is exposed to COM [assembly: Guid("6f11d875-24a4-47aa-abaf-2cbb2a092221")] // Version information for an assembly consists of the following four values: // // Major Version // Minor Version // Build Number // Revision // // You can specify all the values or you can default the Revision and Build Numbers // by using the '*' as shown below: [assembly: AssemblyVersion("1.0.0.0")] [assembly: AssemblyFileVersion("1.0.0.0")]
dotnetcurry/ko-calendar-dncmag-08
MvcKnockoutCalendar/Properties/AssemblyInfo.cs
C#
apache-2.0
1,374
# Lecanora epibryon var. bryopsora Doppelb. & Poelt VARIETY #### Status ACCEPTED #### According to Index Fungorum #### Published in null #### Original name Lecanora epibryon var. bryopsora Doppelb. & Poelt ### Remarks null
mdoering/backbone
life/Fungi/Ascomycota/Lecanoromycetes/Lecanorales/Lecanoraceae/Lecanora/Lecanora epibryon/Lecanora epibryon bryopsora/README.md
Markdown
apache-2.0
227
/* * 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 org.apache.phoenix.coprocessor; import java.io.ByteArrayInputStream; import java.io.ByteArrayOutputStream; import java.io.DataInputStream; import java.io.DataOutputStream; import java.io.IOException; import java.sql.SQLException; import java.util.List; import java.util.Set; import co.cask.tephra.Transaction; import org.apache.hadoop.hbase.Cell; import org.apache.hadoop.hbase.HRegionInfo; import org.apache.hadoop.hbase.client.Scan; import org.apache.hadoop.hbase.coprocessor.ObserverContext; import org.apache.hadoop.hbase.coprocessor.RegionCoprocessorEnvironment; import org.apache.hadoop.hbase.io.ImmutableBytesWritable; import org.apache.hadoop.hbase.regionserver.Region; import org.apache.hadoop.hbase.regionserver.RegionScanner; import org.apache.hadoop.io.WritableUtils; import org.apache.phoenix.cache.GlobalCache; import org.apache.phoenix.cache.TenantCache; import org.apache.phoenix.execute.MutationState; import org.apache.phoenix.execute.TupleProjector; import org.apache.phoenix.expression.Expression; import org.apache.phoenix.expression.KeyValueColumnExpression; import org.apache.phoenix.expression.OrderByExpression; import org.apache.phoenix.expression.function.ArrayIndexFunction; import org.apache.phoenix.hbase.index.covered.update.ColumnReference; import org.apache.phoenix.index.IndexMaintainer; import org.apache.phoenix.iterate.OrderedResultIterator; import org.apache.phoenix.iterate.RegionScannerResultIterator; import org.apache.phoenix.iterate.ResultIterator; import org.apache.phoenix.join.HashJoinInfo; import org.apache.phoenix.memory.MemoryManager.MemoryChunk; import org.apache.phoenix.schema.KeyValueSchema; import org.apache.phoenix.schema.KeyValueSchema.KeyValueSchemaBuilder; import org.apache.phoenix.schema.ValueBitSet; import org.apache.phoenix.schema.tuple.Tuple; import org.apache.phoenix.util.IndexUtil; import org.apache.phoenix.util.ScanUtil; import org.apache.phoenix.util.ServerUtil; import org.apache.phoenix.util.TransactionUtil; import com.google.common.collect.Lists; import com.google.common.collect.Sets; /** * * Wraps the scan performing a non aggregate query to prevent needless retries * if a Phoenix bug is encountered from our custom filter expression evaluation. * Unfortunately, until HBASE-7481 gets fixed, there's no way to do this from our * custom filters. * * * @since 0.1 */ public class ScanRegionObserver extends BaseScannerRegionObserver { private ImmutableBytesWritable ptr = new ImmutableBytesWritable(); private KeyValueSchema kvSchema = null; private ValueBitSet kvSchemaBitSet; public static void serializeIntoScan(Scan scan, int thresholdBytes, int limit, List<OrderByExpression> orderByExpressions, int estimatedRowSize) { ByteArrayOutputStream stream = new ByteArrayOutputStream(); // TODO: size? try { DataOutputStream output = new DataOutputStream(stream); WritableUtils.writeVInt(output, thresholdBytes); WritableUtils.writeVInt(output, limit); WritableUtils.writeVInt(output, estimatedRowSize); WritableUtils.writeVInt(output, orderByExpressions.size()); for (OrderByExpression orderingCol : orderByExpressions) { orderingCol.write(output); } scan.setAttribute(BaseScannerRegionObserver.TOPN, stream.toByteArray()); } catch (IOException e) { throw new RuntimeException(e); } finally { try { stream.close(); } catch (IOException e) { throw new RuntimeException(e); } } } public static OrderedResultIterator deserializeFromScan(Scan scan, RegionScanner s) { byte[] topN = scan.getAttribute(BaseScannerRegionObserver.TOPN); if (topN == null) { return null; } ByteArrayInputStream stream = new ByteArrayInputStream(topN); // TODO: size? try { DataInputStream input = new DataInputStream(stream); int thresholdBytes = WritableUtils.readVInt(input); int limit = WritableUtils.readVInt(input); int estimatedRowSize = WritableUtils.readVInt(input); int size = WritableUtils.readVInt(input); List<OrderByExpression> orderByExpressions = Lists.newArrayListWithExpectedSize(size); for (int i = 0; i < size; i++) { OrderByExpression orderByExpression = new OrderByExpression(); orderByExpression.readFields(input); orderByExpressions.add(orderByExpression); } ResultIterator inner = new RegionScannerResultIterator(s); return new OrderedResultIterator(inner, orderByExpressions, thresholdBytes, limit >= 0 ? limit : null, estimatedRowSize); } catch (IOException e) { throw new RuntimeException(e); } finally { try { stream.close(); } catch (IOException e) { throw new RuntimeException(e); } } } private Expression[] deserializeArrayPostionalExpressionInfoFromScan(Scan scan, RegionScanner s, Set<KeyValueColumnExpression> arrayKVRefs) { byte[] specificArrayIdx = scan.getAttribute(BaseScannerRegionObserver.SPECIFIC_ARRAY_INDEX); if (specificArrayIdx == null) { return null; } KeyValueSchemaBuilder builder = new KeyValueSchemaBuilder(0); ByteArrayInputStream stream = new ByteArrayInputStream(specificArrayIdx); try { DataInputStream input = new DataInputStream(stream); int arrayKVRefSize = WritableUtils.readVInt(input); for (int i = 0; i < arrayKVRefSize; i++) { KeyValueColumnExpression kvExp = new KeyValueColumnExpression(); kvExp.readFields(input); arrayKVRefs.add(kvExp); } int arrayKVFuncSize = WritableUtils.readVInt(input); Expression[] arrayFuncRefs = new Expression[arrayKVFuncSize]; for (int i = 0; i < arrayKVFuncSize; i++) { ArrayIndexFunction arrayIdxFunc = new ArrayIndexFunction(); arrayIdxFunc.readFields(input); arrayFuncRefs[i] = arrayIdxFunc; builder.addField(arrayIdxFunc); } kvSchema = builder.build(); kvSchemaBitSet = ValueBitSet.newInstance(kvSchema); return arrayFuncRefs; } catch (IOException e) { throw new RuntimeException(e); } finally { try { stream.close(); } catch (IOException e) { throw new RuntimeException(e); } } } @Override protected RegionScanner doPostScannerOpen(final ObserverContext<RegionCoprocessorEnvironment> c, final Scan scan, final RegionScanner s) throws Throwable { int offset = 0; if (ScanUtil.isLocalIndex(scan)) { /* * For local indexes, we need to set an offset on row key expressions to skip * the region start key. */ Region region = c.getEnvironment().getRegion(); offset = region.getRegionInfo().getStartKey().length != 0 ? region.getRegionInfo().getStartKey().length : region.getRegionInfo().getEndKey().length; ScanUtil.setRowKeyOffset(scan, offset); } RegionScanner innerScanner = s; Set<KeyValueColumnExpression> arrayKVRefs = Sets.newHashSet(); Expression[] arrayFuncRefs = deserializeArrayPostionalExpressionInfoFromScan( scan, innerScanner, arrayKVRefs); TupleProjector tupleProjector = null; Region dataRegion = null; IndexMaintainer indexMaintainer = null; byte[][] viewConstants = null; Transaction tx = null; ColumnReference[] dataColumns = IndexUtil.deserializeDataTableColumnsToJoin(scan); if (dataColumns != null) { tupleProjector = IndexUtil.getTupleProjector(scan, dataColumns); dataRegion = IndexUtil.getDataRegion(c.getEnvironment()); byte[] localIndexBytes = scan.getAttribute(LOCAL_INDEX_BUILD); List<IndexMaintainer> indexMaintainers = localIndexBytes == null ? null : IndexMaintainer.deserialize(localIndexBytes); indexMaintainer = indexMaintainers.get(0); viewConstants = IndexUtil.deserializeViewConstantsFromScan(scan); byte[] txState = scan.getAttribute(BaseScannerRegionObserver.TX_STATE); tx = MutationState.decodeTransaction(txState); } final TupleProjector p = TupleProjector.deserializeProjectorFromScan(scan); final HashJoinInfo j = HashJoinInfo.deserializeHashJoinFromScan(scan); innerScanner = getWrappedScanner(c, innerScanner, arrayKVRefs, arrayFuncRefs, offset, scan, dataColumns, tupleProjector, dataRegion, indexMaintainer, tx, viewConstants, kvSchema, kvSchemaBitSet, j == null ? p : null, ptr); final ImmutableBytesWritable tenantId = ScanUtil.getTenantId(scan); if (j != null) { innerScanner = new HashJoinRegionScanner(innerScanner, p, j, tenantId, c.getEnvironment()); } final OrderedResultIterator iterator = deserializeFromScan(scan,innerScanner); if (iterator == null) { return innerScanner; } // TODO:the above wrapped scanner should be used here also return getTopNScanner(c, innerScanner, iterator, tenantId); } /** * Return region scanner that does TopN. * We only need to call startRegionOperation and closeRegionOperation when * getting the first Tuple (which forces running through the entire region) * since after this everything is held in memory */ private RegionScanner getTopNScanner(final ObserverContext<RegionCoprocessorEnvironment> c, final RegionScanner s, final OrderedResultIterator iterator, ImmutableBytesWritable tenantId) throws Throwable { final Tuple firstTuple; TenantCache tenantCache = GlobalCache.getTenantCache(c.getEnvironment(), tenantId); long estSize = iterator.getEstimatedByteSize(); final MemoryChunk chunk = tenantCache.getMemoryManager().allocate(estSize); final Region region = c.getEnvironment().getRegion(); region.startRegionOperation(); try { // Once we return from the first call to next, we've run through and cached // the topN rows, so we no longer need to start/stop a region operation. firstTuple = iterator.next(); // Now that the topN are cached, we can resize based on the real size long actualSize = iterator.getByteSize(); chunk.resize(actualSize); } catch (Throwable t) { ServerUtil.throwIOException(region.getRegionInfo().getRegionNameAsString(), t); return null; } finally { region.closeRegionOperation(); } return new BaseRegionScanner() { private Tuple tuple = firstTuple; @Override public boolean isFilterDone() { return tuple == null; } @Override public HRegionInfo getRegionInfo() { return s.getRegionInfo(); } @Override public boolean next(List<Cell> results) throws IOException { try { if (isFilterDone()) { return false; } for (int i = 0; i < tuple.size(); i++) { results.add(tuple.getValue(i)); } tuple = iterator.next(); return !isFilterDone(); } catch (Throwable t) { ServerUtil.throwIOException(region.getRegionInfo().getRegionNameAsString(), t); return false; } } @Override public void close() throws IOException { try { s.close(); } finally { try { if(iterator != null) { iterator.close(); } } catch (SQLException e) { ServerUtil.throwIOException(region.getRegionInfo().getRegionNameAsString(), e); } finally { chunk.close(); } } } @Override public long getMaxResultSize() { return s.getMaxResultSize(); } @Override public int getBatch() { return s.getBatch(); } }; } @Override protected boolean isRegionObserverFor(Scan scan) { return scan.getAttribute(BaseScannerRegionObserver.NON_AGGREGATE_QUERY) != null; } }
djh4230/Apache-Phoenix
phoenix-core/src/main/java/org/apache/phoenix/coprocessor/ScanRegionObserver.java
Java
apache-2.0
13,917
########################################################################### # # Copyright 2021 Google LLC # # 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 # # https://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. # ########################################################################### """ Typically called by Cloud Scheduler with recipe JSON payload. Sample JSON POST payload: { "setup":{ "id":"", #string - Cloud Project ID for billing. "auth":{ "service":{}, #dict - Optional Cloud Service JSON credentials when task uses service. "user":{} #dict - Optional Cloud User JSON credentials when task uses user. } }, "tasks":[ # list of recipe tasks to execute, see StarThinker scripts for examples. { "hello":{ "auth":"user", # not used in demo, for display purposes only. "say":"Hello World" }} ] } Documentation: https://github.com/google/starthinker/blob/master/tutorials/deploy_cloudfunction.md """ from starthinker.util.configuration import Configuration from starthinker.util.configuration import execute def run(request): recipe = request.get_json(force=True) execute(Configuration(recipe=recipe, verbose=True), recipe.get('tasks', []), force=True) return 'DONE'
google/starthinker
cloud_function/main.py
Python
apache-2.0
1,752
/* * Copyright (C) 2015 University of Oregon * * You may distribute under the terms of either the GNU General Public * License or the Apache License, as specified in the LICENSE file. * * For more information, see the LICENSE file. */ #ifndef LINT #endif /* */ /* tndqcosy - double quantum filtered cosy experiment using obs xmtr for presaturation during presat period and d2, if desired TRANSMITTER MUST BY AT SOLVENT FREQUENCY Parameters: pw = 90 excitation pulse (at power level tpwr) phase = 0: P-type non-phase-sensitive experiment 1,2: hypercomplex phase-sensitive experiment 3: TPPI phase-sensitive experiment satmode = 'yn' for saturation during relaxation period 'ny' for saturation during d2 'yy' for both satdly = presaturation period -uses obs xmtr at tof with satpwr; sspul = 'y': selects for Trim(x)-Trim(y) sequence at start of pulse sequence (highly recommended to eliminate "long T1" artifacts) revised from dqcosy.c Sept 1991 g.gray P.A.Keifer 940916 - modified d2 and rlpower */ #include <standard.h> void pulsesequence() { char sspul[MAXSTR]; /* LOAD VARIABLES AND CHECK CONDITIONS */ getstr("sspul", sspul); if (satpwr > 40) { printf("satpwr too large - acquisition aborted.\n"); psg_abort(1); } if ((rof1 < 9.9e-6) && (ix== 1)) fprintf(stdout,"Warning: ROF1 is less than 10 us\n"); /* STEADY-STATE PHASECYCLING */ /* This section determines if the phase calculations trigger off of (SS - SSCTR) or off of CT */ ifzero(ssctr); hlv(ct, v4); mod4(ct, v3); elsenz(ssctr); sub(ssval, ssctr, v12); /* v12 = 0,...,ss-1 */ hlv(v12, v4); mod4(v12, v3); endif(ssctr); /* CALCULATE PHASECYCLE */ /* The phasecycle first performs a 4-step cycle on the third pulse in order to select for DQC. Second, the 2-step QIS cycle is added in. Third, a 2-step cycle for axial peak suppression is performed on the second pulse. Fourth, a 2-step cycle for axial peak suppression is performed on the first pulse. If P-type peaks only are being selected, the 2-step cycle for P-type peak selection is performed on the first pulse immediately after the 4-step cycle on the third pulse. */ hlv(v4, v4); if (phase1 == 0) { assign(v4, v6); hlv(v4, v4); mod2(v6, v6); /* v6 = P-type peak selection in w1 */ } hlv(v4, v2); mod4(v4, v4); /* v4 = quadrature image suppression */ hlv(v2, v1); mod2(v1, v1); dbl(v1, v1); mod2(v2, v2); dbl(v2, v2); dbl(v3, v5); add(v3, v5, v5); add(v1, v5, v5); add(v2, v5, v5); add(v4, v5, v5); add(v4, v1, v1); add(v4, v2, v2); add(v4, v3, v3); if (phase1 == 0) { add(v6, v1, v1); add(v6, v5, v5); } if (phase1 == 2) incr(v1); if (phase1 == 3) add(id2, v1, v1); /* adds TPPI increment to the phase of the * first pulse */ assign(v5, oph); /* FOR HYPERCOMPLEX, USE REDFIED TRICK TO MOVE AXIALS TO EDGE */ if ((phase1==2)||(phase1==1)) { initval(2.0*(double)(d2_index%2),v9); /* moves axials */ add(v1,v9,v1); add(oph,v9,oph); } /* BEGIN ACTUAL PULSE SEQUENCE CODE */ status(A); if (sspul[0] == 'y') { obspower(tpwr-12); rgpulse(200*pw, one, 10.0e-6, 0.0e-6); rgpulse(200*pw, zero, 0.0e-6, 1.0e-6); obspower(tpwr); } hsdelay(d1); if (satmode[A] == 'y') { obspower(satpwr); rgpulse(satdly,zero,rof1,rof1); obspower(tpwr); } status(B); rgpulse(pw, v1, rof1, 1.0e-6); if (satmode[B] == 'y') { obspower(satpwr); if (d2>100.0e-6) rgpulse(d2-(2*POWER_DELAY)-1.0e-6-rof1-(4*pw)/3.14159,zero,0.0,0.0); obspower(tpwr); } else if (d2>0.0) { delay(d2 - rof1 - 1.0e-6 -(4*pw)/3.1416); } rgpulse(pw, v2, rof1, 0.0); rgpulse(pw, v3, 1.0e-6, rof2); status(C); }
OpenVnmrJ/OpenVnmrJ
src/biopack/psglib/rna_tndqcosy.c
C
apache-2.0
4,070
package pl.craftgames.communityplugin.cdtp.tasks; import org.bukkit.Bukkit; import org.bukkit.scheduler.BukkitTask; import pl.craftgames.communityplugin.cdtp.CDTP; /** * Created by grzeg on 26.12.2015. */ public class TaskManager { private final CDTP plugin; private BukkitTask generalBukkitTask; public TaskManager(CDTP plugin){ this.plugin = plugin; generalBukkitTask = Bukkit.getScheduler().runTaskTimer(plugin, new GeneralTask(plugin), 0, 20); } public BukkitTask getGeneralBukkitTask(){ return this.generalBukkitTask; } public void dispose() { this.generalBukkitTask.cancel(); } }
grzegorz2047/CommunityDrivenPlugin
src/main/java/pl/craftgames/communityplugin/cdtp/tasks/TaskManager.java
Java
apache-2.0
659
/** * Copyright 2018, 2019 IBM Corp. All Rights Reserved. * * 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 * * 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. * */ using Newtonsoft.Json; namespace IBM.Watson.NaturalLanguageUnderstanding.V1.Model { /// <summary> /// The author of the analyzed content. /// </summary> public class Author { /// <summary> /// Name of the author. /// </summary> [JsonProperty("name", NullValueHandling = NullValueHandling.Ignore)] public string Name { get; set; } } }
watson-developer-cloud/unity-sdk
Scripts/Services/NaturalLanguageUnderstanding/V1/Model/Author.cs
C#
apache-2.0
1,010
# Newbya megasperma (Humphrey) Mark A. Spencer, 2002 SPECIES #### Status ACCEPTED #### According to The Catalogue of Life, 3rd January 2011 #### Published in in Spencer, Vick & Dick, Mycol. Res. 106(5): 559 (2002) #### Original name Achlya megasperma Humphrey, 1892 ### Remarks null
mdoering/backbone
life/Chromista/Oomycota/Oomycetes/Saprolegniales/Saprolegniaceae/Newbya/Newbya megasperma/README.md
Markdown
apache-2.0
287
# Placodium jungermanniae var. jungermanniae VARIETY #### Status ACCEPTED #### According to Index Fungorum #### Published in null #### Original name Lichen jungermanniae Vahl ### Remarks null
mdoering/backbone
life/Fungi/Ascomycota/Lecanoromycetes/Teloschistales/Teloschistaceae/Placodium/Placodium jungermanniae/Placodium jungermanniae jungermanniae/README.md
Markdown
apache-2.0
196
package com.zn.zxw.intelligencize.model; import java.io.Serializable; import java.util.Date; import java.util.List; /** *±¸×¢:ÉçÇøÐÅÏ¢ */ public class CommunityInfo implements Serializable { public CommunityInfo() { } /** *±àºÅ */ private String _id;//±àºÅ /** *Âß¼­±àºÅ */ private String _community;//Âß¼­±àºÅ /** *Ãû³Æ */ private String _name;//Ãû³Æ /** *³ÇÊÐÇøÓò */ private int _cityId;//³ÇÊÐÇøÓò /** *¾Óί»á±àºÅ */ private String _nCId;//¾Óί»á±àºÅ /** *Îï¹Ü±àºÅ */ private String _pMCId;//Îï¹Ü±àºÅ /** *×ø±ê */ private String _coord;//×ø±ê /** *Ô¤Áô×Ö¶Î */ private String _field;//Ô¤Áô×Ö¶Î private CityInfo _cityInfo; private NeighborhoodCommitteeInfo _neighborhoodCommitteeInfo; private PropertyManagementCompanyInfo _propertyManagementCompanyInfo; //list FK private List<ComplaintInfo> _complaintInfos; private List<ShopInformationInfo> _shopInformationInfos; private List<UserCommunityInfo> _userCommunityInfos; /** *±àºÅ */ public String getId() { return _id; } /** *±àºÅ */ public void setId (String Id ) { _id = Id ; } /** *Âß¼­±àºÅ */ public String getCommunity() { return _community; } /** *Âß¼­±àºÅ */ public void setCommunity (String Community ) { _community = Community ; } /** *Ãû³Æ */ public String getName() { return _name; } /** *Ãû³Æ */ public void setName (String Name ) { _name = Name ; } /** *³ÇÊÐÇøÓò */ public int getCityId() { return _cityId; } /** *³ÇÊÐÇøÓò */ public void setCityId (int CityId ) { _cityId = CityId ; } /** *¾Óί»á±àºÅ */ public String getNCId() { return _nCId; } /** *¾Óί»á±àºÅ */ public void setNCId (String NCId ) { _nCId = NCId ; } /** *Îï¹Ü±àºÅ */ public String getPMCId() { return _pMCId; } /** *Îï¹Ü±àºÅ */ public void setPMCId (String PMCId ) { _pMCId = PMCId ; } /** *×ø±ê */ public String getCoord() { return _coord; } /** *×ø±ê */ public void setCoord (String Coord ) { _coord = Coord ; } /** *Ô¤Áô×Ö¶Î */ public String getField() { return _field; } /** *Ô¤Áô×Ö¶Î */ public void setField (String Field ) { _field = Field ; } public CityInfo getCityInfo() { return _cityInfo; } public void setCityInfo(CityInfo CityInfo) { _cityInfo =CityInfo; } public NeighborhoodCommitteeInfo getNeighborhoodCommitteeInfo() { return _neighborhoodCommitteeInfo; } public void setNeighborhoodCommitteeInfo(NeighborhoodCommitteeInfo NeighborhoodCommitteeInfo) { _neighborhoodCommitteeInfo =NeighborhoodCommitteeInfo; } public PropertyManagementCompanyInfo getPropertyManagementCompanyInfo() { return _propertyManagementCompanyInfo; } public void setPropertyManagementCompanyInfo(PropertyManagementCompanyInfo PropertyManagementCompanyInfo) { _propertyManagementCompanyInfo =PropertyManagementCompanyInfo; } //list FK public List< ComplaintInfo> getComplaintInfos() { return _complaintInfos; } public void setComplaintInfos(List<ComplaintInfo> ComplaintInfos) { _complaintInfos =ComplaintInfos; } public List< ShopInformationInfo> getShopInformationInfos() { return _shopInformationInfos; } public void setShopInformationInfos(List<ShopInformationInfo> ShopInformationInfos) { _shopInformationInfos =ShopInformationInfos; } public List< UserCommunityInfo> getUserCommunityInfos() { return _userCommunityInfos; } public void setUserCommunityInfos(List<UserCommunityInfo> UserCommunityInfos) { _userCommunityInfos =UserCommunityInfos; } }
ice-coffee/EIM
src/com/zn/zxw/intelligencize/model/CommunityInfo.java
Java
apache-2.0
3,982
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>LineSeries - YUI 3</title> <link rel="stylesheet" href="http://yui.yahooapis.com/3.9.1/build/cssgrids/cssgrids-min.css"> <link rel="stylesheet" href="../assets/vendor/prettify/prettify-min.css"> <link rel="stylesheet" href="../assets/css/main.css" id="site_styles"> <link rel="shortcut icon" type="image/png" href="../assets/favicon.png"> <script src="http://yui.yahooapis.com/combo?3.9.1/build/yui/yui-min.js"></script> </head> <body class="yui3-skin-sam"> <div id="doc"> <div id="hd" class="yui3-g header"> <div class="yui3-u-3-4"> <h1><img src="../assets/css/logo.png" title="YUI 3"></h1> </div> <div class="yui3-u-1-4 version"> <em>API Docs for: 3.18.1</em> </div> </div> <div id="bd" class="yui3-g"> <div class="yui3-u-1-4"> <div id="docs-sidebar" class="sidebar apidocs"> <div id="api-list"> <h2 class="off-left">APIs</h2> <div id="api-tabview" class="tabview"> <ul class="tabs"> <li><a href="#api-classes">Classes</a></li> <li><a href="#api-modules">Modules</a></li> </ul> <div id="api-tabview-filter"> <input type="search" id="api-filter" placeholder="Type to filter APIs"> </div> <div id="api-tabview-panel"> <ul id="api-classes" class="apis classes"> <li><a href="../classes/Anim.html">Anim</a></li> <li><a href="../classes/App.html">App</a></li> <li><a href="../classes/App.Base.html">App.Base</a></li> <li><a href="../classes/App.Content.html">App.Content</a></li> <li><a href="../classes/App.Transitions.html">App.Transitions</a></li> <li><a href="../classes/App.TransitionsNative.html">App.TransitionsNative</a></li> <li><a href="../classes/AreaSeries.html">AreaSeries</a></li> <li><a href="../classes/AreaSplineSeries.html">AreaSplineSeries</a></li> <li><a href="../classes/Array.html">Array</a></li> <li><a href="../classes/ArrayList.html">ArrayList</a></li> <li><a href="../classes/ArraySort.html">ArraySort</a></li> <li><a href="../classes/AsyncQueue.html">AsyncQueue</a></li> <li><a href="../classes/Attribute.html">Attribute</a></li> <li><a href="../classes/AttributeCore.html">AttributeCore</a></li> <li><a href="../classes/AttributeEvents.html">AttributeEvents</a></li> <li><a href="../classes/AttributeExtras.html">AttributeExtras</a></li> <li><a href="../classes/AttributeLite.html">AttributeLite</a></li> <li><a href="../classes/AttributeObservable.html">AttributeObservable</a></li> <li><a href="../classes/AutoComplete.html">AutoComplete</a></li> <li><a href="../classes/AutoCompleteBase.html">AutoCompleteBase</a></li> <li><a href="../classes/AutoCompleteFilters.html">AutoCompleteFilters</a></li> <li><a href="../classes/AutoCompleteHighlighters.html">AutoCompleteHighlighters</a></li> <li><a href="../classes/AutoCompleteList.html">AutoCompleteList</a></li> <li><a href="../classes/Axis.html">Axis</a></li> <li><a href="../classes/AxisBase.html">AxisBase</a></li> <li><a href="../classes/BarSeries.html">BarSeries</a></li> <li><a href="../classes/Base.html">Base</a></li> <li><a href="../classes/BaseCore.html">BaseCore</a></li> <li><a href="../classes/BaseObservable.html">BaseObservable</a></li> <li><a href="../classes/BottomAxisLayout.html">BottomAxisLayout</a></li> <li><a href="../classes/Button.html">Button</a></li> <li><a href="../classes/ButtonCore.html">ButtonCore</a></li> <li><a href="../classes/ButtonGroup.html">ButtonGroup</a></li> <li><a href="../classes/Cache.html">Cache</a></li> <li><a href="../classes/CacheOffline.html">CacheOffline</a></li> <li><a href="../classes/Calendar.html">Calendar</a></li> <li><a href="../classes/CalendarBase.html">CalendarBase</a></li> <li><a href="../classes/CandlestickSeries.html">CandlestickSeries</a></li> <li><a href="../classes/CanvasCircle.html">CanvasCircle</a></li> <li><a href="../classes/CanvasDrawing.html">CanvasDrawing</a></li> <li><a href="../classes/CanvasEllipse.html">CanvasEllipse</a></li> <li><a href="../classes/CanvasGraphic.html">CanvasGraphic</a></li> <li><a href="../classes/CanvasPath.html">CanvasPath</a></li> <li><a href="../classes/CanvasPieSlice.html">CanvasPieSlice</a></li> <li><a href="../classes/CanvasRect.html">CanvasRect</a></li> <li><a href="../classes/CanvasShape.html">CanvasShape</a></li> <li><a href="../classes/CartesianChart.html">CartesianChart</a></li> <li><a href="../classes/CartesianSeries.html">CartesianSeries</a></li> <li><a href="../classes/CategoryAxis.html">CategoryAxis</a></li> <li><a href="../classes/CategoryAxisBase.html">CategoryAxisBase</a></li> <li><a href="../classes/CategoryImpl.html">CategoryImpl</a></li> <li><a href="../classes/Chart.html">Chart</a></li> <li><a href="../classes/ChartBase.html">ChartBase</a></li> <li><a href="../classes/ChartLegend.html">ChartLegend</a></li> <li><a href="../classes/Circle.html">Circle</a></li> <li><a href="../classes/CircleGroup.html">CircleGroup</a></li> <li><a href="../classes/ClassNameManager.html">ClassNameManager</a></li> <li><a href="../classes/ClickableRail.html">ClickableRail</a></li> <li><a href="../classes/Color.html">Color</a></li> <li><a href="../classes/Color.Harmony.html">Color.Harmony</a></li> <li><a href="../classes/Color.HSL.html">Color.HSL</a></li> <li><a href="../classes/Color.HSV.html">Color.HSV</a></li> <li><a href="../classes/ColumnSeries.html">ColumnSeries</a></li> <li><a href="../classes/ComboSeries.html">ComboSeries</a></li> <li><a href="../classes/ComboSplineSeries.html">ComboSplineSeries</a></li> <li><a href="../classes/config.html">config</a></li> <li><a href="../classes/Console.html">Console</a></li> <li><a href="../classes/ContentEditable.html">ContentEditable</a></li> <li><a href="../classes/Controller.html">Controller</a></li> <li><a href="../classes/Cookie.html">Cookie</a></li> <li><a href="../classes/CurveUtil.html">CurveUtil</a></li> <li><a href="../classes/CustomEvent.html">CustomEvent</a></li> <li><a href="../classes/DataSchema.Array.html">DataSchema.Array</a></li> <li><a href="../classes/DataSchema.Base.html">DataSchema.Base</a></li> <li><a href="../classes/DataSchema.JSON.html">DataSchema.JSON</a></li> <li><a href="../classes/DataSchema.Text.html">DataSchema.Text</a></li> <li><a href="../classes/DataSchema.XML.html">DataSchema.XML</a></li> <li><a href="../classes/DataSource.Function.html">DataSource.Function</a></li> <li><a href="../classes/DataSource.Get.html">DataSource.Get</a></li> <li><a href="../classes/DataSource.IO.html">DataSource.IO</a></li> <li><a href="../classes/DataSource.Local.html">DataSource.Local</a></li> <li><a href="../classes/DataSourceArraySchema.html">DataSourceArraySchema</a></li> <li><a href="../classes/DataSourceCache.html">DataSourceCache</a></li> <li><a href="../classes/DataSourceCacheExtension.html">DataSourceCacheExtension</a></li> <li><a href="../classes/DataSourceJSONSchema.html">DataSourceJSONSchema</a></li> <li><a href="../classes/DataSourceTextSchema.html">DataSourceTextSchema</a></li> <li><a href="../classes/DataSourceXMLSchema.html">DataSourceXMLSchema</a></li> <li><a href="../classes/DataTable.html">DataTable</a></li> <li><a href="../classes/DataTable.Base.html">DataTable.Base</a></li> <li><a href="../classes/DataTable.BodyView.html">DataTable.BodyView</a></li> <li><a href="../classes/DataTable.BodyView.Formatters.html">DataTable.BodyView.Formatters</a></li> <li><a href="../classes/DataTable.Column.html">DataTable.Column</a></li> <li><a href="../classes/DataTable.ColumnWidths.html">DataTable.ColumnWidths</a></li> <li><a href="../classes/DataTable.Core.html">DataTable.Core</a></li> <li><a href="../classes/DataTable.HeaderView.html">DataTable.HeaderView</a></li> <li><a href="../classes/DataTable.Highlight.html">DataTable.Highlight</a></li> <li><a href="../classes/DataTable.KeyNav.html">DataTable.KeyNav</a></li> <li><a href="../classes/DataTable.Message.html">DataTable.Message</a></li> <li><a href="../classes/DataTable.Mutable.html">DataTable.Mutable</a></li> <li><a href="../classes/DataTable.Paginator.html">DataTable.Paginator</a></li> <li><a href="../classes/DataTable.Paginator.Model.html">DataTable.Paginator.Model</a></li> <li><a href="../classes/DataTable.Paginator.View.html">DataTable.Paginator.View</a></li> <li><a href="../classes/DataTable.Scrollable.html">DataTable.Scrollable</a></li> <li><a href="../classes/DataTable.Sortable.html">DataTable.Sortable</a></li> <li><a href="../classes/DataTable.TableView.html">DataTable.TableView</a></li> <li><a href="../classes/Date.html">Date</a></li> <li><a href="../classes/DD.DDM.html">DD.DDM</a></li> <li><a href="../classes/DD.Delegate.html">DD.Delegate</a></li> <li><a href="../classes/DD.Drag.html">DD.Drag</a></li> <li><a href="../classes/DD.Drop.html">DD.Drop</a></li> <li><a href="../classes/DD.Scroll.html">DD.Scroll</a></li> <li><a href="../classes/Dial.html">Dial</a></li> <li><a href="../classes/Do.html">Do</a></li> <li><a href="../classes/Do.AlterArgs.html">Do.AlterArgs</a></li> <li><a href="../classes/Do.AlterReturn.html">Do.AlterReturn</a></li> <li><a href="../classes/Do.Error.html">Do.Error</a></li> <li><a href="../classes/Do.Halt.html">Do.Halt</a></li> <li><a href="../classes/Do.Method.html">Do.Method</a></li> <li><a href="../classes/Do.Prevent.html">Do.Prevent</a></li> <li><a href="../classes/DOM.html">DOM</a></li> <li><a href="../classes/DOMEventFacade.html">DOMEventFacade</a></li> <li><a href="../classes/Drawing.html">Drawing</a></li> <li><a href="../classes/Easing.html">Easing</a></li> <li><a href="../classes/EditorBase.html">EditorBase</a></li> <li><a href="../classes/EditorSelection.html">EditorSelection</a></li> <li><a href="../classes/Ellipse.html">Ellipse</a></li> <li><a href="../classes/EllipseGroup.html">EllipseGroup</a></li> <li><a href="../classes/Escape.html">Escape</a></li> <li><a href="../classes/Event.html">Event</a></li> <li><a href="../classes/EventFacade.html">EventFacade</a></li> <li><a href="../classes/EventHandle.html">EventHandle</a></li> <li><a href="../classes/EventTarget.html">EventTarget</a></li> <li><a href="../classes/Features.html">Features</a></li> <li><a href="../classes/File.html">File</a></li> <li><a href="../classes/FileFlash.html">FileFlash</a></li> <li><a href="../classes/FileHTML5.html">FileHTML5</a></li> <li><a href="../classes/Fills.html">Fills</a></li> <li><a href="../classes/Frame.html">Frame</a></li> <li><a href="../classes/Get.html">Get</a></li> <li><a href="../classes/Get.Transaction.html">Get.Transaction</a></li> <li><a href="../classes/GetNodeJS.html">GetNodeJS</a></li> <li><a href="../classes/Graph.html">Graph</a></li> <li><a href="../classes/Graphic.html">Graphic</a></li> <li><a href="../classes/GraphicBase.html">GraphicBase</a></li> <li><a href="../classes/Gridlines.html">Gridlines</a></li> <li><a href="../classes/GroupDiamond.html">GroupDiamond</a></li> <li><a href="../classes/GroupRect.html">GroupRect</a></li> <li><a href="../classes/Handlebars.html">Handlebars</a></li> <li><a href="../classes/Highlight.html">Highlight</a></li> <li><a href="../classes/Histogram.html">Histogram</a></li> <li><a href="../classes/HistoryBase.html">HistoryBase</a></li> <li><a href="../classes/HistoryHash.html">HistoryHash</a></li> <li><a href="../classes/HistoryHTML5.html">HistoryHTML5</a></li> <li><a href="../classes/HorizontalLegendLayout.html">HorizontalLegendLayout</a></li> <li><a href="../classes/ImgLoadGroup.html">ImgLoadGroup</a></li> <li><a href="../classes/ImgLoadImgObj.html">ImgLoadImgObj</a></li> <li><a href="../classes/InlineEditor.html">InlineEditor</a></li> <li><a href="../classes/Intl.html">Intl</a></li> <li><a href="../classes/IO.html">IO</a></li> <li><a href="../classes/JSON.html">JSON</a></li> <li><a href="../classes/JSONPRequest.html">JSONPRequest</a></li> <li><a href="../classes/Lang.html">Lang</a></li> <li><a href="../classes/LazyModelList.html">LazyModelList</a></li> <li><a href="../classes/LeftAxisLayout.html">LeftAxisLayout</a></li> <li><a href="../classes/Lines.html">Lines</a></li> <li><a href="../classes/LineSeries.html">LineSeries</a></li> <li><a href="../classes/Loader.html">Loader</a></li> <li><a href="../classes/MarkerSeries.html">MarkerSeries</a></li> <li><a href="../classes/Matrix.html">Matrix</a></li> <li><a href="../classes/MatrixUtil.html">MatrixUtil</a></li> <li><a href="../classes/Model.html">Model</a></li> <li><a href="../classes/ModelList.html">ModelList</a></li> <li><a href="../classes/ModelSync.Local.html">ModelSync.Local</a></li> <li><a href="../classes/ModelSync.REST.html">ModelSync.REST</a></li> <li><a href="../classes/Node.html">Node</a></li> <li><a href="../classes/NodeList.html">NodeList</a></li> <li><a href="../classes/Number.html">Number</a></li> <li><a href="../classes/NumericAxis.html">NumericAxis</a></li> <li><a href="../classes/NumericAxisBase.html">NumericAxisBase</a></li> <li><a href="../classes/NumericImpl.html">NumericImpl</a></li> <li><a href="../classes/Object.html">Object</a></li> <li><a href="../classes/OHLCSeries.html">OHLCSeries</a></li> <li><a href="../classes/Overlay.html">Overlay</a></li> <li><a href="../classes/Paginator.html">Paginator</a></li> <li><a href="../classes/Paginator.Core.html">Paginator.Core</a></li> <li><a href="../classes/Paginator.Url.html">Paginator.Url</a></li> <li><a href="../classes/Panel.html">Panel</a></li> <li><a href="../classes/Parallel.html">Parallel</a></li> <li><a href="../classes/Path.html">Path</a></li> <li><a href="../classes/PieChart.html">PieChart</a></li> <li><a href="../classes/PieSeries.html">PieSeries</a></li> <li><a href="../classes/Pjax.html">Pjax</a></li> <li><a href="../classes/PjaxBase.html">PjaxBase</a></li> <li><a href="../classes/PjaxContent.html">PjaxContent</a></li> <li><a href="../classes/Plots.html">Plots</a></li> <li><a href="../classes/Plugin.Align.html">Plugin.Align</a></li> <li><a href="../classes/Plugin.AutoComplete.html">Plugin.AutoComplete</a></li> <li><a href="../classes/Plugin.Base.html">Plugin.Base</a></li> <li><a href="../classes/Plugin.Button.html">Plugin.Button</a></li> <li><a href="../classes/Plugin.Cache.html">Plugin.Cache</a></li> <li><a href="../classes/Plugin.CalendarNavigator.html">Plugin.CalendarNavigator</a></li> <li><a href="../classes/Plugin.ConsoleFilters.html">Plugin.ConsoleFilters</a></li> <li><a href="../classes/Plugin.CreateLinkBase.html">Plugin.CreateLinkBase</a></li> <li><a href="../classes/Plugin.DataTableDataSource.html">Plugin.DataTableDataSource</a></li> <li><a href="../classes/Plugin.DDConstrained.html">Plugin.DDConstrained</a></li> <li><a href="../classes/Plugin.DDNodeScroll.html">Plugin.DDNodeScroll</a></li> <li><a href="../classes/Plugin.DDProxy.html">Plugin.DDProxy</a></li> <li><a href="../classes/Plugin.DDWindowScroll.html">Plugin.DDWindowScroll</a></li> <li><a href="../classes/Plugin.Drag.html">Plugin.Drag</a></li> <li><a href="../classes/Plugin.Drop.html">Plugin.Drop</a></li> <li><a href="../classes/Plugin.EditorBidi.html">Plugin.EditorBidi</a></li> <li><a href="../classes/Plugin.EditorBR.html">Plugin.EditorBR</a></li> <li><a href="../classes/Plugin.EditorLists.html">Plugin.EditorLists</a></li> <li><a href="../classes/Plugin.EditorPara.html">Plugin.EditorPara</a></li> <li><a href="../classes/Plugin.EditorParaBase.html">Plugin.EditorParaBase</a></li> <li><a href="../classes/Plugin.EditorParaIE.html">Plugin.EditorParaIE</a></li> <li><a href="../classes/Plugin.EditorTab.html">Plugin.EditorTab</a></li> <li><a href="../classes/Plugin.ExecCommand.html">Plugin.ExecCommand</a></li> <li><a href="../classes/Plugin.ExecCommand.COMMANDS.html">Plugin.ExecCommand.COMMANDS</a></li> <li><a href="../classes/Plugin.Flick.html">Plugin.Flick</a></li> <li><a href="../classes/Plugin.Host.html">Plugin.Host</a></li> <li><a href="../classes/plugin.NodeFocusManager.html">plugin.NodeFocusManager</a></li> <li><a href="../classes/Plugin.NodeFX.html">Plugin.NodeFX</a></li> <li><a href="../classes/plugin.NodeMenuNav.html">plugin.NodeMenuNav</a></li> <li><a href="../classes/Plugin.Pjax.html">Plugin.Pjax</a></li> <li><a href="../classes/Plugin.Resize.html">Plugin.Resize</a></li> <li><a href="../classes/Plugin.ResizeConstrained.html">Plugin.ResizeConstrained</a></li> <li><a href="../classes/Plugin.ResizeProxy.html">Plugin.ResizeProxy</a></li> <li><a href="../classes/Plugin.ScrollInfo.html">Plugin.ScrollInfo</a></li> <li><a href="../classes/Plugin.ScrollViewList.html">Plugin.ScrollViewList</a></li> <li><a href="../classes/Plugin.ScrollViewPaginator.html">Plugin.ScrollViewPaginator</a></li> <li><a href="../classes/Plugin.ScrollViewScrollbars.html">Plugin.ScrollViewScrollbars</a></li> <li><a href="../classes/Plugin.Shim.html">Plugin.Shim</a></li> <li><a href="../classes/Plugin.SortScroll.html">Plugin.SortScroll</a></li> <li><a href="../classes/Plugin.Tree.Lazy.html">Plugin.Tree.Lazy</a></li> <li><a href="../classes/Plugin.WidgetAnim.html">Plugin.WidgetAnim</a></li> <li><a href="../classes/Pollable.html">Pollable</a></li> <li><a href="../classes/Promise.html">Promise</a></li> <li><a href="../classes/Promise.Resolver.html">Promise.Resolver</a></li> <li><a href="../classes/QueryString.html">QueryString</a></li> <li><a href="../classes/Queue.html">Queue</a></li> <li><a href="../classes/RangeSeries.html">RangeSeries</a></li> <li><a href="../classes/Record.html">Record</a></li> <li><a href="../classes/Recordset.html">Recordset</a></li> <li><a href="../classes/RecordsetFilter.html">RecordsetFilter</a></li> <li><a href="../classes/RecordsetIndexer.html">RecordsetIndexer</a></li> <li><a href="../classes/RecordsetSort.html">RecordsetSort</a></li> <li><a href="../classes/Rect.html">Rect</a></li> <li><a href="../classes/Renderer.html">Renderer</a></li> <li><a href="../classes/Resize.html">Resize</a></li> <li><a href="../classes/RightAxisLayout.html">RightAxisLayout</a></li> <li><a href="../classes/Router.html">Router</a></li> <li><a href="../classes/ScrollView.html">ScrollView</a></li> <li><a href="../classes/Selector.html">Selector</a></li> <li><a href="../classes/SeriesBase.html">SeriesBase</a></li> <li><a href="../classes/Shape.html">Shape</a></li> <li><a href="../classes/ShapeGroup.html">ShapeGroup</a></li> <li><a href="../classes/Slider.html">Slider</a></li> <li><a href="../classes/SliderBase.html">SliderBase</a></li> <li><a href="../classes/SliderValueRange.html">SliderValueRange</a></li> <li><a href="../classes/Sortable.html">Sortable</a></li> <li><a href="../classes/SplineSeries.html">SplineSeries</a></li> <li><a href="../classes/StackedAreaSeries.html">StackedAreaSeries</a></li> <li><a href="../classes/StackedAreaSplineSeries.html">StackedAreaSplineSeries</a></li> <li><a href="../classes/StackedAxis.html">StackedAxis</a></li> <li><a href="../classes/StackedAxisBase.html">StackedAxisBase</a></li> <li><a href="../classes/StackedBarSeries.html">StackedBarSeries</a></li> <li><a href="../classes/StackedColumnSeries.html">StackedColumnSeries</a></li> <li><a href="../classes/StackedComboSeries.html">StackedComboSeries</a></li> <li><a href="../classes/StackedComboSplineSeries.html">StackedComboSplineSeries</a></li> <li><a href="../classes/StackedImpl.html">StackedImpl</a></li> <li><a href="../classes/StackedLineSeries.html">StackedLineSeries</a></li> <li><a href="../classes/StackedMarkerSeries.html">StackedMarkerSeries</a></li> <li><a href="../classes/StackedSplineSeries.html">StackedSplineSeries</a></li> <li><a href="../classes/StackingUtil.html">StackingUtil</a></li> <li><a href="../classes/State.html">State</a></li> <li><a href="../classes/StyleSheet.html">StyleSheet</a></li> <li><a href="../classes/Subscriber.html">Subscriber</a></li> <li><a href="../classes/SVGCircle.html">SVGCircle</a></li> <li><a href="../classes/SVGDrawing.html">SVGDrawing</a></li> <li><a href="../classes/SVGEllipse.html">SVGEllipse</a></li> <li><a href="../classes/SVGGraphic.html">SVGGraphic</a></li> <li><a href="../classes/SVGPath.html">SVGPath</a></li> <li><a href="../classes/SVGPieSlice.html">SVGPieSlice</a></li> <li><a href="../classes/SVGRect.html">SVGRect</a></li> <li><a href="../classes/SVGShape.html">SVGShape</a></li> <li><a href="../classes/SWF.html">SWF</a></li> <li><a href="../classes/SWFDetect.html">SWFDetect</a></li> <li><a href="../classes/SyntheticEvent.html">SyntheticEvent</a></li> <li><a href="../classes/SyntheticEvent.Notifier.html">SyntheticEvent.Notifier</a></li> <li><a href="../classes/SynthRegistry.html">SynthRegistry</a></li> <li><a href="../classes/Tab.html">Tab</a></li> <li><a href="../classes/TabView.html">TabView</a></li> <li><a href="../classes/Template.html">Template</a></li> <li><a href="../classes/Template.Micro.html">Template.Micro</a></li> <li><a href="../classes/Test.ArrayAssert.html">Test.ArrayAssert</a></li> <li><a href="../classes/Test.Assert.html">Test.Assert</a></li> <li><a href="../classes/Test.AssertionError.html">Test.AssertionError</a></li> <li><a href="../classes/Test.ComparisonFailure.html">Test.ComparisonFailure</a></li> <li><a href="../classes/Test.Console.html">Test.Console</a></li> <li><a href="../classes/Test.CoverageFormat.html">Test.CoverageFormat</a></li> <li><a href="../classes/Test.DateAssert.html">Test.DateAssert</a></li> <li><a href="../classes/Test.EventTarget.html">Test.EventTarget</a></li> <li><a href="../classes/Test.Mock.html">Test.Mock</a></li> <li><a href="../classes/Test.Mock.Value.html">Test.Mock.Value</a></li> <li><a href="../classes/Test.ObjectAssert.html">Test.ObjectAssert</a></li> <li><a href="../classes/Test.Reporter.html">Test.Reporter</a></li> <li><a href="../classes/Test.Results.html">Test.Results</a></li> <li><a href="../classes/Test.Runner.html">Test.Runner</a></li> <li><a href="../classes/Test.ShouldError.html">Test.ShouldError</a></li> <li><a href="../classes/Test.ShouldFail.html">Test.ShouldFail</a></li> <li><a href="../classes/Test.TestCase.html">Test.TestCase</a></li> <li><a href="../classes/Test.TestFormat.html">Test.TestFormat</a></li> <li><a href="../classes/Test.TestNode.html">Test.TestNode</a></li> <li><a href="../classes/Test.TestRunner.html">Test.TestRunner</a></li> <li><a href="../classes/Test.TestSuite.html">Test.TestSuite</a></li> <li><a href="../classes/Test.UnexpectedError.html">Test.UnexpectedError</a></li> <li><a href="../classes/Test.UnexpectedValue.html">Test.UnexpectedValue</a></li> <li><a href="../classes/Test.Wait.html">Test.Wait</a></li> <li><a href="../classes/Text.AccentFold.html">Text.AccentFold</a></li> <li><a href="../classes/Text.WordBreak.html">Text.WordBreak</a></li> <li><a href="../classes/TimeAxis.html">TimeAxis</a></li> <li><a href="../classes/TimeAxisBase.html">TimeAxisBase</a></li> <li><a href="../classes/TimeImpl.html">TimeImpl</a></li> <li><a href="../classes/ToggleButton.html">ToggleButton</a></li> <li><a href="../classes/TopAxisLayout.html">TopAxisLayout</a></li> <li><a href="../classes/Transition.html">Transition</a></li> <li><a href="../classes/Tree.html">Tree</a></li> <li><a href="../classes/Tree.Labelable.html">Tree.Labelable</a></li> <li><a href="../classes/Tree.Node.html">Tree.Node</a></li> <li><a href="../classes/Tree.Node.Labelable.html">Tree.Node.Labelable</a></li> <li><a href="../classes/Tree.Node.Openable.html">Tree.Node.Openable</a></li> <li><a href="../classes/Tree.Node.Selectable.html">Tree.Node.Selectable</a></li> <li><a href="../classes/Tree.Node.Sortable.html">Tree.Node.Sortable</a></li> <li><a href="../classes/Tree.Openable.html">Tree.Openable</a></li> <li><a href="../classes/Tree.Selectable.html">Tree.Selectable</a></li> <li><a href="../classes/Tree.Sortable.html">Tree.Sortable</a></li> <li><a href="../classes/UA.html">UA</a></li> <li><a href="../classes/Uploader.html">Uploader</a></li> <li><a href="../classes/Uploader.Queue.html">Uploader.Queue</a></li> <li><a href="../classes/UploaderFlash.html">UploaderFlash</a></li> <li><a href="../classes/UploaderHTML5.html">UploaderHTML5</a></li> <li><a href="../classes/ValueChange.html">ValueChange</a></li> <li><a href="../classes/VerticalLegendLayout.html">VerticalLegendLayout</a></li> <li><a href="../classes/View.html">View</a></li> <li><a href="../classes/View.NodeMap.html">View.NodeMap</a></li> <li><a href="../classes/VMLCircle.html">VMLCircle</a></li> <li><a href="../classes/VMLDrawing.html">VMLDrawing</a></li> <li><a href="../classes/VMLEllipse.html">VMLEllipse</a></li> <li><a href="../classes/VMLGraphic.html">VMLGraphic</a></li> <li><a href="../classes/VMLPath.html">VMLPath</a></li> <li><a href="../classes/VMLPieSlice.html">VMLPieSlice</a></li> <li><a href="../classes/VMLRect.html">VMLRect</a></li> <li><a href="../classes/VMLShape.html">VMLShape</a></li> <li><a href="../classes/Widget.html">Widget</a></li> <li><a href="../classes/WidgetAutohide.html">WidgetAutohide</a></li> <li><a href="../classes/WidgetButtons.html">WidgetButtons</a></li> <li><a href="../classes/WidgetChild.html">WidgetChild</a></li> <li><a href="../classes/WidgetModality.html">WidgetModality</a></li> <li><a href="../classes/WidgetParent.html">WidgetParent</a></li> <li><a href="../classes/WidgetPosition.html">WidgetPosition</a></li> <li><a href="../classes/WidgetPositionAlign.html">WidgetPositionAlign</a></li> <li><a href="../classes/WidgetPositionConstrain.html">WidgetPositionConstrain</a></li> <li><a href="../classes/WidgetStack.html">WidgetStack</a></li> <li><a href="../classes/WidgetStdMod.html">WidgetStdMod</a></li> <li><a href="../classes/XML.html">XML</a></li> <li><a href="../classes/YQL.html">YQL</a></li> <li><a href="../classes/YQLRequest.html">YQLRequest</a></li> <li><a href="../classes/YUI.html">YUI</a></li> <li><a href="../classes/YUI~substitute.html">YUI~substitute</a></li> </ul> <ul id="api-modules" class="apis modules"> <li><a href="../modules/align-plugin.html">align-plugin</a></li> <li><a href="../modules/anim.html">anim</a></li> <li><a href="../modules/anim-base.html">anim-base</a></li> <li><a href="../modules/anim-color.html">anim-color</a></li> <li><a href="../modules/anim-curve.html">anim-curve</a></li> <li><a href="../modules/anim-easing.html">anim-easing</a></li> <li><a href="../modules/anim-node-plugin.html">anim-node-plugin</a></li> <li><a href="../modules/anim-scroll.html">anim-scroll</a></li> <li><a href="../modules/anim-shape.html">anim-shape</a></li> <li><a href="../modules/anim-shape-transform.html">anim-shape-transform</a></li> <li><a href="../modules/anim-xy.html">anim-xy</a></li> <li><a href="../modules/app.html">app</a></li> <li><a href="../modules/app-base.html">app-base</a></li> <li><a href="../modules/app-content.html">app-content</a></li> <li><a href="../modules/app-transitions.html">app-transitions</a></li> <li><a href="../modules/app-transitions-native.html">app-transitions-native</a></li> <li><a href="../modules/array-extras.html">array-extras</a></li> <li><a href="../modules/array-invoke.html">array-invoke</a></li> <li><a href="../modules/arraylist.html">arraylist</a></li> <li><a href="../modules/arraylist-add.html">arraylist-add</a></li> <li><a href="../modules/arraylist-filter.html">arraylist-filter</a></li> <li><a href="../modules/arraysort.html">arraysort</a></li> <li><a href="../modules/async-queue.html">async-queue</a></li> <li><a href="../modules/attribute.html">attribute</a></li> <li><a href="../modules/attribute-base.html">attribute-base</a></li> <li><a href="../modules/attribute-complex.html">attribute-complex</a></li> <li><a href="../modules/attribute-core.html">attribute-core</a></li> <li><a href="../modules/attribute-extras.html">attribute-extras</a></li> <li><a href="../modules/attribute-observable.html">attribute-observable</a></li> <li><a href="../modules/autocomplete.html">autocomplete</a></li> <li><a href="../modules/autocomplete-base.html">autocomplete-base</a></li> <li><a href="../modules/autocomplete-filters.html">autocomplete-filters</a></li> <li><a href="../modules/autocomplete-filters-accentfold.html">autocomplete-filters-accentfold</a></li> <li><a href="../modules/autocomplete-highlighters.html">autocomplete-highlighters</a></li> <li><a href="../modules/autocomplete-highlighters-accentfold.html">autocomplete-highlighters-accentfold</a></li> <li><a href="../modules/autocomplete-list.html">autocomplete-list</a></li> <li><a href="../modules/autocomplete-list-keys.html">autocomplete-list-keys</a></li> <li><a href="../modules/autocomplete-plugin.html">autocomplete-plugin</a></li> <li><a href="../modules/autocomplete-sources.html">autocomplete-sources</a></li> <li><a href="../modules/axis.html">axis</a></li> <li><a href="../modules/axis-base.html">axis-base</a></li> <li><a href="../modules/axis-category.html">axis-category</a></li> <li><a href="../modules/axis-category-base.html">axis-category-base</a></li> <li><a href="../modules/axis-numeric.html">axis-numeric</a></li> <li><a href="../modules/axis-numeric-base.html">axis-numeric-base</a></li> <li><a href="../modules/axis-stacked.html">axis-stacked</a></li> <li><a href="../modules/axis-stacked-base.html">axis-stacked-base</a></li> <li><a href="../modules/axis-time.html">axis-time</a></li> <li><a href="../modules/axis-time-base.html">axis-time-base</a></li> <li><a href="../modules/base.html">base</a></li> <li><a href="../modules/base-base.html">base-base</a></li> <li><a href="../modules/base-build.html">base-build</a></li> <li><a href="../modules/base-core.html">base-core</a></li> <li><a href="../modules/base-observable.html">base-observable</a></li> <li><a href="../modules/base-pluginhost.html">base-pluginhost</a></li> <li><a href="../modules/button.html">button</a></li> <li><a href="../modules/button-core.html">button-core</a></li> <li><a href="../modules/button-group.html">button-group</a></li> <li><a href="../modules/button-plugin.html">button-plugin</a></li> <li><a href="../modules/cache.html">cache</a></li> <li><a href="../modules/cache-base.html">cache-base</a></li> <li><a href="../modules/cache-offline.html">cache-offline</a></li> <li><a href="../modules/cache-plugin.html">cache-plugin</a></li> <li><a href="../modules/calendar.html">calendar</a></li> <li><a href="../modules/calendar-base.html">calendar-base</a></li> <li><a href="../modules/calendarnavigator.html">calendarnavigator</a></li> <li><a href="../modules/charts.html">charts</a></li> <li><a href="../modules/charts-base.html">charts-base</a></li> <li><a href="../modules/charts-legend.html">charts-legend</a></li> <li><a href="../modules/classnamemanager.html">classnamemanager</a></li> <li><a href="../modules/clickable-rail.html">clickable-rail</a></li> <li><a href="../modules/collection.html">collection</a></li> <li><a href="../modules/color.html">color</a></li> <li><a href="../modules/color-base.html">color-base</a></li> <li><a href="../modules/color-harmony.html">color-harmony</a></li> <li><a href="../modules/color-hsl.html">color-hsl</a></li> <li><a href="../modules/color-hsv.html">color-hsv</a></li> <li><a href="../modules/console.html">console</a></li> <li><a href="../modules/console-filters.html">console-filters</a></li> <li><a href="../modules/content-editable.html">content-editable</a></li> <li><a href="../modules/cookie.html">cookie</a></li> <li><a href="../modules/createlink-base.html">createlink-base</a></li> <li><a href="../modules/dataschema.html">dataschema</a></li> <li><a href="../modules/dataschema-array.html">dataschema-array</a></li> <li><a href="../modules/dataschema-base.html">dataschema-base</a></li> <li><a href="../modules/dataschema-json.html">dataschema-json</a></li> <li><a href="../modules/dataschema-text.html">dataschema-text</a></li> <li><a href="../modules/dataschema-xml.html">dataschema-xml</a></li> <li><a href="../modules/datasource.html">datasource</a></li> <li><a href="../modules/datasource-arrayschema.html">datasource-arrayschema</a></li> <li><a href="../modules/datasource-cache.html">datasource-cache</a></li> <li><a href="../modules/datasource-function.html">datasource-function</a></li> <li><a href="../modules/datasource-get.html">datasource-get</a></li> <li><a href="../modules/datasource-io.html">datasource-io</a></li> <li><a href="../modules/datasource-jsonschema.html">datasource-jsonschema</a></li> <li><a href="../modules/datasource-local.html">datasource-local</a></li> <li><a href="../modules/datasource-polling.html">datasource-polling</a></li> <li><a href="../modules/datasource-textschema.html">datasource-textschema</a></li> <li><a href="../modules/datasource-xmlschema.html">datasource-xmlschema</a></li> <li><a href="../modules/datatable.html">datatable</a></li> <li><a href="../modules/datatable-base.html">datatable-base</a></li> <li><a href="../modules/datatable-body.html">datatable-body</a></li> <li><a href="../modules/datatable-column-widths.html">datatable-column-widths</a></li> <li><a href="../modules/datatable-core.html">datatable-core</a></li> <li><a href="../modules/datatable-datasource.html">datatable-datasource</a></li> <li><a href="../modules/datatable-foot.html">datatable-foot</a></li> <li><a href="../modules/datatable-formatters.html">datatable-formatters</a></li> <li><a href="../modules/datatable-head.html">datatable-head</a></li> <li><a href="../modules/datatable-highlight.html">datatable-highlight</a></li> <li><a href="../modules/datatable-keynav.html">datatable-keynav</a></li> <li><a href="../modules/datatable-message.html">datatable-message</a></li> <li><a href="../modules/datatable-mutable.html">datatable-mutable</a></li> <li><a href="../modules/datatable-paginator.html">datatable-paginator</a></li> <li><a href="../modules/datatable-scroll.html">datatable-scroll</a></li> <li><a href="../modules/datatable-sort.html">datatable-sort</a></li> <li><a href="../modules/datatable-table.html">datatable-table</a></li> <li><a href="../modules/datatype.html">datatype</a></li> <li><a href="../modules/datatype-date.html">datatype-date</a></li> <li><a href="../modules/datatype-date-format.html">datatype-date-format</a></li> <li><a href="../modules/datatype-date-math.html">datatype-date-math</a></li> <li><a href="../modules/datatype-date-parse.html">datatype-date-parse</a></li> <li><a href="../modules/datatype-number.html">datatype-number</a></li> <li><a href="../modules/datatype-number-format.html">datatype-number-format</a></li> <li><a href="../modules/datatype-number-parse.html">datatype-number-parse</a></li> <li><a href="../modules/datatype-xml.html">datatype-xml</a></li> <li><a href="../modules/datatype-xml-format.html">datatype-xml-format</a></li> <li><a href="../modules/datatype-xml-parse.html">datatype-xml-parse</a></li> <li><a href="../modules/dd.html">dd</a></li> <li><a href="../modules/dd-constrain.html">dd-constrain</a></li> <li><a href="../modules/dd-ddm.html">dd-ddm</a></li> <li><a href="../modules/dd-ddm-base.html">dd-ddm-base</a></li> <li><a href="../modules/dd-ddm-drop.html">dd-ddm-drop</a></li> <li><a href="../modules/dd-delegate.html">dd-delegate</a></li> <li><a href="../modules/dd-drag.html">dd-drag</a></li> <li><a href="../modules/dd-drop.html">dd-drop</a></li> <li><a href="../modules/dd-drop-plugin.html">dd-drop-plugin</a></li> <li><a href="../modules/dd-gestures.html">dd-gestures</a></li> <li><a href="../modules/dd-plugin.html">dd-plugin</a></li> <li><a href="../modules/dd-proxy.html">dd-proxy</a></li> <li><a href="../modules/dd-scroll.html">dd-scroll</a></li> <li><a href="../modules/dial.html">dial</a></li> <li><a href="../modules/dom.html">dom</a></li> <li><a href="../modules/dom-base.html">dom-base</a></li> <li><a href="../modules/dom-screen.html">dom-screen</a></li> <li><a href="../modules/dom-style.html">dom-style</a></li> <li><a href="../modules/dump.html">dump</a></li> <li><a href="../modules/editor.html">editor</a></li> <li><a href="../modules/editor-base.html">editor-base</a></li> <li><a href="../modules/editor-bidi.html">editor-bidi</a></li> <li><a href="../modules/editor-br.html">editor-br</a></li> <li><a href="../modules/editor-inline.html">editor-inline</a></li> <li><a href="../modules/editor-lists.html">editor-lists</a></li> <li><a href="../modules/editor-para.html">editor-para</a></li> <li><a href="../modules/editor-para-base.html">editor-para-base</a></li> <li><a href="../modules/editor-para-ie.html">editor-para-ie</a></li> <li><a href="../modules/editor-tab.html">editor-tab</a></li> <li><a href="../modules/escape.html">escape</a></li> <li><a href="../modules/event.html">event</a></li> <li><a href="../modules/event-base.html">event-base</a></li> <li><a href="../modules/event-contextmenu.html">event-contextmenu</a></li> <li><a href="../modules/event-custom.html">event-custom</a></li> <li><a href="../modules/event-custom-base.html">event-custom-base</a></li> <li><a href="../modules/event-custom-complex.html">event-custom-complex</a></li> <li><a href="../modules/event-delegate.html">event-delegate</a></li> <li><a href="../modules/event-flick.html">event-flick</a></li> <li><a href="../modules/event-focus.html">event-focus</a></li> <li><a href="../modules/event-gestures.html">event-gestures</a></li> <li><a href="../modules/event-hover.html">event-hover</a></li> <li><a href="../modules/event-key.html">event-key</a></li> <li><a href="../modules/event-mouseenter.html">event-mouseenter</a></li> <li><a href="../modules/event-mousewheel.html">event-mousewheel</a></li> <li><a href="../modules/event-move.html">event-move</a></li> <li><a href="../modules/event-outside.html">event-outside</a></li> <li><a href="../modules/event-resize.html">event-resize</a></li> <li><a href="../modules/event-simulate.html">event-simulate</a></li> <li><a href="../modules/event-synthetic.html">event-synthetic</a></li> <li><a href="../modules/event-tap.html">event-tap</a></li> <li><a href="../modules/event-touch.html">event-touch</a></li> <li><a href="../modules/event-valuechange.html">event-valuechange</a></li> <li><a href="../modules/exec-command.html">exec-command</a></li> <li><a href="../modules/features.html">features</a></li> <li><a href="../modules/file.html">file</a></li> <li><a href="../modules/file-flash.html">file-flash</a></li> <li><a href="../modules/file-html5.html">file-html5</a></li> <li><a href="../modules/frame.html">frame</a></li> <li><a href="../modules/gesture-simulate.html">gesture-simulate</a></li> <li><a href="../modules/get.html">get</a></li> <li><a href="../modules/get-nodejs.html">get-nodejs</a></li> <li><a href="../modules/graphics.html">graphics</a></li> <li><a href="../modules/graphics-group.html">graphics-group</a></li> <li><a href="../modules/handlebars.html">handlebars</a></li> <li><a href="../modules/handlebars-base.html">handlebars-base</a></li> <li><a href="../modules/handlebars-compiler.html">handlebars-compiler</a></li> <li><a href="../modules/highlight.html">highlight</a></li> <li><a href="../modules/highlight-accentfold.html">highlight-accentfold</a></li> <li><a href="../modules/highlight-base.html">highlight-base</a></li> <li><a href="../modules/history.html">history</a></li> <li><a href="../modules/history-base.html">history-base</a></li> <li><a href="../modules/history-hash.html">history-hash</a></li> <li><a href="../modules/history-hash-ie.html">history-hash-ie</a></li> <li><a href="../modules/history-html5.html">history-html5</a></li> <li><a href="../modules/imageloader.html">imageloader</a></li> <li><a href="../modules/intl.html">intl</a></li> <li><a href="../modules/io.html">io</a></li> <li><a href="../modules/io-base.html">io-base</a></li> <li><a href="../modules/io-form.html">io-form</a></li> <li><a href="../modules/io-nodejs.html">io-nodejs</a></li> <li><a href="../modules/io-queue.html">io-queue</a></li> <li><a href="../modules/io-upload-iframe.html">io-upload-iframe</a></li> <li><a href="../modules/io-xdr.html">io-xdr</a></li> <li><a href="../modules/json.html">json</a></li> <li><a href="../modules/json-parse.html">json-parse</a></li> <li><a href="../modules/json-stringify.html">json-stringify</a></li> <li><a href="../modules/jsonp.html">jsonp</a></li> <li><a href="../modules/jsonp-url.html">jsonp-url</a></li> <li><a href="../modules/lazy-model-list.html">lazy-model-list</a></li> <li><a href="../modules/loader.html">loader</a></li> <li><a href="../modules/loader-base.html">loader-base</a></li> <li><a href="../modules/loader-yui3.html">loader-yui3</a></li> <li><a href="../modules/matrix.html">matrix</a></li> <li><a href="../modules/model.html">model</a></li> <li><a href="../modules/model-list.html">model-list</a></li> <li><a href="../modules/model-sync-rest.html">model-sync-rest</a></li> <li><a href="../modules/node.html">node</a></li> <li><a href="../modules/node-base.html">node-base</a></li> <li><a href="../modules/node-core.html">node-core</a></li> <li><a href="../modules/node-data.html">node-data</a></li> <li><a href="../modules/node-event-delegate.html">node-event-delegate</a></li> <li><a href="../modules/node-event-html5.html">node-event-html5</a></li> <li><a href="../modules/node-event-simulate.html">node-event-simulate</a></li> <li><a href="../modules/node-flick.html">node-flick</a></li> <li><a href="../modules/node-focusmanager.html">node-focusmanager</a></li> <li><a href="../modules/node-load.html">node-load</a></li> <li><a href="../modules/node-menunav.html">node-menunav</a></li> <li><a href="../modules/node-pluginhost.html">node-pluginhost</a></li> <li><a href="../modules/node-screen.html">node-screen</a></li> <li><a href="../modules/node-scroll-info.html">node-scroll-info</a></li> <li><a href="../modules/node-style.html">node-style</a></li> <li><a href="../modules/oop.html">oop</a></li> <li><a href="../modules/overlay.html">overlay</a></li> <li><a href="../modules/paginator.html">paginator</a></li> <li><a href="../modules/paginator-core.html">paginator-core</a></li> <li><a href="../modules/paginator-url.html">paginator-url</a></li> <li><a href="../modules/panel.html">panel</a></li> <li><a href="../modules/parallel.html">parallel</a></li> <li><a href="../modules/pjax.html">pjax</a></li> <li><a href="../modules/pjax-base.html">pjax-base</a></li> <li><a href="../modules/pjax-content.html">pjax-content</a></li> <li><a href="../modules/pjax-plugin.html">pjax-plugin</a></li> <li><a href="../modules/plugin.html">plugin</a></li> <li><a href="../modules/pluginhost.html">pluginhost</a></li> <li><a href="../modules/pluginhost-base.html">pluginhost-base</a></li> <li><a href="../modules/pluginhost-config.html">pluginhost-config</a></li> <li><a href="../modules/promise.html">promise</a></li> <li><a href="../modules/querystring.html">querystring</a></li> <li><a href="../modules/querystring-parse.html">querystring-parse</a></li> <li><a href="../modules/querystring-parse-simple.html">querystring-parse-simple</a></li> <li><a href="../modules/querystring-stringify.html">querystring-stringify</a></li> <li><a href="../modules/querystring-stringify-simple.html">querystring-stringify-simple</a></li> <li><a href="../modules/queue-promote.html">queue-promote</a></li> <li><a href="../modules/range-slider.html">range-slider</a></li> <li><a href="../modules/recordset.html">recordset</a></li> <li><a href="../modules/recordset-base.html">recordset-base</a></li> <li><a href="../modules/recordset-filter.html">recordset-filter</a></li> <li><a href="../modules/recordset-indexer.html">recordset-indexer</a></li> <li><a href="../modules/recordset-sort.html">recordset-sort</a></li> <li><a href="../modules/resize.html">resize</a></li> <li><a href="../modules/resize-contrain.html">resize-contrain</a></li> <li><a href="../modules/resize-plugin.html">resize-plugin</a></li> <li><a href="../modules/resize-proxy.html">resize-proxy</a></li> <li><a href="../modules/rollup.html">rollup</a></li> <li><a href="../modules/router.html">router</a></li> <li><a href="../modules/scrollview.html">scrollview</a></li> <li><a href="../modules/scrollview-base.html">scrollview-base</a></li> <li><a href="../modules/scrollview-base-ie.html">scrollview-base-ie</a></li> <li><a href="../modules/scrollview-list.html">scrollview-list</a></li> <li><a href="../modules/scrollview-paginator.html">scrollview-paginator</a></li> <li><a href="../modules/scrollview-scrollbars.html">scrollview-scrollbars</a></li> <li><a href="../modules/selection.html">selection</a></li> <li><a href="../modules/selector-css2.html">selector-css2</a></li> <li><a href="../modules/selector-css3.html">selector-css3</a></li> <li><a href="../modules/selector-native.html">selector-native</a></li> <li><a href="../modules/series-area.html">series-area</a></li> <li><a href="../modules/series-area-stacked.html">series-area-stacked</a></li> <li><a href="../modules/series-areaspline.html">series-areaspline</a></li> <li><a href="../modules/series-areaspline-stacked.html">series-areaspline-stacked</a></li> <li><a href="../modules/series-bar.html">series-bar</a></li> <li><a href="../modules/series-bar-stacked.html">series-bar-stacked</a></li> <li><a href="../modules/series-base.html">series-base</a></li> <li><a href="../modules/series-candlestick.html">series-candlestick</a></li> <li><a href="../modules/series-cartesian.html">series-cartesian</a></li> <li><a href="../modules/series-column.html">series-column</a></li> <li><a href="../modules/series-column-stacked.html">series-column-stacked</a></li> <li><a href="../modules/series-combo.html">series-combo</a></li> <li><a href="../modules/series-combo-stacked.html">series-combo-stacked</a></li> <li><a href="../modules/series-combospline.html">series-combospline</a></li> <li><a href="../modules/series-combospline-stacked.html">series-combospline-stacked</a></li> <li><a href="../modules/series-curve-util.html">series-curve-util</a></li> <li><a href="../modules/series-fill-util.html">series-fill-util</a></li> <li><a href="../modules/series-histogram.html">series-histogram</a></li> <li><a href="../modules/series-line.html">series-line</a></li> <li><a href="../modules/series-line-stacked.html">series-line-stacked</a></li> <li><a href="../modules/series-line-util.html">series-line-util</a></li> <li><a href="../modules/series-marker.html">series-marker</a></li> <li><a href="../modules/series-marker-stacked.html">series-marker-stacked</a></li> <li><a href="../modules/series-ohlc.html">series-ohlc</a></li> <li><a href="../modules/series-pie.html">series-pie</a></li> <li><a href="../modules/series-plot-util.html">series-plot-util</a></li> <li><a href="../modules/series-range.html">series-range</a></li> <li><a href="../modules/series-spline.html">series-spline</a></li> <li><a href="../modules/series-spline-stacked.html">series-spline-stacked</a></li> <li><a href="../modules/series-stacked.html">series-stacked</a></li> <li><a href="../modules/shim-plugin.html">shim-plugin</a></li> <li><a href="../modules/slider.html">slider</a></li> <li><a href="../modules/slider-base.html">slider-base</a></li> <li><a href="../modules/slider-value-range.html">slider-value-range</a></li> <li><a href="../modules/sortable.html">sortable</a></li> <li><a href="../modules/sortable-scroll.html">sortable-scroll</a></li> <li><a href="../modules/stylesheet.html">stylesheet</a></li> <li><a href="../modules/substitute.html">substitute</a></li> <li><a href="../modules/swf.html">swf</a></li> <li><a href="../modules/swfdetect.html">swfdetect</a></li> <li><a href="../modules/tabview.html">tabview</a></li> <li><a href="../modules/template.html">template</a></li> <li><a href="../modules/template-base.html">template-base</a></li> <li><a href="../modules/template-micro.html">template-micro</a></li> <li><a href="../modules/test.html">test</a></li> <li><a href="../modules/test-console.html">test-console</a></li> <li><a href="../modules/text.html">text</a></li> <li><a href="../modules/text-accentfold.html">text-accentfold</a></li> <li><a href="../modules/text-wordbreak.html">text-wordbreak</a></li> <li><a href="../modules/timers.html">timers</a></li> <li><a href="../modules/transition.html">transition</a></li> <li><a href="../modules/transition-timer.html">transition-timer</a></li> <li><a href="../modules/tree.html">tree</a></li> <li><a href="../modules/tree-labelable.html">tree-labelable</a></li> <li><a href="../modules/tree-lazy.html">tree-lazy</a></li> <li><a href="../modules/tree-node.html">tree-node</a></li> <li><a href="../modules/tree-openable.html">tree-openable</a></li> <li><a href="../modules/tree-selectable.html">tree-selectable</a></li> <li><a href="../modules/tree-sortable.html">tree-sortable</a></li> <li><a href="../modules/uploader.html">uploader</a></li> <li><a href="../modules/uploader-flash.html">uploader-flash</a></li> <li><a href="../modules/uploader-html5.html">uploader-html5</a></li> <li><a href="../modules/uploader-queue.html">uploader-queue</a></li> <li><a href="../modules/view.html">view</a></li> <li><a href="../modules/view-node-map.html">view-node-map</a></li> <li><a href="../modules/widget.html">widget</a></li> <li><a href="../modules/widget-anim.html">widget-anim</a></li> <li><a href="../modules/widget-autohide.html">widget-autohide</a></li> <li><a href="../modules/widget-base.html">widget-base</a></li> <li><a href="../modules/widget-base-ie.html">widget-base-ie</a></li> <li><a href="../modules/widget-buttons.html">widget-buttons</a></li> <li><a href="../modules/widget-child.html">widget-child</a></li> <li><a href="../modules/widget-htmlparser.html">widget-htmlparser</a></li> <li><a href="../modules/widget-modality.html">widget-modality</a></li> <li><a href="../modules/widget-parent.html">widget-parent</a></li> <li><a href="../modules/widget-position.html">widget-position</a></li> <li><a href="../modules/widget-position-align.html">widget-position-align</a></li> <li><a href="../modules/widget-position-constrain.html">widget-position-constrain</a></li> <li><a href="../modules/widget-skin.html">widget-skin</a></li> <li><a href="../modules/widget-stack.html">widget-stack</a></li> <li><a href="../modules/widget-stdmod.html">widget-stdmod</a></li> <li><a href="../modules/widget-uievents.html">widget-uievents</a></li> <li><a href="../modules/yql.html">yql</a></li> <li><a href="../modules/yql-jsonp.html">yql-jsonp</a></li> <li><a href="../modules/yql-nodejs.html">yql-nodejs</a></li> <li><a href="../modules/yql-winjs.html">yql-winjs</a></li> <li><a href="../modules/yui.html">yui</a></li> <li><a href="../modules/yui-base.html">yui-base</a></li> <li><a href="../modules/yui-later.html">yui-later</a></li> <li><a href="../modules/yui-log.html">yui-log</a></li> <li><a href="../modules/yui-throttle.html">yui-throttle</a></li> </ul> </div> </div> </div> </div> </div> <div class="yui3-u-3-4"> <div id="api-options"> Show: <label for="api-show-inherited"> <input type="checkbox" id="api-show-inherited" checked> Inherited </label> <label for="api-show-protected"> <input type="checkbox" id="api-show-protected"> Protected </label> <label for="api-show-private"> <input type="checkbox" id="api-show-private"> Private </label> <label for="api-show-deprecated"> <input type="checkbox" id="api-show-deprecated"> Deprecated </label> </div> <div class="apidocs"> <div id="docs-main"> <div class="content"> <h1>LineSeries Class</h1> <div class="box meta"> <div class="uses"> Uses <ul class="inline commas"> <li><a href="Lines.html">Lines</a></li> </ul> </div> <div class="extends"> Extends <a href="../classes/CartesianSeries.html" class="crosslink">CartesianSeries</a> </div> <div class="foundat"> Defined in: <a href="../files/charts_js_LineSeries.js.html#l7"><code>charts&#x2F;js&#x2F;LineSeries.js:7</code></a> </div> Module: <a href="../modules/series-line.html">series-line</a><br> Parent Module: <a href="../modules/charts.html">charts</a> </div> <div class="box intro"> <p>The LineSeries class renders quantitative data on a graph by connecting relevant data points.</p> </div> <div class="constructor"> <h2>Constructor</h2> <div id="method_LineSeries" class="method item"> <h3 class="name"><code>LineSeries</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>config</code> </li> </ul><span class="paren">)</span> </div> <div class="meta"> <p> Defined in <a href="../files/charts_js_LineSeries.js.html#l7"><code>charts&#x2F;js&#x2F;LineSeries.js:7</code></a> </p> </div> <div class="description"> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">config</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span> <div class="param-description"> <p>(optional) Configuration parameters.</p> </div> </li> </ul> </div> </div> </div> <div id="classdocs" class="tabview"> <ul class="api-class-tabs"> <li class="api-class-tab index"><a href="#index">Index</a></li> <li class="api-class-tab methods"><a href="#methods">Methods</a></li> <li class="api-class-tab properties"><a href="#properties">Properties</a></li> <li class="api-class-tab attrs"><a href="#attrs">Attributes</a></li> <li class="api-class-tab events"><a href="#events">Events</a></li> </ul> <div> <div id="index" class="api-class-tabpanel index"> <h2 class="off-left">Item Index</h2> <div class="index-section methods"> <h3>Methods</h3> <ul class="index-list methods extends"> <li class="index-item method private inherited"> <a href="#method__addAttrs">_addAttrs</a> </li> <li class="index-item method private inherited"> <a href="#method__addLazyAttr">_addLazyAttr</a> </li> <li class="index-item method private inherited"> <a href="#method__addOutOfOrder">_addOutOfOrder</a> </li> <li class="index-item method private inherited"> <a href="#method__aggregateAttrs">_aggregateAttrs</a> </li> <li class="index-item method private inherited"> <a href="#method__attrCfgHash">_attrCfgHash</a> </li> <li class="index-item method private inherited"> <a href="#method__baseDestroy">_baseDestroy</a> </li> <li class="index-item method private inherited"> <a href="#method__baseInit">_baseInit</a> </li> <li class="index-item method private inherited"> <a href="#method__checkForDataByKey">_checkForDataByKey</a> </li> <li class="index-item method private inherited"> <a href="#method__cloneDefaultValue">_cloneDefaultValue</a> </li> <li class="index-item method private inherited"> <a href="#method__copyData">_copyData</a> </li> <li class="index-item method private inherited"> <a href="#method__copyObject">_copyObject</a> </li> <li class="index-item method private inherited"> <a href="#method__defAttrChangeFn">_defAttrChangeFn</a> </li> <li class="index-item method protected inherited"> <a href="#method__defDestroyFn">_defDestroyFn</a> </li> <li class="index-item method protected inherited"> <a href="#method__defInitFn">_defInitFn</a> </li> <li class="index-item method private inherited"> <a href="#method__destroyHierarchy">_destroyHierarchy</a> </li> <li class="index-item method private inherited"> <a href="#method__filterAdHocAttrs">_filterAdHocAttrs</a> </li> <li class="index-item method private inherited"> <a href="#method__fireAttrChange">_fireAttrChange</a> </li> <li class="index-item method protected inherited"> <a href="#method__getAttr">_getAttr</a> </li> <li class="index-item method protected inherited"> <a href="#method__getAttrCfg">_getAttrCfg</a> </li> <li class="index-item method protected inherited"> <a href="#method__getAttrCfgs">_getAttrCfgs</a> </li> <li class="index-item method private inherited"> <a href="#method__getAttrInitVal">_getAttrInitVal</a> </li> <li class="index-item method protected inherited"> <a href="#method__getAttrs">_getAttrs</a> </li> <li class="index-item method private inherited"> <a href="#method__getChart">_getChart</a> </li> <li class="index-item method protected inherited"> <a href="#method__getClasses">_getClasses</a> </li> <li class="index-item method private inherited"> <a href="#method__getCoords">_getCoords</a> </li> <li class="index-item method protected inherited"> <a href="#method__getDefaultColor">_getDefaultColor</a> </li> <li class="index-item method protected inherited"> <a href="#method__getDefaultStyles">_getDefaultStyles</a> </li> <li class="index-item method private inherited"> <a href="#method__getFirstValidIndex">_getFirstValidIndex</a> </li> <li class="index-item method private inherited"> <a href="#method__getFullType">_getFullType</a> </li> <li class="index-item method private inherited"> <a href="#method__getGraphic">_getGraphic</a> </li> <li class="index-item method private inherited"> <a href="#method__getInstanceAttrCfgs">_getInstanceAttrCfgs</a> </li> <li class="index-item method private inherited"> <a href="#method__getLastValidIndex">_getLastValidIndex</a> </li> <li class="index-item method protected inherited"> <a href="#method__getLineDefaults">_getLineDefaults</a> </li> <li class="index-item method private inherited"> <a href="#method__getStateVal">_getStateVal</a> </li> <li class="index-item method private inherited"> <a href="#method__getType">_getType</a> </li> <li class="index-item method protected inherited"> <a href="#method__handleVisibleChange">_handleVisibleChange</a> </li> <li class="index-item method private inherited"> <a href="#method__hasPotentialSubscribers">_hasPotentialSubscribers</a> </li> <li class="index-item method private inherited"> <a href="#method__initAttrHost">_initAttrHost</a> </li> <li class="index-item method private inherited inherited"> <a href="#method__initAttribute">_initAttribute</a> </li> <li class="index-item method protected inherited"> <a href="#method__initAttrs">_initAttrs</a> </li> <li class="index-item method private inherited"> <a href="#method__initBase">_initBase</a> </li> <li class="index-item method private inherited"> <a href="#method__initHierarchy">_initHierarchy</a> </li> <li class="index-item method private inherited"> <a href="#method__initHierarchyData">_initHierarchyData</a> </li> <li class="index-item method private inherited"> <a href="#method__isLazyAttr">_isLazyAttr</a> </li> <li class="index-item method protected inherited"> <a href="#method__mergeStyles">_mergeStyles</a> </li> <li class="index-item method private inherited"> <a href="#method__monitor">_monitor</a> </li> <li class="index-item method private inherited"> <a href="#method__normAttrVals">_normAttrVals</a> </li> <li class="index-item method private inherited"> <a href="#method__parseType">_parseType</a> </li> <li class="index-item method private inherited"> <a href="#method__preInitEventCfg">_preInitEventCfg</a> </li> <li class="index-item method protected deprecated inherited"> <a href="#method__protectAttrs">_protectAttrs</a> <span class="flag deprecated">deprecated</span> </li> <li class="index-item method private inherited"> <a href="#method__publish">_publish</a> </li> <li class="index-item method protected inherited inherited"> <a href="#method__set">_set</a> </li> <li class="index-item method protected inherited"> <a href="#method__setAttr">_setAttr</a> </li> <li class="index-item method protected inherited inherited"> <a href="#method__setAttrs">_setAttrs</a> </li> <li class="index-item method private inherited"> <a href="#method__setAttrVal">_setAttrVal</a> </li> <li class="index-item method protected inherited"> <a href="#method__setCanvas">_setCanvas</a> </li> <li class="index-item method private inherited"> <a href="#method__setStateVal">_setStateVal</a> </li> <li class="index-item method protected inherited"> <a href="#method__setStyles">_setStyles</a> </li> <li class="index-item method private inherited"> <a href="#method__setXMarkerPlane">_setXMarkerPlane</a> </li> <li class="index-item method private inherited"> <a href="#method__setYMarkerPlane">_setYMarkerPlane</a> </li> <li class="index-item method private inherited"> <a href="#method__toggleVisible">_toggleVisible</a> </li> <li class="index-item method private inherited"> <a href="#method__updateAxisBase">_updateAxisBase</a> </li> <li class="index-item method private inherited"> <a href="#method__xAxisChangeHandler">_xAxisChangeHandler</a> </li> <li class="index-item method private inherited"> <a href="#method__xDataChangeHandler">_xDataChangeHandler</a> </li> <li class="index-item method private inherited"> <a href="#method__yAxisChangeHandler">_yAxisChangeHandler</a> </li> <li class="index-item method private inherited"> <a href="#method__yDataChangeHandler">_yDataChangeHandler</a> </li> <li class="index-item method inherited"> <a href="#method_addAttr">addAttr</a> </li> <li class="index-item method inherited"> <a href="#method_addAttrs">addAttrs</a> </li> <li class="index-item method private inherited"> <a href="#method_addListeners">addListeners</a> </li> <li class="index-item method inherited"> <a href="#method_addTarget">addTarget</a> </li> <li class="index-item method inherited"> <a href="#method_after">after</a> </li> <li class="index-item method inherited"> <a href="#method_attrAdded">attrAdded</a> </li> <li class="index-item method inherited"> <a href="#method_before">before</a> </li> <li class="index-item method inherited"> <a href="#method_bubble">bubble</a> </li> <li class="index-item method inherited inherited"> <a href="#method_destroy">destroy</a> </li> <li class="index-item method protected inherited inherited"> <a href="#method_destructor">destructor</a> </li> <li class="index-item method inherited"> <a href="#method_detach">detach</a> </li> <li class="index-item method inherited"> <a href="#method_detachAll">detachAll</a> </li> <li class="index-item method protected inherited"> <a href="#method_draw">draw</a> </li> <li class="index-item method private inherited"> <a href="#method_drawDashedLine">drawDashedLine</a> </li> <li class="index-item method protected inherited"> <a href="#method_drawLines">drawLines</a> </li> <li class="index-item method protected"> <a href="#method_drawSeries">drawSeries</a> </li> <li class="index-item method protected inherited"> <a href="#method_drawSpline">drawSpline</a> </li> <li class="index-item method inherited"> <a href="#method_fire">fire</a> </li> <li class="index-item method inherited"> <a href="#method_get">get</a> </li> <li class="index-item method inherited"> <a href="#method_getAttrs">getAttrs</a> </li> <li class="index-item method inherited"> <a href="#method_getEvent">getEvent</a> </li> <li class="index-item method inherited"> <a href="#method_getTargets">getTargets</a> </li> <li class="index-item method inherited"> <a href="#method_getTotalValues">getTotalValues</a> </li> <li class="index-item method inherited inherited"> <a href="#method_init">init</a> </li> <li class="index-item method inherited"> <a href="#method_modifyAttr">modifyAttr</a> </li> <li class="index-item method inherited"> <a href="#method_on">on</a> </li> <li class="index-item method inherited"> <a href="#method_once">once</a> </li> <li class="index-item method inherited"> <a href="#method_onceAfter">onceAfter</a> </li> <li class="index-item method inherited"> <a href="#method_parseType">parseType</a> </li> <li class="index-item method inherited"> <a href="#method_publish">publish</a> </li> <li class="index-item method inherited"> <a href="#method_removeAttr">removeAttr</a> </li> <li class="index-item method inherited"> <a href="#method_removeTarget">removeTarget</a> </li> <li class="index-item method private inherited"> <a href="#method_render">render</a> </li> <li class="index-item method inherited"> <a href="#method_reset">reset</a> </li> <li class="index-item method inherited inherited"> <a href="#method_set">set</a> </li> <li class="index-item method protected inherited"> <a href="#method_setAreaData">setAreaData</a> </li> <li class="index-item method inherited inherited"> <a href="#method_setAttrs">setAttrs</a> </li> <li class="index-item method deprecated inherited"> <a href="#method_subscribe">subscribe</a> <span class="flag deprecated">deprecated</span> </li> <li class="index-item method inherited"> <a href="#method_toString">toString</a> </li> <li class="index-item method deprecated inherited"> <a href="#method_unsubscribe">unsubscribe</a> <span class="flag deprecated">deprecated</span> </li> <li class="index-item method deprecated inherited"> <a href="#method_unsubscribeAll">unsubscribeAll</a> <span class="flag deprecated">deprecated</span> </li> <li class="index-item method private inherited"> <a href="#method_validate">validate</a> </li> </ul> </div> <div class="index-section properties"> <h3>Properties</h3> <ul class="index-list properties extends"> <li class="index-item property protected inherited"> <a href="#property__allowAdHocAttrs">_allowAdHocAttrs</a> </li> <li class="index-item property private inherited"> <a href="#property__bottomOrigin">_bottomOrigin</a> </li> <li class="index-item property protected inherited"> <a href="#property__defaultBorderColors">_defaultBorderColors</a> </li> <li class="index-item property protected inherited"> <a href="#property__defaultFillColors">_defaultFillColors</a> </li> <li class="index-item property protected inherited"> <a href="#property__defaultLineColors">_defaultLineColors</a> </li> <li class="index-item property private inherited"> <a href="#property__defaultPlaneOffset">_defaultPlaneOffset</a> </li> <li class="index-item property protected inherited"> <a href="#property__defaultSliceColors">_defaultSliceColors</a> </li> <li class="index-item property private inherited"> <a href="#property__heightChangeHandle">_heightChangeHandle</a> </li> <li class="index-item property private inherited"> <a href="#property__leftOrigin">_leftOrigin</a> </li> <li class="index-item property private inherited"> <a href="#property__lineDefaults">_lineDefaults</a> </li> <li class="index-item property private inherited"> <a href="#property__styles">_styles</a> </li> <li class="index-item property private inherited"> <a href="#property__stylesChangeHandle">_stylesChangeHandle</a> </li> <li class="index-item property private inherited"> <a href="#property__visibleChangeHandle">_visibleChangeHandle</a> </li> <li class="index-item property private inherited"> <a href="#property__widthChangeHandle">_widthChangeHandle</a> </li> <li class="index-item property private inherited"> <a href="#property__xAxisChangeHandle">_xAxisChangeHandle</a> </li> <li class="index-item property private inherited"> <a href="#property__xDataReadyHandle">_xDataReadyHandle</a> </li> <li class="index-item property private inherited"> <a href="#property__xDataUpdateHandle">_xDataUpdateHandle</a> </li> <li class="index-item property private inherited"> <a href="#property__xDisplayName">_xDisplayName</a> </li> <li class="index-item property private inherited"> <a href="#property__yAxisChangeHandle">_yAxisChangeHandle</a> </li> <li class="index-item property private inherited"> <a href="#property__yDataReadyHandle">_yDataReadyHandle</a> </li> <li class="index-item property private inherited"> <a href="#property__yDataUpdateHandle">_yDataUpdateHandle</a> </li> <li class="index-item property private inherited"> <a href="#property__yDisplayName">_yDisplayName</a> </li> <li class="index-item property private inherited"> <a href="#property_GUID">GUID</a> </li> <li class="index-item property deprecated inherited"> <a href="#property_name">name</a> <span class="flag deprecated">deprecated</span> </li> </ul> </div> <div class="index-section attrs"> <h3>Attributes</h3> <ul class="index-list attrs extends"> <li class="index-item attr inherited"> <a href="#attr_categoryDisplayName">categoryDisplayName</a> </li> <li class="index-item attr inherited"> <a href="#attr_chart">chart</a> </li> <li class="index-item attr inherited"> <a href="#attr_destroyed">destroyed</a> </li> <li class="index-item attr inherited"> <a href="#attr_direction">direction</a> </li> <li class="index-item attr inherited"> <a href="#attr_graph">graph</a> </li> <li class="index-item attr inherited inherited"> <a href="#attr_graphic">graphic</a> </li> <li class="index-item attr inherited"> <a href="#attr_graphOrder">graphOrder</a> </li> <li class="index-item attr inherited"> <a href="#attr_groupMarkers">groupMarkers</a> </li> <li class="index-item attr inherited"> <a href="#attr_height">height</a> </li> <li class="index-item attr inherited"> <a href="#attr_initialized">initialized</a> </li> <li class="index-item attr inherited"> <a href="#attr_order">order</a> </li> <li class="index-item attr inherited"> <a href="#attr_rendered">rendered</a> </li> <li class="index-item attr inherited"> <a href="#attr_seriesTypeCollection">seriesTypeCollection</a> </li> <li class="index-item attr inherited"> <a href="#attr_styles">styles</a> </li> <li class="index-item attr inherited"> <a href="#attr_type">type</a> </li> <li class="index-item attr inherited"> <a href="#attr_valueDisplayName">valueDisplayName</a> </li> <li class="index-item attr inherited"> <a href="#attr_visible">visible</a> </li> <li class="index-item attr inherited"> <a href="#attr_xAxis">xAxis</a> </li> <li class="index-item attr inherited"> <a href="#attr_xcoords">xcoords</a> </li> <li class="index-item attr inherited"> <a href="#attr_xData">xData</a> </li> <li class="index-item attr inherited"> <a href="#attr_xDisplayName">xDisplayName</a> </li> <li class="index-item attr inherited"> <a href="#attr_xKey">xKey</a> </li> <li class="index-item attr inherited"> <a href="#attr_xMarkerPlane">xMarkerPlane</a> </li> <li class="index-item attr inherited"> <a href="#attr_xMarkerPlaneOffset">xMarkerPlaneOffset</a> </li> <li class="index-item attr inherited"> <a href="#attr_yAxis">yAxis</a> </li> <li class="index-item attr inherited"> <a href="#attr_ycoords">ycoords</a> </li> <li class="index-item attr inherited"> <a href="#attr_yData">yData</a> </li> <li class="index-item attr inherited"> <a href="#attr_yDisplayName">yDisplayName</a> </li> <li class="index-item attr inherited"> <a href="#attr_yKey">yKey</a> </li> <li class="index-item attr inherited"> <a href="#attr_yMarkerPlane">yMarkerPlane</a> </li> <li class="index-item attr inherited"> <a href="#attr_yMarkerPlaneOffset">yMarkerPlaneOffset</a> </li> </ul> </div> <div class="index-section events"> <h3>Events</h3> <ul class="index-list events extends"> <li class="index-item event inherited"> <a href="#event_destroy">destroy</a> </li> <li class="index-item event inherited"> <a href="#event_init">init</a> </li> </ul> </div> </div> <div id="methods" class="api-class-tabpanel"> <h2 class="off-left">Methods</h2> <div id="method__addAttrs" class="method item private inherited"> <h3 class="name"><code>_addAttrs</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>cfgs</code> </li> <li class="arg"> <code>values</code> </li> <li class="arg"> <code>lazy</code> </li> </ul><span class="paren">)</span> </div> <span class="flag private">private</span> <div class="meta"> <p>Inherited from <a href="../classes/AttributeCore.html#method__addAttrs">AttributeCore</a>: <a href="../files/attribute_js_AttributeCore.js.html#l854"><code>attribute&#x2F;js&#x2F;AttributeCore.js:854</code></a> </p> </div> <div class="description"> <p>Implementation behind the public addAttrs method.</p> <p>This method is invoked directly by get if it encounters a scenario in which an attribute&#39;s valueFn attempts to obtain the value an attribute in the same group of attributes, which has not yet been added (on demand initialization).</p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">cfgs</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span> <div class="param-description"> <p>An object with attribute name/configuration pairs.</p> </div> </li> <li class="param"> <code class="param-name">values</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span> <div class="param-description"> <p>An object with attribute name/value pairs, defining the initial values to apply. Values defined in the cfgs argument will be over-written by values in this argument unless defined as read only.</p> </div> </li> <li class="param"> <code class="param-name">lazy</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span> <div class="param-description"> <p>Whether or not to delay the intialization of these attributes until the first call to get/set. Individual attributes can over-ride this behavior by defining a lazyAdd configuration property in their configuration. See <a href="#method_addAttr">addAttr</a>.</p> </div> </li> </ul> </div> </div> <div id="method__addLazyAttr" class="method item private inherited"> <h3 class="name"><code>_addLazyAttr</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>name</code> </li> <li class="arg"> <code class="optional">[lazyCfg]</code> </li> </ul><span class="paren">)</span> </div> <span class="flag private">private</span> <div class="meta"> <p>Inherited from <a href="../classes/AttributeCore.html#method__addLazyAttr">AttributeCore</a>: <a href="../files/attribute_js_AttributeCore.js.html#l360"><code>attribute&#x2F;js&#x2F;AttributeCore.js:360</code></a> </p> </div> <div class="description"> <p>Finishes initializing an attribute which has been lazily added.</p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">name</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span> <div class="param-description"> <p>The name of the attribute</p> </div> </li> <li class="param"> <code class="param-name optional">[lazyCfg]</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span> <span class="flag optional" title="This parameter is optional.">optional</span> <div class="param-description"> <p>Optional config hash for the attribute. This is added for performance along the critical path, where the calling method has already obtained lazy config from state.</p> </div> </li> </ul> </div> </div> <div id="method__addOutOfOrder" class="method item private inherited"> <h3 class="name"><code>_addOutOfOrder</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>name</code> </li> <li class="arg"> <code>cfg</code> </li> </ul><span class="paren">)</span> </div> <span class="flag private">private</span> <div class="meta"> <p>Inherited from <a href="../classes/AttributeCore.html#method__addOutOfOrder">AttributeCore</a>: <a href="../files/attribute_js_AttributeCore.js.html#l527"><code>attribute&#x2F;js&#x2F;AttributeCore.js:527</code></a> </p> </div> <div class="description"> <p><p>Utility method used by get/set to add attributes encountered out of order when calling addAttrs().</p></p> <p><p>For example, if:</p></p> <pre class="code prettyprint"><code>this.addAttrs({ foo: { setter: function() { // make sure this bar is available when foo is added this.get(&quot;bar&quot;); } }, bar: { value: ... } });</code></pre> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">name</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description"> <p>attribute name</p> </div> </li> <li class="param"> <code class="param-name">cfg</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span> <div class="param-description"> <p>attribute configuration</p> </div> </li> </ul> </div> </div> <div id="method__aggregateAttrs" class="method item private inherited"> <h3 class="name"><code>_aggregateAttrs</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>allAttrs</code> </li> </ul><span class="paren">)</span> </div> <span class="returns-inline"> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span> </span> <span class="flag private">private</span> <div class="meta"> <p>Inherited from <a href="../classes/BaseCore.html#method__aggregateAttrs">BaseCore</a>: <a href="../files/base_js_BaseCore.js.html#l618"><code>base&#x2F;js&#x2F;BaseCore.js:618</code></a> </p> </div> <div class="description"> <p>A helper method, used by _initHierarchyData to aggregate attribute configuration across the instances class hierarchy.</p> <p>The method will protect the attribute configuration value to protect the statically defined default value in ATTRS if required (if the value is an object literal, array or the attribute configuration has cloneDefaultValue set to shallow or deep).</p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">allAttrs</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array" class="crosslink external" target="_blank">Array</a></span> <div class="param-description"> <p>An array of ATTRS definitions across classes in the hierarchy (subclass first, Base last)</p> </div> </li> </ul> </div> <div class="returns"> <h4>Returns:</h4> <div class="returns-description"> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span>: <p>The aggregate set of ATTRS definitions for the instance</p> </div> </div> </div> <div id="method__attrCfgHash" class="method item private inherited"> <h3 class="name"><code>_attrCfgHash</code></h3> <span class="paren">()</span> <span class="flag private">private</span> <div class="meta"> <p>Inherited from <a href="../classes/BaseCore.html#method__attrCfgHash">BaseCore</a>: <a href="../files/base_js_BaseCore.js.html#l581"><code>base&#x2F;js&#x2F;BaseCore.js:581</code></a> </p> </div> <div class="description"> <p>Utility method to define the attribute hash used to filter/whitelist property mixes for this class for iteration performance reasons.</p> </div> </div> <div id="method__baseDestroy" class="method item private inherited"> <h3 class="name"><code>_baseDestroy</code></h3> <span class="paren">()</span> <span class="flag private">private</span> <div class="meta"> <p>Inherited from <a href="../classes/BaseCore.html#method__baseDestroy">BaseCore</a>: <a href="../files/base_js_BaseCore.js.html#l364"><code>base&#x2F;js&#x2F;BaseCore.js:364</code></a> </p> </div> <div class="description"> <p>Internal destroy implementation for BaseCore</p> </div> </div> <div id="method__baseInit" class="method item private inherited"> <h3 class="name"><code>_baseInit</code></h3> <span class="paren">()</span> <span class="flag private">private</span> <div class="meta"> <p>Inherited from <a href="../classes/BaseCore.html#method__baseInit">BaseCore</a>: <a href="../files/base_js_BaseCore.js.html#l336"><code>base&#x2F;js&#x2F;BaseCore.js:336</code></a> </p> </div> <div class="description"> <p>Internal initialization implementation for BaseCore</p> </div> </div> <div id="method__checkForDataByKey" class="method item private inherited"> <h3 class="name"><code>_checkForDataByKey</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>obj</code> </li> <li class="arg"> <code>keys</code> </li> </ul><span class="paren">)</span> </div> <span class="returns-inline"> <span class="type"></span> </span> <span class="flag private">private</span> <div class="meta"> <p>Inherited from <a href="../classes/CartesianSeries.html#method__checkForDataByKey">CartesianSeries</a>: <a href="../files/charts_js_CartesianSeries.js.html#l234"><code>charts&#x2F;js&#x2F;CartesianSeries.js:234</code></a> </p> </div> <div class="description"> <p>Checks to see if all keys of a data object exist and contain data.</p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">obj</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span> <div class="param-description"> <p>The object to check</p> </div> </li> <li class="param"> <code class="param-name">keys</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array" class="crosslink external" target="_blank">Array</a></span> <div class="param-description"> <p>The keys to check</p> </div> </li> </ul> </div> <div class="returns"> <h4>Returns:</h4> <div class="returns-description"> <p>Boolean</p> </div> </div> </div> <div id="method__cloneDefaultValue" class="method item private inherited"> <h3 class="name"><code>_cloneDefaultValue</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>cfg</code> </li> </ul><span class="paren">)</span> </div> <span class="flag private">private</span> <div class="meta"> <p>Inherited from <a href="../classes/BaseCore.html#method__cloneDefaultValue">BaseCore</a>: <a href="../files/base_js_BaseCore.js.html#l592"><code>base&#x2F;js&#x2F;BaseCore.js:592</code></a> </p> </div> <div class="description"> <p>This method assumes that the value has already been checked to be an object. Since it&#39;s on a critical path, we don&#39;t want to re-do the check.</p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">cfg</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span> <div class="param-description"> </div> </li> </ul> </div> </div> <div id="method__copyData" class="method item private inherited"> <h3 class="name"><code>_copyData</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>val</code> </li> </ul><span class="paren">)</span> </div> <span class="returns-inline"> <span class="type"></span> </span> <span class="flag private">private</span> <div class="meta"> <p>Inherited from <a href="../classes/CartesianSeries.html#method__copyData">CartesianSeries</a>: <a href="../files/charts_js_CartesianSeries.js.html#l363"><code>charts&#x2F;js&#x2F;CartesianSeries.js:363</code></a> </p> </div> <div class="description"> <p>Used to cache xData and yData in the setAreaData method. Returns a copy of an array if an array is received as the param and returns an object literal of array copies if an object literal is received as the param.</p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">val</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array" class="crosslink external" target="_blank">Array</a> | <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span> <div class="param-description"> <p>The object or array to be copied.</p> </div> </li> </ul> </div> <div class="returns"> <h4>Returns:</h4> <div class="returns-description"> <p>Array|Object</p> </div> </div> </div> <div id="method__copyObject" class="method item private inherited"> <h3 class="name"><code>_copyObject</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>obj</code> </li> </ul><span class="paren">)</span> </div> <span class="returns-inline"> <span class="type"></span> </span> <span class="flag private">private</span> <div class="meta"> <p>Inherited from <a href="../classes/Renderer.html#method__copyObject">Renderer</a>: <a href="../files/charts_js_Renderer.js.html#l113"><code>charts&#x2F;js&#x2F;Renderer.js:113</code></a> </p> </div> <div class="description"> <p>Copies an object literal.</p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">obj</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span> <div class="param-description"> <p>Object literal to be copied.</p> </div> </li> </ul> </div> <div class="returns"> <h4>Returns:</h4> <div class="returns-description"> <p>Object</p> </div> </div> </div> <div id="method__defAttrChangeFn" class="method item private inherited"> <h3 class="name"><code>_defAttrChangeFn</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>e</code> </li> <li class="arg"> <code>eventFastPath</code> </li> </ul><span class="paren">)</span> </div> <span class="flag private">private</span> <div class="meta"> <p>Inherited from <a href="../classes/AttributeObservable.html#method__defAttrChangeFn">AttributeObservable</a>: <a href="../files/attribute_js_AttributeObservable.js.html#l185"><code>attribute&#x2F;js&#x2F;AttributeObservable.js:185</code></a> </p> </div> <div class="description"> <p>Default function for attribute change events.</p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">e</code> <span class="type"><a href="../classes/EventFacade.html" class="crosslink">EventFacade</a></span> <div class="param-description"> <p>The event object for attribute change events.</p> </div> </li> <li class="param"> <code class="param-name">eventFastPath</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span> <div class="param-description"> <p>Whether or not we&#39;re using this as a fast path in the case of no listeners or not</p> </div> </li> </ul> </div> </div> <div id="method__defDestroyFn" class="method item protected inherited"> <h3 class="name"><code>_defDestroyFn</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>e</code> </li> </ul><span class="paren">)</span> </div> <span class="flag protected">protected</span> <div class="meta"> <p>Inherited from <a href="../classes/BaseObservable.html#method__defDestroyFn">BaseObservable</a>: <a href="../files/base_js_BaseObservable.js.html#l202"><code>base&#x2F;js&#x2F;BaseObservable.js:202</code></a> </p> </div> <div class="description"> <p>Default destroy event handler</p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">e</code> <span class="type"><a href="../classes/EventFacade.html" class="crosslink">EventFacade</a></span> <div class="param-description"> <p>Event object</p> </div> </li> </ul> </div> </div> <div id="method__defInitFn" class="method item protected inherited"> <h3 class="name"><code>_defInitFn</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>e</code> </li> </ul><span class="paren">)</span> </div> <span class="flag protected">protected</span> <div class="meta"> <p>Inherited from <a href="../classes/BaseObservable.html#method__defInitFn">BaseObservable</a>: <a href="../files/base_js_BaseObservable.js.html#l190"><code>base&#x2F;js&#x2F;BaseObservable.js:190</code></a> </p> </div> <div class="description"> <p>Default init event handler</p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">e</code> <span class="type"><a href="../classes/EventFacade.html" class="crosslink">EventFacade</a></span> <div class="param-description"> <p>Event object, with a cfg property which refers to the configuration object passed to the constructor.</p> </div> </li> </ul> </div> </div> <div id="method__destroyHierarchy" class="method item private inherited"> <h3 class="name"><code>_destroyHierarchy</code></h3> <span class="paren">()</span> <span class="flag private">private</span> <div class="meta"> <p>Inherited from <a href="../classes/BaseCore.html#method__destroyHierarchy">BaseCore</a>: <a href="../files/base_js_BaseCore.js.html#l782"><code>base&#x2F;js&#x2F;BaseCore.js:782</code></a> </p> </div> <div class="description"> <p>Destroys the class hierarchy for this instance by invoking the destructor method on the prototype of each class in the hierarchy.</p> </div> </div> <div id="method__filterAdHocAttrs" class="method item private inherited"> <h3 class="name"><code>_filterAdHocAttrs</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>allAttrs</code> </li> <li class="arg"> <code>userVals</code> </li> </ul><span class="paren">)</span> </div> <span class="returns-inline"> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span> </span> <span class="flag private">private</span> <div class="meta"> <p>Inherited from <a href="../classes/BaseCore.html#method__filterAdHocAttrs">BaseCore</a>: <a href="../files/base_js_BaseCore.js.html#l470"><code>base&#x2F;js&#x2F;BaseCore.js:470</code></a> </p> </div> <div class="description"> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">allAttrs</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span> <div class="param-description"> <p>The set of all attribute configurations for this instance. Attributes will be removed from this set, if they belong to the filtered class, so that by the time all classes are processed, allCfgs will be empty.</p> </div> </li> <li class="param"> <code class="param-name">userVals</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span> <div class="param-description"> <p>The config object passed in by the user, from which adhoc attrs are to be filtered.</p> </div> </li> </ul> </div> <div class="returns"> <h4>Returns:</h4> <div class="returns-description"> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span>: <p>The set of adhoc attributes passed in, in the form of an object with attribute name/configuration pairs.</p> </div> </div> </div> <div id="method__fireAttrChange" class="method item private inherited"> <h3 class="name"><code>_fireAttrChange</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>attrName</code> </li> <li class="arg"> <code>subAttrName</code> </li> <li class="arg"> <code>currVal</code> </li> <li class="arg"> <code>newVal</code> </li> <li class="arg"> <code>opts</code> </li> <li class="arg"> <code class="optional">[cfg]</code> </li> </ul><span class="paren">)</span> </div> <span class="flag private">private</span> <div class="meta"> <p>Inherited from <a href="../classes/AttributeObservable.html#method__fireAttrChange">AttributeObservable</a>: <a href="../files/attribute_js_AttributeObservable.js.html#l120"><code>attribute&#x2F;js&#x2F;AttributeObservable.js:120</code></a> </p> </div> <div class="description"> <p>Utility method to help setup the event payload and fire the attribute change event.</p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">attrName</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description"> <p>The name of the attribute</p> </div> </li> <li class="param"> <code class="param-name">subAttrName</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description"> <p>The full path of the property being changed, if this is a sub-attribute value being change. Otherwise null.</p> </div> </li> <li class="param"> <code class="param-name">currVal</code> <span class="type">Any</span> <div class="param-description"> <p>The current value of the attribute</p> </div> </li> <li class="param"> <code class="param-name">newVal</code> <span class="type">Any</span> <div class="param-description"> <p>The new value of the attribute</p> </div> </li> <li class="param"> <code class="param-name">opts</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span> <div class="param-description"> <p>Any additional event data to mix into the attribute change event&#39;s event facade.</p> </div> </li> <li class="param"> <code class="param-name optional">[cfg]</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span> <span class="flag optional" title="This parameter is optional.">optional</span> <div class="param-description"> <p>The attribute config stored in State, if already available.</p> </div> </li> </ul> </div> </div> <div id="method__getAttr" class="method item protected inherited"> <h3 class="name"><code>_getAttr</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>name</code> </li> </ul><span class="paren">)</span> </div> <span class="returns-inline"> <span class="type">Any</span> </span> <span class="flag protected">protected</span> <span class="flag chainable">chainable</span> <div class="meta"> <p>Inherited from <a href="../classes/AttributeCore.html#method__getAttr">AttributeCore</a>: <a href="../files/attribute_js_AttributeCore.js.html#l564"><code>attribute&#x2F;js&#x2F;AttributeCore.js:564</code></a> </p> </div> <div class="description"> <p>Provides the common implementation for the public get method, allowing Attribute hosts to over-ride either method.</p> <p>See <a href="#method_get">get</a> for argument details.</p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">name</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description"> <p>The name of the attribute.</p> </div> </li> </ul> </div> <div class="returns"> <h4>Returns:</h4> <div class="returns-description"> <span class="type">Any</span>: <p>The value of the attribute.</p> </div> </div> </div> <div id="method__getAttrCfg" class="method item protected inherited"> <h3 class="name"><code>_getAttrCfg</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>name</code> </li> </ul><span class="paren">)</span> </div> <span class="returns-inline"> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span> </span> <span class="flag protected">protected</span> <div class="meta"> <p>Inherited from <a href="../classes/AttributeExtras.html#method__getAttrCfg">AttributeExtras</a>: <a href="../files/attribute_js_AttributeExtras.js.html#l125"><code>attribute&#x2F;js&#x2F;AttributeExtras.js:125</code></a> </p> </div> <div class="description"> <p>Returns an object with the configuration properties (and value) for the given attribute. If attrName is not provided, returns the configuration properties for all attributes.</p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">name</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description"> <p>Optional. The attribute name. If not provided, the method will return the configuration for all attributes.</p> </div> </li> </ul> </div> <div class="returns"> <h4>Returns:</h4> <div class="returns-description"> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span>: <p>The configuration properties for the given attribute, or all attributes.</p> </div> </div> </div> <div id="method__getAttrCfgs" class="method item protected inherited"> <h3 class="name"><code>_getAttrCfgs</code></h3> <span class="paren">()</span> <span class="returns-inline"> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span> </span> <span class="flag protected">protected</span> <div class="meta"> <p>Inherited from <a href="../classes/BaseCore.html#method__getAttrCfgs">BaseCore</a>: <a href="../files/base_js_BaseCore.js.html#l394"><code>base&#x2F;js&#x2F;BaseCore.js:394</code></a> </p> </div> <div class="description"> <p>Returns an aggregated set of attribute configurations, by traversing the class hierarchy.</p> </div> <div class="returns"> <h4>Returns:</h4> <div class="returns-description"> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span>: <p>The hash of attribute configurations, aggregated across classes in the hierarchy This value is cached the first time the method, or _getClasses, is invoked. Subsequent invocations return the cached value.</p> </div> </div> </div> <div id="method__getAttrInitVal" class="method item private inherited"> <h3 class="name"><code>_getAttrInitVal</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>attr</code> </li> <li class="arg"> <code>cfg</code> </li> <li class="arg"> <code>initValues</code> </li> </ul><span class="paren">)</span> </div> <span class="returns-inline"> <span class="type">Any</span> </span> <span class="flag private">private</span> <div class="meta"> <p>Inherited from <a href="../classes/AttributeCore.html#method__getAttrInitVal">AttributeCore</a>: <a href="../files/attribute_js_AttributeCore.js.html#l963"><code>attribute&#x2F;js&#x2F;AttributeCore.js:963</code></a> </p> </div> <div class="description"> <p>Returns the initial value of the given attribute from either the default configuration provided, or the over-ridden value if it exists in the set of initValues provided and the attribute is not read-only.</p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">attr</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description"> <p>The name of the attribute</p> </div> </li> <li class="param"> <code class="param-name">cfg</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span> <div class="param-description"> <p>The attribute configuration object</p> </div> </li> <li class="param"> <code class="param-name">initValues</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span> <div class="param-description"> <p>The object with simple and complex attribute name/value pairs returned from _normAttrVals</p> </div> </li> </ul> </div> <div class="returns"> <h4>Returns:</h4> <div class="returns-description"> <span class="type">Any</span>: <p>The initial value of the attribute.</p> </div> </div> </div> <div id="method__getAttrs" class="method item protected inherited"> <h3 class="name"><code>_getAttrs</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>attrs</code> </li> </ul><span class="paren">)</span> </div> <span class="returns-inline"> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span> </span> <span class="flag protected">protected</span> <div class="meta"> <p>Inherited from <a href="../classes/AttributeCore.html#method__getAttrs">AttributeCore</a>: <a href="../files/attribute_js_AttributeCore.js.html#l792"><code>attribute&#x2F;js&#x2F;AttributeCore.js:792</code></a> </p> </div> <div class="description"> <p>Implementation behind the public getAttrs method, to get multiple attribute values.</p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">attrs</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String[]</a> | <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span> <div class="param-description"> <p>Optional. An array of attribute names. If omitted, all attribute values are returned. If set to true, all attributes modified from their initial values are returned.</p> </div> </li> </ul> </div> <div class="returns"> <h4>Returns:</h4> <div class="returns-description"> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span>: <p>An object with attribute name/value pairs.</p> </div> </div> </div> <div id="method__getChart" class="method item private inherited"> <h3 class="name"><code>_getChart</code></h3> <span class="paren">()</span> <span class="returns-inline"> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span> </span> <span class="flag private">private</span> <div class="meta"> <p>Inherited from <a href="../classes/SeriesBase.html#method__getChart">SeriesBase</a>: <a href="../files/charts_js_SeriesBase.js.html#l48"><code>charts&#x2F;js&#x2F;SeriesBase.js:48</code></a> </p> </div> <div class="description"> <p>Returns a reference to the parent container to which all chart elements are contained. When the series is bound to a <code>Chart</code> instance, the <code>Chart</code> instance is the reference. If nothing is set as the <code>chart</code> attribute, the <code>_getChart</code> method will return a reference to the <code>graphic</code> attribute.</p> </div> <div class="returns"> <h4>Returns:</h4> <div class="returns-description"> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span>: </div> </div> </div> <div id="method__getClasses" class="method item protected inherited"> <h3 class="name"><code>_getClasses</code></h3> <span class="paren">()</span> <span class="returns-inline"> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function" class="crosslink external" target="_blank">Function[]</a></span> </span> <span class="flag protected">protected</span> <div class="meta"> <p>Inherited from <a href="../classes/BaseCore.html#method__getClasses">BaseCore</a>: <a href="../files/base_js_BaseCore.js.html#l378"><code>base&#x2F;js&#x2F;BaseCore.js:378</code></a> </p> </div> <div class="description"> <p>Returns the class hierarchy for this object, with BaseCore being the last class in the array.</p> </div> <div class="returns"> <h4>Returns:</h4> <div class="returns-description"> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function" class="crosslink external" target="_blank">Function[]</a></span>: <p>An array of classes (constructor functions), making up the class hierarchy for this object. This value is cached the first time the method, or _getAttrCfgs, is invoked. Subsequent invocations return the cached value.</p> </div> </div> </div> <div id="method__getCoords" class="method item private inherited"> <h3 class="name"><code>_getCoords</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>min</code> </li> <li class="arg"> <code>max</code> </li> <li class="arg"> <code>length</code> </li> <li class="arg"> <code>axis</code> </li> <li class="arg"> <code>offset</code> </li> <li class="arg"> <code>reverse</code> </li> </ul><span class="paren">)</span> </div> <span class="returns-inline"> <span class="type"></span> </span> <span class="flag private">private</span> <div class="meta"> <p>Inherited from <a href="../classes/CartesianSeries.html#method__getCoords">CartesianSeries</a>: <a href="../files/charts_js_CartesianSeries.js.html#l327"><code>charts&#x2F;js&#x2F;CartesianSeries.js:327</code></a> </p> </div> <div class="description"> <p>Returns either an array coordinates or an object key valued arrays of coordinates depending on the input. If the input data is an array, an array is returned. If the input data is an object, an object will be returned.</p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">min</code> <span class="type"><a href="../classes/Number.html" class="crosslink">Number</a></span> <div class="param-description"> <p>The minimum value of the range of data.</p> </div> </li> <li class="param"> <code class="param-name">max</code> <span class="type"><a href="../classes/Number.html" class="crosslink">Number</a></span> <div class="param-description"> <p>The maximum value of the range of data.</p> </div> </li> <li class="param"> <code class="param-name">length</code> <span class="type"><a href="../classes/Number.html" class="crosslink">Number</a></span> <div class="param-description"> <p>The length, in pixels, of across which the coordinates will be calculated.</p> </div> </li> <li class="param"> <code class="param-name">axis</code> <span class="type"><a href="../classes/AxisBase.html" class="crosslink">AxisBase</a></span> <div class="param-description"> <p>The axis in which the data is bound.</p> </div> </li> <li class="param"> <code class="param-name">offset</code> <span class="type"><a href="../classes/Number.html" class="crosslink">Number</a></span> <div class="param-description"> <p>The value in which to offet the first coordinate.</p> </div> </li> <li class="param"> <code class="param-name">reverse</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span> <div class="param-description"> <p>Indicates whether to calculate the coordinates in reverse order.</p> </div> </li> </ul> </div> <div class="returns"> <h4>Returns:</h4> <div class="returns-description"> <p>Array|Object</p> </div> </div> </div> <div id="method__getDefaultColor" class="method item protected inherited"> <h3 class="name"><code>_getDefaultColor</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>index</code> </li> <li class="arg"> <code>type</code> </li> </ul><span class="paren">)</span> </div> <span class="returns-inline"> <span class="type"></span> </span> <span class="flag protected">protected</span> <div class="meta"> <p>Inherited from <a href="../classes/SeriesBase.html#method__getDefaultColor">SeriesBase</a>: <a href="../files/charts_js_SeriesBase.js.html#l249"><code>charts&#x2F;js&#x2F;SeriesBase.js:249</code></a> </p> </div> <div class="description"> <p>Parses a color based on a series order and type.</p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">index</code> <span class="type"><a href="../classes/Number.html" class="crosslink">Number</a></span> <div class="param-description"> <p>Index indicating the series order.</p> </div> </li> <li class="param"> <code class="param-name">type</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description"> <p>Indicates which type of object needs the color.</p> </div> </li> </ul> </div> <div class="returns"> <h4>Returns:</h4> <div class="returns-description"> <p>String</p> </div> </div> </div> <div id="method__getDefaultStyles" class="method item protected"> <h3 class="name"><code>_getDefaultStyles</code></h3> <span class="paren">()</span> <span class="returns-inline"> <span class="type"></span> </span> <span class="flag protected">protected</span> <div class="meta"> <p>Inherited from <a href="../classes/Renderer.html#method__getDefaultStyles"> Renderer </a> but overwritten in <a href="../files/charts_js_LineSeries.js.html#l46"><code>charts&#x2F;js&#x2F;LineSeries.js:46</code></a> </p> </div> <div class="description"> </div> <div class="returns"> <h4>Returns:</h4> <div class="returns-description"> <p>Object</p> </div> </div> </div> <div id="method__getFirstValidIndex" class="method item private inherited"> <h3 class="name"><code>_getFirstValidIndex</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>coords</code> </li> </ul><span class="paren">)</span> </div> <span class="returns-inline"> <span class="type"></span> </span> <span class="flag private">private</span> <div class="meta"> <p>Inherited from <a href="../classes/CartesianSeries.html#method__getFirstValidIndex">CartesianSeries</a>: <a href="../files/charts_js_CartesianSeries.js.html#l449"><code>charts&#x2F;js&#x2F;CartesianSeries.js:449</code></a> </p> </div> <div class="description"> <p>Finds the first valid index of an array coordinates.</p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">coords</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array" class="crosslink external" target="_blank">Array</a></span> <div class="param-description"> <p>An array of x or y coordinates.</p> </div> </li> </ul> </div> <div class="returns"> <h4>Returns:</h4> <div class="returns-description"> <p>Number</p> </div> </div> </div> <div id="method__getFullType" class="method item private inherited"> <h3 class="name"><code>_getFullType</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>type</code> </li> </ul><span class="paren">)</span> </div> <span class="returns-inline"> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> </span> <span class="flag private">private</span> <div class="meta"> <p>Inherited from <a href="../classes/EventTarget.html#method__getFullType">EventTarget</a>: <a href="../files/event-custom_js_event-target.js.html#l564"><code>event-custom&#x2F;js&#x2F;event-target.js:564</code></a> </p> </div> <div class="description"> <p>Returns the fully qualified type, given a short type string. That is, returns &quot;foo:bar&quot; when given &quot;bar&quot; if &quot;foo&quot; is the configured prefix.</p> <p>NOTE: This method, unlike _getType, does no checking of the value passed in, and is designed to be used with the low level _publish() method, for critical path implementations which need to fast-track publish for performance reasons.</p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">type</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description"> <p>The short type to prefix</p> </div> </li> </ul> </div> <div class="returns"> <h4>Returns:</h4> <div class="returns-description"> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span>: <p>The prefixed type, if a prefix is set, otherwise the type passed in</p> </div> </div> </div> <div id="method__getGraphic" class="method item private inherited"> <h3 class="name"><code>_getGraphic</code></h3> <span class="paren">()</span> <span class="returns-inline"> <span class="type"></span> </span> <span class="flag private">private</span> <div class="meta"> <p>Inherited from <a href="../classes/Lines.html#method__getGraphic">Lines</a>: <a href="../files/charts_js_Lines.js.html#l25"><code>charts&#x2F;js&#x2F;Lines.js:25</code></a> </p> </div> <div class="description"> <p>Creates a graphic in which to draw a series.</p> </div> <div class="returns"> <h4>Returns:</h4> <div class="returns-description"> <p>Graphic</p> </div> </div> </div> <div id="method__getInstanceAttrCfgs" class="method item private inherited"> <h3 class="name"><code>_getInstanceAttrCfgs</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>allCfgs</code> </li> </ul><span class="paren">)</span> </div> <span class="returns-inline"> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span> </span> <span class="flag private">private</span> <div class="meta"> <p>Inherited from <a href="../classes/BaseCore.html#method__getInstanceAttrCfgs">BaseCore</a>: <a href="../files/base_js_BaseCore.js.html#l411"><code>base&#x2F;js&#x2F;BaseCore.js:411</code></a> </p> </div> <div class="description"> <p>A helper method used to isolate the attrs config for this instance to pass to <code>addAttrs</code>, from the static cached ATTRS for the class.</p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">allCfgs</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span> <div class="param-description"> <p>The set of all attribute configurations for this instance. Attributes will be removed from this set, if they belong to the filtered class, so that by the time all classes are processed, allCfgs will be empty.</p> </div> </li> </ul> </div> <div class="returns"> <h4>Returns:</h4> <div class="returns-description"> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span>: <p>The set of attributes to be added for this instance, suitable for passing through to <code>addAttrs</code>.</p> </div> </div> </div> <div id="method__getLastValidIndex" class="method item private inherited"> <h3 class="name"><code>_getLastValidIndex</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>coords</code> </li> </ul><span class="paren">)</span> </div> <span class="returns-inline"> <span class="type"></span> </span> <span class="flag private">private</span> <div class="meta"> <p>Inherited from <a href="../classes/CartesianSeries.html#method__getLastValidIndex">CartesianSeries</a>: <a href="../files/charts_js_CartesianSeries.js.html#l470"><code>charts&#x2F;js&#x2F;CartesianSeries.js:470</code></a> </p> </div> <div class="description"> <p>Finds the last valid index of an array coordinates.</p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">coords</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array" class="crosslink external" target="_blank">Array</a></span> <div class="param-description"> <p>An array of x or y coordinates.</p> </div> </li> </ul> </div> <div class="returns"> <h4>Returns:</h4> <div class="returns-description"> <p>Number</p> </div> </div> </div> <div id="method__getLineDefaults" class="method item protected inherited"> <h3 class="name"><code>_getLineDefaults</code></h3> <span class="paren">()</span> <span class="returns-inline"> <span class="type"></span> </span> <span class="flag protected">protected</span> <div class="meta"> <p>Inherited from <a href="../classes/Lines.html#method__getLineDefaults">Lines</a>: <a href="../files/charts_js_Lines.js.html#l259"><code>charts&#x2F;js&#x2F;Lines.js:259</code></a> </p> </div> <div class="description"> <p>Default values for <code>styles</code> attribute.</p> </div> <div class="returns"> <h4>Returns:</h4> <div class="returns-description"> <p>Object</p> </div> </div> </div> <div id="method__getStateVal" class="method item private inherited"> <h3 class="name"><code>_getStateVal</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>name</code> </li> <li class="arg"> <code class="optional">[cfg]</code> </li> </ul><span class="paren">)</span> </div> <span class="returns-inline"> <span class="type">Any</span> </span> <span class="flag private">private</span> <div class="meta"> <p>Inherited from <a href="../classes/AttributeCore.html#method__getStateVal">AttributeCore</a>: <a href="../files/attribute_js_AttributeCore.js.html#l618"><code>attribute&#x2F;js&#x2F;AttributeCore.js:618</code></a> </p> </div> <div class="description"> <p>Gets the stored value for the attribute, from either the internal state object, or the state proxy if it exits</p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">name</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description"> <p>The name of the attribute</p> </div> </li> <li class="param"> <code class="param-name optional">[cfg]</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span> <span class="flag optional" title="This parameter is optional.">optional</span> <div class="param-description"> <p>Optional config hash for the attribute. This is added for performance along the critical path, where the calling method has already obtained the config from state.</p> </div> </li> </ul> </div> <div class="returns"> <h4>Returns:</h4> <div class="returns-description"> <span class="type">Any</span>: <p>The stored value of the attribute</p> </div> </div> </div> <div id="method__getType" class="method item private inherited"> <h3 class="name"><code>_getType</code></h3> <span class="paren">()</span> <span class="flag private">private</span> <div class="meta"> <p>Inherited from <a href="../classes/EventTarget.html#method__getType">EventTarget</a>: <a href="../files/event-custom_js_event-target.js.html#l36"><code>event-custom&#x2F;js&#x2F;event-target.js:36</code></a> </p> </div> <div class="description"> <p>If the instance has a prefix attribute and the event type is not prefixed, the instance prefix is applied to the supplied type.</p> </div> </div> <div id="method__handleVisibleChange" class="method item protected inherited"> <h3 class="name"><code>_handleVisibleChange</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>e</code> </li> </ul><span class="paren">)</span> </div> <span class="flag protected">protected</span> <div class="meta"> <p>Inherited from <a href="../classes/SeriesBase.html#method__handleVisibleChange">SeriesBase</a>: <a href="../files/charts_js_SeriesBase.js.html#l103"><code>charts&#x2F;js&#x2F;SeriesBase.js:103</code></a> </p> </div> <div class="description"> <p>Shows/hides contents of the series.</p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">e</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span> <div class="param-description"> <p>Event object.</p> </div> </li> </ul> </div> </div> <div id="method__hasPotentialSubscribers" class="method item private inherited"> <h3 class="name"><code>_hasPotentialSubscribers</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>fullType</code> </li> </ul><span class="paren">)</span> </div> <span class="returns-inline"> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span> </span> <span class="flag private">private</span> <div class="meta"> <p>Inherited from <a href="../classes/EventTarget.html#method__hasPotentialSubscribers">EventTarget</a>: <a href="../files/event-custom_js_event-facade.js.html#l643"><code>event-custom&#x2F;js&#x2F;event-facade.js:643</code></a> </p> </div> <div class="description"> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">fullType</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description"> <p>The fully prefixed type name</p> </div> </li> </ul> </div> <div class="returns"> <h4>Returns:</h4> <div class="returns-description"> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>: <p>Whether the event has potential subscribers or not</p> </div> </div> </div> <div id="method__initAttrHost" class="method item private inherited"> <h3 class="name"><code>_initAttrHost</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>attrs</code> </li> <li class="arg"> <code>values</code> </li> <li class="arg"> <code>lazy</code> </li> </ul><span class="paren">)</span> </div> <span class="flag private">private</span> <div class="meta"> <p>Inherited from <a href="../classes/AttributeCore.html#method__initAttrHost">AttributeCore</a>: <a href="../files/attribute_js_AttributeCore.js.html#l140"><code>attribute&#x2F;js&#x2F;AttributeCore.js:140</code></a> </p> </div> <div class="description"> <p>Constructor logic for attributes. Initializes the host state, and sets up the inital attributes passed to the constructor.</p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">attrs</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span> <div class="param-description"> <p>The attributes to add during construction (passed through to <a href="#method_addAttrs">addAttrs</a>). These can also be defined on the constructor being augmented with Attribute by defining the ATTRS property on the constructor.</p> </div> </li> <li class="param"> <code class="param-name">values</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span> <div class="param-description"> <p>The initial attribute values to apply (passed through to <a href="#method_addAttrs">addAttrs</a>). These are not merged/cloned. The caller is responsible for isolating user provided values if required.</p> </div> </li> <li class="param"> <code class="param-name">lazy</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span> <div class="param-description"> <p>Whether or not to add attributes lazily (passed through to <a href="#method_addAttrs">addAttrs</a>).</p> </div> </li> </ul> </div> </div> <div id="method__initAttribute" class="method item private inherited"> <h3 class="name"><code>_initAttribute</code></h3> <span class="paren">()</span> <span class="flag private">private</span> <div class="meta"> <p>Inherited from <a href="../classes/BaseObservable.html#method__initAttribute"> BaseObservable </a> but overwritten in <a href="../files/base_js_BaseCore.js.html#l309"><code>base&#x2F;js&#x2F;BaseCore.js:309</code></a> </p> </div> <div class="description"> <p>Initializes AttributeCore</p> </div> </div> <div id="method__initAttrs" class="method item protected inherited"> <h3 class="name"><code>_initAttrs</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>attrs</code> </li> <li class="arg"> <code>values</code> </li> <li class="arg"> <code>lazy</code> </li> </ul><span class="paren">)</span> </div> <span class="flag protected">protected</span> <div class="meta"> <p>Inherited from <a href="../classes/AttributeCore.html#method__initAttrs">AttributeCore</a>: <a href="../files/attribute_js_AttributeCore.js.html#l1029"><code>attribute&#x2F;js&#x2F;AttributeCore.js:1029</code></a> </p> </div> <div class="description"> <p>Utility method to set up initial attributes defined during construction, either through the constructor.ATTRS property, or explicitly passed in.</p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">attrs</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span> <div class="param-description"> <p>The attributes to add during construction (passed through to <a href="#method_addAttrs">addAttrs</a>). These can also be defined on the constructor being augmented with Attribute by defining the ATTRS property on the constructor.</p> </div> </li> <li class="param"> <code class="param-name">values</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span> <div class="param-description"> <p>The initial attribute values to apply (passed through to <a href="#method_addAttrs">addAttrs</a>). These are not merged/cloned. The caller is responsible for isolating user provided values if required.</p> </div> </li> <li class="param"> <code class="param-name">lazy</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span> <div class="param-description"> <p>Whether or not to add attributes lazily (passed through to <a href="#method_addAttrs">addAttrs</a>).</p> </div> </li> </ul> </div> </div> <div id="method__initBase" class="method item private inherited"> <h3 class="name"><code>_initBase</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>config</code> </li> </ul><span class="paren">)</span> </div> <span class="flag private">private</span> <div class="meta"> <p>Inherited from <a href="../classes/BaseCore.html#method__initBase">BaseCore</a>: <a href="../files/base_js_BaseCore.js.html#l274"><code>base&#x2F;js&#x2F;BaseCore.js:274</code></a> </p> </div> <div class="description"> <p>Internal construction logic for BaseCore.</p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">config</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span> <div class="param-description"> <p>The constructor configuration object</p> </div> </li> </ul> </div> </div> <div id="method__initHierarchy" class="method item private inherited"> <h3 class="name"><code>_initHierarchy</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>userVals</code> </li> </ul><span class="paren">)</span> </div> <span class="flag private">private</span> <div class="meta"> <p>Inherited from <a href="../classes/BaseCore.html#method__initHierarchy">BaseCore</a>: <a href="../files/base_js_BaseCore.js.html#l702"><code>base&#x2F;js&#x2F;BaseCore.js:702</code></a> </p> </div> <div class="description"> <p>Initializes the class hierarchy for the instance, which includes initializing attributes for each class defined in the class&#39;s static <a href="#property_BaseCore.ATTRS">ATTRS</a> property and invoking the initializer method on the prototype of each class in the hierarchy.</p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">userVals</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span> <div class="param-description"> <p>Object with configuration property name/value pairs</p> </div> </li> </ul> </div> </div> <div id="method__initHierarchyData" class="method item private inherited"> <h3 class="name"><code>_initHierarchyData</code></h3> <span class="paren">()</span> <span class="flag private">private</span> <div class="meta"> <p>Inherited from <a href="../classes/BaseCore.html#method__initHierarchyData">BaseCore</a>: <a href="../files/base_js_BaseCore.js.html#l500"><code>base&#x2F;js&#x2F;BaseCore.js:500</code></a> </p> </div> <div class="description"> <p>A helper method used by _getClasses and _getAttrCfgs, which determines both the array of classes and aggregate set of attribute configurations across the class hierarchy for the instance.</p> </div> </div> <div id="method__isLazyAttr" class="method item private inherited"> <h3 class="name"><code>_isLazyAttr</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>name</code> </li> </ul><span class="paren">)</span> </div> <span class="returns-inline"> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span> </span> <span class="flag private">private</span> <div class="meta"> <p>Inherited from <a href="../classes/AttributeCore.html#method__isLazyAttr">AttributeCore</a>: <a href="../files/attribute_js_AttributeCore.js.html#l347"><code>attribute&#x2F;js&#x2F;AttributeCore.js:347</code></a> </p> </div> <div class="description"> <p>Checks whether or not the attribute is one which has been added lazily and still requires initialization.</p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">name</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description"> <p>The name of the attribute</p> </div> </li> </ul> </div> <div class="returns"> <h4>Returns:</h4> <div class="returns-description"> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>: <p>true if it&#39;s a lazily added attribute, false otherwise.</p> </div> </div> </div> <div id="method__mergeStyles" class="method item protected inherited"> <h3 class="name"><code>_mergeStyles</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>a</code> </li> <li class="arg"> <code>b</code> </li> </ul><span class="paren">)</span> </div> <span class="returns-inline"> <span class="type"></span> </span> <span class="flag protected">protected</span> <div class="meta"> <p>Inherited from <a href="../classes/Renderer.html#method__mergeStyles">Renderer</a>: <a href="../files/charts_js_Renderer.js.html#l82"><code>charts&#x2F;js&#x2F;Renderer.js:82</code></a> </p> </div> <div class="description"> <p>Merges to object literals so that only specified properties are overwritten.</p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">a</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span> <div class="param-description"> <p>Hash of new styles</p> </div> </li> <li class="param"> <code class="param-name">b</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span> <div class="param-description"> <p>Hash of original styles</p> </div> </li> </ul> </div> <div class="returns"> <h4>Returns:</h4> <div class="returns-description"> <p>Object</p> </div> </div> </div> <div id="method__monitor" class="method item private inherited"> <h3 class="name"><code>_monitor</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>what</code> </li> <li class="arg"> <code>eventType</code> </li> <li class="arg"> <code>o</code> </li> </ul><span class="paren">)</span> </div> <span class="flag private">private</span> <div class="meta"> <p>Inherited from <a href="../classes/EventTarget.html#method__monitor">EventTarget</a>: <a href="../files/event-custom_js_event-target.js.html#l636"><code>event-custom&#x2F;js&#x2F;event-target.js:636</code></a> </p> </div> <div class="description"> <p>This is the entry point for the event monitoring system. You can monitor &#39;attach&#39;, &#39;detach&#39;, &#39;fire&#39;, and &#39;publish&#39;. When configured, these events generate an event. click -&gt; click_attach, click_detach, click_publish -- these can be subscribed to like other events to monitor the event system. Inividual published events can have monitoring turned on or off (publish can&#39;t be turned off before it it published) by setting the events &#39;monitor&#39; config.</p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">what</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description"> <p>&#39;attach&#39;, &#39;detach&#39;, &#39;fire&#39;, or &#39;publish&#39;</p> </div> </li> <li class="param"> <code class="param-name">eventType</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a> | <a href="../classes/CustomEvent.html" class="crosslink">CustomEvent</a></span> <div class="param-description"> <p>The prefixed name of the event being monitored, or the CustomEvent object.</p> </div> </li> <li class="param"> <code class="param-name">o</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span> <div class="param-description"> <p>Information about the event interaction, such as fire() args, subscription category, publish config</p> </div> </li> </ul> </div> </div> <div id="method__normAttrVals" class="method item private inherited"> <h3 class="name"><code>_normAttrVals</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>valueHash</code> </li> </ul><span class="paren">)</span> </div> <span class="returns-inline"> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span> </span> <span class="flag private">private</span> <div class="meta"> <p>Inherited from <a href="../classes/AttributeCore.html#method__normAttrVals">AttributeCore</a>: <a href="../files/attribute_js_AttributeCore.js.html#l915"><code>attribute&#x2F;js&#x2F;AttributeCore.js:915</code></a> </p> </div> <div class="description"> <p>Utility method to normalize attribute values. The base implementation simply merges the hash to protect the original.</p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">valueHash</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span> <div class="param-description"> <p>An object with attribute name/value pairs</p> </div> </li> </ul> </div> <div class="returns"> <h4>Returns:</h4> <div class="returns-description"> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span>: <p>An object literal with 2 properties - &quot;simple&quot; and &quot;complex&quot;, containing simple and complex attribute values respectively keyed by the top level attribute name, or null, if valueHash is falsey.</p> </div> </div> </div> <div id="method__parseType" class="method item private inherited"> <h3 class="name"><code>_parseType</code></h3> <span class="paren">()</span> <span class="flag private">private</span> <div class="meta"> <p>Inherited from <a href="../classes/EventTarget.html#method__parseType">EventTarget</a>: <a href="../files/event-custom_js_event-target.js.html#l52"><code>event-custom&#x2F;js&#x2F;event-target.js:52</code></a> </p> </div> <div class="description"> <p>Returns an array with the detach key (if provided), and the prefixed event name from _getType Y.on(&#39;detachcategory| menu:click&#39;, fn)</p> </div> </div> <div id="method__preInitEventCfg" class="method item private inherited"> <h3 class="name"><code>_preInitEventCfg</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>config</code> </li> </ul><span class="paren">)</span> </div> <span class="flag private">private</span> <div class="meta"> <p>Inherited from <a href="../classes/BaseObservable.html#method__preInitEventCfg">BaseObservable</a>: <a href="../files/base_js_BaseObservable.js.html#l110"><code>base&#x2F;js&#x2F;BaseObservable.js:110</code></a> </p> </div> <div class="description"> <p>Handles the special on, after and target properties which allow the user to easily configure on and after listeners as well as bubble targets during construction, prior to init.</p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">config</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span> <div class="param-description"> <p>The user configuration object</p> </div> </li> </ul> </div> </div> <div id="method__protectAttrs" class="method item protected deprecated inherited"> <h3 class="name"><code>_protectAttrs</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>attrs</code> </li> </ul><span class="paren">)</span> </div> <span class="returns-inline"> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span> </span> <span class="flag deprecated" title="Use &#x60;AttributeCore.protectAttrs()&#x60; or &#x60;Attribute.protectAttrs()&#x60; which are the same static utility method.">deprecated</span> <span class="flag protected">protected</span> <div class="meta"> <p>Inherited from <a href="../classes/AttributeCore.html#method__protectAttrs">AttributeCore</a>: <a href="../files/attribute_js_AttributeCore.js.html#l901"><code>attribute&#x2F;js&#x2F;AttributeCore.js:901</code></a> </p> <p>Deprecated: Use &#x60;AttributeCore.protectAttrs()&#x60; or &#x60;Attribute.protectAttrs()&#x60; which are the same static utility method.</p> </div> <div class="description"> <p>Utility method to protect an attribute configuration hash, by merging the entire object and the individual attr config objects.</p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">attrs</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span> <div class="param-description"> <p>A hash of attribute to configuration object pairs.</p> </div> </li> </ul> </div> <div class="returns"> <h4>Returns:</h4> <div class="returns-description"> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span>: <p>A protected version of the attrs argument.</p> </div> </div> </div> <div id="method__publish" class="method item private inherited"> <h3 class="name"><code>_publish</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>fullType</code> </li> <li class="arg"> <code>etOpts</code> </li> <li class="arg"> <code>ceOpts</code> </li> </ul><span class="paren">)</span> </div> <span class="returns-inline"> <span class="type"><a href="../classes/CustomEvent.html" class="crosslink">CustomEvent</a></span> </span> <span class="flag private">private</span> <div class="meta"> <p>Inherited from <a href="../classes/EventTarget.html#method__publish">EventTarget</a>: <a href="../files/event-custom_js_event-target.js.html#l588"><code>event-custom&#x2F;js&#x2F;event-target.js:588</code></a> </p> </div> <div class="description"> <p>The low level event publish implementation. It expects all the massaging to have been done outside of this method. e.g. the <code>type</code> to <code>fullType</code> conversion. It&#39;s designed to be a fast path publish, which can be used by critical code paths to improve performance.</p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">fullType</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description"> <p>The prefixed type of the event to publish.</p> </div> </li> <li class="param"> <code class="param-name">etOpts</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span> <div class="param-description"> <p>The EventTarget specific configuration to mix into the published event.</p> </div> </li> <li class="param"> <code class="param-name">ceOpts</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span> <div class="param-description"> <p>The publish specific configuration to mix into the published event.</p> </div> </li> </ul> </div> <div class="returns"> <h4>Returns:</h4> <div class="returns-description"> <span class="type"><a href="../classes/CustomEvent.html" class="crosslink">CustomEvent</a></span>: <p>The published event. If called without <code>etOpts</code> or <code>ceOpts</code>, this will be the default <code>CustomEvent</code> instance, and can be configured independently.</p> </div> </div> </div> <div id="method__set" class="method item protected inherited"> <h3 class="name"><code>_set</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>name</code> </li> <li class="arg"> <code>val</code> </li> <li class="arg"> <code class="optional">[opts]</code> </li> </ul><span class="paren">)</span> </div> <span class="returns-inline"> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span> </span> <span class="flag protected">protected</span> <span class="flag chainable">chainable</span> <div class="meta"> <p>Inherited from <a href="../classes/AttributeObservable.html#method__set"> AttributeObservable </a> but overwritten in <a href="../files/attribute_js_AttributeCore.js.html#l405"><code>attribute&#x2F;js&#x2F;AttributeCore.js:405</code></a> </p> </div> <div class="description"> <p>Allows setting of readOnly/writeOnce attributes. See <a href="#method_set">set</a> for argument details.</p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">name</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description"> <p>The name of the attribute.</p> </div> </li> <li class="param"> <code class="param-name">val</code> <span class="type">Any</span> <div class="param-description"> <p>The value to set the attribute to.</p> </div> </li> <li class="param"> <code class="param-name optional">[opts]</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span> <span class="flag optional" title="This parameter is optional.">optional</span> <div class="param-description"> <p>Optional data providing the circumstances for the change.</p> </div> </li> </ul> </div> <div class="returns"> <h4>Returns:</h4> <div class="returns-description"> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span>: <p>A reference to the host object.</p> </div> </div> </div> <div id="method__setAttr" class="method item protected inherited"> <h3 class="name"><code>_setAttr</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>name</code> </li> <li class="arg"> <code>value</code> </li> <li class="arg"> <code class="optional">[opts]</code> </li> <li class="arg"> <code>force</code> </li> </ul><span class="paren">)</span> </div> <span class="returns-inline"> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span> </span> <span class="flag protected">protected</span> <span class="flag chainable">chainable</span> <div class="meta"> <p>Inherited from <a href="../classes/AttributeCore.html#method__setAttr">AttributeCore</a>: <a href="../files/attribute_js_AttributeCore.js.html#l421"><code>attribute&#x2F;js&#x2F;AttributeCore.js:421</code></a> </p> </div> <div class="description"> <p>Provides the common implementation for the public set and protected _set methods.</p> <p>See <a href="#method_set">set</a> for argument details.</p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">name</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description"> <p>The name of the attribute.</p> </div> </li> <li class="param"> <code class="param-name">value</code> <span class="type">Any</span> <div class="param-description"> <p>The value to set the attribute to.</p> </div> </li> <li class="param"> <code class="param-name optional">[opts]</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span> <span class="flag optional" title="This parameter is optional.">optional</span> <div class="param-description"> <p>Optional data providing the circumstances for the change.</p> </div> </li> <li class="param"> <code class="param-name">force</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span> <div class="param-description"> <p>If true, allows the caller to set values for readOnly or writeOnce attributes which have already been set.</p> </div> </li> </ul> </div> <div class="returns"> <h4>Returns:</h4> <div class="returns-description"> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span>: <p>A reference to the host object.</p> </div> </div> </div> <div id="method__setAttrs" class="method item protected inherited"> <h3 class="name"><code>_setAttrs</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>attrs</code> </li> <li class="arg"> <code class="optional">[opts]</code> </li> </ul><span class="paren">)</span> </div> <span class="returns-inline"> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span> </span> <span class="flag protected">protected</span> <span class="flag chainable">chainable</span> <div class="meta"> <p>Inherited from <a href="../classes/AttributeObservable.html#method__setAttrs"> AttributeObservable </a> but overwritten in <a href="../files/attribute_js_AttributeCore.js.html#l760"><code>attribute&#x2F;js&#x2F;AttributeCore.js:760</code></a> </p> </div> <div class="description"> <p>Implementation behind the public setAttrs method, to set multiple attribute values.</p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">attrs</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span> <div class="param-description"> <p>An object with attributes name/value pairs.</p> </div> </li> <li class="param"> <code class="param-name optional">[opts]</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span> <span class="flag optional" title="This parameter is optional.">optional</span> <div class="param-description"> <p>Optional data providing the circumstances for the change</p> </div> </li> </ul> </div> <div class="returns"> <h4>Returns:</h4> <div class="returns-description"> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span>: <p>A reference to the host object.</p> </div> </div> </div> <div id="method__setAttrVal" class="method item private inherited"> <h3 class="name"><code>_setAttrVal</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>attrName</code> </li> <li class="arg"> <code>subAttrName</code> </li> <li class="arg"> <code>prevVal</code> </li> <li class="arg"> <code>newVal</code> </li> <li class="arg"> <code class="optional">[opts]</code> </li> <li class="arg"> <code class="optional">[attrCfg]</code> </li> </ul><span class="paren">)</span> </div> <span class="returns-inline"> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span> </span> <span class="flag private">private</span> <div class="meta"> <p>Inherited from <a href="../classes/AttributeCore.html#method__setAttrVal">AttributeCore</a>: <a href="../files/attribute_js_AttributeCore.js.html#l658"><code>attribute&#x2F;js&#x2F;AttributeCore.js:658</code></a> </p> </div> <div class="description"> <p>Updates the stored value of the attribute in the privately held State object, if validation and setter passes.</p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">attrName</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description"> <p>The attribute name.</p> </div> </li> <li class="param"> <code class="param-name">subAttrName</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description"> <p>The sub-attribute name, if setting a sub-attribute property (&quot;x.y.z&quot;).</p> </div> </li> <li class="param"> <code class="param-name">prevVal</code> <span class="type">Any</span> <div class="param-description"> <p>The currently stored value of the attribute.</p> </div> </li> <li class="param"> <code class="param-name">newVal</code> <span class="type">Any</span> <div class="param-description"> <p>The value which is going to be stored.</p> </div> </li> <li class="param"> <code class="param-name optional">[opts]</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span> <span class="flag optional" title="This parameter is optional.">optional</span> <div class="param-description"> <p>Optional data providing the circumstances for the change.</p> </div> </li> <li class="param"> <code class="param-name optional">[attrCfg]</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span> <span class="flag optional" title="This parameter is optional.">optional</span> <div class="param-description"> <p>Optional config hash for the attribute. This is added for performance along the critical path, where the calling method has already obtained the config from state.</p> </div> </li> </ul> </div> <div class="returns"> <h4>Returns:</h4> <div class="returns-description"> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>: <p>true if the new attribute value was stored, false if not.</p> </div> </div> </div> <div id="method__setCanvas" class="method item protected inherited"> <h3 class="name"><code>_setCanvas</code></h3> <span class="paren">()</span> <span class="flag protected">protected</span> <div class="meta"> <p>Inherited from <a href="../classes/SeriesBase.html#method__setCanvas">SeriesBase</a>: <a href="../files/charts_js_SeriesBase.js.html#l35"><code>charts&#x2F;js&#x2F;SeriesBase.js:35</code></a> </p> </div> <div class="description"> <p>Creates a <code>Graphic</code> instance.</p> </div> </div> <div id="method__setStateVal" class="method item private inherited"> <h3 class="name"><code>_setStateVal</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>name</code> </li> <li class="arg"> <code>value</code> </li> </ul><span class="paren">)</span> </div> <span class="flag private">private</span> <div class="meta"> <p>Inherited from <a href="../classes/AttributeCore.html#method__setStateVal">AttributeCore</a>: <a href="../files/attribute_js_AttributeCore.js.html#l640"><code>attribute&#x2F;js&#x2F;AttributeCore.js:640</code></a> </p> </div> <div class="description"> <p>Sets the stored value for the attribute, in either the internal state object, or the state proxy if it exits</p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">name</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description"> <p>The name of the attribute</p> </div> </li> <li class="param"> <code class="param-name">value</code> <span class="type">Any</span> <div class="param-description"> <p>The value of the attribute</p> </div> </li> </ul> </div> </div> <div id="method__setStyles" class="method item protected"> <h3 class="name"><code>_setStyles</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>newStyles</code> </li> </ul><span class="paren">)</span> </div> <span class="returns-inline"> <span class="type"></span> </span> <span class="flag protected">protected</span> <div class="meta"> <p>Inherited from <a href="../classes/Renderer.html#method__setStyles"> Renderer </a> but overwritten in <a href="../files/charts_js_LineSeries.js.html#l28"><code>charts&#x2F;js&#x2F;LineSeries.js:28</code></a> </p> </div> <div class="description"> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">newStyles</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span> <div class="param-description"> <p>Hash of properties to update.</p> </div> </li> </ul> </div> <div class="returns"> <h4>Returns:</h4> <div class="returns-description"> <p>Object</p> </div> </div> </div> <div id="method__setXMarkerPlane" class="method item private inherited"> <h3 class="name"><code>_setXMarkerPlane</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>coords</code> </li> <li class="arg"> <code>dataLength</code> </li> </ul><span class="paren">)</span> </div> <span class="flag private">private</span> <div class="meta"> <p>Inherited from <a href="../classes/CartesianSeries.html#method__setXMarkerPlane">CartesianSeries</a>: <a href="../files/charts_js_CartesianSeries.js.html#l395"><code>charts&#x2F;js&#x2F;CartesianSeries.js:395</code></a> </p> </div> <div class="description"> <p>Sets the marker plane for the series when the coords argument is an array. If the coords argument is an object literal no marker plane is set.</p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">coords</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array" class="crosslink external" target="_blank">Array</a> | <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span> <div class="param-description"> <p>An array of x coordinates or an object literal containing key value pairs mapped to an array of coordinates.</p> </div> </li> <li class="param"> <code class="param-name">dataLength</code> <span class="type"><a href="../classes/Number.html" class="crosslink">Number</a></span> <div class="param-description"> <p>The length of data for the series.</p> </div> </li> </ul> </div> </div> <div id="method__setYMarkerPlane" class="method item private inherited"> <h3 class="name"><code>_setYMarkerPlane</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>coords</code> </li> <li class="arg"> <code>dataLength</code> </li> </ul><span class="paren">)</span> </div> <span class="flag private">private</span> <div class="meta"> <p>Inherited from <a href="../classes/CartesianSeries.html#method__setYMarkerPlane">CartesianSeries</a>: <a href="../files/charts_js_CartesianSeries.js.html#l422"><code>charts&#x2F;js&#x2F;CartesianSeries.js:422</code></a> </p> </div> <div class="description"> <p>Sets the marker plane for the series when the coords argument is an array. If the coords argument is an object literal no marker plane is set.</p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">coords</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array" class="crosslink external" target="_blank">Array</a> | <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span> <div class="param-description"> <p>An array of y coordinates or an object literal containing key value pairs mapped to an array of coordinates.</p> </div> </li> <li class="param"> <code class="param-name">dataLength</code> <span class="type"><a href="../classes/Number.html" class="crosslink">Number</a></span> <div class="param-description"> <p>The length of data for the series.</p> </div> </li> </ul> </div> </div> <div id="method__toggleVisible" class="method item private inherited"> <h3 class="name"><code>_toggleVisible</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>visible</code> </li> </ul><span class="paren">)</span> </div> <span class="flag private">private</span> <div class="meta"> <p>Inherited from <a href="../classes/Lines.html#method__toggleVisible">Lines</a>: <a href="../files/charts_js_Lines.js.html#l43"><code>charts&#x2F;js&#x2F;Lines.js:43</code></a> </p> </div> <div class="description"> <p>Toggles visibility</p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">visible</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span> <div class="param-description"> <p>indicates visibilitye</p> </div> </li> </ul> </div> </div> <div id="method__updateAxisBase" class="method item private inherited"> <h3 class="name"><code>_updateAxisBase</code></h3> <span class="paren">()</span> <span class="returns-inline"> <span class="type"></span> </span> <span class="flag private">private</span> <div class="meta"> <p>Inherited from <a href="../classes/CartesianSeries.html#method__updateAxisBase">CartesianSeries</a>: <a href="../files/charts_js_CartesianSeries.js.html#l181"><code>charts&#x2F;js&#x2F;CartesianSeries.js:181</code></a> </p> </div> <div class="description"> <p>Checks to ensure that both xAxis and yAxis data are available. If so, set the <code>xData</code> and <code>yData</code> attributes and return <code>true</code>. Otherwise, return <code>false</code>.</p> </div> <div class="returns"> <h4>Returns:</h4> <div class="returns-description"> <p>Boolean</p> </div> </div> </div> <div id="method__xAxisChangeHandler" class="method item private inherited"> <h3 class="name"><code>_xAxisChangeHandler</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>e</code> </li> </ul><span class="paren">)</span> </div> <span class="flag private">private</span> <div class="meta"> <p>Inherited from <a href="../classes/CartesianSeries.html#method__xAxisChangeHandler">CartesianSeries</a>: <a href="../files/charts_js_CartesianSeries.js.html#l112"><code>charts&#x2F;js&#x2F;CartesianSeries.js:112</code></a> </p> </div> <div class="description"> <p>Event handler for the xAxisChange event.</p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">e</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span> <div class="param-description"> <p>Event object.</p> </div> </li> </ul> </div> </div> <div id="method__xDataChangeHandler" class="method item private inherited"> <h3 class="name"><code>_xDataChangeHandler</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>event</code> </li> </ul><span class="paren">)</span> </div> <span class="flag private">private</span> <div class="meta"> <p>Inherited from <a href="../classes/CartesianSeries.html#method__xDataChangeHandler">CartesianSeries</a>: <a href="../files/charts_js_CartesianSeries.js.html#l149"><code>charts&#x2F;js&#x2F;CartesianSeries.js:149</code></a> </p> </div> <div class="description"> <p>Event handler for xDataChange event.</p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">event</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span> <div class="param-description"> <p>Event object.</p> </div> </li> </ul> </div> </div> <div id="method__yAxisChangeHandler" class="method item private inherited"> <h3 class="name"><code>_yAxisChangeHandler</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>e</code> </li> </ul><span class="paren">)</span> </div> <span class="flag private">private</span> <div class="meta"> <p>Inherited from <a href="../classes/CartesianSeries.html#method__yAxisChangeHandler">CartesianSeries</a>: <a href="../files/charts_js_CartesianSeries.js.html#l126"><code>charts&#x2F;js&#x2F;CartesianSeries.js:126</code></a> </p> </div> <div class="description"> <p>Event handler the yAxisChange event.</p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">e</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span> <div class="param-description"> <p>Event object.</p> </div> </li> </ul> </div> </div> <div id="method__yDataChangeHandler" class="method item private inherited"> <h3 class="name"><code>_yDataChangeHandler</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>event</code> </li> </ul><span class="paren">)</span> </div> <span class="flag private">private</span> <div class="meta"> <p>Inherited from <a href="../classes/CartesianSeries.html#method__yDataChangeHandler">CartesianSeries</a>: <a href="../files/charts_js_CartesianSeries.js.html#l165"><code>charts&#x2F;js&#x2F;CartesianSeries.js:165</code></a> </p> </div> <div class="description"> <p>Event handler for yDataChange event.</p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">event</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span> <div class="param-description"> <p>Event object.</p> </div> </li> </ul> </div> </div> <div id="method_addAttr" class="method item inherited"> <h3 class="name"><code>addAttr</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>name</code> </li> <li class="arg"> <code>config</code> </li> <li class="arg"> <code>lazy</code> </li> </ul><span class="paren">)</span> </div> <span class="returns-inline"> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span> </span> <span class="flag chainable">chainable</span> <div class="meta"> <p>Inherited from <a href="../classes/AttributeCore.html#method_addAttr">AttributeCore</a>: <a href="../files/attribute_js_AttributeCore.js.html#l157"><code>attribute&#x2F;js&#x2F;AttributeCore.js:157</code></a> </p> </div> <div class="description"> <p> Adds an attribute with the provided configuration to the host object. </p> <p> The config argument object supports the following properties: </p> <dl> <dt>value &#60;Any&#62;</dt> <dd>The initial value to set on the attribute</dd> <dt>valueFn &#60;Function | String&#62;</dt> <dd> <p>A function, which will return the initial value to set on the attribute. This is useful for cases where the attribute configuration is defined statically, but needs to reference the host instance (&quot;this&quot;) to obtain an initial value. If both the value and valueFn properties are defined, the value returned by the valueFn has precedence over the value property, unless it returns undefined, in which case the value property is used.</p> <p>valueFn can also be set to a string, representing the name of the instance method to be used to retrieve the value.</p> </dd> <dt>readOnly &#60;boolean&#62;</dt> <dd>Whether or not the attribute is read only. Attributes having readOnly set to true cannot be modified by invoking the set method.</dd> <dt>writeOnce &#60;boolean&#62; or &#60;string&#62;</dt> <dd> Whether or not the attribute is &quot;write once&quot;. Attributes having writeOnce set to true, can only have their values set once, be it through the default configuration, constructor configuration arguments, or by invoking set. <p>The writeOnce attribute can also be set to the string &quot;initOnly&quot;, in which case the attribute can only be set during initialization (when used with Base, this means it can only be set during construction)</p> </dd> <dt>setter &#60;Function | String&#62;</dt> <dd> <p>The setter function used to massage or normalize the value passed to the set method for the attribute. The value returned by the setter will be the final stored value. Returning <a href="#property_Attribute.INVALID_VALUE">Attribute.INVALID_VALUE</a>, from the setter will prevent the value from being stored. </p> <p>setter can also be set to a string, representing the name of the instance method to be used as the setter function.</p> </dd> <dt>getter &#60;Function | String&#62;</dt> <dd> <p> The getter function used to massage or normalize the value returned by the get method for the attribute. The value returned by the getter function is the value which will be returned to the user when they invoke get. </p> <p>getter can also be set to a string, representing the name of the instance method to be used as the getter function.</p> </dd> <dt>validator &#60;Function | String&#62;</dt> <dd> <p> The validator function invoked prior to setting the stored value. Returning false from the validator function will prevent the value from being stored. </p> <p>validator can also be set to a string, representing the name of the instance method to be used as the validator function.</p> </dd> <dt>lazyAdd &#60;boolean&#62;</dt> <dd>Whether or not to delay initialization of the attribute until the first call to get/set it. This flag can be used to over-ride lazy initialization on a per attribute basis, when adding multiple attributes through the <a href="#method_addAttrs">addAttrs</a> method.</dd> </dl> <p>The setter, getter and validator are invoked with the value and name passed in as the first and second arguments, and with the context (&quot;this&quot;) set to the host object.</p> <p>Configuration properties outside of the list mentioned above are considered private properties used internally by attribute, and are not intended for public use.</p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">name</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description"> <p>The name of the attribute.</p> </div> </li> <li class="param"> <code class="param-name">config</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span> <div class="param-description"> <p>An object with attribute configuration property/value pairs, specifying the configuration for the attribute.</p> <p> <strong>NOTE:</strong> The configuration object is modified when adding an attribute, so if you need to protect the original values, you will need to merge the object. </p> </div> </li> <li class="param"> <code class="param-name">lazy</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span> <div class="param-description"> <p>(optional) Whether or not to add this attribute lazily (on the first call to get/set).</p> </div> </li> </ul> </div> <div class="returns"> <h4>Returns:</h4> <div class="returns-description"> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span>: <p>A reference to the host object.</p> </div> </div> </div> <div id="method_addAttrs" class="method item inherited"> <h3 class="name"><code>addAttrs</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>cfgs</code> </li> <li class="arg"> <code>values</code> </li> <li class="arg"> <code>lazy</code> </li> </ul><span class="paren">)</span> </div> <span class="returns-inline"> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span> </span> <span class="flag chainable">chainable</span> <div class="meta"> <p>Inherited from <a href="../classes/AttributeCore.html#method_addAttrs">AttributeCore</a>: <a href="../files/attribute_js_AttributeCore.js.html#l823"><code>attribute&#x2F;js&#x2F;AttributeCore.js:823</code></a> </p> </div> <div class="description"> <p>Configures a group of attributes, and sets initial values.</p> <p> <strong>NOTE:</strong> This method does not isolate the configuration object by merging/cloning. The caller is responsible for merging/cloning the configuration object if required. </p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">cfgs</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span> <div class="param-description"> <p>An object with attribute name/configuration pairs.</p> </div> </li> <li class="param"> <code class="param-name">values</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span> <div class="param-description"> <p>An object with attribute name/value pairs, defining the initial values to apply. Values defined in the cfgs argument will be over-written by values in this argument unless defined as read only.</p> </div> </li> <li class="param"> <code class="param-name">lazy</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span> <div class="param-description"> <p>Whether or not to delay the intialization of these attributes until the first call to get/set. Individual attributes can over-ride this behavior by defining a lazyAdd configuration property in their configuration. See <a href="#method_addAttr">addAttr</a>.</p> </div> </li> </ul> </div> <div class="returns"> <h4>Returns:</h4> <div class="returns-description"> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span>: <p>A reference to the host object.</p> </div> </div> </div> <div id="method_addListeners" class="method item private inherited"> <h3 class="name"><code>addListeners</code></h3> <span class="paren">()</span> <span class="flag private">private</span> <div class="meta"> <p>Inherited from <a href="../classes/CartesianSeries.html#method_addListeners">CartesianSeries</a>: <a href="../files/charts_js_CartesianSeries.js.html#l66"><code>charts&#x2F;js&#x2F;CartesianSeries.js:66</code></a> </p> </div> <div class="description"> <p>Adds event listeners.</p> </div> </div> <div id="method_addTarget" class="method item inherited"> <h3 class="name"><code>addTarget</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>o</code> </li> </ul><span class="paren">)</span> </div> <span class="flag chainable">chainable</span> <div class="meta"> <p>Inherited from <a href="../classes/EventTarget.html#method_addTarget">EventTarget</a>: <a href="../files/event-custom_js_event-facade.js.html#l496"><code>event-custom&#x2F;js&#x2F;event-facade.js:496</code></a> </p> </div> <div class="description"> <p>Registers another EventTarget as a bubble target. Bubble order is determined by the order registered. Multiple targets can be specified.</p> <p>Events can only bubble if emitFacade is true.</p> <p>Included in the event-custom-complex submodule.</p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">o</code> <span class="type"><a href="../classes/EventTarget.html" class="crosslink">EventTarget</a></span> <div class="param-description"> <p>the target to add</p> </div> </li> </ul> </div> </div> <div id="method_after" class="method item inherited"> <h3 class="name"><code>after</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>type</code> </li> <li class="arg"> <code>fn</code> </li> <li class="arg"> <code class="optional">[context]</code> </li> <li class="arg"> <code class="optional">[arg*]</code> </li> </ul><span class="paren">)</span> </div> <span class="returns-inline"> <span class="type"><a href="../classes/EventHandle.html" class="crosslink">EventHandle</a></span> </span> <div class="meta"> <p>Inherited from <a href="../classes/EventTarget.html#method_after">EventTarget</a>: <a href="../files/event-custom_js_event-target.js.html#l812"><code>event-custom&#x2F;js&#x2F;event-target.js:812</code></a> </p> </div> <div class="description"> <p>Subscribe to a custom event hosted by this object. The supplied callback will execute after any listeners add via the subscribe method, and after the default function, if configured for the event, has executed.</p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">type</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description"> <p>The name of the event</p> </div> </li> <li class="param"> <code class="param-name">fn</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function" class="crosslink external" target="_blank">Function</a></span> <div class="param-description"> <p>The callback to execute in response to the event</p> </div> </li> <li class="param"> <code class="param-name optional">[context]</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span> <span class="flag optional" title="This parameter is optional.">optional</span> <div class="param-description"> <p>Override <code>this</code> object in callback</p> </div> </li> <li class="param"> <code class="param-name optional">[arg*]</code> <span class="type">Any</span> <span class="flag optional" title="This parameter is optional.">optional</span> <div class="param-description"> <p>0..n additional arguments to supply to the subscriber</p> </div> </li> </ul> </div> <div class="returns"> <h4>Returns:</h4> <div class="returns-description"> <span class="type"><a href="../classes/EventHandle.html" class="crosslink">EventHandle</a></span>: <p>A subscription handle capable of detaching the subscription</p> </div> </div> </div> <div id="method_attrAdded" class="method item inherited"> <h3 class="name"><code>attrAdded</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>name</code> </li> </ul><span class="paren">)</span> </div> <span class="returns-inline"> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span> </span> <div class="meta"> <p>Inherited from <a href="../classes/AttributeCore.html#method_attrAdded">AttributeCore</a>: <a href="../files/attribute_js_AttributeCore.js.html#l319"><code>attribute&#x2F;js&#x2F;AttributeCore.js:319</code></a> </p> </div> <div class="description"> <p>Checks if the given attribute has been added to the host</p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">name</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description"> <p>The name of the attribute to check.</p> </div> </li> </ul> </div> <div class="returns"> <h4>Returns:</h4> <div class="returns-description"> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>: <p>true if an attribute with the given name has been added, false if it hasn&#39;t. This method will return true for lazily added attributes.</p> </div> </div> </div> <div id="method_before" class="method item inherited"> <h3 class="name"><code>before</code></h3> <span class="paren">()</span> <span class="returns-inline"> <span class="type"></span> </span> <div class="meta"> <p>Inherited from <a href="../classes/EventTarget.html#method_before">EventTarget</a>: <a href="../files/event-custom_js_event-target.js.html#l849"><code>event-custom&#x2F;js&#x2F;event-target.js:849</code></a> </p> </div> <div class="description"> <p>Executes the callback before a DOM event, custom event or method. If the first argument is a function, it is assumed the target is a method. For DOM and custom events, this is an alias for Y.on.</p> <p>For DOM and custom events: type, callback, context, 0-n arguments</p> <p>For methods: callback, object (method host), methodName, context, 0-n arguments</p> </div> <div class="returns"> <h4>Returns:</h4> <div class="returns-description"> <p>detach handle</p> </div> </div> </div> <div id="method_bubble" class="method item inherited"> <h3 class="name"><code>bubble</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>evt</code> </li> </ul><span class="paren">)</span> </div> <span class="returns-inline"> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span> </span> <div class="meta"> <p>Inherited from <a href="../classes/EventTarget.html#method_bubble">EventTarget</a>: <a href="../files/event-custom_js_event-facade.js.html#l554"><code>event-custom&#x2F;js&#x2F;event-facade.js:554</code></a> </p> </div> <div class="description"> <p>Propagate an event. Requires the event-custom-complex module.</p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">evt</code> <span class="type"><a href="../classes/CustomEvent.html" class="crosslink">CustomEvent</a></span> <div class="param-description"> <p>the custom event to propagate</p> </div> </li> </ul> </div> <div class="returns"> <h4>Returns:</h4> <div class="returns-description"> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>: <p>the aggregated return value from Event.Custom.fire</p> </div> </div> </div> <div id="method_destroy" class="method item inherited"> <h3 class="name"><code>destroy</code></h3> <span class="paren">()</span> <span class="returns-inline"> <span class="type"><a href="../classes/BaseCore.html" class="crosslink">BaseCore</a></span> </span> <span class="flag chainable">chainable</span> <div class="meta"> <p>Inherited from <a href="../classes/BaseObservable.html#method_destroy"> BaseObservable </a> but overwritten in <a href="../files/base_js_BaseCore.js.html#l352"><code>base&#x2F;js&#x2F;BaseCore.js:352</code></a> </p> </div> <div class="description"> <p>Destroy lifecycle method. Invokes destructors for the class hierarchy.</p> </div> <div class="returns"> <h4>Returns:</h4> <div class="returns-description"> <span class="type"><a href="../classes/BaseCore.html" class="crosslink">BaseCore</a></span>: <p>A reference to this object</p> </div> </div> </div> <div id="method_destructor" class="method item protected inherited"> <h3 class="name"><code>destructor</code></h3> <span class="paren">()</span> <span class="flag protected">protected</span> <div class="meta"> <p>Inherited from <a href="../classes/SeriesBase.html#method_destructor"> SeriesBase </a> but overwritten in <a href="../files/charts_js_CartesianSeries.js.html#l546"><code>charts&#x2F;js&#x2F;CartesianSeries.js:546</code></a> </p> </div> <div class="description"> <p>Destructor implementation for the CartesianSeries class. Calls destroy on all Graphic instances.</p> </div> </div> <div id="method_detach" class="method item inherited"> <h3 class="name"><code>detach</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>type</code> </li> <li class="arg"> <code>fn</code> </li> <li class="arg"> <code>context</code> </li> </ul><span class="paren">)</span> </div> <span class="returns-inline"> <span class="type"><a href="../classes/EventTarget.html" class="crosslink">EventTarget</a></span> </span> <div class="meta"> <p>Inherited from <a href="../classes/EventTarget.html#method_detach">EventTarget</a>: <a href="../files/event-custom_js_event-target.js.html#l356"><code>event-custom&#x2F;js&#x2F;event-target.js:356</code></a> </p> </div> <div class="description"> <p>Detach one or more listeners the from the specified event</p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">type</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a> | <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span> <div class="param-description"> <p>Either the handle to the subscriber or the type of event. If the type is not specified, it will attempt to remove the listener from all hosted events.</p> </div> </li> <li class="param"> <code class="param-name">fn</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function" class="crosslink external" target="_blank">Function</a></span> <div class="param-description"> <p>The subscribed function to unsubscribe, if not supplied, all subscribers will be removed.</p> </div> </li> <li class="param"> <code class="param-name">context</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span> <div class="param-description"> <p>The custom object passed to subscribe. This is optional, but if supplied will be used to disambiguate multiple listeners that are the same (e.g., you subscribe many object using a function that lives on the prototype)</p> </div> </li> </ul> </div> <div class="returns"> <h4>Returns:</h4> <div class="returns-description"> <span class="type"><a href="../classes/EventTarget.html" class="crosslink">EventTarget</a></span>: <p>the host</p> </div> </div> </div> <div id="method_detachAll" class="method item inherited"> <h3 class="name"><code>detachAll</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>type</code> </li> </ul><span class="paren">)</span> </div> <div class="meta"> <p>Inherited from <a href="../classes/EventTarget.html#method_detachAll">EventTarget</a>: <a href="../files/event-custom_js_event-target.js.html#l479"><code>event-custom&#x2F;js&#x2F;event-target.js:479</code></a> </p> </div> <div class="description"> <p>Removes all listeners from the specified event. If the event type is not specified, all listeners from all hosted custom events will be removed.</p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">type</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description"> <p>The type, or name of the event</p> </div> </li> </ul> </div> </div> <div id="method_draw" class="method item protected inherited"> <h3 class="name"><code>draw</code></h3> <span class="paren">()</span> <span class="flag protected">protected</span> <div class="meta"> <p>Inherited from <a href="../classes/CartesianSeries.html#method_draw">CartesianSeries</a>: <a href="../files/charts_js_CartesianSeries.js.html#l491"><code>charts&#x2F;js&#x2F;CartesianSeries.js:491</code></a> </p> </div> <div class="description"> <p>Draws the series.</p> </div> </div> <div id="method_drawDashedLine" class="method item private inherited"> <h3 class="name"><code>drawDashedLine</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>xStart</code> </li> <li class="arg"> <code>yStart</code> </li> <li class="arg"> <code>xEnd</code> </li> <li class="arg"> <code>yEnd</code> </li> <li class="arg"> <code>dashSize</code> </li> <li class="arg"> <code>gapSize</code> </li> </ul><span class="paren">)</span> </div> <span class="flag private">private</span> <div class="meta"> <p>Inherited from <a href="../classes/Lines.html#method_drawDashedLine">Lines</a>: <a href="../files/charts_js_Lines.js.html#l208"><code>charts&#x2F;js&#x2F;Lines.js:208</code></a> </p> </div> <div class="description"> <p>Draws a dashed line between two points.</p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">xStart</code> <span class="type"><a href="../classes/Number.html" class="crosslink">Number</a></span> <div class="param-description"> <p>The x position of the start of the line</p> </div> </li> <li class="param"> <code class="param-name">yStart</code> <span class="type"><a href="../classes/Number.html" class="crosslink">Number</a></span> <div class="param-description"> <p>The y position of the start of the line</p> </div> </li> <li class="param"> <code class="param-name">xEnd</code> <span class="type"><a href="../classes/Number.html" class="crosslink">Number</a></span> <div class="param-description"> <p>The x position of the end of the line</p> </div> </li> <li class="param"> <code class="param-name">yEnd</code> <span class="type"><a href="../classes/Number.html" class="crosslink">Number</a></span> <div class="param-description"> <p>The y position of the end of the line</p> </div> </li> <li class="param"> <code class="param-name">dashSize</code> <span class="type"><a href="../classes/Number.html" class="crosslink">Number</a></span> <div class="param-description"> <p>the size of dashes, in pixels</p> </div> </li> <li class="param"> <code class="param-name">gapSize</code> <span class="type"><a href="../classes/Number.html" class="crosslink">Number</a></span> <div class="param-description"> <p>the size of gaps between dashes, in pixels</p> </div> </li> </ul> </div> </div> <div id="method_drawLines" class="method item protected inherited"> <h3 class="name"><code>drawLines</code></h3> <span class="paren">()</span> <span class="flag protected">protected</span> <div class="meta"> <p>Inherited from <a href="../classes/Lines.html#method_drawLines">Lines</a>: <a href="../files/charts_js_Lines.js.html#l58"><code>charts&#x2F;js&#x2F;Lines.js:58</code></a> </p> </div> <div class="description"> <p>Draws lines for the series.</p> </div> </div> <div id="method_drawSeries" class="method item protected"> <h3 class="name"><code>drawSeries</code></h3> <span class="paren">()</span> <span class="flag protected">protected</span> <div class="meta"> <p> Defined in <a href="../files/charts_js_LineSeries.js.html#l18"><code>charts&#x2F;js&#x2F;LineSeries.js:18</code></a> </p> </div> <div class="description"> </div> </div> <div id="method_drawSpline" class="method item protected inherited"> <h3 class="name"><code>drawSpline</code></h3> <span class="paren">()</span> <span class="flag protected">protected</span> <div class="meta"> <p>Inherited from <a href="../classes/Lines.html#method_drawSpline">Lines</a>: <a href="../files/charts_js_Lines.js.html#l162"><code>charts&#x2F;js&#x2F;Lines.js:162</code></a> </p> </div> <div class="description"> <p>Connects data points with a consistent curve for a series.</p> </div> </div> <div id="method_fire" class="method item inherited"> <h3 class="name"><code>fire</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>type</code> </li> <li class="arg"> <code>arguments</code> </li> </ul><span class="paren">)</span> </div> <span class="returns-inline"> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span> </span> <div class="meta"> <p>Inherited from <a href="../classes/EventTarget.html#method_fire">EventTarget</a>: <a href="../files/event-custom_js_event-target.js.html#l673"><code>event-custom&#x2F;js&#x2F;event-target.js:673</code></a> </p> </div> <div class="description"> <p>Fire a custom event by name. The callback functions will be executed from the context specified when the event was created, and with the following parameters.</p> <p>The first argument is the event type, and any additional arguments are passed to the listeners as parameters. If the first of these is an object literal, and the event is configured to emit an event facade, that object is mixed into the event facade and the facade is provided in place of the original object.</p> <p>If the custom event object hasn&#39;t been created, then the event hasn&#39;t been published and it has no subscribers. For performance sake, we immediate exit in this case. This means the event won&#39;t bubble, so if the intention is that a bubble target be notified, the event must be published on this object first.</p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">type</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a> | <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span> <div class="param-description"> <p>The type of the event, or an object that contains a &#39;type&#39; property.</p> </div> </li> <li class="param"> <code class="param-name">arguments</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object*</a></span> <div class="param-description"> <p>an arbitrary set of parameters to pass to the handler. If the first of these is an object literal and the event is configured to emit an event facade, the event facade will replace that parameter after the properties the object literal contains are copied to the event facade.</p> </div> </li> </ul> </div> <div class="returns"> <h4>Returns:</h4> <div class="returns-description"> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>: <p>True if the whole lifecycle of the event went through, false if at any point the event propagation was halted.</p> </div> </div> </div> <div id="method_get" class="method item inherited"> <h3 class="name"><code>get</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>name</code> </li> </ul><span class="paren">)</span> </div> <span class="returns-inline"> <span class="type">Any</span> </span> <div class="meta"> <p>Inherited from <a href="../classes/AttributeCore.html#method_get">AttributeCore</a>: <a href="../files/attribute_js_AttributeCore.js.html#l331"><code>attribute&#x2F;js&#x2F;AttributeCore.js:331</code></a> </p> </div> <div class="description"> <p>Returns the current value of the attribute. If the attribute has been configured with a &#39;getter&#39; function, this method will delegate to the &#39;getter&#39; to obtain the value of the attribute.</p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">name</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description"> <p>The name of the attribute. If the value of the attribute is an Object, dot notation can be used to obtain the value of a property of the object (e.g. <code>get(&quot;x.y.z&quot;)</code>)</p> </div> </li> </ul> </div> <div class="returns"> <h4>Returns:</h4> <div class="returns-description"> <span class="type">Any</span>: <p>The value of the attribute</p> </div> </div> </div> <div id="method_getAttrs" class="method item inherited"> <h3 class="name"><code>getAttrs</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>attrs</code> </li> </ul><span class="paren">)</span> </div> <span class="returns-inline"> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span> </span> <div class="meta"> <p>Inherited from <a href="../classes/AttributeCore.html#method_getAttrs">AttributeCore</a>: <a href="../files/attribute_js_AttributeCore.js.html#l780"><code>attribute&#x2F;js&#x2F;AttributeCore.js:780</code></a> </p> </div> <div class="description"> <p>Gets multiple attribute values.</p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">attrs</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String[]</a> | <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span> <div class="param-description"> <p>Optional. An array of attribute names. If omitted, all attribute values are returned. If set to true, all attributes modified from their initial values are returned.</p> </div> </li> </ul> </div> <div class="returns"> <h4>Returns:</h4> <div class="returns-description"> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span>: <p>An object with attribute name/value pairs.</p> </div> </div> </div> <div id="method_getEvent" class="method item inherited"> <h3 class="name"><code>getEvent</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>type</code> </li> <li class="arg"> <code>prefixed</code> </li> </ul><span class="paren">)</span> </div> <span class="returns-inline"> <span class="type"><a href="../classes/CustomEvent.html" class="crosslink">CustomEvent</a></span> </span> <div class="meta"> <p>Inherited from <a href="../classes/EventTarget.html#method_getEvent">EventTarget</a>: <a href="../files/event-custom_js_event-target.js.html#l793"><code>event-custom&#x2F;js&#x2F;event-target.js:793</code></a> </p> </div> <div class="description"> <p>Returns the custom event of the provided type has been created, a falsy value otherwise</p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">type</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description"> <p>the type, or name of the event</p> </div> </li> <li class="param"> <code class="param-name">prefixed</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description"> <p>if true, the type is prefixed already</p> </div> </li> </ul> </div> <div class="returns"> <h4>Returns:</h4> <div class="returns-description"> <span class="type"><a href="../classes/CustomEvent.html" class="crosslink">CustomEvent</a></span>: <p>the custom event or null</p> </div> </div> </div> <div id="method_getTargets" class="method item inherited"> <h3 class="name"><code>getTargets</code></h3> <span class="paren">()</span> <span class="returns-inline"> <span class="type"></span> </span> <div class="meta"> <p>Inherited from <a href="../classes/EventTarget.html#method_getTargets">EventTarget</a>: <a href="../files/event-custom_js_event-facade.js.html#l523"><code>event-custom&#x2F;js&#x2F;event-facade.js:523</code></a> </p> </div> <div class="description"> <p>Returns an array of bubble targets for this object.</p> </div> <div class="returns"> <h4>Returns:</h4> <div class="returns-description"> <p>EventTarget[]</p> </div> </div> </div> <div id="method_getTotalValues" class="method item inherited"> <h3 class="name"><code>getTotalValues</code></h3> <span class="paren">()</span> <span class="returns-inline"> <span class="type"></span> </span> <div class="meta"> <p>Inherited from <a href="../classes/SeriesBase.html#method_getTotalValues">SeriesBase</a>: <a href="../files/charts_js_SeriesBase.js.html#l72"><code>charts&#x2F;js&#x2F;SeriesBase.js:72</code></a> </p> </div> <div class="description"> <p>Returns the sum of all values for the series.</p> </div> <div class="returns"> <h4>Returns:</h4> <div class="returns-description"> <p>Number</p> </div> </div> </div> <div id="method_init" class="method item inherited"> <h3 class="name"><code>init</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>cfg</code> </li> </ul><span class="paren">)</span> </div> <span class="returns-inline"> <span class="type"><a href="../classes/BaseCore.html" class="crosslink">BaseCore</a></span> </span> <span class="flag chainable">chainable</span> <div class="meta"> <p>Inherited from <a href="../classes/BaseObservable.html#method_init"> BaseObservable </a> but overwritten in <a href="../files/base_js_BaseCore.js.html#l319"><code>base&#x2F;js&#x2F;BaseCore.js:319</code></a> </p> </div> <div class="description"> <p>Init lifecycle method, invoked during construction. Sets up attributes and invokes initializers for the class hierarchy.</p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">cfg</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span> <div class="param-description"> <p>Object with configuration property name/value pairs</p> </div> </li> </ul> </div> <div class="returns"> <h4>Returns:</h4> <div class="returns-description"> <span class="type"><a href="../classes/BaseCore.html" class="crosslink">BaseCore</a></span>: <p>A reference to this object</p> </div> </div> </div> <div id="method_modifyAttr" class="method item inherited"> <h3 class="name"><code>modifyAttr</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>name</code> </li> <li class="arg"> <code>config</code> </li> </ul><span class="paren">)</span> </div> <div class="meta"> <p>Inherited from <a href="../classes/AttributeExtras.html#method_modifyAttr">AttributeExtras</a>: <a href="../files/attribute_js_AttributeExtras.js.html#l40"><code>attribute&#x2F;js&#x2F;AttributeExtras.js:40</code></a> </p> </div> <div class="description"> <p>Updates the configuration of an attribute which has already been added.</p> <p> The properties which can be modified through this interface are limited to the following subset of attributes, which can be safely modified after a value has already been set on the attribute: </p> <dl> <dt>readOnly;</dt> <dt>writeOnce;</dt> <dt>broadcast; and</dt> <dt>getter.</dt> </dl> <p> Note: New attributes cannot be added using this interface. New attributes must be added using <a href="../classes/AttributeCore.html#method_addAttr" class="crosslink">addAttr</a>, or an appropriate manner for a class which utilises Attributes (e.g. the <a href="../classes/Base.html#property_ATTRS" class="crosslink">ATTRS</a> property in <a href="../classes/Base.html" class="crosslink">Base</a>). </p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">name</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description"> <p>The name of the attribute whose configuration is to be updated.</p> </div> </li> <li class="param"> <code class="param-name">config</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span> <div class="param-description"> <p>An object with configuration property/value pairs, specifying the configuration properties to modify.</p> </div> </li> </ul> </div> </div> <div id="method_on" class="method item inherited"> <h3 class="name"><code>on</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>type</code> </li> <li class="arg"> <code>fn</code> </li> <li class="arg"> <code class="optional">[context]</code> </li> <li class="arg"> <code class="optional">[arg*]</code> </li> </ul><span class="paren">)</span> </div> <span class="returns-inline"> <span class="type"><a href="../classes/EventHandle.html" class="crosslink">EventHandle</a></span> </span> <div class="meta"> <p>Inherited from <a href="../classes/EventTarget.html#method_on">EventTarget</a>: <a href="../files/event-custom_js_event-target.js.html#l188"><code>event-custom&#x2F;js&#x2F;event-target.js:188</code></a> </p> </div> <div class="description"> <p>Subscribe a callback function to a custom event fired by this object or from an object that bubbles its events to this object.</p> <pre class="code prettyprint"><code> this.on(&quot;change&quot;, this._onChange, this);</code></pre> <p>Callback functions for events published with <code>emitFacade = true</code> will receive an <code>EventFacade</code> as the first argument (typically named &quot;e&quot;). These callbacks can then call <code>e.preventDefault()</code> to disable the behavior published to that event&#39;s <code>defaultFn</code>. See the <code>EventFacade</code> API for all available properties and methods. Subscribers to non-<code>emitFacade</code> events will receive the arguments passed to <code>fire()</code> after the event name.</p> <p>To subscribe to multiple events at once, pass an object as the first argument, where the key:value pairs correspond to the eventName:callback.</p> <pre class="code prettyprint"><code> this.on({ &quot;attrChange&quot; : this._onAttrChange, &quot;change&quot; : this._onChange });</code></pre> <p>You can also pass an array of event names as the first argument to subscribe to all listed events with the same callback.</p> <pre class="code prettyprint"><code> this.on([ &quot;change&quot;, &quot;attrChange&quot; ], this._onChange);</code></pre> <p>Returning <code>false</code> from a callback is supported as an alternative to calling <code>e.preventDefault(); e.stopPropagation();</code>. However, it is recommended to use the event methods whenever possible.</p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">type</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description"> <p>The name of the event</p> </div> </li> <li class="param"> <code class="param-name">fn</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function" class="crosslink external" target="_blank">Function</a></span> <div class="param-description"> <p>The callback to execute in response to the event</p> </div> </li> <li class="param"> <code class="param-name optional">[context]</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span> <span class="flag optional" title="This parameter is optional.">optional</span> <div class="param-description"> <p>Override <code>this</code> object in callback</p> </div> </li> <li class="param"> <code class="param-name optional">[arg*]</code> <span class="type">Any</span> <span class="flag optional" title="This parameter is optional.">optional</span> <div class="param-description"> <p>0..n additional arguments to supply to the subscriber</p> </div> </li> </ul> </div> <div class="returns"> <h4>Returns:</h4> <div class="returns-description"> <span class="type"><a href="../classes/EventHandle.html" class="crosslink">EventHandle</a></span>: <p>A subscription handle capable of detaching that subscription</p> </div> </div> </div> <div id="method_once" class="method item inherited"> <h3 class="name"><code>once</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>type</code> </li> <li class="arg"> <code>fn</code> </li> <li class="arg"> <code class="optional">[context]</code> </li> <li class="arg"> <code class="optional">[arg*]</code> </li> </ul><span class="paren">)</span> </div> <span class="returns-inline"> <span class="type"><a href="../classes/EventHandle.html" class="crosslink">EventHandle</a></span> </span> <div class="meta"> <p>Inherited from <a href="../classes/EventTarget.html#method_once">EventTarget</a>: <a href="../files/event-custom_js_event-target.js.html#l124"><code>event-custom&#x2F;js&#x2F;event-target.js:124</code></a> </p> </div> <div class="description"> <p>Listen to a custom event hosted by this object one time. This is the equivalent to <code>on</code> except the listener is immediatelly detached when it is executed.</p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">type</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description"> <p>The name of the event</p> </div> </li> <li class="param"> <code class="param-name">fn</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function" class="crosslink external" target="_blank">Function</a></span> <div class="param-description"> <p>The callback to execute in response to the event</p> </div> </li> <li class="param"> <code class="param-name optional">[context]</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span> <span class="flag optional" title="This parameter is optional.">optional</span> <div class="param-description"> <p>Override <code>this</code> object in callback</p> </div> </li> <li class="param"> <code class="param-name optional">[arg*]</code> <span class="type">Any</span> <span class="flag optional" title="This parameter is optional.">optional</span> <div class="param-description"> <p>0..n additional arguments to supply to the subscriber</p> </div> </li> </ul> </div> <div class="returns"> <h4>Returns:</h4> <div class="returns-description"> <span class="type"><a href="../classes/EventHandle.html" class="crosslink">EventHandle</a></span>: <p>A subscription handle capable of detaching the subscription</p> </div> </div> </div> <div id="method_onceAfter" class="method item inherited"> <h3 class="name"><code>onceAfter</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>type</code> </li> <li class="arg"> <code>fn</code> </li> <li class="arg"> <code class="optional">[context]</code> </li> <li class="arg"> <code class="optional">[arg*]</code> </li> </ul><span class="paren">)</span> </div> <span class="returns-inline"> <span class="type"><a href="../classes/EventHandle.html" class="crosslink">EventHandle</a></span> </span> <div class="meta"> <p>Inherited from <a href="../classes/EventTarget.html#method_onceAfter">EventTarget</a>: <a href="../files/event-custom_js_event-target.js.html#l146"><code>event-custom&#x2F;js&#x2F;event-target.js:146</code></a> </p> </div> <div class="description"> <p>Listen to a custom event hosted by this object one time. This is the equivalent to <code>after</code> except the listener is immediatelly detached when it is executed.</p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">type</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description"> <p>The name of the event</p> </div> </li> <li class="param"> <code class="param-name">fn</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function" class="crosslink external" target="_blank">Function</a></span> <div class="param-description"> <p>The callback to execute in response to the event</p> </div> </li> <li class="param"> <code class="param-name optional">[context]</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span> <span class="flag optional" title="This parameter is optional.">optional</span> <div class="param-description"> <p>Override <code>this</code> object in callback</p> </div> </li> <li class="param"> <code class="param-name optional">[arg*]</code> <span class="type">Any</span> <span class="flag optional" title="This parameter is optional.">optional</span> <div class="param-description"> <p>0..n additional arguments to supply to the subscriber</p> </div> </li> </ul> </div> <div class="returns"> <h4>Returns:</h4> <div class="returns-description"> <span class="type"><a href="../classes/EventHandle.html" class="crosslink">EventHandle</a></span>: <p>A subscription handle capable of detaching that subscription</p> </div> </div> </div> <div id="method_parseType" class="method item inherited"> <h3 class="name"><code>parseType</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>type</code> </li> <li class="arg"> <code class="optional">[pre]</code> </li> </ul><span class="paren">)</span> </div> <span class="returns-inline"> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array" class="crosslink external" target="_blank">Array</a></span> </span> <div class="meta"> <p>Inherited from <a href="../classes/EventTarget.html#method_parseType">EventTarget</a>: <a href="../files/event-custom_js_event-target.js.html#l168"><code>event-custom&#x2F;js&#x2F;event-target.js:168</code></a> </p> <p>Available since 3.3.0</p> </div> <div class="description"> <p>Takes the type parameter passed to &#39;on&#39; and parses out the various pieces that could be included in the type. If the event type is passed without a prefix, it will be expanded to include the prefix one is supplied or the event target is configured with a default prefix.</p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">type</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description"> <p>the type</p> </div> </li> <li class="param"> <code class="param-name optional">[pre]</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <span class="flag optional" title="This parameter is optional.">optional</span> <div class="param-description"> <p>The prefix. Defaults to this._yuievt.config.prefix</p> </div> </li> </ul> </div> <div class="returns"> <h4>Returns:</h4> <div class="returns-description"> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array" class="crosslink external" target="_blank">Array</a></span>: <p><p><p><p><p><p><p><p><p><p><p><p><p><p><p><p><p><p><p><p><p><p><p><p><p><p><p><p><p><p><p><p><p><p><p><p><p><p><p><p><p><p><p>an array containing:</p></p></p></p></p></p></p></p></p></p></p></p></p></p></p></p></p></p></p></p></p></p></p></p></p></p></p></p></p></p></p></p></p></p></p></p></p></p></p></p></p></p></p> <ul> <li>the detach category, if supplied,</li> <li>the prefixed event type,</li> <li>whether or not this is an after listener,</li> <li>the supplied event type</li> </ul> </div> </div> </div> <div id="method_publish" class="method item inherited"> <h3 class="name"><code>publish</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>type</code> </li> <li class="arg"> <code>opts</code> </li> </ul><span class="paren">)</span> </div> <span class="returns-inline"> <span class="type"><a href="../classes/CustomEvent.html" class="crosslink">CustomEvent</a></span> </span> <div class="meta"> <p>Inherited from <a href="../classes/EventTarget.html#method_publish">EventTarget</a>: <a href="../files/event-custom_js_event-target.js.html#l503"><code>event-custom&#x2F;js&#x2F;event-target.js:503</code></a> </p> </div> <div class="description"> <p>Creates a new custom event of the specified type. If a custom event by that name already exists, it will not be re-created. In either case the custom event is returned.</p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">type</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description"> <p>the type, or name of the event</p> </div> </li> <li class="param"> <code class="param-name">opts</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span> <div class="param-description"> <p>optional config params. Valid properties are:</p> </div> <ul class="params-list"> <li class="param"> <code class="param-name optional">[broadcast=false]</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span> <span class="flag optional" title="This parameter is optional.">optional</span> <div class="param-description"> <p>whether or not the YUI instance and YUI global are notified when the event is fired.</p> </div> </li> <li class="param"> <code class="param-name optional">[bubbles=true]</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span> <span class="flag optional" title="This parameter is optional.">optional</span> <div class="param-description"> <p>Whether or not this event bubbles. Events can only bubble if <code>emitFacade</code> is true.</p> </div> </li> <li class="param"> <code class="param-name optional">[context=this]</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span> <span class="flag optional" title="This parameter is optional.">optional</span> <div class="param-description"> <p>the default execution context for the listeners.</p> </div> </li> <li class="param"> <code class="param-name optional">[defaultFn]</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function" class="crosslink external" target="_blank">Function</a></span> <span class="flag optional" title="This parameter is optional.">optional</span> <div class="param-description"> <p>the default function to execute when this event fires if preventDefault was not called.</p> </div> </li> <li class="param"> <code class="param-name optional">[emitFacade=false]</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span> <span class="flag optional" title="This parameter is optional.">optional</span> <div class="param-description"> <p>whether or not this event emits a facade.</p> </div> </li> <li class="param"> <code class="param-name optional">[prefix]</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <span class="flag optional" title="This parameter is optional.">optional</span> <div class="param-description"> <p>the prefix for this targets events, e.g., &#39;menu&#39; in &#39;menu:click&#39;.</p> </div> </li> <li class="param"> <code class="param-name optional">[fireOnce=false]</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span> <span class="flag optional" title="This parameter is optional.">optional</span> <div class="param-description"> <p>if an event is configured to fire once, new subscribers after the fire will be notified immediately.</p> </div> </li> <li class="param"> <code class="param-name optional">[async=false]</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span> <span class="flag optional" title="This parameter is optional.">optional</span> <div class="param-description"> <p>fireOnce event listeners will fire synchronously if the event has already fired unless <code>async</code> is <code>true</code>.</p> </div> </li> <li class="param"> <code class="param-name optional">[preventable=true]</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span> <span class="flag optional" title="This parameter is optional.">optional</span> <div class="param-description"> <p>whether or not <code>preventDefault()</code> has an effect.</p> </div> </li> <li class="param"> <code class="param-name optional">[preventedFn]</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function" class="crosslink external" target="_blank">Function</a></span> <span class="flag optional" title="This parameter is optional.">optional</span> <div class="param-description"> <p>a function that is executed when <code>preventDefault()</code> is called.</p> </div> </li> <li class="param"> <code class="param-name optional">[queuable=false]</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span> <span class="flag optional" title="This parameter is optional.">optional</span> <div class="param-description"> <p>whether or not this event can be queued during bubbling.</p> </div> </li> <li class="param"> <code class="param-name optional">[silent]</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span> <span class="flag optional" title="This parameter is optional.">optional</span> <div class="param-description"> <p>if silent is true, debug messages are not provided for this event.</p> </div> </li> <li class="param"> <code class="param-name optional">[stoppedFn]</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function" class="crosslink external" target="_blank">Function</a></span> <span class="flag optional" title="This parameter is optional.">optional</span> <div class="param-description"> <p>a function that is executed when stopPropagation is called.</p> </div> </li> <li class="param"> <code class="param-name optional">[monitored]</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span> <span class="flag optional" title="This parameter is optional.">optional</span> <div class="param-description"> <p>specifies whether or not this event should send notifications about when the event has been attached, detached, or published.</p> </div> </li> <li class="param"> <code class="param-name optional">[type]</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <span class="flag optional" title="This parameter is optional.">optional</span> <div class="param-description"> <p>the event type (valid option if not provided as the first parameter to publish).</p> </div> </li> </ul> </li> </ul> </div> <div class="returns"> <h4>Returns:</h4> <div class="returns-description"> <span class="type"><a href="../classes/CustomEvent.html" class="crosslink">CustomEvent</a></span>: <p>the custom event</p> </div> </div> </div> <div id="method_removeAttr" class="method item inherited"> <h3 class="name"><code>removeAttr</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>name</code> </li> </ul><span class="paren">)</span> </div> <div class="meta"> <p>Inherited from <a href="../classes/AttributeExtras.html#method_removeAttr">AttributeExtras</a>: <a href="../files/attribute_js_AttributeExtras.js.html#l90"><code>attribute&#x2F;js&#x2F;AttributeExtras.js:90</code></a> </p> </div> <div class="description"> <p>Removes an attribute from the host object</p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">name</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description"> <p>The name of the attribute to be removed.</p> </div> </li> </ul> </div> </div> <div id="method_removeTarget" class="method item inherited"> <h3 class="name"><code>removeTarget</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>o</code> </li> </ul><span class="paren">)</span> </div> <span class="flag chainable">chainable</span> <div class="meta"> <p>Inherited from <a href="../classes/EventTarget.html#method_removeTarget">EventTarget</a>: <a href="../files/event-custom_js_event-facade.js.html#l533"><code>event-custom&#x2F;js&#x2F;event-facade.js:533</code></a> </p> </div> <div class="description"> <p>Removes a bubble target</p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">o</code> <span class="type"><a href="../classes/EventTarget.html" class="crosslink">EventTarget</a></span> <div class="param-description"> <p>the target to remove</p> </div> </li> </ul> </div> </div> <div id="method_render" class="method item private inherited"> <h3 class="name"><code>render</code></h3> <span class="paren">()</span> <span class="flag private">private</span> <div class="meta"> <p>Inherited from <a href="../classes/SeriesBase.html#method_render">SeriesBase</a>: <a href="../files/charts_js_SeriesBase.js.html#l24"><code>charts&#x2F;js&#x2F;SeriesBase.js:24</code></a> </p> </div> <div class="description"> </div> </div> <div id="method_reset" class="method item inherited"> <h3 class="name"><code>reset</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>name</code> </li> </ul><span class="paren">)</span> </div> <span class="returns-inline"> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span> </span> <span class="flag chainable">chainable</span> <div class="meta"> <p>Inherited from <a href="../classes/AttributeExtras.html#method_reset">AttributeExtras</a>: <a href="../files/attribute_js_AttributeExtras.js.html#l100"><code>attribute&#x2F;js&#x2F;AttributeExtras.js:100</code></a> </p> </div> <div class="description"> <p>Resets the attribute (or all attributes) to its initial value, as long as the attribute is not readOnly, or writeOnce.</p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">name</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description"> <p>Optional. The name of the attribute to reset. If omitted, all attributes are reset.</p> </div> </li> </ul> </div> <div class="returns"> <h4>Returns:</h4> <div class="returns-description"> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span>: <p>A reference to the host object.</p> </div> </div> </div> <div id="method_set" class="method item inherited"> <h3 class="name"><code>set</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>name</code> </li> <li class="arg"> <code>value</code> </li> <li class="arg"> <code class="optional">[opts]</code> </li> </ul><span class="paren">)</span> </div> <span class="returns-inline"> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span> </span> <span class="flag chainable">chainable</span> <div class="meta"> <p>Inherited from <a href="../classes/AttributeObservable.html#method_set"> AttributeObservable </a> but overwritten in <a href="../files/attribute_js_AttributeCore.js.html#l388"><code>attribute&#x2F;js&#x2F;AttributeCore.js:388</code></a> </p> </div> <div class="description"> <p>Sets the value of an attribute.</p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">name</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description"> <p>The name of the attribute. If the current value of the attribute is an Object, dot notation can be used to set the value of a property within the object (e.g. <code>set(&quot;x.y.z&quot;, 5)</code>).</p> </div> </li> <li class="param"> <code class="param-name">value</code> <span class="type">Any</span> <div class="param-description"> <p>The value to set the attribute to.</p> </div> </li> <li class="param"> <code class="param-name optional">[opts]</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span> <span class="flag optional" title="This parameter is optional.">optional</span> <div class="param-description"> <p>Optional data providing the circumstances for the change.</p> </div> </li> </ul> </div> <div class="returns"> <h4>Returns:</h4> <div class="returns-description"> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span>: <p>A reference to the host object.</p> </div> </div> </div> <div id="method_setAreaData" class="method item protected inherited"> <h3 class="name"><code>setAreaData</code></h3> <span class="paren">()</span> <span class="flag protected">protected</span> <div class="meta"> <p>Inherited from <a href="../classes/CartesianSeries.html#method_setAreaData">CartesianSeries</a>: <a href="../files/charts_js_CartesianSeries.js.html#l277"><code>charts&#x2F;js&#x2F;CartesianSeries.js:277</code></a> </p> </div> <div class="description"> <p>Calculates the coordinates for the series.</p> </div> </div> <div id="method_setAttrs" class="method item inherited"> <h3 class="name"><code>setAttrs</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>attrs</code> </li> <li class="arg"> <code class="optional">[opts]</code> </li> </ul><span class="paren">)</span> </div> <span class="returns-inline"> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span> </span> <span class="flag chainable">chainable</span> <div class="meta"> <p>Inherited from <a href="../classes/AttributeObservable.html#method_setAttrs"> AttributeObservable </a> but overwritten in <a href="../files/attribute_js_AttributeCore.js.html#l747"><code>attribute&#x2F;js&#x2F;AttributeCore.js:747</code></a> </p> </div> <div class="description"> <p>Sets multiple attribute values.</p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">attrs</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span> <div class="param-description"> <p>An object with attributes name/value pairs.</p> </div> </li> <li class="param"> <code class="param-name optional">[opts]</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span> <span class="flag optional" title="This parameter is optional.">optional</span> <div class="param-description"> <p>Optional data providing the circumstances for the change.</p> </div> </li> </ul> </div> <div class="returns"> <h4>Returns:</h4> <div class="returns-description"> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span>: <p>A reference to the host object.</p> </div> </div> </div> <div id="method_subscribe" class="method item deprecated inherited"> <h3 class="name"><code>subscribe</code></h3> <span class="paren">()</span> <span class="flag deprecated" title="use on">deprecated</span> <div class="meta"> <p>Inherited from <a href="../classes/EventTarget.html#method_subscribe">EventTarget</a>: <a href="../files/event-custom_js_event-target.js.html#l346"><code>event-custom&#x2F;js&#x2F;event-target.js:346</code></a> </p> <p>Deprecated: use on</p> </div> <div class="description"> <p>subscribe to an event</p> </div> </div> <div id="method_toString" class="method item inherited"> <h3 class="name"><code>toString</code></h3> <span class="paren">()</span> <span class="returns-inline"> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> </span> <div class="meta"> <p>Inherited from <a href="../classes/BaseCore.html#method_toString">BaseCore</a>: <a href="../files/base_js_BaseCore.js.html#l815"><code>base&#x2F;js&#x2F;BaseCore.js:815</code></a> </p> </div> <div class="description"> <p>Default toString implementation. Provides the constructor NAME and the instance guid, if set.</p> </div> <div class="returns"> <h4>Returns:</h4> <div class="returns-description"> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span>: <p>String representation for this object</p> </div> </div> </div> <div id="method_unsubscribe" class="method item deprecated inherited"> <h3 class="name"><code>unsubscribe</code></h3> <span class="paren">()</span> <span class="flag deprecated" title="use detach">deprecated</span> <div class="meta"> <p>Inherited from <a href="../classes/EventTarget.html#method_unsubscribe">EventTarget</a>: <a href="../files/event-custom_js_event-target.js.html#l469"><code>event-custom&#x2F;js&#x2F;event-target.js:469</code></a> </p> <p>Deprecated: use detach</p> </div> <div class="description"> <p>detach a listener</p> </div> </div> <div id="method_unsubscribeAll" class="method item deprecated inherited"> <h3 class="name"><code>unsubscribeAll</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>type</code> </li> </ul><span class="paren">)</span> </div> <span class="flag deprecated" title="use detachAll">deprecated</span> <div class="meta"> <p>Inherited from <a href="../classes/EventTarget.html#method_unsubscribeAll">EventTarget</a>: <a href="../files/event-custom_js_event-target.js.html#l490"><code>event-custom&#x2F;js&#x2F;event-target.js:490</code></a> </p> <p>Deprecated: use detachAll</p> </div> <div class="description"> <p>Removes all listeners from the specified event. If the event type is not specified, all listeners from all hosted custom events will be removed.</p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">type</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description"> <p>The type, or name of the event</p> </div> </li> </ul> </div> </div> <div id="method_validate" class="method item private inherited"> <h3 class="name"><code>validate</code></h3> <span class="paren">()</span> <span class="flag private">private</span> <div class="meta"> <p>Inherited from <a href="../classes/CartesianSeries.html#method_validate">CartesianSeries</a>: <a href="../files/charts_js_CartesianSeries.js.html#l259"><code>charts&#x2F;js&#x2F;CartesianSeries.js:259</code></a> </p> </div> <div class="description"> <p>Draws the series is the xAxis and yAxis data are both available.</p> </div> </div> </div> <div id="properties" class="api-class-tabpanel"> <h2 class="off-left">Properties</h2> <div id="property__allowAdHocAttrs" class="property item protected inherited"> <h3 class="name"><code>_allowAdHocAttrs</code></h3> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span> <span class="flag protected">protected</span> <div class="meta"> <p>Inherited from <a href="../classes/BaseCore.html#property__allowAdHocAttrs">BaseCore</a>: <a href="../files/base_js_BaseCore.js.html#l155"><code>base&#x2F;js&#x2F;BaseCore.js:155</code></a> </p> </div> <div class="description"> <p>This property controls whether or not instances of this class should allow users to add ad-hoc attributes through the constructor configuration hash.</p> <p>AdHoc attributes are attributes which are not defined by the class, and are not handled by the MyClass._NON_ATTRS_CFG</p> </div> <p><strong>Default:</strong> undefined (false)</p> </div> <div id="property__bottomOrigin" class="property item private inherited"> <h3 class="name"><code>_bottomOrigin</code></h3> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <span class="flag private">private</span> <div class="meta"> <p>Inherited from <a href="../classes/CartesianSeries.html#property__bottomOrigin">CartesianSeries</a>: <a href="../files/charts_js_CartesianSeries.js.html#l57"><code>charts&#x2F;js&#x2F;CartesianSeries.js:57</code></a> </p> </div> <div class="description"> <p>The y-coordinate for the bottom edge of the series.</p> </div> </div> <div id="property__defaultBorderColors" class="property item protected inherited"> <h3 class="name"><code>_defaultBorderColors</code></h3> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array" class="crosslink external" target="_blank">Array</a></span> <span class="flag protected">protected</span> <div class="meta"> <p>Inherited from <a href="../classes/SeriesBase.html#property__defaultBorderColors">SeriesBase</a>: <a href="../files/charts_js_SeriesBase.js.html#l209"><code>charts&#x2F;js&#x2F;SeriesBase.js:209</code></a> </p> </div> <div class="description"> <p>Collection of default colors used for marker borders in a series when not specified by user.</p> </div> </div> <div id="property__defaultFillColors" class="property item protected inherited"> <h3 class="name"><code>_defaultFillColors</code></h3> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array" class="crosslink external" target="_blank">Array</a></span> <span class="flag protected">protected</span> <div class="meta"> <p>Inherited from <a href="../classes/SeriesBase.html#property__defaultFillColors">SeriesBase</a>: <a href="../files/charts_js_SeriesBase.js.html#l189"><code>charts&#x2F;js&#x2F;SeriesBase.js:189</code></a> </p> </div> <div class="description"> <p>Collection of default colors used for marker fills in a series when not specified by user.</p> </div> </div> <div id="property__defaultLineColors" class="property item protected inherited"> <h3 class="name"><code>_defaultLineColors</code></h3> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array" class="crosslink external" target="_blank">Array</a></span> <span class="flag protected">protected</span> <div class="meta"> <p>Inherited from <a href="../classes/SeriesBase.html#property__defaultLineColors">SeriesBase</a>: <a href="../files/charts_js_SeriesBase.js.html#l169"><code>charts&#x2F;js&#x2F;SeriesBase.js:169</code></a> </p> </div> <div class="description"> <p>Collection of default colors used for lines in a series when not specified by user.</p> </div> </div> <div id="property__defaultPlaneOffset" class="property item private inherited"> <h3 class="name"><code>_defaultPlaneOffset</code></h3> <span class="type"><a href="../classes/Number.html" class="crosslink">Number</a></span> <span class="flag private">private</span> <div class="meta"> <p>Inherited from <a href="../classes/CartesianSeries.html#property__defaultPlaneOffset">CartesianSeries</a>: <a href="../files/charts_js_CartesianSeries.js.html#l537"><code>charts&#x2F;js&#x2F;CartesianSeries.js:537</code></a> </p> </div> <div class="description"> <p>Default value for plane offsets when the parent chart&#39;s <code>interactiveType</code> is <code>planar</code>.</p> </div> </div> <div id="property__defaultSliceColors" class="property item protected inherited"> <h3 class="name"><code>_defaultSliceColors</code></h3> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array" class="crosslink external" target="_blank">Array</a></span> <span class="flag protected">protected</span> <div class="meta"> <p>Inherited from <a href="../classes/SeriesBase.html#property__defaultSliceColors">SeriesBase</a>: <a href="../files/charts_js_SeriesBase.js.html#l229"><code>charts&#x2F;js&#x2F;SeriesBase.js:229</code></a> </p> </div> <div class="description"> <p>Collection of default colors used for area fills, histogram fills and pie fills in a series when not specified by user.</p> </div> </div> <div id="property__heightChangeHandle" class="property item private inherited"> <h3 class="name"><code>_heightChangeHandle</code></h3> <span class="type"><a href="../classes/EventHandle.html" class="crosslink">EventHandle</a></span> <span class="flag private">private</span> <div class="meta"> <p>Inherited from <a href="../classes/CartesianSeries.html#property__heightChangeHandle">CartesianSeries</a>: <a href="../files/charts_js_CartesianSeries.js.html#l642"><code>charts&#x2F;js&#x2F;CartesianSeries.js:642</code></a> </p> </div> <div class="description"> <p>Event handle for the heightChange event.</p> </div> </div> <div id="property__leftOrigin" class="property item private inherited"> <h3 class="name"><code>_leftOrigin</code></h3> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <span class="flag private">private</span> <div class="meta"> <p>Inherited from <a href="../classes/CartesianSeries.html#property__leftOrigin">CartesianSeries</a>: <a href="../files/charts_js_CartesianSeries.js.html#l48"><code>charts&#x2F;js&#x2F;CartesianSeries.js:48</code></a> </p> </div> <div class="description"> <p>Th x-coordinate for the left edge of the series.</p> </div> </div> <div id="property__lineDefaults" class="property item private inherited"> <h3 class="name"><code>_lineDefaults</code></h3> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span> <span class="flag private">private</span> <div class="meta"> <p>Inherited from <a href="../classes/Lines.html#property__lineDefaults">Lines</a>: <a href="../files/charts_js_Lines.js.html#l18"><code>charts&#x2F;js&#x2F;Lines.js:18</code></a> </p> </div> <div class="description"> </div> </div> <div id="property__styles" class="property item private inherited"> <h3 class="name"><code>_styles</code></h3> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span> <span class="flag private">private</span> <div class="meta"> <p>Inherited from <a href="../classes/Renderer.html#property__styles">Renderer</a>: <a href="../files/charts_js_Renderer.js.html#l59"><code>charts&#x2F;js&#x2F;Renderer.js:59</code></a> </p> </div> <div class="description"> <p>Storage for <code>styles</code> attribute.</p> </div> </div> <div id="property__stylesChangeHandle" class="property item private inherited"> <h3 class="name"><code>_stylesChangeHandle</code></h3> <span class="type"><a href="../classes/EventHandle.html" class="crosslink">EventHandle</a></span> <span class="flag private">private</span> <div class="meta"> <p>Inherited from <a href="../classes/CartesianSeries.html#property__stylesChangeHandle">CartesianSeries</a>: <a href="../files/charts_js_CartesianSeries.js.html#l628"><code>charts&#x2F;js&#x2F;CartesianSeries.js:628</code></a> </p> </div> <div class="description"> <p>Event handle for the stylesChange event.</p> </div> </div> <div id="property__visibleChangeHandle" class="property item private inherited"> <h3 class="name"><code>_visibleChangeHandle</code></h3> <span class="type"><a href="../classes/EventHandle.html" class="crosslink">EventHandle</a></span> <span class="flag private">private</span> <div class="meta"> <p>Inherited from <a href="../classes/CartesianSeries.html#property__visibleChangeHandle">CartesianSeries</a>: <a href="../files/charts_js_CartesianSeries.js.html#l649"><code>charts&#x2F;js&#x2F;CartesianSeries.js:649</code></a> </p> </div> <div class="description"> <p>Event handle for the visibleChange event.</p> </div> </div> <div id="property__widthChangeHandle" class="property item private inherited"> <h3 class="name"><code>_widthChangeHandle</code></h3> <span class="type"><a href="../classes/EventHandle.html" class="crosslink">EventHandle</a></span> <span class="flag private">private</span> <div class="meta"> <p>Inherited from <a href="../classes/CartesianSeries.html#property__widthChangeHandle">CartesianSeries</a>: <a href="../files/charts_js_CartesianSeries.js.html#l635"><code>charts&#x2F;js&#x2F;CartesianSeries.js:635</code></a> </p> </div> <div class="description"> <p>Event handle for the widthChange event.</p> </div> </div> <div id="property__xAxisChangeHandle" class="property item private inherited"> <h3 class="name"><code>_xAxisChangeHandle</code></h3> <span class="type"><a href="../classes/EventHandle.html" class="crosslink">EventHandle</a></span> <span class="flag private">private</span> <div class="meta"> <p>Inherited from <a href="../classes/CartesianSeries.html#property__xAxisChangeHandle">CartesianSeries</a>: <a href="../files/charts_js_CartesianSeries.js.html#l614"><code>charts&#x2F;js&#x2F;CartesianSeries.js:614</code></a> </p> </div> <div class="description"> <p>Event handle for the xAxisChange event.</p> </div> </div> <div id="property__xDataReadyHandle" class="property item private inherited"> <h3 class="name"><code>_xDataReadyHandle</code></h3> <span class="type"><a href="../classes/EventHandle.html" class="crosslink">EventHandle</a></span> <span class="flag private">private</span> <div class="meta"> <p>Inherited from <a href="../classes/CartesianSeries.html#property__xDataReadyHandle">CartesianSeries</a>: <a href="../files/charts_js_CartesianSeries.js.html#l583"><code>charts&#x2F;js&#x2F;CartesianSeries.js:583</code></a> </p> </div> <div class="description"> <p>Event handle for the x-axis&#39; dataReady event.</p> </div> </div> <div id="property__xDataUpdateHandle" class="property item private inherited"> <h3 class="name"><code>_xDataUpdateHandle</code></h3> <span class="type"><a href="../classes/EventHandle.html" class="crosslink">EventHandle</a></span> <span class="flag private">private</span> <div class="meta"> <p>Inherited from <a href="../classes/CartesianSeries.html#property__xDataUpdateHandle">CartesianSeries</a>: <a href="../files/charts_js_CartesianSeries.js.html#l591"><code>charts&#x2F;js&#x2F;CartesianSeries.js:591</code></a> </p> </div> <div class="description"> <p>Event handle for the x-axis dataUpdate event.</p> </div> </div> <div id="property__xDisplayName" class="property item private inherited"> <h3 class="name"><code>_xDisplayName</code></h3> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <span class="flag private">private</span> <div class="meta"> <p>Inherited from <a href="../classes/CartesianSeries.html#property__xDisplayName">CartesianSeries</a>: <a href="../files/charts_js_CartesianSeries.js.html#l30"><code>charts&#x2F;js&#x2F;CartesianSeries.js:30</code></a> </p> </div> <div class="description"> <p>Storage for <code>xDisplayName</code> attribute.</p> </div> </div> <div id="property__yAxisChangeHandle" class="property item private inherited"> <h3 class="name"><code>_yAxisChangeHandle</code></h3> <span class="type"><a href="../classes/EventHandle.html" class="crosslink">EventHandle</a></span> <span class="flag private">private</span> <div class="meta"> <p>Inherited from <a href="../classes/CartesianSeries.html#property__yAxisChangeHandle">CartesianSeries</a>: <a href="../files/charts_js_CartesianSeries.js.html#l621"><code>charts&#x2F;js&#x2F;CartesianSeries.js:621</code></a> </p> </div> <div class="description"> <p>Event handle for the yAxisChange event.</p> </div> </div> <div id="property__yDataReadyHandle" class="property item private inherited"> <h3 class="name"><code>_yDataReadyHandle</code></h3> <span class="type"><a href="../classes/EventHandle.html" class="crosslink">EventHandle</a></span> <span class="flag private">private</span> <div class="meta"> <p>Inherited from <a href="../classes/CartesianSeries.html#property__yDataReadyHandle">CartesianSeries</a>: <a href="../files/charts_js_CartesianSeries.js.html#l599"><code>charts&#x2F;js&#x2F;CartesianSeries.js:599</code></a> </p> </div> <div class="description"> <p>Event handle for the y-axis dataReady event.</p> </div> </div> <div id="property__yDataUpdateHandle" class="property item private inherited"> <h3 class="name"><code>_yDataUpdateHandle</code></h3> <span class="type"><a href="../classes/EventHandle.html" class="crosslink">EventHandle</a></span> <span class="flag private">private</span> <div class="meta"> <p>Inherited from <a href="../classes/CartesianSeries.html#property__yDataUpdateHandle">CartesianSeries</a>: <a href="../files/charts_js_CartesianSeries.js.html#l607"><code>charts&#x2F;js&#x2F;CartesianSeries.js:607</code></a> </p> </div> <div class="description"> <p>Event handle for the y-axis dataUpdate event.</p> </div> </div> <div id="property__yDisplayName" class="property item private inherited"> <h3 class="name"><code>_yDisplayName</code></h3> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <span class="flag private">private</span> <div class="meta"> <p>Inherited from <a href="../classes/CartesianSeries.html#property__yDisplayName">CartesianSeries</a>: <a href="../files/charts_js_CartesianSeries.js.html#l39"><code>charts&#x2F;js&#x2F;CartesianSeries.js:39</code></a> </p> </div> <div class="description"> <p>Storage for <code>yDisplayName</code> attribute.</p> </div> </div> <div id="property_GUID" class="property item private inherited"> <h3 class="name"><code>GUID</code></h3> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <span class="flag private">private</span> <div class="meta"> <p>Inherited from <a href="../classes/CartesianSeries.html#property_GUID">CartesianSeries</a>: <a href="../files/charts_js_CartesianSeries.js.html#l140"><code>charts&#x2F;js&#x2F;CartesianSeries.js:140</code></a> </p> </div> <div class="description"> <p>Constant used to generate unique id.</p> </div> </div> <div id="property_name" class="property item deprecated inherited"> <h3 class="name"><code>name</code></h3> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <span class="flag deprecated" title="Use this.constructor.NAME">deprecated</span> <div class="meta"> <p>Inherited from <a href="../classes/BaseCore.html#property_name">BaseCore</a>: <a href="../files/base_js_BaseCore.js.html#l297"><code>base&#x2F;js&#x2F;BaseCore.js:297</code></a> </p> <p>Deprecated: Use this.constructor.NAME</p> </div> <div class="description"> <p>The string used to identify the class of this object.</p> </div> </div> </div> <div id="attrs" class="api-class-tabpanel"> <h2 class="off-left">Attributes</h2> <div id="attr_categoryDisplayName" class="attr item inherited"> <a name="config_categoryDisplayName"></a> <h3 class="name"><code>categoryDisplayName</code></h3> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <span class="flag readonly">readonly</span> <div class="meta"> <p>Inherited from <a href="../classes/CartesianSeries.html#attr_categoryDisplayName">CartesianSeries</a>: <a href="../files/charts_js_CartesianSeries.js.html#l703"><code>charts&#x2F;js&#x2F;CartesianSeries.js:703</code></a> </p> </div> <div class="description"> <p>Name used for for displaying category data</p> </div> <div class="emits box"> <h4>Fires event <code>categoryDisplayNameChange</code></h4> <p> Fires when the value for the configuration attribute <code>categoryDisplayName</code> is changed. You can listen for the event using the <code>on</code> method if you wish to be notified before the attribute's value has changed, or using the <code>after</code> method if you wish to be notified after the attribute's value has changed. </p> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">e</code> <span class="type"><a href="../classes/EventFacade.html" class="crosslink">EventFacade</a></span> <div class="param-description"> An Event Facade object with the following attribute-specific properties added: </div> <ul class="params-list"> <li class="param"> <code class="param-name">prevVal</code> <span class="type">Any</span> <div class="param-description">The value of the attribute, prior to it being set.</div> </li> <li class="param"> <code class="param-name">newVal</code> <span class="type">Any</span> <div class="param-description">The value the attribute is to be set to.</div> </li> <li class="param"> <code class="param-name">attrName</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description">The name of the attribute being set.</div> </li> <li class="param"> <code class="param-name">subAttrName</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description">If setting a property within the attribute's value, the name of the sub-attribute property being set.</div> </li> </ul> </li> </ul> </div> </div> </div> <div id="attr_chart" class="attr item inherited"> <a name="config_chart"></a> <h3 class="name"><code>chart</code></h3> <span class="type"><a href="../classes/ChartBase.html" class="crosslink">ChartBase</a></span> <div class="meta"> <p>Inherited from <a href="../classes/SeriesBase.html#attr_chart">SeriesBase</a>: <a href="../files/charts_js_SeriesBase.js.html#l326"><code>charts&#x2F;js&#x2F;SeriesBase.js:326</code></a> </p> </div> <div class="description"> <p>Reference to the <code>Chart</code> application. If no <code>Chart</code> application is present, a reference to the <code>Graphic</code> instance that the series is drawn into will be returned.</p> </div> <div class="emits box"> <h4>Fires event <code>chartChange</code></h4> <p> Fires when the value for the configuration attribute <code>chart</code> is changed. You can listen for the event using the <code>on</code> method if you wish to be notified before the attribute's value has changed, or using the <code>after</code> method if you wish to be notified after the attribute's value has changed. </p> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">e</code> <span class="type"><a href="../classes/EventFacade.html" class="crosslink">EventFacade</a></span> <div class="param-description"> An Event Facade object with the following attribute-specific properties added: </div> <ul class="params-list"> <li class="param"> <code class="param-name">prevVal</code> <span class="type">Any</span> <div class="param-description">The value of the attribute, prior to it being set.</div> </li> <li class="param"> <code class="param-name">newVal</code> <span class="type">Any</span> <div class="param-description">The value the attribute is to be set to.</div> </li> <li class="param"> <code class="param-name">attrName</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description">The name of the attribute being set.</div> </li> <li class="param"> <code class="param-name">subAttrName</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description">If setting a property within the attribute's value, the name of the sub-attribute property being set.</div> </li> </ul> </li> </ul> </div> </div> </div> <div id="attr_destroyed" class="attr item inherited"> <a name="config_destroyed"></a> <h3 class="name"><code>destroyed</code></h3> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span> <span class="flag readonly">readonly</span> <div class="meta"> <p>Inherited from <a href="../classes/BaseCore.html#attr_destroyed">BaseCore</a>: <a href="../files/base_js_BaseCore.js.html#l212"><code>base&#x2F;js&#x2F;BaseCore.js:212</code></a> </p> </div> <div class="description"> <p>Flag indicating whether or not this object has been through the destroy lifecycle phase.</p> </div> <p><strong>Default:</strong> false</p> <div class="emits box"> <h4>Fires event <code>destroyedChange</code></h4> <p> Fires when the value for the configuration attribute <code>destroyed</code> is changed. You can listen for the event using the <code>on</code> method if you wish to be notified before the attribute's value has changed, or using the <code>after</code> method if you wish to be notified after the attribute's value has changed. </p> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">e</code> <span class="type"><a href="../classes/EventFacade.html" class="crosslink">EventFacade</a></span> <div class="param-description"> An Event Facade object with the following attribute-specific properties added: </div> <ul class="params-list"> <li class="param"> <code class="param-name">prevVal</code> <span class="type">Any</span> <div class="param-description">The value of the attribute, prior to it being set.</div> </li> <li class="param"> <code class="param-name">newVal</code> <span class="type">Any</span> <div class="param-description">The value the attribute is to be set to.</div> </li> <li class="param"> <code class="param-name">attrName</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description">The name of the attribute being set.</div> </li> <li class="param"> <code class="param-name">subAttrName</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description">If setting a property within the attribute's value, the name of the sub-attribute property being set.</div> </li> </ul> </li> </ul> </div> </div> </div> <div id="attr_direction" class="attr item inherited"> <a name="config_direction"></a> <h3 class="name"><code>direction</code></h3> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="meta"> <p>Inherited from <a href="../classes/CartesianSeries.html#attr_direction">CartesianSeries</a>: <a href="../files/charts_js_CartesianSeries.js.html#l932"><code>charts&#x2F;js&#x2F;CartesianSeries.js:932</code></a> </p> </div> <div class="description"> <p>Direction of the series</p> </div> <div class="emits box"> <h4>Fires event <code>directionChange</code></h4> <p> Fires when the value for the configuration attribute <code>direction</code> is changed. You can listen for the event using the <code>on</code> method if you wish to be notified before the attribute's value has changed, or using the <code>after</code> method if you wish to be notified after the attribute's value has changed. </p> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">e</code> <span class="type"><a href="../classes/EventFacade.html" class="crosslink">EventFacade</a></span> <div class="param-description"> An Event Facade object with the following attribute-specific properties added: </div> <ul class="params-list"> <li class="param"> <code class="param-name">prevVal</code> <span class="type">Any</span> <div class="param-description">The value of the attribute, prior to it being set.</div> </li> <li class="param"> <code class="param-name">newVal</code> <span class="type">Any</span> <div class="param-description">The value the attribute is to be set to.</div> </li> <li class="param"> <code class="param-name">attrName</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description">The name of the attribute being set.</div> </li> <li class="param"> <code class="param-name">subAttrName</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description">If setting a property within the attribute's value, the name of the sub-attribute property being set.</div> </li> </ul> </li> </ul> </div> </div> </div> <div id="attr_graph" class="attr item inherited"> <a name="config_graph"></a> <h3 class="name"><code>graph</code></h3> <span class="type"><a href="../classes/Graph.html" class="crosslink">Graph</a></span> <div class="meta"> <p>Inherited from <a href="../classes/SeriesBase.html#attr_graph">SeriesBase</a>: <a href="../files/charts_js_SeriesBase.js.html#l346"><code>charts&#x2F;js&#x2F;SeriesBase.js:346</code></a> </p> </div> <div class="description"> <p>Reference to the <code>Graph</code> in which the series is drawn into.</p> </div> <div class="emits box"> <h4>Fires event <code>graphChange</code></h4> <p> Fires when the value for the configuration attribute <code>graph</code> is changed. You can listen for the event using the <code>on</code> method if you wish to be notified before the attribute's value has changed, or using the <code>after</code> method if you wish to be notified after the attribute's value has changed. </p> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">e</code> <span class="type"><a href="../classes/EventFacade.html" class="crosslink">EventFacade</a></span> <div class="param-description"> An Event Facade object with the following attribute-specific properties added: </div> <ul class="params-list"> <li class="param"> <code class="param-name">prevVal</code> <span class="type">Any</span> <div class="param-description">The value of the attribute, prior to it being set.</div> </li> <li class="param"> <code class="param-name">newVal</code> <span class="type">Any</span> <div class="param-description">The value the attribute is to be set to.</div> </li> <li class="param"> <code class="param-name">attrName</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description">The name of the attribute being set.</div> </li> <li class="param"> <code class="param-name">subAttrName</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description">If setting a property within the attribute's value, the name of the sub-attribute property being set.</div> </li> </ul> </li> </ul> </div> </div> </div> <div id="attr_graphic" class="attr item inherited"> <a name="config_graphic"></a> <h3 class="name"><code>graphic</code></h3> <span class="type"><a href="../classes/Graphic.html" class="crosslink">Graphic</a></span> <div class="meta"> <p>Inherited from <a href="../classes/Renderer.html#attr_graphic"> Renderer </a> but overwritten in <a href="../files/charts_js_SeriesBase.js.html#l308"><code>charts&#x2F;js&#x2F;SeriesBase.js:308</code></a> </p> </div> <div class="description"> <p>The graphic in which drawings will be rendered.</p> </div> <div class="emits box"> <h4>Fires event <code>graphicChange</code></h4> <p> Fires when the value for the configuration attribute <code>graphic</code> is changed. You can listen for the event using the <code>on</code> method if you wish to be notified before the attribute's value has changed, or using the <code>after</code> method if you wish to be notified after the attribute's value has changed. </p> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">e</code> <span class="type"><a href="../classes/EventFacade.html" class="crosslink">EventFacade</a></span> <div class="param-description"> An Event Facade object with the following attribute-specific properties added: </div> <ul class="params-list"> <li class="param"> <code class="param-name">prevVal</code> <span class="type">Any</span> <div class="param-description">The value of the attribute, prior to it being set.</div> </li> <li class="param"> <code class="param-name">newVal</code> <span class="type">Any</span> <div class="param-description">The value the attribute is to be set to.</div> </li> <li class="param"> <code class="param-name">attrName</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description">The name of the attribute being set.</div> </li> <li class="param"> <code class="param-name">subAttrName</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description">If setting a property within the attribute's value, the name of the sub-attribute property being set.</div> </li> </ul> </li> </ul> </div> </div> </div> <div id="attr_graphOrder" class="attr item inherited"> <a name="config_graphOrder"></a> <h3 class="name"><code>graphOrder</code></h3> <span class="type"><a href="../classes/Number.html" class="crosslink">Number</a></span> <div class="meta"> <p>Inherited from <a href="../classes/CartesianSeries.html#attr_graphOrder">CartesianSeries</a>: <a href="../files/charts_js_CartesianSeries.js.html#l780"><code>charts&#x2F;js&#x2F;CartesianSeries.js:780</code></a> </p> </div> <div class="description"> <p>Order of the instance</p> </div> <div class="emits box"> <h4>Fires event <code>graphOrderChange</code></h4> <p> Fires when the value for the configuration attribute <code>graphOrder</code> is changed. You can listen for the event using the <code>on</code> method if you wish to be notified before the attribute's value has changed, or using the <code>after</code> method if you wish to be notified after the attribute's value has changed. </p> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">e</code> <span class="type"><a href="../classes/EventFacade.html" class="crosslink">EventFacade</a></span> <div class="param-description"> An Event Facade object with the following attribute-specific properties added: </div> <ul class="params-list"> <li class="param"> <code class="param-name">prevVal</code> <span class="type">Any</span> <div class="param-description">The value of the attribute, prior to it being set.</div> </li> <li class="param"> <code class="param-name">newVal</code> <span class="type">Any</span> <div class="param-description">The value the attribute is to be set to.</div> </li> <li class="param"> <code class="param-name">attrName</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description">The name of the attribute being set.</div> </li> <li class="param"> <code class="param-name">subAttrName</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description">If setting a property within the attribute's value, the name of the sub-attribute property being set.</div> </li> </ul> </li> </ul> </div> </div> </div> <div id="attr_groupMarkers" class="attr item inherited"> <a name="config_groupMarkers"></a> <h3 class="name"><code>groupMarkers</code></h3> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span> <div class="meta"> <p>Inherited from <a href="../classes/SeriesBase.html#attr_groupMarkers">SeriesBase</a>: <a href="../files/charts_js_SeriesBase.js.html#l375"><code>charts&#x2F;js&#x2F;SeriesBase.js:375</code></a> </p> </div> <div class="description"> <p>Indicates whether or not markers for a series will be grouped and rendered in a single complex shape instance.</p> </div> <div class="emits box"> <h4>Fires event <code>groupMarkersChange</code></h4> <p> Fires when the value for the configuration attribute <code>groupMarkers</code> is changed. You can listen for the event using the <code>on</code> method if you wish to be notified before the attribute's value has changed, or using the <code>after</code> method if you wish to be notified after the attribute's value has changed. </p> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">e</code> <span class="type"><a href="../classes/EventFacade.html" class="crosslink">EventFacade</a></span> <div class="param-description"> An Event Facade object with the following attribute-specific properties added: </div> <ul class="params-list"> <li class="param"> <code class="param-name">prevVal</code> <span class="type">Any</span> <div class="param-description">The value of the attribute, prior to it being set.</div> </li> <li class="param"> <code class="param-name">newVal</code> <span class="type">Any</span> <div class="param-description">The value the attribute is to be set to.</div> </li> <li class="param"> <code class="param-name">attrName</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description">The name of the attribute being set.</div> </li> <li class="param"> <code class="param-name">subAttrName</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description">If setting a property within the attribute's value, the name of the sub-attribute property being set.</div> </li> </ul> </li> </ul> </div> </div> </div> <div id="attr_height" class="attr item inherited"> <a name="config_height"></a> <h3 class="name"><code>height</code></h3> <span class="type"><a href="../classes/Number.html" class="crosslink">Number</a></span> <div class="meta"> <p>Inherited from <a href="../classes/SeriesBase.html#attr_height">SeriesBase</a>: <a href="../files/charts_js_SeriesBase.js.html#l293"><code>charts&#x2F;js&#x2F;SeriesBase.js:293</code></a> </p> </div> <div class="description"> <p>Returns the height of the parent graph</p> </div> <div class="emits box"> <h4>Fires event <code>heightChange</code></h4> <p> Fires when the value for the configuration attribute <code>height</code> is changed. You can listen for the event using the <code>on</code> method if you wish to be notified before the attribute's value has changed, or using the <code>after</code> method if you wish to be notified after the attribute's value has changed. </p> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">e</code> <span class="type"><a href="../classes/EventFacade.html" class="crosslink">EventFacade</a></span> <div class="param-description"> An Event Facade object with the following attribute-specific properties added: </div> <ul class="params-list"> <li class="param"> <code class="param-name">prevVal</code> <span class="type">Any</span> <div class="param-description">The value of the attribute, prior to it being set.</div> </li> <li class="param"> <code class="param-name">newVal</code> <span class="type">Any</span> <div class="param-description">The value the attribute is to be set to.</div> </li> <li class="param"> <code class="param-name">attrName</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description">The name of the attribute being set.</div> </li> <li class="param"> <code class="param-name">subAttrName</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description">If setting a property within the attribute's value, the name of the sub-attribute property being set.</div> </li> </ul> </li> </ul> </div> </div> </div> <div id="attr_initialized" class="attr item inherited"> <a name="config_initialized"></a> <h3 class="name"><code>initialized</code></h3> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span> <span class="flag readonly">readonly</span> <div class="meta"> <p>Inherited from <a href="../classes/BaseCore.html#attr_initialized">BaseCore</a>: <a href="../files/base_js_BaseCore.js.html#l198"><code>base&#x2F;js&#x2F;BaseCore.js:198</code></a> </p> </div> <div class="description"> <p>Flag indicating whether or not this object has been through the init lifecycle phase.</p> </div> <p><strong>Default:</strong> false</p> <div class="emits box"> <h4>Fires event <code>initializedChange</code></h4> <p> Fires when the value for the configuration attribute <code>initialized</code> is changed. You can listen for the event using the <code>on</code> method if you wish to be notified before the attribute's value has changed, or using the <code>after</code> method if you wish to be notified after the attribute's value has changed. </p> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">e</code> <span class="type"><a href="../classes/EventFacade.html" class="crosslink">EventFacade</a></span> <div class="param-description"> An Event Facade object with the following attribute-specific properties added: </div> <ul class="params-list"> <li class="param"> <code class="param-name">prevVal</code> <span class="type">Any</span> <div class="param-description">The value of the attribute, prior to it being set.</div> </li> <li class="param"> <code class="param-name">newVal</code> <span class="type">Any</span> <div class="param-description">The value the attribute is to be set to.</div> </li> <li class="param"> <code class="param-name">attrName</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description">The name of the attribute being set.</div> </li> <li class="param"> <code class="param-name">subAttrName</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description">If setting a property within the attribute's value, the name of the sub-attribute property being set.</div> </li> </ul> </li> </ul> </div> </div> </div> <div id="attr_order" class="attr item inherited"> <a name="config_order"></a> <h3 class="name"><code>order</code></h3> <span class="type"><a href="../classes/Number.html" class="crosslink">Number</a></span> <div class="meta"> <p>Inherited from <a href="../classes/CartesianSeries.html#attr_order">CartesianSeries</a>: <a href="../files/charts_js_CartesianSeries.js.html#l772"><code>charts&#x2F;js&#x2F;CartesianSeries.js:772</code></a> </p> </div> <div class="description"> <p>Order of this instance of this <code>type</code>.</p> </div> <div class="emits box"> <h4>Fires event <code>orderChange</code></h4> <p> Fires when the value for the configuration attribute <code>order</code> is changed. You can listen for the event using the <code>on</code> method if you wish to be notified before the attribute's value has changed, or using the <code>after</code> method if you wish to be notified after the attribute's value has changed. </p> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">e</code> <span class="type"><a href="../classes/EventFacade.html" class="crosslink">EventFacade</a></span> <div class="param-description"> An Event Facade object with the following attribute-specific properties added: </div> <ul class="params-list"> <li class="param"> <code class="param-name">prevVal</code> <span class="type">Any</span> <div class="param-description">The value of the attribute, prior to it being set.</div> </li> <li class="param"> <code class="param-name">newVal</code> <span class="type">Any</span> <div class="param-description">The value the attribute is to be set to.</div> </li> <li class="param"> <code class="param-name">attrName</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description">The name of the attribute being set.</div> </li> <li class="param"> <code class="param-name">subAttrName</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description">If setting a property within the attribute's value, the name of the sub-attribute property being set.</div> </li> </ul> </li> </ul> </div> </div> </div> <div id="attr_rendered" class="attr item inherited"> <a name="config_rendered"></a> <h3 class="name"><code>rendered</code></h3> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span> <div class="meta"> <p>Inherited from <a href="../classes/SeriesBase.html#attr_rendered">SeriesBase</a>: <a href="../files/charts_js_SeriesBase.js.html#l354"><code>charts&#x2F;js&#x2F;SeriesBase.js:354</code></a> </p> </div> <div class="description"> <p>Indicates whether the Series has been through its initial set up.</p> </div> <div class="emits box"> <h4>Fires event <code>renderedChange</code></h4> <p> Fires when the value for the configuration attribute <code>rendered</code> is changed. You can listen for the event using the <code>on</code> method if you wish to be notified before the attribute's value has changed, or using the <code>after</code> method if you wish to be notified after the attribute's value has changed. </p> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">e</code> <span class="type"><a href="../classes/EventFacade.html" class="crosslink">EventFacade</a></span> <div class="param-description"> An Event Facade object with the following attribute-specific properties added: </div> <ul class="params-list"> <li class="param"> <code class="param-name">prevVal</code> <span class="type">Any</span> <div class="param-description">The value of the attribute, prior to it being set.</div> </li> <li class="param"> <code class="param-name">newVal</code> <span class="type">Any</span> <div class="param-description">The value the attribute is to be set to.</div> </li> <li class="param"> <code class="param-name">attrName</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description">The name of the attribute being set.</div> </li> <li class="param"> <code class="param-name">subAttrName</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description">If setting a property within the attribute's value, the name of the sub-attribute property being set.</div> </li> </ul> </li> </ul> </div> </div> </div> <div id="attr_seriesTypeCollection" class="attr item inherited"> <a name="config_seriesTypeCollection"></a> <h3 class="name"><code>seriesTypeCollection</code></h3> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array" class="crosslink external" target="_blank">Array</a></span> <div class="meta"> <p>Inherited from <a href="../classes/CartesianSeries.html#attr_seriesTypeCollection">CartesianSeries</a>: <a href="../files/charts_js_CartesianSeries.js.html#l657"><code>charts&#x2F;js&#x2F;CartesianSeries.js:657</code></a> </p> </div> <div class="description"> <p>An array of all series of the same type used within a chart application.</p> </div> <div class="emits box"> <h4>Fires event <code>seriesTypeCollectionChange</code></h4> <p> Fires when the value for the configuration attribute <code>seriesTypeCollection</code> is changed. You can listen for the event using the <code>on</code> method if you wish to be notified before the attribute's value has changed, or using the <code>after</code> method if you wish to be notified after the attribute's value has changed. </p> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">e</code> <span class="type"><a href="../classes/EventFacade.html" class="crosslink">EventFacade</a></span> <div class="param-description"> An Event Facade object with the following attribute-specific properties added: </div> <ul class="params-list"> <li class="param"> <code class="param-name">prevVal</code> <span class="type">Any</span> <div class="param-description">The value of the attribute, prior to it being set.</div> </li> <li class="param"> <code class="param-name">newVal</code> <span class="type">Any</span> <div class="param-description">The value the attribute is to be set to.</div> </li> <li class="param"> <code class="param-name">attrName</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description">The name of the attribute being set.</div> </li> <li class="param"> <code class="param-name">subAttrName</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description">If setting a property within the attribute's value, the name of the sub-attribute property being set.</div> </li> </ul> </li> </ul> </div> </div> </div> <div id="attr_styles" class="attr item"> <a name="config_styles"></a> <h3 class="name"><code>styles</code></h3> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span> <div class="meta"> <p>Inherited from <a href="../classes/Renderer.html#attr_styles"> Renderer </a> but overwritten in <a href="../files/charts_js_LineSeries.js.html#l74"><code>charts&#x2F;js&#x2F;LineSeries.js:74</code></a> </p> </div> <div class="description"> <p>Style properties used for drawing lines. This attribute is inherited from <code>Renderer</code>. Below are the default values: <dl> <dt>color</dt><dd>The color of the line. The default value is determined by the order of the series on the graph. The color will be retrieved from the following array: <code>[&quot;#426ab3&quot;, &quot;#d09b2c&quot;, &quot;#000000&quot;, &quot;#b82837&quot;, &quot;#b384b5&quot;, &quot;#ff7200&quot;, &quot;#779de3&quot;, &quot;#cbc8ba&quot;, &quot;#7ed7a6&quot;, &quot;#007a6c&quot;]</code> <dt>weight</dt><dd>Number that indicates the width of the line. The default value is 6.</dd> <dt>alpha</dt><dd>Number between 0 and 1 that indicates the opacity of the line. The default value is 1.</dd> <dt>lineType</dt><dd>Indicates whether the line is solid or dashed. The default value is solid.</dd> <dt>dashLength</dt><dd>When the <code>lineType</code> is dashed, indicates the length of the dash. The default value is 10.</dd> <dt>gapSpace</dt><dd>When the <code>lineType</code> is dashed, indicates the distance between dashes. The default value is 10.</dd> <dt>connectDiscontinuousPoints</dt><dd>Indicates whether or not to connect lines when there is a missing or null value between points. The default value is true.</dd> <dt>discontinuousType</dt><dd>Indicates whether the line between discontinuous points is solid or dashed. The default value is solid.</dd> <dt>discontinuousDashLength</dt><dd>When the <code>discontinuousType</code> is dashed, indicates the length of the dash. The default value is 10.</dd> <dt>discontinuousGapSpace</dt><dd>When the <code>discontinuousType</code> is dashed, indicates the distance between dashes. The default value is 10.</dd> </dl></p> </div> <div class="emits box"> <h4>Fires event <code>stylesChange</code></h4> <p> Fires when the value for the configuration attribute <code>styles</code> is changed. You can listen for the event using the <code>on</code> method if you wish to be notified before the attribute's value has changed, or using the <code>after</code> method if you wish to be notified after the attribute's value has changed. </p> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">e</code> <span class="type"><a href="../classes/EventFacade.html" class="crosslink">EventFacade</a></span> <div class="param-description"> An Event Facade object with the following attribute-specific properties added: </div> <ul class="params-list"> <li class="param"> <code class="param-name">prevVal</code> <span class="type">Any</span> <div class="param-description">The value of the attribute, prior to it being set.</div> </li> <li class="param"> <code class="param-name">newVal</code> <span class="type">Any</span> <div class="param-description">The value the attribute is to be set to.</div> </li> <li class="param"> <code class="param-name">attrName</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description">The name of the attribute being set.</div> </li> <li class="param"> <code class="param-name">subAttrName</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description">If setting a property within the attribute's value, the name of the sub-attribute property being set.</div> </li> </ul> </li> </ul> </div> </div> </div> <div id="attr_type" class="attr item"> <a name="config_type"></a> <h3 class="name"><code>type</code></h3> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="meta"> <p>Inherited from <a href="../classes/CartesianSeries.html#attr_type"> CartesianSeries </a> but overwritten in <a href="../files/charts_js_LineSeries.js.html#l63"><code>charts&#x2F;js&#x2F;LineSeries.js:63</code></a> </p> </div> <div class="description"> <p>Read-only attribute indicating the type of series.</p> </div> <p><strong>Default:</strong> line</p> <div class="emits box"> <h4>Fires event <code>typeChange</code></h4> <p> Fires when the value for the configuration attribute <code>type</code> is changed. You can listen for the event using the <code>on</code> method if you wish to be notified before the attribute's value has changed, or using the <code>after</code> method if you wish to be notified after the attribute's value has changed. </p> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">e</code> <span class="type"><a href="../classes/EventFacade.html" class="crosslink">EventFacade</a></span> <div class="param-description"> An Event Facade object with the following attribute-specific properties added: </div> <ul class="params-list"> <li class="param"> <code class="param-name">prevVal</code> <span class="type">Any</span> <div class="param-description">The value of the attribute, prior to it being set.</div> </li> <li class="param"> <code class="param-name">newVal</code> <span class="type">Any</span> <div class="param-description">The value the attribute is to be set to.</div> </li> <li class="param"> <code class="param-name">attrName</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description">The name of the attribute being set.</div> </li> <li class="param"> <code class="param-name">subAttrName</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description">If setting a property within the attribute's value, the name of the sub-attribute property being set.</div> </li> </ul> </li> </ul> </div> </div> </div> <div id="attr_valueDisplayName" class="attr item inherited"> <a name="config_valueDisplayName"></a> <h3 class="name"><code>valueDisplayName</code></h3> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <span class="flag readonly">readonly</span> <div class="meta"> <p>Inherited from <a href="../classes/CartesianSeries.html#attr_valueDisplayName">CartesianSeries</a>: <a href="../files/charts_js_CartesianSeries.js.html#l732"><code>charts&#x2F;js&#x2F;CartesianSeries.js:732</code></a> </p> </div> <div class="description"> <p>Name used for for displaying value data</p> </div> <div class="emits box"> <h4>Fires event <code>valueDisplayNameChange</code></h4> <p> Fires when the value for the configuration attribute <code>valueDisplayName</code> is changed. You can listen for the event using the <code>on</code> method if you wish to be notified before the attribute's value has changed, or using the <code>after</code> method if you wish to be notified after the attribute's value has changed. </p> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">e</code> <span class="type"><a href="../classes/EventFacade.html" class="crosslink">EventFacade</a></span> <div class="param-description"> An Event Facade object with the following attribute-specific properties added: </div> <ul class="params-list"> <li class="param"> <code class="param-name">prevVal</code> <span class="type">Any</span> <div class="param-description">The value of the attribute, prior to it being set.</div> </li> <li class="param"> <code class="param-name">newVal</code> <span class="type">Any</span> <div class="param-description">The value the attribute is to be set to.</div> </li> <li class="param"> <code class="param-name">attrName</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description">The name of the attribute being set.</div> </li> <li class="param"> <code class="param-name">subAttrName</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description">If setting a property within the attribute's value, the name of the sub-attribute property being set.</div> </li> </ul> </li> </ul> </div> </div> </div> <div id="attr_visible" class="attr item inherited"> <a name="config_visible"></a> <h3 class="name"><code>visible</code></h3> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span> <div class="meta"> <p>Inherited from <a href="../classes/SeriesBase.html#attr_visible">SeriesBase</a>: <a href="../files/charts_js_SeriesBase.js.html#l364"><code>charts&#x2F;js&#x2F;SeriesBase.js:364</code></a> </p> </div> <div class="description"> <p>Indicates whether to show the series</p> </div> <p><strong>Default:</strong> true</p> <div class="emits box"> <h4>Fires event <code>visibleChange</code></h4> <p> Fires when the value for the configuration attribute <code>visible</code> is changed. You can listen for the event using the <code>on</code> method if you wish to be notified before the attribute's value has changed, or using the <code>after</code> method if you wish to be notified after the attribute's value has changed. </p> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">e</code> <span class="type"><a href="../classes/EventFacade.html" class="crosslink">EventFacade</a></span> <div class="param-description"> An Event Facade object with the following attribute-specific properties added: </div> <ul class="params-list"> <li class="param"> <code class="param-name">prevVal</code> <span class="type">Any</span> <div class="param-description">The value of the attribute, prior to it being set.</div> </li> <li class="param"> <code class="param-name">newVal</code> <span class="type">Any</span> <div class="param-description">The value the attribute is to be set to.</div> </li> <li class="param"> <code class="param-name">attrName</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description">The name of the attribute being set.</div> </li> <li class="param"> <code class="param-name">subAttrName</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description">If setting a property within the attribute's value, the name of the sub-attribute property being set.</div> </li> </ul> </li> </ul> </div> </div> </div> <div id="attr_xAxis" class="attr item inherited"> <a name="config_xAxis"></a> <h3 class="name"><code>xAxis</code></h3> <span class="type"><a href="../classes/Axis.html" class="crosslink">Axis</a></span> <div class="meta"> <p>Inherited from <a href="../classes/CartesianSeries.html#attr_xAxis">CartesianSeries</a>: <a href="../files/charts_js_CartesianSeries.js.html#l804"><code>charts&#x2F;js&#x2F;CartesianSeries.js:804</code></a> </p> </div> <div class="description"> <p>Reference to the <code>Axis</code> instance used for assigning x-values to the graph.</p> </div> <div class="emits box"> <h4>Fires event <code>xAxisChange</code></h4> <p> Fires when the value for the configuration attribute <code>xAxis</code> is changed. You can listen for the event using the <code>on</code> method if you wish to be notified before the attribute's value has changed, or using the <code>after</code> method if you wish to be notified after the attribute's value has changed. </p> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">e</code> <span class="type"><a href="../classes/EventFacade.html" class="crosslink">EventFacade</a></span> <div class="param-description"> An Event Facade object with the following attribute-specific properties added: </div> <ul class="params-list"> <li class="param"> <code class="param-name">prevVal</code> <span class="type">Any</span> <div class="param-description">The value of the attribute, prior to it being set.</div> </li> <li class="param"> <code class="param-name">newVal</code> <span class="type">Any</span> <div class="param-description">The value the attribute is to be set to.</div> </li> <li class="param"> <code class="param-name">attrName</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description">The name of the attribute being set.</div> </li> <li class="param"> <code class="param-name">subAttrName</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description">If setting a property within the attribute's value, the name of the sub-attribute property being set.</div> </li> </ul> </li> </ul> </div> </div> </div> <div id="attr_xcoords" class="attr item inherited"> <a name="config_xcoords"></a> <h3 class="name"><code>xcoords</code></h3> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array" class="crosslink external" target="_blank">Array</a></span> <div class="meta"> <p>Inherited from <a href="../classes/CartesianSeries.html#attr_xcoords">CartesianSeries</a>: <a href="../files/charts_js_CartesianSeries.js.html#l788"><code>charts&#x2F;js&#x2F;CartesianSeries.js:788</code></a> </p> </div> <div class="description"> <p>x coordinates for the series.</p> </div> <div class="emits box"> <h4>Fires event <code>xcoordsChange</code></h4> <p> Fires when the value for the configuration attribute <code>xcoords</code> is changed. You can listen for the event using the <code>on</code> method if you wish to be notified before the attribute's value has changed, or using the <code>after</code> method if you wish to be notified after the attribute's value has changed. </p> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">e</code> <span class="type"><a href="../classes/EventFacade.html" class="crosslink">EventFacade</a></span> <div class="param-description"> An Event Facade object with the following attribute-specific properties added: </div> <ul class="params-list"> <li class="param"> <code class="param-name">prevVal</code> <span class="type">Any</span> <div class="param-description">The value of the attribute, prior to it being set.</div> </li> <li class="param"> <code class="param-name">newVal</code> <span class="type">Any</span> <div class="param-description">The value the attribute is to be set to.</div> </li> <li class="param"> <code class="param-name">attrName</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description">The name of the attribute being set.</div> </li> <li class="param"> <code class="param-name">subAttrName</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description">If setting a property within the attribute's value, the name of the sub-attribute property being set.</div> </li> </ul> </li> </ul> </div> </div> </div> <div id="attr_xData" class="attr item inherited"> <a name="config_xData"></a> <h3 class="name"><code>xData</code></h3> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array" class="crosslink external" target="_blank">Array</a></span> <div class="meta"> <p>Inherited from <a href="../classes/CartesianSeries.html#attr_xData">CartesianSeries</a>: <a href="../files/charts_js_CartesianSeries.js.html#l864"><code>charts&#x2F;js&#x2F;CartesianSeries.js:864</code></a> </p> </div> <div class="description"> <p>Array of x values for the series.</p> </div> <div class="emits box"> <h4>Fires event <code>xDataChange</code></h4> <p> Fires when the value for the configuration attribute <code>xData</code> is changed. You can listen for the event using the <code>on</code> method if you wish to be notified before the attribute's value has changed, or using the <code>after</code> method if you wish to be notified after the attribute's value has changed. </p> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">e</code> <span class="type"><a href="../classes/EventFacade.html" class="crosslink">EventFacade</a></span> <div class="param-description"> An Event Facade object with the following attribute-specific properties added: </div> <ul class="params-list"> <li class="param"> <code class="param-name">prevVal</code> <span class="type">Any</span> <div class="param-description">The value of the attribute, prior to it being set.</div> </li> <li class="param"> <code class="param-name">newVal</code> <span class="type">Any</span> <div class="param-description">The value the attribute is to be set to.</div> </li> <li class="param"> <code class="param-name">attrName</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description">The name of the attribute being set.</div> </li> <li class="param"> <code class="param-name">subAttrName</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description">If setting a property within the attribute's value, the name of the sub-attribute property being set.</div> </li> </ul> </li> </ul> </div> </div> </div> <div id="attr_xDisplayName" class="attr item inherited"> <a name="config_xDisplayName"></a> <h3 class="name"><code>xDisplayName</code></h3> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="meta"> <p>Inherited from <a href="../classes/CartesianSeries.html#attr_xDisplayName">CartesianSeries</a>: <a href="../files/charts_js_CartesianSeries.js.html#l665"><code>charts&#x2F;js&#x2F;CartesianSeries.js:665</code></a> </p> </div> <div class="description"> <p>Name used for for displaying data related to the x-coordinate.</p> </div> <div class="emits box"> <h4>Fires event <code>xDisplayNameChange</code></h4> <p> Fires when the value for the configuration attribute <code>xDisplayName</code> is changed. You can listen for the event using the <code>on</code> method if you wish to be notified before the attribute's value has changed, or using the <code>after</code> method if you wish to be notified after the attribute's value has changed. </p> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">e</code> <span class="type"><a href="../classes/EventFacade.html" class="crosslink">EventFacade</a></span> <div class="param-description"> An Event Facade object with the following attribute-specific properties added: </div> <ul class="params-list"> <li class="param"> <code class="param-name">prevVal</code> <span class="type">Any</span> <div class="param-description">The value of the attribute, prior to it being set.</div> </li> <li class="param"> <code class="param-name">newVal</code> <span class="type">Any</span> <div class="param-description">The value the attribute is to be set to.</div> </li> <li class="param"> <code class="param-name">attrName</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description">The name of the attribute being set.</div> </li> <li class="param"> <code class="param-name">subAttrName</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description">If setting a property within the attribute's value, the name of the sub-attribute property being set.</div> </li> </ul> </li> </ul> </div> </div> </div> <div id="attr_xKey" class="attr item inherited"> <a name="config_xKey"></a> <h3 class="name"><code>xKey</code></h3> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="meta"> <p>Inherited from <a href="../classes/CartesianSeries.html#attr_xKey">CartesianSeries</a>: <a href="../files/charts_js_CartesianSeries.js.html#l822"><code>charts&#x2F;js&#x2F;CartesianSeries.js:822</code></a> </p> </div> <div class="description"> <p>Indicates which array to from the hash of value arrays in the x-axis <code>Axis</code> instance.</p> </div> <div class="emits box"> <h4>Fires event <code>xKeyChange</code></h4> <p> Fires when the value for the configuration attribute <code>xKey</code> is changed. You can listen for the event using the <code>on</code> method if you wish to be notified before the attribute's value has changed, or using the <code>after</code> method if you wish to be notified after the attribute's value has changed. </p> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">e</code> <span class="type"><a href="../classes/EventFacade.html" class="crosslink">EventFacade</a></span> <div class="param-description"> An Event Facade object with the following attribute-specific properties added: </div> <ul class="params-list"> <li class="param"> <code class="param-name">prevVal</code> <span class="type">Any</span> <div class="param-description">The value of the attribute, prior to it being set.</div> </li> <li class="param"> <code class="param-name">newVal</code> <span class="type">Any</span> <div class="param-description">The value the attribute is to be set to.</div> </li> <li class="param"> <code class="param-name">attrName</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description">The name of the attribute being set.</div> </li> <li class="param"> <code class="param-name">subAttrName</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description">If setting a property within the attribute's value, the name of the sub-attribute property being set.</div> </li> </ul> </li> </ul> </div> </div> </div> <div id="attr_xMarkerPlane" class="attr item inherited"> <a name="config_xMarkerPlane"></a> <h3 class="name"><code>xMarkerPlane</code></h3> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array" class="crosslink external" target="_blank">Array</a></span> <div class="meta"> <p>Inherited from <a href="../classes/CartesianSeries.html#attr_xMarkerPlane">CartesianSeries</a>: <a href="../files/charts_js_CartesianSeries.js.html#l880"><code>charts&#x2F;js&#x2F;CartesianSeries.js:880</code></a> </p> </div> <div class="description"> <p>Collection of area maps along the xAxis. Used to determine mouseover for multiple series.</p> </div> <div class="emits box"> <h4>Fires event <code>xMarkerPlaneChange</code></h4> <p> Fires when the value for the configuration attribute <code>xMarkerPlane</code> is changed. You can listen for the event using the <code>on</code> method if you wish to be notified before the attribute's value has changed, or using the <code>after</code> method if you wish to be notified after the attribute's value has changed. </p> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">e</code> <span class="type"><a href="../classes/EventFacade.html" class="crosslink">EventFacade</a></span> <div class="param-description"> An Event Facade object with the following attribute-specific properties added: </div> <ul class="params-list"> <li class="param"> <code class="param-name">prevVal</code> <span class="type">Any</span> <div class="param-description">The value of the attribute, prior to it being set.</div> </li> <li class="param"> <code class="param-name">newVal</code> <span class="type">Any</span> <div class="param-description">The value the attribute is to be set to.</div> </li> <li class="param"> <code class="param-name">attrName</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description">The name of the attribute being set.</div> </li> <li class="param"> <code class="param-name">subAttrName</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description">If setting a property within the attribute's value, the name of the sub-attribute property being set.</div> </li> </ul> </li> </ul> </div> </div> </div> <div id="attr_xMarkerPlaneOffset" class="attr item inherited"> <a name="config_xMarkerPlaneOffset"></a> <h3 class="name"><code>xMarkerPlaneOffset</code></h3> <span class="type"><a href="../classes/Number.html" class="crosslink">Number</a></span> <div class="meta"> <p>Inherited from <a href="../classes/CartesianSeries.html#attr_xMarkerPlaneOffset">CartesianSeries</a>: <a href="../files/charts_js_CartesianSeries.js.html#l898"><code>charts&#x2F;js&#x2F;CartesianSeries.js:898</code></a> </p> </div> <div class="description"> <p>Distance from a data coordinate to the left/right for setting a hotspot.</p> </div> <div class="emits box"> <h4>Fires event <code>xMarkerPlaneOffsetChange</code></h4> <p> Fires when the value for the configuration attribute <code>xMarkerPlaneOffset</code> is changed. You can listen for the event using the <code>on</code> method if you wish to be notified before the attribute's value has changed, or using the <code>after</code> method if you wish to be notified after the attribute's value has changed. </p> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">e</code> <span class="type"><a href="../classes/EventFacade.html" class="crosslink">EventFacade</a></span> <div class="param-description"> An Event Facade object with the following attribute-specific properties added: </div> <ul class="params-list"> <li class="param"> <code class="param-name">prevVal</code> <span class="type">Any</span> <div class="param-description">The value of the attribute, prior to it being set.</div> </li> <li class="param"> <code class="param-name">newVal</code> <span class="type">Any</span> <div class="param-description">The value the attribute is to be set to.</div> </li> <li class="param"> <code class="param-name">attrName</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description">The name of the attribute being set.</div> </li> <li class="param"> <code class="param-name">subAttrName</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description">If setting a property within the attribute's value, the name of the sub-attribute property being set.</div> </li> </ul> </li> </ul> </div> </div> </div> <div id="attr_yAxis" class="attr item inherited"> <a name="config_yAxis"></a> <h3 class="name"><code>yAxis</code></h3> <span class="type"><a href="../classes/Axis.html" class="crosslink">Axis</a></span> <div class="meta"> <p>Inherited from <a href="../classes/CartesianSeries.html#attr_yAxis">CartesianSeries</a>: <a href="../files/charts_js_CartesianSeries.js.html#l813"><code>charts&#x2F;js&#x2F;CartesianSeries.js:813</code></a> </p> </div> <div class="description"> <p>Reference to the <code>Axis</code> instance used for assigning y-values to the graph.</p> </div> <div class="emits box"> <h4>Fires event <code>yAxisChange</code></h4> <p> Fires when the value for the configuration attribute <code>yAxis</code> is changed. You can listen for the event using the <code>on</code> method if you wish to be notified before the attribute's value has changed, or using the <code>after</code> method if you wish to be notified after the attribute's value has changed. </p> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">e</code> <span class="type"><a href="../classes/EventFacade.html" class="crosslink">EventFacade</a></span> <div class="param-description"> An Event Facade object with the following attribute-specific properties added: </div> <ul class="params-list"> <li class="param"> <code class="param-name">prevVal</code> <span class="type">Any</span> <div class="param-description">The value of the attribute, prior to it being set.</div> </li> <li class="param"> <code class="param-name">newVal</code> <span class="type">Any</span> <div class="param-description">The value the attribute is to be set to.</div> </li> <li class="param"> <code class="param-name">attrName</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description">The name of the attribute being set.</div> </li> <li class="param"> <code class="param-name">subAttrName</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description">If setting a property within the attribute's value, the name of the sub-attribute property being set.</div> </li> </ul> </li> </ul> </div> </div> </div> <div id="attr_ycoords" class="attr item inherited"> <a name="config_ycoords"></a> <h3 class="name"><code>ycoords</code></h3> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array" class="crosslink external" target="_blank">Array</a></span> <div class="meta"> <p>Inherited from <a href="../classes/CartesianSeries.html#attr_ycoords">CartesianSeries</a>: <a href="../files/charts_js_CartesianSeries.js.html#l796"><code>charts&#x2F;js&#x2F;CartesianSeries.js:796</code></a> </p> </div> <div class="description"> <p>y coordinates for the series</p> </div> <div class="emits box"> <h4>Fires event <code>ycoordsChange</code></h4> <p> Fires when the value for the configuration attribute <code>ycoords</code> is changed. You can listen for the event using the <code>on</code> method if you wish to be notified before the attribute's value has changed, or using the <code>after</code> method if you wish to be notified after the attribute's value has changed. </p> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">e</code> <span class="type"><a href="../classes/EventFacade.html" class="crosslink">EventFacade</a></span> <div class="param-description"> An Event Facade object with the following attribute-specific properties added: </div> <ul class="params-list"> <li class="param"> <code class="param-name">prevVal</code> <span class="type">Any</span> <div class="param-description">The value of the attribute, prior to it being set.</div> </li> <li class="param"> <code class="param-name">newVal</code> <span class="type">Any</span> <div class="param-description">The value the attribute is to be set to.</div> </li> <li class="param"> <code class="param-name">attrName</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description">The name of the attribute being set.</div> </li> <li class="param"> <code class="param-name">subAttrName</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description">If setting a property within the attribute's value, the name of the sub-attribute property being set.</div> </li> </ul> </li> </ul> </div> </div> </div> <div id="attr_yData" class="attr item inherited"> <a name="config_yData"></a> <h3 class="name"><code>yData</code></h3> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array" class="crosslink external" target="_blank">Array</a></span> <div class="meta"> <p>Inherited from <a href="../classes/CartesianSeries.html#attr_yData">CartesianSeries</a>: <a href="../files/charts_js_CartesianSeries.js.html#l872"><code>charts&#x2F;js&#x2F;CartesianSeries.js:872</code></a> </p> </div> <div class="description"> <p>Array of y values for the series.</p> </div> <div class="emits box"> <h4>Fires event <code>yDataChange</code></h4> <p> Fires when the value for the configuration attribute <code>yData</code> is changed. You can listen for the event using the <code>on</code> method if you wish to be notified before the attribute's value has changed, or using the <code>after</code> method if you wish to be notified after the attribute's value has changed. </p> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">e</code> <span class="type"><a href="../classes/EventFacade.html" class="crosslink">EventFacade</a></span> <div class="param-description"> An Event Facade object with the following attribute-specific properties added: </div> <ul class="params-list"> <li class="param"> <code class="param-name">prevVal</code> <span class="type">Any</span> <div class="param-description">The value of the attribute, prior to it being set.</div> </li> <li class="param"> <code class="param-name">newVal</code> <span class="type">Any</span> <div class="param-description">The value the attribute is to be set to.</div> </li> <li class="param"> <code class="param-name">attrName</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description">The name of the attribute being set.</div> </li> <li class="param"> <code class="param-name">subAttrName</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description">If setting a property within the attribute's value, the name of the sub-attribute property being set.</div> </li> </ul> </li> </ul> </div> </div> </div> <div id="attr_yDisplayName" class="attr item inherited"> <a name="config_yDisplayName"></a> <h3 class="name"><code>yDisplayName</code></h3> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="meta"> <p>Inherited from <a href="../classes/CartesianSeries.html#attr_yDisplayName">CartesianSeries</a>: <a href="../files/charts_js_CartesianSeries.js.html#l684"><code>charts&#x2F;js&#x2F;CartesianSeries.js:684</code></a> </p> </div> <div class="description"> <p>Name used for for displaying data related to the y-coordinate.</p> </div> <div class="emits box"> <h4>Fires event <code>yDisplayNameChange</code></h4> <p> Fires when the value for the configuration attribute <code>yDisplayName</code> is changed. You can listen for the event using the <code>on</code> method if you wish to be notified before the attribute's value has changed, or using the <code>after</code> method if you wish to be notified after the attribute's value has changed. </p> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">e</code> <span class="type"><a href="../classes/EventFacade.html" class="crosslink">EventFacade</a></span> <div class="param-description"> An Event Facade object with the following attribute-specific properties added: </div> <ul class="params-list"> <li class="param"> <code class="param-name">prevVal</code> <span class="type">Any</span> <div class="param-description">The value of the attribute, prior to it being set.</div> </li> <li class="param"> <code class="param-name">newVal</code> <span class="type">Any</span> <div class="param-description">The value the attribute is to be set to.</div> </li> <li class="param"> <code class="param-name">attrName</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description">The name of the attribute being set.</div> </li> <li class="param"> <code class="param-name">subAttrName</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description">If setting a property within the attribute's value, the name of the sub-attribute property being set.</div> </li> </ul> </li> </ul> </div> </div> </div> <div id="attr_yKey" class="attr item inherited"> <a name="config_yKey"></a> <h3 class="name"><code>yKey</code></h3> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="meta"> <p>Inherited from <a href="../classes/CartesianSeries.html#attr_yKey">CartesianSeries</a>: <a href="../files/charts_js_CartesianSeries.js.html#l843"><code>charts&#x2F;js&#x2F;CartesianSeries.js:843</code></a> </p> </div> <div class="description"> <p>Indicates which array to from the hash of value arrays in the y-axis <code>Axis</code> instance.</p> </div> <div class="emits box"> <h4>Fires event <code>yKeyChange</code></h4> <p> Fires when the value for the configuration attribute <code>yKey</code> is changed. You can listen for the event using the <code>on</code> method if you wish to be notified before the attribute's value has changed, or using the <code>after</code> method if you wish to be notified after the attribute's value has changed. </p> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">e</code> <span class="type"><a href="../classes/EventFacade.html" class="crosslink">EventFacade</a></span> <div class="param-description"> An Event Facade object with the following attribute-specific properties added: </div> <ul class="params-list"> <li class="param"> <code class="param-name">prevVal</code> <span class="type">Any</span> <div class="param-description">The value of the attribute, prior to it being set.</div> </li> <li class="param"> <code class="param-name">newVal</code> <span class="type">Any</span> <div class="param-description">The value the attribute is to be set to.</div> </li> <li class="param"> <code class="param-name">attrName</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description">The name of the attribute being set.</div> </li> <li class="param"> <code class="param-name">subAttrName</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description">If setting a property within the attribute's value, the name of the sub-attribute property being set.</div> </li> </ul> </li> </ul> </div> </div> </div> <div id="attr_yMarkerPlane" class="attr item inherited"> <a name="config_yMarkerPlane"></a> <h3 class="name"><code>yMarkerPlane</code></h3> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array" class="crosslink external" target="_blank">Array</a></span> <div class="meta"> <p>Inherited from <a href="../classes/CartesianSeries.html#attr_yMarkerPlane">CartesianSeries</a>: <a href="../files/charts_js_CartesianSeries.js.html#l889"><code>charts&#x2F;js&#x2F;CartesianSeries.js:889</code></a> </p> </div> <div class="description"> <p>Collection of area maps along the yAxis. Used to determine mouseover for multiple series.</p> </div> <div class="emits box"> <h4>Fires event <code>yMarkerPlaneChange</code></h4> <p> Fires when the value for the configuration attribute <code>yMarkerPlane</code> is changed. You can listen for the event using the <code>on</code> method if you wish to be notified before the attribute's value has changed, or using the <code>after</code> method if you wish to be notified after the attribute's value has changed. </p> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">e</code> <span class="type"><a href="../classes/EventFacade.html" class="crosslink">EventFacade</a></span> <div class="param-description"> An Event Facade object with the following attribute-specific properties added: </div> <ul class="params-list"> <li class="param"> <code class="param-name">prevVal</code> <span class="type">Any</span> <div class="param-description">The value of the attribute, prior to it being set.</div> </li> <li class="param"> <code class="param-name">newVal</code> <span class="type">Any</span> <div class="param-description">The value the attribute is to be set to.</div> </li> <li class="param"> <code class="param-name">attrName</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description">The name of the attribute being set.</div> </li> <li class="param"> <code class="param-name">subAttrName</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description">If setting a property within the attribute's value, the name of the sub-attribute property being set.</div> </li> </ul> </li> </ul> </div> </div> </div> <div id="attr_yMarkerPlaneOffset" class="attr item inherited"> <a name="config_yMarkerPlaneOffset"></a> <h3 class="name"><code>yMarkerPlaneOffset</code></h3> <span class="type"><a href="../classes/Number.html" class="crosslink">Number</a></span> <div class="meta"> <p>Inherited from <a href="../classes/CartesianSeries.html#attr_yMarkerPlaneOffset">CartesianSeries</a>: <a href="../files/charts_js_CartesianSeries.js.html#l915"><code>charts&#x2F;js&#x2F;CartesianSeries.js:915</code></a> </p> </div> <div class="description"> <p>Distance from a data coordinate to the top/bottom for setting a hotspot.</p> </div> <div class="emits box"> <h4>Fires event <code>yMarkerPlaneOffsetChange</code></h4> <p> Fires when the value for the configuration attribute <code>yMarkerPlaneOffset</code> is changed. You can listen for the event using the <code>on</code> method if you wish to be notified before the attribute's value has changed, or using the <code>after</code> method if you wish to be notified after the attribute's value has changed. </p> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">e</code> <span class="type"><a href="../classes/EventFacade.html" class="crosslink">EventFacade</a></span> <div class="param-description"> An Event Facade object with the following attribute-specific properties added: </div> <ul class="params-list"> <li class="param"> <code class="param-name">prevVal</code> <span class="type">Any</span> <div class="param-description">The value of the attribute, prior to it being set.</div> </li> <li class="param"> <code class="param-name">newVal</code> <span class="type">Any</span> <div class="param-description">The value the attribute is to be set to.</div> </li> <li class="param"> <code class="param-name">attrName</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description">The name of the attribute being set.</div> </li> <li class="param"> <code class="param-name">subAttrName</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description">If setting a property within the attribute's value, the name of the sub-attribute property being set.</div> </li> </ul> </li> </ul> </div> </div> </div> </div> <div id="events" class="api-class-tabpanel"> <h2 class="off-left">Events</h2> <div id="event_destroy" class="events item inherited"> <h3 class="name"><code>destroy</code></h3> <span class="type"></span> <div class="meta"> <p>Inherited from <a href="../classes/BaseObservable.html#event_destroy">BaseObservable</a>: <a href="../files/base_js_BaseObservable.js.html#l163"><code>base&#x2F;js&#x2F;BaseObservable.js:163</code></a> </p> </div> <div class="description"> <p> Lifecycle event for the destroy phase, fired prior to destruction. Invoking the preventDefault method on the event object provided to subscribers will prevent destruction from proceeding. </p> <p> Subscribers to the &quot;after&quot; moment of this event, will be notified after destruction is complete (and as a result cannot prevent destruction). </p> </div> <div class="params"> <h4>Event Payload:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">e</code> <span class="type"><a href="../classes/EventFacade.html" class="crosslink">EventFacade</a></span> <div class="param-description"> <p>Event object</p> </div> </li> </ul> </div> </div> <div id="event_init" class="events item inherited"> <h3 class="name"><code>init</code></h3> <span class="type"></span> <div class="meta"> <p>Inherited from <a href="../classes/BaseObservable.html#event_init">BaseObservable</a>: <a href="../files/base_js_BaseObservable.js.html#l62"><code>base&#x2F;js&#x2F;BaseObservable.js:62</code></a> </p> </div> <div class="description"> <p> Lifecycle event for the init phase, fired prior to initialization. Invoking the preventDefault() method on the event object provided to subscribers will prevent initialization from occuring. </p> <p> Subscribers to the &quot;after&quot; momemt of this event, will be notified after initialization of the object is complete (and therefore cannot prevent initialization). </p> </div> <div class="params"> <h4>Event Payload:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">e</code> <span class="type"><a href="../classes/EventFacade.html" class="crosslink">EventFacade</a></span> <div class="param-description"> <p>Event object, with a cfg property which refers to the configuration object passed to the constructor.</p> </div> </li> </ul> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> <script src="../assets/vendor/prettify/prettify-min.js"></script> <script>prettyPrint();</script> <script src="../assets/js/yui-prettify.js"></script> <script src="../assets/../api.js"></script> <script src="../assets/js/api-filter.js"></script> <script src="../assets/js/api-list.js"></script> <script src="../assets/js/api-search.js"></script> <script src="../assets/js/apidocs.js"></script> </body> </html>
mabetle/mps
_libs/yui-3.18.1/api/classes/LineSeries.html
HTML
apache-2.0
551,666
/* * 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 org.apache.drill.exec.store.excel; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonTypeName; import org.apache.drill.common.PlanStringBuilder; import org.apache.drill.common.logical.FormatPluginConfig; import org.apache.drill.exec.store.excel.ExcelBatchReader.ExcelReaderConfig; import java.util.Arrays; import java.util.Collections; import java.util.List; import java.util.Objects; @JsonTypeName(ExcelFormatPlugin.DEFAULT_NAME) @JsonInclude(JsonInclude.Include.NON_DEFAULT) public class ExcelFormatConfig implements FormatPluginConfig { // This is the theoretical maximum number of rows in an Excel spreadsheet private final int MAX_ROWS = 1048576; // TODO: Bad things happen if fields change after created. // That is, if this config is stored in the plugin registry, then // later modified. // Change all these to be private final, and add constructor. // See DRILL-7612. public List<String> extensions = Collections.singletonList("xlsx"); public int headerRow; public int lastRow = MAX_ROWS; public int firstColumn; public int lastColumn; public boolean allTextMode; public String sheetName = ""; public int getHeaderRow() { return headerRow; } public int getLastRow() { return lastRow; } public String getSheetName() { return sheetName; } public int getFirstColumn() { return firstColumn; } public int getLastColumn() { return lastColumn; } public boolean getAllTextMode() { return allTextMode; } public ExcelReaderConfig getReaderConfig(ExcelFormatPlugin plugin) { ExcelReaderConfig readerConfig = new ExcelReaderConfig(plugin); return readerConfig; } @JsonInclude(JsonInclude.Include.NON_DEFAULT) public List<String> getExtensions() { return extensions; } @Override public int hashCode() { return Arrays.hashCode( new Object[]{extensions, headerRow, lastRow, firstColumn, lastColumn, allTextMode, sheetName}); } @Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null || getClass() != obj.getClass()) { return false; } ExcelFormatConfig other = (ExcelFormatConfig) obj; return Objects.equals(extensions, other.extensions) && Objects.equals(headerRow, other.headerRow) && Objects.equals(lastRow, other.lastRow) && Objects.equals(firstColumn, other.firstColumn) && Objects.equals(lastColumn, other.lastColumn) && Objects.equals(allTextMode, other.allTextMode) && Objects.equals(sheetName, other.sheetName); } @Override public String toString() { return new PlanStringBuilder(this) .field("extensions", extensions) .field("sheetName", sheetName) .field("headerRow", headerRow) .field("lastRow", lastRow) .field("firstColumn", firstColumn) .field("lastColumn", lastColumn) .field("allTextMode", allTextMode) .toString(); } }
arina-ielchiieva/drill
contrib/format-excel/src/main/java/org/apache/drill/exec/store/excel/ExcelFormatConfig.java
Java
apache-2.0
3,818
// Automatically generated by xdrgen // DO NOT EDIT or your changes may be overwritten using System; namespace stellar_dotnet_sdk.xdr { // === xdr source ============================================================ // struct LedgerEntry // { // uint32 lastModifiedLedgerSeq; // ledger the LedgerEntry was last changed // // union switch (LedgerEntryType type) // { // case ACCOUNT: // AccountEntry account; // case TRUSTLINE: // TrustLineEntry trustLine; // case OFFER: // OfferEntry offer; // case DATA: // DataEntry data; // } // data; // // // reserved for future use // union switch (int v) // { // case 0: // void; // } // ext; // }; // =========================================================================== public class LedgerEntry { public LedgerEntry() { } public Uint32 LastModifiedLedgerSeq { get; set; } public LedgerEntryData Data { get; set; } public LedgerEntryExt Ext { get; set; } public static void Encode(XdrDataOutputStream stream, LedgerEntry encodedLedgerEntry) { Uint32.Encode(stream, encodedLedgerEntry.LastModifiedLedgerSeq); LedgerEntryData.Encode(stream, encodedLedgerEntry.Data); LedgerEntryExt.Encode(stream, encodedLedgerEntry.Ext); } public static LedgerEntry Decode(XdrDataInputStream stream) { LedgerEntry decodedLedgerEntry = new LedgerEntry(); decodedLedgerEntry.LastModifiedLedgerSeq = Uint32.Decode(stream); decodedLedgerEntry.Data = LedgerEntryData.Decode(stream); decodedLedgerEntry.Ext = LedgerEntryExt.Decode(stream); return decodedLedgerEntry; } public class LedgerEntryData { public LedgerEntryData() { } public LedgerEntryType Discriminant { get; set; } = new LedgerEntryType(); public AccountEntry Account { get; set; } public TrustLineEntry TrustLine { get; set; } public OfferEntry Offer { get; set; } public DataEntry Data { get; set; } public static void Encode(XdrDataOutputStream stream, LedgerEntryData encodedLedgerEntryData) { stream.WriteInt((int) encodedLedgerEntryData.Discriminant.InnerValue); switch (encodedLedgerEntryData.Discriminant.InnerValue) { case LedgerEntryType.LedgerEntryTypeEnum.ACCOUNT: AccountEntry.Encode(stream, encodedLedgerEntryData.Account); break; case LedgerEntryType.LedgerEntryTypeEnum.TRUSTLINE: TrustLineEntry.Encode(stream, encodedLedgerEntryData.TrustLine); break; case LedgerEntryType.LedgerEntryTypeEnum.OFFER: OfferEntry.Encode(stream, encodedLedgerEntryData.Offer); break; case LedgerEntryType.LedgerEntryTypeEnum.DATA: DataEntry.Encode(stream, encodedLedgerEntryData.Data); break; } } public static LedgerEntryData Decode(XdrDataInputStream stream) { LedgerEntryData decodedLedgerEntryData = new LedgerEntryData(); LedgerEntryType discriminant = LedgerEntryType.Decode(stream); decodedLedgerEntryData.Discriminant = discriminant; switch (decodedLedgerEntryData.Discriminant.InnerValue) { case LedgerEntryType.LedgerEntryTypeEnum.ACCOUNT: decodedLedgerEntryData.Account = AccountEntry.Decode(stream); break; case LedgerEntryType.LedgerEntryTypeEnum.TRUSTLINE: decodedLedgerEntryData.TrustLine = TrustLineEntry.Decode(stream); break; case LedgerEntryType.LedgerEntryTypeEnum.OFFER: decodedLedgerEntryData.Offer = OfferEntry.Decode(stream); break; case LedgerEntryType.LedgerEntryTypeEnum.DATA: decodedLedgerEntryData.Data = DataEntry.Decode(stream); break; } return decodedLedgerEntryData; } } public class LedgerEntryExt { public LedgerEntryExt() { } public int Discriminant { get; set; } = new int(); public static void Encode(XdrDataOutputStream stream, LedgerEntryExt encodedLedgerEntryExt) { stream.WriteInt((int) encodedLedgerEntryExt.Discriminant); switch (encodedLedgerEntryExt.Discriminant) { case 0: break; } } public static LedgerEntryExt Decode(XdrDataInputStream stream) { LedgerEntryExt decodedLedgerEntryExt = new LedgerEntryExt(); int discriminant = stream.ReadInt(); decodedLedgerEntryExt.Discriminant = discriminant; switch (decodedLedgerEntryExt.Discriminant) { case 0: break; } return decodedLedgerEntryExt; } } } }
elucidsoft/dotnetcore-stellar-sdk
stellar-dotnet-sdk-xdr/generated/LedgerEntry.cs
C#
apache-2.0
5,596
/** * Copyright 2013 Yahoo! Inc. * 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 * 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. See accompanying LICENSE file. */ /** * @file compose.h * @addtogroup Compose * @brief Composition */ #ifndef _YMAGINE_DESIGN_H #define _YMAGINE_DESIGN_H 1 #include "ymagine/ymagine.h" #ifdef __cplusplus extern "C" { #endif /** * @defgroup Design Design * * This module provides API for some basic design components * * @{ */ /** * @brief Create a Vbitmap with an orb mask * @ingroup Design * * @param canvas Vbitmap to render the orb into * @param sz size (width and height) of bitmap * @return If succesfully return Vbitmap with orb mask rendered as solid black on transparent background */ int VbitmapOrbLoad(Vbitmap *canvas, int sz); /** * @brief Render group orb * @ingroup Design * * @param canvas Vbitmap to render into * @param ntiles total number of images to compose into canvas * @param tileid index of the tile to render * @param channelin input channel for the image to render * @return If succesfully return YMAGINE_OK */ int VbitmapOrbRenderTile(Vbitmap *canvas, int ntiles, int tileid, Ychannel* channelin); /** * @brief Render group orb * @ingroup Design * * @param canvas Vbitmap to render into * @param ntiles total number of images to compose into canvas * @param tileid index of the tile to render * @param srcbitmap source bitmap to render into tile * @return If succesfully return YMAGINE_OK */ int VbitmapOrbRenderTileBitmap(Vbitmap *canvas, int ntiles, int tileid, Vbitmap *srcbitmap); /** * @} */ #ifdef __cplusplus }; #endif #endif /* _YMAGINE_DESIGN_H */
yahoo/ygloo-ymagine
jni/include/ymagine/design.h
C
apache-2.0
2,109
package fr.javatronic.blog.massive.annotation1.sub1; import fr.javatronic.blog.processor.Annotation_001; @Annotation_001 public class Class_7254 { }
lesaint/experimenting-annotation-processing
experimenting-rounds/massive-count-of-annotated-classes/src/main/java/fr/javatronic/blog/massive/annotation1/sub1/Class_7254.java
Java
apache-2.0
151
// Copyright 2018 Istio Authors. All Rights Reserved. // // 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 // // 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 rules import ( "go/ast" "go/token" "istio.io/tools/pkg/checker" ) // SkipIssue requires that a `t.Skip()` call in test function should contain url to a issue. // This helps to keep tracking of the issue that causes a test to be skipped. // For example, this is a valid call, // t.Skip("https://github.com/istio/istio/issues/6012") // t.SkipNow() and t.Skipf() are not allowed. type SkipIssue struct { skipArgsRegex string // Defines arg in t.Skip() that should match. } // NewSkipByIssue creates and returns a SkipIssue object. func NewSkipByIssue() *SkipIssue { return &SkipIssue{ skipArgsRegex: `https:\/\/github\.com\/istio\/istio\/issues\/[0-9]+`, } } // GetID returns skip_by_issue_rule. func (lr *SkipIssue) GetID() string { return GetCallerFileName() } // Check returns verifies if aNode is a valid t.Skip(), or aNode is not t.Skip(), t.SkipNow(), // and t.Skipf(). If verification fails lrp creates a new report. // This is an example for valid call t.Skip("https://github.com/istio/istio/issues/6012") // These calls are not valid: // t.Skip("https://istio.io/"), // t.SkipNow(), // t.Skipf("https://istio.io/%d", x). func (lr *SkipIssue) Check(aNode ast.Node, fs *token.FileSet, lrp *checker.Report) { if fn, isFn := aNode.(*ast.FuncDecl); isFn { for _, bd := range fn.Body.List { if ok, _ := matchFunc(bd, "t", "SkipNow"); ok { lrp.AddItem(fs.Position(bd.Pos()), lr.GetID(), "Only t.Skip() is allowed and t.Skip() should contain an url to GitHub issue.") } else if ok, _ := matchFunc(bd, "t", "Skipf"); ok { lrp.AddItem(fs.Position(bd.Pos()), lr.GetID(), "Only t.Skip() is allowed and t.Skip() should contain an url to GitHub issue.") } else if ok, fcall := matchFunc(bd, "t", "Skip"); ok && !matchFuncArgs(fcall, lr.skipArgsRegex) { lrp.AddItem(fs.Position(bd.Pos()), lr.GetID(), "Only t.Skip() is allowed and t.Skip() should contain an url to GitHub issue.") } } } }
istio/tools
cmd/testlinter/rules/skip_issue.go
GO
apache-2.0
2,546
/* * Copyright (c) 2015 Henry Addo * * 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 * * 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.addhen.android.raiburari.presentation.location; import android.content.Context; import android.location.Address; import android.location.Location; import com.addhen.android.raiburari.presentation.location.geocoder.GeocodeObservable; import com.addhen.android.raiburari.presentation.location.geocoder.ReverseGeocodeObservable; import io.reactivex.Observable; import java.util.List; /** * Location manager that returns observables for getting the location of the user's device. * You can reverse geocode to get the location name based on latitude and longitude and vice versa * * @author Ushahidi Team <team@ushahidi.com> */ public class AppLocationManager { private final Context mContext; public AppLocationManager(Context context) { mContext = context; } public Observable<Location> getLastKnownLocation() { return LastKnownLocationObservable.createObservable(mContext); } public Observable<Location> getUpdatedLocation() { return LocationUpdatesObservable.createObservable(mContext); } public Observable<List<Address>> getReverseGeocode(double latitude, double longitude, int maxResults) { return ReverseGeocodeObservable.createObservable(mContext, latitude, longitude, maxResults); } public Observable<List<Address>> getGeocode(String locationName, int maxResults) { return GeocodeObservable.createObservable(mContext, locationName, maxResults); } }
eyedol/raiburari
raiburari/src/main/java/com/addhen/android/raiburari/presentation/location/AppLocationManager.java
Java
apache-2.0
2,024
// // Copyright 2016-2018 The Last Pickle Ltd // // 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 // // 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. import jQuery from "jquery"; import React from "react"; import ReactDOM from "react-dom"; import Cookies from "js-cookie"; import snapshotScreen from "jsx/snapshot-screen"; import { statusObservableTimer, clusterNames, logoutSubject, logoutResult } from "observable"; jQuery(document).ready(function($){ document.documentElement.setAttribute('data-theme', Cookies.get('reaper-theme')); $.urlParam = function(name){ let results = new RegExp('[\?&]' + name + '=([^&#]*)').exec(window.location.href); if (results) { return results[1] || 0; } else { return null; } } let currentCluster = $.urlParam('currentCluster'); if (!currentCluster || currentCluster === "null") { currentCluster = 'all'; } ReactDOM.render( React.createElement(snapshotScreen, {clusterNames, currentCluster, logoutSubject: logoutSubject, logoutResult: logoutResult, statusObservableTimer, switchTheme: function(theme) { document.documentElement.setAttribute('data-theme', theme); Cookies.set('reaper-theme', theme); }}), document.getElementById('wrapper') ); });
thelastpickle/cassandra-reaper
src/ui/app/snapshot.js
JavaScript
apache-2.0
1,741
# AUTOGENERATED FILE FROM balenalib/cnx100-xavier-nx-ubuntu:hirsute-build ENV NODE_VERSION 14.18.3 ENV YARN_VERSION 1.22.4 RUN for key in \ 6A010C5166006599AA17F08146C2130DFD2497F5 \ ; do \ gpg --keyserver pgp.mit.edu --recv-keys "$key" || \ gpg --keyserver keyserver.pgp.com --recv-keys "$key" || \ gpg --keyserver keyserver.ubuntu.com --recv-keys "$key" ; \ done \ && curl -SLO "http://nodejs.org/dist/v$NODE_VERSION/node-v$NODE_VERSION-linux-arm64.tar.gz" \ && echo "2d071ca1bc1d0ea1eb259e79b81ebb4387237b2f77b3cf616806534e0030eaa8 node-v$NODE_VERSION-linux-arm64.tar.gz" | sha256sum -c - \ && tar -xzf "node-v$NODE_VERSION-linux-arm64.tar.gz" -C /usr/local --strip-components=1 \ && rm "node-v$NODE_VERSION-linux-arm64.tar.gz" \ && curl -fSLO --compressed "https://yarnpkg.com/downloads/$YARN_VERSION/yarn-v$YARN_VERSION.tar.gz" \ && curl -fSLO --compressed "https://yarnpkg.com/downloads/$YARN_VERSION/yarn-v$YARN_VERSION.tar.gz.asc" \ && gpg --batch --verify yarn-v$YARN_VERSION.tar.gz.asc yarn-v$YARN_VERSION.tar.gz \ && mkdir -p /opt/yarn \ && tar -xzf yarn-v$YARN_VERSION.tar.gz -C /opt/yarn --strip-components=1 \ && ln -s /opt/yarn/bin/yarn /usr/local/bin/yarn \ && ln -s /opt/yarn/bin/yarn /usr/local/bin/yarnpkg \ && rm yarn-v$YARN_VERSION.tar.gz.asc yarn-v$YARN_VERSION.tar.gz \ && npm config set unsafe-perm true -g --unsafe-perm \ && rm -rf /tmp/* 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/test-stack@node.sh" \ && echo "Running test-stack@node" \ && chmod +x test-stack@node.sh \ && bash test-stack@node.sh \ && rm -rf test-stack@node.sh 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 v8 \nOS: Ubuntu hirsute \nVariant: build variant \nDefault variable(s): UDEV=off \nThe following software stack is preinstalled: \nNode.js v14.18.3, Yarn v1.22.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
resin-io-library/base-images
balena-base-images/node/cnx100-xavier-nx/ubuntu/hirsute/14.18.3/build/Dockerfile
Dockerfile
apache-2.0
2,761
# AUTOGENERATED FILE FROM balenalib/genericx86-64-ext-alpine:3.13-run # remove several traces of python RUN apk del 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 apk add --no-cache ca-certificates libffi \ && apk add --no-cache libssl1.0 || apk add --no-cache libssl1.1 # key 63C7CC90: public key "Simon McVittie <smcv@pseudorandom.co.uk>" imported # key 3372DCFA: public key "Donald Stufft (dstufft) <donald@stufft.io>" imported RUN gpg --keyserver keyring.debian.org --recv-keys 4DE8FF2A63C7CC90 \ && gpg --keyserver keyserver.ubuntu.com --recv-key 6E3CBCE93372DCFA \ && gpg --keyserver keyserver.ubuntu.com --recv-keys 0x52a43a1e4b77b059 # point Python at a system-provided certificate database. Otherwise, we might hit CERTIFICATE_VERIFY_FAILED. # https://www.python.org/dev/peps/pep-0476/#trust-database ENV SSL_CERT_FILE /etc/ssl/certs/ca-certificates.crt 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 \ gnupg \ ' \ && apk add --no-cache --virtual .build-deps $buildDeps \ && curl -SLO "http://resin-packages.s3.amazonaws.com/python/v$PYTHON_VERSION/Python-$PYTHON_VERSION.linux-alpine-amd64-libffi3.3.tar.gz" \ && echo "b77741a57a57f5737b58926a08aa47034f7a3a78ce1183124a315f6f5fed41f3 Python-$PYTHON_VERSION.linux-alpine-amd64-libffi3.3.tar.gz" | sha256sum -c - \ && tar -xzf "Python-$PYTHON_VERSION.linux-alpine-amd64-libffi3.3.tar.gz" --strip-components=1 \ && rm -rf "Python-$PYTHON_VERSION.linux-alpine-amd64-libffi3.3.tar.gz" \ && 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 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/test-stack@python.sh" \ && echo "Running test-stack@python" \ && chmod +x test-stack@python.sh \ && bash test-stack@python.sh \ && rm -rf test-stack@python.sh 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: Intel 64-bit (x86-64) \nOS: Alpine Linux 3.13 \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/bash\nbalena-info\nbusybox ln -sf /bin/busybox /bin/sh\n/bin/sh "$@"' > /bin/sh-shim \ && chmod +x /bin/sh-shim \ && ln -f /bin/sh /bin/sh.real \ && ln -f /bin/sh-shim /bin/sh
resin-io-library/base-images
balena-base-images/python/genericx86-64-ext/alpine/3.13/3.6.15/run/Dockerfile
Dockerfile
apache-2.0
4,142
# AUTOGENERATED FILE FROM balenalib/beaglebone-green-wifi-ubuntu:xenial-run ENV GO_VERSION 1.17.7 # gcc for cgo RUN apt-get update && apt-get install -y --no-install-recommends \ g++ \ gcc \ libc6-dev \ make \ pkg-config \ git \ && rm -rf /var/lib/apt/lists/* RUN set -x \ && fetchDeps=' \ curl \ ' \ && apt-get update && apt-get install -y $fetchDeps --no-install-recommends && rm -rf /var/lib/apt/lists/* \ && mkdir -p /usr/local/go \ && curl -SLO "http://resin-packages.s3.amazonaws.com/golang/v$GO_VERSION/go$GO_VERSION.linux-armv7hf.tar.gz" \ && echo "e4f33e7e78f96024d30ff6bf8d2b86329fc04df1b411a8bd30a82dbe60f408ba go$GO_VERSION.linux-armv7hf.tar.gz" | sha256sum -c - \ && tar -xzf "go$GO_VERSION.linux-armv7hf.tar.gz" -C /usr/local/go --strip-components=1 \ && rm -f go$GO_VERSION.linux-armv7hf.tar.gz ENV GOROOT /usr/local/go ENV GOPATH /go ENV PATH $GOPATH/bin:/usr/local/go/bin:$PATH RUN mkdir -p "$GOPATH/src" "$GOPATH/bin" && chmod -R 777 "$GOPATH" WORKDIR $GOPATH 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/613d8e9ca8540f29a43fddf658db56a8d826fffe/scripts/assets/tests/test-stack@golang.sh" \ && echo "Running test-stack@golang" \ && chmod +x test-stack@golang.sh \ && bash test-stack@golang.sh \ && rm -rf test-stack@golang.sh 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: Ubuntu xenial \nVariant: run variant \nDefault variable(s): UDEV=off \nThe following software stack is preinstalled: \nGo v1.17.7 \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
resin-io-library/base-images
balena-base-images/golang/beaglebone-green-wifi/ubuntu/xenial/1.17.7/run/Dockerfile
Dockerfile
apache-2.0
2,365
# Copyright 2015-2017 Cisco Systems, Inc. # All rights reserved. # # 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 # # 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. from .linkstate import LinkState # noqa from .node.local_router_id import LocalRouterID # noqa from .node.name import NodeName # noqa from .node.isisarea import ISISArea # noqa from .node.sr_capabilities import SRCapabilities # noqa from .node.sr_algorithm import SRAlgorithm # noqa from .node.node_msd import NodeMSD # noqa from .node.nodeflags import NodeFlags # noqa from .node.opa_node_attr import OpaNodeAttr # noqa from .node.sid_or_label import SIDorLabel # noqa from .node.srlb import SRLB # noqa from .link.admingroup import AdminGroup # noqa from .link.remote_router_id import RemoteRouterID # noqa from .link.max_bw import MaxBandwidth # noqa from .link.max_rsv_bw import MaxResvBandwidth # noqa from .link.unsrv_bw import UnrsvBandwidth # noqa from .link.te_metric import TeMetric # noqa from .link.link_name import LinkName # noqa from .link.igp_metric import IGPMetric # noqa from .link.adj_seg_id import AdjSegID # noqa from .link.link_identifiers import LinkIdentifiers # noqa from .link.link_msd import LinkMSD # noqa from .link.lan_adj_sid import LanAdjSegID # noqa from .link.srlg import SRLGList # noqa from .link.mplsmask import MplsMask # noqa from .link.protection_type import ProtectionType # noqa from .link.opa_link_attr import OpaLinkAttr # noqa from .link.peer_node_sid import PeerNodeSID # noqa from .link.peer_adj_sid import PeerAdjSID # noqa from .link.peer_set_sid import PeerSetSID # noqa from .link.unidirect_link_delay import UnidirectLinkDelay # noqa from .link.min_max_link_delay import MinMaxUnidirectLinkDelay # noqa from .link.unidirect_delay_var import UnidirectDelayVar # noqa from .link.unidirect_packet_loss import UnidirectPacketLoss # noqa from .link.unidirect_residual_bw import UnidirectResidualBw # noqa from .link.unidirect_avail_bw import UnidirectAvailBw # noqa from .link.unidirect_bw_util import UnidirectBwUtil # noqa from .prefix.prefix_metric import PrefixMetric # noqa from .prefix.prefix_sid import PrefixSID # noqa from .prefix.prefix_igp_attr import PrefixIGPAttr # noqa from .prefix.src_router_id import SrcRouterID # noqa from .prefix.igpflags import IGPFlags # noqa from .prefix.igp_route_tag_list import IGPRouteTagList # noqa from .prefix.ext_igp_route_tag_list import ExtIGPRouteTagList # noqa from .prefix.ospf_forward_addr import OspfForwardingAddr # noqa
meidli/yabgp
yabgp/message/attribute/linkstate/__init__.py
Python
apache-2.0
3,042
/* * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one * or more contributor license agreements. Licensed under the Elastic License; * you may not use this file except in compliance with the Elastic License. */ package org.elasticsearch.xpack.transform.persistence; import org.elasticsearch.Version; import org.elasticsearch.action.ActionListener; import org.elasticsearch.action.admin.indices.template.put.PutIndexTemplateRequest; import org.elasticsearch.action.support.master.AcknowledgedResponse; import org.elasticsearch.client.Client; import org.elasticsearch.cluster.ClusterState; import org.elasticsearch.cluster.metadata.AliasMetadata; import org.elasticsearch.cluster.metadata.IndexMetadata; import org.elasticsearch.cluster.metadata.IndexTemplateMetadata; import org.elasticsearch.cluster.service.ClusterService; import org.elasticsearch.common.Strings; import org.elasticsearch.common.bytes.BytesReference; import org.elasticsearch.common.settings.Settings; import org.elasticsearch.common.xcontent.XContentBuilder; import org.elasticsearch.common.xcontent.XContentHelper; import org.elasticsearch.common.xcontent.XContentType; import org.elasticsearch.index.mapper.MapperService; import org.elasticsearch.xpack.core.common.notifications.AbstractAuditMessage; import org.elasticsearch.xpack.core.transform.TransformField; import org.elasticsearch.xpack.core.transform.transforms.DestConfig; import org.elasticsearch.xpack.core.transform.transforms.SourceConfig; import org.elasticsearch.xpack.core.transform.transforms.TransformCheckpoint; import org.elasticsearch.xpack.core.transform.transforms.TransformIndexerStats; import org.elasticsearch.xpack.core.transform.transforms.TransformProgress; import org.elasticsearch.xpack.core.transform.transforms.TransformState; import org.elasticsearch.xpack.core.transform.transforms.TransformStoredDoc; import org.elasticsearch.xpack.core.transform.transforms.persistence.TransformInternalIndexConstants; import java.io.IOException; import java.util.Collections; import static org.elasticsearch.common.xcontent.XContentFactory.jsonBuilder; import static org.elasticsearch.index.mapper.MapperService.SINGLE_MAPPING_NAME; import static org.elasticsearch.xpack.core.ClientHelper.TRANSFORM_ORIGIN; import static org.elasticsearch.xpack.core.ClientHelper.executeAsyncWithOrigin; import static org.elasticsearch.xpack.core.transform.TransformField.TRANSFORM_ID; public final class TransformInternalIndex { /* Changelog of internal index versions * * Please list changes, increase the version in @link{TransformInternalIndexConstants} if you are 1st in this release cycle * * version 1 (7.2): initial * version 2 (7.4): cleanup, add config::version, config::create_time, checkpoint::timestamp, checkpoint::time_upper_bound, * progress::docs_processed, progress::docs_indexed, * stats::exponential_avg_checkpoint_duration_ms, stats::exponential_avg_documents_indexed, * stats::exponential_avg_documents_processed * version 3 (7.5): rename to .transform-internal-xxx * version 4 (7.6): state::should_stop_at_checkpoint * checkpoint::checkpoint * version 5 (7.7): stats::processing_time_in_ms, stats::processing_total */ // constants for mappings public static final String DYNAMIC = "dynamic"; public static final String PROPERTIES = "properties"; public static final String TYPE = "type"; public static final String ENABLED = "enabled"; public static final String DATE = "date"; public static final String TEXT = "text"; public static final String FIELDS = "fields"; public static final String RAW = "raw"; // data types public static final String FLOAT = "float"; public static final String DOUBLE = "double"; public static final String LONG = "long"; public static final String KEYWORD = "keyword"; public static final String BOOLEAN = "boolean"; public static IndexTemplateMetadata getIndexTemplateMetadata() throws IOException { IndexTemplateMetadata transformTemplate = IndexTemplateMetadata.builder(TransformInternalIndexConstants.LATEST_INDEX_VERSIONED_NAME) .patterns(Collections.singletonList(TransformInternalIndexConstants.LATEST_INDEX_VERSIONED_NAME)) .version(Version.CURRENT.id) .settings( Settings.builder() // the configurations are expected to be small .put(IndexMetadata.SETTING_NUMBER_OF_SHARDS, 1) .put(IndexMetadata.SETTING_AUTO_EXPAND_REPLICAS, "0-1") ) .putMapping(MapperService.SINGLE_MAPPING_NAME, Strings.toString(mappings())) .build(); return transformTemplate; } public static IndexTemplateMetadata getAuditIndexTemplateMetadata() throws IOException { IndexTemplateMetadata transformTemplate = IndexTemplateMetadata.builder(TransformInternalIndexConstants.AUDIT_INDEX) .patterns(Collections.singletonList(TransformInternalIndexConstants.AUDIT_INDEX_PREFIX + "*")) .version(Version.CURRENT.id) .settings( Settings.builder() // the audits are expected to be small .put(IndexMetadata.SETTING_NUMBER_OF_SHARDS, 1) .put(IndexMetadata.SETTING_AUTO_EXPAND_REPLICAS, "0-1") .put(IndexMetadata.SETTING_INDEX_HIDDEN, true) ) .putMapping(MapperService.SINGLE_MAPPING_NAME, Strings.toString(auditMappings())) .putAlias(AliasMetadata.builder(TransformInternalIndexConstants.AUDIT_INDEX_READ_ALIAS).isHidden(true)) .build(); return transformTemplate; } private static XContentBuilder auditMappings() throws IOException { XContentBuilder builder = jsonBuilder().startObject(); builder.startObject(SINGLE_MAPPING_NAME); addMetaInformation(builder); builder.field(DYNAMIC, "false"); builder .startObject(PROPERTIES) .startObject(TRANSFORM_ID) .field(TYPE, KEYWORD) .endObject() .startObject(AbstractAuditMessage.LEVEL.getPreferredName()) .field(TYPE, KEYWORD) .endObject() .startObject(AbstractAuditMessage.MESSAGE.getPreferredName()) .field(TYPE, TEXT) .startObject(FIELDS) .startObject(RAW) .field(TYPE, KEYWORD) .endObject() .endObject() .endObject() .startObject(AbstractAuditMessage.TIMESTAMP.getPreferredName()) .field(TYPE, DATE) .endObject() .startObject(AbstractAuditMessage.NODE_NAME.getPreferredName()) .field(TYPE, KEYWORD) .endObject() .endObject() .endObject() .endObject(); return builder; } public static XContentBuilder mappings() throws IOException { XContentBuilder builder = jsonBuilder(); return mappings(builder); } public static XContentBuilder mappings(XContentBuilder builder) throws IOException { builder.startObject(); builder.startObject(MapperService.SINGLE_MAPPING_NAME); addMetaInformation(builder); // do not allow anything outside of the defined schema builder.field(DYNAMIC, "false"); // the schema definitions builder.startObject(PROPERTIES); // overall doc type builder.startObject(TransformField.INDEX_DOC_TYPE.getPreferredName()).field(TYPE, KEYWORD).endObject(); // add the schema for transform configurations addTransformsConfigMappings(builder); // add the schema for transform stats addTransformStoredDocMappings(builder); // add the schema for checkpoints addTransformCheckpointMappings(builder); // end type builder.endObject(); // end properties builder.endObject(); // end mapping builder.endObject(); return builder; } private static XContentBuilder addTransformStoredDocMappings(XContentBuilder builder) throws IOException { return builder .startObject(TransformStoredDoc.STATE_FIELD.getPreferredName()) .startObject(PROPERTIES) .startObject(TransformState.TASK_STATE.getPreferredName()) .field(TYPE, KEYWORD) .endObject() .startObject(TransformState.INDEXER_STATE.getPreferredName()) .field(TYPE, KEYWORD) .endObject() .startObject(TransformState.SHOULD_STOP_AT_NEXT_CHECKPOINT.getPreferredName()) .field(TYPE, BOOLEAN) .endObject() .startObject(TransformState.CURRENT_POSITION.getPreferredName()) .field(ENABLED, false) .endObject() .startObject(TransformState.CHECKPOINT.getPreferredName()) .field(TYPE, LONG) .endObject() .startObject(TransformState.REASON.getPreferredName()) .field(TYPE, KEYWORD) .endObject() .startObject(TransformState.PROGRESS.getPreferredName()) .startObject(PROPERTIES) .startObject(TransformProgress.TOTAL_DOCS.getPreferredName()) .field(TYPE, LONG) .endObject() .startObject(TransformProgress.DOCS_REMAINING.getPreferredName()) .field(TYPE, LONG) .endObject() .startObject(TransformProgress.PERCENT_COMPLETE) .field(TYPE, FLOAT) .endObject() .startObject(TransformProgress.DOCS_INDEXED.getPreferredName()) .field(TYPE, LONG) .endObject() .startObject(TransformProgress.DOCS_PROCESSED.getPreferredName()) .field(TYPE, LONG) .endObject() .endObject() .endObject() .endObject() .endObject() .startObject(TransformField.STATS_FIELD.getPreferredName()) .startObject(PROPERTIES) .startObject(TransformIndexerStats.NUM_PAGES.getPreferredName()) .field(TYPE, LONG) .endObject() .startObject(TransformIndexerStats.NUM_INPUT_DOCUMENTS.getPreferredName()) .field(TYPE, LONG) .endObject() .startObject(TransformIndexerStats.NUM_OUTPUT_DOCUMENTS.getPreferredName()) .field(TYPE, LONG) .endObject() .startObject(TransformIndexerStats.NUM_INVOCATIONS.getPreferredName()) .field(TYPE, LONG) .endObject() .startObject(TransformIndexerStats.INDEX_TIME_IN_MS.getPreferredName()) .field(TYPE, LONG) .endObject() .startObject(TransformIndexerStats.SEARCH_TIME_IN_MS.getPreferredName()) .field(TYPE, LONG) .endObject() .startObject(TransformIndexerStats.PROCESSING_TIME_IN_MS.getPreferredName()) .field(TYPE, LONG) .endObject() .startObject(TransformIndexerStats.INDEX_TOTAL.getPreferredName()) .field(TYPE, LONG) .endObject() .startObject(TransformIndexerStats.SEARCH_TOTAL.getPreferredName()) .field(TYPE, LONG) .endObject() .startObject(TransformIndexerStats.PROCESSING_TOTAL.getPreferredName()) .field(TYPE, LONG) .endObject() .startObject(TransformIndexerStats.SEARCH_FAILURES.getPreferredName()) .field(TYPE, LONG) .endObject() .startObject(TransformIndexerStats.INDEX_FAILURES.getPreferredName()) .field(TYPE, LONG) .endObject() .startObject(TransformIndexerStats.EXPONENTIAL_AVG_CHECKPOINT_DURATION_MS.getPreferredName()) .field(TYPE, DOUBLE) .endObject() .startObject(TransformIndexerStats.EXPONENTIAL_AVG_DOCUMENTS_INDEXED.getPreferredName()) .field(TYPE, DOUBLE) .endObject() .startObject(TransformIndexerStats.EXPONENTIAL_AVG_DOCUMENTS_PROCESSED.getPreferredName()) .field(TYPE, DOUBLE) .endObject() .endObject() .endObject(); } public static XContentBuilder addTransformsConfigMappings(XContentBuilder builder) throws IOException { return builder .startObject(TransformField.ID.getPreferredName()) .field(TYPE, KEYWORD) .endObject() .startObject(TransformField.SOURCE.getPreferredName()) .startObject(PROPERTIES) .startObject(SourceConfig.INDEX.getPreferredName()) .field(TYPE, KEYWORD) .endObject() .startObject(SourceConfig.QUERY.getPreferredName()) .field(ENABLED, "false") .endObject() .endObject() .endObject() .startObject(TransformField.DESTINATION.getPreferredName()) .startObject(PROPERTIES) .startObject(DestConfig.INDEX.getPreferredName()) .field(TYPE, KEYWORD) .endObject() .endObject() .endObject() .startObject(TransformField.DESCRIPTION.getPreferredName()) .field(TYPE, TEXT) .endObject() .startObject(TransformField.VERSION.getPreferredName()) .field(TYPE, KEYWORD) .endObject() .startObject(TransformField.CREATE_TIME.getPreferredName()) .field(TYPE, DATE) .endObject(); } private static XContentBuilder addTransformCheckpointMappings(XContentBuilder builder) throws IOException { return builder .startObject(TransformField.TIMESTAMP_MILLIS.getPreferredName()) .field(TYPE, DATE) .endObject() .startObject(TransformField.TIME_UPPER_BOUND_MILLIS.getPreferredName()) .field(TYPE, DATE) .endObject() .startObject(TransformCheckpoint.CHECKPOINT.getPreferredName()) .field(TYPE, LONG) .endObject(); } /** * Inserts "_meta" containing useful information like the version into the mapping * template. * * @param builder The builder for the mappings * @throws IOException On write error */ private static XContentBuilder addMetaInformation(XContentBuilder builder) throws IOException { return builder.startObject("_meta").field("version", Version.CURRENT).endObject(); } /** * This method should be called before any document is indexed that relies on the * existence of the latest index templates to create the internal and audit index. * The reason is that the standard template upgrader only runs when the master node * is upgraded to the newer version. If data nodes are upgraded before master * nodes and transforms get assigned to those data nodes then without this check * the data nodes will index documents into the internal index before the necessary * index template is present and this will result in an index with completely * dynamic mappings being created (which is very bad). */ public static void installLatestIndexTemplatesIfRequired(ClusterService clusterService, Client client, ActionListener<Void> listener) { installLatestVersionedIndexTemplateIfRequired( clusterService, client, ActionListener.wrap(r -> { installLatestAuditIndexTemplateIfRequired(clusterService, client, listener); }, listener::onFailure) ); } protected static boolean haveLatestVersionedIndexTemplate(ClusterState state) { return state.getMetadata().getTemplates().containsKey(TransformInternalIndexConstants.LATEST_INDEX_VERSIONED_NAME); } protected static boolean haveLatestAuditIndexTemplate(ClusterState state) { return state.getMetadata().getTemplates().containsKey(TransformInternalIndexConstants.AUDIT_INDEX); } protected static void installLatestVersionedIndexTemplateIfRequired( ClusterService clusterService, Client client, ActionListener<Void> listener ) { // The check for existence of the template is against local cluster state, so very cheap if (haveLatestVersionedIndexTemplate(clusterService.state())) { listener.onResponse(null); return; } // Installing the template involves communication with the master node, so it's more expensive but much rarer try { IndexTemplateMetadata indexTemplateMetadata = getIndexTemplateMetadata(); BytesReference jsonMappings = indexTemplateMetadata.mappings().uncompressed(); PutIndexTemplateRequest request = new PutIndexTemplateRequest(TransformInternalIndexConstants.LATEST_INDEX_VERSIONED_NAME) .patterns(indexTemplateMetadata.patterns()) .version(indexTemplateMetadata.version()) .settings(indexTemplateMetadata.settings()) .mapping(XContentHelper.convertToMap(jsonMappings, true, XContentType.JSON).v2()); ActionListener<AcknowledgedResponse> innerListener = ActionListener.wrap(r -> listener.onResponse(null), listener::onFailure); executeAsyncWithOrigin( client.threadPool().getThreadContext(), TRANSFORM_ORIGIN, request, innerListener, client.admin().indices()::putTemplate ); } catch (IOException e) { listener.onFailure(e); } } protected static void installLatestAuditIndexTemplateIfRequired( ClusterService clusterService, Client client, ActionListener<Void> listener ) { // The check for existence of the template is against local cluster state, so very cheap if (haveLatestAuditIndexTemplate(clusterService.state())) { listener.onResponse(null); return; } // Installing the template involves communication with the master node, so it's more expensive but much rarer try { IndexTemplateMetadata indexTemplateMetadata = getAuditIndexTemplateMetadata(); BytesReference jsonMappings = indexTemplateMetadata.mappings().uncompressed(); PutIndexTemplateRequest request = new PutIndexTemplateRequest(TransformInternalIndexConstants.AUDIT_INDEX).patterns( indexTemplateMetadata.patterns() ) .version(indexTemplateMetadata.version()) .settings(indexTemplateMetadata.settings()) .mapping(XContentHelper.convertToMap(jsonMappings, true, XContentType.JSON).v2()); ActionListener<AcknowledgedResponse> innerListener = ActionListener.wrap(r -> listener.onResponse(null), listener::onFailure); executeAsyncWithOrigin( client.threadPool().getThreadContext(), TRANSFORM_ORIGIN, request, innerListener, client.admin().indices()::putTemplate ); } catch (IOException e) { listener.onFailure(e); } } private TransformInternalIndex() {} }
gingerwizard/elasticsearch
x-pack/plugin/transform/src/main/java/org/elasticsearch/xpack/transform/persistence/TransformInternalIndex.java
Java
apache-2.0
20,606
import { chainMiddleware} from '../src'; import chai from 'chai'; import sinon from 'sinon'; import sinonChai from 'sinon-chai'; chai.should(); chai.use(sinonChai); const store = {dispatch: sinon.spy((data)=>data)} const defnext = sinon.spy((in_action)=> in_action); const chainMW = chainMiddleware(store); describe("Chain middleware", function() { beforeEach(function() { store.dispatch.reset(); defnext.reset(); }); it('Chain action was called', function() { const action = {status: 'done',res: {called:false,linked:'a'}, link:(data) => data.linked}; chainMW(defnext)(action).should.eql(action); defnext.should.calledOnce; defnext.alwaysCalledWith(action).should.equal(true); store.dispatch.should.calledOnce; store.dispatch.alwaysCalledWith(action.res.linked).should.eql(true); console.log(store.dispatch.returnValues[0]); store.dispatch.alwaysReturned('a').should.equal(true); }); it('Chain action wasn\'t called (status!=done)', function() { const action = {status: 'inprog',res: {called:false,linked:'b'}, link:(data) => data.linked}; chainMW(defnext)(action).should.eql(action); defnext.should.calledOnce; defnext.alwaysCalledWith(action).should.eql(true); store.dispatch.callCount.should.equal(0); }); it('Chain action wasn\'t called (status == done, but link is undefined)', function() { const action = {status: 'done',res: {called:false,linked:'b'}}; chainMW(defnext)(action).should.eql(action); defnext.should.calledOnce; defnext.alwaysCalledWith(action).should.eql(true); store.dispatch.callCount.should.equal(0); }); });
kneradovsky/redents
test/testChain.spec.js
JavaScript
apache-2.0
1,588
package relamapper.accountservice.repository; import org.springframework.data.jpa.repository.JpaRepository; import relamapper.accountservice.model.Account; import java.util.List; public interface AccountsRepository extends JpaRepository<Account, String> { Account getAccountByEmailIgnoreCase(String email); List<Account> getAccountsByEnabled(boolean enabled); List<Account> getAccountsByRole(String role); }
Komode/relamapper
account-service/src/main/java/relamapper/accountservice/repository/AccountsRepository.java
Java
apache-2.0
427
[![GitHub release](https://img.shields.io/github/release/p120ph37/missing-link.svg)](https://github.com/p120ph37/missing-link/releases/latest) [![GitHub license](https://img.shields.io/github/license/p120ph37/missing-link.svg)](https://github.com/p120ph37/missing-link/blob/master/LICENSE) [![Build Status](https://travis-ci.org/p120ph37/missing-link.svg?branch=master)](https://travis-ci.org/p120ph37/missing-link) [![Download Snapshot](https://img.shields.io/badge/Download-SNAPSHOT-yellow.svg)](https://bintray.com/artifact/download/p120ph37/generic/ml-ant-http-SNAPSHOT.jar) # missing link Ant http task ## Overview The missing link ant http task was created due to the lack of a full featured, usable and liberally licensed ant HTTP task. This ant task is coded from scratch utilizing only core Java classes; as such it does not require any third party dependencies at runtime. This ant task also simplifies common aspects of HTTP communication, which other libraries seem to needlessly complicate, such as: authentication, TLS/SSL and HTTP methods other then GET and POST. ## License The missing link ant http task is licensed under the Apache 2.0 license, a copy of the license can be found with the missing link ant http task distribution or at http://www.apache.org/licenses/LICENSE-2.0.html. ## Features The missing link ant http task was created with the following features in mind: - No third party library dependencies. - TLS/SSL support on a configuration, per-connection basis, not JVM-wide. - Support for HTTP methods GET, POST, PUT, OPTIONS, HEAD and TRACE. - Support for BASIC authentication. - Support for multiple URL/URI building options. - Support for specifying arbitrary HTTP request headers. - Support for specifying a request entity in-line or through a file. - Options on what information to print to the output. - Options to govern what response status codes are expected, and what should cause a build-failing exception. ## Ant task XML elements ### http #### supported parameters: | Name | Description | Required | Default | Example | |------|-------------|----------|---------|---------| | **`url`** | HTTP URL | Yes | | `http://www.google.com` | | **`method`** | HTTP method | No | `GET` | `GET`, `PUT`, `POST`, etc. | | **`printRequest`** | Print request entity | No | `false` | `true` or `false` | | **`printResponse`** | Print response entiry | No | `false` | `true` or `false` | | **`printRequestHeaders`** | Print request headers | No | `true` | `true` or `false` | | **`printResponseHeaders`** | Print response headers | No | `true` | `true` or `false` | `expected` | Expected HTTP status | No | `200` | `200`, `201`, `404`, etc. | | **`failOnUnexpected`** | Fail on unexpected status | No | `true` | `true` or `false` | `outfile` | Write response to file | No | | Any filename | | **`statusProperty`** | Property to save status to | No | | `http.status` | | **`update`** | Update/overwrite outfile | No | `true` | `true` or `false` | | **`entityProperty`** | Write response entity to prop | No | | `response.entity` | #### example: ```xml <http url="http://google.com" method="GET" printRequest="false" printResponse="true" printRequestHeaders="true" printResponseHeaders="true" expected="200" failOnUnexpected="false" /> ``` ### http/credentials #### supported parameters: | Name | Description | Required | Default | Example | |------|-------------|----------|---------|---------| | **`username`** | HTTP Basic username | Yes | | `john.doe` | | **`password`** | HTTP Basic password | No | | `p@55w0rd` | | **`show`** | Print the credentials | No | `false` | `true` or `false` | #### example: ```xml <http url="http://google.com"> <credentials username="john.doe" password="p@55w0rd" /> </http> ``` ### http/keystore #### supported parameters: | Name | Description | Required | Default | Example | |------|-------------|----------|---------|---------| | **`file`** | KeyStore file | Yes | | `/path/to/keystore.jks` | | **`password`** | KeyStore password | No | | `p@55w0rd` | #### example: ```xml <http url="http://google.com"> <keystore file="/path/to/keystore.jks" password="p@55w0rd" /> </http> ``` ### http/headers/header #### supported parameters: | Name | Description | Required | Default | Example | |------|-------------|----------|---------|---------| | **`name`** | Header name | Yes | | `Accept` | | **`value`** | Header value | No | | `application/xml,*/*` | #### example: ```xml <http url="http://google.com"> <headers> <header name="Accept" value="application/xml,*/*" /> <header name="Content-Type" value="application/xml" /> </headers> </http> ``` ### http/query/parameter #### supported parameters: | Name | Description | Required | Default | Example | |------|-------------|----------|---------|---------| | **`name`** | Query parameter name | Yes | | `qp` | | **`value`** | Query parameter value | No | | `value123` | #### example: ```xml <http url="http://google.com"> <query> <parameter name="qp1" value="value1" /> <parameter name="qp2" value="value2" /> </query> </http> ``` ### http/entity #### supported parameters: | Name | Description | Required | Default | Example | |------|-------------|----------|---------|---------| | **`file`** | File to read entity from | No | | `request.xml` | | **`binary`** | Treat entity as binary | False | | `true` or `false` | | **`value`** | Value to use as entity | No | | `${my.prop}` | #### example: ```xml <http url="http://google.com"> <entity file="request.zip" binary="true" /> </http> ``` ```xml <http url="http://google.com"> <entity><![CDATA[Request Entity]]></entity> </http> ``` ## Ant configuration The following is a basic example of how to import and use the missing link ant http task: ```xml <?xml version="1.0" encoding="UTF-8"?> <project name="ml-ant-http" basedir="." default="http-get"> <property name="ml-ant-http.jar" value="ml-ant-http-1.0.jar" /> <fileset id="runtime.libs" dir="."> <include name="${ml-ant-http.jar}" /> </fileset> <path id="runtime.classpath"> <fileset refid="runtime.libs" /> </path> <taskdef name="http" classname="org.missinglink.ant.task.http.HttpClientTask"> <classpath refid="runtime.classpath" /> </taskdef> <target name="http-get"> <http url="http://www.google.com" /> </target> </project> ```
p120ph37/missing-link
README.md
Markdown
apache-2.0
6,425
/** * 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 org.apache.camel.component.cxf; import org.apache.camel.Exchange; import org.apache.camel.Message; import org.apache.camel.Processor; import org.apache.camel.builder.RouteBuilder; import org.apache.camel.test.AvailablePortFinder; import org.apache.camel.test.junit4.CamelTestSupport; import org.apache.cxf.BusFactory; import org.apache.cxf.frontend.ClientFactoryBean; import org.apache.cxf.frontend.ClientProxyFactoryBean; import org.junit.Test; public class CxfConsumerMessageTest extends CamelTestSupport { private static final String TEST_MESSAGE = "Hello World!"; private static final String ECHO_METHOD = "ns1:echo xmlns:ns1=\"http://cxf.component.camel.apache.org/\""; private static final String ECHO_RESPONSE = "<soap:Envelope xmlns:soap=\"http://schemas.xmlsoap.org/soap/envelope/\">" + "<soap:Body><ns1:echoResponse xmlns:ns1=\"http://cxf.component.camel.apache.org/\">" + "<return xmlns=\"http://cxf.component.camel.apache.org/\">echo Hello World!</return>" + "</ns1:echoResponse></soap:Body></soap:Envelope>"; private static final String ECHO_BOOLEAN_RESPONSE = "<soap:Envelope xmlns:soap=\"http://schemas.xmlsoap.org/soap/envelope/\">" + "<soap:Body><ns1:echoBooleanResponse xmlns:ns1=\"http://cxf.component.camel.apache.org/\">" + "<return xmlns=\"http://cxf.component.camel.apache.org/\">true</return>" + "</ns1:echoBooleanResponse></soap:Body></soap:Envelope>"; protected final String simpleEndpointAddress = "http://localhost:" + AvailablePortFinder.getNextAvailable() + "/test"; protected final String simpleEndpointURI = "cxf://" + simpleEndpointAddress + "?serviceClass=org.apache.camel.component.cxf.HelloService"; protected RouteBuilder createRouteBuilder() { return new RouteBuilder() { public void configure() { from(simpleEndpointURI + "&dataFormat=MESSAGE").process(new Processor() { public void process(final Exchange exchange) { Message in = exchange.getIn(); // check the content-length header is filtered Object value = in.getHeader("Content-Length"); assertNull("The Content-Length header should be removed", value); // Get the request message String request = in.getBody(String.class); // Send the response message back if (request.indexOf(ECHO_METHOD) > 0) { exchange.getOut().setBody(ECHO_RESPONSE); } else { // echoBoolean call exchange.getOut().setBody(ECHO_BOOLEAN_RESPONSE); } } }); } }; } @Test public void testInvokingServiceFromCXFClient() throws Exception { ClientProxyFactoryBean proxyFactory = new ClientProxyFactoryBean(); ClientFactoryBean clientBean = proxyFactory.getClientFactoryBean(); clientBean.setAddress(simpleEndpointAddress); clientBean.setServiceClass(HelloService.class); clientBean.setBus(BusFactory.getDefaultBus()); HelloService client = (HelloService) proxyFactory.create(); String result = client.echo(TEST_MESSAGE); assertEquals("We should get the echo string result from router", result, "echo " + TEST_MESSAGE); Boolean bool = client.echoBoolean(Boolean.TRUE); assertNotNull("The result should not be null", bool); assertEquals("We should get the echo boolean result from router ", bool.toString(), "true"); } }
chicagozer/rheosoft
components/camel-cxf/src/test/java/org/apache/camel/component/cxf/CxfConsumerMessageTest.java
Java
apache-2.0
4,546
package com.sloshify.controller; import org.springframework.validation.Errors; import org.springframework.validation.ValidationUtils; import org.springframework.validation.Validator; public class SongValidator implements Validator{ @Override public boolean supports(Class clazz) { //just validate the Song instances return Song.class.isAssignableFrom(clazz); } @Override public void validate(Object target, Errors errors) { ValidationUtils.rejectIfEmptyOrWhitespace(errors, "Song name", "name is required!", "Field name is required."); ValidationUtils.rejectIfEmptyOrWhitespace(errors, "Song duration", "duration is required!", "Field name is required."); ValidationUtils.rejectIfEmptyOrWhitespace(errors, "Song BPM", "BPM is required!", "Field name is required."); } }
michelle-gu/sloshify
src/com/sloshify/controller/SongValidator.java
Java
apache-2.0
804
package li.doerf.leavemealone; import org.junit.Test; import static org.junit.Assert.*; /** * To work on unit tests, switch the Test Artifact in the Build Variants view. */ public class ExampleUnitTest { @Test public void addition_isCorrect() throws Exception { assertEquals(4, 2 + 2); } }
doerfli/leavemealone
app/src/test/java/li/doerf/leavemealone/ExampleUnitTest.java
Java
apache-2.0
314
/* * Copyright (C) 2012, 2013 by it's authors. Some rights reserved. * * 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 * * 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 eu.andlabs.studiolounge.ui; import android.database.Cursor; import android.net.Uri; import android.os.Bundle; import android.support.v4.app.Fragment; import android.support.v4.app.LoaderManager.LoaderCallbacks; import android.support.v4.content.CursorLoader; import android.support.v4.content.Loader; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.TextView; import eu.andlabs.studiolounge.R; public class StatsFragment extends Fragment implements LoaderCallbacks<Cursor> { private TextView mPlayerOnl; private TextView mOpenGames; private TextView mMsgesSend; @Override public View onCreateView(final LayoutInflater lI, ViewGroup p, Bundle b) { return lI.inflate(R.layout.fragment_stats, p, false); } @Override public void onViewCreated(View layout, Bundle savedInstanceState) { super.onViewCreated(layout, savedInstanceState); mPlayerOnl = (TextView) layout.findViewById(R.id.player); mOpenGames = (TextView) layout.findViewById(R.id.games); mMsgesSend = (TextView) layout.findViewById(R.id.msges); // getLoaderManager().initLoader(0, null, this); } @Override public Loader<Cursor> onCreateLoader(int arg0, Bundle arg1) { Uri uri = Uri.parse("content://foo.lounge/stats"); return new CursorLoader(getActivity(), uri, null, null, null, null); } @Override public void onLoadFinished(Loader<Cursor> l, Cursor stats) { stats.moveToFirst(); mPlayerOnl.setText(stats.getString(1)); mOpenGames.setText(stats.getString(1)); mMsgesSend.setText(stats.getString(1)); } @Override public void onLoaderReset(Loader<Cursor> arg0) { // TODO Auto-generated method stub } }
lounge-io/back-up
src/eu/andlabs/studiolounge/ui/StatsFragment.java
Java
apache-2.0
2,482
/* * Copyright 2015-2021 the original author or authors. * * 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 * * 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 org.docksidestage.remote.fortress.products.purchases.index; import org.lastaflute.core.util.Lato; import org.lastaflute.web.validation.Required; /** * The bean class as return for remote API of GET /products/{productId}/purchases/{purchaseId}/. * @author FreeGen */ public class RemoteProductsProductidPurchasesPurchaseidReturn { /** The property of purchaseId. */ @Required public Long purchaseId; /** The property of memberName. */ @Required public String memberName; /** The property of productName. */ @Required public String productName; @Override public String toString() { return Lato.string(this); } }
lastaflute/lastaflute-test-fortress
src/main/java/org/docksidestage/remote/fortress/products/purchases/index/RemoteProductsProductidPurchasesPurchaseidReturn.java
Java
apache-2.0
1,303
<!DOCTYPE html> <meta charset=utf-8> <title>Redirecting...</title> <link rel=canonical href="../宿/index.html"> <meta http-equiv=refresh content="0; url='../宿/index.html'"> <h1>Redirecting...</h1> <a href="../宿/index.html">Click here if you are not redirected.</a> <script>location='../宿/index.html'</script>
hochanh/hochanh.github.io
rtk/v4/995.html
HTML
apache-2.0
316
package com.hannesdorfmann.fragmentargs.processor; import java.util.HashSet; import java.util.Set; import javax.lang.model.element.Element; import javax.lang.model.element.Modifier; import junit.framework.Assert; import org.junit.Before; import org.junit.Test; import org.mockito.Mockito; /** * @author Hannes Dorfmann */ public class CompareModifierUtilsTest { Element a, b; Set<Modifier> aModifiers, bModifiers; @Before public void init() { a = Mockito.mock(Element.class); b = Mockito.mock(Element.class); aModifiers = new HashSet<Modifier>(); bModifiers = new HashSet<Modifier>(); Mockito.doReturn(aModifiers).when(a).getModifiers(); Mockito.doReturn(bModifiers).when(b).getModifiers(); } @Test public void aPublicBnot() { aModifiers.add(Modifier.PUBLIC); bModifiers.add(Modifier.PRIVATE); Assert.assertEquals(-1, ModifierUtils.compareModifierVisibility(a, b)); } @Test public void aDefaultBnot() { bModifiers.add(Modifier.PRIVATE); Assert.assertEquals(-1, ModifierUtils.compareModifierVisibility(a, b)); } @Test public void aProtectedBnot() { aModifiers.add(Modifier.PROTECTED); bModifiers.add(Modifier.PRIVATE); Assert.assertEquals(-1, ModifierUtils.compareModifierVisibility(a, b)); } @Test public void bPublicAnot() { bModifiers.add(Modifier.PUBLIC); aModifiers.add(Modifier.PRIVATE); Assert.assertEquals(1, ModifierUtils.compareModifierVisibility(a, b)); } @Test public void bDefaultAnot() { aModifiers.add(Modifier.PRIVATE); Assert.assertEquals(1, ModifierUtils.compareModifierVisibility(a, b)); } @Test public void bProtectedAnot() { aModifiers.add(Modifier.PRIVATE); bModifiers.add(Modifier.PROTECTED); Assert.assertEquals(1, ModifierUtils.compareModifierVisibility(a, b)); } @Test public void samePrivate() { aModifiers.add(Modifier.PRIVATE); bModifiers.add(Modifier.PRIVATE); Assert.assertEquals(0, ModifierUtils.compareModifierVisibility(a, b)); } @Test public void sameProtected() { aModifiers.add(Modifier.PRIVATE); bModifiers.add(Modifier.PRIVATE); Assert.assertEquals(0, ModifierUtils.compareModifierVisibility(a, b)); } @Test public void sameDefault() { Assert.assertEquals(0, ModifierUtils.compareModifierVisibility(a, b)); } @Test public void samePublic() { aModifiers.add(Modifier.PUBLIC); bModifiers.add(Modifier.PUBLIC); Assert.assertEquals(0, ModifierUtils.compareModifierVisibility(a, b)); } }
sockeqwe/fragmentargs
processor/src/test/java/com/hannesdorfmann/fragmentargs/processor/CompareModifierUtilsTest.java
Java
apache-2.0
2,552
/* * Copyright 2011-2017 Chris de Vreeze * * 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 * * 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 eu.cdevreeze.yaidom.queryapitests.indexed import java.net.URI import eu.cdevreeze.yaidom import eu.cdevreeze.yaidom.core.EName import eu.cdevreeze.yaidom.core.QName import eu.cdevreeze.yaidom.core.Scope import eu.cdevreeze.yaidom.indexed.Elem import eu.cdevreeze.yaidom.indexed.IndexedNode import eu.cdevreeze.yaidom.queryapi.XmlBaseSupport import eu.cdevreeze.yaidom.simple import eu.cdevreeze.yaidom.simple.Node.emptyElem import org.scalatest.funsuite.AnyFunSuite /** * Alternative XML Base test case. * * This test uses the XML Base tutorial at: http://zvon.org/comp/r/tut-XML_Base.html. * * Note the use of empty URIs in some places. * * @author Chris de Vreeze */ class AlternativeXmlBaseOnIndexedClarkElemApiTest extends AnyFunSuite { type E = IndexedNode.Elem private def convertToDocElem(elem: simple.Elem, docUri: URI): E = { IndexedNode.Elem(Some(docUri), elem) } private def nullUri: URI = URI.create("") private val XLinkNs = "http://www.w3.org/1999/xlink" private val XLinkHrefEName = EName(XLinkNs, "href") // Naive resolveUri method protected def resolveUri(uri: URI, baseUriOption: Option[URI]): URI = { XmlBaseSupport.JdkUriResolver(uri, baseUriOption) } test("testXmlBaseAttributeOnElement") { val scope = Scope.from("xlink" -> XLinkNs) val simpleDocElem = emptyElem( QName("reference"), Vector(QName("xml:base") -> "http://www.zvon.org/", QName("xlink:href") -> "a.xml", QName("xlink:type") -> "simple"), scope) val docElem = convertToDocElem(simpleDocElem, new URI("http://www.somewhere.com/f2.xml")) assertResult(new URI("http://www.zvon.org/")) { docElem.baseUriOption.getOrElse(URI.create("")) } assertResult(new URI("http://www.zvon.org/a.xml")) { val href = new URI(docElem.attribute(XLinkHrefEName)) resolveUri(href, Some(docElem.baseUriOption.getOrElse(URI.create("")))) } docElem.findAllElemsOrSelf.foreach(e => testXmlBaseProperty1(e)) docElem.findAllElemsOrSelf.foreach(e => testXmlBaseProperty2(e, docElem)) } test("testTwoEquivalentHrefs") { val scope = Scope.from("xlink" -> XLinkNs) val simpleDocElem1 = emptyElem( QName("reference"), Vector(QName("xlink:href") -> "http://www.zvon.org/a.xml", QName("xlink:type") -> "simple"), scope) val docElem1 = convertToDocElem(simpleDocElem1, nullUri) val simpleDocElem2 = emptyElem( QName("reference"), Vector(QName("xml:base") -> "http://www.zvon.org/", QName("xlink:href") -> "a.xml", QName("xlink:type") -> "simple"), scope) val docElem2 = convertToDocElem(simpleDocElem2, nullUri) assertResult(new URI("")) { docElem1.baseUriOption.getOrElse(URI.create("")) } assertResult(new URI("http://www.zvon.org/a.xml")) { val href = new URI(docElem1.attribute(XLinkHrefEName)) resolveUri(href, Some(docElem1.baseUriOption.getOrElse(URI.create("")))) } assertResult(new URI("http://www.zvon.org/")) { docElem2.baseUriOption.getOrElse(URI.create("")) } assertResult(new URI("http://www.zvon.org/a.xml")) { val href = new URI(docElem2.attribute(XLinkHrefEName)) resolveUri(href, Some(docElem2.baseUriOption.getOrElse(URI.create("")))) } docElem1.findAllElemsOrSelf.foreach(e => testXmlBaseProperty1(e)) docElem1.findAllElemsOrSelf.foreach(e => testXmlBaseProperty2(e, docElem1)) docElem2.findAllElemsOrSelf.foreach(e => testXmlBaseProperty1(e)) docElem2.findAllElemsOrSelf.foreach(e => testXmlBaseProperty2(e, docElem2)) } test("testMissingXmlBaseAttribute") { val scope = Scope.from("xlink" -> XLinkNs) val simpleDocElem = emptyElem( QName("reference"), Vector(QName("xlink:href") -> "a.xml", QName("xlink:type") -> "simple"), scope) val docElem = convertToDocElem(simpleDocElem, new URI("http://www.somewhere.com/f1.xml")) assertResult(new URI("http://www.somewhere.com/f1.xml")) { docElem.baseUriOption.getOrElse(URI.create("")) } assertResult(new URI("http://www.somewhere.com/a.xml")) { val href = new URI(docElem.attribute(XLinkHrefEName)) resolveUri(href, Some(docElem.baseUriOption.getOrElse(URI.create("")))) } docElem.findAllElemsOrSelf.foreach(e => testXmlBaseProperty1(e)) docElem.findAllElemsOrSelf.foreach(e => testXmlBaseProperty2(e, docElem)) } test("testXmlBaseAttributeOnParent") { val scope = Scope.from("xlink" -> XLinkNs) val referenceElem = emptyElem( QName("reference"), Vector(QName("xlink:href") -> "a.xml", QName("xlink:type") -> "simple"), scope) val simpleDocElem = emptyElem( QName("doc"), Vector(QName("xml:base") -> "http://www.zvon.org/"), scope).plusChild(referenceElem) val docElem = convertToDocElem(simpleDocElem, nullUri) assertResult(new URI("http://www.zvon.org/")) { docElem.baseUriOption.getOrElse(URI.create("")) } assertResult(new URI("http://www.zvon.org/a.xml")) { val referenceElem = docElem.getChildElem(_.localName == "reference") val href = new URI(referenceElem.attribute(XLinkHrefEName)) resolveUri(href, Some(referenceElem.baseUriOption.getOrElse(URI.create("")))) } docElem.findAllElemsOrSelf.foreach(e => testXmlBaseProperty1(e)) docElem.findAllElemsOrSelf.foreach(e => testXmlBaseProperty2(e, docElem)) } test("testNestedXmlBaseAttributes") { val scope = Scope.from("xlink" -> XLinkNs) val referenceElem = emptyElem( QName("reference"), Vector(QName("xlink:href") -> "a.xml", QName("xlink:type") -> "simple"), scope) val pElem = emptyElem( QName("p"), Vector(QName("xml:base") -> "zz/"), scope).plusChild(referenceElem) val simpleDocElem = emptyElem( QName("doc"), Vector(QName("xml:base") -> "http://www.zvon.org/"), scope).plusChild(pElem) val docElem = convertToDocElem(simpleDocElem, nullUri) assertResult(new URI("http://www.zvon.org/")) { docElem.baseUriOption.getOrElse(URI.create("")) } assertResult(new URI("http://www.zvon.org/zz/")) { val pElem = docElem.getChildElem(_.localName == "p") pElem.baseUriOption.getOrElse(URI.create("")) } assertResult(new URI("http://www.zvon.org/zz/a.xml")) { val pElem = docElem.getChildElem(_.localName == "p") val referenceElem = pElem.getChildElem(_.localName == "reference") val href = new URI(referenceElem.attribute(XLinkHrefEName)) resolveUri(href, Some(referenceElem.baseUriOption.getOrElse(URI.create("")))) } docElem.findAllElemsOrSelf.foreach(e => testXmlBaseProperty1(e)) docElem.findAllElemsOrSelf.foreach(e => testXmlBaseProperty2(e, docElem)) } test("testOtherNestedXmlBaseAttributes") { val scope = Scope.from("xlink" -> XLinkNs) val referenceElem = emptyElem( QName("reference"), Vector(QName("xml:base") -> "a/", QName("xlink:href") -> "b.xml", QName("xlink:type") -> "simple"), scope) val simpleDocElem = emptyElem( QName("document"), Vector(QName("xml:base") -> "http://www.zvon.org/"), scope).plusChild(referenceElem) val docElem = convertToDocElem(simpleDocElem, new URI("http://www.zvon.org/a/b.xml")) assertResult(new URI("http://www.zvon.org/")) { docElem.baseUriOption.getOrElse(URI.create("")) } assertResult(new URI("http://www.zvon.org/a/")) { val referenceElem = docElem.getChildElem(_.localName == "reference") referenceElem.baseUriOption.getOrElse(URI.create("")) } assertResult(new URI("http://www.zvon.org/a/b.xml")) { val referenceElem = docElem.getChildElem(_.localName == "reference") val href = new URI(referenceElem.attribute(XLinkHrefEName)) resolveUri(href, Some(referenceElem.baseUriOption.getOrElse(URI.create("")))) } docElem.findAllElemsOrSelf.foreach(e => testXmlBaseProperty1(e)) docElem.findAllElemsOrSelf.foreach(e => testXmlBaseProperty2(e, docElem)) } test("testNestedAbsoluteXmlBaseAttributes") { val scope = Scope.from("xlink" -> XLinkNs) val referenceElem = emptyElem( QName("reference"), Vector(QName("xlink:href") -> "a.xml", QName("xlink:type") -> "simple"), scope) val pElem = emptyElem( QName("p"), Vector(QName("xml:base") -> "http://www.zvon.org/yy/"), scope).plusChild(referenceElem) val simpleDocElem = emptyElem( QName("doc"), Vector(QName("xml:base") -> "http://www.zvon.org/"), scope).plusChild(pElem) val docElem = convertToDocElem(simpleDocElem, nullUri) assertResult(new URI("http://www.zvon.org/")) { docElem.baseUriOption.getOrElse(URI.create("")) } assertResult(new URI("http://www.zvon.org/yy/")) { val pElem = docElem.getChildElem(_.localName == "p") pElem.baseUriOption.getOrElse(URI.create("")) } assertResult(new URI("http://www.zvon.org/yy/a.xml")) { val pElem = docElem.getChildElem(_.localName == "p") val referenceElem = pElem.getChildElem(_.localName == "reference") val href = new URI(referenceElem.attribute(XLinkHrefEName)) resolveUri(href, Some(referenceElem.baseUriOption.getOrElse(URI.create("")))) } docElem.findAllElemsOrSelf.foreach(e => testXmlBaseProperty1(e)) docElem.findAllElemsOrSelf.foreach(e => testXmlBaseProperty2(e, docElem)) } test("testEmptyDocUriAndXmlBaseAttribute") { val scope = Scope.from("xlink" -> XLinkNs) val simpleDocElem = emptyElem( QName("reference"), Vector(QName("xml:base") -> "", QName("xlink:href") -> "a.xml", QName("xlink:type") -> "simple"), scope) val docElem = convertToDocElem(simpleDocElem, nullUri) assertResult(new URI("")) { docElem.baseUriOption.getOrElse(URI.create("")) } assertResult(new URI("a.xml")) { val href = new URI(docElem.attribute(XLinkHrefEName)) resolveUri(href, Some(docElem.baseUriOption.getOrElse(URI.create("")))) } docElem.findAllElemsOrSelf.foreach(e => testXmlBaseProperty1(e)) docElem.findAllElemsOrSelf.foreach(e => testXmlBaseProperty2(e, docElem)) } test("testEmptyXmlBaseAttribute") { val scope = Scope.from("xlink" -> XLinkNs) val simpleDocElem = emptyElem( QName("reference"), Vector(QName("xml:base") -> "", QName("xlink:href") -> "a.xml", QName("xlink:type") -> "simple"), scope) val docElem = convertToDocElem(simpleDocElem, new URI("http://www.somewhere.com/f1.xml")) assertResult(true) { Set( new URI("http://www.somewhere.com/"), new URI("http://www.somewhere.com/f1.xml")).contains(docElem.baseUriOption.getOrElse(URI.create(""))) } assertResult(new URI("http://www.somewhere.com/a.xml")) { val href = new URI(docElem.attribute(XLinkHrefEName)) resolveUri(href, Some(docElem.baseUriOption.getOrElse(URI.create("")))) } docElem.findAllElemsOrSelf.foreach(e => testXmlBaseProperty1(e)) docElem.findAllElemsOrSelf.foreach(e => testXmlBaseProperty2(e, docElem)) } test("testNestedSometimesEmptyXmlBaseAttributes") { val scope = Scope.from("xlink" -> XLinkNs) val referenceElem = emptyElem( QName("reference"), Vector(QName("xlink:href") -> "a.xml", QName("xlink:type") -> "simple"), scope) val pElem = emptyElem( QName("p"), Vector(QName("xml:base") -> ""), scope).plusChild(referenceElem) val simpleDocElem = emptyElem( QName("doc"), Vector(QName("xml:base") -> "http://www.zvon.org/yy/"), scope).plusChild(pElem) val docElem = convertToDocElem(simpleDocElem, nullUri) assertResult(new URI("http://www.zvon.org/yy/")) { docElem.baseUriOption.getOrElse(URI.create("")) } assertResult(new URI("http://www.zvon.org/yy/")) { val pElem = docElem.getChildElem(_.localName == "p") pElem.baseUriOption.getOrElse(URI.create("")) } assertResult(new URI("http://www.zvon.org/yy/")) { val pElem = docElem.getChildElem(_.localName == "p") val referenceElem = pElem.getChildElem(_.localName == "reference") referenceElem.baseUriOption.getOrElse(URI.create("")) } assertResult(new URI("http://www.zvon.org/yy/a.xml")) { val pElem = docElem.getChildElem(_.localName == "p") val referenceElem = pElem.getChildElem(_.localName == "reference") val href = new URI(referenceElem.attribute(XLinkHrefEName)) resolveUri(href, Some(referenceElem.baseUriOption.getOrElse(URI.create("")))) } docElem.findAllElemsOrSelf.foreach(e => testXmlBaseProperty1(e)) docElem.findAllElemsOrSelf.foreach(e => testXmlBaseProperty2(e, docElem)) } test("testNestedSometimesEmptyXmlBaseAttributesAgain") { val scope = Scope.from("xlink" -> XLinkNs) val referenceElem = emptyElem( QName("reference"), Vector(QName("xlink:href") -> "a.xml", QName("xlink:type") -> "simple"), scope) val pElem = emptyElem( QName("p"), Vector(QName("xml:base") -> ""), scope).plusChild(referenceElem) val simpleDocElem = emptyElem( QName("doc"), Vector(QName("xml:base") -> "http://www.zvon.org/yy/f1.xml"), scope).plusChild(pElem) val docElem = convertToDocElem(simpleDocElem, nullUri) assertResult(new URI("http://www.zvon.org/yy/f1.xml")) { docElem.baseUriOption.getOrElse(URI.create("")) } assertResult(true) { val pElem = docElem.getChildElem(_.localName == "p") Set( new URI("http://www.zvon.org/yy/"), new URI("http://www.zvon.org/yy/f1.xml")).contains(pElem.baseUriOption.getOrElse(URI.create(""))) } assertResult(true) { val pElem = docElem.getChildElem(_.localName == "p") val referenceElem = pElem.getChildElem(_.localName == "reference") Set( new URI("http://www.zvon.org/yy/"), new URI("http://www.zvon.org/yy/f1.xml")).contains(referenceElem.baseUriOption.getOrElse(URI.create(""))) } assertResult(new URI("http://www.zvon.org/yy/a.xml")) { val pElem = docElem.getChildElem(_.localName == "p") val referenceElem = pElem.getChildElem(_.localName == "reference") val href = new URI(referenceElem.attribute(XLinkHrefEName)) resolveUri(href, Some(referenceElem.baseUriOption.getOrElse(URI.create("")))) } docElem.findAllElemsOrSelf.foreach(e => testXmlBaseProperty1(e)) docElem.findAllElemsOrSelf.foreach(e => testXmlBaseProperty2(e, docElem)) } /** * Tests an XML Base property relating it to the document URI and the ancestry-or-self. */ private def testXmlBaseProperty1(elem: E): Unit = { require(elem.docUriOption.isDefined) val expectedBaseUri = XmlBaseSupport.findBaseUriByDocUriAndPath(elem.docUriOption, elem.rootElem, elem.path)(resolveUri).get assertResult(expectedBaseUri) { elem.baseUriOption.getOrElse(URI.create("")) } } /** * Tests an XML Base property relating it to the parent base URI and the element itself. */ private def testXmlBaseProperty2(elem: E, docElem: E): Unit = { require(elem.docUriOption.isDefined) val parentBaseUriOption = elem.path.parentPathOption.map(pp => docElem.getElemOrSelfByPath(pp)).flatMap(_.baseUriOption).orElse(elem.docUriOption) val expectedBaseUri = XmlBaseSupport.findBaseUriByParentBaseUri(parentBaseUriOption, elem)(resolveUri).getOrElse(URI.create("")) assertResult(expectedBaseUri) { elem.baseUriOption.getOrElse(URI.create("")) } } }
dvreeze/yaidom
jvm/src/test/scala/eu/cdevreeze/yaidom/queryapitests/indexed/AlternativeXmlBaseOnIndexedClarkElemApiTest.scala
Scala
apache-2.0
16,423
"""Support for the Italian train system using ViaggiaTreno API.""" import asyncio import logging import time import aiohttp import async_timeout import voluptuous as vol from homeassistant.components.sensor import PLATFORM_SCHEMA, SensorEntity from homeassistant.const import ATTR_ATTRIBUTION, HTTP_OK, TIME_MINUTES import homeassistant.helpers.config_validation as cv _LOGGER = logging.getLogger(__name__) ATTRIBUTION = "Powered by ViaggiaTreno Data" VIAGGIATRENO_ENDPOINT = ( "http://www.viaggiatreno.it/viaggiatrenonew/" "resteasy/viaggiatreno/andamentoTreno/" "{station_id}/{train_id}/{timestamp}" ) REQUEST_TIMEOUT = 5 # seconds ICON = "mdi:train" MONITORED_INFO = [ "categoria", "compOrarioArrivoZeroEffettivo", "compOrarioPartenzaZeroEffettivo", "destinazione", "numeroTreno", "orarioArrivo", "orarioPartenza", "origine", "subTitle", ] DEFAULT_NAME = "Train {}" CONF_NAME = "train_name" CONF_STATION_ID = "station_id" CONF_STATION_NAME = "station_name" CONF_TRAIN_ID = "train_id" ARRIVED_STRING = "Arrived" CANCELLED_STRING = "Cancelled" NOT_DEPARTED_STRING = "Not departed yet" NO_INFORMATION_STRING = "No information for this train now" PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend( { vol.Required(CONF_TRAIN_ID): cv.string, vol.Required(CONF_STATION_ID): cv.string, vol.Optional(CONF_NAME): cv.string, } ) async def async_setup_platform(hass, config, async_add_entities, discovery_info=None): """Set up the ViaggiaTreno platform.""" train_id = config.get(CONF_TRAIN_ID) station_id = config.get(CONF_STATION_ID) if not (name := config.get(CONF_NAME)): name = DEFAULT_NAME.format(train_id) async_add_entities([ViaggiaTrenoSensor(train_id, station_id, name)]) async def async_http_request(hass, uri): """Perform actual request.""" try: session = hass.helpers.aiohttp_client.async_get_clientsession(hass) with async_timeout.timeout(REQUEST_TIMEOUT): req = await session.get(uri) if req.status != HTTP_OK: return {"error": req.status} json_response = await req.json() return json_response except (asyncio.TimeoutError, aiohttp.ClientError) as exc: _LOGGER.error("Cannot connect to ViaggiaTreno API endpoint: %s", exc) except ValueError: _LOGGER.error("Received non-JSON data from ViaggiaTreno API endpoint") class ViaggiaTrenoSensor(SensorEntity): """Implementation of a ViaggiaTreno sensor.""" def __init__(self, train_id, station_id, name): """Initialize the sensor.""" self._state = None self._attributes = {} self._unit = "" self._icon = ICON self._station_id = station_id self._name = name self.uri = VIAGGIATRENO_ENDPOINT.format( station_id=station_id, train_id=train_id, timestamp=int(time.time()) * 1000 ) @property def name(self): """Return the name of the sensor.""" return self._name @property def native_value(self): """Return the state of the sensor.""" return self._state @property def icon(self): """Icon to use in the frontend, if any.""" return self._icon @property def native_unit_of_measurement(self): """Return the unit of measurement.""" return self._unit @property def extra_state_attributes(self): """Return extra attributes.""" self._attributes[ATTR_ATTRIBUTION] = ATTRIBUTION return self._attributes @staticmethod def has_departed(data): """Check if the train has actually departed.""" try: first_station = data["fermate"][0] if data["oraUltimoRilevamento"] or first_station["effettiva"]: return True except ValueError: _LOGGER.error("Cannot fetch first station: %s", data) return False @staticmethod def has_arrived(data): """Check if the train has already arrived.""" last_station = data["fermate"][-1] if not last_station["effettiva"]: return False return True @staticmethod def is_cancelled(data): """Check if the train is cancelled.""" if data["tipoTreno"] == "ST" and data["provvedimento"] == 1: return True return False async def async_update(self): """Update state.""" uri = self.uri res = await async_http_request(self.hass, uri) if res.get("error", ""): if res["error"] == 204: self._state = NO_INFORMATION_STRING self._unit = "" else: self._state = "Error: {}".format(res["error"]) self._unit = "" else: for i in MONITORED_INFO: self._attributes[i] = res[i] if self.is_cancelled(res): self._state = CANCELLED_STRING self._icon = "mdi:cancel" self._unit = "" elif not self.has_departed(res): self._state = NOT_DEPARTED_STRING self._unit = "" elif self.has_arrived(res): self._state = ARRIVED_STRING self._unit = "" else: self._state = res.get("ritardo") self._unit = TIME_MINUTES self._icon = ICON
lukas-hetzenecker/home-assistant
homeassistant/components/viaggiatreno/sensor.py
Python
apache-2.0
5,443
/* Copyright IBM Corp. 2016 All Rights Reserved. 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 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 buckettree import ( "github.com/golang/protobuf/proto" "github.com/hyperledger/fabric/core/ledger/util" openchainUtil "github.com/hyperledger/fabric/core/util" ) type bucketHashCalculator struct { bucketKey *bucketKey currentChaincodeID string dataNodes []*dataNode hashingData []byte } func newBucketHashCalculator(bucketKey *bucketKey) *bucketHashCalculator { return &bucketHashCalculator{bucketKey, "", nil, nil} } // addNextNode - this method assumes that the datanodes are added in the increasing order of the keys func (c *bucketHashCalculator) addNextNode(dataNode *dataNode) { chaincodeID, _ := dataNode.getKeyElements() if chaincodeID != c.currentChaincodeID { c.appendCurrentChaincodeData() c.currentChaincodeID = chaincodeID c.dataNodes = nil } c.dataNodes = append(c.dataNodes, dataNode) } func (c *bucketHashCalculator) computeCryptoHash() []byte { if c.currentChaincodeID != "" { c.appendCurrentChaincodeData() c.currentChaincodeID = "" c.dataNodes = nil } logger.Debug("Hashable content for bucket [%s]: length=%d, contentInStringForm=[%s]", c.bucketKey, len(c.hashingData), string(c.hashingData)) if util.IsNil(c.hashingData) { return nil } return openchainUtil.ComputeCryptoHash(c.hashingData) } func (c *bucketHashCalculator) appendCurrentChaincodeData() { if c.currentChaincodeID == "" { return } c.appendSizeAndData([]byte(c.currentChaincodeID)) c.appendSize(len(c.dataNodes)) for _, dataNode := range c.dataNodes { _, key := dataNode.getKeyElements() value := dataNode.getValue() c.appendSizeAndData([]byte(key)) c.appendSizeAndData(value) } } func (c *bucketHashCalculator) appendSizeAndData(b []byte) { c.appendSize(len(b)) c.hashingData = append(c.hashingData, b...) } func (c *bucketHashCalculator) appendSize(size int) { c.hashingData = append(c.hashingData, proto.EncodeVarint(uint64(size))...) }
gongsu832/fabric
core/ledger/statemgmt/buckettree/bucket_hash.go
GO
apache-2.0
2,493
/** * ----------------------------------------------------------------------------- * * @review isipka * * ----------------------------------------------------------------------------- */ /** * Basic ML extensions class. Extensions purpose is rendering of observer value, * implementation of input methods, etc. * * @class FM.MlExtension * @extends FM.LmObject * @param {FM.AppObject} app Current application. * @param {object} [attrs] DOM node attributes */ FM.MlExtension = FM.defineClass('MlExtension',FM.LmObject); // methods FM.MlExtension.prototype._init = function(app,attrs) { this._super("_init",app,attrs); this.objectSubClass = "Extension"; this.log(attrs, FM.logLevels.debug, 'MlExtension._init'); this.defaultRenderer = false; this.log("New extension created.", FM.logLevels.debug, 'MlExtension._init'); } /** * Run extension. * * @public * @function * @param {FM.MlObserver} [obs] Observer extension belongs to. */ FM.MlExtension.prototype.run = function(obs) { this.observer = obs ? obs : null; this._super("run"); } /** * Dispose extension. * * @public * @function * @param {FM.MlObserver} [obs] Observer extension belongs to. */ FM.MlExtension.prototype.dispose = function(obs) { this._super("dispose"); } /** * Called by observer to signal change of data model, * * @public * @function * @param {FM.MlObserver} obs Observer extension belongs to. */ FM.MlExtension.prototype.update = function(obs) { } /** * Returns observer this extension belongs to. * * @public * @function * @returns {FM.MlObserver} */ FM.MlExtension.prototype.getObserver = function() { return this.observer ? this.observer : null; } /** * Returns host this extension belongs to. * * @public * @function * @returns {FM.MlHost} */ FM.MlExtension.prototype.getHost = function() { return this.observer ? this.observer.getHost() : null; } /** * Returns extension application instance. * * @returns {FM.AppObject} * */ FM.MlExtension.prototype.getApp = function() { return this.observer ? this.observer.getApp() : null; } /** * Returns current DM object. * * @public * @function * @returns {FM.DmObject} */ FM.MlExtension.prototype.getDmObject = function() { return this.observer ? this.observer.getDmObject() : null; } /** * Set extension DM object. This method in FM.MlExtension have no efect. * Extension DM object is always provided from observer extension is registred to. * * @param {FM.DmObject} o New extension DM object. <i>onSetDmObject</i> event will be fired. * */ FM.MlExtension.prototype.setDmObject = function(o) { } /** * Returns extension DOM node. * * @returns {node} * */ FM.MlExtension.prototype.getNode = function() { return this.observer ? this.observer.getNode() : null; } // renderer interface /** * Reender observer value in DOM node. * This method is called by observer when extension is default renderer. * * @public * @function */ FM.MlExtension.prototype.render = function() { // abstract } /** * Check if extension is default renderer. * * @public * @function * @returns {boolean} */ FM.MlExtension.prototype.isRendererEnabled = function() { return this.defaultRenderer; } /** * Enable renderer. * This method is called by observer when extension become default renderer. * * @public * @function */ FM.MlExtension.prototype.enableRenderer = function() { if(this.defaultRenderer != true) { this.defaultRenderer = true; } } /** * Disable renderer. * This method is called by observer when extension is not default renderer any more. * * @public * @function */ FM.MlExtension.prototype.disableRenderer = function() { if(this.defaultRenderer != false) { this.defaultRenderer = false; } } // static FM.MlExtension.extensionTypes = { GLOBAL: {} }; /** * Register application extension type. * * @public * @static * @function * @param {string} type name. * @param {FM.MlExtension} fn Extension class function. * @param {string} [appCls='GLOBAL'] Application subclass type. * * @returns {boolean} */ FM.MlExtension.addExtensionType = function(type,fn,appCls) { if(!FM.isset(fn) || !FM.isFunction(fn)) return false; appCls = FM.isset(appCls) && FM.isString(appCls) && appCls != '' ? appCls : 'GLOBAL'; if(!FM.isset(FM.MlExtension.extensionTypes[appCls])) { FM.MlExtension.extensionTypes[appCls]= {}; } FM.MlExtension.extensionTypes[appCls][type] = fn; return true; } /** * Returns MlExtension <b>config</b> class function for <b>config</b> subclass type. * * @static * @function * @param {FM.AppObject} app Current application. * @param {String} name Extension subclass type. * @return {FM.MlExtension} Class function. */ FM.MlExtension.getConfiguration = function(app,name) { var list = FM.MlExtension.extensionTypes; app = FM.isset(app) && app ? app : null; var appCls = app ? app.getSubClassName() : null; var appCfg = appCls && FM.isset(list[appCls]) ? list[appCls] : null; var obj = null; if(appCfg && FM.isset(appCfg[name])) { obj = appCfg[name]; } else if(app && FM.isArray(app.applicationObjectsSpace)) { FM.forEach(app.applicationObjectsSpace,function(i,ns) { if(FM.isset(list[ns]) && FM.isset(list[ns][name])) { obj = list[ns][name]; return false; } return true; }); } if(!obj && FM.isset(list['GLOBAL'][name])) { obj = list['GLOBAL'][name]; } return obj; } /** * Returns new instance of chosen <b>sctype</b> extension type. * @static * @public * @function * @param {FM.AppObject} app Current application. * @param {object} attrs Extension attributes. * @param {node} node Extension node. * @param {String} type Extension subclass type. * * @return {FM.MlExtension} New extension instance. */ FM.MlExtension.newExtension = function(app,attrs,node,type) { var clsFn = FM.MlExtension.getConfiguration(app,type); return clsFn ? new clsFn(app,attrs) : null; }
rbelusic/fm-js
src/gui/ml/gui.MlExtension.js
JavaScript
apache-2.0
6,174
# Mycolachnea Maire GENUS #### Status SYNONYM #### According to Index Fungorum #### Published in Publ. Inst. Bot. 3(4): 25 (1937) #### Original name Mycolachnea Maire ### Remarks null
mdoering/backbone
life/Fungi/Ascomycota/Pezizomycetes/Pezizales/Pyronemataceae/Humaria/ Syn. Mycolachnea/README.md
Markdown
apache-2.0
188
package hu.akarnokd.rxjava; import org.junit.Test; import io.reactivex.Observable; import io.reactivex.observers.TestObserver; public class ConcatWithTest { @Test public void concatWithTest() { Observable.fromCallable(() -> { System.out.println("start"); return "start"; }) .doOnError(e -> { System.out.println("doOnError"); }) .doOnComplete(() -> { System.out.println("doOnCompleted"); }) .concatWith(Observable.fromCallable(() -> { System.out.println("concatWith"); return "concatWith"; })) .onErrorResumeNext(e -> { return Observable.fromCallable(() -> { System.out.println("onErrorResumeNext"); return "onErrorResumeNext"; }); }) .flatMap(firstname -> { System.out.println("flatMap"); throw new RuntimeException(); // return Observable.just(firstname); }) .subscribe(new TestObserver<>()); } }
akarnokd/akarnokd-misc
src/test/java/hu/akarnokd/rxjava/ConcatWithTest.java
Java
apache-2.0
1,080
// Copyright 2016 Amazon.com, Inc. or its affiliates. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"). You may // not use this file except in compliance with the License. A copy of the // License is located at // // http://aws.amazon.com/apache2.0/ // // or in the "license" file accompanying this file. This file 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. // Automatically generated by MockGen. DO NOT EDIT! // Source: pkg/store/store.go package mocks import ( context "context" gomock "github.com/golang/mock/gomock" ) // Mock of DataStore interface type MockDataStore struct { ctrl *gomock.Controller recorder *_MockDataStoreRecorder } // Recorder for MockDataStore (not exported) type _MockDataStoreRecorder struct { mock *MockDataStore } func NewMockDataStore(ctrl *gomock.Controller) *MockDataStore { mock := &MockDataStore{ctrl: ctrl} mock.recorder = &_MockDataStoreRecorder{mock} return mock } func (_m *MockDataStore) EXPECT() *_MockDataStoreRecorder { return _m.recorder } func (_m *MockDataStore) Put(ctx context.Context, key string, value string) error { ret := _m.ctrl.Call(_m, "Put", ctx, key, value) ret0, _ := ret[0].(error) return ret0 } func (_mr *_MockDataStoreRecorder) Put(arg0, arg1, arg2 interface{}) *gomock.Call { return _mr.mock.ctrl.RecordCall(_mr.mock, "Put", arg0, arg1, arg2) } func (_m *MockDataStore) Get(ctx context.Context, key string) (map[string]string, error) { ret := _m.ctrl.Call(_m, "Get", ctx, key) ret0, _ := ret[0].(map[string]string) ret1, _ := ret[1].(error) return ret0, ret1 } func (_mr *_MockDataStoreRecorder) Get(arg0, arg1 interface{}) *gomock.Call { return _mr.mock.ctrl.RecordCall(_mr.mock, "Get", arg0, arg1) } func (_m *MockDataStore) Delete(ctx context.Context, key string) error { ret := _m.ctrl.Call(_m, "Delete", ctx, key) ret0, _ := ret[0].(error) return ret0 } func (_mr *_MockDataStoreRecorder) Delete(arg0, arg1 interface{}) *gomock.Call { return _mr.mock.ctrl.RecordCall(_mr.mock, "Delete", arg0, arg1) } func (_m *MockDataStore) GetWithPrefix(ctx context.Context, keyPrefix string) (map[string]string, error) { ret := _m.ctrl.Call(_m, "GetWithPrefix", ctx, keyPrefix) ret0, _ := ret[0].(map[string]string) ret1, _ := ret[1].(error) return ret0, ret1 } func (_mr *_MockDataStoreRecorder) GetWithPrefix(arg0, arg1 interface{}) *gomock.Call { return _mr.mock.ctrl.RecordCall(_mr.mock, "GetWithPrefix", arg0, arg1) }
tuedtran/blox
daemon-scheduler/pkg/mocks/store_mocks.go
GO
apache-2.0
2,644
goog.module('grrUi.core.fileDownloadUtils'); goog.module.declareLegacyNamespace(); var AFF4_PREFIXES = { 'OS': 'fs/os', // PathSpec.PathType.OS 'TSK': 'fs/tsk', // PathSpec.PathType.TSK 'REGISTRY': 'registry', // PathSpec.PathType.REGISTRY 'TMPFILE': 'temp', // PathSpec.PathType.TMPFILE 'NTFS': 'fs/ntfs', // PathSpec.PathType.NTFS }; /** * @param {Object} pathspec * @return {!Array} */ var splitPathspec = function(pathspec) { var result = []; var cur = pathspec['value']; while (angular.isDefined(cur['pathtype'])) { result.push(cur); if (angular.isDefined(cur['nested_path'])) { cur = cur['nested_path']['value']; } else { break; } } return result; }; /** * Converts a given pathspec to an AFF4 path pointing to a VFS location on a * given client. * * @param {Object} pathspec Typed pathspec value. * @param {string} clientId Client id that will be used a base for an AFF4 path. * @return {string} AFF4 path built. * @export */ exports.pathSpecToAff4Path = function(pathspec, clientId) { var components = splitPathspec(pathspec); var firstComponent = components[0]; var result, start; if (components.length > 1 && firstComponent['pathtype']['value'] == 'OS' && (components[1]['pathtype']['value'] == 'TSK' || components[1]['pathtype']['value'] == 'NTFS')) { var dev = firstComponent['path']['value']; if (angular.isDefined(firstComponent['offset'])) { dev += ':' + Math.round(firstComponent['offset']['value'] / 512); } if (dev.startsWith('/')) { dev = dev.substring(1); } result = [ 'aff4:', clientId, AFF4_PREFIXES[components[1]['pathtype']['value']], dev ]; start = 1; } else { result = ['aff4:', clientId, AFF4_PREFIXES[firstComponent['pathtype']['value']]]; start = 0; } for (var i = start; i < components.length; ++i) { var p = components[i]; var component = p['path']['value']; if (component.startsWith('/')) { component = component.substring(1); } if (angular.isDefined(p['offset'])) { component += ':' + Math.round(p['offset']['value'] / 512); } if (angular.isDefined(p['stream_name'])) { component += ':' + p['stream_name']['value']; } result.push(component); } return result.join('/'); }; var pathSpecToAff4Path = exports.pathSpecToAff4Path; /** * List of VFS roots that are accessible through Browse VFS UI. * * @const {Array<string>} */ exports.vfsRoots = ['fs', 'registry', 'temp']; /** * List of VFS roots that contain files that can be downloaded * via the API. * * @const {Array<string>} */ exports.downloadableVfsRoots = ['fs', 'temp']; /** * Returns a pathspec of a file that a given value points to. * * @param {Object} value Typed value. * @return {?Object} Pathspec of a file that a given value points to, or null * if there's none. * @export */ exports.getPathSpecFromValue = function(value) { if (!value) { return null; } if (value['type'] == 'ApiFlowResult' || value['type'] == 'ApiHuntResult') { value = value['value']['payload']; } switch (value['type']) { case 'StatEntry': return value['value']['pathspec']; case 'FileFinderResult': var st = value['value']['stat_entry']; if (angular.isDefined(st) && angular.isDefined(st['value']['pathspec'])) { return st['value']['pathspec']; } return null; case 'ArtifactFilesDownloaderResult': return exports.getPathSpecFromValue(value['value']['downloaded_file']); default: return null; } }; /** * @param {Object} value * @param {string} downloadUrl * @param {Object} downloadParams */ const makeStatEntryDownloadable_ = function( value, downloadUrl, downloadParams) { var originalValue = angular.copy(value); for (var prop in value) { if (value.hasOwnProperty(prop)) { delete value[prop]; } } angular.extend(value, { type: '__DownloadableStatEntry', originalValue: originalValue, downloadUrl: downloadUrl, downloadParams: downloadParams }); }; /** * @param {Object} value * @param {string} downloadUrl * @param {Object} downloadParams */ const makeFileFinderResultDownloadable_ = function( value, downloadUrl, downloadParams) { makeStatEntryDownloadable_( value['value']['stat_entry'], downloadUrl, downloadParams); }; /** * @param {Object} value * @param {string} downloadUrl * @param {Object} downloadParams */ const makeArtifactFilesDownloaderResultDownloadable_ = function( value, downloadUrl, downloadParams) { exports.makeValueDownloadable( value['value']['downloaded_file'], downloadUrl, downloadParams); }; /** * @param {Object} value * @param {string} downloadUrl * @param {Object} downloadParams * @return {boolean} */ exports.makeValueDownloadable = function(value, downloadUrl, downloadParams) { if (!value) { return false; } if (value['type'] === 'ApiFlowResult' || value['type'] === 'ApiHuntResult') { value = value['value']['payload']; } switch (value['type']) { case 'StatEntry': makeStatEntryDownloadable_(value, downloadUrl, downloadParams); return true; case 'FileFinderResult': makeFileFinderResultDownloadable_(value, downloadUrl, downloadParams); return true; case 'ArtifactFilesDownloaderResult': makeArtifactFilesDownloaderResultDownloadable_( value, downloadUrl, downloadParams); return true; default: return false; } };
google/grr
grr/server/grr_response_server/gui/static/angular-components/core/file-download-utils.js
JavaScript
apache-2.0
5,581
/* * Copyright 2008 JRimum Project * * 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 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. * * Created at: 30/03/2008 - 18:17:40 * * ================================================================================ * * Direitos autorais 2008 JRimum Project * * Licenciado sob a Licença Apache, Versão 2.0 ("LICENÇA"); você não pode usar * esse arquivo exceto em conformidade com a esta LICENÇA. Você pode obter uma * cópia desta LICENÇA em http://www.apache.org/licenses/LICENSE-2.0 A menos que * haja exigência legal ou acordo por escrito, a distribuição de software sob * esta LICENÇA se dará “COMO ESTÁ”, SEM GARANTIAS OU CONDIÇÕES DE QUALQUER * TIPO, sejam expressas ou tácitas. Veja a LICENÇA para a redação específica a * reger permissões e limitações sob esta LICENÇA. * * Criado em: 30/03/2008 - 18:17:40 * */ package org.jrimum.bopepo; import static java.lang.String.format; import static org.jrimum.utilix.Objects.isNull; import static org.jrimum.utilix.DateFormat.DDMMYYYY_B; import java.util.Calendar; import java.util.Date; import java.util.GregorianCalendar; import org.apache.commons.lang3.time.DateUtils; import org.jrimum.utilix.Dates; import org.jrimum.utilix.Exceptions; /** * <p> * Serviços utilitários do universo bancário, como por exemplo calcular o fator * de vencimento de boletos.</code> * </p> * * @author <a href="http://gilmatryx.googlepages.com/">Gilmar P.S.L</a> * @author <a href="mailto:misaelbarreto@gmail.com">Misael Barreto</a> * @author <a href="mailto:romulomail@gmail.com">Rômulo Augusto</a> * @author <a href="http://www.nordestefomento.com.br">Nordeste Fomento * Mercantil</a> * * @since 0.2 * * @version 0.2 */ public class FatorDeVencimento{ /** * <p> * Data base para o cálculo do fator de vencimento fixada em 07/10/1997 pela * FEBRABAN. * </p> */ private static final Calendar BASE_DO_FATOR_DE_VENCIMENTO = new GregorianCalendar(1997, Calendar.OCTOBER, 7); /** * <p> * Data base para o cálculo do fator de vencimento fixada em 07/10/1997 pela * FEBRABAN. * </p> */ private static final Date DATA_BASE_DO_FATOR_DE_VENCIMENTO = BASE_DO_FATOR_DE_VENCIMENTO.getTime(); /** *<p> * Data máxima alcançada pelo fator de vencimento com base fixada em * 07/10/1997. * </p> */ private static final Date DATA_LIMITE_DO_FATOR_DE_VENCIMENTO = new GregorianCalendar(2025, Calendar.FEBRUARY, 21).getTime(); /** * <p> * Calcula o fator de vencimento a partir da subtração entre a DATA DE * VENCIMENTO de um título e a DATA BASE fixada em 07/10/1997. * </p> * * <p> * O fator de vencimento nada mais é que um referencial numérico de 4 * dígitos que representa a quantidade de dias decorridos desde a data base * (07/10/1997) até a data de vencimento do título. Ou seja, a diferença em * dias entre duas datas. * </p> * * <p> * Exemplos: * </p> * <ul type="circule"> <li>07/10/1997 (Fator = 0);</li> <li>03/07/2000 * (Fator = 1000);</li> <li>05/07/2000 (Fator = 1002);</li> <li>01/05/2002 * (Fator = 1667);</li> <li>21/02/2025 (Fator = 9999).</li> </ul> * * <p> * Funcionamento: * </p> * * <ul type="square"> <li>Caso a data de vencimento seja anterior a data * base (Teoricamente fator negativo), uma exceção do tipo * IllegalArgumentException será lançada.</li> <li>A data limite para o * cálculo do fator de vencimento é 21/02/2025 (Fator de vencimento = 9999). * Caso a data de vencimento seja posterior a data limite, uma exceção do * tipo IllegalArgumentException será lançada.</li> </ul> * * <p> * <strong>ATENÇÃO</strong>, esse cálculo se refere a títulos em cobrança, * ou melhor: BOLETOS. Desta forma, lembramos que a DATA BASE é uma norma da * FEBRABAN. Essa norma diz que todos os boletos emitidos a partir de 1º de * setembro de 2000 (primeiro dia útil = 03/07/2000 - SEGUNDA) devem seguir * esta regra de cálculo para compor a informação de vencimento no código de * barras. Portanto, boletos no padrão FEBRABAN quando capturados por * sistemas da rede bancária permitem que se possa realizar a operação * inversa, ou seja, adicionar à data base o fator de vencimento capturado. * Obtendo então a data de vencimento deste boleto. * </p> * @param data * data de vencimento de um título * @return fator de vencimento calculado * @throws IllegalArgumentException * * @since 0.2 */ public static int toFator(Date data) throws IllegalArgumentException { if (isNull(data)) { return (Integer) Exceptions.throwIllegalArgumentException("Impossível realizar o cálculo do fator de vencimento de uma data nula!"); } else { Date dataTruncada = DateUtils.truncate(data, Calendar.DATE); checkIntervalo(dataTruncada); return (int) Dates.calculeDiferencaEmDias(DATA_BASE_DO_FATOR_DE_VENCIMENTO, dataTruncada); } } /** * <p> * Transforma um fator de vencimento em um objeto data da forma inversa * descrita em {@linkplain #toFator(Date)}. * </p> * * @param fator * - Número entre o intervalo (incluíndo) 0 e 9999 * @return Data do vencimento * @throws IllegalArgumentException * Caso o {@code fator} < 0 ou {@code fator} > 9999 */ public static Date toDate(int fator) throws IllegalArgumentException { checkIntervalo(fator); Calendar date = (Calendar) BASE_DO_FATOR_DE_VENCIMENTO.clone(); date.add(Calendar.DAY_OF_YEAR, fator); return DateUtils.truncate(date.getTime(), Calendar.DATE); } /** * <p> * Lança exceção caso a {@code dataVencimentoTruncada} esteja fora do * intervalo entre a {@linkplain #DATA_BASE_DO_FATOR_DE_VENCIMENTO} e a * {@linkplain #DATA_LIMITE_DO_FATOR_DE_VENCIMENTO}. * </p> * * @param dataVencimentoTruncada * data de vencimento truncada com {@code * DateUtils.truncate(date, Calendar.DATE)} * @throws IllegalArgumentException * Caso a data esteja {@code dataVencimentoTruncada} esteja fora * do intervalo entre a * {@linkplain #DATA_BASE_DO_FATOR_DE_VENCIMENTO} e a * {@linkplain #DATA_LIMITE_DO_FATOR_DE_VENCIMENTO} */ private static void checkIntervalo(Date dataVencimentoTruncada) throws IllegalArgumentException { if(dataVencimentoTruncada.before(DATA_BASE_DO_FATOR_DE_VENCIMENTO) || dataVencimentoTruncada.after(DATA_LIMITE_DO_FATOR_DE_VENCIMENTO)) { Exceptions.throwIllegalArgumentException( format("Para o cálculo do fator de vencimento se faz necessário informar uma data entre %s e %s.", DDMMYYYY_B.format(DATA_BASE_DO_FATOR_DE_VENCIMENTO), DDMMYYYY_B.format(DATA_LIMITE_DO_FATOR_DE_VENCIMENTO))); } } /** * <p>Lança exceção caso o {@code fator} estja fora do intervalo.</p> * * @param fatorDeVencimento - Número entre o intervalo (incluíndo) 0 e 9999 * @throws IllegalArgumentException Caso o {@code fator} < 0 ou {@code fator} > 9999 */ private static void checkIntervalo(int fatorDeVencimento) throws IllegalArgumentException { if (fatorDeVencimento < 0 || fatorDeVencimento > 9999) { Exceptions.throwIllegalArgumentException( "Impossível transformar em data um fator menor que zero! O fator de vencimento deve ser um número entre 0 e 9999."); } } }
braully/bopepo
src/main/java/org/jrimum/bopepo/FatorDeVencimento.java
Java
apache-2.0
8,098
package me.vilsol.nmswrapper.wraps.unparsed; import me.vilsol.nmswrapper.reflections.ReflectiveClass; // TODO Implement @ReflectiveClass(name = "IAnimal") public interface NMSIAnimal { }
Vilsol/NMSWrapper
src/main/java/me/vilsol/nmswrapper/wraps/unparsed/NMSIAnimal.java
Java
apache-2.0
189
--- title: Using Istio to Improve End-to-End Security description: Istio Auth 0.1 announcement. publishdate: 2017-05-25 subtitle: Secure by default service to service communications attribution: The Istio Team aliases: - /blog/0.1-auth.html - /blog/istio-auth-for-microservices.html --- Conventional network security approaches fail to address security threats to distributed applications deployed in dynamic production environments. Today, we describe how Istio Auth enables enterprises to transform their security posture from just protecting the edge to consistently securing all inter-service communications deep within their applications. With Istio Auth, developers and operators can protect services with sensitive data against unauthorized insider access and they can achieve this without any changes to the application code! Istio Auth is the security component of the broader [Istio platform](/). It incorporates the learnings of securing millions of microservice endpoints in Google’s production environment. ## Background Modern application architectures are increasingly based on shared services that are deployed and scaled dynamically on cloud platforms. Traditional network edge security (e.g. firewall) is too coarse-grained and allows access from unintended clients. An example of a security risk is stolen authentication tokens that can be replayed from another client. This is a major risk for companies with sensitive data that are concerned about insider threats. Other network security approaches like IP whitelists have to be statically defined, are hard to manage at scale, and are unsuitable for dynamic production environments. Thus, security administrators need a tool that enables them to consistently, and by default, secure all communication between services across diverse production environments. ## Solution: strong service identity and authentication Google has, over the years, developed architecture and technology to uniformly secure millions of microservice endpoints in its production environment against external attacks and insider threats. Key security principles include trusting the endpoints and not the network, strong mutual authentication based on service identity and service level authorization. Istio Auth is based on the same principles. The version 0.1 release of Istio Auth runs on Kubernetes and provides the following features: * Strong identity assertion between services * Access control to limit the identities that can access a service (and its data) * Automatic encryption of data in transit * Management of keys and certificates at scale Istio Auth is based on industry standards like mutual TLS and X.509. Furthermore, Google is actively contributing to an open, community-driven service security framework called [SPIFFE](https://spiffe.io/). As the [SPIFFE](https://spiffe.io/) specifications mature, we intend for Istio Auth to become a reference implementation of the same. The diagram below provides an overview of the Istio Auth service authentication architecture on Kubernetes. {{< image link="./istio_auth_overview.svg" caption="Istio Auth Overview" >}} The above diagram illustrates three key security features: ### Strong identity Istio Auth uses [Kubernetes service accounts](https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/) to identify who the service runs as. The identity is used to establish trust and define service level access policies. The identity is assigned at service deployment time and encoded in the SAN (Subject Alternative Name) field of an X.509 certificate. Using a service account as the identity has the following advantages: * Administrators can configure who has access to a Service Account by using the [RBAC](https://kubernetes.io/docs/reference/access-authn-authz/rbac/) feature introduced in Kubernetes 1.6 * Flexibility to identify a human user, a service, or a group of services * Stability of the service identity for dynamically placed and auto-scaled workloads ### Communication security Service-to-service communication is tunneled through high performance client side and server side [Envoy](https://envoyproxy.github.io/envoy/) proxies. The communication between the proxies is secured using mutual TLS. The benefit of using mutual TLS is that the service identity is not expressed as a bearer token that can be stolen or replayed from another source. Istio Auth also introduces the concept of Secure Naming to protect from a server spoofing attacks - the client side proxy verifies that the authenticated server's service account is allowed to run the named service. ### Key management and distribution Istio Auth provides a per-cluster CA (Certificate Authority) and automated key & certificate management. In this context, Istio Auth: * Generates a key and certificate pair for each service account. * Distributes keys and certificates to the appropriate pods using [Kubernetes Secrets](https://kubernetes.io/docs/concepts/configuration/secret/). * Rotates keys and certificates periodically. * Revokes a specific key and certificate pair when necessary (future). The following diagram explains the end to end Istio Auth authentication workflow on Kubernetes: {{< image link="./istio_auth_workflow.svg" caption="Istio Auth Workflow" >}} Istio Auth is part of the broader security story for containers. Red Hat, a partner on the development of Kubernetes, has identified [10 Layers](https://www.redhat.com/en/resources/container-security-openshift-cloud-devops-whitepaper) of container security. Istio and Istio Auth addresses two of these layers: "Network Isolation" and "API and Service Endpoint Management". As cluster federation evolves on Kubernetes and other platforms, our intent is for Istio to secure communications across services spanning multiple federated clusters. ## Benefits of Istio Auth **Defense in depth**: When used in conjunction with Kubernetes (or infrastructure) network policies, users achieve higher levels of confidence, knowing that pod-to-pod or service-to-service communication is secured both at network and application layers. **Secure by default**: When used with Istio’s proxy and centralized policy engine, Istio Auth can be configured during deployment with minimal or no application change. Administrators and operators can thus ensure that service communications are secured by default and that they can enforce these policies consistently across diverse protocols and runtimes. **Strong service authentication**: Istio Auth secures service communication using mutual TLS to ensure that the service identity is not expressed as a bearer token that can be stolen or replayed from another source. This ensures that services with sensitive data can only be accessed from strongly authenticated and authorized clients. ## Join us in this journey Istio Auth is the first step towards providing a full stack of capabilities to protect services with sensitive data from external attacks and insider threats. While the initial version runs on Kubernetes, our goal is to enable Istio Auth to secure services across diverse production environments. We encourage the community to [join us]({{< github_tree >}}/security) in making robust service security easy and ubiquitous across different application stacks and runtime platforms.
geeknoid/istio.github.io
content/blog/2017/0.1-auth/index.md
Markdown
apache-2.0
7,360
package filter import ( "fmt" "github.com/200sc/klangsynthese/audio/filter/supports" ) // Speed modifies the filtered audio by a speed ratio, changing its sample rate // in the process while maintaining pitch. func Speed(ratio float64, pitchShifter PitchShifter) Encoding { return func(senc supports.Encoding) { r := ratio fmt.Println(ratio) for r < .5 { r *= 2 pitchShifter.PitchShift(.5)(senc) } for r > 2.0 { r /= 2 pitchShifter.PitchShift(2.0)(senc) } pitchShifter.PitchShift(1 / r)(senc) ModSampleRate(ratio)(senc.GetSampleRate()) } }
200sc/klangsynthese
audio/filter/resample.go
GO
apache-2.0
575
/* * Copyright 2015 Michael Quigley * * 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 * * 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.quigley.zabbixj.agent.active; import java.io.ByteArrayInputStream; import java.io.ByteArrayOutputStream; import java.io.DataInputStream; import java.io.DataOutputStream; import java.io.InputStream; import java.io.OutputStream; import java.net.InetAddress; import java.net.Socket; import java.security.SecureRandom; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import org.bouncycastle.crypto.tls.BasicTlsPSKIdentity; import org.bouncycastle.crypto.tls.PSKTlsClient; import org.bouncycastle.crypto.tls.TlsClientProtocol; import org.json.JSONArray; import org.json.JSONException; import org.json.JSONObject; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import com.quigley.zabbixj.ZabbixException; import com.quigley.zabbixj.metrics.MetricsContainer; public class ActiveThread extends Thread { public ActiveThread(MetricsContainer metricsContainer, String hostName, String serverAddress, int serverPort, int refreshInterval, String pskIdentity, String psk) { running = true; checks = new HashMap<Integer, List<String>>(); lastChecked = new HashMap<Integer, Long>(); this.metricsContainer = metricsContainer; this.hostName = hostName; this.serverAddress = serverAddress; this.serverPort = serverPort; this.refreshInterval = refreshInterval; this.pskIdentity = pskIdentity; this.psk = psk; } public void run() { if(log.isDebugEnabled()) { log.debug("ActiveThread Starting."); } try { if(log.isDebugEnabled()) { log.debug("Starting initial refresh of active checks."); } requestActiveChecks(); if(log.isDebugEnabled()) { log.debug("Initial refresh of active checks completed."); } } catch(Exception e) { log.error("Initial refresh failed.", e); } while(running) { try { Thread.sleep(1000); } catch(InterruptedException ie) { return; } long clock = System.currentTimeMillis() / 1000; if((clock - lastRefresh) >= refreshInterval) { try { requestActiveChecks(); } catch(Exception e) { log.error("Unable to refresh.", e); } } for(int delay : checks.keySet()) { long delayLastChecked = lastChecked.get(delay); if(clock - delayLastChecked >= delay) { try { sendMetrics(delay, checks.get(delay)); } catch(Exception e) { log.error("Unable to send metrics.", e); } } } } } private void requestActiveChecks() throws Exception { if(log.isDebugEnabled()) { log.debug("Requesting a list of active checks from the server."); } Socket socket = new Socket(serverAddress, serverPort); InputStream input; OutputStream output; TlsClientProtocol protocol = null; if (pskIdentity != null && psk != null) { BasicTlsPSKIdentity basicIdentity = new BasicTlsPSKIdentity(pskIdentity.getBytes(), psk.getBytes()); PSKTlsClient tlsClient = new PSKTlsClient(basicIdentity); SecureRandom secureRandom = new SecureRandom(); protocol = new TlsClientProtocol(socket.getInputStream(), socket.getOutputStream(), secureRandom); protocol.connect(tlsClient); input = protocol.getInputStream(); output = protocol.getOutputStream(); } else { input = socket.getInputStream(); output = socket.getOutputStream(); } ByteArrayOutputStream baos = new ByteArrayOutputStream(); JSONObject request = new JSONObject(); request.put("request", "active checks"); request.put("host", hostName); byte[] buffer = getRequest(request); output.write(buffer); output.flush(); buffer = new byte[10240]; int read = 0; while((read = input.read(buffer, 0, 10240)) != -1) { baos.write(buffer, 0, read); } if (protocol != null ) { protocol.close(); } socket.close(); JSONObject response = getResponse(baos.toByteArray()); if(response.getString("response").equals("success")) { refreshFromActiveChecksResponse(response); } else { log.warn("Server reported a failure when requesting active checks:" + response.getString("info")); } lastRefresh = System.currentTimeMillis() / 1000; } private void refreshFromActiveChecksResponse(JSONObject response) throws JSONException { ActiveChecksResponseIndex index = getActiveChecksResponseIndex(response); insertNewChecks(index); pruneChangedChecks(index); pruneUnusedDelays(index); } private ActiveChecksResponseIndex getActiveChecksResponseIndex(JSONObject response) throws JSONException { ActiveChecksResponseIndex index = new ActiveChecksResponseIndex(); JSONArray data = response.getJSONArray("data"); for(int i = 0; i < data.length(); i++) { JSONObject check = data.getJSONObject(i); String key = check.getString("key"); int delay = check.getInt("delay"); index.add(key, delay); } return index; } private void insertNewChecks(ActiveChecksResponseIndex index) { long clock = System.currentTimeMillis() / 1000; for(String key : index.getIndex().keySet()) { int delay = index.getIndex().get(key); if(!checks.containsKey(delay)) { if(log.isDebugEnabled()) { log.debug("Inserting new check list for delay '" + delay + "'."); } checks.put(delay, new ArrayList<String>()); } List<String> keysForDelay = checks.get(delay); if(!keysForDelay.contains(key)) { if(log.isDebugEnabled()) { log.debug("Adding new key '" + key + "' to check list for delay '" + delay + "'."); } keysForDelay.add(key); } if(!lastChecked.containsKey(delay)) { lastChecked.put(delay, clock); } } } private void pruneChangedChecks(ActiveChecksResponseIndex index) { for(int delay : index.getDelays()) { List<String> keysForDelay = checks.get(delay); for(String key : new ArrayList<String>(keysForDelay)) { if(index.getIndex().containsKey(key)) { int currentDelay = index.getIndex().get(key); if(currentDelay != delay) { if(log.isDebugEnabled()) { log.debug("Removing '" + key + "' from delay '" + delay + "' list."); } keysForDelay.remove(key); } } else { if(log.isDebugEnabled()) { log.debug("Removing '" + key + "' from delay '" + delay + "' list."); } keysForDelay.remove(key); } } checks.put(delay, keysForDelay); } } private void pruneUnusedDelays(ActiveChecksResponseIndex index) { for(int delay : new ArrayList<Integer>(lastChecked.keySet())) { if(!index.getDelays().contains(delay)) { if(log.isDebugEnabled()) { log.debug("Removing unused delay '" + delay + "' from last checked list."); } lastChecked.remove(delay); } } for(int delay : new ArrayList<Integer>(checks.keySet())) { if(!index.getDelays().contains(delay)) { if(log.isDebugEnabled()) { log.debug("Removing unused delay '" + delay + "' from checks."); } checks.remove(delay); } } } private void sendMetrics(int delay, List<String> keyList) throws Exception { if(log.isDebugEnabled()) { String message = "Sending metrics for delay '" + delay + "' with keys: "; for(int i = 0; i < keyList.size(); i++) { if(i > 0) { message += ", "; } message += keyList.get(i); } log.debug(message); } long clock = System.currentTimeMillis() / 1000; JSONObject metrics = new JSONObject(); metrics.put("request", "agent data"); JSONArray data = new JSONArray(); for(String keyName : keyList) { JSONObject key = new JSONObject(); key.put("host", hostName); key.put("key", keyName); try { Object value = metricsContainer.getMetric(keyName); key.put("value", value.toString()); } catch(Exception e) { key.put("value", "ZBX_NOTSUPPORTED"); } key.put("clock", "" + clock); data.put(key); } metrics.put("data", data); metrics.put("clock", "" + clock); Socket socket = new Socket(serverAddress, serverPort); InputStream input; OutputStream output; TlsClientProtocol protocol = null; if (pskIdentity != null && psk != null) { BasicTlsPSKIdentity basicIdentity = new BasicTlsPSKIdentity(pskIdentity.getBytes(), psk.getBytes()); PSKTlsClient tlsClient = new PSKTlsClient(basicIdentity); SecureRandom secureRandom = new SecureRandom(); protocol = new TlsClientProtocol(socket.getInputStream(), socket.getOutputStream(), secureRandom); protocol.connect(tlsClient); input = protocol.getInputStream(); output = protocol.getOutputStream(); } else { input = socket.getInputStream(); output = socket.getOutputStream(); } ByteArrayOutputStream baos = new ByteArrayOutputStream(); output.write(getRequest(metrics)); output.flush(); byte[] buffer = new byte[10240]; int read = 0; while((read = input.read(buffer, 0, 10240)) != -1) { baos.write(buffer, 0, read); } if (protocol != null ) { protocol.close(); } socket.close(); JSONObject response = getResponse(baos.toByteArray()); if(response.getString("response").equals("success")) { if(log.isDebugEnabled()) { log.debug("The server reported success '" + response.getString("info") + "'."); } } else { log.error("Failure!"); } lastChecked.put(delay, clock); } private byte[] getRequest(JSONObject jsonObject) throws Exception { byte[] requestBytes = jsonObject.toString().getBytes(); String header = "ZBXD\1"; byte[] headerBytes = header.getBytes(); ByteArrayOutputStream bos = new ByteArrayOutputStream(); DataOutputStream dos = new DataOutputStream(bos); dos.writeLong(requestBytes.length); dos.flush(); dos.close(); bos.close(); byte[] requestLengthBytes = bos.toByteArray(); byte[] allBytes = new byte[headerBytes.length + requestLengthBytes.length + requestBytes.length]; int index = 0; for(int i = 0; i < headerBytes.length; i++) { allBytes[index++] = headerBytes[i]; } for(int i = 0; i < requestLengthBytes.length; i++) { allBytes[index++] = requestLengthBytes[7 - i]; // Reverse the byte order. } for(int i = 0; i < requestBytes.length; i++) { allBytes[index++] = requestBytes[i]; } return allBytes; } private JSONObject getResponse(byte[] responseBytes) throws Exception { byte[] sizeBuffer = new byte[8]; int index = 0; for(int i = 12; i > 4; i--) { sizeBuffer[index++] = responseBytes[i]; } ByteArrayInputStream bais = new ByteArrayInputStream(sizeBuffer); DataInputStream dis = new DataInputStream(bais); long size = dis.readLong(); dis.close(); bais.close(); byte[] jsonBuffer = new byte[responseBytes.length - 13]; if(jsonBuffer.length != size) { throw new ZabbixException("Reported and actual buffer sizes differ!"); } index = 0; for(int i = 13; i < responseBytes.length; i++) { jsonBuffer[index++] = responseBytes[i]; } JSONObject response = new JSONObject(new String(jsonBuffer)); return response; } public void shutdown() { running = false; } private boolean running; private Map<Integer, List<String>> checks; private Map<Integer, Long> lastChecked; private long lastRefresh; private MetricsContainer metricsContainer; private String hostName; private String serverAddress; private int serverPort; private int refreshInterval; private String pskIdentity; private String psk; private class ActiveChecksResponseIndex { public ActiveChecksResponseIndex() { index = new HashMap<String, Integer>(); delays = new ArrayList<Integer>(); } public Map<String, Integer> getIndex() { return index; } public List<Integer> getDelays() { return delays; } public void add(String key, int delay) { index.put(key, delay); if(!delays.contains(delay)) { delays.add(delay); } } private Map<String, Integer> index; private List<Integer> delays; } private static Logger log = LoggerFactory.getLogger(ActiveThread.class); }
michaelquigley/zabbixj
zabbixj-core/src/main/java/com/quigley/zabbixj/agent/active/ActiveThread.java
Java
apache-2.0
12,990
package proto const ( UserLogin = "user_login" UserLoginResult = "user_login_result" UserRegister = "user_register" UserStatusNotifyRes = "user_status_notify" ) const ( UserOnline = 1 UserOffline = 2 )
zhaogaolong/go_dev
day9/exercises/chat/proto/const.go
GO
apache-2.0
232
#! /bin/sh # Operations to execute before running the pheno_extract_candidates extractor ${APP_HOME}/util/truncate_table.sh ${DBNAME} pheno_mentions python ${APP_HOME}/onto/prep_pheno_terms.py
HazyResearch/dd-genomics
util/pheno_extract_candidates_before.sh
Shell
apache-2.0
193
package com.digitalplay.network.ireader.util; import java.io.IOException; import java.io.InputStream; import java.security.GeneralSecurityException; import java.security.MessageDigest; import java.security.SecureRandom; import org.apache.commons.lang3.Validate; /** * 支持SHA-1/MD5消息摘要的工具类. * * 返回ByteSource,可进一步被编码为Hex, Base64或UrlSafeBase64 * * @author calvin */ public class Digests { private static final String SHA1 = "SHA-1"; private static final String MD5 = "MD5"; private static SecureRandom random = new SecureRandom(); /** * 对输入字符串进行sha1散列. */ public static byte[] sha1(byte[] input) { return digest(input, SHA1, null, 1); } public static byte[] sha1(byte[] input, byte[] salt) { return digest(input, SHA1, salt, 1); } public static byte[] sha1(byte[] input, byte[] salt, int iterations) { return digest(input, SHA1, salt, iterations); } /** * 对字符串进行散列, 支持md5与sha1算法. */ private static byte[] digest(byte[] input, String algorithm, byte[] salt, int iterations) { try { MessageDigest digest = MessageDigest.getInstance(algorithm); if (salt != null) { digest.update(salt); } byte[] result = digest.digest(input); for (int i = 1; i < iterations; i++) { digest.reset(); result = digest.digest(result); } return result; } catch (GeneralSecurityException e) { throw Exceptions.unchecked(e); } } /** * 生成随机的Byte[]作为salt. * * @param numBytes byte数组的大小 */ public static byte[] generateSalt(int numBytes) { Validate.isTrue(numBytes > 0, "numBytes argument must be a positive integer (1 or larger)", numBytes); byte[] bytes = new byte[numBytes]; random.nextBytes(bytes); return bytes; } /** * 对文件进行md5散列. */ public static byte[] md5(InputStream input) throws IOException { return digest(input, MD5); } /** * 对文件进行sha1散列. */ public static byte[] sha1(InputStream input) throws IOException { return digest(input, SHA1); } private static byte[] digest(InputStream input, String algorithm) throws IOException { try { MessageDigest messageDigest = MessageDigest.getInstance(algorithm); int bufferLength = 8 * 1024; byte[] buffer = new byte[bufferLength]; int read = input.read(buffer, 0, bufferLength); while (read > -1) { messageDigest.update(buffer, 0, read); read = input.read(buffer, 0, bufferLength); } return messageDigest.digest(); } catch (GeneralSecurityException e) { throw Exceptions.unchecked(e); } } }
eeyesonme/myspider
projects/ireader/src/main/java/com/digitalplay/network/ireader/util/Digests.java
Java
apache-2.0
2,623
<?php function nethut_setup() { add_theme_support( 'title-tag' ); add_theme_support( 'automatic-feed-links' ); add_theme_support( 'custom-header', [ 'uploads' => true, 'flex-width' => true, 'flex-height' => true, 'header-text' => false ] ); register_nav_menus( array( 'main' => __( 'Main Menu', 'nethut' ), ) ); } add_action( 'after_setup_theme', 'nethut_setup' ); function nethut_scripts() { wp_enqueue_style( 'nethut-style', get_stylesheet_uri() ); } add_action( 'wp_enqueue_scripts', 'nethut_scripts' ); function nethut_widgets_init() { register_sidebar( [ 'name' => 'Sidebar', 'id' => 'sidebar-right-column', 'before_widget' => '', 'after_widget' => '', ] ); } add_action( 'widgets_init', 'nethut_widgets_init' ); /* Disable comments feed */ add_filter( 'feed_links_show_comments_feed', '__return_false' ); function nethut_tag_cloud( $before = null, $sep = ', ', $after = '' ) { $tags = get_terms( array( 'taxonomy' => 'post_tag', 'hide_empty' => false, ) ); $tagLinks = array_map( function( $tag ) { return '<a href="' . get_tag_link( $tag->term_id ) . '" rel="tag">' . $tag->name . '</a>'; }, $tags ); echo $before . implode( $sep, $tagLinks ) . $after; } /** * Display just the post summary, up to the <code><!--more--></code> link, or if * that one's not found, display Wordpress's generated excerpt. */ function nethut_post_summary() { global $page, $pages; if ( $page > count( $pages ) ) { // if the requested page doesn't exist $page = count( $pages ); } $content = $pages[$page - 1]; if ( preg_match( '/<!--more(.*?)?-->/', $content, $matches ) ) { $content = explode( $matches[0], $content, 2 )[0]; } else { $content = get_the_excerpt(); } $content = apply_filters( 'the_content', $content ); $content = str_replace( ']]>', ']]&gt;', $content ); echo $content; }
mpaluchowski/wordpress-theme-nethut
functions.php
PHP
apache-2.0
2,031
/* * * Copyright 2015 Netflix, Inc. * * 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 * * 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.netflix.genie.test.categories; /** * Interface intented to be used as a JUnit category to flag tests as integration tests. * * @author tgianos * @since 3.0.0 */ public interface IntegrationTest { }
ajoymajumdar/genie
genie-test/src/main/java/com/netflix/genie/test/categories/IntegrationTest.java
Java
apache-2.0
856
package com.tts.component.converter; import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.serializer.SerializerFeature; import com.tts.util.JsonUtil; import org.springframework.http.HttpInputMessage; import org.springframework.http.HttpOutputMessage; import org.springframework.http.MediaType; import org.springframework.http.converter.AbstractHttpMessageConverter; import org.springframework.http.converter.HttpMessageNotReadableException; import org.springframework.http.converter.HttpMessageNotWritableException; import org.springframework.stereotype.Service; import org.springframework.util.Base64Utils; import java.io.ByteArrayOutputStream; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import java.nio.charset.Charset; /** * Created by tts on 2016/5/4. */ @Service public class JsonHttpMessageConverter extends AbstractHttpMessageConverter<Object> { public static final Charset UTF8 = Charset.forName("UTF-8"); private Charset charset; private SerializerFeature[] features; public JsonHttpMessageConverter() { super(new MediaType[]{new MediaType("application", "json", UTF8), new MediaType("application", "*+json", UTF8)}); this.charset = UTF8; this.features = new SerializerFeature[0]; } protected boolean supports(Class<?> clazz) { return true; } public Charset getCharset() { return this.charset; } public void setCharset(Charset charset) { this.charset = charset; } public SerializerFeature[] getFeatures() { return this.features; } public void setFeatures(SerializerFeature... features) { this.features = features; } public Object readInternal(Class<? extends Object> clazz, HttpInputMessage inputMessage) throws IOException, HttpMessageNotReadableException { ByteArrayOutputStream baos = new ByteArrayOutputStream(); InputStream in = inputMessage.getBody(); byte[] buf = new byte[1024]; while(true) { int bytes = in.read(buf); if(bytes == -1) { // base64解码 byte[] bytes1 = Base64Utils.decode(baos.toByteArray()); return JsonUtil.toObject(new String(bytes1,0,bytes1.length),clazz); } if(bytes > 0) { baos.write(buf, 0, bytes); } } } protected void writeInternal(Object obj, HttpOutputMessage outputMessage) throws IOException, HttpMessageNotWritableException { OutputStream out = outputMessage.getBody(); String text = JSON.toJSONString(obj, this.features); byte[] bytes = text.getBytes(this.charset); // base64编码 out.write(Base64Utils.encode(bytes)); } }
Fish-Potato/tts-core
src/main/java/com/tts/component/converter/JsonHttpMessageConverter.java
Java
apache-2.0
2,783
<!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_151) on Wed Jan 16 11:48:20 MST 2019 --> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>org.wildfly.swarm.config.messaging.activemq (BOM: * : All 2.3.0.Final API)</title> <meta name="date" content="2019-01-16"> <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="org.wildfly.swarm.config.messaging.activemq (BOM: * : All 2.3.0.Final 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 class="navBarCell1Rev">Package</li> <li>Class</li> <li><a href="package-use.html">Use</a></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 class="aboutLanguage">Thorntail API, 2.3.0.Final</div> </div> <div class="subNav"> <ul class="navList"> <li><a href="../../../../../../org/wildfly/swarm/config/management/service/package-summary.html">Prev&nbsp;Package</a></li> <li><a href="../../../../../../org/wildfly/swarm/config/messaging/activemq/server/package-summary.html">Next&nbsp;Package</a></li> </ul> <ul class="navList"> <li><a href="../../../../../../index.html?org/wildfly/swarm/config/messaging/activemq/package-summary.html" target="_top">Frames</a></li> <li><a href="package-summary.html" target="_top">No&nbsp;Frames</a></li> </ul> <ul class="navList" id="allclasses_navbar_top"> <li><a href="../../../../../../allclasses-noframe.html">All&nbsp;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"> <h1 title="Package" class="title">Package&nbsp;org.wildfly.swarm.config.messaging.activemq</h1> </div> <div class="contentContainer"> <ul class="blockList"> <li class="blockList"> <table class="typeSummary" border="0" cellpadding="3" cellspacing="0" summary="Interface Summary table, listing interfaces, and an explanation"> <caption><span>Interface Summary</span><span class="tabEnd">&nbsp;</span></caption> <tr> <th class="colFirst" scope="col">Interface</th> <th class="colLast" scope="col">Description</th> </tr> <tbody> <tr class="altColor"> <td class="colFirst"><a href="../../../../../../org/wildfly/swarm/config/messaging/activemq/ConnectionFactoryConsumer.html" title="interface in org.wildfly.swarm.config.messaging.activemq">ConnectionFactoryConsumer</a>&lt;T extends <a href="../../../../../../org/wildfly/swarm/config/messaging/activemq/ConnectionFactory.html" title="class in org.wildfly.swarm.config.messaging.activemq">ConnectionFactory</a>&lt;T&gt;&gt;</td> <td class="colLast">&nbsp;</td> </tr> <tr class="rowColor"> <td class="colFirst"><a href="../../../../../../org/wildfly/swarm/config/messaging/activemq/ConnectionFactorySupplier.html" title="interface in org.wildfly.swarm.config.messaging.activemq">ConnectionFactorySupplier</a>&lt;T extends <a href="../../../../../../org/wildfly/swarm/config/messaging/activemq/ConnectionFactory.html" title="class in org.wildfly.swarm.config.messaging.activemq">ConnectionFactory</a>&gt;</td> <td class="colLast">&nbsp;</td> </tr> <tr class="altColor"> <td class="colFirst"><a href="../../../../../../org/wildfly/swarm/config/messaging/activemq/ConnectorConsumer.html" title="interface in org.wildfly.swarm.config.messaging.activemq">ConnectorConsumer</a>&lt;T extends <a href="../../../../../../org/wildfly/swarm/config/messaging/activemq/Connector.html" title="class in org.wildfly.swarm.config.messaging.activemq">Connector</a>&lt;T&gt;&gt;</td> <td class="colLast">&nbsp;</td> </tr> <tr class="rowColor"> <td class="colFirst"><a href="../../../../../../org/wildfly/swarm/config/messaging/activemq/ConnectorSupplier.html" title="interface in org.wildfly.swarm.config.messaging.activemq">ConnectorSupplier</a>&lt;T extends <a href="../../../../../../org/wildfly/swarm/config/messaging/activemq/Connector.html" title="class in org.wildfly.swarm.config.messaging.activemq">Connector</a>&gt;</td> <td class="colLast">&nbsp;</td> </tr> <tr class="altColor"> <td class="colFirst"><a href="../../../../../../org/wildfly/swarm/config/messaging/activemq/DiscoveryGroupConsumer.html" title="interface in org.wildfly.swarm.config.messaging.activemq">DiscoveryGroupConsumer</a>&lt;T extends <a href="../../../../../../org/wildfly/swarm/config/messaging/activemq/DiscoveryGroup.html" title="class in org.wildfly.swarm.config.messaging.activemq">DiscoveryGroup</a>&lt;T&gt;&gt;</td> <td class="colLast">&nbsp;</td> </tr> <tr class="rowColor"> <td class="colFirst"><a href="../../../../../../org/wildfly/swarm/config/messaging/activemq/DiscoveryGroupSupplier.html" title="interface in org.wildfly.swarm.config.messaging.activemq">DiscoveryGroupSupplier</a>&lt;T extends <a href="../../../../../../org/wildfly/swarm/config/messaging/activemq/DiscoveryGroup.html" title="class in org.wildfly.swarm.config.messaging.activemq">DiscoveryGroup</a>&gt;</td> <td class="colLast">&nbsp;</td> </tr> <tr class="altColor"> <td class="colFirst"><a href="../../../../../../org/wildfly/swarm/config/messaging/activemq/ExternalJMSQueueConsumer.html" title="interface in org.wildfly.swarm.config.messaging.activemq">ExternalJMSQueueConsumer</a>&lt;T extends <a href="../../../../../../org/wildfly/swarm/config/messaging/activemq/ExternalJMSQueue.html" title="class in org.wildfly.swarm.config.messaging.activemq">ExternalJMSQueue</a>&lt;T&gt;&gt;</td> <td class="colLast">&nbsp;</td> </tr> <tr class="rowColor"> <td class="colFirst"><a href="../../../../../../org/wildfly/swarm/config/messaging/activemq/ExternalJMSQueueSupplier.html" title="interface in org.wildfly.swarm.config.messaging.activemq">ExternalJMSQueueSupplier</a>&lt;T extends <a href="../../../../../../org/wildfly/swarm/config/messaging/activemq/ExternalJMSQueue.html" title="class in org.wildfly.swarm.config.messaging.activemq">ExternalJMSQueue</a>&gt;</td> <td class="colLast">&nbsp;</td> </tr> <tr class="altColor"> <td class="colFirst"><a href="../../../../../../org/wildfly/swarm/config/messaging/activemq/ExternalJMSTopicConsumer.html" title="interface in org.wildfly.swarm.config.messaging.activemq">ExternalJMSTopicConsumer</a>&lt;T extends <a href="../../../../../../org/wildfly/swarm/config/messaging/activemq/ExternalJMSTopic.html" title="class in org.wildfly.swarm.config.messaging.activemq">ExternalJMSTopic</a>&lt;T&gt;&gt;</td> <td class="colLast">&nbsp;</td> </tr> <tr class="rowColor"> <td class="colFirst"><a href="../../../../../../org/wildfly/swarm/config/messaging/activemq/ExternalJMSTopicSupplier.html" title="interface in org.wildfly.swarm.config.messaging.activemq">ExternalJMSTopicSupplier</a>&lt;T extends <a href="../../../../../../org/wildfly/swarm/config/messaging/activemq/ExternalJMSTopic.html" title="class in org.wildfly.swarm.config.messaging.activemq">ExternalJMSTopic</a>&gt;</td> <td class="colLast">&nbsp;</td> </tr> <tr class="altColor"> <td class="colFirst"><a href="../../../../../../org/wildfly/swarm/config/messaging/activemq/HTTPConnectorConsumer.html" title="interface in org.wildfly.swarm.config.messaging.activemq">HTTPConnectorConsumer</a>&lt;T extends <a href="../../../../../../org/wildfly/swarm/config/messaging/activemq/HTTPConnector.html" title="class in org.wildfly.swarm.config.messaging.activemq">HTTPConnector</a>&lt;T&gt;&gt;</td> <td class="colLast">&nbsp;</td> </tr> <tr class="rowColor"> <td class="colFirst"><a href="../../../../../../org/wildfly/swarm/config/messaging/activemq/HTTPConnectorSupplier.html" title="interface in org.wildfly.swarm.config.messaging.activemq">HTTPConnectorSupplier</a>&lt;T extends <a href="../../../../../../org/wildfly/swarm/config/messaging/activemq/HTTPConnector.html" title="class in org.wildfly.swarm.config.messaging.activemq">HTTPConnector</a>&gt;</td> <td class="colLast">&nbsp;</td> </tr> <tr class="altColor"> <td class="colFirst"><a href="../../../../../../org/wildfly/swarm/config/messaging/activemq/InVMConnectorConsumer.html" title="interface in org.wildfly.swarm.config.messaging.activemq">InVMConnectorConsumer</a>&lt;T extends <a href="../../../../../../org/wildfly/swarm/config/messaging/activemq/InVMConnector.html" title="class in org.wildfly.swarm.config.messaging.activemq">InVMConnector</a>&lt;T&gt;&gt;</td> <td class="colLast">&nbsp;</td> </tr> <tr class="rowColor"> <td class="colFirst"><a href="../../../../../../org/wildfly/swarm/config/messaging/activemq/InVMConnectorSupplier.html" title="interface in org.wildfly.swarm.config.messaging.activemq">InVMConnectorSupplier</a>&lt;T extends <a href="../../../../../../org/wildfly/swarm/config/messaging/activemq/InVMConnector.html" title="class in org.wildfly.swarm.config.messaging.activemq">InVMConnector</a>&gt;</td> <td class="colLast">&nbsp;</td> </tr> <tr class="altColor"> <td class="colFirst"><a href="../../../../../../org/wildfly/swarm/config/messaging/activemq/JMSBridgeConsumer.html" title="interface in org.wildfly.swarm.config.messaging.activemq">JMSBridgeConsumer</a>&lt;T extends <a href="../../../../../../org/wildfly/swarm/config/messaging/activemq/JMSBridge.html" title="class in org.wildfly.swarm.config.messaging.activemq">JMSBridge</a>&lt;T&gt;&gt;</td> <td class="colLast">&nbsp;</td> </tr> <tr class="rowColor"> <td class="colFirst"><a href="../../../../../../org/wildfly/swarm/config/messaging/activemq/JMSBridgeSupplier.html" title="interface in org.wildfly.swarm.config.messaging.activemq">JMSBridgeSupplier</a>&lt;T extends <a href="../../../../../../org/wildfly/swarm/config/messaging/activemq/JMSBridge.html" title="class in org.wildfly.swarm.config.messaging.activemq">JMSBridge</a>&gt;</td> <td class="colLast">&nbsp;</td> </tr> <tr class="altColor"> <td class="colFirst"><a href="../../../../../../org/wildfly/swarm/config/messaging/activemq/PooledConnectionFactoryConsumer.html" title="interface in org.wildfly.swarm.config.messaging.activemq">PooledConnectionFactoryConsumer</a>&lt;T extends <a href="../../../../../../org/wildfly/swarm/config/messaging/activemq/PooledConnectionFactory.html" title="class in org.wildfly.swarm.config.messaging.activemq">PooledConnectionFactory</a>&lt;T&gt;&gt;</td> <td class="colLast">&nbsp;</td> </tr> <tr class="rowColor"> <td class="colFirst"><a href="../../../../../../org/wildfly/swarm/config/messaging/activemq/PooledConnectionFactorySupplier.html" title="interface in org.wildfly.swarm.config.messaging.activemq">PooledConnectionFactorySupplier</a>&lt;T extends <a href="../../../../../../org/wildfly/swarm/config/messaging/activemq/PooledConnectionFactory.html" title="class in org.wildfly.swarm.config.messaging.activemq">PooledConnectionFactory</a>&gt;</td> <td class="colLast">&nbsp;</td> </tr> <tr class="altColor"> <td class="colFirst"><a href="../../../../../../org/wildfly/swarm/config/messaging/activemq/RemoteConnectorConsumer.html" title="interface in org.wildfly.swarm.config.messaging.activemq">RemoteConnectorConsumer</a>&lt;T extends <a href="../../../../../../org/wildfly/swarm/config/messaging/activemq/RemoteConnector.html" title="class in org.wildfly.swarm.config.messaging.activemq">RemoteConnector</a>&lt;T&gt;&gt;</td> <td class="colLast">&nbsp;</td> </tr> <tr class="rowColor"> <td class="colFirst"><a href="../../../../../../org/wildfly/swarm/config/messaging/activemq/RemoteConnectorSupplier.html" title="interface in org.wildfly.swarm.config.messaging.activemq">RemoteConnectorSupplier</a>&lt;T extends <a href="../../../../../../org/wildfly/swarm/config/messaging/activemq/RemoteConnector.html" title="class in org.wildfly.swarm.config.messaging.activemq">RemoteConnector</a>&gt;</td> <td class="colLast">&nbsp;</td> </tr> <tr class="altColor"> <td class="colFirst"><a href="../../../../../../org/wildfly/swarm/config/messaging/activemq/ServerConsumer.html" title="interface in org.wildfly.swarm.config.messaging.activemq">ServerConsumer</a>&lt;T extends <a href="../../../../../../org/wildfly/swarm/config/messaging/activemq/Server.html" title="class in org.wildfly.swarm.config.messaging.activemq">Server</a>&lt;T&gt;&gt;</td> <td class="colLast">&nbsp;</td> </tr> <tr class="rowColor"> <td class="colFirst"><a href="../../../../../../org/wildfly/swarm/config/messaging/activemq/ServerSupplier.html" title="interface in org.wildfly.swarm.config.messaging.activemq">ServerSupplier</a>&lt;T extends <a href="../../../../../../org/wildfly/swarm/config/messaging/activemq/Server.html" title="class in org.wildfly.swarm.config.messaging.activemq">Server</a>&gt;</td> <td class="colLast">&nbsp;</td> </tr> </tbody> </table> </li> <li class="blockList"> <table class="typeSummary" border="0" cellpadding="3" cellspacing="0" summary="Class Summary table, listing classes, and an explanation"> <caption><span>Class Summary</span><span class="tabEnd">&nbsp;</span></caption> <tr> <th class="colFirst" scope="col">Class</th> <th class="colLast" scope="col">Description</th> </tr> <tbody> <tr class="altColor"> <td class="colFirst"><a href="../../../../../../org/wildfly/swarm/config/messaging/activemq/ConnectionFactory.html" title="class in org.wildfly.swarm.config.messaging.activemq">ConnectionFactory</a>&lt;T extends <a href="../../../../../../org/wildfly/swarm/config/messaging/activemq/ConnectionFactory.html" title="class in org.wildfly.swarm.config.messaging.activemq">ConnectionFactory</a>&lt;T&gt;&gt;</td> <td class="colLast"> <div class="block">Defines a connection factory.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><a href="../../../../../../org/wildfly/swarm/config/messaging/activemq/Connector.html" title="class in org.wildfly.swarm.config.messaging.activemq">Connector</a>&lt;T extends <a href="../../../../../../org/wildfly/swarm/config/messaging/activemq/Connector.html" title="class in org.wildfly.swarm.config.messaging.activemq">Connector</a>&lt;T&gt;&gt;</td> <td class="colLast"> <div class="block">A connector can be used by a client to define how it connects to a server.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><a href="../../../../../../org/wildfly/swarm/config/messaging/activemq/DiscoveryGroup.html" title="class in org.wildfly.swarm.config.messaging.activemq">DiscoveryGroup</a>&lt;T extends <a href="../../../../../../org/wildfly/swarm/config/messaging/activemq/DiscoveryGroup.html" title="class in org.wildfly.swarm.config.messaging.activemq">DiscoveryGroup</a>&lt;T&gt;&gt;</td> <td class="colLast"> <div class="block">Multicast group to listen to receive broadcast from other servers announcing their connectors.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><a href="../../../../../../org/wildfly/swarm/config/messaging/activemq/ExternalJMSQueue.html" title="class in org.wildfly.swarm.config.messaging.activemq">ExternalJMSQueue</a>&lt;T extends <a href="../../../../../../org/wildfly/swarm/config/messaging/activemq/ExternalJMSQueue.html" title="class in org.wildfly.swarm.config.messaging.activemq">ExternalJMSQueue</a>&lt;T&gt;&gt;</td> <td class="colLast"> <div class="block">Defines a JMS queue to a remote broker.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><a href="../../../../../../org/wildfly/swarm/config/messaging/activemq/ExternalJMSTopic.html" title="class in org.wildfly.swarm.config.messaging.activemq">ExternalJMSTopic</a>&lt;T extends <a href="../../../../../../org/wildfly/swarm/config/messaging/activemq/ExternalJMSTopic.html" title="class in org.wildfly.swarm.config.messaging.activemq">ExternalJMSTopic</a>&lt;T&gt;&gt;</td> <td class="colLast"> <div class="block">Defines a JMS topic to a remote broker.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><a href="../../../../../../org/wildfly/swarm/config/messaging/activemq/HTTPConnector.html" title="class in org.wildfly.swarm.config.messaging.activemq">HTTPConnector</a>&lt;T extends <a href="../../../../../../org/wildfly/swarm/config/messaging/activemq/HTTPConnector.html" title="class in org.wildfly.swarm.config.messaging.activemq">HTTPConnector</a>&lt;T&gt;&gt;</td> <td class="colLast"> <div class="block">Used by a remote client to define how it connects to a server over HTTP.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><a href="../../../../../../org/wildfly/swarm/config/messaging/activemq/InVMConnector.html" title="class in org.wildfly.swarm.config.messaging.activemq">InVMConnector</a>&lt;T extends <a href="../../../../../../org/wildfly/swarm/config/messaging/activemq/InVMConnector.html" title="class in org.wildfly.swarm.config.messaging.activemq">InVMConnector</a>&lt;T&gt;&gt;</td> <td class="colLast"> <div class="block">Used by an in-VM client to define how it connects to a server.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><a href="../../../../../../org/wildfly/swarm/config/messaging/activemq/JMSBridge.html" title="class in org.wildfly.swarm.config.messaging.activemq">JMSBridge</a>&lt;T extends <a href="../../../../../../org/wildfly/swarm/config/messaging/activemq/JMSBridge.html" title="class in org.wildfly.swarm.config.messaging.activemq">JMSBridge</a>&lt;T&gt;&gt;</td> <td class="colLast"> <div class="block">A JMS bridge instance.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><a href="../../../../../../org/wildfly/swarm/config/messaging/activemq/PooledConnectionFactory.html" title="class in org.wildfly.swarm.config.messaging.activemq">PooledConnectionFactory</a>&lt;T extends <a href="../../../../../../org/wildfly/swarm/config/messaging/activemq/PooledConnectionFactory.html" title="class in org.wildfly.swarm.config.messaging.activemq">PooledConnectionFactory</a>&lt;T&gt;&gt;</td> <td class="colLast"> <div class="block">Defines a managed connection factory.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><a href="../../../../../../org/wildfly/swarm/config/messaging/activemq/RemoteConnector.html" title="class in org.wildfly.swarm.config.messaging.activemq">RemoteConnector</a>&lt;T extends <a href="../../../../../../org/wildfly/swarm/config/messaging/activemq/RemoteConnector.html" title="class in org.wildfly.swarm.config.messaging.activemq">RemoteConnector</a>&lt;T&gt;&gt;</td> <td class="colLast"> <div class="block">Used by a remote client to define how it connects to a server.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><a href="../../../../../../org/wildfly/swarm/config/messaging/activemq/Server.html" title="class in org.wildfly.swarm.config.messaging.activemq">Server</a>&lt;T extends <a href="../../../../../../org/wildfly/swarm/config/messaging/activemq/Server.html" title="class in org.wildfly.swarm.config.messaging.activemq">Server</a>&lt;T&gt;&gt;</td> <td class="colLast"> <div class="block">An ActiveMQ server instance.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><a href="../../../../../../org/wildfly/swarm/config/messaging/activemq/Server.ServerResources.html" title="class in org.wildfly.swarm.config.messaging.activemq">Server.ServerResources</a></td> <td class="colLast"> <div class="block">Child mutators for Server</div> </td> </tr> </tbody> </table> </li> <li class="blockList"> <table class="typeSummary" border="0" cellpadding="3" cellspacing="0" summary="Enum Summary table, listing enums, and an explanation"> <caption><span>Enum Summary</span><span class="tabEnd">&nbsp;</span></caption> <tr> <th class="colFirst" scope="col">Enum</th> <th class="colLast" scope="col">Description</th> </tr> <tbody> <tr class="altColor"> <td class="colFirst"><a href="../../../../../../org/wildfly/swarm/config/messaging/activemq/FactoryType.html" title="enum in org.wildfly.swarm.config.messaging.activemq">FactoryType</a></td> <td class="colLast">&nbsp;</td> </tr> <tr class="rowColor"> <td class="colFirst"><a href="../../../../../../org/wildfly/swarm/config/messaging/activemq/JMSBridge.QualityOfService.html" title="enum in org.wildfly.swarm.config.messaging.activemq">JMSBridge.QualityOfService</a></td> <td class="colLast">&nbsp;</td> </tr> <tr class="altColor"> <td class="colFirst"><a href="../../../../../../org/wildfly/swarm/config/messaging/activemq/Server.JournalType.html" title="enum in org.wildfly.swarm.config.messaging.activemq">Server.JournalType</a></td> <td class="colLast">&nbsp;</td> </tr> </tbody> </table> </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 class="navBarCell1Rev">Package</li> <li>Class</li> <li><a href="package-use.html">Use</a></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 class="aboutLanguage">Thorntail API, 2.3.0.Final</div> </div> <div class="subNav"> <ul class="navList"> <li><a href="../../../../../../org/wildfly/swarm/config/management/service/package-summary.html">Prev&nbsp;Package</a></li> <li><a href="../../../../../../org/wildfly/swarm/config/messaging/activemq/server/package-summary.html">Next&nbsp;Package</a></li> </ul> <ul class="navList"> <li><a href="../../../../../../index.html?org/wildfly/swarm/config/messaging/activemq/package-summary.html" target="_top">Frames</a></li> <li><a href="package-summary.html" target="_top">No&nbsp;Frames</a></li> </ul> <ul class="navList" id="allclasses_navbar_bottom"> <li><a href="../../../../../../allclasses-noframe.html">All&nbsp;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 &#169; 2019 <a href="http://www.jboss.org">JBoss by Red Hat</a>. All rights reserved.</small></p> </body> </html>
wildfly-swarm/wildfly-swarm-javadocs
2.3.0.Final/apidocs/org/wildfly/swarm/config/messaging/activemq/package-summary.html
HTML
apache-2.0
23,357
################################## # Protocol class ################################## class Protocol # Java event to call on Service send methods attr_accessor :onSend @onSend=nil # Java event to call on Service receive methods attr_accessor :onReceive @onReceive=nil # Java event to call on Service error methods attr_accessor :onError @onError=nil # Java event to call on Service Task resolved method attr_accessor :onTask @onTask=nil attr_accessor :messages @messages=nil attr_accessor :types @types=nil attr_accessor :services @services=nil end
drmillan/service-generator
model/protocol.rb
Ruby
apache-2.0
585
package com.lyc.gank.widget; import android.annotation.SuppressLint; import android.content.Context; import android.util.AttributeSet; import android.view.MotionEvent; import android.webkit.WebView; /** * Created by Liu Yuchuan on 2018/2/24. */ public class ScrollWebView extends WebView { private OnScrollListener onScrollListener; private int mLastX, mLastY; private boolean mOnScroll; public ScrollWebView(Context context, AttributeSet attrs) { super(context, attrs); } @SuppressLint("ClickableViewAccessibility") @Override public boolean onTouchEvent(MotionEvent event) { int x = (int) event.getX(); int y = (int) event.getY(); switch (event.getAction()) { case MotionEvent.ACTION_DOWN: mLastX = x; mLastY = y; mOnScroll = true; break; case MotionEvent.ACTION_MOVE: if (mOnScroll && onScrollListener != null) { onScrollListener.onScroll(x - mLastX, y - mLastY); } break; case MotionEvent.ACTION_UP: mOnScroll = false; break; } return super.onTouchEvent(event); } public void setOnScrollListener(OnScrollListener onScrollListener) { this.onScrollListener = onScrollListener; } public interface OnScrollListener { void onScroll(int dx, int dy); } }
SirLYC/Android-Gank-Share
app/src/main/java/com/lyc/gank/widget/ScrollWebView.java
Java
apache-2.0
1,477
;;;; // Flash callback function idp_xx_movie_DoFSCommand(cmd, args) { // alert(cmd); if ("undefined" != typeof mainWindow) { mainWindow.onFSCommand(cmd, args); }else{ alert("no mainwindow"); } } // Create movie var t = ''; t += '<embed name="idp_xx_movie" id="idp_xx_movie" src="' + url + '" '; t += 'width="100%" height="100%" '; t += 'type="application/x-shockwave-flash" '; t += 'flashvars="' + vars + '"></embed>'; document.close(); // document.write will open a new document document.write(t);
seven1240/trainer-studio-opensource
resources/loadflash.js
JavaScript
apache-2.0
534
/** * RichMediaAd.java * * This file was auto-generated from WSDL * by the Apache Axis 1.4 Mar 02, 2009 (07:08:06 PST) WSDL2Java emitter. */ package com.google.api.ads.adwords.axis.v201601.cm; /** * Data associated with a rich media ad. * <span class="constraint AdxEnabled">This is disabled for * AdX when it is contained within Operators: ADD, SET.</span> */ public abstract class RichMediaAd extends com.google.api.ads.adwords.axis.v201601.cm.Ad implements java.io.Serializable { /* Name of the rich media ad. * <span class="constraint Required">This field is * required and should not be {@code null}.</span> */ private java.lang.String name; /* Dimensions (height and width) of the ad. * * This field is optional for ThirdPartyRedirectAd. * Ad Exchange traditional * yield management creatives do not specify the * dimension on the * ThirdPartyRedirectAd; instead, the size is specified * in the publisher * front end when creating a mediation chain. */ private com.google.api.ads.adwords.axis.v201601.cm.Dimensions dimensions; /* Snippet for this ad. Required for standard third-party ads. * <p>The length of the string should be between 1 and 3072, inclusive. */ private java.lang.String snippet; /* Impression beacon URL for the ad. */ private java.lang.String impressionBeaconUrl; /* Duration for the ad (in milliseconds). Default is 0. * <span class="constraint InRange">This field must * be greater than or equal to 0.</span> */ private java.lang.Integer adDuration; /* <a href="/adwords/api/docs/appendix/richmediacodes"> * Certified Vendor Format ID</a>. * <span class="constraint Required">This field is * required and should not be {@code null}.</span> */ private java.lang.Long certifiedVendorFormatId; /* SourceUrl pointing to the third party snippet. * For third party in-stream video ads, this stores * the VAST URL. For DFA ads, * it stores the InRed URL. */ private java.lang.String sourceUrl; /* Type of this rich media ad, the default is Standard. */ private com.google.api.ads.adwords.axis.v201601.cm.RichMediaAdRichMediaAdType richMediaAdType; /* A list of attributes that describe the rich media ad capabilities. */ private com.google.api.ads.adwords.axis.v201601.cm.RichMediaAdAdAttribute[] adAttributes; public RichMediaAd() { } public RichMediaAd( java.lang.Long id, java.lang.String url, java.lang.String displayUrl, java.lang.String[] finalUrls, java.lang.String[] finalMobileUrls, com.google.api.ads.adwords.axis.v201601.cm.AppUrl[] finalAppUrls, java.lang.String trackingUrlTemplate, com.google.api.ads.adwords.axis.v201601.cm.CustomParameters urlCustomParameters, com.google.api.ads.adwords.axis.v201601.cm.AdType type, java.lang.Long devicePreference, java.lang.String adType, java.lang.String name, com.google.api.ads.adwords.axis.v201601.cm.Dimensions dimensions, java.lang.String snippet, java.lang.String impressionBeaconUrl, java.lang.Integer adDuration, java.lang.Long certifiedVendorFormatId, java.lang.String sourceUrl, com.google.api.ads.adwords.axis.v201601.cm.RichMediaAdRichMediaAdType richMediaAdType, com.google.api.ads.adwords.axis.v201601.cm.RichMediaAdAdAttribute[] adAttributes) { super( id, url, displayUrl, finalUrls, finalMobileUrls, finalAppUrls, trackingUrlTemplate, urlCustomParameters, type, devicePreference, adType); this.name = name; this.dimensions = dimensions; this.snippet = snippet; this.impressionBeaconUrl = impressionBeaconUrl; this.adDuration = adDuration; this.certifiedVendorFormatId = certifiedVendorFormatId; this.sourceUrl = sourceUrl; this.richMediaAdType = richMediaAdType; this.adAttributes = adAttributes; } /** * Gets the name value for this RichMediaAd. * * @return name * Name of the rich media ad. * <span class="constraint Required">This field is * required and should not be {@code null}.</span> */ public java.lang.String getName() { return name; } /** * Sets the name value for this RichMediaAd. * * @param name * Name of the rich media ad. * <span class="constraint Required">This field is * required and should not be {@code null}.</span> */ public void setName(java.lang.String name) { this.name = name; } /** * Gets the dimensions value for this RichMediaAd. * * @return dimensions * Dimensions (height and width) of the ad. * * This field is optional for ThirdPartyRedirectAd. * Ad Exchange traditional * yield management creatives do not specify the * dimension on the * ThirdPartyRedirectAd; instead, the size is specified * in the publisher * front end when creating a mediation chain. */ public com.google.api.ads.adwords.axis.v201601.cm.Dimensions getDimensions() { return dimensions; } /** * Sets the dimensions value for this RichMediaAd. * * @param dimensions * Dimensions (height and width) of the ad. * * This field is optional for ThirdPartyRedirectAd. * Ad Exchange traditional * yield management creatives do not specify the * dimension on the * ThirdPartyRedirectAd; instead, the size is specified * in the publisher * front end when creating a mediation chain. */ public void setDimensions(com.google.api.ads.adwords.axis.v201601.cm.Dimensions dimensions) { this.dimensions = dimensions; } /** * Gets the snippet value for this RichMediaAd. * * @return snippet * Snippet for this ad. Required for standard third-party ads. * <p>The length of the string should be between 1 and 3072, inclusive. */ public java.lang.String getSnippet() { return snippet; } /** * Sets the snippet value for this RichMediaAd. * * @param snippet * Snippet for this ad. Required for standard third-party ads. * <p>The length of the string should be between 1 and 3072, inclusive. */ public void setSnippet(java.lang.String snippet) { this.snippet = snippet; } /** * Gets the impressionBeaconUrl value for this RichMediaAd. * * @return impressionBeaconUrl * Impression beacon URL for the ad. */ public java.lang.String getImpressionBeaconUrl() { return impressionBeaconUrl; } /** * Sets the impressionBeaconUrl value for this RichMediaAd. * * @param impressionBeaconUrl * Impression beacon URL for the ad. */ public void setImpressionBeaconUrl(java.lang.String impressionBeaconUrl) { this.impressionBeaconUrl = impressionBeaconUrl; } /** * Gets the adDuration value for this RichMediaAd. * * @return adDuration * Duration for the ad (in milliseconds). Default is 0. * <span class="constraint InRange">This field must * be greater than or equal to 0.</span> */ public java.lang.Integer getAdDuration() { return adDuration; } /** * Sets the adDuration value for this RichMediaAd. * * @param adDuration * Duration for the ad (in milliseconds). Default is 0. * <span class="constraint InRange">This field must * be greater than or equal to 0.</span> */ public void setAdDuration(java.lang.Integer adDuration) { this.adDuration = adDuration; } /** * Gets the certifiedVendorFormatId value for this RichMediaAd. * * @return certifiedVendorFormatId * <a href="/adwords/api/docs/appendix/richmediacodes"> * Certified Vendor Format ID</a>. * <span class="constraint Required">This field is * required and should not be {@code null}.</span> */ public java.lang.Long getCertifiedVendorFormatId() { return certifiedVendorFormatId; } /** * Sets the certifiedVendorFormatId value for this RichMediaAd. * * @param certifiedVendorFormatId * <a href="/adwords/api/docs/appendix/richmediacodes"> * Certified Vendor Format ID</a>. * <span class="constraint Required">This field is * required and should not be {@code null}.</span> */ public void setCertifiedVendorFormatId(java.lang.Long certifiedVendorFormatId) { this.certifiedVendorFormatId = certifiedVendorFormatId; } /** * Gets the sourceUrl value for this RichMediaAd. * * @return sourceUrl * SourceUrl pointing to the third party snippet. * For third party in-stream video ads, this stores * the VAST URL. For DFA ads, * it stores the InRed URL. */ public java.lang.String getSourceUrl() { return sourceUrl; } /** * Sets the sourceUrl value for this RichMediaAd. * * @param sourceUrl * SourceUrl pointing to the third party snippet. * For third party in-stream video ads, this stores * the VAST URL. For DFA ads, * it stores the InRed URL. */ public void setSourceUrl(java.lang.String sourceUrl) { this.sourceUrl = sourceUrl; } /** * Gets the richMediaAdType value for this RichMediaAd. * * @return richMediaAdType * Type of this rich media ad, the default is Standard. */ public com.google.api.ads.adwords.axis.v201601.cm.RichMediaAdRichMediaAdType getRichMediaAdType() { return richMediaAdType; } /** * Sets the richMediaAdType value for this RichMediaAd. * * @param richMediaAdType * Type of this rich media ad, the default is Standard. */ public void setRichMediaAdType(com.google.api.ads.adwords.axis.v201601.cm.RichMediaAdRichMediaAdType richMediaAdType) { this.richMediaAdType = richMediaAdType; } /** * Gets the adAttributes value for this RichMediaAd. * * @return adAttributes * A list of attributes that describe the rich media ad capabilities. */ public com.google.api.ads.adwords.axis.v201601.cm.RichMediaAdAdAttribute[] getAdAttributes() { return adAttributes; } /** * Sets the adAttributes value for this RichMediaAd. * * @param adAttributes * A list of attributes that describe the rich media ad capabilities. */ public void setAdAttributes(com.google.api.ads.adwords.axis.v201601.cm.RichMediaAdAdAttribute[] adAttributes) { this.adAttributes = adAttributes; } public com.google.api.ads.adwords.axis.v201601.cm.RichMediaAdAdAttribute getAdAttributes(int i) { return this.adAttributes[i]; } public void setAdAttributes(int i, com.google.api.ads.adwords.axis.v201601.cm.RichMediaAdAdAttribute _value) { this.adAttributes[i] = _value; } private java.lang.Object __equalsCalc = null; public synchronized boolean equals(java.lang.Object obj) { if (!(obj instanceof RichMediaAd)) return false; RichMediaAd other = (RichMediaAd) obj; if (obj == null) return false; if (this == obj) return true; if (__equalsCalc != null) { return (__equalsCalc == obj); } __equalsCalc = obj; boolean _equals; _equals = super.equals(obj) && ((this.name==null && other.getName()==null) || (this.name!=null && this.name.equals(other.getName()))) && ((this.dimensions==null && other.getDimensions()==null) || (this.dimensions!=null && this.dimensions.equals(other.getDimensions()))) && ((this.snippet==null && other.getSnippet()==null) || (this.snippet!=null && this.snippet.equals(other.getSnippet()))) && ((this.impressionBeaconUrl==null && other.getImpressionBeaconUrl()==null) || (this.impressionBeaconUrl!=null && this.impressionBeaconUrl.equals(other.getImpressionBeaconUrl()))) && ((this.adDuration==null && other.getAdDuration()==null) || (this.adDuration!=null && this.adDuration.equals(other.getAdDuration()))) && ((this.certifiedVendorFormatId==null && other.getCertifiedVendorFormatId()==null) || (this.certifiedVendorFormatId!=null && this.certifiedVendorFormatId.equals(other.getCertifiedVendorFormatId()))) && ((this.sourceUrl==null && other.getSourceUrl()==null) || (this.sourceUrl!=null && this.sourceUrl.equals(other.getSourceUrl()))) && ((this.richMediaAdType==null && other.getRichMediaAdType()==null) || (this.richMediaAdType!=null && this.richMediaAdType.equals(other.getRichMediaAdType()))) && ((this.adAttributes==null && other.getAdAttributes()==null) || (this.adAttributes!=null && java.util.Arrays.equals(this.adAttributes, other.getAdAttributes()))); __equalsCalc = null; return _equals; } private boolean __hashCodeCalc = false; public synchronized int hashCode() { if (__hashCodeCalc) { return 0; } __hashCodeCalc = true; int _hashCode = super.hashCode(); if (getName() != null) { _hashCode += getName().hashCode(); } if (getDimensions() != null) { _hashCode += getDimensions().hashCode(); } if (getSnippet() != null) { _hashCode += getSnippet().hashCode(); } if (getImpressionBeaconUrl() != null) { _hashCode += getImpressionBeaconUrl().hashCode(); } if (getAdDuration() != null) { _hashCode += getAdDuration().hashCode(); } if (getCertifiedVendorFormatId() != null) { _hashCode += getCertifiedVendorFormatId().hashCode(); } if (getSourceUrl() != null) { _hashCode += getSourceUrl().hashCode(); } if (getRichMediaAdType() != null) { _hashCode += getRichMediaAdType().hashCode(); } if (getAdAttributes() != null) { for (int i=0; i<java.lang.reflect.Array.getLength(getAdAttributes()); i++) { java.lang.Object obj = java.lang.reflect.Array.get(getAdAttributes(), i); if (obj != null && !obj.getClass().isArray()) { _hashCode += obj.hashCode(); } } } __hashCodeCalc = false; return _hashCode; } // Type metadata private static org.apache.axis.description.TypeDesc typeDesc = new org.apache.axis.description.TypeDesc(RichMediaAd.class, true); static { typeDesc.setXmlType(new javax.xml.namespace.QName("https://adwords.google.com/api/adwords/cm/v201601", "RichMediaAd")); org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc(); elemField.setFieldName("name"); elemField.setXmlName(new javax.xml.namespace.QName("https://adwords.google.com/api/adwords/cm/v201601", "name")); elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string")); elemField.setMinOccurs(0); elemField.setNillable(false); typeDesc.addFieldDesc(elemField); elemField = new org.apache.axis.description.ElementDesc(); elemField.setFieldName("dimensions"); elemField.setXmlName(new javax.xml.namespace.QName("https://adwords.google.com/api/adwords/cm/v201601", "dimensions")); elemField.setXmlType(new javax.xml.namespace.QName("https://adwords.google.com/api/adwords/cm/v201601", "Dimensions")); elemField.setMinOccurs(0); elemField.setNillable(false); typeDesc.addFieldDesc(elemField); elemField = new org.apache.axis.description.ElementDesc(); elemField.setFieldName("snippet"); elemField.setXmlName(new javax.xml.namespace.QName("https://adwords.google.com/api/adwords/cm/v201601", "snippet")); elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string")); elemField.setMinOccurs(0); elemField.setNillable(false); typeDesc.addFieldDesc(elemField); elemField = new org.apache.axis.description.ElementDesc(); elemField.setFieldName("impressionBeaconUrl"); elemField.setXmlName(new javax.xml.namespace.QName("https://adwords.google.com/api/adwords/cm/v201601", "impressionBeaconUrl")); elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string")); elemField.setMinOccurs(0); elemField.setNillable(false); typeDesc.addFieldDesc(elemField); elemField = new org.apache.axis.description.ElementDesc(); elemField.setFieldName("adDuration"); elemField.setXmlName(new javax.xml.namespace.QName("https://adwords.google.com/api/adwords/cm/v201601", "adDuration")); elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int")); elemField.setMinOccurs(0); elemField.setNillable(false); typeDesc.addFieldDesc(elemField); elemField = new org.apache.axis.description.ElementDesc(); elemField.setFieldName("certifiedVendorFormatId"); elemField.setXmlName(new javax.xml.namespace.QName("https://adwords.google.com/api/adwords/cm/v201601", "certifiedVendorFormatId")); elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long")); elemField.setMinOccurs(0); elemField.setNillable(false); typeDesc.addFieldDesc(elemField); elemField = new org.apache.axis.description.ElementDesc(); elemField.setFieldName("sourceUrl"); elemField.setXmlName(new javax.xml.namespace.QName("https://adwords.google.com/api/adwords/cm/v201601", "sourceUrl")); elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string")); elemField.setMinOccurs(0); elemField.setNillable(false); typeDesc.addFieldDesc(elemField); elemField = new org.apache.axis.description.ElementDesc(); elemField.setFieldName("richMediaAdType"); elemField.setXmlName(new javax.xml.namespace.QName("https://adwords.google.com/api/adwords/cm/v201601", "richMediaAdType")); elemField.setXmlType(new javax.xml.namespace.QName("https://adwords.google.com/api/adwords/cm/v201601", "RichMediaAd.RichMediaAdType")); elemField.setMinOccurs(0); elemField.setNillable(false); typeDesc.addFieldDesc(elemField); elemField = new org.apache.axis.description.ElementDesc(); elemField.setFieldName("adAttributes"); elemField.setXmlName(new javax.xml.namespace.QName("https://adwords.google.com/api/adwords/cm/v201601", "adAttributes")); elemField.setXmlType(new javax.xml.namespace.QName("https://adwords.google.com/api/adwords/cm/v201601", "RichMediaAd.AdAttribute")); elemField.setMinOccurs(0); elemField.setNillable(false); elemField.setMaxOccursUnbounded(true); typeDesc.addFieldDesc(elemField); } /** * Return type metadata object */ public static org.apache.axis.description.TypeDesc getTypeDesc() { return typeDesc; } /** * Get Custom Serializer */ public static org.apache.axis.encoding.Serializer getSerializer( java.lang.String mechType, java.lang.Class _javaType, javax.xml.namespace.QName _xmlType) { return new org.apache.axis.encoding.ser.BeanSerializer( _javaType, _xmlType, typeDesc); } /** * Get Custom Deserializer */ public static org.apache.axis.encoding.Deserializer getDeserializer( java.lang.String mechType, java.lang.Class _javaType, javax.xml.namespace.QName _xmlType) { return new org.apache.axis.encoding.ser.BeanDeserializer( _javaType, _xmlType, typeDesc); } }
gawkermedia/googleads-java-lib
modules/adwords_axis/src/main/java/com/google/api/ads/adwords/axis/v201601/cm/RichMediaAd.java
Java
apache-2.0
21,310
# AUTOGENERATED FILE FROM balenalib/generic-amd64-ubuntu:focal-run RUN apt-get update \ && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \ ca-certificates \ \ # .NET Core dependencies libc6 \ libgcc1 \ libgssapi-krb5-2 \ libicu66 \ libssl1.1 \ libstdc++6 \ zlib1g \ && rm -rf /var/lib/apt/lists/* ENV \ # Configure web servers to bind to port 80 when present ASPNETCORE_URLS=http://+:80 \ # Enable detection of running in a container DOTNET_RUNNING_IN_CONTAINER=true # Install .NET Core SDK ENV DOTNET_SDK_VERSION 3.1.415 RUN curl -SL --output dotnet.tar.gz "https://dotnetcli.blob.core.windows.net/dotnet/Sdk/$DOTNET_SDK_VERSION/dotnet-sdk-$DOTNET_SDK_VERSION-linux-x64.tar.gz" \ && dotnet_sha512='df7a6d1abed609c382799a8f69f129ec72ce68236b2faecf01aed4c957a40a9cfbbc9126381bf517dff3dbe0e488f1092188582701dd0fef09a68b8c5707c747' \ && echo "$dotnet_sha512 dotnet.tar.gz" | sha512sum -c - \ && mkdir -p /usr/share/dotnet \ && tar -zxf dotnet.tar.gz -C /usr/share/dotnet \ && rm dotnet.tar.gz \ && ln -s /usr/share/dotnet/dotnet /usr/bin/dotnet # Enable correct mode for dotnet watch (only mode supported in a container) ENV DOTNET_USE_POLLING_FILE_WATCHER=true \ # Skip extraction of XML docs - generally not useful within an image/container - helps performance NUGET_XMLDOC_MODE=skip \ DOTNET_NOLOGO=true # Trigger first run experience by running arbitrary cmd to populate local package cache RUN dotnet help 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/44e597e40f2010cdde15b3ba1e397aea3a5c5271/scripts/assets/tests/test-stack@dotnet.sh" \ && echo "Running test-stack@dotnet" \ && chmod +x test-stack@dotnet.sh \ && bash test-stack@dotnet.sh \ && rm -rf test-stack@dotnet.sh 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: Intel 64-bit (x86-64) \nOS: Ubuntu focal \nVariant: run variant \nDefault variable(s): UDEV=off \nThe following software stack is preinstalled: \ndotnet 3.1-sdk \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
resin-io-library/base-images
balena-base-images/dotnet/generic-amd64/ubuntu/focal/3.1-sdk/run/Dockerfile
Dockerfile
apache-2.0
2,959
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/ads/googleads/v9/errors/account_link_error.proto package com.google.ads.googleads.v9.errors; public final class AccountLinkErrorProto { private AccountLinkErrorProto() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } public static void registerAllExtensions( com.google.protobuf.ExtensionRegistry registry) { registerAllExtensions( (com.google.protobuf.ExtensionRegistryLite) registry); } static final com.google.protobuf.Descriptors.Descriptor internal_static_google_ads_googleads_v9_errors_AccountLinkErrorEnum_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_ads_googleads_v9_errors_AccountLinkErrorEnum_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; } private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { "\n7google/ads/googleads/v9/errors/account" + "_link_error.proto\022\036google.ads.googleads." + "v9.errors\032\034google/api/annotations.proto\"" + "\\\n\024AccountLinkErrorEnum\"D\n\020AccountLinkEr" + "ror\022\017\n\013UNSPECIFIED\020\000\022\013\n\007UNKNOWN\020\001\022\022\n\016INV" + "ALID_STATUS\020\002B\360\001\n\"com.google.ads.googlea" + "ds.v9.errorsB\025AccountLinkErrorProtoP\001ZDg" + "oogle.golang.org/genproto/googleapis/ads" + "/googleads/v9/errors;errors\242\002\003GAA\252\002\036Goog" + "le.Ads.GoogleAds.V9.Errors\312\002\036Google\\Ads\\" + "GoogleAds\\V9\\Errors\352\002\"Google::Ads::Googl" + "eAds::V9::Errorsb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { com.google.api.AnnotationsProto.getDescriptor(), }); internal_static_google_ads_googleads_v9_errors_AccountLinkErrorEnum_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_google_ads_googleads_v9_errors_AccountLinkErrorEnum_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_ads_googleads_v9_errors_AccountLinkErrorEnum_descriptor, new java.lang.String[] { }); com.google.api.AnnotationsProto.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) }
googleads/google-ads-java
google-ads-stubs-v9/src/main/java/com/google/ads/googleads/v9/errors/AccountLinkErrorProto.java
Java
apache-2.0
2,630
import urllib, urllib2, sys, httplib url = "/MELA/REST_WS" HOST_IP="109.231.126.217:8180" #HOST_IP="localhost:8180" if __name__=='__main__': connection = httplib.HTTPConnection(HOST_IP) description_file = open("./costTest.xml", "r") body_content = description_file.read() headers={ 'Content-Type':'application/xml; charset=utf-8', 'Accept':'application/json, multipart/related' } connection.request('PUT', url+'/service', body=body_content,headers=headers,) result = connection.getresponse() print result.read()
tuwiendsg/MELA
MELA-Extensions/MELA-ComplexCostEvaluationService/tests/mela-clients/submitServiceDescription.py
Python
apache-2.0
589
// Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. package com.intellij.pom; import com.intellij.psi.PsiElement; import com.intellij.psi.PsiTarget; import com.intellij.psi.search.searches.DefinitionsScopedSearch; import com.intellij.util.Processor; import com.intellij.util.QueryExecutor; import javax.annotation.Nonnull; /** * @author Gregory.Shrago */ public class PomDefinitionSearch implements QueryExecutor<PsiElement, DefinitionsScopedSearch.SearchParameters> { @Override public boolean execute(@Nonnull DefinitionsScopedSearch.SearchParameters queryParameters, @Nonnull Processor<? super PsiElement> consumer) { PsiElement queryParametersElement = queryParameters.getElement(); if (queryParametersElement instanceof PomTargetPsiElement) { final PomTarget target = ((PomTargetPsiElement)queryParametersElement).getTarget(); if (target instanceof PsiTarget) { if (!consumer.process(((PsiTarget)target).getNavigationElement())) return false; } } return true; } }
consulo/consulo
modules/base/lang-impl/src/main/java/com/intellij/pom/PomDefinitionSearch.java
Java
apache-2.0
1,110
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd"> <!--NewPage--> <HTML> <HEAD> <!-- Generated by javadoc on Mon Jul 18 10:42:02 PDT 2011--> <TITLE> Authorize.Net Java SDK </TITLE> <SCRIPT type="text/javascript"> targetPage = "" + window.location.search; if (targetPage != "" && targetPage != "undefined") targetPage = targetPage.substring(1); if (targetPage.indexOf(":") != -1) targetPage = "undefined"; function loadFrames() { if (targetPage != "" && targetPage != "undefined") top.classFrame.location = top.targetPage; } </SCRIPT> <NOSCRIPT> </NOSCRIPT> </HEAD> <FRAMESET cols="20%,80%" title="" onLoad="top.loadFrames()"> <FRAMESET rows="30%,70%" title="" onLoad="top.loadFrames()"> <FRAME src="overview-frame.html" name="packageListFrame" title="All Packages"> <FRAME src="allclasses-frame.html" name="packageFrame" title="All classes and interfaces (except non-static nested types)"> </FRAMESET> <FRAME src="overview-summary.html" name="classFrame" title="Package, class and interface descriptions" scrolling="yes"> <NOFRAMES> <H2> Frame Alert</H2> <P> This document is designed to be viewed using the frames feature. If you see this message, you are using a non-frame-capable web client. <BR> Link to<A HREF="overview-summary.html">Non-frame version.</A> </NOFRAMES> </FRAMESET> </HTML>
YOTOV-LIMITED/sdk-android
docs/javadocs/index.html
HTML
apache-2.0
1,403
/* Copyright 2020 The Knative Authors 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 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 main import ( "knative.dev/pkg/signals" "knative.dev/eventing/pkg/adapter/mtping" "knative.dev/eventing/pkg/adapter/v2" ) const ( component = "pingsource-mt-adapter" ) func main() { sctx := signals.NewContext() // When cancelling the adapter to close to the minute, there is // a risk of losing events due to either the delay of starting a new pod // or for the passive pod to become active (when HA is enabled and replicas > 1). // So when receiving a SIGTEM signal, delay the cancellation of the adapter, // which under the cover delays the release of the lease. ctx := mtping.NewDelayingContext(sctx, mtping.GetNoShutDownAfterValue()) ctx = adapter.WithController(ctx, mtping.NewController) ctx = adapter.WithHAEnabled(ctx) adapter.MainWithContext(ctx, component, mtping.NewEnvConfig, mtping.NewAdapter) }
knative/eventing
cmd/mtping/main.go
GO
apache-2.0
1,404