query
stringlengths
7
33.1k
document
stringlengths
7
335k
metadata
dict
negatives
sequencelengths
3
101
negative_scores
sequencelengths
3
101
document_score
stringlengths
3
10
document_rank
stringclasses
102 values
Returns the result of interpreting the object as an instance of 'Container'. This implementation returns null; returning a nonnull result will terminate the switch.
public T caseContainer(Container object) { return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public T caseMappingContainer(MappingContainer object) {\n\t\treturn null;\n\t}", "public T caseEquipmentContainer(EquipmentContainer object) {\n\t\treturn null;\n\t}", "public T caseGraphicalContainer(GraphicalContainer object) {\n\t\treturn null;\n\t}", "public T caseConnectivityNodeContainer(ConnectivityNodeContainer object) {\n\t\treturn null;\n\t}", "public Container getContainer();", "public boolean isContainer();", "public ObjectContainer getObjectContainer()\n {\n return container;\n }", "public T caseAnnotationContainer(AnnotationContainer object)\n {\n return null;\n }", "BaseContainerType getBaseContainer();", "boolean visitSmartContainer(Object o);", "public boolean isContainerType()\n/* */ {\n/* 169 */ return true;\n/* */ }", "public boolean isContainerType()\n/* */ {\n/* 174 */ return true;\n/* */ }", "@Override\n\t\tpublic InJarResourceImpl getContainer(InJarResourceImpl serializationArtefact) {\n\t\t\tResource container = serializationArtefact.getContainer();\n\t\t\tif (container instanceof InJarResourceImpl) {\n\t\t\t\treturn (InJarResourceImpl) container;\n\t\t\t}\n\t\t\treturn null;\n\t\t}", "public T caseDiv(Div object)\n {\n return null;\n }", "T createContainer();", "public Container getContainer() {\r\n return container;\r\n }", "protected String getContainerType() {\r\n\t\treturn CONTAINER_TYPE;\r\n\t}", "public String getContainer() {\n return this.container;\n }", "Rule ContainerType() {\n // No direct effect on value stack\n return FirstOf(\n MapType(),\n SetType(),\n ListType());\n }", "public Container newContainer();", "public interface ContainerHolder extends MetaHolder {\n\n /**\n * Returns the root container in this containers\n * current hierarchy.\n *\n * @param <T> the container type\n * @return the container\n */\n @NonNull <T extends ContainerHolder> Optional<T> root();\n\n /**\n * Returns the parent container in this containers\n * current hierarchy.\n *\n * @param <T> the container type\n * @return the container\n */\n @NonNull <T extends ContainerHolder> Optional<T> parent();\n\n /**\n * Sets the parent container of this container in\n * the current hierarchy and returns it.\n *\n * @param parent the parent container\n * @param <T> the parent container type\n * @return the parent container\n */\n @Nullable <T extends ContainerHolder> T setParent(@Nullable T parent);\n\n /**\n * Clears this containers inherited tags and pulls\n * them again from its parent to update them.\n */\n void updateTags();\n\n /**\n * Returns {@code true} if this container, contains\n * other containers and {@code false} if it does not.\n *\n * @return true if this container has children\n */\n boolean hasChildren();\n\n /**\n * Returns the size of the elements and containers\n * contained inside this container.\n *\n * @return the container items size\n */\n int size();\n\n /**\n * Clears the items from this container.\n */\n void clear();\n\n}", "Optional<AgentContainer> findAgentContainer(String containerName);", "public ProductContainer getProductContainer(Product p);", "public final Element getContainer() {\n\t\treturn impl.getContainer();\n }", "public Node getContainer() {\n return container;\n }", "public T caseBox(Box object) {\r\n\t\treturn null;\r\n\t}", "public boolean getIsContainer()\n {\n return standardDefs.isContainer(root.getType());\n }", "public ProductContainer getProductContainer(String name);", "protected int matchContainer() {\n if (this.pattern.findReferences)\n return ALL_CONTAINER;\n // declarations are only found in Class\n return CLASS_CONTAINER;\n }", "protected Container getContainer()\r\n {\n return _xarSource.getXarContext().getContainer();\r\n }", "@NonNull <T extends ContainerHolder> Optional<T> parent();", "public String container() {\n return this.container;\n }", "Container createContainer();", "private Container Load() {\n return null;\r\n }", "private BoxContainer castToBoxContainer(BoxType boxType){\n\t\tif (boxType == BoxType.Blocked){\n\t\t\treturn BoxContainer.Blocked;\n\t\t}\n\t\tif (boxType == BoxType.Door){\n\t\t\treturn BoxContainer.Door;\n\t\t}\n\t\tif (boxType == BoxType.Exit){\n\t\t\treturn BoxContainer.Exit;\n\t\t}\n\t\tif (boxType == BoxType.Key){\n\t\t\treturn BoxContainer.Key;\n\t\t}\n\t\tif (boxType == BoxType.Open){\n\t\t\treturn BoxContainer.Open;\n\t\t}\n\t\treturn BoxContainer.Unkown;\n\t\t\n\t}", "@NonNull <T extends ContainerHolder> Optional<T> root();", "@Override\n public Optional<Container> findOne(String id) {\n log.debug(\"Request to get Container : {}\", id);\n return containerRepository.findById(id);\n }", "abstract public Container<?> getParent();", "public T caseConductor(Conductor object) {\n\t\treturn null;\n\t}", "@Override\npublic VirtualContainer getParentContainer() {\n\treturn null;\n}", "public EscherContainerRecord getEscherContainer() {\n \tfor(Iterator<EscherRecord> it = escherRecords.iterator(); it.hasNext();) {\n \t\tEscherRecord er = it.next();\n \t\tif(er instanceof EscherContainerRecord) {\n \t\t\treturn (EscherContainerRecord)er;\n \t\t}\n \t}\n \treturn null;\n }", "public static Container getContainer(final String checksum) {\n\t\tif (getContainerPool().containsKey(checksum)) {\n\t\t\treturn getContainerPool().get(checksum);\n\t\t} else {\n\t\t\tContainer con;\n\t\t\ttry {\n\t\t\t\tcon = Container.load(checksum);\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t\treturn null;\n\t\t\t}\n\t\t\treturn con;\n\t\t}\n\t}", "public T caseRoot(Root object) {\r\n\t\treturn null;\r\n\t}", "public T caseContentsType(ContentsType object) {\n\t\treturn null;\n\t}", "public Container getContainer(ContainerInfo containerInfo) {\n List<Container> containers = dockerClient.listContainersCmd()\n .withIdFilter(Arrays.asList(containerInfo.getId()))\n .withShowAll(true)\n .exec();\n if (containers == null || containers.size() == 0) {\n return null;\n }\n return containers.get(0);\n }", "public T caseCatalog(Catalog object) {\n\t\treturn null;\n\t}", "public T caseUnion(Union object) {\n\t\treturn null;\n\t}", "@Override\r\n\tpublic Control getControl() {\r\n\t\treturn container;\r\n\t}", "public T caseMicrocontroller(Microcontroller object) {\r\n\t\treturn null;\r\n\t}", "public static GameContainer getContainer() {\r\n return container;\r\n }", "public T caseResultManagement(ResultManagement object)\r\n {\r\n return null;\r\n }", "public DockContainer getContainer() {\n return container;\n }", "public T caseWorkflow(Workflow object) {\n\t\treturn null;\n\t}", "public T caseAbstractCityObjectType(AbstractCityObjectType object) {\n\t\treturn null;\n\t}", "public T caseAnalysisOrchestration(AnalysisOrchestration object)\r\n {\r\n return null;\r\n }", "PilotContainer getPilotContainer(int id);", "@Override\n public @NotNull Class<PersistentDataContainer> getPrimitiveType() {\n return PersistentDataContainer.class;\n }", "public T casePrimType(PrimType object) {\n\t\treturn null;\n\t}", "public static ContainerWrapper getContainer(HttpServletRequest request) throws Exception {\r\n\t\tContainerFinderImp scf = new ContainerFinderImp();\r\n\t\tServletContext sc = request.getSession().getServletContext();\r\n\t\treturn scf.findContainer(new ServletContextWrapper(sc));\r\n\t}", "public ViewGroup getContainer() {\n return mContainer;\n }", "protected IValue narrow(Object result){\n\t\tif(result instanceof Integer) {\n\t\t\treturn vf.integer((Integer)result);\n\t\t}\n\t\tif(result instanceof IValue) {\n\t\t\treturn (IValue) result;\n\t\t}\n\t\tif(result instanceof Thrown) {\n\t\t\t((Thrown) result).printStackTrace(stdout);\n\t\t\treturn vf.string(((Thrown) result).toString());\n\t\t}\n\t\tif(result instanceof Object[]) {\n\t\t\tIListWriter w = vf.listWriter();\n\t\t\tObject[] lst = (Object[]) result;\n\t\t\tfor(int i = 0; i < lst.length; i++){\n\t\t\t\tw.append(narrow(lst[i]));\n\t\t\t}\n\t\t\treturn w.done();\n\t\t}\n\t\tif(result == null){\n\t\t\treturn null;\n\t\t}\n\t\tthrow new InternalCompilerError(\"Cannot convert object back to IValue: \" + result);\n\t}", "public ISourceContainerType getType() {\n \t\treturn null;\n \t}", "public static Containers<Integer, String> getContainers() {\n\t\t// TODO fix this function\n\t\t//do singleton thingy\n\t\tif (cont == null) {\n\t\t\tcont = new HW0Runner<Integer, String>();\n\t\t}\n\t\treturn cont;\n\t}", "public T caseContainable(Containable object) {\n\t\treturn null;\n\t}", "@Override\n public Object getObject()\n {\n return null;\n }", "public T caseOperation(Operation object) {\r\n\t\treturn null;\r\n\t}", "public T caseRegistry(Registry object) {\n\t\treturn null;\n\t}", "private static Container resolveParent(ContainerOperator contOper) {\n if(contOper.getParent() == null) {\n return (Container)contOper.getSource();\n } else {\n return contOper.getParent();\n }\n }", "public T caseMicrocontrollerType(MicrocontrollerType object) {\r\n\t\treturn null;\r\n\t}", "public T caseTerminal(Terminal object) {\n\t\treturn null;\n\t}", "public T caseVisual(Visual object) {\r\n\t\treturn null;\r\n\t}", "public T caseContent(Content object)\n {\n return null;\n }", "public T caseIConnectedUnit(IConnectedUnit object) {\r\n\t\treturn null;\r\n\t}", "public Object caseRepresentLanguagePackage(RepresentLanguagePackage object) {\n\t\treturn null;\n\t}", "public final ContainerInfo getContainerInfo()\n\t{\n\t\treturn containerInfo;\n\t}", "@Override\n public String getContainerData()\n {\n return null;\n }", "public T caseType(Type object) {\r\n\t\treturn null;\r\n\t}", "public T caseComplexNode(ComplexNode object) {\r\n\t\treturn null;\r\n\t}", "public Object caseRepresentativeLanguage(RepresentativeLanguage object) {\n\t\treturn null;\n\t}", "public static Object getComponentInstance(String name, HttpServletRequest request) {\r\n\t\tServletContext sc = request.getSession().getServletContext();\r\n\t\tContainerWrapper containerWrapper = scf.findContainer(new ServletContextWrapper(sc));\r\n\t\tif (!containerWrapper.isStart()) {\r\n\t\t\tDebug.logError(\"JdonFramework not yet started, please try later \", module);\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\treturn containerWrapper.lookup(name);\r\n\t}", "public T caseType(Type object) {\n\t\treturn null;\n\t}", "public T caseControlNode(ControlNode object) {\n\t\treturn null;\n\t}", "public T caseValue(Value object) {\n\t\treturn null;\n\t}", "public T caseValue(Value object) {\n\t\treturn null;\n\t}", "public T caseValue(Value object) {\n\t\treturn null;\n\t}", "public T caseUnit(Unit object) {\n\t\treturn null;\n\t}", "public T caseTransitionRoot(TransitionRoot object) {\r\n\t\treturn null;\r\n\t}", "public T caseForkNode(ForkNode object) {\n\t\treturn null;\n\t}", "public T caseModalElement(ModalElement object) {\n\t\treturn null;\n\t}", "public T caseImplementation(Implementation object)\n {\n return null;\n }", "public T caseStateRoot(StateRoot object) {\r\n\t\treturn null;\r\n\t}", "Object getContainedValue();", "public T caseLifecycle(Lifecycle object) {\n\t\treturn null;\n\t}", "public T caseCompositeDefinition(CompositeDefinition object)\n {\n return null;\n }", "public T caseFinalNode(FinalNode object) {\n\t\treturn null;\n\t}", "public T caseOperation(Operation object)\r\n {\r\n return null;\r\n }", "public IOptionsContainer getContainer();", "public RouteContainer getNodeContainer() {\r\n\t\tif (nodeContainer == null && selectedNode != null) {\r\n\t\t\tnodeContainer = selectedNode.getParent();\r\n\t\t}\r\n\t\treturn nodeContainer;\r\n\t}", "public T caseStatechartRoot(StatechartRoot object) {\r\n\t\treturn null;\r\n\t}", "public interface Container {\n\n\t/**\n\t * Retrieves the appropriate instance for the given class.\n\t * \n\t * @param type\n\t *\t\tof the required component\n\t * @param <T>\n\t * @return the registered component\n\t */\n\t<T> T instanceFor(Class<T> type);\n\t\n\t/**\n\t * Verifies if this container can provide an instance for\n\t * the given class.\n\t * \n\t * @param type\n\t *\t\tof the required component\n\t * @param <T>\n\t * @return true iff instanceFor(type) can return a valid instance.\n\t */\n\t<T> boolean canProvide(Class<T> type);\n\n}" ]
[ "0.64664984", "0.64485407", "0.6443047", "0.63299954", "0.6136084", "0.602398", "0.5996531", "0.59290934", "0.58771485", "0.58474463", "0.57694006", "0.57030183", "0.57024014", "0.56484634", "0.5647706", "0.5629811", "0.5626993", "0.5623005", "0.56049865", "0.559789", "0.5581191", "0.5538731", "0.5525871", "0.5513153", "0.55073863", "0.55030143", "0.54681796", "0.5458915", "0.54569393", "0.5402072", "0.53998125", "0.53973746", "0.5389803", "0.538529", "0.5369546", "0.535891", "0.5332947", "0.53270286", "0.53040975", "0.52268016", "0.52246517", "0.51911825", "0.5155127", "0.51004505", "0.5088797", "0.50619745", "0.50557995", "0.50507736", "0.50497216", "0.50380355", "0.50329673", "0.5024453", "0.50094604", "0.5000131", "0.4992437", "0.49889478", "0.49809843", "0.4980351", "0.49792707", "0.49766812", "0.49659684", "0.4962535", "0.49501002", "0.49487218", "0.492632", "0.49052715", "0.49003762", "0.48945224", "0.48897824", "0.48891777", "0.4888416", "0.48863357", "0.4878684", "0.4872271", "0.4871985", "0.48567867", "0.48550373", "0.484851", "0.48438594", "0.48418897", "0.48412088", "0.48385242", "0.48350638", "0.48350638", "0.48350638", "0.48348254", "0.48328465", "0.4828094", "0.4824164", "0.48214144", "0.48152196", "0.4813817", "0.48121038", "0.48065066", "0.48058626", "0.4804638", "0.47947493", "0.47947335", "0.47920057", "0.47813237" ]
0.7550657
0
Returns the result of interpreting the object as an instance of 'Containable'. This implementation returns null; returning a nonnull result will terminate the switch.
public T caseContainable(Containable object) { return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public T caseIConnectedUnit(IConnectedUnit object) {\r\n\t\treturn null;\r\n\t}", "public Optional<ManagedObject> getMixedIn() {\n return Objects.equals(getOwner(), getTarget()) \n ? Optional.empty()\n : Optional.of(getOwner());\n }", "public T caseGraphicalContainer(GraphicalContainer object) {\n\t\treturn null;\n\t}", "public T caseContainer(Container object) {\n\t\treturn null;\n\t}", "public boolean isContained() {\n return contained;\n }", "@Override\n\tpublic GamePiece getObject() {\n\t\treturn null;\n\t}", "public T caseConductor(Conductor object) {\n\t\treturn null;\n\t}", "public T caseEquivalentBranch(EquivalentBranch object) {\n\t\treturn null;\n\t}", "public T caseAnnotationContainer(AnnotationContainer object)\n {\n return null;\n }", "public T caseContentsType(ContentsType object) {\n\t\treturn null;\n\t}", "public T caseIdentifiedObject(IdentifiedObject object) {\n\t\treturn null;\n\t}", "public T caseInertia(Inertia object) {\r\n\t\treturn null;\r\n\t}", "Object getContainedValue();", "public T caseCollision(Collision object) {\r\n\t\treturn null;\r\n\t}", "public T casePrimType(PrimType object) {\n\t\treturn null;\n\t}", "String getContainmentReference();", "public T caseConnectivityNodeContainer(ConnectivityNodeContainer object) {\n\t\treturn null;\n\t}", "public T caseExistence(Existence object) {\n\t\treturn null;\n\t}", "public Object caseRepresentativeLanguage(RepresentativeLanguage object) {\n\t\treturn null;\n\t}", "public T caseBox(Box object) {\r\n\t\treturn null;\r\n\t}", "@Override @AvailMethod\n\tA_Type o_Kind (\n\t\tfinal AvailObject object)\n\t{\n\t\treturn Types.ANY.o();\n\t}", "public T caseCompositeDefinition(CompositeDefinition object)\n {\n return null;\n }", "boolean visitSmartContainer(Object o);", "public org.openxmlformats.schemas.presentationml.x2006.main.CTEmpty getPresent()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.openxmlformats.schemas.presentationml.x2006.main.CTEmpty target = null;\n target = (org.openxmlformats.schemas.presentationml.x2006.main.CTEmpty)get_store().find_element_user(PRESENT$0, 0);\n if (target == null)\n {\n return null;\n }\n return target;\n }\n }", "public T caseReUsableRef(ReUsableRef object) {\r\n\t\treturn null;\r\n\t}", "public T caseClassifier(Classifier object) {\n\t\treturn null;\n\t}", "public T caseBay(Bay object) {\n\t\treturn null;\n\t}", "public T caseContent(Content object)\n {\n return null;\n }", "public T caseEquipmentContainer(EquipmentContainer object) {\n\t\treturn null;\n\t}", "public T caseSubtypeRelationshipDefinition(SubtypeRelationshipDefinition object) {\n\t\treturn null;\n\t}", "public T caseExists(Exists object) {\n\t\treturn null;\n\t}", "public T caseQuestion(Question object) {\n\t\treturn null;\n\t}", "private ObjectClassWrapper findObjectClassWrapperInTree( ObjectClassImpl oc )\n {\n SchemaWrapper schemaWrapper = findSchemaWrapperInTree( oc.getSchema() );\n if ( schemaWrapper == null )\n {\n return null;\n }\n \n // Finding the correct node\n int group = Activator.getDefault().getPreferenceStore().getInt( PluginConstants.PREFS_SCHEMA_VIEW_GROUPING );\n List<TreeNode> children = schemaWrapper.getChildren();\n if ( group == PluginConstants.PREFS_SCHEMA_VIEW_GROUPING_FOLDERS )\n {\n for ( TreeNode child : children )\n {\n Folder folder = ( Folder ) child;\n if ( folder.getType() == FolderType.OBJECT_CLASS )\n {\n for ( TreeNode folderChild : folder.getChildren() )\n {\n ObjectClassWrapper ocw = ( ObjectClassWrapper ) folderChild;\n if ( ocw.getObjectClass().equals( oc ) )\n {\n return ocw;\n }\n }\n }\n }\n }\n else if ( group == PluginConstants.PREFS_SCHEMA_VIEW_GROUPING_MIXED )\n {\n for ( Object child : children )\n {\n if ( child instanceof ObjectClassWrapper )\n {\n ObjectClassWrapper ocw = ( ObjectClassWrapper ) child;\n if ( ocw.getObjectClass().equals( oc ) )\n {\n return ocw;\n }\n }\n }\n }\n \n return null;\n }", "public T caseConformLoad(ConformLoad object) {\n\t\treturn null;\n\t}", "public T caseDiv(Div object)\n {\n return null;\n }", "public Object caseDescribableElement(DescribableElement object) {\n\t\treturn null;\n\t}", "public T caseBuildingType(BuildingType object) {\n\t\treturn null;\n\t}", "public T caseGraphicalElement(GraphicalElement object) {\n\t\treturn null;\n\t}", "public T caseRoot(Root object) {\r\n\t\treturn null;\r\n\t}", "public T caseHasOther(HasOther object) {\n\t\treturn null;\n\t}", "public T caseMicrocontrollerType(MicrocontrollerType object) {\r\n\t\treturn null;\r\n\t}", "public T casePrimitiveDefinition(PrimitiveDefinition object)\n {\n return null;\n }", "public T caseSubLoadArea(SubLoadArea object) {\n\t\treturn null;\n\t}", "public T caseCoveragesType(CoveragesType object) {\n\t\treturn null;\n\t}", "private GObject getCollidingObject() {\n \tdouble x1 = ball.getX();\n \tdouble y1 = ball.getY();\n \tdouble x2 = x1 + BALL_RADIUS * 2;\n \tdouble y2 = y1 + BALL_RADIUS * 2;\n \n \tif (getElementAt(x1, y1) != null) return getElementAt(x1, y1);\n \tif (getElementAt(x1, y2) != null) return getElementAt(x1, y2);\n \tif (getElementAt(x2, y1) != null) return getElementAt(x2, y1);\n \tif (getElementAt(x2, y2) != null) return getElementAt(x2, y2);\n \n \treturn null;\n }", "@Override\r\n\tpublic T defaultCase(EObject object) {\r\n\t\treturn null;\r\n\t}", "@Override\r\n\tpublic T defaultCase(EObject object) {\r\n\t\treturn null;\r\n\t}", "@Override\r\n\tpublic T defaultCase(EObject object) {\r\n\t\treturn null;\r\n\t}", "@Override\r\n\tpublic T defaultCase(EObject object) {\r\n\t\treturn null;\r\n\t}", "public Object caseWorkBreakdownElement(WorkBreakdownElement object) {\n\t\treturn null;\n\t}", "public T caseAbstractTopLevelElement(AbstractTopLevelElement object) {\n\t\treturn null;\n\t}", "public T caseObservation(Observation object) {\n\t\treturn null;\n\t}", "public Object caseBreakdownElement(BreakdownElement object) {\n\t\treturn null;\n\t}", "public T caseMicrocontroller(Microcontroller object) {\r\n\t\treturn null;\r\n\t}", "public T caseDecisionNode(DecisionNode object) {\n\t\treturn null;\n\t}", "public String getContainedDescription() {\n\t\tif (getType() == SpawnType.APPEARS) {\n\t\t\treturn mob.hasActFlag(ActFlag.SENTINEL) ? \"Contains\" : \"May contain\";\n\t\t} else if (getType() == SpawnType.PRODUCED_MOB\n\t\t\t\t|| getType() == SpawnType.PRODUCED_ITEM\n\t\t\t\t|| getType() == SpawnType.PRODUCED_ROOM) {\n\t\t\treturn \"May summon\";\n\t\t} else {\n\t\t\treturn \"Unrelated to\";\n\t\t}\n\t}", "public static Identifiable getIdentifiable(Identifiable selectedObject) {\n\t// for SpeciesContext objects:\r\n\t//\t\tMIRIAM tree needs the Species\t\t\t\t!!!\r\n\t//\t\ttext Annotation needs the SpeciesContext\r\n\t//\r\n\t// !!!\tuse this only for the tree !!!\r\n\t//\r\n\tif(selectedObject == null) {\r\n\t\treturn null;\r\n\t}\r\n\tif(selectedObject instanceof SpeciesContext) {\r\n\t\treturn (Species)((SpeciesContext)selectedObject).getSpecies();\r\n\t} else if(selectedObject instanceof MolecularType) {\r\n\t\treturn (MolecularType)selectedObject;\r\n\t} else if(selectedObject instanceof ReactionRule) {\r\n\t\treturn (ReactionRule)selectedObject;\r\n\t} else if(selectedObject instanceof ReactionStep) {\r\n\t\treturn (ReactionStep)selectedObject;\r\n\t} else if(selectedObject instanceof RbmObservable) {\r\n\t\treturn (RbmObservable)selectedObject;\r\n\t} else if(selectedObject instanceof BioModel) {\r\n\t\treturn (BioModel)selectedObject;\r\n\t} else if(selectedObject instanceof Structure) {\r\n\t\treturn (Structure)selectedObject;\r\n\t} else if(selectedObject instanceof BioPaxObject) {\r\n\t\treturn null;\r\n\t} else if(selectedObject instanceof Model.ModelParameter) {\r\n\t\treturn (Model.ModelParameter)selectedObject;\r\n\t} else if(selectedObject instanceof SimulationContext) {\r\n\t\treturn (SimulationContext)selectedObject;\r\n//\t} else if(selectedObject instanceof Simulation) {\r\n//\t\treturn (Simulation)selectedObject;\r\n//\t} else if(selectedObject instanceof SpeciesContextSpec) {\r\n//\t\treturn (SpeciesContextSpec)selectedObject;\r\n//\t} else if(selectedObject instanceof ReactionSpec) {\r\n//\t\treturn (ReactionSpec)selectedObject;\r\n\t} else {\r\n\t\treturn null;\r\n\t}\r\n}", "public boolean isContainer();", "public Value restrictToTypeofObject() {\n checkNotPolymorphicOrUnknown();\n Value r = new Value(this);\n r.flags &= (~PRIMITIVE) | NULL;\n r.num = null;\n r.str = null;\n r.getters = r.setters = null;\n r.excluded_strings = r.included_strings = null;\n r.object_labels = newSet();\n if (object_labels != null)\n for (ObjectLabel objlabel : object_labels)\n if (objlabel.getKind() != Kind.FUNCTION && objlabel.getKind() != Kind.SYMBOL)\n r.object_labels.add(objlabel);\n if (r.object_labels.isEmpty())\n r.object_labels = null;\n return canonicalize(r);\n }", "@Override\r\n public T defaultCase(EObject object)\r\n {\r\n return null;\r\n }", "@Override\r\n public T defaultCase(EObject object)\r\n {\r\n return null;\r\n }", "@Override\n public T defaultCase(EObject object)\n {\n return null;\n }", "@Override\n public T defaultCase(EObject object)\n {\n return null;\n }", "@Override\n public T defaultCase(EObject object)\n {\n return null;\n }", "@Override\n public T defaultCase(EObject object)\n {\n return null;\n }", "@Override\n public T defaultCase(EObject object)\n {\n return null;\n }", "@Override\n public T defaultCase(EObject object)\n {\n return null;\n }", "public T caseArea(Area object)\n {\n return null;\n }", "public T caseBuildingPartType(BuildingPartType object) {\n\t\treturn null;\n\t}", "@Override\n\tpublic T defaultCase(EObject object) {\n\t\treturn null;\n\t}", "@Override\n\tpublic T defaultCase(EObject object) {\n\t\treturn null;\n\t}", "@Override\n\tpublic T defaultCase(EObject object) {\n\t\treturn null;\n\t}", "@Override\n\tpublic T defaultCase(EObject object) {\n\t\treturn null;\n\t}", "@Override\n\tpublic T defaultCase(EObject object) {\n\t\treturn null;\n\t}", "@Override\n\tpublic T defaultCase(EObject object) {\n\t\treturn null;\n\t}", "@Override\n\tpublic T defaultCase(EObject object) {\n\t\treturn null;\n\t}", "@Override\n\tpublic T defaultCase(EObject object) {\n\t\treturn null;\n\t}", "@Override\n\tpublic T defaultCase(EObject object) {\n\t\treturn null;\n\t}", "@Override\n\tpublic T defaultCase(EObject object) {\n\t\treturn null;\n\t}", "@Override\n\tpublic T defaultCase(EObject object) {\n\t\treturn null;\n\t}", "@Override\n\tpublic T defaultCase(EObject object) {\n\t\treturn null;\n\t}", "@Override\n\tpublic T defaultCase(EObject object) {\n\t\treturn null;\n\t}", "@Override\n\tpublic T defaultCase(EObject object) {\n\t\treturn null;\n\t}", "@Override\n\tpublic T defaultCase(EObject object) {\n\t\treturn null;\n\t}", "@Override\n\tpublic T defaultCase(EObject object)\n\t{\n\t\treturn null;\n\t}", "public T caseLoadArea(LoadArea object) {\n\t\treturn null;\n\t}", "public T caseMappingContainer(MappingContainer object) {\n\t\treturn null;\n\t}", "public T caseAnswer(Answer object) {\n\t\treturn null;\n\t}", "public T caseAbstractBuildingType(AbstractBuildingType object) {\n\t\treturn null;\n\t}", "public T caseCoreType(CoreType object) {\r\n\t\treturn null;\r\n\t}", "Object getIf();", "public T defaultCase(EObject object)\n {\n return null;\n }", "public T defaultCase(EObject object)\n {\n return null;\n }", "public T caseElement(Element object) {\n\t\treturn null;\n\t}", "public T caseElement(Element object) {\n\t\treturn null;\n\t}", "public T caseElement(Element object) {\n\t\treturn null;\n\t}", "public T caseDecision(Decision object) {\n\t\treturn null;\n\t}", "public T caseUnit(Unit object) {\n\t\treturn null;\n\t}", "public T caseUnion(Union object) {\n\t\treturn null;\n\t}", "public Object caseProcessPackageableElement(ProcessPackageableElement object) {\n\t\treturn null;\n\t}" ]
[ "0.5542455", "0.5485161", "0.54366297", "0.5427783", "0.5411458", "0.5369632", "0.5359274", "0.5276559", "0.52658165", "0.5250466", "0.5220765", "0.52143306", "0.52082825", "0.52021873", "0.5190588", "0.51893294", "0.51831865", "0.51473665", "0.5144618", "0.51367277", "0.51358634", "0.5125145", "0.5115424", "0.51062745", "0.5102631", "0.5091088", "0.50907046", "0.50758183", "0.5071576", "0.50549483", "0.5048784", "0.5038501", "0.5037497", "0.5027891", "0.50158095", "0.49980292", "0.49925092", "0.49881518", "0.49861416", "0.49783653", "0.49725378", "0.4961543", "0.49578378", "0.4953645", "0.4952183", "0.49288362", "0.49288362", "0.49288362", "0.49288362", "0.49278697", "0.49217084", "0.49204957", "0.49178556", "0.49049786", "0.4902897", "0.49012244", "0.4898418", "0.48957056", "0.48938468", "0.48912573", "0.48912573", "0.48884624", "0.48884624", "0.48884624", "0.48884624", "0.48884624", "0.48884624", "0.4884505", "0.48722178", "0.4871006", "0.4871006", "0.4871006", "0.4871006", "0.4871006", "0.4871006", "0.4871006", "0.4871006", "0.4871006", "0.4871006", "0.4871006", "0.4871006", "0.4871006", "0.4871006", "0.4871006", "0.48709667", "0.4860772", "0.48559427", "0.48507664", "0.48454347", "0.48389485", "0.48385054", "0.48381126", "0.48381126", "0.4837663", "0.4837663", "0.4837663", "0.48364007", "0.48356232", "0.48315585", "0.4826603" ]
0.76280683
0
Returns the result of interpreting the object as an instance of 'Sensor'. This implementation returns null; returning a nonnull result will terminate the switch.
public T caseSensor(Sensor object) { return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Sensor getSensor();", "public String getSensor()\n {\n return sensor;\n }", "public final SensorManager invoke() {\n Object systemService = this.this$0.c().getSystemService(\"sensor\");\n if (systemService != null) {\n return (SensorManager) systemService;\n }\n throw new d.m(\"null cannot be cast to non-null type android.hardware.SensorManager\");\n }", "public Sensor parseSensor() {\n Element e = document.getDocumentElement();\n // found Sensor Element in XML\n if (e != null && e.getNodeName().equals(\"sensor\")) {\n // creates new Sensor with id as the name\n Sensor sensor = new Sensor(e.getAttribute(\"id\"));\n\n for (int i = 0; i < e.getChildNodes().getLength(); i++) {\n Node childNode = e.getChildNodes().item(i);\n if (childNode instanceof Element) {\n Element childElement = (Element) childNode;\n switch (childNode.getNodeName()) {\n case \"measurement\" :\n Measurement m = parseMeasurement(childElement);\n sensor.addMeasurement(m);\n break;\n case \"information\" :\n // maybe a new Type for extra Information from the\n // Sensor\n break;\n\n default :\n System.out.println(\n \"No case for \" + childNode.getNodeName());\n }\n }\n }\n\n return sensor;\n } else {\n return null;\n }\n }", "DeviceSensor createDeviceSensor();", "GenericFloatSensor sensor();", "public byte getSensor() {\r\n\t\tbyte sensor;\r\n\t\tsensor=this.sensor;\r\n\t\treturn sensor;\r\n\t}", "public abstract boolean sensorFound();", "ExternalSensor createExternalSensor();", "public Integer getSensorType() {\n return sensorType;\n }", "public RegisterSensor.SensorDescription getRealSensorDescription() {\n return sensorDescription;\n }", "public static Sensor getSensor(String name) {\n\t\tfor (int x = 0; x < mSensors.size(); x++) {\n\t\t\tif (mSensors.get(x).mName.equals(name)) {\n\t\t\t\treturn mSensors.get(x);\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "public static Sensor getFirstSensor() {\n\t\tSensor retVal = null;\n\t\tfor (int x = 0; x < mSensors.size(); x++) {\n\t\t\tif (mSensors.get(x).mEnabled) {\n\t\t\t\tretVal = mSensors.get(x);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\treturn retVal;\n\t}", "public IGarmentDriver getSensorDriver() {\n return sensorDriver;\n }", "private Sensor jsonToSensor(JsonElement rawSensor) throws IOException, InterruptedException {\n var sensorProperties = rawSensor.getAsJsonObject();\n var sensorLocation = sensorProperties.get(\"location\").getAsString();\n var coordinate = this.getCoordinate(sensorLocation); // get location information\n\n Double reading = null;\n float battery = sensorProperties.get(\"battery\").getAsFloat();\n if (battery > MIN_BATTERY) { // invalidate reading if below threshold\n String readingVal = sensorProperties.get(\"reading\").getAsString();\n reading = Double.valueOf(readingVal);\n }\n\n return new Sensor(sensorLocation, battery, reading, coordinate.x, coordinate.y);\n }", "private MonitoredSensor getSensorByEFN(String name) {\n for (MonitoredSensor sensor : mSensors) {\n if (sensor.mEmulatorFriendlyName.contentEquals(name)) {\n return sensor;\n }\n }\n return null;\n }", "public int getSensorState() {\n return -1;\n }", "public T caseMeasurementValue(MeasurementValue object) {\n\t\treturn null;\n\t}", "public T caseMeasurement(Measurement object) {\n\t\treturn null;\n\t}", "public SuperSensor getSensorByTypeName(String type, String name)\n {\n if(type == null || name == null)\n {\n return null;\n }\n return (SuperSensor) sensorModules.getSensorByTypeName(type.toLowerCase(), name.toLowerCase());\n }", "public T caseETensorFlow(ETensorFlow object)\n {\n return null;\n }", "public final EObject ruleSensor() throws RecognitionException {\n EObject current = null;\n\n Token otherlv_1=null;\n AntlrDatatypeRuleToken lv_name_2_0 = null;\n\n\n\n \tenterRule();\n\n try {\n // InternalSPDSL.g:301:2: ( ( () otherlv_1= 'Sensor' ( (lv_name_2_0= ruleEString ) ) ) )\n // InternalSPDSL.g:302:2: ( () otherlv_1= 'Sensor' ( (lv_name_2_0= ruleEString ) ) )\n {\n // InternalSPDSL.g:302:2: ( () otherlv_1= 'Sensor' ( (lv_name_2_0= ruleEString ) ) )\n // InternalSPDSL.g:303:3: () otherlv_1= 'Sensor' ( (lv_name_2_0= ruleEString ) )\n {\n // InternalSPDSL.g:303:3: ()\n // InternalSPDSL.g:304:4: \n {\n\n \t\t\t\tcurrent = forceCreateModelElement(\n \t\t\t\t\tgrammarAccess.getSensorAccess().getSensorAction_0(),\n \t\t\t\t\tcurrent);\n \t\t\t\n\n }\n\n otherlv_1=(Token)match(input,17,FOLLOW_8); \n\n \t\t\tnewLeafNode(otherlv_1, grammarAccess.getSensorAccess().getSensorKeyword_1());\n \t\t\n // InternalSPDSL.g:314:3: ( (lv_name_2_0= ruleEString ) )\n // InternalSPDSL.g:315:4: (lv_name_2_0= ruleEString )\n {\n // InternalSPDSL.g:315:4: (lv_name_2_0= ruleEString )\n // InternalSPDSL.g:316:5: lv_name_2_0= ruleEString\n {\n\n \t\t\t\t\tnewCompositeNode(grammarAccess.getSensorAccess().getNameEStringParserRuleCall_2_0());\n \t\t\t\t\n pushFollow(FOLLOW_2);\n lv_name_2_0=ruleEString();\n\n state._fsp--;\n\n\n \t\t\t\t\tif (current==null) {\n \t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getSensorRule());\n \t\t\t\t\t}\n \t\t\t\t\tset(\n \t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\"name\",\n \t\t\t\t\t\tlv_name_2_0,\n \t\t\t\t\t\t\"fr.polytech.nice.elliot.sle.sensorproject.SPDSL.EString\");\n \t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\n\n }\n\n\n }\n\n\n }\n\n\n }\n\n\n \tleaveRule();\n\n }\n\n catch (RecognitionException re) {\n recover(input,re);\n appendSkippedTokens();\n }\n finally {\n }\n return current;\n }", "public EV3UltrasonicSensor getSensor() {\r\n\t\treturn sensor;\r\n\t}", "RegisterSensor() {\n }", "public interface SensorData {\n String toString();\n}", "public T caseMeasurementType(MeasurementType object) {\n\t\treturn null;\n\t}", "public T caseMeasurementValueSource(MeasurementValueSource object) {\n\t\treturn null;\n\t}", "public Sensor() {\n if(this.rawData == null)\n this.rawData = new Vector<SensorData>();\n }", "public BasicSensor() {}", "public T caseFloat(sensorDeploymentLanguage.Float object) {\n\t\treturn null;\n\t}", "public double getValue() {\n\t\treturn sensorval;\n\t}", "public T caseObservation(Observation object) {\n\t\treturn null;\n\t}", "public final flipsParser.defineSensor_return defineSensor() throws RecognitionException {\n flipsParser.defineSensor_return retval = new flipsParser.defineSensor_return();\n retval.start = input.LT(1);\n\n CommonTree root_0 = null;\n\n Token string_literal52=null;\n Token string_literal53=null;\n Token string_literal54=null;\n flipsParser.defineSensorValue_return defineSensorValue55 = null;\n\n\n CommonTree string_literal52_tree=null;\n CommonTree string_literal53_tree=null;\n CommonTree string_literal54_tree=null;\n RewriteRuleTokenStream stream_132=new RewriteRuleTokenStream(adaptor,\"token 132\");\n RewriteRuleTokenStream stream_131=new RewriteRuleTokenStream(adaptor,\"token 131\");\n RewriteRuleTokenStream stream_130=new RewriteRuleTokenStream(adaptor,\"token 130\");\n RewriteRuleSubtreeStream stream_defineSensorValue=new RewriteRuleSubtreeStream(adaptor,\"rule defineSensorValue\");\n try {\n // flips.g:176:2: ( ( 'sen' | 'sensor' | 'sensors' ) defineSensorValue -> defineSensorValue )\n // flips.g:176:4: ( 'sen' | 'sensor' | 'sensors' ) defineSensorValue\n {\n // flips.g:176:4: ( 'sen' | 'sensor' | 'sensors' )\n int alt21=3;\n switch ( input.LA(1) ) {\n case 130:\n {\n alt21=1;\n }\n break;\n case 131:\n {\n alt21=2;\n }\n break;\n case 132:\n {\n alt21=3;\n }\n break;\n default:\n NoViableAltException nvae =\n new NoViableAltException(\"\", 21, 0, input);\n\n throw nvae;\n }\n\n switch (alt21) {\n case 1 :\n // flips.g:176:5: 'sen'\n {\n string_literal52=(Token)match(input,130,FOLLOW_130_in_defineSensor839); \n stream_130.add(string_literal52);\n\n\n }\n break;\n case 2 :\n // flips.g:176:11: 'sensor'\n {\n string_literal53=(Token)match(input,131,FOLLOW_131_in_defineSensor841); \n stream_131.add(string_literal53);\n\n\n }\n break;\n case 3 :\n // flips.g:176:20: 'sensors'\n {\n string_literal54=(Token)match(input,132,FOLLOW_132_in_defineSensor843); \n stream_132.add(string_literal54);\n\n\n }\n break;\n\n }\n\n pushFollow(FOLLOW_defineSensorValue_in_defineSensor846);\n defineSensorValue55=defineSensorValue();\n\n state._fsp--;\n\n stream_defineSensorValue.add(defineSensorValue55.getTree());\n\n\n // AST REWRITE\n // elements: defineSensorValue\n // token labels: \n // rule labels: retval\n // token list labels: \n // rule list labels: \n // wildcard labels: \n retval.tree = root_0;\n RewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,\"rule retval\",retval!=null?retval.tree:null);\n\n root_0 = (CommonTree)adaptor.nil();\n // 177:2: -> defineSensorValue\n {\n adaptor.addChild(root_0, stream_defineSensorValue.nextTree());\n\n }\n\n retval.tree = root_0;\n }\n\n retval.stop = input.LT(-1);\n\n retval.tree = (CommonTree)adaptor.rulePostProcessing(root_0);\n adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n \tretval.tree = (CommonTree)adaptor.errorNode(input, retval.start, input.LT(-1), re);\n\n }\n finally {\n }\n return retval;\n }", "public Sensor getSensor(int index) {\n if (index < 0 || index >= sensors.length)\n throw new IllegalArgumentException\n (\"Sensor index must be between 0 and \" + (sensors.length-1)) ;\n\n return sensors[index] ;\n }", "public synchronized Sensor getSensor(int id)\n {\n return sensors.get(id);\n }", "public int getSensorId();", "public Reading get_reading () {\n if (!this.on) {\n return null;\n }\n\n Instant instant = Instant.now();\n return new Reading(\n (float) instant.getEpochSecond(),\n this.currentSensorValue,\n this.stationName,\n this.stationLocation\n );\n }", "public int getSensorID() {\n return sensorID;\n }", "public final EObject entryRuleSensor() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleSensor = null;\n\n\n try {\n // InternalSPDSL.g:288:47: (iv_ruleSensor= ruleSensor EOF )\n // InternalSPDSL.g:289:2: iv_ruleSensor= ruleSensor EOF\n {\n newCompositeNode(grammarAccess.getSensorRule()); \n pushFollow(FOLLOW_1);\n iv_ruleSensor=ruleSensor();\n\n state._fsp--;\n\n current =iv_ruleSensor; \n match(input,EOF,FOLLOW_2); \n\n }\n\n }\n\n catch (RecognitionException re) {\n recover(input,re);\n appendSkippedTokens();\n }\n finally {\n }\n return current;\n }", "public T caseMicrocontroller(Microcontroller object) {\r\n\t\treturn null;\r\n\t}", "public interface Sensor extends ExprNode {}", "@Override\r\n\tpublic Value interpret() {\n\t\treturn null;\r\n\t}", "public static com.lrexperts.liferay.liferayofthings.model.SensorValue findByUuid_First(\n java.lang.String uuid,\n com.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n throws com.liferay.portal.kernel.exception.SystemException,\n com.lrexperts.liferay.liferayofthings.NoSuchSensorValueException {\n return getPersistence().findByUuid_First(uuid, orderByComparator);\n }", "@Override\n\tprotected int getSensorData() {\n\t\treturn sensor.getLightValue();\n\t}", "public interface Sensor {\n\n\n\n\n /**\n * Each sensor simulator must collect and\n * report on the temperature of the oven simulator every 100 milliseconds.\n *\n * Each report must include a time stamp and a sensor identifier.\n */\n public abstract void temperatureReport();\n\n public abstract void timer(long milliseconds);\n\n public abstract void updateTemperature(int ovenTemperature);\n\n public abstract void updateTimestamp();\n\n /**\n * To set sensor on or off.\n * @param state set sensor on or off based on oven.\n */\n public abstract void setSensorState(boolean state);\n\n\n\n}", "@Override\n\tpublic List<String> getSensorType(String deviceType) {\n\t\treturn null;\n\t}", "String getSensorDataPoint();", "protected Sensor[] getSensorValues() { return sensors; }", "private TsPrimitiveType readOneValue() {\n switch (dataType) {\n case BOOLEAN:\n return new TsBoolean(valueDecoder.readBoolean(valueInputStream));\n case INT32:\n return new TsInt(valueDecoder.readInt(valueInputStream));\n case INT64:\n return new TsLong(valueDecoder.readLong(valueInputStream));\n case FLOAT:\n return new TsFloat(valueDecoder.readFloat(valueInputStream));\n case DOUBLE:\n return new TsDouble(valueDecoder.readDouble(valueInputStream));\n case TEXT:\n return new TsBinary(valueDecoder.readBinary(valueInputStream));\n default:\n break;\n }\n throw new UnSupportedDataTypeException(\"Unsupported data type :\" + dataType);\n }", "public int getSensorId() {\n\t\treturn sensorid;\n\t}", "private Sensor registerSensor(HalSensorConfig config){\n Sensor sensor = new Sensor();\n sensor.setDeviceConfig(config);\n manager.addAvailableDeviceConfig(config.getClass());\n manager.register(sensor);\n return sensor;\n }", "public T caseRobot(Robot object) {\r\n\t\treturn null;\r\n\t}", "public static com.lrexperts.liferay.liferayofthings.model.SensorValue findByUuid_C_First(\n java.lang.String uuid, long companyId,\n com.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n throws com.liferay.portal.kernel.exception.SystemException,\n com.lrexperts.liferay.liferayofthings.NoSuchSensorValueException {\n return getPersistence()\n .findByUuid_C_First(uuid, companyId, orderByComparator);\n }", "public T caseString(sensorDeploymentLanguage.String object) {\n\t\treturn null;\n\t}", "public <T> T readValue() {\n return readObject();\n }", "public SoSensorCB getFunction() { return func; }", "@Override\n public void OnAccuracyChanged(Ssensor arg0, int arg1) {\n }", "public T caseHwSystem(HwSystem object) {\r\n\t\treturn null;\r\n\t}", "@Override\n public Switch lowPressureSwitch() {\n return pcm::getPressureSwitchValue;\n }", "public T caseAnalysisOrchestration(AnalysisOrchestration object)\r\n {\r\n return null;\r\n }", "public abstract O value();", "public final SensorMatrix getSensorMatrix() {\n return sensorMatrix;\n }", "public T caseETensorFlowCase(ETensorFlowCase object)\n {\n return null;\n }", "Object value();", "public BaseSensorState getState() {\n return state;\n }", "Map<String, ISensor> getSensorMap();", "public void handleSensorEvents(){\n\t}", "public Object getValue() {\n\t\treturn object;\n\t}", "public Object getValue();", "public Object getValue();", "public Object getValue();", "public Object getValue();", "public Object getValue();", "public abstract Fragment getSensorFragment();", "public abstract void recordSensorData(RealmObject sensorData);", "public Object getRawValue();", "public void sensorSystem() {\n\t}", "public PSensor toParcelable() {\n return new PSensor(this.sensorID, this.displayedSensorName, this.bluetoothID, this.sampleRate,\n this.savePeriod, this.smoothness, this.sensorType, this.graphType,\n this.rawDataMeasurementUnit, this.rawDataMeasurementSystem,\n this.displayedMeasurementUnit, this.displayedMeasurementSystem, this.isInternalSensor);\n }", "public T caseIConnectedUnit(IConnectedUnit object) {\r\n\t\treturn null;\r\n\t}", "public abstract R getValue();", "@Override\n\tpublic boolean registerSensor(String name) {\n\t\t// Get an instance of the Sensor\n\t\tNamingContextExt namingService = CorbaHelper.getNamingService(this._orb());\n\t\tSensor sensor = null;\n\t\t\n\t\t// Get a reference to the sensor\n\t try {\n\t \tsensor = SensorHelper.narrow(namingService.resolve_str(name));\n\t\t} catch (NotFound | CannotProceed | InvalidName e) {\n\t\t\tSystem.out.println(\"Failed to add Sensor named: \" + name);\n\t\t\t\n\t\t\treturn false;\n\t\t}\n\t \n\t if(sensor != null) {\n\t \t// Lets check this sensors zone already exists. If not, create it\n\t\t if( ! this.sensors.containsKey(sensor.zone())) {\n\t\t \t// Create that zone\n\t\t \tArrayList<Sensor> sensors = new ArrayList<Sensor>();\n\t\t \t\n\t\t \t// Put the array into the sensors hashmap\n\t\t \tthis.sensors.put(sensor.zone(), sensors);\n\t\t }\n\t\t \n\t\t // Check if the sensor zone already contains this sensor\n\t\t if( ! this.sensors.get(sensor.zone()).contains(sensor)) {\n\t\t \t// Add the new sensor to the correct zone\n\t\t \tthis.sensors.get(sensor.zone()).add(sensor);\n\t\t \t\n\t\t \t// A little feedback\n\t\t \tthis.log(name + \" has registered with the LMS in zone \" + sensor.zone() + \". There are \" + this.sensors.get(sensor.zone()).size() + \" Sensors in this Zone.\");\n\t\t \t\n\t\t \t// Return success\n\t\t \treturn true;\n\t\t }\n\t } else {\n\t \tthis.log(\"Returned sensor was null\");\n\t }\n\t \n\t\t// At this stage, the sensor must exist already\n\t\treturn false;\n\t}", "public void setSensorOn() {\n\n }", "public static Sensor checkAndAddSensor(Context aContext, String name, String address) {\n\t\tSensor s = getSensor(name, address);\n\t\t\n\t\tif (s != null) {\n\t\t\treturn s;\n\t\t}\n\n\t\tif (name.contains(Defines.ZEPHYR_DEVICE_NAME)) {\n\t\t\tif (Globals.IS_ZEPHYR_ENABLED) {\n\t\t\t\ts = new ZephyrSensor(name, address);\n\t\t\t\tmSensors.add(s);\n\t\t\t}\n\t\t} else if (name.contains(Defines.POLAR_DEVICE_NAME)) {\n\t\t\tif (Globals.IS_POLAR_ENABLED) {\n\t\t\t\ts = new PolarSensor(name, address);\n\t\t\t\tmSensors.add(s);\n\t\t\t}\n\t\t} else if (name.contains(Defines.WOCKET_DEVICE_NAME)) {\n\t\t\tif (Globals.IS_WOCKETS_ENABLED) {\n\t\t\t\ts = new WocketSensor(aContext, name, address);\n\t\t\t\tmSensors.add(s);\n\t\t\t}\n\t\t} else if (name.contains(Defines.ASTHMAPOLIS_DEVICE_NAME)) {\n\t\t\tif (Globals.IS_ASTHMAPOLIS_ENABLED) {\n\t\t\t\ts = new AsthmapolisSensor(name, address);\n\t\t\t\tmSensors.add(s);\n\n\t\t\t}\n\t\t}\n\n\t\treturn s;\n\t}", "protected SuperSensor createNewSensor(SensorMessage message)\n {\n return ModuleInstanceProvider.getSensorInstanceByType(message.getType());\n }", "public abstract Object getValue();", "public abstract Object getValue();", "public abstract Object getValue();", "public T caseMicrocontrollerType(MicrocontrollerType object) {\r\n\t\treturn null;\r\n\t}", "public DataValue getLeastDataByDeviceIdAndSensorType(SensorValue sensorVal) throws Exception;", "public S getValue() { return value; }", "public T caseSimple(Simple object) {\n\t\treturn null;\n\t}", "MonitoredSensor(Sensor sensor) {\n mSensor = sensor;\n mEnabledByUser = true;\n\n // Set appropriate sensor name depending on the type. Unfortunately,\n // we can't really use sensor.getName() here, since the value it\n // returns (although resembles the purpose) is a bit vaguer than it\n // should be. Also choose an appropriate format for the strings that\n // display sensor's value.\n switch (sensor.getType()) {\n case Sensor.TYPE_ACCELEROMETER:\n mUiName = \"Accelerometer\";\n mTextFmt = \"%+.2f %+.2f %+.2f\";\n mEmulatorFriendlyName = \"acceleration\";\n break;\n case 9: // Sensor.TYPE_GRAVITY is missing in API 7\n mUiName = \"Gravity\";\n mTextFmt = \"%+.2f %+.2f %+.2f\";\n mEmulatorFriendlyName = \"gravity\";\n break;\n case Sensor.TYPE_GYROSCOPE:\n mUiName = \"Gyroscope\";\n mTextFmt = \"%+.2f %+.2f %+.2f\";\n mEmulatorFriendlyName = \"gyroscope\";\n break;\n case Sensor.TYPE_LIGHT:\n mUiName = \"Light\";\n mTextFmt = \"%.0f\";\n mEmulatorFriendlyName = \"light\";\n break;\n case 10: // Sensor.TYPE_LINEAR_ACCELERATION is missing in API 7\n mUiName = \"Linear acceleration\";\n mTextFmt = \"%+.2f %+.2f %+.2f\";\n mEmulatorFriendlyName = \"linear-acceleration\";\n break;\n case Sensor.TYPE_MAGNETIC_FIELD:\n mUiName = \"Magnetic field\";\n mTextFmt = \"%+.2f %+.2f %+.2f\";\n mEmulatorFriendlyName = \"magnetic-field\";\n break;\n case Sensor.TYPE_ORIENTATION:\n mUiName = \"Orientation\";\n mTextFmt = \"%+03.0f %+03.0f %+03.0f\";\n mEmulatorFriendlyName = \"orientation\";\n break;\n case Sensor.TYPE_PRESSURE:\n mUiName = \"Pressure\";\n mTextFmt = \"%.0f\";\n mEmulatorFriendlyName = \"pressure\";\n break;\n case Sensor.TYPE_PROXIMITY:\n mUiName = \"Proximity\";\n mTextFmt = \"%.0f\";\n mEmulatorFriendlyName = \"proximity\";\n break;\n case 11: // Sensor.TYPE_ROTATION_VECTOR is missing in API 7\n mUiName = \"Rotation\";\n mTextFmt = \"%+.2f %+.2f %+.2f\";\n mEmulatorFriendlyName = \"rotation\";\n break;\n case Sensor.TYPE_TEMPERATURE:\n mUiName = \"Temperature\";\n mTextFmt = \"%.0f\";\n mEmulatorFriendlyName = \"temperature\";\n break;\n default:\n mUiName = \"<Unknown>\";\n mTextFmt = \"N/A\";\n mEmulatorFriendlyName = \"unknown\";\n if (DEBUG) Loge(\"Unknown sensor type \" + mSensor.getType() +\n \" for sensor \" + mSensor.getName());\n break;\n }\n }", "public Object objectValue();", "object_detection.protos.Calibration.TemperatureScalingCalibration getTemperatureScalingCalibration();", "public boolean isInternalSensor() {\n return isInternalSensor;\n }", "public static com.lrexperts.liferay.liferayofthings.model.SensorValue fetchByUuid_First(\n java.lang.String uuid,\n com.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n throws com.liferay.portal.kernel.exception.SystemException {\n return getPersistence().fetchByUuid_First(uuid, orderByComparator);\n }", "public T caseInteger(sensorDeploymentLanguage.Integer object) {\n\t\treturn null;\n\t}", "public abstract Any value();", "public T getValue();", "Object readValue();" ]
[ "0.722779", "0.6508521", "0.63803643", "0.6337982", "0.62071824", "0.6083137", "0.60410696", "0.603802", "0.5920537", "0.5914419", "0.59127855", "0.58228725", "0.5736544", "0.5616507", "0.55852175", "0.5548993", "0.55356956", "0.551739", "0.55143327", "0.54982156", "0.54372406", "0.54114443", "0.5397469", "0.5349065", "0.53447646", "0.5310885", "0.530039", "0.5296067", "0.5292748", "0.52884763", "0.5275905", "0.52752537", "0.5204397", "0.5202596", "0.51943994", "0.5183462", "0.5172637", "0.51722795", "0.5160208", "0.515218", "0.5143261", "0.51392627", "0.51193815", "0.51192224", "0.50998515", "0.5090105", "0.508489", "0.5083749", "0.5037398", "0.50312144", "0.5020432", "0.50189304", "0.4999397", "0.49763536", "0.49697554", "0.49626264", "0.49616632", "0.49598655", "0.49578062", "0.49575096", "0.49391776", "0.4936201", "0.49192873", "0.49183387", "0.49106392", "0.48881087", "0.4873774", "0.48660624", "0.48629585", "0.48629585", "0.48629585", "0.48629585", "0.48629585", "0.48596704", "0.4857926", "0.48535654", "0.48524824", "0.4850227", "0.4845133", "0.4841061", "0.4835129", "0.48318738", "0.48295337", "0.48294288", "0.482564", "0.482564", "0.482564", "0.4821117", "0.48167974", "0.48122326", "0.48079562", "0.47992793", "0.47974107", "0.47964072", "0.47963104", "0.47958025", "0.47936124", "0.47924536", "0.47788915", "0.47784764" ]
0.7699737
0
Returns the result of interpreting the object as an instance of 'Periodic'. This implementation returns null; returning a nonnull result will terminate the switch.
public T casePeriodic(Periodic object) { return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public T casePeriodicStatement(PeriodicStatement object) {\n\t\treturn null;\n\t}", "PeriodicProcess getPeriodic();", "public boolean isPeriodic() {\n return period != 0;\n }", "public void autonomousPeriodic() {\r\n \r\n }", "public void autonomousPeriodic() {\n\n }", "public void autonomousPeriodic() {\n\n }", "public void autonomousPeriodic() {\n }", "public void autonomousPeriodic() {\n }", "public void autonomousPeriodic() {\r\n }", "public void autonomousPeriodic() {\r\n }", "public void autonomousPeriodic() {\n \n }", "public void autonomousPeriodic()\r\n {\r\n \r\n }", "public T caseContinuous(Continuous object) {\n\t\treturn null;\n\t}", "@Override\n public void autonomousPeriodic() {\n }", "@Override\npublic void autonomousPeriodic() {\n\n}", "@Override\n public void autonomousPeriodic() {\n }", "@Override\n public void autonomousPeriodic() {\n }", "@Override\n public void autonomousPeriodic() {\n }", "public T caseTimePeriodType(TimePeriodType object) {\n\t\treturn null;\n\t}", "public T caseBasicIntervalSchedule(BasicIntervalSchedule object) {\n\t\treturn null;\n\t}", "@Override\n public void autonomousPeriodic() {\n\n }", "@Override\n public void autonomousPeriodic() {\n \n }", "public void testPeriodic() {\n \t\n }", "@Override\n public void periodic() {\n SmartDashboard.putBoolean(\"Climber Safety Mode: \", Robot.m_oi.getSafety());\n\n if (Robot.m_oi.getSafety()) {\n \t\tif (Robot.m_oi.getClimbUp()) {\n // if (printDebug) {\n // System.out.println(\"Climb: up speed = \" + speed);\n // }\n // talonMotor.setInverted(false); // do not reverse motor\n talonMotor.set(-speed); // activate motor\n\n \t\t} else if (Robot.m_oi.getClimbDown()) {\n // if (printDebug) {\n // System.out.println(\"IntakeArm: retract speed = \" + speed);\n // }\n // talonMotor.setInverted(true); // reverse motor\n talonMotor.set(speed);\n \n \t\t} else { // else no hand button pressed, so stop motor\n talonMotor.set(0);\n }\n\n if (climbState == 0 && Robot.m_oi.getClimbUp()) {\n climbState = 1;\n }\n\n if (climbState == 1 && Robot.m_oi.getClimbDown()) {\n climbState = 2;\n }\n\n if (climbState == 2 && talonMotor.getSensorCollection().isFwdLimitSwitchClosed()) {\n // Activiate the solenoid\n RobotMap.solenoid.extendSolenoid(true);\n }\n }\n }", "default void periodic()\n {\n // no-op\n }", "@Override\n public void periodic() {\n }", "@Override\n public void periodic() {\n }", "@Override\n public void periodic() {\n }", "@Override\n public void autonomousPeriodic()\n {\n commonPeriodic();\n }", "public java.lang.String getPeriodicidad() {\n return periodicidad;\n }", "@Override\r\n public void periodic() {\n }", "@Override\n public void periodic() {\n }", "@Override\n public void periodic() {\n }", "@Override\n public void periodic() {\n }", "@Override\n public void periodic() {\n }", "@Override\n public void periodic() {\n }", "@Override\n public void periodic() {\n }", "@Override\n public void periodic() {\n }", "@Override\n public void periodic() {\n }", "@Override\n public void periodic() {\n }", "@Override\n public void periodic() {\n }", "@Override\n public void periodic() {\n }", "@Override\n public void periodic() {\n }", "@Override\n public void periodic() {\n }", "@Override\n public void periodic() {\n }", "@Override\n public void periodic() {\n }", "@Override\n public void periodic() {\n }", "@Override\n public void periodic() {\n }", "@Override\n public void periodic() {\n }", "@Override\n public void periodic() {\n }", "@Override\n public void periodic() {\n }", "@Override\n public void periodic() {\n }", "@Override\n public void periodic() {\n }", "@Override\n public void periodic() {\n }", "@Override\n public void periodic() {\n }", "@Override\n public void periodic() {\n }", "@Override\n public void periodic() {\n }", "@Override\n public void periodic() {\n }", "@Override\n public void periodic() {\n }", "@Override\n public void periodic() {\n }", "@Override\n public void periodic() {\n }", "@Override\n public void periodic() {\n }", "@Override\n public void periodic() {\n }", "@Override\n public void periodic() {\n }", "@Override\n public void periodic() {\n }", "@Override\n public void periodic() {\n }", "public void testPeriodic() {\r\n \r\n }", "@Override\n\tpublic void periodic()\n\t{\n\t}", "public void robotPeriodic() {\n if (m_rpFirstRun) {\n System.out.println(\"Default robotPeriodic() method... Override me!\");\n m_rpFirstRun = false;\n }\n }", "public void testPeriodic() {\r\n \r\n }", "public void testPeriodic() {\r\n \r\n }", "public void testPeriodic() {\n\n\t}", "@Override\n\tpublic void periodic() {\n\t}", "public void testPeriodic() {\r\n }", "@Override\n public void teleopPeriodic()\n {\n commonPeriodic();\n }", "@Override\n public void periodic() {\n\n }", "@Override\n public void periodic() {\n\n }", "@Override\n public void periodic() {\n\n }", "@Override\n public void periodic() {\n\n }", "public T caseConformLoadSchedule(ConformLoadSchedule object) {\n\t\treturn null;\n\t}", "@Override\n public Chronology getChronology(Object object, Chronology chrono) {\n if (chrono == null) {\n chrono = ((ReadableInstant) object).getChronology();\n chrono = DateTimeUtils.getChronology(chrono);\n }\n return chrono;\n }", "@Override\n\tpublic void testPeriodic() {}", "public void teleopPeriodic() {\n if (m_tpFirstRun) {\n System.out.println(\"Default teleopPeriodic() method... Override me!\");\n m_tpFirstRun = false;\n }\n }", "public T caseOpenTimeInterval(OpenTimeInterval object) {\n\t\treturn null;\n\t}", "@Override\n public void periodic() {\n\n }", "@Override\n public void periodic() {\n\n }", "public void teleopPeriodic() {\r\n }", "public void autonomousPeriodic() {\n \tauto.autonomousPeriodic();\n\t}", "void robotPeriodic();", "@Override\r\n public void periodic() {\n\r\n }", "@Override\n\tpublic void testPeriodic() {\n\t\t\n\t}", "@Override\n\tpublic void testPeriodic() {\n\t\t\n\t}", "public void testPeriodic() {\n\t}", "@Override\n public void teleopPeriodic() {\n \tbeginPeriodic();\n Scheduler.getInstance().run();\n endPeriodic();\n }", "public T caseRegularIntervalSchedule(RegularIntervalSchedule object) {\n\t\treturn null;\n\t}", "public T caseNonConformLoadSchedule(NonConformLoadSchedule object) {\n\t\treturn null;\n\t}", "@Override\n\tpublic void testPeriodic() {\n\t\n\t}", "public abstract T poll();", "public T caseWheneverOccursStatement(WheneverOccursStatement object) {\n\t\treturn null;\n\t}", "@Override\n public void autonomousPeriodic() {\n \tbeginPeriodic();\n Scheduler.getInstance().run();\n endPeriodic();\n }" ]
[ "0.7047226", "0.68633", "0.576834", "0.57060975", "0.569807", "0.569807", "0.56679636", "0.56679636", "0.56471056", "0.56471056", "0.55999285", "0.5579068", "0.55254656", "0.55113244", "0.5481618", "0.5475517", "0.5475517", "0.5475517", "0.54722345", "0.54676473", "0.5406139", "0.532967", "0.531017", "0.530193", "0.5272156", "0.5256044", "0.5256044", "0.5256044", "0.5247344", "0.52346987", "0.5224325", "0.5216529", "0.5216529", "0.5216529", "0.5216529", "0.5216529", "0.5216529", "0.5216529", "0.5216529", "0.5216529", "0.5216529", "0.5216529", "0.5216529", "0.5216529", "0.5216529", "0.5216529", "0.5216529", "0.5216529", "0.5216529", "0.5216529", "0.5216529", "0.5216529", "0.5216529", "0.5216529", "0.5216529", "0.5216529", "0.5216529", "0.5216529", "0.5216529", "0.5216529", "0.5216529", "0.5216529", "0.5216529", "0.5216529", "0.5216529", "0.5216529", "0.5214105", "0.52134275", "0.51963097", "0.51923305", "0.51923305", "0.5168893", "0.51582414", "0.5154032", "0.51459104", "0.51338446", "0.51338446", "0.51338446", "0.51338446", "0.51202565", "0.5118645", "0.511133", "0.51017946", "0.5097383", "0.5097053", "0.5097053", "0.5093794", "0.50927293", "0.5085995", "0.50840837", "0.5078196", "0.5078196", "0.50735396", "0.5062758", "0.5049748", "0.50365573", "0.5020085", "0.5010673", "0.5005914", "0.5005477" ]
0.79260266
0
Returns the result of interpreting the object as an instance of 'Event Based'. This implementation returns null; returning a nonnull result will terminate the switch.
public T caseEvent_Based(Event_Based object) { return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public T caseEvent(Event object)\n {\n return null;\n }", "public T caseEvent(Event object) {\n\t\treturn null;\n\t}", "public T caseEvent(Event object) {\r\n\t\treturn null;\r\n\t}", "public T caseEventDefinition(EventDefinition object) {\r\n\t\treturn null;\r\n\t}", "public T caseEventDefinition(EventDefinition object) {\n\t\treturn null;\n\t}", "public abstract NAEventType getEventType();", "public T caseEventExpr(EventExpr object) {\n\t\treturn null;\n\t}", "public T caseEventSpec(EventSpec object) {\r\n\t\treturn null;\r\n\t}", "public T caseBuiltinEventSpec(BuiltinEventSpec object) {\r\n\t\treturn null;\r\n\t}", "public T caseEventRaisingExpression(EventRaisingExpression object) {\r\n\t\treturn null;\r\n\t}", "public T caseEntryEvent(EntryEvent object) {\r\n\t\treturn null;\r\n\t}", "public T caseStartEvent(StartEvent object) {\n\t\treturn null;\n\t}", "@Override\n public String getEventType()\n {\n\t return null;\n }", "@Override\r\n\tpublic String getEventClass() {\n\t\treturn null;\r\n\t}", "String event_type () throws BaseException;", "EventType getEvent();", "String getEventType();", "public T caseAlwaysEvent(AlwaysEvent object) {\r\n\t\treturn null;\r\n\t}", "public T caseEndEvent(EndEvent object) {\n\t\treturn null;\n\t}", "@Override\n public Object getEvent() {\n return eventObj;\n }", "public EventType getEvent() {\n EventType result = EventType.valueOf(event_);\n return result == null ? EventType.UNRECOGNIZED : result;\n }", "java.lang.String getEventType();", "public EventType getEvent() {\n EventType result = EventType.valueOf(event_);\n return result == null ? EventType.UNRECOGNIZED : result;\n }", "public T caseExitEvent(ExitEvent object) {\r\n\t\treturn null;\r\n\t}", "public IEvent getCauseEvent();", "@Override\r\n\tpublic int getEventType() {\n\t\treturn 0;\r\n\t}", "@Override\r\n\tpublic int getEventType() {\n\t\treturn 0;\r\n\t}", "Event getE();", "@objid (\"0480e45a-6886-42c0-b13c-78b8ab8f713d\")\n boolean isIsEvent();", "public T caseSwitch(Engine.Switch object) {\n\t\treturn null;\n\t}", "public T caseRegularEventSpec(RegularEventSpec object) {\r\n\t\treturn null;\r\n\t}", "HabitEvent getPassedHabitEvent();", "Event getEvent();", "@Override\n\tpublic BaseMsg handle(BaseEvent event) {\n\t\treturn null;\n\t}", "@Nullable\n/* */ public Class<? extends Event> getEventClass() {\n/* 89 */ return this.eventClass;\n/* */ }", "public Event nextEVPEC();", "protected CayenneEvent messageObjectToEvent(Serializable object) throws Exception {\n return (object instanceof CayenneEvent) ? (CayenneEvent) object : null;\n }", "public T caseEHPC(EHPC object)\n {\n return null;\n }", "public T caseDecision(Decision object) {\n\t\treturn null;\n\t}", "public T caseEventValueReferenceExpression(EventValueReferenceExpression object) {\r\n\t\treturn null;\r\n\t}", "public T caseFuToEndEvConnection(FuToEndEvConnection object) {\n\t\treturn null;\n\t}", "public T caseSensor(Sensor object) {\n\t\treturn null;\n\t}", "public T caseFeatureChange(FeatureChange object) {\n\t\treturn null;\n\t}", "public T caseTrigger(Trigger object) {\r\n\t\treturn null;\r\n\t}", "public Event getEvent() {\n\n return null;\n }", "BasicEvent createBasicEvent();", "public Object caseProcessElement(ProcessElement object) {\n\t\treturn null;\n\t}", "public T caseTimeEventSpec(TimeEventSpec object) {\r\n\t\treturn null;\r\n\t}", "public T caseDecisionNode(DecisionNode object) {\n\t\treturn null;\n\t}", "public interface IFightEvent {\n AbstractStageEventListener stageListener = StageManager.getInstance().getStageEventListener();\n EventManager eventManager = EventManager.getInstance();\n default void gainHealth(FightRole role, int val) {\n stageListener.onGainHealth(role, val);\n }\n\n default void loseHealth(FightRole role, int val) {\n\n }\n\n default void causeDamage(FightRole role, int val) {\n\n }\n\n default void beDamaged(FightRole role, int val) {\n\n }\n\n default void getHurt(FightRole role, int val) {\n stageListener.onGetHurt(role, val);\n // FIXME\n\n }\n\n void on(FightEvent event, Callback callback);\n\n void one(FightEvent event, Callback callback);\n\n void triggle(FightEvent event);\n\n void triggle(StageEvent event);\n}", "public T caseFlowType(FlowType object)\n {\n return null;\n }", "public Object getEvent() {\r\n return event;\r\n }", "public interface NoEventType {\n\n}", "@Override\r\n\tpublic Long getEventParentClass() {\n\t\treturn null;\r\n\t}", "@Override\r\n\tpublic Long getEventParentClass() {\n\t\treturn null;\r\n\t}", "public interface EventDefinition extends EObject {\r\n}", "public T caseIfAbstractConditional(IfAbstractConditional object)\n\t{\n\t\treturn null;\n\t}", "Event createEvent();", "Event createEvent();", "public T caseWorkflow(Workflow object) {\n\t\treturn null;\n\t}", "public T caseInputInterface(InputInterface object)\n {\n return null;\n }", "Event getCondition();", "public SoEvent getEvent() {\n\t\treturn (eventAction != null ? eventAction.getEvent() : null); \n\t}", "public T caseEnumValue(EnumValue object)\n {\n return null;\n }", "public T caseStartEvToEConConnection(StartEvToEConConnection object) {\n\t\treturn null;\n\t}", "public T caseEntityChange(EntityChange object) {\n\t\treturn null;\n\t}", "public Event testEvent(InputChangeEvent ie, boolean override) {\n return null;\n }", "public T caseStartEvToFuConnection(StartEvToFuConnection object) {\n\t\treturn null;\n\t}", "public T caseImplementation(Implementation object)\n {\n return null;\n }", "@SuppressWarnings(\"restriction\")\n\tpublic int getEventType() {\n\t\treturn invokeWithoutInvocationException(int.class, \"getEventType\");\n\t}", "public EventOccurrence getReceiveEvent();", "public T caseEAITrainingETL(EAITrainingETL object)\n {\n return null;\n }", "public T caseFlowInterface(FlowInterface object)\n {\n return null;\n }", "public T caseAbstractFeature(AbstractFeature object) {\n\t\treturn null;\n\t}", "public String getEventName();", "@Override\n public long getSupportedEventTypes() {\n return EventType.GO_TO;\n }", "public EventEntry getEventEntry();", "com.walgreens.rxit.ch.cda.EIVLEvent getEvent();", "public Object caseActivity(Activity object) {\n\t\treturn null;\n\t}", "public T caseObservation(Observation object) {\n\t\treturn null;\n\t}", "public T caseEHPCData(EHPCData object)\n {\n return null;\n }", "public Event getTheObject(){\n return this;\n }", "public T caseEAITraining(EAITraining object)\n {\n return null;\n }", "public T caseExprThen(ExprThen object)\n {\n return null;\n }", "public T caseMicrocontroller(Microcontroller object) {\r\n\t\treturn null;\r\n\t}", "public T caseRealCast(RealCast object) {\n\t\treturn null;\n\t}", "public interface Event {\n\n}", "public interface Event {\n\n}", "public java.lang.String getEventtype() {\n\treturn eventtype;\n}", "public T caseAttributeChange(AttributeChange object) {\n\t\treturn null;\n\t}", "CatchingEvent createCatchingEvent();", "public T caseActivity(Activity object) {\n\t\treturn null;\n\t}", "public T caseECUType(ECUType object) {\r\n\t\treturn null;\r\n\t}", "@Override\r\n public T defaultCase(EObject object)\r\n {\r\n return null;\r\n }", "@Override\r\n public T defaultCase(EObject object)\r\n {\r\n return null;\r\n }", "public ClEvent getEventType()\n {\n return eventType;\n }", "@Override\n\tpublic EVENT_TYPE getEventType() {\n\t\treturn EVENT_TYPE.FLOW_EVENT;\n\t}", "EventUse createEventUse();", "@Override\n public T defaultCase(EObject object)\n {\n return null;\n }", "@Override\n public T defaultCase(EObject object)\n {\n return null;\n }" ]
[ "0.68163234", "0.67316854", "0.6716464", "0.6382937", "0.6371286", "0.61785966", "0.6176824", "0.6139981", "0.6125993", "0.61192024", "0.6054247", "0.6004931", "0.59120727", "0.5891042", "0.58322436", "0.57738745", "0.567582", "0.56757545", "0.5648367", "0.559702", "0.5595552", "0.5566306", "0.55404997", "0.54832524", "0.5460877", "0.5450921", "0.5450921", "0.5412989", "0.53998625", "0.5399704", "0.53838605", "0.53479356", "0.5340972", "0.5336967", "0.5322329", "0.5276985", "0.5265115", "0.52462465", "0.5217386", "0.5208401", "0.5206866", "0.52001375", "0.51718885", "0.51605076", "0.5147707", "0.5134126", "0.5127667", "0.5124393", "0.51224226", "0.51121795", "0.5109114", "0.5098848", "0.50886893", "0.5084171", "0.5084171", "0.5081091", "0.5053164", "0.5049739", "0.5049739", "0.50487083", "0.50345314", "0.5033011", "0.5030245", "0.50289476", "0.50265926", "0.5024794", "0.5020188", "0.5017971", "0.5017351", "0.501612", "0.50154024", "0.5014892", "0.50142854", "0.50118935", "0.50107855", "0.49998027", "0.49967265", "0.49907598", "0.4973521", "0.4969619", "0.49636015", "0.49539733", "0.49509266", "0.49494144", "0.49481007", "0.49435797", "0.49432746", "0.49432746", "0.49396294", "0.4938101", "0.49323767", "0.4927346", "0.49258715", "0.49251872", "0.49251872", "0.49239963", "0.49225163", "0.49205115", "0.49178308", "0.49178308" ]
0.7278767
0
Returns the result of interpreting the object as an instance of 'Observation'. This implementation returns null; returning a nonnull result will terminate the switch.
public T caseObservation(Observation object) { return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public org.hl7.fhir.ResourceReference getObservation()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.hl7.fhir.ResourceReference target = null;\n target = (org.hl7.fhir.ResourceReference)get_store().find_element_user(OBSERVATION$0, 0);\n if (target == null)\n {\n return null;\n }\n return target;\n }\n }", "@Override\n\tpublic Model getObservationActivity() {\n\t\treturn null;\n\t}", "protected ISPObservation _getObsNode() {\n return _obs;\n }", "@Override\n public DescribeObservationResult describeObservation(DescribeObservationRequest request) {\n request = beforeClientExecution(request);\n return executeDescribeObservation(request);\n }", "public Obs getObs() { return obs; }", "public org.apache.xmlbeans.XmlAnySimpleType getObservationDataLink()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.XmlAnySimpleType target = null;\r\n target = (org.apache.xmlbeans.XmlAnySimpleType)get_store().find_attribute_user(OBSERVATIONDATALINK$18);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target;\r\n }\r\n }", "org.hl7.fhir.ObservationStatus getStatus();", "GuiObservation getObservation(UUID observationUuid);", "public abstract Object getObservedObject();", "public Observation getFhirObservation(String patId, String encId) {\r\n\t\t\tObservation observation = new Observation();\r\n\t\t\t\r\n\t\t\tobservation.setStatus(ObservationStatus.FINAL);\r\n\t\t\t\r\n\t\t\t//all laboratory\r\n\t\t\tobservation.addCategory().addCoding().setSystem(\"http://hl7.org/fhir/observation-category\").setCode(\"laboratory\").setDisplay(\"Laboratory\");\t\t\r\n\t\t\t\r\n\t\t\tCodeableConcept cc = new CodeableConcept();\r\n\t\t\t//Type of Observation\r\n\t\t\tif(this.getLoinc() != null) {\r\n\t\t\t\tcc.addCoding().setSystem(\"http://loinc.org\").setCode(this.getLoinc());\r\n\t\t\t\tcc.setText(this.getMeasurementType());\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\t//Representation as plain text if no loinc code available\r\n\t\t\t\tcc.setText(this.getMeasurementType());\r\n\t\t\t}\r\n\t\t\tobservation.setCode(cc);\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t//Pat-Reference\r\n\t\t\tobservation.setSubject(new Reference(patId));\r\n\t\t\t\r\n\t\t\t//Enc-Reference\r\n\t\t\tobservation.setContext(new Reference(encId));\r\n\t\t\t\r\n\t\t\t//Record-Date\r\n\t\t\tobservation.setEffective(new DateTimeType(this.getAcquisitionDate()));\r\n\t\t\t\r\n\t\t\t//Performer is not available\r\n\t\t\t\r\n\t\t\t//Actual result\r\n\t\t\tif(this.hasNumVal()) {\r\n\t\t\t\tQuantity value = new Quantity();\r\n\t\t\t\tvalue.setValue(this.getNumValue());\r\n\t\t\t\tvalue.setUnit(this.getUnit());\r\n\t\t\t\t\r\n\t\t\t\tobservation.setValue(value);\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tString value = this.getValue();\r\n\t\t\t\t//Unit added with \"(<unit>)\"\r\n\t\t\t\tif(this.getUnit() != null && this.getUnit().length() > 0) {\r\n\t\t\t\t\tvalue += \" (\" + this.getUnit() + \")\";\r\n\t\t\t\t}\r\n\t\t\t\tobservation.setValue(new StringType(value));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//Interpretation (from \"flag\")\r\n\t\t\tif(this.isAbnormal()) {\r\n\t\t\t\tcc = new CodeableConcept();\r\n\t\t\t\tcc.addCoding().setSystem(\"http://hl7.org/fhir/v2/0078\").setCode(\"A\").setDisplay(\"Abnormal\");\r\n\t\t\t\tobservation.setInterpretation(cc);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tobservation.setId(IdDt.newRandomUuid().toString().replace(\"urn:uuid:\", \"Observation/\"));\r\n\t\t\t\r\n\t\t\treturn observation;\r\n\t\t}", "public static Obs getObsFromEncounter(Concept concept, Encounter encounter) {\r\n \t\tif (encounter.getObsAtTopLevel(false) != null) {\r\n \t\t\tfor (Obs obs : encounter.getObsAtTopLevel(false)) {\r\n \t\t\t\tif (!obs.isVoided() && obs.getConcept().equals(concept)) {\r\n \t\t\t\t\treturn obs;\r\n \t\t\t\t}\r\n \t\t\t}\r\n \t\t}\r\n \t\treturn null;\r\n \t}", "public abstract O getObserver();", "public T caseSensor(Sensor object) {\n\t\treturn null;\n\t}", "public String getObservationCode() {\n return this.observationCode;\n }", "public Object getObservedValue() {\n if (observedValue == null) {\n throw new IllegalStateException(\"Evidence statement has not \"\n + \"been compiled yet.\");\n }\n return observedValue;\n }", "public T caseOutputType(OutputType object) {\n\t\treturn null;\n\t}", "public T caseMeasurement(Measurement object) {\n\t\treturn null;\n\t}", "@java.lang.Override\n public com.google.protobuf2.Any getObject() {\n return object_ == null ? com.google.protobuf2.Any.getDefaultInstance() : object_;\n }", "public T caseOutputInterface(OutputInterface object)\n {\n return null;\n }", "public EdObservation()\n\t{\n\t\t_title = \"Observation\" ;\n\t\t_presSource = _w = new ObsGUI() ;\n\t\t_description = \"The observation is the smallest entity that can be scheduled.\" ;\n\n\t\t_obsTitle = _w.nameBox;\n\t\t_obsTitle.addWatcher( this ) ;\n\n\t\t_obsState = _w.obsState ;\n\n\t\t_w.jComboBox1.addActionListener( this ) ;\n\n\t\t_w.optional.addWatcher( this ) ;\n\t\t_w.standard.addWatcher( this ) ;\n\n\t\t// Added by MFO (22 February 2002)\n\t\tif( !OtCfg.telescopeUtil.supports( TelescopeUtil.FEATURE_FLAG_AS_STANDARD ) )\n\t\t{\n\t\t\t_w.standard.setText( \"Flag as Calibration\" ) ;\n\t\t\t_w.optional.setVisible( false ) ;\n\t\t\t_w.optional.deleteWatcher( this ) ;\n\t\t}\n\n\t\t_w.addRemainingCountListener(this);\n\n\t\t_w.obsStateLabel.setVisible( false ) ;\n\t\t_w.obsState.setVisible( false ) ;\n\t}", "public Observation getFhirObservation(String patId, String encId) {\r\n\t\tObservation observation = new Observation();\r\n\t\t\r\n\t\tobservation.setStatus(ObservationStatus.FINAL);\r\n\t\t\r\n\t\t//Expect all chartevents to be vital signs\r\n\t\tobservation.addCategory().addCoding().setSystem(\"http://hl7.org/fhir/observation-category\").setCode(\"vital_signs\").setDisplay(\"Vital Signs\");\t\t\r\n\t\t\r\n\t\t//Type of Observation\r\n\t\t//D_Items in Mimic doesn't relate the measurement types to any coding system or terminology\r\n\t\t// => Representation as plain text\r\n\t\tCodeableConcept cc = new CodeableConcept();\r\n\t\tcc.setText(this.getMeasurementType());\r\n\t\tobservation.setCode(cc);\r\n\t\t\r\n\t\t//Pat-Reference\r\n\t\tobservation.setSubject(new Reference(patId));\r\n\t\t\r\n\t\t//Enc-Reference\r\n\t\tobservation.setContext(new Reference(encId));\r\n\t\t\r\n\t\t//Record-Date\r\n\t\tobservation.setEffective(new DateTimeType(this.getRecordDate()));\r\n\t\t\r\n\t\t//Performer will be set later\r\n\t\t\r\n\t\t//Actual result\r\n\t\tif(this.hasNumVal()) {\r\n\t\t\tQuantity value = new Quantity();\r\n\t\t\tvalue.setValue(this.getNumValue());\r\n\t\t\tvalue.setUnit(this.getUnit());\r\n\t\t\t\r\n\t\t\tobservation.setValue(value);\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tobservation.setValue(new StringType(this.getValue()));\r\n\t\t\t//no units in data \r\n\t\t}\r\n\t\t\r\n\t\tobservation.setId(IdDt.newRandomUuid().toString().replace(\"urn:uuid:\", \"Observation/\"));\r\n\t\t\r\n\t\treturn observation;\r\n\t}", "protected IValue narrow(Object result){\n\t\tif(result instanceof Integer) {\n\t\t\treturn vf.integer((Integer)result);\n\t\t}\n\t\tif(result instanceof IValue) {\n\t\t\treturn (IValue) result;\n\t\t}\n\t\tif(result instanceof Thrown) {\n\t\t\t((Thrown) result).printStackTrace(stdout);\n\t\t\treturn vf.string(((Thrown) result).toString());\n\t\t}\n\t\tif(result instanceof Object[]) {\n\t\t\tIListWriter w = vf.listWriter();\n\t\t\tObject[] lst = (Object[]) result;\n\t\t\tfor(int i = 0; i < lst.length; i++){\n\t\t\t\tw.append(narrow(lst[i]));\n\t\t\t}\n\t\t\treturn w.done();\n\t\t}\n\t\tif(result == null){\n\t\t\treturn null;\n\t\t}\n\t\tthrow new InternalCompilerError(\"Cannot convert object back to IValue: \" + result);\n\t}", "public T caseDecision(Decision object) {\n\t\treturn null;\n\t}", "@Override\n public ObservationTemplate getObservationTemplate() {\n return observationTemplate;\n }", "public T caseDecisionNode(DecisionNode object) {\n\t\treturn null;\n\t}", "public T caseInOutput(InOutput object) {\n\t\treturn null;\n\t}", "public abstract O value();", "public Object objectValue();", "public org.hl7.fhir.ResourceReference addNewObservation()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.hl7.fhir.ResourceReference target = null;\n target = (org.hl7.fhir.ResourceReference)get_store().add_element_user(OBSERVATION$0);\n return target;\n }\n }", "public T caseExperimentOrchestration(ExperimentOrchestration object)\r\n {\r\n return null;\r\n }", "public T caseTerminal(Terminal object) {\n\t\treturn null;\n\t}", "public Observation getExpectationObservation(){\r\n\t\treturn expectations;\r\n\t}", "public Object getValue() {\n\t\treturn object;\n\t}", "public Object getObject() {\n\t\ttry {\n\t\t\tByteArrayInputStream istream = new ByteArrayInputStream(mStoredObjectArray);\n\t\t\tObjectInputStream p;\n\t\t\tObject toReturn = null;\n\t\t\tif (mIsJython) {\n\t\t\t} else {\n\t\t\t\t\n\t\t\t\ttoReturn = null;\n\t\t\t}\n\t\t\tistream.close();\n\t\t\treturn toReturn;\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t}\n\t}", "public void setObservation(org.hl7.fhir.ResourceReference observation)\n {\n generatedSetterHelperImpl(observation, OBSERVATION$0, 0, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_SINGLETON);\n }", "public T caseOutputModel(OutputModel object) {\n\t\treturn null;\n\t}", "public T caseOrden(Orden object) {\n\t\treturn null;\n\t}", "public CodeableConcept outcome() {\n return getObject(CodeableConcept.class, FhirPropertyNames.PROPERTY_OUTCOME);\n }", "public T caseMeasurementValue(MeasurementValue object) {\n\t\treturn null;\n\t}", "public Object getObject() {\n return getObject(null);\n }", "public T caseRobot(Robot object) {\r\n\t\treturn null;\r\n\t}", "public Object getObject();", "public T caseQuestion(Question object) {\n\t\treturn null;\n\t}", "public T caseFitnessDimensionOCL(FitnessDimensionOCL object)\r\n {\r\n return null;\r\n }", "public BayesNetVar getObservedVar() {\n if (observedVar == null) {\n throw new IllegalStateException(\"Evidence statement has not \"\n + \"been compiled yet.\");\n }\n return observedVar;\n }", "public T caseMicrocontroller(Microcontroller object) {\r\n\t\treturn null;\r\n\t}", "Object getIf();", "private int getObservationResult( long currentTime )\n {\n int[] votes = new int[ 6 ];\n //[copied to the readFromNBT method]\n if( m_entanglementFrequency >= 0 )\n {\n List<TileEntityQBlock> twins = getEntanglementRegistry().getEntangledObjects( m_entanglementFrequency );\n if( twins != null )\n {\n Iterator<TileEntityQBlock> it = twins.iterator();\n while( it.hasNext() )\n {\n TileEntityQBlock twin = it.next();\n if( twin != this )\n {\n //[/copied]\n if( twin.m_currentlyObserved && twin.m_timeLastUpdated == currentTime )\n {\n // If an entangled twin is already up to date, use its result\n if( twin.m_currentlyForcedSide >= 0 )\n {\n return twin.m_currentlyForcedSide + 6;\n }\n else\n {\n return twin.m_currentDisplayedSide;\n }\n }\n else\n {\n // Otherwise, add its votes to the pile\n if( twin.m_currentlyForcedSide >= 0 && twin.m_forceObserved[ m_currentlyForcedSide ] )\n {\n return twin.m_currentlyForcedSide + 6;\n }\n else\n {\n for( int i=0; i<6; ++i )\n {\n if( twin.m_forceObserved[ i ] )\n {\n return i + 6;\n }\n }\n }\n votes = addVotes( votes, twin.collectVotes() );\n }\n }\n }\n }\n }\n\n // Get local observer votes\n if( m_currentlyForcedSide >= 0 && m_forceObserved[ m_currentlyForcedSide ] )\n {\n return m_currentlyForcedSide + 6;\n }\n else\n {\n for( int i=0; i<6; ++i )\n {\n if( m_forceObserved[ i ] )\n {\n return i + 6;\n }\n }\n }\n votes = addVotes( votes, collectVotes() );\n\n // Tally the votes\n return tallyVotes( votes );\n }", "public T caseAnnotationAnnotationValue(AnnotationAnnotationValue object)\n {\n return null;\n }", "Value getInterpretation();", "public static EvalEnv convObs(Environment observation)\n {\n \n EvalEnv result = new EvalEnv();\n return result;\n }", "public abstract Object getDecisionValue();", "public T caseAnnotationValue(AnnotationValue object)\n {\n return null;\n }", "public Object getObject() ;", "@Override\n public Object getObject()\n {\n return null;\n }", "@Override\r\n public Shape getShape ()\r\n {\r\n if (evaluation != null) {\r\n return evaluation.shape;\r\n } else {\r\n return null;\r\n }\r\n }", "@Override\r\n\tpublic Value interpret() {\n\t\treturn null;\r\n\t}", "public interface FunctionalStatusObservation2 extends FunctionalStatusResultObservation {\n\t/**\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * <!-- begin-model-doc -->\n\t * @param diagnostics The chain of diagnostics to which problems are to be appended.\n\t * @param context The cache of context-specific information.\n\t * <!-- end-model-doc -->\n\t * @model annotation=\"http://www.eclipse.org/uml2/1.1.0/GenModel body='self.templateId-&gt;exists(id : datatypes::II | id.root = \\'2.16.840.1.113883.10.20.22.4.67\\' and id.extension.oclIsUndefined())'\"\n\t * @generated\n\t */\n\tboolean validateFunctionalStatusObservation2TemplateId(DiagnosticChain diagnostics, Map<Object, Object> context);\n\n\t/**\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * <!-- begin-model-doc -->\n\t * @param diagnostics The chain of diagnostics to which problems are to be appended.\n\t * @param context The cache of context-specific information.\n\t * <!-- end-model-doc -->\n\t * @model annotation=\"http://www.eclipse.org/uml2/1.1.0/GenModel body='self.author-&gt;exists(author : cda::Author | not author.oclIsUndefined() and author.oclIsKindOf(consol::AuthorParticipation))'\"\n\t * @generated\n\t */\n\tboolean validateFunctionalStatusObservation2AuthorParticipation(DiagnosticChain diagnostics,\n\t\t\tMap<Object, Object> context);\n\n\t/**\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @model kind=\"operation\" required=\"true\" ordered=\"false\"\n\t * annotation=\"http://www.eclipse.org/uml2/1.1.0/GenModel body='self.getSupplies()-&gt;select(supply : cda::Supply | not supply.oclIsUndefined() and supply.oclIsKindOf(consol::NonMedicinalSupplyActivity2))-&gt;asSequence()-&gt;any(true).oclAsType(consol::NonMedicinalSupplyActivity2)'\"\n\t * @generated\n\t */\n\tNonMedicinalSupplyActivity2 getConsolNonMedicinalSupplyActivity2();\n\n\t/**\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t */\n\tpublic FunctionalStatusObservation2 init();\n\n\t/**\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t */\n\tpublic FunctionalStatusObservation2 init(Iterable<? extends Initializer<? extends EObject>> initializers);\n}", "public T caseDecisionInputModel(DecisionInputModel object) {\n\t\treturn null;\n\t}", "public T caseAnalysisOrchestration(AnalysisOrchestration object)\r\n {\r\n return null;\r\n }", "public abstract interface IObserver extends IObservingObject {\n\t\n\t/**\n\t * Observers do not properly have observables: they either\n\t * mediate another observer or link to another model through\n\t * its observable. This function returns the link object, either\n\t * an observer or a general semantic object that describes the\n\t * observable. At the end of a mediation chain there is always\n\t * an observable. \n\t * \n\t * @return the object observed by this observable. Use instanceof\n\t * to check whether it's another observer or not. If not, it's a\n\t * open observable for which compatible resolving models should be\n\t * found in the model base. It will never return null.\n\t */\n\tpublic abstract Object getObservedObject();\n\t\n\t/**\n\t * Return the accessor that will compute states for this observer.\n\t * \n\t * @return\n\t */\n\tpublic abstract IAccessor getAccessor(IContext context);\n\t\n\t/**\n\t * Observers are responsible for creating the empty result observation\n\t * when they are contextualized.\n\t * @param observable The observable we need the state for. Some observers\n\t * \t handle more than one observable.\n\t * @param context the context that the state will represent. The state must\n\t * be able to accommodate context.getMultiplicity() elements.\n\t * \n\t * @return\n\t * @throws ThinklabException\n\t */\n\tpublic abstract IState createState(ISemanticObject<?> observable, IContext context) throws ThinklabException;\n\t\t\n\n\t/**\n\t * Return the sub-context of the passed one that this observer isn't capable\n\t * of computing without external input. If no external input is necessary,\n\t * return null. If all the context is unresolved, return the passed context.\n\t * \n\t * Normally the only case when the return value will be not null and different\n\t * from the totalContext is when one extent in the context supports a notion of\n\t * \"initial\" (i.e., time) and the observer is capable of inferring the remaining\n\t * states when initial values are provided.\n\t * \n\t * @param totalContext\n\t * @return\n\t */\n\tpublic abstract IContext getUnresolvedContext(IContext totalContext);\n\n\t/**\n\t * Train the model to match any output state that can be\n\t * observed in the kbox/context. Details of how to choose or subset the output states are\n\t * left to the implementation. Not all observer will be trainable - if not trainable,\n\t * this one should return the same model (with the option of logging a warning).\n\t * \n\t * It should never modify the observer it's called on - it would be a const if there\n\t * was such a thing in Java. \n\t * @param params\n\t * \n\t * @return a new trained model that has learned to reproduce the output states \n\t * \t\t observed on the passed kbox.\n\t * @throws ThinklabException\n\t */\n\tpublic IObserver train(IContext context) throws ThinklabException;\n\n\t/**\n\t * A scenario is a model modifier, containing alternative models for given observables.\n\t * Applying the scenario substitutes any models of the same observables with those\n\t * in the scenario, going as deep as needed in the dependency chain.\n\t * \n\t * @param scenario\n\t * @return\n\t * @throws ThinklabException\n\t */\n\tpublic IObserver applyScenario(IScenario scenario) throws ThinklabException;\n\n\n\t/**\n\t * Get the observer we are mediating if any.\n\t * \n\t * @return\n\t */\n\tpublic abstract IObserver getMediatedObserver();\n\n\n}", "public static Observation createObservationRubella(Patient patient, Encounter encounter, Practitioner practitioner,\n String observationTypeCode, String observationTypeDisplay,\n String date, double value, String valueUnit, String protection){\n // Create an observation object\n Observation observation = new Observation();\n\n // Set Identifier of the observation object\n observation.addIdentifier()\n .setSystem(\"http://www.kh-uzl.de/fhir/observation\")\n .setValue(UUID.randomUUID().toString());\n\n // Set status of the observation object\n observation.setStatus(Observation.ObservationStatus.FINAL);\n\n // Set classification type of observation\n observation.addCategory(new CodeableConcept()\n .addCoding(new Coding()\n .setCode(\"laboratory\")\n .setSystem(\"http://terminology.hl7.org/CodeSystem/observation-category\")\n .setDisplay(\"Laboratory\")));\n\n // Set type of observation\n observation.setCode(new CodeableConcept()\n .addCoding(new Coding()\n .setCode(observationTypeCode)\n .setSystem(\"http://loinc.org\")\n .setDisplay(observationTypeDisplay)));\n\n // Set reference to a patient as a subject of the observation\n observation.setSubject(new Reference()\n .setIdentifier(patient.getIdentifierFirstRep())\n .setReference(patient.fhirType() + \"/\" + patient.getId()));\n\n // Set reference to an encounter\n observation.setEncounter(new Reference()\n .setIdentifier(encounter.getIdentifierFirstRep())\n .setReference(encounter.fhirType() + \"/\" + encounter.getId()));\n\n // Set time of the observation\n observation.setEffective(new DateTimeType(date));\n\n // Set performer of the observation\n observation.addPerformer(new Reference()\n .setIdentifier(practitioner.getIdentifierFirstRep())\n .setReference(practitioner.fhirType() + \"/\" + practitioner.getId()));\n\n observation.setValue(new Quantity()\n .setValue(value)\n .setUnit(valueUnit));\n\n // Set text for the kind of test that has been used\n observation.addNote(new Annotation().setText(protection));\n\n return observation;\n }", "public T caseAtom(Atom object)\n {\n return null;\n }", "public T caseAtom(Atom object)\n {\n return null;\n }", "public PropositionOrPrimitive to() {\n //the value is an element or a link\n\t\tString v = value;\n\t\tif (v.startsWith(\"Element\") || v.startsWith(\"Link\")\n\t\t\t\t|| v.startsWith(\"SerializedViewObject\")) {\n\t\t\tTelosParserKB kb = this.telosKB;\n\t\t\tTelosParserIndividual ind = (TelosParserIndividual) kb.individual(v);\n\t\t\treturn ind;\n\t\t}\n\t\t//the value is one of the individual in the KB\n\t\tTelosParserKB kb = this.telosKB;\n\t\tTelosParserIndividual ind = (TelosParserIndividual) kb.individual(v);\n\t\tif(ind!=null){\n\t\t\treturn ind;\n\t\t}\n\t\t//the value is a primitive\n\t\tint size = v.length();\n\t\ttry {\n\t\t\tInteger.parseInt(v);\n\t\t} catch (NumberFormatException nfe) {\n\t\t\ttry {\n\t\t\t\tDouble.parseDouble(v);\n\t\t\t} catch (NumberFormatException nfe2) {\n\t\t\t\t//the value is a string\n\t\t\t\tif (size > 1 && (v.substring(0, 1)).equals(\"\\\"\"))\n\t\t\t\t\treturn (new TelosString(v.substring(1, size-1)));\n\t\t\t\telse\n\t\t\t\t\treturn (new TelosString(v.substring(0, size)));\t\t\n\t\t\t}\n\t\t\treturn (new TelosReal(v));\n\t\t}\n\t\treturn (new TelosInteger(v));\n\t}", "public String getYOB()\r\n\t{\r\n\t\treturn yob.getModelObjectAsString();\r\n\t}", "public BDD ensureBDD(Object o) {\n if (o instanceof BDD) {\n return (BDD) o;\n }\n else if (o instanceof Long) {\n if (((Long) o).equals(new Long(0))) {\n return B.zero();\n }\n else {\n return B.one();\n }\n }\n else if (o instanceof String) {\n String s = parens(o);\n \n return presenceConditionManager.getVariableManager().getVariable(s);\n }\n else if (o instanceof Boolean) {\n Boolean b = (Boolean) o;\n \n if (b) {\n return B.one();\n }\n else {\n return B.zero();\n }\n }\n else {\n System.err.println(\"FATAL: ensureBDD, unforeseen type from evaluator\");\n System.err.println(o);\n System.err.println(o.getClass());\n System.exit(-1);\n \n return null;\n }\n }", "public Object getObject() {\n return getWildcard();\n }", "LazyDataModel<GuiObservation> getObservations();", "public T caseAnswer(Answer object) {\n\t\treturn null;\n\t}", "public IOutputType getPrimaryOutputType();", "public static Identifiable getIdentifiable(Identifiable selectedObject) {\n\t// for SpeciesContext objects:\r\n\t//\t\tMIRIAM tree needs the Species\t\t\t\t!!!\r\n\t//\t\ttext Annotation needs the SpeciesContext\r\n\t//\r\n\t// !!!\tuse this only for the tree !!!\r\n\t//\r\n\tif(selectedObject == null) {\r\n\t\treturn null;\r\n\t}\r\n\tif(selectedObject instanceof SpeciesContext) {\r\n\t\treturn (Species)((SpeciesContext)selectedObject).getSpecies();\r\n\t} else if(selectedObject instanceof MolecularType) {\r\n\t\treturn (MolecularType)selectedObject;\r\n\t} else if(selectedObject instanceof ReactionRule) {\r\n\t\treturn (ReactionRule)selectedObject;\r\n\t} else if(selectedObject instanceof ReactionStep) {\r\n\t\treturn (ReactionStep)selectedObject;\r\n\t} else if(selectedObject instanceof RbmObservable) {\r\n\t\treturn (RbmObservable)selectedObject;\r\n\t} else if(selectedObject instanceof BioModel) {\r\n\t\treturn (BioModel)selectedObject;\r\n\t} else if(selectedObject instanceof Structure) {\r\n\t\treturn (Structure)selectedObject;\r\n\t} else if(selectedObject instanceof BioPaxObject) {\r\n\t\treturn null;\r\n\t} else if(selectedObject instanceof Model.ModelParameter) {\r\n\t\treturn (Model.ModelParameter)selectedObject;\r\n\t} else if(selectedObject instanceof SimulationContext) {\r\n\t\treturn (SimulationContext)selectedObject;\r\n//\t} else if(selectedObject instanceof Simulation) {\r\n//\t\treturn (Simulation)selectedObject;\r\n//\t} else if(selectedObject instanceof SpeciesContextSpec) {\r\n//\t\treturn (SpeciesContextSpec)selectedObject;\r\n//\t} else if(selectedObject instanceof ReactionSpec) {\r\n//\t\treturn (ReactionSpec)selectedObject;\r\n\t} else {\r\n\t\treturn null;\r\n\t}\r\n}", "@Override\n public Object getReturnValue(){\n return object;\n }", "Object getObject();", "Object getObject();", "Object getObject();", "Object getObject();", "public GameObject getObstacle() {\n \tif (selection != null) {\n \tjava.lang.Object data = selection.getBody().getUserData();\n \ttry {\n \t\treturn (GameObject)data;\n \t} catch (Exception e) {\n \t}\n }\n return null;\n }", "public O getTypedThing() {\r\n\t\treturn myThing;\r\n\t}", "public T caseImplementation(Implementation object)\n {\n return null;\n }", "public T caseOptimization_Model(Optimization_Model object)\n {\n return null;\n }", "public Object getResult()\n/* */ {\n/* 129 */ Object resultToCheck = this.result;\n/* 130 */ return resultToCheck != RESULT_NONE ? resultToCheck : null;\n/* */ }", "public BooleanObservation(TimeObject phenomenonTime, TimeObject resultTime,\n\t\t\tURI procedure, URI observedProperty,\n\t\t\tSpatialSamplingFeature featureOfInterest, BooleanResult result){\n\t\tsuper(phenomenonTime,resultTime,procedure,observedProperty,featureOfInterest,result);\n\t}", "public T caseMeasurementType(MeasurementType object) {\n\t\treturn null;\n\t}", "public Variable getObjective() {\r\n\t\treturn objective;\r\n\t}", "public T caseWhenOccursStatment(WhenOccursStatment object) {\n\t\treturn null;\n\t}", "public T caseDatatype(Datatype object)\n {\n return null;\n }", "public abstract org.omg.CORBA.Object read_Object();", "public T caseOpBool(OpBool object)\n {\n return null;\n }", "public Object getObject() {\r\n/* 109 */ return this.object;\r\n/* */ }", "private OBOClass getModelTerm() {\n if (!this.selectionModel.getSelected().isEmpty()) {\n CharacterI c = this.selectionModel.getSelected().get(0);\n return c.getValue(charField).getOboClass();\n } else {\n return null;\n } \n }", "Object value();", "public Object caseOntologyLinkedElement(OntologyLinkedElement object) {\n\t\treturn null;\n\t}", "public org.omg.uml.behavioralelements.commonbehavior.Instance getValue();", "@Override\n @SuppressWarnings(\"unchecked\")\n public <T> T getObject() {\n waitFor();\n return (T) response;\n }", "public Object getObject() {\n\t\treturn object;\n\t}", "public static ISPObsComponent findAOSystem(ISPObservation obs) {\n if (obs != null) {\n Iterator iter = obs.getObsComponents().iterator();\n while (iter.hasNext()) {\n ISPObsComponent obsComp = (ISPObsComponent) iter.next();\n if (isAOInstrument(obsComp)) {\n return obsComp;\n }\n }\n }\n return null;\n }", "org.hl7.fhir.CodeableConcept getInterpretation();", "public T caseIConnectedUnit(IConnectedUnit object) {\r\n\t\treturn null;\r\n\t}", "@Override\n public T getValue(T object) {\n return object;\n }" ]
[ "0.62972873", "0.6105715", "0.57471895", "0.5696672", "0.5657007", "0.5492883", "0.5469573", "0.54518515", "0.5410942", "0.5314002", "0.52883923", "0.5272686", "0.5272275", "0.5217807", "0.5190304", "0.5129944", "0.50954556", "0.5051899", "0.5044383", "0.50371665", "0.5024523", "0.50220037", "0.50197524", "0.4962665", "0.4948533", "0.49439594", "0.4916719", "0.49167114", "0.48673925", "0.48512164", "0.48335803", "0.48160988", "0.48028472", "0.48007706", "0.47961938", "0.47959527", "0.47868893", "0.4786525", "0.47729307", "0.47721082", "0.4758024", "0.47503367", "0.473807", "0.47374627", "0.4736335", "0.4728011", "0.47094706", "0.4707175", "0.47059372", "0.4705655", "0.4694428", "0.4674904", "0.46714127", "0.46695325", "0.4669368", "0.46676525", "0.46584398", "0.46554378", "0.4651083", "0.46430904", "0.464188", "0.46366203", "0.46312642", "0.46312642", "0.46268052", "0.46069473", "0.4600912", "0.4596924", "0.45946756", "0.459377", "0.45882654", "0.45835057", "0.45646736", "0.45584333", "0.45584333", "0.45584333", "0.45584333", "0.45578817", "0.45560542", "0.4545941", "0.45454255", "0.45399708", "0.45346043", "0.4530992", "0.45219195", "0.45192382", "0.45154607", "0.45138156", "0.45052606", "0.45025438", "0.44976464", "0.44968945", "0.44963354", "0.44909045", "0.44864258", "0.4483477", "0.4482968", "0.447849", "0.4458321", "0.44540316" ]
0.7396085
0
Returns the result of interpreting the object as an instance of 'Field'. This implementation returns null; returning a nonnull result will terminate the switch.
public T caseField(Field object) { return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Object getObjectField();", "public T caseFieldDeclaration(FieldDeclaration object)\n {\n return null;\n }", "public Object caseRField(RField object) {\n\t\treturn null;\n\t}", "public T caseFieldReference(FieldReference object)\n {\n return null;\n }", "public T caseFieldType(FieldType object)\n {\n return null;\n }", "public T caseAnnotationField(AnnotationField object)\n {\n return null;\n }", "public T caseFieldType(FieldType object) {\n\t\treturn null;\n\t}", "@Nullable\n\tObject getFieldValue(String field);", "Field_decl getField();", "public T getField()\r\n {\r\n return this.field;\r\n }", "@SuppressWarnings(\"unchecked\")\n\tdefault Object getFieldValue(F field) {\n\t\t// piggyback on pull (from self)\n\t\treturn pull(field, (C) this, FieldGraph.noneOf(getFieldsClass()));\n\t}", "public Object convertValue(Field field) throws IllegalAccessException\n {\n if (field.getType().equals(Boolean.TYPE))\n {\n return (field.getBoolean(this) ? Boolean.TRUE : Boolean.FALSE);\n }\n if (field.getType().equals(Integer.TYPE))\n {\n return new Integer(field.getInt(this));\n }\n if (field.getType().equals(Short.TYPE))\n {\n return new Short(field.getShort(this));\n }\n if (field.getType().equals(Float.TYPE))\n {\n return new Double(field.getFloat(this));\n }\n if (field.getType().equals(Double.TYPE))\n {\n return new Double(field.getDouble(this));\n }\n //System.out.println(\"ohoh...\");\n return null; //and good luck with it :-) ...\n }", "public Object getValue(String fieldName) {\n try {\n Field field = FieldUtils.getField(object.getClass(), fieldName, true);\n if (field != null) {\n return FieldUtils.readField(field, object, true);\n } else {\n logger.error(\"Unable to get value of field because the field does not exits on class: \" + object.getClass());\n }\n } catch (IllegalAccessException e) {\n logger.error(e);\n }\n return null;\n }", "public FieldInfBase getResultField()\n {\n return getEntity().getFields()\n .stream()\n .filter(f -> f.getName().equalsIgnoreCase(result))\n .findAny().orElse(null);\n }", "public T caseFieldPath(FieldPath object)\n {\n return null;\n }", "private static Field findFieldInHierarchy(Object object, FieldMatcherStrategy strategy) {\n assertObjectInGetInternalStateIsNotNull(object);\n return findSingleFieldUsingStrategy(strategy, object, true, getType(object));\n }", "@Override\n public Object getFieldValue(JRField field) throws JRException {\n init();\n Object o = null;\n\n String fieldName = field.getName();\n Class<?> fieldClass = field.getValueClass();\n\n Value value = currentBinding.getValue(fieldName);\n\n if (value == null) {\n return null;\n }\n\n // Can always convert to string\n if (fieldClass.equals(String.class)) {\n return value.stringValue();\n }\n if (value instanceof Literal) {\n Literal lValue = (Literal) value;\n if (fieldClass.equals(Boolean.class)) {\n return lValue.booleanValue();\n } else if (fieldClass.equals(Integer.class)) {\n return Integer.valueOf(lValue.intValue());\n } else if (fieldClass.equals(Short.class)) {\n return Short.valueOf(lValue.shortValue());\n } else if (fieldClass.equals(Double.class)) {\n return (Double) lValue.doubleValue();\n } else if (fieldClass.equals(Float.class)) {\n return (Float) lValue.floatValue();\n } else if (fieldClass.equals(Long.class)) {\n return (Long) lValue.longValue();\n } else if (fieldClass.equals(BigDecimal.class)) {\n return lValue.decimalValue();\n } else if (fieldClass.equals(Date.class)) {\n return new Date(lValue.calendarValue().toGregorianCalendar().getTimeInMillis());\n } else if (fieldClass.equals(Time.class)) {\n return new Time(lValue.calendarValue().toGregorianCalendar().getTimeInMillis());\n } else if (fieldClass.equals(Timestamp.class)) {\n return new Timestamp(lValue.calendarValue().toGregorianCalendar().getTimeInMillis());\n } else if (fieldClass.equals(java.util.Date.class)) {\n return new java.util.Date(lValue.calendarValue().toGregorianCalendar().getTimeInMillis());\n }\n// } else if (value instanceof Resource) {\n// return value.stringValue();\n } else {\n throw new JRException(\"Field '\" + fieldName + \"' is of class '\" + fieldClass.getName() + \"' and can not be converted\");\n }\n return null;\n }", "protected Field getField()\n {\n return field;\n }", "protected Field getField()\n {\n return field;\n }", "private Object fieldType(final DataField dataField) {\n EObject _xifexpression = null;\n PrimitiveType _primitiveType = dataField.getPrimitiveType();\n boolean _tripleNotEquals = (_primitiveType != null);\n if (_tripleNotEquals) {\n _xifexpression = dataField.getPrimitiveType();\n } else {\n EObject _xifexpression_1 = null;\n ComplexType _complexType = dataField.getComplexType();\n boolean _tripleNotEquals_1 = (_complexType != null);\n if (_tripleNotEquals_1) {\n _xifexpression_1 = dataField.getComplexType();\n } else {\n _xifexpression_1 = dataField.getImportedComplexType();\n }\n _xifexpression = _xifexpression_1;\n }\n return _xifexpression;\n }", "public T caseSubFieldDeclaration(SubFieldDeclaration object)\n {\n return null;\n }", "private static Field findSingleFieldUsingStrategy(FieldMatcherStrategy strategy, Object object,\n boolean checkHierarchy, Class<?> startClass) {\n assertObjectInGetInternalStateIsNotNull(object);\n Field foundField = null;\n final Class<?> originalStartClass = startClass;\n while (startClass != null) {\n final Field[] declaredFields = startClass.getDeclaredFields();\n for (Field field : declaredFields) {\n if (strategy.matches(field) && hasFieldProperModifier(object, field)) {\n if (foundField != null) {\n throw new TooManyFieldsFoundException(\"Two or more fields matching \" + strategy + \".\");\n }\n foundField = field;\n }\n }\n if (foundField != null) {\n break;\n } else if (!checkHierarchy) {\n break;\n }\n startClass = startClass.getSuperclass();\n }\n if (foundField == null) {\n strategy.notFound(originalStartClass, !isClass(object));\n }\n foundField.setAccessible(true);\n return foundField;\n }", "public Field getField() {\n return field;\n }", "public BCField getField() {\n String dec = getFieldDeclarerName();\n if (dec == null) \n return null;\n\n BCClass bc = getProject().loadClass(dec, getClassLoader());\n BCField[] fields = bc.getFields(getFieldName());\n if (fields.length == 0)\n return null;\n return fields[0];\n }", "@Override\n public Object getField(int fieldID) {\n if (!getParsed()) {\n parse();\n }\n return uncheckedGetField(fieldID);\n }", "public final Field invoke() {\n f d = ac.ewF.d(this.this$0.aYM());\n Field field = null;\n if (d instanceof c) {\n c cVar = (c) d;\n ad aYF = cVar.aYF();\n f.a a = j.eMR.a(cVar.aYG(), cVar.aYI(), cVar.aYJ());\n if (a != null) {\n Class enclosingClass;\n if (l.e(aYF) || j.g(cVar.aYG())) {\n enclosingClass = this.this$0.aYP().aXV().getEnclosingClass();\n } else {\n k bbv = aYF.bbv();\n if (bbv instanceof d) {\n enclosingClass = ae.a((d) bbv);\n } else {\n enclosingClass = this.this$0.aYP().aXV();\n }\n }\n if (enclosingClass != null) {\n try {\n field = enclosingClass.getDeclaredField(a.getName());\n } catch (NoSuchFieldException unused) {\n return field;\n }\n }\n }\n } else if (d instanceof f.a) {\n field = ((f.a) d).getField();\n } else if (!((d instanceof b) || (d instanceof f.d))) {\n throw new NoWhenBranchMatchedException();\n }\n }", "String getField();", "@Override\n\tpublic Field get(Integer entityID) {\n\t\treturn null;\n\t}", "java.lang.String getField1334();", "java.lang.String getField1337();", "ObjectField createObjectField();", "FieldInstance fieldNamed(String name);", "public RecordField getField() {\n return field;\n }", "java.lang.String getField1336();", "java.lang.String getField1031();", "java.lang.String getField1009();", "java.lang.String getField1339();", "java.lang.String getField1007();", "public static final Object ccRetrieveField(Field pxReflected, Object pxOwner){\n if(pxReflected==null){return null;}\n if(pxOwner==null){return null;}\n Object lpRes=null;\n try{\n lpRes = pxReflected.get(pxOwner);\n } catch(IllegalArgumentException iage){\n System.err.println(\"kosui.ppputil.VcConst.ccRetrieveField()\"\n +iage.getMessage());\n } catch(IllegalAccessException iace){\n System.err.println(\"kosui.ppputil.VcConst.ccRetrieveField()\"\n + iace.getMessage());\n }//..?\n return lpRes;\n }", "java.lang.String getField1342();", "java.lang.String getField1335();", "java.lang.String getField1542();", "private Object getValue (JField jf, Object obj) throws Exception {\n Class thisClass = obj.getClass();\n Object value = null;\n Class c = thisClass;\n boolean done = false;\n while (!done) {\n try {\n value = c.getDeclaredMethod (\"get\" + jf.getGetSet(), null).invoke(obj, null);\n done = true;\n } catch (NoSuchMethodException e) {\n c = c.getSuperclass();\n if (c == null) {\n\t\t\t\t\tSystem.out.println (\"Unable to find: \" + \"get\" + jf.getGetSet() + \" in class: \" + thisClass.getName());\n throw e;\n\t\t\t\t}\n }\n }\n\n return value;\n }", "@Override\n\tObject getValue() {\n\t try {\n\t\tObject value = getField.get(object);\n\t\tif (value instanceof Enum)\n\t\t return value.toString();\n\t\treturn value;\n\t }\n\t catch (IllegalAccessException ex) {\n\t\treturn null;\n\t }\n\t}", "VarRef lookupField(String fieldUse);", "private static Object getFieldValue(ETApiObject row, String fieldName) {\n try {\n Method method = row.getClass().getMethod(createGetterName(fieldName));\n return method.invoke(row);\n } catch (Exception e) {\n LOG.error(String.format(\"Error while fetching %s.%s value\", row.getClass().getSimpleName(), fieldName), e);\n return null;\n }\n }", "public Object visitField(GoIRFieldNode node)\n\t{\n\t\treturn node.getType().getIdentifier();\n\t}", "private Object convertDBToField(Object value, Field field) {\n if(value == null)\n return null;\n \n Class<?> clazz = field.getType();\n \n if(Enum.class.isAssignableFrom(clazz))\n return Enum.valueOf((Class<Enum>)clazz, value.toString());\n \n if(Base.class.isAssignableFrom(clazz))\n return createInstance((Class<? extends Base>)clazz, (DBObject) value);\n \n if(value instanceof BasicDBList) {\n BasicDBList list = (BasicDBList)value;\n\n if(Collection.class.isAssignableFrom(clazz))\n return convertDBToCollectionField(list, field);\n \n if(clazz.isArray())\n return convertDBToArrayField(list, clazz);\n \n return value;\n }\n \n if(value instanceof BasicDBObject) {\n BasicDBObject map = (BasicDBObject)value;\n\n if(Map.class.isAssignableFrom(clazz))\n return convertDBToMapField(map, field);\n \n return value; \n }\n \n return clazz.isPrimitive() ? convertPrimitiveType(value, clazz) : value;\n }", "@Override\n\tpublic FieldDetail getFieldDetail() {\n\t\treturn field;\n\t}", "public String getField()\n {\n return field;\n }", "java.lang.String getField1015();", "public MessageField getCorrespondingField();", "java.lang.String getField1330();", "public DatabaseField getField() {\n return field;\n }", "public static ReflectionResponse<Object> getFieldValue(Object object, Field field) {\n Validate.notNull(field, \"field cannot be null\");\n Validate.isTrue(object != null || Modifier.isStatic(field.getModifiers()), \"object cannot be null\");\n try {\n return new ReflectionResponse<>(field.get(object));\n } catch (IllegalAccessException e) {\n return new ReflectionResponse<>(e);\n }\n }", "java.lang.String getField1587();", "java.lang.String getField1742();", "@Override\n public Object getFieldValue(JRField jrf) throws JRException {\n switch (jrf.getName()) {\n case \"importe_total\":\n return cursor.getImporteTotal();\n case \"marca\":\n return cursor.getNombreMarca();\n case \"importe_marca\": {\n try {\n return MoneyFormatter.conversion(Double.valueOf(cursor.getCalcularImporteMarca()));\n } catch (Exception e) {\n return (MoneyFormatter.conversion(0d));\n }\n }\n case \"modelo\":\n return cursor.getNombreModelo();\n case \"total_carros\":\n return cursor.getTotalCarrosMarMod();\n case \"total_dias_alquilado\":\n return cursor.getTotalDiasAlquilado();\n case \"importe_tarjeta\": {\n try {\n return MoneyFormatter.conversion(Double.valueOf(cursor.getImporteTarjeta()));\n } catch (Exception e) {\n return (MoneyFormatter.conversion(0d));\n }\n }\n case \"importe_cheque\": {\n try {\n return MoneyFormatter.conversion(Double.valueOf(cursor.getImporteCheque()));\n } catch (Exception e) {\n return (MoneyFormatter.conversion(0d));\n }\n }\n case \"importe_efectivo\": {\n try {\n return MoneyFormatter.conversion(Double.valueOf(cursor.getImporteEfectivo()));\n } catch (Exception e) {\n return (MoneyFormatter.conversion(0d));\n }\n }\n }\n return null;\n }", "java.lang.String getField1338();", "void visitObjectField(FieldAttributes f, Type typeOfF, Object obj);", "public java.lang.Object get(int field$) {\n switch (field$) {\n case 0: return defaultLong1;\n case 1: return defaultStringEmpty;\n case 2: return columnLong;\n case 3: return unionRecursive;\n case 4: return unionString;\n case 5: return unionLong;\n case 6: return unionDefNull;\n case 7: return family2;\n default: throw new org.apache.avro.AvroRuntimeException(\"Bad index\");\n }\n }", "java.lang.String getField1242();", "public Field<T> getFieldByName(String fieldName)\r\n/* 53: */ {\r\n/* 54:69 */ return (Field)this.fieldsByName.get(fieldName);\r\n/* 55: */ }", "java.lang.String getField1331();", "java.lang.String getField1142();", "java.lang.String getField1507();", "java.lang.String getField1003();", "java.lang.String getField1577();", "java.lang.String getField1277();", "java.lang.String getField1333();", "java.lang.String getField1589();", "java.lang.String getField1533();", "java.lang.String getField1289();", "public Object getFieldValue(String fieldName, Object entity) {\n try {\n return new PropertyDescriptor(fieldName, entity.getClass()).getReadMethod()\n .invoke(entity);\n } catch (IllegalAccessException | IllegalArgumentException | InvocationTargetException\n | IntrospectionException | SecurityException e) {\n return null;\n }\n }", "java.lang.String getField1233();", "java.lang.String getField1077();", "java.lang.String getField1529();", "java.lang.String getField1243();", "java.lang.String getField1029();", "java.lang.String getField1543();", "java.lang.String getField1013();", "java.lang.String getField1592();", "public T caseFormulario(Formulario object) {\n\t\treturn null;\n\t}", "public final GF2nField getField()\n {\n return mField;\n }", "java.lang.String getField1133();", "java.lang.String getField1134();", "java.lang.String getField1019();", "java.lang.String getField1167();", "public String getField() {\n return field;\n }", "java.lang.String getField1033();", "java.lang.String getField1177();", "java.lang.String getField1042();", "java.lang.String getField1229();", "java.lang.String getField1581();", "java.lang.String getField1163();", "java.lang.String getField4();", "private SymObject findField(Struct type, String name) {\n for (SymObject field : type.fields) {\n if (field.name.equals(name)) {\n return field;\n }\n }\n\n error(name + \" can't be find as a field\");\n return SymbolTable.OBJECT_NONE;\n }", "java.lang.String getField1017();", "java.lang.String getField1129();", "java.lang.String getField1553();" ]
[ "0.7134578", "0.70230657", "0.6801021", "0.6792771", "0.67726713", "0.66973567", "0.6649152", "0.6504533", "0.6477985", "0.64580536", "0.64197075", "0.63386214", "0.62986463", "0.62592185", "0.6219685", "0.618856", "0.616307", "0.61470586", "0.61470586", "0.6084539", "0.60360587", "0.603413", "0.60206896", "0.60188866", "0.59832627", "0.597779", "0.59679216", "0.59535235", "0.59511167", "0.59504277", "0.593992", "0.588645", "0.5878737", "0.58555204", "0.5839374", "0.58379996", "0.58341193", "0.5813081", "0.58086866", "0.5801997", "0.57894415", "0.57892233", "0.5775226", "0.57730657", "0.5772202", "0.5771338", "0.5763858", "0.5759305", "0.57542855", "0.57513124", "0.574539", "0.57388943", "0.5735601", "0.57305217", "0.5723278", "0.5718132", "0.5717887", "0.57175714", "0.57142323", "0.57117677", "0.57055295", "0.5703852", "0.57006943", "0.5696823", "0.56951183", "0.5694266", "0.5683161", "0.5674045", "0.567324", "0.5671768", "0.5670726", "0.5666111", "0.56618613", "0.56608164", "0.5660768", "0.56477314", "0.5647602", "0.5646519", "0.5643154", "0.5641308", "0.56341624", "0.5633946", "0.5632082", "0.5628757", "0.5626655", "0.5625474", "0.5623604", "0.5623312", "0.5623122", "0.5620978", "0.5620351", "0.56200427", "0.5619214", "0.5618048", "0.56177205", "0.5613956", "0.56138533", "0.56105703", "0.5609641", "0.5608446" ]
0.74675065
0
Returns the result of interpreting the object as an instance of 'Range'. This implementation returns null; returning a nonnull result will terminate the switch.
public T caseRange(Range object) { return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public T caseRange(Range object)\n {\n return null;\n }", "public T caseRangeTypeReference(RangeTypeReference object) {\n\t\treturn null;\n\t}", "public T caseRangeType(RangeType object) {\n\t\treturn null;\n\t}", "protected abstract R getRange(E entry);", "public T caseDefRange(DefRange object)\n {\n return null;\n }", "RangeValue createRangeValue();", "@Override\r\n\tpublic Object visitRangeExpression(RangeExpression rangeExpression,\r\n\t\t\tObject arg) throws Exception {\r\n\t\tString lowerType = (String) rangeExpression.lower.visit(this, arg);\r\n\t\tString upperType = (String) rangeExpression.upper.visit(this, arg);\r\n\t\tcheck(lowerType.equals(intType) && upperType.equals(intType), \"uncompatible range expression\", rangeExpression);\r\n\t\treturn null;\r\n\t}", "Range createRange();", "int getRange();", "abstract public Range createRange();", "public T caseRangeSubsetType(RangeSubsetType object) {\n\t\treturn null;\n\t}", "public T caseRangeValidationRuleDeclaration(RangeValidationRuleDeclaration object)\n {\n return null;\n }", "@Override\n\tpublic int getRange() {\n\t\treturn range;\n\t}", "Range() {}", "VocNoun getRange();", "private Range() {}", "public T caseFromRange(FromRange object)\n {\n return null;\n }", "public int getRange() {\n return mRange;\n }", "public boolean isRange() {\r\n return range;\r\n }", "public String getRange() {\n return this.range;\n }", "public int getRange()\n\t{\n\t\treturn Range;\n\t}", "protected abstract R toRange(D lower, D upper);", "@Override\r\n\tpublic Object visitWhileRangeStatement(\r\n\t\t\tWhileRangeStatement whileRangeStatement, Object arg)\r\n\t\t\tthrows Exception {\r\n\t\twhileRangeStatement.rangeExpression.visit(this, arg);\r\n\t\twhileRangeStatement.block.visit(this, arg);\r\n\t\treturn null;\r\n\t}", "public RealRange getReferenceRange(RealRange referenceRange);", "public double getRange(){\n\t\treturn range;\n\t}", "public abstract ucar.array.RangeIterator getRangeIterator();", "public java.lang.String getRange() {\n\t\treturn _range;\n\t}", "public AddressInfo getRange() {\r\n return range;\r\n }", "@Override\n\tpublic List<IRange> getRangeList() {\n\t\treturn null;\n\t}", "public default double getTargetRange(Entity casterIn){ return RangeType.getRange(casterIn, this); }", "public HttpRange getRange() {\n return range;\n }", "@Override\n public boolean isRange() {\n return false;\n }", "public Uri getRange()\n {\n return range;\n }", "public T caseCollectionRangeCS(CollectionRangeCS object) {\r\n return null;\r\n }", "@JSProperty(\"range\")\n double getRange();", "public RangeInfo getRangeInfo() {\n/* 1134 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public final ANTLRv3Parser.range_return range() throws RecognitionException {\r\n ANTLRv3Parser.range_return retval = new ANTLRv3Parser.range_return();\r\n retval.start = input.LT(1);\r\n\r\n\r\n CommonTree root_0 = null;\r\n\r\n Token c1=null;\r\n Token c2=null;\r\n Token RANGE133=null;\r\n ANTLRv3Parser.elementOptions_return elementOptions134 =null;\r\n\r\n\r\n CommonTree c1_tree=null;\r\n CommonTree c2_tree=null;\r\n CommonTree RANGE133_tree=null;\r\n RewriteRuleTokenStream stream_RANGE=new RewriteRuleTokenStream(adaptor,\"token RANGE\");\r\n RewriteRuleTokenStream stream_CHAR_LITERAL=new RewriteRuleTokenStream(adaptor,\"token CHAR_LITERAL\");\r\n RewriteRuleSubtreeStream stream_elementOptions=new RewriteRuleSubtreeStream(adaptor,\"rule elementOptions\");\r\n try {\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:297:2: (c1= CHAR_LITERAL RANGE c2= CHAR_LITERAL ( elementOptions )? -> ^( CHAR_RANGE[$c1,\\\"..\\\"] $c1 $c2 ( elementOptions )? ) )\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:297:4: c1= CHAR_LITERAL RANGE c2= CHAR_LITERAL ( elementOptions )?\r\n {\r\n c1=(Token)match(input,CHAR_LITERAL,FOLLOW_CHAR_LITERAL_in_range2159); if (state.failed) return retval; \r\n if ( state.backtracking==0 ) stream_CHAR_LITERAL.add(c1);\r\n\r\n\r\n RANGE133=(Token)match(input,RANGE,FOLLOW_RANGE_in_range2161); if (state.failed) return retval; \r\n if ( state.backtracking==0 ) stream_RANGE.add(RANGE133);\r\n\r\n\r\n c2=(Token)match(input,CHAR_LITERAL,FOLLOW_CHAR_LITERAL_in_range2165); if (state.failed) return retval; \r\n if ( state.backtracking==0 ) stream_CHAR_LITERAL.add(c2);\r\n\r\n\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:297:42: ( elementOptions )?\r\n int alt61=2;\r\n int LA61_0 = input.LA(1);\r\n\r\n if ( (LA61_0==77) ) {\r\n alt61=1;\r\n }\r\n switch (alt61) {\r\n case 1 :\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:297:42: elementOptions\r\n {\r\n pushFollow(FOLLOW_elementOptions_in_range2167);\r\n elementOptions134=elementOptions();\r\n\r\n state._fsp--;\r\n if (state.failed) return retval;\r\n if ( state.backtracking==0 ) stream_elementOptions.add(elementOptions134.getTree());\r\n\r\n }\r\n break;\r\n\r\n }\r\n\r\n\r\n // AST REWRITE\r\n // elements: c2, c1, elementOptions\r\n // token labels: c1, c2\r\n // rule labels: retval\r\n // token list labels: \r\n // rule list labels: \r\n // wildcard labels: \r\n if ( state.backtracking==0 ) {\r\n\r\n retval.tree = root_0;\r\n RewriteRuleTokenStream stream_c1=new RewriteRuleTokenStream(adaptor,\"token c1\",c1);\r\n RewriteRuleTokenStream stream_c2=new RewriteRuleTokenStream(adaptor,\"token c2\",c2);\r\n RewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,\"rule retval\",retval!=null?retval.tree:null);\r\n\r\n root_0 = (CommonTree)adaptor.nil();\r\n // 298:3: -> ^( CHAR_RANGE[$c1,\\\"..\\\"] $c1 $c2 ( elementOptions )? )\r\n {\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:298:6: ^( CHAR_RANGE[$c1,\\\"..\\\"] $c1 $c2 ( elementOptions )? )\r\n {\r\n CommonTree root_1 = (CommonTree)adaptor.nil();\r\n root_1 = (CommonTree)adaptor.becomeRoot(\r\n (CommonTree)adaptor.create(CHAR_RANGE, c1, \"..\")\r\n , root_1);\r\n\r\n adaptor.addChild(root_1, stream_c1.nextNode());\r\n\r\n adaptor.addChild(root_1, stream_c2.nextNode());\r\n\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:298:37: ( elementOptions )?\r\n if ( stream_elementOptions.hasNext() ) {\r\n adaptor.addChild(root_1, stream_elementOptions.nextTree());\r\n\r\n }\r\n stream_elementOptions.reset();\r\n\r\n adaptor.addChild(root_0, root_1);\r\n }\r\n\r\n }\r\n\r\n\r\n retval.tree = root_0;\r\n }\r\n\r\n }\r\n\r\n retval.stop = input.LT(-1);\r\n\r\n\r\n if ( state.backtracking==0 ) {\r\n\r\n retval.tree = (CommonTree)adaptor.rulePostProcessing(root_0);\r\n adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);\r\n }\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n \tretval.tree = (CommonTree)adaptor.errorNode(input, retval.start, input.LT(-1), re);\r\n\r\n }\r\n\r\n finally {\r\n \t// do for sure before leaving\r\n }\r\n return retval;\r\n }", "public abstract Self byteRange(byte min, byte max);", "public T caseDateTimeRange(DateTimeRange object) {\n\t\treturn null;\n\t}", "public Range compose(Range r) throws InvalidRangeException {\n if ((length() == 0) || (r.length() == 0)) {\n return EMPTY;\n }\n if (this == VLEN || r == VLEN) {\n return VLEN;\n }\n /*\n * if(false) {// Original version\n * // Note that this version assumes that range r is\n * // correct with respect to this.\n * int first = element(r.first());\n * int stride = stride() * r.stride();\n * int last = element(r.last());\n * return new Range(name, first, last, stride);\n * } else {//new version: handles versions all values of r.\n */\n int sr_stride = this.stride * r.stride;\n int sr_first = element(r.first()); // MAP(this,i) == element(i)\n int lastx = element(r.last());\n int sr_last = Math.min(last(), lastx);\n return new Range(name, sr_first, sr_last, sr_stride);\n }", "public List<Object> getValueOrRange() {\n if (valueOrRange == null) {\n valueOrRange = new ArrayList<>();\n }\n return this.valueOrRange;\n }", "RangeOfValuesType createRangeOfValuesType();", "protected abstract D getLower(R range);", "public interface IRange extends EObject\n{\n}", "public Range onsetRange() {\n return getObject(Range.class, FhirPropertyNames.PROPERTY_ONSET_RANGE);\n }", "Range controlLimits();", "public abstract double getRangeSize();", "public interface IntervalRange<V extends Comparable<V>> extends Range<V> {\n\n\t/**\n\t * This method returns the lower bound of the interval.\n\t * \n\t * @return the lower bound. <code>null</code> means there is no lower bound,\n\t * i.e., this is an open interval.\n\t */\n\tpublic V getLowerBound();\n\n\t/**\n\t * This method returns the upper bound of the interval.\n\t * \n\t * @return the upper bound. <code>null</code> means there is no upper bound,\n\t * i.e., this is an open interval.\n\t */\n\tpublic V getUpperBound();\n\n}", "public double[] getRange();", "public double[] getRange() \n{\n\treturn range;\n}", "@Test(timeout = 4000)\n public void test059() throws Throwable {\n Range range0 = Range.of(9223372036854775807L);\n long long0 = range0.getEnd();\n assertEquals(9223372036854775807L, long0);\n \n Object object0 = new Object();\n boolean boolean0 = range0.equals((Object) null);\n assertFalse(boolean0);\n }", "public long getRangeStart() {\n return mRangeStart;\n }", "protected abstract D getUpper(R range);", "RangeInfo(int type, float min, float max, float current) {\n/* 3044 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public abstract Range get(int mediaID, Range range );", "@Test(timeout = 4000)\n public void test072() throws Throwable {\n Range range0 = Range.ofLength(0L);\n range0.toString();\n Object object0 = new Object();\n range0.equals(\"[ 0 .. -1 ]/0B\");\n // Undeclared exception!\n try { \n range0.endsBefore((Range) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // Null Range used in range comparison operation.\n //\n verifyException(\"org.jcvi.jillion.core.Range\", e);\n }\n }", "public abstract Type createRangeType(ReferenceType bottom);", "public Range ageRange() {\n return getObject(Range.class, FhirPropertyNames.PROPERTY_AGE_RANGE);\n }", "private SingleRange GetRangeAt(int i)\n\t{\n\t\treturn _rangelist.get(i);\n\t}", "public org.openxmlformats.schemas.presentationml.x2006.main.CTIndexRange getSldRg()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.openxmlformats.schemas.presentationml.x2006.main.CTIndexRange target = null;\n target = (org.openxmlformats.schemas.presentationml.x2006.main.CTIndexRange)get_store().find_element_user(SLDRG$8, 0);\n if (target == null)\n {\n return null;\n }\n return target;\n }\n }", "public Object readResolve() {\n if (this.ranges.isEmpty()) {\n return ImmutableRangeSet.of();\n }\n if (this.ranges.equals(ImmutableList.of(Range.all()))) {\n return ImmutableRangeSet.all();\n }\n return new ImmutableRangeSet(this.ranges);\n }", "public int getRangeWidth();", "CollectionRange createCollectionRange();", "public T caseUbqIncrementableRange(UbqIncrementableRange object) {\r\n\t\treturn null;\r\n\t}", "boolean HasRange() {\r\n\t\treturn hasRange;\r\n\t}", "public Range getTextPortsRange();", "public void testFindRangeBounds() {\n XYBlockRenderer renderer = new XYBlockRenderer();\n XYSeriesCollection dataset = new XYSeriesCollection();\n XYSeries series = new XYSeries(\"S1\");\n series.add(1.0, null);\n dataset.addSeries(series);\n Range r = renderer.findRangeBounds(dataset);\n }", "public DateRange getDateRange();", "@Override\r\n\tpublic float getRange() {\r\n\t\tsp.fetchSample(sample, 0);\r\n\r\n\t\treturn sample[0];\r\n\t}", "Integer getPortRangeEnd();", "private IRegion getWidgetRange(IRegion p) {\n \t\tif (p == null || p.getOffset() == Integer.MAX_VALUE)\n \t\t\treturn null;\n \n \t\tif (fSourceViewer instanceof ITextViewerExtension5) {\n \t\t\tITextViewerExtension5 extension= (ITextViewerExtension5) fSourceViewer;\n \t\t\treturn extension.modelRange2WidgetRange(p);\n \t\t}\n \n \t\tIRegion region= fSourceViewer.getVisibleRegion();\n \t\tint offset= region.getOffset();\n \t\tint length= region.getLength();\n \n \t\tif (overlapsWith(p, region)) {\n \t\t\tint p1= Math.max(offset, p.getOffset());\n \t\t\tint p2= Math.min(offset + length, p.getOffset() + p.getLength());\n \t\t\treturn new Region(p1 - offset, p2 - p1);\n \t\t}\n \t\treturn null;\n \t}", "@Test(timeout = 4000)\n public void test044() throws Throwable {\n Range range0 = Range.ofLength(0L);\n range0.toString();\n Object object0 = new Object();\n range0.endsBefore(range0);\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n // Undeclared exception!\n try { \n Range.parseRange(\"[ 0 .. -1 ]/0B\", range_CoordinateSystem0);\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // can not parse [ 0 .. -1 ]/0B into a Range\n //\n verifyException(\"org.jcvi.jillion.core.Range\", e);\n }\n }", "ValueRangeConstraint createValueRangeConstraint();", "public static RangeInfo obtain(int type, float min, float max, float current) {\n/* 3057 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "com.google.ads.googleads.v14.common.AgeRangeInfo getAgeRange();", "public RangeInteger<MoreTypesDemo> getNumberIntRange() {\n return numberIntRange;\n }", "public Range deceasedRange() {\n return getObject(Range.class, FhirPropertyNames.PROPERTY_DECEASED_RANGE);\n }", "void calculateRange() {\n //TODO: See Rules\n }", "private IRegion getModelRange(int offset, int length) {\n \t\tif (offset == Integer.MAX_VALUE)\n \t\t\treturn null;\n \n \t\tif (fSourceViewer instanceof ITextViewerExtension5) {\n \t\t\tITextViewerExtension5 extension= (ITextViewerExtension5) fSourceViewer;\n \t\t\treturn extension.widgetRange2ModelRange(new Region(offset, length));\n \t\t}\n \t\t\n \t\tIRegion region= fSourceViewer.getVisibleRegion();\n \t\treturn new Region(region.getOffset() + offset, length);\n \t}", "public static final long m2209coerceInJPwROB0(long $this$coerceIn, ClosedRange<ULong> range) {\n Intrinsics.checkParameterIsNotNull(range, \"range\");\n if (range instanceof ClosedFloatingPointRange) {\n return ((ULong) RangesKt.coerceIn(ULong.m1437boximpl($this$coerceIn), (ClosedFloatingPointRange) range)).m1486unboximpl();\n }\n if (range.isEmpty()) {\n throw new IllegalArgumentException(\"Cannot coerce value to an empty range: \" + range + '.');\n } else if (UnsignedKt.ulongCompare($this$coerceIn, range.getStart().m1486unboximpl()) < 0) {\n return range.getStart().m1486unboximpl();\n } else {\n if (UnsignedKt.ulongCompare($this$coerceIn, range.getEndInclusive().m1486unboximpl()) > 0) {\n return range.getEndInclusive().m1486unboximpl();\n }\n return $this$coerceIn;\n }\n }", "@Test(timeout = 4000)\n public void test094() throws Throwable {\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.RESIDUE_BASED;\n Range range0 = Range.of(range_CoordinateSystem0, (-4L), 9223372036854775554L);\n Object object0 = new Object();\n range0.equals((Object) null);\n range0.getEnd();\n range0.toString(range_CoordinateSystem0);\n Range.Comparators[] range_ComparatorsArray0 = Range.Comparators.values();\n assertEquals(4, range_ComparatorsArray0.length);\n }", "public double[] getRange(){\n\treturn RANGE;\n }", "public Comparable<?> c() {\n throw new IllegalStateException(\"range unbounded on this side\");\n }", "public Comparable<?> c() {\n throw new IllegalStateException(\"range unbounded on this side\");\n }", "@Test(timeout = 4000)\n public void test047() throws Throwable {\n Range range0 = Range.ofLength(0L);\n String string0 = range0.toString();\n assertEquals(\"[ 0 .. -1 ]/0B\", string0);\n \n Object object0 = new Object();\n boolean boolean0 = range0.isSubRangeOf(range0);\n assertTrue(boolean0);\n }", "public T caseUbqBounds(UbqBounds object) {\r\n\t\treturn null;\r\n\t}", "@Test(timeout = 4000)\n public void test34() throws Throwable {\n long long0 = 0L;\n Range range0 = Range.of(0L, 0L);\n range0.spliterator();\n Range.Builder range_Builder0 = new Range.Builder(range0);\n Object object0 = new Object();\n range0.equals(object0);\n range0.toString();\n // Undeclared exception!\n try { \n range0.endsBefore((Range) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // Null Range used in range comparison operation.\n //\n verifyException(\"org.jcvi.jillion.core.Range\", e);\n }\n }", "public int getRangeStart() {\n return currentViewableRange.getFrom();\n }", "public final CQLParser.rangeFunction_return rangeFunction() throws RecognitionException {\n CQLParser.rangeFunction_return retval = new CQLParser.rangeFunction_return();\n retval.start = input.LT(1);\n\n Object root_0 = null;\n\n Token openType=null;\n Token closeType=null;\n Token RANGE148=null;\n Token char_literal149=null;\n CQLParser.expression_return e = null;\n\n CQLParser.expression_return rangeStart = null;\n\n CQLParser.expression_return rangeEnd = null;\n\n\n Object openType_tree=null;\n Object closeType_tree=null;\n Object RANGE148_tree=null;\n Object char_literal149_tree=null;\n RewriteRuleTokenStream stream_116=new RewriteRuleTokenStream(adaptor,\"token 116\");\n RewriteRuleTokenStream stream_117=new RewriteRuleTokenStream(adaptor,\"token 117\");\n RewriteRuleTokenStream stream_114=new RewriteRuleTokenStream(adaptor,\"token 114\");\n RewriteRuleTokenStream stream_RANGE=new RewriteRuleTokenStream(adaptor,\"token RANGE\");\n RewriteRuleTokenStream stream_115=new RewriteRuleTokenStream(adaptor,\"token 115\");\n RewriteRuleTokenStream stream_118=new RewriteRuleTokenStream(adaptor,\"token 118\");\n RewriteRuleSubtreeStream stream_expression=new RewriteRuleSubtreeStream(adaptor,\"rule expression\");\n errorMessageStack.push(\"RANGE definition\"); \n try {\n // /home/chinaski/programming/agile_workspace/ExplorerCat/src/main/antlr3/net/explorercat/cql/parser/CQL.g:504:2: ( RANGE e= expression ( (openType= '[' ) | (openType= '(' ) ) rangeStart= expression ',' rangeEnd= expression (closeType= ')' | closeType= ']' ) -> ^( RANGE $e $openType $closeType $rangeStart $rangeEnd) )\n // /home/chinaski/programming/agile_workspace/ExplorerCat/src/main/antlr3/net/explorercat/cql/parser/CQL.g:504:4: RANGE e= expression ( (openType= '[' ) | (openType= '(' ) ) rangeStart= expression ',' rangeEnd= expression (closeType= ')' | closeType= ']' )\n {\n RANGE148=(Token)match(input,RANGE,FOLLOW_RANGE_in_rangeFunction2480); \n stream_RANGE.add(RANGE148);\n\n pushFollow(FOLLOW_expression_in_rangeFunction2484);\n e=expression();\n\n state._fsp--;\n\n stream_expression.add(e.getTree());\n // /home/chinaski/programming/agile_workspace/ExplorerCat/src/main/antlr3/net/explorercat/cql/parser/CQL.g:504:23: ( (openType= '[' ) | (openType= '(' ) )\n int alt41=2;\n int LA41_0 = input.LA(1);\n\n if ( (LA41_0==117) ) {\n alt41=1;\n }\n else if ( (LA41_0==114) ) {\n alt41=2;\n }\n else {\n NoViableAltException nvae =\n new NoViableAltException(\"\", 41, 0, input);\n\n throw nvae;\n }\n switch (alt41) {\n case 1 :\n // /home/chinaski/programming/agile_workspace/ExplorerCat/src/main/antlr3/net/explorercat/cql/parser/CQL.g:504:24: (openType= '[' )\n {\n // /home/chinaski/programming/agile_workspace/ExplorerCat/src/main/antlr3/net/explorercat/cql/parser/CQL.g:504:24: (openType= '[' )\n // /home/chinaski/programming/agile_workspace/ExplorerCat/src/main/antlr3/net/explorercat/cql/parser/CQL.g:504:25: openType= '['\n {\n openType=(Token)match(input,117,FOLLOW_117_in_rangeFunction2490); \n stream_117.add(openType);\n\n\n }\n\n\n }\n break;\n case 2 :\n // /home/chinaski/programming/agile_workspace/ExplorerCat/src/main/antlr3/net/explorercat/cql/parser/CQL.g:504:41: (openType= '(' )\n {\n // /home/chinaski/programming/agile_workspace/ExplorerCat/src/main/antlr3/net/explorercat/cql/parser/CQL.g:504:41: (openType= '(' )\n // /home/chinaski/programming/agile_workspace/ExplorerCat/src/main/antlr3/net/explorercat/cql/parser/CQL.g:504:42: openType= '('\n {\n openType=(Token)match(input,114,FOLLOW_114_in_rangeFunction2498); \n stream_114.add(openType);\n\n\n }\n\n\n }\n break;\n\n }\n\n pushFollow(FOLLOW_expression_in_rangeFunction2504);\n rangeStart=expression();\n\n state._fsp--;\n\n stream_expression.add(rangeStart.getTree());\n char_literal149=(Token)match(input,115,FOLLOW_115_in_rangeFunction2506); \n stream_115.add(char_literal149);\n\n pushFollow(FOLLOW_expression_in_rangeFunction2510);\n rangeEnd=expression();\n\n state._fsp--;\n\n stream_expression.add(rangeEnd.getTree());\n // /home/chinaski/programming/agile_workspace/ExplorerCat/src/main/antlr3/net/explorercat/cql/parser/CQL.g:504:103: (closeType= ')' | closeType= ']' )\n int alt42=2;\n int LA42_0 = input.LA(1);\n\n if ( (LA42_0==116) ) {\n alt42=1;\n }\n else if ( (LA42_0==118) ) {\n alt42=2;\n }\n else {\n NoViableAltException nvae =\n new NoViableAltException(\"\", 42, 0, input);\n\n throw nvae;\n }\n switch (alt42) {\n case 1 :\n // /home/chinaski/programming/agile_workspace/ExplorerCat/src/main/antlr3/net/explorercat/cql/parser/CQL.g:504:104: closeType= ')'\n {\n closeType=(Token)match(input,116,FOLLOW_116_in_rangeFunction2515); \n stream_116.add(closeType);\n\n\n }\n break;\n case 2 :\n // /home/chinaski/programming/agile_workspace/ExplorerCat/src/main/antlr3/net/explorercat/cql/parser/CQL.g:504:119: closeType= ']'\n {\n closeType=(Token)match(input,118,FOLLOW_118_in_rangeFunction2520); \n stream_118.add(closeType);\n\n\n }\n break;\n\n }\n\n\n\n // AST REWRITE\n // elements: openType, e, rangeEnd, rangeStart, closeType, RANGE\n // token labels: closeType, openType\n // rule labels: retval, e, rangeStart, rangeEnd\n // token list labels: \n // rule list labels: \n // wildcard labels: \n retval.tree = root_0;\n RewriteRuleTokenStream stream_closeType=new RewriteRuleTokenStream(adaptor,\"token closeType\",closeType);\n RewriteRuleTokenStream stream_openType=new RewriteRuleTokenStream(adaptor,\"token openType\",openType);\n RewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,\"rule retval\",retval!=null?retval.tree:null);\n RewriteRuleSubtreeStream stream_e=new RewriteRuleSubtreeStream(adaptor,\"rule e\",e!=null?e.tree:null);\n RewriteRuleSubtreeStream stream_rangeStart=new RewriteRuleSubtreeStream(adaptor,\"rule rangeStart\",rangeStart!=null?rangeStart.tree:null);\n RewriteRuleSubtreeStream stream_rangeEnd=new RewriteRuleSubtreeStream(adaptor,\"rule rangeEnd\",rangeEnd!=null?rangeEnd.tree:null);\n\n root_0 = (Object)adaptor.nil();\n // 505:3: -> ^( RANGE $e $openType $closeType $rangeStart $rangeEnd)\n {\n // /home/chinaski/programming/agile_workspace/ExplorerCat/src/main/antlr3/net/explorercat/cql/parser/CQL.g:505:6: ^( RANGE $e $openType $closeType $rangeStart $rangeEnd)\n {\n Object root_1 = (Object)adaptor.nil();\n root_1 = (Object)adaptor.becomeRoot(stream_RANGE.nextNode(), root_1);\n\n adaptor.addChild(root_1, stream_e.nextTree());\n adaptor.addChild(root_1, stream_openType.nextNode());\n adaptor.addChild(root_1, stream_closeType.nextNode());\n adaptor.addChild(root_1, stream_rangeStart.nextTree());\n adaptor.addChild(root_1, stream_rangeEnd.nextTree());\n\n adaptor.addChild(root_0, root_1);\n }\n\n }\n\n retval.tree = root_0;\n }\n\n retval.stop = input.LT(-1);\n\n retval.tree = (Object)adaptor.rulePostProcessing(root_0);\n adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);\n\n errorMessageStack.pop(); \n }\n \t\n \tcatch(RecognitionException re)\n \t{\t\n \t\treportError(re);\n \t\tthrow re;\n \t}\n finally {\n }\n return retval;\n }", "@Test(timeout = 4000)\n public void test099() throws Throwable {\n Object object0 = new Object();\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.RESIDUE_BASED;\n Range range0 = Range.of(range_CoordinateSystem0, 127L, 127L);\n Range range1 = Range.of(127L);\n boolean boolean0 = range0.equals(range1);\n assertFalse(boolean0);\n \n long long0 = range1.getEnd();\n assertEquals(127L, long0);\n \n long long1 = range1.getBegin(range_CoordinateSystem0);\n assertEquals(128L, long1);\n }", "<C> CollectionRange<C> createCollectionRange();", "com.google.ads.googleads.v14.common.IncomeRangeInfo getIncomeRange();", "public int bombRange() {\r\n return bombRange;\r\n }", "String getEndRange();", "Integer getPortRangeStart();", "@Test(timeout = 4000)\n public void test114() throws Throwable {\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n Range range0 = Range.of(range_CoordinateSystem0, 2147483647L, 2147483647L);\n Object object0 = new Object();\n Range range1 = Range.of(range_CoordinateSystem0, 2147483647L, 2147483647L);\n range0.equals(range1);\n Range.Comparators.values();\n long long0 = range0.getBegin();\n assertTrue(range0.isEmpty());\n assertEquals(2147483647L, long0);\n }", "@Test(timeout = 4000)\n public void test020() throws Throwable {\n Range range0 = Range.of(4294967295L);\n Object object0 = new Object();\n range0.intersects(range0);\n // Undeclared exception!\n try { \n range0.isSubRangeOf((Range) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // range can not be null\n //\n verifyException(\"org.jcvi.jillion.core.Range\", e);\n }\n }", "public BoundsObject getBounds() {\n\t\treturn null;\n\t}", "public int getRangeEnd() {\n return currentViewableRange.getTo();\n }", "public T caseCellSize(CellSize object)\n {\n return null;\n }" ]
[ "0.7589289", "0.7064582", "0.70510715", "0.6551967", "0.6495244", "0.6479377", "0.6461428", "0.6460336", "0.63707083", "0.63643336", "0.63245136", "0.6259461", "0.6259344", "0.62269074", "0.62265027", "0.6216794", "0.62118465", "0.6173151", "0.61326015", "0.6116552", "0.6063069", "0.5984948", "0.5975274", "0.59512776", "0.59192497", "0.59050167", "0.58490074", "0.58415264", "0.5828898", "0.58227825", "0.5808476", "0.5784351", "0.5735291", "0.5713988", "0.5679337", "0.5626142", "0.5611956", "0.5604946", "0.55674195", "0.5546531", "0.55419147", "0.5495803", "0.5473665", "0.5469576", "0.5465048", "0.546225", "0.5461157", "0.5456057", "0.5410804", "0.53919894", "0.53565145", "0.5349507", "0.53445536", "0.5344543", "0.53417856", "0.53396", "0.5333781", "0.5330609", "0.5311516", "0.5293085", "0.52846557", "0.5274286", "0.5273416", "0.5270232", "0.52603036", "0.52528304", "0.52501076", "0.5240968", "0.52328765", "0.52325964", "0.5231193", "0.5230882", "0.52285475", "0.52271277", "0.52195466", "0.52120227", "0.52074695", "0.51989836", "0.5197576", "0.51970494", "0.5190617", "0.51876974", "0.51812345", "0.51812345", "0.5178811", "0.5173524", "0.5173258", "0.51727694", "0.5167938", "0.5167114", "0.5127749", "0.51269746", "0.51264584", "0.5115", "0.5102695", "0.5082019", "0.5081883", "0.50804466", "0.5079673", "0.5076001" ]
0.740992
1
Returns the result of interpreting the object as an instance of 'Continuous'. This implementation returns null; returning a nonnull result will terminate the switch.
public T caseContinuous(Continuous object) { return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean isContinuous() {\n return mIsContinuous;\n }", "public T caseControlFlow(ControlFlow object) {\n\t\treturn null;\n\t}", "public T casePeriodic(Periodic object) {\n\t\treturn null;\n\t}", "public boolean isContinuous() {\r\n // TODO -- redefine for functions in Functions.java\r\n return false;\r\n }", "public T caseDiscrete(Discrete object) {\n\t\treturn null;\n\t}", "public T caseDiscrete(Discrete object) {\n\t\treturn null;\n\t}", "public T caseMicrocontroller(Microcontroller object) {\r\n\t\treturn null;\r\n\t}", "public T caseDiscreteValue(DiscreteValue object) {\n\t\treturn null;\n\t}", "public T casePeriodicStatement(PeriodicStatement object) {\n\t\treturn null;\n\t}", "public T caseMeasurementValue(MeasurementValue object) {\n\t\treturn null;\n\t}", "public T caseObservation(Observation object) {\n\t\treturn null;\n\t}", "public T caseSensor(Sensor object) {\n\t\treturn null;\n\t}", "public T caseIConnectedUnit(IConnectedUnit object) {\r\n\t\treturn null;\r\n\t}", "public T caseControlNode(ControlNode object) {\n\t\treturn null;\n\t}", "public T caseClassifier(Classifier object) {\n\t\treturn null;\n\t}", "public V getCValue();", "public T caseAnalogValue(AnalogValue object) {\n\t\treturn null;\n\t}", "public T caseInductionMotorLoad(InductionMotorLoad object) {\n\t\treturn null;\n\t}", "public T caseDecision(Decision object) {\n\t\treturn null;\n\t}", "public T caseDecisionNode(DecisionNode object) {\n\t\treturn null;\n\t}", "public T caseAnalog(Analog object) {\n\t\treturn null;\n\t}", "public T caseConductor(Conductor object) {\n\t\treturn null;\n\t}", "ElementCircuit getCible();", "public T caseChart(Chart object)\n {\n return null;\n }", "public T caseFlowType(FlowType object)\n {\n return null;\n }", "@Override\n public Single<Curso> get() {\n return null;\n }", "public T caseSynchronousMachine(SynchronousMachine object) {\n\t\treturn null;\n\t}", "public T caseReactiveCapabilityCurve(ReactiveCapabilityCurve object) {\n\t\treturn null;\n\t}", "public abstract Object getDecisionValue();", "public T caseMeasurement(Measurement object) {\n\t\treturn null;\n\t}", "public T caseParameterCS(ParameterCS object) {\r\n return null;\r\n }", "public T caseRegulatingCondEq(RegulatingCondEq object) {\n\t\treturn null;\n\t}", "public T caseMeasurementType(MeasurementType object) {\n\t\treturn null;\n\t}", "public T caseInitOrDeriveValueCS(InitOrDeriveValueCS object) {\r\n return null;\r\n }", "public T casePrescaler(Prescaler object) {\r\n\t\treturn null;\r\n\t}", "public T caseMicrocontrollerType(MicrocontrollerType object) {\r\n\t\treturn null;\r\n\t}", "public T caseDecisionInputModel(DecisionInputModel object) {\n\t\treturn null;\n\t}", "public T caseMeasurementValueSource(MeasurementValueSource object) {\n\t\treturn null;\n\t}", "public T caseGetCoverageType(GetCoverageType object) {\n\t\treturn null;\n\t}", "public T caseInitValueCS(InitValueCS object) {\r\n return null;\r\n }", "public T casePreConditionDeclarationCS(PreConditionDeclarationCS object) {\r\n return null;\r\n }", "public T caseCondition(Condition object) {\n\t\treturn null;\n\t}", "public T caseParmeterValueSpecification(ParmeterValueSpecification object)\r\n {\r\n return null;\r\n }", "org.landxml.schema.landXML11.TrafficControlDocument.TrafficControl getTrafficControl();", "public T caseCurve(Curve object) {\n\t\treturn null;\n\t}", "public boolean isC() {\n return c;\n }", "public T casePrimitiveDefinition(PrimitiveDefinition object)\n {\n return null;\n }", "public T caseETensorFlowCase(ETensorFlowCase object)\n {\n return null;\n }", "FeedbackConsequence getConsequence();", "public double getObjective() {\n return multiClassClassifierObj() + binaryObj();\n// +(1-temperature)*getEntropy();\n }", "public T casePreprocess(Preprocess object)\n\t{\n\t\treturn null;\n\t}", "@Override\n\tpublic double classifyInstance(Instance arg0) throws Exception {\n\t\treturn 0;\n\t}", "void decideContinuity(Card curr_card) {\n if (curr_card.getTRIPS().size() != 0) { // if trips is not empty, then can get the last item and decide if continuous\n int last_index = curr_card.getTRIPS().size() - 1;\n WholeTrip last_whole_trip = (curr_card.getTRIPS().get(last_index));\n Trip last_trip = last_whole_trip.getWHOLE_TRIP().get(last_whole_trip.getWHOLE_TRIP().size() - 1); // get the last trip\n // evaluate if continuous\n this.isContinuous = START_TIME.timeInterval(last_trip.endTime) <= 120 &&\n last_trip.endStation.equals(START_STATION);\n }\n }", "public T caseInteger(sensorDeploymentLanguage.Integer object) {\n\t\treturn null;\n\t}", "@Override\n\tpublic double classValue() {\n\t\treturn 0;\n\t}", "@Override\n public double getCONSUMPTION() {\n if (status && brightValue != 0) {\n this.consumption = (super.DEFAULTCONSUMPTION + 2) + (brightValue / 100);\n } else if (status) {\n this.consumption = super.DEFAULTCONSUMPTION + 2;\n } else if (status != true) {\n this.consumption = super.DEFAULTCONSUMPTION;\n }\n\n return consumption;\n }", "static void perform_cpo(String passed){\n\t\tint type = type_of_cpo(passed);\n\t\tswitch(type){\n\t\tcase 1:\n\t\t\tcall_when_parity_not(passed);\n\t\t\tbreak;\n\t\t}\n\t}", "public T caseGrossToNetActivePowerCurve(GrossToNetActivePowerCurve object) {\n\t\treturn null;\n\t}", "public T caseMTC(MTC object) {\n\t\treturn null;\n\t}", "public T caseComplexNode(ComplexNode object) {\r\n\t\treturn null;\r\n\t}", "public T caseTypeCS(TypeCS object) {\r\n return null;\r\n }", "public T caseInvariantOrDefinitionCS(InvariantOrDefinitionCS object) {\r\n return null;\r\n }", "public T getValue() {\r\n return getValue(interval.start);\r\n }", "public T caseSwitch(Engine.Switch object) {\n\t\treturn null;\n\t}", "public T caseOclExpressionCS(OclExpressionCS object) {\r\n return null;\r\n }", "public java.lang.Class getJavaClass()\n {\n return de.tif.jacob.ruleengine.castor.Decision.class;\n }", "public org.pentaho.pms.cwm.pentaho.meta.instance.CwmInstance getValue();", "public T caseConformLoad(ConformLoad object) {\n\t\treturn null;\n\t}", "public T caseSingle(Single object) {\n\t\treturn null;\n\t}", "public T caseConditionDesc(ConditionDesc object) {\n\t\treturn null;\n\t}", "public tT CAR()\r\n\t{\r\n\t\treturn car;\r\n\t}", "public T caseDynamics(Dynamics object) {\r\n\t\treturn null;\r\n\t}", "@ReflectiveMethod(name = \"c\", types = {})\n public boolean c(){\n return (boolean) NMSWrapper.getInstance().exec(nmsObject);\n }", "public T caseRegulationSchedule(RegulationSchedule object) {\n\t\treturn null;\n\t}", "public T caseFlowInterface(FlowInterface object)\n {\n return null;\n }", "public T caseIfExpCS(IfExpCS object) {\r\n return null;\r\n }", "public Decision getDecision() {\n return decision;\n }", "public T caseCore(Core object) {\r\n\t\treturn null;\r\n\t}", "public T caseBaseVoltage(BaseVoltage object) {\n\t\treturn null;\n\t}", "public T getValue() {\n if (mDependency == null)\n mDependency = new ReactorDependency();\n\n mDependency.depend();\n return mValue;\n }", "public T caseValue(Value object) {\n\t\treturn null;\n\t}", "public T caseValue(Value object) {\n\t\treturn null;\n\t}", "public T caseValue(Value object) {\n\t\treturn null;\n\t}", "public T caseComplexExpr(ComplexExpr object) {\n\t\treturn null;\n\t}", "public T caseTransitionSpecification(TransitionSpecification object) {\r\n\t\treturn null;\r\n\t}", "public T caseConformLoadSchedule(ConformLoadSchedule object) {\n\t\treturn null;\n\t}", "@Override\n public T getValue() {\n // Returns initial value if source is not set.\n return mLiveDataSource == null ? mInitialValue : mLiveDataSource.getValue();\n }", "public T caseTransition(Transition object) {\n\t\treturn null;\n\t}", "float getNominalVoltageOutOfPhase();", "public T caseVoltageLevel(VoltageLevel object) {\n\t\treturn null;\n\t}", "public T caseEOPENMPCase(EOPENMPCase object)\n {\n return null;\n }", "@java.lang.Override\n public MetricOuterClass.Metric getMetricControl() {\n return metricControl_ == null ? MetricOuterClass.Metric.getDefaultInstance() : metricControl_;\n }", "protected IValue narrow(Object result){\n\t\tif(result instanceof Integer) {\n\t\t\treturn vf.integer((Integer)result);\n\t\t}\n\t\tif(result instanceof IValue) {\n\t\t\treturn (IValue) result;\n\t\t}\n\t\tif(result instanceof Thrown) {\n\t\t\t((Thrown) result).printStackTrace(stdout);\n\t\t\treturn vf.string(((Thrown) result).toString());\n\t\t}\n\t\tif(result instanceof Object[]) {\n\t\t\tIListWriter w = vf.listWriter();\n\t\t\tObject[] lst = (Object[]) result;\n\t\t\tfor(int i = 0; i < lst.length; i++){\n\t\t\t\tw.append(narrow(lst[i]));\n\t\t\t}\n\t\t\treturn w.done();\n\t\t}\n\t\tif(result == null){\n\t\t\treturn null;\n\t\t}\n\t\tthrow new InternalCompilerError(\"Cannot convert object back to IValue: \" + result);\n\t}", "public boolean isRC() { return isRC; }", "public T caseExpression_ProcessRef(Expression_ProcessRef object)\r\n {\r\n return null;\r\n }", "public T caseETensorFlow(ETensorFlow object)\n {\n return null;\n }", "public T caseExprCar(ExprCar object)\n {\n return null;\n }", "public T caseRobot(Robot object) {\r\n\t\treturn null;\r\n\t}", "public T caseStartEvToFuConnection(StartEvToFuConnection object) {\n\t\treturn null;\n\t}", "public T caseCoverageDescriptionType(CoverageDescriptionType object) {\n\t\treturn null;\n\t}" ]
[ "0.5805192", "0.55724293", "0.544538", "0.5319623", "0.525788", "0.525788", "0.5107238", "0.5089435", "0.50497293", "0.4978031", "0.49742836", "0.4961543", "0.49536481", "0.49430314", "0.49237362", "0.49140522", "0.4904611", "0.4898513", "0.48739186", "0.48678643", "0.48664135", "0.48541978", "0.48530972", "0.48443285", "0.48433846", "0.4832322", "0.48311973", "0.4817455", "0.48119032", "0.47966117", "0.47953057", "0.47409207", "0.472788", "0.47216043", "0.47174832", "0.4713495", "0.47095105", "0.47059304", "0.47001365", "0.4694635", "0.46946135", "0.46820235", "0.467769", "0.46667296", "0.46642286", "0.46407807", "0.46332046", "0.46306103", "0.4618514", "0.46079698", "0.45928603", "0.4591607", "0.4586918", "0.45860252", "0.4579101", "0.4575275", "0.457379", "0.45689684", "0.45479786", "0.45423952", "0.45420527", "0.4534081", "0.45338008", "0.453308", "0.45322058", "0.45307907", "0.45256722", "0.45189682", "0.45184618", "0.4517767", "0.4509617", "0.4507149", "0.45064273", "0.45034155", "0.44911468", "0.44885153", "0.4488408", "0.44880825", "0.44832474", "0.44755346", "0.44719762", "0.44719762", "0.44719762", "0.4468431", "0.44644985", "0.44606453", "0.44596264", "0.44594255", "0.4458643", "0.4456017", "0.4453959", "0.4452885", "0.44526994", "0.44526142", "0.44520882", "0.44510174", "0.4448012", "0.44473058", "0.44466886", "0.44461694" ]
0.7873217
0
Returns the result of interpreting the object as an instance of 'Discrete'. This implementation returns null; returning a nonnull result will terminate the switch.
public T caseDiscrete(Discrete object) { return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public T caseDiscreteValue(DiscreteValue object) {\n\t\treturn null;\n\t}", "public boolean isDiscrete() {\n return this.isDiscrete;\n }", "public abstract Object getDecisionValue();", "public T caseChart(Chart object)\n {\n return null;\n }", "public Comparable<?> b(DiscreteDomain<Comparable<?>> discreteDomain) {\n return discreteDomain.maxValue();\n }", "public T caseDecision(Decision object) {\n\t\treturn null;\n\t}", "public T caseContinuous(Continuous object) {\n\t\treturn null;\n\t}", "public T caseDecisionNode(DecisionNode object) {\n\t\treturn null;\n\t}", "public abstract C a(DiscreteDomain<C> discreteDomain);", "public Comparable<?> b(DiscreteDomain<Comparable<?>> discreteDomain) {\n throw new AssertionError();\n }", "public abstract C b(DiscreteDomain<C> discreteDomain);", "public Comparable<?> a(DiscreteDomain<Comparable<?>> discreteDomain) {\n throw new AssertionError();\n }", "public Decision getDecision() {\n return decision;\n }", "public Cut<C> c(DiscreteDomain<C> discreteDomain) {\n Comparable a = a(discreteDomain);\n return a != null ? b(a) : Cut.e();\n }", "public C b(DiscreteDomain<C> discreteDomain) {\n return this.a;\n }", "public T caseDomainObjectDesc(DomainObjectDesc object) {\n\t\treturn null;\n\t}", "public C a(DiscreteDomain<C> discreteDomain) {\n return discreteDomain.next(this.a);\n }", "public C a(DiscreteDomain<C> discreteDomain) {\n return this.a;\n }", "public Comparable<?> a(DiscreteDomain<Comparable<?>> discreteDomain) {\n return discreteDomain.minValue();\n }", "public T caseDynamics(Dynamics object) {\r\n\t\treturn null;\r\n\t}", "public T casePieChart(PieChart object)\n {\n return null;\n }", "@java.lang.Override public speech.multilang.Params.DecisionPointParams.Type getType() {\n @SuppressWarnings(\"deprecation\")\n speech.multilang.Params.DecisionPointParams.Type result = speech.multilang.Params.DecisionPointParams.Type.valueOf(type_);\n return result == null ? speech.multilang.Params.DecisionPointParams.Type.UNKNOWN : result;\n }", "public T caseTERM(TERM object)\n {\n return null;\n }", "@java.lang.Override\n public speech.multilang.Params.DecisionPointParams.Type getType() {\n @SuppressWarnings(\"deprecation\")\n speech.multilang.Params.DecisionPointParams.Type result = speech.multilang.Params.DecisionPointParams.Type.valueOf(type_);\n return result == null ? speech.multilang.Params.DecisionPointParams.Type.UNKNOWN : result;\n }", "public T caseScale(Scale object) {\n\t\treturn null;\n\t}", "public abstract IDecisionVariable getVariable();", "public T caseDecisionInputModel(DecisionInputModel object) {\n\t\treturn null;\n\t}", "public T caseObservation(Observation object) {\n\t\treturn null;\n\t}", "public T caseClassifier(Classifier object) {\n\t\treturn null;\n\t}", "public T caseBarChart(BarChart object)\n {\n return null;\n }", "public T caseConditionDesc(ConditionDesc object) {\n\t\treturn null;\n\t}", "public Descriptor evaluate() {\n try{\n return new TdiShr(Mds.getActiveMds()).tdiEvaluate(this);\n }catch(final MdsException e){\n return Missing.NEW;\n }\n }", "public T caseEPyTorch(EPyTorch object)\n {\n return null;\n }", "public BDD ensureBDD(Object o) {\n if (o instanceof BDD) {\n return (BDD) o;\n }\n else if (o instanceof Long) {\n if (((Long) o).equals(new Long(0))) {\n return B.zero();\n }\n else {\n return B.one();\n }\n }\n else if (o instanceof String) {\n String s = parens(o);\n \n return presenceConditionManager.getVariableManager().getVariable(s);\n }\n else if (o instanceof Boolean) {\n Boolean b = (Boolean) o;\n \n if (b) {\n return B.one();\n }\n else {\n return B.zero();\n }\n }\n else {\n System.err.println(\"FATAL: ensureBDD, unforeseen type from evaluator\");\n System.err.println(o);\n System.err.println(o.getClass());\n System.exit(-1);\n \n return null;\n }\n }", "public T caseDiagram(Diagram object) {\n\t\treturn null;\n\t}", "public T caseCoverageDomainType(CoverageDomainType object) {\n\t\treturn null;\n\t}", "public T caseDatatype(Datatype object)\n {\n return null;\n }", "public T caseDescriptionType(DescriptionType object) {\n\t\treturn null;\n\t}", "public T caseEPyTorchCase(EPyTorchCase object)\n {\n return null;\n }", "public T caseCurve(Curve object) {\n\t\treturn null;\n\t}", "public T caseDeriveValueCS(DeriveValueCS object) {\r\n return null;\r\n }", "public T caseReactiveCapabilityCurve(ReactiveCapabilityCurve object) {\n\t\treturn null;\n\t}", "public C b(DiscreteDomain<C> discreteDomain) {\n return discreteDomain.previous(this.a);\n }", "public T caseFitnessDimensionOCL(FitnessDimensionOCL object)\r\n {\r\n return null;\r\n }", "public T caseFact(Fact object)\n {\n return null;\n }", "public T caseChoise(Choise object) {\n\t\treturn null;\n\t}", "public T casePeriodic(Periodic object) {\n\t\treturn null;\n\t}", "PolicyDecision getDecision();", "public T caseTerm(Term object)\n {\n return null;\n }", "public T caseDashBoard(DashBoard object)\n {\n return null;\n }", "public T caseLineChart(LineChart object)\n {\n return null;\n }", "public T caseTableChart(TableChart object)\n {\n return null;\n }", "public T caseDomainDefinition(DomainDefinition object) {\n\t\treturn null;\n\t}", "public T caseExpression_Double(Expression_Double object)\r\n {\r\n return null;\r\n }", "public T caseAxis(Axis object) {\r\n\t\treturn null;\r\n\t}", "public DTDCardinal getCardinal()\n {\n return cardinal;\n }", "public Integer getDecidableValue(int x, int y)\n {\n return _cells[x][y].getDecidableValue();\n }", "public org.omg.uml.behavioralelements.commonbehavior.Instance getValue();", "public T caseCurveData(CurveData object) {\n\t\treturn null;\n\t}", "public T caseVisual(Visual object) {\r\n\t\treturn null;\r\n\t}", "public T caseDiv(Div object)\n {\n return null;\n }", "public java.lang.Class getJavaClass()\n {\n return de.tif.jacob.ruleengine.castor.Decision.class;\n }", "public T caseQueryDesc(QueryDesc object) {\n\t\treturn null;\n\t}", "public T caseValue(Value object) {\n\t\treturn null;\n\t}", "public T caseValue(Value object) {\n\t\treturn null;\n\t}", "public T caseValue(Value object) {\n\t\treturn null;\n\t}", "public final bp dd() {\n if (this.ad == null) {\n return null;\n }\n dp aq = (-1 == this.cs * -1099198911 || this.cx * -1961250233 != 0) ? null : gn.aq(this.cs * -1099198911, 1871547802);\n dp aq2 = (-1 == this.ce * -1620542321 || (this.ce * -1620542321 == this.bb * -959328679 && aq != null)) ? null : gn.aq(this.ce * -1620542321, 1539681168);\n bp ai = this.ad.ai(aq, this.cr * 317461367, aq2, this.cy * 631506963, 578342776);\n if (ai == null) {\n return null;\n }\n bp bpVar;\n ai.ai();\n this.di = ai.bx * -1067272603;\n if (!(-1 == this.ck * 836985687 || -1 == this.co * 1215520647)) {\n bp aj = dd.aq(this.ck * 836985687, 812886062).aj(this.co * 1215520647, (byte) 33);\n if (aj != null) {\n aj.ac(0, -(this.cz * -583056727), 0);\n bpVar = new bp(new bp[]{ai, aj}, 2);\n if (1 == this.ad.ae * -735434895) {\n bpVar.bs = true;\n }\n return bpVar;\n }\n }\n bpVar = ai;\n if (1 == this.ad.ae * -735434895) {\n }\n return bpVar;\n }", "public T caseStepDesc(StepDesc object) {\n\t\treturn null;\n\t}", "public T caseFitnessDimensionXBase(FitnessDimensionXBase object)\r\n {\r\n return null;\r\n }", "public T caseQuestion(Question object) {\n\t\treturn null;\n\t}", "public T caseCoverageDescriptionType(CoverageDescriptionType object) {\n\t\treturn null;\n\t}", "public T caseVisualized(Visualized object) {\n\t\treturn null;\n\t}", "CompositeValueType getCompositeValue();", "public T caseMeasurementValue(MeasurementValue object) {\n\t\treturn null;\n\t}", "public T caseDataType(DataType object) {\n\t\treturn null;\n\t}", "public T caseDataType(DataType object) {\n\t\treturn null;\n\t}", "public Object caseBreakdownElement(BreakdownElement object) {\n\t\treturn null;\n\t}", "public Object caseDataType(DataType object) {\r\n\t\treturn null;\r\n\t}", "public Cut<Comparable<?>> c(DiscreteDomain<Comparable<?>> discreteDomain) {\n try {\n return Cut.b(discreteDomain.minValue());\n } catch (NoSuchElementException unused) {\n return this;\n }\n }", "protected IValue narrow(Object result){\n\t\tif(result instanceof Integer) {\n\t\t\treturn vf.integer((Integer)result);\n\t\t}\n\t\tif(result instanceof IValue) {\n\t\t\treturn (IValue) result;\n\t\t}\n\t\tif(result instanceof Thrown) {\n\t\t\t((Thrown) result).printStackTrace(stdout);\n\t\t\treturn vf.string(((Thrown) result).toString());\n\t\t}\n\t\tif(result instanceof Object[]) {\n\t\t\tIListWriter w = vf.listWriter();\n\t\t\tObject[] lst = (Object[]) result;\n\t\t\tfor(int i = 0; i < lst.length; i++){\n\t\t\t\tw.append(narrow(lst[i]));\n\t\t\t}\n\t\t\treturn w.done();\n\t\t}\n\t\tif(result == null){\n\t\t\treturn null;\n\t\t}\n\t\tthrow new InternalCompilerError(\"Cannot convert object back to IValue: \" + result);\n\t}", "public T caseFitnessDimensionConstructor(FitnessDimensionConstructor object)\r\n {\r\n return null;\r\n }", "public final E getDecisionVariable() {\n return var;\n }", "public T caseConductor(Conductor object) {\n\t\treturn null;\n\t}", "public T caseGraphicalElement(GraphicalElement object) {\n\t\treturn null;\n\t}", "public T casePrimitiveDefinition(PrimitiveDefinition object)\n {\n return null;\n }", "public T caseFitnessDimensionSpecification(FitnessDimensionSpecification object)\r\n {\r\n return null;\r\n }", "public T caseFlowType(FlowType object)\n {\n return null;\n }", "public T caseDisconnector(Disconnector object) {\n\t\treturn null;\n\t}", "public double asDouble() {\r\n\t\tif (this.what == SCALARTYPE.Integer || this.what == SCALARTYPE.Float) {\r\n\t\t\treturn (new BigDecimal(this.scalar)).doubleValue();\r\n\t\t} else\r\n\t\t\treturn 0; // ritorna un valore di default\r\n\t}", "public Object caseProcessElement(ProcessElement object) {\n\t\treturn null;\n\t}", "public static DistributionState get(int value) {\r\n switch(value) {\r\n case CALCULATING_VALUE:\r\n return CALCULATING;\r\n case DONE_VALUE:\r\n return DONE;\r\n }\r\n return null;\r\n }", "public T caseBay(Bay object) {\n\t\treturn null;\n\t}", "public T caseParameterValue(ParameterValue object)\n {\n return null;\n }", "public Vector<Double> getCycleEvaluation(String label)\n {\n return data.get(label);\n }", "public abstract double classify(Instance e);", "public T caseFrequency(Frequency object) {\r\n\t\treturn null;\r\n\t}", "public T casePrescaler(Prescaler object) {\r\n\t\treturn null;\r\n\t}", "public T caseAxisType(AxisType object) {\n\t\treturn null;\n\t}", "@java.lang.Override\n public double getRealValue() {\n if (typeCase_ == 4) {\n return (java.lang.Double) type_;\n }\n return 0D;\n }" ]
[ "0.7543596", "0.64825773", "0.5961712", "0.58366066", "0.57298625", "0.57238895", "0.56608444", "0.55831105", "0.5528595", "0.55232716", "0.55072314", "0.5440281", "0.53919214", "0.53195405", "0.5301169", "0.52965593", "0.52680886", "0.52150965", "0.5204934", "0.52027696", "0.5191879", "0.5177113", "0.5163153", "0.5145048", "0.5124577", "0.5083578", "0.5079067", "0.507678", "0.5024643", "0.50245225", "0.5021711", "0.49962917", "0.4978998", "0.49742398", "0.49566737", "0.49435207", "0.49317825", "0.49281785", "0.49277484", "0.4927136", "0.4926442", "0.49212146", "0.49196365", "0.49181882", "0.49151412", "0.49130443", "0.49127105", "0.49124828", "0.4905159", "0.48931745", "0.48780915", "0.48727536", "0.48713285", "0.48686546", "0.4858919", "0.4856819", "0.48470217", "0.4837319", "0.48286036", "0.48236364", "0.48103228", "0.48050022", "0.47852015", "0.4785125", "0.4785125", "0.4785125", "0.47848085", "0.47676837", "0.47608587", "0.4760521", "0.4759677", "0.4754504", "0.47509563", "0.47459346", "0.47218886", "0.47218886", "0.47179917", "0.46934208", "0.4683977", "0.46825868", "0.4671052", "0.4667468", "0.4656823", "0.46556762", "0.46482515", "0.4645233", "0.46396732", "0.4629189", "0.46266755", "0.4621021", "0.4616648", "0.46149498", "0.46074316", "0.46067387", "0.46046376", "0.46010524", "0.45967922", "0.45941234", "0.45928496" ]
0.7955662
1
Returns the result of interpreting the object as an instance of 'Data Type'. This implementation returns null; returning a nonnull result will terminate the switch.
public T caseDataType(DataType object) { return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Type getValue() {\n Type ret = null;\n try {\n Constructor constructor = valueClass.getConstructor(new Class[] { String.class });\n ret = (Type) constructor.newInstance(data);\n } catch (Exception e) {\n throw new ClassCastException();\n }\n return ret;\n }", "public T caseDatatype(Datatype object)\n {\n return null;\n }", "public Object caseDataType(DataType object) {\r\n\t\treturn null;\r\n\t}", "protected static DataType getDataTypeFromObject(Object obj)\n {\n if(obj instanceof Integer)\n {\n return Integer;\n }\n else if(obj instanceof Long)\n {\n return Long;\n }\n else if(obj instanceof Boolean)\n {\n return Boolean;\n }\n else if (obj instanceof Double)\n {\n return Double;\n }\n\n return String;\n }", "@Override\n\tpublic DataType getDataType() {\n\t\tif (dataType == null) {\n\t\t\tdataType = getDataType(getProgram());\n\t\t}\n\t\treturn dataType;\n\t}", "java.lang.String getDataType();", "public String getDataType() ;", "public Class getDataType() {\n return datatype;\n }", "public T caseType(Type object) {\n\t\treturn null;\n\t}", "public T caseType(Type object) {\r\n\t\treturn null;\r\n\t}", "int getDataType();", "public Class getType() {\n Object value = getValue();\n if (value == null)\n return null;\n\n Class type = value.getClass();\n if (type == Integer.class)\n return int.class;\n if (type == Float.class)\n return float.class;\n if (type == Double.class)\n return double.class;\n if (type == Long.class)\n return long.class;\n return String.class;\n }", "DType getType();", "public static String getJavaDatatype(Object object){\n\t\treturn object.getClass().toString().split(\" \")[1]; \n\t}", "public int getDataType();", "public com.zzsong.netty.protobuff.two.ProtoData.MyDataInfo.DataType getDataType() {\n @SuppressWarnings(\"deprecation\")\n com.zzsong.netty.protobuff.two.ProtoData.MyDataInfo.DataType result = com.zzsong.netty.protobuff.two.ProtoData.MyDataInfo.DataType.valueOf(dataType_);\n return result == null ? com.zzsong.netty.protobuff.two.ProtoData.MyDataInfo.DataType.UNRECOGNIZED : result;\n }", "public com.zzsong.netty.protobuff.two.ProtoData.MyDataInfo.DataType getDataType() {\n @SuppressWarnings(\"deprecation\")\n com.zzsong.netty.protobuff.two.ProtoData.MyDataInfo.DataType result = com.zzsong.netty.protobuff.two.ProtoData.MyDataInfo.DataType.valueOf(dataType_);\n return result == null ? com.zzsong.netty.protobuff.two.ProtoData.MyDataInfo.DataType.UNRECOGNIZED : result;\n }", "public String getDataType() {\r\n return dataType;\r\n }", "public T caseTypeDefinition(TypeDefinition object)\n {\n return null;\n }", "public String getDataType() {\n return dataType;\n }", "private Text type() {\n\t\tText type = text();\r\n\r\n\t\tif (syntaxError)\r\n\t\t\treturn null;\r\n\r\n\t\treturn type;\r\n\t}", "public String typeOf() { return null; }", "Coding getType();", "public Class dataType() {\n return this.dataType;\n }", "public String getDataType()\n {\n String v = (String)this.getFieldValue(FLD_dataType);\n return StringTools.trim(v);\n }", "public DataType getDataType() {\n return this.dataType;\n }", "private StdType stdtype() {\n String val;\n\n if ((lexer.token == Symbol.INTEGER) || (lexer.token == Symbol.REAL) || \n (lexer.token == Symbol.CHAR) || (lexer.token == Symbol.STRING)) {\n val = lexer.getStringValue();\n lexer.nextToken();\n return new StdType(val);\n }else{\n lexer.error(\"Missing Type\\n\");\n return null;\n }\n }", "@Override\n\tpublic int getDataType()\n\t{\n\t\treturn dataType;\n\t}", "abstract public Type getType();", "public DataType getType() {\n return type;\n }", "public String getDatatype()\n {\n return mDatatype;\n }", "@Override\n public byte getType() {\n return TYPE_DATA;\n }", "@RestrictTo(RestrictTo.Scope.LIBRARY)\n @DataType\n public int getDataType() {\n return mBundle.getInt(DATA_TYPE_FIELD, -1);\n }", "public DataType getDataType() {\r\n\t\treturn dataType;\r\n\t}", "int getDataTypeValue();", "public T caseData(Data object)\n {\n return null;\n }", "public final DATATYPE getDataType(){\n\t\t\n\t\treturn wDataType;\n\t}", "private DataTypes getDataType(String token){\n token = token.trim();\n if (token.endsWith(\"]\"))\n return DataTypes.List;\n else if (token.endsWith(\"}\"))\n return DataTypes.Map;\n else if (token.startsWith(\"\\\"\"))\n return DataTypes.String;\n else if (token.toLowerCase().equals(\"null\"))\n return DataTypes.Null;\n else {\n if (token.toLowerCase().equals(\"true\") || token.toLowerCase().equals(\"false\"))\n return DataTypes.Boolean;\n else {\n if (token.contains(\".\"))\n return DataTypes.Float;\n else\n return DataTypes.Integer;\n }\n }\n }", "@Override\n public String getDataType() {\n return getPrimitiveType().name();\n }", "public Class<?> getType() {\n switch (this.aggregate) {\n case COUNT_BIG:\n return DataTypeManager.DefaultDataClasses.LONG;\n case COUNT:\n return COUNT_TYPE;\n case SUM:\n Class<?> expressionType = this.getArg(0).getType();\n return SUM_TYPES.get(expressionType);\n case AVG:\n expressionType = this.getArg(0).getType();\n return AVG_TYPES.get(expressionType);\n case ARRAY_AGG:\n if (this.getArg(0) == null) {\n return null;\n }\n return DataTypeManager.getArrayType(this.getArg(0).getType());\n case TEXTAGG:\n return DataTypeManager.DefaultDataClasses.BLOB;\n case JSONARRAY_AGG:\n return DataTypeManager.DefaultDataClasses.JSON;\n case USER_DEFINED:\n case STRING_AGG:\n return super.getType();\n case PERCENT_RANK:\n case CUME_DIST:\n return DataTypeManager.DefaultDataClasses.DOUBLE;\n }\n if (isBoolean()) {\n return DataTypeManager.DefaultDataClasses.BOOLEAN;\n }\n if (isEnhancedNumeric()) {\n return DataTypeManager.DefaultDataClasses.DOUBLE;\n }\n if (isRanking()) {\n return super.getType();\n }\n if (this.getArgs().length == 0) {\n return null;\n }\n return this.getArg(0).getType();\n }", "public String getDataType() \n {\n System.out.println(dataType.getValue().toString());\n return dataType.getValue().toString(); \n }", "String type();", "String type();", "String type();", "String type();", "String type();", "String type();", "String type();", "String type();", "String type();", "String type();", "String type();", "String type();", "String type();", "String type();", "String type();", "String type();", "String type();", "String type();", "String type();", "String type();", "DataType createDataType();", "protected String getDataType()\n {\n return dataType;\n }", "private Object getTypeObjectPair() throws MathLinkException, NumberRangeException {\n Object result = null;\n int type = this.getInteger();\n if (type % -17 == -15) {\n type = -7 + -17 * (type / -17);\n } else if (type % -17 == -16) {\n type = -8 + -17 * (type / -17);\n }\n switch (type) {\n case -5: {\n result = new Integer(this.getInteger());\n break;\n }\n case -6: {\n result = new Long(this.getLongInteger());\n break;\n }\n case -4: {\n int i = this.getInteger();\n if (i < -32768 || i > 32767) {\n throw new NumberRangeException(i, \"short\");\n }\n result = new Short((short)i);\n break;\n }\n case -2: {\n int i = this.getInteger();\n if (i < -128 || i > 127) {\n throw new NumberRangeException(i, \"byte\");\n }\n result = new Byte((byte)i);\n break;\n }\n case -3: {\n int i = this.getInteger();\n if (i < 0 || i > 65535) {\n throw new NumberRangeException(i, \"char\");\n }\n result = new Character((char)i);\n break;\n }\n case -15: \n case -7: {\n double d = this.getDouble();\n if (d < -3.4028234663852886E38 || d > 3.4028234663852886E38) {\n throw new NumberRangeException(d, \"float\");\n }\n result = new Float((float)d);\n break;\n }\n case -16: \n case -8: {\n result = new Double(this.getDouble());\n break;\n }\n case -9: {\n int tok = this.getType();\n if (tok == 100000) {\n result = this.getObject();\n break;\n }\n result = this.getString();\n if (tok != 35 || !result.equals(\"Null\")) break;\n result = null;\n break;\n }\n case -1: {\n String s = this.getSymbol();\n if (s.equals(\"True\")) {\n result = Boolean.TRUE;\n break;\n }\n result = Boolean.FALSE;\n break;\n }\n case -13: {\n long mark = this.createMark();\n try {\n int tok = this.getNext();\n if (tok == 100000) {\n result = this.getObject();\n break;\n }\n if (tok == 35) {\n result = this.getSymbol();\n if (result.equals(\"Null\")) {\n result = null;\n break;\n }\n this.seekMark(mark);\n result = this.getComplex();\n break;\n }\n this.seekMark(mark);\n result = this.getComplex();\n }\n finally {\n this.destroyMark(mark);\n }\n }\n case -10: {\n long mark = this.createMark();\n try {\n int tok = this.getType();\n if (tok == 100000) {\n result = this.getObject();\n break;\n }\n if (tok == 35) {\n result = this.getSymbol();\n if (result.equals(\"Null\")) {\n result = null;\n break;\n }\n result = new BigInteger((String)result);\n break;\n }\n result = new BigInteger(this.getString());\n }\n finally {\n this.destroyMark(mark);\n }\n }\n case -11: {\n long mark = this.createMark();\n try {\n int tok = this.getType();\n if (tok == 100000) {\n result = this.getObject();\n break;\n }\n if (tok == 35) {\n result = this.getSymbol();\n if (result.equals(\"Null\")) {\n result = null;\n break;\n }\n result = Utils.bigDecimalFromString((String)result);\n break;\n }\n result = Utils.bigDecimalFromString(this.getString());\n }\n finally {\n this.destroyMark(mark);\n }\n }\n case -12: {\n long mark = this.createMark();\n try {\n int tok = this.getNext();\n if (tok == 100000 && (result = this.getObject()) != null) break;\n this.seekMark(mark);\n result = this.getExpr();\n }\n finally {\n this.destroyMark(mark);\n }\n }\n case -14: {\n result = this.getObject();\n break;\n }\n case -10000: {\n break;\n }\n default: {\n int tok = this.getNext();\n result = tok == 100000 || tok == 35 ? this.getObject() : (type > -34 ? this.getArray(type - -17, 1) : (type > -51 ? this.getArray(type - -34, 2) : (type > -68 ? this.getArray(type - -51, 3) : (type > -85 ? this.getArray(type - -68, 4) : this.getArray(type - -85, 5)))));\n }\n }\n return result;\n }", "public int getDataTypeValue() {\n return dataType_;\n }", "@Nonnull Class<? extends DataElement> getDataElementType();", "public T caseFieldType(FieldType object)\n {\n return null;\n }", "abstract public Type type();", "public Type getType(Context context, boolean generate) {\n if (type == null) {\n type = new PrimitiveType(data.getClass());\n }\n return type; \n }", "private TsPrimitiveType readOneValue() {\n switch (dataType) {\n case BOOLEAN:\n return new TsBoolean(valueDecoder.readBoolean(valueInputStream));\n case INT32:\n return new TsInt(valueDecoder.readInt(valueInputStream));\n case INT64:\n return new TsLong(valueDecoder.readLong(valueInputStream));\n case FLOAT:\n return new TsFloat(valueDecoder.readFloat(valueInputStream));\n case DOUBLE:\n return new TsDouble(valueDecoder.readDouble(valueInputStream));\n case TEXT:\n return new TsBinary(valueDecoder.readBinary(valueInputStream));\n default:\n break;\n }\n throw new UnSupportedDataTypeException(\"Unsupported data type :\" + dataType);\n }", "public T caseCharType(CharType object)\n {\n return null;\n }", "public Type getType();", "public int getDataTypeValue() {\n return dataType_;\n }", "DatatypeType createDatatypeType();", "Type type();", "Type type();", "public T caseDescriptionType(DescriptionType object) {\n\t\treturn null;\n\t}", "public static TSDataType getPredictedDataType(Object value, boolean inferType) {\n\n if (inferType) {\n String strValue = value.toString();\n if (isBoolean(strValue)) {\n return booleanStringInferType;\n } else if (isNumber(strValue)) {\n if (!strValue.contains(TsFileConstant.PATH_SEPARATOR)) {\n if (isConvertFloatPrecisionLack(StringUtils.trim(strValue))) {\n return longStringInferType;\n }\n return integerStringInferType;\n } else {\n return floatingStringInferType;\n }\n } else if (\"null\".equals(strValue) || \"NULL\".equals(strValue)) {\n return null;\n // \"NaN\" is returned if the NaN Literal is given in Parser\n } else if (\"NaN\".equals(strValue)) {\n return nanStringInferType;\n } else {\n return TSDataType.TEXT;\n }\n } else if (value instanceof Boolean) {\n return TSDataType.BOOLEAN;\n } else if (value instanceof Integer) {\n return TSDataType.INT32;\n } else if (value instanceof Long) {\n return TSDataType.INT64;\n } else if (value instanceof Float) {\n return TSDataType.FLOAT;\n } else if (value instanceof Double) {\n return TSDataType.DOUBLE;\n }\n\n return TSDataType.TEXT;\n }", "public abstract Type getType();", "public String datatype() {\n\t\treturn datatype;\n\t}", "int getTypeValue();", "int getTypeValue();", "int getTypeValue();", "int getTypeValue();", "int getTypeValue();", "int getTypeValue();", "int getTypeValue();", "int getTypeValue();", "int getTypeValue();", "int getTypeValue();", "int getTypeValue();", "int getTypeValue();", "int getTypeValue();", "public Class getDataClass();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();" ]
[ "0.7057541", "0.69997436", "0.6858164", "0.67655396", "0.66816175", "0.6521301", "0.64385796", "0.64137274", "0.6404251", "0.6364251", "0.6290926", "0.6272594", "0.6269677", "0.62578666", "0.6249358", "0.62112814", "0.6198561", "0.6187511", "0.61826044", "0.6156596", "0.6154823", "0.6124881", "0.6118888", "0.61096543", "0.6104507", "0.60602486", "0.6052502", "0.60471666", "0.60446864", "0.6041349", "0.6020015", "0.6018127", "0.6011215", "0.6011036", "0.60074985", "0.6001958", "0.5986063", "0.59846747", "0.59810233", "0.59628665", "0.59586185", "0.59426594", "0.59426594", "0.59426594", "0.59426594", "0.59426594", "0.59426594", "0.59426594", "0.59426594", "0.59426594", "0.59426594", "0.59426594", "0.59426594", "0.59426594", "0.59426594", "0.59426594", "0.59426594", "0.59426594", "0.59426594", "0.59426594", "0.59426594", "0.5936238", "0.5928198", "0.5916907", "0.5915784", "0.5880892", "0.5880785", "0.5875412", "0.5871277", "0.58492005", "0.58420575", "0.58407724", "0.5825499", "0.5825082", "0.5823187", "0.5823187", "0.5813994", "0.58133227", "0.5811684", "0.5808347", "0.5806165", "0.5806165", "0.5806165", "0.5806165", "0.5806165", "0.5806165", "0.5806165", "0.5806165", "0.5806165", "0.5806165", "0.5806165", "0.5806165", "0.5806165", "0.5801323", "0.579281", "0.579281", "0.579281", "0.579281", "0.579281" ]
0.71202695
1
Returns the result of interpreting the object as an instance of 'Integer'. This implementation returns null; returning a nonnull result will terminate the switch.
public T caseInteger(sensorDeploymentLanguage.Integer object) { return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public T caseIntegerValue(IntegerValue object) {\n\t\treturn null;\n\t}", "public T caseIntegerLiteral(IntegerLiteral object)\n {\n return null;\n }", "public T caseIntegerExpression(IntegerExpression object) {\n\t\treturn null;\n\t}", "public static Integer toInteger(Object value) {\n if (value instanceof Integer)\n return (Integer)value;\n else if (value instanceof Long)\n return (int)(long)(Long)value;\n else if (value instanceof Double)\n return (int)(double)(Double)value;\n else if (value == null)\n return null;\n else\n throw new RuntimeException(\"Can't convert [\" + value + \"] to Integer\");\n }", "public T caseExpression_Integer(Expression_Integer object)\r\n {\r\n return null;\r\n }", "public T caseIntegerVariable(IntegerVariable object) {\n\t\treturn null;\n\t}", "public static Integer castInt(Object o) {\n\t\tif (o instanceof Number) {\n\t\t\treturn ((Number) o).intValue();\n\t\t}\n\n\t\treturn null;\n\t}", "public T caseExprInt(ExprInt object)\n {\n return null;\n }", "public T caseIntLiteral(IntLiteral object)\n {\n return null;\n }", "IntegerValue getValueObject();", "int intOf();", "@ZenCodeType.Caster\n @ZenCodeType.Method\n default int asInt() {\n \n return notSupportedCast(BasicTypeID.INT);\n }", "public T caseIntegerComparisonExpression(IntegerComparisonExpression object) {\n\t\treturn null;\n\t}", "public final int intValue() {\n /*\n r2 = this;\n java.lang.String r0 = r2.f4032 // Catch:{ NumberFormatException -> 0x0007 }\n int r0 = java.lang.Integer.parseInt(r0) // Catch:{ NumberFormatException -> 0x0007 }\n return r0\n L_0x0007:\n java.lang.String r0 = r2.f4032 // Catch:{ NumberFormatException -> 0x000f }\n long r0 = java.lang.Long.parseLong(r0) // Catch:{ NumberFormatException -> 0x000f }\n int r1 = (int) r0\n return r1\n L_0x000f:\n java.math.BigDecimal r0 = new java.math.BigDecimal\n java.lang.String r1 = r2.f4032\n r0.<init>(r1)\n int r0 = r0.intValue()\n return r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: o.C0442.intValue():int\");\n }", "public static Integer toInteger(Object o,byte type) throws ExecException {\n try {\n switch (type) {\n case BOOLEAN:\n if (((Boolean)o) == true) {\n return Integer.valueOf(1);\n } else {\n return Integer.valueOf(0);\n }\n\n case BYTE:\n return Integer.valueOf(((Byte)o).intValue());\n\n case INTEGER:\n return (Integer)o;\n\n case LONG:\n return Integer.valueOf(((Long)o).intValue());\n\n case FLOAT:\n return Integer.valueOf(((Float)o).intValue());\n\n case DOUBLE:\n return Integer.valueOf(((Double)o).intValue());\n\n case BYTEARRAY:\n return Integer.valueOf(((DataByteArray)o).toString());\n\n case CHARARRAY:\n return Integer.valueOf((String)o);\n\n case BIGINTEGER:\n return Integer.valueOf(((BigInteger)o).intValue());\n\n case BIGDECIMAL:\n return Integer.valueOf(((BigDecimal)o).intValue());\n\n case NULL:\n return null;\n\n case DATETIME:\n return Integer.valueOf(Long.valueOf(((DateTime)o).getMillis()).intValue());\n\n case MAP:\n case INTERNALMAP:\n case TUPLE:\n case BAG:\n case UNKNOWN:\n default:\n int errCode = 1071;\n String msg = \"Cannot convert a \" + findTypeName(o) +\n \" to an Integer\";\n throw new ExecException(msg, errCode, PigException.INPUT);\n }\n } catch (ClassCastException cce) {\n throw cce;\n } catch (ExecException ee) {\n throw ee;\n } catch (NumberFormatException nfe) {\n int errCode = 1074;\n String msg = \"Problem with formatting. Could not convert \" + o + \" to Integer.\";\n throw new ExecException(msg, errCode, PigException.INPUT, nfe);\n } catch (Exception e) {\n int errCode = 2054;\n String msg = \"Internal error. Could not convert \" + o + \" to Integer.\";\n throw new ExecException(msg, errCode, PigException.BUG);\n }\n }", "Integer getValue();", "Integer getValue();", "public T caseIntegerCalculationExpression(IntegerCalculationExpression object) {\n\t\treturn null;\n\t}", "public IntType asInt(){\n return TypeFactory.getIntType(this.toInt(this.getValue()));\n }", "public static int toInt(java.lang.Object o)\n {\n if(o == null)\n {\n return 0;\n }\n else if(o.toString().equals(\"\"))\n {\n return 0;\n }\n else\n {\n return Integer.parseInt(o.toString());\n }\n }", "public int intValue();", "int intValue();", "private void valueOfInt(Instruction o, Type value){\n\t\tif (! value.equals(Type.INT))\n\t\t\t\tconstraintViolated(o, \"The 'value' is not of type int but of type \"+value+\".\");\n\t}", "private static int unbox(Integer i) {\n\t\treturn (i == null) ? 0 : i;\n\t}", "@java.lang.Override\n public int getNilValue() {\n if (typeCase_ == 1) {\n return (java.lang.Integer) type_;\n }\n return 0;\n }", "public T caseIntegerLiteralExpCS(IntegerLiteralExpCS object) {\r\n return null;\r\n }", "public int intVal() {\r\n\t\t\tassert kind == Kind.INTEGER_LITERAL;\r\n\t\t\treturn Integer.valueOf(String.copyValueOf(chars, pos, length));\r\n\t\t}", "public Integer toInteger() {\n\t\treturn this.getValue().intValue();\n\t}", "public LlvmValue visit(IntegerType n){\n\t\treturn LlvmPrimitiveType.I32;\n\t}", "public static Integer toInteger(java.lang.Object o)\n {\n\t if(o == null)\n\t {\n\t return 0;\n\t }\n\t else if(o.toString().equals(\"\"))\n\t {\n\t return 0;\n\t }\n\telse\n\t{\n\t return Integer.valueOf(o.toString());\n\t}\n }", "public static int toInt(IRubyObject irb) {\n\t\treturn Integer.valueOf(irb.toString());\n\t}", "BigInteger getInteger() {\n\n\t\t\tif (this.type != DerParser.INTEGER) {\n\t\t\t\tthrow new IllegalStateException(String.format(\"Invalid DER: object (%d) is not integer.\", this.type));\n\t\t\t}\n\n\t\t\treturn new BigInteger(this.value);\n\t\t}", "public final Integer _parseInteger(JsonParser jVar, DeserializationContext gVar) throws IOException {\n int m = jVar.mo29329m();\n if (m == 3) {\n return (Integer) _deserializeFromArray(jVar, gVar);\n }\n if (m == 11) {\n return (Integer) _coerceNullToken(gVar, this._primitive);\n }\n switch (m) {\n case 6:\n String trim = jVar.mo29334t().trim();\n int length = trim.length();\n if (length == 0) {\n return (Integer) _coerceEmptyString(gVar, this._primitive);\n }\n if (_hasTextualNull(trim)) {\n return (Integer) _coerceTextualNull(gVar, this._primitive);\n }\n _verifyStringForScalarCoercion(gVar, trim);\n if (length <= 9) {\n return Integer.valueOf(NumberInput.m23779a(trim));\n }\n try {\n long parseLong = Long.parseLong(trim);\n if (!_intOverflow(parseLong)) {\n return Integer.valueOf((int) parseLong);\n }\n return (Integer) gVar.mo31517b(this._valueClass, trim, String.format(\"Overflow: numeric value (%s) out of range of Integer (%d - %d)\", trim, Integer.MIN_VALUE, Integer.MAX_VALUE), new Object[0]);\n } catch (IllegalArgumentException unused) {\n return (Integer) gVar.mo31517b(this._valueClass, trim, \"not a valid Integer value\", new Object[0]);\n }\n case 7:\n return Integer.valueOf(jVar.mo29247C());\n case 8:\n if (!gVar.mo31509a(DeserializationFeature.ACCEPT_FLOAT_AS_INT)) {\n _failDoubleToIntCoercion(jVar, gVar, \"Integer\");\n }\n return Integer.valueOf(jVar.mo29296K());\n default:\n return (Integer) gVar.mo31493a(this._valueClass, jVar);\n }\n }", "@Override\r\n\tpublic Object visitIntegerLiteralExpression(\r\n\t\t\tIntegerLiteralExpression integerLiteralExpression, Object arg)\r\n\t\t\tthrows Exception {\n\t\tmv.visitLdcInsn(integerLiteralExpression.integerLiteral.getIntVal());\r\n\t\tif(arg != null)\r\n\t\t{\r\n//\t\t mv.visitMethodInsn(INVOKESTATIC, \"java/lang/Integer\", \"valueOf\", \"(I)Ljava/lang/Integer;\");\r\n\t\t}\r\n\t\treturn \"I\";\r\n\t}", "@Override\n public Type evaluateType() throws Exception {\n return new IntegerType();\n }", "default int asInt() {\n\t\tthrow new EvaluatorException(\"Expecting an integer value\");\n\t}", "public Object accept(Visitor v) {\n\t\treturn v.visitIntegerType(this);\n\t}", "public T caseIntLitExpr(IntLitExpr object) {\n\t\treturn null;\n\t}", "public int getInt() {\n return integer;\n }", "int getIntValue();", "public Integer getValue();", "public static final long Integer(final Object o) {\n\t\t\n\t\treturn Convert.Any.toLong(o, 0);\n\t}", "@Override\n\tpublic Object visitIntLiteral(IntLiteral literal) {\n\t\treturn null;\n\t}", "public int toInt()\n\t{\n\t\treturn (int) toLong();\n\t}", "public int getNilValue() {\n if (typeCase_ == 1) {\n return (java.lang.Integer) type_;\n }\n return 0;\n }", "public boolean isInteger();", "public LlvmValue visit(IntegerLiteral n) {\n return new LlvmIntegerLiteral(n.value);\n }", "public final int getInt()\n {\n return intValue;\n }", "public int getIntegerValue() {\n throw new OurBadException(\" Item '\" + this.serialize() + \"' is not an integer.\");\n }", "public int getIntValue() {\n return (int)getValue();\n }", "public int evaluateAsInt();", "public Integer getInt(String name) {\n Object o = get(name);\n if (o instanceof Number) {\n return ((Number)o).intValue();\n }\n\n if (o != null) {\n try {\n String string = o.toString();\n if (string != null) {\n return Integer.parseInt(string);\n }\n }\n catch (NumberFormatException e) {}\n }\n return null;\n }", "public int intVal(){\n\n if(currentTokenType == TYPE.INT_CONST){\n\n return Integer.parseInt(currentToken);\n }else {\n throw new IllegalStateException(\"Current token is not an integer constant!\");\n }\n }", "public static Integer extractInteger(Object value, Object defaultValue){\n if(value == null){\n return convertToInt(defaultValue);\n }\n return convertToInt(value);\n }", "public int getInt() {\r\n\t\treturn (value.getInt());\r\n\t}", "public int getInt(){\n return new BigInteger(this.value).intValue();\n }", "int getInt();", "int getInt();", "public int getIntValue(){\n\t\treturn value.intValue();\n\t}", "public Integer getInteger() {\r\n\t\ttype(ConfigurationItemType.INTEGER);\r\n\t\treturn integerValue;\r\n\t}", "IntegerValue createIntegerValue();", "IntegerValue createIntegerValue();", "@Override\r\n public int intValue() {\r\n return (int) this.m_current;\r\n }", "public int getInt();", "public Integer getIntValue() {\n\t\treturn this.intValue;\r\n\t}", "public PrimObject primitive351(PrimContext context) {\n final Integer value = (Integer) this.javaValue;\n final PrimObject argument = context.argumentAt(0);\n final PrimClass argClass = argument.selfClass();\n if (argClass.equals(resolveObject(\"Integer\"))) {\n Integer argValue = (Integer) context.argumentJavaValueAt(0);\n return smalltalkBoolean(value.equals(argValue));\n }\n else {\n //Converet types using next smalltalk code:\n // <code> (aNumber adaptInteger: self) = aNumber adaptToInteger </code>\n PrimObject leftOperand = argument.perform0(\"adaptInteger\", this);\n PrimObject rightOperand = argument.perform0(\"adaptInteger\");\n return leftOperand.perform0(\"=\", rightOperand);\n }\n }", "public static void main(String[] args) {\n\t\t\n\t\tInteger obj= new Integer(10);\n\t\t\n\t\tint value=obj.intValue();\n\t\t\n\t\tint data=obj; //auto unboxing\n\t\t//int data=obj.intValue();\n\t\t\n\t\tobj=200; //autoboxing\n\t\t//obj=new Integer(200);\n\n\t}", "public static int getInt() throws Exception {\n return getInt(null);\n }", "public boolean isInt() {\n return this.data instanceof Integer;\n }", "public int getInt()\n {\n return intValue;\n }", "public int getInt()\n {\n return intValue;\n }", "@Override\n\tpublic Type getType() {\n\t\treturn Type.INT_TYPE;\n\t}", "public int toInt() {\n return this.toIntArray()[0];\n }", "public static int getValueInt()\n {\n return Util.valueInt;\n }", "public static Integer i (int val) {\n return Integer.valueOf(val);\n }", "public int getIntValue() {\n return intValue_;\n }", "public int getIntegerValue()\n {\n// if (val != Math.round(val))\n// System.err.println(\"IntegerYoVariable: returning a different value than what it used to be.\");\n return val;\n }", "public T caseNumber(org.uis.lenguajegrafico.lenguajegrafico.Number object)\n {\n return null;\n }", "public int getIntValue() {\n return intValue_;\n }", "public T caseExprNumber(ExprNumber object)\n {\n return null;\n }", "public Object visitIntegerConstant(GNode n) {\n xtc.type.Type result;\n \n result = cops.typeInteger(n.getString(0));\n \n return result.getConstant().bigIntValue().longValue();\n }", "public Integer getInt(K key) throws ClassCastException;", "protected synchronized int getIntegerValue(String tag) {\n int returnInt = 0;\n if (actualProperties != null) {\n returnInt = Integer.decode(actualProperties.getProperty(tag, \"0\"));\n }\n return returnInt;\n }", "OptionalInt peek();", "public int intValue() {\n return value;\n }", "public static int toInt(RubyObject irb, String var) {\n\t\treturn toInt(irb.getInstanceVariable(var));\n\t}", "@Override\n\tpublic Integer evaluate() {\n\t\treturn Integer.parseInt(this.getValue());\n\t}", "public int intValue() {\n if (originalValue instanceof Integer) {\n return (Integer) originalValue;\n } else if (originalValue instanceof Number) {\n return ((Number) originalValue).intValue();\n } else if (originalValue instanceof String) {\n final String originalString = (String) this.originalValue;\n\n try {\n return Integer.parseInt(originalString);\n } catch (NumberFormatException e1) {\n try {\n return (int) Double.parseDouble(originalString);\n } catch (NumberFormatException e2) {\n // it will be more reasonable to throw an exception which\n // indicates that the conversion to int has failed\n e1.addSuppressed(e2);\n throw new CellValueCastException(e1);\n }\n }\n } else {\n throw new CellValueCastException();\n }\n }", "public T caseURDFAttrINT(URDFAttrINT object) {\r\n\t\treturn null;\r\n\t}", "IntValue createIntValue();", "IntValue createIntValue();", "int get_int(ThreadContext tc, RakudoObject classHandle);", "public int castToIntegerValue() {\n throw new IteratorFlowException(\"Cannot call castToDouble on non numeric\");\n }", "public int intValue( )\n {\n return value;\n }", "public static Integer getInteger(String inKey) {\r\n Object o = getProperties().get(inKey);\r\n\r\n if (o == null) {\r\n if (LOG.isDebugEnabled()) {\r\n LOG.debug(\"getInteger: \" + inKey + \", result null\");\r\n }\r\n return null;\r\n }\r\n\r\n if (LOG.isDebugEnabled()) {\r\n LOG.debug(\"getInteger: \" + inKey + \", result \" + o);\r\n }\r\n if (o instanceof Integer) {\r\n return (Integer) o;\r\n }\r\n if (!(o instanceof String)) {\r\n throw new IllegalArgumentException(\"Config property: \" + inKey\r\n + \" is not an Integer or String: \" + o.getClass());\r\n }\r\n try {\r\n return new Integer((String) o);\r\n } catch (Exception e) {\r\n LOG.warn(\"Not an integer value: \" + o + \" for property \" + inKey);\r\n return null;\r\n }\r\n }", "public int intValue(Map<Prop, Object> map) {\n assert type == Integer.class;\n Object o = map.get(this);\n return this.<Integer>typeValue(o);\n }", "public int getInt() throws Exception\n {\n return 0;\n }", "public T caseIntBuildingInstallationType(IntBuildingInstallationType object) {\n\t\treturn null;\n\t}", "public Class<?> getType()\r\n {\r\n return Integer.class;\r\n }", "public int getIntegerValue() {\r\n\t\t\treturn val;\r\n\t\t}" ]
[ "0.726528", "0.702013", "0.6918033", "0.6907186", "0.6906849", "0.6861593", "0.6809356", "0.673551", "0.6660008", "0.66258794", "0.6546408", "0.65386885", "0.6482228", "0.64762914", "0.6456672", "0.64246976", "0.64246976", "0.642029", "0.6387039", "0.63548744", "0.6231305", "0.620589", "0.6205839", "0.61742353", "0.61623037", "0.614747", "0.61350274", "0.613", "0.6108936", "0.61000454", "0.6097719", "0.6084402", "0.6081663", "0.60676533", "0.60583335", "0.6048588", "0.6042184", "0.60331047", "0.6022239", "0.6020802", "0.59829265", "0.598143", "0.59513247", "0.59373736", "0.591547", "0.5913377", "0.58890355", "0.58836", "0.585552", "0.5851236", "0.5850867", "0.58495736", "0.5844436", "0.58275145", "0.58212614", "0.58145136", "0.5812182", "0.5812182", "0.5804751", "0.5803843", "0.57986015", "0.57986015", "0.5779818", "0.57685375", "0.576753", "0.57567465", "0.5748155", "0.5744231", "0.5738521", "0.5735922", "0.5735922", "0.5723544", "0.5696909", "0.56956786", "0.56900585", "0.5690013", "0.56848145", "0.5684511", "0.5667129", "0.56664956", "0.5665751", "0.56641424", "0.56459224", "0.5639251", "0.5635009", "0.5619701", "0.560629", "0.5599115", "0.5595809", "0.55925214", "0.55925214", "0.5576204", "0.5570974", "0.55547243", "0.55499434", "0.554127", "0.5536461", "0.55216247", "0.5521272", "0.55194825" ]
0.74722236
0
Returns the result of interpreting the object as an instance of 'Float'. This implementation returns null; returning a nonnull result will terminate the switch.
public T caseFloat(sensorDeploymentLanguage.Float object) { return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public T caseFloat(org.uis.lenguajegrafico.lenguajegrafico.Float object)\n {\n return null;\n }", "public static Float castFloat(Object obj) {\n\t\tif (obj instanceof Number) {\n\t\t\treturn ((Number) obj).floatValue();\n\t\t}\n\n\t\treturn null;\n\t}", "public float evaluateAsFloat();", "public T caseURDFAttrFloat(URDFAttrFloat object) {\r\n\t\treturn null;\r\n\t}", "public float toFloat() {\n return this.toFloatArray()[0];\n }", "@ZenCodeType.Caster\n @ZenCodeType.Method\n default float asFloat() {\n \n return notSupportedCast(BasicTypeID.FLOAT);\n }", "public FloatType asFloat() {\n return TypeFactory.getIntType(toInt(this.getValue())).asFloat();\n }", "public static Float toFloat(Object o,byte type) throws ExecException {\n try {\n switch (type) {\n case BOOLEAN:\n return (Boolean) o ? Float.valueOf(1.0F) : Float.valueOf(0.0F);\n\n case INTEGER:\n return new Float(((Integer)o).floatValue());\n\n case LONG:\n return new Float(((Long)o).floatValue());\n\n case FLOAT:\n return (Float)o;\n\n case DOUBLE:\n return new Float(((Double)o).floatValue());\n\n case DATETIME:\n return new Float(Long.valueOf(((DateTime)o).getMillis()).floatValue());\n\n case BYTEARRAY:\n return Float.valueOf(((DataByteArray)o).toString());\n\n case CHARARRAY:\n return Float.valueOf((String)o);\n\n case BIGINTEGER:\n return Float.valueOf(((BigInteger)o).floatValue());\n\n case BIGDECIMAL:\n return Float.valueOf(((BigDecimal)o).floatValue());\n\n case NULL:\n return null;\n\n case BYTE:\n case MAP:\n case INTERNALMAP:\n case TUPLE:\n case BAG:\n case UNKNOWN:\n default:\n int errCode = 1071;\n String msg = \"Cannot convert a \" + findTypeName(o) +\n \" to a Float\";\n throw new ExecException(msg, errCode, PigException.INPUT);\n }\n } catch (ClassCastException cce) {\n throw cce;\n } catch (ExecException ee) {\n throw ee;\n } catch (NumberFormatException nfe) {\n int errCode = 1074;\n String msg = \"Problem with formatting. Could not convert \" + o + \" to Float.\";\n throw new ExecException(msg, errCode, PigException.INPUT, nfe);\n } catch (Exception e) {\n int errCode = 2054;\n String msg = \"Internal error. Could not convert \" + o + \" to Float.\";\n throw new ExecException(msg, errCode, PigException.BUG);\n }\n }", "public Float getFloat(final int index) {\n Object returnable = this.get(index);\n if (returnable == null) {\n return null;\n }\n if (returnable instanceof String) {\n /* A String can be used to construct a BigDecimal. */\n returnable = new BigDecimal((String) returnable);\n }\n return ((Number) returnable).floatValue();\n }", "public final Float _parseFloat(JsonParser jVar, DeserializationContext gVar) throws IOException {\n JsonToken l = jVar.mo29328l();\n if (l == JsonToken.VALUE_NUMBER_FLOAT || l == JsonToken.VALUE_NUMBER_INT) {\n return Float.valueOf(jVar.mo29250F());\n }\n if (l == JsonToken.VALUE_STRING) {\n String trim = jVar.mo29334t().trim();\n if (trim.length() == 0) {\n return (Float) _coerceEmptyString(gVar, this._primitive);\n }\n if (_hasTextualNull(trim)) {\n return (Float) _coerceTextualNull(gVar, this._primitive);\n }\n char charAt = trim.charAt(0);\n if (charAt != '-') {\n if (charAt != 'I') {\n if (charAt == 'N' && _isNaN(trim)) {\n return Float.valueOf(Float.NaN);\n }\n } else if (_isPosInf(trim)) {\n return Float.valueOf(Float.POSITIVE_INFINITY);\n }\n } else if (_isNegInf(trim)) {\n return Float.valueOf(Float.NEGATIVE_INFINITY);\n }\n _verifyStringForScalarCoercion(gVar, trim);\n try {\n return Float.valueOf(Float.parseFloat(trim));\n } catch (IllegalArgumentException unused) {\n return (Float) gVar.mo31517b(this._valueClass, trim, \"not a valid Float value\", new Object[0]);\n }\n } else if (l == JsonToken.VALUE_NULL) {\n return (Float) _coerceNullToken(gVar, this._primitive);\n } else {\n if (l == JsonToken.START_ARRAY) {\n return (Float) _deserializeFromArray(jVar, gVar);\n }\n return (Float) gVar.mo31493a(this._valueClass, jVar);\n }\n }", "public float floatValue() {\r\n return (float) intValue();\r\n }", "@Override\r\n public float floatValue() {\r\n return (float) this.m_current;\r\n }", "public abstract float read_float();", "public abstract float getValue();", "float readFloat() {\n try {\n return in.readFloat();\n } catch (IOException ex) {\n return DisasmError();\n }\n }", "public float floatValue() {\n return (float) value;\n }", "public float unpackFloat() {\n return buffer.getFloat();\n }", "float applyAsFloat(T value);", "public float floatValue()\n\t\t{\n\t\t\treturn (float) doubleValue();\n\t\t}", "public Float getFloat(String name) {\n Object o = get(name);\n if (o instanceof Number) {\n return ((Number)o).floatValue();\n }\n\n if (o != null) {\n try {\n String string = o.toString();\n if (string != null) {\n return Float.parseFloat(string);\n }\n }\n catch (NumberFormatException e) {}\n }\n return null;\n }", "public float get_float() {\n return local_float;\n }", "public Float getFloat(String key)\n\t{\n\t\tDouble d = getDouble(key);\n\t\tif(d == null)\n\t\t\treturn null;\n\t\treturn d.floatValue();\n\t}", "public float readFloat() {\n\t\tif(!isInit) return 0F;\n\t\tfloat result = 0F;\n\t\tisListening = true;\n\t\twriteLine(\"Waiting for Float input...\");\n\t\twhile(isListening) {\n\t\t\ttry {\n\t\t\t\tresult = Float.parseFloat(inputArea.getText());\n\t\t\t} catch(NumberFormatException nfe) {\n\t\t\t\tresult= 0F;\n\t\t\t}\n\t\t}\n\t\tinputArea.setText(\"\");\n\t\twriteLine(\"Input: \" + result);\n\t\treturn result;\n\t}", "public float toFloat(){\n\t\tString s = txt().trim();\n\t\tfloat i;\n\t\ttry{\n\t\t\ti = Float.parseFloat(s);\n\t\t}catch(NumberFormatException exp){\n\t\t\texp.printStackTrace();\n\t\t\treturn 0f;\n\t\t\t\n\t\t}\n\t\treturn i;\t\n\t}", "@Nullable\r\n public Float getFloat(String key) {\r\n return getFloat(key, null);\r\n }", "public float floatValue() {\n return (float) m_value;\n }", "@Override\r\n public Class getClassType() {\r\n return float.class;\r\n }", "public float floatValue() {\n\t\treturn (float) mDouble;\n\t}", "public void visitFRETURN(FRETURN o){\n\t\tif (stack().peek() != Type.FLOAT){\n\t\t\tconstraintViolated(o, \"The value at the stack top is not of type 'float', but of type '\"+stack().peek()+\"'.\");\n\t\t}\n\t}", "public boolean isFloat() {\n return this.data instanceof Float;\n }", "public static _float parse(javax.xml.stream.XMLStreamReader reader)\n throws java.lang.Exception {\n _float object = new _float();\n\n int event;\n javax.xml.namespace.QName currentQName = null;\n java.lang.String nillableValue = null;\n java.lang.String prefix = \"\";\n java.lang.String namespaceuri = \"\";\n\n try {\n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n currentQName = reader.getName();\n\n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\n \"nil\");\n\n if (\"true\".equals(nillableValue) ||\n \"1\".equals(nillableValue)) {\n // Skip the element and report the null value. It cannot have subelements.\n while (!reader.isEndElement())\n reader.next();\n\n object.set_float(java.lang.Float.NaN);\n\n return object;\n }\n\n // Note all attributes that were handled. Used to differ normal attributes\n // from anyAttributes.\n java.util.Vector handledAttributes = new java.util.Vector();\n\n while (!reader.isEndElement()) {\n if (reader.isStartElement()) {\n if (reader.isStartElement() &&\n new javax.xml.namespace.QName(\n \"http://schemas.microsoft.com/2003/10/Serialization/\",\n \"float\").equals(reader.getName())) {\n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\n \"nil\");\n\n if (!\"true\".equals(nillableValue) &&\n !\"1\".equals(nillableValue)) {\n java.lang.String content = reader.getElementText();\n\n object.set_float(org.apache.axis2.databinding.utils.ConverterUtil.convertToFloat(\n content));\n } else {\n object.set_float(java.lang.Float.NaN);\n\n reader.getElementText(); // throw away text nodes if any.\n }\n } // End of if for expected property start element\n\n else {\n // 3 - A start element we are not expecting indicates an invalid parameter was passed\n throw new org.apache.axis2.databinding.ADBException(\n \"Unexpected subelement \" +\n reader.getName());\n }\n } else {\n reader.next();\n }\n } // end of while loop\n } catch (javax.xml.stream.XMLStreamException e) {\n throw new java.lang.Exception(e);\n }\n\n return object;\n }", "float getValue();", "float getValue();", "float getValue();", "@ReflectiveMethod(name = \"l\", types = {})\n public float l(){\n return (float) NMSWrapper.getInstance().exec(nmsObject);\n }", "public float readFloat()\r\n/* 447: */ {\r\n/* 448:460 */ recordLeakNonRefCountingOperation(this.leak);\r\n/* 449:461 */ return super.readFloat();\r\n/* 450: */ }", "float readFloat();", "public native float __floatMethod( long __swiftObject, float arg );", "Double getFreeFloat();", "public static float getValueFloat()\n {\n return Util.valueFloat;\n }", "@Override\r\n\tpublic boolean isFloat() {\r\n\t\treturn isFloatType;\r\n\t}", "@Override\n\tpublic Type getType() {\n\t\treturn Type.FLOAT;\n\t}", "public Float getValue () {\r\n\t\treturn (Float) getStateHelper().eval(PropertyKeys.value);\r\n\t}", "public static float fVal( Number n ){\n if ( n == null )\n return 0f;\n return n.floatValue();\n }", "public float toFloat() {\n return (float) numerator/(float) denominator;\n }", "float getEFloat();", "public float getAsFloat(int index) {\n switch (type) {\n case TIFFTag.TIFF_BYTE: case TIFFTag.TIFF_UNDEFINED:\n return ((byte[])data)[index] & 0xff;\n case TIFFTag.TIFF_SBYTE:\n return ((byte[])data)[index];\n case TIFFTag.TIFF_SHORT:\n return ((char[])data)[index] & 0xffff;\n case TIFFTag.TIFF_SSHORT:\n return ((short[])data)[index];\n case TIFFTag.TIFF_SLONG:\n return ((int[])data)[index];\n case TIFFTag.TIFF_LONG: case TIFFTag.TIFF_IFD_POINTER:\n return ((long[])data)[index];\n case TIFFTag.TIFF_FLOAT:\n return ((float[])data)[index];\n case TIFFTag.TIFF_DOUBLE:\n return (float)((double[])data)[index];\n case TIFFTag.TIFF_SRATIONAL:\n int[] ivalue = getAsSRational(index);\n return (float)((double)ivalue[0]/ivalue[1]);\n case TIFFTag.TIFF_RATIONAL:\n long[] lvalue = getAsRational(index);\n return (float)((double)lvalue[0]/lvalue[1]);\n case TIFFTag.TIFF_ASCII:\n String s = ((String[])data)[index];\n return (float)Double.parseDouble(s);\n default:\n throw new ClassCastException();\n }\n }", "@ReflectiveMethod(name = \"m\", types = {})\n public float m(){\n return (float) NMSWrapper.getInstance().exec(nmsObject);\n }", "public void visitFREM(FREM o){\n\t\tif (stack().peek() != Type.FLOAT){\n\t\t\tconstraintViolated(o, \"The value at the stack top is not of type 'float', but of type '\"+stack().peek()+\"'.\");\n\t\t}\n\t\tif (stack().peek(1) != Type.FLOAT){\n\t\t\tconstraintViolated(o, \"The value at the stack next-to-top is not of type 'float', but of type '\"+stack().peek(1)+\"'.\");\n\t\t}\n\t}", "public float getFloat(String name) {\n Enumeration enumer = FLOATS.elements();\n while(enumer.hasMoreElements()) {\n SimpleMessageObjectFloatItem item = (SimpleMessageObjectFloatItem) enumer.nextElement();\n if(item.getName().compareTo(name) == 0) {\n return item.getValue();\n }\n }\n return -1F;\n }", "private static float checkNull(String current) {\n if (current.equals(NULLSTR)) {\n return ZERO;\n } else {\n return Float.parseFloat(current);\n }\n }", "public Float getValue() {\n\t\treturn value;\n\t}", "public Float getValue() {\n\t\treturn value;\n\t}", "@Override\r\n\tpublic String toString() {\n\t\treturn \"float\";\r\n\t}", "public final EObject ruleFloatDataType() throws RecognitionException {\n EObject current = null;\n\n Token otherlv_0=null;\n\n enterRule(); \n \n try {\n // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:4532:28: ( (otherlv_0= 'float' () ) )\n // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:4533:1: (otherlv_0= 'float' () )\n {\n // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:4533:1: (otherlv_0= 'float' () )\n // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:4533:3: otherlv_0= 'float' ()\n {\n otherlv_0=(Token)match(input,72,FOLLOW_72_in_ruleFloatDataType10328); \n\n \tnewLeafNode(otherlv_0, grammarAccess.getFloatDataTypeAccess().getFloatKeyword_0());\n \n // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:4537:1: ()\n // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:4538:5: \n {\n\n current = forceCreateModelElement(\n grammarAccess.getFloatDataTypeAccess().getFloatDataTypeAction_1(),\n current);\n \n\n }\n\n\n }\n\n\n }\n\n leaveRule(); \n }\n \n catch (RecognitionException re) { \n recover(input,re); \n appendSkippedTokens();\n } \n finally {\n }\n return current;\n }", "public Float getFloat(float defaultVal) {\n return get(ContentType.FloatType, defaultVal);\n }", "public float toFloat(String stringItem) {\n Float floatItem = (float) 0.0;\n try {\n floatItem = Float.valueOf(stringItem);\n } // try\n catch (NumberFormatException ioError) {\n System.out.print(\"Error converting \" + stringItem);\n System.out.print(\" to a floating point number::\");\n System.out.println(\" Termio.ToFloat method.\");\n } // catch\n return floatItem;\n }", "public float getFloat() throws NoSuchElementException,\n\t NumberFormatException\n {\n\tString s = tokenizer.nextToken();\n\treturn Float.parseFloat(s);\n }", "public float leerFloat() throws IOException\r\n {\r\n return maestro.readFloat(); \r\n }", "public float readFloat() {\n return Float.parseFloat(readNextLine());\n }", "public Float F(String key) throws AgentBuilderRuntimeException {\n\t\treturn getFloat(key);\n\t}", "public float getFloat(String column)\n {\n return FloatType.instance.compose(get(column));\n }", "public float floatValue() {\n return this.value;\n }", "@Override\n public Float calc() {\n\treturn null;\n }", "@Override\n public float nextFloat() {\n nextState();\n return outputFloat();\n }", "public abstract float getasFloat(int tuple, int val);", "public static double readFloat() {\n return Float.parseFloat(readString());\n }", "public float getFloat(String key)\n {\n return getFloat(key, 0);\n }", "public static float leerFloat() {\n\t\tthrow new UnsupportedOperationException();\n\t}", "public boolean isAfloat(){\n \treturn afloat;\r\n }", "public float readFloat() throws IOException {\n return in.readFloat();\n }", "private final float get_FLOAT(int column) {\n // @AGG force Little Endian\n if (metadata.isZos()) {\n byte[] bytes = new byte[4];\n dataBuffer_.getBytes(columnDataPosition_[column - 1], bytes);\n return FloatingPoint.getFloat_hex(bytes, 0);\n// return dataBuffer_.getFloat(columnDataPosition_[column - 1]);\n } else {\n return dataBuffer_.getFloatLE(columnDataPosition_[column - 1]);\n// return FloatingPoint.getFloat(dataBuffer_,\n// columnDataPosition_[column - 1]);\n }\n }", "public float getFloat(int columnIndex) throws SQLException {\n\n try {\n debugCodeCall(\"getFloat\", columnIndex);\n return get(columnIndex).getFloat();\n }\n catch (Exception e) {\n throw logAndConvert(e);\n }\n }", "public float floatValue() {\n return ( (Float) getAllele()).floatValue();\n }", "public float getFloat(int pos) {\n return Tuples.toFloat(getObject(pos));\n }", "public final EObject ruleFloatLiteral() throws RecognitionException {\n EObject current = null;\n\n Token lv_value_1_0=null;\n\n enterRule(); \n \n try {\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:1738:28: ( ( () ( (lv_value_1_0= RULE_FLOAT ) ) ) )\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:1739:1: ( () ( (lv_value_1_0= RULE_FLOAT ) ) )\n {\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:1739:1: ( () ( (lv_value_1_0= RULE_FLOAT ) ) )\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:1739:2: () ( (lv_value_1_0= RULE_FLOAT ) )\n {\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:1739:2: ()\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:1740:5: \n {\n if ( state.backtracking==0 ) {\n\n current = forceCreateModelElement(\n grammarAccess.getFloatLiteralAccess().getFloatLiteralAction_0(),\n current);\n \n }\n\n }\n\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:1745:2: ( (lv_value_1_0= RULE_FLOAT ) )\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:1746:1: (lv_value_1_0= RULE_FLOAT )\n {\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:1746:1: (lv_value_1_0= RULE_FLOAT )\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:1747:3: lv_value_1_0= RULE_FLOAT\n {\n lv_value_1_0=(Token)match(input,RULE_FLOAT,FOLLOW_RULE_FLOAT_in_ruleFloatLiteral4160); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\tnewLeafNode(lv_value_1_0, grammarAccess.getFloatLiteralAccess().getValueFLOATTerminalRuleCall_1_0()); \n \t\t\n }\n if ( state.backtracking==0 ) {\n\n \t if (current==null) {\n \t current = createModelElement(grammarAccess.getFloatLiteralRule());\n \t }\n \t\tsetWithLastConsumed(\n \t\t\tcurrent, \n \t\t\t\"value\",\n \t\tlv_value_1_0, \n \t\t\"FLOAT\");\n \t \n }\n\n }\n\n\n }\n\n\n }\n\n\n }\n\n if ( state.backtracking==0 ) {\n leaveRule(); \n }\n }\n \n catch (RecognitionException re) { \n recover(input,re); \n appendSkippedTokens();\n } \n finally {\n }\n return current;\n }", "@ReflectiveMethod(name = \"j\", types = {})\n public float j(){\n return (float) NMSWrapper.getInstance().exec(nmsObject);\n }", "protected abstract float getValue(Entity e,FloatTrait t);", "public float getFloat(String key) {\n\t\tfloat defaultValue = 0;\n\t\tif (getDefault(key) != null)\n\t\t\tdefaultValue = (Float) getDefault(key);\n\t\tString sp = internal.getProperty(key);\n\t\tif (sp == null) {\n\t\t\treturn defaultValue;\n\t\t}\n\t\tfloat value;\n\t\ttry {\n\t\t\tvalue = Float.parseFloat(sp);\n\t\t} catch (NumberFormatException ex) {\n\t\t\tsetFloat(key, defaultValue);\n\t\t\treturn defaultValue;\n\t\t}\n\t\treturn value;\n\t}", "public float getFloat(String subExpression) {\n return (float)getNumber(subExpression);\n }", "float toFloat(String value, float divideBy) {\n value = value.trim();\n if (value.indexOf(\"9999\") > -1) {\n // .9999's were made floatnull - check for them!\n if (value.indexOf(\".9999\") == -1) value = \"\"; // ub01\n } // if (value.indexOf(\"9999\") > -1)s\n return (!\"\".equals(value)\n ? new Float(value).floatValue() / divideBy\n : Tables.FLOATNULL);\n }", "public float getFloatValue() {\n if (getValueIndex() <= 0)\n return 0F;\n return ((FloatEntry) getPool().getEntry(getValueIndex())).getValue();\n }", "public float getValue()\r\n {\r\n return getSemanticObject().getFloatProperty(swps_floatValue);\r\n }", "boolean hasFloat();", "public static float inputFloat()\n\t{\n\t\treturn(sc.nextFloat());\n\t}", "public float getFloatValue() {\n \t\treturn floatValue;\n \t}", "public final EObject ruleRealLiteral() throws RecognitionException {\n EObject current = null;\n int ruleRealLiteral_StartIndex = input.index();\n Token lv_floatValue_0_0=null;\n\n enterRule(); \n \n try {\n if ( state.backtracking>0 && alreadyParsedRule(input, 112) ) { return current; }\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4714:28: ( ( (lv_floatValue_0_0= RULE_FLOAT ) ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4715:1: ( (lv_floatValue_0_0= RULE_FLOAT ) )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4715:1: ( (lv_floatValue_0_0= RULE_FLOAT ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4716:1: (lv_floatValue_0_0= RULE_FLOAT )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4716:1: (lv_floatValue_0_0= RULE_FLOAT )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4717:3: lv_floatValue_0_0= RULE_FLOAT\n {\n lv_floatValue_0_0=(Token)match(input,RULE_FLOAT,FOLLOW_RULE_FLOAT_in_ruleRealLiteral9607); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\tnewLeafNode(lv_floatValue_0_0, grammarAccess.getRealLiteralAccess().getFloatValueFLOATTerminalRuleCall_0()); \n \t\t\n }\n if ( state.backtracking==0 ) {\n\n \t if (current==null) {\n \t current = createModelElement(grammarAccess.getRealLiteralRule());\n \t }\n \t\tsetWithLastConsumed(\n \t\t\tcurrent, \n \t\t\t\"floatValue\",\n \t\tlv_floatValue_0_0, \n \t\t\"FLOAT\");\n \t \n }\n\n }\n\n\n }\n\n\n }\n\n if ( state.backtracking==0 ) {\n leaveRule(); \n }\n }\n \n \tcatch (RecognitionException re) { \n \t recover(input,re); \n \t appendSkippedTokens();\n \t}\n finally {\n if ( state.backtracking>0 ) { memoize(input, 112, ruleRealLiteral_StartIndex); }\n }\n return current;\n }", "public float getAsFloat(){\n return (new Float(getAsCents()) / 100);\n }", "protected float toFloat(String s){\n return Float.parseFloat(s);\n }", "public float _getValue()\r\n {\r\n if (valueClass.equals(Float.class))\r\n {\r\n return (getValue() / max);\r\n } else\r\n {\r\n return getValue();\r\n }\r\n }", "public Float getFloat(String attr) {\n return (Float) super.get(attr);\n }", "public static float nullToZero(Float f)\n {\n if(f == null)\n {\n return 0;\n }\n else\n {\n return f.floatValue();\n }\n }", "@Override\n public FloatType divideToFloat(FloatType dividend) {\n double floatDivisor = this.asFloat().getValue();\n double floatDividend = dividend.getValue();\n return TypeFactory.getFloatType(floatDividend / floatDivisor);\n }", "protected Object getFloat(final int vm, final int length, final boolean endianess) throws IOException {\r\n int len = (elementLength == UNDEFINED_LENGTH) ? 0 : elementLength;\r\n int i = 0;\r\n Object readObject = null;\r\n\r\n if (vm > 1) {\r\n final Float[] array = new Float[length / 4];\r\n\r\n while (len > 0) { // we should validate with VM here too\r\n array[i] = new Float(getFloat(endianess));\r\n len -= 4;\r\n i++;\r\n }\r\n\r\n readObject = array;\r\n } else if ( (vm < 1) && (length > 4)) {\r\n\r\n // not a valid VM, but we don't initialise the VM to 1,\r\n // so we will use this fact to guess at valid data\r\n // we actually do it as above.\r\n final Float[] array = new Float[length / 4];\r\n\r\n while (len > 0) {\r\n array[i] = new Float(getFloat(endianess));\r\n len -= 4;\r\n i++;\r\n }\r\n\r\n readObject = array;\r\n } else if ( ( (vm == 1) && (length > 4))) {\r\n\r\n // not a valid VM, but we don't initialise the VM to 1,\r\n // so we will use this fact to guess at valid data.\r\n // we actually do it as above.\r\n readObject = new Float(getFloat(endianess));\r\n len -= 4;\r\n\r\n while (len > 0) { // we should validate with VM here too\r\n getFloat(endianess);\r\n len -= 4;\r\n i++;\r\n }\r\n } else if (length == 4) {\r\n readObject = new Float(getFloat(endianess));\r\n }\r\n\r\n return readObject;\r\n }", "public float getFloat(String plcAddress) throws Df1LibraryNativeException\n\t{\n\t\treturn Df1_Read_Float(plcAddress);\n\t}", "public final synchronized float getFloat(int parameterIndex) \n throws SQLException\n {\n return getCallableStatement().getFloat(parameterIndex);\n }", "private native float Df1_Read_Float(String plcAddress) throws Df1LibraryNativeException;", "@Override\r\n\tpublic float getFloat(int pos) {\n\t\treturn buffer.getFloat(pos);\r\n\t}", "public float getValue() {\n return value_;\n }", "public float getValue() {\n return value_;\n }" ]
[ "0.8189387", "0.7649878", "0.7535745", "0.7415808", "0.72866184", "0.72615814", "0.69240916", "0.6907002", "0.68923193", "0.68420416", "0.6834412", "0.682702", "0.6775325", "0.67528766", "0.67512506", "0.6743672", "0.67172813", "0.6715579", "0.6687414", "0.6666195", "0.6660837", "0.6647177", "0.6619785", "0.66179657", "0.6603423", "0.6597418", "0.6563223", "0.6556785", "0.655334", "0.6550872", "0.65061414", "0.6504028", "0.6504028", "0.6504028", "0.64749646", "0.64690804", "0.6458881", "0.645303", "0.6450787", "0.6430519", "0.6418988", "0.6415341", "0.6413511", "0.6411652", "0.6402966", "0.63887626", "0.63608855", "0.6356808", "0.6352533", "0.63424027", "0.6334325", "0.6325987", "0.6325987", "0.63116115", "0.6305819", "0.62973773", "0.62906694", "0.6249786", "0.6248625", "0.62341464", "0.6232178", "0.6231163", "0.6216848", "0.6212915", "0.6207142", "0.62052375", "0.6203462", "0.618344", "0.61739767", "0.6168387", "0.61662424", "0.6164965", "0.616183", "0.615777", "0.6151946", "0.6120994", "0.610042", "0.6099161", "0.60960466", "0.6086323", "0.60822225", "0.607103", "0.6063573", "0.60609514", "0.60582834", "0.60466546", "0.60385895", "0.6030295", "0.60248727", "0.60243034", "0.60149986", "0.6012321", "0.60055804", "0.5998872", "0.5995627", "0.5992676", "0.59924644", "0.5987655", "0.59867686", "0.5977097" ]
0.78915215
1
Returns the result of interpreting the object as an instance of 'String'. This implementation returns null; returning a nonnull result will terminate the switch.
public T caseString(sensorDeploymentLanguage.String object) { return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "final protected String valueOf(Object obj) {\r\n if (obj == null) {\r\n return null;\r\n }\r\n return String.valueOf(obj);\r\n }", "String asString ();", "@Override\n\tpublic Object valueOf(String arg0) {\n\t\treturn null;\n\t}", "public T caseExpression_String(Expression_String object)\r\n {\r\n return null;\r\n }", "public T caseExprString(ExprString object)\n {\n return null;\n }", "String asString();", "public String asString();", "public T caseStringLiteral(StringLiteral object)\n {\n return null;\n }", "public T caseStringLiteral(StringLiteral object)\n {\n return null;\n }", "private static String valueOf(Object str3Sg) {\n\t\treturn null;\r\n\t}", "String getString();", "String getString();", "String getString();", "java.lang.String getStringValue();", "java.lang.String getStringValue();", "@java.lang.Override\n public java.lang.String getStringValue() {\n java.lang.Object ref = \"\";\n if (typeCase_ == 5) {\n ref = type_;\n }\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (typeCase_ == 5) {\n type_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public String getString();", "public java.lang.String getStringValue() {\n java.lang.Object ref = \"\";\n if (typeCase_ == 5) {\n ref = type_;\n }\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (typeCase_ == 5) {\n type_ = s;\n }\n return s;\n }\n }", "public T caseText(Text object)\n {\n return null;\n }", "private String getStringValue(Object o) {\n if (o instanceof String) {\n return (String) o;\n } else if (o instanceof NodeArray) {\n NodeArray array = (NodeArray) o;\n switch (array.size()) {\n case 0:\n return null;\n case 1: {\n return getStringValue(array.get(0));\n }\n default:\n return getStringValue(array);\n }\n } else if (o instanceof Node) {\n return getStringValue((Node) o);\n } else if (o != null) {\n return o.toString();\n }\n return null;\n }", "@Override\n\tpublic T get(String obj) {\n\t\treturn null;\n\t}", "public String convert()\r\n\t{\r\n\t\treturn str;\r\n\t}", "String getStringValue();", "String getStringValue();", "public static String stringApiValue(Object obj) {\n if ((obj == null) || (!isCycLObject(obj))) {\n throw new RuntimeException(obj + \" cannot be converted to a form suitable for use as a String api expression value.\");\n }\n if (obj instanceof CycObject) {\n return ((CycObject) obj).stringApiValue();\n }\n if (obj instanceof InferenceParameters) {\n return ((InferenceParameters) obj).stringApiValue();\n }\n return cyclifyWithEscapeChars(obj);\n }", "@Override\n public StringType asString() {\n return TypeFactory.getStringType(this.getValue());\n }", "public T caseText(Text object) {\n\t\treturn null;\n\t}", "private String getString() {\n\t\treturn null;\n\t}", "@Override\n\tpublic Object visit(StringNode stringNode) {\n\treturn null; }", "public T caseCharType(CharType object)\n {\n return null;\n }", "@Override\n\tpublic Object revert(Object o) {\n\t\tif(o != null) {\n\t\t\treturn new String((char[])o);\n\t\t}\n\t\treturn null;\n\t}", "public String getString() {\r\n\t\tString s = value.getString();\r\n\t\t// System.out.println(\"Getting string of: \" + s);\r\n\t\tif (s == null)\r\n\t\t\treturn (s);\r\n\t\treturn (substitution(s));\r\n\t}", "public String getStringValue();", "@java.lang.Override\n public com.google.protobuf.ByteString\n getStringValueBytes() {\n java.lang.Object ref = \"\";\n if (typeCase_ == 5) {\n ref = type_;\n }\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n if (typeCase_ == 5) {\n type_ = b;\n }\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public static String stringType(Obj type) {\n\t\tString str = ObjStr.get(type);\n\t\t\treturn str != null ? str : \"\";\n\t}", "public abstract String getString();", "public abstract String getString();", "java.lang.String getScStr();", "public T caseStringLiteralExpCS(StringLiteralExpCS object) {\r\n return null;\r\n }", "public final String getPrimitiveStringValue() {\r\n return (String) (value = value.toString());\r\n }", "private String literal(Object obj) {\n if (obj == null) {\n return \"NULL\";\n } else if (obj instanceof String) {\n return literal((String) obj);\n } else if (obj instanceof Number) {\n return literal((Number) obj);\n } else {\n return literal(obj.toString());\n }\n }", "public void testObjectToStringScalar() {\n\n assertEquals(\"Boolean->String\", \"false\", LocaleConvertUtils.convert(Boolean.FALSE));\n assertEquals(\"Boolean->String\", \"true\", LocaleConvertUtils.convert(Boolean.TRUE));\n assertEquals(\"Byte->String\", \"123\", LocaleConvertUtils.convert(Byte.valueOf((byte) 123)));\n assertEquals(\"Character->String\", \"a\", LocaleConvertUtils.convert(Character.valueOf('a')));\n assertEquals(\"Double->String\", \"123\" + decimalSeparator + \"4\", LocaleConvertUtils.convert(Double.valueOf(123.4)));\n assertEquals(\"Float->String\", \"123\" + decimalSeparator + \"4\", LocaleConvertUtils.convert(Float.valueOf((float) 123.4)));\n assertEquals(\"Integer->String\", \"123\", LocaleConvertUtils.convert(Integer.valueOf(123)));\n assertEquals(\"Long->String\", \"123\", LocaleConvertUtils.convert(Long.valueOf(123)));\n assertEquals(\"Short->String\", \"123\", LocaleConvertUtils.convert(Short.valueOf((short) 123)));\n assertEquals(\"String->String\", \"abc\", LocaleConvertUtils.convert(\"abc\"));\n assertEquals(\"String->String null\", null, LocaleConvertUtils.convert(null));\n\n }", "private static String getValue(Object o) {\n if (o != null) {\n return o.toString();\n }\n return \"null\";\n }", "protected String compString() {\n\t\treturn null;\n\t}", "String getString_lit();", "public String getString(T value);", "public java.lang.String getStr()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(STR$0, 0);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target.getStringValue();\r\n }\r\n }", "String getString() throws IOException {\n\n\t\t\tString encoding;\n\n\t\t\tswitch (this.type) {\n\n\t\t\t// Not all are ISO-8859-1 but it's the closest thing\n\t\t\tcase DerParser.NUMERIC_STRING:\n\t\t\tcase DerParser.PRINTABLE_STRING:\n\t\t\tcase DerParser.VIDEOTEX_STRING:\n\t\t\tcase DerParser.IA5_STRING:\n\t\t\tcase DerParser.GRAPHIC_STRING:\n\t\t\tcase DerParser.ISO646_STRING:\n\t\t\tcase DerParser.GENERAL_STRING:\n\t\t\t\tencoding = \"ISO-8859-1\";\n\t\t\t\tbreak;\n\n\t\t\tcase DerParser.BMP_STRING:\n\t\t\t\tencoding = \"UTF-16BE\";\n\t\t\t\tbreak;\n\n\t\t\tcase DerParser.UTF8_STRING:\n\t\t\t\tencoding = \"UTF-8\";\n\t\t\t\tbreak;\n\n\t\t\tcase DerParser.UNIVERSAL_STRING:\n\t\t\t\tthrow new IOException(\"Invalid DER: can't handle UCS-4 string\");\n\n\t\t\tcase DerParser.OID:\n\t\t\t\treturn getObjectIdentifier(this.value);\n\t\t\tdefault:\n\t\t\t\tthrow new IOException(String.format(\"Invalid DER: object (%d) is not a string\", this.type));\n\t\t\t}\n\n\t\t\treturn new String(this.value, encoding);\n\t\t}", "org.hl7.fhir.String getValueString();", "public String toSimpleString() {\n\t\treturn null;\n\t}", "@Override\n\tpublic String getString() {\n\t\treturn value;\n\t}", "@Override\n\tpublic String toResultString() {\n\t\treturn null;\n\t}", "public static String toString(Object value) {\n if (value != null)\n return value.toString();\n else\n return null;\n }", "public String getString() {\n\t\treturn renderResult(this._result).trim();\n\t}", "public static String nullSafeToString(Object obj) {\r\n if (obj == null) {\r\n return NULL_STRING;\r\n }\r\n if (obj instanceof String) {\r\n return (String) obj;\r\n }\r\n if (obj instanceof Object[]) {\r\n return nullSafeToString((Object[]) obj);\r\n }\r\n if (obj instanceof boolean[]) {\r\n return nullSafeToString((boolean[]) obj);\r\n }\r\n if (obj instanceof byte[]) {\r\n return nullSafeToString((byte[]) obj);\r\n }\r\n if (obj instanceof char[]) {\r\n return nullSafeToString((char[]) obj);\r\n }\r\n if (obj instanceof double[]) {\r\n return nullSafeToString((double[]) obj);\r\n }\r\n if (obj instanceof float[]) {\r\n return nullSafeToString((float[]) obj);\r\n }\r\n if (obj instanceof int[]) {\r\n return nullSafeToString((int[]) obj);\r\n }\r\n if (obj instanceof long[]) {\r\n return nullSafeToString((long[]) obj);\r\n }\r\n if (obj instanceof short[]) {\r\n return nullSafeToString((short[]) obj);\r\n }\r\n String str = obj.toString();\r\n return (str != null ? str : EMPTY_STRING);\r\n }", "@Test\n void inferString() {\n var s = \"Hello, World!\"; // Not helpful\n assertEquals(String.class, s.getClass());\n }", "boolean getString();", "String getEString();", "@Override\n\tpublic String readScalarString() throws IOException {\n\t\treturn null;\n\t}", "public static String toString(Object o,byte type) throws ExecException {\n try {\n switch (type) {\n case INTEGER:\n return ((Integer)o).toString();\n\n case LONG:\n return ((Long)o).toString();\n\n case FLOAT:\n return ((Float)o).toString();\n\n case DOUBLE:\n return ((Double)o).toString();\n\n case DATETIME:\n return ((DateTime)o).toString();\n\n case BYTEARRAY:\n return ((DataByteArray)o).toString();\n\n case CHARARRAY:\n return ((String)o);\n\n case BIGINTEGER:\n return ((BigInteger)o).toString();\n\n case BIGDECIMAL:\n return ((BigDecimal)o).toString();\n\n case NULL:\n return null;\n\n case BOOLEAN:\n return ((Boolean)o).toString();\n\n case BYTE:\n return ((Byte)o).toString();\n\n case MAP:\n case INTERNALMAP:\n case TUPLE:\n case BAG:\n case UNKNOWN:\n default:\n int errCode = 1071;\n String msg = \"Cannot convert a \" + findTypeName(o) +\n \" to a String\";\n throw new ExecException(msg, errCode, PigException.INPUT);\n }\n } catch (ClassCastException cce) {\n throw cce;\n } catch (ExecException ee) {\n throw ee;\n } catch (Exception e) {\n int errCode = 2054;\n String msg = \"Internal error. Could not convert \" + o + \" to String.\";\n throw new ExecException(msg, errCode, PigException.BUG);\n }\n }", "public com.google.protobuf.ByteString\n getStringValueBytes() {\n java.lang.Object ref = \"\";\n if (typeCase_ == 5) {\n ref = type_;\n }\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n if (typeCase_ == 5) {\n type_ = b;\n }\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "@Override\n\tpublic Object convert(Object o) {\n\t\tif(o != null) {\n\t\t\treturn ((String)o).toCharArray();\n\t\t}\n\t\treturn null;\n\t}", "String value();", "String value();", "@java.lang.Override\n public java.lang.String getObject() {\n java.lang.Object ref = object_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n object_ = s;\n return s;\n }\n }", "public static Value makeAnyStr() {\n return theStrAny;\n }", "@Override\n public String visit(StringLiteralExpr n, Object arg) {\n return null;\n }", "String get_str(ThreadContext tc, RakudoObject classHandle);", "public String string() {\n\treturn string;\n }", "public String toS(Object o, String empty_val);", "public String getString(String name)\n/* */ {\n/* 827 */ return getString(name, null);\n/* */ }", "public T caseSimple(Simple object) {\n\t\treturn null;\n\t}", "java.lang.String getValue();", "java.lang.String getValue();", "java.lang.String getValue();", "java.lang.String getValue();", "java.lang.String getValue();", "java.lang.String getValue();", "String nullStrToSpc(Object obj) {\n String spcStr = \"\";\n\n if (obj == null) {\n return spcStr;\n } else {\n return obj.toString();\n }\n }", "public java.lang.String getObject() {\n java.lang.Object ref = object_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n object_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getStringValue() {\n java.lang.Object ref = stringValue_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n stringValue_ = s;\n }\n return s;\n }\n }", "public static String valueOf(Object x) {\n return x == null ? \"null\" : x.toString();\n }", "public boolean isString();", "@Override\n public String visit(UnionType n, Object arg) {\n return null;\n }", "public java.lang.String getString() {\r\n return localString;\r\n }", "String toStr(Object o);", "@Override\n public String toString() {\n byte[] buffer = toBuffer();\n return (buffer == null) ? null : new String(buffer, StandardCharsets.UTF_8);\n }", "public String getVal() {\n Object ref = val_;\n if (!(ref instanceof String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n val_ = s;\n }\n return s;\n } else {\n return (String) ref;\n }\n }", "public java.lang.String getValue() {\n java.lang.Object ref = value_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n value_ = s;\n }\n return s;\n }\n }", "String getValueAsString();", "String getStringClass();", "public java.lang.String getString() {\n return localString;\n }", "public static String toString(final Object object)\n\t{\n\t\tif (object instanceof Throwable)\n\t\t{\n\t\t\treturn toString((Throwable)object);\n\t\t}\n//\t\telse if (object instanceof Node)\n//\t\t{\n//\t\t\treturn ((Node)object).getText();\n//\t\t}\n\t\telse if (object == null)\n\t\t{\n\t\t\treturn null;\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn object.toString();\n\t\t}\n\t}", "public T caseLiteral(Literal object)\n {\n return null;\n }", "@Override\n\tpublic xNSString javaMethodBaseWithNSStringRet() {\n\t\treturn null;\n\t}", "public String readString(boolean inc)\r\n {\n switch(vp.types[vp.dataPos])\r\n {\r\n case VirtualPointer.StringAscii:\r\n return readString(inc, false);\r\n case VirtualPointer.StringUnicode:\r\n return readString(inc, true);\r\n }\r\n//#endif\r\n //Need to figure out String type\r\n int len = vp.data.length;\r\n for (int i = vp.dataPos; i < len; i++)\r\n {\r\n if ((vp.data[i] & 0xFF) > 0x7F)\r\n {\r\n \t//Byte has the high-bit set, this means UTF-8\r\n return readString(inc, true);\r\n }\r\n }\r\n //ASCII\r\n return readString(inc, false);\r\n }", "public java.lang.String getResult() {\n java.lang.Object ref = result_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n result_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public String getVal() {\n Object ref = val_;\n if (ref instanceof String) {\n return (String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n val_ = s;\n }\n return s;\n }\n }", "protected String getString () {\n int utf = 0;\n skipSpaces ();\n if (!eatChar ('\"')) { return null; }\n m_sb.setLength (0);\n char c = getChar ();\n while ( c != '\\0' && c != '\"' ) {\n if (c == '\\\\') {\n c = getNextChar ();\n switch (c) {\n case '\"': c = '\"'; break;\n case '\\\\': c = '\\\\'; break;\n case '/' : c = '/'; break;\n case 'b' : c = '\\b'; break;\n case 'f' : c = '\\f'; break;\n case 'n' : c = '\\n'; break;\n case 'r' : c = '\\r'; break;\n case 't' : c = '\\t'; break;\n case 'u' :\n utf = 0;\n utf += Character.digit(getNextChar (), 16) << 12;\n utf += Character.digit(getNextChar (), 16) << 8;\n utf += Character.digit(getNextChar (), 16) << 4;\n utf += Character.digit(getNextChar (), 16);\n c = (char)utf;\n break;\n }\n }\n m_sb.append (c);\n c = getNextChar ();\n }\n return eatChar ('\"') ? m_sb.toString () : null;\n }", "public String getString() throws IOException {\n\n String encoding;\n\n switch ( type ) {\n\n // Not all are Latin-1 but it's the closest thing\n case DerParser.NUMERIC_STRING:\n case DerParser.PRINTABLE_STRING:\n case DerParser.VIDEOTEX_STRING:\n case DerParser.IA5_STRING:\n case DerParser.GRAPHIC_STRING:\n case DerParser.ISO646_STRING:\n case DerParser.GENERAL_STRING:\n encoding = \"ISO-8859-1\";\n break;\n\n case DerParser.BMP_STRING:\n encoding = \"UTF-16BE\";\n break;\n\n case DerParser.UTF8_STRING:\n encoding = \"UTF-8\";\n break;\n\n case DerParser.UNIVERSAL_STRING:\n throw new IOException( BaseMessages\n .getString( MQTTPublisherMeta.PKG, \"MQTTClientSSL.Error.InvalidDERCantHandleUCS4String\" ) );\n\n default:\n throw new IOException( BaseMessages\n .getString( MQTTPublisherMeta.PKG, \"MQTTClientSSL.Error.InvalidDERObjectIsNotAString\" ) );\n }\n\n return new String( value, encoding );\n }" ]
[ "0.66879874", "0.6626838", "0.65078825", "0.65073776", "0.6463644", "0.63841176", "0.6383608", "0.6366359", "0.6366359", "0.6327871", "0.6252626", "0.6252626", "0.6252626", "0.61977273", "0.61977273", "0.6172789", "0.61492634", "0.609231", "0.6041985", "0.60156626", "0.5966867", "0.59488374", "0.59424454", "0.59424454", "0.58818734", "0.5869592", "0.5867425", "0.5863533", "0.58610195", "0.5835966", "0.5804131", "0.5784519", "0.57789767", "0.5758677", "0.57414603", "0.5721609", "0.5721609", "0.5668135", "0.56603193", "0.5633169", "0.56186", "0.56181455", "0.5613699", "0.56103945", "0.5605661", "0.55992484", "0.55979246", "0.55978405", "0.559277", "0.55858064", "0.55757725", "0.5568522", "0.55541706", "0.5550302", "0.55312574", "0.55291784", "0.55154186", "0.5511178", "0.5497027", "0.5496646", "0.5472956", "0.5472928", "0.54683465", "0.54683465", "0.546187", "0.5451426", "0.544261", "0.5441372", "0.5439616", "0.5436853", "0.54262125", "0.54259086", "0.5417977", "0.5417977", "0.5417977", "0.5417977", "0.5417977", "0.5417977", "0.5398058", "0.53972894", "0.53969866", "0.5384457", "0.53836334", "0.53740686", "0.53732556", "0.5347727", "0.5339577", "0.53360075", "0.5335781", "0.5334551", "0.5326863", "0.5325487", "0.53172314", "0.5317113", "0.5315314", "0.5313879", "0.53021", "0.5296822", "0.5296584", "0.5295845" ]
0.6916237
0
Returns the result of interpreting the object as an instance of 'Atomic'. This implementation returns null; returning a nonnull result will terminate the switch.
public T caseAtomic(Atomic object) { return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public AtomicValue asAtomic() throws ValidationException {\n throw makeException();\n }", "public T caseAtom(Atom object)\n {\n return null;\n }", "public T caseAtom(Atom object)\n {\n return null;\n }", "public int getAtomicNumber() {\n }", "private static boolean isAtomic(Object o) {\n return o instanceof AtomicReference\n || o instanceof AtomicBoolean\n || o instanceof AtomicInteger\n || o instanceof AtomicLong;\n }", "@Override\n\tpublic boolean isAtomic() {\n\t\treturn true;\n\t}", "private V getDoneValue(Object obj) throws ExecutionException {\n if (obj instanceof Cancellation) {\n throw cancellationExceptionWithCause(\"Task was cancelled.\", ((Cancellation) obj).cause);\n } else if (obj instanceof Failure) {\n throw new ExecutionException(((Failure) obj).exception);\n } else if (obj == NULL) {\n return null;\n } else {\n return obj;\n }\n }", "public T casePartnerActivityToAtomicActionMapping(PartnerActivityToAtomicActionMapping object) {\n\t\treturn null;\n\t}", "public Item evaluateItem(XPathContext context) throws XPathException {\n Item item = operand.evaluateItem(context);\n if (item==null) return null;\n return ((AtomicValue)item).convert(requiredPrimitiveType, context);\n }", "public boolean isAtomic() {\n return false;\n }", "public static boolean isAtomic(Object o) {\n return isAtomic(findType(o));\n }", "public T caseOperation_Equals(Operation_Equals object)\r\n {\r\n return null;\r\n }", "public BuiltInAtomicType getPrimitiveType() {\n return BuiltInAtomicType.NOTATION;\n }", "public Object getResult()\n/* */ {\n/* 129 */ Object resultToCheck = this.result;\n/* 130 */ return resultToCheck != RESULT_NONE ? resultToCheck : null;\n/* */ }", "public AtomicInteger getAtomicId() { return this.atomicId; }", "AtomicData createAtomicData();", "public T caseBooleanOperation(BooleanOperation object) {\n\t\treturn null;\n\t}", "public abstract O value();", "public static void main(String[] args) {\n Simple simple = new Simple(\"James\", 29);\n //AtomicReference --> creates possible ABA problem\n AtomicReference<Simple> atomicSimple= new AtomicReference<>(simple);\n System.out.println(atomicSimple.get());\n //expect false\n boolean falseResult = atomicSimple.compareAndSet(new Simple(\"Henry\", 22), new Simple(\"Andy\", 23));\n System.out.println(falseResult);\n boolean falseResult1 = atomicSimple.compareAndSet(new Simple(\"James\",29), new Simple(\"Andy\", 23));\n System.out.println(falseResult1);\n boolean result = atomicSimple.compareAndSet(simple, new Simple(\"Andy\", 23));\n System.out.println(result);\n }", "public T caseOperation_Unary(Operation_Unary object)\r\n {\r\n return null;\r\n }", "public T caseSingle(Single object) {\n\t\treturn null;\n\t}", "@Converted(kind = Converted.Kind.AUTO,\n source = \"${LLVM_SRC}/llvm/tools/clang/lib/CodeGen/CGAtomic.cpp\", line = 1271,\n FQN=\"clang::CodeGen::CodeGenFunction::LValueIsSuitableForInlineAtomic\", NM=\"_ZN5clang7CodeGen15CodeGenFunction31LValueIsSuitableForInlineAtomicENS0_6LValueE\",\n cmd=\"jclank.sh -java-options=${SPUTNIK}/modules/org.clang.codegen/llvmToClangType -split-class=clang::CodeGen::CodeGenFunction@this ${LLVM_SRC}/llvm/tools/clang/lib/CodeGen/CGAtomic.cpp -nm=_ZN5clang7CodeGen15CodeGenFunction31LValueIsSuitableForInlineAtomicENS0_6LValueE\")\n//</editor-fold>\npublic final boolean LValueIsSuitableForInlineAtomic(LValue LV) {\n if (!$this().CGM.getCodeGenOpts().MSVolatile) {\n return false;\n }\n AtomicInfo AI/*J*/= new AtomicInfo(/*Deref*/$this(), LV);\n boolean IsVolatile = LV.isVolatile() || $this().hasVolatileMember(LV.getType());\n // An atomic is inline if we don't need to use a libcall.\n boolean AtomicIsInline = !AI.shouldUseLibcall();\n // MSVC doesn't seem to do this for types wider than a pointer.\n if ($greater_ulong($this().getContext().getTypeSize(LV.getType())\n , $this().getContext().getTypeSize($this().getContext().getIntPtrType()))) {\n return false;\n }\n return IsVolatile && AtomicIsInline;\n}", "public T caseResultManagement(ResultManagement object)\r\n {\r\n return null;\r\n }", "public T caseOpBool(OpBool object)\n {\n return null;\n }", "public long getAtomicLong(){return atomicLong.incrementAndGet();}", "public T caseOperation_NotUnary(Operation_NotUnary object)\r\n {\r\n return null;\r\n }", "public native T get();", "public T caseValue(Value object) {\n\t\treturn null;\n\t}", "public T caseValue(Value object) {\n\t\treturn null;\n\t}", "public T caseValue(Value object) {\n\t\treturn null;\n\t}", "V m19258a() throws CancellationException, ExecutionException, InterruptedException {\n acquireSharedInterruptibly(-1);\n return getValue();\n }", "public T caseUnary_Operation(Unary_Operation object)\r\n {\r\n return null;\r\n }", "public T caseOperation_Not_Equals(Operation_Not_Equals object)\r\n {\r\n return null;\r\n }", "public T caseExecutableNode(ExecutableNode object) {\n\t\treturn null;\n\t}", "public BuiltInAtomicType getPrimitiveType() {\r\n return BuiltInAtomicType.STRING;\r\n }", "public T caseSynchronousMachine(SynchronousMachine object) {\n\t\treturn null;\n\t}", "public T caseTask(Task object) {\n\t\treturn null;\n\t}", "public Object objectValue();", "public T caseOperation(Operation object) {\r\n\t\treturn null;\r\n\t}", "public final std.pair<RValue, Value /*P*/ > EmitAtomicCompareExchange(LValue Obj, RValue Expected, RValue Desired, SourceLocation Loc, \n AtomicOrdering Success/*= AtomicOrdering::SequentiallyConsistent*/, AtomicOrdering Failure/*= AtomicOrdering::SequentiallyConsistent*/, boolean IsWeak/*= false*/, \n AggValueSlot Slot/*= AggValueSlot::ignored()*/) {\n assert (!Expected.isAggregate() || Expected.getAggregateAddress().getElementType() == Obj.getAddress().getElementType());\n assert (!Desired.isAggregate() || Desired.getAggregateAddress().getElementType() == Obj.getAddress().getElementType());\n AtomicInfo Atomics/*J*/= new AtomicInfo(/*Deref*/$this(), Obj);\n \n return Atomics.EmitAtomicCompareExchange(new RValue(Expected), new RValue(Desired), Success, Failure, \n IsWeak);\n}", "public T caseOperation(Operation object)\r\n {\r\n return null;\r\n }", "public T caseOperation_Less_Equals(Operation_Less_Equals object)\r\n {\r\n return null;\r\n }", "public Object getValue() {\n if (_valueIndex <= 0)\n return null;\n return ((ConstantEntry) getPool().getEntry(_valueIndex)).getConstant();\n }", "public T caseCompBool(CompBool object)\n {\n return null;\n }", "public T caseWorkflow(Workflow object) {\n\t\treturn null;\n\t}", "public T getValue() {\n return casValue.getValue();\n }", "public T caseAsynchStatement(AsynchStatement object) {\n\t\treturn null;\n\t}", "public T caseOperation_Compare(Operation_Compare object)\r\n {\r\n return null;\r\n }", "public PrimObject primitive351(PrimContext context) {\n final Integer value = (Integer) this.javaValue;\n final PrimObject argument = context.argumentAt(0);\n final PrimClass argClass = argument.selfClass();\n if (argClass.equals(resolveObject(\"Integer\"))) {\n Integer argValue = (Integer) context.argumentJavaValueAt(0);\n return smalltalkBoolean(value.equals(argValue));\n }\n else {\n //Converet types using next smalltalk code:\n // <code> (aNumber adaptInteger: self) = aNumber adaptToInteger </code>\n PrimObject leftOperand = argument.perform0(\"adaptInteger\", this);\n PrimObject rightOperand = argument.perform0(\"adaptInteger\");\n return leftOperand.perform0(\"=\", rightOperand);\n }\n }", "@Test\n public void atomicCreation() {\n long startVersion = stm.getVersion();\n\n IntRef intValue = new IntRef(10);\n\n assertEquals(startVersion, stm.getVersion());\n assertNotNull(getThreadLocalTransaction());\n assertEquals(10, intValue.get());\n }", "public /* @Nullable */ T getValue() {\n return value;\n }", "public Object getObject()\n {\n initialize();\n\n if (_invariant)\n return _cachedValue;\n\n return resolveProperty();\n }", "public abstract boolean casValue(AbstractFuture<?> abstractFuture, Object obj, Object obj2);", "public T casebooleanTerm(booleanTerm object)\n {\n return null;\n }", "@NotNull\n T getValue();", "public boolean isNonAtomic() {\n return nonAtomic;\n }", "public T casePrimaryExpression(PrimaryExpression object)\n {\n return null;\n }", "public T caseBooleanValue(BooleanValue object) {\n\t\treturn null;\n\t}", "public T caseBinaryExpr(BinaryExpr object) {\n\t\treturn null;\n\t}", "Object value();", "public T caseAnalogValue(AnalogValue object) {\n\t\treturn null;\n\t}", "public T caseResultTask(ResultTask object) {\n\t\treturn null;\n\t}", "public T caseComparisonOperator(ComparisonOperator object) {\n\t\treturn null;\n\t}", "public @Nullable T getValue() {\n return this.value;\n }", "public T casePrimType(PrimType object) {\n\t\treturn null;\n\t}", "public E peek() {\n try {\n return b(1, (Long) null, (TimeUnit) null);\n } catch (InterruptedException unused) {\n return null;\n }\n }", "@Override\n\tpublic V get() {\n\t\tV result = null;\n\t\ttry {\n\t\t\tresult = fTask.get();\n\t\t} catch (InterruptedException | ExecutionException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn result;\n\t}", "public T caseCompoundExpr(CompoundExpr object)\n {\n return null;\n }", "public T caseValBool(ValBool object)\n {\n return null;\n }", "public T caseCore(Core object) {\r\n\t\treturn null;\r\n\t}", "T value();", "public T caseTERM(TERM object)\n {\n return null;\n }", "public T caseIdentPrimary(IdentPrimary object)\n {\n return null;\n }", "public T casePrimaryExpression(PrimaryExpression object)\n\t{\n\t\treturn null;\n\t}", "public T casePrimitiveDefinition(PrimitiveDefinition object)\n {\n return null;\n }", "public T caseConductor(Conductor object) {\n\t\treturn null;\n\t}", "public T caseOpaqueAction(OpaqueAction object) {\n\t\treturn null;\n\t}", "public double getAtomicNumber(MAPAtomAbstract a_oAtom) {\n\t\tdouble t_dAtomicNumber = 0.0D;\n\n\t\t// For atom group number XXX: to consider it should be large or small number\n\t\tif ( a_oAtom instanceof MAPAtomGroup ) return 999.9D;\n\n\t\tAtomicProperties t_enumAP = AtomicProperties.forSymbol( a_oAtom.getSymbol() );\n\t\tt_dAtomicNumber = t_enumAP.getAtomicNumber();\n\n\t\t// Add small number for star\n\t\tif ( a_oAtom instanceof MAPStar )\n\t\t\tt_dAtomicNumber += 0.01D;\n\n\t\t// Add aditional weight\n\t\tif ( this.m_mapAtomToAdditionalWeight.containsKey(a_oAtom) )\n\t\t\tt_dAtomicNumber += this.m_mapAtomToAdditionalWeight.get(a_oAtom);\n\n\t\t\treturn t_dAtomicNumber;\n\t}", "public T caseActivityFinalNode(ActivityFinalNode object) {\n\t\treturn null;\n\t}", "public T caseAnalog(Analog object) {\n\t\treturn null;\n\t}", "public T caseBasica(Basica object)\n {\n return null;\n }", "public T caseExpression_Boolean(Expression_Boolean object)\r\n {\r\n return null;\r\n }", "private final boolean IsAtomic(String expression) {\r\n if (this._kripke.Atoms.contains(expression)) {\r\n return true;\r\n }\r\n \r\n return false;\r\n }", "public T caseSimple(Simple object) {\n\t\treturn null;\n\t}", "public T caseTerminal(Terminal object) {\n\t\treturn null;\n\t}", "public T caseExprArithmetic(ExprArithmetic object)\n {\n return null;\n }", "public T caseWaitForOne(WaitForOne object) {\n\t\treturn null;\n\t}", "public T caseBooleanVariable(BooleanVariable object)\n {\n return null;\n }", "@Nullable public abstract Object getConstantValue() throws CompileException;", "public Object getValue() {\n\t\treturn object;\n\t}", "public Object get(Object obj) {\n return c().a(obj);\n }", "public T caseActivity(Activity object) {\n\t\treturn null;\n\t}", "public T caseEquals(Equals object) {\n\t\treturn null;\n\t}", "@Nullable\n /* renamed from: a */\n public abstract C4891ao mo18474a(Object obj, boolean z);", "@SuppressWarnings(\"unchecked\")\n @Nullable\n public T getValue() {\n Object data = mData;\n if (data != NOT_SET) {\n return (T) data;\n }\n return null;\n }", "public T caseDecision(Decision object) {\n\t\treturn null;\n\t}", "public T caseFinalNode(FinalNode object) {\n\t\treturn null;\n\t}", "protected abstract O getResult();", "public T getValue();", "public T caseBooleanLiteral(BooleanLiteral object)\n {\n return null;\n }" ]
[ "0.6000798", "0.58641267", "0.58641267", "0.5687279", "0.55798537", "0.54674417", "0.5419654", "0.5377981", "0.5336697", "0.5325984", "0.52802217", "0.5114787", "0.5024162", "0.50214136", "0.50213784", "0.48913494", "0.4891167", "0.48602232", "0.4829008", "0.48212114", "0.48188734", "0.4814858", "0.48084745", "0.47873923", "0.47841454", "0.47706795", "0.47683585", "0.4763657", "0.4763657", "0.4763657", "0.47634658", "0.4761845", "0.4761231", "0.475314", "0.4746373", "0.4743004", "0.47391033", "0.47377563", "0.4730841", "0.47301158", "0.4726074", "0.47243214", "0.47220734", "0.46754614", "0.4660096", "0.46598658", "0.46521056", "0.46365783", "0.46204022", "0.46136045", "0.4602515", "0.4596608", "0.45964047", "0.4593741", "0.45927927", "0.4586704", "0.45750362", "0.45739248", "0.4569568", "0.4569225", "0.45683953", "0.4563914", "0.45238093", "0.45209587", "0.45193976", "0.45166427", "0.45150128", "0.45147273", "0.45055357", "0.44926888", "0.44907635", "0.4487809", "0.44854707", "0.4468418", "0.44598138", "0.44576928", "0.44546956", "0.4453484", "0.44522494", "0.44504228", "0.44498414", "0.44481575", "0.44454557", "0.44419658", "0.44414616", "0.44389212", "0.44316033", "0.44295406", "0.44244364", "0.44193253", "0.44172814", "0.44155338", "0.44139898", "0.44131342", "0.44087508", "0.44056627", "0.44020185", "0.4401323", "0.44002646", "0.43956864" ]
0.75183755
0
Returns the result of interpreting the object as an instance of 'Calculated'. This implementation returns null; returning a nonnull result will terminate the switch.
public T caseCalculated(Calculated object) { return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Boolean getIsCalculated() {\n return this.isCalculated;\n }", "@Override\n public Float calc() {\n\treturn null;\n }", "protected abstract SoyValue compute();", "protected abstract Object doCalculations();", "@Override\n public Float compute() {\n\treturn calc();\n }", "@Override\r\n public double eval() {\r\n return (this.child == null) ? 0.0 : this.child.eval();\r\n }", "Object getValue(VisualPropertyType calcType);", "@ReflectiveMethod(name = \"m\", types = {})\n public float m(){\n return (float) NMSWrapper.getInstance().exec(nmsObject);\n }", "public Object getResult()\n/* */ {\n/* 129 */ Object resultToCheck = this.result;\n/* 130 */ return resultToCheck != RESULT_NONE ? resultToCheck : null;\n/* */ }", "protected abstract Value evaluate();", "public Object getResult() {\n if (result == null) {\n return defaultResult();\n } else {\n return result;\n }\n }", "public abstract Object getDecisionValue();", "@Override\n\tpublic void getResultat() {\n\t\tcalcul();\n\t}", "public final Object evaluateCurrent() {\n RolapCalculation maxSolveMember;\n switch (calculationCount) {\n case 0:\n final Object o = cellReader.get(this);\n if (o == Util.nullValue) {\n return null;\n }\n return o;\n\n case 1:\n maxSolveMember = calculations[0];\n break;\n\n default:\n switch (root.solveOrderMode) {\n case ABSOLUTE:\n maxSolveMember = getAbsoluteMaxSolveOrder();\n break;\n case SCOPED:\n maxSolveMember = getScopedMaxSolveOrder();\n break;\n default:\n throw Util.unexpected(root.solveOrderMode);\n }\n }\n final int savepoint = savepoint();\n maxSolveMember.setContextIn(this);\n final Calc calc = maxSolveMember.getCompiledExpression(root);\n final Object o;\n try {\n o = calc.evaluate(this);\n } finally {\n restore(savepoint);\n }\n if (o == Util.nullValue) {\n return null;\n }\n return o;\n }", "protected abstract O getResult();", "void ComputeResult(Object result);", "@Override\n public double calcValue() throws IllegalArgumentException {\n // calcolo ricorsivo del risultato dell'operazione\n double l = leftChild.calcValue();\n double r = rightChild.calcValue();\n // effettivo calcolo del risultato\n return oper.getOperation().calcValue(l, r);\n }", "public abstract M getValue();", "public abstract double calcular();", "public T caseExprArithmetic(ExprArithmetic object)\n {\n return null;\n }", "public ValueType getResultValue() {\n\t\treturn this.value;\n\t}", "@Override\n\tpublic void calc() {\n\t\tcalculated = true;\n\t\tanswer=operand1-operand2;\n\t}", "public abstract void calculate();", "@Override\r\n\tpublic String getResult() {\n\t\tString res;\r\n\t\ttry {\r\n\t\t\tresult = c.calculate(o.getFirst(), o.getSecond(), o.getOperator());\r\n\t\t\t// System.out.println(\"00\");\r\n\t\t} catch (Exception e) {\r\n\t\t\t// TODO: handle exception\r\n\r\n\t\t\tthrow new RuntimeException();\r\n\t\t}\r\n\r\n\t\tres = String.valueOf(result);\r\n\r\n\t\treturn res;\r\n\t}", "public final Object getCachedResult(ExpCacheDescriptor cacheDescriptor) {\n final Object key = getExpResultCacheKey(cacheDescriptor);\n Object result = root.getCacheResult(key);\n if (result == null) {\n boolean aggCacheDirty = cellReader.isDirty();\n int aggregateCacheMissCountBefore = cellReader.getMissCount();\n result = cacheDescriptor.evaluate(this);\n int aggregateCacheMissCountAfter = cellReader.getMissCount();\n\n boolean isValidResult;\n\n if (!aggCacheDirty\n && (aggregateCacheMissCountBefore\n == aggregateCacheMissCountAfter))\n {\n // Cache the evaluation result as valid result if the\n // evaluation did not use any missing aggregates. Missing\n // aggregates could be used when aggregate cache is not fully\n // loaded, or if new missing aggregates are seen.\n isValidResult = true;\n } else {\n // Cache the evaluation result as invalid result if the\n // evaluation uses missing aggregates.\n isValidResult = false;\n }\n root.putCacheResult(\n key,\n result == null ? nullResult : result,\n isValidResult);\n } else if (result == nullResult) {\n result = null;\n }\n\n return result;\n }", "@Override\r\n\tpublic Value interpret() {\n\t\treturn null;\r\n\t}", "public final EObject ruleCalculate() throws RecognitionException {\n EObject current = null;\n\n Token otherlv_0=null;\n Token otherlv_1=null;\n Token otherlv_3=null;\n AntlrDatatypeRuleToken lv_calculateType_2_0 = null;\n\n\n\n \tenterRule();\n\n try {\n // InternalMLRegression.g:969:2: ( (otherlv_0= 'calculate' otherlv_1= ':' ( (lv_calculateType_2_0= ruleCalculateType ) ) otherlv_3= ';' ) )\n // InternalMLRegression.g:970:2: (otherlv_0= 'calculate' otherlv_1= ':' ( (lv_calculateType_2_0= ruleCalculateType ) ) otherlv_3= ';' )\n {\n // InternalMLRegression.g:970:2: (otherlv_0= 'calculate' otherlv_1= ':' ( (lv_calculateType_2_0= ruleCalculateType ) ) otherlv_3= ';' )\n // InternalMLRegression.g:971:3: otherlv_0= 'calculate' otherlv_1= ':' ( (lv_calculateType_2_0= ruleCalculateType ) ) otherlv_3= ';'\n {\n otherlv_0=(Token)match(input,29,FOLLOW_4); \n\n \t\t\tnewLeafNode(otherlv_0, grammarAccess.getCalculateAccess().getCalculateKeyword_0());\n \t\t\n otherlv_1=(Token)match(input,12,FOLLOW_17); \n\n \t\t\tnewLeafNode(otherlv_1, grammarAccess.getCalculateAccess().getColonKeyword_1());\n \t\t\n // InternalMLRegression.g:979:3: ( (lv_calculateType_2_0= ruleCalculateType ) )\n // InternalMLRegression.g:980:4: (lv_calculateType_2_0= ruleCalculateType )\n {\n // InternalMLRegression.g:980:4: (lv_calculateType_2_0= ruleCalculateType )\n // InternalMLRegression.g:981:5: lv_calculateType_2_0= ruleCalculateType\n {\n\n \t\t\t\t\tnewCompositeNode(grammarAccess.getCalculateAccess().getCalculateTypeCalculateTypeParserRuleCall_2_0());\n \t\t\t\t\n pushFollow(FOLLOW_6);\n lv_calculateType_2_0=ruleCalculateType();\n\n state._fsp--;\n\n\n \t\t\t\t\tif (current==null) {\n \t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getCalculateRule());\n \t\t\t\t\t}\n \t\t\t\t\tset(\n \t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\"calculateType\",\n \t\t\t\t\t\tlv_calculateType_2_0,\n \t\t\t\t\t\t\"m2.idm.project.MLRegression.CalculateType\");\n \t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\n\n }\n\n\n }\n\n otherlv_3=(Token)match(input,13,FOLLOW_2); \n\n \t\t\tnewLeafNode(otherlv_3, grammarAccess.getCalculateAccess().getSemicolonKeyword_3());\n \t\t\n\n }\n\n\n }\n\n\n \tleaveRule();\n\n }\n\n catch (RecognitionException re) {\n recover(input,re);\n appendSkippedTokens();\n }\n finally {\n }\n return current;\n }", "public abstract Object getValue();", "public abstract Object getValue();", "public abstract Object getValue();", "public double getResult() {\n\t\treturn result; // so that skeleton code compiles\n\t}", "public boolean isCalculated() {\n\t\treturn getCalculator() != null && getCalculator().trim().length() > 0;\n\t}", "protected abstract BigDecimal calculate();", "@Override\n protected Integer compute() {\n\n\n return null;\n }", "public Object getElseValue();", "public float getReturn()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(RETURN$0, 0);\r\n if (target == null)\r\n {\r\n return 0.0f;\r\n }\r\n return target.getFloatValue();\r\n }\r\n }", "public abstract R getValue();", "@Override\n public BigDecimal evaluate(TextMap args, String variableName) {\n return null;\n\n// return first.getBonus();\n }", "public abstract O value();", "public Double getResult();", "public Descriptor evaluate() {\n try{\n return new TdiShr(Mds.getActiveMds()).tdiEvaluate(this);\n }catch(final MdsException e){\n return Missing.NEW;\n }\n }", "@Override\n\tpublic O evaluate(I rTarget, Class<O> rClass)\n\t{\n\t\treturn rClass.cast(rTarget);\n\t}", "public Object getValue();", "public Object getValue();", "public Object getValue();", "public Object getValue();", "public Object getValue();", "public int getCalculationValue(){\n return calculationValue;\n }", "float getEvaluationResult();", "public abstract Object eval();", "public T caseIntegerCalculationExpression(IntegerCalculationExpression object) {\n\t\treturn null;\n\t}", "@NotNull\n public final Promise<XExpression> calculateEvaluationExpression() {\n return myValueContainer.calculateEvaluationExpression();\n }", "protected SimulatorValue giveResult() {\n\tthis.evalExpression();\n\treturn value;\n }", "public static Volume do_calc() {\n\t\treturn new Volume();\n\t}", "private BigDecimal evaluateResult() throws MathematicalError {\n if (!popOutOperationStack()) {\n throw new MathematicalError(\"Mismatched parentheses in the expression\");\n }\n for (ListIterator<String> iterator = outputQueue.listIterator(); iterator.hasNext(); ) {\n String element = iterator.next();\n if (!element.startsWith(valueBaseName)) {\n iterator.remove();\n Operation<BigDecimal, MathematicalError> operation = operationMap.get(element);\n int argumentsCount = operation.getArgumentsCount();\n BigDecimal[] arguments = new BigDecimal[argumentsCount];\n for (int i = 0; i < argumentsCount; ++i) {\n arguments[i] = valueMap.get(iterator.previous());\n iterator.remove();\n }\n String valueName = valueBaseName + valueCount++;\n BigDecimal tempResult = operation.getResult(arguments);\n if (tempResult == null) {\n return null;\n }\n valueMap.put(valueName, tempResult);\n iterator.add(valueName);\n }\n }\n return valueMap.get(outputQueue.get(0));\n }", "public E getResult(){\r\n\t\treturn this.result;\r\n\t}", "private void calculate() {\n try {\n String result = \"\";\n switch (mCalculationType) {\n case CONSUMPTION_L_100_KM:\n result = calculateL100Km();\n break;\n case CONSUMPTION_KM_L:\n case CONSUMPTION_MPG:\n result = calculateDistancePerAmount();\n break;\n default:\n makeToast(getResourceString(R.string.err_no_calc_type));\n }\n\n showResult(result);\n } catch (NumberFormatException e) {\n catcher();\n }\n }", "@Override\n public <S> S getValue(Class<S> targetClazz) throws ContextInitializationException {\n if (isResolvableAs(targetClazz)) {\n return targetClazz.cast(getValue());\n } else {\n throw new InvalidMorphTargetException(this, getValueType(), targetClazz);\n }\n }", "public Object getValue() {\n\t\treturn object;\n\t}", "public String getTaxCalculated()\n\t{\n\t\twaitForVisibility(taxCalculated);\n\t\treturn taxCalculated.getText();\n\t}", "@Override\n\tpublic Result getResult() {\n\t\treturn m_Result;\n\t}", "public static org.xms.g.common.api.ResultTransform dynamicCast(java.lang.Object param0) {\n return ((org.xms.g.common.api.ResultTransform) param0);\n }", "public abstract T getValue();", "public abstract T getValue();", "public void calculate();", "Object getValue();", "Object getValue();", "Object getValue();", "Object getValue();", "Object getValue();", "Object getValue();", "Object getValue();", "public abstract Value getValue();", "public Object objectValue();", "@NonNull\n @Override\n public ResultT getResult() {\n if (getFinalResult() == null) {\n throw new IllegalStateException();\n }\n Throwable t = getFinalResult().getError();\n if (t != null) {\n throw new RuntimeExecutionException(t);\n }\n return getFinalResult();\n }", "public double result() {return 0;}", "public T getValue();", "public Object currValue();", "@Override\n\tpublic Integer evaluate() {\n\t\treturn Integer.parseInt(this.getValue());\n\t}", "protected Object evaluate( ) throws Exception {\n return new Double(Math.atan(getDouble(0)));\n }", "public int calculate() {\n \ttraversal(root);\n \tif(!calResult.isEmpty()){\n \t\tint answer = Integer.parseInt(calResult.pop());\n \t\treturn answer;\n \t}\n return 0;\n }", "public BigDecimal getCalculateAmt() {\n return calculateAmt;\n }", "@Override\n\tpublic double evaluate() {\n\t\t// TODO Auto-generated method stub\n\t\treturn 0;\n\t}", "private Object eval(Fact expr) {\n if (expr.getBool() != null) {\n if (\"true\".equals(expr.getBool())) {\n return true;\n } else {\n return false;\n }\n } else if (expr.getString() != null) {\n return expr.getString();\n } else if (expr.getIdent() != null) {\n if (RESULT_TYPE_VARIABLE.equals(resultType)) {\n return expr.getIdent();\n }\n return scope.getVariable(expr.getIdent());\n } else if (expr.getExpr() != null) {\n return eval(expr.getExpr(), resultType);\n } else if (expr.getLocator() != null) {\n return evalLocator(expr.getLocator());\n } else {\n return expr.getNumber();\n }\n }", "public interface Value extends Formula {\n /**\n * Returns the raw Value.\n */\n public Object getRawValue();\n\n /**\n * Returns true if this value is a double.\n */\n public boolean isDouble();\n\n /**\n * Returns true if this value is a string.\n */\n public boolean isString();\n\n /**\n * Returns true if this value is a boolean.\n */\n public boolean isBoolean();\n\n}", "@Override\n\tdouble evaluate() {\n\t\treturn Math.abs(operand.getVal());\n\t}", "public abstract double calculate(Complex c,Complex current);", "public interface CalcModel {\n\t/**\n\t * Adds a listener to the model.\n\t * \n\t * @param l\n\t * listener to ad\n\t */\n\tvoid addCalcValueListener(CalcValueListener l);\n\n\t/**\n\t * Removes a listener from the model.\n\t * \n\t * @param l\n\t * listener to remove\n\t */\n\tvoid removeCalcValueListener(CalcValueListener l);\n\n\t/**\n\t * Returns a string representation of the current value in the calculator.\n\t * \n\t * @return string representation of the current value\n\t */\n\tString toString();\n\n\t/**\n\t * Returns a current value in calculator.\n\t * \n\t * @return current value in calculator\n\t */\n\tdouble getValue();\n\n\t/**\n\t * Sets the current value of the calculator to the given one.\n\t * \n\t * @param value\n\t * value to set\n\t */\n\tvoid setValue(double value);\n\n\t/**\n\t * Clears the current value in the calculator (sets it to 0).\n\t */\n\tvoid clear();\n\n\t/**\n\t * Clears the current value (sets it to 0), clears the active operand and clears\n\t * the pending binary operator.\n\t */\n\tvoid clearAll();\n\n\t/**\n\t * Swaps the sign of the current value in the calculator.\n\t */\n\tvoid swapSign();\n\n\t/**\n\t * Inserts a decimal point into the current number if one already doesn't exist.\n\t */\n\tvoid insertDecimalPoint();\n\n\t/**\n\t * Inserts a digit into the current number at the right most position.\n\t * \n\t * @param digit\n\t * new digit to be inserted\n\t */\n\tvoid insertDigit(int digit);\n\n\t/**\n\t * Checks if the active operand is set.\n\t * \n\t * @return true if active operand is set, false otherwise\n\t */\n\tboolean isActiveOperandSet();\n\n\t/**\n\t * Returns the active operand if it is set.\n\t * \n\t * @return active operand\n\t * @throws IllegalStateException\n\t * if active operand isn't set\n\t */\n\tdouble getActiveOperand();\n\n\t/**\n\t * Sets the active operand.\n\t * \n\t * @param activeOperand\n\t * a value to set as an active operand\n\t */\n\tvoid setActiveOperand(double activeOperand);\n\n\t/**\n\t * Clears the active operand.\n\t */\n\tvoid clearActiveOperand();\n\n\t/**\n\t * Returns pending binary operation.\n\t * \n\t * @return pending binary operation or null if it is not set\n\t */\n\tDoubleBinaryOperator getPendingBinaryOperation();\n\n\t/**\n\t * Sets pending binary operation.\n\t * \n\t * @param op\n\t * binary operator to set\n\t */\n\tvoid setPendingBinaryOperation(DoubleBinaryOperator op);\n}", "public T getResult();", "@Override\n public double execute(Object o) throws InvalidSyntaxException,\n InstantiationException, IllegalAccessException,\n ClassNotFoundException, SlogoException, EndOfStackException {\n return 0;\n }", "public Integer getEvaluate() {\n return evaluate;\n }", "void onResultCalculated(ResultCalculatedEvent event);", "public ResultType getResult() {\r\n return result;\r\n }", "public abstract double getValue();", "public abstract void recalc();", "Object value();", "public abstract float getValue();", "public String getMeasureResult() {\r\n return measureResult;\r\n }", "public T caseFloat(sensorDeploymentLanguage.Float object) {\n\t\treturn null;\n\t}", "public abstract V getValue();" ]
[ "0.6127272", "0.6025307", "0.5806936", "0.57363546", "0.56855637", "0.5591484", "0.5582063", "0.55352056", "0.5533205", "0.5509714", "0.55009025", "0.5475858", "0.5462109", "0.546206", "0.5438094", "0.5411992", "0.54051566", "0.5384475", "0.53790236", "0.53627145", "0.5356927", "0.53555226", "0.5354355", "0.53462934", "0.5320262", "0.53199977", "0.53131515", "0.53083813", "0.53083813", "0.53083813", "0.5302857", "0.52943236", "0.5283265", "0.5259016", "0.5251017", "0.52496773", "0.5246752", "0.5245906", "0.5234235", "0.52331144", "0.52295905", "0.5221565", "0.5208431", "0.5208431", "0.5208431", "0.5208431", "0.5208431", "0.51968485", "0.5163545", "0.5162936", "0.5159334", "0.514782", "0.5144537", "0.5141327", "0.5132677", "0.5109183", "0.51057166", "0.5096353", "0.50753874", "0.5064891", "0.505927", "0.5053979", "0.5052503", "0.5052503", "0.50493145", "0.5048972", "0.5048972", "0.5048972", "0.5048972", "0.5048972", "0.5048972", "0.5048972", "0.50273407", "0.50248754", "0.5014882", "0.5008212", "0.4991243", "0.49835426", "0.49832356", "0.49808437", "0.49775708", "0.4967201", "0.4957741", "0.49486294", "0.494153", "0.49399605", "0.49291238", "0.492859", "0.49249828", "0.49158797", "0.49149686", "0.4908075", "0.4905636", "0.49052963", "0.4901737", "0.48983032", "0.48931262", "0.48929608", "0.4892638", "0.48832288" ]
0.7603749
0
Returns the result of interpreting the object as an instance of 'EObject'. This implementation returns null; returning a nonnull result will terminate the switch, but this is the last case anyway.
@Override public T defaultCase(EObject object) { return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public T caseECU(ECU object) {\r\n\t\treturn null;\r\n\t}", "public T caseExpr(Expr object) {\n\t\treturn null;\n\t}", "public T defaultCase(EObject object)\n {\n return null;\n }", "public T defaultCase(EObject object)\n {\n return null;\n }", "public T caseEjecuciones(Ejecuciones object)\n {\n return null;\n }", "public T caseEHPC(EHPC object)\n {\n return null;\n }", "public T caseExpression(Expression object)\n\t{\n\t\treturn null;\n\t}", "public T caseOrden(Orden object) {\n\t\treturn null;\n\t}", "public T caseExpression(Expression object) {\n\t\treturn null;\n\t}", "public T caseExprCar(ExprCar object)\n {\n return null;\n }", "public T caseECUType(ECUType object) {\r\n\t\treturn null;\r\n\t}", "public T caseExpression(Expression object) {\r\n\t\treturn null;\r\n\t}", "public T caseEpk(Epk object) {\n\t\treturn null;\n\t}", "public T caseExprIf(ExprIf object)\n {\n return null;\n }", "public T defaultCase(EObject object) {\r\n\t\treturn null;\r\n\t}", "public T defaultCase(EObject object) {\n\t\treturn null;\n\t}", "public T defaultCase(EObject object) {\n\t\treturn null;\n\t}", "public T defaultCase(EObject object) {\n\t\treturn null;\n\t}", "public T defaultCase(EObject object) {\n\t\treturn null;\n\t}", "public T defaultCase(EObject object) {\n\t\treturn null;\n\t}", "public T defaultCase(EObject object) {\n\t\treturn null;\n\t}", "@Override\r\n public T defaultCase(EObject object)\r\n {\r\n return null;\r\n }", "@Override\r\n public T defaultCase(EObject object)\r\n {\r\n return null;\r\n }", "@Override\n public T defaultCase(EObject object)\n {\n return null;\n }", "@Override\n public T defaultCase(EObject object)\n {\n return null;\n }", "@Override\n public T defaultCase(EObject object)\n {\n return null;\n }", "@Override\n public T defaultCase(EObject object)\n {\n return null;\n }", "@Override\n public T defaultCase(EObject object)\n {\n return null;\n }", "@Override\n public T defaultCase(EObject object)\n {\n return null;\n }", "@Override\n\tpublic T defaultCase(EObject object)\n\t{\n\t\treturn null;\n\t}", "@Override\r\n\tpublic T defaultCase(EObject object) {\r\n\t\treturn null;\r\n\t}", "@Override\r\n\tpublic T defaultCase(EObject object) {\r\n\t\treturn null;\r\n\t}", "@Override\r\n\tpublic T defaultCase(EObject object) {\r\n\t\treturn null;\r\n\t}", "@Override\r\n\tpublic T defaultCase(EObject object) {\r\n\t\treturn null;\r\n\t}", "public T caseEOPENCL(EOPENCL object)\n {\n return null;\n }", "public T caseEMPI(EMPI object)\n {\n return null;\n }", "public T caseEOPENCLCase(EOPENCLCase object)\n {\n return null;\n }", "public static EObject getEObject(IGraphicalEditPart graphicalEditPart) {\r\n\t\tif (graphicalEditPart instanceof DiagramEditPart) {\r\n\t\t\tDiagramEditPart diagramEditPart = (DiagramEditPart) graphicalEditPart;\r\n\t\t\treturn diagramEditPart.getNotationView().getElement();\r\n\t\t}\r\n\r\n\t\tif (graphicalEditPart instanceof ShapeNodeEditPart || graphicalEditPart instanceof ConnectionNodeEditPart) {\r\n\t\t\treturn graphicalEditPart.getPrimaryView().getElement();\r\n\t\t}\r\n\r\n\t\treturn null;\r\n\t}", "public T caseExpression(Expression object)\n {\n return null;\n }", "public T caseExpression(Expression object)\n {\n return null;\n }", "public T caseExpression(Expression object)\r\n {\r\n return null;\r\n }", "public Object defaultCase(EObject object) {\r\n\t\treturn null;\r\n\t}", "public T caseElement(Element object) {\n\t\treturn null;\n\t}", "public T caseElement(Element object) {\n\t\treturn null;\n\t}", "public T caseElement(Element object) {\n\t\treturn null;\n\t}", "public T caseCommon_Expression(at.jku.weiner.c.common.common.Expression object)\n\t{\n\t\treturn null;\n\t}", "public Object defaultCase(EObject object) {\n\t\treturn null;\n\t}", "public Object defaultCase(EObject object) {\n\t\treturn null;\n\t}", "public T caseExprThen(ExprThen object)\n {\n return null;\n }", "public T caseValue(Value object) {\n\t\treturn null;\n\t}", "public T caseValue(Value object) {\n\t\treturn null;\n\t}", "public T caseValue(Value object) {\n\t\treturn null;\n\t}", "public T caseAtom(Atom object)\n {\n return null;\n }", "public T caseAtom(Atom object)\n {\n return null;\n }", "public T caseExprElse(ExprElse object)\n {\n return null;\n }", "public T caseElement(Element object)\n {\n return null;\n }", "public T caseTerminalExpression(TerminalExpression object)\n {\n return null;\n }", "public T caseNode(Node object) {\n\t\treturn null;\n\t}", "public T caseNode(Node object) {\n\t\treturn null;\n\t}", "@Override\r\n\tpublic T defaultCase(EObject object) {\r\n return null;\r\n }", "public T caseOrExpression(OrExpression object)\n {\n return null;\n }", "public T caseExecutableNode(ExecutableNode object) {\n\t\treturn null;\n\t}", "public T caseExpressionOrVector(ExpressionOrVector object)\n {\n return null;\n }", "public T caseIdentifiedObject(IdentifiedObject object) {\n\t\treturn null;\n\t}", "public T doSwitch(EObject theEObject)\n {\n return doSwitch(theEObject.eClass(), theEObject);\n }", "public T doSwitch(EObject theEObject)\n {\n return doSwitch(theEObject.eClass(), theEObject);\n }", "public T caseBinaryExpr(BinaryExpr object) {\n\t\treturn null;\n\t}", "public Object caseElement(Element object) {\r\n\t\treturn null;\r\n\t}", "public T caseCore(Core object) {\r\n\t\treturn null;\r\n\t}", "public T caseEOPENACCCase(EOPENACCCase object)\n {\n return null;\n }", "public T casePreExpr(PreExpr object) {\n\t\treturn null;\n\t}", "public T caseDecisionNode(DecisionNode object) {\n\t\treturn null;\n\t}", "public T caseEHPCData(EHPCData object)\n {\n return null;\n }", "public T casePrimaryExpression(PrimaryExpression object)\n\t{\n\t\treturn null;\n\t}", "public T caseEXPRESSION(EXPRESSION object)\n {\n return null;\n }", "public T caseExprCdr(ExprCdr object)\n {\n return null;\n }", "public T caseExquery(Exquery object)\n {\n return null;\n }", "public T caseExpression_ProcessRef(Expression_ProcessRef object)\r\n {\r\n return null;\r\n }", "public T caseEMPICase(EMPICase object)\n {\n return null;\n }", "public T doSwitch(EObject theEObject) {\r\n\t\treturn doSwitch(theEObject.eClass(), theEObject);\r\n\t}", "public T casePrimaryExpression(PrimaryExpression object)\n {\n return null;\n }", "public Object caseRCodeElement(RCodeElement object) {\n\t\treturn null;\n\t}", "public T caseThisExpr(ThisExpr object) {\n\t\treturn null;\n\t}", "public T doSwitch(EObject theEObject) {\n\t\treturn doSwitch(theEObject.eClass(), theEObject);\n\t}", "public T doSwitch(EObject theEObject) {\n\t\treturn doSwitch(theEObject.eClass(), theEObject);\n\t}", "public T doSwitch(EObject theEObject) {\n\t\treturn doSwitch(theEObject.eClass(), theEObject);\n\t}" ]
[ "0.6621662", "0.6619107", "0.6467152", "0.6467152", "0.64147896", "0.6410219", "0.6380842", "0.6361195", "0.6360865", "0.6333534", "0.6332085", "0.63295203", "0.6322036", "0.6320016", "0.63097686", "0.628742", "0.628742", "0.628742", "0.628742", "0.628742", "0.628742", "0.6286906", "0.6286906", "0.6285186", "0.6285186", "0.6285186", "0.6285186", "0.6285186", "0.6285186", "0.628494", "0.62823635", "0.62823635", "0.62823635", "0.62823635", "0.6279477", "0.6275966", "0.62535286", "0.623977", "0.622908", "0.622908", "0.6213817", "0.62090236", "0.6188055", "0.6188055", "0.6188055", "0.61814564", "0.6176564", "0.6176564", "0.6176252", "0.61664116", "0.61664116", "0.61664116", "0.61634046", "0.61634046", "0.6160009", "0.6159703", "0.6085356", "0.6084601", "0.6084601", "0.6079084", "0.60785836", "0.6049037", "0.6028775", "0.6027802", "0.6009641", "0.6009641", "0.5995727", "0.59953845", "0.59932804", "0.5992599", "0.5991271", "0.59815586", "0.59742785", "0.5972923", "0.5967867", "0.595336", "0.59460384", "0.594363", "0.5941733", "0.59401894", "0.59337264", "0.5924629", "0.59173036", "0.5908308", "0.5908308", "0.5908308" ]
0.62441194
51
Service Interface for organization fees type. This service act as controller for organization fees type details.
public interface BuildingBlockService { /** * Retrieves the building block by id. * * @param id * the id of building block to be retrieved. * @return building block. * @throws BusinessException * In case of exception. */ BuildingBlock findBuildingBlockById(Long id) throws BusinessException; /** * Retrieves all building blocks available. * * @return all building blocks available. * @throws BusinessException * In case of exception. */ Collection<BuildingBlock> findAllBuildingBlocks() throws BusinessException; /** * Saves the building block. * * @return the persisted building block. * @throws BusinessException * In case of exception. */ BuildingBlock saveBuildingBlock(BuildingBlock buildingBlock) throws BusinessException; /** * Removes the building block. * * @throws BusinessException * In case of exception. */ void removeBuildingBlock(BuildingBlock buildingBlock) throws BusinessException; /** * Retrieves all building blocks by building block type. * * @return all building blocks by building block type. * @throws BusinessException * In case of exception. */ Collection<BuildingBlock> findBuildingBlocksByType(BuildingBlockConstant buildingBlockType) throws BusinessException; /** * Retrieves all building blocks for branch id. * * @param branchId * branch object id for which all building blocks have to be * retrieved. * @return all building blocks for branch id. * @throws BusinessException * In case of exception. */ Collection<BuildingBlock> findBuildingBlocksbyBranchId(Long branchId) throws BusinessException; /** * Retrieves all building blocks for branch id and building block type. * * @param branchId * branch object id. * @param buildingBlockType * building block type. * @return all building blocks for branch id and building block type. * @throws BusinessException * In case of exception. */ Collection<BuildingBlock> findBuildingBlocksbyBranchIdAndBuildingBlockType(Long branchId, BuildingBlockConstant buildingBlockType) throws BusinessException; /** * Retrieves building block by building block type and code. * * @param buildingBlockType * building block type. * * @param code * building block code. * @return all building blocks by building block type. * @throws BusinessException * In case of exception. */ BuildingBlock findBuildingBlockByTypeAndCode(BuildingBlockConstant buildingBlockType, String code) throws BusinessException; /** * Retrieve all mandatory building blocks. * * @return collection of all mandatory building blocks. */ Collection<BuildingBlock> findAllMandatoryBuildingBlocks() throws SystemException; /** * Retrieve all fee Type building blocks for a branch by fee classification. * * @param branchId * the branch id. * @param feeClassificationLevel * the fee classification level constant. * @return * @throws BusinessException * in case of any business exceptions. */ Collection<BuildingBlock> findFeeTypeBuildingBlocksbyBranchIdAndFeeClassificationLevel(final Long branchId, FeeClassificationLevelConstant feeClassificationLevel) throws BusinessException, SystemException; /** * Retrieve all fee Type building block for a branch by fee type. * * @param branchId * the branch id. * @param feeClassificationLevel * the fee classification level constant. * @return * @throws BusinessException * in case of any business exceptions. */ Collection<BuildingBlock> findFeeTypeBuildingBlocksbyBranchIdAndFeeType(Long branchId, final FeeTypeConstant feeTypeConstant) throws BusinessException, SystemException; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface StorePaymentModeFeeService\n{\n\n /**\n * Finds the payment mode fee applicable to the given store and payment mode\n * \n * @param store\n * @param paymentMode\n * @return The StorePaymentModeFeeModel matching the given store and payment mode, or null if there is no existing\n * payment mode fee matching those values.\n */\n StorePaymentModeFeeModel findFeeForStoreAndPaymentMode(final BaseStoreModel store, final PaymentModeModel paymentMode);\n\n}", "@Schema(description = \"The type of fee. For more information about Selling on Amazon fees, see [Selling on Amazon Fee Schedule](https://sellercentral.amazon.com/gp/help/200336920) on Seller Central. For more information about Fulfillment by Amazon fees, see [FBA features, services and fees](https://sellercentral.amazon.com/gp/help/201074400) on Seller Central.\")\n public String getFeeType() {\n return feeType;\n }", "public AmountType getFee() {\n\t return this.fee;\n\t}", "public void setFee(AmountType fee) {\n\t this.fee = fee;\n\t}", "public interface FinancialYearSettingsService {\n\n /**\n * Save a financialYearSettings.\n *\n * @param financialYearSettingsDTO the entity to save\n * @return the persisted entity\n */\n FinancialYearSettingsDTO save(FinancialYearSettingsDTO financialYearSettingsDTO);\n\n /**\n * Get all the financialYearSettings.\n *\n * @param pageable the pagination information\n * @return the list of entities\n */\n Page<FinancialYearSettingsDTO> findAll(Pageable pageable);\n\n\n /**\n * Get the \"id\" financialYearSettings.\n *\n * @param id the id of the entity\n * @return the entity\n */\n Optional<FinancialYearSettingsDTO> findOne(Long id);\n\n /**\n * Delete the \"id\" financialYearSettings.\n *\n * @param id the id of the entity\n */\n void delete(Long id);\n}", "public interface EmployeeType {\n public double GetPaymentAmount();\n}", "public interface FinanceService {\n //查看全部Finance\n PageInfo<Finance> queryAll(int pageNum,int pageSize);\n //添加,时间为当前时间\n public int addFinance(Finance finance);\n //获取类型菜单\n public List<Type> queryAllType();\n //修改,时间为当前时间,其他都修改\n public int updateFinance(Finance finance);\n //通过id查看Finance\n public Finance queryFinanceById(int id);\n //删除一条信息\n public int deleteFinanceById(int id);\n //删除多条信息\n public Integer deleteFinanceByIds(List<Integer> ids);\n //查询两个时间段之间的类型\n public List<Finance> queryCreatedateAndToCreatedate(String createDateNo1, String createDateNo2,Integer typeid);\n}", "public interface IPLMBasicFeeInfoService {\n\n void save(IMetaObjectImpl object);\n\n //费率信息\n\n void delete(int objid);\n void deleteByIds_(String objids);\n void deleteByProductId(int productid);\n\n IMetaDBQuery getSearchList(Map<String, String> map);\n IMetaObjectImpl getInfoById(int objid);\n\n public IMetaDBQuery queryByids(String objids);\n List<Map> getListByProductId(int productid);\n\n //获得管理费统计信息\n\n List<Map> getManageFeeCountList(Map map);\n\n\n\n //利率要素\n IMetaObjectImpl getInfoById_feeRate(int objid);\n void delete_feeRate(int objid);\n void deleteByIds__feeRate(String objids);\n void deleteByProductId_feeRate(int productid);\n\n List<Map> getListByProductId_feeRate(int productid);\n\n\n}", "public interface OrderPaymentTypeService {\n\n List<OrderPaymentType> getAllOrderPaymentTypes();\n\n OrderPaymentType getOrderTypeByName(String name);\n\n\n}", "@Override\r\n public Class<Investment> getEntityType() {\n return Investment.class;\r\n }", "public void setFee(int fee)\n {\n this.fee = fee;\n }", "public interface FixerIncomeService {\n List<FixerIncome> listIncome(Integer fixerId, Date startDate, Date endDate, boolean withPaymentInfo);\n}", "public interface IPaymentService {\r\n\r\n\r\n\r\n\t/**\r\n\t * Metodo que permite hacer le pago por PSE\r\n\t * @return factura de la factura generada\r\n\t */\r\n\tpublic FacturaCompra pagoPSE(String userName,TipoMoneda tipoMoneda);\r\n\t\r\n\t\r\n\t/**\r\n\t * Metodo que permite hacer le pago por PSE\r\n\t * @return factura de la factura generada\r\n\t */\r\n\tpublic FacturaCompra pagoCreditCard(String userName,TipoMoneda tipoMoneda);\r\n\t\r\n\t/**\r\n\t * Metodo que permite realizar el pago \r\n\t * mediante efectivo en un punto de pago\r\n\t * @return\r\n\t */\r\n\tpublic FacturaCompra cashOnDelivery(String userName,TipoMoneda tipoMoneda);\r\n\t\r\n}", "StorePaymentModeFeeModel findFeeForStoreAndPaymentMode(final BaseStoreModel store, final PaymentModeModel paymentMode);", "public interface FactoryOrderDetailService {\n\n List<SchedulingDomain> schedulingInfo(Integer factId,Integer soId);\n List<ProductionDetailDomain> productionDetailInfo(Integer factId,Integer soId);\n List<ProductionReportDomain> productionReportInfo(Integer factId,Integer soId);\n List<CompletionDomain> completionInfo(Integer factId,Integer soId);\n List<ProductionRecordDomain> productionRecordInfo();\n\n List<FactoryCapacityDomain> capaTypes();\n}", "@Service\npublic interface SalaryFormService {\n\n void addSalaryForm(SalaryFormEntity salaryFormEntity) throws IOException;\n List<SalaryFormEntity> getSalaryForms();\n SalaryFormEntity getSalaryFormById(Long id);\n List<SalaryFormEntity> deleteSalaryFormBySearchRequest(SearchSalaryRequest searchSalaryRequest) throws IOException;\n ArrayList<String> getListFromFile(String fileName) throws IOException;\n List<SalaryFormEntity> getSalaryFormListBySearchRequest(SearchSalaryRequest searchSalaryRequest) throws IOException;\n\n boolean validateSearchSalaryRequest(SearchSalaryRequest searchSalaryRequest) throws IOException;\n boolean validateEntity(SalaryFormEntity salaryFormEntity) throws IOException;\n\n int searchAverageSalaryByParameters(SearchSalaryRequest searchSalaryRequest) throws IOException;\n}", "@Repository\npublic interface FeeBaseService {\n List<FeeBase> selectList(Integer roleId);\n}", "public interface CPAllocationGeneralExpenseDetailsService {\n\n /**\n * Save a cPAllocationGeneralExpenseDetails.\n *\n * @param cPAllocationGeneralExpenseDetails the entity to save\n * @return the persisted entity\n */\n CPAllocationGeneralExpenseDetails save(CPAllocationGeneralExpenseDetails cPAllocationGeneralExpenseDetails);\n\n /**\n * Get all the cPAllocationGeneralExpenseDetails.\n *\n * @param pageable the pagination information\n * @return the list of entities\n */\n Page<CPAllocationGeneralExpenseDetails> findAll(Pageable pageable);\n\n /**\n * Get all the cPAllocationGeneralExpenseDetails.\n *\n * @param cPPeriodID the pagination information\n * @return the list of entities\n */\n List<CPAllocationGeneralExpenseDetails> findAllByCPPeriodID(UUID cPPeriodID);\n\n\n /**\n * Get the \"id\" cPAllocationGeneralExpenseDetails.\n *\n * @param id the id of the entity\n * @return the entity\n */\n Optional<CPAllocationGeneralExpenseDetails> findOne(UUID id);\n\n /**\n * Delete the \"id\" cPAllocationGeneralExpenseDetails.\n *\n * @param id the id of the entity\n */\n void delete(UUID id);\n}", "public interface AclOrgService {\n\n /**\n * 根据ID查询出部门\n */\n AclOrg findById(Long id);\n\n /**\n * 查询出所有部门\n */\n List<AclOrg> findAll();\n\n /**\n * 查询处所有父部门\n */\n List<AclOrg> findAllParent();\n\n /**\n * 保存部门\n */\n @PreAuthorize(\"hasAuthority('ORG_SAVE')\")\n AclOrg save(AclOrg aclOrg);\n\n /**\n * 根据ID删除部门\n */\n @PreAuthorize(\"hasAuthority('ORG_DELETE')\")\n void del(Long id);\n\n /**\n * 分页列表\n */\n @PreAuthorize(\"hasAuthority('ORG_LIST')\")\n Page<AclOrg> selectPageList(int pageNumber, int pageSize, Map<Object, Object> filter);\n}", "public interface DeliveryService {\n\n public List<Delivery> listDelivery(int pageStart, int pageSize);\n\n public int countDelivery();\n\n public List<Delivery> listDeliveryByStock(int pageStart, int pageSize, String class_id, String entity_id, String stock_id, String officeId);\n\n public List<Delivery> listDeliveryByOffice(int pageStart, int pageSize,String stock_id);\n\n public List<Delivery> listDeliveryUNIONStorageByOffice(int pageStart, int pageSize, String stock_id);\n\n public Map<String, Object> addDelivery(Stock stock, Delivery delivery,String status);\n\n public Map<String, Object> addDelivery(Delivery delivery, String status);\n\n public boolean updateDeliveryStatus(String id);\n\n public Map<String, Object> deliveryReport(String startDate,String endDate);\n\n}", "public interface IOrgTeamService extends IBaseService {\n\n List<Map<String, Object>> findByCondition(OrgTeamBean searchBean, Page page);\n\n void addOrgTeam(CfsOrgTeam orgTeam);\n\n void updateOrgTeam(CfsOrgTeam orgTeam);\n\n CfsOrgTeam getOrgTeam(Long id);\n\n\tList<CfsOrgTeam> find(OrgTeamBean searchBean, Page page);\n\n OrganizationBean getByTeamId(Long teamId);\n\n\tCfsOrgTeam getOrgTeamById(Long id);\n}", "public interface IndustryViewService {\n\n /**\n * 获取一个行业的基本数据统计信息\n *\n * @param industryName 行业名称\n * @param period 时间间隔\n * @return 行业基本数据VO包\n */\n IndustryVO getBasicIndustryInfo(String industryName, IndustryPeriodEnum period) throws NotFoundException;\n\n /**\n * 获取一个行业一段时间内的价格统计信息(折线图)\n *\n * @param industryName 行业名称\n * @param period 时间间隔\n * @return 行业基本数据VO包\n */\n LinearChartVO getIndustryPrice(String industryName, IndustryPeriodEnum period) throws NotFoundException;\n\n /**\n * 获取一个行业一段时间内的涨跌幅与大盘涨跌幅对比(折线图)\n *\n * @param industryName 行业名称\n * @param period 时间\n * @return\n * @throws BadInputException\n * @throws NotFoundException\n */\n LinearChartVO getCompareLinearChartVO(String industryName, IndustryPeriodEnum period) throws BadInputException, NotFoundException;\n\n /**\n * 获取一个行业一段时间内的资金流向统计信息(柱状图)\n *\n * @param industryName 行业名称\n * @param period 时间间隔\n * @return 行业基本数据VO包\n */\n VolumeVO getIndustryVolume(String industryName, IndustryPeriodEnum period) throws NotFoundException;\n\n /**\n * 获取所有行业涨跌幅排行榜\n *\n * @return 按照涨到跌排序的行业\n */\n List<RiseAndFallVO> getRiseAndFallList();\n}", "@Override\n\tpublic int fees() {\n\t\treturn 25000;\n\t\t\n\t}", "public interface MutableFeeLogService {\n /**\n * 校验请求编号是否唯一\n * @param requestNo 请求编号\n * @throws ApiException 若请求编号不唯一,抛出异常:请求编号重复\n */\n void checkByRequestNo(String requestNo) throws ApiException;\n\n void saveMutableFeeLog(MutableFee mutableFee, String ip, String resultMsg);\n}", "public interface ConsultarExpedienteService {\n \n DyctContribuyenteDTO buscarNumcontrol(String numControl); \n \n DeclaracionConsultarExpedienteVO buscarOrigenSaldo(String numControl); \n \n ExpedienteDTO buscarExpedienteNumControl(String noControl);\n \n TramiteCortoDTO buscaNumeroControl(String noControl, String rfc);\n \n TramiteCortoDTO buscaNumeroControl(String noControl);\n \n List<DocumentoReqDTO> buscaDocumentoRequerido (String numControl);\n \n List<SolicitudAdministrarSolVO> selecXNumControlEstAprobado(String numControl);\n\n void actualizarFolioNYVFechaNoti(String numControlDoc, String numControl, String folio, String fecha) throws SIATException;\n \n}", "@NotNull(message = \"{NotNull.gov.nih.nci.calims2.domain.administration.customerservice.BillingInformation.type}\")\n \n @ManyToOne(fetch = FetchType.LAZY)\n@JoinColumn(name = \"TYPE_FK\")\[email protected](name = \"BILLINTYPE_FK\")\n\n public gov.nih.nci.calims2.domain.common.Type getType() {\n return type;\n }", "public int getFee()\n {\n return fee;\n }", "public interface ICommitteeService {\n /**\n *\n * @param orgnizationList\n * @param number\n * @param page\n * @return\n * @throws DMException\n */\n List<Person> getCandidatePerson(List<Orgnization> orgnizationList,String number,Page page) throws DMException;\n /**\n *\n * @param condition\n * @param page\n * @return\n * @throws DMException\n */\n List<CommitteeInfo> getByCondition(CommitteeCondition condition, Page page) throws DMException;\n\n /**\n *\n * @param condition\n * @return\n * @throws DMException\n */\n int countByCondition(CommitteeCondition condition)throws DMException;\n\n /**\n *\n * @param activitistInfo\n * @throws DMException\n */\n void createCommitteeInfo(CommitteeInfo activitistInfo) throws DMException;\n\n /**\n *\n * @param activitistInfo\n * @throws DMException\n */\n void deleteCommitteeInfo(CommitteeInfo activitistInfo) throws DMException;\n\n /**\n *\n * @param activitistId\n * @return\n * @throws DMException\n */\n CommitteeInfo getById(int activitistId) throws DMException;\n\n /**\n *\n * @param person\n * @return\n * @throws DMException\n */\n CommitteeInfo getByPerson(Person person) throws DMException;\n}", "public interface ISysDeptService extends IBaseService<SysDept> {\n\n /**\n * 校验部门名称是否唯一\n *\n * @param dept 部门信息\n * @return 结果\n */\n String checkDeptNameUnique(SysDept dept);\n\n /**\n * 查询部门是否存在用户\n *\n * @param deptId 部门ID\n * @return 结果 true 存在 false 不存在\n */\n Boolean checkDeptExistUser(Long deptId);\n\n /**\n * 查询部门管理树\n *\n * @param dept 部门信息\n * @return 所有部门信息\n */\n List<Ztree> selectDeptTree(SysDept dept);\n\n /**\n * 根据角色ID查询菜单\n *\n * @param role 角色对象\n * @return 菜单列表\n */\n List<Ztree> roleDeptTreeData(SysRole role);\n}", "public interface BudgetRateAndBaseService {\n\n /**\n * Calculates the applicable F & A rate for the given award. This should be\n * the F&A rate based on the start date of the award's budget.\n *\n * @param award\n * the award to calculate the applicable rate for\n * @return a BudgetDecimal representing the rate, or null or no rate for the\n * given affective date could be found\n * @throws IllegalArgumentException\n * if the given award is null\n * @throws IllegalArgumentException\n * if the given award does not have a budget\n * @throws IllegalStateException\n * if the located budget does not have a start date\n */\n ScaleTwoDecimal calculateApplicableFandARate(Award award);\n\n}", "FundRateStepService(){\r\n\t\tfundRateStepDao=new FundRateStepDao();\r\n\t}", "public interface TITransferDetailsService {\n\n /**\n * Save a tITransferDetails.\n *\n * @param tITransferDetails the entity to save\n * @return the persisted entity\n */\n TITransferDetails save(TITransferDetails tITransferDetails);\n\n /**\n * Get all the tITransferDetails.\n *\n * @param pageable the pagination information\n * @return the list of entities\n */\n Page<TITransferDetails> findAll(Pageable pageable);\n\n\n /**\n * Get the \"id\" tITransferDetails.\n *\n * @param id the id of the entity\n * @return the entity\n */\n Optional<TITransferDetails> findOne(UUID id);\n\n /**\n * Delete the \"id\" tITransferDetails.\n *\n * @param id the id of the entity\n */\n void delete(UUID id);\n}", "public interface TypeService {\r\n\r\n /**\r\n * Récupérer la table des types\r\n *\r\n * @return liste de TypeDto\r\n */\r\n public List<TypeDto> getTableType();\r\n\r\n public TypeDto fusionType(final TypeDto type1, final TypeDto type2, final boolean force);\r\n\r\n public TypeDto sommeType(final TypeDto type1, final TypeDto type2, final boolean force);\r\n\r\n public TypeDto getTypeDto(final String type);\r\n\r\n public List<FaiblesseDto> getTeamFaiblesse(final List<PokemonDto> team);\r\n}", "public interface GoalModelingFactory extends EFactory {\n\t/**\n\t * The singleton instance of the factory.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t */\n\tGoalModelingFactory eINSTANCE = pt.fct.unl.novalincs.useme.model.GoalModeling.impl.GoalModelingFactoryImpl.init();\n\n\t/**\n\t * Returns a new object of class '<em>Goal Specification</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Goal Specification</em>'.\n\t * @generated\n\t */\n\tGoalSpecification createGoalSpecification();\n\n\t/**\n\t * Returns a new object of class '<em>Goal Model</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Goal Model</em>'.\n\t * @generated\n\t */\n\tGoalModel createGoalModel();\n\n\t/**\n\t * Returns a new object of class '<em>Usability Goal</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Usability Goal</em>'.\n\t * @generated\n\t */\n\tUsabilityGoal createUsabilityGoal();\n\n\t/**\n\t * Returns a new object of class '<em>Actor</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Actor</em>'.\n\t * @generated\n\t */\n\tActor createActor();\n\n\t/**\n\t * Returns a new object of class '<em>Scope</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Scope</em>'.\n\t * @generated\n\t */\n\tScope createScope();\n\n\t/**\n\t * Returns a new object of class '<em>Method</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Method</em>'.\n\t * @generated\n\t */\n\tMethod createMethod();\n\n\t/**\n\t * Returns a new object of class '<em>Success Coverage</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Success Coverage</em>'.\n\t * @generated\n\t */\n\tSuccessCoverage createSuccessCoverage();\n\n\t/**\n\t * Returns a new object of class '<em>Usability Requirement</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Usability Requirement</em>'.\n\t * @generated\n\t */\n\tUsabilityRequirement createUsabilityRequirement();\n\n\t/**\n\t * Returns the package supported by this factory.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the package supported by this factory.\n\t * @generated\n\t */\n\tGoalModelingPackage getGoalModelingPackage();\n\n}", "public void setDeliveryFee(int deliveryFee)\n {\n this.deliveryFee = deliveryFee;\n }", "public interface BusinessObjectFormatService\n{\n /**\n * Creates a new business object format.\n *\n * @param businessObjectFormatCreateRequest the business object format create request.\n *\n * @return the created business object format.\n */\n public BusinessObjectFormat createBusinessObjectFormat(BusinessObjectFormatCreateRequest businessObjectFormatCreateRequest);\n\n /**\n * Updates a business object format.\n *\n * @param businessObjectFormatKey the business object format key\n * @param businessObjectFormatUpdateRequest the business object format update request\n *\n * @return the updated business object format.\n */\n public BusinessObjectFormat updateBusinessObjectFormat(BusinessObjectFormatKey businessObjectFormatKey,\n BusinessObjectFormatUpdateRequest businessObjectFormatUpdateRequest);\n\n /**\n * Gets a business object format for the specified key. This method starts a new transaction.\n *\n * @param businessObjectFormatKey the business object format key\n *\n * @return the business object format\n */\n public BusinessObjectFormat getBusinessObjectFormat(BusinessObjectFormatKey businessObjectFormatKey);\n\n /**\n * Deletes a business object format.\n *\n * @param businessObjectFormatKey the business object format alternate key\n *\n * @return the business object format that was deleted\n */\n public BusinessObjectFormat deleteBusinessObjectFormat(BusinessObjectFormatKey businessObjectFormatKey);\n\n /**\n * Gets a list of business object formats for the specified business object definition name.\n *\n * @param businessObjectDefinitionKey the business object definition key\n * @param latestBusinessObjectFormatVersion specifies is only the latest (maximum) versions of the business object formats are returned\n *\n * @return the list of business object formats.\n */\n public BusinessObjectFormatKeys getBusinessObjectFormats(BusinessObjectDefinitionKey businessObjectDefinitionKey,\n boolean latestBusinessObjectFormatVersion);\n\n /**\n * Gets a list of business object formats for the specified business object definition name and business object format usage.\n *\n * @param businessObjectDefinitionKey the business object definition key\n * @param businessObjectFormatUsage the business object format usage\n * @param latestBusinessObjectFormatVersion specifies is only the latest (maximum) versions of the business object formats are returned\n *\n * @return the list of business object formats.\n */\n public BusinessObjectFormatKeys getBusinessObjectFormatsWithFilters(BusinessObjectDefinitionKey businessObjectDefinitionKey,\n String businessObjectFormatUsage, boolean latestBusinessObjectFormatVersion);\n\n /**\n * Retrieves the DDL to initialize the specified type of the database system (e.g. Hive) by creating a table for the requested business object format. This\n * method starts a new transaction.\n *\n * @param businessObjectFormatDdlRequest the business object format DDL request\n *\n * @return the business object format DDL information\n */\n public BusinessObjectFormatDdl generateBusinessObjectFormatDdl(BusinessObjectFormatDdlRequest businessObjectFormatDdlRequest);\n\n /**\n * Retrieves the DDL to initialize the specified type of the database system (e.g. Hive) by creating tables for a collection of business object formats.\n * This method starts a new transaction.\n *\n * @param businessObjectFormatDdlCollectionRequest the business object format DDL collection request\n *\n * @return the business object format DDL information\n */\n public BusinessObjectFormatDdlCollectionResponse generateBusinessObjectFormatDdlCollection(\n BusinessObjectFormatDdlCollectionRequest businessObjectFormatDdlCollectionRequest);\n\n /**\n * Update business object format parents\n *\n * @param businessObjectFormatKey business object format key\n * @param businessObjectFormatParentsUpdateRequest business object format parents update request\n *\n * @return business object format\n */\n public BusinessObjectFormat updateBusinessObjectFormatParents(BusinessObjectFormatKey businessObjectFormatKey,\n BusinessObjectFormatParentsUpdateRequest businessObjectFormatParentsUpdateRequest);\n\n /**\n * Updates a business object format attributes.\n *\n * @param businessObjectFormatKey the business object format key\n * @param businessObjectFormatAttributesUpdateRequest the business object format attributes update request\n *\n * @return the updated business object format.\n */\n public BusinessObjectFormat updateBusinessObjectFormatAttributes(BusinessObjectFormatKey businessObjectFormatKey,\n BusinessObjectFormatAttributesUpdateRequest businessObjectFormatAttributesUpdateRequest);\n\n /**\n * Replaces the list of attribute definitions for an existing business object format.\n *\n * @param businessObjectFormatKey the business object format key\n * @param businessObjectFormatAttributeDefinitionsUpdateRequest the business object format attribute definitions update request\n *\n * @return the updated business object format.\n */\n public BusinessObjectFormat updateBusinessObjectFormatAttributeDefinitions(BusinessObjectFormatKey businessObjectFormatKey,\n BusinessObjectFormatAttributeDefinitionsUpdateRequest businessObjectFormatAttributeDefinitionsUpdateRequest);\n\n /**\n * Update business object format retention information\n * @param businessObjectFormatKey the business object format alternate key\n * @param businessObjectFormatRetentionInformationUpdateRequest business object format retention information update request\n * @return updated business object format\n */\n public BusinessObjectFormat updateBusinessObjectFormatRetentionInformation(BusinessObjectFormatKey businessObjectFormatKey,\n BusinessObjectFormatRetentionInformationUpdateRequest businessObjectFormatRetentionInformationUpdateRequest);\n}", "@RequestMapping(value = \"/free-cfdis\",\n method = RequestMethod.GET,\n produces = MediaType.APPLICATION_JSON_VALUE,\n params = {\"idFree_cfdi\", \"folio_fiscal\",\"rfc_receiver\",\"fromDate\", \"toDate\", \"idState\",\"serie\", \"folio\"})\n @Timed\n public ResponseEntity<List<Free_cfdi>> getAllFree_cfdis(@RequestParam(value = \"idFree_cfdi\") Integer idFree_cfdi,\n @RequestParam(value = \"folio_fiscal\") String folio_fiscal,\n @RequestParam(value = \"rfc_receiver\") String rfc_receiver,\n @RequestParam(value = \"fromDate\") @DateTimeFormat(iso = DateTimeFormat.ISO.DATE) LocalDate fromDate,\n @RequestParam(value = \"toDate\") @DateTimeFormat(iso = DateTimeFormat.ISO.DATE) LocalDate toDate,\n @RequestParam(value = \"idState\") Integer idState,\n @RequestParam(value = \"serie\") String serie,\n @RequestParam(value = \"folio\") String folio,\n Pageable pageable)\n throws URISyntaxException {\n log.debug(\"REST request to get a page of Free_cfdis\");\n\n String login = SecurityUtils.getCurrentUserLogin();\n Optional<User> user = userService.getUserWithAuthoritiesByLogin(login);\n if(user.isPresent()){\n boolean administrator = false;\n for(Authority item: user.get().getAuthorities()){\n if(item.getName().compareTo(\"ROLE_ADMIN\")==0){\n administrator = true;\n }\n }\n if(administrator){\n if (idFree_cfdi == 0 && folio_fiscal.compareTo(\" \") == 0 && rfc_receiver.compareTo(\" \") == 0 &&\n fromDate.toString().compareTo(\"0001-01-01\") == 0 && toDate.toString().compareTo(\"0001-01-01\") == 0 &&\n idState == 0 && serie.compareTo(\" \") == 0 && folio.compareTo(\" \") == 0) {\n log.debug(\"Obtener todos para el admin\");\n Page<Free_cfdi> page = free_cfdiService.findAll(pageable);\n HttpHeaders headers = PaginationUtil.generatePaginationHttpHeaders(page, \"/api/free-cfdis\");\n Long idauditevent = new Long(\"36\");\n Audit_event_type audit_event_type = audit_event_typeService.findOne(idauditevent);\n C_state_event c_state_event;\n Long idstate = new Long(\"1\");\n c_state_event = c_state_eventService.findOne(idstate);\n tracemgService.saveTrace(audit_event_type, c_state_event);\n\n return new ResponseEntity<>(page.getContent(), headers, HttpStatus.OK);\n }else\n {\n log.debug(\"Obtener alguno para el admin\");\n LocalDate inicio = fromDate;\n LocalDate datefinal = toDate;\n Page<Free_cfdi> page = free_cfdiService.findCustomAdmin(idFree_cfdi, folio_fiscal, rfc_receiver,\n inicio, datefinal, idState, serie, folio, pageable);\n HttpHeaders headers = PaginationUtil.generatePaginationHttpHeaders(page, \"/api/free-cfdis\");\n Long idauditevent = new Long(\"36\");\n Audit_event_type audit_event_type = audit_event_typeService.findOne(idauditevent);\n C_state_event c_state_event;\n Long idstate = new Long(\"1\");\n c_state_event = c_state_eventService.findOne(idstate);\n tracemgService.saveTrace(audit_event_type, c_state_event);\n return new ResponseEntity<>(page.getContent(), headers, HttpStatus.OK);\n }\n }else{\n Free_emitter free_emitter = free_emitterService.findOneByUser(userRepository.findOneByLogin(login).get());\n if(free_emitter != null) {\n Long idauditevent = new Long(\"36\");\n Audit_event_type audit_event_type = audit_event_typeService.findOne(idauditevent);\n C_state_event c_state_event;\n Long idstate = new Long(\"1\");\n c_state_event = c_state_eventService.findOne(idstate);\n tracemgService.saveTrace(audit_event_type, c_state_event);\n\n if (idFree_cfdi == 0 && folio_fiscal.compareTo(\" \") == 0 && rfc_receiver.compareTo(\" \") == 0 &&\n fromDate.toString().compareTo(\"0001-01-01\") == 0 && toDate.toString().compareTo(\"0001-01-01\") == 0 &&\n idState == 0 && serie.compareTo(\" \") == 0 && folio.compareTo(\" \") == 0) {\n log.debug(\"Obtener todos\");\n Page<Free_cfdi> page = free_cfdiService.findByFree_emitter(free_emitter, pageable);\n HttpHeaders headers = PaginationUtil.generatePaginationHttpHeaders(page, \"/api/free-cfdis\");\n\n return new ResponseEntity<>(page.getContent(), headers, HttpStatus.OK);\n } else {\n log.debug(\"Obtener alguno\");\n LocalDate inicio = fromDate;\n LocalDate datefinal = toDate;\n Page<Free_cfdi> page = free_cfdiService.findCustom(idFree_cfdi, folio_fiscal, rfc_receiver,\n inicio, datefinal, idState, serie, folio, free_emitter, pageable);\n HttpHeaders headers = PaginationUtil.generatePaginationHttpHeaders(page, \"/api/free-cfdis\");\n return new ResponseEntity<>(page.getContent(), headers, HttpStatus.OK);\n }\n }else\n {\n Long idauditevent = new Long(\"36\");\n Audit_event_type audit_event_type = audit_event_typeService.findOne(idauditevent);\n C_state_event c_state_event;\n Long idstate = new Long(\"2\");\n c_state_event = c_state_eventService.findOne(idstate);\n tracemgService.saveTrace(audit_event_type, c_state_event);\n return ResponseEntity.badRequest().headers(HeaderUtil.createFailureAlert(\"free_cfdi\", \"notfound\", \"Free CFDI not found\")).body(null);\n }\n }\n }\n Long idauditevent = new Long(\"36\");\n Audit_event_type audit_event_type = audit_event_typeService.findOne(idauditevent);\n C_state_event c_state_event;\n Long idstate = new Long(\"2\");\n c_state_event = c_state_eventService.findOne(idstate);\n tracemgService.saveTrace(audit_event_type, c_state_event);\n return ResponseEntity.badRequest().headers(HeaderUtil.createFailureAlert(\"free_cfdi\", \"notfound\", \"Free CFDI not found\")).body(null);\n\n }", "public interface TypeOperationService {\n\n\n}", "@Service\npublic interface CourierService {\n\tpublic Long saveCourier(Courier courier);\n\tpublic Courier searchCourierByCode(String code);\n//\tpublic boolean checkCourierByEmail(String email);\n//\tpublic void updateCourier(Courier courier);\n\tpublic List<String> getAllEnabledCourierCode();\n\tpublic List<String> getAllCourierCode();\n\tpublic List<Courier> getCourierByType(String type);\n\tpublic void enableCourier(Long id);\n\tpublic void disableCourier(Long id);\n\tpublic Courier findCourierByid(Long id);\n\tpublic List<Courier> getAllcourier();\n\tpublic List<Courier> getEnabledCourier();\n\tpublic boolean checkName(String courierName);\n\tpublic boolean checkCode(String courierCode);\n\tpublic Long getCourierIdByCode(String Code);\n//\tpublic AWBResult getAWB(String pincode, String shippingMode);\n//\tpublic void unSetAWB(String courierCode, String trackingNumber);\n}", "TransportationServiceType getFinalDeliveryTransportationService();", "public ArrayList<Fact> createFacts (MAcctSchema as)\n\t{\n\t\t// create Fact Header\n\t\tFact fact = new Fact(this, as, Fact.POST_Actual);\n\t\t//\tCash Transfer or Manual Deposit\n\t\tif ((\"X\".equals(m_TenderType) && !MSysConfig.getBooleanValue(\"CASH_AS_PAYMENT\", true, getAD_Client_ID()))\n\t\t\t\t|| \"G\".equals(m_TenderType))\n\t\t{\n\t\t\tArrayList<Fact> facts = new ArrayList<Fact>();\n\t\t\tfacts.add(fact);\n\t\t\treturn facts;\n\t\t}\n\n\t\tint AD_Org_ID = getBank_Org_ID();\t\t//\tBank Account Org\t\n\t\tif (getDocumentType().equals(DOCTYPE_ARReceipt))\n\t\t{\n\t\t\t//\tAsset\n\t\t\tFactLine fl = fact.createLine(null, getAccount(Doc.ACCTTYPE_BankInTransit, as),\n\t\t\t\tgetC_Currency_ID(), getAmount(), null);\n\t\t\tif (fl != null && AD_Org_ID != 0)\n\t\t\t\tfl.setAD_Org_ID(AD_Org_ID);\n\t\t\t//\t\n\t\t\tMAccount acct = null;\n\t\t\tif (getC_Charge_ID() != 0)\n\t\t\t\tacct = MCharge.getAccount(getC_Charge_ID(), as, getAmount());\n\t\t\telse if (m_Prepayment)\n\t\t\t\tacct = getAccount(Doc.ACCTTYPE_C_Prepayment, as);\n\t\t\telse\n\t\t\t\tacct = getAccount(Doc.ACCTTYPE_UnallocatedCash, as);\n\t\t\tfl = fact.createLine(null, acct,\n\t\t\t\tgetC_Currency_ID(), null, getAmount());\n\t\t\tif (fl != null && AD_Org_ID != 0\n\t\t\t\t&& getC_Charge_ID() == 0)\t\t//\tdon't overwrite charge\n\t\t\t\tfl.setAD_Org_ID(AD_Org_ID);\n\t\t}\n\t\t// APP\n\t\telse if (getDocumentType().equals(DOCTYPE_APPayment))\n\t\t{\n\t\t\tMAccount acct = null;\n\t\t\tif (getC_Charge_ID() != 0)\n\t\t\t\tacct = MCharge.getAccount(getC_Charge_ID(), as, getAmount());\n\t\t\telse if (m_Prepayment)\n\t\t\t\tacct = getAccount(Doc.ACCTTYPE_V_Prepayment, as);\n\t\t\telse\n\t\t\t\tacct = getAccount(Doc.ACCTTYPE_PaymentSelect, as);\n\t\t\tFactLine fl = fact.createLine(null, acct,\n\t\t\t\tgetC_Currency_ID(), getAmount(), null);\n\t\t\tif (fl != null && AD_Org_ID != 0\n\t\t\t\t&& getC_Charge_ID() == 0)\t\t//\tdon't overwrite charge\n\t\t\t\tfl.setAD_Org_ID(AD_Org_ID);\n\t\t\t\n\t\t\t//\tAsset\n\t\t\tfl = fact.createLine(null, getAccount(Doc.ACCTTYPE_BankInTransit, as),\n\t\t\t\tgetC_Currency_ID(), null, getAmount());\n\t\t\tif (fl != null && AD_Org_ID != 0)\n\t\t\t\tfl.setAD_Org_ID(AD_Org_ID);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tp_Error = \"DocumentType unknown: \" + getDocumentType();\n\t\t\tlog.log(Level.SEVERE, p_Error);\n\t\t\tfact = null;\n\t\t}\n\t\t//\n\t\tArrayList<Fact> facts = new ArrayList<Fact>();\n\t\tfacts.add(fact);\n\t\treturn facts;\n\t}", "public interface LaborLedgerExpenseTransferAccountingLine extends AccountingLine, ExternalizableBusinessObject {\n\n /**\n * Gets the emplid\n * \n * @return Returns the emplid.\n */\n public String getEmplid();\n\n /**\n * Gets the laborObject\n * \n * @return Returns the laborObject.\n */\n public LaborLedgerObject getLaborLedgerObject();\n\n /**\n * Gets the payrollEndDateFiscalPeriodCode\n * \n * @return Returns the payrollEndDateFiscalPeriodCode.\n */\n public String getPayrollEndDateFiscalPeriodCode();\n\n /**\n * Gets the payrollEndDateFiscalYear\n * \n * @return Returns the payrollEndDateFiscalYear.\n */\n public Integer getPayrollEndDateFiscalYear();\n\n /**\n * Gets the payrollTotalHours\n * \n * @return Returns the payrollTotalHours.\n */\n public BigDecimal getPayrollTotalHours();\n\n /**\n * Gets the positionNumber\n * \n * @return Returns the positionNumber.\n */\n public String getPositionNumber();\n\n /**\n * Sets the emplid\n * \n * @param emplid The emplid to set.\n */\n public void setEmplid(String emplid);\n\n /**\n * Sets the laborLedgerObject\n * \n * @param laborLedgerObject The laborLedgerObject to set.\n */\n public void setLaborLedgerObject(LaborLedgerObject laborLedgerObject);\n\n /**\n * Sets the payrollEndDateFiscalPeriodCode\n * \n * @param payrollEndDateFiscalPeriodCode The payrollEndDateFiscalPeriodCode to set.\n */\n public void setPayrollEndDateFiscalPeriodCode(String payrollEndDateFiscalPeriodCode);\n\n /**\n * Sets the payrollEndDateFiscalYear\n * \n * @param payrollEndDateFiscalYear The payrollEndDateFiscalYear to set.\n */\n public void setPayrollEndDateFiscalYear(Integer payrollEndDateFiscalYear);\n\n /**\n * Sets the payrollTotalHours\n * \n * @param payrollTotalHours The payrollTotalHours to set.\n */\n public void setPayrollTotalHours(BigDecimal payrollTotalHours);\n\n /**\n * Sets the positionNumber\n * \n * @param positionNumber The positionNumber to set.\n */\n public void setPositionNumber(String positionNumber);\n}", "List<MembershipFeeDTO> findAll();", "public interface TypeBonService {\n\n /**\n * Save a typeBon.\n *\n * @param typeBonDTO the entity to save\n * @return the persisted entity\n */\n TypeBonDTO save(TypeBonDTO typeBonDTO);\n\n /**\n * Get all the typeBons.\n *\n * @param pageable the pagination information\n * @return the list of entities\n */\n Page<TypeBonDTO> findAll(Pageable pageable);\n\n\n /**\n * Get the \"id\" typeBon.\n *\n * @param id the id of the entity\n * @return the entity\n */\n Optional<TypeBonDTO> findOne(Long id);\n\n /**\n * Delete the \"id\" typeBon.\n *\n * @param id the id of the entity\n */\n void delete(Long id);\n\n /**\n * Search for the typeBon corresponding to the query.\n *\n * @param query the query of the search\n * \n * @param pageable the pagination information\n * @return the list of entities\n */\n Page<TypeBonDTO> search(String query, Pageable pageable);\n}", "public interface FormulariumService {\n\n FormulariumCode getFormulariumCodeForCnk(Integer cnk, String user, final String orgNIHII);\n}", "public interface TypeTreatmentPlanStatusesService {\n\n /**\n * Save a typeTreatmentPlanStatuses.\n *\n * @param typeTreatmentPlanStatuses the entity to save\n * @return the persisted entity\n */\n TypeTreatmentPlanStatuses save(TypeTreatmentPlanStatuses typeTreatmentPlanStatuses);\n\n /**\n * Get all the typeTreatmentPlanStatuses.\n * \n * @return the list of entities\n */\n List<TypeTreatmentPlanStatuses> findAll();\n\n /**\n * Get the \"id\" typeTreatmentPlanStatuses.\n *\n * @param id the id of the entity\n * @return the entity\n */\n TypeTreatmentPlanStatuses findOne(Long id);\n\n /**\n * Delete the \"id\" typeTreatmentPlanStatuses.\n *\n * @param id the id of the entity\n */\n void delete(Long id);\n\n /**\n * Search for the typeTreatmentPlanStatuses corresponding to the query.\n *\n * @param query the query of the search\n * \n * @return the list of entities\n */\n List<TypeTreatmentPlanStatuses> search(String query);\n}", "@Override\n\tpublic List<ServiceFee> findAll() {\n\t\treturn servicefeerepo.findAll();\n\t}", "public abstract double getComplianceFee();", "public interface EmailAccountService {\n\n RestfulResponse<PageDatas> listAccount(Integer pageNo, Integer pageSize, String search, String sortBy, Boolean isAscending);\n\n RestfulResponse<Long> addAccount(EmailHostAccountDto emailHostAccountDto);\n\n RestfulResponse<Long> updateAccount(EmailHostAccountDto emailHostAccountDto);\n\n RestfulResponse<Long> deleteAccount(Long id);\n\n EmailAccount getEmailAccount(String hostCode, Long hostSizeLimit);\n\n}", "public void saveFiAvailableInvoice(FiAvailableInvoice fiAvailableInvoice);", "public interface DubboOrderShippingService {\n}", "public void setFee(BigDecimal fee) {\r\n this.fee = fee;\r\n }", "@Override\n\tpublic Page<ServiceFee> getAllService(Pageable pageable) {\n\t\treturn servicefeerepo.findAll(pageable);\n\t}", "BusinessEntityFactory getBusinessEntityFactory();", "@Service\npublic interface InsuranceAreaService {\n\n public InsuranceArea getInsuranceAreaById(Long id);\n\n public InsuranceObject getInsuranceObjectById(Long id);\n\n public SecuritySystem getSecuritySystemById(Long id);\n\n public void saveInsuranceArea(InsuranceArea insuranceArea);\n\n public void saveInsuranceObject(InsuranceObject insuranceObject);\n\n public void addSecuritySystemToArea(SecuritySystem securitySystem, InsuranceArea insuranceArea);\n\n public void deleteInsuranceArea(InsuranceArea insuranceArea);\n\n public void deleteInsuranceObject(InsuranceObject insuranceObject);\n\n public void deleteSecuritySystemFromArea(SecuritySystem securitySystem, InsuranceArea insuranceArea);\n\n List<InsuranceArea> getInsuranceAreasForContract(Contract c);\n\n List<SecuritySystem> getSecuritySystemsAvailable(InsuranceArea insuranceArea);\n\n void updateInsuranceArea(InsuranceArea insuranceArea);\n\n List<InsuranceObject> getInsuranceObjectsWithoutPremium(Contract contract);\n\n List<SecuritySystem> getAllSecuritySystems();\n\n void updateObject(InsuranceObject insuranceObject);\n}", "public interface DeptService {\n List<Dept> findAllDepts();\n\n Dept findDeptByName(String dName);\n\n\n List<Employee> searchEmployeeByDeptName(String name);\n\n List<Employee> searchEmployeeByJobName(String name);\n\n void addDept(Dept dept);\n\n void editDept(Dept dept);\n\n void deleteDeptByName(String name);\n}", "public FacultadBusiness() {\n this.facultadJpaController = new FacultadJpaController();\n this.psicologoJpaController = new PsicologoJpaController();\n }", "public interface Shipment_Factory extends EFactory {\n\t/**\n\t * The singleton instance of the factory.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t */\n\tShipment_Factory eINSTANCE = org.abchip.mimo.biz.model.shipment.shipment.impl.Shipment_FactoryImpl.init();\n\n\t/**\n\t * Returns a new object of class '<em>Carrier Shipment Box Type</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Carrier Shipment Box Type</em>'.\n\t * @generated\n\t */\n\tCarrierShipmentBoxType createCarrierShipmentBoxType();\n\n\t/**\n\t * Returns a new object of class '<em>Carrier Shipment Method</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Carrier Shipment Method</em>'.\n\t * @generated\n\t */\n\tCarrierShipmentMethod createCarrierShipmentMethod();\n\n\t/**\n\t * Returns a new object of class '<em>Delivery</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Delivery</em>'.\n\t * @generated\n\t */\n\tDelivery createDelivery();\n\n\t/**\n\t * Returns a new object of class '<em>Shipment</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Shipment</em>'.\n\t * @generated\n\t */\n\tShipment createShipment();\n\n\t/**\n\t * Returns a new object of class '<em>Shipment Attribute</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Shipment Attribute</em>'.\n\t * @generated\n\t */\n\tShipmentAttribute createShipmentAttribute();\n\n\t/**\n\t * Returns a new object of class '<em>Shipment Box Type</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Shipment Box Type</em>'.\n\t * @generated\n\t */\n\tShipmentBoxType createShipmentBoxType();\n\n\t/**\n\t * Returns a new object of class '<em>Shipment Contact Mech</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Shipment Contact Mech</em>'.\n\t * @generated\n\t */\n\tShipmentContactMech createShipmentContactMech();\n\n\t/**\n\t * Returns a new object of class '<em>Shipment Contact Mech Type</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Shipment Contact Mech Type</em>'.\n\t * @generated\n\t */\n\tShipmentContactMechType createShipmentContactMechType();\n\n\t/**\n\t * Returns a new object of class '<em>Shipment Cost Estimate</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Shipment Cost Estimate</em>'.\n\t * @generated\n\t */\n\tShipmentCostEstimate createShipmentCostEstimate();\n\n\t/**\n\t * Returns a new object of class '<em>Shipment Gateway Config</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Shipment Gateway Config</em>'.\n\t * @generated\n\t */\n\tShipmentGatewayConfig createShipmentGatewayConfig();\n\n\t/**\n\t * Returns a new object of class '<em>Shipment Gateway Config Type</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Shipment Gateway Config Type</em>'.\n\t * @generated\n\t */\n\tShipmentGatewayConfigType createShipmentGatewayConfigType();\n\n\t/**\n\t * Returns a new object of class '<em>Shipment Gateway Dhl</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Shipment Gateway Dhl</em>'.\n\t * @generated\n\t */\n\tShipmentGatewayDhl createShipmentGatewayDhl();\n\n\t/**\n\t * Returns a new object of class '<em>Shipment Gateway Fedex</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Shipment Gateway Fedex</em>'.\n\t * @generated\n\t */\n\tShipmentGatewayFedex createShipmentGatewayFedex();\n\n\t/**\n\t * Returns a new object of class '<em>Shipment Gateway Ups</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Shipment Gateway Ups</em>'.\n\t * @generated\n\t */\n\tShipmentGatewayUps createShipmentGatewayUps();\n\n\t/**\n\t * Returns a new object of class '<em>Shipment Gateway Usps</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Shipment Gateway Usps</em>'.\n\t * @generated\n\t */\n\tShipmentGatewayUsps createShipmentGatewayUsps();\n\n\t/**\n\t * Returns a new object of class '<em>Shipment Item</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Shipment Item</em>'.\n\t * @generated\n\t */\n\tShipmentItem createShipmentItem();\n\n\t/**\n\t * Returns a new object of class '<em>Shipment Item Billing</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Shipment Item Billing</em>'.\n\t * @generated\n\t */\n\tShipmentItemBilling createShipmentItemBilling();\n\n\t/**\n\t * Returns a new object of class '<em>Shipment Item Feature</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Shipment Item Feature</em>'.\n\t * @generated\n\t */\n\tShipmentItemFeature createShipmentItemFeature();\n\n\t/**\n\t * Returns a new object of class '<em>Shipment Method Type</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Shipment Method Type</em>'.\n\t * @generated\n\t */\n\tShipmentMethodType createShipmentMethodType();\n\n\t/**\n\t * Returns a new object of class '<em>Shipment Package</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Shipment Package</em>'.\n\t * @generated\n\t */\n\tShipmentPackage createShipmentPackage();\n\n\t/**\n\t * Returns a new object of class '<em>Shipment Package Content</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Shipment Package Content</em>'.\n\t * @generated\n\t */\n\tShipmentPackageContent createShipmentPackageContent();\n\n\t/**\n\t * Returns a new object of class '<em>Shipment Package Route Seg</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Shipment Package Route Seg</em>'.\n\t * @generated\n\t */\n\tShipmentPackageRouteSeg createShipmentPackageRouteSeg();\n\n\t/**\n\t * Returns a new object of class '<em>Shipment Route Segment</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Shipment Route Segment</em>'.\n\t * @generated\n\t */\n\tShipmentRouteSegment createShipmentRouteSegment();\n\n\t/**\n\t * Returns a new object of class '<em>Shipment Status</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Shipment Status</em>'.\n\t * @generated\n\t */\n\tShipmentStatus createShipmentStatus();\n\n\t/**\n\t * Returns a new object of class '<em>Shipment Time Estimate</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Shipment Time Estimate</em>'.\n\t * @generated\n\t */\n\tShipmentTimeEstimate createShipmentTimeEstimate();\n\n\t/**\n\t * Returns a new object of class '<em>Shipment Type</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Shipment Type</em>'.\n\t * @generated\n\t */\n\tShipmentType createShipmentType();\n\n\t/**\n\t * Returns a new object of class '<em>Shipment Type Attr</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Shipment Type Attr</em>'.\n\t * @generated\n\t */\n\tShipmentTypeAttr createShipmentTypeAttr();\n\n\t/**\n\t * Returns a new object of class '<em>Shipping Document</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Shipping Document</em>'.\n\t * @generated\n\t */\n\tShippingDocument createShippingDocument();\n\n\t/**\n\t * Returns the package supported by this factory.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the package supported by this factory.\n\t * @generated\n\t */\n\tShipment_Package getShipment_Package();\n\n}", "public interface BalanceSheetService {\n\n /**\n * Save a balanceSheet.\n *\n * @param balanceSheetDTO the entity to save\n * @return the persisted entity\n */\n BalanceSheetDTO save(BalanceSheetDTO balanceSheetDTO);\n\n /**\n * Get all the balanceSheets.\n *\n * @param pageable the pagination information\n * @return the list of entities\n */\n Page<BalanceSheetDTO> findAll(Pageable pageable);\n\n /**\n * Get the \"id\" balanceSheet.\n *\n * @param id the id of the entity\n * @return the entity\n */\n BalanceSheetDTO findOne(Long id);\n\n /**\n * Delete the \"id\" balanceSheet.\n *\n * @param id the id of the entity\n */\n void delete(Long id);\n}", "public void setFee(BigDecimal fee) {\n this.fee = fee;\n }", "public interface ContinuingEducationService extends EducatonCommonService<ContinuingEducationModel>\r\n{\r\n\tpublic ContinuingEducationModel getByPK(ContinuingEducationPKModel pk) throws AAException;\r\n\t\t\r\n\t/**\r\n\t * Check all the continuing educations in specific cap, if all conditions are matched then return true.\r\n\t *\r\n\t * @param capID\r\n\t * @return true - passed , false - not passed\r\n\t * @throws AAException \r\n\t * @throws RemoteException \r\n\t */\r\n\tpublic boolean isContinuingEducationPassed(CapIDModel capID) throws AAException, RemoteException;\r\n\t\r\n\t/**\r\n\t * Get the total required hours by cap type\r\n\t *\r\n\t * @param capType\t\t\tthe specific cap type model\r\n\t * @return\r\n\t * @throws RemoteException\r\n\t * @throws AAException\r\n\t */\r\n\tpublic double getTotalRequiredHours(CapTypeModel capType) throws RemoteException, AAException;\r\n\r\n\t/**\r\n\t * Get all continuing education info according to the specific cap ID and merge condition.\r\n\t *\r\n\t * @param source\r\n\t * @param isMergeRef true - merge reference data to daily side. false - only return daily side data. \r\n\t * @return \r\n\t * @throws AAException \r\n\t * @throws RemoteException \r\n\t */\r\n\tList<ContinuingEducationModel> getModelsByCapID(CapIDModel capId, boolean isMergeRef) throws AAException, RemoteException;\r\n\t\r\n\t/**\r\n\t * Check if task status is allowed to change. If the task status is configuired to be checked \r\n\t * before changing, then check if task's app have passed the continuing education. \r\n\t *\r\n\t * @param taskItem\r\n\t * @return\r\n\t * @throws AAException \r\n\t * @throws RemoteException \r\n\t */\r\n\tboolean isWorkflowStatusCanBeChanged(TaskItemModel taskItem) throws AAException, RemoteException;\r\n\t\r\n\t/**\r\n\t * Auto approve required cehs.\r\n\t * \r\n\t * @param capId the cap id\r\n\t * @param callerID TODO\r\n\t * \r\n\t * @throws AAException the AA exception\r\n\t * @throws RemoteException the remote exception\r\n\t */\r\n\tpublic void autoApproveRequiredCEHs(CapIDModel capId, String callerID) throws AAException, RemoteException;\r\n\r\n\t/**\r\n\t * Auto approve cont edus.\r\n\t * \r\n\t * @param contEduList the cont edu list\r\n\t * @param capID the cap id\r\n\t * @param callerID the caller id\r\n\t * \r\n\t * @return the int\r\n\t * \r\n\t * @throws AAException the AA exception\r\n\t * @throws RemoteException the remote exception\r\n\t */\r\n\tpublic int autoApproveContEdus(List<ContinuingEducationModel> contEduList, CapIDModel capID, String callerID)\r\n\t\t\tthrows AAException, RemoteException;\r\n\t\r\n}", "public interface ConsultationInfoService {\n\n /**\n * Save a consultationInfo.\n *\n * @param consultationInfoDTO the entity to save\n * @return the persisted entity\n */\n ConsultationInfoDTO save(ConsultationInfoDTO consultationInfoDTO);\n\n /**\n * Get all the consultationInfos.\n *\n * @param pageable the pagination information\n * @return the list of entities\n */\n Page<ConsultationInfoDTO> findAll(Pageable pageable);\n\n\n /**\n * Get the \"id\" consultationInfo.\n *\n * @param id the id of the entity\n * @return the entity\n */\n Optional<ConsultationInfoDTO> findOne(Long id);\n\n /**\n * Delete the \"id\" consultationInfo.\n *\n * @param id the id of the entity\n */\n void delete(Long id);\n\n /**\n * Search for the consultationInfo corresponding to the query.\n *\n * @param query the query of the search\n * \n * @param pageable the pagination information\n * @return the list of entities\n */\n Page<ConsultationInfoDTO> search(String query, Pageable pageable);\n}", "public interface DomainFactory extends EFactory {\r\n\t/**\r\n\t * The singleton instance of the factory.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t */\r\n\tDomainFactory eINSTANCE = edu.isistan.uima.unified.typesystems.domain.impl.DomainFactoryImpl.init();\r\n\r\n\t/**\r\n\t * Returns a new object of class '<em>Action</em>'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return a new object of class '<em>Action</em>'.\r\n\t * @generated\r\n\t */\r\n\tDomainAction createDomainAction();\r\n\r\n\t/**\r\n\t * Returns a new object of class '<em>Number</em>'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return a new object of class '<em>Number</em>'.\r\n\t * @generated\r\n\t */\r\n\tDomainNumber createDomainNumber();\r\n\r\n\t/**\r\n\t * Returns the package supported by this factory.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the package supported by this factory.\r\n\t * @generated\r\n\t */\r\n\tDomainPackage getDomainPackage();\r\n\r\n}", "public interface ProgramFeedBackService {\n\n /**\n * Save a programFeedBack.\n *\n * @param programFeedBackDTO the entity to save\n * @return the persisted entity\n */\n ProgramFeedBackDTO save(ProgramFeedBackDTO programFeedBackDTO);\n\n /**\n * Get all the programFeedBacks.\n * \n * @return the list of entities\n */\n List<ProgramFeedBackDTO> findAll();\n\n /**\n * Get the \"id\" programFeedBack.\n *\n * @param id the id of the entity\n * @return the entity\n */\n ProgramFeedBackDTO findOne(Long id);\n\n /**\n * Delete the \"id\" programFeedBack.\n *\n * @param id the id of the entity\n */\n void delete(Long id);\n}", "public interface IOfficialAccountService {\n\n\tvoid saveOfficialAccount(OfficialAccountReqDto officialAccountReqDto);\n\n\n\tList<OfficialAccount> getAllOfficialAccount();\n}", "@InputValidation(IValidationStrategy.PROCESS.class)\r\npublic interface IFileFormatService extends IService2 {\r\n\r\n\t/**\r\n\t * Saves new file formats into storage\r\n\t * \r\n\t * @param formData\r\n\t * FileFormatFormData\r\n\t * @return the assigned FileFormatFormData\r\n\t * @throws ProcessingException\r\n\t */\r\n\tpublic FileFormatFormData create(FileFormatFormData formData)\r\n\t\t\tthrows ProcessingException;\r\n\r\n\t/**\r\n\t * Deletes all file formats from storage having one of the assigned ids\r\n\t * \r\n\t * @param ids\r\n\t * Long[]\r\n\t * @throws ProcessingException\r\n\t */\r\n\tpublic void delete(Long[] ids) throws ProcessingException;\r\n\r\n\t/**\r\n\t * Modifies the assigned file format in the storage\r\n\t * \r\n\t * @param formData\r\n\t * FileFormatFormData\r\n\t * @return the assigned FileFormatFormData\r\n\t * @throws ProcessingException\r\n\t */\r\n\tpublic FileFormatFormData update(FileFormatFormData formData)\r\n\t\t\tthrows ProcessingException;\r\n\r\n\t/**\r\n\t * Fetches all formats which belongs to the assigned file type id from\r\n\t * storage [file format id, format, file type]\r\n\t * \r\n\t * @param filetypeNr\r\n\t * Long\r\n\t * @return Object[][]\r\n\t * @throws ProcessingException\r\n\t */\r\n\tpublic Object[][] getFileFormats(Long filetypeNr)\r\n\t\t\tthrows ProcessingException;\r\n\r\n\t/**\r\n\t * Decides whether there are more than one file type the assigned file\r\n\t * format belongs to\r\n\t * \r\n\t * @param fileformat\r\n\t * String\r\n\t * @return boolean [true for multiple file format - file type connections]\r\n\t * @throws ProcessingException\r\n\t */\r\n\tpublic boolean isFormatMultipleAssigned(String fileformat)\r\n\t\t\tthrows ProcessingException;\r\n\r\n\t/**\r\n\t * Fetches the file type id for the assigned file format from storage\r\n\t * \r\n\t * @param fileformat\r\n\t * String\r\n\t * @return Long [file type id]\r\n\t * @throws ProcessingException\r\n\t */\r\n\tpublic Long getFiletypeForFileFormat(String fileformat)\r\n\t\t\tthrows ProcessingException;\r\n\r\n\t/**\r\n\t * Returns true if the assigned file format has already been stored\r\n\t * \r\n\t * @param fileformat\r\n\t * String\r\n\t * @return boolean\r\n\t * @throws ProcessingException\r\n\t */\r\n\tpublic boolean isFileformatRegistered(String fileformat)\r\n\t\t\tthrows ProcessingException;\r\n\r\n\t/**\r\n\t * Fetches an Array of ids of all file types, the assigned file format\r\n\t * belongs to\r\n\t * \r\n\t * @param fileformat\r\n\t * String\r\n\t * @return Long[]\r\n\t * @throws ProcessingException\r\n\t */\r\n\tpublic Long[] getFiletypesForFileFormat(String fileformat)\r\n\t\t\tthrows ProcessingException;\r\n}", "public int getFee(){return 0;}", "public interface FundRecordService {\n\n Page<FundRecordDTO> pageList(HashMap<String, Object> params);\n\n FundRecordDTO save(FundRecordDTO hppVideoDTO);\n\n FundRecordDTO createFundRecordDTO(FundRecordDTO hppVideoDTO);\n\n HashMap<String, Object> checkCreateFundRecordDTO(FundRecordDTO hppVideoDTO);\n\n FundRecordDTO findOne(String id);\n\n List<FundRecordDTO> findAll();\n\n /*\n for app 基金入伙记录\n */\n HashMap<String, Object> findListByFundSignalId(String fundSignalId);\n\n /*\n 我的入伙记录\n */\n List<FundRecordDTO> findMyFund(String userId);\n \n void delete(String id);\n\n /*\n 计算总入伙金额\n */\n Double sumFundByFundSignalId(String id);\n}", "public interface GoodsTypeService {\n /**\n * 更新商品类型\n *\n * @param gtn\n * @return\n */\n public int updateGoodsTypeTN(GoodsType gtn);\n /**\n * 添加商品规格关系\n * @param goodsType\n * @return\n */\n public int addGoodsType(GoodsType goodsType);\n}", "public interface ResidentialAreaService {\n public List<TMdResidentialArea> getAreaByBranchNo(String branchNo);\n\n public TMdResidentialArea selectById(String id);\n\n public PageInfo findAreaListByPage(ResidentialAreaModel residentialAreaModel);\n\n int addResidentialArea(TMdResidentialArea area);\n\n int addResidentialAreas(List<TMdResidentialArea> area);\n\n int uptResidentialArea(TMdResidentialArea area);\n\n int deleteAreaById(String id);\n\n public PageInfo searchAreaByBranchNo(BranchAreaSearch bsearch);\n\n public int areaRelBranch(BranchScopeModel rmodel);\n\n List<TMdResidentialArea> getUnDistAreas();\n\n List<TMdResidentialArea> searchAreaBySalesOrg( AreaSearchModel aModel);\n\n List<TMdResidentialArea> searchSalesOrgArea(AreaSearchModel aModel);\n\n List<TMdResidentialArea> searchAreaSaleOrgBranchNo (AreaSearchModel aModel);\n}", "public interface TypeService {\n\n /**\n * 保存\n * @param type\n * @return\n */\n Type saveType(Type type);\n\n /**\n * 根据id获取\n * @param id\n * @return\n */\n Type getType(Long id);\n\n /**\n * 根据分类名称获取\n * @param name\n * @return\n */\n Type getTypeByName(String name);\n\n /**\n * 分页\n * @param pageable\n * @return\n */\n Page<Type> listType(Pageable pageable);\n\n /**\n * 获取分类集合\n * @return\n */\n List<Type> listType();\n\n /**\n * 定义分类列表的大小\n * @param size\n * @return\n */\n List<Type> listTypeTop(Integer size);\n /**\n * 更新\n * @param id\n * @param type\n * @return\n */\n Type updateType(Long id,Type type);\n\n /**\n * 删除\n * @param id\n */\n void deleteType(Long id);\n}", "DeliveryTermsType getDeliveryTerms();", "@Override\n\tpublic List<Fee_Entity> get_all_fee() {\n\t\treturn fee.get_all_fee();\n\t}", "public interface ContractService {\n\n /**\n * 获取授权提现函信息\n * @return\n */\n WithdrawalLetter getWithdrawalLetterInfo(Long id) throws Exception;\n\n\n /**\n * 获取 借款服务协议变量 信息\n * @return\n */\n LoanServiceAgreement getLoanServiceAgreementInfo(Long id) throws Exception;\n\n\n /**\n *\n * 获取 电子签名数字证书用户申请确认函s 信息\n * @return\n */\n ElectronicLetter getElectronicLetterInfo(Long id) throws Exception;\n /**\n * 获取个人信息采集协议数据\n * @param userId 用户主键\n * @return 协议数据\n */\n PersonalInfoProtocolResForm getPersonalInfoCollectionProtocol(Long userId) throws Exception;\n\n /**\n * 获取企业信息采集协议数据\n * @param userId 用户主键\n * @return 协议数据\n */\n CompanyInfoProtocolResForm getCompanyInfoCollectionProtocol(Long userId) throws Exception;\n\n /**\n * 获取网络借贷平台借款情况披露及承诺书\n * @param userId 用户主键\n * @return 协议数据\n */\n LoanGuaranteeProtocolResForm getLoanGuaranteeProtocol(Long userId) throws Exception;\n\n /**\n * 获取网络借贷平台借款情况披露及承诺书\n * @param userId 用户主键\n * @param reqForm 请求参数\n * @return 协议数据\n */\n LoanGuaranteeProtocolResForm getLoanGuaranteeProtocol(Long userId, LoanGuaranteeProtocolReqForm reqForm) throws Exception;\n\n /**\n * 公司立即签署\n * @param id\n * @param procurationSignatureReqForm\n * @return\n * @throws Exception\n */\n Map<String,Object> companyImmediatelySigned(Long id,ProcurationSignatureReqForm procurationSignatureReqForm) throws Exception;\n\n /**\n * 个人立即签署\n * @param id\n * @param procurationSignatureReqForm\n * @return\n * @throws Exception\n */\n Map<String,Object> personalImmediatelySigned(Long id, ProcurationSignatureReqForm procurationSignatureReqForm) throws Exception;\n\n /**\n * 获取担保函\n * @param orderNo 订单编号\n * @param userId 用户主键\n * @return 协议数据\n */\n GuarantorLetterResForm getGuaranteeLetter(String orderNo, Long userId) throws Exception;\n\n\n Map<String,Object> personFormValidate(PersonReqForm personReqForm);\n\n Map<String,Object> companyFormValidate(String otherLoanAmt, String signatoryName, String signatoryIdentity, String mobile, String smCode,MultipartFile file);\n}", "public BigDecimal getFee() {\n return fee;\n }", "public interface TbFlockRelevanceService {\r\n\r\n /**\r\n * 新增\r\n */\r\n public int insert(TbFlockRelevance tbFlockRelevance);\r\n\r\n /**\r\n * 删除\r\n */\r\n public int delete(int id);\r\n\r\n /**\r\n * 更新\r\n */\r\n public int update(TbFlockRelevance tbFlockRelevance);\r\n\r\n /**\r\n * Load查询\r\n */\r\n public TbFlockRelevance load(TbFlockRelevance tbFlockRelevance);\r\n\r\n /**\r\n * 分页查询\r\n */\r\n public PageBean pageList(Request request);\r\n\r\n}", "public interface BaacService {\n\n /**\n * Save a baac.\n *\n * @param baacDTO the entity to save\n * @return the persisted entity\n */\n BaacDTO save(BaacDTO baacDTO);\n\n\n\n List<BaacDTO> findAll();\n\n /**\n * Get all the baacs.\n *\n * @param pageable the pagination information\n * @return the list of entities\n */\n Page<BaacDTO> findAll(Pageable pageable);\n\n /**\n * Get the \"id\" baac.\n *\n * @param id the id of the entity\n * @return the entity\n */\n BaacDTO findOne(Long id);\n\n /**\n * Delete the \"id\" baac.\n *\n * @param id the id of the entity\n */\n void delete(Long id);\n}", "List<CompanyEmployeeDTO> findAllByType(EmployeeType type);", "public interface DeliveryOrderCacheService {\n /**\n * Retorna todas as ordem de entrega.\n * @return <code>List<DeliveryOrderForm></code> uma lista com as ordens de entrega.\n */\n List<DeliveryOrderForm> findAll();\n\n /**\n * Busca uma ordem de entrega pelo identificador.\n * @param orderId identificador da ordem de entrega.\n * @return {@link DeliveryOrderForm} uma ordem de entrega.\n */\n DeliveryOrderForm findOne(String orderId);\n\n /**\n * Salva uma ordem de entrega.\n * @param deliveryOrderForm ordem de entrega a ser salva.\n */\n void save(DeliveryOrderForm deliveryOrderForm);\n\n}", "public FacturaCompra cashOnDelivery(String userName,TipoMoneda tipoMoneda);", "@Override\n\tpublic List<ServiceFee> getAllServiceByStatus() {\n\t\treturn servicefeerepo.getAllServiceByStatus();\n\t}", "public String getFeeCode() {\r\n return feeCode;\r\n }", "public BigDecimal getFee() {\r\n return fee;\r\n }", "public interface IOrderFactory{\n\t\n\t/**\n\t * Creates a collection of taxes for US and EU customers\n\t * \n\t * @return the sales tax\n\t */\n\tpublic ISalesTax getTaxObject();\n\t\n\t/**\n\t * Creates the shipping cost for US and EU customers\n\t * \n\t * @return shipping cost\n\t */\n\tpublic IShippingRate getRateObject();\n}", "@Override\n\tpublic List<TypeContratEmployee> Getdetail(TypeContrat e) {\n\t\treturn rep.findAllByPkContratContrat(e);\n\t}", "public void setFee(String fee) {\n\t\tthis.fee = fee;\n\t}", "public ExemptedFeesVM() {\n list = new ArrayList<>();\n }", "TotalInvoiceAmountType getTotalInvoiceAmount();", "public Integer getDistrictFeeTypeUid() {\n return districtFeeTypeUid;\n }", "@RequestForEnhancement(\r\n\t\t/* see also 4561444 - balance trade deficit */\r\n\t\tid=4561414,\r\n\t\tsynopsis=\"Balance the federal budget\") // after RequestForEnhancement\r\n\t@Author(\r\n\t\t//The author name\r\n\t\t@Name(first=\"Joe\", last=\"Hacker\") )\r\n\t// after Author\r\n\tpublic static void balanceFederalBudget() {\r\n\t\tthrow new UnsupportedOperationException(\"Not implemented\");\r\n\t}", "public BigDecimal\tgetOrderFee();", "public BigDecimal getFee() {\n return fee;\n }", "public interface EducationService {\n\n RestMessageDTO createEducation(EducationDTO educationDTO, Long id);\n\n Education getEducation(Long id);\n\n RestMessageDTO delEducation(Long id);\n\n RestMessageDTO delMainEducation(Long idStuff, Long idMainEducation);\n\n Education updateEducation(EducationDTO educationDTO);\n}", "public interface DocumentService {\n Document create(Long userId, Document document);\n\n Document update(Long userId, Document document);\n\n Page<Document> findAll(Long userId, Integer documentType, RestPageRequest pageRequest);\n\n Page<Document> findAll(Long userId, Long parentId, Integer documentType, RestPageRequest pageRequest);\n\n Page<Document> findAll(Long userId, Long businessPartnerId, Integer businessPartnerType, Integer documentType, RestPageRequest pageRequest);\n\n List<Document> getAll(Long userId, Integer documentType);\n\n Document findOne(Long userId, Integer documentType, Long recordId);\n\n Document findOne(Long userId, Long recordId);\n\n Document findByDocNumber(Long userId, Integer documentType, String docNumber);\n\n Document findByOrderRefNumber(Long userId, Integer documentType, String orderRefNumber);\n\n Document findByDocNumber(Long userId, Integer documentType, Integer childDocumentType, String docNumber);\n\n void updateAmounts(Double totalTax, Double amountWithoutTax, Double totalAll, Integer quantity, Long userId, Long documentId);\n\n Double getBusinessPartnerBalance(Long userId, Long businessPartnerId);\n\n Double getDocumentAmount(Long userId, Long documentId);\n\n Double getAmountByDocumentByBusinessPartner(Long userId, Long businessPartnerId, Integer documentType, Integer childDocumentType);\n\n Double getInvoicePaymentsTotal(Long userId, Long businessPartnerId, Integer documentType, Integer childDocumentType, Long parentId);\n\n void updateDocumentBalance(Long userId, Long documentId);\n\n Double getSumByTenant(Long userId, Integer documentType, Integer status);\n\n Double getSumByTenantByDate(Long userId, Integer documentType, Integer status, DateTime startDate, DateTime endDate);\n\n Integer getQuantityByTenantByDate(Long userId, Integer documentType, Integer status, DateTime startDate, DateTime endDate);\n\n Double getSumByTenantByDateByBusinessUnit(Long userId, Integer documentType, Integer status, DateTime startDate, DateTime endDate,Long businessUnitId);\n\n Integer getQuantityByTenantByDateByBusinessUnit(Long userId, Integer documentType, Integer status, DateTime startDate, DateTime endDate,Long businessUnitId);\n\n Long countByTenant(Long userId, Integer documentType, Integer status);\n}", "public interface IFactory {\n ICustomer getCustomer(CustomerType type);\n IAccount getAccount(Enum type);\n// IEntry getEntry(EntryType type);\n DAO getDAO(Enum type);\n\n}", "public interface NivelService {\n\n List<Nivel> ListarNivel(String Descripcion, String Estado, String PaginaStart, String PaginaLength, String Orderby);\n Integer CantidadNivel(String Descripcion, String Estado);\n Nivel viewNivel(Integer Codigo);\n RespuestaTransaccion mantenimientoNivel(Nivel nivel, String usuario, Integer operacion);\n\n}", "public interface AclRequestTypeService extends IBaseService<AclRequestType> {\n String findPronounStrByRequestTypeIds(String requestTypeIds);\n int selectCountByNeId(AclRequestType aclRequestType);\n}", "public String getFeeDescription() {\n return feeDescription;\n }", "@GetMapping(\"/delivery-delivery-types\")\n public List<DeliveryDeliveryType> getAllDeliveryDeliveryTypes() {\n log.debug(\"REST request to get all DeliveryDeliveryTypes\");\n return deliveryDeliveryTypeRepository.findAll();\n }", "public abstract PaymentType getPaymentType();", "public interface RecordEmergencyFacilitiesService extends Service<RecordEmergencyFacilities> {\n\n\n /**\n * 分页查询\n * @param recordEmergencyFacilitiesRequest 查询条件\n * @return 返回结果\n */\n public PageResult<RecordEmergencyFacilities> queryListPage(RecordEmergencyFacilitiesRequest recordEmergencyFacilitiesRequest);\n\n /**\n * 添加\n * @param recordEmergencyFacilitiesInputRequest 实体\n */\n public void add(RecordEmergencyFacilitiesInputRequest recordEmergencyFacilitiesInputRequest);\n\n /**\n * 删除\n * @param id 主键id\n */\n public void delete(Long id);\n\n /**\n * 修改\n * @param recordEmergencyFacilitiesInputRequest 实体\n */\n public void update(RecordEmergencyFacilitiesInputRequest recordEmergencyFacilitiesInputRequest);\n\n /**\n * 获取 应急设施调查表 信息\n * @param id 主键id\n * @return 返回结果\n */\n RecordEmergencyFacilitiesDetailResponse queryEmergencyFacilitiesDetail(Long id);\n}" ]
[ "0.6139432", "0.5784853", "0.5585868", "0.5550844", "0.5412134", "0.54039276", "0.53864264", "0.53533715", "0.5235463", "0.52261806", "0.5225705", "0.51916057", "0.51496595", "0.51375103", "0.51331955", "0.5126585", "0.51047295", "0.51012653", "0.50853795", "0.49838504", "0.4982199", "0.49809048", "0.4964408", "0.49462324", "0.4941935", "0.4940075", "0.49200186", "0.49193078", "0.49181002", "0.49035135", "0.48983014", "0.48862624", "0.48842588", "0.48820147", "0.48737934", "0.48682803", "0.48563987", "0.48518056", "0.4844872", "0.4844356", "0.48363167", "0.48347184", "0.48313713", "0.48282117", "0.4827474", "0.48154038", "0.48057458", "0.48051658", "0.48023206", "0.47926253", "0.47916213", "0.47916117", "0.47700354", "0.476698", "0.47666436", "0.47664097", "0.4765305", "0.4757126", "0.47531006", "0.47528476", "0.47515485", "0.47455904", "0.47420993", "0.47374952", "0.4733408", "0.473307", "0.47280544", "0.47255442", "0.47215298", "0.47147056", "0.471265", "0.4712286", "0.47071913", "0.4705786", "0.47055236", "0.47046944", "0.47038624", "0.470208", "0.46988288", "0.46922794", "0.4691672", "0.46842378", "0.46841124", "0.46770227", "0.46706346", "0.46687925", "0.4668565", "0.4664773", "0.46634096", "0.46614072", "0.4656963", "0.4655579", "0.46544287", "0.4652069", "0.46520108", "0.46499905", "0.4644665", "0.46423286", "0.46406817", "0.46321365", "0.4631995" ]
0.0
-1
Retrieves the building block by id.
BuildingBlock findBuildingBlockById(Long id) throws BusinessException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Block getBlock(String id) {\n\t\treturn this.blocks.get(Long.valueOf(id));\n\t}", "public ProductionBlock getSpecificProductionBlock(int id);", "@Override\n public Building get(long id) {\n return dao.get(Building.class, id);\n }", "public Building getBuilding(int id){\n // Placeholder method stub returns the science building\n return new Building(id, \"Science Building\", 42.931003, -85.588937, \"picture.gif\");\n }", "public ItemDefinition getBlock(int id) {\n\t\treturn itemsArray[id];\n\t}", "public static Block getInstance(short id) {\n return getInstance(id, (byte) 0);\n }", "@Override\r\n\tpublic ImageRecordBuildingInfo getById(Long id) {\n\t\treturn get(id);\r\n\t}", "public Block getBlockByID(Integer blockID){\n for (Block block : this.blocks) {\n if(block.getID().equals(blockID))\n {\n return block;\n }\n }\n return null;\n }", "protected Bnet getBnet(int id) {\n\t\treturn bnetMap.get(id);\n\t}", "Collection<BuildingBlock> findBuildingBlocksbyBranchId(Long branchId) throws BusinessException;", "public Box getBox(int id) {\n return boxes.get(id);\n }", "public Block getBlock(int i) {\n\t\treturn Block.getBlock(id(i));\n\t}", "Block getBlockByNumber(long number);", "public Bidding getBiddingById(long id) {\r\n\t\treturn biddingPersistence.getBiddingById(id);\r\n\t}", "Collection<BuildingBlock> findAllBuildingBlocks() throws BusinessException;", "Clothes getById(int id);", "public Build getBuildById(int buildId);", "@ApiMethod(name=\"beers.get\")\n public Beer getBeer(@Named(\"id\") Long id) {\n PersistenceManager mgr = getPersistenceManager();\n Beer beer = null;\n try {\n beer = mgr.getObjectById(Beer.class, id);\n } finally {\n mgr.close();\n }\n return beer;\n }", "@Override\r\n\tpublic Borne find(long id) {\r\n\t\tBorne borne = new Borne();\r\n\t\t\r\n\t\r\n\t\tStatement st =null;\r\n\t\tResultSet rs =null;\r\n\t\t\r\n\t\t\r\n\t\ttry {\r\n\t\t\tst = this.connect.createStatement();\r\n\t\t\tString sql = \"SELECT * FROM Borne WHERE id=\"+id;\r\n\t\t\trs = st.executeQuery(sql);\r\n\t\t\t\r\n\t\t\tif(rs.first()) {\r\n\t\t\t\tborne = new Borne(rs.getInt(\"id\"),\r\n\t\t\t\t\t\t\t\t DAOzone.find(rs.getInt(\"idZone\")));\r\n\t\t\t}\t\r\n\t\t} catch (SQLException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t\treturn borne;\r\n\t}", "public Bus getBusById(int id) {\n\t\treturn busRepository.findById(id)\n\t\t\t\t.orElseThrow(() -> new BusNotFoundException(\"No bus with id: \" + id + \" found!!\"));\n\t}", "public int getBlockId() {\n return blockId;\n \n }", "@Override\r\n\tpublic GroupBeds getById(Integer id) {\n\t\treturn null;\r\n\t}", "BuildingBlock findBuildingBlockByTypeAndCode(BuildingBlockConstant buildingBlockType, String code) throws BusinessException;", "BInformation findOne(Long id);", "@Override\n @Transactional(readOnly = true)\n public BuildingDTO findOne(Long id) {\n log.debug(\"Request to get Building : {}\", id);\n Building building = buildingRepository.findOne(id);\n return buildingMapper.toDto(building);\n }", "@Deprecated public Block getBlock(){\n return this.block!=null?this.block.build():null;\n }", "public static ByteArrayInputStream getBlockJson(String name, Identifier id) {\n switch (name.split(\"/\")[2]) {\n case \"blockstates\": return getBlockstateJson(id);\n case \"models\": return name.split(\"/\")[3].equals(\"block\") ? getBlockModelJson(id) : getItemJson(id);\n default: Logger.getLogger(\"AutoJson\").log(Level.WARNING, \"Could not create Block JSON\"); return new ByteArrayInputStream(\"\".getBytes());\n }\n }", "Block getBlock(String congName, String blockName, String blockNumber);", "int getBlockId();", "public Branch getBranchById(int id){\n if( id==0 ) {\n return defaultBranch;\n } else {\n BranchDao bDAO = new BranchDao();\n Branch branch = null;\n try {\n branch = bDAO.findById(id);\n } catch (DaoException ex) {\n Logger.getLogger(BranchCtrl.class.getName()).log(Level.SEVERE, null, ex);\n ErrorMsg.setLastError(ErrorMsg.ERROR_SQL_ERROR);\n }\n return branch;\n }\n }", "public static ByteArrayInputStream getBlockModelJson(Identifier id) {\n JsonObject file = new JsonObject();\n file.addProperty(\"parent\", \"block/cube_all\");\n JsonObject texture = new JsonObject();\n texture.addProperty(\"all\", id.getNamespace() + \":block/\" + id.getPath());\n file.add(\"textures\", texture);\n return new ByteArrayInputStream(file.toString().getBytes());\n }", "public static Boat findBoatById(Long id) {\n\t\tfor (Boat boat : boats) {\n\t\t\tif (boat.getId().equals(id))\n\t\t\t\treturn boat;\n\t\t}\n\t\treturn null;\n\t}", "public phaseI.Hdfs.BlockLocations.Builder getBlockInfoBuilder() {\n bitField0_ |= 0x00000001;\n onChanged();\n return getBlockInfoFieldBuilder().getBuilder();\n }", "public phaseI.Hdfs.BlockLocations.Builder getNewBlockBuilder() {\n bitField0_ |= 0x00000002;\n onChanged();\n return getNewBlockFieldBuilder().getBuilder();\n }", "public Long getBlockroomid()\n {\n return blockroomid; \n }", "private Box getBox(List<Box> boxes, int id){\n for(Box box:boxes){\n if(box.getId()==id){\n return box;\n }\n }\n return null;\n }", "public BatchJob findById(Integer id) {\r\n\t\treturn dao.findById(id);\r\n\t}", "@GetMapping(\"/job-bids/{id}\")\n @Timed\n public ResponseEntity<JobBid> getJobBid(@PathVariable Long id) {\n log.debug(\"REST request to get JobBid : {}\", id);\n Optional<JobBid> jobBid = jobBidRepository.findById(id);\n return ResponseUtil.wrapOrNotFound(jobBid);\n }", "@Override\n\tpublic Contract get(String id) {\n\t\treturn contractDao.findOne(id);\n\t}", "Collection<BuildingBlock> findBuildingBlocksbyBranchIdAndBuildingBlockType(Long branchId, BuildingBlockConstant buildingBlockType) throws BusinessException;", "protected abstract B getElement(Long id);", "public Block getFrom() {\n\t\t\treturn Block.getBlockById(fromId);\n\t\t}", "@GetMapping(\"/tour-bubbls/{id}\")\n public ResponseEntity<TourBubblDTO> getTourBubbl(@PathVariable Long id) {\n log.debug(\"REST request to get TourBubbl : {}\", id);\n TourBubblDTO tourBubblDTO = tourBubblService.findOne(id);\n return Optional.ofNullable(tourBubblDTO)\n .map(result -> new ResponseEntity<>(\n result,\n HttpStatus.OK))\n .orElse(new ResponseEntity<>(HttpStatus.NOT_FOUND));\n }", "public Block getBlockBelow() {\r\n\t\tif(onGround) {\r\n\t\t\tVector4f hitbox = getHitBox(worldPos);\r\n\t\t\tfloat x = hitbox.x + (hitbox.z - hitbox.x) / 2f;\r\n\t\t\tfloat y = hitbox.y - 0.1f;\r\n\t\t\tBlock b = BlockManager.getBlock(new Vector2f(x, y));\r\n\t\t\treturn b;\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "Block getBlockByHash(byte[] hash);", "public Block getBlock()\n {\n return block;\n }", "public Block getBlock(int index){\n\t\treturn ds[index];\n\t}", "public Block getBlock(int x, int y){\n\t\tIterator iterator = blocks.iterator();\n\t\twhile(iterator.hasNext()){\n\t\t\tBlock b = (Block) iterator.next();\n\t\t\tif ((b.getX()==x)&&(b.getY()==y)) {\n\t\t\t\treturn b;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "public Booking findOne(int id) {\n String sql = getJoinedQuery() + \" WHERE b.id = ?\";\n List<Booking> bookings = jdbc.query(sql, new Object[] {id}, resultSetExtractor);\n return bookings.get(0);\n }", "public Item getItem(Long id)\n {\n return auctionManager.getItem(id);\n }", "public AuctionBulletin getAuctionBulletin(String id) {\n\t\treturn getHibernateTemplate().get(AuctionBulletin.class, Long.parseLong(id));\n\t}", "public BankThing retrieve(String id);", "WayBill getWayBillById(Long id_wayBill) throws WayBillNotFoundException;", "@Override\n public Businessrule findById(int id) {\n Query query = this.em.createQuery(\n \"SELECT businessrule FROM Businessrule businessrule left join fetch businessrule.jobs WHERE businessrule.id =:id\");\n query.setParameter(\"id\", id);\n Businessrule br = (Businessrule) query.getSingleResult();\n return br;\n }", "public Build findBuild(int buildID){\n for (int i = 0; i < buildHistory.size(); i++) {\n if(buildHistory.get(i).getBuildID() == buildID){\n return buildHistory.get(i);\n }\n }\n return null;\n }", "private Block getBlockFromRecord(GameLogsRecord record) {\n JsonObject json = JsonParser.parseString(record.getMessage()).getAsJsonObject();\n // If Block logs are incomplete, the missing values are the default 0\n // This should only occur for games that were played before\n // TODO: date of setting up infrastructure commit 96b2fde on the server\n int x = 0, y = 0, z = 0;\n if (json.has(\"x\")) {\n x = json.get(\"x\").getAsInt();\n } else {\n logger.error(\"Missing x value for block at {}: {}\", json, record.getTimestamp());\n }\n if (json.has(\"y\")) {\n y = json.get(\"y\").getAsInt();\n } else {\n logger.error(\"Missing y value for block at {}: {}\", json, record.getTimestamp());\n }\n if (json.has(\"z\")) {\n z = json.get(\"z\").getAsInt();\n } else {\n logger.error(\"Missing z value for block at {}: {}\", json, record.getTimestamp());\n }\n return new Block(x, y, z);\n }", "public String getRemoteBlock(String hash){\n getBlock = true;\n getBlockHash = hash;\n try{\n synchronized(this){\n this.wait();\n }\n } catch(InterruptedException e){\n // nothing happens here\n }\n getBlock = false;\n if(remoteBlocks.containsKey(hash))\n return remoteBlocks.get(hash);\n else{\n return \"notfound\";\n }\n }", "public final JCBasicBlock bb2() throws RecognitionException {\n JCBasicBlock basicBlock = null;\n\n\n Token ID12=null;\n Token INT13=null;\n\n try {\n // C:\\\\Users\\\\Cavicchio\\\\workspace\\\\InterDepAdjStructure\\\\newgrammar\\\\JCB_tree.g:854:39: ( OPEN_PARENTHESIS ID COMMA INT CLOSE_PARENTHESIS )\n // C:\\\\Users\\\\Cavicchio\\\\workspace\\\\InterDepAdjStructure\\\\newgrammar\\\\JCB_tree.g:856:1: OPEN_PARENTHESIS ID COMMA INT CLOSE_PARENTHESIS\n {\n match(input,OPEN_PARENTHESIS,FOLLOW_OPEN_PARENTHESIS_in_bb2970); \n\n ID12=(Token)match(input,ID,FOLLOW_ID_in_bb2972); \n\n match(input,COMMA,FOLLOW_COMMA_in_bb2974); \n\n INT13=(Token)match(input,INT,FOLLOW_INT_in_bb2976); \n\n match(input,CLOSE_PARENTHESIS,FOLLOW_CLOSE_PARENTHESIS_in_bb2978); \n\n\n if (displayProductions == true)\n {\n System.out.println(\"Production: bb2 : (ID,INT) = (\" + (ID12!=null?ID12.getText():null) + \",\" + (INT13!=null?INT13.getText():null) + \")\");\n }\n int bbWCET = Integer.parseInt((INT13!=null?INT13.getText():null));\n basicBlock = problem.accessBasicBlock((ID12!=null?ID12.getText():null), bbWCET);\t\t\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n\n finally {\n \t// do for sure before leaving\n }\n return basicBlock;\n }", "@Override\n\tpublic BatimentoCardiaco get(long id) {\n\t\treturn null;\n\t}", "public Block getBlock() {\n return (Block)getChild(0);\n }", "@Override\n\tpublic Brand get(int id) {\n\t\t\n \ttry {\n \t\tsql=\"select * from brands where id=?\";\n\t\t\tquery=connection.prepareStatement(sql);\n \t\tquery.setInt(1, id);\n\t\t\t\n\t\t\tResultSet result=query.executeQuery();\n\t\t\tresult.next();\n\t\t\t\n\t\t\tBrand brand=new Brand(result.getInt(\"Id\"),result.getString(\"Name\"));\n\t\t\t\n\t\t\treturn brand;\n\t\t} catch (Exception e) {\n\t\t\t// TODO: handle exception\n\t\t\tnew Exception(e.getMessage());\n\t\t}\n\t\t\n\t\treturn null;\n\t}", "public Block getBlock()\n\t{\n\t\treturn this.block;\n\t}", "public Job loadJobById(Integer id) {\n JobEntity entity = em.find(JobEntity.class, id);\n if (entity == null) {\n return null;\n }\n return new Job(entity, memberService.loadUserById(entity.getOwnerId()));\n }", "public static Cell getCell(String id)\n {\n for (int i = 0; i < cellList.size(); i ++)\n {\n if (cellList.get(i).getId().equals(id))\n return cellList.get(i);\n }\n return null;\n }", "public static String getBlockDataString(int id) {\n String blockdata = \"\";\n if (ConfigHandler.blockdataReversed.get(id) != null) {\n blockdata = ConfigHandler.blockdataReversed.get(id);\n }\n return blockdata;\n }", "public Fuel getFuel(long id) {\n\t\treturn fuelDao.findOne(id);\n\t}", "public Block getBlock() {\n\t\treturn this.block;\n\t}", "public Long getBuildingId() {\n return buildingId;\n }", "protected Block getBlock() {\r\n return this.block;\r\n }", "public BuildingBlock(int blockId, Color color) {\n Image bbGreenImage = new Image(getClass().getResourceAsStream(VisibleObjects.MAKE_LONGER_BONUS.getImage()));\n bbGreen = new ImagePattern(bbGreenImage);\n VisibleObjects.MAKE_LONGER_BONUS.setBlockImage(bbGreen);\n Image bbYellowImage = new Image(getClass().getResourceAsStream(VisibleObjects.MAKE_FASTER_BONUS.getImage()));\n bbYellow = new ImagePattern(bbYellowImage);\n VisibleObjects.MAKE_FASTER_BONUS.setBlockImage(bbYellow);\n Image bbRedImage = new Image(getClass().getResourceAsStream(VisibleObjects.SHOOT_BONUS.getImage()));\n bbRed = new ImagePattern(bbRedImage);\n VisibleObjects.SHOOT_BONUS.setBlockImage(bbRed);\n Image bbGreyImage = new Image(getClass().getResourceAsStream(VisibleObjects.DEATH.getImage()));\n bbGrey = new ImagePattern(bbGreyImage);\n VisibleObjects.DEATH.setBlockImage(bbGrey);\n Image playerOneImageImage = new Image(getClass().getResourceAsStream(VisibleObjects.PLAYER_ONE.getImage()));\n playerOneImage = new ImagePattern(playerOneImageImage);\n VisibleObjects.PLAYER_ONE.setBlockImage(playerOneImage);\n Image playerTwoImageImage = new Image(getClass().getResourceAsStream(VisibleObjects.PLAYER_TWO.getImage()));\n playerTwoImage = new ImagePattern(playerTwoImageImage);\n VisibleObjects.PLAYER_TWO.setBlockImage(playerTwoImage);\n Image playerThreeImageImage = new Image(getClass().getResourceAsStream(VisibleObjects.PLAYER_THREE.getImage()));\n playerThreeImage = new ImagePattern(playerThreeImageImage);\n VisibleObjects.PLAYER_THREE.setBlockImage(playerThreeImage);\n Image playerFourImageImage = new Image(getClass().getResourceAsStream(VisibleObjects.PLAYER_FOUR.getImage()));\n playerFourImage = new ImagePattern(playerFourImageImage);\n VisibleObjects.PLAYER_FOUR.setBlockImage(playerFourImage);\n Image playerOneImageImageRIP = new Image(getClass().getResourceAsStream(PlayerEnum.PLAYER_ONE.getImage()));\n playerOneImageRIP = new ImagePattern(playerOneImageImageRIP);\n PlayerEnum.PLAYER_ONE.setPlayerDeathImage(playerOneImageRIP);\n Image playerTwoImageImageRIP = new Image(getClass().getResourceAsStream(PlayerEnum.PLAYER_TWO.getImage()));\n playerTwoImageRIP = new ImagePattern(playerTwoImageImageRIP);\n PlayerEnum.PLAYER_TWO.setPlayerDeathImage(playerTwoImageRIP);\n Image playerThreeImageImageRIP = new Image(getClass().getResourceAsStream(PlayerEnum.PLAYER_THREE.getImage()));\n playerThreeImageRIP = new ImagePattern(playerThreeImageImageRIP);\n PlayerEnum.PLAYER_THREE.setPlayerDeathImage(playerThreeImageRIP);\n Image playerFourImageImageRIP = new Image(getClass().getResourceAsStream(PlayerEnum.PLAYER_FOUR.getImage()));\n playerFourImageRIP = new ImagePattern(playerFourImageImageRIP);\n PlayerEnum.PLAYER_FOUR.setPlayerDeathImage(playerFourImageRIP);\n Image deathImage = new Image(getClass().getResourceAsStream(\"rip.png\"));\n deathPattern = new ImagePattern(deathImage);\n Image deathPlayerImage = new Image(getClass().getResourceAsStream(VisibleObjects.DEATH_PLAYER.getImage()));\n deathPlayerPattern = new ImagePattern(deathPlayerImage);\n VisibleObjects.DEATH_PLAYER.setBlockImage(deathPlayerPattern);\n \n Image eplosionImage = new Image(getClass().getResourceAsStream(\"explosion.gif\"));\n explosionView = new ImagePattern(eplosionImage);\n \n explosionSound = new AudioClip(getClass().getResource(\"explosion.wav\").toExternalForm());\n \n explosionSound.play(0);\n \n this.blockId = blockId;\n this.revertColor = color;\n rectangle = new Rectangle();\n rectangle.setFill(color);\n occupant = new Death(VisibleObjects.DEATH);\n gridList.put(blockId, this);\n }", "@Override\n\tpublic BusinessconfigStuff getObjectById(long id) {\n\t\treturn businessconfigStuffDao.getObjectById(id);\n\t}", "@Override\n\t@Transactional(readOnly=true)\n\tpublic Bill findBillById(Long id) {\n\t\treturn billDAO.findById(id).orElse(null);\n\t}", "public RobotInfo get(int id){\n \treturn info[id % HASH];\n }", "@Override\n\tpublic RotateBID get(String id) {\n\t\tRotateBID rotateBID=dao.get(id);\n\t\t\n\t\tif(\"招标采购\".equals(rotateBID.getBidType())) {\n\t\t\tList<RotateBIDPurchase> purchaseList=dao.listPurchase(id);\n\t\t\trotateBID.setPurchaseList(purchaseList);\n\t\t}else {\n\t\t\tList<RotateBIDSale> saleList=dao.listSale(id);\n\t\t\trotateBID.setSaleList(saleList);\n\t\t}\n\n\t\treturn rotateBID;\n\t}", "public Block getBlockAt(Location location) {\n\t\treturn getBlockAt(location.getX(), location.getY(), location.getZ());\n\t}", "public alluxio.proto.journal.Block.BlockInfoEntry.Builder getBlockInfoBuilder() {\n bitField0_ |= 0x00000010;\n onChanged();\n return getBlockInfoFieldBuilder().getBuilder();\n }", "public Message getMessage(long id)\n {\n Message message = messages.get(id);\n if(message == null)\n throw new DataNotFoundException(\"Message with ID \" + id + \" not found!\");\n return message;\n }", "@Override\n public Block getBlock() {\n Block b = null;\n while (b == null) {\n boolean noMoreBlocks = blocks.isEmpty();\n if (!noMoreBlocks) {\n b = blocks.poll();\n }\n\n if (noMoreBlocks || b == null) {\n synchronized (BlocksPool.class) { // can be easily changed to lock-free\n if (blocks.isEmpty()) {\n alloc(newAllocBlocks);\n }\n }\n }\n }\n return b;\n }", "@GetMapping(\"/busees/{id}\")\n Resource<Buses> one(@PathVariable Long id) {\n\n Buses bus = repository.findById(id)\n .orElseThrow(() -> new BusNotFoundException(id));\n\n Resource<Buses> busees = new Resource<>(bus,\n linkTo(methodOn(Buses_Controlador.class).one(id)).withSelfRel(),\n linkTo(methodOn(Buses_Controlador.class).all()).withRel(\"buses\"));\n return busees;\n }", "@NotNull\r\n Block getBlock(int x, int y, int z);", "@Override\n\tpublic Room get(int id) {\n\t\tConnection cn = ConnectionPool.getInstance().getConnection();\n\t\ttry {\n\t\t\tStatement st = cn.createStatement();\n\t\t\tResultSet rs = st.executeQuery(\"SELECT * FROM room WHERE id_room = \" + id);\n\t\t\tif(rs.next()) {\n\t\t\t\treturn new Room(rs.getInt(1), rs.getInt(2));\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\tConnectionPool.getInstance().closeConnection(cn);\n\t\t}\n\t\treturn new Room();\n\t}", "public String getChildBlockId() {\n return this.childBlockId;\n }", "private void getPlace(String _id) {\n this.binding.main.setVisibility(View.GONE);\n this.binding.loading.setVisibility(View.VISIBLE);\n\n ParseQuery<Place> query = ParseQuery.getQuery(Place.class);\n query.whereEqualTo(Place.KEY_OBJECT_ID, _id);\n query.include(Place.KEY_CATEGORY);\n query.include(Place.KEY_USER);\n query.getFirstInBackground(new GetCallback<Place>() {\n @Override\n public void done(Place object, ParseException e) {\n if(e == null) {\n place = object;\n bindInformation();\n enterReveal();\n } else {\n Toast.makeText(PlaceDetailActivity.this, \"Place not found\", Toast.LENGTH_LONG).show();\n finish();\n }\n }\n });\n\n // Set up elements visibility\n binding.fabCall.setVisibility(View.INVISIBLE);\n binding.fabLike.setVisibility(View.INVISIBLE);\n binding.main.setVisibility(View.VISIBLE);\n binding.loading.setVisibility(View.GONE);\n }", "public static ByteArrayInputStream getBlockstateJson(Identifier id) {\n JsonObject file = new JsonObject();\n JsonObject variants = new JsonObject();\n JsonObject model = new JsonObject();\n model.addProperty(\"model\",id.getNamespace() + \":block/\" + id.getPath());\n variants.add(\"\", model);\n file.add(\"variants\", variants);\n return new ByteArrayInputStream(file.toString().getBytes());\n }", "public MemoryBlock getBlock(int index) {\n\t\tif (( index < 1 ) || ( index > size - 1 ))\n\t\t\tthrow new IllegalArgumentException();\n\t\t return getNode(index).block;\n\t\t \n\t}", "public Building getBuilding(String name) throws NullPointerException{\n // Placeholder method looks up the building in a dictionary\n Building building = demoBuildings.get(name);\n if(building == null){\n throw new NullPointerException(\"No buidling with given name\");\n }\n return building;\n }", "public Commit getCommitById(int id) {\r\n for (Commit c : this.commmit) {\r\n if (c.getId() == id) {\r\n return c;\r\n }\r\n }\r\n return null;\r\n }", "private com.google.protobuf.SingleFieldBuilderV3<\n phaseI.Hdfs.BlockLocations, phaseI.Hdfs.BlockLocations.Builder, phaseI.Hdfs.BlockLocationsOrBuilder> \n getBlockInfoFieldBuilder() {\n if (blockInfoBuilder_ == null) {\n blockInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n phaseI.Hdfs.BlockLocations, phaseI.Hdfs.BlockLocations.Builder, phaseI.Hdfs.BlockLocationsOrBuilder>(\n getBlockInfo(),\n getParentForChildren(),\n isClean());\n blockInfo_ = null;\n }\n return blockInfoBuilder_;\n }", "public Bank find(Integer id) {\n return em.find(Bank.class, id);\n }", "public final ScHtmlIdIF findBlockWrapper()\n {\n if ( isBlockWrapper() )\n return (ScHtmlIdIF)this;\n\n if ( hasParent() )\n return getParent().findBlockWrapper();\n\n return null;\n }", "public alluxio.proto.journal.File.NewBlockEntry getNewBlock() {\n if (newBlockBuilder_ == null) {\n return newBlock_;\n } else {\n return newBlockBuilder_.getMessage();\n }\n }", "public static KitchenModel getKitchenById(Integer id) {\n //Creating session\n Session session = SetupPersistence.getSession();\n //Searching the database for the object with the provided ID\n KitchenModel kitchen = session.find(KitchenModel.class, id);\n //Closing session\n SetupPersistence.closeSession(session);\n //Returning the found object\n return kitchen;\n }", "public Integer getBuildingid() {\r\n return buildingid;\r\n }", "Collection<BuildingBlock> findBuildingBlocksByType(BuildingBlockConstant buildingBlockType) throws BusinessException;", "private Block getBlockAt(int x, int y, int z) {\n\t\ttry {\n\t\t\tbyte blockId = blockIDArray[x][y][z];\n\t\t\treturn new Block(x, y, z, BlockType.fromID(blockId), this);\n\t\t} catch(IndexOutOfBoundsException e) { return new Block(x, y, z, BlockType.AIR, this); }\n\t}", "public estNode getChildWithID(int id) {\r\n\t\tif (children == null)\r\n\t\t\treturn null;\r\n\t\tfor (estNode child : children) {\r\n\t\t\tif (child.itemID == id) {\r\n\t\t\t\treturn child;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "public ClassItem get(Long id) {\n return (ClassItem)get(ClassItem.class, id);\n }", "public static Location find(int id) {\n try (DatabaseContext db = new DatabaseContext()) {\n Object[] obj = db.fetchFirst(\"SELECT id, street, zipCode, city, amountParkingSpaces FROM locations WHERE id = ?\", Integer.toString(id));\n Location location = new Location();\n location.setId((int) obj[0]);\n location.setStreet(obj[1].toString());\n location.setZipCode(obj[2].toString());\n location.setCity(obj[3].toString());\n location.setParkingSpaces((int) obj[4]);\n return location;\n } catch (Exception ex) {\n log.error(ex, \"Could not connect to database.\");\n }\n return null;\n }", "public AccesorioBicicletaEntity getAccesorioBici(Long id){\r\n LOGGER.info(\"Inicica proceso de consulta a una bicicleta\");\r\n AccesorioBicicletaEntity acc = persistence.find(id);\r\n LOGGER.info(\"Termina el proceso de consulta a una bicicleta\");\r\n return acc;\r\n }", "public static Block getInstance(short id, byte data) {\n switch (id) {\n case 5:\n return new WoodenPlank(data);\n case 6:\n return new Sapling(data);\n case 8:\n case 9:\n return new Water(id, data);\n case 10:\n case 11:\n return new Lava(id, data);\n case 17:\n return new Wood(data);\n case 18:\n return new Leaves(data);\n case 23:\n return new Dispenser(null, (byte) 0);\n case 24:\n return new Sandstone(data);\n case 26:\n return new Bed(data);\n case 27:\n return new PoweredRail(data);\n case 28:\n return new DetectorRail(data);\n case 29:\n case 33:\n return new Piston(id, data);\n case 31:\n return new TallGrass(data);\n case 34:\n return new PistonExtension(data);\n case 35:\n return new Wool(data);\n case 43:\n case 44:\n return new StoneSlab(id, data);\n case 50:\n return new Torch(data);\n case 51:\n return new Fire(data);\n case 53: // oak\n case 67: // cobble\n case 108: // brick\n case 109: // stonebrick\n case 114: // netherbrick\n case 128: // sandstone\n case 134: // spruce\n case 135: // birch\n case 136: // jungle\n case 156:\n return new Stair(id, data); // quartz\n case 54: // normal chest\n case 146:\n return new Chest(id); // trapped chest\n case 55:\n return new RedstoneWire(data);\n case 59:\n return new Crop((short) 59, data); // Wheat\n case 60:\n return new Farmland(data);\n case 61:\n case 62:\n return new Furnace(id, data);\n case 63:\n case 68:\n return new Sign(null, id, data);\n case 64:\n case 71:\n return new Door(id, data);\n case 78:\n return new SnowCover(data);\n case 65:\n return new Ladder(data);\n case 66:\n return new Rail(data);\n case 69:\n return new Lever(data);\n case 70:\n case 72:\n return new PressurePlate(id, data);\n case 75:\n case 76:\n return new RedstoneTorch(id, data);\n case 77:\n return new Button(id, data);\n case 84:\n return new Jukebox(data);\n case 86:\n return new Pumpkin(data);\n case 91:\n return new JackOLantern(data);\n case 92:\n return new Cake(data);\n case 93:\n case 94:\n return new RedstoneRepeater(id, data);\n case 96:\n return new TrapDoor(data);\n case 98:\n return new StoneBrick(data);\n case 99:\n case 100:\n return new HugeMushroom(id, data);\n case 104:\n case 105:\n return new Stem(id, data);\n case 106:\n return new Vines(data);\n case 107:\n return new FenceGate(data);\n case 115:\n return new NetherWart(data);\n case 117:\n return new BrewingStand();\n case 118:\n return new Cauldron(data);\n case 120:\n return new EndPortalFrame(data);\n case 123:\n case 124:\n return new RedstoneLamp(id);\n case 125:\n case 126:\n return new WoodenSlab(id, data);\n case 127:\n return new CocoaPod(data);\n case 130:\n return new EnderChest(data);\n case 131:\n return new TripwireHook(data);\n case 132:\n return new TripWire(data);\n case 137:\n return new CommandBlock();\n case 138:\n return new Beacon();\n case 139:\n return new CobblestoneWall(data);\n case 140:\n return new FlowerPot(data);\n case 141:\n return new Crop((short) 141, data); // Carrot\n case 142:\n return new Crop((short) 142, data); // Potato\n case 143:\n return new Button(id, data);\n case 144:\n return new MobHead((byte) 3, (byte) 8, null, data); // north facing human head - most data from tile entity\n case 145:\n return new Anvil(data);\n case 147:\n case 148:\n return new WeightedPressurePlate(id, data);\n case 154:\n return new Hopper(null, (byte) 0);\n case 155:\n return new QuartzBlock(data);\n case 157:\n return new ActivatorRail(data);\n case 158:\n return new Dropper(null, (byte) 0);\n default:\n return new Block(id, data);\n }\n }" ]
[ "0.7613471", "0.74145687", "0.69640326", "0.68060654", "0.6771162", "0.6527293", "0.64617765", "0.6319771", "0.61855036", "0.61610055", "0.5999343", "0.5995648", "0.59609663", "0.5913218", "0.58829755", "0.58607435", "0.58282435", "0.5824167", "0.58127564", "0.581245", "0.577065", "0.57641405", "0.5763906", "0.5757537", "0.5739342", "0.57386774", "0.5737358", "0.5706466", "0.564222", "0.56269675", "0.5602813", "0.5591095", "0.55872", "0.554795", "0.554003", "0.5533337", "0.55282825", "0.5526186", "0.55183405", "0.5496557", "0.5490877", "0.5488792", "0.5473204", "0.54715395", "0.546759", "0.5434619", "0.5434572", "0.5432663", "0.54314", "0.5421262", "0.5420691", "0.5404767", "0.53978217", "0.5393043", "0.53928214", "0.538756", "0.5386269", "0.5381979", "0.53762007", "0.5360374", "0.534353", "0.53346837", "0.53337365", "0.53334343", "0.5329391", "0.5322111", "0.5309219", "0.53087157", "0.53074163", "0.5301406", "0.529455", "0.5293459", "0.52925384", "0.5290985", "0.5278788", "0.52784854", "0.5260859", "0.5257653", "0.5255362", "0.5248929", "0.5246523", "0.52450186", "0.5244047", "0.524255", "0.5242172", "0.52400297", "0.52400005", "0.52190006", "0.5217398", "0.52139556", "0.5212176", "0.52073056", "0.5201282", "0.5192755", "0.51918024", "0.5189201", "0.51828885", "0.5181686", "0.51804644", "0.5177201" ]
0.83512616
0
Retrieves all building blocks available.
Collection<BuildingBlock> findAllBuildingBlocks() throws BusinessException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Collection<BuildingBlock> findAllMandatoryBuildingBlocks() throws SystemException;", "public ProductionBlock[] getAllProductionBlocks();", "public java.util.List<phaseI.Hdfs.BlockLocations.Builder> \n getBlockLocationsBuilderList() {\n return getBlockLocationsFieldBuilder().getBuilderList();\n }", "Collection<BuildingBlock> findBuildingBlocksbyBranchId(Long branchId) throws BusinessException;", "Collection<BuildingBlock> findBuildingBlocksByType(BuildingBlockConstant buildingBlockType) throws BusinessException;", "public void loadLiabilitiesBuildingBlocks() {\n\t\tif (this.loadLiabilityTypesFromDB) {\n\t\t\tthis.liabilitiesTypeBuildingBlocks = this.buildingBlockService.findBuildingBlocksbyBranchIdAndBuildingBlockType(this.sessionBean.getCurrentBranch()\n\t\t\t\t\t.getId(), BuildingBlockConstant.LIABILITY_TYPE);\n\t\t\tthis.loadLiabilityTypesFromDB = false;\n\t\t}\n\t}", "@Override\n public List<Building> allBuildings() {\n return dao.all(Building.class);\n }", "Collection<BuildingBlock> findBuildingBlocksbyBranchIdAndBuildingBlockType(Long branchId, BuildingBlockConstant buildingBlockType) throws BusinessException;", "public Collection<Block> getBlockCollection() {\n\t\treturn this.blocks.values();\n\t}", "public List<Block> blocks() {\n this.blocks = createBlocks();\n return this.blocks;\n }", "List<Block> blocks();", "public List<Building> getBoardBuildings() {\n return mPersonalBoardCards.getBoardBuildings();\n }", "public phaseI.Hdfs.BlockLocations.Builder getNewBlockBuilder() {\n bitField0_ |= 0x00000002;\n onChanged();\n return getNewBlockFieldBuilder().getBuilder();\n }", "BuildingBlock findBuildingBlockById(Long id) throws BusinessException;", "@RequestMapping(value = \"getBlocks\", method = RequestMethod.GET)\r\n\t@ResponseBody\r\n\tpublic BlockListResponseDTO getBlocks() {\r\n\t\tBlockListResponseDTO response = new BlockListResponseDTO();\r\n\t\ttry {\r\n\t\t\tresponse = blockService.getBlocks();\r\n\t\t} catch (ServiceException e) {\r\n\r\n\t\t\tList<Parameter> parameters = e.getParamList();\r\n\t\t\tErrorDTO error = new ErrorDTO();\r\n\t\t\terror.setErrCode(e.getError().getErrCode());\r\n\t\t\terror.setParams(parameters);\r\n\t\t\terror.setDisplayErrMsg(e.isDisplayErrMsg());\r\n\t\t\tresponse.setError(error);\r\n\t\t\tresponse.setSuccess(false);\r\n\r\n\t\t}\r\n\t\treturn response;\r\n\t}", "public phaseI.Hdfs.BlockLocations.Builder getBlockInfoBuilder() {\n bitField0_ |= 0x00000001;\n onChanged();\n return getBlockInfoFieldBuilder().getBuilder();\n }", "public Iterator<Map.Entry<Integer, Block>> listBlocks () {\n return this.blockMap.entrySet().iterator();\n }", "public Block[] getBlocks() {\n\t\treturn blocks;\n\t}", "public Array<BlockDrawable> getAllBlocksToDraw() {\r\n \tArray<BlockDrawable> blocksToDraw = new Array<BlockDrawable>();\r\n\t\tblocksToDraw.addAll(tablero);\r\n\t\tif(isGhostActivated()){\r\n\t\t\tblocksToDraw.addAll(getGhostBlocksToDraw());\r\n\t\t}\r\n\t\tif (hasFalling())\r\n\t\t\tblocksToDraw.addAll(falling.allOuterBlocks());\r\n\t\t\r\n\t\treturn blocksToDraw;\r\n }", "public Map<Long, Block> getBlocks() {\n\t\treturn this.blocks;\n\t}", "java.util.List<phaseI.Hdfs.BlockLocations> \n getBlockLocationsList();", "public ArrayList<Block> getBlocks() {\r\n return blocks;\r\n }", "public LinkedList<Building> getBuildings(){\n\t\treturn buildings;\n\t}", "@Override\n @Transactional(readOnly = true)\n public List<BuildingDTO> findAll() {\n log.debug(\"Request to get all Buildings\");\n return buildingRepository.findAll().stream()\n .map(buildingMapper::toDto)\n .collect(Collectors.toCollection(LinkedList::new));\n }", "public java.util.List<phaseI.Hdfs.BlockLocations> getBlockLocationsList() {\n if (blockLocationsBuilder_ == null) {\n return java.util.Collections.unmodifiableList(blockLocations_);\n } else {\n return blockLocationsBuilder_.getMessageList();\n }\n }", "public Block[] getAllBlocks(){\n\t\tBlock[] arr = new Block[tail];\n\t\tfor(int x = 0; x < tail; x++)\n\t\t\tarr[x] = ds[x];\n\t\treturn arr;\n\t}", "public java.util.List<edu.usfca.cs.dfs.StorageMessages.StoreChunkLocation.Builder> \n getChunksLocationBuilderList() {\n return getChunksLocationFieldBuilder().getBuilderList();\n }", "public BlockType[] getBlocks() {\n return blocks;\n }", "Set<? extends IRBasicBlock> getBlocks();", "public ArrayList<Block> getMap(){\r\n\t\treturn new ArrayList<Block>(this.blockMap);\r\n\t}", "@GetMapping(\"/getallblock\")\n\tpublic List<StudentRegistration> getAllBlockStudent() {\n\t\treturn srepo.findByStatus(\"blocked\");\n\t}", "public java.util.List<com.lvl6.proto.QuestProto.FullQuestProto.Builder> \n getNewlyAvailableQuestsBuilderList() {\n return getNewlyAvailableQuestsFieldBuilder().getBuilderList();\n }", "@Override\n public List<Block> blocks() {\n int columns = 15, width = 51, height = 30;\n Color darkGreen = new Color(29, 101, 51);\n List<Block> blocks = new ArrayList<>();\n for (int j = 0; j < columns; j++) {\n blocks.add(new Block(new arkanoid.geometry.Rectangle(new Point(20 + width * j, 110 + height),\n width, height), darkGreen));\n }\n return blocks;\n }", "List<Block> getBlocksByCongName(String congName);", "public List<Block> blocks() {\r\n List<Block> list = new ArrayList<Block>();\r\n double width = 50;\r\n for (int i = 0; i < 7; ++i) {\r\n Color c = new Color(0, 0, 0);\r\n switch (i) {\r\n case 0:\r\n c = Color.gray;\r\n break;\r\n case 1:\r\n c = Color.red;\r\n break;\r\n case 2:\r\n c = Color.yellow;\r\n break;\r\n case 3:\r\n c = Color.green;\r\n break;\r\n case 4:\r\n c = Color.white;\r\n break;\r\n case 5:\r\n c = Color.pink;\r\n break;\r\n default:\r\n c = Color.cyan;\r\n break;\r\n }\r\n for (int j = 0; j < 15; ++j) {\r\n Block b = new Block(new Rectangle(new Point(\r\n 25 + j * width, 100 + i * 20), width, 20));\r\n if (i == 0) {\r\n b.setHitPoints(2);\r\n } else {\r\n b.setHitPoints(1);\r\n }\r\n list.add(b);\r\n }\r\n }\r\n return list;\r\n }", "public org.naru.park.ParkController.CommonAction.Builder getAllBuilder() {\n \n onChanged();\n return getAllFieldBuilder().getBuilder();\n }", "public org.naru.park.ParkController.CommonAction.Builder getAllBuilder() {\n \n onChanged();\n return getAllFieldBuilder().getBuilder();\n }", "List<MemoryBlockDB> getBlocks(Address start, Address end) {\n\t\tList<MemoryBlockDB> list = new ArrayList<>();\n\n\t\tList<MemoryBlockDB> tmpBlocks = blocks;\n\t\tint index = Collections.binarySearch(tmpBlocks, start, BLOCK_ADDRESS_COMPARATOR);\n\t\tif (index < 0) {\n\t\t\tindex = -index - 2;\n\t\t}\n\t\tif (index >= 0) {\n\t\t\tMemoryBlockDB block = tmpBlocks.get(index);\n\t\t\tif (block.contains(start)) {\n\t\t\t\tlist.add(block);\n\t\t\t}\n\t\t}\n\n\t\twhile (++index < tmpBlocks.size()) {\n\t\t\tMemoryBlockDB block = tmpBlocks.get(index);\n\t\t\tif (block.getStart().compareTo(end) > 0) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tlist.add(block);\n\t\t}\n\n\t\treturn list;\n\t}", "public alluxio.proto.journal.File.NewBlockEntry.Builder getNewBlockBuilder() {\n bitField0_ |= 0x00200000;\n onChanged();\n return getNewBlockFieldBuilder().getBuilder();\n }", "@Override\r\n public List<Block> blocks() {\r\n List<Block> blockList = new ArrayList<Block>();\r\n java.awt.Color[] colors = new Color[5];\r\n colors[0] = Color.decode(\"#c1b8b2\");\r\n colors[1] = Color.decode(\"#ef1607\");\r\n colors[2] = Color.decode(\"#ffff1e\");\r\n colors[3] = Color.decode(\"#211ed8\");\r\n colors[4] = Color.decode(\"#fffff6\");\r\n int y = 150;\r\n int[] hitPoints = {2, 1, 1, 1, 1};\r\n for (int i = 0; i < colors.length; i++) {\r\n for (int j = i + 5; j < 15; j++) {\r\n blockList.add(new Block(j * 50 + 25, y, 50, 20, colors[i], hitPoints[i]));\r\n }\r\n y += 20;\r\n }\r\n return blockList;\r\n }", "public java.util.List<teledon.network.protobuffprotocol.TeledonProtobufs.CazCaritabil.Builder>\n getCazuriBuilderList() {\n return getCazuriFieldBuilder().getBuilderList();\n }", "public List<BlockID> getLeafList()\n {\n return leafBlocks;\n }", "phaseI.Hdfs.BlockLocations getNewBlock();", "public phaseI.Hdfs.BlockLocations.Builder getBlockLocationsBuilder(\n int index) {\n return getBlockLocationsFieldBuilder().getBuilder(index);\n }", "public java.util.List<entities.Torrent.ChunkInfo.Builder>\n getChunksBuilderList() {\n return getChunksFieldBuilder().getBuilderList();\n }", "public ArrayList<Block> getBlocks() {\n ArrayList<Block> blocks = new ArrayList<>();\n\n for (Vector2D pos : template) {\n blocks.add(new Block(pos.addVectorGetNewVector(center), this.color));\n }\n return blocks;\n }", "private void createGWBuildings()\n\t{\n\t\t//Generate block 0 (50x50)\n\t\t//(7,7)-(57,57)\n\t\tmakeBlocker0();\n\n\t\t//Generate block 1 (50x50)\n\t\t//(64,7)-(114,57)\n\t\tmakeSEH();\n\t\tmakeFullBright();\n\t\tmakeKennedy();\n\t\tmakeMunson();\n\n\t\t//Generate block 2 (80x50)\n\t\t//(121,7)-(201,57)\n\t\tmakeAcademicCenter();\n\t\tmakeRomePhilips();\n\t\tmakeDistrict();\n\t\tmakeMarvin();\n\t\tmakeLafayette();\n\n\t\t//Generate block 3 (65x50)\n\t\t//(208,7)-(273,57)\n\t\tmake2000Penn();\n\t\tmakeSMPA();\n\t\tmakeBlocker3();\n\n\t\t//Generate block 4 (63x50)\n\t\t//(280,7)-(343,57)\n\t\tmakeBlocker4();\n\n\t\t//Generate block 5 (50x60)\n\t\t//(7,64)-(57,124)\n\t\tmakeAmsterdam();\n\t\tmakeHealWell();\n\t\tmakeBlocker5();\n\n\t\t//Generate block 6 (50x60)\n\t\t//(64,64)-(114,124)\n\t\tmakeTompkins();\n\t\tmakeMadison();\n\t\tmakeDuquesAndFunger();\n\n\t\t//Generate block 7 (80x60)\n\t\t//(121,64)-(201,124)\n\t\tmakeGelman();\n\t\tmakeLisner();\n\t\tmakeStaughton();\n\t\tmakeMonroe();\n\n\t\t//Generate block 8 (65x60)\n\t\t//(208,64)-(273,124)\n\t\tmakeCorcoran();\n\t\tmakeLawSchool();\n\t\tmakeLisnerHall();\n\t\tmakeTextileMuseum();\n\n\t\t//Generate block 9 (63x60)\n\t\t//(280,64)-(343,124)\n\t\tmakeBlocker9();\n\n\t\t//Generate block 10 (50x50)\n\t\t//(7,131)-(57,181)\n\t\tmakeShenkman();\n\t\tmakeBlocker10();\n\n\t\t//Generate block 11 (50x50)\n\t\t//(64,131)-(114,181)\n\t\tmakeTownHouses();\n\t\tmakeSmithCenter();\n\n\t\t//Generate block 12 (80x50)\n\t\t//(121,131)-(201,181)\n\t\tmakeSouthHall();\n\t\tmakeGuthridge();\n\t\tmakeBlocker12();\n\n\t\t//Generate block 13 (65x50)\n\t\t//(208,131)-(273,181)\n\t\tmakeBlocker13();\n\t\tmakeFSK();\n\t\tmakePatomac();\n\n\t\t//Generate block 14 (63x50)\n\t\t//(280,131)-(343,181)\n\t\tmakeBlocker14();\n\n\t\t//Generate block 15 (50x57)\n\t\t//(7,188)-(57,245)\n\t\tmakeBlocker15();\n\n\t\t//Generate block 16 (50x57)\n\t\t//(64,188)-(114,245)\n\t\tmakeIHouse();\n\t\tmakeBlocker16();\n\n\t\t//Generate block 17 (80x57)\n\t\t//(121,188)-(201,245)\n\t\tmakeBlocker17();\n\t\tmakeDakota();\n\n\t\t//Generate block 18 (65x57)\n\t\t//(208,188)-(273,245)\n\t\tmakeBlocker18();\n\n\t\t//Generate block 19 (63x57)\n\t\t//(280,188)-(343,245)\n\t\tmakeBlocker19();\n\t\tmakeElliot();\n\t\tmakeThurston();\n\t}", "public java.util.List<? extends phaseI.Hdfs.BlockLocationsOrBuilder> \n getBlockLocationsOrBuilderList() {\n if (blockLocationsBuilder_ != null) {\n return blockLocationsBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(blockLocations_);\n }\n }", "public java.util.List<com.rpg.framework.database.Protocol.Quest.Builder> \n getQuestBuilderList() {\n return getQuestFieldBuilder().getBuilderList();\n }", "public ArrayList<Building> getBuildings() {\n \treturn buildings;\t\n }", "public java.util.List<phaseI.Hdfs.BlockLocations> getBlockLocationsList() {\n return blockLocations_;\n }", "phaseI.Hdfs.BlockLocations getBlockLocations(int index);", "public java.util.List<phaseI.Hdfs.DataNodeLocation.Builder> \n getLocationsBuilderList() {\n return getLocationsFieldBuilder().getBuilderList();\n }", "public java.util.List<cb.Careerbuilder.Job.Builder> \n getJobsBuilderList() {\n return getJobsFieldBuilder().getBuilderList();\n }", "public List<ByteString> getBlocksBuffers() {\n final ByteString blocksBuf = getBlocksBuffer();\n final List<ByteString> buffers;\n final int size = blocksBuf.size();\n if (size <= CHUNK_SIZE) {\n buffers = Collections.singletonList(blocksBuf);\n } else {\n buffers = new ArrayList<ByteString>();\n for (int pos=0; pos < size; pos += CHUNK_SIZE) {\n // this doesn't actually copy the data\n buffers.add(blocksBuf.substring(pos, Math.min(pos+CHUNK_SIZE, size)));\n }\n }\n return buffers;\n }", "public java.util.List<Pokemon.Request.Builder> \n getRequestsBuilderList() {\n return getRequestsFieldBuilder().getBuilderList();\n }", "public java.util.List<com.example.grpc.SimpleServiceOuterClass.Area.Builder> \n getAreaBuilderList() {\n return getAreaFieldBuilder().getBuilderList();\n }", "public java.util.List<com.example.grpc.SimpleServiceOuterClass.Area.Builder> \n getAreaBuilderList() {\n return getAreaFieldBuilder().getBuilderList();\n }", "public java.util.List<com.example.grpc.SimpleServiceOuterClass.Area.Builder> \n getAreaBuilderList() {\n return getAreaFieldBuilder().getBuilderList();\n }", "@Override\n public List<Block> blocks() {\n List<Block> blocksList = new ArrayList<Block>();\n\n //Setting the blocks\n for (int j = 0; j <= 14; j++) {\n if (j == 0 || j == 1) {\n blocksList.add(new Block(new Rectangle(\n new Point(730 - j * 50.6666667, 215), 51, 25), java.awt.Color.CYAN));\n } else if (j == 2 || j == 3) {\n blocksList.add(new Block(new Rectangle(\n new Point(730 - j * 50.6666667, 215), 51, 25), java.awt.Color.PINK));\n } else if (j == 4 || j == 5) {\n blocksList.add(new Block(new Rectangle(\n new Point(730 - j * 50.6666667, 215), 51, 25), java.awt.Color.BLUE));\n } else if (j == 6 || j == 7 || j == 8) {\n blocksList.add(new Block(new Rectangle(\n new Point(730 - j * 50.6666667, 215), 51, 25), java.awt.Color.GREEN));\n } else if (j == 9 || j == 10) {\n blocksList.add(new Block(new Rectangle(\n new Point(730 - j * 50.6666667, 215), 51, 25), java.awt.Color.YELLOW));\n } else if (j == 11 || j == 12) {\n blocksList.add(new Block(new Rectangle(\n new Point(730 - j * 50.6666667, 215), 51, 25), java.awt.Color.ORANGE));\n } else if (j == 13 || j == 14) {\n blocksList.add(new Block(new Rectangle(\n new Point(730 - j * 50.6666667, 215), 51, 25), java.awt.Color.RED));\n }\n }\n\n return blocksList;\n }", "public java.util.List<Report.LocationOuterClass.MobileCell.Builder> \n getCellsBuilderList() {\n return getCellsFieldBuilder().getBuilderList();\n }", "public List<Bus> getAllBus() {\n\t\treturn busRepository.findAll();\n\t}", "public List<MCRContent> getAll() throws IOException, JDOMException, SAXException {\n\t\tList<MCRContent> resultsSet = new ArrayList<>();\n\t\t// build basic part of API URL\n\t\tString baseQueryURL = API_URL + \"/affiliation/AFFILIATION_ID:\" + AFFIL_ID + \"?apikey=\" + API_KEY\n\t\t\t\t+ \"&view=DOCUMENTS\";\n\n\t\t// divide API request in blocks a XXX documents (in final version 200\n\t\t// documents per block, number of blocks determined by total number of\n\t\t// documents)\n\t\t// int numberOfPublications = getNumberOfPublications(baseQueryURL);\n\t\t// at the moment only testing, two blocks a 10 documents\n\t\tfor (int i = 0; i < 2; i++) {\n\t\t\tint start = 10 * i;\n\t\t\tint count = 10;\n\n\t\t\t// build API URL\n\t\t\tString queryURL = baseQueryURL + \"&start=\" + start + \"&count=\" + count + \"&view=DOCUMENTS\";\n\n\t\t\t// add block to list of blocks\n\t\t\tresultsSet.add(getResponse(queryURL));\n\t\t}\n\t\t// return API-response\n\t\treturn resultsSet;\n\t}", "java.util.List<? extends phaseI.Hdfs.BlockLocationsOrBuilder> \n getBlockLocationsOrBuilderList();", "private static List<Element> getXMLBlocks(Model model) {\n Set<Block> blocks = new TreeSet<>(Comparators.objectsById());\n blocks.addAll(model.getBlocks(null));\n List<Element> result = new ArrayList<>(blocks.size());\n for (Block curBlock : blocks) {\n Element blockElement = new Element(\"block\");\n blockElement.setAttribute(\"id\", String.valueOf(curBlock.getId()));\n blockElement.setAttribute(\"name\", curBlock.getName());\n for (TCSResourceReference<?> curRef : curBlock.getMembers()) {\n Element resourceElement = new Element(\"member\");\n resourceElement.setAttribute(\"name\", curRef.getName());\n blockElement.addContent(resourceElement);\n }\n for (Map.Entry<String, String> curEntry\n : curBlock.getProperties().entrySet()) {\n Element propertyElement = new Element(\"property\");\n propertyElement.setAttribute(\"name\", curEntry.getKey());\n propertyElement.setAttribute(\"value\", curEntry.getValue());\n blockElement.addContent(propertyElement);\n }\n result.add(blockElement);\n }\n return result;\n }", "List<Block> getBlocks(String congName, String[] blockArray);", "phaseI.Hdfs.BlockLocationsOrBuilder getBlockInfoOrBuilder();", "public interface BuildingBlockService {\n\n\t/**\n\t * Retrieves the building block by id.\n\t * \n\t * @param id\n\t * the id of building block to be retrieved.\n\t * @return building block.\n\t * @throws BusinessException\n\t * In case of exception.\n\t */\n\tBuildingBlock findBuildingBlockById(Long id) throws BusinessException;\n\n\t/**\n\t * Retrieves all building blocks available.\n\t * \n\t * @return all building blocks available.\n\t * @throws BusinessException\n\t * In case of exception.\n\t */\n\tCollection<BuildingBlock> findAllBuildingBlocks() throws BusinessException;\n\n\t/**\n\t * Saves the building block.\n\t * \n\t * @return the persisted building block.\n\t * @throws BusinessException\n\t * In case of exception.\n\t */\n\tBuildingBlock saveBuildingBlock(BuildingBlock buildingBlock) throws BusinessException;\n\n\t/**\n\t * Removes the building block.\n\t * \n\t * @throws BusinessException\n\t * In case of exception.\n\t */\n\tvoid removeBuildingBlock(BuildingBlock buildingBlock) throws BusinessException;\n\n\t/**\n\t * Retrieves all building blocks by building block type.\n\t * \n\t * @return all building blocks by building block type.\n\t * @throws BusinessException\n\t * In case of exception.\n\t */\n\tCollection<BuildingBlock> findBuildingBlocksByType(BuildingBlockConstant buildingBlockType) throws BusinessException;\n\n\t/**\n\t * Retrieves all building blocks for branch id.\n\t * \n\t * @param branchId\n\t * branch object id for which all building blocks have to be\n\t * retrieved.\n\t * @return all building blocks for branch id.\n\t * @throws BusinessException\n\t * In case of exception.\n\t */\n\tCollection<BuildingBlock> findBuildingBlocksbyBranchId(Long branchId) throws BusinessException;\n\n\t/**\n\t * Retrieves all building blocks for branch id and building block type.\n\t * \n\t * @param branchId\n\t * branch object id.\n\t * @param buildingBlockType\n\t * building block type.\n\t * @return all building blocks for branch id and building block type.\n\t * @throws BusinessException\n\t * In case of exception.\n\t */\n\tCollection<BuildingBlock> findBuildingBlocksbyBranchIdAndBuildingBlockType(Long branchId, BuildingBlockConstant buildingBlockType) throws BusinessException;\n\n\t/**\n\t * Retrieves building block by building block type and code.\n\t * \n\t * @param buildingBlockType\n\t * building block type.\n\t * \n\t * @param code\n\t * building block code.\n\t * @return all building blocks by building block type.\n\t * @throws BusinessException\n\t * In case of exception.\n\t */\n\tBuildingBlock findBuildingBlockByTypeAndCode(BuildingBlockConstant buildingBlockType, String code) throws BusinessException;\n\n\t/**\n\t * Retrieve all mandatory building blocks.\n\t * \n\t * @return collection of all mandatory building blocks.\n\t */\n\tCollection<BuildingBlock> findAllMandatoryBuildingBlocks() throws SystemException;\n\n\t/**\n\t * Retrieve all fee Type building blocks for a branch by fee classification.\n\t * \n\t * @param branchId\n\t * the branch id.\n\t * @param feeClassificationLevel\n\t * the fee classification level constant.\n\t * @return\n\t * @throws BusinessException\n\t * in case of any business exceptions.\n\t */\n\tCollection<BuildingBlock> findFeeTypeBuildingBlocksbyBranchIdAndFeeClassificationLevel(final Long branchId,\n\t\t\tFeeClassificationLevelConstant feeClassificationLevel) throws BusinessException, SystemException;\n\n\t/**\n\t * Retrieve all fee Type building block for a branch by fee type.\n\t * \n\t * @param branchId\n\t * the branch id.\n\t * @param feeClassificationLevel\n\t * the fee classification level constant.\n\t * @return\n\t * @throws BusinessException\n\t * in case of any business exceptions.\n\t */\n\tCollection<BuildingBlock> findFeeTypeBuildingBlocksbyBranchIdAndFeeType(Long branchId, final FeeTypeConstant feeTypeConstant) throws BusinessException,\n\t\t\tSystemException;\n}", "public List<Brick> build() {\n\t\treturn this.mapBuilder.build();\n\t}", "public alluxio.proto.journal.Block.BlockInfoEntry.Builder getBlockInfoBuilder() {\n bitField0_ |= 0x00000010;\n onChanged();\n return getBlockInfoFieldBuilder().getBuilder();\n }", "public List<BbanStructureDTO> getBbanStructures() {\n return bbanStructures;\n }", "public List<Configuration> getAll();", "public phaseI.Hdfs.BlockLocations getBlockLocations(int index) {\n if (blockLocationsBuilder_ == null) {\n return blockLocations_.get(index);\n } else {\n return blockLocationsBuilder_.getMessage(index);\n }\n }", "public java.util.List<edu.usfca.cs.dfs.StorageMessages.StorageNodeInfo.Builder> \n getSnInfoBuilderList() {\n return getSnInfoFieldBuilder().getBuilderList();\n }", "public java.util.List<edu.usfca.cs.dfs.StorageMessages.StorageNodeInfo.Builder> \n getSnInfoBuilderList() {\n return getSnInfoFieldBuilder().getBuilderList();\n }", "public java.util.List<edu.usfca.cs.dfs.StorageMessages.StorageNodeInfo.Builder> \n getSnInfoBuilderList() {\n return getSnInfoFieldBuilder().getBuilderList();\n }", "phaseI.Hdfs.BlockLocations getBlockInfo();", "public ArrayList<Block> getWalls() {\n\t\tArrayList<Block> b = new ArrayList<Block>();\n\t\tfor (int i = 0; i <maze.size(); i++) {\n\t\t\tif (maze.get(i).t == 'w') {\n\t\t\t\tb.add(maze.get(i));\n\t\t\t}\n\t\t}\n\t\treturn b;\n\t}", "phaseI.Hdfs.BlockLocationsOrBuilder getNewBlockOrBuilder();", "public java.util.List<entities.Torrent.NodeId.Builder>\n getNodesBuilderList() {\n return getNodesFieldBuilder().getBuilderList();\n }", "@GetMapping ( value = {\"/block/{from}/{to}\", \"/block/{from}\"} )\n\tpublic Set<String> getBlock ( @PathVariable ( name = \"from\", required = true) String from,\n\t\t\t@PathVariable ( name = \"to\", required = false) List<String> to ) {\n\t\tif ( to == null ) {\n\t\t\treturn blocksService.allBlocks(from);\n\t\t} else {\n\t\t\treturn blocksService.allBlocks(from, to);\n\t\t}\n\t\t\n\t}", "public phaseI.Hdfs.BlockLocations.Builder addBlockLocationsBuilder() {\n return getBlockLocationsFieldBuilder().addBuilder(\n phaseI.Hdfs.BlockLocations.getDefaultInstance());\n }", "public Block[] getCannons() {\n\t\tArrayList<Block> cannons = new ArrayList<Block>();\n\t\tfor (int i = 0; i < this.blocks.length; i++) {\n\t\t\tif (blocks[i].getType().equals(Material.DISPENSER))\n\t\t\t\tcannons.add(blocks[i]);\n\t\t}\n\t\treturn cannons.toArray(new Block[0]);\n\t}", "public java.util.List<com.rpg.framework.database.Protocol.Monster.Builder> \n getMonstersBuilderList() {\n return getMonstersFieldBuilder().getBuilderList();\n }", "public List<BuildingType> getAllBuildingType()\r\n\t{\n\t\tList<BuildingType> list = new ArrayList<BuildingType>();\r\n\t\t// This is the SP to be called\r\n\t\tString query = \"{ call readAllBuildingType}\";\t\r\n\t\t// Open a connection to DB\r\n\t\tif(conn == null)\r\n\t\t\tconn = JdbcSqlServerConnection.getConnection();\r\n\t\t\r\n\t\ttry\r\n\t\t{\r\n\t\t\t// Prepare the call for SP\r\n\t\t\tcs = conn.prepareCall(query);\r\n\t\t\t// make SP call\r\n\t\t\trs = cs.executeQuery();\r\n\t\t\t//loop the recordset\r\n\t\t\twhile(rs.next())\r\n\t\t\t{\r\n\t\t\t\tBuildingType buildType = new BuildingType();\r\n\t\t\t\tbuildType.setID(rs.getInt(1));\r\n\t\t\t\tbuildType.setDescription(rs.getNString(2));\r\n\t\t\t\tlist.add(buildType);\r\n\t\t\t}\r\n\t\t}catch(Exception ex){\r\n\t\t\tex.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t\t//close che db coonection\r\n\t\tif(conn!=null)\r\n\t\t\ttry {\r\n\t\t\t\tJdbcSqlServerConnection.closeConnection(conn);\r\n\t\t\t} catch (SQLException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\r\n\t\t//return the list of BuildingType\r\n\t\treturn list;\r\n\t\t\r\n\t}", "public Array<BlockDrawable> getBoardBlocksToDraw() {\r\n\t\tArray<BlockDrawable> blocksToDraw = new Array<BlockDrawable>();\r\n\t\tblocksToDraw.addAll(tablero);\t\t\r\n\t\treturn blocksToDraw;\r\n\t}", "public java.util.List<com.rpg.framework.database.Protocol.Monster.Builder> \n getMonstersBuilderList() {\n return getMonstersFieldBuilder().getBuilderList();\n }", "@Override\n public Block getBlock() {\n Block b = null;\n while (b == null) {\n boolean noMoreBlocks = blocks.isEmpty();\n if (!noMoreBlocks) {\n b = blocks.poll();\n }\n\n if (noMoreBlocks || b == null) {\n synchronized (BlocksPool.class) { // can be easily changed to lock-free\n if (blocks.isEmpty()) {\n alloc(newAllocBlocks);\n }\n }\n }\n }\n return b;\n }", "public void testFetchBlocks() throws IOException {\n\t\tLocalRawDataBlockList list = new LocalRawDataBlockList();\r\n\t\tbyte[] data = new byte[512];\r\n\t\tint offset = 0;\r\n\r\n\t\tLittleEndian.putInt(data, offset, -3); // for the BAT block itself\r\n\t\toffset += LittleEndianConsts.INT_SIZE;\r\n\r\n\t\t// document 1: is at end of file already; start block = -2\r\n\t\t// document 2: has only one block; start block = 1\r\n\t\tLittleEndian.putInt(data, offset, -2);\r\n\t\toffset += LittleEndianConsts.INT_SIZE;\r\n\r\n\t\t// document 3: has a loop in it; start block = 2\r\n\t\tLittleEndian.putInt(data, offset, 2);\r\n\t\toffset += LittleEndianConsts.INT_SIZE;\r\n\r\n\t\t// document 4: peeks into document 2's data; start block = 3\r\n\t\tLittleEndian.putInt(data, offset, 4);\r\n\t\toffset += LittleEndianConsts.INT_SIZE;\r\n\t\tLittleEndian.putInt(data, offset, 1);\r\n\t\toffset += LittleEndianConsts.INT_SIZE;\r\n\r\n\t\t// document 5: includes an unused block; start block = 5\r\n\t\tLittleEndian.putInt(data, offset, 6);\r\n\t\toffset += LittleEndianConsts.INT_SIZE;\r\n\t\tLittleEndian.putInt(data, offset, -1);\r\n\t\toffset += LittleEndianConsts.INT_SIZE;\r\n\r\n\t\t// document 6: includes a BAT block; start block = 7\r\n\t\tLittleEndian.putInt(data, offset, 8);\r\n\t\toffset += LittleEndianConsts.INT_SIZE;\r\n\t\tLittleEndian.putInt(data, offset, 0);\r\n\t\toffset += LittleEndianConsts.INT_SIZE;\r\n\r\n\t\t// document 7: includes an XBAT block; start block = 9\r\n\t\tLittleEndian.putInt(data, offset, 10);\r\n\t\toffset += LittleEndianConsts.INT_SIZE;\r\n\t\tLittleEndian.putInt(data, offset, -4);\r\n\t\toffset += LittleEndianConsts.INT_SIZE;\r\n\r\n\t\t// document 8: goes off into space; start block = 11;\r\n\t\tLittleEndian.putInt(data, offset, 1000);\r\n\t\toffset += LittleEndianConsts.INT_SIZE;\r\n\r\n\t\t// document 9: no screw ups; start block = 12;\r\n\t\tint index = 13;\r\n\r\n\t\tfor (; offset < 508; offset += LittleEndianConsts.INT_SIZE) {\r\n\t\t\tLittleEndian.putInt(data, offset, index++);\r\n\t\t}\r\n\t\tLittleEndian.putInt(data, offset, -2);\r\n\t\tlist.add(new RawDataBlock(new ByteArrayInputStream(data)));\r\n\t\tlist.fill(1);\r\n\t\tint[] blocks = { 0 };\r\n\t\tBlockAllocationTableReader table = new BlockAllocationTableReader(\r\n\t\t POIFSConstants.SMALLER_BIG_BLOCK_SIZE_DETAILS, 1, blocks, 0, -2, list);\r\n\t\tint[] start_blocks = { -2, 1, 2, 3, 5, 7, 9, 11, 12 };\r\n\t\tint[] expected_length = { 0, 1, -1, -1, -1, -1, -1, -1, 116 };\r\n\r\n\t\tfor (int j = 0; j < start_blocks.length; j++) {\r\n\t\t\ttry {\r\n\t\t\t\tListManagedBlock[] dataBlocks = table.fetchBlocks(start_blocks[j], -1, list);\r\n\r\n\t\t\t\tif (expected_length[j] == -1) {\r\n\t\t\t\t\tfail(\"document \" + j + \" should have failed, but found a length of \"\r\n\t\t\t\t\t\t\t+ dataBlocks.length);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tassertEquals(expected_length[j], dataBlocks.length);\r\n\t\t\t\t}\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\tif (expected_length[j] == -1) {\r\n\r\n\t\t\t\t\t// no problem, we expected a failure here\r\n\t\t\t\t} else {\r\n\t\t\t\t\tthrow e;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public phaseI.Hdfs.BlockLocations getBlockLocations(int index) {\n return blockLocations_.get(index);\n }", "public Iterator getLobbies() {\n rrwl_lobbylist.readLock().lock();\n try {\n return lobbyList.iterator();\n } finally {\n rrwl_lobbylist.readLock().unlock();\n }\n }", "public java.util.List<Report.LocationOuterClass.Wifi.Builder> \n getWifisBuilderList() {\n return getWifisFieldBuilder().getBuilderList();\n }", "public java.util.List<TransmissionProtocol.Request.Builder> \n getRequestBuilderList() {\n return getRequestFieldBuilder().getBuilderList();\n }", "phaseI.Hdfs.BlockLocationsOrBuilder getBlockLocationsOrBuilder(\n int index);", "public java.util.List<com.rpg.framework.database.Protocol.MonsterState.Builder> \n getDataBuilderList() {\n return getDataFieldBuilder().getBuilderList();\n }", "@Override\n\tpublic List<Besoin> getAllBesion() {\n\t\treturn dao.getAllBesion();\n\t}", "public Collection<Block> getBadBlocks() {\n return badBlocks.asMap().values();\n }", "public java.util.List<org.multibit.hd.core.protobuf.MBHDContactsProtos.Contact.Builder> \n getContactBuilderList() {\n return getContactFieldBuilder().getBuilderList();\n }", "public List<Boek> alleBoekenLijst () {\n return em.createNamedQuery(\"BoekEntity.zoekAllen\", Boek.class).getResultList();\n //return em.createQuery(\"SELECT b FROM Book b\", Book.class).getResultList();\n }", "public String loadBlocks() {\n //System.out.println(\"loading blocks\");\n String blockData = \"\";\n FileChooser fileChooser = new FileChooser();\n fileChooser.setInitialDirectory(new File(lastOpenedLocation));\n fileChooser.setTitle(\"Open\");\n fileChooser.getExtensionFilters().addAll(\n new FileChooser.ExtensionFilter(\"XML files\", \"*.xml\")\n );\n File selectedFile = fileChooser.showOpenDialog(ownerWindow);\n //System.out.println(\"file selected\");\n if (selectedFile != null) {\n lastOpenedLocation = selectedFile.getParent();\n //System.out.println(\"saved last opened location\");\n try {\n BufferedReader fReader = new BufferedReader(new FileReader(selectedFile));\n blockData = fReader.lines().collect(Collectors.joining());\n fReader.close();\n } catch (FileNotFoundException ex) {\n //System.out.println(\"filenotfoundexception\");\n Logger.getLogger(DwenguinoBlocklyServer.class.getName()).log(Level.SEVERE, null, ex);\n } catch (IOException ex) {\n //System.out.println(\"ioexception\");\n Logger.getLogger(DwenguinoBlocklyServer.class.getName()).log(Level.SEVERE, null, ex);\n }\n\n }\n\n return blockData;\n }" ]
[ "0.67969745", "0.6775533", "0.6694085", "0.65855515", "0.6498966", "0.626507", "0.6203408", "0.61912197", "0.6185207", "0.6184587", "0.6083885", "0.5983466", "0.5967897", "0.5957351", "0.5903938", "0.58801484", "0.5845484", "0.584417", "0.58429474", "0.583957", "0.5835262", "0.5833877", "0.57937247", "0.57925785", "0.5786768", "0.5765625", "0.5758983", "0.5751985", "0.5736027", "0.56900376", "0.56841034", "0.5679625", "0.56439847", "0.56284", "0.5621408", "0.5573652", "0.5573652", "0.55706835", "0.5503933", "0.54993397", "0.5495724", "0.54934865", "0.54884726", "0.5483488", "0.54833114", "0.54567844", "0.54543984", "0.5454249", "0.5453521", "0.5442892", "0.5421122", "0.54133594", "0.5393731", "0.53936607", "0.53738636", "0.5368341", "0.5350855", "0.5350855", "0.5350855", "0.5343541", "0.5340963", "0.5340441", "0.5326735", "0.5323385", "0.53229725", "0.5318435", "0.53128946", "0.5309386", "0.5305759", "0.53054523", "0.5301941", "0.5283406", "0.5260464", "0.52594525", "0.52594525", "0.52594525", "0.52560604", "0.52545106", "0.5243961", "0.5232372", "0.5228011", "0.52265114", "0.5218461", "0.5204392", "0.5203049", "0.52025616", "0.5201781", "0.52003545", "0.5196609", "0.5191765", "0.51732165", "0.51627225", "0.5160866", "0.5157376", "0.51490164", "0.51416624", "0.51408", "0.5125183", "0.5113641", "0.51112837" ]
0.7998563
0
Saves the building block.
BuildingBlock saveBuildingBlock(BuildingBlock buildingBlock) throws BusinessException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String saveProductionBlock(ProductionBlock pb);", "Block saveBlock(Block block) throws BlockExistsException;", "@Override\n public Building save(Building entity) {\n return dao.save(entity);\n }", "public void save(){\r\n if (inputValidation()) {\r\n if (modifyingPart) {\r\n saveExisting();\r\n } else {\r\n saveNew();\r\n }\r\n closeWindow();\r\n }\r\n\r\n }", "@Override\n\tpublic void saveBlocks() {\n\t\tint saved = 0;\n\t\ttry {\n\t\t\tsaved = ZoneVolumeMapper.saveZoneBlocksAndEntities(this, this.zone.getName());\n\t\t} catch (SQLException ex) {\n\t\t\tWar.war.log(\"Failed to save warzone \" + zone.getName() + \": \" + ex.getMessage(), Level.WARNING);\n\t\t\tex.printStackTrace();\n\t\t}\n\t\tWar.war.log(\"Saved \" + saved + \" blocks in warzone \" + this.zone.getName() + \".\", java.util.logging.Level.INFO);\n\t\tthis.isSaved = true;\n\t}", "@Override\n\tpublic void save() throws Exception {\n\t\tVoodooUtils.focusFrame(\"bwc-frame\");\n\t\tgetControl(\"save\").click();\n\t\tVoodooUtils.waitForReady();\n\t\tVoodooUtils.focusDefault();\n\t}", "public void save() {\n\t\tthis.setState(Constants.CWorld.STATE_SAVING);\n\t\tthis.getWorld().saveAll();\n\t\tthis.setState(Constants.CWorld.STATE_ONLINE);\n\t}", "public void saveNew() {\r\n String name, compName;\r\n double price;\r\n int id, inv, max, min, machId;\r\n //Gets the ID of the last part in the inventory and adds 1 to it \r\n id = Inventory.getAllParts().get(Inventory.getAllParts().size() - 1).getId() + 1;\r\n name = nameField.getText();\r\n inv = Integer.parseInt(invField.getText());\r\n price = Double.parseDouble(priceField.getText());\r\n max = Integer.parseInt(maxField.getText());\r\n min = Integer.parseInt(minField.getText());\r\n\r\n if (inHouseSelected) {\r\n machId = Integer.parseInt(machineOrCompanyField.getText());\r\n Part newPart = new InHouse(id, name, price, inv, min, max, machId);\r\n Inventory.addPart(newPart);\r\n } else {\r\n compName = machineOrCompanyField.getText();\r\n Part newPart = new Outsourced(id, name, price, inv, min, max, compName);\r\n Inventory.addPart(newPart);\r\n }\r\n\r\n }", "public void save() {\r\n\t\tCampLeaseDAO leaseDao = (CampLeaseDAO) getApplicationContext().getBean(\"leaseDaoBean\", CampLeaseDAO.class);\r\n\t\tleaseDao.save(this);\r\n\t}", "public void save() {\t\n\t\n\t\n\t}", "public void saveData(){\n reporter.info(\"Save edited form\");\n clickOnElement(LOCATORS.getBy(COMPONENT_NAME,\"SAVE_BUTTON\"));\n }", "private void simpleSave()\n {\n // updates the branchfile stats\n updateFileStats(FileState.valueOf(newPageState), selectedAssignee, branch, getAllPageIdsForUpdate());\n\n // save change comment to page\n wikiContext.runInTenantContext(branch, getWikiSelector(), new CallableX<Void, RuntimeException>()\n {\n @Override\n public Void call() throws RuntimeException\n {\n wikiContext.getWikiWeb().saveElement(wikiContext, page, false);\n return null;\n }\n });\n }", "public String updateProductionBlock(ProductionBlock pb);", "public void save(){\r\n\t\tmanager.save(this);\r\n\t}", "private WriteBlockRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "private void saveResult() {\n\t\tBuild newBuild = assembleBuild();\n\t\t\n\t\t// last minute sanity checking on user's input before we write it to the database\n\t\tif (newBuild.getName() == null || newBuild.getName().matches(\"\")) {\n\t\t\t// TODO generate one automatically (Untitled Build #1...)\n\t\t\tshowMessage(R.string.edit_build_no_title_error);\n\t\t\treturn;\n\t\t}\n\t\tif (!newBuild.isWellOrdered()) {\n\t\t\tshowMessage(R.string.edit_build_not_well_ordered_error);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tlong buildId = -1;\n\t\tif (mCreatingNewBuild) {\n\t\t\t// set creation time\n\t\t\tDate now = new Date();\n\t\t\tnewBuild.setCreated(now);\n\t\t\tnewBuild.setModified(now);\n\t\t} else {\n\t\t\tif (userMadeChanges(newBuild)) {\n\t\t\t\t// set last modified time\n\t\t\t\tnewBuild.setModified(new Date());\t// current time\n\t\t\t\t\n\t\t\t\tbuildId = mBuildId;\n\t\t\t} else {\n\t\t\t\tfinish();\t// no changes made, just finish\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\t\n\t\t// finishes activity if successful\n\t\tnew WriteBuildTask(newBuild, buildId).execute();\n\t}", "@Override\r\n\tpublic void save() {\n\t\tif (section != null && !section.isEmpty()) {\r\n\t\t\tif (gradeLevel == null || gradeLevel.isEmpty()) {\r\n\t\t\t\tSection sec = (Section) Section.extractObject(Section.class.getSimpleName(), section);\r\n\t\t\t\tgradeLevel = sec.gradeLevel;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (course == null && gradeLevel != null && !gradeLevel.isEmpty()) {\r\n\t\t\tGradeLevel lvl = (GradeLevel) GradeLevel.extractObject(GradeLevel.class.getSimpleName(), gradeLevel);\r\n\t\t\tcollege = lvl.college;\r\n\t\t\tcourse = lvl.course;\r\n\t\t}\r\n\t\tif (course!=null && course.startsWith(\"B\")) {\r\n\t\t\tcollege = true;\r\n\t\t}\r\n\t\tif (!isEmptyKey()) {\r\n//\t\t\twe can get the latest enrollment schoolyear\r\n\t\t\ttry {\r\n\t\t\t\tif (\"ENROLLED\".equals(status)) {\r\n\t\t\t\t\tString sc = DBClient.getSingleColumn(BeanUtil.concat(\"SELECT a.schoolYear FROM Enrollment a WHERE a.studentId=\",personId,\" ORDER BY a.schoolYear DESC\")).toString();\r\n\t\t\t\t\tlatestSchoolYear = sc;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tcatch (Exception e) {\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (schoolYear==null || schoolYear.isEmpty()) {\r\n\t\t\tschoolYear = AppConfig.getSchoolYear();\r\n\t\t}\r\n\t\tpersonType = \"STUDENT\";\r\n\t\tif (isEmptyKey()) {\r\n\t\t\tsuper.save();\r\n new springbean.SchoolDefaultProcess().createAllSubjects(this);\r\n\t\t}\r\n\t\telse {\r\n\t\t\tsuper.save();\r\n\t\t}\r\n\t}", "public void saveBlocks() {\n\n if (blockCount == 0 || leftBlockIndex < 0)\n return;\n\n EditText blockTitleView1 = (EditText)block1ViewSet.get(BLOCK_TITLE);\n model.getBlocks().get(leftBlockIndex).setTitle( blockTitleView1.getText().toString());\n\n if (model.getBlocks().get(leftBlockIndex).getSubBlock1() != null) {\n if (model.getBlocks().get(leftBlockIndex).getSubBlock1().getType() == SubBlockType.TEXT) {\n\n EditText textView1 = (EditText) block1ViewSet.get(SB1_TEXT);\n model.getBlocks().get(leftBlockIndex).getSubBlock1().setText(textView1.getText().toString());\n\n } else {\n\n EditText subtitleView1 = (EditText) block1ViewSet.get(SB1_SUBTITLE);\n model.getBlocks().get(leftBlockIndex).getSubBlock1().setSubtitle(subtitleView1.getText().toString());\n\n }\n }\n\n if (model.getBlocks().get(leftBlockIndex).getSubBlock2() != null) {\n if (model.getBlocks().get(leftBlockIndex).getSubBlock2().getType() == SubBlockType.TEXT) {\n\n EditText textView2 = (EditText) block1ViewSet.get(SB2_TEXT);\n model.getBlocks().get(leftBlockIndex).getSubBlock2().setText(textView2.getText().toString());\n\n } else {\n\n EditText subtitleView2 = (EditText) block1ViewSet.get(SB2_SUBTITLE);\n model.getBlocks().get(leftBlockIndex).getSubBlock2().setSubtitle(subtitleView2.getText().toString());\n\n }\n }\n\n //check if there are 2 blocks\n if(blockCount>1) {\n\n\n EditText blockTitleView2 = (EditText)block2ViewSet.get(BLOCK_TITLE);\n model.getBlocks().get(leftBlockIndex+1).setTitle( blockTitleView2.getText().toString());\n\n if (model.getBlocks().get(leftBlockIndex + 1).getSubBlock1() != null) {\n if (model.getBlocks().get(leftBlockIndex + 1).getSubBlock1().getType() == SubBlockType.TEXT) {\n\n EditText textView3 = (EditText) block2ViewSet.get(SB1_TEXT);\n model.getBlocks().get(leftBlockIndex + 1).getSubBlock1().setText(textView3.getText().toString());\n\n } else {\n\n EditText subtitleView3 = (EditText) block2ViewSet.get(SB1_SUBTITLE);\n model.getBlocks().get(leftBlockIndex + 1).getSubBlock1().setSubtitle(subtitleView3.getText().toString());\n\n }\n }\n\n if (model.getBlocks().get(leftBlockIndex + 1).getSubBlock2() != null) {\n if (model.getBlocks().get(leftBlockIndex + 1).getSubBlock2().getType() == SubBlockType.TEXT) {\n\n EditText textView4 = (EditText) block2ViewSet.get(SB2_TEXT);\n model.getBlocks().get(leftBlockIndex + 1).getSubBlock2().setText(textView4.getText().toString());\n\n } else {\n\n EditText subtitleView4 = (EditText) block2ViewSet.get(SB2_SUBTITLE);\n model.getBlocks().get(leftBlockIndex + 1).getSubBlock2().setSubtitle(subtitleView4.getText().toString());\n\n }\n }\n }\n\n }", "public void save(){\n BoardSerializer.serialize(this);\n }", "void save(final Widget widget);", "public void save() {\n RegionOwn.saveRegionOwner(this);\n }", "InviteEntity save(InviteEntity builder);", "public void saveExisting() {\r\n Part modifiedPart = null;\r\n for (Part part : Inventory.getAllParts()) {\r\n if (Integer.parseInt(iDfield.getText()) == part.getId()) {\r\n modifiedPart = part;\r\n }\r\n }\r\n if (modifiedPart instanceof Outsourced && inHouseSelected) {\r\n replacePart(modifiedPart);\r\n\r\n } else if (modifiedPart instanceof InHouse && !inHouseSelected) {\r\n replacePart(modifiedPart);\r\n } else {\r\n modifiedPart.setName(nameField.getText());\r\n modifiedPart.setStock(Integer.parseInt(invField.getText()));\r\n modifiedPart.setPrice(Double.parseDouble(priceField.getText()));\r\n modifiedPart.setMax(Integer.parseInt(maxField.getText()));\r\n modifiedPart.setMin(Integer.parseInt(minField.getText()));\r\n if (inHouseSelected) {\r\n ((InHouse) modifiedPart).setMachineId(Integer.parseInt(machineOrCompanyField.getText()));\r\n } else {\r\n ((Outsourced) modifiedPart).setCompanyName(machineOrCompanyField.getText());\r\n }\r\n\r\n Inventory.updatePart(Inventory.getAllParts().indexOf(modifiedPart), modifiedPart);\r\n }\r\n\r\n }", "protected void onSubmit() {\n\n Building b = new Building(c.BuildingTypeId, c.StyleId, c.CityId,\n c.Architectural_element_Id, c.Agesid, c.Latitude, c.Longtitude,\n c.buildingname, c.Address);\n BuildingCollection bc = new BuildingCollection();\n bc.AddBuilding(b);\n this.setResponsePage(new BuildingListWithPropertiesPage());\n\n }", "public void save() {\n }", "@Override\n\tpublic void addBlock(Block block) {\n\t\tem.persist(block);\n\t}", "@Override\r\n\tpublic void innerSave() {\n\r\n\t}", "@Override\n public void save() {\n \n }", "protected void save() {\n close();\n if(saveAction != null) {\n saveAction.accept(getObject());\n }\n }", "private static void saveBb() {\n // if the name field is empty then display a message to the user and return\n if (tf_name.getText().equals(\"\")) {\n lbl_message.setText(\"Billboard must have a name\");\n return;\n }\n // if the name field is populated then attempt to add the billboard\n try {\n // populate the static instance \"billboard\" with the billboard data entered by the user\n populateBillboard();\n // set the action request to the server\n user.setAction(\"Edit Billboard\");\n // attempt connection to the server\n if (AttemptConnect()) {\n // Send user object to server\n objectStreamer.Send(user);\n objectStreamer.Send(billboard);\n // Await confirmation that the billboard was edited successfully\n if (dis.readBoolean()) {\n // display confirmation message to the user and post log confirmation\n lbl_message.setText(\"Billboard saved\");\n Log.Confirmation(\"New billboard saved successfully\");\n }\n // If billboard not edited then display message to the user\n else {\n lbl_message.setText(\"Unable to edit billboard\");\n Log.Error(\"Error when attempting to saved billboard\");\n }\n // Disconnect from server\n AttemptDisconnect();\n }\n // Post message to user if unable to connect to server\n else {\n Log.Error(\"Unable to connect to server\");\n }\n // clear all user input fields\n resetFields();\n // disable user input fields\n fieldsEnabled(false);\n }\n // catch any unanticipated exceptions and print to console\n catch (Exception e) {\n e.printStackTrace();\n Log.Error(\"Add billboard attempt request failed\");\n }\n }", "@Override\n\tpublic void save() {\n\t\t\n\t}", "@Override\n\tpublic void save() {\n\t\t\n\t}", "@Override\r\n\tpublic void save() {\n\r\n\t\ts.save();\r\n\r\n\t}", "@Override\n public void save()\n {\n \n }", "public void save() {\n\t\t\t\tAsyncCallback<BmUpdateResult> callback = new AsyncCallback<BmUpdateResult>() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onFailure(Throwable caught) {\n\t\t\t\t\t\tstopLoading();\n\t\t\t\t\t\tshowErrorMessage(this.getClass().getName() + \"-save(): ERROR \" + caught.toString());\n\t\t\t\t\t}\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onSuccess(BmUpdateResult result) {\n\t\t\t\t\t\tstopLoading();\n\t\t\t\t\t\tprocessUpdateResult(result);\n\t\t\t\t\t}\n\t\t\t\t};\n\n\t\t\t\t// Llamada al servicio RPC\n\t\t\t\ttry {\n\t\t\t\t\tif (!isLoading()) {\n\t\t\t\t\t\tstartLoading();\n\t\t\t\t\t\tgetUiParams().getBmObjectServiceAsync().save(bmoRequisitionItem.getPmClass(), bmoRequisitionItem, callback);\n\t\t\t\t\t}\n\t\t\t\t} catch (SFException e) {\n\t\t\t\t\tstopLoading();\n\t\t\t\t\tshowErrorMessage(this.getClass().getName() + \"-save(): ERROR \" + e.toString());\n\t\t\t\t}\n\t\t\t}", "private void btnSaveActionPerformed(java.awt.event.ActionEvent evt) {\n rom.save(obstacle, frog);\n isSaved = true;\n }", "@Override\r\n\tpublic void save() throws SaveException {\n\t\t\r\n\t}", "@Override\n\tpublic void build() {\n\t\tif(this.getContainer().isEmpty()){\n\t\t\tthis.addBuilding(new Building(BuildingType.CABSTAND, 150));\n\t\t\tMonopolyTheGame.getInstance().getActivePlayer().decBalance(150);\n\t\t\tsetEnabler(false);\n\t\t\t//currentSquare.setRent(currentSquare.getRent()*2);\n\t\t}else {\n\t\t\tSystem.out.println(\"You cannot bould multiple cab stands on a cab company\");\n\t\t}\n\t\t\n\t}", "public void Save() {\r\n //solo se salvara el container\r\n vc.getContainer();\r\n }", "public void save() {\r\n\t\tGame.getInstance().getInventory().add(id);\r\n\t}", "public void onSaveClicked(View view) {\n\n if (mInterest != 0.0f) {\n\n ContentValues values = new ContentValues();\n values.put(SavingsItemEntry.COLUMN_NAME_BANK_NAME, bankInput.getText().toString());\n values.put(SavingsItemEntry.COLUMN_NAME_AMOUNT, mAmount);\n values.put(SavingsItemEntry.COLUMN_NAME_YIELD, mYield);\n values.put(SavingsItemEntry.COLUMN_NAME_START_DATE, mStartDate.getTime());\n values.put(SavingsItemEntry.COLUMN_NAME_END_DATE, mEndDate.getTime());\n values.put(SavingsItemEntry.COLUMN_NAME_INTEREST, mInterest);\n\n if (mEditMode){\n //Update the data into database by ContentProvider\n getContentResolver().update(SavingsContentProvider.CONTENT_URI, values,\n SavingsItemEntry._ID + \"=\" + mSavingsBean.getId(), null);\n Log.d(Constants.LOG_TAG, \"Edit mode, updated existing savings item: \" + mSavingsBean.getId());\n }else {\n // Save the data into database by ContentProvider\n getContentResolver().insert(\n SavingsContentProvider.CONTENT_URI,\n values\n );\n }\n // Go back to dashboard\n //Intent intent = new Intent(this, DashboardActivity.class);\n //startActivity(intent);\n Utils.gotoDashBoard(this);\n finish();\n } else {\n Toast.makeText(this, R.string.missing_savings_information, Toast.LENGTH_LONG).show();\n }\n\n }", "void save(Bill bill);", "public void save(){\r\n\t\t//System.out.println(\"call save\");\r\n\t\tmodel.printDoc();\r\n\t}", "private void save(boolean closeAfterSave) {\r\n List lstDataToSave = null;\r\n try{\r\n subAwardBudgetEditor.stopCellEditing();\r\n int selectedRow = subAwardBudget.tblSubAwardBudget.getSelectedRow();\r\n BudgetSubAwardBean budgetSubAwardBean;\r\n if(selectedRow != -1) {\r\n budgetSubAwardBean = (BudgetSubAwardBean)data.get(selectedRow);\r\n String strComments = subAwardBudget.txtArComments.getText().trim();\r\n if((budgetSubAwardBean.getComments() == null && strComments.length() > 0) ||\r\n (budgetSubAwardBean.getComments() != null && !budgetSubAwardBean.getComments().equals(strComments))) {\r\n budgetSubAwardBean.setComments(subAwardBudget.txtArComments.getText().trim());\r\n if(budgetSubAwardBean.getAcType() == null) {\r\n budgetSubAwardBean.setAcType(TypeConstants.UPDATE_RECORD);\r\n }\r\n }\r\n }\r\n \r\n validate();\r\n \r\n lstDataToSave = getDataToSave();\r\n \r\n RequesterBean requesterBean = new RequesterBean();\r\n requesterBean.setDataObject(lstDataToSave);\r\n requesterBean.setFunctionType(BudgetSubAwardConstants.SAVE_BUDGET_SUB_AWARD);//Save BudgetSubAward\r\n AppletServletCommunicator appletServletCommunicator = new AppletServletCommunicator(connect, requesterBean);\r\n appletServletCommunicator.send();\r\n \r\n ResponderBean responderBean = appletServletCommunicator.getResponse();\r\n boolean success = responderBean.hasResponse();\r\n List list = null;\r\n // Added for COEUSQA-2115 Subaward budgeting for Proposal Development - Start\r\n // Once the sub award details are modified and saved, budget details will be refreshed.\r\n setRefreshBudgetDetails(true);\r\n if(success){\r\n Object object = responderBean.getDataObject();\r\n list = (List)object;\r\n boolean isCostElementInactive = ((Boolean)list.get(1)).booleanValue();\r\n // When any of the cost elements(SUBCONTRACTOR_F_AND_A_LT_25K,SUBCONTRACTOR_F_AND_A_GT_25K,SUBCONTRACTOR_DIRECT_F_AND_A_LT_25K,SUBCONTRACTOR_DIRECT_F_AND_A_GT_25K) \r\n // defined in the following parameter and its been used for the creation of the line item and inactive\r\n // Line item wont be created for the sub award which uses the inactive cost element\r\n if(isCostElementInactive){\r\n CoeusOptionPane.showErrorDialog(coeusMessageResources.parseMessageKey(COST_ELEMENT_INACTIVE));\r\n }\r\n }\r\n // Added for COEUSQA-2115 Subaward budgeting for Proposal Development - End\r\n if(success && !closeAfterSave) {\r\n deletedData = null;\r\n Object object = responderBean.getDataObject();\r\n if(object instanceof List) {\r\n list = (List)object;\r\n // Modified for COEUSQA-2115 Subaward budgeting for Proposal Development - Start\r\n// sync(list);\r\n sync((List)list.get(0));\r\n // Modified for COEUSQA-2115 Subaward budgeting for Proposal Development - End\r\n }\r\n subAwardBudgetTableModel.fireTableDataChanged();\r\n displayDetails();\r\n subAwardBudget.tblSubAwardBudget.setRowSelectionInterval(selectedRow, selectedRow);\r\n }\r\n \r\n if(closeAfterSave) {\r\n subAwardDlgWindow.dispose();\r\n }\r\n }catch (CoeusUIException coeusUIException) {\r\n subAwardBudget.tblSubAwardBudget.setRowSelectionInterval(coeusUIException.getTabIndex(), coeusUIException.getTabIndex());\r\n CoeusOptionPane.showDialog(coeusUIException);\r\n //Don't refresh here, since this exception is thrown by validate method\r\n }catch (Exception exception) {\r\n CoeusOptionPane.showErrorDialog(exception.getMessage());\r\n exception.printStackTrace();\r\n refresh(lstDataToSave, null, null);\r\n }\r\n }", "public void save(){\r\n\t\ttry {\r\n\t\t\tgame.suspendLoop();\r\n\t\t\tGameStockage.getInstance().save(game);\r\n\t\t\tgame.resumeLoop();\r\n\t\t} catch (GameNotSaveException e) {\r\n\t\t\tSystem.err.println(e.getMessage());\r\n\t\t\tgame.resumeLoop();\r\n\t\t} catch (IOException e) {\r\n\t\t\tSystem.err.println(e.getMessage());\r\n\t\t\tgame.resumeLoop();\r\n\t\t}\r\n\t}", "private void save() {\n Toast.makeText(ContactActivity.this, getString(R.string.save_contact_toast), Toast.LENGTH_SHORT).show();\n\n String nameString = name.getText().toString();\n String titleString = title.getText().toString();\n String emailString = email.getText().toString();\n String phoneString = phone.getText().toString();\n String twitterString = twitter.getText().toString();\n \n if (c != null) {\n datasource.editContact(c, nameString, titleString, emailString, phoneString, twitterString);\n }\n else {\n \tc = datasource.createContact(nameString, titleString, emailString, phoneString, twitterString);\n }\n }", "public String buildingBlockAction() throws Exception {\n\t\t\t\t\n\t return \"success\";\n\t }", "@Override\n public void save() {\n\n }", "public void saveComponent() {\r\n Component component = editingStrategy.itemForSaving();\r\n \r\n if (validate(component)) {\r\n getComponentService().saveComponent(component);\r\n view.hide();\r\n }\r\n }", "@Override\n public void Save() {\n\t \n }", "@Override\r\n\tpublic void save() {\n\r\n\t}", "@Override\r\n\tpublic void save() {\n\r\n\t}", "public void save(){\n\t\tlowresModelManager.save();\n\t}", "public void save(CbmCItemFininceItem entity);", "@Override\r\n\tpublic void save(Plate tipo) {\n\t\t\r\n\t}", "public void save() throws Exception {\n\t\tgetControl(\"saveButton\").click();\n\t\tVoodooUtils.pause(3000);\n\t}", "public void save() {\n ProductData.saveData(tree);\n }", "public org.naru.park.ParkController.CommonAction.Builder getSaveBeaconBuilder() {\n \n onChanged();\n return getSaveBeaconFieldBuilder().getBuilder();\n }", "private void saveBlock(RandomAccessFile file, int i, int j, int k) throws IOException\n {\n BlockPos pos = this.range.min.add(i, j, k);\n IBlockState state = world.getBlockState(pos);\n\n int id = Block.getIdFromBlock(state.getBlock());\n int meta = state.getBlock().getMetaFromState(state);\n\n file.writeShort(id);\n file.writeByte(meta);\n\n /* Add tile entity to tiles list */\n TileEntity tile = world.getTileEntity(pos);\n\n if (tile != null)\n {\n this.tiles.appendTag(tile.writeToNBT(new NBTTagCompound()));\n }\n }", "void save() {\n File file = new File(main.myPath + \"state.xml\");\n Framework.backup(main.myPath + \"state.xml\");\n Framework.transform(stateDoc, new StreamResult(file), null);\n setDirty(false);\n }", "public void saveBack() {\n\t\tmodified = false;\n\n\t\t// set basics\n\t\tRubyHelper.setNum(object, \"@code\", id);\n\t\tRubyHelper.setNum(object, \"@indent\", indent);\n\n\t\t// set parameters\n\t\tRubyArray para = (RubyArray) object.getInstanceVariable(\"@parameters\");\n\t\tpara.clear();\n\n\t\tfor (IRubyObject r : parameters) {\n\t\t\tpara.add(r);\n\t\t}\n\t}", "public void saveAndCreateNew() throws Exception {\n\t\tVoodooUtils.focusFrame(\"bwc-frame\");\n\t\tgetControl(\"saveAndCreateNew\").click();\n\t\tVoodooUtils.waitForReady();\n\t\tVoodooUtils.focusDefault();\n\t}", "void save(ViewDefinition viewDefinition);", "public void saveFormData() {\r\n if(!saveRequired) return;\r\n if(cvHierarchyData != null && cvHierarchyData.size()>0) {\r\n SponsorHierarchyBean sponsorHierarchyBean;\r\n for(int index=0; index<cvHierarchyData.size(); index++) {\r\n try {\r\n sponsorHierarchyBean = (SponsorHierarchyBean)cvHierarchyData.get(index);\r\n if(sponsorHierarchyBean.getAcType() != null) {\r\n if(sponsorHierarchyBean.getAcType() == TypeConstants.UPDATE_RECORD) {\r\n queryEngine.update(queryKey,sponsorHierarchyBean);\r\n }else if(sponsorHierarchyBean.getAcType() == TypeConstants.INSERT_RECORD) {\r\n queryEngine.insert(queryKey,sponsorHierarchyBean);\r\n }else if(sponsorHierarchyBean.getAcType() == TypeConstants.DELETE_RECORD) {\r\n queryEngine.delete(queryKey,sponsorHierarchyBean);\r\n }\r\n }\r\n }catch(CoeusException coeusException){\r\n coeusException.printStackTrace();\r\n }\r\n }\r\n }\r\n saveRequired = false;\r\n }", "@Override\n\tpublic void save(Field entity) {\n\t\t\n\t}", "public void saveJalLibraryPlate(JalLibraryPlate jalLibraryPlate);", "public void commit(boolean onSave) {\r\n\t\tfor( IFormPart part : _parts ) {\r\n\t\t\tif ( part.isDirty() ) part.commit( onSave );\r\n\t\t}\r\n\t}", "public void store(Block fb) throws Exception {\r\n\t\tsuper.store(fb);\r\n\t}", "public void trySave() throws BOException {\n//\t\tif (verifyState()) {\n\t\tverifyState();\n\t\tsave();\n//\t\t}\n\t}", "private void saveCourse() {\n String nameString = mNameEditText.getText().toString().trim();\n\n // Check if this is supposed to be a new pet\n // and check if all the fields in the editor are blank\n if (mCurrentCourseUri == null && TextUtils.isEmpty(nameString)) {\n // Since no fields were modified, we can return early without creating a new pet.\n // No need to create ContentValues and no need to do any ContentProvider operations.\n return;\n }\n\n // Create a ContentValues object where column names are the keys,\n // and pet attributes from the editor are the values.\n ContentValues values = new ContentValues();\n values.put(CourseEntry.COLUMN_COURSE_NAME, nameString);\n\n // Determine if this is a new or existing pet by checking if mCurrentPetUri is null or not\n if (mCurrentCourseUri == null) {\n // This is a NEW pet, so insert a new pet into the provider,\n // returning the content URI for the new pet.\n Uri newUri = getContentResolver().insert(CourseEntry.CONTENT_URI_COURSE, values);\n\n // Show a toast message depending on whether or not the insertion was successful.\n if (newUri == null) {\n // If the new content URI is null, then there was an error with insertion.\n Toast.makeText(this, getString(R.string.editor_insert_course_failed),\n Toast.LENGTH_SHORT).show();\n } else {\n // Otherwise, the insertion was successful and we can display a toast.\n Toast.makeText(this, getString(R.string.editor_insert_course_successful),\n Toast.LENGTH_SHORT).show();\n }\n } else {\n\n int rowsAffected = getContentResolver().update(mCurrentCourseUri, values, null, null);\n\n // Show a toast message depending on whether or not the update was successful.\n if (rowsAffected == 0) {\n // If no rows were affected, then there was an error with the update.\n Toast.makeText(this, getString(R.string.editor_update_course_failed),\n Toast.LENGTH_SHORT).show();\n } else {\n // Otherwise, the update was successful and we can display a toast.\n Toast.makeText(this, getString(R.string.editor_update_course_successful),\n Toast.LENGTH_SHORT).show();\n }\n }\n }", "public void save(TGBrandCate gbcate) {\n\t\tgbrandcateDao.save(gbcate);\n\t}", "void removeBuildingBlock(BuildingBlock buildingBlock) throws BusinessException;", "public void commit() {\n\t\tcommitted = true;\n\t\tbackUp();\n\t\t//back up the current board info at the meanwhile\n\t}", "private void saveBlock() throws IOException {\n\t\tFileWriter blockFile = new FileWriter(StoragePath + Path.blockIdxDir + blockNumber++);\n\t\t\n\t\tfor(Map.Entry<String, LinkedHashMap<Integer, Integer>> record:token.entrySet()){\n\t\t\tString word = record.getKey();\n\t\t\tLinkedHashMap<Integer, Integer> docFreq = record.getValue();\n\t\t\t\n\t\t\tint colFreq = 0;\t\t\t\n\n\t\t\tfor(Map.Entry<Integer, Integer> freq: docFreq.entrySet()){\n\t\t\t\tcolFreq += freq.getValue();\n\t\t\t\tblockFile.append(freq.getKey() + \":\" + freq.getValue() + \",\");\n\t\t\t}\n\t\t\tblockFile.append(\"\\n\");\n\t\t\tblockFile.flush();\n\t\t\t\n\t\t\tif(termDic.containsKey(word))\n\t\t\t\ttermDic.put(word, termDic.get(word) + colFreq);\n\t\t\telse\n\t\t\t\ttermDic.put(word, colFreq);\n\t\t\t\n\t\t\ttoken.put(word, new LinkedHashMap<Integer, Integer>());\n\t\t}\n\t\tblockFile.flush();\n\t\tblockFile.close();\n\t}", "public void save();", "public void save();", "public void save();", "public void save();", "public void commit() {\n\t\tcommitted = true;\n\t}", "@Override\n\tpublic void saveBankingDetail(BankingDetail baningDetail) {\n\t\t\n\t}", "@Override\n\tpublic void save() {\n\t\tSystem.out.println(\"save method\");\n\t}", "public Builder setSaveBeacon(\n org.naru.park.ParkController.CommonAction.Builder builderForValue) {\n if (saveBeaconBuilder_ == null) {\n saveBeacon_ = builderForValue.build();\n onChanged();\n } else {\n saveBeaconBuilder_.setMessage(builderForValue.build());\n }\n\n return this;\n }", "void save(DeliveryOrderForm deliveryOrderForm);", "public String buildingBlockAddAction() throws Exception {\n\t\t\t\t\n\t return \"success\";\n\t }", "private void saveData() {\n readViews();\n final BookEntry bookEntry = new BookEntry(mNameString, mQuantityString, mPriceString, mSupplier, mPhoneString);\n AppExecutors.getInstance().diskIO().execute(new Runnable() {\n @Override\n public void run() {\n // Insert the book only if mBookId matches DEFAULT_BOOK_ID\n // Otherwise update it\n // call finish in any case\n if (mBookId == DEFAULT_BOOK_ID) {\n mDb.bookDao().insertBook(bookEntry);\n } else {\n //update book\n bookEntry.setId(mBookId);\n mDb.bookDao().updateBook(bookEntry);\n }\n finish();\n }\n });\n }", "@Override\r\n\tprotected void onBoSave() throws Exception {\n\t\t\r\n\t\t\r\n\t\tsuper.onBoSave();\r\n\t\t// 修改按钮属性\r\n\t\tif(myaddbuttun){\r\n\t\t\tgetButtonManager().getButton(IBillButton.Add).setEnabled(true);\r\n\t\t\tgetButtonManager().getButton(\r\n\t\t\t\t\tnc.ui.wds.w8006080202.tcButtun.ITcButtun.Con)\r\n\t\t\t\t\t.setEnabled(true);\r\n\t\t\tgetButtonManager().getButton(\r\n\t\t\t\t\tnc.ui.wds.w8006080202.tcButtun.ITcButtun.Pp)\r\n\t\t\t\t\t.setEnabled(false);\r\n\t\t\tmyaddbuttun=true;\r\n\t\t\t// 转到卡片面,实现按钮的属性转换\r\n\t\t\tgetBillUI().setCardUIState();\r\n\t\t\tsuper.onBoReturn();\r\n\t\t}else{\r\n\t\t\tgetButtonManager().getButton(IBillButton.Add).setEnabled(false);\r\n\t\t\tgetButtonManager().getButton(\r\n\t\t\t\t\tnc.ui.wds.w8006080202.tcButtun.ITcButtun.Con)\r\n\t\t\t\t\t.setEnabled(false);\r\n\t\t\tgetButtonManager().getButton(\r\n\t\t\t\t\tnc.ui.wds.w8006080202.tcButtun.ITcButtun.Pp)\r\n\t\t\t\t\t.setEnabled(true);\r\n\t\t\tmyaddbuttun=false;\r\n\t\t\t// 转到卡片面,实现按钮的属性转换\r\n\t\t\tgetBillUI().setCardUIState();\r\n\t\t\tsuper.onBoReturn();\r\n\t\t}\r\n\t}", "private void save(JTour jTour){\n if(jTour.save()>0){\n for(JPlace jPlace : jTour.getPlaces()){\n if(jPlace.save() > 0){\n //u principu bi trebala biti samo jedna lokacija u placu\n jPlace.getLocations().get(0).save();\n }\n }\n }\n\n }", "public void save(HrJBorrowcontract entity);", "public void branchSaved(Branch<K> parent, Branch<K> child);", "public void save() {\n JAXB.marshal(this, new File(fileName));\n }", "void save() {\n gameModelPoDao.saveToFile(file.getAbsolutePath(), gameModelPo);\n }", "public Builder setNewBlock(\n phaseI.Hdfs.BlockLocations.Builder builderForValue) {\n if (newBlockBuilder_ == null) {\n newBlock_ = builderForValue.build();\n onChanged();\n } else {\n newBlockBuilder_.setMessage(builderForValue.build());\n }\n bitField0_ |= 0x00000002;\n return this;\n }", "public void save() {\n try {\n ConfigurationProvider.getProvider(YamlConfiguration.class).save(this.configuration, this.getConfigurationFile());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public void save() {\n if (category != null) {\n category.save();\n }\n }", "public void saveButtonPressed(ActionEvent event) throws IOException {\n if (max >= inv && inv >= min && ((MachineID != 0 && isInHouse) || (MachineID == 0 && !isInHouse))) {\n if (isInHouse) {\n partToUpdate = new InHouse( Integer.parseInt(idField.getText()), \n partNameField.getText(), price, inv, min, max, MachineID );\n } else {\n partToUpdate = new Outsourced( Integer.parseInt(idField.getText()), \n partNameField.getText(), price, inv, min, max, sourceNameField.getText() );\n }\n \n // return to Main Screen after save\n Inventory.updatePart(Integer.parseInt(idField.getText()) -1, partToUpdate);\n returnToMainScreen(event);\n } else {\n Alert alert = new Alert(Alert.AlertType.WARNING);\n alert.initOwner(null);\n alert.initModality(Modality.APPLICATION_MODAL);\n alert.setTitle(\"Part Error\");\n \n if (min > inv || inv > max) {\n alert.setContentText(\"Inventory level must be between Max and Min\");\n } else if (min > max) {\n alert.setContentText(\"Min must be less than Max\");\n } else {\n alert.setContentText(\"MACHINE_ID field may only contain numbers\");\n }\n \n alert.showAndWait();\n }\n }", "@Override\n public void onClick(View v) {\n switch(v.getId()){\n case R.id.buttonSaveFence:\n String name = nameFence.getText().toString();\n String address = addressFence.getText().toString();\n String city = cityFence.getText().toString();\n String province = provinceFence.getText().toString();\n String range = spinnerRange.getSelectedItem().toString();\n String number = numberFence.getText().toString();\n String textSMS = textSMSFence.getText().toString();\n int event = spinnerEvent.getSelectedItemPosition();\n\n this.saveChangesInSQLiteDB(name, address, city, province, range, number, textSMS, event);\n Controller.getLogFenceOnSQLiteDB();\n break;\n }\n }", "public void saveBlocks(String xml) {\n //System.out.println(\"saving blocks\");\n \n FileChooser fileChooser = new FileChooser();\n fileChooser.setInitialDirectory(new File(lastOpenedLocation));\n fileChooser.setTitle(\"Save\");\n fileChooser.getExtensionFilters().addAll(\n new FileChooser.ExtensionFilter(\"XML files\", \"*.xml\")\n );\n File selectedFile = fileChooser.showSaveDialog(ownerWindow);\n if (selectedFile != null) {\n if (selectedFile.getName().matches(\"^.*\\\\.xml$\")) {\n // filename is OK as-is\n } else {\n selectedFile = new File(selectedFile.toString() + \".xml\"); // append .xml if \"foo.jpg.xml\" is OK\n }\n lastOpenedLocation = selectedFile.getParent();\n try {\n BufferedWriter bWriter = new BufferedWriter(new FileWriter(selectedFile));\n bWriter.write(xml);\n bWriter.flush();\n bWriter.close();\n } catch (IOException ex) {\n Logger.getLogger(DwenguinoBlocklyServer.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n }", "private AssignBlockRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "void save();", "void save();" ]
[ "0.63724154", "0.6175141", "0.57016695", "0.56743604", "0.5669966", "0.5602732", "0.56024194", "0.5591209", "0.5568628", "0.55675226", "0.55438185", "0.5518893", "0.5428111", "0.54261845", "0.5422583", "0.5418175", "0.54072577", "0.5404072", "0.53824973", "0.5380385", "0.53388417", "0.5321269", "0.5309951", "0.5307133", "0.5261239", "0.5251874", "0.52489144", "0.52469903", "0.5246976", "0.5230026", "0.5221612", "0.5221612", "0.52171737", "0.52164656", "0.51643527", "0.51615673", "0.5160062", "0.5134712", "0.5121411", "0.5116958", "0.5107631", "0.51045215", "0.50992626", "0.508891", "0.50768137", "0.50700766", "0.50596756", "0.50455254", "0.50441307", "0.5041592", "0.5034736", "0.5034736", "0.5031001", "0.50309944", "0.5029476", "0.5024679", "0.5008145", "0.5005351", "0.5002859", "0.500049", "0.49838573", "0.49781117", "0.49727958", "0.4965767", "0.49496353", "0.49489564", "0.49486172", "0.49480295", "0.49371183", "0.49361923", "0.4935012", "0.4932812", "0.49308747", "0.49252036", "0.49248007", "0.49248007", "0.49248007", "0.49248007", "0.49224156", "0.491888", "0.49173886", "0.49149552", "0.490892", "0.49078727", "0.4906916", "0.4904221", "0.49031222", "0.48945138", "0.48912922", "0.48890018", "0.48855013", "0.48808894", "0.48745614", "0.48712984", "0.4866048", "0.48637566", "0.48591444", "0.4857171", "0.48569074", "0.48569074" ]
0.77799827
0
Removes the building block.
void removeBuildingBlock(BuildingBlock buildingBlock) throws BusinessException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void removeBlock(Block block);", "public abstract void removeBlock();", "public void removeBlock(Block block) {\n removeLocation(block.getLocation());\n }", "public String deleteProductionBlock(ProductionBlock pb);", "public void removeBlock(Block block) {\n\t\tblocks.remove(block.getId());\n\t}", "public void delete(){\r\n\t\tblocks = null;\r\n\t\ttry {\r\n\t\t\tfinalize();\r\n\t\t} catch (Throwable e) {\t}\r\n\t}", "public Builder clearNewBlock() {\n if (newBlockBuilder_ == null) {\n newBlock_ = null;\n onChanged();\n } else {\n newBlockBuilder_.clear();\n }\n bitField0_ = (bitField0_ & ~0x00000002);\n return this;\n }", "public void deleteBlock(JsonObject block){\n blocks.remove(Hash.getHashString(block.toString()));\n }", "public Builder clearDeleteBlock() {\n if (deleteBlockBuilder_ == null) {\n deleteBlock_ = alluxio.proto.journal.Block.DeleteBlockEntry.getDefaultInstance();\n onChanged();\n } else {\n deleteBlockBuilder_.clear();\n }\n bitField0_ = (bitField0_ & ~0x00000200);\n return this;\n }", "public void unassignBaseBuilder() {\n\t\tbaseBuilder = null;\n\t}", "public void removeBlock(Block otherBlock) {\n\t\tBLOCK_LIST.remove(otherBlock);\n\t\tIterator<Object> blockIterate = SPRITE_LIST.iterator();\n\t\twhile (blockIterate.hasNext()) {\n\t\t\tObject objBlock = blockIterate.next();\n\t\t\tif (objBlock instanceof Block) {\n\t\t\t\tBlock castBlock = (Block) objBlock;\n\t\t\t\tif (castBlock.equals(otherBlock)) {\n\t\t\t\t\tblockIterate.remove();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public void remove() {\n if (kaltPaaNeste) {\n listehode.neste = listehode.neste.neste;\n antall--;\n } else {\n throw new IllegalStateException();\n }\n }", "protected void doDeleteBuilding() {\r\n\t\tif (renderer.surface != null) {\r\n\t\t\tUndoableMapEdit undo = new UndoableMapEdit(renderer.surface);\r\n\t\t\tdeleteEntitiesOf(renderer.surface.buildingmap, renderer.selectedRectangle, true);\r\n\t\t\tundo.setAfter();\r\n\t\t\taddUndo(undo);\r\n\t\t\trepaint();\r\n\t\t}\r\n\t}", "public Builder clearBlockInfo() {\n if (blockInfoBuilder_ == null) {\n blockInfo_ = null;\n onChanged();\n } else {\n blockInfoBuilder_.clear();\n }\n bitField0_ = (bitField0_ & ~0x00000001);\n return this;\n }", "public void removeFromGame(GameLevel game) {\n game.removeCollidable(this); // now block is not a part of the collidables.\n game.removeSprite(this); // now block is not a part of the sprites.\n }", "@Override\n\tpublic void removeFromPanel(FABlock dfaBlock) {\n\n\t}", "public void remove(MemoryBlock block) {\n\t\tif (indexOf(block) == (-1))\n\t\t\tthrow new IllegalArgumentException();\n\t\telse\n\t\t\tremove(indexOf(block));\n\t}", "private void removeRow() {\n gridHeight--; \n for (EscapeBlock block : grid.get(gridHeight)) { // for each block from the last row\n block.disconnectAll();\n this.remove(block); // remove it from the UI\n }\n\n grid.remove(gridHeight); // remove the row\n }", "protected void leaveBlockStmt(BlockStmt blockStmt) {\n if (blockStmt.introducesNewScope()) {\n popScope();\n }\n enclosingBlocks.removeFirst();\n }", "public void unsetPart()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(PART$2, 0);\n }\n }", "public void deleteFromPA(IGUIBlock block) {\n Block toDelete = blockLink.getBlockFromGUIBlock(block);\n blockHandler.deleteProgram(toDelete);\n blockLink.removeBlock(block);\n }", "public Builder removeBlockLocations(int index) {\n if (blockLocationsBuilder_ == null) {\n ensureBlockLocationsIsMutable();\n blockLocations_.remove(index);\n onChanged();\n } else {\n blockLocationsBuilder_.remove(index);\n }\n return this;\n }", "public Builder clearNewBlock() {\n if (newBlockBuilder_ == null) {\n newBlock_ = alluxio.proto.journal.File.NewBlockEntry.getDefaultInstance();\n onChanged();\n } else {\n newBlockBuilder_.clear();\n }\n bitField0_ = (bitField0_ & ~0x00200000);\n return this;\n }", "private void handleRemoval(final Block block, WorldChunk chunk) {\n\t\tint x = block.getX();\n\t\tint y = block.getY();\n\t\tint z = block.getZ();\n\t\tCrop crop = chunk.getCrop(x, y, z);\n\t\tSapling sapling = chunk.getSapling(x, y, z);\n\t\tTreeComponent treeComponent = chunk.getTreeComponent(x, y, z);\n\t\tif (crop != null) {\n\t\t\tcrop.setRemoved();\n\t\t}\n\t\tif (sapling != null) {\n\t\t\tsapling.setRemoved();\n\t\t}\n\t\tif (treeComponent != null) {\n\t\t\tTree tree = CropControl.getDAO().getTree(treeComponent);\n\t\t\t\n\t\t\ttreeComponent.setRemoved();\n\t\t\t\n\t\t\tif (CropControl.getDAO().getTreeComponents(treeComponent.getTreeID()).isEmpty()) {\n\t\t\t\ttree.setRemoved();\n\t\t\t}\n\t\t}\n\t}", "public void remove() {\r\n return;\r\n }", "public void remove() {\n btRemove().push();\n }", "public void remove() {\n btRemove().push();\n }", "public void removeThing(){\n thing = null;\n }", "public void unsetGibbmt()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n get_store().remove_element(GIBBMT$4, 0);\r\n }\r\n }", "public void remove( int position )\n {\n caller = \"remove\";\n byte byteSize = memoryPool[position];\n Integer size = (int)byteSize;\n // remove the record starting at the given position\n for ( int i = 0; i < size; i++ )\n {\n memoryPool[position + i] = 0;\n }\n\n findBlock( position );\n freeBlock = new HashMap<Integer, Integer>( 1 );\n freeBlock.put( position, size );\n freeBlockList.add( freeBlock );\n Object[] keyArray =\n freeBlockList.getCurrentElement().keySet().toArray();\n int key = (Integer)keyArray[0];\n\n caller = \"check\";\n int currentValue = freeBlockList.getCurrentElement().get( key );\n int mergePoint1 = position + currentValue;\n int rightKeyMatch = findBlock( mergePoint1 );\n\n int mergePoint2 = position;\n int leftKeyMatch = -1;\n int priorValue = -1;\n int key2 = -1;\n if ( 1==1)\n {\n findBlock(mergePoint2);\n freeBlockList.previous();\n if ( !( freeBlockList.getCurrent().equals( freeBlockList.getHead() ) )\n && !( freeBlockList.getCurrent().equals( freeBlockList.getTail() ) ) &&\n !( freeBlockList.getCurrent().equals( null )))\n {\n Object[] keyArray2 =\n freeBlockList.getCurrentElement().keySet().toArray();\n key2 = (Integer)keyArray2[0];\n priorValue = freeBlockList.getCurrentElement().get( key2 );\n leftKeyMatch = key2 + priorValue;\n }\n\n }\n\n if ( rightKeyMatch == mergePoint1 )\n {\n findBlock(mergePoint1);\n freeBlockList.previous();\n freeBlockList.removeCurrent();\n int rightValue =\n freeBlockList.getCurrentElement().get( rightKeyMatch );\n\n freeBlockList.getCurrentElement().clear();\n freeBlockList.getCurrentElement().put(\n position,\n currentValue + rightValue );\n //if()\n }\n if(leftKeyMatch == mergePoint2) {\n findBlock(mergePoint2);\n freeBlockList.previous();\n freeBlockList.removeCurrent();\n int rightValue =\n freeBlockList.getCurrentElement().get(leftKeyMatch);\n\n freeBlockList.getCurrentElement().clear();\n freeBlockList.getCurrentElement().put(\n key2,\n priorValue + rightValue );\n }\n\n }", "public void removePiece() {\n\t\troot.getChildren().clear();\n\t\tthis.piece = null;\n\t\troot.getChildren().add(rectangle);\n\t}", "public void removeAlias(VeinBlock block) {\n\t\tthis.blocks.remove(block);\n\t}", "private void removeArea() {\n \t\tthis.set.remove( this.area );\n \t\tthis.finish();\n \t}", "public void removeBranch() {\n if (LogWriter.needsLogging(LogWriter.TRACE_DEBUG))\n LogWriter.logMessage(LogWriter.TRACE_DEBUG, \"removeBranch()\");\n Via via=(Via)sipHeader;\n \n via.removeParameter(Via.BRANCH);\n }", "public void remove() {\n removeNode(this);\n }", "public static void removeBlock(final Block block) {\r\n\t\tinstances_.get(block).forEach(t -> {\r\n\t\t\tREVERT_QUEUE.remove(t);\r\n\t\t\tremove(t);\r\n\t\t});\r\n\t}", "private void dropBlockAndResetTime(Location at) {\n removeLocation(at);\n destroyBlockAndDropItem(at);\n }", "public void clearRemovalTag() {\n\t levelOfRemoval = 0;\n\t}", "protected void removeSelf() {\n if (!removed && parentNode != null && componentNode != null) {\n // remove this node from parent node\n parentNode.removeChild(componentNode);\n // Mark as removed\n removed = true;\n }\n }", "void removeIsBoundaryNodeOf(Boundary oldIsBoundaryNodeOf);", "public void deleteFromQueue(Integer block_id){\n if(this.queue_set){\n if(this.queue.contains(block_id) == true){\n this.queue.remove(block_id);\n }\n if(this.queue.isEmpty())\n {\n System.out.println(\"All blocks were computed!\");\n this.msgAllExecuted();\n this.queue_set = false;\n }\n }\n }", "public static void remove() {\n if (create()) {\n DOM.removeChild((com.google.gwt.user.client.Element) \n tag.getParentElement(), \n (com.google.gwt.user.client.Element) tag);\n tag = null;\n removed = true;\n }\n }", "public Builder clearBlockNumber() {\n bitField0_ = (bitField0_ & ~0x00000001);\n blockNumber_ = 0;\n onChanged();\n return this;\n }", "public Builder clearBlockNumber() {\n bitField0_ = (bitField0_ & ~0x00000001);\n blockNumber_ = 0;\n onChanged();\n return this;\n }", "public BlockRemover(GameLevel game, Counter removedBlocks) {\r\n this.game = game;\r\n this.remainingBlocks = removedBlocks;\r\n }", "public static void deleteBuildingButtonClicked() {\n ObservableList<Building> allBuildings;\n allBuildings = tableBuilding.getItems();\n Building building = tableBuilding.getSelectionModel().getSelectedItem();\n\n allBuildings.remove(building);\n BuildingCommunication.removeBuilding(building.getId());\n }", "public synchronized Block clear(Block another) {\r\n\t\tif(status == Status.Covered)\r\n\t\t\tthrow new IllegalStateException(\"The block cannot be cleared when covered\");\r\n\t\telse if(status == Status.Fliped) {\r\n\t\t\tstatus = Status.Cleared;\r\n\t\t\tgraphics.updateBlock();\r\n\t\t}\r\n\t\treturn another == null ? null : another.clear(null);\r\n\t}", "public Builder setDeleteBlock(\n alluxio.proto.journal.Block.DeleteBlockEntry.Builder builderForValue) {\n if (deleteBlockBuilder_ == null) {\n deleteBlock_ = builderForValue.build();\n onChanged();\n } else {\n deleteBlockBuilder_.setMessage(builderForValue.build());\n }\n bitField0_ |= 0x00000200;\n return this;\n }", "public void DoRemoveFromNest(Holdable p);", "public void removeItem(){\n\t\tthis.item = null;\n\t}", "public void clear() {\n for (int i = collisionBodies.size() - 1; i >= 0; i--) {\n CollisionBody line = collisionBodies.get(i);\n root.getChildren().remove(line.getLine());\n collisionBodies.remove(line);\n }\n }", "public BlockRemover(GameLevel gameLevel, Counter removedBlocks) {\r\n this.gameLevel = gameLevel;\r\n this.remainingBlocks = removedBlocks;\r\n }", "@Override\r\n public int numberOfBlocksToRemove() {\r\n return blocks().size();\r\n }", "public void removeBomb(Bomb b) {\r\n this.bombs.remove(b);\r\n }", "public void deleteInstance(){\n //cancels the runnable\n shouldCancelRunnable = true;\n //remove the chest from the map to avoid confusion\n this.location.getBlock().setType(Material.AIR);\n //unregister from all events, we're done!\n HandlerList.unregisterAll(this);\n }", "public Builder clearBuild() {\n copyOnWrite();\n instance.clearBuild();\n return this;\n }", "public Builder clearGenesis() {\n copyOnWrite();\n instance.clearGenesis();\n return this;\n }", "public void remove() {\n\t }", "public void remove() {\n\t }", "public void remove() {\n\t }", "public Builder clearBuilder() {\n \n builder_ = getDefaultInstance().getBuilder();\n onChanged();\n return this;\n }", "public void clearAreaReset() {\n for(int x = 0; x < buildSize; x++) {\n for(int y = 4; y < 7; y++) {\n for(int z = 0; z < buildSize; z++) {\n myIal.removeBlock(x, y, z);\n }\n }\n }\n\n myIal.locx = 0; myIal.locy = 0; myIal.locz = 0;\n my2Ial.locx = 0; my2Ial.locy = 0; my2Ial.locz = 0;\n }", "private DynamicBlockUpdate remove(DynamicBlockUpdate update) {\r\n \t\tboolean removed = false;\r\n \t\tint packedKey = update.getPacked();\r\n \t\tDynamicBlockUpdate root = blockToUpdateMap.get(packedKey);\r\n \t\tDynamicBlockUpdate current = root;\r\n \t\tDynamicBlockUpdate previous = null;\r\n \t\tboolean rootChanged = false;\r\n \t\twhile (current != null) {\r\n \t\t\tif (current != update) {\r\n \t\t\t\tprevious = current;\r\n \t\t\t\tcurrent = current.getNext();\r\n \t\t\t\tcontinue;\r\n \t\t\t}\r\n \t\t\tif (removed) {\r\n \t\t\t\tthrow new IllegalStateException(\"Dynamic update appeared twice in the linked list\");\r\n \t\t\t}\r\n \t\t\tremoved = true;\r\n \t\t\tif (!queuedUpdates.remove(current)) {\r\n \t\t\t\tthrow new IllegalStateException(\"Dynamic block update missing from queue when removed\");\r\n \t\t\t}\r\n \t\t\tint currentPacked = current.getChunkPacked();\r\n \t\t\tHashSet<DynamicBlockUpdate> chunkSet = chunkToUpdateMap.get(currentPacked);\r\n \t\t\tif (chunkSet == null || !chunkSet.remove(current)) {\r\n \t\t\t\tthrow new IllegalStateException(\"Dynamic block update missing from chunk when removed\");\r\n \t\t\t}\r\n \t\r\n \t\t\tif (chunkSet.size() == 0) {\r\n \t\t\t\tif (chunkToUpdateMap.remove(currentPacked) == null) {\r\n \t\t\t\t\tthrow new IllegalStateException(\"Removing updates for dynamic block updates violated threading rules\");\r\n \t\t\t\t}\r\n \t\t\t}\r\n \t\t\tif (current == root) {\r\n \t\t\t\troot = current.getNext();\r\n \t\t\t\tcurrent = root;\r\n \t\t\t\trootChanged = true;\r\n \t\t\t} else {\r\n \t\t\t\tif (previous.remove(current) != previous) {\r\n \t\t\t\t\tthrow new IllegalStateException(\"Removing current from previous should not move root\");\r\n \t\t\t\t}\r\n \t\t\t\tcurrent = previous.getNext();\r\n \t\t\t}\r\n \t\t}\r\n \t\tif (rootChanged) {\r\n \t\t\tif (root != null) {\r\n \t\t\t\tblockToUpdateMap.put(packedKey, root);\r\n \t\t\t} else {\r\n \t\t\t\tblockToUpdateMap.remove(packedKey);\r\n \t\t\t}\r\n \t\t}\r\n \t\treturn removed ? update : null;\r\n \t}", "public abstract void removedFromWidgetTree();", "public Builder clearBasis() {\n if (basisBuilder_ == null) {\n basis_ = null;\n onChanged();\n } else {\n basis_ = null;\n basisBuilder_ = null;\n }\n\n return this;\n }", "public void deleteBlock(Integer id) {\n Integer i = 0;\n Block target = null;\n for (Block block : this.blocks) {\n if(block.getID() == id){\n target = block;\n break;\n }\n i++;\n }\n if(target != null){\n this.deleteFromQueue(target.getID());\n this.blocks.remove(target);\n }\n }", "public Builder clearNode() {\n if (nodeBuilder_ == null) {\n node_ = null;\n onChanged();\n } else {\n node_ = null;\n nodeBuilder_ = null;\n }\n\n return this;\n }", "public Builder clearNode() {\n if (nodeBuilder_ == null) {\n node_ = null;\n onChanged();\n } else {\n node_ = null;\n nodeBuilder_ = null;\n }\n\n return this;\n }", "private void removeLessonFragment() {\n\t\tFragmentManager fm = getSupportFragmentManager();\n\t\tFragment fragment = (Fragment) fm\n\t\t\t\t.findFragmentById(R.id.detailFragmentContainer);\n\t\tif (fragment != null) {\n\t\t\tFragmentTransaction ft = fm.beginTransaction();\n\t\t\tft.remove(fragment);\n\t\t\tft.commit();\n\t\t}\n\t}", "public void removeDefense(){\n\t\tcurrentConstruct = null;\n\t\thasDefenseObject = false;\n\t}", "public final void m7956e() {\n try {\n if (this.f3326b != null) {\n if (this.f3326b.getParent() != null) {\n ((ViewGroup) this.f3326b.getParent()).removeView(this.f3326b);\n }\n }\n this.f3326b = null;\n } catch (RejectedExecutionException e) {\n throw e;\n } catch (RejectedExecutionException e2) {\n throw e2;\n }\n }", "public void remove() {\n removed = true;\n if (room == null)\n return;\n room.removeEntity(this);\n }", "public void removeTile(){\n\t\toccupied = false;\n\t\tcurrentTile = null;\n\t}", "public final void remove () {\r\n }", "public void remove() {\n\n }", "public void erase()\n {\n this.top = null;\n }", "public Builder clearBlockInfo() {\n if (blockInfoBuilder_ == null) {\n blockInfo_ = alluxio.proto.journal.Block.BlockInfoEntry.getDefaultInstance();\n onChanged();\n } else {\n blockInfoBuilder_.clear();\n }\n bitField0_ = (bitField0_ & ~0x00000010);\n return this;\n }", "public void remove()\n {\n removed();\n node.shapeRemoved(shape);\n }", "public Builder clearLicensePlate() {\n if (licensePlateBuilder_ == null) {\n licensePlate_ = null;\n onChanged();\n } else {\n licensePlate_ = null;\n licensePlateBuilder_ = null;\n }\n\n return this;\n }", "public Builder clearGkeMaster() {\n if (gkeMasterBuilder_ == null) {\n if (stepInfoCase_ == 18) {\n stepInfoCase_ = 0;\n stepInfo_ = null;\n onChanged();\n }\n } else {\n if (stepInfoCase_ == 18) {\n stepInfoCase_ = 0;\n stepInfo_ = null;\n }\n gkeMasterBuilder_.clear();\n }\n return this;\n }", "public void RemoveBlock(int NumOfB,ArrayList<Block> blocks,int[] i,int[] j){\r\n try {\r\n //2 blocks\r\n if (NumOfB == 2) {\r\n //update BlockList and map matrix\r\n map[i[0]][j[0]] = '0';\r\n map[i[1]][j[1]] = '0';\r\n blockList.RemovBlock(blockList.getBlock(blocks.get(0).getTypeOfBlock(), i[1], j[1]), blocks.get(1).getTypeOfBlock());\r\n blockList.RemovBlock(blockList.getBlock(blocks.get(0).getTypeOfBlock(), i[0], j[0]), blocks.get(0).getTypeOfBlock());\r\n }\r\n //3 blocks\r\n else {\r\n //update BlockList and map matrix\r\n map[i[0]][j[0]] = '0';\r\n map[i[1]][j[1]] = '0';\r\n map[i[2]][j[2]] = '0';\r\n blockList.RemovBlock(blocks.get(2), blocks.get(2).getTypeOfBlock());\r\n blockList.RemovBlock(blocks.get(1), blocks.get(1).getTypeOfBlock());\r\n blockList.RemovBlock(blocks.get(0), blocks.get(0).getTypeOfBlock());\r\n }\r\n gamePage.Sounds(2);//remove sound\r\n MoveBlock(2);//check if there is block will move down\r\n }catch (ArrayIndexOutOfBoundsException e) {\r\n\r\n }\r\n }", "TrackRailsSectionsAtPosition tryRemove(TrackRailsSingleNodeElement sectionToRemove);", "public void remove() {\n super.remove();\n }", "public void remove() {\n super.remove();\n }", "public void remove() {\n super.remove();\n }", "public void remove() {\n super.remove();\n }", "public void remove() {\n super.remove();\n }", "public void remove() {\n super.remove();\n }", "public void remove() {\n super.remove();\n }", "private static void remove(TempBlock tempBlock) {\r\n\t\tif (instances_.containsKey(tempBlock.block)) {\r\n\t\t\tinstances_.get(tempBlock.block).remove(tempBlock);\r\n\t\t\tif (instances_.get(tempBlock.block).size() == 0) {\r\n\t\t\t\tinstances_.remove(tempBlock.block);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void remove() {\r\n super.remove();\r\n }", "public void remove(){\n Api.worldRemover(getWorld().getWorldFolder());\n }", "public void removeNode()\n\t{\n\t\tif (parent != null)\n\t\t\tparent.removeChild(this);\n\t}", "public Builder clearDeleteBeacon() {\n if (deleteBeaconBuilder_ == null) {\n deleteBeacon_ = null;\n onChanged();\n } else {\n deleteBeacon_ = null;\n deleteBeaconBuilder_ = null;\n }\n\n return this;\n }", "public BlockRemover(GameLevel g, Counter removedBlocks, Enemies e) {\r\n game = g;\r\n remainingBlocks = removedBlocks;\r\n enemies = e;\r\n }", "public Builder clearB() {\n \n b_ = 0;\n onChanged();\n return this;\n }", "public Builder clearB() {\n \n b_ = 0;\n onChanged();\n return this;\n }", "public void unsetGenbank()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n get_store().remove_element(GENBANK$8, 0);\r\n }\r\n }", "public Builder clearB() {\n \n b_ = getDefaultInstance().getB();\n onChanged();\n return this;\n }", "@Override\n public void remove() {\n if (lastItem == null)\n throw new IllegalStateException();\n bag.remove(lastItem);\n lastItem = null;\n }" ]
[ "0.68357015", "0.66958976", "0.6364165", "0.6354547", "0.6189017", "0.6100193", "0.6094384", "0.589309", "0.5887912", "0.57778096", "0.5673618", "0.56651276", "0.5636356", "0.5606876", "0.55889195", "0.55816424", "0.5525981", "0.55093837", "0.550807", "0.5489715", "0.5481573", "0.5478789", "0.54485196", "0.5411623", "0.53830796", "0.5342448", "0.5342448", "0.53356785", "0.5324367", "0.53126544", "0.5307804", "0.53046614", "0.529605", "0.5287708", "0.5279515", "0.52783936", "0.5277138", "0.52682805", "0.5246814", "0.52390826", "0.52158695", "0.52061665", "0.5205299", "0.5205299", "0.5203598", "0.5203503", "0.5203464", "0.519575", "0.518219", "0.51702785", "0.51683205", "0.51674867", "0.51639926", "0.5163194", "0.5160293", "0.51584905", "0.5152621", "0.5151241", "0.5151241", "0.5151241", "0.5148782", "0.5132428", "0.513122", "0.5128383", "0.5115945", "0.51096296", "0.50958186", "0.50958186", "0.508664", "0.50860965", "0.50856686", "0.508393", "0.50823486", "0.5080804", "0.507114", "0.5070497", "0.5068098", "0.50626206", "0.5059743", "0.505618", "0.5051942", "0.5048037", "0.50400555", "0.50400555", "0.50400555", "0.50400555", "0.50400555", "0.50400555", "0.50400555", "0.50384724", "0.50373805", "0.50354433", "0.50242364", "0.5020866", "0.5013816", "0.5013194", "0.5013194", "0.5012857", "0.501162", "0.5006594" ]
0.8125334
0
Retrieves all building blocks by building block type.
Collection<BuildingBlock> findBuildingBlocksByType(BuildingBlockConstant buildingBlockType) throws BusinessException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Collection<BuildingBlock> findAllBuildingBlocks() throws BusinessException;", "Collection<BuildingBlock> findBuildingBlocksbyBranchIdAndBuildingBlockType(Long branchId, BuildingBlockConstant buildingBlockType) throws BusinessException;", "Collection<BuildingBlock> findBuildingBlocksbyBranchId(Long branchId) throws BusinessException;", "BuildingBlock findBuildingBlockByTypeAndCode(BuildingBlockConstant buildingBlockType, String code) throws BusinessException;", "public void loadLiabilitiesBuildingBlocks() {\n\t\tif (this.loadLiabilityTypesFromDB) {\n\t\t\tthis.liabilitiesTypeBuildingBlocks = this.buildingBlockService.findBuildingBlocksbyBranchIdAndBuildingBlockType(this.sessionBean.getCurrentBranch()\n\t\t\t\t\t.getId(), BuildingBlockConstant.LIABILITY_TYPE);\n\t\t\tthis.loadLiabilityTypesFromDB = false;\n\t\t}\n\t}", "public ProductionBlock[] getAllProductionBlocks();", "BuildingBlock findBuildingBlockById(Long id) throws BusinessException;", "public BlockType[] getBlocks() {\n return blocks;\n }", "Collection<BuildingBlock> findAllMandatoryBuildingBlocks() throws SystemException;", "public Collection<Block> getBlockCollection() {\n\t\treturn this.blocks.values();\n\t}", "List<Block> getBlocksByCongName(String congName);", "List<Block> blocks();", "Collection<BuildingBlock> findFeeTypeBuildingBlocksbyBranchIdAndFeeType(Long branchId, final FeeTypeConstant feeTypeConstant) throws BusinessException,\n\t\t\tSystemException;", "public BlockType getType()\n {\n return blockType;\n }", "List<Building> findBuildingCoordinatesByType(String type);", "public List<Block> blocks() {\r\n List<Block> list = new ArrayList<Block>();\r\n double width = 50;\r\n for (int i = 0; i < 7; ++i) {\r\n Color c = new Color(0, 0, 0);\r\n switch (i) {\r\n case 0:\r\n c = Color.gray;\r\n break;\r\n case 1:\r\n c = Color.red;\r\n break;\r\n case 2:\r\n c = Color.yellow;\r\n break;\r\n case 3:\r\n c = Color.green;\r\n break;\r\n case 4:\r\n c = Color.white;\r\n break;\r\n case 5:\r\n c = Color.pink;\r\n break;\r\n default:\r\n c = Color.cyan;\r\n break;\r\n }\r\n for (int j = 0; j < 15; ++j) {\r\n Block b = new Block(new Rectangle(new Point(\r\n 25 + j * width, 100 + i * 20), width, 20));\r\n if (i == 0) {\r\n b.setHitPoints(2);\r\n } else {\r\n b.setHitPoints(1);\r\n }\r\n list.add(b);\r\n }\r\n }\r\n return list;\r\n }", "public java.util.List<phaseI.Hdfs.BlockLocations.Builder> \n getBlockLocationsBuilderList() {\n return getBlockLocationsFieldBuilder().getBuilderList();\n }", "public List<Block> blocks() {\n this.blocks = createBlocks();\n return this.blocks;\n }", "Set<? extends IRBasicBlock> getBlocks();", "private static List<Element> getXMLBlocks(Model model) {\n Set<Block> blocks = new TreeSet<>(Comparators.objectsById());\n blocks.addAll(model.getBlocks(null));\n List<Element> result = new ArrayList<>(blocks.size());\n for (Block curBlock : blocks) {\n Element blockElement = new Element(\"block\");\n blockElement.setAttribute(\"id\", String.valueOf(curBlock.getId()));\n blockElement.setAttribute(\"name\", curBlock.getName());\n for (TCSResourceReference<?> curRef : curBlock.getMembers()) {\n Element resourceElement = new Element(\"member\");\n resourceElement.setAttribute(\"name\", curRef.getName());\n blockElement.addContent(resourceElement);\n }\n for (Map.Entry<String, String> curEntry\n : curBlock.getProperties().entrySet()) {\n Element propertyElement = new Element(\"property\");\n propertyElement.setAttribute(\"name\", curEntry.getKey());\n propertyElement.setAttribute(\"value\", curEntry.getValue());\n blockElement.addContent(propertyElement);\n }\n result.add(blockElement);\n }\n return result;\n }", "Block getBlockByNumber(long number);", "public List<BuildingType> getAllBuildingType()\r\n\t{\n\t\tList<BuildingType> list = new ArrayList<BuildingType>();\r\n\t\t// This is the SP to be called\r\n\t\tString query = \"{ call readAllBuildingType}\";\t\r\n\t\t// Open a connection to DB\r\n\t\tif(conn == null)\r\n\t\t\tconn = JdbcSqlServerConnection.getConnection();\r\n\t\t\r\n\t\ttry\r\n\t\t{\r\n\t\t\t// Prepare the call for SP\r\n\t\t\tcs = conn.prepareCall(query);\r\n\t\t\t// make SP call\r\n\t\t\trs = cs.executeQuery();\r\n\t\t\t//loop the recordset\r\n\t\t\twhile(rs.next())\r\n\t\t\t{\r\n\t\t\t\tBuildingType buildType = new BuildingType();\r\n\t\t\t\tbuildType.setID(rs.getInt(1));\r\n\t\t\t\tbuildType.setDescription(rs.getNString(2));\r\n\t\t\t\tlist.add(buildType);\r\n\t\t\t}\r\n\t\t}catch(Exception ex){\r\n\t\t\tex.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t\t//close che db coonection\r\n\t\tif(conn!=null)\r\n\t\t\ttry {\r\n\t\t\t\tJdbcSqlServerConnection.closeConnection(conn);\r\n\t\t\t} catch (SQLException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\r\n\t\t//return the list of BuildingType\r\n\t\treturn list;\r\n\t\t\r\n\t}", "@Override\n public List<Block> blocks() {\n int columns = 15, width = 51, height = 30;\n Color darkGreen = new Color(29, 101, 51);\n List<Block> blocks = new ArrayList<>();\n for (int j = 0; j < columns; j++) {\n blocks.add(new Block(new arkanoid.geometry.Rectangle(new Point(20 + width * j, 110 + height),\n width, height), darkGreen));\n }\n return blocks;\n }", "public Array<BlockDrawable> getAllBlocksToDraw() {\r\n \tArray<BlockDrawable> blocksToDraw = new Array<BlockDrawable>();\r\n\t\tblocksToDraw.addAll(tablero);\r\n\t\tif(isGhostActivated()){\r\n\t\t\tblocksToDraw.addAll(getGhostBlocksToDraw());\r\n\t\t}\r\n\t\tif (hasFalling())\r\n\t\t\tblocksToDraw.addAll(falling.allOuterBlocks());\r\n\t\t\r\n\t\treturn blocksToDraw;\r\n }", "public static LinkedList<TempBlock> getAll(Block block) {\r\n\t\treturn instances_.get(block);\r\n\t}", "public Block[] getBlocks() {\n\t\treturn blocks;\n\t}", "List<Block> getBlocks(String congName, String[] blockArray);", "public Block[] getAllBlocks(){\n\t\tBlock[] arr = new Block[tail];\n\t\tfor(int x = 0; x < tail; x++)\n\t\t\tarr[x] = ds[x];\n\t\treturn arr;\n\t}", "public DocumentBodyBlock type(TypeEnum type) {\n this.type = type;\n return this;\n }", "Block getBlock(String congName, String blockName, String blockNumber);", "@Override\r\n public List<Block> blocks() {\r\n List<Block> blockList = new ArrayList<Block>();\r\n java.awt.Color[] colors = new Color[5];\r\n colors[0] = Color.decode(\"#c1b8b2\");\r\n colors[1] = Color.decode(\"#ef1607\");\r\n colors[2] = Color.decode(\"#ffff1e\");\r\n colors[3] = Color.decode(\"#211ed8\");\r\n colors[4] = Color.decode(\"#fffff6\");\r\n int y = 150;\r\n int[] hitPoints = {2, 1, 1, 1, 1};\r\n for (int i = 0; i < colors.length; i++) {\r\n for (int j = i + 5; j < 15; j++) {\r\n blockList.add(new Block(j * 50 + 25, y, 50, 20, colors[i], hitPoints[i]));\r\n }\r\n y += 20;\r\n }\r\n return blockList;\r\n }", "public ArrayList<Block> getBlocks() {\r\n return blocks;\r\n }", "public phaseI.Hdfs.BlockLocations.Builder getNewBlockBuilder() {\n bitField0_ |= 0x00000002;\n onChanged();\n return getNewBlockFieldBuilder().getBuilder();\n }", "public ArrayList<Block> getBlocks() {\n ArrayList<Block> blocks = new ArrayList<>();\n\n for (Vector2D pos : template) {\n blocks.add(new Block(pos.addVectorGetNewVector(center), this.color));\n }\n return blocks;\n }", "public Iterator<Map.Entry<Integer, Block>> listBlocks () {\n return this.blockMap.entrySet().iterator();\n }", "private ConditionItem blockCondition(ConditionType type, ConditionItem...conditions) {\n\t\tLinkedList<ConditionItem> children = new LinkedList<ConditionItem>();\n\t\tfor(int i = 0; i < conditions.length; i++) {\n\t\t\tchildren.addLast(conditions[i]);;\n\t\t\tif(!conditionList.isEmpty()) conditionList.removeLast();\n\t\t}\n\t\tBlockConditionItem item = new BlockConditionItem(type, children);\n\t\tconditionList.addLast(item);\n\t\treturn item;\n\t}", "public phaseI.Hdfs.BlockLocations.Builder getBlockInfoBuilder() {\n bitField0_ |= 0x00000001;\n onChanged();\n return getBlockInfoFieldBuilder().getBuilder();\n }", "public Map<Long, Block> getBlocks() {\n\t\treturn this.blocks;\n\t}", "@Override\n public List<Block> blocks() {\n List<Block> blocksList = new ArrayList<Block>();\n\n //Setting the blocks\n for (int j = 0; j <= 14; j++) {\n if (j == 0 || j == 1) {\n blocksList.add(new Block(new Rectangle(\n new Point(730 - j * 50.6666667, 215), 51, 25), java.awt.Color.CYAN));\n } else if (j == 2 || j == 3) {\n blocksList.add(new Block(new Rectangle(\n new Point(730 - j * 50.6666667, 215), 51, 25), java.awt.Color.PINK));\n } else if (j == 4 || j == 5) {\n blocksList.add(new Block(new Rectangle(\n new Point(730 - j * 50.6666667, 215), 51, 25), java.awt.Color.BLUE));\n } else if (j == 6 || j == 7 || j == 8) {\n blocksList.add(new Block(new Rectangle(\n new Point(730 - j * 50.6666667, 215), 51, 25), java.awt.Color.GREEN));\n } else if (j == 9 || j == 10) {\n blocksList.add(new Block(new Rectangle(\n new Point(730 - j * 50.6666667, 215), 51, 25), java.awt.Color.YELLOW));\n } else if (j == 11 || j == 12) {\n blocksList.add(new Block(new Rectangle(\n new Point(730 - j * 50.6666667, 215), 51, 25), java.awt.Color.ORANGE));\n } else if (j == 13 || j == 14) {\n blocksList.add(new Block(new Rectangle(\n new Point(730 - j * 50.6666667, 215), 51, 25), java.awt.Color.RED));\n }\n }\n\n return blocksList;\n }", "public Block[] getCannons() {\n\t\tArrayList<Block> cannons = new ArrayList<Block>();\n\t\tfor (int i = 0; i < this.blocks.length; i++) {\n\t\t\tif (blocks[i].getType().equals(Material.DISPENSER))\n\t\t\t\tcannons.add(blocks[i]);\n\t\t}\n\t\treturn cannons.toArray(new Block[0]);\n\t}", "void buildBlock(Tile t);", "public interface BuildingBlockService {\n\n\t/**\n\t * Retrieves the building block by id.\n\t * \n\t * @param id\n\t * the id of building block to be retrieved.\n\t * @return building block.\n\t * @throws BusinessException\n\t * In case of exception.\n\t */\n\tBuildingBlock findBuildingBlockById(Long id) throws BusinessException;\n\n\t/**\n\t * Retrieves all building blocks available.\n\t * \n\t * @return all building blocks available.\n\t * @throws BusinessException\n\t * In case of exception.\n\t */\n\tCollection<BuildingBlock> findAllBuildingBlocks() throws BusinessException;\n\n\t/**\n\t * Saves the building block.\n\t * \n\t * @return the persisted building block.\n\t * @throws BusinessException\n\t * In case of exception.\n\t */\n\tBuildingBlock saveBuildingBlock(BuildingBlock buildingBlock) throws BusinessException;\n\n\t/**\n\t * Removes the building block.\n\t * \n\t * @throws BusinessException\n\t * In case of exception.\n\t */\n\tvoid removeBuildingBlock(BuildingBlock buildingBlock) throws BusinessException;\n\n\t/**\n\t * Retrieves all building blocks by building block type.\n\t * \n\t * @return all building blocks by building block type.\n\t * @throws BusinessException\n\t * In case of exception.\n\t */\n\tCollection<BuildingBlock> findBuildingBlocksByType(BuildingBlockConstant buildingBlockType) throws BusinessException;\n\n\t/**\n\t * Retrieves all building blocks for branch id.\n\t * \n\t * @param branchId\n\t * branch object id for which all building blocks have to be\n\t * retrieved.\n\t * @return all building blocks for branch id.\n\t * @throws BusinessException\n\t * In case of exception.\n\t */\n\tCollection<BuildingBlock> findBuildingBlocksbyBranchId(Long branchId) throws BusinessException;\n\n\t/**\n\t * Retrieves all building blocks for branch id and building block type.\n\t * \n\t * @param branchId\n\t * branch object id.\n\t * @param buildingBlockType\n\t * building block type.\n\t * @return all building blocks for branch id and building block type.\n\t * @throws BusinessException\n\t * In case of exception.\n\t */\n\tCollection<BuildingBlock> findBuildingBlocksbyBranchIdAndBuildingBlockType(Long branchId, BuildingBlockConstant buildingBlockType) throws BusinessException;\n\n\t/**\n\t * Retrieves building block by building block type and code.\n\t * \n\t * @param buildingBlockType\n\t * building block type.\n\t * \n\t * @param code\n\t * building block code.\n\t * @return all building blocks by building block type.\n\t * @throws BusinessException\n\t * In case of exception.\n\t */\n\tBuildingBlock findBuildingBlockByTypeAndCode(BuildingBlockConstant buildingBlockType, String code) throws BusinessException;\n\n\t/**\n\t * Retrieve all mandatory building blocks.\n\t * \n\t * @return collection of all mandatory building blocks.\n\t */\n\tCollection<BuildingBlock> findAllMandatoryBuildingBlocks() throws SystemException;\n\n\t/**\n\t * Retrieve all fee Type building blocks for a branch by fee classification.\n\t * \n\t * @param branchId\n\t * the branch id.\n\t * @param feeClassificationLevel\n\t * the fee classification level constant.\n\t * @return\n\t * @throws BusinessException\n\t * in case of any business exceptions.\n\t */\n\tCollection<BuildingBlock> findFeeTypeBuildingBlocksbyBranchIdAndFeeClassificationLevel(final Long branchId,\n\t\t\tFeeClassificationLevelConstant feeClassificationLevel) throws BusinessException, SystemException;\n\n\t/**\n\t * Retrieve all fee Type building block for a branch by fee type.\n\t * \n\t * @param branchId\n\t * the branch id.\n\t * @param feeClassificationLevel\n\t * the fee classification level constant.\n\t * @return\n\t * @throws BusinessException\n\t * in case of any business exceptions.\n\t */\n\tCollection<BuildingBlock> findFeeTypeBuildingBlocksbyBranchIdAndFeeType(Long branchId, final FeeTypeConstant feeTypeConstant) throws BusinessException,\n\t\t\tSystemException;\n}", "public List<Type> getAll();", "public phaseI.Hdfs.BlockLocations.Builder getBlockLocationsBuilder(\n int index) {\n return getBlockLocationsFieldBuilder().getBuilder(index);\n }", "public static boolean block(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"block\")) return false;\n boolean r;\n Marker m = enter_section_(b, l, _COLLAPSE_, BLOCK, \"<block>\");\n r = config_block(b, l + 1);\n if (!r) r = model_block(b, l + 1);\n if (!r) r = type_alias(b, l + 1);\n if (!r) r = enum_block(b, l + 1);\n exit_section_(b, l, m, r, false, null);\n return r;\n }", "public alluxio.proto.journal.File.NewBlockEntry.Builder getNewBlockBuilder() {\n bitField0_ |= 0x00200000;\n onChanged();\n return getNewBlockFieldBuilder().getBuilder();\n }", "public void fillBlock(TYPE typeOfBlock){\n isFull=true;\n type=typeOfBlock;\n return;\n }", "@GetMapping(\"/getallblock\")\n\tpublic List<StudentRegistration> getAllBlockStudent() {\n\t\treturn srepo.findByStatus(\"blocked\");\n\t}", "public ArrayList<Block> getMap(){\r\n\t\treturn new ArrayList<Block>(this.blockMap);\r\n\t}", "public ArrayList<BikeType> getAllTypes(){\n typelist = new ArrayList<>();\n\n try(Connection con = DatabaseConnector.getConnection();\n PreparedStatement ps = con.prepareStatement(ALL_TYPES);\n ResultSet rs = ps.executeQuery()){\n\n while(rs.next()){\n BikeType type = new BikeType(rs.getString(cTypeName),rs.getDouble(cRentalPrice));\n type.setTypeId(rs.getInt(cTypeId));\n typelist.add(type);\n }\n\n }catch(Exception e){\n System.out.println(\"Exception: \" + e);\n }\n return typelist;\n }", "phaseI.Hdfs.BlockLocationsOrBuilder getBlockInfoOrBuilder();", "public alluxio.proto.journal.Block.BlockInfoEntry.Builder getBlockInfoBuilder() {\n bitField0_ |= 0x00000010;\n onChanged();\n return getBlockInfoFieldBuilder().getBuilder();\n }", "@RequestMapping(value = \"getBlocks\", method = RequestMethod.GET)\r\n\t@ResponseBody\r\n\tpublic BlockListResponseDTO getBlocks() {\r\n\t\tBlockListResponseDTO response = new BlockListResponseDTO();\r\n\t\ttry {\r\n\t\t\tresponse = blockService.getBlocks();\r\n\t\t} catch (ServiceException e) {\r\n\r\n\t\t\tList<Parameter> parameters = e.getParamList();\r\n\t\t\tErrorDTO error = new ErrorDTO();\r\n\t\t\terror.setErrCode(e.getError().getErrCode());\r\n\t\t\terror.setParams(parameters);\r\n\t\t\terror.setDisplayErrMsg(e.isDisplayErrMsg());\r\n\t\t\tresponse.setError(error);\r\n\t\t\tresponse.setSuccess(false);\r\n\r\n\t\t}\r\n\t\treturn response;\r\n\t}", "public List<ByteString> getBlocksBuffers() {\n final ByteString blocksBuf = getBlocksBuffer();\n final List<ByteString> buffers;\n final int size = blocksBuf.size();\n if (size <= CHUNK_SIZE) {\n buffers = Collections.singletonList(blocksBuf);\n } else {\n buffers = new ArrayList<ByteString>();\n for (int pos=0; pos < size; pos += CHUNK_SIZE) {\n // this doesn't actually copy the data\n buffers.add(blocksBuf.substring(pos, Math.min(pos+CHUNK_SIZE, size)));\n }\n }\n return buffers;\n }", "List<MemoryBlockDB> getBlocks(Address start, Address end) {\n\t\tList<MemoryBlockDB> list = new ArrayList<>();\n\n\t\tList<MemoryBlockDB> tmpBlocks = blocks;\n\t\tint index = Collections.binarySearch(tmpBlocks, start, BLOCK_ADDRESS_COMPARATOR);\n\t\tif (index < 0) {\n\t\t\tindex = -index - 2;\n\t\t}\n\t\tif (index >= 0) {\n\t\t\tMemoryBlockDB block = tmpBlocks.get(index);\n\t\t\tif (block.contains(start)) {\n\t\t\t\tlist.add(block);\n\t\t\t}\n\t\t}\n\n\t\twhile (++index < tmpBlocks.size()) {\n\t\t\tMemoryBlockDB block = tmpBlocks.get(index);\n\t\t\tif (block.getStart().compareTo(end) > 0) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tlist.add(block);\n\t\t}\n\n\t\treturn list;\n\t}", "public Byte getBuildingType() {\n return buildingType;\n }", "phaseI.Hdfs.BlockLocationsOrBuilder getNewBlockOrBuilder();", "private InheritableBuildingBlock() {\r\n super(IInheritableBuildingBlock.TYPE_ID);\r\n }", "public abstract List<LocationDto> search_type_building\n (BuildingDto building, LocationTypeDto type);", "public void fetchAllLeafComponents(List<CourseComponent> leaves, EnumSet<BlockType> types) {\n if (!isContainer() && types.contains(type)) {\n leaves.add(this);\n } else {\n for (CourseComponent comp : children) {\n comp.fetchAllLeafComponents(leaves, types);\n }\n }\n }", "phaseI.Hdfs.BlockLocationsOrBuilder getBlockLocationsOrBuilder(\n int index);", "@Override\n public List<Building> allBuildings() {\n return dao.all(Building.class);\n }", "public java.util.List<teledon.network.protobuffprotocol.TeledonProtobufs.CazCaritabil.Builder>\n getCazuriBuilderList() {\n return getCazuriFieldBuilder().getBuilderList();\n }", "public ProductionBlock getSpecificProductionBlock(int id);", "Collection<BuildingBlock> findFeeTypeBuildingBlocksbyBranchIdAndFeeClassificationLevel(final Long branchId,\n\t\t\tFeeClassificationLevelConstant feeClassificationLevel) throws BusinessException, SystemException;", "BlockBuilder createBlockBuilder(BlockBuilderStatus blockBuilderStatus, int expectedEntries);", "List<CatalogItem> getAllCatalogItemsByType(Long type_id);", "public static ArrayList<Block> getBlocksAround(Location center, int radius) {\n \tArrayList<Block> list = new ArrayList<>();\n\t\tfor (double x = center.getX() - radius; x <= center.getX() + radius; x++) {\n\t\t\tfor (double z = center.getZ() - radius; z <= center.getZ() + radius; z++) {\n\t\t\t\tLocation loc = new Location(center.getWorld(), x, center.getY(), z);\n\t\t\t\tif (loc.getBlock().getType().isSolid()) {\n\t\t\t\t\tlist.add(loc.getBlock());\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tlist.remove(center.getBlock());\n\t\treturn list;\n\t}", "public BranchGroup blocksScene(){\n\t\t\n\t\tIterator iterator = blocks.iterator();\n\t\t\n\t\twhile(iterator.hasNext()){\n\t\t\tbg.addChild(((Block) iterator.next()).boxGridScene());\n\t\t}\n\t\treturn bg;\n\t}", "public List<Building> getBoardBuildings() {\n return mPersonalBoardCards.getBoardBuildings();\n }", "public final JCBlock blocks() throws RecognitionException {\n JCBlock bBlock = null;\n\n\n JCSectionBlock sblk =null;\n\n JCBlock b =null;\n\n JCConditionalBlock cblk =null;\n\n JCFunctionCallBlock cfunctioncall =null;\n\n JCLoopBlock cloop =null;\n\n\n try {\n // C:\\\\Users\\\\Cavicchio\\\\workspace\\\\InterDepAdjStructure\\\\newgrammar\\\\JCB_tree.g:155:33: (sblk= sb (b= blocks )? |cblk= cb (b= blocks )? |cfunctioncall= functioncall (b= blocks )? |cloop= loop (b= blocks )? )\n int alt8=4;\n switch ( input.LA(1) ) {\n case OPEN_BRACKET:\n {\n alt8=1;\n }\n break;\n case OPEN_CURLY_BRACE:\n {\n alt8=2;\n }\n break;\n case OPEN_FUNCTION_CALL:\n {\n alt8=3;\n }\n break;\n case OPEN_LOOP:\n {\n alt8=4;\n }\n break;\n default:\n NoViableAltException nvae =\n new NoViableAltException(\"\", 8, 0, input);\n\n throw nvae;\n\n }\n\n switch (alt8) {\n case 1 :\n // C:\\\\Users\\\\Cavicchio\\\\workspace\\\\InterDepAdjStructure\\\\newgrammar\\\\JCB_tree.g:157:5: sblk= sb (b= blocks )?\n {\n pushFollow(FOLLOW_sb_in_blocks144);\n sblk=sb();\n\n state._fsp--;\n\n\n\n if (displayProductions == true)\n {\n System.out.println(\"Production: blocks: sblk=sb\");\n }\n bBlock = problem.addSectionToBlocks(sblk);\n\n\n // C:\\\\Users\\\\Cavicchio\\\\workspace\\\\InterDepAdjStructure\\\\newgrammar\\\\JCB_tree.g:166:2: (b= blocks )?\n int alt4=2;\n int LA4_0 = input.LA(1);\n\n if ( (LA4_0==OPEN_BRACKET||LA4_0==OPEN_CURLY_BRACE||(LA4_0 >= OPEN_FUNCTION_CALL && LA4_0 <= OPEN_LOOP)) ) {\n alt4=1;\n }\n switch (alt4) {\n case 1 :\n // C:\\\\Users\\\\Cavicchio\\\\workspace\\\\InterDepAdjStructure\\\\newgrammar\\\\JCB_tree.g:166:2: b= blocks\n {\n pushFollow(FOLLOW_blocks_in_blocks153);\n b=blocks();\n\n state._fsp--;\n\n\n }\n break;\n\n }\n\n\n\n if (displayProductions == true)\n {\n System.out.println(\"Production: blocks: sblk=sb (b=blocks)?\");\n }\n\n\n }\n break;\n case 2 :\n // C:\\\\Users\\\\Cavicchio\\\\workspace\\\\InterDepAdjStructure\\\\newgrammar\\\\JCB_tree.g:176:5: cblk= cb (b= blocks )?\n {\n pushFollow(FOLLOW_cb_in_blocks167);\n cblk=cb();\n\n state._fsp--;\n\n\n\n if (displayProductions == true)\n {\n System.out.println(\"Production: blocks: cblk=cb\");\n }\n bBlock = problem.addConditionalToBlocks(cblk);\n\n\n // C:\\\\Users\\\\Cavicchio\\\\workspace\\\\InterDepAdjStructure\\\\newgrammar\\\\JCB_tree.g:185:2: (b= blocks )?\n int alt5=2;\n int LA5_0 = input.LA(1);\n\n if ( (LA5_0==OPEN_BRACKET||LA5_0==OPEN_CURLY_BRACE||(LA5_0 >= OPEN_FUNCTION_CALL && LA5_0 <= OPEN_LOOP)) ) {\n alt5=1;\n }\n switch (alt5) {\n case 1 :\n // C:\\\\Users\\\\Cavicchio\\\\workspace\\\\InterDepAdjStructure\\\\newgrammar\\\\JCB_tree.g:185:2: b= blocks\n {\n pushFollow(FOLLOW_blocks_in_blocks175);\n b=blocks();\n\n state._fsp--;\n\n\n }\n break;\n\n }\n\n\n\n if (displayProductions == true)\n {\n System.out.println(\"Production: blocks: cblk=cb (b=blocks)?\");\n }\n\n\n }\n break;\n case 3 :\n // C:\\\\Users\\\\Cavicchio\\\\workspace\\\\InterDepAdjStructure\\\\newgrammar\\\\JCB_tree.g:195:14: cfunctioncall= functioncall (b= blocks )?\n {\n pushFollow(FOLLOW_functioncall_in_blocks187);\n cfunctioncall=functioncall();\n\n state._fsp--;\n\n\n\n if (displayProductions == true)\n {\n System.out.println(\"Production: blocks: cfunctioncall=functioncall\");\n }\n bBlock = problem.addFunctionCallBlockToBlocks(cfunctioncall);\n\n\n // C:\\\\Users\\\\Cavicchio\\\\workspace\\\\InterDepAdjStructure\\\\newgrammar\\\\JCB_tree.g:204:2: (b= blocks )?\n int alt6=2;\n int LA6_0 = input.LA(1);\n\n if ( (LA6_0==OPEN_BRACKET||LA6_0==OPEN_CURLY_BRACE||(LA6_0 >= OPEN_FUNCTION_CALL && LA6_0 <= OPEN_LOOP)) ) {\n alt6=1;\n }\n switch (alt6) {\n case 1 :\n // C:\\\\Users\\\\Cavicchio\\\\workspace\\\\InterDepAdjStructure\\\\newgrammar\\\\JCB_tree.g:204:2: b= blocks\n {\n pushFollow(FOLLOW_blocks_in_blocks196);\n b=blocks();\n\n state._fsp--;\n\n\n }\n break;\n\n }\n\n\n\n if (displayProductions == true)\n {\n System.out.println(\"Production: blocks: cfunctioncall=functioncall (b=blocks)?\");\n }\n\n\n }\n break;\n case 4 :\n // C:\\\\Users\\\\Cavicchio\\\\workspace\\\\InterDepAdjStructure\\\\newgrammar\\\\JCB_tree.g:214:6: cloop= loop (b= blocks )?\n {\n pushFollow(FOLLOW_loop_in_blocks209);\n cloop=loop();\n\n state._fsp--;\n\n\n\n if (displayProductions == true)\n {\n System.out.println(\"Production: blocks: cloop=loop\");\n }\n bBlock = problem.addLoopToBlocks(cloop);\n\n\n // C:\\\\Users\\\\Cavicchio\\\\workspace\\\\InterDepAdjStructure\\\\newgrammar\\\\JCB_tree.g:223:2: (b= blocks )?\n int alt7=2;\n int LA7_0 = input.LA(1);\n\n if ( (LA7_0==OPEN_BRACKET||LA7_0==OPEN_CURLY_BRACE||(LA7_0 >= OPEN_FUNCTION_CALL && LA7_0 <= OPEN_LOOP)) ) {\n alt7=1;\n }\n switch (alt7) {\n case 1 :\n // C:\\\\Users\\\\Cavicchio\\\\workspace\\\\InterDepAdjStructure\\\\newgrammar\\\\JCB_tree.g:223:2: b= blocks\n {\n pushFollow(FOLLOW_blocks_in_blocks218);\n b=blocks();\n\n state._fsp--;\n\n\n }\n break;\n\n }\n\n\n\n if (displayProductions == true)\n {\n System.out.println(\"Production: blocks: cloop=loop (b=blocks)?\");\n }\n\n\n }\n break;\n\n }\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n\n finally {\n \t// do for sure before leaving\n }\n return bBlock;\n }", "public Array<BlockDrawable> getBoardBlocksToDraw() {\r\n\t\tArray<BlockDrawable> blocksToDraw = new Array<BlockDrawable>();\r\n\t\tblocksToDraw.addAll(tablero);\t\t\r\n\t\treturn blocksToDraw;\r\n\t}", "public List<MLocoBrakeType> getbreaktyp() {\n\t\t\tList<MLocoBrakeType> getbreaktype = new ArrayList<>();\t\t\t\n\t\t\tobj_breaktyperepo.findAll()\n\t\t\t.forEach(getbreaktype::add);\n\t\t\treturn getbreaktype;\n\t\t\t\n\t\t\t\t\t}", "private void createBlocks(){\n for (int row=0; row < grid.length; row++) \n {\n for (int column=0; column < grid[row].length; column++)\n {\n boolean player = false;\n boolean walkable;\n \n switch (grid[row][column]){\n case(0) : \n returnImage = wall; \n walkable = false;\n break;\n case(2) : \n returnImage = start; \n walkable = true;\n player = true;\n break;\n case(4) : \n returnImage = finish; \n walkable = true;\n break;\n \n default :\n returnImage = pad; \n walkable = false;\n }\n \n \n Block blok;\n try {\n if(player==true) \n { \n blok = new Block(returnImage, blockSize, true);\n blok.setTopImage(held);\n }else\n {\n blok = new Block(returnImage, blockSize, false);\n }\n blocks.add(blok);\n } catch (Exception e) {\n \n }\n } \n \n }\n \n }", "public CourseComponent getAncestor(EnumSet<BlockType> types) {\n if (types.contains(type))\n return this;\n IBlock ancestor = parent;\n if (ancestor == null)\n return null;\n do {\n if (types.contains(ancestor.getType()))\n return (CourseComponent) ancestor;\n } while ((ancestor = ancestor.getParent()) != null);\n return null;\n }", "public TreeBlockType getTreeBlockType() {\n return this.treeBlockType;\n }", "public void testFetchBlocks() throws IOException {\n\t\tLocalRawDataBlockList list = new LocalRawDataBlockList();\r\n\t\tbyte[] data = new byte[512];\r\n\t\tint offset = 0;\r\n\r\n\t\tLittleEndian.putInt(data, offset, -3); // for the BAT block itself\r\n\t\toffset += LittleEndianConsts.INT_SIZE;\r\n\r\n\t\t// document 1: is at end of file already; start block = -2\r\n\t\t// document 2: has only one block; start block = 1\r\n\t\tLittleEndian.putInt(data, offset, -2);\r\n\t\toffset += LittleEndianConsts.INT_SIZE;\r\n\r\n\t\t// document 3: has a loop in it; start block = 2\r\n\t\tLittleEndian.putInt(data, offset, 2);\r\n\t\toffset += LittleEndianConsts.INT_SIZE;\r\n\r\n\t\t// document 4: peeks into document 2's data; start block = 3\r\n\t\tLittleEndian.putInt(data, offset, 4);\r\n\t\toffset += LittleEndianConsts.INT_SIZE;\r\n\t\tLittleEndian.putInt(data, offset, 1);\r\n\t\toffset += LittleEndianConsts.INT_SIZE;\r\n\r\n\t\t// document 5: includes an unused block; start block = 5\r\n\t\tLittleEndian.putInt(data, offset, 6);\r\n\t\toffset += LittleEndianConsts.INT_SIZE;\r\n\t\tLittleEndian.putInt(data, offset, -1);\r\n\t\toffset += LittleEndianConsts.INT_SIZE;\r\n\r\n\t\t// document 6: includes a BAT block; start block = 7\r\n\t\tLittleEndian.putInt(data, offset, 8);\r\n\t\toffset += LittleEndianConsts.INT_SIZE;\r\n\t\tLittleEndian.putInt(data, offset, 0);\r\n\t\toffset += LittleEndianConsts.INT_SIZE;\r\n\r\n\t\t// document 7: includes an XBAT block; start block = 9\r\n\t\tLittleEndian.putInt(data, offset, 10);\r\n\t\toffset += LittleEndianConsts.INT_SIZE;\r\n\t\tLittleEndian.putInt(data, offset, -4);\r\n\t\toffset += LittleEndianConsts.INT_SIZE;\r\n\r\n\t\t// document 8: goes off into space; start block = 11;\r\n\t\tLittleEndian.putInt(data, offset, 1000);\r\n\t\toffset += LittleEndianConsts.INT_SIZE;\r\n\r\n\t\t// document 9: no screw ups; start block = 12;\r\n\t\tint index = 13;\r\n\r\n\t\tfor (; offset < 508; offset += LittleEndianConsts.INT_SIZE) {\r\n\t\t\tLittleEndian.putInt(data, offset, index++);\r\n\t\t}\r\n\t\tLittleEndian.putInt(data, offset, -2);\r\n\t\tlist.add(new RawDataBlock(new ByteArrayInputStream(data)));\r\n\t\tlist.fill(1);\r\n\t\tint[] blocks = { 0 };\r\n\t\tBlockAllocationTableReader table = new BlockAllocationTableReader(\r\n\t\t POIFSConstants.SMALLER_BIG_BLOCK_SIZE_DETAILS, 1, blocks, 0, -2, list);\r\n\t\tint[] start_blocks = { -2, 1, 2, 3, 5, 7, 9, 11, 12 };\r\n\t\tint[] expected_length = { 0, 1, -1, -1, -1, -1, -1, -1, 116 };\r\n\r\n\t\tfor (int j = 0; j < start_blocks.length; j++) {\r\n\t\t\ttry {\r\n\t\t\t\tListManagedBlock[] dataBlocks = table.fetchBlocks(start_blocks[j], -1, list);\r\n\r\n\t\t\t\tif (expected_length[j] == -1) {\r\n\t\t\t\t\tfail(\"document \" + j + \" should have failed, but found a length of \"\r\n\t\t\t\t\t\t\t+ dataBlocks.length);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tassertEquals(expected_length[j], dataBlocks.length);\r\n\t\t\t\t}\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\tif (expected_length[j] == -1) {\r\n\r\n\t\t\t\t\t// no problem, we expected a failure here\r\n\t\t\t\t} else {\r\n\t\t\t\t\tthrow e;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "phaseI.Hdfs.BlockLocations getBlockLocations(int index);", "@Override\n public Block getBlock() {\n Block b = null;\n while (b == null) {\n boolean noMoreBlocks = blocks.isEmpty();\n if (!noMoreBlocks) {\n b = blocks.poll();\n }\n\n if (noMoreBlocks || b == null) {\n synchronized (BlocksPool.class) { // can be easily changed to lock-free\n if (blocks.isEmpty()) {\n alloc(newAllocBlocks);\n }\n }\n }\n }\n return b;\n }", "public phaseI.Hdfs.BlockLocations getBlockLocations(int index) {\n if (blockLocationsBuilder_ == null) {\n return blockLocations_.get(index);\n } else {\n return blockLocationsBuilder_.getMessage(index);\n }\n }", "phaseI.Hdfs.BlockLocations getNewBlock();", "public Block getBlockAt(Location location) {\n\t\treturn getBlockAt(location.getX(), location.getY(), location.getZ());\n\t}", "public Collection<Helper> getIslandHelpers(final WorldType type, final IslandLookupKey key) {\n Set<Helper> result = new HashSet<>();\n if (islandKeysCache.containsKey(key)) {\n for (Helper helper : islandKeysCache.get(key)) {\n if (helper.getWorldType() == type) {\n result.add(helper);\n }\n }\n }\n return result;\n }", "private com.google.protobuf.SingleFieldBuilderV3<\n phaseI.Hdfs.BlockLocations, phaseI.Hdfs.BlockLocations.Builder, phaseI.Hdfs.BlockLocationsOrBuilder> \n getNewBlockFieldBuilder() {\n if (newBlockBuilder_ == null) {\n newBlockBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n phaseI.Hdfs.BlockLocations, phaseI.Hdfs.BlockLocations.Builder, phaseI.Hdfs.BlockLocationsOrBuilder>(\n getNewBlock(),\n getParentForChildren(),\n isClean());\n newBlock_ = null;\n }\n return newBlockBuilder_;\n }", "public ArrayList<Byte> generateByteList(VBox editorBox) {\n\n int numSteps = editorBox.getChildren().size();\n ArrayList<Byte> byteList = new ArrayList<>();\n\n for (int i = 0; i < numSteps; i++) {\n Holder h = (Holder) editorBox.getChildren().get(i);\n\n ArrayList<Byte> bytes;\n if (h.getClass().getName().contains(\"ConditionBlock\")) {\n ConditionBlock cb = (ConditionBlock) editorBox.getChildren().get(i);\n bytes = generateConditionBlockCode(cb);\n } else if (h.getClass().getName().contains(\"RepeatBlock\")) {\n RepeatBlock rb = (RepeatBlock) editorBox.getChildren().get(i);\n bytes = generateRepeatBlockCode(rb);\n } else if (h.getClass().getName().contains(\"IfBlock\")) {\n IfBlock ib = (IfBlock) editorBox.getChildren().get(i);\n bytes = generateIfBlockCode(ib);\n } else {\n bytes = generateBlockCode(h);\n }\n\n if (bytes != null) {\n byteList.addAll(bytes);\n }\n }\n return byteList;\n }", "List<Block> search(String searchTerm);", "public List<BbanStructureDTO> getBbanStructures() {\n return bbanStructures;\n }", "public Set<InactivationBlockingMetadata> getAllInactivationBlockingDefinitions(\n @SuppressWarnings(\"rawtypes\") Class inactivationBlockedBusinessObjectClass) {\n Set<InactivationBlockingMetadata> blockingClasses\n = getDataDictionary().getAllInactivationBlockingMetadatas(inactivationBlockedBusinessObjectClass);\n if (blockingClasses == null) {\n return Collections.emptySet();\n }\n return blockingClasses;\n }", "BlockStore getBlockStore();", "@Override\r\n\tpublic ArrayList<Board1> getByType(int type) {\n\t\treturn dao.selectByType(type);\r\n\t}", "public final JCBlock blocks2() throws RecognitionException {\n JCBlock bBlock = null;\n\n\n JCSectionBlock sblk2 =null;\n\n JCBlock b =null;\n\n JCConditionalBlock cblk2 =null;\n\n JCFunctionCallBlock cfunctioncall2 =null;\n\n JCLoopBlock cloop2 =null;\n\n\n try {\n // C:\\\\Users\\\\Cavicchio\\\\workspace\\\\InterDepAdjStructure\\\\newgrammar\\\\JCB_tree.g:520:34: (sblk2= sb2 (b= blocks2 )? |cblk2= cb2 (b= blocks2 )? |cfunctioncall2= functioncall2 (b= blocks2 )? |cloop2= loop2 (b= blocks2 )? )\n int alt15=4;\n switch ( input.LA(1) ) {\n case OPEN_BRACKET:\n {\n alt15=1;\n }\n break;\n case OPEN_CURLY_BRACE:\n {\n alt15=2;\n }\n break;\n case OPEN_FUNCTION_CALL:\n {\n alt15=3;\n }\n break;\n case OPEN_LOOP:\n {\n alt15=4;\n }\n break;\n default:\n NoViableAltException nvae =\n new NoViableAltException(\"\", 15, 0, input);\n\n throw nvae;\n\n }\n\n switch (alt15) {\n case 1 :\n // C:\\\\Users\\\\Cavicchio\\\\workspace\\\\InterDepAdjStructure\\\\newgrammar\\\\JCB_tree.g:522:6: sblk2= sb2 (b= blocks2 )?\n {\n pushFollow(FOLLOW_sb2_in_blocks2577);\n sblk2=sb2();\n\n state._fsp--;\n\n\n\n if (displayProductions == true)\n {\n System.out.println(\"Production: blocks2: sblk2=sb2\");\n }\n bBlock = problem.processConditionalSectionBlock(sblk2);\n\n\n // C:\\\\Users\\\\Cavicchio\\\\workspace\\\\InterDepAdjStructure\\\\newgrammar\\\\JCB_tree.g:531:2: (b= blocks2 )?\n int alt11=2;\n int LA11_0 = input.LA(1);\n\n if ( (LA11_0==OPEN_BRACKET||LA11_0==OPEN_CURLY_BRACE||(LA11_0 >= OPEN_FUNCTION_CALL && LA11_0 <= OPEN_LOOP)) ) {\n alt11=1;\n }\n switch (alt11) {\n case 1 :\n // C:\\\\Users\\\\Cavicchio\\\\workspace\\\\InterDepAdjStructure\\\\newgrammar\\\\JCB_tree.g:531:2: b= blocks2\n {\n pushFollow(FOLLOW_blocks2_in_blocks2587);\n b=blocks2();\n\n state._fsp--;\n\n\n }\n break;\n\n }\n\n\n\n if (displayProductions == true)\n {\n System.out.println(\"Production: blocks2: sblk2=sb2 (b=blocks2)?\");\n }\n\n\n }\n break;\n case 2 :\n // C:\\\\Users\\\\Cavicchio\\\\workspace\\\\InterDepAdjStructure\\\\newgrammar\\\\JCB_tree.g:541:6: cblk2= cb2 (b= blocks2 )?\n {\n pushFollow(FOLLOW_cb2_in_blocks2600);\n cblk2=cb2();\n\n state._fsp--;\n\n\n\n if (displayProductions == true)\n {\n System.out.println(\"Production: blocks2: cblk2=cb2\");\n }\n\n\n // C:\\\\Users\\\\Cavicchio\\\\workspace\\\\InterDepAdjStructure\\\\newgrammar\\\\JCB_tree.g:549:2: (b= blocks2 )?\n int alt12=2;\n int LA12_0 = input.LA(1);\n\n if ( (LA12_0==OPEN_BRACKET||LA12_0==OPEN_CURLY_BRACE||(LA12_0 >= OPEN_FUNCTION_CALL && LA12_0 <= OPEN_LOOP)) ) {\n alt12=1;\n }\n switch (alt12) {\n case 1 :\n // C:\\\\Users\\\\Cavicchio\\\\workspace\\\\InterDepAdjStructure\\\\newgrammar\\\\JCB_tree.g:549:2: b= blocks2\n {\n pushFollow(FOLLOW_blocks2_in_blocks2609);\n b=blocks2();\n\n state._fsp--;\n\n\n }\n break;\n\n }\n\n\n\n if (displayProductions == true)\n {\n System.out.println(\"Production: blocks2: cblk2=cb2 (b=blocks2)\");\n }\n\n\n }\n break;\n case 3 :\n // C:\\\\Users\\\\Cavicchio\\\\workspace\\\\InterDepAdjStructure\\\\newgrammar\\\\JCB_tree.g:559:15: cfunctioncall2= functioncall2 (b= blocks2 )?\n {\n pushFollow(FOLLOW_functioncall2_in_blocks2623);\n cfunctioncall2=functioncall2();\n\n state._fsp--;\n\n\n\n if (displayProductions == true)\n {\n System.out.println(\"Production: blocks2: cfunctioncall2=functioncall2\");\n }\n bBlock = problem.processFunctionCallBlock(cfunctioncall2);\n\n\n // C:\\\\Users\\\\Cavicchio\\\\workspace\\\\InterDepAdjStructure\\\\newgrammar\\\\JCB_tree.g:568:2: (b= blocks2 )?\n int alt13=2;\n int LA13_0 = input.LA(1);\n\n if ( (LA13_0==OPEN_BRACKET||LA13_0==OPEN_CURLY_BRACE||(LA13_0 >= OPEN_FUNCTION_CALL && LA13_0 <= OPEN_LOOP)) ) {\n alt13=1;\n }\n switch (alt13) {\n case 1 :\n // C:\\\\Users\\\\Cavicchio\\\\workspace\\\\InterDepAdjStructure\\\\newgrammar\\\\JCB_tree.g:568:2: b= blocks2\n {\n pushFollow(FOLLOW_blocks2_in_blocks2632);\n b=blocks2();\n\n state._fsp--;\n\n\n }\n break;\n\n }\n\n\n\n if (displayProductions == true)\n {\n System.out.println(\"Production: blocks2: cfunctioncall2=functioncall2 (b=blocks2)?\");\n }\n\n\n }\n break;\n case 4 :\n // C:\\\\Users\\\\Cavicchio\\\\workspace\\\\InterDepAdjStructure\\\\newgrammar\\\\JCB_tree.g:578:7: cloop2= loop2 (b= blocks2 )?\n {\n pushFollow(FOLLOW_loop2_in_blocks2645);\n cloop2=loop2();\n\n state._fsp--;\n\n\n\n if (displayProductions == true)\n {\n System.out.println(\"Production: blocks2: cloop2=loop2\");\n }\n bBlock = problem.processLoopBlock(cloop2);\n\n\n // C:\\\\Users\\\\Cavicchio\\\\workspace\\\\InterDepAdjStructure\\\\newgrammar\\\\JCB_tree.g:587:2: (b= blocks2 )?\n int alt14=2;\n int LA14_0 = input.LA(1);\n\n if ( (LA14_0==OPEN_BRACKET||LA14_0==OPEN_CURLY_BRACE||(LA14_0 >= OPEN_FUNCTION_CALL && LA14_0 <= OPEN_LOOP)) ) {\n alt14=1;\n }\n switch (alt14) {\n case 1 :\n // C:\\\\Users\\\\Cavicchio\\\\workspace\\\\InterDepAdjStructure\\\\newgrammar\\\\JCB_tree.g:587:2: b= blocks2\n {\n pushFollow(FOLLOW_blocks2_in_blocks2654);\n b=blocks2();\n\n state._fsp--;\n\n\n }\n break;\n\n }\n\n\n\n if (displayProductions == true)\n {\n System.out.println(\"Production: blocks2: cloop2=loop2 (b=blocks2)\");\n }\n\n\n }\n break;\n\n }\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n\n finally {\n \t// do for sure before leaving\n }\n return bBlock;\n }", "private com.google.protobuf.SingleFieldBuilderV3<\n phaseI.Hdfs.BlockLocations, phaseI.Hdfs.BlockLocations.Builder, phaseI.Hdfs.BlockLocationsOrBuilder> \n getBlockInfoFieldBuilder() {\n if (blockInfoBuilder_ == null) {\n blockInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n phaseI.Hdfs.BlockLocations, phaseI.Hdfs.BlockLocations.Builder, phaseI.Hdfs.BlockLocationsOrBuilder>(\n getBlockInfo(),\n getParentForChildren(),\n isClean());\n blockInfo_ = null;\n }\n return blockInfoBuilder_;\n }", "public void changeEnvironmentTypeToBlock() {\n this.setEnvironmentType(EnvironmentTypesList.getBlockEnvironmentType());\n }", "public void setBuildingType(Byte buildingType) {\n this.buildingType = buildingType;\n }", "public Block getBlock(int i) {\n\t\treturn Block.getBlock(id(i));\n\t}", "public phaseI.Hdfs.BlockLocationsOrBuilder getNewBlockOrBuilder() {\n if (newBlockBuilder_ != null) {\n return newBlockBuilder_.getMessageOrBuilder();\n } else {\n return newBlock_ == null ?\n phaseI.Hdfs.BlockLocations.getDefaultInstance() : newBlock_;\n }\n }", "public alluxio.proto.journal.File.NewBlockEntryOrBuilder getNewBlockOrBuilder() {\n if (newBlockBuilder_ != null) {\n return newBlockBuilder_.getMessageOrBuilder();\n } else {\n return newBlock_;\n }\n }", "private List<Block> createBlocks() {\n ArrayList<String> listOfBlocksAndSpacers = new ArrayList<String>();\n boolean buffer = false;\n for (int i = 0; i < level.size(); i++) {\n // if it starts with END_BLOCKS\n if (level.get(i).startsWith(\"END_BLOCKS\")) {\n buffer = false;\n } // if the buffer is true\n if (buffer) {\n listOfBlocksAndSpacers.add(level.get(i));\n } // if it starts with START_BLOCKS\n if (level.get(i).startsWith(\"START_BLOCKS\")) {\n buffer = true;\n } else if (level.get(i).startsWith(\"END_BLOCKS\")) {\n buffer = false;\n }\n }\n // find the x position where it all starts\n int startX = Integer.parseInt(this.map.get(\"blocks_start_x\"));\n int xForSave = startX;\n // find the y position where it all starts\n int startY = Integer.parseInt(this.map.get(\"blocks_start_y\"));\n List<Block> listOfBlocks = new ArrayList<>();\n String[] s;\n setBlocks();\n // go over the list of blocks of spacers\n for (int i = 0; i < listOfBlocksAndSpacers.size(); i++) {\n // split it with empty lines\n s = listOfBlocksAndSpacers.get(i).split(\"\");\n for (int j = 0; j < s.length; j++) {\n if (s[j].equals(\"\")) {\n continue;\n } // if it is a block symbol\n if (this.factory.isBlockSymbol(s[j])) {\n // add to listOfBlocks a block\n listOfBlocks.add(this.factory.getBlock(s[j], startX, startY));\n // continue to the next block with the next location\n startX += this.factory.getBlock(s[j], startX, startY).getCollisionRectangle().getWidth();\n } else if (this.factory.isSpaceSymbol(s[j])) { // move following\n // spacers\n startX += this.factory.getSpaceWidth(s[j]);\n }\n }\n startX = xForSave;\n startY += Integer.parseInt(this.map.get(\"row_height\"));\n }\n // put the blocks in a new blocks list and return it\n List<Block> listOfBlocksCopy = new ArrayList<>();\n for (int z = 0; z < listOfBlocks.size(); z++) {\n listOfBlocksCopy.add(listOfBlocks.get(z).copyBlock());\n }\n return listOfBlocksCopy;\n }", "public ArrayList< LocationHandler >getAllLocationByType (int type){\n\t\tArrayList< LocationHandler> locationList = new ArrayList< LocationHandler>();\n\t\tString selectQuery = \"SELECT * FROM \" + table_location + \" WHERE \" + key_type + \" LIKE \" + \"'\"+ type +\",\"+\"%'\" + \" ORDER BY \" + key_date_entry ; \n\t\tSQLiteDatabase db = this.getWritableDatabase();\n\t\tCursor cursor = db.rawQuery(selectQuery, null);\n\t\tif (cursor.moveToFirst()) {\n\t\t\tdo {\n\t\t\t\tLocationHandler locationHandlerArray = new LocationHandler();\n\t\t\t\tlocationHandlerArray.setId(cursor.getInt(0)); \n\t\t\t\tlocationHandlerArray.setBase_id(cursor.getInt(1)); \n\t\t\t\tlocationHandlerArray.setDate_entry(cursor.getString(2)); \n\t\t\t\tlocationHandlerArray.setLongitude(cursor.getDouble(3)); \n\t\t\t\tlocationHandlerArray.setLatitude(cursor.getDouble(4)); \n\t\t\t\tlocationHandlerArray.setName(cursor.getString(5)); \n\t\t\t\tlocationHandlerArray.setType(cursor.getString(6)); \n\t\t\t\tlocationHandlerArray.setSearchTag(cursor.getString(7));\n\t\t\t\tlocationHandlerArray.setAmountables(cursor.getDouble(8));\n\t\t\t\tlocationHandlerArray.setDescription(cursor.getString(9));\n\t\t\t\tlocationHandlerArray.setBestSeller(cursor.getString(10));\n\t\t\t\tlocationHandlerArray.setWebsite(cursor.getString(11));\n\t\t\t\tlocationList.add(locationHandlerArray);\n\t\t\t} while (cursor.moveToNext());\n\t\t}\n\n\t\tdb.close();\n\t\treturn locationList;\n\t}", "public Block getBlock(String id) {\n\t\treturn this.blocks.get(Long.valueOf(id));\n\t}" ]
[ "0.76741076", "0.7278432", "0.65136796", "0.6469981", "0.62402344", "0.62146276", "0.61516577", "0.60604256", "0.59775895", "0.58042866", "0.5795167", "0.5740685", "0.57331115", "0.56534845", "0.5596527", "0.55942553", "0.55851406", "0.5504035", "0.54811835", "0.54273623", "0.5406851", "0.53620946", "0.53537464", "0.53223646", "0.53162545", "0.5310742", "0.52898115", "0.52729964", "0.52483493", "0.5196532", "0.51956695", "0.5191788", "0.5191405", "0.5168194", "0.51379395", "0.5135947", "0.5128247", "0.5105943", "0.51031345", "0.50540614", "0.5041783", "0.50352186", "0.50268453", "0.49993914", "0.4992639", "0.49857798", "0.4973094", "0.49662265", "0.49577424", "0.49540874", "0.4951261", "0.4947653", "0.49458265", "0.492426", "0.49202242", "0.4906476", "0.48689047", "0.48531175", "0.48502454", "0.4848303", "0.4848232", "0.4837438", "0.48361823", "0.48234937", "0.48217353", "0.4816198", "0.479993", "0.47938618", "0.47936732", "0.47894424", "0.47774643", "0.477423", "0.47726524", "0.47646138", "0.47637236", "0.47603667", "0.47603202", "0.47482836", "0.47432366", "0.4739608", "0.47358146", "0.47350642", "0.47303712", "0.47256407", "0.4719756", "0.4718522", "0.47124234", "0.47121704", "0.4709001", "0.47031027", "0.46992478", "0.46915182", "0.4688716", "0.46881908", "0.468585", "0.46687278", "0.4666769", "0.46611384", "0.4660296", "0.46572262" ]
0.8430015
0
Retrieves all building blocks for branch id.
Collection<BuildingBlock> findBuildingBlocksbyBranchId(Long branchId) throws BusinessException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Collection<BuildingBlock> findAllBuildingBlocks() throws BusinessException;", "Collection<BuildingBlock> findBuildingBlocksbyBranchIdAndBuildingBlockType(Long branchId, BuildingBlockConstant buildingBlockType) throws BusinessException;", "BuildingBlock findBuildingBlockById(Long id) throws BusinessException;", "public Block getBlock(String id) {\n\t\treturn this.blocks.get(Long.valueOf(id));\n\t}", "public ProductionBlock[] getAllProductionBlocks();", "public List<Book> branchBooks(int branchId){\n\t\treturn template.query(\"SELECT * FROM tbl_book JOIN tbl_book_copies ON tbl_book.bookId = tbl_book_copies.bookID\"\n\t\t\t\t+ \" WHERE branchId=? AND noOfCopies >=1\", new Object[] {branchId}, this);\n\t}", "Collection<BuildingBlock> findFeeTypeBuildingBlocksbyBranchIdAndFeeType(Long branchId, final FeeTypeConstant feeTypeConstant) throws BusinessException,\n\t\t\tSystemException;", "List<BranchDto> getByRegion(int regionId) throws ServiceException;", "public Branch getBranchById(int id){\n if( id==0 ) {\n return defaultBranch;\n } else {\n BranchDao bDAO = new BranchDao();\n Branch branch = null;\n try {\n branch = bDAO.findById(id);\n } catch (DaoException ex) {\n Logger.getLogger(BranchCtrl.class.getName()).log(Level.SEVERE, null, ex);\n ErrorMsg.setLastError(ErrorMsg.ERROR_SQL_ERROR);\n }\n return branch;\n }\n }", "public List<Branch> getBranchs()\r\n\t{\t\r\n\t\tif (branchs.size() == 0)\r\n\t\t{\r\n\t\t\t//Lacos abertos carga x terra (redes radiais)\r\n\t\t\tbranchs.addAll(findBranchs());\t\t\r\n\t\t\r\n\t\t}\r\n\t\treturn branchs; \r\n\t}", "Collection<BuildingBlock> findFeeTypeBuildingBlocksbyBranchIdAndFeeClassificationLevel(final Long branchId,\n\t\t\tFeeClassificationLevelConstant feeClassificationLevel) throws BusinessException, SystemException;", "@Override\n\tpublic List<BusinessconfigStuff> listChildren(Long id) {\n\t\treturn businessconfigStuffDao.listChildren(id);\n\t}", "public List<Building> getAllBuildingByCommunityid(int communityid) {\n\t\treturn buildingMapper.getAllBuildingByCommunityid(communityid);\n\t}", "public ArrayList<Branch> getBranches() {\r\n\t\ttry {\r\n\t\t\tbranchList.clear();\r\n \tFileInputStream fis = new FileInputStream(BRANCH_FILEPATH);\r\n \tObjectInputStream ois = new ObjectInputStream(fis);\r\n \tBranch obj = null;\r\n \r\n \twhile ((obj=(Branch)ois.readObject())!=null) {\r\n \t\tbranchList.add(obj);\r\n \t}\r\n \tois.close();\r\n }\r\n\t\tcatch (EOFException e) {\r\n\t\t\tSystem.out.println(\"End of file reached.\");\r\n }\r\n catch (ClassNotFoundException e) {\r\n \te.printStackTrace();\r\n }\r\n catch (IOException e) {\r\n \te.printStackTrace();\r\n }\r\n\t\treturn branchList;\r\n\t}", "public java.util.List<phaseI.Hdfs.BlockLocations.Builder> \n getBlockLocationsBuilderList() {\n return getBlockLocationsFieldBuilder().getBuilderList();\n }", "Collection<BuildingBlock> findBuildingBlocksByType(BuildingBlockConstant buildingBlockType) throws BusinessException;", "public ProductionBlock getSpecificProductionBlock(int id);", "Collection<BuildFilterResource<?>> getBuildFilters(ID branchId);", "public ArrayList<Bike> getAllBikes(int dockingStationId){ //All bikes currently in the selected docking station\n ArrayList<Bike> BList = new ArrayList<>();\n\n try(Connection con = DatabaseConnector.getConnection();\n PreparedStatement ps = con.prepareStatement(BIKES_AT_STATION + dockingStationId);\n ResultSet rs = ps.executeQuery()){\n \n while(rs.next()){\n Bike bike = getBikeFromRS(rs);\n BList.add(bike);\n }\n }catch(Exception e){\n System.out.println(\"Exception: \" + e);\n }\n return BList;\n }", "private void populateBranches() {\n\t\tStationsDTO[] station = null;\n\t\ttry {\n\t\t\tstation = handler.getAllBranches();\n\t\t\tif (null != station) {\n\t\t\t\tint len = station.length;\n\t\t\t\tfor (int i = 0; i < len; i++) {\n\t\t\t\t\tcoBranch.add(station[i].getName() + \" - \"\n\t\t\t\t\t\t\t+ station[i].getId());\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (Exception exception) {\n\t\t\texception.printStackTrace();\n\t\t}\n\t}", "public List<BlockID> getLeafList()\n {\n return leafBlocks;\n }", "public ItemDefinition getBlock(int id) {\n\t\treturn itemsArray[id];\n\t}", "public List<Branch> getBranchListForBank(String name);", "public List<Build> getBuildsForProject(int projectId);", "public alluxio.proto.journal.File.NewBlockEntry.Builder getNewBlockBuilder() {\n bitField0_ |= 0x00200000;\n onChanged();\n return getNewBlockFieldBuilder().getBuilder();\n }", "public Branch find_Branch(Integer branch_id) {\n return branch_dao.find(branch_id);\n }", "@Override\n\tpublic List<BranchInfoVo> creserveList(String id) throws SQLException {\n\t\treturn sqlSession.selectList(\"yes.areserveselectAll\", id);\n\t}", "public phaseI.Hdfs.BlockLocations.Builder getBlockLocationsBuilder(\n int index) {\n return getBlockLocationsFieldBuilder().getBuilder(index);\n }", "public void loadLiabilitiesBuildingBlocks() {\n\t\tif (this.loadLiabilityTypesFromDB) {\n\t\t\tthis.liabilitiesTypeBuildingBlocks = this.buildingBlockService.findBuildingBlocksbyBranchIdAndBuildingBlockType(this.sessionBean.getCurrentBranch()\n\t\t\t\t\t.getId(), BuildingBlockConstant.LIABILITY_TYPE);\n\t\t\tthis.loadLiabilityTypesFromDB = false;\n\t\t}\n\t}", "public phaseI.Hdfs.BlockLocations.Builder getNewBlockBuilder() {\n bitField0_ |= 0x00000002;\n onChanged();\n return getNewBlockFieldBuilder().getBuilder();\n }", "BranchingBlock createBranchingBlock();", "Collection<BuildingBlock> findAllMandatoryBuildingBlocks() throws SystemException;", "public phaseI.Hdfs.BlockLocations.Builder getBlockInfoBuilder() {\n bitField0_ |= 0x00000001;\n onChanged();\n return getBlockInfoFieldBuilder().getBuilder();\n }", "public Map<Long, Block> getBlocks() {\n\t\treturn this.blocks;\n\t}", "private void populateSelectedBranches() {\n\t\ttry {\n\t\t\tStationsDTO[] stations = handler.getAllBranches();\n\t\t\tif (null != stations) {\n\t\t\t\tint len = stations.length;\n\t\t\t\tfor (int i = 0; i < len; i++) {\n\t\t\t\t\tcbSB.add(stations[i].getName() + \" - \"\n\t\t\t\t\t\t\t+ stations[i].getId());\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (Exception exception) {\n\t\t\texception.printStackTrace();\n\t\t}\n\t}", "public Iterator<Map.Entry<Integer, Block>> listBlocks () {\n return this.blockMap.entrySet().iterator();\n }", "public List<Branch> getChildBranches() {\n return (childBranches != null) ? childBranches :\n Collections.emptyList();\n }", "Collection<BuildFilterForm> getBuildFilterForms(ID branchId);", "private static List<Element> getXMLBlocks(Model model) {\n Set<Block> blocks = new TreeSet<>(Comparators.objectsById());\n blocks.addAll(model.getBlocks(null));\n List<Element> result = new ArrayList<>(blocks.size());\n for (Block curBlock : blocks) {\n Element blockElement = new Element(\"block\");\n blockElement.setAttribute(\"id\", String.valueOf(curBlock.getId()));\n blockElement.setAttribute(\"name\", curBlock.getName());\n for (TCSResourceReference<?> curRef : curBlock.getMembers()) {\n Element resourceElement = new Element(\"member\");\n resourceElement.setAttribute(\"name\", curRef.getName());\n blockElement.addContent(resourceElement);\n }\n for (Map.Entry<String, String> curEntry\n : curBlock.getProperties().entrySet()) {\n Element propertyElement = new Element(\"property\");\n propertyElement.setAttribute(\"name\", curEntry.getKey());\n propertyElement.setAttribute(\"value\", curEntry.getValue());\n blockElement.addContent(propertyElement);\n }\n result.add(blockElement);\n }\n return result;\n }", "public List<Building> getBoardBuildings() {\n return mPersonalBoardCards.getBoardBuildings();\n }", "com.google.protobuf.ByteString\n getBranchIdBytes();", "Set<? extends IRBasicBlock> getBlocks();", "MultipleBranchingBlock createMultipleBranchingBlock();", "public List<Brick> build() {\n\t\treturn this.mapBuilder.build();\n\t}", "public Collection<Block> getBlockCollection() {\n\t\treturn this.blocks.values();\n\t}", "public static ByteArrayInputStream getBlockstateJson(Identifier id) {\n JsonObject file = new JsonObject();\n JsonObject variants = new JsonObject();\n JsonObject model = new JsonObject();\n model.addProperty(\"model\",id.getNamespace() + \":block/\" + id.getPath());\n variants.add(\"\", model);\n file.add(\"variants\", variants);\n return new ByteArrayInputStream(file.toString().getBytes());\n }", "public final JCBasicBlock bb() throws RecognitionException {\n JCBasicBlock basicBlock = null;\n\n\n Token ID7=null;\n Token INT8=null;\n\n try {\n // C:\\\\Users\\\\Cavicchio\\\\workspace\\\\InterDepAdjStructure\\\\newgrammar\\\\JCB_tree.g:504:38: ( OPEN_PARENTHESIS ID COMMA INT CLOSE_PARENTHESIS )\n // C:\\\\Users\\\\Cavicchio\\\\workspace\\\\InterDepAdjStructure\\\\newgrammar\\\\JCB_tree.g:506:1: OPEN_PARENTHESIS ID COMMA INT CLOSE_PARENTHESIS\n {\n match(input,OPEN_PARENTHESIS,FOLLOW_OPEN_PARENTHESIS_in_bb535); \n\n ID7=(Token)match(input,ID,FOLLOW_ID_in_bb537); \n\n match(input,COMMA,FOLLOW_COMMA_in_bb539); \n\n INT8=(Token)match(input,INT,FOLLOW_INT_in_bb541); \n\n match(input,CLOSE_PARENTHESIS,FOLLOW_CLOSE_PARENTHESIS_in_bb543); \n\n\n if (displayProductions == true)\n {\n System.out.println(\"Production: bb : (ID,INT) = (\" + (ID7!=null?ID7.getText():null) + \",\" + (INT8!=null?INT8.getText():null) + \")\");\n }\n int bbWCET = Integer.parseInt((INT8!=null?INT8.getText():null));\n basicBlock = problem.createBasicBlock((ID7!=null?ID7.getText():null), bbWCET);\t\t\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n\n finally {\n \t// do for sure before leaving\n }\n return basicBlock;\n }", "public Block[] getAllBlocks(){\n\t\tBlock[] arr = new Block[tail];\n\t\tfor(int x = 0; x < tail; x++)\n\t\t\tarr[x] = ds[x];\n\t\treturn arr;\n\t}", "public alluxio.proto.journal.Block.BlockInfoEntry.Builder getBlockInfoBuilder() {\n bitField0_ |= 0x00000010;\n onChanged();\n return getBlockInfoFieldBuilder().getBuilder();\n }", "@GET\n @Produces(\"application/json\")\n @Path(\"/building/id/{id}\")\n public static List<CRoom> roomsByBuilding(@PathParam(\"id\") final int pId) {\n return (List<CRoom>) sCrudRoom.findWithNamedQuery(\n CRoom.FIND_ROOMS_BY_BUILDING, QueryParameter.with(\"Pid\", pId).parameters());\n }", "public Building getBuilding(int id){\n // Placeholder method stub returns the science building\n return new Building(id, \"Science Building\", 42.931003, -85.588937, \"picture.gif\");\n }", "private List<BedData> readBedDataBlock(RPTreeLeafNodeItem leafHitItem) {\n\n // get the chromosome names associated with the hit region ID's\n int startChromID = leafHitItem.getChromosomeBounds().getStartChromID();\n int endChromID = leafHitItem.getChromosomeBounds().getEndChromID();\n chromosomeMap = chromIDTree.getChromosomeIDMap(startChromID, endChromID);\n\n boolean isLowToHigh = chromDataTree.isIsLowToHigh();\n int uncompressBufSize = chromDataTree.getUncompressBuffSize();\n\n // decompress leaf item data block for feature extraction\n BigBedDataBlock bedDataBlock = new BigBedDataBlock(fis, header, leafHitItem, chromosomeMap, isLowToHigh, uncompressBufSize);\n\n // get data block Bed feature list and set next index to first item\n return bedDataBlock.getBedData(selectionRegion, contained);\n\n }", "@Override\n public List<Building> allBuildings() {\n return dao.all(Building.class);\n }", "BillOfMaterials getBOM(int orderId) throws DataException {\n if (orderId <= 0) {\n throw new DataException(\"Stykliste blev ikke fundet. ID# ikke passende\");\n }\n try {\n con = Connector.connection(dbURL);\n String SQL = \"SELECT * FROM `bills_of_materials` WHERE `order_id` = ?\";\n ps = con.prepareStatement(SQL);\n ps.setInt(1, orderId);\n rs = ps.executeQuery();\n Map<Integer, Integer> components = new HashMap();\n\n while (rs.next()) {\n components.put(rs.getInt(\"component_id\"), rs.getInt(\"amount\"));\n }\n\n BillOfMaterials BoM = new BillOfMaterials(orderId, components);\n return BoM;\n\n } catch (NumberFormatException | SQLException e) {\n throw new DataException(e.getMessage());\n } finally {\n Connector.CloseConnection(rs, ps, con);\n }\n }", "public String getBranchId() {\n return branchId;\n }", "private List<Branch> findBranchs()\r\n\t{\t\r\n\t\tList<Branch> localBranchs = new ArrayList<>();\r\n\t\tHashMap<String, Node> destinationNodes = new HashMap<>();\r\n\t\t\r\n\t\t// Percorre todos os arcos da rede\r\n\t\tfor (Edge edge: this.getEdges())\r\n\t\t{\t\r\n\t\t\t// Se ha carga no no destino do arco, este no � uma folha da rede\r\n\t\t\tif (edge != null && edge.getDestinationNode().getLoads().size() > 0) \r\n\t\t\t{\t\r\n\t\t\t\t// Verifica se h� mais de um arco com a mesma carga\r\n\t\t\t\tif (!destinationNodes.containsKey(edge.getDestinationNode().getLabel()))\r\n\t\t\t\t{\t\t\t\t\t\r\n\t\t\t\t\tBranch branch = new Branch(edge.getDestinationNode().getLabel());\r\n\t\t\t\t\tbranch.addEdges(edge);\r\n\t\t\t\t\tEdge newEdge = edge.getReference();\r\n\t\t\t\t\tdestinationNodes.put(edge.getDestinationNode().getLabel(), edge.getDestinationNode());\r\n\t\t\t\t\t\r\n\t\t\t\t\t// percorre os elementos amontantes do no e monta o laco\r\n\t\t\t\t\twhile (newEdge != null) \r\n\t\t\t\t\t{\t\t\r\n\t\t\t\t\t\tbranch.addEdges(newEdge.getReference());\r\n\t\t\t\t\t\tnewEdge = newEdge.getReference();\r\n\t\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t\tlocalBranchs.add(branch);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\t\r\n\t\r\n\t\treturn localBranchs; \r\n\t}", "public List<Block> blocks() {\n this.blocks = createBlocks();\n return this.blocks;\n }", "List<Block> blocks();", "public ArrayList<Block> getMap(){\r\n\t\treturn new ArrayList<Block>(this.blockMap);\r\n\t}", "private Branch getBranch(String branchId) {\n \t\tBranch result = null;\n\n \t\tif (branchId != null) {\n \t\t\t// if branch doesn't exist, create it\n \t\t\tif (!branches.containsKey(branchId)) {\n \t\t\t\tresult = new Branch();\n \t\t\t\tresult.setBranchId(branchId);\n \t\t\t\tbranches.put(branchId, result);\n \t\t\t} else {\n \t\t\t\tresult = branches.get(branchId);\n \t\t\t}\n \t\t}\n \t\treturn result;\n \t}", "public static ByteArrayInputStream getBlockJson(String name, Identifier id) {\n switch (name.split(\"/\")[2]) {\n case \"blockstates\": return getBlockstateJson(id);\n case \"models\": return name.split(\"/\")[3].equals(\"block\") ? getBlockModelJson(id) : getItemJson(id);\n default: Logger.getLogger(\"AutoJson\").log(Level.WARNING, \"Could not create Block JSON\"); return new ByteArrayInputStream(\"\".getBytes());\n }\n }", "@GetMapping(\"/getAllBranches\")\n\tpublic ResponseEntity<List<BranchDto>> getAllBranches(){\n\t\tlogger.trace(\"Requested to get all branches\");\n\t\tList<BranchDto> branches= service.getAllBranches();\n\t\tlogger.trace(\"Completed request to get all branches\");\n\t\treturn ResponseEntity.ok(branches);\n\t}", "List<String> branches();", "public List<PackerTreeNode<T>> getBranch() {\n final var result = new ArrayList<PackerTreeNode<T>>();\n result.add(this);\n if (parent != null) {\n result.addAll(parent.getBranch());\n }\n return result;\n }", "public phaseI.Hdfs.BlockLocations getBlockLocations(int index) {\n if (blockLocationsBuilder_ == null) {\n return blockLocations_.get(index);\n } else {\n return blockLocationsBuilder_.getMessage(index);\n }\n }", "List<Block> getBlocksByCongName(String congName);", "public BuildingBlock(int blockId, Color color) {\n Image bbGreenImage = new Image(getClass().getResourceAsStream(VisibleObjects.MAKE_LONGER_BONUS.getImage()));\n bbGreen = new ImagePattern(bbGreenImage);\n VisibleObjects.MAKE_LONGER_BONUS.setBlockImage(bbGreen);\n Image bbYellowImage = new Image(getClass().getResourceAsStream(VisibleObjects.MAKE_FASTER_BONUS.getImage()));\n bbYellow = new ImagePattern(bbYellowImage);\n VisibleObjects.MAKE_FASTER_BONUS.setBlockImage(bbYellow);\n Image bbRedImage = new Image(getClass().getResourceAsStream(VisibleObjects.SHOOT_BONUS.getImage()));\n bbRed = new ImagePattern(bbRedImage);\n VisibleObjects.SHOOT_BONUS.setBlockImage(bbRed);\n Image bbGreyImage = new Image(getClass().getResourceAsStream(VisibleObjects.DEATH.getImage()));\n bbGrey = new ImagePattern(bbGreyImage);\n VisibleObjects.DEATH.setBlockImage(bbGrey);\n Image playerOneImageImage = new Image(getClass().getResourceAsStream(VisibleObjects.PLAYER_ONE.getImage()));\n playerOneImage = new ImagePattern(playerOneImageImage);\n VisibleObjects.PLAYER_ONE.setBlockImage(playerOneImage);\n Image playerTwoImageImage = new Image(getClass().getResourceAsStream(VisibleObjects.PLAYER_TWO.getImage()));\n playerTwoImage = new ImagePattern(playerTwoImageImage);\n VisibleObjects.PLAYER_TWO.setBlockImage(playerTwoImage);\n Image playerThreeImageImage = new Image(getClass().getResourceAsStream(VisibleObjects.PLAYER_THREE.getImage()));\n playerThreeImage = new ImagePattern(playerThreeImageImage);\n VisibleObjects.PLAYER_THREE.setBlockImage(playerThreeImage);\n Image playerFourImageImage = new Image(getClass().getResourceAsStream(VisibleObjects.PLAYER_FOUR.getImage()));\n playerFourImage = new ImagePattern(playerFourImageImage);\n VisibleObjects.PLAYER_FOUR.setBlockImage(playerFourImage);\n Image playerOneImageImageRIP = new Image(getClass().getResourceAsStream(PlayerEnum.PLAYER_ONE.getImage()));\n playerOneImageRIP = new ImagePattern(playerOneImageImageRIP);\n PlayerEnum.PLAYER_ONE.setPlayerDeathImage(playerOneImageRIP);\n Image playerTwoImageImageRIP = new Image(getClass().getResourceAsStream(PlayerEnum.PLAYER_TWO.getImage()));\n playerTwoImageRIP = new ImagePattern(playerTwoImageImageRIP);\n PlayerEnum.PLAYER_TWO.setPlayerDeathImage(playerTwoImageRIP);\n Image playerThreeImageImageRIP = new Image(getClass().getResourceAsStream(PlayerEnum.PLAYER_THREE.getImage()));\n playerThreeImageRIP = new ImagePattern(playerThreeImageImageRIP);\n PlayerEnum.PLAYER_THREE.setPlayerDeathImage(playerThreeImageRIP);\n Image playerFourImageImageRIP = new Image(getClass().getResourceAsStream(PlayerEnum.PLAYER_FOUR.getImage()));\n playerFourImageRIP = new ImagePattern(playerFourImageImageRIP);\n PlayerEnum.PLAYER_FOUR.setPlayerDeathImage(playerFourImageRIP);\n Image deathImage = new Image(getClass().getResourceAsStream(\"rip.png\"));\n deathPattern = new ImagePattern(deathImage);\n Image deathPlayerImage = new Image(getClass().getResourceAsStream(VisibleObjects.DEATH_PLAYER.getImage()));\n deathPlayerPattern = new ImagePattern(deathPlayerImage);\n VisibleObjects.DEATH_PLAYER.setBlockImage(deathPlayerPattern);\n \n Image eplosionImage = new Image(getClass().getResourceAsStream(\"explosion.gif\"));\n explosionView = new ImagePattern(eplosionImage);\n \n explosionSound = new AudioClip(getClass().getResource(\"explosion.wav\").toExternalForm());\n \n explosionSound.play(0);\n \n this.blockId = blockId;\n this.revertColor = color;\n rectangle = new Rectangle();\n rectangle.setFill(color);\n occupant = new Death(VisibleObjects.DEATH);\n gridList.put(blockId, this);\n }", "public static ByteArrayInputStream getBlockModelJson(Identifier id) {\n JsonObject file = new JsonObject();\n file.addProperty(\"parent\", \"block/cube_all\");\n JsonObject texture = new JsonObject();\n texture.addProperty(\"all\", id.getNamespace() + \":block/\" + id.getPath());\n file.add(\"textures\", texture);\n return new ByteArrayInputStream(file.toString().getBytes());\n }", "public Collection<Stmt> branches() {\n if(branches_computed) {\n return branches_value;\n }\n ASTNode$State state = state();\n int num = state.boundariesCrossed;\n boolean isFinal = this.is$Final();\n branches_value = branches_compute();\n if (isFinal && num == state().boundariesCrossed) {\n branches_computed = true;\n } else {\n }\n\n return branches_value;\n }", "public Integer getBranchId() {\n return branchId;\n }", "public Queue<GameMessage> getBids(String gameId) {\r\n return msgMapping.get(gameId);\r\n }", "@Override\n public List<Block> blocks() {\n int columns = 15, width = 51, height = 30;\n Color darkGreen = new Color(29, 101, 51);\n List<Block> blocks = new ArrayList<>();\n for (int j = 0; j < columns; j++) {\n blocks.add(new Block(new arkanoid.geometry.Rectangle(new Point(20 + width * j, 110 + height),\n width, height), darkGreen));\n }\n return blocks;\n }", "public List<Map<String, Object>> getAvailableBranches()\n {\n List<String> allTenants = getWikiSelector().getMptIdSelector().getTenants(GWikiWeb.getRootWiki());\n List<Map<String, Object>> branchProps = new ArrayList<Map<String, Object>>();\n\n // default new branch is selected\n this.selectedBranch = NEW_BRANCH;\n\n for (String tenantId : allTenants) {\n\n // if approve you have to copy the file in a branch other than draft\n if (PlcConstants.DRAFT_ID.equalsIgnoreCase(tenantId) == true\n && FileState.APPROVED_CHIEF_EDITOR.name().equals(newPageState) == true) {\n continue;\n }\n\n GWikiProps branchInfoProp = wikiContext.runInTenantContext(tenantId, getWikiSelector(),\n new CallableX<GWikiProps, RuntimeException>()\n {\n @Override\n public GWikiProps call() throws RuntimeException\n {\n return PlcUtils.getBranchInfo(wikiContext);\n }\n });\n\n if (branchInfoProp == null) {\n continue;\n }\n\n // only add offline branches\n if (BranchState.OFFLINE.name()\n .equals(branchInfoProp.getStringValue(PlcConstants.BRANCH_INFO_BRANCH_STATE)) == true) {\n Map<String, Object> m = new HashMap<String, Object>();\n m.putAll(branchInfoProp.getMap());\n m.put(\"RELEASE_DATE_DATE\",\n GWikiProps.parseTimeStamp(branchInfoProp.getStringValue(PlcConstants.BRANCH_INFO_RELEASE_DATE)));\n branchProps.add(m);\n\n // if branch release date matches article release date -> preselect branch\n String release = branchInfoProp.getStringValue(PlcConstants.BRANCH_INFO_RELEASE_DATE);\n Date branchReleaseDate = GWikiProps.parseTimeStamp(release);\n if (branchReleaseDate != null && branchReleaseDate.equals(getStartDateOfArticle())) {\n selectedBranch = branchInfoProp.getStringValue(PlcConstants.BRANCH_INFO_BRANCH_ID);\n }\n }\n }\n return branchProps;\n }", "public List<Block> blocks() {\r\n List<Block> list = new ArrayList<Block>();\r\n double width = 50;\r\n for (int i = 0; i < 7; ++i) {\r\n Color c = new Color(0, 0, 0);\r\n switch (i) {\r\n case 0:\r\n c = Color.gray;\r\n break;\r\n case 1:\r\n c = Color.red;\r\n break;\r\n case 2:\r\n c = Color.yellow;\r\n break;\r\n case 3:\r\n c = Color.green;\r\n break;\r\n case 4:\r\n c = Color.white;\r\n break;\r\n case 5:\r\n c = Color.pink;\r\n break;\r\n default:\r\n c = Color.cyan;\r\n break;\r\n }\r\n for (int j = 0; j < 15; ++j) {\r\n Block b = new Block(new Rectangle(new Point(\r\n 25 + j * width, 100 + i * 20), width, 20));\r\n if (i == 0) {\r\n b.setHitPoints(2);\r\n } else {\r\n b.setHitPoints(1);\r\n }\r\n list.add(b);\r\n }\r\n }\r\n return list;\r\n }", "public phaseI.Hdfs.BlockLocations getBlockLocations(int index) {\n return blockLocations_.get(index);\n }", "@GetMapping(path = \"/branch\")\n public Set<PlacementViewDto> getAllRecordsByBranch(@RequestParam(value = \"branchId\") Long branchId, @RequestParam(defaultValue = \"0\") String page) {\n return placementService.getPlacementDetailsByBranch(branchId, page);\n }", "public List<Integer> getBlockAsList(int b){\n\t\tList<Integer> block = new ArrayList<Integer>(size*size);\n\t\tfor (int i = size*(b/size); i < size*(b/size+1); i++){\n\t\t\tfor (int j = size*(b%size); j < size*(b%size+1); j++){\n\t\t\t\tblock.add(numbers[i][j]);\n\t\t\t}\n\t\t}\n\t\treturn block;\n\t}", "public AreaInteres buscarArea(int id) throws Exception {\r\n\t\treturn boAreaInt.buscarAreaInteres(id);\r\n\t}", "@GetMapping(\"/getallblock\")\n\tpublic List<StudentRegistration> getAllBlockStudent() {\n\t\treturn srepo.findByStatus(\"blocked\");\n\t}", "public List<Brands> LoadBrandsById(int BrandId) {\n Brands brands = null;\n List<Brands> brandsList = new ArrayList<>();\n try {\n Connection connection = DBConnection.getConnectionToDatabase();\n // String sql = \"SELECT * FROM `humusam_root`.`Users` WHERE UserEmail=\" + email;\n String sql = \"SELECT * FROM `brands` WHERE BrandId=\" + BrandId;\n Statement statment = connection.createStatement();\n ResultSet set = statment.executeQuery(sql);\n ListBrands(brandsList, set);\n } catch (SQLException exception) {\n System.out.println(\"sqlException in Application in LoadAllBrands Section : \" + exception);\n exception.printStackTrace();\n }\n\n return brandsList;\n }", "List<MemoryBlockDB> getBlocks(Address start, Address end) {\n\t\tList<MemoryBlockDB> list = new ArrayList<>();\n\n\t\tList<MemoryBlockDB> tmpBlocks = blocks;\n\t\tint index = Collections.binarySearch(tmpBlocks, start, BLOCK_ADDRESS_COMPARATOR);\n\t\tif (index < 0) {\n\t\t\tindex = -index - 2;\n\t\t}\n\t\tif (index >= 0) {\n\t\t\tMemoryBlockDB block = tmpBlocks.get(index);\n\t\t\tif (block.contains(start)) {\n\t\t\t\tlist.add(block);\n\t\t\t}\n\t\t}\n\n\t\twhile (++index < tmpBlocks.size()) {\n\t\t\tMemoryBlockDB block = tmpBlocks.get(index);\n\t\t\tif (block.getStart().compareTo(end) > 0) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tlist.add(block);\n\t\t}\n\n\t\treturn list;\n\t}", "public ArrayList <Branch> createBranch(){\n\t\tPVector dir1 =PVector.sub(loc_end,loc_begin);\n\t\tPVector dir2 =PVector.sub(loc_end,loc_begin);\n\t\t//println(\"loc_newEnd1: \"+loc_end.x+\" : \"+loc_end.y);\n\t\t//println(\"loc_newEnd1: \"+dir1.x+\" : \"+dir1.y);\n\t\tdir1.rotate(random(PI/4,PI/5));\n\t\tdir1.mult(0.67f);\n\t\tPVector loc_newEnd1 = PVector.add(loc_end,dir1);\n\t\tBranch branch_a = new Branch(this.loc_end,loc_newEnd1);\n\t\t\n\t\tdir2.rotate(random(-PI/4,-PI/5));\n\t\tdir2.mult(0.67f);\n\t\tPVector loc_newEnd2 = PVector.add(loc_end,dir2);\n\t\tBranch branch_b = new Branch(this.loc_end,loc_newEnd2);\n\n\t\tArrayList<Branch> bs = new ArrayList<Branch>() ;\n\t\tbs.add(branch_a);\n\t\tbs.add(branch_b);\n\t\tcomplete=true;\n\n\t\t\n\t\t//println(\"loc_newEnd2: \"+loc_newEnd2.x+\" : \"+loc_newEnd2.y);\n\t\t\n\t\treturn bs;\n\n\t}", "@GetMapping(\"/getABranchItems/{branchId}\")\n\tpublic ResponseEntity<List<Item>> getABranchItems(@PathVariable int branchId) throws ResourceNotFoundException\n\t{\n\t\tlogger.trace(\"Requested to get all the items in a branch\");\n\t\tList<Item> items= service.getABranchItems(branchId);\n\t\tlogger.trace(\"Completed Request to get all the items in a branch\");\t\n\t\treturn ResponseEntity.ok(items);\n\t}", "public interface BuildingBlockService {\n\n\t/**\n\t * Retrieves the building block by id.\n\t * \n\t * @param id\n\t * the id of building block to be retrieved.\n\t * @return building block.\n\t * @throws BusinessException\n\t * In case of exception.\n\t */\n\tBuildingBlock findBuildingBlockById(Long id) throws BusinessException;\n\n\t/**\n\t * Retrieves all building blocks available.\n\t * \n\t * @return all building blocks available.\n\t * @throws BusinessException\n\t * In case of exception.\n\t */\n\tCollection<BuildingBlock> findAllBuildingBlocks() throws BusinessException;\n\n\t/**\n\t * Saves the building block.\n\t * \n\t * @return the persisted building block.\n\t * @throws BusinessException\n\t * In case of exception.\n\t */\n\tBuildingBlock saveBuildingBlock(BuildingBlock buildingBlock) throws BusinessException;\n\n\t/**\n\t * Removes the building block.\n\t * \n\t * @throws BusinessException\n\t * In case of exception.\n\t */\n\tvoid removeBuildingBlock(BuildingBlock buildingBlock) throws BusinessException;\n\n\t/**\n\t * Retrieves all building blocks by building block type.\n\t * \n\t * @return all building blocks by building block type.\n\t * @throws BusinessException\n\t * In case of exception.\n\t */\n\tCollection<BuildingBlock> findBuildingBlocksByType(BuildingBlockConstant buildingBlockType) throws BusinessException;\n\n\t/**\n\t * Retrieves all building blocks for branch id.\n\t * \n\t * @param branchId\n\t * branch object id for which all building blocks have to be\n\t * retrieved.\n\t * @return all building blocks for branch id.\n\t * @throws BusinessException\n\t * In case of exception.\n\t */\n\tCollection<BuildingBlock> findBuildingBlocksbyBranchId(Long branchId) throws BusinessException;\n\n\t/**\n\t * Retrieves all building blocks for branch id and building block type.\n\t * \n\t * @param branchId\n\t * branch object id.\n\t * @param buildingBlockType\n\t * building block type.\n\t * @return all building blocks for branch id and building block type.\n\t * @throws BusinessException\n\t * In case of exception.\n\t */\n\tCollection<BuildingBlock> findBuildingBlocksbyBranchIdAndBuildingBlockType(Long branchId, BuildingBlockConstant buildingBlockType) throws BusinessException;\n\n\t/**\n\t * Retrieves building block by building block type and code.\n\t * \n\t * @param buildingBlockType\n\t * building block type.\n\t * \n\t * @param code\n\t * building block code.\n\t * @return all building blocks by building block type.\n\t * @throws BusinessException\n\t * In case of exception.\n\t */\n\tBuildingBlock findBuildingBlockByTypeAndCode(BuildingBlockConstant buildingBlockType, String code) throws BusinessException;\n\n\t/**\n\t * Retrieve all mandatory building blocks.\n\t * \n\t * @return collection of all mandatory building blocks.\n\t */\n\tCollection<BuildingBlock> findAllMandatoryBuildingBlocks() throws SystemException;\n\n\t/**\n\t * Retrieve all fee Type building blocks for a branch by fee classification.\n\t * \n\t * @param branchId\n\t * the branch id.\n\t * @param feeClassificationLevel\n\t * the fee classification level constant.\n\t * @return\n\t * @throws BusinessException\n\t * in case of any business exceptions.\n\t */\n\tCollection<BuildingBlock> findFeeTypeBuildingBlocksbyBranchIdAndFeeClassificationLevel(final Long branchId,\n\t\t\tFeeClassificationLevelConstant feeClassificationLevel) throws BusinessException, SystemException;\n\n\t/**\n\t * Retrieve all fee Type building block for a branch by fee type.\n\t * \n\t * @param branchId\n\t * the branch id.\n\t * @param feeClassificationLevel\n\t * the fee classification level constant.\n\t * @return\n\t * @throws BusinessException\n\t * in case of any business exceptions.\n\t */\n\tCollection<BuildingBlock> findFeeTypeBuildingBlocksbyBranchIdAndFeeType(Long branchId, final FeeTypeConstant feeTypeConstant) throws BusinessException,\n\t\t\tSystemException;\n}", "public int[][] getBlock(int b){\n\t\tint[][] block = new int[size][size];\n\t\tfor (int i = 0; i < size; i++){\n\t\t\tfor (int j = 0; j < size; j++){\n\t\t\t\tblock[i][j] = numbers[i+size*(b/size)]\n\t\t\t\t\t\t [j+size*(b%size)];\n\t\t\t}\n\t\t}\n\t\treturn block;\n\t}", "@Override\n public Building get(long id) {\n return dao.get(Building.class, id);\n }", "public ArrayList<Block> getBlocks() {\r\n return blocks;\r\n }", "Block getBlockByNumber(long number);", "public List<MenuBean> queryMenuBytreepath(String id) {\n\t\treturn menuDao.queryMenuBytreepath(id);\r\n\t}", "@GetMapping(\"/tour-bubbls/{id}\")\n public ResponseEntity<TourBubblDTO> getTourBubbl(@PathVariable Long id) {\n log.debug(\"REST request to get TourBubbl : {}\", id);\n TourBubblDTO tourBubblDTO = tourBubblService.findOne(id);\n return Optional.ofNullable(tourBubblDTO)\n .map(result -> new ResponseEntity<>(\n result,\n HttpStatus.OK))\n .orElse(new ResponseEntity<>(HttpStatus.NOT_FOUND));\n }", "public java.util.List<edu.usfca.cs.dfs.StorageMessages.StoreChunkLocation.Builder> \n getChunksLocationBuilderList() {\n return getChunksLocationFieldBuilder().getBuilderList();\n }", "ch.crif_online.www.webservices.crifsoapservice.v1_00.BranchOfficeList getBranchOfficeList();", "@GetMapping ( value = {\"/block/{from}/{to}\", \"/block/{from}\"} )\n\tpublic Set<String> getBlock ( @PathVariable ( name = \"from\", required = true) String from,\n\t\t\t@PathVariable ( name = \"to\", required = false) List<String> to ) {\n\t\tif ( to == null ) {\n\t\t\treturn blocksService.allBlocks(from);\n\t\t} else {\n\t\t\treturn blocksService.allBlocks(from, to);\n\t\t}\n\t\t\n\t}", "public static Block getInstance(short id) {\n return getInstance(id, (byte) 0);\n }", "@Transactional(readOnly = true)\n public List<DropdownDTO> getBranchCodeList(Integer status) {\n sqlQuery = properties.getProperty(\"CommonDao.getBranchCodeList\");\n Query hQuery = hibernateQuery(sqlQuery, DropdownDTO.class)\n .setParameter(\"status\", status);\n return (List<DropdownDTO>) hQuery.list();\n }", "@Override\r\n\tpublic StateWorkArea getByStateWorkArea(Integer id) {\r\n\t\t\r\n\t\treturn stateWorkAreaDAO.getByStateWorkArea(id);\r\n\t}", "public Block[] getBlocks() {\n\t\treturn blocks;\n\t}", "public final JCBasicBlock bb2() throws RecognitionException {\n JCBasicBlock basicBlock = null;\n\n\n Token ID12=null;\n Token INT13=null;\n\n try {\n // C:\\\\Users\\\\Cavicchio\\\\workspace\\\\InterDepAdjStructure\\\\newgrammar\\\\JCB_tree.g:854:39: ( OPEN_PARENTHESIS ID COMMA INT CLOSE_PARENTHESIS )\n // C:\\\\Users\\\\Cavicchio\\\\workspace\\\\InterDepAdjStructure\\\\newgrammar\\\\JCB_tree.g:856:1: OPEN_PARENTHESIS ID COMMA INT CLOSE_PARENTHESIS\n {\n match(input,OPEN_PARENTHESIS,FOLLOW_OPEN_PARENTHESIS_in_bb2970); \n\n ID12=(Token)match(input,ID,FOLLOW_ID_in_bb2972); \n\n match(input,COMMA,FOLLOW_COMMA_in_bb2974); \n\n INT13=(Token)match(input,INT,FOLLOW_INT_in_bb2976); \n\n match(input,CLOSE_PARENTHESIS,FOLLOW_CLOSE_PARENTHESIS_in_bb2978); \n\n\n if (displayProductions == true)\n {\n System.out.println(\"Production: bb2 : (ID,INT) = (\" + (ID12!=null?ID12.getText():null) + \",\" + (INT13!=null?INT13.getText():null) + \")\");\n }\n int bbWCET = Integer.parseInt((INT13!=null?INT13.getText():null));\n basicBlock = problem.accessBasicBlock((ID12!=null?ID12.getText():null), bbWCET);\t\t\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n\n finally {\n \t// do for sure before leaving\n }\n return basicBlock;\n }", "public ArrayList<Block> getWalls() {\n\t\tArrayList<Block> b = new ArrayList<Block>();\n\t\tfor (int i = 0; i <maze.size(); i++) {\n\t\t\tif (maze.get(i).t == 'w') {\n\t\t\t\tb.add(maze.get(i));\n\t\t\t}\n\t\t}\n\t\treturn b;\n\t}", "java.util.List<phaseI.Hdfs.BlockLocations> \n getBlockLocationsList();" ]
[ "0.6690365", "0.6427023", "0.6352986", "0.55824727", "0.55415237", "0.5391399", "0.53911346", "0.5367174", "0.536533", "0.53265935", "0.5308568", "0.52900267", "0.52719563", "0.52552265", "0.5238308", "0.5135291", "0.51348716", "0.5115458", "0.50962424", "0.5078328", "0.5073866", "0.5067469", "0.50611705", "0.5048003", "0.50463754", "0.50415885", "0.50400406", "0.5032428", "0.5030986", "0.50274384", "0.5003625", "0.49879435", "0.49856928", "0.4974581", "0.49613982", "0.49481642", "0.493405", "0.4919242", "0.49152055", "0.49040234", "0.48833126", "0.48811722", "0.48757607", "0.48752075", "0.48736814", "0.48578832", "0.48518762", "0.4843824", "0.48149672", "0.47904205", "0.4779693", "0.47759658", "0.4773248", "0.4769948", "0.4768231", "0.47647178", "0.4745444", "0.47409418", "0.47367314", "0.47172", "0.47171718", "0.47150618", "0.47115985", "0.47074696", "0.47046864", "0.46974787", "0.4696088", "0.469595", "0.46826732", "0.4682215", "0.4671013", "0.46697757", "0.46635833", "0.46588773", "0.46455303", "0.46435854", "0.46395695", "0.46382755", "0.46378037", "0.462488", "0.46201652", "0.4619276", "0.46151868", "0.4614236", "0.461232", "0.4600302", "0.4582631", "0.45805562", "0.45790336", "0.45788822", "0.45646882", "0.45612472", "0.45560068", "0.45544374", "0.45537707", "0.45500952", "0.4545533", "0.45439953", "0.45313188", "0.45293993" ]
0.796651
0
Retrieves all building blocks for branch id and building block type.
Collection<BuildingBlock> findBuildingBlocksbyBranchIdAndBuildingBlockType(Long branchId, BuildingBlockConstant buildingBlockType) throws BusinessException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Collection<BuildingBlock> findBuildingBlocksbyBranchId(Long branchId) throws BusinessException;", "Collection<BuildingBlock> findAllBuildingBlocks() throws BusinessException;", "Collection<BuildingBlock> findBuildingBlocksByType(BuildingBlockConstant buildingBlockType) throws BusinessException;", "BuildingBlock findBuildingBlockById(Long id) throws BusinessException;", "public ProductionBlock[] getAllProductionBlocks();", "Collection<BuildingBlock> findFeeTypeBuildingBlocksbyBranchIdAndFeeType(Long branchId, final FeeTypeConstant feeTypeConstant) throws BusinessException,\n\t\t\tSystemException;", "public void loadLiabilitiesBuildingBlocks() {\n\t\tif (this.loadLiabilityTypesFromDB) {\n\t\t\tthis.liabilitiesTypeBuildingBlocks = this.buildingBlockService.findBuildingBlocksbyBranchIdAndBuildingBlockType(this.sessionBean.getCurrentBranch()\n\t\t\t\t\t.getId(), BuildingBlockConstant.LIABILITY_TYPE);\n\t\t\tthis.loadLiabilityTypesFromDB = false;\n\t\t}\n\t}", "BuildingBlock findBuildingBlockByTypeAndCode(BuildingBlockConstant buildingBlockType, String code) throws BusinessException;", "Collection<BuildingBlock> findAllMandatoryBuildingBlocks() throws SystemException;", "public java.util.List<phaseI.Hdfs.BlockLocations.Builder> \n getBlockLocationsBuilderList() {\n return getBlockLocationsFieldBuilder().getBuilderList();\n }", "private static List<Element> getXMLBlocks(Model model) {\n Set<Block> blocks = new TreeSet<>(Comparators.objectsById());\n blocks.addAll(model.getBlocks(null));\n List<Element> result = new ArrayList<>(blocks.size());\n for (Block curBlock : blocks) {\n Element blockElement = new Element(\"block\");\n blockElement.setAttribute(\"id\", String.valueOf(curBlock.getId()));\n blockElement.setAttribute(\"name\", curBlock.getName());\n for (TCSResourceReference<?> curRef : curBlock.getMembers()) {\n Element resourceElement = new Element(\"member\");\n resourceElement.setAttribute(\"name\", curRef.getName());\n blockElement.addContent(resourceElement);\n }\n for (Map.Entry<String, String> curEntry\n : curBlock.getProperties().entrySet()) {\n Element propertyElement = new Element(\"property\");\n propertyElement.setAttribute(\"name\", curEntry.getKey());\n propertyElement.setAttribute(\"value\", curEntry.getValue());\n blockElement.addContent(propertyElement);\n }\n result.add(blockElement);\n }\n return result;\n }", "Set<? extends IRBasicBlock> getBlocks();", "public BlockType[] getBlocks() {\n return blocks;\n }", "Collection<BuildingBlock> findFeeTypeBuildingBlocksbyBranchIdAndFeeClassificationLevel(final Long branchId,\n\t\t\tFeeClassificationLevelConstant feeClassificationLevel) throws BusinessException, SystemException;", "public phaseI.Hdfs.BlockLocations.Builder getNewBlockBuilder() {\n bitField0_ |= 0x00000002;\n onChanged();\n return getNewBlockFieldBuilder().getBuilder();\n }", "public phaseI.Hdfs.BlockLocations.Builder getBlockInfoBuilder() {\n bitField0_ |= 0x00000001;\n onChanged();\n return getBlockInfoFieldBuilder().getBuilder();\n }", "MultipleBranchingBlock createMultipleBranchingBlock();", "public alluxio.proto.journal.File.NewBlockEntry.Builder getNewBlockBuilder() {\n bitField0_ |= 0x00200000;\n onChanged();\n return getNewBlockFieldBuilder().getBuilder();\n }", "public Collection<Block> getBlockCollection() {\n\t\treturn this.blocks.values();\n\t}", "public Block[] getAllBlocks(){\n\t\tBlock[] arr = new Block[tail];\n\t\tfor(int x = 0; x < tail; x++)\n\t\t\tarr[x] = ds[x];\n\t\treturn arr;\n\t}", "List<Block> blocks();", "public alluxio.proto.journal.Block.BlockInfoEntry.Builder getBlockInfoBuilder() {\n bitField0_ |= 0x00000010;\n onChanged();\n return getBlockInfoFieldBuilder().getBuilder();\n }", "BranchingBlock createBranchingBlock();", "public interface BuildingBlockService {\n\n\t/**\n\t * Retrieves the building block by id.\n\t * \n\t * @param id\n\t * the id of building block to be retrieved.\n\t * @return building block.\n\t * @throws BusinessException\n\t * In case of exception.\n\t */\n\tBuildingBlock findBuildingBlockById(Long id) throws BusinessException;\n\n\t/**\n\t * Retrieves all building blocks available.\n\t * \n\t * @return all building blocks available.\n\t * @throws BusinessException\n\t * In case of exception.\n\t */\n\tCollection<BuildingBlock> findAllBuildingBlocks() throws BusinessException;\n\n\t/**\n\t * Saves the building block.\n\t * \n\t * @return the persisted building block.\n\t * @throws BusinessException\n\t * In case of exception.\n\t */\n\tBuildingBlock saveBuildingBlock(BuildingBlock buildingBlock) throws BusinessException;\n\n\t/**\n\t * Removes the building block.\n\t * \n\t * @throws BusinessException\n\t * In case of exception.\n\t */\n\tvoid removeBuildingBlock(BuildingBlock buildingBlock) throws BusinessException;\n\n\t/**\n\t * Retrieves all building blocks by building block type.\n\t * \n\t * @return all building blocks by building block type.\n\t * @throws BusinessException\n\t * In case of exception.\n\t */\n\tCollection<BuildingBlock> findBuildingBlocksByType(BuildingBlockConstant buildingBlockType) throws BusinessException;\n\n\t/**\n\t * Retrieves all building blocks for branch id.\n\t * \n\t * @param branchId\n\t * branch object id for which all building blocks have to be\n\t * retrieved.\n\t * @return all building blocks for branch id.\n\t * @throws BusinessException\n\t * In case of exception.\n\t */\n\tCollection<BuildingBlock> findBuildingBlocksbyBranchId(Long branchId) throws BusinessException;\n\n\t/**\n\t * Retrieves all building blocks for branch id and building block type.\n\t * \n\t * @param branchId\n\t * branch object id.\n\t * @param buildingBlockType\n\t * building block type.\n\t * @return all building blocks for branch id and building block type.\n\t * @throws BusinessException\n\t * In case of exception.\n\t */\n\tCollection<BuildingBlock> findBuildingBlocksbyBranchIdAndBuildingBlockType(Long branchId, BuildingBlockConstant buildingBlockType) throws BusinessException;\n\n\t/**\n\t * Retrieves building block by building block type and code.\n\t * \n\t * @param buildingBlockType\n\t * building block type.\n\t * \n\t * @param code\n\t * building block code.\n\t * @return all building blocks by building block type.\n\t * @throws BusinessException\n\t * In case of exception.\n\t */\n\tBuildingBlock findBuildingBlockByTypeAndCode(BuildingBlockConstant buildingBlockType, String code) throws BusinessException;\n\n\t/**\n\t * Retrieve all mandatory building blocks.\n\t * \n\t * @return collection of all mandatory building blocks.\n\t */\n\tCollection<BuildingBlock> findAllMandatoryBuildingBlocks() throws SystemException;\n\n\t/**\n\t * Retrieve all fee Type building blocks for a branch by fee classification.\n\t * \n\t * @param branchId\n\t * the branch id.\n\t * @param feeClassificationLevel\n\t * the fee classification level constant.\n\t * @return\n\t * @throws BusinessException\n\t * in case of any business exceptions.\n\t */\n\tCollection<BuildingBlock> findFeeTypeBuildingBlocksbyBranchIdAndFeeClassificationLevel(final Long branchId,\n\t\t\tFeeClassificationLevelConstant feeClassificationLevel) throws BusinessException, SystemException;\n\n\t/**\n\t * Retrieve all fee Type building block for a branch by fee type.\n\t * \n\t * @param branchId\n\t * the branch id.\n\t * @param feeClassificationLevel\n\t * the fee classification level constant.\n\t * @return\n\t * @throws BusinessException\n\t * in case of any business exceptions.\n\t */\n\tCollection<BuildingBlock> findFeeTypeBuildingBlocksbyBranchIdAndFeeType(Long branchId, final FeeTypeConstant feeTypeConstant) throws BusinessException,\n\t\t\tSystemException;\n}", "public phaseI.Hdfs.BlockLocations.Builder getBlockLocationsBuilder(\n int index) {\n return getBlockLocationsFieldBuilder().getBuilder(index);\n }", "public List<Block> blocks() {\r\n List<Block> list = new ArrayList<Block>();\r\n double width = 50;\r\n for (int i = 0; i < 7; ++i) {\r\n Color c = new Color(0, 0, 0);\r\n switch (i) {\r\n case 0:\r\n c = Color.gray;\r\n break;\r\n case 1:\r\n c = Color.red;\r\n break;\r\n case 2:\r\n c = Color.yellow;\r\n break;\r\n case 3:\r\n c = Color.green;\r\n break;\r\n case 4:\r\n c = Color.white;\r\n break;\r\n case 5:\r\n c = Color.pink;\r\n break;\r\n default:\r\n c = Color.cyan;\r\n break;\r\n }\r\n for (int j = 0; j < 15; ++j) {\r\n Block b = new Block(new Rectangle(new Point(\r\n 25 + j * width, 100 + i * 20), width, 20));\r\n if (i == 0) {\r\n b.setHitPoints(2);\r\n } else {\r\n b.setHitPoints(1);\r\n }\r\n list.add(b);\r\n }\r\n }\r\n return list;\r\n }", "public final JCBlock blocks() throws RecognitionException {\n JCBlock bBlock = null;\n\n\n JCSectionBlock sblk =null;\n\n JCBlock b =null;\n\n JCConditionalBlock cblk =null;\n\n JCFunctionCallBlock cfunctioncall =null;\n\n JCLoopBlock cloop =null;\n\n\n try {\n // C:\\\\Users\\\\Cavicchio\\\\workspace\\\\InterDepAdjStructure\\\\newgrammar\\\\JCB_tree.g:155:33: (sblk= sb (b= blocks )? |cblk= cb (b= blocks )? |cfunctioncall= functioncall (b= blocks )? |cloop= loop (b= blocks )? )\n int alt8=4;\n switch ( input.LA(1) ) {\n case OPEN_BRACKET:\n {\n alt8=1;\n }\n break;\n case OPEN_CURLY_BRACE:\n {\n alt8=2;\n }\n break;\n case OPEN_FUNCTION_CALL:\n {\n alt8=3;\n }\n break;\n case OPEN_LOOP:\n {\n alt8=4;\n }\n break;\n default:\n NoViableAltException nvae =\n new NoViableAltException(\"\", 8, 0, input);\n\n throw nvae;\n\n }\n\n switch (alt8) {\n case 1 :\n // C:\\\\Users\\\\Cavicchio\\\\workspace\\\\InterDepAdjStructure\\\\newgrammar\\\\JCB_tree.g:157:5: sblk= sb (b= blocks )?\n {\n pushFollow(FOLLOW_sb_in_blocks144);\n sblk=sb();\n\n state._fsp--;\n\n\n\n if (displayProductions == true)\n {\n System.out.println(\"Production: blocks: sblk=sb\");\n }\n bBlock = problem.addSectionToBlocks(sblk);\n\n\n // C:\\\\Users\\\\Cavicchio\\\\workspace\\\\InterDepAdjStructure\\\\newgrammar\\\\JCB_tree.g:166:2: (b= blocks )?\n int alt4=2;\n int LA4_0 = input.LA(1);\n\n if ( (LA4_0==OPEN_BRACKET||LA4_0==OPEN_CURLY_BRACE||(LA4_0 >= OPEN_FUNCTION_CALL && LA4_0 <= OPEN_LOOP)) ) {\n alt4=1;\n }\n switch (alt4) {\n case 1 :\n // C:\\\\Users\\\\Cavicchio\\\\workspace\\\\InterDepAdjStructure\\\\newgrammar\\\\JCB_tree.g:166:2: b= blocks\n {\n pushFollow(FOLLOW_blocks_in_blocks153);\n b=blocks();\n\n state._fsp--;\n\n\n }\n break;\n\n }\n\n\n\n if (displayProductions == true)\n {\n System.out.println(\"Production: blocks: sblk=sb (b=blocks)?\");\n }\n\n\n }\n break;\n case 2 :\n // C:\\\\Users\\\\Cavicchio\\\\workspace\\\\InterDepAdjStructure\\\\newgrammar\\\\JCB_tree.g:176:5: cblk= cb (b= blocks )?\n {\n pushFollow(FOLLOW_cb_in_blocks167);\n cblk=cb();\n\n state._fsp--;\n\n\n\n if (displayProductions == true)\n {\n System.out.println(\"Production: blocks: cblk=cb\");\n }\n bBlock = problem.addConditionalToBlocks(cblk);\n\n\n // C:\\\\Users\\\\Cavicchio\\\\workspace\\\\InterDepAdjStructure\\\\newgrammar\\\\JCB_tree.g:185:2: (b= blocks )?\n int alt5=2;\n int LA5_0 = input.LA(1);\n\n if ( (LA5_0==OPEN_BRACKET||LA5_0==OPEN_CURLY_BRACE||(LA5_0 >= OPEN_FUNCTION_CALL && LA5_0 <= OPEN_LOOP)) ) {\n alt5=1;\n }\n switch (alt5) {\n case 1 :\n // C:\\\\Users\\\\Cavicchio\\\\workspace\\\\InterDepAdjStructure\\\\newgrammar\\\\JCB_tree.g:185:2: b= blocks\n {\n pushFollow(FOLLOW_blocks_in_blocks175);\n b=blocks();\n\n state._fsp--;\n\n\n }\n break;\n\n }\n\n\n\n if (displayProductions == true)\n {\n System.out.println(\"Production: blocks: cblk=cb (b=blocks)?\");\n }\n\n\n }\n break;\n case 3 :\n // C:\\\\Users\\\\Cavicchio\\\\workspace\\\\InterDepAdjStructure\\\\newgrammar\\\\JCB_tree.g:195:14: cfunctioncall= functioncall (b= blocks )?\n {\n pushFollow(FOLLOW_functioncall_in_blocks187);\n cfunctioncall=functioncall();\n\n state._fsp--;\n\n\n\n if (displayProductions == true)\n {\n System.out.println(\"Production: blocks: cfunctioncall=functioncall\");\n }\n bBlock = problem.addFunctionCallBlockToBlocks(cfunctioncall);\n\n\n // C:\\\\Users\\\\Cavicchio\\\\workspace\\\\InterDepAdjStructure\\\\newgrammar\\\\JCB_tree.g:204:2: (b= blocks )?\n int alt6=2;\n int LA6_0 = input.LA(1);\n\n if ( (LA6_0==OPEN_BRACKET||LA6_0==OPEN_CURLY_BRACE||(LA6_0 >= OPEN_FUNCTION_CALL && LA6_0 <= OPEN_LOOP)) ) {\n alt6=1;\n }\n switch (alt6) {\n case 1 :\n // C:\\\\Users\\\\Cavicchio\\\\workspace\\\\InterDepAdjStructure\\\\newgrammar\\\\JCB_tree.g:204:2: b= blocks\n {\n pushFollow(FOLLOW_blocks_in_blocks196);\n b=blocks();\n\n state._fsp--;\n\n\n }\n break;\n\n }\n\n\n\n if (displayProductions == true)\n {\n System.out.println(\"Production: blocks: cfunctioncall=functioncall (b=blocks)?\");\n }\n\n\n }\n break;\n case 4 :\n // C:\\\\Users\\\\Cavicchio\\\\workspace\\\\InterDepAdjStructure\\\\newgrammar\\\\JCB_tree.g:214:6: cloop= loop (b= blocks )?\n {\n pushFollow(FOLLOW_loop_in_blocks209);\n cloop=loop();\n\n state._fsp--;\n\n\n\n if (displayProductions == true)\n {\n System.out.println(\"Production: blocks: cloop=loop\");\n }\n bBlock = problem.addLoopToBlocks(cloop);\n\n\n // C:\\\\Users\\\\Cavicchio\\\\workspace\\\\InterDepAdjStructure\\\\newgrammar\\\\JCB_tree.g:223:2: (b= blocks )?\n int alt7=2;\n int LA7_0 = input.LA(1);\n\n if ( (LA7_0==OPEN_BRACKET||LA7_0==OPEN_CURLY_BRACE||(LA7_0 >= OPEN_FUNCTION_CALL && LA7_0 <= OPEN_LOOP)) ) {\n alt7=1;\n }\n switch (alt7) {\n case 1 :\n // C:\\\\Users\\\\Cavicchio\\\\workspace\\\\InterDepAdjStructure\\\\newgrammar\\\\JCB_tree.g:223:2: b= blocks\n {\n pushFollow(FOLLOW_blocks_in_blocks218);\n b=blocks();\n\n state._fsp--;\n\n\n }\n break;\n\n }\n\n\n\n if (displayProductions == true)\n {\n System.out.println(\"Production: blocks: cloop=loop (b=blocks)?\");\n }\n\n\n }\n break;\n\n }\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n\n finally {\n \t// do for sure before leaving\n }\n return bBlock;\n }", "public List<Block> blocks() {\n this.blocks = createBlocks();\n return this.blocks;\n }", "@Override\n public List<Block> blocks() {\n int columns = 15, width = 51, height = 30;\n Color darkGreen = new Color(29, 101, 51);\n List<Block> blocks = new ArrayList<>();\n for (int j = 0; j < columns; j++) {\n blocks.add(new Block(new arkanoid.geometry.Rectangle(new Point(20 + width * j, 110 + height),\n width, height), darkGreen));\n }\n return blocks;\n }", "public Map<Long, Block> getBlocks() {\n\t\treturn this.blocks;\n\t}", "List<Block> getBlocksByCongName(String congName);", "public ProductionBlock getSpecificProductionBlock(int id);", "public Block getBlock(String id) {\n\t\treturn this.blocks.get(Long.valueOf(id));\n\t}", "public Block[] getBlocks() {\n\t\treturn blocks;\n\t}", "public List<Building> getBoardBuildings() {\n return mPersonalBoardCards.getBoardBuildings();\n }", "BlockBuilder createBlockBuilder(BlockBuilderStatus blockBuilderStatus, int expectedEntries);", "public Array<BlockDrawable> getAllBlocksToDraw() {\r\n \tArray<BlockDrawable> blocksToDraw = new Array<BlockDrawable>();\r\n\t\tblocksToDraw.addAll(tablero);\r\n\t\tif(isGhostActivated()){\r\n\t\t\tblocksToDraw.addAll(getGhostBlocksToDraw());\r\n\t\t}\r\n\t\tif (hasFalling())\r\n\t\t\tblocksToDraw.addAll(falling.allOuterBlocks());\r\n\t\t\r\n\t\treturn blocksToDraw;\r\n }", "phaseI.Hdfs.BlockLocationsOrBuilder getBlockInfoOrBuilder();", "phaseI.Hdfs.BlockLocationsOrBuilder getNewBlockOrBuilder();", "List<MemoryBlockDB> getBlocks(Address start, Address end) {\n\t\tList<MemoryBlockDB> list = new ArrayList<>();\n\n\t\tList<MemoryBlockDB> tmpBlocks = blocks;\n\t\tint index = Collections.binarySearch(tmpBlocks, start, BLOCK_ADDRESS_COMPARATOR);\n\t\tif (index < 0) {\n\t\t\tindex = -index - 2;\n\t\t}\n\t\tif (index >= 0) {\n\t\t\tMemoryBlockDB block = tmpBlocks.get(index);\n\t\t\tif (block.contains(start)) {\n\t\t\t\tlist.add(block);\n\t\t\t}\n\t\t}\n\n\t\twhile (++index < tmpBlocks.size()) {\n\t\t\tMemoryBlockDB block = tmpBlocks.get(index);\n\t\t\tif (block.getStart().compareTo(end) > 0) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tlist.add(block);\n\t\t}\n\n\t\treturn list;\n\t}", "private void createGWBuildings()\n\t{\n\t\t//Generate block 0 (50x50)\n\t\t//(7,7)-(57,57)\n\t\tmakeBlocker0();\n\n\t\t//Generate block 1 (50x50)\n\t\t//(64,7)-(114,57)\n\t\tmakeSEH();\n\t\tmakeFullBright();\n\t\tmakeKennedy();\n\t\tmakeMunson();\n\n\t\t//Generate block 2 (80x50)\n\t\t//(121,7)-(201,57)\n\t\tmakeAcademicCenter();\n\t\tmakeRomePhilips();\n\t\tmakeDistrict();\n\t\tmakeMarvin();\n\t\tmakeLafayette();\n\n\t\t//Generate block 3 (65x50)\n\t\t//(208,7)-(273,57)\n\t\tmake2000Penn();\n\t\tmakeSMPA();\n\t\tmakeBlocker3();\n\n\t\t//Generate block 4 (63x50)\n\t\t//(280,7)-(343,57)\n\t\tmakeBlocker4();\n\n\t\t//Generate block 5 (50x60)\n\t\t//(7,64)-(57,124)\n\t\tmakeAmsterdam();\n\t\tmakeHealWell();\n\t\tmakeBlocker5();\n\n\t\t//Generate block 6 (50x60)\n\t\t//(64,64)-(114,124)\n\t\tmakeTompkins();\n\t\tmakeMadison();\n\t\tmakeDuquesAndFunger();\n\n\t\t//Generate block 7 (80x60)\n\t\t//(121,64)-(201,124)\n\t\tmakeGelman();\n\t\tmakeLisner();\n\t\tmakeStaughton();\n\t\tmakeMonroe();\n\n\t\t//Generate block 8 (65x60)\n\t\t//(208,64)-(273,124)\n\t\tmakeCorcoran();\n\t\tmakeLawSchool();\n\t\tmakeLisnerHall();\n\t\tmakeTextileMuseum();\n\n\t\t//Generate block 9 (63x60)\n\t\t//(280,64)-(343,124)\n\t\tmakeBlocker9();\n\n\t\t//Generate block 10 (50x50)\n\t\t//(7,131)-(57,181)\n\t\tmakeShenkman();\n\t\tmakeBlocker10();\n\n\t\t//Generate block 11 (50x50)\n\t\t//(64,131)-(114,181)\n\t\tmakeTownHouses();\n\t\tmakeSmithCenter();\n\n\t\t//Generate block 12 (80x50)\n\t\t//(121,131)-(201,181)\n\t\tmakeSouthHall();\n\t\tmakeGuthridge();\n\t\tmakeBlocker12();\n\n\t\t//Generate block 13 (65x50)\n\t\t//(208,131)-(273,181)\n\t\tmakeBlocker13();\n\t\tmakeFSK();\n\t\tmakePatomac();\n\n\t\t//Generate block 14 (63x50)\n\t\t//(280,131)-(343,181)\n\t\tmakeBlocker14();\n\n\t\t//Generate block 15 (50x57)\n\t\t//(7,188)-(57,245)\n\t\tmakeBlocker15();\n\n\t\t//Generate block 16 (50x57)\n\t\t//(64,188)-(114,245)\n\t\tmakeIHouse();\n\t\tmakeBlocker16();\n\n\t\t//Generate block 17 (80x57)\n\t\t//(121,188)-(201,245)\n\t\tmakeBlocker17();\n\t\tmakeDakota();\n\n\t\t//Generate block 18 (65x57)\n\t\t//(208,188)-(273,245)\n\t\tmakeBlocker18();\n\n\t\t//Generate block 19 (63x57)\n\t\t//(280,188)-(343,245)\n\t\tmakeBlocker19();\n\t\tmakeElliot();\n\t\tmakeThurston();\n\t}", "phaseI.Hdfs.BlockLocations getNewBlock();", "public BuildingBlock(int blockId, Color color) {\n Image bbGreenImage = new Image(getClass().getResourceAsStream(VisibleObjects.MAKE_LONGER_BONUS.getImage()));\n bbGreen = new ImagePattern(bbGreenImage);\n VisibleObjects.MAKE_LONGER_BONUS.setBlockImage(bbGreen);\n Image bbYellowImage = new Image(getClass().getResourceAsStream(VisibleObjects.MAKE_FASTER_BONUS.getImage()));\n bbYellow = new ImagePattern(bbYellowImage);\n VisibleObjects.MAKE_FASTER_BONUS.setBlockImage(bbYellow);\n Image bbRedImage = new Image(getClass().getResourceAsStream(VisibleObjects.SHOOT_BONUS.getImage()));\n bbRed = new ImagePattern(bbRedImage);\n VisibleObjects.SHOOT_BONUS.setBlockImage(bbRed);\n Image bbGreyImage = new Image(getClass().getResourceAsStream(VisibleObjects.DEATH.getImage()));\n bbGrey = new ImagePattern(bbGreyImage);\n VisibleObjects.DEATH.setBlockImage(bbGrey);\n Image playerOneImageImage = new Image(getClass().getResourceAsStream(VisibleObjects.PLAYER_ONE.getImage()));\n playerOneImage = new ImagePattern(playerOneImageImage);\n VisibleObjects.PLAYER_ONE.setBlockImage(playerOneImage);\n Image playerTwoImageImage = new Image(getClass().getResourceAsStream(VisibleObjects.PLAYER_TWO.getImage()));\n playerTwoImage = new ImagePattern(playerTwoImageImage);\n VisibleObjects.PLAYER_TWO.setBlockImage(playerTwoImage);\n Image playerThreeImageImage = new Image(getClass().getResourceAsStream(VisibleObjects.PLAYER_THREE.getImage()));\n playerThreeImage = new ImagePattern(playerThreeImageImage);\n VisibleObjects.PLAYER_THREE.setBlockImage(playerThreeImage);\n Image playerFourImageImage = new Image(getClass().getResourceAsStream(VisibleObjects.PLAYER_FOUR.getImage()));\n playerFourImage = new ImagePattern(playerFourImageImage);\n VisibleObjects.PLAYER_FOUR.setBlockImage(playerFourImage);\n Image playerOneImageImageRIP = new Image(getClass().getResourceAsStream(PlayerEnum.PLAYER_ONE.getImage()));\n playerOneImageRIP = new ImagePattern(playerOneImageImageRIP);\n PlayerEnum.PLAYER_ONE.setPlayerDeathImage(playerOneImageRIP);\n Image playerTwoImageImageRIP = new Image(getClass().getResourceAsStream(PlayerEnum.PLAYER_TWO.getImage()));\n playerTwoImageRIP = new ImagePattern(playerTwoImageImageRIP);\n PlayerEnum.PLAYER_TWO.setPlayerDeathImage(playerTwoImageRIP);\n Image playerThreeImageImageRIP = new Image(getClass().getResourceAsStream(PlayerEnum.PLAYER_THREE.getImage()));\n playerThreeImageRIP = new ImagePattern(playerThreeImageImageRIP);\n PlayerEnum.PLAYER_THREE.setPlayerDeathImage(playerThreeImageRIP);\n Image playerFourImageImageRIP = new Image(getClass().getResourceAsStream(PlayerEnum.PLAYER_FOUR.getImage()));\n playerFourImageRIP = new ImagePattern(playerFourImageImageRIP);\n PlayerEnum.PLAYER_FOUR.setPlayerDeathImage(playerFourImageRIP);\n Image deathImage = new Image(getClass().getResourceAsStream(\"rip.png\"));\n deathPattern = new ImagePattern(deathImage);\n Image deathPlayerImage = new Image(getClass().getResourceAsStream(VisibleObjects.DEATH_PLAYER.getImage()));\n deathPlayerPattern = new ImagePattern(deathPlayerImage);\n VisibleObjects.DEATH_PLAYER.setBlockImage(deathPlayerPattern);\n \n Image eplosionImage = new Image(getClass().getResourceAsStream(\"explosion.gif\"));\n explosionView = new ImagePattern(eplosionImage);\n \n explosionSound = new AudioClip(getClass().getResource(\"explosion.wav\").toExternalForm());\n \n explosionSound.play(0);\n \n this.blockId = blockId;\n this.revertColor = color;\n rectangle = new Rectangle();\n rectangle.setFill(color);\n occupant = new Death(VisibleObjects.DEATH);\n gridList.put(blockId, this);\n }", "Block getBlockByNumber(long number);", "alluxio.proto.journal.File.NewBlockEntryOrBuilder getNewBlockOrBuilder();", "public List<Building> getAllBuildingByCommunityid(int communityid) {\n\t\treturn buildingMapper.getAllBuildingByCommunityid(communityid);\n\t}", "private com.google.protobuf.SingleFieldBuilderV3<\n phaseI.Hdfs.BlockLocations, phaseI.Hdfs.BlockLocations.Builder, phaseI.Hdfs.BlockLocationsOrBuilder> \n getBlockInfoFieldBuilder() {\n if (blockInfoBuilder_ == null) {\n blockInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n phaseI.Hdfs.BlockLocations, phaseI.Hdfs.BlockLocations.Builder, phaseI.Hdfs.BlockLocationsOrBuilder>(\n getBlockInfo(),\n getParentForChildren(),\n isClean());\n blockInfo_ = null;\n }\n return blockInfoBuilder_;\n }", "phaseI.Hdfs.BlockLocationsOrBuilder getBlockLocationsOrBuilder(\n int index);", "public List<BuildingType> getAllBuildingType()\r\n\t{\n\t\tList<BuildingType> list = new ArrayList<BuildingType>();\r\n\t\t// This is the SP to be called\r\n\t\tString query = \"{ call readAllBuildingType}\";\t\r\n\t\t// Open a connection to DB\r\n\t\tif(conn == null)\r\n\t\t\tconn = JdbcSqlServerConnection.getConnection();\r\n\t\t\r\n\t\ttry\r\n\t\t{\r\n\t\t\t// Prepare the call for SP\r\n\t\t\tcs = conn.prepareCall(query);\r\n\t\t\t// make SP call\r\n\t\t\trs = cs.executeQuery();\r\n\t\t\t//loop the recordset\r\n\t\t\twhile(rs.next())\r\n\t\t\t{\r\n\t\t\t\tBuildingType buildType = new BuildingType();\r\n\t\t\t\tbuildType.setID(rs.getInt(1));\r\n\t\t\t\tbuildType.setDescription(rs.getNString(2));\r\n\t\t\t\tlist.add(buildType);\r\n\t\t\t}\r\n\t\t}catch(Exception ex){\r\n\t\t\tex.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t\t//close che db coonection\r\n\t\tif(conn!=null)\r\n\t\t\ttry {\r\n\t\t\t\tJdbcSqlServerConnection.closeConnection(conn);\r\n\t\t\t} catch (SQLException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\r\n\t\t//return the list of BuildingType\r\n\t\treturn list;\r\n\t\t\r\n\t}", "@Override\n public List<Building> allBuildings() {\n return dao.all(Building.class);\n }", "List<Block> getBlocks(String congName, String[] blockArray);", "void buildBlock(Tile t);", "public final JCBlock blocks2() throws RecognitionException {\n JCBlock bBlock = null;\n\n\n JCSectionBlock sblk2 =null;\n\n JCBlock b =null;\n\n JCConditionalBlock cblk2 =null;\n\n JCFunctionCallBlock cfunctioncall2 =null;\n\n JCLoopBlock cloop2 =null;\n\n\n try {\n // C:\\\\Users\\\\Cavicchio\\\\workspace\\\\InterDepAdjStructure\\\\newgrammar\\\\JCB_tree.g:520:34: (sblk2= sb2 (b= blocks2 )? |cblk2= cb2 (b= blocks2 )? |cfunctioncall2= functioncall2 (b= blocks2 )? |cloop2= loop2 (b= blocks2 )? )\n int alt15=4;\n switch ( input.LA(1) ) {\n case OPEN_BRACKET:\n {\n alt15=1;\n }\n break;\n case OPEN_CURLY_BRACE:\n {\n alt15=2;\n }\n break;\n case OPEN_FUNCTION_CALL:\n {\n alt15=3;\n }\n break;\n case OPEN_LOOP:\n {\n alt15=4;\n }\n break;\n default:\n NoViableAltException nvae =\n new NoViableAltException(\"\", 15, 0, input);\n\n throw nvae;\n\n }\n\n switch (alt15) {\n case 1 :\n // C:\\\\Users\\\\Cavicchio\\\\workspace\\\\InterDepAdjStructure\\\\newgrammar\\\\JCB_tree.g:522:6: sblk2= sb2 (b= blocks2 )?\n {\n pushFollow(FOLLOW_sb2_in_blocks2577);\n sblk2=sb2();\n\n state._fsp--;\n\n\n\n if (displayProductions == true)\n {\n System.out.println(\"Production: blocks2: sblk2=sb2\");\n }\n bBlock = problem.processConditionalSectionBlock(sblk2);\n\n\n // C:\\\\Users\\\\Cavicchio\\\\workspace\\\\InterDepAdjStructure\\\\newgrammar\\\\JCB_tree.g:531:2: (b= blocks2 )?\n int alt11=2;\n int LA11_0 = input.LA(1);\n\n if ( (LA11_0==OPEN_BRACKET||LA11_0==OPEN_CURLY_BRACE||(LA11_0 >= OPEN_FUNCTION_CALL && LA11_0 <= OPEN_LOOP)) ) {\n alt11=1;\n }\n switch (alt11) {\n case 1 :\n // C:\\\\Users\\\\Cavicchio\\\\workspace\\\\InterDepAdjStructure\\\\newgrammar\\\\JCB_tree.g:531:2: b= blocks2\n {\n pushFollow(FOLLOW_blocks2_in_blocks2587);\n b=blocks2();\n\n state._fsp--;\n\n\n }\n break;\n\n }\n\n\n\n if (displayProductions == true)\n {\n System.out.println(\"Production: blocks2: sblk2=sb2 (b=blocks2)?\");\n }\n\n\n }\n break;\n case 2 :\n // C:\\\\Users\\\\Cavicchio\\\\workspace\\\\InterDepAdjStructure\\\\newgrammar\\\\JCB_tree.g:541:6: cblk2= cb2 (b= blocks2 )?\n {\n pushFollow(FOLLOW_cb2_in_blocks2600);\n cblk2=cb2();\n\n state._fsp--;\n\n\n\n if (displayProductions == true)\n {\n System.out.println(\"Production: blocks2: cblk2=cb2\");\n }\n\n\n // C:\\\\Users\\\\Cavicchio\\\\workspace\\\\InterDepAdjStructure\\\\newgrammar\\\\JCB_tree.g:549:2: (b= blocks2 )?\n int alt12=2;\n int LA12_0 = input.LA(1);\n\n if ( (LA12_0==OPEN_BRACKET||LA12_0==OPEN_CURLY_BRACE||(LA12_0 >= OPEN_FUNCTION_CALL && LA12_0 <= OPEN_LOOP)) ) {\n alt12=1;\n }\n switch (alt12) {\n case 1 :\n // C:\\\\Users\\\\Cavicchio\\\\workspace\\\\InterDepAdjStructure\\\\newgrammar\\\\JCB_tree.g:549:2: b= blocks2\n {\n pushFollow(FOLLOW_blocks2_in_blocks2609);\n b=blocks2();\n\n state._fsp--;\n\n\n }\n break;\n\n }\n\n\n\n if (displayProductions == true)\n {\n System.out.println(\"Production: blocks2: cblk2=cb2 (b=blocks2)\");\n }\n\n\n }\n break;\n case 3 :\n // C:\\\\Users\\\\Cavicchio\\\\workspace\\\\InterDepAdjStructure\\\\newgrammar\\\\JCB_tree.g:559:15: cfunctioncall2= functioncall2 (b= blocks2 )?\n {\n pushFollow(FOLLOW_functioncall2_in_blocks2623);\n cfunctioncall2=functioncall2();\n\n state._fsp--;\n\n\n\n if (displayProductions == true)\n {\n System.out.println(\"Production: blocks2: cfunctioncall2=functioncall2\");\n }\n bBlock = problem.processFunctionCallBlock(cfunctioncall2);\n\n\n // C:\\\\Users\\\\Cavicchio\\\\workspace\\\\InterDepAdjStructure\\\\newgrammar\\\\JCB_tree.g:568:2: (b= blocks2 )?\n int alt13=2;\n int LA13_0 = input.LA(1);\n\n if ( (LA13_0==OPEN_BRACKET||LA13_0==OPEN_CURLY_BRACE||(LA13_0 >= OPEN_FUNCTION_CALL && LA13_0 <= OPEN_LOOP)) ) {\n alt13=1;\n }\n switch (alt13) {\n case 1 :\n // C:\\\\Users\\\\Cavicchio\\\\workspace\\\\InterDepAdjStructure\\\\newgrammar\\\\JCB_tree.g:568:2: b= blocks2\n {\n pushFollow(FOLLOW_blocks2_in_blocks2632);\n b=blocks2();\n\n state._fsp--;\n\n\n }\n break;\n\n }\n\n\n\n if (displayProductions == true)\n {\n System.out.println(\"Production: blocks2: cfunctioncall2=functioncall2 (b=blocks2)?\");\n }\n\n\n }\n break;\n case 4 :\n // C:\\\\Users\\\\Cavicchio\\\\workspace\\\\InterDepAdjStructure\\\\newgrammar\\\\JCB_tree.g:578:7: cloop2= loop2 (b= blocks2 )?\n {\n pushFollow(FOLLOW_loop2_in_blocks2645);\n cloop2=loop2();\n\n state._fsp--;\n\n\n\n if (displayProductions == true)\n {\n System.out.println(\"Production: blocks2: cloop2=loop2\");\n }\n bBlock = problem.processLoopBlock(cloop2);\n\n\n // C:\\\\Users\\\\Cavicchio\\\\workspace\\\\InterDepAdjStructure\\\\newgrammar\\\\JCB_tree.g:587:2: (b= blocks2 )?\n int alt14=2;\n int LA14_0 = input.LA(1);\n\n if ( (LA14_0==OPEN_BRACKET||LA14_0==OPEN_CURLY_BRACE||(LA14_0 >= OPEN_FUNCTION_CALL && LA14_0 <= OPEN_LOOP)) ) {\n alt14=1;\n }\n switch (alt14) {\n case 1 :\n // C:\\\\Users\\\\Cavicchio\\\\workspace\\\\InterDepAdjStructure\\\\newgrammar\\\\JCB_tree.g:587:2: b= blocks2\n {\n pushFollow(FOLLOW_blocks2_in_blocks2654);\n b=blocks2();\n\n state._fsp--;\n\n\n }\n break;\n\n }\n\n\n\n if (displayProductions == true)\n {\n System.out.println(\"Production: blocks2: cloop2=loop2 (b=blocks2)\");\n }\n\n\n }\n break;\n\n }\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n\n finally {\n \t// do for sure before leaving\n }\n return bBlock;\n }", "public Iterator<Map.Entry<Integer, Block>> listBlocks () {\n return this.blockMap.entrySet().iterator();\n }", "@Override\r\n public List<Block> blocks() {\r\n List<Block> blockList = new ArrayList<Block>();\r\n java.awt.Color[] colors = new Color[5];\r\n colors[0] = Color.decode(\"#c1b8b2\");\r\n colors[1] = Color.decode(\"#ef1607\");\r\n colors[2] = Color.decode(\"#ffff1e\");\r\n colors[3] = Color.decode(\"#211ed8\");\r\n colors[4] = Color.decode(\"#fffff6\");\r\n int y = 150;\r\n int[] hitPoints = {2, 1, 1, 1, 1};\r\n for (int i = 0; i < colors.length; i++) {\r\n for (int j = i + 5; j < 15; j++) {\r\n blockList.add(new Block(j * 50 + 25, y, 50, 20, colors[i], hitPoints[i]));\r\n }\r\n y += 20;\r\n }\r\n return blockList;\r\n }", "Set<Branch> getBranches(Collection<Project> projects, BranchType brType, boolean onlyCommon);", "public ArrayList<Block> getBlocks() {\r\n return blocks;\r\n }", "public ArrayList<Block> getBlocks() {\n ArrayList<Block> blocks = new ArrayList<>();\n\n for (Vector2D pos : template) {\n blocks.add(new Block(pos.addVectorGetNewVector(center), this.color));\n }\n return blocks;\n }", "public phaseI.Hdfs.BlockLocationsOrBuilder getBlockInfoOrBuilder() {\n return blockInfo_ == null ? phaseI.Hdfs.BlockLocations.getDefaultInstance() : blockInfo_;\n }", "private void populateBranches() {\n\t\tStationsDTO[] station = null;\n\t\ttry {\n\t\t\tstation = handler.getAllBranches();\n\t\t\tif (null != station) {\n\t\t\t\tint len = station.length;\n\t\t\t\tfor (int i = 0; i < len; i++) {\n\t\t\t\t\tcoBranch.add(station[i].getName() + \" - \"\n\t\t\t\t\t\t\t+ station[i].getId());\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (Exception exception) {\n\t\t\texception.printStackTrace();\n\t\t}\n\t}", "Block getBlock(String congName, String blockName, String blockNumber);", "private com.google.protobuf.SingleFieldBuilderV3<\n phaseI.Hdfs.BlockLocations, phaseI.Hdfs.BlockLocations.Builder, phaseI.Hdfs.BlockLocationsOrBuilder> \n getNewBlockFieldBuilder() {\n if (newBlockBuilder_ == null) {\n newBlockBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n phaseI.Hdfs.BlockLocations, phaseI.Hdfs.BlockLocations.Builder, phaseI.Hdfs.BlockLocationsOrBuilder>(\n getNewBlock(),\n getParentForChildren(),\n isClean());\n newBlock_ = null;\n }\n return newBlockBuilder_;\n }", "Collection<BuildFilterResource<?>> getBuildFilters(ID branchId);", "@GetMapping(\"/getallblock\")\n\tpublic List<StudentRegistration> getAllBlockStudent() {\n\t\treturn srepo.findByStatus(\"blocked\");\n\t}", "public List<ByteString> getBlocksBuffers() {\n final ByteString blocksBuf = getBlocksBuffer();\n final List<ByteString> buffers;\n final int size = blocksBuf.size();\n if (size <= CHUNK_SIZE) {\n buffers = Collections.singletonList(blocksBuf);\n } else {\n buffers = new ArrayList<ByteString>();\n for (int pos=0; pos < size; pos += CHUNK_SIZE) {\n // this doesn't actually copy the data\n buffers.add(blocksBuf.substring(pos, Math.min(pos+CHUNK_SIZE, size)));\n }\n }\n return buffers;\n }", "public BranchGroup blocksScene(){\n\t\t\n\t\tIterator iterator = blocks.iterator();\n\t\t\n\t\twhile(iterator.hasNext()){\n\t\t\tbg.addChild(((Block) iterator.next()).boxGridScene());\n\t\t}\n\t\treturn bg;\n\t}", "public phaseI.Hdfs.BlockLocations getBlockLocations(int index) {\n if (blockLocationsBuilder_ == null) {\n return blockLocations_.get(index);\n } else {\n return blockLocationsBuilder_.getMessage(index);\n }\n }", "public List<Branch> getBranchs()\r\n\t{\t\r\n\t\tif (branchs.size() == 0)\r\n\t\t{\r\n\t\t\t//Lacos abertos carga x terra (redes radiais)\r\n\t\t\tbranchs.addAll(findBranchs());\t\t\r\n\t\t\r\n\t\t}\r\n\t\treturn branchs; \r\n\t}", "public final JCBasicBlock bb() throws RecognitionException {\n JCBasicBlock basicBlock = null;\n\n\n Token ID7=null;\n Token INT8=null;\n\n try {\n // C:\\\\Users\\\\Cavicchio\\\\workspace\\\\InterDepAdjStructure\\\\newgrammar\\\\JCB_tree.g:504:38: ( OPEN_PARENTHESIS ID COMMA INT CLOSE_PARENTHESIS )\n // C:\\\\Users\\\\Cavicchio\\\\workspace\\\\InterDepAdjStructure\\\\newgrammar\\\\JCB_tree.g:506:1: OPEN_PARENTHESIS ID COMMA INT CLOSE_PARENTHESIS\n {\n match(input,OPEN_PARENTHESIS,FOLLOW_OPEN_PARENTHESIS_in_bb535); \n\n ID7=(Token)match(input,ID,FOLLOW_ID_in_bb537); \n\n match(input,COMMA,FOLLOW_COMMA_in_bb539); \n\n INT8=(Token)match(input,INT,FOLLOW_INT_in_bb541); \n\n match(input,CLOSE_PARENTHESIS,FOLLOW_CLOSE_PARENTHESIS_in_bb543); \n\n\n if (displayProductions == true)\n {\n System.out.println(\"Production: bb : (ID,INT) = (\" + (ID7!=null?ID7.getText():null) + \",\" + (INT8!=null?INT8.getText():null) + \")\");\n }\n int bbWCET = Integer.parseInt((INT8!=null?INT8.getText():null));\n basicBlock = problem.createBasicBlock((ID7!=null?ID7.getText():null), bbWCET);\t\t\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n\n finally {\n \t// do for sure before leaving\n }\n return basicBlock;\n }", "public phaseI.Hdfs.BlockLocationsOrBuilder getBlockInfoOrBuilder() {\n if (blockInfoBuilder_ != null) {\n return blockInfoBuilder_.getMessageOrBuilder();\n } else {\n return blockInfo_ == null ?\n phaseI.Hdfs.BlockLocations.getDefaultInstance() : blockInfo_;\n }\n }", "phaseI.Hdfs.BlockLocations getBlockLocations(int index);", "@RequestMapping(value = \"getBlocks\", method = RequestMethod.GET)\r\n\t@ResponseBody\r\n\tpublic BlockListResponseDTO getBlocks() {\r\n\t\tBlockListResponseDTO response = new BlockListResponseDTO();\r\n\t\ttry {\r\n\t\t\tresponse = blockService.getBlocks();\r\n\t\t} catch (ServiceException e) {\r\n\r\n\t\t\tList<Parameter> parameters = e.getParamList();\r\n\t\t\tErrorDTO error = new ErrorDTO();\r\n\t\t\terror.setErrCode(e.getError().getErrCode());\r\n\t\t\terror.setParams(parameters);\r\n\t\t\terror.setDisplayErrMsg(e.isDisplayErrMsg());\r\n\t\t\tresponse.setError(error);\r\n\t\t\tresponse.setSuccess(false);\r\n\r\n\t\t}\r\n\t\treturn response;\r\n\t}", "public static boolean block(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"block\")) return false;\n boolean r;\n Marker m = enter_section_(b, l, _COLLAPSE_, BLOCK, \"<block>\");\n r = config_block(b, l + 1);\n if (!r) r = model_block(b, l + 1);\n if (!r) r = type_alias(b, l + 1);\n if (!r) r = enum_block(b, l + 1);\n exit_section_(b, l, m, r, false, null);\n return r;\n }", "public phaseI.Hdfs.BlockLocationsOrBuilder getNewBlockOrBuilder() {\n if (newBlockBuilder_ != null) {\n return newBlockBuilder_.getMessageOrBuilder();\n } else {\n return newBlock_ == null ?\n phaseI.Hdfs.BlockLocations.getDefaultInstance() : newBlock_;\n }\n }", "public phaseI.Hdfs.BlockLocationsOrBuilder getNewBlockOrBuilder() {\n return newBlock_ == null ? phaseI.Hdfs.BlockLocations.getDefaultInstance() : newBlock_;\n }", "public java.util.List<edu.usfca.cs.dfs.StorageMessages.StoreChunkLocation.Builder> \n getChunksLocationBuilderList() {\n return getChunksLocationFieldBuilder().getBuilderList();\n }", "public List<Build> getBuildsForProject(int projectId);", "private List<Block> createBlocks() {\n ArrayList<String> listOfBlocksAndSpacers = new ArrayList<String>();\n boolean buffer = false;\n for (int i = 0; i < level.size(); i++) {\n // if it starts with END_BLOCKS\n if (level.get(i).startsWith(\"END_BLOCKS\")) {\n buffer = false;\n } // if the buffer is true\n if (buffer) {\n listOfBlocksAndSpacers.add(level.get(i));\n } // if it starts with START_BLOCKS\n if (level.get(i).startsWith(\"START_BLOCKS\")) {\n buffer = true;\n } else if (level.get(i).startsWith(\"END_BLOCKS\")) {\n buffer = false;\n }\n }\n // find the x position where it all starts\n int startX = Integer.parseInt(this.map.get(\"blocks_start_x\"));\n int xForSave = startX;\n // find the y position where it all starts\n int startY = Integer.parseInt(this.map.get(\"blocks_start_y\"));\n List<Block> listOfBlocks = new ArrayList<>();\n String[] s;\n setBlocks();\n // go over the list of blocks of spacers\n for (int i = 0; i < listOfBlocksAndSpacers.size(); i++) {\n // split it with empty lines\n s = listOfBlocksAndSpacers.get(i).split(\"\");\n for (int j = 0; j < s.length; j++) {\n if (s[j].equals(\"\")) {\n continue;\n } // if it is a block symbol\n if (this.factory.isBlockSymbol(s[j])) {\n // add to listOfBlocks a block\n listOfBlocks.add(this.factory.getBlock(s[j], startX, startY));\n // continue to the next block with the next location\n startX += this.factory.getBlock(s[j], startX, startY).getCollisionRectangle().getWidth();\n } else if (this.factory.isSpaceSymbol(s[j])) { // move following\n // spacers\n startX += this.factory.getSpaceWidth(s[j]);\n }\n }\n startX = xForSave;\n startY += Integer.parseInt(this.map.get(\"row_height\"));\n }\n // put the blocks in a new blocks list and return it\n List<Block> listOfBlocksCopy = new ArrayList<>();\n for (int z = 0; z < listOfBlocks.size(); z++) {\n listOfBlocksCopy.add(listOfBlocks.get(z).copyBlock());\n }\n return listOfBlocksCopy;\n }", "alluxio.proto.journal.Block.BlockInfoEntryOrBuilder getBlockInfoOrBuilder();", "public alluxio.proto.journal.File.NewBlockEntryOrBuilder getNewBlockOrBuilder() {\n if (newBlockBuilder_ != null) {\n return newBlockBuilder_.getMessageOrBuilder();\n } else {\n return newBlock_;\n }\n }", "public List<BlockID> getLeafList()\n {\n return leafBlocks;\n }", "@Override\n public List<Block> blocks() {\n List<Block> blocksList = new ArrayList<Block>();\n\n //Setting the blocks\n for (int j = 0; j <= 14; j++) {\n if (j == 0 || j == 1) {\n blocksList.add(new Block(new Rectangle(\n new Point(730 - j * 50.6666667, 215), 51, 25), java.awt.Color.CYAN));\n } else if (j == 2 || j == 3) {\n blocksList.add(new Block(new Rectangle(\n new Point(730 - j * 50.6666667, 215), 51, 25), java.awt.Color.PINK));\n } else if (j == 4 || j == 5) {\n blocksList.add(new Block(new Rectangle(\n new Point(730 - j * 50.6666667, 215), 51, 25), java.awt.Color.BLUE));\n } else if (j == 6 || j == 7 || j == 8) {\n blocksList.add(new Block(new Rectangle(\n new Point(730 - j * 50.6666667, 215), 51, 25), java.awt.Color.GREEN));\n } else if (j == 9 || j == 10) {\n blocksList.add(new Block(new Rectangle(\n new Point(730 - j * 50.6666667, 215), 51, 25), java.awt.Color.YELLOW));\n } else if (j == 11 || j == 12) {\n blocksList.add(new Block(new Rectangle(\n new Point(730 - j * 50.6666667, 215), 51, 25), java.awt.Color.ORANGE));\n } else if (j == 13 || j == 14) {\n blocksList.add(new Block(new Rectangle(\n new Point(730 - j * 50.6666667, 215), 51, 25), java.awt.Color.RED));\n }\n }\n\n return blocksList;\n }", "private com.google.protobuf.SingleFieldBuilder<\n alluxio.proto.journal.Block.BlockInfoEntry, alluxio.proto.journal.Block.BlockInfoEntry.Builder, alluxio.proto.journal.Block.BlockInfoEntryOrBuilder> \n getBlockInfoFieldBuilder() {\n if (blockInfoBuilder_ == null) {\n blockInfoBuilder_ = new com.google.protobuf.SingleFieldBuilder<\n alluxio.proto.journal.Block.BlockInfoEntry, alluxio.proto.journal.Block.BlockInfoEntry.Builder, alluxio.proto.journal.Block.BlockInfoEntryOrBuilder>(\n blockInfo_,\n getParentForChildren(),\n isClean());\n blockInfo_ = null;\n }\n return blockInfoBuilder_;\n }", "alluxio.proto.journal.File.NewBlockEntry getNewBlock();", "List<BranchDto> getByRegion(int regionId) throws ServiceException;", "private com.google.protobuf.SingleFieldBuilder<\n alluxio.proto.journal.File.NewBlockEntry, alluxio.proto.journal.File.NewBlockEntry.Builder, alluxio.proto.journal.File.NewBlockEntryOrBuilder> \n getNewBlockFieldBuilder() {\n if (newBlockBuilder_ == null) {\n newBlockBuilder_ = new com.google.protobuf.SingleFieldBuilder<\n alluxio.proto.journal.File.NewBlockEntry, alluxio.proto.journal.File.NewBlockEntry.Builder, alluxio.proto.journal.File.NewBlockEntryOrBuilder>(\n newBlock_,\n getParentForChildren(),\n isClean());\n newBlock_ = null;\n }\n return newBlockBuilder_;\n }", "Collection<BuildFilterForm> getBuildFilterForms(ID branchId);", "public ArrayList<Block> getWalls() {\n\t\tArrayList<Block> b = new ArrayList<Block>();\n\t\tfor (int i = 0; i <maze.size(); i++) {\n\t\t\tif (maze.get(i).t == 'w') {\n\t\t\t\tb.add(maze.get(i));\n\t\t\t}\n\t\t}\n\t\treturn b;\n\t}", "public phaseI.Hdfs.BlockLocations.Builder addBlockLocationsBuilder() {\n return getBlockLocationsFieldBuilder().addBuilder(\n phaseI.Hdfs.BlockLocations.getDefaultInstance());\n }", "public phaseI.Hdfs.BlockLocationsOrBuilder getBlockLocationsOrBuilder(\n int index) {\n return blockLocations_.get(index);\n }", "public void testFetchBlocks() throws IOException {\n\t\tLocalRawDataBlockList list = new LocalRawDataBlockList();\r\n\t\tbyte[] data = new byte[512];\r\n\t\tint offset = 0;\r\n\r\n\t\tLittleEndian.putInt(data, offset, -3); // for the BAT block itself\r\n\t\toffset += LittleEndianConsts.INT_SIZE;\r\n\r\n\t\t// document 1: is at end of file already; start block = -2\r\n\t\t// document 2: has only one block; start block = 1\r\n\t\tLittleEndian.putInt(data, offset, -2);\r\n\t\toffset += LittleEndianConsts.INT_SIZE;\r\n\r\n\t\t// document 3: has a loop in it; start block = 2\r\n\t\tLittleEndian.putInt(data, offset, 2);\r\n\t\toffset += LittleEndianConsts.INT_SIZE;\r\n\r\n\t\t// document 4: peeks into document 2's data; start block = 3\r\n\t\tLittleEndian.putInt(data, offset, 4);\r\n\t\toffset += LittleEndianConsts.INT_SIZE;\r\n\t\tLittleEndian.putInt(data, offset, 1);\r\n\t\toffset += LittleEndianConsts.INT_SIZE;\r\n\r\n\t\t// document 5: includes an unused block; start block = 5\r\n\t\tLittleEndian.putInt(data, offset, 6);\r\n\t\toffset += LittleEndianConsts.INT_SIZE;\r\n\t\tLittleEndian.putInt(data, offset, -1);\r\n\t\toffset += LittleEndianConsts.INT_SIZE;\r\n\r\n\t\t// document 6: includes a BAT block; start block = 7\r\n\t\tLittleEndian.putInt(data, offset, 8);\r\n\t\toffset += LittleEndianConsts.INT_SIZE;\r\n\t\tLittleEndian.putInt(data, offset, 0);\r\n\t\toffset += LittleEndianConsts.INT_SIZE;\r\n\r\n\t\t// document 7: includes an XBAT block; start block = 9\r\n\t\tLittleEndian.putInt(data, offset, 10);\r\n\t\toffset += LittleEndianConsts.INT_SIZE;\r\n\t\tLittleEndian.putInt(data, offset, -4);\r\n\t\toffset += LittleEndianConsts.INT_SIZE;\r\n\r\n\t\t// document 8: goes off into space; start block = 11;\r\n\t\tLittleEndian.putInt(data, offset, 1000);\r\n\t\toffset += LittleEndianConsts.INT_SIZE;\r\n\r\n\t\t// document 9: no screw ups; start block = 12;\r\n\t\tint index = 13;\r\n\r\n\t\tfor (; offset < 508; offset += LittleEndianConsts.INT_SIZE) {\r\n\t\t\tLittleEndian.putInt(data, offset, index++);\r\n\t\t}\r\n\t\tLittleEndian.putInt(data, offset, -2);\r\n\t\tlist.add(new RawDataBlock(new ByteArrayInputStream(data)));\r\n\t\tlist.fill(1);\r\n\t\tint[] blocks = { 0 };\r\n\t\tBlockAllocationTableReader table = new BlockAllocationTableReader(\r\n\t\t POIFSConstants.SMALLER_BIG_BLOCK_SIZE_DETAILS, 1, blocks, 0, -2, list);\r\n\t\tint[] start_blocks = { -2, 1, 2, 3, 5, 7, 9, 11, 12 };\r\n\t\tint[] expected_length = { 0, 1, -1, -1, -1, -1, -1, -1, 116 };\r\n\r\n\t\tfor (int j = 0; j < start_blocks.length; j++) {\r\n\t\t\ttry {\r\n\t\t\t\tListManagedBlock[] dataBlocks = table.fetchBlocks(start_blocks[j], -1, list);\r\n\r\n\t\t\t\tif (expected_length[j] == -1) {\r\n\t\t\t\t\tfail(\"document \" + j + \" should have failed, but found a length of \"\r\n\t\t\t\t\t\t\t+ dataBlocks.length);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tassertEquals(expected_length[j], dataBlocks.length);\r\n\t\t\t\t}\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\tif (expected_length[j] == -1) {\r\n\r\n\t\t\t\t\t// no problem, we expected a failure here\r\n\t\t\t\t} else {\r\n\t\t\t\t\tthrow e;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public List<BbanStructureDTO> getBbanStructures() {\n return bbanStructures;\n }", "public phaseI.Hdfs.BlockLocations getBlockLocations(int index) {\n return blockLocations_.get(index);\n }", "public java.util.List<entities.Torrent.ChunkInfo.Builder>\n getChunksBuilderList() {\n return getChunksFieldBuilder().getBuilderList();\n }", "java.util.List<phaseI.Hdfs.BlockLocations> \n getBlockLocationsList();", "public alluxio.proto.journal.File.NewBlockEntryOrBuilder getNewBlockOrBuilder() {\n return newBlock_;\n }", "public List<Branch> getBranchListForBank(String name);", "private InheritableBuildingBlock() {\r\n super(IInheritableBuildingBlock.TYPE_ID);\r\n }", "@GET\n @Produces(\"application/json\")\n @Path(\"/building/id/{id}\")\n public static List<CRoom> roomsByBuilding(@PathParam(\"id\") final int pId) {\n return (List<CRoom>) sCrudRoom.findWithNamedQuery(\n CRoom.FIND_ROOMS_BY_BUILDING, QueryParameter.with(\"Pid\", pId).parameters());\n }", "List<Building> findBuildingCoordinatesByType(String type);" ]
[ "0.7787001", "0.74646026", "0.7195832", "0.66385555", "0.6068628", "0.60474825", "0.60128266", "0.588616", "0.5852039", "0.57307047", "0.5568776", "0.5523588", "0.551258", "0.5492811", "0.5464939", "0.5444759", "0.5407897", "0.53811395", "0.53414226", "0.5311116", "0.5305521", "0.52977276", "0.52555466", "0.52399534", "0.5225675", "0.52187693", "0.5192206", "0.51905227", "0.5137675", "0.51364046", "0.5127784", "0.51105326", "0.5088496", "0.50880855", "0.50837576", "0.50728726", "0.50585526", "0.50560164", "0.5049667", "0.50286776", "0.502678", "0.49997455", "0.49956208", "0.4992285", "0.4985218", "0.4984094", "0.49700126", "0.49554425", "0.49478632", "0.4941777", "0.49411207", "0.49385342", "0.49264866", "0.4924728", "0.49210593", "0.49175435", "0.49047783", "0.4897337", "0.48910728", "0.48860407", "0.48806185", "0.48778355", "0.48704532", "0.4870029", "0.48678842", "0.48607793", "0.4855396", "0.484635", "0.4829256", "0.48259315", "0.48241267", "0.48234636", "0.48186278", "0.4818405", "0.48172015", "0.4815457", "0.4813247", "0.4810134", "0.4794407", "0.47918278", "0.4789397", "0.47797808", "0.47717503", "0.4762337", "0.47616217", "0.47495997", "0.47391358", "0.473481", "0.4734478", "0.47306514", "0.472996", "0.47273505", "0.47263035", "0.47205216", "0.47199604", "0.4708186", "0.47045916", "0.47036207", "0.47027323", "0.47022036" ]
0.7514792
1
Retrieves building block by building block type and code.
BuildingBlock findBuildingBlockByTypeAndCode(BuildingBlockConstant buildingBlockType, String code) throws BusinessException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Collection<BuildingBlock> findBuildingBlocksByType(BuildingBlockConstant buildingBlockType) throws BusinessException;", "BuildingBlock findBuildingBlockById(Long id) throws BusinessException;", "public ProductionBlock getSpecificProductionBlock(int id);", "Block getBlock(String congName, String blockName, String blockNumber);", "Collection<BuildingBlock> findBuildingBlocksbyBranchIdAndBuildingBlockType(Long branchId, BuildingBlockConstant buildingBlockType) throws BusinessException;", "Block getBlockByNumber(long number);", "Collection<BuildingBlock> findAllBuildingBlocks() throws BusinessException;", "@Deprecated public Block getBlock(){\n return this.block!=null?this.block.build():null;\n }", "public phaseI.Hdfs.BlockLocations.Builder getBlockInfoBuilder() {\n bitField0_ |= 0x00000001;\n onChanged();\n return getBlockInfoFieldBuilder().getBuilder();\n }", "public phaseI.Hdfs.BlockLocations.Builder getNewBlockBuilder() {\n bitField0_ |= 0x00000002;\n onChanged();\n return getNewBlockFieldBuilder().getBuilder();\n }", "public Byte getBuildingType() {\n return buildingType;\n }", "Collection<BuildingBlock> findBuildingBlocksbyBranchId(Long branchId) throws BusinessException;", "public String getBuildingCode() {\n return buildingCode;\n }", "private com.google.protobuf.SingleFieldBuilderV3<\n phaseI.Hdfs.BlockLocations, phaseI.Hdfs.BlockLocations.Builder, phaseI.Hdfs.BlockLocationsOrBuilder> \n getBlockInfoFieldBuilder() {\n if (blockInfoBuilder_ == null) {\n blockInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n phaseI.Hdfs.BlockLocations, phaseI.Hdfs.BlockLocations.Builder, phaseI.Hdfs.BlockLocationsOrBuilder>(\n getBlockInfo(),\n getParentForChildren(),\n isClean());\n blockInfo_ = null;\n }\n return blockInfoBuilder_;\n }", "public alluxio.proto.journal.Block.BlockInfoEntry.Builder getBlockInfoBuilder() {\n bitField0_ |= 0x00000010;\n onChanged();\n return getBlockInfoFieldBuilder().getBuilder();\n }", "@Lookup\n HealthBlock findHealthBlockByParentCode(@LookupField(name = \"stateCode\") Long stateCode, @LookupField(name = \"districtCode\") Long districtCode,\n @LookupField(name = \"talukaCode\") Long talukaCode, @LookupField(name = \"healthBlockCode\") Long healthBlockCode);", "public Block getBlock(String id) {\n\t\treturn this.blocks.get(Long.valueOf(id));\n\t}", "public Block getBlock(int index){\n\t\treturn ds[index];\n\t}", "public alluxio.proto.journal.File.NewBlockEntry.Builder getNewBlockBuilder() {\n bitField0_ |= 0x00200000;\n onChanged();\n return getNewBlockFieldBuilder().getBuilder();\n }", "Block getBlockByHash(byte[] hash);", "Optional<BankBranch> getByCode(String code) throws ObjectNotFoundException;", "public Block getBlockByID(Integer blockID){\n for (Block block : this.blocks) {\n if(block.getID().equals(blockID))\n {\n return block;\n }\n }\n return null;\n }", "Optional<CacheBlock> getCacheBlock(int index);", "ByteBlockInfo getBlockInfo(BigInteger index, int fieldOffset) {\n\t\tSortedMap<BigInteger, BlockInfo> tailMap = blockInfoMap.tailMap(index);\n\t\tif (tailMap.isEmpty()) {\n\t\t\treturn null;\n\t\t}\n\t\tBlockInfo blockInfo = tailMap.get(tailMap.firstKey());\n\t\tBigInteger byteIndex = index.multiply(bytesInLine).add(BigInteger.valueOf(fieldOffset));\n\t\tif ((byteIndex.compareTo(blockInfo.blockStart) >= 0) &&\n\t\t\t(byteIndex.compareTo(blockInfo.blockEnd) < 0)) {\n\t\t\treturn new ByteBlockInfo(blockInfo.block, byteIndex.subtract(blockInfo.blockStart));\n\t\t}\n\t\treturn null;\n\t}", "public BlockType getType()\n {\n return blockType;\n }", "private com.google.protobuf.SingleFieldBuilder<\n alluxio.proto.journal.Block.BlockInfoEntry, alluxio.proto.journal.Block.BlockInfoEntry.Builder, alluxio.proto.journal.Block.BlockInfoEntryOrBuilder> \n getBlockInfoFieldBuilder() {\n if (blockInfoBuilder_ == null) {\n blockInfoBuilder_ = new com.google.protobuf.SingleFieldBuilder<\n alluxio.proto.journal.Block.BlockInfoEntry, alluxio.proto.journal.Block.BlockInfoEntry.Builder, alluxio.proto.journal.Block.BlockInfoEntryOrBuilder>(\n blockInfo_,\n getParentForChildren(),\n isClean());\n blockInfo_ = null;\n }\n return blockInfoBuilder_;\n }", "private Block getBlockFromRecord(GameLogsRecord record) {\n JsonObject json = JsonParser.parseString(record.getMessage()).getAsJsonObject();\n // If Block logs are incomplete, the missing values are the default 0\n // This should only occur for games that were played before\n // TODO: date of setting up infrastructure commit 96b2fde on the server\n int x = 0, y = 0, z = 0;\n if (json.has(\"x\")) {\n x = json.get(\"x\").getAsInt();\n } else {\n logger.error(\"Missing x value for block at {}: {}\", json, record.getTimestamp());\n }\n if (json.has(\"y\")) {\n y = json.get(\"y\").getAsInt();\n } else {\n logger.error(\"Missing y value for block at {}: {}\", json, record.getTimestamp());\n }\n if (json.has(\"z\")) {\n z = json.get(\"z\").getAsInt();\n } else {\n logger.error(\"Missing z value for block at {}: {}\", json, record.getTimestamp());\n }\n return new Block(x, y, z);\n }", "public Block getBlock()\n {\n return block;\n }", "public Block getBlockBelow() {\r\n\t\tif(onGround) {\r\n\t\t\tVector4f hitbox = getHitBox(worldPos);\r\n\t\t\tfloat x = hitbox.x + (hitbox.z - hitbox.x) / 2f;\r\n\t\t\tfloat y = hitbox.y - 0.1f;\r\n\t\t\tBlock b = BlockManager.getBlock(new Vector2f(x, y));\r\n\t\t\treturn b;\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "public ItemDefinition getBlock(String name) {\n\t\tfor (ItemDefinition def : itemsArray)\n\t\t{\n\t\t\tif (def != null)\n\t\t\t\tif (def.getName().equalsIgnoreCase(name))\n\t\t\t\t\treturn def;\n\t\t}\n\t\treturn null;\n\t}", "public alluxio.proto.journal.File.NewBlockEntry getNewBlock() {\n if (newBlockBuilder_ == null) {\n return newBlock_;\n } else {\n return newBlockBuilder_.getMessage();\n }\n }", "private com.google.protobuf.SingleFieldBuilderV3<\n phaseI.Hdfs.BlockLocations, phaseI.Hdfs.BlockLocations.Builder, phaseI.Hdfs.BlockLocationsOrBuilder> \n getNewBlockFieldBuilder() {\n if (newBlockBuilder_ == null) {\n newBlockBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n phaseI.Hdfs.BlockLocations, phaseI.Hdfs.BlockLocations.Builder, phaseI.Hdfs.BlockLocationsOrBuilder>(\n getNewBlock(),\n getParentForChildren(),\n isClean());\n newBlock_ = null;\n }\n return newBlockBuilder_;\n }", "protected Block getBlock() {\r\n return this.block;\r\n }", "BranchingBlock createBranchingBlock();", "alluxio.proto.journal.Block.BlockInfoEntry getBlockInfo();", "public Block getBlock() {\n return (Block)getChild(0);\n }", "public MemoryBlock getBlock(int index) {\n\t\tif (( index < 1 ) || ( index > size - 1 ))\n\t\t\tthrow new IllegalArgumentException();\n\t\t return getNode(index).block;\n\t\t \n\t}", "public Block getBlock(int i) {\n\t\treturn Block.getBlock(id(i));\n\t}", "public Block getBlockAt(Location location) {\n\t\treturn getBlockAt(location.getX(), location.getY(), location.getZ());\n\t}", "public alluxio.proto.journal.Block.BlockInfoEntry getBlockInfo() {\n if (blockInfoBuilder_ == null) {\n return blockInfo_;\n } else {\n return blockInfoBuilder_.getMessage();\n }\n }", "public BCClass getTypeBC() {\n return getProject().loadClass(getType());\n }", "alluxio.proto.journal.File.NewBlockEntry getNewBlock();", "public Block getBlock()\n\t{\n\t\treturn this.block;\n\t}", "public Block getBlock() {\n\t\treturn this.block;\n\t}", "public static Field29G get(final SwiftTagListBlock block) {\n\t\tif (block == null || block.isEmpty()) {\n\t\t\treturn null;\n\t\t}\n\t\treturn (Field29G) block.getFieldByName(NAME);\n\t}", "phaseI.Hdfs.BlockLocations getNewBlock();", "public ItemDefinition getBlock(int id) {\n\t\treturn itemsArray[id];\n\t}", "@NotNull\r\n Block getBlock(int x, int y, int z);", "public static Building getBuilding(int index) {\n return buildings.get(index);\n }", "Block createBlock();", "gov.nih.nlm.ncbi.www.CodeBreakDocument.CodeBreak getCodeBreak();", "protected Node getBlockNode(Node parent)\n {\n for (int i=0; i<parent.jjtGetNumChildren(); i++) {\n if (parent.jjtGetChild(i) instanceof ASTBlock)\n return parent.jjtGetChild(i);\n }\n return null;\n }", "BAnyBlock createBAnyBlock();", "public Block getBlock(int x, int y){\n\t\tIterator iterator = blocks.iterator();\n\t\twhile(iterator.hasNext()){\n\t\t\tBlock b = (Block) iterator.next();\n\t\t\tif ((b.getX()==x)&&(b.getY()==y)) {\n\t\t\t\treturn b;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "public void loadLiabilitiesBuildingBlocks() {\n\t\tif (this.loadLiabilityTypesFromDB) {\n\t\t\tthis.liabilitiesTypeBuildingBlocks = this.buildingBlockService.findBuildingBlocksbyBranchIdAndBuildingBlockType(this.sessionBean.getCurrentBranch()\n\t\t\t\t\t.getId(), BuildingBlockConstant.LIABILITY_TYPE);\n\t\t\tthis.loadLiabilityTypesFromDB = false;\n\t\t}\n\t}", "public Building getBuilding();", "alluxio.proto.journal.Block.BlockInfoEntryOrBuilder getBlockInfoOrBuilder();", "public Block getFrom() {\n\t\t\treturn Block.getBlockById(fromId);\n\t\t}", "private com.google.protobuf.SingleFieldBuilder<\n alluxio.proto.journal.File.NewBlockEntry, alluxio.proto.journal.File.NewBlockEntry.Builder, alluxio.proto.journal.File.NewBlockEntryOrBuilder> \n getNewBlockFieldBuilder() {\n if (newBlockBuilder_ == null) {\n newBlockBuilder_ = new com.google.protobuf.SingleFieldBuilder<\n alluxio.proto.journal.File.NewBlockEntry, alluxio.proto.journal.File.NewBlockEntry.Builder, alluxio.proto.journal.File.NewBlockEntryOrBuilder>(\n newBlock_,\n getParentForChildren(),\n isClean());\n newBlock_ = null;\n }\n return newBlockBuilder_;\n }", "Optional<LatestBlock> getLatestBlock(String nodeName);", "void buildBlock(Tile t);", "@Override\n public Block getBlock() {\n Block b = null;\n while (b == null) {\n boolean noMoreBlocks = blocks.isEmpty();\n if (!noMoreBlocks) {\n b = blocks.poll();\n }\n\n if (noMoreBlocks || b == null) {\n synchronized (BlocksPool.class) { // can be easily changed to lock-free\n if (blocks.isEmpty()) {\n alloc(newAllocBlocks);\n }\n }\n }\n }\n return b;\n }", "List<Block> getBlocksByCongName(String congName);", "private Block getBlockAt(int x, int y, int z) {\n\t\ttry {\n\t\t\tbyte blockId = blockIDArray[x][y][z];\n\t\t\treturn new Block(x, y, z, BlockType.fromID(blockId), this);\n\t\t} catch(IndexOutOfBoundsException e) { return new Block(x, y, z, BlockType.AIR, this); }\n\t}", "public Block getBlock(int blockNumber) throws LedgerException {\n Block block;\n\n if ( (block = this.blockMap.get(blockNumber)) == null ) {\n throw new LedgerException(\"get block\", \"Block \" + blockNumber + \" does not exist.\");\n }\n return block;\n\n }", "@ASTNodeAnnotation.Child(name=\"Block\")\n public Block getBlock() {\n return (Block) getChild(0);\n }", "private IConfigBuilder _getTopLevelBuilder(int index) {\n // Next handle the sequence component (if any). Gemini uses a\n // \"dummy\" node as the root of the sequence\n // If this doesn't yet exist, return false\n final ISPSeqComponent top = _obs.getSeqComponent();\n if (top == null) return null;\n\n // Get all the seq builders that are children of top. If there\n // are none, return false\n final List<ISPSeqComponent> seqCompList = top.getSeqComponents();\n if (seqCompList == null) return null;\n\n // If the requested builder is out of range, return false\n final int size = seqCompList.size();\n if (index >= size) return null;\n\n final ISPSeqComponent seqComp = seqCompList.get(index);\n\n // Now try to get a builder\n final IConfigBuilder cb = (IConfigBuilder) seqComp.getClientData(IConfigBuilder.USER_OBJ_KEY);\n\n // Ignore nodes like SeqDataProc that don't have a config builder\n return (cb == null) ? _getTopLevelBuilder(++_seqBuilderIndex) : cb;\n }", "protected ASPBlock getBizWfBlock()\n {\n return headblk;\n }", "public Building getBuilding(String name) throws NullPointerException{\n // Placeholder method looks up the building in a dictionary\n Building building = demoBuildings.get(name);\n if(building == null){\n throw new NullPointerException(\"No buidling with given name\");\n }\n return building;\n }", "phaseI.Hdfs.BlockLocationsOrBuilder getBlockInfoOrBuilder();", "public IGUIBlock getHighlightedBlock() {\n Block highlightedBlock = blockHandler.getPA().getNextBlockInProgram();\n return (highlightedBlock != null) ? blockLink.getGUIBlockFromBlock(highlightedBlock) : null;\n }", "public alluxio.proto.journal.File.NewBlockEntryOrBuilder getNewBlockOrBuilder() {\n if (newBlockBuilder_ != null) {\n return newBlockBuilder_.getMessageOrBuilder();\n } else {\n return newBlock_;\n }\n }", "void removeBuildingBlock(BuildingBlock buildingBlock) throws BusinessException;", "BlockBuilder createBlockBuilder(BlockBuilderStatus blockBuilderStatus, int expectedEntries);", "@Override\n\tpublic synchronized MemoryBlock getBlock(String blockName) {\n\t\tMemoryBlock memoryBlock = nameBlockMap.get(blockName);\n\t\tif (memoryBlock != null) {\n\t\t\tif (memoryBlock == NoBlock) {\n\t\t\t\t// found placeholder, have searched and found nothing before\n\t\t\t\treturn null;\n\t\t\t}\n\t\t\treturn memoryBlock;\n\t\t}\n\n\t\tfor (MemoryBlock block : blocks) {\n\t\t\tif (block.getName().equals(blockName)) {\n\t\t\t\tnameBlockMap.put(blockName, block);\n\t\t\t\treturn block;\n\t\t\t}\n\t\t}\n\n\t\t// store placeholder there is no memory block with that name\n\t\tnameBlockMap.put(blockName, NoBlock);\n\t\treturn null;\n\t}", "public Block getObj()\n\t{\n\t\treturn block;\n\t}", "protected static AbstractMessage getMergeRequestInstanceByCode(int typeCode) {\n switch (typeCode) {\n case MessageType.TYPE_GLOBAL_BEGIN:\n return new GlobalBeginRequest();\n case MessageType.TYPE_GLOBAL_COMMIT:\n return new GlobalCommitRequest();\n case MessageType.TYPE_GLOBAL_ROLLBACK:\n return new GlobalRollbackRequest();\n case MessageType.TYPE_GLOBAL_STATUS:\n return new GlobalStatusRequest();\n case MessageType.TYPE_GLOBAL_LOCK_QUERY:\n return new GlobalLockQueryRequest();\n case MessageType.TYPE_BRANCH_REGISTER:\n return new BranchRegisterRequest();\n case MessageType.TYPE_BRANCH_STATUS_REPORT:\n return new BranchReportRequest();\n default:\n throw new IllegalArgumentException(\"not support typeCode,\" + typeCode);\n }\n }", "public static Object getThingByName (String name) {\n \n Object thing = Item.getByNameOrId(name);\n \n if (thing != null)\n return thing;\n \n thing = Block.getBlockFromName(name);\n \n if (thing != null)\n return thing;\n \n return null;\n }", "phaseI.Hdfs.BlockLocationsOrBuilder getNewBlockOrBuilder();", "public T caseBuildingBlockDesc(BuildingBlockDesc object) {\n\t\treturn null;\n\t}", "@Override\n public @Nullable Block getBlock(int x, int y, int z, @NotNull Condition condition) {\n if (condition != Condition.TYPE) {\n final Block entry = !entries.isEmpty() ?\n entries.get(ChunkUtils.getBlockIndex(x, y, z)) : null;\n if (entry != null || condition == Condition.CACHED) {\n return entry;\n }\n }\n // Retrieve the block from state id\n final Section section = getOptionalSection(y);\n if (section == null) return Block.AIR; // Section is unloaded\n final short blockStateId = section.getBlockAt(x, y, z);\n if (blockStateId == -1) return Block.AIR; // Section is empty\n return Objects.requireNonNullElse(Block.fromStateId(blockStateId), Block.AIR);\n }", "public ParameterBlock getParameterBlock(OperationBuilder builder) {\n ParameterBlockJAI pb = new ParameterBlockJAI(builder.name, RenderedRegistryMode.MODE_NAME);\n Map<String, Object> params = builder.getParameters();\n\n for (String name: params.keySet()) {\n pb.setParameter(name, params.get(name));\n }\n return pb;\n }", "Code getCode();", "public alluxio.proto.journal.Block.BlockInfoEntryOrBuilder getBlockInfoOrBuilder() {\n if (blockInfoBuilder_ != null) {\n return blockInfoBuilder_.getMessageOrBuilder();\n } else {\n return blockInfo_;\n }\n }", "public BbanStructureDTO forCountry(final String countryCode) {\n BbanStructureDTO bbanStructure = null;\n if (this.bbanStructures != null) {\n for (BbanStructureDTO structure : this.bbanStructures) {\n if (StringUtils.equals(structure.getCountry_coode(), countryCode)) {\n bbanStructure = structure;\n break;\n }\n }\n }\n return bbanStructure;\n }", "public static boolean block(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"block\")) return false;\n boolean r;\n Marker m = enter_section_(b, l, _COLLAPSE_, BLOCK, \"<block>\");\n r = config_block(b, l + 1);\n if (!r) r = model_block(b, l + 1);\n if (!r) r = type_alias(b, l + 1);\n if (!r) r = enum_block(b, l + 1);\n exit_section_(b, l, m, r, false, null);\n return r;\n }", "public Build getBuildById(int buildId);", "public final JCBasicBlock bb2() throws RecognitionException {\n JCBasicBlock basicBlock = null;\n\n\n Token ID12=null;\n Token INT13=null;\n\n try {\n // C:\\\\Users\\\\Cavicchio\\\\workspace\\\\InterDepAdjStructure\\\\newgrammar\\\\JCB_tree.g:854:39: ( OPEN_PARENTHESIS ID COMMA INT CLOSE_PARENTHESIS )\n // C:\\\\Users\\\\Cavicchio\\\\workspace\\\\InterDepAdjStructure\\\\newgrammar\\\\JCB_tree.g:856:1: OPEN_PARENTHESIS ID COMMA INT CLOSE_PARENTHESIS\n {\n match(input,OPEN_PARENTHESIS,FOLLOW_OPEN_PARENTHESIS_in_bb2970); \n\n ID12=(Token)match(input,ID,FOLLOW_ID_in_bb2972); \n\n match(input,COMMA,FOLLOW_COMMA_in_bb2974); \n\n INT13=(Token)match(input,INT,FOLLOW_INT_in_bb2976); \n\n match(input,CLOSE_PARENTHESIS,FOLLOW_CLOSE_PARENTHESIS_in_bb2978); \n\n\n if (displayProductions == true)\n {\n System.out.println(\"Production: bb2 : (ID,INT) = (\" + (ID12!=null?ID12.getText():null) + \",\" + (INT13!=null?INT13.getText():null) + \")\");\n }\n int bbWCET = Integer.parseInt((INT13!=null?INT13.getText():null));\n basicBlock = problem.accessBasicBlock((ID12!=null?ID12.getText():null), bbWCET);\t\t\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n\n finally {\n \t// do for sure before leaving\n }\n return basicBlock;\n }", "public int GetID()\n {\n return blockType.GetID();\n }", "public Block getBlock(Point point) {\n\t\treturn maze[point.x][point.y];\n\t}", "public void setBuildingType(Byte buildingType) {\n this.buildingType = buildingType;\n }", "private InheritableBuildingBlock() {\r\n super(IInheritableBuildingBlock.TYPE_ID);\r\n }", "public String getCodeBlock() {\n return codeBlock;\n }", "phaseI.Hdfs.BlockLocations getBlockInfo();", "Collection<BuildingBlock> findAllMandatoryBuildingBlocks() throws SystemException;", "public phaseI.Hdfs.BlockLocations getNewBlock() {\n if (newBlockBuilder_ == null) {\n return newBlock_ == null ? phaseI.Hdfs.BlockLocations.getDefaultInstance() : newBlock_;\n } else {\n return newBlockBuilder_.getMessage();\n }\n }", "public String getRemoteBlock(String hash){\n getBlock = true;\n getBlockHash = hash;\n try{\n synchronized(this){\n this.wait();\n }\n } catch(InterruptedException e){\n // nothing happens here\n }\n getBlock = false;\n if(remoteBlocks.containsKey(hash))\n return remoteBlocks.get(hash);\n else{\n return \"notfound\";\n }\n }", "public String getBuildingType() {\n return (String) getAttributeInternal(BUILDINGTYPE);\n }", "public DocumentBodyBlock type(TypeEnum type) {\n this.type = type;\n return this;\n }", "cb.Careerbuilder.Company.PhoneType getType();" ]
[ "0.68347394", "0.67596614", "0.6255818", "0.6136891", "0.6037349", "0.60241205", "0.57170045", "0.5685178", "0.56376475", "0.55998087", "0.55788153", "0.5525427", "0.5483144", "0.5446799", "0.5441459", "0.5392457", "0.5383831", "0.5348644", "0.5345394", "0.53267205", "0.5324213", "0.53138405", "0.5306516", "0.53063464", "0.52963567", "0.5266873", "0.5256889", "0.5250222", "0.524031", "0.5240181", "0.5220318", "0.52006817", "0.51868564", "0.517285", "0.5166915", "0.5166344", "0.51350176", "0.51339996", "0.51229995", "0.5094058", "0.5082963", "0.5082637", "0.5069655", "0.5051546", "0.50472474", "0.5045075", "0.50361174", "0.5033147", "0.5023625", "0.5021919", "0.501783", "0.5013729", "0.5010305", "0.5006069", "0.49964976", "0.49869907", "0.498038", "0.4978998", "0.49786258", "0.49644002", "0.4961699", "0.49528587", "0.4937772", "0.49343464", "0.4926432", "0.4924577", "0.4911526", "0.49085554", "0.49059308", "0.4889805", "0.4884675", "0.4880923", "0.48734272", "0.48570648", "0.48566306", "0.48553073", "0.48536256", "0.48465437", "0.48387712", "0.48323557", "0.4832281", "0.48306212", "0.48238853", "0.48197398", "0.48166433", "0.48161945", "0.48116535", "0.4802133", "0.47941846", "0.477867", "0.4770421", "0.47681716", "0.47629482", "0.47570178", "0.47488275", "0.47483432", "0.4745807", "0.4745305", "0.47435793", "0.47431713" ]
0.8276948
0
Retrieve all mandatory building blocks.
Collection<BuildingBlock> findAllMandatoryBuildingBlocks() throws SystemException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Collection<BuildingBlock> findAllBuildingBlocks() throws BusinessException;", "public ProductionBlock[] getAllProductionBlocks();", "public Builder isMandatory(boolean mandatory) {\n this.mandatory = mandatory;\n return this;\n }", "public void loadLiabilitiesBuildingBlocks() {\n\t\tif (this.loadLiabilityTypesFromDB) {\n\t\t\tthis.liabilitiesTypeBuildingBlocks = this.buildingBlockService.findBuildingBlocksbyBranchIdAndBuildingBlockType(this.sessionBean.getCurrentBranch()\n\t\t\t\t\t.getId(), BuildingBlockConstant.LIABILITY_TYPE);\n\t\t\tthis.loadLiabilityTypesFromDB = false;\n\t\t}\n\t}", "public java.util.List<com.lvl6.proto.QuestProto.FullQuestProto.Builder> \n getNewlyAvailableQuestsBuilderList() {\n return getNewlyAvailableQuestsFieldBuilder().getBuilderList();\n }", "public org.naru.park.ParkController.CommonAction.Builder getAllBuilder() {\n \n onChanged();\n return getAllFieldBuilder().getBuilder();\n }", "public org.naru.park.ParkController.CommonAction.Builder getAllBuilder() {\n \n onChanged();\n return getAllFieldBuilder().getBuilder();\n }", "@Override\n public List<Building> allBuildings() {\n return dao.all(Building.class);\n }", "public java.util.List<com.rpg.framework.database.Protocol.Quest.Builder> \n getQuestBuilderList() {\n return getQuestFieldBuilder().getBuilderList();\n }", "private void fillMandatoryFields() {\n\n }", "void initializeMandatorySectionFields();", "Collection<BuildingBlock> findBuildingBlocksByType(BuildingBlockConstant buildingBlockType) throws BusinessException;", "private void createGWBuildings()\n\t{\n\t\t//Generate block 0 (50x50)\n\t\t//(7,7)-(57,57)\n\t\tmakeBlocker0();\n\n\t\t//Generate block 1 (50x50)\n\t\t//(64,7)-(114,57)\n\t\tmakeSEH();\n\t\tmakeFullBright();\n\t\tmakeKennedy();\n\t\tmakeMunson();\n\n\t\t//Generate block 2 (80x50)\n\t\t//(121,7)-(201,57)\n\t\tmakeAcademicCenter();\n\t\tmakeRomePhilips();\n\t\tmakeDistrict();\n\t\tmakeMarvin();\n\t\tmakeLafayette();\n\n\t\t//Generate block 3 (65x50)\n\t\t//(208,7)-(273,57)\n\t\tmake2000Penn();\n\t\tmakeSMPA();\n\t\tmakeBlocker3();\n\n\t\t//Generate block 4 (63x50)\n\t\t//(280,7)-(343,57)\n\t\tmakeBlocker4();\n\n\t\t//Generate block 5 (50x60)\n\t\t//(7,64)-(57,124)\n\t\tmakeAmsterdam();\n\t\tmakeHealWell();\n\t\tmakeBlocker5();\n\n\t\t//Generate block 6 (50x60)\n\t\t//(64,64)-(114,124)\n\t\tmakeTompkins();\n\t\tmakeMadison();\n\t\tmakeDuquesAndFunger();\n\n\t\t//Generate block 7 (80x60)\n\t\t//(121,64)-(201,124)\n\t\tmakeGelman();\n\t\tmakeLisner();\n\t\tmakeStaughton();\n\t\tmakeMonroe();\n\n\t\t//Generate block 8 (65x60)\n\t\t//(208,64)-(273,124)\n\t\tmakeCorcoran();\n\t\tmakeLawSchool();\n\t\tmakeLisnerHall();\n\t\tmakeTextileMuseum();\n\n\t\t//Generate block 9 (63x60)\n\t\t//(280,64)-(343,124)\n\t\tmakeBlocker9();\n\n\t\t//Generate block 10 (50x50)\n\t\t//(7,131)-(57,181)\n\t\tmakeShenkman();\n\t\tmakeBlocker10();\n\n\t\t//Generate block 11 (50x50)\n\t\t//(64,131)-(114,181)\n\t\tmakeTownHouses();\n\t\tmakeSmithCenter();\n\n\t\t//Generate block 12 (80x50)\n\t\t//(121,131)-(201,181)\n\t\tmakeSouthHall();\n\t\tmakeGuthridge();\n\t\tmakeBlocker12();\n\n\t\t//Generate block 13 (65x50)\n\t\t//(208,131)-(273,181)\n\t\tmakeBlocker13();\n\t\tmakeFSK();\n\t\tmakePatomac();\n\n\t\t//Generate block 14 (63x50)\n\t\t//(280,131)-(343,181)\n\t\tmakeBlocker14();\n\n\t\t//Generate block 15 (50x57)\n\t\t//(7,188)-(57,245)\n\t\tmakeBlocker15();\n\n\t\t//Generate block 16 (50x57)\n\t\t//(64,188)-(114,245)\n\t\tmakeIHouse();\n\t\tmakeBlocker16();\n\n\t\t//Generate block 17 (80x57)\n\t\t//(121,188)-(201,245)\n\t\tmakeBlocker17();\n\t\tmakeDakota();\n\n\t\t//Generate block 18 (65x57)\n\t\t//(208,188)-(273,245)\n\t\tmakeBlocker18();\n\n\t\t//Generate block 19 (63x57)\n\t\t//(280,188)-(343,245)\n\t\tmakeBlocker19();\n\t\tmakeElliot();\n\t\tmakeThurston();\n\t}", "public LinkedList<Building> getBuildings(){\n\t\treturn buildings;\n\t}", "public java.util.List<phaseI.Hdfs.BlockLocations.Builder> \n getBlockLocationsBuilderList() {\n return getBlockLocationsFieldBuilder().getBuilderList();\n }", "List<OpeningRequirement> selectAll();", "public phaseI.Hdfs.BlockLocations.Builder getNewBlockBuilder() {\n bitField0_ |= 0x00000002;\n onChanged();\n return getNewBlockFieldBuilder().getBuilder();\n }", "public List<Building> getBoardBuildings() {\n return mPersonalBoardCards.getBoardBuildings();\n }", "private static void populateBlocks() {\n\n //TODO set sensors for each\n\n /* Path A */\n SW1A.setProceeding(new Block[]{SW2A, STA1Z, SW2B});\n SW1A.setPreceding(new Block[]{PTH5A});\n\n SW2A.setProceeding(new Block[]{LD1A});\n SW2A.setPreceding(new Block[]{SW1A});\n\n SW3A.setProceeding(new Block[]{SW4A});\n SW3A.setPreceding(new Block[]{LD1A});\n\n SW4A.setProceeding(new Block[]{PTH1A});\n SW4A.setPreceding(new Block[]{SW3A, STA1Z, SW3B});\n\n PTH1A.setProceeding(new Block[]{PTH2A});\n PTH1A.setPreceding(new Block[]{SW4A});\n\n PTH2A.setProceeding(new Block[]{PTH3A});\n PTH2A.setPreceding(new Block[]{PTH1A});\n\n PTH3A.setProceeding(new Block[]{PTH4A});\n PTH3A.setPreceding(new Block[]{PTH2A});\n\n PTH4A.setProceeding(new Block[]{PTH5A});\n PTH4A.setPreceding(new Block[]{PTH3A});\n\n PTH5A.setProceeding(new Block[]{SW1A});\n PTH5A.setPreceding(new Block[]{PTH4A});\n\n LD1A.setProceeding(new Block[]{SW3A});\n LD1A.setPreceding(new Block[]{SW2A});\n\n\n /* Station */\n STA1Z.setProceeding(new Block[]{SW4A});\n STA1Z.setPreceding(new Block[]{SW1A});\n\n\n /* Path B */\n //TODO path B items aren't in yet\n LD1B.setProceeding(new Block[]{SW3B});\n LD1B.setPreceding(new Block[]{SW2B});\n\n SW2B.setProceeding(new Block[]{LD1B});\n SW2B.setPreceding(new Block[]{SW1B});\n\n SW3B.setProceeding(new Block[]{SW4B});\n SW3B.setPreceding(new Block[]{LD1B});\n\n\n /* Maintenance Bay */\n //TODO maintenance bay items aren't in yet\n\n\n\n\n /* Set up array */\n blocksArray = new Block[] {}; //TODO fill\n }", "public Structure[] getBuildingsOnStage(){\n\t\treturn this.buildings;\n\t}", "public abstract List<AbstractRequirement> getRequirements();", "public java.util.List<TransmissionProtocol.Request.Builder> \n getRequestBuilderList() {\n return getRequestFieldBuilder().getBuilderList();\n }", "private IConfigBuilder _getTopLevelBuilder(int index) {\n // Next handle the sequence component (if any). Gemini uses a\n // \"dummy\" node as the root of the sequence\n // If this doesn't yet exist, return false\n final ISPSeqComponent top = _obs.getSeqComponent();\n if (top == null) return null;\n\n // Get all the seq builders that are children of top. If there\n // are none, return false\n final List<ISPSeqComponent> seqCompList = top.getSeqComponents();\n if (seqCompList == null) return null;\n\n // If the requested builder is out of range, return false\n final int size = seqCompList.size();\n if (index >= size) return null;\n\n final ISPSeqComponent seqComp = seqCompList.get(index);\n\n // Now try to get a builder\n final IConfigBuilder cb = (IConfigBuilder) seqComp.getClientData(IConfigBuilder.USER_OBJ_KEY);\n\n // Ignore nodes like SeqDataProc that don't have a config builder\n return (cb == null) ? _getTopLevelBuilder(++_seqBuilderIndex) : cb;\n }", "public PDUsPage verifyAllMandatoryFieldsforPDUs(){\n\t\tString[] mandatoryFields = {\"PDUs_Name_Xpath\",\n\t\t\t\t\"PDUs_OwnerGroupReadOnly_Xpath\",\n\t\t\"PDUs_SystemManagerManReadOnly_Xpath\"};\n\n\t\tString[] mandatoryFieldsDesc = {\"Name\",\n\t\t\t\t\"CI Owner Group\",\"System Manager\"};\n\n\t\tverifyMandatoryFields(mandatoryFields, mandatoryFieldsDesc);\n\n\t\treturn this;\n\n\t}", "public List<Block> blocks() {\n this.blocks = createBlocks();\n return this.blocks;\n }", "List<Block> blocks();", "public java.util.List<edu.usfca.cs.dfs.StorageMessages.StorageNodeInfo.Builder> \n getSnInfoBuilderList() {\n return getSnInfoFieldBuilder().getBuilderList();\n }", "public java.util.List<edu.usfca.cs.dfs.StorageMessages.StorageNodeInfo.Builder> \n getSnInfoBuilderList() {\n return getSnInfoFieldBuilder().getBuilderList();\n }", "public java.util.List<edu.usfca.cs.dfs.StorageMessages.StorageNodeInfo.Builder> \n getSnInfoBuilderList() {\n return getSnInfoFieldBuilder().getBuilderList();\n }", "public java.util.List<cb.Careerbuilder.Job.Builder> \n getJobsBuilderList() {\n return getJobsFieldBuilder().getBuilderList();\n }", "public java.util.List<POGOProtos.Rpc.CombatProto.CombatPokemonProto.Builder> \n getReservePokemonBuilderList() {\n return getReservePokemonFieldBuilder().getBuilderList();\n }", "BuildingBlock findBuildingBlockById(Long id) throws BusinessException;", "public java.util.List<Pokemon.Request.Builder> \n getRequestsBuilderList() {\n return getRequestsFieldBuilder().getBuilderList();\n }", "@Nonnull\n @ReturnsMutableCopy\n public ICommonsList <IRequiredOption> getAllMissingOptions ()\n {\n return m_aMissingOptions.getClone ();\n }", "public abstract List<String> requiredFields();", "public phaseI.Hdfs.BlockLocations.Builder getBlockInfoBuilder() {\n bitField0_ |= 0x00000001;\n onChanged();\n return getBlockInfoFieldBuilder().getBuilder();\n }", "public String requiredBuildingsStatus(){\r\n\t\tString unbuiltBuildings = \"\";\r\n\t\tif (!myBuildings.getWell()){\r\n\t\t\tunbuiltBuildings += \"Well \";\r\n\t\t}\r\n\t\tif (!myBuildings.getFence()){\r\n\t\t\tunbuiltBuildings += \"Fence \";\r\n\t\t}\r\n\t\tif (!myBuildings.getHouse()){\r\n\t\t\tunbuiltBuildings += \"House \";\r\n\t\t}\r\n\t\treturn unbuiltBuildings;\r\n\t}", "public java.util.List<org.multibit.hd.core.protobuf.MBHDContactsProtos.Contact.Builder> \n getContactBuilderList() {\n return getContactFieldBuilder().getBuilderList();\n }", "public Collection<Block> getBadBlocks() {\n return badBlocks.asMap().values();\n }", "protected void getRequires() {\n System.out.println(\"\\nRequires: \");\n /******************************************/\n myIterator.next();\n myRequires = new Expression(myIterator, mye);\n /******************************************/\n System.out.println(\"\\n\");\n }", "@Override\n @Transactional(readOnly = true)\n public List<BuildingDTO> findAll() {\n log.debug(\"Request to get all Buildings\");\n return buildingRepository.findAll().stream()\n .map(buildingMapper::toDto)\n .collect(Collectors.toCollection(LinkedList::new));\n }", "Set<? extends IRBasicBlock> getBlocks();", "public java.util.List<cb.Careerbuilder.Company.PhoneNumber.Builder> \n getPhoneBuilderList() {\n return getPhoneFieldBuilder().getBuilderList();\n }", "public Array<BlockDrawable> getAllBlocksToDraw() {\r\n \tArray<BlockDrawable> blocksToDraw = new Array<BlockDrawable>();\r\n\t\tblocksToDraw.addAll(tablero);\r\n\t\tif(isGhostActivated()){\r\n\t\t\tblocksToDraw.addAll(getGhostBlocksToDraw());\r\n\t\t}\r\n\t\tif (hasFalling())\r\n\t\t\tblocksToDraw.addAll(falling.allOuterBlocks());\r\n\t\t\r\n\t\treturn blocksToDraw;\r\n }", "@Override\n\tpublic void build() {\n\t\tif(this.getContainer().isEmpty()){\n\t\t\tthis.addBuilding(new Building(BuildingType.CABSTAND, 150));\n\t\t\tMonopolyTheGame.getInstance().getActivePlayer().decBalance(150);\n\t\t\tsetEnabler(false);\n\t\t\t//currentSquare.setRent(currentSquare.getRent()*2);\n\t\t}else {\n\t\t\tSystem.out.println(\"You cannot bould multiple cab stands on a cab company\");\n\t\t}\n\t\t\n\t}", "Collection<BuildingBlock> findBuildingBlocksbyBranchId(Long branchId) throws BusinessException;", "public Collection<Block> getBlockCollection() {\n\t\treturn this.blocks.values();\n\t}", "private CatchUpResult tryBuildingChain() {\n\n\t\tlog.debug(\"Try to build the chain.\");\n\n\t\tif(pendingBlocks != null && !pendingBlocks.isEmpty()) {\n\n\t\t\t// check if all indexes are present\n\t\t\tLong[] indexes = (Long[]) pendingBlocks.keySet().toArray(new Long[pendingBlocks.keySet().size()]);\n\t\t\tArrays.sort(indexes);\n\n\t\t\tfor (int i = 0; i<indexes.length-1; i++) {\n\t\t\t\tif(indexes[i] != indexes[i+1] - 1) {\n\t\t\t\t\tlog.info(\"Cannot build chain, missing block.\"+indexes[i]+\" -> \"+indexes[i+1]);\n\t\t\t\t\treturn CatchUpResult.CATCH_UP_FAILED;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tlog.info(\"All blocks are arrived, start building chain with \"+pendingBlocks.size()+\" blocks\");\n\n\t\t\t// link blocks for each index\n\t\t\tList<Block> blocks = new LinkedList<Block>();\n\t\t\tfor (int i=0; i<indexes.length; i++) {\n\t\t\t\tblocks.add(pendingBlocks.get(indexes[i]).get(0));\n\t\t\t}\t\t\n\n\t\t\tChainPart chainPart = new ChainPart();\n\t\t\tchainPart.addBlocks(blocks);\n\t\t\ttry {\n\t\t\t\t// init chain with catch-up data\n\t\t\t\tchain.addChainPart(chainPart);\n\t\t\t\tblockchain.setInitialChain(chain);\n\t\t\t\tlog.info(\"Build completed !\");\n\t\t\t\treturn CatchUpResult.CATCH_UP_SUCCESSFUL;\n\t\t\t} catch (ChainIntegrityException e) {\n\t\t\t\t// catch-up fail on data integrity\n\t\t\t\te.printStackTrace();\n\t\t\t\tlog.warn(\"Error while building chain.\");\n\t\t\t\treturn CatchUpResult.CATCH_UP_FAILED;\n\t\t\t}\n\t\t} else {\n\t\t\tlog.warn(\"No block received for catching up, chain can't be initialized\");\n\t\t\treturn CatchUpResult.CATCH_UP_EMPTY;\n\t\t}\n\t}", "public void testBuildInBlk(){\n\t\tSet<String> names = testDataMap.keySet();\n\t\tfor(String sn:names){\n\t\t\tSecDef mainSd = sdQuery.get(sn, 1, TimeUnit.SECONDS);\n\t\t\tSecDef[] underlyingSds = \n\t\t\t\t\tqm.getUnderlyingSecDefs(sn, 1, TimeUnit.SECONDS).toArray(new SecDef[]{});\n\t\t\tUnderlyingInfo underInputsMap = getAllInfo();\n\t\t\tCalendar evaluationDate = Calendar.getInstance();\n\t\t\tInBlk inBlk = new InBlk(\n\t\t\t\t\tmainSd, underlyingSds, \n\t\t\t\t\tunderInputsMap,Arrays.asList( dioMapKeys), evaluationDate);\n\t\t\tList<BigDecimal> atmList = inBlk.getUnderLyingInputList(new AtmDiot());\n\t\t\tUtils.prt(sn+\": atms: \");\n\t\t\tCollectionsStaticMethods.prtListItems(atmList);\n\n\t\t\tList<BigDecimal> volList = inBlk.getUnderLyingInputList(new VolDiotForTest());\n\t\t\tUtils.prt(sn+\": vols: \");\n\t\t\tCollectionsStaticMethods.prtListItems(volList);\n\n\t\t\tList<BigDecimal> strikeList = inBlk.getUnderLyingInputList(new StrikeDiotForTest());\n\t\t\tUtils.prt(sn+\": strikes: \");\n\t\t\tCollectionsStaticMethods.prtListItems(strikeList);\n\t\t}\n\t}", "public java.util.List<KeyValuePair.Builder>\n getInfoBuilderList() {\n return getInfoFieldBuilder().getBuilderList();\n }", "private com.google.protobuf.SingleFieldBuilderV3<\n org.naru.park.ParkController.CommonAction, org.naru.park.ParkController.CommonAction.Builder, org.naru.park.ParkController.CommonActionOrBuilder> \n getAllFieldBuilder() {\n if (allBuilder_ == null) {\n allBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n org.naru.park.ParkController.CommonAction, org.naru.park.ParkController.CommonAction.Builder, org.naru.park.ParkController.CommonActionOrBuilder>(\n getAll(),\n getParentForChildren(),\n isClean());\n all_ = null;\n }\n return allBuilder_;\n }", "private com.google.protobuf.SingleFieldBuilderV3<\n org.naru.park.ParkController.CommonAction, org.naru.park.ParkController.CommonAction.Builder, org.naru.park.ParkController.CommonActionOrBuilder> \n getAllFieldBuilder() {\n if (allBuilder_ == null) {\n allBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n org.naru.park.ParkController.CommonAction, org.naru.park.ParkController.CommonAction.Builder, org.naru.park.ParkController.CommonActionOrBuilder>(\n getAll(),\n getParentForChildren(),\n isClean());\n all_ = null;\n }\n return allBuilder_;\n }", "public java.util.List<io.dstore.engine.MetaInformation.Builder> \n getMetaInformationBuilderList() {\n return getMetaInformationFieldBuilder().getBuilderList();\n }", "public java.util.List<io.dstore.engine.MetaInformation.Builder> \n getMetaInformationBuilderList() {\n return getMetaInformationFieldBuilder().getBuilderList();\n }", "public java.util.List<io.dstore.engine.MetaInformation.Builder> \n getMetaInformationBuilderList() {\n return getMetaInformationFieldBuilder().getBuilderList();\n }", "public java.util.List<io.dstore.engine.MetaInformation.Builder> \n getMetaInformationBuilderList() {\n return getMetaInformationFieldBuilder().getBuilderList();\n }", "public java.util.List<io.dstore.engine.MetaInformation.Builder> \n getMetaInformationBuilderList() {\n return getMetaInformationFieldBuilder().getBuilderList();\n }", "private static List<Building> getBuildingsWithProcessesRequiringWork(List<Building> buildingList, int skill) {\n\n\t\tList<Building> result = new ArrayList<Building>();\n\t\t// Add all buildings with processes requiring work.\n\t\tIterator<Building> i = buildingList.iterator();\n\t\twhile (i.hasNext()) {\n\t\t\tBuilding building = i.next();\n\t\t\tif (hasProcessRequiringWork(building, skill)) {\n\t\t\t\tresult.add(building);\n\t\t\t}\n\t\t}\n\n\t\t// If no building with processes requiring work, return original list.\n\t\tif (result.size() == 0) {\n\t\t\tresult = buildingList;\n\t\t}\n\n\t\treturn result;\n\t}", "public Block[] getAllBlocks(){\n\t\tBlock[] arr = new Block[tail];\n\t\tfor(int x = 0; x < tail; x++)\n\t\t\tarr[x] = ds[x];\n\t\treturn arr;\n\t}", "public java.util.List<com.rpg.framework.database.Protocol.Item.Builder> \n getItemsBuilderList() {\n return getItemsFieldBuilder().getBuilderList();\n }", "phaseI.Hdfs.BlockLocationsOrBuilder getNewBlockOrBuilder();", "@Override\n public List<Block> blocks() {\n int columns = 15, width = 51, height = 30;\n Color darkGreen = new Color(29, 101, 51);\n List<Block> blocks = new ArrayList<>();\n for (int j = 0; j < columns; j++) {\n blocks.add(new Block(new arkanoid.geometry.Rectangle(new Point(20 + width * j, 110 + height),\n width, height), darkGreen));\n }\n return blocks;\n }", "private static List<Element> getXMLBlocks(Model model) {\n Set<Block> blocks = new TreeSet<>(Comparators.objectsById());\n blocks.addAll(model.getBlocks(null));\n List<Element> result = new ArrayList<>(blocks.size());\n for (Block curBlock : blocks) {\n Element blockElement = new Element(\"block\");\n blockElement.setAttribute(\"id\", String.valueOf(curBlock.getId()));\n blockElement.setAttribute(\"name\", curBlock.getName());\n for (TCSResourceReference<?> curRef : curBlock.getMembers()) {\n Element resourceElement = new Element(\"member\");\n resourceElement.setAttribute(\"name\", curRef.getName());\n blockElement.addContent(resourceElement);\n }\n for (Map.Entry<String, String> curEntry\n : curBlock.getProperties().entrySet()) {\n Element propertyElement = new Element(\"property\");\n propertyElement.setAttribute(\"name\", curEntry.getKey());\n propertyElement.setAttribute(\"value\", curEntry.getValue());\n blockElement.addContent(propertyElement);\n }\n result.add(blockElement);\n }\n return result;\n }", "private static List<Building> getManufacturingBuildingsNeedingWork(List<Building> buildingList, int skill) {\n\n\t\tList<Building> result = new ArrayList<Building>();\n\n\t\tIterator<Building> i = buildingList.iterator();\n\t\twhile (i.hasNext()) {\n\t\t\tBuilding building = i.next();\n\t\t\tif (building.getManufacture().requiresManufacturingWork(skill)) {\n\t\t\t\tresult.add(building);\n\t\t\t}\n\t\t}\n\n\t\treturn result;\n\t}", "public java.util.List<\n com.google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.Part.Builder>\n getPartsBuilderList() {\n return getPartsFieldBuilder().getBuilderList();\n }", "Collection<BuildingBlock> findBuildingBlocksbyBranchIdAndBuildingBlockType(Long branchId, BuildingBlockConstant buildingBlockType) throws BusinessException;", "@Programmatic\n public Collection<ObjectSpecification> allSpecifications() {\n return Lists.newArrayList(allCachedSpecifications());\n }", "@GetMapping(\"/getallblock\")\n\tpublic List<StudentRegistration> getAllBlockStudent() {\n\t\treturn srepo.findByStatus(\"blocked\");\n\t}", "public Collection getBasicValidationList ()\n\t{\n\t\tArrayList list = new ArrayList();\n\t\tString className = getClassName();\n\n\t\tlist.add(createClassExistenceComponent(className));\n\t\tlist.add(createClassPersistenceComponent(className));\n\n\t\tlist.addAll(getDatabaseValidationList());\n\t\tlist.addAll(getFieldsValidationList());\n\n\t\treturn Collections.unmodifiableCollection(list);\n\t}", "public alluxio.proto.journal.File.NewBlockEntry.Builder getNewBlockBuilder() {\n bitField0_ |= 0x00200000;\n onChanged();\n return getNewBlockFieldBuilder().getBuilder();\n }", "phaseI.Hdfs.BlockLocations getNewBlock();", "public java.util.List<teledon.network.protobuffprotocol.TeledonProtobufs.CazCaritabil.Builder>\n getCazuriBuilderList() {\n return getCazuriFieldBuilder().getBuilderList();\n }", "@Override\r\n\tpublic List<IPrintable> getStructureParts() {\n\t\treturn null;\r\n\t}", "public List<Block> blocks() {\r\n List<Block> list = new ArrayList<Block>();\r\n double width = 50;\r\n for (int i = 0; i < 7; ++i) {\r\n Color c = new Color(0, 0, 0);\r\n switch (i) {\r\n case 0:\r\n c = Color.gray;\r\n break;\r\n case 1:\r\n c = Color.red;\r\n break;\r\n case 2:\r\n c = Color.yellow;\r\n break;\r\n case 3:\r\n c = Color.green;\r\n break;\r\n case 4:\r\n c = Color.white;\r\n break;\r\n case 5:\r\n c = Color.pink;\r\n break;\r\n default:\r\n c = Color.cyan;\r\n break;\r\n }\r\n for (int j = 0; j < 15; ++j) {\r\n Block b = new Block(new Rectangle(new Point(\r\n 25 + j * width, 100 + i * 20), width, 20));\r\n if (i == 0) {\r\n b.setHitPoints(2);\r\n } else {\r\n b.setHitPoints(1);\r\n }\r\n list.add(b);\r\n }\r\n }\r\n return list;\r\n }", "public java.util.List<io.opencannabis.schema.commerce.OrderItem.Item.Builder> \n getItemBuilderList() {\n return getItemFieldBuilder().getBuilderList();\n }", "private void fillMandatoryFields_custom() {\n\n }", "@Override\n\tpublic List<Checkingin> selectAll() {\n\t\treturn null;\n\t}", "public java.util.List<com.demo.springprotobuff.Demoproto.Student.PhoneNumber.Builder> getPhoneBuilderList() {\n\t\t\t\treturn getPhoneFieldBuilder().getBuilderList();\n\t\t\t}", "public boolean isMandatory() {\n return mandatory;\n }", "public BlockType[] getBlocks() {\n return blocks;\n }", "public java.util.List<entities.Torrent.ChunkInfo.Builder>\n getChunksBuilderList() {\n return getChunksFieldBuilder().getBuilderList();\n }", "public java.util.List<hr.domain.ResumeDBOuterClass.Resume.Builder> \n getResumesBuilderList() {\n return getResumesFieldBuilder().getBuilderList();\n }", "public Block[] getBlocks() {\n\t\treturn blocks;\n\t}", "private void requireRequestStages() {\n //Check if there are any request stage configurations\n if (this.requestStageConfigs.isEmpty()) {\n throw new IllegalStateException(\"Request stages need to be added before the request can be build.\");\n }\n }", "ImmutableList<SchemaOrgType> getHasPartList();", "public java.util.List<hr.domain.ResumeDBOuterClass.Education.Builder> \n getEducationsBuilderList() {\n return getEducationsFieldBuilder().getBuilderList();\n }", "private static CurveBuildingBlock toBlock(CurveGroupDefinition groupDefn) {\n ImmutableList.Builder<CurveParameterSize> builder = ImmutableList.builder();\n for (CurveGroupEntry entry : groupDefn.getEntries()) {\n NodalCurveDefinition defn = entry.getCurveDefinition();\n builder.add(CurveParameterSize.of(defn.getName(), defn.getParameterCount()));\n }\n return CurveBuildingBlock.of(builder.build());\n }", "@Test\n public void testGetAll() {\n List<Allocation> cc = allocationCollection.getAll();\n assertNotNull(cc);\n assertFalse(cc.isEmpty());\n }", "public Builder clearBlockNums() {\n blockNums_ = java.util.Collections.emptyList();\n bitField0_ = (bitField0_ & ~0x00000001);\n onChanged();\n return this;\n }", "public Builder clearBlockNums() {\n blockNums_ = java.util.Collections.emptyList();\n bitField0_ = (bitField0_ & ~0x00000004);\n onChanged();\n return this;\n }", "public java.util.List<com.google.protobuf.Value.Builder> getGroundTruthsBuilderList() {\n return getGroundTruthsFieldBuilder().getBuilderList();\n }", "public boolean isMandatory() {\n return mandatory;\n }", "public boolean isMandatory() {\n return mandatory;\n }", "public java.util.List<Report.LocationOuterClass.MobileCell.Builder> \n getCellsBuilderList() {\n return getCellsFieldBuilder().getBuilderList();\n }", "public org.openxmlformats.schemas.presentationml.x2006.main.CTEmpty getSldAll()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.openxmlformats.schemas.presentationml.x2006.main.CTEmpty target = null;\n target = (org.openxmlformats.schemas.presentationml.x2006.main.CTEmpty)get_store().find_element_user(SLDALL$6, 0);\n if (target == null)\n {\n return null;\n }\n return target;\n }\n }", "public java.util.List<edu.usfca.cs.dfs.StorageMessages.StoreChunkLocation.Builder> \n getChunksLocationBuilderList() {\n return getChunksLocationFieldBuilder().getBuilderList();\n }", "@Override\n\tpublic void setMandatory(boolean mandatory) {\n\t\t\n\t}", "public java.util.List<com.sbytestream.samples.grpc.stockservice.Stock.Builder> \n getStocksBuilderList() {\n return getStocksFieldBuilder().getBuilderList();\n }", "BlockBuilder createBlockBuilder(BlockBuilderStatus blockBuilderStatus, int expectedEntries);", "@Test\n public void getAllComputerBuildsFromUserWithNoBuilds() {\n Iterable<ComputerBuild> computerBuilds = computerBuildService.getAllComputerBuildsFromUser(SUCCESSFUL_USER_NAME);\n assertNotNull(computerBuilds);\n assertEquals(0, computerBuilds.spliterator().getExactSizeIfKnown());\n }" ]
[ "0.6328299", "0.55504954", "0.52568036", "0.5238809", "0.5184628", "0.5164031", "0.5164031", "0.5043934", "0.5039456", "0.50328225", "0.5022741", "0.5018034", "0.49915853", "0.49727875", "0.496507", "0.49605295", "0.48797596", "0.48524648", "0.48376265", "0.48319662", "0.48108953", "0.4799072", "0.4798384", "0.47805986", "0.47795886", "0.47710267", "0.47629276", "0.47629276", "0.47629276", "0.47257975", "0.47135618", "0.4702177", "0.4699604", "0.46972534", "0.4695535", "0.46907368", "0.46808022", "0.4674719", "0.46575108", "0.4655555", "0.46463823", "0.46457815", "0.4641115", "0.46278846", "0.4626475", "0.46189025", "0.46168372", "0.46106723", "0.459567", "0.4586368", "0.45854595", "0.45854595", "0.45798612", "0.45798612", "0.45798612", "0.45798612", "0.45798612", "0.457964", "0.45783398", "0.45765674", "0.45563382", "0.45513487", "0.4550653", "0.45455113", "0.45446488", "0.45371902", "0.4534721", "0.45188493", "0.45111778", "0.4496222", "0.44932586", "0.44838652", "0.447583", "0.44729903", "0.44712207", "0.44568714", "0.44561723", "0.44525743", "0.4451919", "0.44459772", "0.444107", "0.44393858", "0.4431534", "0.44283673", "0.44191346", "0.44180977", "0.44164848", "0.4416177", "0.4409906", "0.440279", "0.44010514", "0.4399665", "0.4399665", "0.43954068", "0.43952462", "0.43914482", "0.43830356", "0.437968", "0.43712777", "0.4367049" ]
0.82985896
0
Retrieve all fee Type building blocks for a branch by fee classification.
Collection<BuildingBlock> findFeeTypeBuildingBlocksbyBranchIdAndFeeClassificationLevel(final Long branchId, FeeClassificationLevelConstant feeClassificationLevel) throws BusinessException, SystemException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Collection<BuildingBlock> findFeeTypeBuildingBlocksbyBranchIdAndFeeType(Long branchId, final FeeTypeConstant feeTypeConstant) throws BusinessException,\n\t\t\tSystemException;", "Collection<BuildingBlock> findBuildingBlocksbyBranchId(Long branchId) throws BusinessException;", "Collection<BuildingBlock> findBuildingBlocksByType(BuildingBlockConstant buildingBlockType) throws BusinessException;", "Collection<BuildingBlock> findBuildingBlocksbyBranchIdAndBuildingBlockType(Long branchId, BuildingBlockConstant buildingBlockType) throws BusinessException;", "Collection<BuildingBlock> findAllBuildingBlocks() throws BusinessException;", "BuildingBlock findBuildingBlockByTypeAndCode(BuildingBlockConstant buildingBlockType, String code) throws BusinessException;", "Set<Branch> getBranches(Collection<Project> projects, BranchType brType, boolean onlyCommon);", "BranchingBlock createBranchingBlock();", "public List<Branch> getBranchs()\r\n\t{\t\r\n\t\tif (branchs.size() == 0)\r\n\t\t{\r\n\t\t\t//Lacos abertos carga x terra (redes radiais)\r\n\t\t\tbranchs.addAll(findBranchs());\t\t\r\n\t\t\r\n\t\t}\r\n\t\treturn branchs; \r\n\t}", "public List<Branch> getBranchListForBank(String name);", "MultipleBranchingBlock createMultipleBranchingBlock();", "List<CabinClassModel> findCabinClasses();", "BuildingBlock findBuildingBlockById(Long id) throws BusinessException;", "ch.crif_online.www.webservices.crifsoapservice.v1_00.BranchOfficeList getBranchOfficeList();", "Collection<BuildFilterForm> getBuildFilterForms(ID branchId);", "List<Block> getBlocksByCongName(String congName);", "public alluxio.proto.journal.File.NewBlockEntry.Builder getNewBlockBuilder() {\n bitField0_ |= 0x00200000;\n onChanged();\n return getNewBlockFieldBuilder().getBuilder();\n }", "private List<Branch> findBranchs()\r\n\t{\t\r\n\t\tList<Branch> localBranchs = new ArrayList<>();\r\n\t\tHashMap<String, Node> destinationNodes = new HashMap<>();\r\n\t\t\r\n\t\t// Percorre todos os arcos da rede\r\n\t\tfor (Edge edge: this.getEdges())\r\n\t\t{\t\r\n\t\t\t// Se ha carga no no destino do arco, este no � uma folha da rede\r\n\t\t\tif (edge != null && edge.getDestinationNode().getLoads().size() > 0) \r\n\t\t\t{\t\r\n\t\t\t\t// Verifica se h� mais de um arco com a mesma carga\r\n\t\t\t\tif (!destinationNodes.containsKey(edge.getDestinationNode().getLabel()))\r\n\t\t\t\t{\t\t\t\t\t\r\n\t\t\t\t\tBranch branch = new Branch(edge.getDestinationNode().getLabel());\r\n\t\t\t\t\tbranch.addEdges(edge);\r\n\t\t\t\t\tEdge newEdge = edge.getReference();\r\n\t\t\t\t\tdestinationNodes.put(edge.getDestinationNode().getLabel(), edge.getDestinationNode());\r\n\t\t\t\t\t\r\n\t\t\t\t\t// percorre os elementos amontantes do no e monta o laco\r\n\t\t\t\t\twhile (newEdge != null) \r\n\t\t\t\t\t{\t\t\r\n\t\t\t\t\t\tbranch.addEdges(newEdge.getReference());\r\n\t\t\t\t\t\tnewEdge = newEdge.getReference();\r\n\t\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t\tlocalBranchs.add(branch);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\t\r\n\t\r\n\t\treturn localBranchs; \r\n\t}", "public ArrayList<Branch> getBranches() {\r\n\t\ttry {\r\n\t\t\tbranchList.clear();\r\n \tFileInputStream fis = new FileInputStream(BRANCH_FILEPATH);\r\n \tObjectInputStream ois = new ObjectInputStream(fis);\r\n \tBranch obj = null;\r\n \r\n \twhile ((obj=(Branch)ois.readObject())!=null) {\r\n \t\tbranchList.add(obj);\r\n \t}\r\n \tois.close();\r\n }\r\n\t\tcatch (EOFException e) {\r\n\t\t\tSystem.out.println(\"End of file reached.\");\r\n }\r\n catch (ClassNotFoundException e) {\r\n \te.printStackTrace();\r\n }\r\n catch (IOException e) {\r\n \te.printStackTrace();\r\n }\r\n\t\treturn branchList;\r\n\t}", "private List<BedData> readBedDataBlock(RPTreeLeafNodeItem leafHitItem) {\n\n // get the chromosome names associated with the hit region ID's\n int startChromID = leafHitItem.getChromosomeBounds().getStartChromID();\n int endChromID = leafHitItem.getChromosomeBounds().getEndChromID();\n chromosomeMap = chromIDTree.getChromosomeIDMap(startChromID, endChromID);\n\n boolean isLowToHigh = chromDataTree.isIsLowToHigh();\n int uncompressBufSize = chromDataTree.getUncompressBuffSize();\n\n // decompress leaf item data block for feature extraction\n BigBedDataBlock bedDataBlock = new BigBedDataBlock(fis, header, leafHitItem, chromosomeMap, isLowToHigh, uncompressBufSize);\n\n // get data block Bed feature list and set next index to first item\n return bedDataBlock.getBedData(selectionRegion, contained);\n\n }", "private com.google.protobuf.SingleFieldBuilder<\n alluxio.proto.journal.File.NewBlockEntry, alluxio.proto.journal.File.NewBlockEntry.Builder, alluxio.proto.journal.File.NewBlockEntryOrBuilder> \n getNewBlockFieldBuilder() {\n if (newBlockBuilder_ == null) {\n newBlockBuilder_ = new com.google.protobuf.SingleFieldBuilder<\n alluxio.proto.journal.File.NewBlockEntry, alluxio.proto.journal.File.NewBlockEntry.Builder, alluxio.proto.journal.File.NewBlockEntryOrBuilder>(\n newBlock_,\n getParentForChildren(),\n isClean());\n newBlock_ = null;\n }\n return newBlockBuilder_;\n }", "Collection<BuildingBlock> findAllMandatoryBuildingBlocks() throws SystemException;", "public ProductionBlock[] getAllProductionBlocks();", "@Override\n\tpublic List<Fee_Entity> get_all_fee() {\n\t\treturn fee.get_all_fee();\n\t}", "public List<Book> branchBooks(int branchId){\n\t\treturn template.query(\"SELECT * FROM tbl_book JOIN tbl_book_copies ON tbl_book.bookId = tbl_book_copies.bookID\"\n\t\t\t\t+ \" WHERE branchId=? AND noOfCopies >=1\", new Object[] {branchId}, this);\n\t}", "@Override\n\tpublic List<Object[]> findBranchByBrnCode(String brnCode) {\n\t\treturn brnRepo.findBranchByBrnCode(brnCode);\n\t}", "private void populateBranches() {\n\t\tStationsDTO[] station = null;\n\t\ttry {\n\t\t\tstation = handler.getAllBranches();\n\t\t\tif (null != station) {\n\t\t\t\tint len = station.length;\n\t\t\t\tfor (int i = 0; i < len; i++) {\n\t\t\t\t\tcoBranch.add(station[i].getName() + \" - \"\n\t\t\t\t\t\t\t+ station[i].getId());\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (Exception exception) {\n\t\t\texception.printStackTrace();\n\t\t}\n\t}", "public alluxio.proto.journal.Block.BlockInfoEntry.Builder getBlockInfoBuilder() {\n bitField0_ |= 0x00000010;\n onChanged();\n return getBlockInfoFieldBuilder().getBuilder();\n }", "public void loadLiabilitiesBuildingBlocks() {\n\t\tif (this.loadLiabilityTypesFromDB) {\n\t\t\tthis.liabilitiesTypeBuildingBlocks = this.buildingBlockService.findBuildingBlocksbyBranchIdAndBuildingBlockType(this.sessionBean.getCurrentBranch()\n\t\t\t\t\t.getId(), BuildingBlockConstant.LIABILITY_TYPE);\n\t\t\tthis.loadLiabilityTypesFromDB = false;\n\t\t}\n\t}", "BlockBuilder createBlockBuilder(BlockBuilderStatus blockBuilderStatus, int expectedEntries);", "public int getBranchCount() { return _brcnt; }", "public TreeBlockType getTreeBlockType() {\n return this.treeBlockType;\n }", "public List<Map<String, Object>> getAvailableBranches()\n {\n List<String> allTenants = getWikiSelector().getMptIdSelector().getTenants(GWikiWeb.getRootWiki());\n List<Map<String, Object>> branchProps = new ArrayList<Map<String, Object>>();\n\n // default new branch is selected\n this.selectedBranch = NEW_BRANCH;\n\n for (String tenantId : allTenants) {\n\n // if approve you have to copy the file in a branch other than draft\n if (PlcConstants.DRAFT_ID.equalsIgnoreCase(tenantId) == true\n && FileState.APPROVED_CHIEF_EDITOR.name().equals(newPageState) == true) {\n continue;\n }\n\n GWikiProps branchInfoProp = wikiContext.runInTenantContext(tenantId, getWikiSelector(),\n new CallableX<GWikiProps, RuntimeException>()\n {\n @Override\n public GWikiProps call() throws RuntimeException\n {\n return PlcUtils.getBranchInfo(wikiContext);\n }\n });\n\n if (branchInfoProp == null) {\n continue;\n }\n\n // only add offline branches\n if (BranchState.OFFLINE.name()\n .equals(branchInfoProp.getStringValue(PlcConstants.BRANCH_INFO_BRANCH_STATE)) == true) {\n Map<String, Object> m = new HashMap<String, Object>();\n m.putAll(branchInfoProp.getMap());\n m.put(\"RELEASE_DATE_DATE\",\n GWikiProps.parseTimeStamp(branchInfoProp.getStringValue(PlcConstants.BRANCH_INFO_RELEASE_DATE)));\n branchProps.add(m);\n\n // if branch release date matches article release date -> preselect branch\n String release = branchInfoProp.getStringValue(PlcConstants.BRANCH_INFO_RELEASE_DATE);\n Date branchReleaseDate = GWikiProps.parseTimeStamp(release);\n if (branchReleaseDate != null && branchReleaseDate.equals(getStartDateOfArticle())) {\n selectedBranch = branchInfoProp.getStringValue(PlcConstants.BRANCH_INFO_BRANCH_ID);\n }\n }\n }\n return branchProps;\n }", "BlockchainFactory getBlockchainFactory();", "public List<CbmCItemFininceItem> findAll();", "List<BInformation> findAll();", "public List<BbanStructureDTO> getBbanStructures() {\n return bbanStructures;\n }", "Optional<BankBranch> getByCode(String code) throws ObjectNotFoundException;", "private static CurveBuildingBlock toBlock(CurveGroupDefinition groupDefn) {\n ImmutableList.Builder<CurveParameterSize> builder = ImmutableList.builder();\n for (CurveGroupEntry entry : groupDefn.getEntries()) {\n NodalCurveDefinition defn = entry.getCurveDefinition();\n builder.add(CurveParameterSize.of(defn.getName(), defn.getParameterCount()));\n }\n return CurveBuildingBlock.of(builder.build());\n }", "public ArrayList<Byte> generateByteList(VBox editorBox) {\n\n int numSteps = editorBox.getChildren().size();\n ArrayList<Byte> byteList = new ArrayList<>();\n\n for (int i = 0; i < numSteps; i++) {\n Holder h = (Holder) editorBox.getChildren().get(i);\n\n ArrayList<Byte> bytes;\n if (h.getClass().getName().contains(\"ConditionBlock\")) {\n ConditionBlock cb = (ConditionBlock) editorBox.getChildren().get(i);\n bytes = generateConditionBlockCode(cb);\n } else if (h.getClass().getName().contains(\"RepeatBlock\")) {\n RepeatBlock rb = (RepeatBlock) editorBox.getChildren().get(i);\n bytes = generateRepeatBlockCode(rb);\n } else if (h.getClass().getName().contains(\"IfBlock\")) {\n IfBlock ib = (IfBlock) editorBox.getChildren().get(i);\n bytes = generateIfBlockCode(ib);\n } else {\n bytes = generateBlockCode(h);\n }\n\n if (bytes != null) {\n byteList.addAll(bytes);\n }\n }\n return byteList;\n }", "public List<PackerTreeNode<T>> getBranch() {\n final var result = new ArrayList<PackerTreeNode<T>>();\n result.add(this);\n if (parent != null) {\n result.addAll(parent.getBranch());\n }\n return result;\n }", "private void populateSelectedBranches() {\n\t\ttry {\n\t\t\tStationsDTO[] stations = handler.getAllBranches();\n\t\t\tif (null != stations) {\n\t\t\t\tint len = stations.length;\n\t\t\t\tfor (int i = 0; i < len; i++) {\n\t\t\t\t\tcbSB.add(stations[i].getName() + \" - \"\n\t\t\t\t\t\t\t+ stations[i].getId());\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (Exception exception) {\n\t\t\texception.printStackTrace();\n\t\t}\n\t}", "public void fetchAllLeafComponents(List<CourseComponent> leaves, EnumSet<BlockType> types) {\n if (!isContainer() && types.contains(type)) {\n leaves.add(this);\n } else {\n for (CourseComponent comp : children) {\n comp.fetchAllLeafComponents(leaves, types);\n }\n }\n }", "HibBranch getBranch(InternalActionContext ac, HibProject project);", "public Set<InactivationBlockingMetadata> getAllInactivationBlockingDefinitions(\n @SuppressWarnings(\"rawtypes\") Class inactivationBlockedBusinessObjectClass) {\n Set<InactivationBlockingMetadata> blockingClasses\n = getDataDictionary().getAllInactivationBlockingMetadatas(inactivationBlockedBusinessObjectClass);\n if (blockingClasses == null) {\n return Collections.emptySet();\n }\n return blockingClasses;\n }", "private List<Node> findBranchsMesh()\r\n\t{\t\r\n\t\t// Nos que fecham o laco\r\n\t\tList<Node> nodes = new ArrayList<>();\r\n\t\t\r\n\t\tfor (Entry<String, Integer> value : cacheDestinationNodes.entrySet())\r\n\t\t{\r\n\t\t\t// No possui mais de um arco chegando (ANEL!)\r\n\t\t\tif (value.getValue() > 1)\r\n\t\t\t{\r\n\t\t\t\tString label = value.getKey();\r\n\t\t\t\tNode node = cacheNodes.get(label);\r\n\t\t\t\tnodes.add(node);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t// nodes > 1 indica que esta rede possui anel\r\n\t\treturn nodes; \r\n\t}", "Block getBlockByNumber(long number);", "public phaseI.Hdfs.BlockLocations.Builder getNewBlockBuilder() {\n bitField0_ |= 0x00000002;\n onChanged();\n return getNewBlockFieldBuilder().getBuilder();\n }", "public phaseI.Hdfs.BlockLocations.Builder getBlockInfoBuilder() {\n bitField0_ |= 0x00000001;\n onChanged();\n return getBlockInfoFieldBuilder().getBuilder();\n }", "public List<SelectItem> getListSelectItemAllBranch() {\n final List<SelectItem> selectItemAllBranch = new ArrayList<SelectItem>();\n final List<Addresspoint_mst> listAddress = new ArrayList<Addresspoint_mst>();\n for (final Employee_mst emp : this.listAllBranch()) {\n if (!listAddress.contains(emp.getAddresspoint_mst())) {\n listAddress.add(emp.getAddresspoint_mst());\n }\n }\n\n if (listAddress.size() > 0) {\n selectItemAllBranch.add(\n new LabelKeySelectItem(StringUtils.EMPTY_STRING, Messages.get(SummaryReportService.ALL_BRANCH)));\n selectItemAllBranch\n .add(new LabelKeySelectItem(SummaryReportConstants.HQ_CODE, SummaryReportConstants.HQ_NAME_KEY));\n for (final Addresspoint_mst add : listAddress) {\n selectItemAllBranch.add(new SelectItem(add.getAdp_code(), add.getAdp_name_DIRECT()));\n }\n }\n\n return selectItemAllBranch;\n }", "public List<BuildingType> getAllBuildingType()\r\n\t{\n\t\tList<BuildingType> list = new ArrayList<BuildingType>();\r\n\t\t// This is the SP to be called\r\n\t\tString query = \"{ call readAllBuildingType}\";\t\r\n\t\t// Open a connection to DB\r\n\t\tif(conn == null)\r\n\t\t\tconn = JdbcSqlServerConnection.getConnection();\r\n\t\t\r\n\t\ttry\r\n\t\t{\r\n\t\t\t// Prepare the call for SP\r\n\t\t\tcs = conn.prepareCall(query);\r\n\t\t\t// make SP call\r\n\t\t\trs = cs.executeQuery();\r\n\t\t\t//loop the recordset\r\n\t\t\twhile(rs.next())\r\n\t\t\t{\r\n\t\t\t\tBuildingType buildType = new BuildingType();\r\n\t\t\t\tbuildType.setID(rs.getInt(1));\r\n\t\t\t\tbuildType.setDescription(rs.getNString(2));\r\n\t\t\t\tlist.add(buildType);\r\n\t\t\t}\r\n\t\t}catch(Exception ex){\r\n\t\t\tex.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t\t//close che db coonection\r\n\t\tif(conn!=null)\r\n\t\t\ttry {\r\n\t\t\t\tJdbcSqlServerConnection.closeConnection(conn);\r\n\t\t\t} catch (SQLException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\r\n\t\t//return the list of BuildingType\r\n\t\treturn list;\r\n\t\t\r\n\t}", "public String f9Branch() throws Exception {\r\n\t\tString query = \" SELECT DISTINCT CENTER_ID,NVL(CENTER_NAME,' ') \"\r\n\t\t\t+ \" FROM HRMS_CENTER \"\r\n\t\t\t+ \" WHERE IS_ACTIVE='Y'\" \r\n\t\t\t+ \" ORDER BY CENTER_ID\";\r\n\r\n\t\tString[] headers = { getMessage(\"branch.code\"), getMessage(\"branch\") };\r\n\r\n\t\tString[] headerWidth = { \"30\", \"70\" };\r\n\r\n\t\tString[] fieldNames = { \"branchId\", \"branchName\" };\r\n\r\n\t\tint[] columnIndex = { 0, 1 };\r\n\r\n\t\tString submitFlag = \"false\";\r\n\r\n\t\tString submitToMethod = \"\";\r\n\t\tsetF9Window(query, headers, headerWidth, fieldNames, columnIndex,\r\n\t\t\t\tsubmitFlag, submitToMethod);\r\n\r\n\t\treturn \"f9page\";\r\n\t}", "public static BlockExpression block(Class clazz, Iterable<Expression> expressions) { throw Extensions.todo(); }", "public boolean addBranch()\n\t{\n\t\tList<Branch> branches = this.company.getBranches();\n\t\tList<Stock> stocks = this.company.getStocks();\n\t\tint branchNumber = branches.length();\n\t\tint uniqueId = this.company.getBranchCounter();\n\n\t\tbranches.insert(new Branch(uniqueId, uniqueId));\n\n\t\tType t[] = Type.values();\n\t\tColor c[] = Color.values();\n\t\tList<Furniture> furniture = new List<Furniture>();\n\n\t\tint counter = 0;\n\n\t\t// insert chairs\n\t\tfor(int i=0; i<7; i++)\n\t\t{\n\t\t\tfor(int j=0; j<5; j++)\n\t\t\t{\n\t\t\t\tfurniture.insert(new Furniture(counter++, i, t[0], c[j], branches.get(branchNumber), 5));\n\t\t\t}\n\t\t}\n\n\t\t// insert desks\n\t\tfor(int i=0; i<5; i++)\n\t\t{\n\t\t\tfor(int j=0; j<4; j++)\n\t\t\t{\n\t\t\t\tfurniture.insert(new Furniture(counter++, i, t[1], c[j], branches.get(branchNumber), 5));\n\t\t\t}\n\t\t}\n\n\t\t// insert tables\n\t\tfor(int i=0; i<10; i++)\n\t\t{\n\t\t\tfor(int j=0; j<4; j++)\n\t\t\t{\n\t\t\t\tfurniture.insert(new Furniture(counter++, i, t[2], c[j], branches.get(branchNumber), 5));\n\t\t\t}\n\t\t}\n\n\t\t// insert bookcases\n\t\tfor(int i=0; i<12; i++)\n\t\t{\n\t\t\tfurniture.insert(new Furniture(counter++, i, t[3], Color.NONE, branches.get(branchNumber), 5));\n\t\t}\n\n\t\t// insert cabinets\n\t\tfor(int i=0; i<12; i++)\n\t\t{\n\t\t\tfurniture.insert(new Furniture(counter++, i, t[4], Color.NONE, branches.get(branchNumber), 5));\n\t\t}\n\n\n\t\tstocks.insert(new Stock(uniqueId, furniture));\n\n\t\treturn true;\n\t}", "public List<MLocoBrakeType> getbreaktyp() {\n\t\t\tList<MLocoBrakeType> getbreaktype = new ArrayList<>();\t\t\t\n\t\t\tobj_breaktyperepo.findAll()\n\t\t\t.forEach(getbreaktype::add);\n\t\t\treturn getbreaktype;\n\t\t\t\n\t\t\t\t\t}", "public int[] getBusesForBranch(int br)\n\t{\n\t\tint endq = br*2;\n\t\tint endp = endq+1;\n\t\treturn new int[] {_far[endp],_far[endq]};\n\t}", "@Transactional(readOnly = true)\n public List<DropdownDTO> getBranchCodeList(Integer status) {\n sqlQuery = properties.getProperty(\"CommonDao.getBranchCodeList\");\n Query hQuery = hibernateQuery(sqlQuery, DropdownDTO.class)\n .setParameter(\"status\", status);\n return (List<DropdownDTO>) hQuery.list();\n }", "List<BranchDto> getByRegion(int regionId) throws ServiceException;", "List<TbFreightTemplate> selectAll();", "public ArrayList<BEDentry> getHallmarkBEDEntries() {\n\t\t\n\t\tfinal String chrom = getBEDentry().getChrom(); \n\t\tfinal String parent_name = getBEDentry().getName(); \n\t\tfinal String strand = getBEDentry().getStrand(); \n\t\t \n\t\tArrayList<BEDentry> bedList = new ArrayList<BEDentry>(); \n\t\tbedList.add( new BEDentry(chrom, getLast5SSPos(), getLast5SSPos()+1, (parent_name + \"_5SS\"), strand ) ); \n\t\tbedList.add( new BEDentry(chrom, getLast3SSPos(), getLast3SSPos()+1, (parent_name + \"_3SS\"), strand ) );\n\t\tbedList.add( new BEDentry(chrom, getPolyA(), getPolyA()+1, (parent_name + \"_PolyASite\"), strand ) ); \n\t\t\n\t\n\t\treturn( bedList ); \n\t}", "public Map<String, List<Fee>> getFeesByCategories(){\r\n\t\tMap<String, List<Fee>> res = new HashMap<String, List<Fee>>();\r\n\t\tString req=\"select f.id, f.date, f.amount, f.label, c.label as catlab \"\r\n\t\t\t\t\t+ \"from fee f, category c \"\r\n\t\t\t\t\t+ \"where c.id = f.categoryid \"\r\n\t\t\t\t\t+ \"and strftime('%m%Y', f.date) = strftime('%m%Y', date('now')) \"\r\n\t\t\t\t\t+ \"order by f.date desc;\";\r\n\t\t\r\n\t\tCursor cursor = database.rawQuery(req, null);\t\t\t\t\r\n\t\tif (cursor.moveToFirst()) {\r\n\t\t\tdo {\r\n\t\t\t\tFee fee = new Fee();\r\n\t\t\t\tfee.setId(cursor.getString(0));\r\n\t\t\t\tfee.setDate(cursor.getString(1));\r\n\t\t\t\tfee.setAmount(cursor.getString(2));\r\n\t\t\t\tfee.setLabel(cursor.getString(3));\t\r\n\t\t\t\tif(res.containsKey(cursor.getString(4))){\r\n\t\t\t\t\t res.get(cursor.getString(4)).add(fee);\r\n\t\t\t\t}else{\r\n\t\t\t\t\tList<Fee> list = new ArrayList<Fee>();\r\n\t\t\t\t\tlist.add(fee);\r\n\t\t\t\t\tres.put(cursor.getString(4), list);\r\n\t\t\t\t}\r\n\t\t\t} while (cursor.moveToNext());\r\n\t\t}\r\n\t\tif (cursor != null && !cursor.isClosed()) {\r\n\t\t\tcursor.close();\r\n\t\t}\r\n\t\t\r\n\t\treturn res;\r\n\t}", "public Branch find_Branch(Integer branch_id) {\n return branch_dao.find(branch_id);\n }", "private static List<Element> getXMLBlocks(Model model) {\n Set<Block> blocks = new TreeSet<>(Comparators.objectsById());\n blocks.addAll(model.getBlocks(null));\n List<Element> result = new ArrayList<>(blocks.size());\n for (Block curBlock : blocks) {\n Element blockElement = new Element(\"block\");\n blockElement.setAttribute(\"id\", String.valueOf(curBlock.getId()));\n blockElement.setAttribute(\"name\", curBlock.getName());\n for (TCSResourceReference<?> curRef : curBlock.getMembers()) {\n Element resourceElement = new Element(\"member\");\n resourceElement.setAttribute(\"name\", curRef.getName());\n blockElement.addContent(resourceElement);\n }\n for (Map.Entry<String, String> curEntry\n : curBlock.getProperties().entrySet()) {\n Element propertyElement = new Element(\"property\");\n propertyElement.setAttribute(\"name\", curEntry.getKey());\n propertyElement.setAttribute(\"value\", curEntry.getValue());\n blockElement.addContent(propertyElement);\n }\n result.add(blockElement);\n }\n return result;\n }", "private com.google.protobuf.SingleFieldBuilder<\n alluxio.proto.journal.Block.BlockInfoEntry, alluxio.proto.journal.Block.BlockInfoEntry.Builder, alluxio.proto.journal.Block.BlockInfoEntryOrBuilder> \n getBlockInfoFieldBuilder() {\n if (blockInfoBuilder_ == null) {\n blockInfoBuilder_ = new com.google.protobuf.SingleFieldBuilder<\n alluxio.proto.journal.Block.BlockInfoEntry, alluxio.proto.journal.Block.BlockInfoEntry.Builder, alluxio.proto.journal.Block.BlockInfoEntryOrBuilder>(\n blockInfo_,\n getParentForChildren(),\n isClean());\n blockInfo_ = null;\n }\n return blockInfoBuilder_;\n }", "public void makeCFG() {\n\t\tArrayList<Integer> entryToBB1 = new ArrayList<>();\n\t\tentryToBB1.add(1);\n\t\tCFG.put(0, entryToBB1);\n\t\tfor (int i = 1; i <= BasicBlocks.size(); i++) {\n\t\t\tArrayList<Integer> targetBBList = new ArrayList<>();\n\t\t\tArrayList<String> BB = BasicBlocks.get(i);\n\t\t\tString lastCode = BB.get(BB.size() - 1);\n\t\t\tString label = lastCode;\n\t\t\tint targetBB;\n\n\t\t\t// Branch (1): fjp\n\t\t\tif (lastCode.charAt(0) == 'f' && lastCode.charAt(1) == 'j') {\n\t\t\t\tif (i != BasicBlocks.size()) {\n\t\t\t\t\ttargetBBList.add(i + 1);\n\t\t\t\t} else {\n\t\t\t\t\ttargetBBList.add(-1);\n\t\t\t\t}\n\t\t\t\tlabel = label.substring(4, label.length());\n\t\t\t\ttargetBB = findTargetBB(label);\n\t\t\t\ttargetBBList.add(targetBB);\n\n\t\t\t}\n\t\t\t// Branch (2): ujp\n\t\t\telse if (lastCode.charAt(0) == 'u' && lastCode.charAt(1) == 'j') {\n\t\t\t\tlabel = label.substring(4, label.length());\n\t\t\t\ttargetBB = findTargetBB(label);\n\t\t\t\ttargetBBList.add(targetBB);\n\t\t\t}\n\t\t\t// Normal Code & 'Exit'\n\t\t\telse {\n\t\t\t\tif (i != BasicBlocks.size()) {\n\t\t\t\t\ttargetBBList.add(i + 1);\n\t\t\t\t} else {\n\t\t\t\t\ttargetBBList.add(-1);\n\t\t\t\t}\n\t\t\t}\n\t\t\tCFG.put(i, targetBBList);\n\t\t}\n\t}", "@Override\n public GetBranchResult getBranch(GetBranchRequest request) {\n request = beforeClientExecution(request);\n return executeGetBranch(request);\n }", "public ArrayList<BikeType> getAllTypes(){\n typelist = new ArrayList<>();\n\n try(Connection con = DatabaseConnector.getConnection();\n PreparedStatement ps = con.prepareStatement(ALL_TYPES);\n ResultSet rs = ps.executeQuery()){\n\n while(rs.next()){\n BikeType type = new BikeType(rs.getString(cTypeName),rs.getDouble(cRentalPrice));\n type.setTypeId(rs.getInt(cTypeId));\n typelist.add(type);\n }\n\n }catch(Exception e){\n System.out.println(\"Exception: \" + e);\n }\n return typelist;\n }", "public List<Block> blocks() {\r\n List<Block> list = new ArrayList<Block>();\r\n double width = 50;\r\n for (int i = 0; i < 7; ++i) {\r\n Color c = new Color(0, 0, 0);\r\n switch (i) {\r\n case 0:\r\n c = Color.gray;\r\n break;\r\n case 1:\r\n c = Color.red;\r\n break;\r\n case 2:\r\n c = Color.yellow;\r\n break;\r\n case 3:\r\n c = Color.green;\r\n break;\r\n case 4:\r\n c = Color.white;\r\n break;\r\n case 5:\r\n c = Color.pink;\r\n break;\r\n default:\r\n c = Color.cyan;\r\n break;\r\n }\r\n for (int j = 0; j < 15; ++j) {\r\n Block b = new Block(new Rectangle(new Point(\r\n 25 + j * width, 100 + i * 20), width, 20));\r\n if (i == 0) {\r\n b.setHitPoints(2);\r\n } else {\r\n b.setHitPoints(1);\r\n }\r\n list.add(b);\r\n }\r\n }\r\n return list;\r\n }", "@GetMapping(\"/getallblock\")\n\tpublic List<StudentRegistration> getAllBlockStudent() {\n\t\treturn srepo.findByStatus(\"blocked\");\n\t}", "public BranchType getBranchType() {\n long __key = this.branchTypeId;\n if (branchType__resolvedKey == null || !branchType__resolvedKey.equals(__key)) {\n if (daoSession == null) {\n throw new DaoException(\"Entity is detached from DAO context\");\n }\n BranchTypeDao targetDao = daoSession.getBranchTypeDao();\n BranchType branchTypeNew = targetDao.load(__key);\n synchronized (this) {\n branchType = branchTypeNew;\n \tbranchType__resolvedKey = __key;\n }\n }\n return branchType;\n }", "public String getBranchcode() {\n return branchcode;\n }", "private static ArrayList<MyAbstractContainer> variousBBC_allCases(boolean isSrc) {\n final int limit = isSrc ? BB_SRC_LIMIT : BB_DST_LIMIT;\n ArrayList<MyAbstractContainer> result = new ArrayList<MyAbstractContainer>();\n for (ByteBuffer bb : variousBB_allCases(limit)) {\n result.add(new MyBBContainer(bb));\n }\n return result;\n }", "@Override\n\tpublic List<?> extractDataFirstLevel(ResultSet rs) throws SQLException {\n\t\tList<LibraryBranch> libraries = new ArrayList<LibraryBranch>();\n\n\t\twhile (rs.next()) {\n\t\t\tLibraryBranch l = new LibraryBranch();\n\t\t\tl.setBranchId(rs.getInt(\"branchId\"));\n\t\t\tl.setBranchName(rs.getString(\"branchName\"));\n\t\t\tl.setBranchAddress(rs.getString(\"branchAddress\"));\n\n\t\t\tlibraries.add(l);\n\t\t}\n\t\treturn libraries;\n\t}", "Collection<BuildFilterResource<?>> getBuildFilters(ID branchId);", "BAnyBlock createBAnyBlock();", "List<Block> blocks();", "protected static List<Critter> getBabies() {\n return babies;\n }", "List<Bill> findBillsForReservation(long reservationId);", "List<Block> search(String searchTerm);", "alluxio.proto.journal.File.NewBlockEntry getNewBlock();", "public File getBranch() {\n return _branch;\n }", "@Lookup\n HealthBlock findHealthBlockByParentCode(@LookupField(name = \"stateCode\") Long stateCode, @LookupField(name = \"districtCode\") Long districtCode,\n @LookupField(name = \"talukaCode\") Long talukaCode, @LookupField(name = \"healthBlockCode\") Long healthBlockCode);", "public ArrayList <Branch> createBranch(){\n\t\tPVector dir1 =PVector.sub(loc_end,loc_begin);\n\t\tPVector dir2 =PVector.sub(loc_end,loc_begin);\n\t\t//println(\"loc_newEnd1: \"+loc_end.x+\" : \"+loc_end.y);\n\t\t//println(\"loc_newEnd1: \"+dir1.x+\" : \"+dir1.y);\n\t\tdir1.rotate(random(PI/4,PI/5));\n\t\tdir1.mult(0.67f);\n\t\tPVector loc_newEnd1 = PVector.add(loc_end,dir1);\n\t\tBranch branch_a = new Branch(this.loc_end,loc_newEnd1);\n\t\t\n\t\tdir2.rotate(random(-PI/4,-PI/5));\n\t\tdir2.mult(0.67f);\n\t\tPVector loc_newEnd2 = PVector.add(loc_end,dir2);\n\t\tBranch branch_b = new Branch(this.loc_end,loc_newEnd2);\n\n\t\tArrayList<Branch> bs = new ArrayList<Branch>() ;\n\t\tbs.add(branch_a);\n\t\tbs.add(branch_b);\n\t\tcomplete=true;\n\n\t\t\n\t\t//println(\"loc_newEnd2: \"+loc_newEnd2.x+\" : \"+loc_newEnd2.y);\n\t\t\n\t\treturn bs;\n\n\t}", "public List<BlockID> getLeafList()\n {\n return leafBlocks;\n }", "private com.google.protobuf.SingleFieldBuilderV3<\n phaseI.Hdfs.BlockLocations, phaseI.Hdfs.BlockLocations.Builder, phaseI.Hdfs.BlockLocationsOrBuilder> \n getNewBlockFieldBuilder() {\n if (newBlockBuilder_ == null) {\n newBlockBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n phaseI.Hdfs.BlockLocations, phaseI.Hdfs.BlockLocations.Builder, phaseI.Hdfs.BlockLocationsOrBuilder>(\n getNewBlock(),\n getParentForChildren(),\n isClean());\n newBlock_ = null;\n }\n return newBlockBuilder_;\n }", "public String getBranchNo() {\r\n return branchNo;\r\n }", "public java.util.List<cosmos.base.v1beta1.CoinOuterClass.Coin.Builder> \n getFundsBuilderList() {\n return getFundsFieldBuilder().getBuilderList();\n }", "public java.util.List<cosmos.base.v1beta1.CoinOuterClass.Coin.Builder> \n getFundsBuilderList() {\n return getFundsFieldBuilder().getBuilderList();\n }", "public interface BuildingBlockService {\n\n\t/**\n\t * Retrieves the building block by id.\n\t * \n\t * @param id\n\t * the id of building block to be retrieved.\n\t * @return building block.\n\t * @throws BusinessException\n\t * In case of exception.\n\t */\n\tBuildingBlock findBuildingBlockById(Long id) throws BusinessException;\n\n\t/**\n\t * Retrieves all building blocks available.\n\t * \n\t * @return all building blocks available.\n\t * @throws BusinessException\n\t * In case of exception.\n\t */\n\tCollection<BuildingBlock> findAllBuildingBlocks() throws BusinessException;\n\n\t/**\n\t * Saves the building block.\n\t * \n\t * @return the persisted building block.\n\t * @throws BusinessException\n\t * In case of exception.\n\t */\n\tBuildingBlock saveBuildingBlock(BuildingBlock buildingBlock) throws BusinessException;\n\n\t/**\n\t * Removes the building block.\n\t * \n\t * @throws BusinessException\n\t * In case of exception.\n\t */\n\tvoid removeBuildingBlock(BuildingBlock buildingBlock) throws BusinessException;\n\n\t/**\n\t * Retrieves all building blocks by building block type.\n\t * \n\t * @return all building blocks by building block type.\n\t * @throws BusinessException\n\t * In case of exception.\n\t */\n\tCollection<BuildingBlock> findBuildingBlocksByType(BuildingBlockConstant buildingBlockType) throws BusinessException;\n\n\t/**\n\t * Retrieves all building blocks for branch id.\n\t * \n\t * @param branchId\n\t * branch object id for which all building blocks have to be\n\t * retrieved.\n\t * @return all building blocks for branch id.\n\t * @throws BusinessException\n\t * In case of exception.\n\t */\n\tCollection<BuildingBlock> findBuildingBlocksbyBranchId(Long branchId) throws BusinessException;\n\n\t/**\n\t * Retrieves all building blocks for branch id and building block type.\n\t * \n\t * @param branchId\n\t * branch object id.\n\t * @param buildingBlockType\n\t * building block type.\n\t * @return all building blocks for branch id and building block type.\n\t * @throws BusinessException\n\t * In case of exception.\n\t */\n\tCollection<BuildingBlock> findBuildingBlocksbyBranchIdAndBuildingBlockType(Long branchId, BuildingBlockConstant buildingBlockType) throws BusinessException;\n\n\t/**\n\t * Retrieves building block by building block type and code.\n\t * \n\t * @param buildingBlockType\n\t * building block type.\n\t * \n\t * @param code\n\t * building block code.\n\t * @return all building blocks by building block type.\n\t * @throws BusinessException\n\t * In case of exception.\n\t */\n\tBuildingBlock findBuildingBlockByTypeAndCode(BuildingBlockConstant buildingBlockType, String code) throws BusinessException;\n\n\t/**\n\t * Retrieve all mandatory building blocks.\n\t * \n\t * @return collection of all mandatory building blocks.\n\t */\n\tCollection<BuildingBlock> findAllMandatoryBuildingBlocks() throws SystemException;\n\n\t/**\n\t * Retrieve all fee Type building blocks for a branch by fee classification.\n\t * \n\t * @param branchId\n\t * the branch id.\n\t * @param feeClassificationLevel\n\t * the fee classification level constant.\n\t * @return\n\t * @throws BusinessException\n\t * in case of any business exceptions.\n\t */\n\tCollection<BuildingBlock> findFeeTypeBuildingBlocksbyBranchIdAndFeeClassificationLevel(final Long branchId,\n\t\t\tFeeClassificationLevelConstant feeClassificationLevel) throws BusinessException, SystemException;\n\n\t/**\n\t * Retrieve all fee Type building block for a branch by fee type.\n\t * \n\t * @param branchId\n\t * the branch id.\n\t * @param feeClassificationLevel\n\t * the fee classification level constant.\n\t * @return\n\t * @throws BusinessException\n\t * in case of any business exceptions.\n\t */\n\tCollection<BuildingBlock> findFeeTypeBuildingBlocksbyBranchIdAndFeeType(Long branchId, final FeeTypeConstant feeTypeConstant) throws BusinessException,\n\t\t\tSystemException;\n}", "List<MembershipFeeDTO> findAll();", "List<WayBill> getAllWayBill();", "public List<LibraryBranch> readBranchesByName(String branchName) {\n\t\treturn null;\n\t}", "private TreeNode getBranch(TreeNode treeNode, int sel) {\n TreeNode ret = null;\n int i = 0, prevCardinal = 1;\n if(sel == 0 && !treeNode.isLeaf()){\n return treeNode;\n }\n if(treeNode.isLeaf()){\n return null;\n }\n while(ret == null && i <treeNode.getChildren().length){\n ret = getBranch(treeNode.getChildren()[i], sel - prevCardinal);\n prevCardinal += treeNode.getChildren()[i].getHeight() - getLeafCardinal(treeNode.getChildren()[i]);\n i++;\n }\n return ret;\n }", "public List<Brands> LoadAllBrands() {\n Brands brands = null;\n List<Brands> brandsList = new ArrayList<>();\n try {\n Connection connection = DBConnection.getConnectionToDatabase();\n // String sql = \"SELECT * FROM `humusam_root`.`Users` WHERE UserEmail=\" + email;\n String sql = \"SELECT * FROM `brands`\";\n Statement statment = connection.createStatement();\n ResultSet set = statment.executeQuery(sql);\n ListBrands(brandsList, set);\n } catch (SQLException exception) {\n System.out.println(\"sqlException in Application in LoadAllBrands Section : \" + exception);\n exception.printStackTrace();\n }\n\n return brandsList;\n }", "public BlockType[] getBlocks() {\n return blocks;\n }", "BlockBuilder createBlockBuilder(BlockBuilderStatus blockBuilderStatus, int expectedEntries, int expectedBytesPerEntry);", "public BCClass getTypeBC() {\n return getProject().loadClass(getType());\n }", "private BaleElement.Branch createOuterBranch(BaleAstNode sn)\n{\n switch (sn.getNodeType()) {\n case FILE :\n\t return new BaleElement.CompilationUnitNode(for_document,cur_parent);\n case CLASS :\n\t return new BaleElement.ClassNode(for_document,cur_parent);\n case METHOD :\n\t return new BaleElement.MethodNode(for_document,cur_parent);\n case FIELD :\n\t return new BaleElement.FieldNode(for_document,cur_parent);\n case ANNOTATION :\n\t return new BaleElement.AnnotationNode(for_document,cur_parent);\n case STATEMENT :\n\t return new BaleElement.SplitStatementNode(for_document,cur_parent);\n case EXPRESSION :\n\t return new BaleElement.SplitExpressionNode(for_document,cur_parent);\n case BLOCK :\n\t return new BaleElement.BlockNode(for_document,cur_parent);\n case SWITCH_BLOCK :\n\t return new BaleElement.SwitchBlockNode(for_document,cur_parent);\n case INITIALIZER :\n\t return new BaleElement.InitializerNode(for_document,cur_parent);\n case SET :\n\t // return new BaleElement.DeclSet(for_document,cur_parent);\n\t break;\n default:\n\t break;\n }\n return null;\n}", "alluxio.proto.journal.File.NewBlockEntryOrBuilder getNewBlockOrBuilder();", "public String getBranchno() {\n return branchno;\n }" ]
[ "0.75419295", "0.70518214", "0.6779421", "0.6774471", "0.6562099", "0.5651718", "0.55064225", "0.5406146", "0.5405818", "0.5405617", "0.5399644", "0.51986223", "0.51946384", "0.51866955", "0.5132046", "0.5110421", "0.50259364", "0.4989588", "0.4964487", "0.495023", "0.49013957", "0.48981532", "0.48798272", "0.4859934", "0.48537657", "0.4842263", "0.482063", "0.48140964", "0.48058867", "0.48013142", "0.47875074", "0.47620547", "0.47413734", "0.47062725", "0.4685912", "0.4683208", "0.4673029", "0.46727377", "0.4655249", "0.46502462", "0.4616438", "0.46050048", "0.4601327", "0.45959294", "0.45862556", "0.45642555", "0.45598835", "0.4555238", "0.45546478", "0.45544645", "0.454967", "0.4545727", "0.45375022", "0.45358402", "0.452939", "0.45279232", "0.45241192", "0.45219746", "0.4516623", "0.45129818", "0.44720018", "0.4463032", "0.44588202", "0.44565988", "0.4446209", "0.44403827", "0.44371736", "0.44350332", "0.44305125", "0.4428237", "0.44272718", "0.44240698", "0.4415472", "0.4409197", "0.4404668", "0.4398527", "0.43902808", "0.4390042", "0.43887964", "0.43876484", "0.43841776", "0.43821275", "0.4378797", "0.4376984", "0.43738896", "0.43728843", "0.4367825", "0.4367825", "0.4366998", "0.43663138", "0.43662244", "0.43641707", "0.4347107", "0.43430397", "0.43401697", "0.4334786", "0.43233392", "0.43223932", "0.431959", "0.43185994" ]
0.75541663
0
Retrieve all fee Type building block for a branch by fee type.
Collection<BuildingBlock> findFeeTypeBuildingBlocksbyBranchIdAndFeeType(Long branchId, final FeeTypeConstant feeTypeConstant) throws BusinessException, SystemException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Collection<BuildingBlock> findBuildingBlocksByType(BuildingBlockConstant buildingBlockType) throws BusinessException;", "Collection<BuildingBlock> findFeeTypeBuildingBlocksbyBranchIdAndFeeClassificationLevel(final Long branchId,\n\t\t\tFeeClassificationLevelConstant feeClassificationLevel) throws BusinessException, SystemException;", "Collection<BuildingBlock> findBuildingBlocksbyBranchId(Long branchId) throws BusinessException;", "Collection<BuildingBlock> findBuildingBlocksbyBranchIdAndBuildingBlockType(Long branchId, BuildingBlockConstant buildingBlockType) throws BusinessException;", "Collection<BuildingBlock> findAllBuildingBlocks() throws BusinessException;", "BuildingBlock findBuildingBlockByTypeAndCode(BuildingBlockConstant buildingBlockType, String code) throws BusinessException;", "BuildingBlock findBuildingBlockById(Long id) throws BusinessException;", "public List<Branch> getBranchListForBank(String name);", "Set<Branch> getBranches(Collection<Project> projects, BranchType brType, boolean onlyCommon);", "Collection<BuildFilterForm> getBuildFilterForms(ID branchId);", "BranchingBlock createBranchingBlock();", "public List<Branch> getBranchs()\r\n\t{\t\r\n\t\tif (branchs.size() == 0)\r\n\t\t{\r\n\t\t\t//Lacos abertos carga x terra (redes radiais)\r\n\t\t\tbranchs.addAll(findBranchs());\t\t\r\n\t\t\r\n\t\t}\r\n\t\treturn branchs; \r\n\t}", "public TreeBlockType getTreeBlockType() {\n return this.treeBlockType;\n }", "public alluxio.proto.journal.Block.BlockInfoEntry.Builder getBlockInfoBuilder() {\n bitField0_ |= 0x00000010;\n onChanged();\n return getBlockInfoFieldBuilder().getBuilder();\n }", "List<Block> getBlocksByCongName(String congName);", "public alluxio.proto.journal.File.NewBlockEntry.Builder getNewBlockBuilder() {\n bitField0_ |= 0x00200000;\n onChanged();\n return getNewBlockFieldBuilder().getBuilder();\n }", "private com.google.protobuf.SingleFieldBuilder<\n alluxio.proto.journal.File.NewBlockEntry, alluxio.proto.journal.File.NewBlockEntry.Builder, alluxio.proto.journal.File.NewBlockEntryOrBuilder> \n getNewBlockFieldBuilder() {\n if (newBlockBuilder_ == null) {\n newBlockBuilder_ = new com.google.protobuf.SingleFieldBuilder<\n alluxio.proto.journal.File.NewBlockEntry, alluxio.proto.journal.File.NewBlockEntry.Builder, alluxio.proto.journal.File.NewBlockEntryOrBuilder>(\n newBlock_,\n getParentForChildren(),\n isClean());\n newBlock_ = null;\n }\n return newBlockBuilder_;\n }", "ch.crif_online.www.webservices.crifsoapservice.v1_00.BranchOfficeList getBranchOfficeList();", "public BranchType getBranchType() {\n long __key = this.branchTypeId;\n if (branchType__resolvedKey == null || !branchType__resolvedKey.equals(__key)) {\n if (daoSession == null) {\n throw new DaoException(\"Entity is detached from DAO context\");\n }\n BranchTypeDao targetDao = daoSession.getBranchTypeDao();\n BranchType branchTypeNew = targetDao.load(__key);\n synchronized (this) {\n branchType = branchTypeNew;\n \tbranchType__resolvedKey = __key;\n }\n }\n return branchType;\n }", "MultipleBranchingBlock createMultipleBranchingBlock();", "public List<BbanStructureDTO> getBbanStructures() {\n return bbanStructures;\n }", "public ArrayList<BikeType> getAllTypes(){\n typelist = new ArrayList<>();\n\n try(Connection con = DatabaseConnector.getConnection();\n PreparedStatement ps = con.prepareStatement(ALL_TYPES);\n ResultSet rs = ps.executeQuery()){\n\n while(rs.next()){\n BikeType type = new BikeType(rs.getString(cTypeName),rs.getDouble(cRentalPrice));\n type.setTypeId(rs.getInt(cTypeId));\n typelist.add(type);\n }\n\n }catch(Exception e){\n System.out.println(\"Exception: \" + e);\n }\n return typelist;\n }", "@Override\n\tpublic List<Fee_Entity> get_all_fee() {\n\t\treturn fee.get_all_fee();\n\t}", "private com.google.protobuf.SingleFieldBuilder<\n alluxio.proto.journal.Block.BlockInfoEntry, alluxio.proto.journal.Block.BlockInfoEntry.Builder, alluxio.proto.journal.Block.BlockInfoEntryOrBuilder> \n getBlockInfoFieldBuilder() {\n if (blockInfoBuilder_ == null) {\n blockInfoBuilder_ = new com.google.protobuf.SingleFieldBuilder<\n alluxio.proto.journal.Block.BlockInfoEntry, alluxio.proto.journal.Block.BlockInfoEntry.Builder, alluxio.proto.journal.Block.BlockInfoEntryOrBuilder>(\n blockInfo_,\n getParentForChildren(),\n isClean());\n blockInfo_ = null;\n }\n return blockInfoBuilder_;\n }", "public List<MLocoBrakeType> getbreaktyp() {\n\t\t\tList<MLocoBrakeType> getbreaktype = new ArrayList<>();\t\t\t\n\t\t\tobj_breaktyperepo.findAll()\n\t\t\t.forEach(getbreaktype::add);\n\t\t\treturn getbreaktype;\n\t\t\t\n\t\t\t\t\t}", "private List<BedData> readBedDataBlock(RPTreeLeafNodeItem leafHitItem) {\n\n // get the chromosome names associated with the hit region ID's\n int startChromID = leafHitItem.getChromosomeBounds().getStartChromID();\n int endChromID = leafHitItem.getChromosomeBounds().getEndChromID();\n chromosomeMap = chromIDTree.getChromosomeIDMap(startChromID, endChromID);\n\n boolean isLowToHigh = chromDataTree.isIsLowToHigh();\n int uncompressBufSize = chromDataTree.getUncompressBuffSize();\n\n // decompress leaf item data block for feature extraction\n BigBedDataBlock bedDataBlock = new BigBedDataBlock(fis, header, leafHitItem, chromosomeMap, isLowToHigh, uncompressBufSize);\n\n // get data block Bed feature list and set next index to first item\n return bedDataBlock.getBedData(selectionRegion, contained);\n\n }", "private void getBMBType(BufferedBitStream stream) throws InterruptedException\n {\n int code = stream.showBits(6);\n int data[];\n\n if (code >= 8) data = BMBTable[ code >>> 2 ];\n else data = BMBTable [ code + 16 ];\n\n stream.flushBits(data[1]);\n mbType = data[0];\n }", "Optional<BankBranch> getByCode(String code) throws ObjectNotFoundException;", "public List<BuildingType> getAllBuildingType()\r\n\t{\n\t\tList<BuildingType> list = new ArrayList<BuildingType>();\r\n\t\t// This is the SP to be called\r\n\t\tString query = \"{ call readAllBuildingType}\";\t\r\n\t\t// Open a connection to DB\r\n\t\tif(conn == null)\r\n\t\t\tconn = JdbcSqlServerConnection.getConnection();\r\n\t\t\r\n\t\ttry\r\n\t\t{\r\n\t\t\t// Prepare the call for SP\r\n\t\t\tcs = conn.prepareCall(query);\r\n\t\t\t// make SP call\r\n\t\t\trs = cs.executeQuery();\r\n\t\t\t//loop the recordset\r\n\t\t\twhile(rs.next())\r\n\t\t\t{\r\n\t\t\t\tBuildingType buildType = new BuildingType();\r\n\t\t\t\tbuildType.setID(rs.getInt(1));\r\n\t\t\t\tbuildType.setDescription(rs.getNString(2));\r\n\t\t\t\tlist.add(buildType);\r\n\t\t\t}\r\n\t\t}catch(Exception ex){\r\n\t\t\tex.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t\t//close che db coonection\r\n\t\tif(conn!=null)\r\n\t\t\ttry {\r\n\t\t\t\tJdbcSqlServerConnection.closeConnection(conn);\r\n\t\t\t} catch (SQLException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\r\n\t\t//return the list of BuildingType\r\n\t\treturn list;\r\n\t\t\r\n\t}", "public ProductionBlock[] getAllProductionBlocks();", "public phaseI.Hdfs.BlockLocations.Builder getBlockInfoBuilder() {\n bitField0_ |= 0x00000001;\n onChanged();\n return getBlockInfoFieldBuilder().getBuilder();\n }", "Collection<BuildingBlock> findAllMandatoryBuildingBlocks() throws SystemException;", "public List<Map<String, Object>> getAvailableBranches()\n {\n List<String> allTenants = getWikiSelector().getMptIdSelector().getTenants(GWikiWeb.getRootWiki());\n List<Map<String, Object>> branchProps = new ArrayList<Map<String, Object>>();\n\n // default new branch is selected\n this.selectedBranch = NEW_BRANCH;\n\n for (String tenantId : allTenants) {\n\n // if approve you have to copy the file in a branch other than draft\n if (PlcConstants.DRAFT_ID.equalsIgnoreCase(tenantId) == true\n && FileState.APPROVED_CHIEF_EDITOR.name().equals(newPageState) == true) {\n continue;\n }\n\n GWikiProps branchInfoProp = wikiContext.runInTenantContext(tenantId, getWikiSelector(),\n new CallableX<GWikiProps, RuntimeException>()\n {\n @Override\n public GWikiProps call() throws RuntimeException\n {\n return PlcUtils.getBranchInfo(wikiContext);\n }\n });\n\n if (branchInfoProp == null) {\n continue;\n }\n\n // only add offline branches\n if (BranchState.OFFLINE.name()\n .equals(branchInfoProp.getStringValue(PlcConstants.BRANCH_INFO_BRANCH_STATE)) == true) {\n Map<String, Object> m = new HashMap<String, Object>();\n m.putAll(branchInfoProp.getMap());\n m.put(\"RELEASE_DATE_DATE\",\n GWikiProps.parseTimeStamp(branchInfoProp.getStringValue(PlcConstants.BRANCH_INFO_RELEASE_DATE)));\n branchProps.add(m);\n\n // if branch release date matches article release date -> preselect branch\n String release = branchInfoProp.getStringValue(PlcConstants.BRANCH_INFO_RELEASE_DATE);\n Date branchReleaseDate = GWikiProps.parseTimeStamp(release);\n if (branchReleaseDate != null && branchReleaseDate.equals(getStartDateOfArticle())) {\n selectedBranch = branchInfoProp.getStringValue(PlcConstants.BRANCH_INFO_BRANCH_ID);\n }\n }\n }\n return branchProps;\n }", "public DocumentBodyBlock type(TypeEnum type) {\n this.type = type;\n return this;\n }", "public void loadLiabilitiesBuildingBlocks() {\n\t\tif (this.loadLiabilityTypesFromDB) {\n\t\t\tthis.liabilitiesTypeBuildingBlocks = this.buildingBlockService.findBuildingBlocksbyBranchIdAndBuildingBlockType(this.sessionBean.getCurrentBranch()\n\t\t\t\t\t.getId(), BuildingBlockConstant.LIABILITY_TYPE);\n\t\t\tthis.loadLiabilityTypesFromDB = false;\n\t\t}\n\t}", "public BlockType getType()\n {\n return blockType;\n }", "public ArrayList<Byte> generateByteList(VBox editorBox) {\n\n int numSteps = editorBox.getChildren().size();\n ArrayList<Byte> byteList = new ArrayList<>();\n\n for (int i = 0; i < numSteps; i++) {\n Holder h = (Holder) editorBox.getChildren().get(i);\n\n ArrayList<Byte> bytes;\n if (h.getClass().getName().contains(\"ConditionBlock\")) {\n ConditionBlock cb = (ConditionBlock) editorBox.getChildren().get(i);\n bytes = generateConditionBlockCode(cb);\n } else if (h.getClass().getName().contains(\"RepeatBlock\")) {\n RepeatBlock rb = (RepeatBlock) editorBox.getChildren().get(i);\n bytes = generateRepeatBlockCode(rb);\n } else if (h.getClass().getName().contains(\"IfBlock\")) {\n IfBlock ib = (IfBlock) editorBox.getChildren().get(i);\n bytes = generateIfBlockCode(ib);\n } else {\n bytes = generateBlockCode(h);\n }\n\n if (bytes != null) {\n byteList.addAll(bytes);\n }\n }\n return byteList;\n }", "private com.google.protobuf.SingleFieldBuilderV3<\n godot.wire.Wire.Basis, godot.wire.Wire.Basis.Builder, godot.wire.Wire.BasisOrBuilder> \n getBasisValueFieldBuilder() {\n if (basisValueBuilder_ == null) {\n if (!(typeCase_ == 13)) {\n type_ = godot.wire.Wire.Basis.getDefaultInstance();\n }\n basisValueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n godot.wire.Wire.Basis, godot.wire.Wire.Basis.Builder, godot.wire.Wire.BasisOrBuilder>(\n (godot.wire.Wire.Basis) type_,\n getParentForChildren(),\n isClean());\n type_ = null;\n }\n typeCase_ = 13;\n onChanged();;\n return basisValueBuilder_;\n }", "List<BInformation> findAll();", "private List<Branch> findBranchs()\r\n\t{\t\r\n\t\tList<Branch> localBranchs = new ArrayList<>();\r\n\t\tHashMap<String, Node> destinationNodes = new HashMap<>();\r\n\t\t\r\n\t\t// Percorre todos os arcos da rede\r\n\t\tfor (Edge edge: this.getEdges())\r\n\t\t{\t\r\n\t\t\t// Se ha carga no no destino do arco, este no � uma folha da rede\r\n\t\t\tif (edge != null && edge.getDestinationNode().getLoads().size() > 0) \r\n\t\t\t{\t\r\n\t\t\t\t// Verifica se h� mais de um arco com a mesma carga\r\n\t\t\t\tif (!destinationNodes.containsKey(edge.getDestinationNode().getLabel()))\r\n\t\t\t\t{\t\t\t\t\t\r\n\t\t\t\t\tBranch branch = new Branch(edge.getDestinationNode().getLabel());\r\n\t\t\t\t\tbranch.addEdges(edge);\r\n\t\t\t\t\tEdge newEdge = edge.getReference();\r\n\t\t\t\t\tdestinationNodes.put(edge.getDestinationNode().getLabel(), edge.getDestinationNode());\r\n\t\t\t\t\t\r\n\t\t\t\t\t// percorre os elementos amontantes do no e monta o laco\r\n\t\t\t\t\twhile (newEdge != null) \r\n\t\t\t\t\t{\t\t\r\n\t\t\t\t\t\tbranch.addEdges(newEdge.getReference());\r\n\t\t\t\t\t\tnewEdge = newEdge.getReference();\r\n\t\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t\tlocalBranchs.add(branch);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\t\r\n\t\r\n\t\treturn localBranchs; \r\n\t}", "public java.util.List<cosmos.base.v1beta1.CoinOuterClass.Coin.Builder> \n getFundsBuilderList() {\n return getFundsFieldBuilder().getBuilderList();\n }", "public java.util.List<cosmos.base.v1beta1.CoinOuterClass.Coin.Builder> \n getFundsBuilderList() {\n return getFundsFieldBuilder().getBuilderList();\n }", "private void populateBranches() {\n\t\tStationsDTO[] station = null;\n\t\ttry {\n\t\t\tstation = handler.getAllBranches();\n\t\t\tif (null != station) {\n\t\t\t\tint len = station.length;\n\t\t\t\tfor (int i = 0; i < len; i++) {\n\t\t\t\t\tcoBranch.add(station[i].getName() + \" - \"\n\t\t\t\t\t\t\t+ station[i].getId());\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (Exception exception) {\n\t\t\texception.printStackTrace();\n\t\t}\n\t}", "Block getBlockByNumber(long number);", "public String getBillType() {\n return billType;\n }", "public ArrayList<Branch> getBranches() {\r\n\t\ttry {\r\n\t\t\tbranchList.clear();\r\n \tFileInputStream fis = new FileInputStream(BRANCH_FILEPATH);\r\n \tObjectInputStream ois = new ObjectInputStream(fis);\r\n \tBranch obj = null;\r\n \r\n \twhile ((obj=(Branch)ois.readObject())!=null) {\r\n \t\tbranchList.add(obj);\r\n \t}\r\n \tois.close();\r\n }\r\n\t\tcatch (EOFException e) {\r\n\t\t\tSystem.out.println(\"End of file reached.\");\r\n }\r\n catch (ClassNotFoundException e) {\r\n \te.printStackTrace();\r\n }\r\n catch (IOException e) {\r\n \te.printStackTrace();\r\n }\r\n\t\treturn branchList;\r\n\t}", "@Override\n\tpublic List<Object[]> findBranchByBrnCode(String brnCode) {\n\t\treturn brnRepo.findBranchByBrnCode(brnCode);\n\t}", "public phaseI.Hdfs.BlockLocations.Builder getNewBlockBuilder() {\n bitField0_ |= 0x00000002;\n onChanged();\n return getNewBlockFieldBuilder().getBuilder();\n }", "BAnyBlock createBAnyBlock();", "BlockchainFactory getBlockchainFactory();", "public BCClass getTypeBC() {\n return getProject().loadClass(getType());\n }", "private static CurveBuildingBlock toBlock(CurveGroupDefinition groupDefn) {\n ImmutableList.Builder<CurveParameterSize> builder = ImmutableList.builder();\n for (CurveGroupEntry entry : groupDefn.getEntries()) {\n NodalCurveDefinition defn = entry.getCurveDefinition();\n builder.add(CurveParameterSize.of(defn.getName(), defn.getParameterCount()));\n }\n return CurveBuildingBlock.of(builder.build());\n }", "BlockBuilder createBlockBuilder(BlockBuilderStatus blockBuilderStatus, int expectedEntries);", "List<WayBill> getAllWayBill();", "public List<Book> branchBooks(int branchId){\n\t\treturn template.query(\"SELECT * FROM tbl_book JOIN tbl_book_copies ON tbl_book.bookId = tbl_book_copies.bookID\"\n\t\t\t\t+ \" WHERE branchId=? AND noOfCopies >=1\", new Object[] {branchId}, this);\n\t}", "private com.google.protobuf.SingleFieldBuilderV3<\n phaseI.Hdfs.BlockLocations, phaseI.Hdfs.BlockLocations.Builder, phaseI.Hdfs.BlockLocationsOrBuilder> \n getBlockInfoFieldBuilder() {\n if (blockInfoBuilder_ == null) {\n blockInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n phaseI.Hdfs.BlockLocations, phaseI.Hdfs.BlockLocations.Builder, phaseI.Hdfs.BlockLocationsOrBuilder>(\n getBlockInfo(),\n getParentForChildren(),\n isClean());\n blockInfo_ = null;\n }\n return blockInfoBuilder_;\n }", "alluxio.proto.journal.File.NewBlockEntry getNewBlock();", "public TypeBatterie rechercheTypeBatterie(String Num) {\n\t\tint Numero = Integer.parseInt(Num);\n\t\tTypeBatterie T = em.find(TypeBatterie.class, Numero);\n\t\treturn T;\n\t}", "HibBranch getBranch(InternalActionContext ac, HibProject project);", "public static FamilyType getBaseTypeFromFamilyType(FamilyType type) {\n switch (type) {\n case ARTIX7:\n return FamilyType.ARTIX7;\n case ARTIX7L:\n return FamilyType.ARTIX7;\n case ASPARTAN2E:\n return FamilyType.SPARTAN2E;\n case ASPARTAN3:\n return FamilyType.SPARTAN3;\n case ASPARTAN3A:\n return FamilyType.SPARTAN3A;\n case ASPARTAN3ADSP:\n return FamilyType.SPARTAN3ADSP;\n case ASPARTAN3E:\n return FamilyType.SPARTAN3E;\n case ASPARTAN6:\n return FamilyType.SPARTAN6;\n case KINTEX7:\n return FamilyType.KINTEX7;\n case KINTEX7L:\n return FamilyType.KINTEX7;\n case QARTIX7:\n return FamilyType.ARTIX7;\n case QKINTEX7:\n return FamilyType.KINTEX7;\n case QRVIRTEX:\n return FamilyType.VIRTEX;\n case QRVIRTEX2:\n return FamilyType.VIRTEX2;\n case QRVIRTEX4:\n return FamilyType.VIRTEX4;\n case QRVIRTEX5:\n return FamilyType.VIRTEX5;\n case QRVIRTEX6:\n return FamilyType.VIRTEX6;\n case QRVIRTEX7:\n return FamilyType.VIRTEX7;\n case QSPARTAN6:\n return FamilyType.SPARTAN6;\n case QSPARTAN6L:\n return FamilyType.SPARTAN6;\n case QVIRTEX:\n return FamilyType.VIRTEX;\n case QVIRTEX2:\n return FamilyType.VIRTEX2;\n case QVIRTEX2P:\n return FamilyType.VIRTEX2P;\n case QVIRTEX4:\n return FamilyType.VIRTEX4;\n case QVIRTEX5:\n return FamilyType.VIRTEX5;\n case QVIRTEX6:\n return FamilyType.VIRTEX6;\n case QVIRTEX7:\n return FamilyType.VIRTEX7;\n case QVIRTEXE:\n return FamilyType.VIRTEXE;\n case SPARTAN2:\n return FamilyType.SPARTAN2;\n case SPARTAN2E:\n return FamilyType.SPARTAN2E;\n case SPARTAN3:\n return FamilyType.SPARTAN3;\n case SPARTAN3A:\n return FamilyType.SPARTAN3A;\n case SPARTAN3ADSP:\n return FamilyType.SPARTAN3ADSP;\n case SPARTAN3E:\n return FamilyType.SPARTAN3E;\n case SPARTAN6:\n return FamilyType.SPARTAN6;\n case SPARTAN6L:\n return FamilyType.SPARTAN6;\n case VIRTEX:\n return FamilyType.VIRTEX;\n case VIRTEX2:\n return FamilyType.VIRTEX2;\n case VIRTEX2P:\n return FamilyType.VIRTEX2P;\n case VIRTEX4:\n return FamilyType.VIRTEX4;\n case VIRTEX5:\n return FamilyType.VIRTEX5;\n case VIRTEX6:\n return FamilyType.VIRTEX6;\n case VIRTEX6L:\n return FamilyType.VIRTEX6;\n case VIRTEX7:\n return FamilyType.VIRTEX7;\n case VIRTEX7L:\n return FamilyType.VIRTEX7;\n case VIRTEXE:\n return FamilyType.VIRTEXE;\n default:\n return null;\n }\n }", "@Transactional(readOnly = true)\n public List<DropdownDTO> getBranchCodeList(Integer status) {\n sqlQuery = properties.getProperty(\"CommonDao.getBranchCodeList\");\n Query hQuery = hibernateQuery(sqlQuery, DropdownDTO.class)\n .setParameter(\"status\", status);\n return (List<DropdownDTO>) hQuery.list();\n }", "public List<HCLFieldTransaction> getTransactionbyType(String transactionType)\r\n\t\t\tthrows JsonProcessingException, IOException {\r\n\r\n\t\tlogger.info(\"Logger Name: getTransactionbyType() :: \" + logger.getName());\r\n\t\tlogger.debug(\"Transaction Type : getTransactionbyType() :: \" + transactionType);\r\n\t\tObjectMapper mapper = new ObjectMapper();\r\n\r\n\t\tlogger.info(\"Open Bank API URL :: getTotalAmountbyTransactionType() :: \"\r\n\t\t\t\t+ TransactionConstant.THIRD_PARTY_REST_API);\r\n\t\tJsonNode root = mapper.readTree(new URL(TransactionConstant.THIRD_PARTY_REST_API));\r\n\r\n\t\tList<HCLFieldTransaction> transactionList = new ArrayList<HCLFieldTransaction>();\r\n\r\n\t\t/* Traversing Nested JSON node to publish the relevant data */\r\n\t\ttry {\r\n\t\t\tJsonNode transactionsNodes = root.path(\"transactions\");\r\n\r\n\t\t\tfor (JsonNode transactionsNode : transactionsNodes) {\r\n\r\n\t\t\t\tHCLFieldTransaction hclFieldTransaction = new HCLFieldTransaction();\r\n\t\t\t\tJsonNode details = transactionsNode.path(\"details\");\r\n\t\t\t\thclFieldTransaction.setTransactionType(details.path(\"type\").asText());\r\n\r\n\t\t\t\t/* When transactionType is null or empty */\r\n\t\t\t\tif (transactionType == null && details.path(\"type\").isNull() == true) {\r\n\t\t\t\t\thclFieldTransaction.setId(transactionsNode.path(\"id\").asText());\r\n\r\n\t\t\t\t\tJsonNode thisAccount_Node = transactionsNode.path(\"this_account\");\r\n\t\t\t\t\thclFieldTransaction.setAccountId(thisAccount_Node.path(\"id\").asText());\r\n\r\n\t\t\t\t\tJsonNode otherAccount_Node = transactionsNode.path(\"other_account\");\r\n\t\t\t\t\thclFieldTransaction.setCounterpartyAccount(otherAccount_Node.path(\"number\").asText());\r\n\r\n\t\t\t\t\tJsonNode otherAccount_holder_Node = otherAccount_Node.path(\"holder\");\r\n\t\t\t\t\thclFieldTransaction.setCounterpartyName(otherAccount_holder_Node.path(\"name\").asText());\r\n\t\t\t\t\tJsonNode metadata = otherAccount_Node.path(\"metadata\");\r\n\t\t\t\t\thclFieldTransaction.setCounterPartyLogoPath(metadata.path(\"open_corporates_URL\").asText());\r\n\r\n\t\t\t\t\thclFieldTransaction.setTransactionType(details.path(\"type\").asText());\r\n\t\t\t\t\thclFieldTransaction.setDescription(details.path(\"description\").asText());\r\n\r\n\t\t\t\t\tJsonNode value = details.path(\"value\");\r\n\t\t\t\t\thclFieldTransaction.setInstructedAmount(value.path(\"amount\").asDouble());\r\n\r\n\t\t\t\t\thclFieldTransaction.setInstructedCurrency(value.path(\"currency\").asText());\r\n\r\n\t\t\t\t\thclFieldTransaction.setTransactionAmount(value.path(\"amount\").asDouble());\r\n\t\t\t\t\thclFieldTransaction.setTransactionCurrency(value.path(\"currency\").asText());\r\n\t\t\t\t\tlogger.debug(\"Transaction Field Row Value:: \" + hclFieldTransaction.toString());\r\n\r\n\t\t\t\t\t/* Adding specific type of transaction list into one ArrayList */\r\n\t\t\t\t\ttransactionList.add(hclFieldTransaction);\r\n\r\n\t\t\t\t}\r\n\r\n\t\t\t\t/* When transactionType is not null or empty */\r\n\t\t\t\telse if (transactionType != null) {\r\n\r\n\t\t\t\t\tif (hclFieldTransaction.getTransactionType().equalsIgnoreCase(transactionType.trim())) {\r\n\r\n\t\t\t\t\t\tlogger.debug(\"Transaction Type :: \" + transactionType);\r\n\t\t\t\t\t\thclFieldTransaction.setId(transactionsNode.path(\"id\").asText());\r\n\r\n\t\t\t\t\t\tJsonNode thisAccount_Node = transactionsNode.path(\"this_account\");\r\n\t\t\t\t\t\thclFieldTransaction.setAccountId(thisAccount_Node.path(\"id\").asText());\r\n\r\n\t\t\t\t\t\tJsonNode otherAccount_Node = transactionsNode.path(\"other_account\");\r\n\t\t\t\t\t\thclFieldTransaction.setCounterpartyAccount(otherAccount_Node.path(\"number\").asText());\r\n\r\n\t\t\t\t\t\tJsonNode otherAccount_holder_Node = otherAccount_Node.path(\"holder\");\r\n\t\t\t\t\t\thclFieldTransaction.setCounterpartyName(otherAccount_holder_Node.path(\"name\").asText());\r\n\t\t\t\t\t\tJsonNode metadata = otherAccount_Node.path(\"metadata\");\r\n\t\t\t\t\t\thclFieldTransaction.setCounterPartyLogoPath(metadata.path(\"open_corporates_URL\").asText());\r\n\r\n\t\t\t\t\t\thclFieldTransaction.setTransactionType(details.path(\"type\").asText());\r\n\t\t\t\t\t\thclFieldTransaction.setDescription(details.path(\"description\").asText());\r\n\r\n\t\t\t\t\t\tJsonNode value = details.path(\"value\");\r\n\t\t\t\t\t\thclFieldTransaction.setInstructedAmount(value.path(\"amount\").asDouble());\r\n\r\n\t\t\t\t\t\thclFieldTransaction.setInstructedCurrency(value.path(\"currency\").asText());\r\n\r\n\t\t\t\t\t\thclFieldTransaction.setTransactionAmount(value.path(\"amount\").asDouble());\r\n\t\t\t\t\t\thclFieldTransaction.setTransactionCurrency(value.path(\"currency\").asText());\r\n\t\t\t\t\t\tlogger.debug(\"Transaction Field Row Value:: \" + hclFieldTransaction.toString());\r\n\r\n\t\t\t\t\t\t/* Adding specific type of transaction list into one ArrayList */\r\n\t\t\t\t\t\ttransactionList.add(hclFieldTransaction);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\tlogger.error(\"Exception : getTransactionbyType() :: \", e);\r\n\t\t}\r\n\t\tlogger.info(\"Return value from service layer:: getTransactionbyType() :: \" + transactionList.toString());\r\n\t\treturn transactionList;\r\n\r\n\t}", "@Override\n public GetBranchResult getBranch(GetBranchRequest request) {\n request = beforeClientExecution(request);\n return executeGetBranch(request);\n }", "public List<CbmCItemFininceItem> findAll();", "private static List<Element> getXMLBlocks(Model model) {\n Set<Block> blocks = new TreeSet<>(Comparators.objectsById());\n blocks.addAll(model.getBlocks(null));\n List<Element> result = new ArrayList<>(blocks.size());\n for (Block curBlock : blocks) {\n Element blockElement = new Element(\"block\");\n blockElement.setAttribute(\"id\", String.valueOf(curBlock.getId()));\n blockElement.setAttribute(\"name\", curBlock.getName());\n for (TCSResourceReference<?> curRef : curBlock.getMembers()) {\n Element resourceElement = new Element(\"member\");\n resourceElement.setAttribute(\"name\", curRef.getName());\n blockElement.addContent(resourceElement);\n }\n for (Map.Entry<String, String> curEntry\n : curBlock.getProperties().entrySet()) {\n Element propertyElement = new Element(\"property\");\n propertyElement.setAttribute(\"name\", curEntry.getKey());\n propertyElement.setAttribute(\"value\", curEntry.getValue());\n blockElement.addContent(propertyElement);\n }\n result.add(blockElement);\n }\n return result;\n }", "@GetMapping(\"/getallblock\")\n\tpublic List<StudentRegistration> getAllBlockStudent() {\n\t\treturn srepo.findByStatus(\"blocked\");\n\t}", "public godot.wire.Wire.Basis.Builder getBasisBuilder() {\n \n onChanged();\n return getBasisFieldBuilder().getBuilder();\n }", "public Branch find_Branch(Integer branch_id) {\n return branch_dao.find(branch_id);\n }", "Optional<BankBranch> getByName(String name) throws ObjectNotFoundException;", "public Byte getBuildingType() {\n return buildingType;\n }", "cb.Careerbuilder.Company.PhoneType getType();", "private com.google.protobuf.SingleFieldBuilderV3<\n phaseI.Hdfs.BlockLocations, phaseI.Hdfs.BlockLocations.Builder, phaseI.Hdfs.BlockLocationsOrBuilder> \n getNewBlockFieldBuilder() {\n if (newBlockBuilder_ == null) {\n newBlockBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n phaseI.Hdfs.BlockLocations, phaseI.Hdfs.BlockLocations.Builder, phaseI.Hdfs.BlockLocationsOrBuilder>(\n getNewBlock(),\n getParentForChildren(),\n isClean());\n newBlock_ = null;\n }\n return newBlockBuilder_;\n }", "private com.google.protobuf.SingleFieldBuilderV3<\n godot.wire.Wire.Basis, godot.wire.Wire.Basis.Builder, godot.wire.Wire.BasisOrBuilder> \n getBasisFieldBuilder() {\n if (basisBuilder_ == null) {\n basisBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n godot.wire.Wire.Basis, godot.wire.Wire.Basis.Builder, godot.wire.Wire.BasisOrBuilder>(\n getBasis(),\n getParentForChildren(),\n isClean());\n basis_ = null;\n }\n return basisBuilder_;\n }", "alluxio.proto.journal.Block.BlockInfoEntry getBlockInfo();", "public String getBusinessType() {\n\t\treturn businessType;\n\t}", "public List<PackerTreeNode<T>> getBranch() {\n final var result = new ArrayList<PackerTreeNode<T>>();\n result.add(this);\n if (parent != null) {\n result.addAll(parent.getBranch());\n }\n return result;\n }", "@Override\n\tpublic List<FoodType> FindAllType() {\n\t\treturn ftb.FindAllType();\n\t}", "List<BranchDto> getByRegion(int regionId) throws ServiceException;", "private void populateSelectedBranches() {\n\t\ttry {\n\t\t\tStationsDTO[] stations = handler.getAllBranches();\n\t\t\tif (null != stations) {\n\t\t\t\tint len = stations.length;\n\t\t\t\tfor (int i = 0; i < len; i++) {\n\t\t\t\t\tcbSB.add(stations[i].getName() + \" - \"\n\t\t\t\t\t\t\t+ stations[i].getId());\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (Exception exception) {\n\t\t\texception.printStackTrace();\n\t\t}\n\t}", "public java.lang.String getBillType () {\n\t\treturn billType;\n\t}", "void setBbanEntryType(final BbanEntryType type) {\n this.vars.put(\"bbanEntryType\", type.name());\n }", "public List<Type> getAll();", "List<Building> findBuildingCoordinatesByType(String type);", "public BlockType[] getBlocks() {\n return blocks;\n }", "public java.lang.String getBillSubType () {\n\t\treturn billSubType;\n\t}", "public static LinkedList<TempBlock> getAll(Block block) {\r\n\t\treturn instances_.get(block);\r\n\t}", "public int getBranchCount() { return _brcnt; }", "List<TbFreightTemplate> selectAll();", "public String getBusinesstype() {\n return businesstype;\n }", "protected ASPBlock getBizWfBlock()\n {\n return headblk;\n }", "public ArrayList<BEDentry> getHallmarkBEDEntries() {\n\t\t\n\t\tfinal String chrom = getBEDentry().getChrom(); \n\t\tfinal String parent_name = getBEDentry().getName(); \n\t\tfinal String strand = getBEDentry().getStrand(); \n\t\t \n\t\tArrayList<BEDentry> bedList = new ArrayList<BEDentry>(); \n\t\tbedList.add( new BEDentry(chrom, getLast5SSPos(), getLast5SSPos()+1, (parent_name + \"_5SS\"), strand ) ); \n\t\tbedList.add( new BEDentry(chrom, getLast3SSPos(), getLast3SSPos()+1, (parent_name + \"_3SS\"), strand ) );\n\t\tbedList.add( new BEDentry(chrom, getPolyA(), getPolyA()+1, (parent_name + \"_PolyASite\"), strand ) ); \n\t\t\n\t\n\t\treturn( bedList ); \n\t}", "@Override\n\tpublic List<PendingTransaction> getAllTransactionsByType(String transactionType) {\n\t\treturn null;\n\t}", "alluxio.proto.journal.File.NewBlockEntryOrBuilder getNewBlockOrBuilder();", "public void fillBlock(TYPE typeOfBlock){\n isFull=true;\n type=typeOfBlock;\n return;\n }", "public List<Bus> getAllBus() {\n\t\treturn busRepository.findAll();\n\t}", "public List<Bloques> getDataListBloques() {\n\t\tif(dataListBloques == null){\n\t\t\tdataListBloques = new ArrayList<Bloques>();\n\t\t\tdataListBloques = bloquesFacade.findByLike(\"SELECT B FROM Bloques B ORDER BY B.nombre\");\n\t\t}\n\t\treturn dataListBloques;\n\t}", "List<Bill> findBillsForReservation(long reservationId);", "@Lookup\n HealthBlock findHealthBlockByParentCode(@LookupField(name = \"stateCode\") Long stateCode, @LookupField(name = \"districtCode\") Long districtCode,\n @LookupField(name = \"talukaCode\") Long talukaCode, @LookupField(name = \"healthBlockCode\") Long healthBlockCode);", "public String[] getBizTypes() {\n return bizTypes;\n }", "@Override\n\tpublic List<Boletos> getAllBoletos() throws Exception {\n\t\treturn null;\n\t}" ]
[ "0.71707964", "0.71374613", "0.68036836", "0.67809546", "0.6416381", "0.59815866", "0.5453043", "0.52875036", "0.52566993", "0.5186101", "0.5178046", "0.5156912", "0.5105399", "0.5088562", "0.50846857", "0.5083156", "0.5053611", "0.50334775", "0.50169605", "0.5003711", "0.49633822", "0.4954062", "0.49338523", "0.48807985", "0.4849071", "0.48422438", "0.47932968", "0.47912124", "0.47894853", "0.4787587", "0.4779448", "0.4774025", "0.47731814", "0.47606474", "0.4750869", "0.4748816", "0.47265333", "0.4716226", "0.47079766", "0.47067913", "0.47012228", "0.47012228", "0.46957424", "0.46859938", "0.4678524", "0.4675307", "0.46705323", "0.46698397", "0.46673602", "0.46658447", "0.46536145", "0.46520332", "0.46484566", "0.46432173", "0.46386096", "0.4621937", "0.46063432", "0.4604349", "0.45939928", "0.45926735", "0.45812085", "0.4564119", "0.45553258", "0.45541808", "0.45526934", "0.45519271", "0.45517915", "0.45363346", "0.4534316", "0.4533958", "0.453379", "0.45319575", "0.4528533", "0.45230186", "0.45217314", "0.45176226", "0.45101467", "0.4500097", "0.44934624", "0.44858715", "0.44848397", "0.4482344", "0.44754016", "0.44694954", "0.4465822", "0.44644067", "0.44592127", "0.44562772", "0.4455111", "0.44551036", "0.44524032", "0.44487736", "0.44459492", "0.4445409", "0.44429332", "0.44387117", "0.44309083", "0.44296607", "0.4421094", "0.44177786" ]
0.75670993
0
String path = "/Users/amit/Documents/CoreJavaJuneBatch/TestEngine/src/com/brainmentors/testengine/question/helper/QuestionUploadHelper.java";
public void read() throws IOException { String path = "/Users/amit/Documents/songs/A.mp3"; File file = new File(path); final int EOF = -1; if(file.exists()) { System.out.println("Exist..."); FileInputStream fs = new FileInputStream(path); BufferedInputStream bs = new BufferedInputStream(fs); long startTime = System.currentTimeMillis(); int singleByte = bs.read(); // read single byte while(singleByte!=EOF) { //System.out.print((char)singleByte); singleByte = bs.read(); } long endTime = System.currentTimeMillis(); System.out.println("Total Time Taken "+(endTime-startTime)+"ms"); bs.close(); fs.close(); } else { System.out.println("File Not Exist"); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void filePathTest() {\n // TODO: test filePath\n }", "String getFilepath();", "@Test\n\tpublic void test(){\n\t\tFile srcFile = new File(\"E:\\\\Workspaces\\\\MyPro\\\\ssh\\\\WebRoot\\\\products\\\\2\\\\男鞋\");\n//\t\tSystem.out.println(ss);\n\t\tthis.getAllJavaFilePaths(srcFile);\n\t}", "void path(String path);", "void path(String path);", "private String getUploadFileName() {\r\n\t\tJFileChooser fc = new JFileChooser(\"./\");\r\n\t\tint returnVal = fc.showOpenDialog(this);\r\n\t\tif (returnVal != JFileChooser.APPROVE_OPTION) {\r\n\t\t\treturn \"\";\r\n\t\t}\r\n\t\tFile quizFile = fc.getSelectedFile();\r\n\t\treturn quizFile.getAbsolutePath();\r\n\t}", "void uploadingFile(String path);", "private static void findPath()\r\n {\r\n String temp_path = System.getProperty(\"user.dir\");\r\n char last = temp_path.charAt(temp_path.length() - 1);\r\n if(last == 'g')\r\n {\r\n path = \".\";\r\n }\r\n else\r\n {\r\n path = \"./bag\";\r\n }\r\n \r\n }", "private File getClassFile(String name) {\n File file = new File(\"/Users/dingchenchen/Downloads/Test.class\");\n return file;\n }", "Path fileToUpload();", "public static void main(String[] args) { String dirname = \"/home/diego/IdeaProjects/JAVAStuff/src/tmp/dirTest.txt\";\n// File d = new File(dirname);\n// d.mkdirs();\n//\n File file = null;\n String[] paths;\n\n try {\n file = new File(\"/home/diego/IdeaProjects/JAVAStuff/src\");\n paths = file.list();\n\n for(String s: paths) {\n System.out.println(s);\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n\n }", "String getFilePath();", "@Override\n \tprotected File deriveLocalFileCodeBase(Class<?> baseClass)\n \t{\n \t\t// setup codeBase\n \t\tif (baseClass == null)\n \t\t\tbaseClass = this.getClass();\n \n \t\tPackage basePackage = baseClass.getPackage();\n \t\tString packageName = basePackage.getName();\n \t\tString packageNameAsPath = packageName.replace('.', Files.sep);\n \n \t\tString pathName = System.getProperty(\"user.dir\") + Files.sep;\n \t\tFile path = new File(pathName);\n \t\tString pathString = path.getAbsolutePath();\n \n \t\t// println(\"looking for \" + packageNameAsPath +\" in \" + pathString);\n \n \t\tint packageIndex = pathString.lastIndexOf(packageNameAsPath);\n \t\tif (packageIndex != -1)\n \t\t{\n \t\t\tpathString = pathString.substring(0, packageIndex);\n \t\t\tpath = new File(pathString + Files.sep);\n \t\t}\n \n \t\tcodeBase = new ParsedURL(path);\n \t\tprintln(\"codeBase=\" + codeBase);\n \t\treturn path;\n \t}", "public static void main(String[] args) {\n\t\tPath path = Paths.get(\"F:\\\\AccentureMayBatch\\\\JSTLProject\");\r\n\r\n\t\r\n\r\n\t\tSystem.out.format(\"toString: %s%n\", path.toString());\r\n\t\tSystem.out.format(\"getFileName: %s%n\", path.getFileName());\r\n\t\tSystem.out.format(\"getName(0): %s%n\", path.getName(0));\r\n\t\tSystem.out.format(\"getNameCount: %d%n\", path.getNameCount());\r\n\t\tSystem.out.format(\"subpath(0,2): %s%n\", path.subpath(0,2));\r\n\t\tSystem.out.format(\"getParent: %s%n\", path.getParent());\r\n\t\tSystem.out.format(\"getRoot: %s%n\", path.getRoot());\r\n\t\t\r\n\t\ttry {\r\n\t\t\tFiles.list(new File(\".\").toPath())\r\n\t\t\t .forEach(System.out::println);\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tFiles.walk(new File(\".\").toPath())\r\n\t\t .filter(p -> !p.getFileName()\r\n\t\t .toString().startsWith(\".\"))\r\n\t\t .forEach(System.out::println);\r\n\t\t\t\r\n\t\t\tFiles.lines(new File(\"./src/com/polaris/utility/PathDemo.java\").toPath())\r\n\t\t .map(s -> s.trim())\r\n\t\t .filter(s -> !s.isEmpty())\r\n\t\t .forEach(System.out::println);\r\n\t\t} catch (IOException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t//finding path and sub path into string\r\n\t\t Path start = Paths.get(\".\");\r\n\t\t int maxDepth = 5;\r\n\t\t try (Stream<Path> stream = Files.find(start, maxDepth, (path2, attr) -> String.valueOf(path2).endsWith(\".java\"))) \r\n\t\t {\r\n\t\t String joined = stream\r\n\t\t .sorted()\r\n\t\t .map(String::valueOf)\r\n\t\t .collect(Collectors.joining(\"; \"));\r\n\t\t System.out.println(\"Found: \" + joined);\r\n\t\t } catch (IOException e1) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te1.printStackTrace();\r\n\t\t\t}\r\n\t\t \r\n\t\t\r\n\t\tPath source = Paths.get(\"./src/com/polaris/utility/PathDemo.java\");\r\n\t\tPath target = Paths.get(\"F:/yatrabakup\");\r\n\t\t\r\n/*\r\n\t\ttry {\r\n\t\t // Files.copy(source, target);\r\n\t\t} catch(FileAlreadyExistsException fae) {\r\n\t\t fae.printStackTrace();\r\n\t\t} catch (IOException e) {\r\n\t\t // something else went wrong\r\n\t\t e.printStackTrace();\r\n\t\t}\r\n\t\t*/\r\n\t\ttry (BufferedReader reader = Files.newBufferedReader(Paths.get(\"f:\\\\yatrabakup\\\\EmployeeData.csv\"))) {\r\n\t\t reader.lines().map(String::toLowerCase).forEach(System.out::println);\r\n\t\t} catch (IOException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "@Test\r\n public void testToPath() {\r\n System.out.println(\"toPath\");\r\n String id = \"c_58__47_Dojo_32_Workshop_47_test_46_txt\";\r\n String expResult = \"c:/Dojo Workshop/test.txt\";\r\n String result = FileRestHelper.toPath(id);\r\n assertEquals(expResult, result);\r\n }", "@Test\n public void testCreateFilePath() {\n System.out.println(\"createFilePath with realistic path\");\n String path = System.getProperty(\"user.dir\")+fSeparator+\"MyDiaryBook\"\n +fSeparator+\"Users\"+fSeparator+\"Panagiwtis Georgiadis\"+fSeparator+\"Entries\"\n +fSeparator+\"Test1\";\n FilesDao instance = new FilesDao();\n boolean expResult = true;\n boolean result = instance.createFilePath(path);\n assertEquals(\"Some message\",expResult, result);\n }", "public static String getFileName() {\n File base = new File(\"C:/Users/Steve/IdeaProjects/MiniJavaCompiler/samples/clean/\");\n File file = new File(inputFile);\n String relativePath = base.toURI().relativize(file.toURI()).getPath();\n return relativePath;\n }", "public String getPath () throws java.io.IOException, com.linar.jintegra.AutomationException;", "private String filePathToClassname(File file) {\n return file.getPath().replace(\".class\", \"\")\n .replace(\"/\", \".\")\n .replace(\"\\\\\", \".\");\n }", "public ResourcePath() {\n //_externalFolder = \"file:///C:/Program%20Files/ESRI/GPT9/gpt/\";\n //_localFolder = \"gpt/\";\n}", "Path getFilePath();", "public void source(String path) throws Exception;", "public void uploadExamples(String filename,String classKey,String type);", "public FileUploadHelper() throws IOException {\n //For using dynamic path\n }", "String getPath();", "String getPath();", "String getPath();", "String getPath();", "String getPath();", "private String toCompletePath(String fullRequest) {\n \n///Parse request for file path\nString requestLine[] = new String[] {\" \", \" \", \" \"};\n requestLine = fullRequest.split(\" \");\nString partialPath = requestLine[1];\n \n//If requested path is just \"/\" or \"\", don't return any path\n if(partialPath.length() <= 1) {\n noFileRequested = true;\n return null;\n }\n \nString completePath;\n//If using my Windows machine, the path is different than the school Linux machines\nif (Windows)\n completePath = \"C:/Users/Michelle/eclipse-workspace/P1\" + partialPath;\nelse\n completePath = \".\" + partialPath;\n \n return completePath;\n}", "public static void main(String[] args) throws IOException {\n\n\n QuizModel quiz = new QuizModel();\n QuizView quizView = new QuizView();\n QuizController quizMasterController = new QuizController(quiz,quizView);\n //quizMasterController.viewMessage();\n //quizMasterController.getQuiz();\n //quizView.loginPage();\n quiz.generateQuestion();\n\n quiz.uploadFiles();\n QuizRepository quizRepository1 = new QuizRepository();\n quizRepository1.getQuizFile();\n }", "@Test\n\tpublic void bookExists() throws Exception {\n\t\tString directory = System.getProperty(\"user.dir\");\n\t\tFile file = new File(directory + \"\\\\src\\\\main\\\\java\\\\com\\\\mylib\\\\library\\\\Book.java\");\n\t\tassertTrue(file.exists());\n\t}", "@Test\n public void testShorten247() { // FlairImage: 247\n assertEquals(\"From: FlairImage line: 248\", \"\", shorten(\"asd.asd\",7)); \n assertEquals(\"From: FlairImage line: 249\", \"C:/Users/\", shorten(\"C:/Users/asd.asd\",7)); \n }", "public String getClassName(String path);", "java.lang.String getSrcPath();", "@Test\n public void testSpecificationFile() {\n \texpectedExit = 0;\n \tignoreNotes = true;\n \tString subdir = \"testspecs\" + \"/\" + classname;\n \tString testname = null;\n for (File f: new File(subdir).listFiles()) {\n \tif (f.getName().startsWith(\"Test\")) {\n \t\ttestname = f.getName().replace(\".java\",\"\");\n \t\tbreak;\n \t}\n }\n \thelpTCF(subdir,subdir,testname);\n }", "@Test\n public void Upload()\n {\n }", "public void test() {\n\t\tFile file = new File(\"/home/students/\");\r\n\t\t\r\n\t\tString[] list = file.list(new FilenameFilter() {\r\n\t\t\tpublic boolean accept(File dir, String name) {\r\n\t\t\t\tif (name.toLowerCase().endsWith(\".py\")) {\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t} else {\r\n\t\t\t\t\treturn false;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\tfor (String f : list) {\r\n\t\t\tSystem.out.println(f);\r\n\t\t}\r\n\t}", "public String getClassPath();", "private static String getSourceFile() {\n\t\tFileChooser fileChooser = new FileChooser(System.getProperty(\"user.home\"),\n\t\t\t\t\"Chose json file containing satellite data!\", \"json\");\n\t\tFile file = fileChooser.getFile();\n\t\tif (file == null) {\n\t\t\tSystem.exit(-42);\n\t\t}\n\t\treturn file.getAbsolutePath();\n\t}", "java.lang.String getFilePath();", "public Java_Experiment_File Java_Experiment_File(String string) {\n\tSystem.out.println(string);\n\t// This is possible!!! NO error generated!!!\n\treturn new Java_Experiment_File(3);\n }", "public static File getTestFile( String path )\r\n {\r\n return new File( getBasedir(), path );\r\n }", "@Test\n public void testCompareTest7a() {\n helperMethoda(\"CompareTest7a.txt\", \"CompareTest7b.txt\");\n }", "Path createPath();", "public static void main(String[] args) {\n\t\tWebDriver driver=new ChromeDriver();\r\n\t\tdriver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);\r\n\t\tdriver.manage().window().maximize();\r\n\t\tdriver.get(\"file:///E:/Qspiders/Notes/Selenium%20notes/Upload.html\");\r\n\t\tString rpath = \"./TestData/URL.txt\";\r\n\t\tSystem.out.println(\"relative path: \"+rpath);\r\n\t\tFile f=new File(rpath);\r\n\t\tString apath = f.getAbsolutePath();\r\n\t\tSystem.out.println(\"absolute path: \"+apath);\r\n\t\tdriver.findElement(By.id(\"1\")).sendKeys(apath);\r\n\r\n\t}", "public abstract String getFileLocation();", "private String javaFileToPackageDotClass(File java)\n\t{\n\t\tStringBuilder bob = new StringBuilder();\n\t\tbob.append(java.getParentFile().getName());\n\t\tbob.append('.');\n\t\tbob.append(java.getName().subSequence(0, java.getName().lastIndexOf('.')));\n\t\treturn bob.toString();\n\t}", "public String getResourcePath();", "SourceFilePath getFilePath();", "public String resolvePath();", "String getFileName();", "String getFileName();", "String getFileName();", "String getFileName();", "String getFileName();", "public void testNewFile() {\n // create a new package\n // \"Java Classes\"\n String javaClassesLabel = Bundle.getString(\"org.netbeans.modules.java.project.Bundle\", \"Templates/Classes\");\n NewJavaFileWizardOperator.create(SAMPLE_PROJECT_NAME, javaClassesLabel, \"Java Package\", null, SAMPLE1_PACKAGE_NAME);\n // wait package node is created\n Node sample1Node = new Node(new SourcePackagesNode(SAMPLE_PROJECT_NAME), SAMPLE1_PACKAGE_NAME);\n\n // create a new classes\n\n NewFileWizardOperator.invoke(sample1Node, javaClassesLabel, \"Java Main Class\");\n NewJavaFileNameLocationStepOperator nameStepOper = new NewJavaFileNameLocationStepOperator();\n nameStepOper.setObjectName(SAMPLE1_CLASS_NAME);\n nameStepOper.finish();\n // check class is opened in Editor\n new EditorOperator(SAMPLE1_FILE_NAME);\n NewFileWizardOperator.invoke(sample1Node, javaClassesLabel, \"Java Main Class\");\n nameStepOper = new NewJavaFileNameLocationStepOperator();\n nameStepOper.setObjectName(SAMPLE2_CLASS_NAME);\n nameStepOper.finish();\n // check class is opened in Editor and then close all documents\n new EditorOperator(SAMPLE2_FILE_NAME).closeAllDocuments();\n }", "static void ex4() {\n\t\tSystem.out.println(\"subPath\");\n\t\t/*\n\t\t * this is a path within a path\n\t\t */\n\t\tString parent=\"C:/Users/noelf/OneDrive/JavaProgrammer2019-20/WorkSpace2/F9.2InteractingWithPathAndFiles\";\n\t\tString child=\"src/com/android/Examples.java\";\n\t\tPath fullPath=Paths.get(parent,child);\n\t\tSystem.out.println(fullPath);\n\t\tSystem.out.println(\"is this an absolute path \"+fullPath.isAbsolute());\n\t\t/*C:\\Users\\noelf\\OneDrive\\JavaProgrammer2019-20\\WorkSpace2\\F9.2InteractingWithPathAndFiles\n\t\t\\src\\com\\android\\Examples.java\n\t\t*/\n\t\t//this path has 10 elements, 9 folders and one file\n\t\t//the elements use array numbering, so these elements go from 0 to 9\n\t\tSystem.out.println(\"there are \"+fullPath.getNameCount()+\" elements in the path\");\n\t\t/*\n\t\t * subpath returns any relative subpath within the abseloute path\n\t\t * there are 10 elements in this path\n\t\t * so this path goes from index postion 0, up to index positiion 5, but DOES NOT include\n\t\t * index position 5, operates exact same way as the subString() method of the String\n\t\t * this creates the relative path\n\t\t * Users\\noelf\\OneDrive\\JavaProgrammer2019-20\\WorkSpace2\n\t\t * subpath returns a relative path\n\t\t */\n\t\tSystem.out.println(\"subpath from 0 to 5 but not including 5 \"+fullPath.subpath(0, 5));\n\t\t/*\n\t\t * this starts at index position 3, which is the folder \"JavaProgrammer2019-20\"\n\t\t * and up to index position 7, but not including position 7, which will be the folder \"src\"\n\t\t */\n\t\tPath relPath=fullPath.subpath(3, 7);\n\t\t//prints off\n\t\t/*\n\t\t * JavaProgrammer2019-20\\->index postion 3\n\t\t * WorkSpace2\\ -> index position 4\n\t\t * F9.2InteractingWithPathAndFiles -> index position 5\n\t\t * \\src -> index position 6\n\t\t * index position 7 is NOT included\n\t\t */\n\t\tSystem.out.println(relPath);\n\t\tSystem.out.println(relPath.isAbsolute());//false as it's a relative path\n\t\t/*\n\t\t * this will print\n\t\t * C:\\Users\\noelf\\OneDrive\\JavaProgrammer2019-20\\WorkSpace2\\F9.2InteractingWithPathAndFiles\\\n\t\t * JavaProgrammer2019-20\\WorkSpace2\\F9.2InteractingWithPathAndFiles\\src\n\t\t */\n\t\tSystem.out.println(relPath.toAbsolutePath());\n\t\ttry {\n\t\t\t/*\n\t\t\t * if you attempt to access an element in a path by subpath that does not exist\n\t\t\t * you will get an IllegalArguementException\n\t\t\t */\n\t\t\tSystem.out.println(\"subpath from 0 to 10 \"+fullPath.subpath(0, 10));//this wil compile, no exception\n\t\t\t//this will give us an illegalArugmenmt exception as this is out of bounds as only\n\t\t\t//10 elements in our path, so only goes UP TO 10, but numbering is 0 t0 9\n\t\t//\tSystem.out.println(\"subpath from 0 to 11 \"+fullPath.subpath(0, 11));\n\t\t\t/*\n\t\t\t * can't have an empty path or subpath, this is a empty path, so this will throw an\n\t\t\t * IllegalArguement exception as well\n\t\t\t */\n\t\t\tSystem.out.println(\"subpath from 2 to 2 \"+fullPath.subpath(2, 2));\n\t\t}\n\t\tcatch(Exception e) {\n\t\t\tSystem.out.println(\"exception is \"+e);\n\t\t}\n\t\t\n\t\t\n\t\t\n\t}", "public interface Constants {\r\n\t/**\r\n\t * Example directory.\r\n\t */\r\n\tPath EXAMPLE_DIR = Path.of(\"src/main/resources\");\r\n\t/**\r\n\t * Example XML file.\r\n\t */\r\n\tPath EXAMPLE_PATH = Path.of(EXAMPLE_DIR.toString(), \"example.xml\");\r\n\t/**\r\n\t * Example text file name.\r\n\t */\r\n\tString EXAMPLE_TXT_FILE_NAME = \"example.txt\";\r\n\t/**\r\n\t * Example ZIP file name.\r\n\t */\r\n\tString EXAMPLE_ZIP_FILE_NAME = \"example.zip\";\r\n\t/**\r\n\t * Example ZIP file.\r\n\t */\r\n\tPath EXAMPLE_ZIP_PATH = Path.of(EXAMPLE_DIR.toString(), EXAMPLE_ZIP_FILE_NAME);\r\n\t/**\r\n\t * Example ZIP file entry.\r\n\t */\r\n\tString EXAMPLE_ZIP_ENTRY = \"data/example.xml\";\r\n\t/**\r\n\t * Example properties file.\r\n\t */\r\n\tPath EXAMPLE_PROPERTIES_PATH = Path.of(System.getProperty(\"user.dir\"), EXAMPLE_DIR.toString(),\r\n\t\t\t\"example.properties\");\r\n\t/**\r\n\t * Length of string to read.\r\n\t */\r\n\tString XML_CONTENT = \"<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?>\";\r\n}", "public static void main(String[] args) throws IOException {\n\t\tPath testFilePath = Paths.get(\"/home/ilmir/Dropbox/Aliya_Ilmir/2дебила\");\n\t\tSystem.out.println(\"Path: \"+testFilePath);\n\t\tline();\n\n\t\t// retrieve basic information about path\n\t\tSystem.out.println(\"Printing file information: \");\n\t\tSystem.out.println(\"\\t getFileName(): \\t\" + testFilePath.getFileName());\n\t\tSystem.out.println(\"\\t getRoot(): \\t\\t\" + testFilePath.getRoot());\n\t\tSystem.out.println(\"\\t getParent(): \\t\\t\" + testFilePath.getParent());\n\t\tline();\n\n\t\t// print path elements\n\t\tSystem.out.println(\"Printing elements of the path: \");\n\t\tfor(Path element : testFilePath) {\n\t\t\tSystem.out.println(\"\\t path element: \" + element);\n\t\t}\n\t\tline();\n\n\t\t//get a path object with relative path\n\t\tPath path = Paths.get(\"./src\");\n\t\tSystem.out.println(\"Path: \"+path);\n\t\tSystem.out.println(\"1) getFileName(): \" + path.getFileName());\n\t\tSystem.out.println(\"2) toUri(): \" + path.toUri());\n\t\tSystem.out.println(\"3) toAbsolutePath(): \" + path.toAbsolutePath());\n\t\tSystem.out.println(\"4) normalize(): \" + path.normalize());\n\n\t\t// get another path object with normalized relative path\n\t\tPath testPathNormalized = Paths.get(path.normalize().toString());\n\t\tSystem.out.println(\"Path normalized: \"+testPathNormalized);\n\t\tSystem.out.println(\"5) normalized absolute path is: \" +\n\t\t\t\ttestPathNormalized.toAbsolutePath());\n\t\tSystem.out.println(\"6) normalized real path is: \" +\n\t\t\t\tpath.toRealPath (LinkOption.NOFOLLOW_LINKS));\n\n\t\tline();\n\n\t\tPath dir = Paths.get(\"/home/ilmir/Dropbox/Aliya_Ilmir\");\n\t\tPath resolvedPath = dir.resolve(\"2дебила\");\n\t\tSystem.out.println(\"Resolved path: \"+resolvedPath);\n\t}", "@Test\n public void testCompareTest6a() {\n helperMethoda(\"CompareTest6a.txt\", \"CompareTest6b.txt\");\n }", "void fileUploaded(String path);", "@Test\n public void testExample() {\n assertSolution(\"16\", \"example-day06-2018.txt\");\n }", "protected String readTestFile(String path) throws IOException {\n return FileUtils.readClasspathFile(path);\n }", "java.lang.String getSourceFile();", "@Test\n public void testCompareTest7b() {\n helperMethodb(\"CompareTest7a.txt\", \"CompareTest7b.txt\");\n }", "@Test\n public void AppFileError() {\n try{\n App.main(new String[]{TEST_PATH + \"asdfghjkl-nice.dot\",\"1\"});\n }catch(RuntimeException re){\n assertEquals(re.getMessage(),\"Input file does not exist\");\n }\n }", "public interface IPathConstant {\n\tString PROPERTY_FILEPATH=\"./src/main/resources/CommonData.properties\";\n\tString EXCELPATH=\"./src/test/resources/testdata.xlsx\";\n\tString JSONFILEPATH=\"\";\n\tString htmlPath=\"./extentReport\"+JavaUtility.getCurrentSystemDate()+\".html\";\n}", "FsPath baseDir();", "Path getBaseInputDir();", "public static void setPath(String path) {\n\t\tfilePath = path;\n\t}", "protected String getFileNamePath()\n {\n String sep = System.getProperty(\"file.separator\", \"/\");\n// String path = System.getProperty(\"user.dir\", \".\");\n\n String filename = getPath() + sep + \"sec.dat\";\n\n return filename;\n }", "@Test\n public void takeOldQuestionPoolAndAddInFollowUpQuestion() throws IOException{\n\n QuestionPool qp = new QuestionPool(new JsonQuestionPoolDatastore(\"src/test/resources/author/questionPools/SampleQuestionPool.json\").getAllQuestions());\n JsonUtil.toJsonFile(\"src/test/resources/autoGenerated/SampleQuestionPoolToJson.json\", qp);\n\n Path path1 = Paths.get(\"src/test/resources/autoGenerated/SampleQuestionPoolToJson.json\");\n Files.deleteIfExists(path1);\n\n }", "public static void createFile(String path) {\n try {\n Scanner scanner = new Scanner(System.in);\n System.out.println(\"Enter the file name :\");\n String filepath = path+\"/\"+scanner.next();\n File newFile = new File(filepath);\n newFile.createNewFile();\n System.out.println(\"File is Created Successfully\");\n\n } catch (Exception ex) {\n System.out.println(ex.getMessage());\n }\n }", "public String findPackageForTest(String testClassName);", "public static void main(String[] args) throws IOException {\n\t\t\n\t\tFile file = new File(\"F:/Chandu/Test/Test1/Test2/Test3/Test4\");\n\t\t\n\t\t//create a directory\n\t\t\n\t\tboolean isFolderCreated =file.mkdirs();\n\t\t\n\t\tSystem.out.println(isFolderCreated);\n\t\t\n\t\t//get AbsolutePath\n\t\t\n\t\tString absolutePath =file.getAbsolutePath();\n\t\tSystem.out.println(absolutePath);\n\t\t\n\t\tString canonicalPath =file.getCanonicalPath();\n\t\tSystem.out.println(canonicalPath);\n\t\t\n\t\tboolean isDirectory =file.isDirectory();\n\t\t\n\t\tSystem.out.println(isDirectory);\n\t\t\n\t\t//how to create file\n\t\t\n\t\tFile file1 = new File(\"F:/Chandu/Test/abc.java\") ;\n\t\t\n\t\t//write data into file\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\n\t}", "Path getModBookFilePath();", "public String path(String path1, String path2);", "public abstract String getPath();", "public abstract String getPath();", "@Test\n public void testCompareTest5a() {\n helperMethoda(\"CompareTest5a.txt\", \"CompareTest5b.txt\");\n }", "public static File getFile(String fileName){\n \tString basedir = System.getProperty(\"user.dir\");\n \tString dir = basedir+\"/src/test/resources/\" + fileName;\n \treturn new File(dir);\n }", "@RequestMapping(\"/test\")\n\tpublic Item test() {\n File f = new File(\"program.txt\"); \n\n // Get the absolute path of file f \n String absolute = f.getAbsolutePath(); \n\n // Display the file path of the file object \n // and also the file path of absolute file \n System.out.println(\"Original path: \"\n + f.getPath()); \n System.out.println(\"Absolute path: \"\n + absolute); \n\t\treturn new Item(1, \"Hello world\");\n\t}", "@Test\n public void testCompareTest6b() {\n helperMethodb(\"CompareTest6a.txt\", \"CompareTest6b.txt\");\n }", "public static String readSourceFile(String rs) throws Exception {\n Class<TestHelper> testHelperClass = TestHelper.class;\n ClassLoader classLoader = testHelperClass.getClassLoader();\n URI uri = classLoader.getResource(rs).toURI();\n byte[] bytes = Files.readAllBytes(Paths.get(uri));\n return new String(bytes, \"UTF-8\");\n }", "public abstract String getFullPath();", "@Test\n public void testCompareTest9a() {\n helperMethoda(\"CompareTest9a.txt\", \"CompareTest9b.txt\");\n }", "@Test\n public void testCompareTest4a() {\n helperMethoda(\"CompareTest4a.txt\", \"CompareTest4b.txt\");\n }", "String getPathName();", "String getPathName();", "@Test\n public void testCompareTest8a() {\n helperMethoda(\"CompareTest8a.txt\", \"CompareTest8b.txt\");\n }", "public String getPath();", "public String getPath();", "public String getPath();", "private File getFile(String path, String name)\r\n {\r\n File file = null;\r\n boolean found = false;\r\n String ext = \"\";\r\n\r\n for (int i = 0; i < name.length(); i++)\r\n ext += \"\" + ( (name.charAt(i) == '.') ? '\\\\' : name.charAt(i));\r\n\r\n while(ext.length() > 0 && !found)\r\n {\r\n file = new File(path + \"\\\\\" + ext + \".java\");\r\n found = file != null && file.exists() && file.isFile();\r\n ext = ext.substring(0, Math.max(0, ext.lastIndexOf('\\\\')));\r\n }\r\n\r\n return (found)?file:null;\r\n }", "protected abstract String getResourcePath();", "public String getPath (Class<?> cn) {\n return PATH + cn.getSimpleName().toLowerCase() + FILE_EXTENSION;\n }", "String getExternalPath(String path);", "@Test\n public void testGetSave_directory() {\n System.out.println(\"getSave_directory\");\n File_Chooser instance = new File_Chooser();\n String expResult = \"\";\n String result = instance.getSave_directory();\n assertEquals(expResult, result);\n }", "public ClassPath getClassPath();", "private static String getJarFilePath() throws URISyntaxException, UnsupportedEncodingException {\n\n\t\tFile jarFile;\n\n\t\t// if (codeSource.getLocation() != null) {\n\t\t// jarFile = new File(codeSource.getLocation().toURI());\n\t\t// } else {\n\t\tString path = ConfigurationLocator.class.getResource(ConfigurationLocator.class.getSimpleName() + \".class\")\n\t\t\t\t.getPath();\n\t\tString jarFilePath = path.substring(path.indexOf(\":\") + 1, path.indexOf(\"!\"));\n\t\tjarFilePath = URLDecoder.decode(jarFilePath, \"UTF-8\");\n\t\tjarFile = new File(jarFilePath);\n\t\t// }\n\t\treturn jarFile.getParentFile().getAbsolutePath();\n\t}" ]
[ "0.569015", "0.5655159", "0.5612888", "0.55733263", "0.55733263", "0.5510181", "0.5425325", "0.54089105", "0.5392603", "0.5385909", "0.5350695", "0.5326545", "0.53047967", "0.52910215", "0.52881336", "0.52046466", "0.52022916", "0.5191281", "0.51890284", "0.5182748", "0.51763755", "0.5154358", "0.51438004", "0.51004285", "0.508992", "0.508992", "0.508992", "0.508992", "0.508992", "0.50843644", "0.5070753", "0.506464", "0.5061199", "0.5026395", "0.50164664", "0.50111055", "0.49898106", "0.49790782", "0.4977757", "0.4973189", "0.49550134", "0.49493042", "0.49469012", "0.4892021", "0.48734882", "0.4870587", "0.48664066", "0.48594794", "0.48577192", "0.48556793", "0.48476887", "0.48445526", "0.48445526", "0.48445526", "0.48445526", "0.48445526", "0.48439384", "0.48332384", "0.48332116", "0.48043743", "0.47965986", "0.47961476", "0.47942403", "0.47916716", "0.47865888", "0.4781328", "0.47783154", "0.4776179", "0.4772225", "0.47685438", "0.47639665", "0.47588903", "0.47564945", "0.47453392", "0.4744369", "0.47410464", "0.4740469", "0.47332907", "0.47287947", "0.47287947", "0.47277874", "0.47202098", "0.47201696", "0.47195858", "0.4719256", "0.47085685", "0.46992078", "0.46909773", "0.46906218", "0.46906218", "0.46899307", "0.46871665", "0.46871665", "0.46871665", "0.46854168", "0.4684507", "0.46805668", "0.46771187", "0.46764514", "0.46737567", "0.46731296" ]
0.0
-1
Le player est un solidBody
public Enemy(Texture tex) { super(tex); m_type = "enemy"; m_controller = new IAController(); m_weapon = new AttackEmitter(); m_lifeBar.setScale(new Vector2(0.3f,0.3f)); m_speed = 50; m_life = 4; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public PlayerController(World world, ElementModel model) {\n super(world, model, BodyDef.BodyType.DynamicBody);\n\n state = new FloatState();\n\n this.width = imageWidth;\n this.height = imageHeight;\n\n //head\n FixtureInfo info = new FixtureInfo(new float[]{\n 62, 186,\n 32, 122,\n 57, 67,\n 98, 48,\n 160, 53,\n 207, 123,\n 193, 195,\n 62, 186\n }, width, height);\n\n info.physicsComponents(density, friction, restitution);\n\n info.collisionComponents(PLAYER_BODY, (short) (PLANET_BODY | PLAYER_BODY | COMET_BODY));\n\n createFixture(body, info);\n\n //corns\n info.vertexes = new float[]{\n 114, 49,\n 118, 33,\n 109, 19,\n 142, 13,\n 142, 26,\n 129, 33,\n 114, 49};\n\n createFixture(body, info);\n\n info.vertexes = new float[]{\n 191, 83,\n 207, 66,\n 215, 52,\n 219, 26,\n 241, 34,\n 232, 52,\n 219, 76,\n 191, 83};\n\n createFixture(body, info);\n\n //arms\n info.vertexes = new float[]{\n 61, 196,\n 23, 198,\n 3, 217,\n 21, 268,\n 61, 196};\n\n createFixture(body, info);\n\n info.vertexes = new float[]{\n 150, 229,\n 175, 285,\n 166, 316,\n 156, 330,\n 150, 229};\n\n createFixture(body, info);\n\n\n //legs\n info.vertexes = new float[]{\n 31, 332,\n 37, 370,\n 36, 401,\n 31, 416,\n 90, 418,\n 85, 403,\n 81, 374,\n 31, 332};\n\n createFixture(body, info);\n\n info.vertexes = new float[]{\n 107, 359,\n 102, 395,\n 106, 418,\n 161, 417,\n 144, 397,\n 107, 359,\n 152, 327};\n\n createFixture(body, info);\n\n\n //Belly\n info.vertexes = new float[]{\n 75, 219,\n 17, 283,\n 41, 346,\n 90, 364,\n 143, 330,\n 151, 280,\n 138, 227,\n 75, 219};\n\n createFixture(body, info);\n\n this.body.setGravityScale(0);\n this.body.setAngularDamping(0.7f);\n\n this.lost = false;\n }", "private void createPlayer() {\n Entity entity = engine.createEntity();\n B2dBodyComponent b2dbody = engine.createComponent(B2dBodyComponent.class);\n TransformComponent position = engine.createComponent(TransformComponent.class);\n TextureComponent texture = engine.createComponent(TextureComponent.class);\n PlayerComponent player = engine.createComponent(PlayerComponent.class);\n CollisionComponent colComp = engine.createComponent(CollisionComponent.class);\n TypeComponent type = engine.createComponent(TypeComponent.class);\n StateComponent stateCom = engine.createComponent(StateComponent.class);\n\n // create the data for the components and add them to the components\n b2dbody.body = bodyFactory.makeCirclePolyBody(10,10,1, BodyFactory.STONE, BodyType.DynamicBody,true);\n // set object position (x,y,z) z used to define draw order 0 first drawn\n position.position.set(10,10,0);\n texture.region = atlas.findRegion(\"player\");\n type.type = TypeComponent.PLAYER;\n stateCom.set(StateComponent.STATE_NORMAL);\n b2dbody.body.setUserData(entity);\n\n // add the components to the entity\n entity.add(b2dbody);\n entity.add(position);\n entity.add(texture);\n entity.add(player);\n entity.add(colComp);\n entity.add(type);\n entity.add(stateCom);\n\n // add the entity to the engine\n engine.addEntity(entity);\n }", "public void boingg(Player player) {\n if (player.getCircle().getBoundsInParent().intersects(right.getBoundsInParent())) {\n\n if ((int) player.normalVelocityX == 0) {\n player.normalVelocityX = 4;\n } else {\n player.normalVelocityX = Math.abs(player.normalVelocityX) * springiness;\n }\n\n } else if (player.getCircle().getBoundsInParent().intersects(left.getBoundsInParent())) {\n if ((int) player.normalVelocityX == 0) {\n player.normalVelocityX = -4;\n } else {\n player.normalVelocityX = Math.abs(player.normalVelocityX) * -springiness;\n }\n } else {\n player.normalVelocityX *= springiness;\n }\n\n player.normalVelocityY *= -springiness;\n player.angularVelocity *= -springiness;\n \n rectangle.setFill(AssetManager.springSkin(false));\n\n }", "public MyWorld()\n { \n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\n super(600, 400, 1); \n \n Player player = new Player();\n Point point0 = new Point();\n Point point1 = new Point();\n Point point2 = new Point();\n Point point3 = new Point();\n Point point4 = new Point();\n Danger danger0 = new Danger();\n Danger danger1 = new Danger();\n addObject(player, getWidth()/2, getHeight()/2);\n \n addObject(point0,Greenfoot.getRandomNumber(getWidth()),Greenfoot.getRandomNumber(getHeight()));\n addObject(point1,Greenfoot.getRandomNumber(getWidth()),Greenfoot.getRandomNumber(getHeight()));\n addObject(point2,Greenfoot.getRandomNumber(getWidth()),Greenfoot.getRandomNumber(getHeight()));\n addObject(point3,Greenfoot.getRandomNumber(getWidth()),Greenfoot.getRandomNumber(getHeight()));\n addObject(point4,Greenfoot.getRandomNumber(getWidth()),Greenfoot.getRandomNumber(getHeight()));\n \n addObject(danger0,Greenfoot.getRandomNumber(getWidth()),Greenfoot.getRandomNumber(getHeight()));\n addObject(danger1,Greenfoot.getRandomNumber(getWidth()),Greenfoot.getRandomNumber(getHeight()));\n }", "public int getPlayerBodyWidth();", "public void defineBody()\n {\n if(B2body != null){\n PlayScreen.world.destroyBody(B2body);}\n\n BodyDef bdef = new BodyDef();\n bdef.type = BodyDef.BodyType.KinematicBody;\n B2body = PlayScreen.world.createBody(bdef);\n\n\n calculateTriangle(mirror.getX(), mirror.getY(), mirror.getRotation());\n }", "public void init(){\n\t\n\t\t//background init\n\t\tthis.background = new Sprite(this.scene, \"space-backdrop.png\", 1280 * 5, 800 * 5);\n\t\tthis.background.setBoundAction(\"background\");\n\t\tthis.background.setSpeedScale(0.2);\n\t\tthis.background.setSpeed(0);\n\t\tthis.sprites.add(this.background);\n\t\t\n\t\t//compass init\n\t\tthis.compass = new Sprite(this.scene, \"compass.png\", 100, 100);\n\t\tthis.compass.setSpeed(0);\n\t\tthis.compass.setPosition(this.compass.getWidth() / 2, this.scene.getHeight() - this.compass.getHeight() / 2);\n\t\t\n\t\t//earth init\n\t\tthis.earth = new Planet(this.scene, \"earth.png\", 4800, 4800);\n\t\tthis.earth.setSpeed(0);\n\t\tthis.earth.setPosition(0, 7000);\n\t\tthis.earth.setBoundAction(\"continue\");\n\t\tthis.sprites.add(this.earth);\n\t\t\n\t\t//ship init\n\t\tthis.mainSprite = new Ship(this.scene, \"cannon.png\", 50, 50, this.k);\n\t\tthis.mainSprite.keyListen = true;\n\t\tthis.mainSprite.setSpeed(0);\n\t\tthis.mainSprite.setPosition(this.scene.getWidth() / 2, this.scene.getHeight() / 2);\n\t\t\n\t\t//asteroids init\n\t\tthis.asteroids.add(new Body(this.scene, \"asteroid.png\", 250, 250, this));\n\t\tthis.asteroids.get(0).setBoundAction(\"continue\");\n\t\tthis.asteroids.get(0).setSpeed(0);\n\t\tthis.asteroids.get(0).setPosition(0, 0);\n\t\tthis.sprites.add(this.asteroids.get(0));\n\t\t\n\t\tfor(int i = 1; i < 200; i++){\n\t\t\t\n\t\t\tint size = (int) Math.round(Math.random() * 400 + 50);\n\t\t\tlong x = Math.round(Math.random() * this.background.getWidth() - (this.background.getWidth() / 2));\n\t\t\tlong y = Math.round(Math.random() * this.background.getHeight() - (this.background.getHeight() / 2));\n\t\t\t\n\t\t\twhile(x > 0 && x < this.scene.getWidth()){\n\t\t\t\tx = Math.round(Math.random() * this.background.getWidth() - (this.background.getWidth() / 2));\n\t\t\t}\n\t\t\t\n\t\t\twhile(y > 0 && y < this.scene.getHeight()){\n\t\t\t\ty = Math.round(Math.random() * this.background.getHeight() - (this.background.getHeight() / 2));\n\t\t\t}\n\t\t\t\n\t\t\tthis.asteroids.add(new Body(this.scene, \"asteroid.png\", size, size, this));\n\t\t\tthis.asteroids.get(i).setBoundAction(\"continue\");\n\t\t\tthis.asteroids.get(i).setSpeed(0);\n\t\t\tthis.asteroids.get(i).setPosition(x, y);\n\t\t\t\n\t\t\tthis.sprites.add(this.asteroids.get(i));\n\t\t}\n\t\t\n\t\t\n\t\t//chest init\n\t\tthis.chests.add(new Chest(this.scene, \"chest.png\", 100, 50));\n\t\tthis.chests.get(0).setBoundAction(\"continue\");\n\t\tthis.chests.get(0).setSpeed(0);\n\t\tthis.chests.get(0).setPosition(500, 500);\n\t\tthis.sprites.add(this.chests.get(0));\n\t\t\n\t\tfor(int i = 1; i < this.numChests; i++){\n\t\t\t\n\t\t\tthis.chests.add(new Chest(this.scene, \"chest.png\", 100, 50));\n\t\t\tthis.chests.get(i).setBoundAction(\"continue\");\n\t\t\tthis.chests.get(i).setSpeed(0);\n\t\t\t\n\t\t\tboolean keepGoing = true;\n\t\t\tdo{\n\t\t\t\t\n\t\t\t\tlong x = Math.round(Math.random() * this.background.getWidth() - (this.background.getWidth() / 2));\n\t\t\t\tlong y = Math.round(Math.random() * this.background.getHeight() - (this.background.getHeight() / 2));\n\t\t\t\t\n\t\t\t\twhile(x > 0 && x < this.scene.getWidth()){\n\t\t\t\t\tx = Math.round(Math.random() * this.background.getWidth() - (this.background.getWidth() / 2));\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\twhile(y > 0 && y < this.scene.getHeight()){\n\t\t\t\t\ty = Math.round(Math.random() * this.background.getHeight() - (this.background.getHeight() / 2));\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tthis.chests.get(i).setPosition(x, y);\n\t\t\t\t\n\t\t\t\t//check for collisions with asteroids\n\t\t\t\tboolean colliding = false;\n\t\t\t\tfor(int j = 0; j < this.asteroids.size() && colliding == false; j++){\n\t\t\t\t\tif(this.asteroids.get(j).collidesWith(this.chests.get(i))){\n\t\t\t\t\t\tcolliding = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tkeepGoing = colliding;\n\t\t\t\t\n\t\t\t}while(keepGoing);\n\t\t\t\n\t\t\tthis.sprites.add(this.chests.get(i));\n\t\t\t\n\t\t}//end for\n\t\n\t\tthis.scene.start();\n\t\t\n\t\tSystem.out.println(\"==== Welcome to Space Smuggler! ====\");\n\t\tSystem.out.println(\"(WASD to move)\");\n\t\tSystem.out.println(\"Follow your compass in the bottom left corner to find treasure.\");\n\t\tSystem.out.println(\"Collect all of the treasure, then follow your compass to Earth!\");\n\t\tSystem.out.println(\"Watch out for the asteroids though, their gravitational pull is strong!\");\n\t\tSystem.out.println(\"Crashing into one will certainly kill you! D:\");\n\t\tSystem.out.println(\"Good Luck!\");\n\t\t\n\t}", "@Override\n protected void update(Engine engine) {\n\t\trs = (GL4RenderSystem) engine.getRenderSystem();\n\t\t\n\t\telapsTime += engine.getElapsedTimeMillis();\n\t\telapsTimeSec = Math.round(elapsTime/1000.0f);\n\t\telapsTimeStr = Integer.toString(elapsTimeSec);\n\t\t\n\t\t//player.update(elapsTimeSec);\n\t\tSceneNode dragon = engine.getSceneManager().getSceneNode(\"dragonNPCNode\");\n\t\t\n\t\tdIter++;\n\t\t//if(dIter == 200)\n\t\t//{\n\t\t\t//dir = dir*-1;\n\t\t\t//dIter = 0;\n\t\t//}\n\t\tif(dIter <= 200)\n\t\tdragon.moveBackward(dir);\n\t\t\n\t\tif(dIter > 200 && dIter <= 400 )\n\t\t\tdragon.moveLeft(dir);\n\t\t\n\t\tif(dIter > 400 && dIter <= 600 )\n\t\t\tdragon.moveForward(dir);\n\t\t\n\t\tif(dIter > 600 && dIter <= 800 )\n\t\t\tdragon.moveRight(dir);\n\t\t\n\t\tif(dIter == 800 )\n\t\t\tdIter = 0;\n\t\t//SkeletalEntity dragonSE =\n\t\t\t\t//(SkeletalEntity) engine.getSceneManager().getEntity(\"dragonSkeleton\");\n\t\t//dragonSE.update();\n\t\t\n\t\tfloat time = engine.getElapsedTimeMillis();\n\t\t\n\t\tfloat playerFloat[] = player.getNode().getLocalTransform().toFloatArray();\n\t\t//playerFloat[7] = player.getNode().getLocalPosition().y();\n\t\tdouble playerMat[] = toDoubleArray(playerFloat);\n\t\tMatrix4 mat3;\n\t\tmat3 = Matrix4f.createFrom(toFloatArray(player.getNode().getPhysicsObject().getTransform()));\n\t\t//player.getNode().setLocalPosition(playerFloat[3],mat3.value(1,3), playerFloat[11]);\n\t\t//double playerMat[] = toDoubleArray(player.getNode().getLocalTransform().toFloatArray());\n\t\tplayerFloat = player.getNode().getLocalTransform().toFloatArray();\n\t\t//playerFloat[7] = player.getNode().getLocalPosition().y();\n\t\tplayerFloat[7] = mat3.value(1,3);//set y coordinate to physics world\n\t\tplayerMat = toDoubleArray(playerFloat);\n\t\tSystem.out.println(\"player.getNode().getLocalTransform(): \" + player.getNode().getLocalTransform());\n\t player.getNode().getPhysicsObject().setTransform(playerMat);\n\t \n\t player.update(elapsTimeSec);\n\t SkeletalEntity manSE =\n \t\t(SkeletalEntity) engine.getSceneManager().getEntity(\"knightSkeleton\");\n \t\tmanSE.update();\n\n\t \n\t\tif (running)\n\t\t{ \n\t\t\tMatrix4 mat;\n\t\t\tphysicsEng.update(time);\n\t\t\tfor (SceneNode s : engine.getSceneManager().getSceneNodes())\n\t\t\t{ \n\t\t\t\t//if (s.getPhysicsObject() != null && s.getName() != player.getNode().getName())\n\t\t\t\t//if (s.getPhysicsObject() != null /*&& s.getName() != player.getNode().getName()*/)\n\t\t\t\t{ \n\t\t\t\t\tmat = Matrix4f.createFrom(toFloatArray(s.getPhysicsObject().getTransform()));\n\t\t\t\t\ts.setLocalPosition(mat.value(0,3),mat.value(1,3), mat.value(2,3));\n\t\t\t\t} \n\t\t\t} \n\t\t}\n\n\t\tdispStr=\"Time = \" + elapsTimeStr + \" Score: \"+player.getScore();\n\t\trs.setHUD(dispStr, 15, 15);\n\t\tif(player.isBoostActive()) dispStr+=\" Boost Active!\";\n\t\tim.update(elapsTime);\n\t\tprocessNetworking(elapsTime);\n\t\t\n\t\tcheckForCollisions();\n\t\t//player.update(elapsTimeSec);\n\t\tSystem.out.println(\"ball transform: \" + ball2Node.getLocalTransform() );\n\t\tSystem.out.println(\"ball physycs object transform: \" + ball2Node.getPhysicsObject().getTransform()[0] + ',' \n\t\t\t\t+ ball2Node.getPhysicsObject().getTransform()[1] + ','\n\t\t\t\t+ ball2Node.getPhysicsObject().getTransform()[2] + ','\n\t\t\t\t+ ball2Node.getPhysicsObject().getTransform()[3] + ','\n\t\t\t\t+ ball2Node.getPhysicsObject().getTransform()[4] + ','\n\t\t\t\t+ ball2Node.getPhysicsObject().getTransform()[5] + ','\n\t\t\t\t+ ball2Node.getPhysicsObject().getTransform()[6] + ','\n\t\t\t\t+ ball2Node.getPhysicsObject().getTransform()[7] + ','\n\t\t\t\t+ ball2Node.getPhysicsObject().getTransform()[8] + ','\n\t\t\t\t+ ball2Node.getPhysicsObject().getTransform()[9] + ','\n\t\t\t\t+ ball2Node.getPhysicsObject().getTransform()[10] + ','\n\t\t\t\t+ ball2Node.getPhysicsObject().getTransform()[11] + ','\n\t\t\t\t+ ball2Node.getPhysicsObject().getTransform()[12] + ','\n\t\t\t\t+ ball2Node.getPhysicsObject().getTransform()[13] + ','\n\t\t\t\t+ ball2Node.getPhysicsObject().getTransform()[14] + ','\n\t\t\t\t+ ball2Node.getPhysicsObject().getTransform()[15] + ',');\n\t\tSystem.out.println(\"ball linear velocity: \" + ball2Node.getPhysicsObject().getLinearVelocity());\n\t\tif(distanceTo(player.getNode().getLocalPosition(),ball2Node.getLocalPosition()) <= 4)\n\t\t{\n\t\t\tball2Node.setLocalPosition(0,10,0);\n\t\t\tfloat velocityArray[] = { 0, 5, 0};\n\t\t\tball2Node.getPhysicsObject().setLinearVelocity(velocityArray);\n\t\t\tfloat floTemp[] = ball2Node.getLocalTransform().toFloatArray();\n\t\t\tdouble dubTemp[] = {(double)floTemp[0], (double)floTemp[1], (double)floTemp[2], (double)floTemp[3], (double)floTemp[4],\n\t\t\t\t\t(double)floTemp[5],(double)floTemp[6],(double)floTemp[7], (double)floTemp[8], (double)floTemp[9], (double)floTemp[10], (double)floTemp[11]\n\t\t\t\t\t\t\t, (double)floTemp[12], (double)floTemp[13], (double)floTemp[14], (double)floTemp[15] };\n\t\t\t\n\t\t\tdouble dubTemp2[] = toDoubleArray(floTemp);\n\n\n\t\t\t Matrix4 mat2;\n\t\t\tball2Node.getPhysicsObject().setTransform(dubTemp2);\n\t\t\t\n\t\t\t//mat2 = Matrix4f.createFrom(toDoubleArray( ball2Node.getLocalTransform().toFloatArray()))\n\t\t\t//ball2Node.getPhysicsObject().setTransform(dubTemp2);\n\t\t\t//ball2Node.setPhysicsObject(ball2PhysObj);\n\t\t\t//ball2Node.getPhysicsObject().getTransform().\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t}\n\t\t\n\t\t//player.playWalkAnimation();\n\t\t\n\t\t\n\t\t\n\t\t/*ball2Node.getPhysicsObject().setTransform(ball2Node.getLocalTransform());\n\t\t//ball2PhysObj.set\n\t\tphysicsEng.\n\t\ttemptf = toDoubleArray(ball1Node.getLocalTransform().toFloatArray());\n \tball1PhysObj = physicsEng.addSphereObject(physicsEng.nextUID(),\n \tmass, temptf, 2.0f);\n \tball1PhysObj.setBounciness(1.0f);\n \tball1Node.setPhysicsObject(ball1PhysObj);*/\n\t\t\n\t\t/* check if player jumped*/\n\t\t\n\t}", "@Override\n public void render(float delta) {\n Gdx.gl.glClearColor(1, 1, 1, 1);\n Gdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT);\n \n world.step(1/60f,8,3);\n \n \n \n // new body stuff\n \n\n // tell the camera to update its matrices.\n camera.update();\n\n game.batch.setProjectionMatrix(camera.combined);\n // tell the SpriteBatch to render in the\n // coordinate system specified by the camera.\n //batch.setProjectionMatrix(camera.combined);\n\n\n //this is currently what can render lines\n \n if (Gdx.input.isTouched()) {\n touchPos.set(Gdx.input.getX(), Gdx.input.getY(), 0);\n camera.unproject(touchPos);\n renderer.begin(ShapeRenderer.ShapeType.Line); // shape type\n renderer.setColor(1, 0.5F, 0.5F, 1); // line's color\n renderer.line(position.x, position.y, touchPos.x, touchPos.y); // shape's set of coordinates (x1,y1,x2,y2)\n renderer.end();\n\n }\n\n // begin a new batch and draw the bucket and\n // all drops\n game.batch.begin();\n world.getBodies(tempBodies);\n for(Body body : tempBodies) {\n \tif(body.getUserData() != null && body.getUserData() instanceof Sprite) {\n \t\tSprite sprite = (Sprite)body.getUserData();\n // System.out.println(body.getPosition().y * BOX_TO_WORLD);\n if(body.getType() == BodyType.DynamicBody) {\n sprite.setPosition((body.getPosition().x * BOX_TO_WORLD) - (sprite.getWidth() / 2), (body.getPosition().y * BOX_TO_WORLD) - (sprite.getHeight() / 2));\n }\n else\n {\n sprite.setPosition(body.getPosition().x * BOX_TO_WORLD , body.getPosition().y * BOX_TO_WORLD );\n }\n \t\t//sprite.setPosition(body.getPosition().x - sprite.getWidth() / 2, body.getPosition().y - sprite.getHeight() / 2);\n \t\tsprite.setRotation(body.getAngle() * MathUtils.radiansToDegrees);\n \t\tsprite.draw(game.batch);\n \t}\n }\n\n // game.batch.draw(circleImage, circle.x, circle.y);\n \n game.batch.end();\n \n \n\n \n \n if (Gdx.input.isKeyPressed(Keys.BACK)){\n \t((Game) Gdx.app.getApplicationListener()).setScreen(new MainMenuScreen(game));\n \t}\n \n if (Gdx.input.isKeyPressed(Keys.BACKSPACE)){\n \t((Game) Gdx.app.getApplicationListener()).setScreen(new MainMenuScreen(game));\n \t}\n debugRenderer.render(world, camera.combined);\n \n \n \n \n }", "public Player(World world, float x, float y) {\n super(new Texture(\"Player/Player1_sg.png\"));\n\n\n //Centra el personaje este\n this.world = world;\n setPosition(x - this.getWidth() / 2,\n y - this.getHeight() / 2);\n createBody();\n }", "private void createPhysics(final Camera camera, PhysicsWorld physicsWorld){\n\t\t \n\t\t body = PhysicsFactory.createBoxBody(physicsWorld, this, BodyType.DynamicBody, PhysicsFactory.createFixtureDef(0, 0, 0));\n\t\t \n\t\t body.setUserData(\"player\");\n\t\t body.setFixedRotation(true);\n\t\t \n\t\t physicsWorld.registerPhysicsConnector(new PhysicsConnector(this, body, true, false){\n\t\t\t @Override\n\t\t\t public void onUpdate(float pSecondsElapsed){\n\t\t\t\t \n\t\t\t\t super.onUpdate(pSecondsElapsed);\n\t\t\t\t camera.onUpdate(0.1f);\n\t\t\t\t \n\t\t\t\t if (getY()<=0 || getY() >= 800){\n\t\t\t\t\t onDie();\n\t\t\t\t }\n\t\t\t\t if(canRun){\n\t\t\t\t\t body.setLinearVelocity(new Vector2(5,body.getLinearVelocity().y));\n\t\t\t\t }\n\t\t\t }\n\t\t });\n\t }", "public WallCollision(NinjaEntity player){\n this.player = player;\n }", "private void setupPlayer(Engine engine, SceneManager sceneManager) throws IOException {\n\t\t// Entity dolphinEntityOne = sceneManager.createEntity(\"dolphinEntityOne\",\n\t\t// \"playerModel.obj\");\n\t\tSkeletalEntity dolphinEntityOne = sceneManager.createSkeletalEntity(\"player\", \"player.rkm\", \"player.rks\");\n\t\tdolphinEntityOne.setPrimitive(Primitive.TRIANGLES);\n\n\t\t// load animations\n\t\tdolphinEntityOne.loadAnimation(\"player_running\", \"player_running.rka\");\n\t\tdolphinEntityOne.loadAnimation(\"player_shooting\", \"player_shooting.rka\");\n\t\tdolphinEntityOne.loadAnimation(\"player_jump\", \"player_jump.rka\");\n\t\tdolphinEntityOne.loadAnimation(\"stepLeft\", \"stepLeft.rka\");\n\t\tdolphinEntityOne.loadAnimation(\"stepRight\", \"stepRight.rka\");\n\t\tdolphinEntityOne.loadAnimation(\"standing\", \"player_standing.rka\");\n\t\tdolphinNodeOne = sceneManager.getRootSceneNode().createChildSceneNode(dolphinEntityOne.getName() + \"Node\");\n\t\tdolphinNodeOne.attachObject(dolphinEntityOne);\n\n\t\t// initialize 'charge' state\n\t\tplayerCharge.put(dolphinNodeOne, false);\n\t\tplayerStretchController = new StretchController();\n\t\tsceneManager.addController(playerStretchController);\n\t\tplayerOrbitController = new OrbitController(dolphinNodeOne, 1.0f, 0.5f, 0.0f, false);\n\t\tsceneManager.addController(playerOrbitController);\n\n\t\t// initialize position and scale\n\t\tVector3 randomLocation = randomLocationMonster();\n\t\tdolphinNodeOne.setLocalPosition(randomLocation);\n\t\tdolphinNodeOne.setLocalPosition(100f,0f,0f);\n\t\tdolphinNodeOne.scale(0.04f, 0.04f, 0.04f);\n\t\t\n\t\ttargetNode = dolphinNodeOne.createChildSceneNode(\"targetNode\");\n\t\ttargetNode.setLocalPosition(0.0f, 10.0f, 50.0f);\n\n\t\t// initialize textures\n\t\tTexture dolphinOneTexture = textureManager.getAssetByPath(\"playerModel.png\");\n\t\tTextureState dolphinOneTextureState = (TextureState) renderSystem.createRenderState(RenderState.Type.TEXTURE);\n\t\tdolphinOneTextureState.setTexture(dolphinOneTexture);\n\t\tdolphinEntityOne.setRenderState(dolphinOneTextureState);\n\t\tSystem.out.println(dolphinNodeOne.getName());\n\t\thealths.put(dolphinNodeOne.getName(), 100);\n\t\tplayPlayerStandingAnimation();\n\t}", "public Space_Object (){\n groundPosition = 0;\n }", "public void makeBody()\n {\n Texture text;\n if(bounds.getHeight()<bounds.getWidth()) {\n text = new Texture(\"img/wall.jpg\");\n }else{\n text = new Texture(\"img/wall2.jpg\");\n }\n\n Sprite wallSprite;\n wallSprite = new Sprite(text);\n wallSprite.setSize(bounds.getWidth(),bounds.getHeight());\n wallSprite.setOrigin(bounds.getWidth()/2, bounds.getHeight()/2);\n\n BodyDef bodydef = new BodyDef();\n bodydef.type = BodyType.StaticBody;\n bodydef.position.set(position.x,position.y);\n\n PolygonShape shape = new PolygonShape();\n shape.setAsBox(bounds.width/2, bounds.height/2);\n\n FixtureDef def = new FixtureDef();\n def.shape = shape;\n def.friction = 0.5f;\n def.restitution = 0;\n wall = world.createBody(bodydef);\n wall.createFixture(def);\n wall.getFixtureList().get(0).setUserData(\"w\");\n wall.setUserData(wallSprite);\n\n shape.dispose();\n }", "public EnemyShipBody(World world, Ship obj) {\n super(world, obj);\n\n float density = 0.1f, friction = 0.2f, restitution = 0.5f;\n int width = 200, height = 166;\n\n // Body\n createFixture(body, new float[]{\n 74,24, 96,8, 106,8, 125,24, 120,79, 100,86, 80,79\n }, width, height, density, friction, restitution, ENEMY_SHIP_BODY, (short) (USER_SHIP_BODY| USER_BULLET_BODY));\n\n // Right Wing\n createFixture(body, new float[]{\n 126,29, 152,37, 158,32, 176,63, 163,157, 147,150, 143,75, 118,78\n }, width, height, density, friction, restitution, ENEMY_SHIP_BODY, (short) (USER_SHIP_BODY| USER_BULLET_BODY));\n\n // Left Wing\n createFixture(body, new float[]{\n 74,29, 48,37, 41,32, 24,63, 37,157, 53,150, 57,75, 83, 78\n }, width, height, density, friction, restitution, ENEMY_SHIP_BODY, (short) (USER_SHIP_BODY| USER_BULLET_BODY));\n\n\n }", "public void createBody(){\n this.fuelMass = this.initFuelMass;\n BodyDef def = new BodyDef();\n def.position.set(initPosition);\n def.type = BodyDef.BodyType.DynamicBody;\n body = world.createBody(def);\n\n PolygonShape box = new PolygonShape();\n box.setAsBox(lunarModuleWidth / 2, lunarModuleHeight / 2);\n fixture = body.createFixture(box, (lunarModuleMass + fuelMass) / (lunarModuleHeight * lunarModuleWidth));\n box.dispose();\n\n fixture.setUserData(\"lunar module\");\n fixture.setFriction(0.4f);\n massData = body.getMassData();\n setSize(lunarModuleWidth, lunarModuleHeight);\n\n this.alive = true;\n this.activateEngine = false;\n this.activateAuxiliaryEnginesLeft = false;\n this.activateAuxiliaryEnginesRight = false;\n }", "@Override\n public void move(Entity e) {\n\n if (Collsiontick > 0) {\n Collsiontick--;\n }\n tick++;\n float deltax = x - player.x;\n float deltay = y - player.y;\n float speed = getSpeed();\n if(Math.abs(speed) < 0.1 && Collsiontick/50<=1){\n float theta = (float) (Math.atan(deltay / deltax) + Math.PI);\n xv = (float) ((TOP_SPEED * Math.cos(theta)));\n yv = (float) ((TOP_SPEED * Math.sin(theta)));\n if (deltax < 0) {\n xv = -xv;\n yv = -yv;\n }\n }\n \n xv = Util.doFrictionX(xv, yv, FRICTION);\n yv = Util.doFrictionY(xv, yv, FRICTION);\n \n \n x += xv;\n y += yv;\n\n shape = (Polygon) shape.transform(Transform.createTranslateTransform(xv, yv));\n }", "public void createPlayerModel() {\n\t\tModelBuilder mb = new ModelBuilder();\n\t\tModelBuilder mb2 = new ModelBuilder();\n\t\tlong attr = Usage.Position | Usage.Normal;\n\t\tfloat r = 0.5f;\n\t\tfloat g = 1f;\n\t\tfloat b = 0.75f;\n\t\tMaterial material = new Material(ColorAttribute.createDiffuse(new Color(r, g, b, 1f)));\n\t\tMaterial faceMaterial = new Material(ColorAttribute.createDiffuse(Color.BLUE));\n\t\tfloat w = 1f;\n\t\tfloat d = w;\n\t\tfloat h = 2f;\n\t\tmb.begin();\n\t\t//playerModel = mb.createBox(w, h, d, material, attr);\n\t\tNode node = mb.node(\"box\", mb2.createBox(w, h, d, material, attr));\n\t\t// the face is just a box to show which direction the player is facing\n\t\tNode faceNode = mb.node(\"face\", mb2.createBox(w/2, h/2, d/2, faceMaterial, attr));\n\t\tfaceNode.translation.set(0f, 0f, d/2);\n\t\tplayerModel = mb.end();\n\t}", "private Body initPhysicsBody(World world,float x,float y){\r\n BodyDef bodyDef = new BodyDef();\r\n bodyDef.type = BodyType.DYNAMIC;\r\n bodyDef.position = new Vec2(0,0);\r\n Body body = world.createBody(bodyDef);\r\n\r\n ///EdgeShape shape = new EdgeShape();\r\n PolygonShape shape = new PolygonShape();\r\n shape.setAsBox((sprite.layer().width()*GameScreen.M_PER_PIXEL/2)-1.5f,\r\n (sprite.layer().height())*GameScreen.M_PER_PIXEL/2);\r\n FixtureDef fixtureDef = new FixtureDef();\r\n fixtureDef.shape = shape;\r\n fixtureDef.density = 0.4f;\r\n fixtureDef.friction = 0.1f;\r\n fixtureDef.restitution = 0.35f;\r\n body.createFixture(fixtureDef);\r\n\r\n body.setLinearDamping(0.2f);\r\n body.setTransform(new Vec2(x,y),0f);\r\n body.setFixedRotation(true);\r\n\r\n return body;\r\n }", "@Override\n public void populate(Game game) {\n super.populate(game);\n\n Level1.background1Music.stop();\n background2Music.loop();\n voiceOver2.play();\n\n Shape groundShape = new BoxShape(100, 0.5f);\n Body ground = new StaticBody(this, groundShape);\n ground.setPosition(new Vec2(0, -18));\n\n Shape wallShape = new BoxShape(0.5f, 100);\n Body leftWall = new StaticBody(this, wallShape);\n leftWall.setPosition(new Vec2(-25f, -6));\n leftWall.setName(\"leftWall\");\n Body rightWall = new StaticBody(this, wallShape);\n rightWall.setPosition(new Vec2(25f, -6));\n rightWall.setName(\"rightWall\");\n Body TopWall = new StaticBody(this, groundShape);\n TopWall.setPosition(new Vec2(25f, 18f));\n\n\n Shape platformShape = new BoxShape(3, 0.5f);\n Shape platformShape2= new BoxShape(5,0.5f);\n Shape platformShape3= new BoxShape(12,0.5f);\n Shape platformShape4= new BoxShape(16,0.5f);\n Shape platformShape5= new BoxShape(0.5f,2);\n Body platform1 = new StaticBody(this, platformShape);\n platform1.setPosition(new Vec2(20, -10));\n Body platform2 = new StaticBody(this, platformShape);\n platform2.setPosition(new Vec2(13, -5));\n Body platform3 = new StaticBody(this, platformShape2);\n platform3.setPosition(new Vec2(4, 0));\n Body platform4 = new StaticBody(this, platformShape);\n platform4.setPosition(new Vec2(-15, -5));\n Body platform5 = new StaticBody(this, platformShape);\n platform5.setPosition(new Vec2(20, 3));\n Body platform6 = new StaticBody(this, platformShape3);\n platform6.setPosition(new Vec2(8, 11));\n Body platform7 = new StaticBody(this, platformShape4);\n platform7.setPosition(new Vec2(12, 16.5f));\n Body platform8 = new StaticBody(this,platformShape);\n platform8.setPosition(new Vec2(-10f,10));\n Body platform9 = new StaticBody(this,platformShape2);\n platform9.setPosition(new Vec2(-19.5f,12));\n Body platform10 = new StaticBody(this,platformShape);\n platform10.setPosition(new Vec2(0,-9));\n\n Enemy2 enemy2 = new Enemy2(this);\n enemy2.setPosition(new Vec2(-20, 14));\n enemy2.addCollisionListener(new Collisions(timothyDalton, game));\n\n destroyablePlatform = new StaticBody(this,platformShape5);\n destroyablePlatform.setPosition(new Vec2(-3,13.75f));\n destroyablePlatform.setName(\"destroyablePlatform\");\n\n Heart heart= new Heart(this);\n heart.setPosition(new Vec2(-15,-4));\n heart.addCollisionListener(new Collisions(timothyDalton,game));\n\n GunCoin coin = new GunCoin(this);\n coin.setPosition(new Vec2(0, -8));\n coin.addCollisionListener(new Collisions(timothyDalton,game));\n\n Button1 button= new Button1(this);\n button.setPosition(new Vec2(-24,0));\n button.addCollisionListener(new Collisions(timothyDalton,game));\n }", "public void collisionPhsysics (Body otherBody) {\n if (this.mass <= otherBody.mass) {\n this.merged = true;\n otherBody.mass += this.mass;\n this.x = 0;\n this.y = 0;\n this.temp_x = 0;\n this.temp_y = 0;\n }\n else {\n otherBody.merged = true;\n this.mass += otherBody.mass;\n otherBody.x = 0;\n otherBody.y = 0;\n otherBody.temp_x = 0;\n otherBody.temp_y = 0;\n }\n\n // momentum transfer\n if (this.mass <= otherBody.mass) {\n otherBody.vx = (this.mass*this.vx + otherBody.mass*otherBody.vx)/(this.mass + otherBody.mass);\n otherBody.vy = (this.mass*this.vy + otherBody.mass*otherBody.vy)/(this.mass + otherBody.mass);\n }\n else {\n this.vx = (this.mass*this.vx + otherBody.mass*otherBody.vx)/(this.mass + otherBody.mass);\n this.vy = (this.mass*this.vy + otherBody.mass*otherBody.vy)/(this.mass + otherBody.mass);\n }\n\n\n }", "@Override\n\tpublic boolean isSideSolid( IBlockAccess world, int x, int y, int z, ForgeDirection side )\n\t{\n\t\treturn true;\n\t}", "private void notWorthy(final Player player) {\n\t\tplayer.getInterfaceManager().closeChatBoxInterface();\n\t\tplayer.lock(15);\n\t\tplayer.setNextFaceWorldTile(new WorldTile(3084, 3483, 0));\n\t\tWorldTasksManager.schedule(new WorldTask() {\n\t\t\tint phase = 0;\n\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\tfinal int[] randomNPC = { 6935, 3283, 4344, 6966 };\n\t\t\t\tswitch (phase) {\n\t\t\t\tcase 0:\n\t\t\t\t\tplayer.setNextAnimation(new Animation(857));\n\t\t\t\t\tbreak;\n\t\t\t\tcase 1:\n\t\t\t\t\tplayer.setNextAnimation(new Animation(915));\n\t\t\t\t\tbreak;\n\t\t\t\tcase 2:\n\t\t\t\t\tplayer.setNextAnimation(new Animation(857));\n\t\t\t\t\tbreak;\n\t\t\t\tcase 3:\n\t\t\t\t\tplayer.setNextGraphics(new Graphics(86));\n\t\t\t\t\tplayer.getGlobalPlayerUpdater().transformIntoNPC(randomNPC[Utils.random(randomNPC.length - 1)]);\n\t\t\t\t\tbreak;\n\t\t\t\tcase 4:\n\t\t\t\t\tplayer.setNextForceTalk(new ForceTalk(\".... what in Helwyr is going on..!?\"));\n\t\t\t\t\tbreak;\n\t\t\t\tcase 5:\n\t\t\t\t\tplayer.setNextGraphics(new Graphics(86));\n\t\t\t\t\tplayer.getGlobalPlayerUpdater().transformIntoNPC(-1);\n\t\t\t\t\tplayer.setNextAnimation(new Animation(10070));\n\t\t\t\t\t//player.setNextForceMovement(new ForceMovement(new WorldTile(3084, 3485, 0), 0, 2));\n\t\t\t\t\tbreak;\n\t\t\t\tcase 6:\n\t\t\t\t\t//player.setNextWorldTile(new WorldTile(3084, 3485, 0)); TODO find out why force movement doesn't work <.>\n\t\t\t\t\tNPC guard = World.findNPC(5941);\n\t\t\t\t\tsendNPCDialogue(4405, GOOFY_LAUGH, \"Looks like Dahmaroc had a sense of humour!\");\n\t\t \t // player.faceEntity(guard);\n\t\t \t // guard.faceEntity(player);\n\t\t\t\t\tplayer.unlock();\n\t\t\t\t\tstage = 99;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tphase++;\n\t\t\t}\n\t\t}, 0, 2);\n\t}", "private void buildBody() {\n\t\tBodyDef def = new BodyDef();\n\t\tdef.type = BodyType.KinematicBody;\n\t\tdef.position.set(new Vector2(0, 0));\n\t\tmouseBody = GamePlayManager.world.createBody(def);\n\n\t\t//this body is jointed to the above body and is physically pulled towards the mouse\n\t\tBodyDef def2 = new BodyDef();\n\t\tdef2.type = BodyType.DynamicBody;\n\t\tdef2.position.set(new Vector2(0, 0));\n\t\tBody collisionBody = GamePlayManager.world.createBody(def2);\n\t\tCircleShape shape = new CircleShape();\n\t\tshape.setRadius(8 * Util.PIXEL_TO_BOX);\n\t\tFixtureDef fixDef2 = new FixtureDef();\n\t\tfixDef2.shape = shape;\n\t\tfixDef2.isSensor = true;\n\t\tfixDef2.density = 1f;\n\t\tfixDef2.filter.categoryBits = Util.CATEGORY_EVERYTHING;\n\t\tfixDef2.filter.maskBits = Util.CATEGORY_EVERYTHING;\n\t\tcollisionBody.createFixture(fixDef2);\n\t\tcollisionBody.setUserData(this);\n\t\tshape.dispose();\n\t\t\n\t\tWeldJointDef jDef = new WeldJointDef();\n\t\tjDef.bodyA = mouseBody;\n\t\tjDef.bodyB = collisionBody;\n\t\tjDef.collideConnected = false;\n\t\tjDef.type = JointType.WeldJoint;\n\t\tjDef.referenceAngle = 0;\n\t\tjDef.dampingRatio = 0;\n\t\tGamePlayManager.world.createJoint(jDef);\n\t}", "public void sunAndPlanet()\n {\n removeAllObjects();\n addObject (new Body (50, 240.0, new Vector(270, 0.03), new Color(255, 216, 0)), 460, 270);\n addObject (new Body (20, 4.2, new Vector(90, 2.2), new Color(0, 124, 196)), 695, 260);\n }", "@Override\n public boolean isConditionallySolid(final MazeObjectInventory inv) {\n return true;\n }", "public SimulationWorld( SimulationEngine engine )\n {\n this.engine = engine;\n this.gravity = new Vector3f( 0f, -9.81f, 0f );\n }", "protected void setupPhysicsWorld() {\n\t\tfloat mass = 1.0f;\n\t\tfloat up[] = { 0.0f, 1.0f, 0.0f };\n\t\tdouble[] transform;\n\n\t\ttransform = toDoubleArray(dolphinNodeOne.getLocalTransform().toFloatArray());\n\t\tdolphinOnePhysicsObject = physicsEngine.addCapsuleObject(physicsEngine.nextUID(), mass, transform, 0.3f, 1.0f);\n\n\t\tdolphinOnePhysicsObject.setBounciness(0.0f);\n\t\tdolphinOnePhysicsObject.setFriction(0.0f);\n\t\tdolphinOnePhysicsObject.setDamping(0.99f, 0.99f);\n\t\tdolphinOnePhysicsObject.setSleepThresholds(0.0f, 0.0f);\n\t\tdolphinNodeOne.setPhysicsObject(dolphinOnePhysicsObject);\n\n\t\ttransform = toDoubleArray(groundNode.getLocalTransform().toFloatArray());\n\t\tgroundPlane = physicsEngine.addStaticPlaneObject(physicsEngine.nextUID(), transform, up, 0.0f);\n\n\t\tgroundPlane.setBounciness(0.0f);\n\n\t\tdouble[] planeTransform = groundPlane.getTransform();\n\t\tplaneTransform[12] = groundNode.getLocalPosition().x();\n\t\tplaneTransform[13] = groundNode.getLocalPosition().y();\n\t\tplaneTransform[14] = groundNode.getLocalPosition().z();\n\t\tgroundPlane.setTransform(planeTransform);\n\t\tgroundNode.setPhysicsObject(groundPlane);\n\n\t\tfor (int i = 0; i < npcEntity.length; i++) {\n\t\t\tdouble[] transformNPC = toDoubleArray(npcEntity[i].getNode().getLocalTransform().toFloatArray());\n\t\t\tPhysicsObject npcPhysicObject = physicsEngine.addCapsuleObject(physicsEngine.nextUID(), mass, transformNPC,\n\t\t\t\t\t0.3f, 1.0f);\n\t\t\tnpcPhysicObject.setBounciness(0.0f);\n\t\t\tnpcPhysicObject.setFriction(0.0f);\n\t\t\tnpcPhysicObject.setDamping(0.99f, 0.99f);\n\t\t\tnpcPhysicObject.setSleepThresholds(0.0f, 0.0f);\n\t\t\tnpcEntity[i].getNode().setPhysicsObject(npcPhysicObject);\n\t\t\tnpcEntity[i].setPhysicObject(npcPhysicObject);\n\t\t\tnpcPhysicsObjects[i] = npcEntity[i].getPhysicObject();\n\t\t}\n\t}", "public abstract void makePlayer(Vector2 origin);", "private void constructBody( Vector2 position, float height, float width ) {\n\t\tBodyDef bodyDef = new BodyDef( );\n\t\tbodyDef.type = BodyType.KinematicBody;\n\t\tbodyDef.position.set( position.x * Util.PIXEL_TO_BOX, position.y\n\t\t\t\t* Util.PIXEL_TO_BOX );\n\t\tbody = world.createBody( bodyDef );\n\n\t\tPolygonShape polygon = new PolygonShape( );\n\t\tpolygon.setAsBox( width * Util.PIXEL_TO_BOX, height * Util.PIXEL_TO_BOX );\n\t\tFixtureDef steamFixtureDef = new FixtureDef( );\n\t\tsteamFixtureDef.shape = polygon;\n\t\tsteamFixtureDef.isSensor = true;\n\t\tbody.createFixture( steamFixtureDef );\n\n\t\tpolygon.dispose( );\n\n\t\tbody.setUserData( this );\n\n\t}", "public Stage1()\n { \n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\n super(1200, 900, 1);\n \n GreenfootImage image = getBackground();\n image.setColor(Color.BLACK);\n image.fill();\n star();\n \n \n \n //TurretBase turretBase = new TurretBase();\n playerShip = new PlayerShip();\n scoreDisplay = new ScoreDisplay();\n addObject(scoreDisplay, 100, 50);\n addObject(playerShip, 100, 450);\n \n }", "public void populate() { \n \n // make some grounds\n ground1 = new Body(world, PolygonShape.makeBox(100, 5), Body.Type.STATIC);\n ground1.setPosition(new Vec2(-380, -200));\n \n Body ground2 = new Body(world, PolygonShape.makeBox(100, 5), Body.Type.STATIC);\n ground2.setPosition(new Vec2(-0, -200));\n\n Body ground3 = new Body(world, PolygonShape.makeBox(100, 5), Body.Type.STATIC);\n ground3.setPosition(new Vec2(300, -100));\n \n // make a moving platform \n Body movingPlatform = new SlidingPlatform(world, PolygonShape.makeBox(100, 5), new Vec2(130, 0), 2);\n movingPlatform.setPosition(new Vec2(-260, -150));\n \n // make some bottles\n Bottle bottle1 = new Bottle(game);\n bottle1.putOn(ground1);\n bottle1.setName(\"bottle1\");\n \n Bottle bottle2 = new Bottle(game);\n bottle2.putOn(ground2);\n bottle2.setName(\"bottle2\");\n \n Bottle bottle3 = new Bottle(game);\n bottle3.putOn(ground3);\n bottle3.setName(\"bottle3\");\n \n // show dialog with information about level\n JOptionPane.showMessageDialog(frame, \"Press N or M to throw bottles to kill Boxies.\", \"Level instructions:\", JOptionPane.PLAIN_MESSAGE);\n \n // make some boxies\n Boxy boxy1 = new Boxy(game);\n boxy1.setName(\"boxy1\");\n Vec2 vec1 = new Vec2(100, 0);\n boxy1.move(vec1);\n\n Boxy boxy2 = new Boxy(game);\n boxy2.setName(\"boxy2\");\n Vec2 vec2 = new Vec2(-100, 200);\n boxy2.move(vec2);\n\n Boxy boxy3 = new Boxy(game);\n boxy3.setName(\"boxy3\");\n Vec2 vec3 = new Vec2(-400, 200);\n boxy3.move(vec3);\n \n }", "public void createBody(World world) {\n\t BodyEditorLoader loader = new BodyEditorLoader((FileHandle)game.getResourceManager().getResource(assetName + \".json\"));\n\t \n\t // 1. Create a BodyDef, as usual.\n\t BodyDef bd = new BodyDef();\n\t bd.type = BodyType.StaticBody;\n\t \n\t // 2. Create a FixtureDef, as usual.\n\t FixtureDef fd = new FixtureDef();\n\t fd.density = 1;\n\t fd.friction = 0.5f;\n\t fd.restitution = 0f;\n\t fd.isSensor = true;\n\t fd.filter.categoryBits = FilterData.ENTITY;\n\t \n\t // 3. Create a Body, as usual.\n\t body = world.createBody(bd);\n\t body.setTransform(GameUtil.ptm(position.x), GameUtil.ptm(position.y), 0);\n\t body.setUserData(this);\n\t \n\t // 4. Create the body fixture automatically by using the loader.\n\t loader.attachFixture(body, assetName, fd, GameUtil.ptm(sprite.getWidth()));\n\t}", "SmilBody getBody();", "@Override\n public void setup_level(GameController gameController) {\n\n super.setup_level(gameController);\n \n castle = new Castle (this, FINISH_BARREL_POSITION, gameController);\n \n {\n BoxShape bottom_sensor_shape = new BoxShape (250f,0.2f);\n Body ground = new StaticBody(this,bottom_sensor_shape);\n Sensor killer_sensor = new Sensor(ground, bottom_sensor_shape);\n ground.setPosition(new Vec2(170f,-7f));\n killer_sensor.addSensorListener(new Hero_killer_sensor(this));\n \n \n Shape left_wall_shape = new BoxShape(1, 20);\n StaticBody wall = new StaticBody(this, left_wall_shape);\n wall.setPosition(new Vec2(-3f, 20f));\n wall.addImage(new BodyImage(\"sprites/platforms/invisible_wall.png\"));\n }\n {\n \n \n get_platforms().add(new Platform(this, 8, new Vec2 (3f, -1f), \"TRUNK\"));\n get_platforms().add(new Platform(this, 5, new Vec2 (20f, 6f), \"CLOUD\"));\n get_coins().add(new Coin(this, new Vec2(22f, 12f)));\n get_coins().add(new Coin(this, new Vec2(24f, 12f)));\n get_coins().add(new Coin(this, new Vec2(26f, 12f)));\n get_platforms().add(new Platform(this, 18, new Vec2 (42f, 6f), \"CLOUD\")); \n get_dynamic_enemies().add(new Turtle_fly_enemy(new Vec2(44f,7f), 4, \"TURTLE\", this));\n \n \n get_platforms().add(new Platform(this, 4, new Vec2 (96f, 6f), \"CLOUD\")); \n get_fire_rods().add(new Fire_rod(this, new Vec2 (90f, 18f)));\n \n get_platforms().add(new Platform(this, 4, new Vec2 (118f, 6f), \"CLOUD\"));\n get_fire_rods().add(new Fire_rod(this, new Vec2 (112f, 18f)));\n \n get_platforms().add(new Platform(this, 4, new Vec2 (136f, 2f), \"CLOUD\"));\n get_fire_rods().add(new Fire_rod(this, new Vec2 (138f, 12f)));\n \n get_platforms().add(new Platform(this, 4, new Vec2 (148f, 8f), \"CLOUD\"));\n get_coins().add(new Coin(this, new Vec2(150f, 14f)));\n get_coins().add(new Coin(this, new Vec2(152f, 14f)));\n get_platforms().add(new Platform(this, 5, new Vec2 (164f, 8f), \"CLOUD\"));\n \n get_fire_rods().add(new Fire_rod(this, new Vec2 (179f, 4f)));\n get_dynamic_enemies().add(new Turtle_fly_enemy(new Vec2(167f,9f), 4, \"TURTLE\", this));\n \n get_platforms().add(new Platform(this, 5, new Vec2 (184f, 8f), \"CLOUD\"));\n get_dynamic_enemies().add(new Brown_enemy(new Vec2(187f, 9f), 4, \"BROWN\", this));\n \n get_platforms().add(new Platform(this, 3, new Vec2 (204, 8f), \"CLOUD\"));\n get_coins().add(new Coin(this, new Vec2(206f, 14f)));\n get_platforms().add(new Platform(this, 3, new Vec2 (214, 13f), \"CLOUD\"));\n \n get_fire_rods().add(new Fire_rod(this, new Vec2 (230f, 10.5f)));\n get_platforms().add(new Platform(this, 3, new Vec2 (228, 13f), \"CLOUD\"));\n \n get_fire_rods().add(new Fire_rod(this, new Vec2 (244f, 10.5f)));\n get_platforms().add(new Platform(this, 3, new Vec2 (242, 13f), \"CLOUD\"));\n get_coins().add(new Coin(this, new Vec2(246f, 19f)));\n get_coins().add(new Coin(this, new Vec2(246f, 21f)));\n get_coins().add(new Coin(this, new Vec2(244f, 19f)));\n get_coins().add(new Coin(this, new Vec2(244f, 21f)));\n get_fire_rods().add(new Fire_rod(this, new Vec2 (258f, 10.5f)));\n get_platforms().add(new Platform(this, 3, new Vec2 (256, 13f), \"CLOUD\"));\n \n get_platforms().add(new Platform(this, 3, new Vec2 (266, 18f), \"CLOUD\"));\n get_dynamic_enemies().add(new Brown_enemy(new Vec2(268f, 19.25f), 4, \"BROWN\", this));\n \n get_platforms().add(new Platform(this, 3, new Vec2 (276f, 5f), \"TRUNK\"));\n get_coins().add(new Coin(this, new Vec2(279f, 21f)));\n get_coins().add(new Coin(this, new Vec2(279f, 19f)));\n get_coins().add(new Coin(this, new Vec2(279f, 17f)));\n get_coins().add(new Coin(this, new Vec2(279f, 15f)));\n \n get_platforms().add(new Platform(this, 6, new Vec2 (292f, 4f), \"TRUNK\"));\n get_dynamic_enemies().add(new Turtle_fly_enemy(new Vec2(294f,6f), -4, \"TURTLE\", this));\n get_dynamic_enemies().add(new Turtle_fly_enemy(new Vec2(298f,6f), 4, \"TURTLE\", this));\n \n get_platforms().add(new Platform(this, 2, new Vec2 (312f, 5f), \"TRUNK\"));\n \n get_platforms().add(new Platform(this, 2, new Vec2 (322f, 8f), \"TRUNK\"));\n \n get_platforms().add(new Platform(this, 1, new Vec2 (333f, 11f), \"CLOUD\"));\n \n \n \n \n get_fire_rods().add(new Fire_rod(this, new Vec2 (351f, 11.5f)));\n get_platforms().add(new Platform(this, 1, new Vec2 (343f, 15f), \"CLOUD\"));\n get_platforms().add(new Platform(this, 1, new Vec2 (351, 15f), \"CLOUD\"));\n \n get_fire_rods().add(new Fire_rod(this, new Vec2 (357f, 27.5f)));\n \n get_platforms().add(new Platform(this, 2, new Vec2 (359, 15f), \"CLOUD\"));\n \n get_platforms().add(new Platform(this, 2, new Vec2 (373, 6f), \"TRUNK\"));\n get_pipes().add(new Pipe(this, new Vec2(374.3f,11f) , true));\n get_platforms().add(new Platform(this, 3, new Vec2 (389, 12f), \"CLOUD\"));\n get_dynamic_enemies().add(new Turtle_fly_enemy(new Vec2(391f,14f), -4, \"TURTLE\", this));\n \n get_platforms().add(new Platform(this, 20, new Vec2 (399, 3f), \"GROUND\"));\n \n \n \n \n \n\n }\n \n this.start();\n\n }", "public GameWon()\n { \n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\n super(550, 600, 1); \n addObject(b1,275,250);\n addObject(b2,275,380);\n }", "public ModelFlameThrower()\n/* 16: */ {\n/* 17:15 */ float f = 0.0F;\n/* 18:16 */ this.bipedGun = new ModelRenderer(this, 0, 10);\n/* 19:17 */ this.bipedGun.addBox(0.0F, 0.0F, 0.0F, 4, 4, 4, f);\n/* 20: */ \n/* 21:19 */ this.rifle = new ModelRenderer(this, 0, 18);\n/* 22:20 */ this.rifle.addBox(0.5F, 0.2F, 4.0F, 3, 3, 3, f);\n/* 23: */ \n/* 24:22 */ this.mouth = new ModelRenderer(this, 0, 0);\n/* 25:23 */ this.mouth.addBox(1.5F, 1.2F, 7.0F, 1, 1, 2, f);\n/* 26: */ \n/* 27:25 */ this.spark = new ModelRenderer(this, 14, 0);\n/* 28:26 */ this.spark.addBox(1.5F, 0.0F, 0.0F, 1, 1, 3, -0.38F);\n/* 29:27 */ this.spark.setRotationPoint(0.0F, 0.0F, 6.9F);\n/* 30:28 */ this.spark.rotateAngleX = -0.2618F;\n/* 31: */ }", "private boolean UpdateWithCarriedBlock()\r\n {\r\n \tint iCarriedBlockID = getCarried();\r\n \t\r\n \tif ( worldObj.provider.dimensionId == 1 ) \r\n \t{\r\n\t\t\t// we're in the end dimension with a block, and should attempt to place it\r\n\t\t\t\r\n int i = MathHelper.floor_double( posX ) + rand.nextInt( 5 ) - 2;\r\n int j = MathHelper.floor_double( posY ) + rand.nextInt( 7 ) - 3;\r\n int k = MathHelper.floor_double( posZ ) + rand.nextInt( 5 ) - 2;\r\n \r\n\t\t\tint iWeight = GetPlaceEndstoneWeight( i, j, k );\r\n\t\t\t\r\n if ( rand.nextInt( m_iMaxEnstonePlaceWeight >> 9 ) < iWeight )\r\n {\r\n\t\t worldObj.playAuxSFX( FCBetterThanWolves.m_iEnderBlockPlaceAuxFXID, i, j, k, iCarriedBlockID + ( getCarryingData() << 12 ) );\r\n\t\t \r\n worldObj.setBlockAndMetadataWithNotify( i, j, k, getCarried(), getCarryingData());\r\n \r\n setCarried(0);\r\n }\r\n \t}\r\n \telse\r\n \t{\r\n\t\t\t// \teventually the enderman should teleport away to the end with his block\r\n\t\t\t\r\n \t\tif ( rand.nextInt( 2400 ) == 0 )\r\n \t\t{\r\n \t\t\t// play dimensional travel effects\r\n \t\t\t\r\n int i = MathHelper.floor_double( posX );\r\n int j = MathHelper.floor_double( posY ) + 1;\r\n int k = MathHelper.floor_double( posZ );\r\n \r\n\t\t worldObj.playAuxSFX( FCBetterThanWolves.m_iEnderChangeDimensionAuxFXID, i, j, k, 0 );\r\n\t\t \r\n setDead();\r\n \r\n return false;\r\n \t\t}\r\n \t}\r\n \t\r\n \treturn true;\r\n }", "@Override\n public void landedOn(Player player) {}", "public boolean collidesWith(Ellipse2D.Double body, int bodyColor) {\n\t\tArea currentBody = new Area(getRotatedBody(angle));\r\n\t\tArea playerArea = new Area(body);\r\n\t\tplayerArea.intersect(currentBody);\r\n\t\treturn !(playerArea.isEmpty() || this.getColorType() == bodyColor) ;\r\n\t\t//return false;\r\n\t}", "public void execute(FieldPlayer player){\n if (player.isBallWithinReceivingRange() || !player.getTeam().inControl()){\n player.getFSM().changeState(ChaseBall.Instance());\n\n return;\n } \n\n if (player.getSteering().PursuitIsOn()){\n player.getSteering().setTarget(player.getBall().getPos());\n }\n\n //if the player has 'arrived' at the steering target he should wait and\n //turn to face the ball\n if (player.isAtTarget()){\n player.getSteering().arriveOff();\n player.getSteering().pursuitOff();\n player.trackBall(); \n player.setVelocity(new Vector2D(0,0));\n } \n }", "public void updatePlayer(float deltaTime){\n\n this.sprite.setPosition(body.getPosition().x * GameInfo.PPM, body.getPosition().y * GameInfo.PPM);\n this.feet.getPosition().set(pos.x * GameInfo.PPM, pos.y * GameInfo.PPM);\n\n if(this.isInAir)\n inAirTime += deltaTime;\n }", "private boolean UpdateWithoutCarriedBlock()\r\n {\r\n if ( rand.nextInt(20) == 0 )\r\n {\r\n int i = MathHelper.floor_double( ( posX - 3D ) + rand.nextDouble() * 6D );\r\n int j = MathHelper.floor_double( posY - 1D + rand.nextDouble() * 7D );\r\n int k = MathHelper.floor_double( ( posZ - 3D ) + rand.nextDouble() * 6D );\r\n \r\n int l1 = worldObj.getBlockId( i, j, k );\r\n\r\n if ( CanPickUpBlock( i, j, k ) )\r\n {\r\n\t\t worldObj.playAuxSFX( FCBetterThanWolves.m_iEnderBlockCollectAuxFXID, i, j, k, l1 + ( worldObj.getBlockMetadata( i, j, k ) << 12 ) );\r\n\t\t \r\n setCarried( worldObj.getBlockId( i, j, k ) );\r\n setCarryingData( worldObj.getBlockMetadata( i, j, k ) );\r\n worldObj.setBlockToAir( i, j, k );\r\n }\r\n }\r\n else if ( worldObj.provider.dimensionId == 1 )\r\n {\r\n \t// Endermen in the end without a block in hand will eventually teleport back to the overworld\r\n \t\r\n \t\tif ( rand.nextInt( 9600 ) == 0 )\r\n \t\t{\r\n \t\t\t// play dimensional travel effects\r\n \t\t\t\r\n int i = MathHelper.floor_double( posX );\r\n int j = MathHelper.floor_double( posY ) + 1;\r\n int k = MathHelper.floor_double( posZ );\r\n \r\n\t\t worldObj.playAuxSFX( FCBetterThanWolves.m_iEnderChangeDimensionAuxFXID, i, j, k, 0 );\r\n\t\t \r\n setDead();\r\n \r\n return false;\r\n \t\t}\r\n }\r\n \r\n return true;\r\n }", "public World2(int score, int time)\n {\n //call to superclass to use centreCameraOn function\n //super(3900,900,3900,900, true);\n super(600,400,true);\n MuteControl.setBGM(bgm);\n gameLevel = \"2\";\n startScore = score;\n startTime = time;\n Player p = new Player();\n layer1 = new GreenfootImage(\"images/city BG.png\");\n\n redrawBackground();\n addObject(p,100,826);\n addObject(new Hud(0,0,p),113,62);\n addObject(new Wall(5,2),-22,675);\n addObject(new Spikes(1),1219,591);\n addObject(new Spikes(2),1319,590);\n addObject(new Spikes(0),1298,422);\n addObject(new Spikes(0),1357,422);\n addObject(new Spikes(2),2013,581);\n addObject(new Spikes(2),2508,300);\n addObject(new Spikes(2),2617,300);\n\n addObject(new TrackEnemy(2),1193,403);\n addObject(new TrackEnemy(2),2531,280);\n addObject(new TrackEnemy(2),2671,781);\n addObject(new TrackEnemy(2),2889,781);\n\n \n addObject(new Wall(1,2),1520,731);\n addObject(new Wall(1,2),1935,664);\n addObject(new Wall(1,2),1996,625);\n addObject(new Wall(1,2),2061,585);\n addObject(new Wall(1,2),2124,541);\n addObject(new Wall(1,2),2214,476);\n addObject(new Wall(1,2),2269,428);\n addObject(new Wall(3,2),2357,483);\n addObject(new Wall(3,2),2718,484);\n addObject(new Wall(1,2),2824,380);\n addObject(new Wall(1,2),2920,457);\n addObject(new Wall(1,2),2857,575);\n addObject(new Wall(1,2),2787,669);\n addObject(new Wall(4,2),3772,670);\n addObject(new Wall(1,2),2914,471);\n addObject(new Wall(1,2),2852,581);\n\n addObject(new Flag(),3862,782);\n\n \n addObject(new Powerup(2),1455,730);\n addObject(new Powerup(0),1252,408);\n addObject(new Powerup(1),2532,458);\n addObject(new Powerup(3),2634,414);\n addObject(new Powerup(2),2433,422);\n addObject(new Powerup(1),3614,558);\n\n \n //addObject(pd,122,40);\n addObject(new PushObject(),530,324);\n addObject(new PushObject(),2142,483);\n\n addObject(new WoodLog(),789,748);\n addObject(new WoodLog(),871,781);\n addObject(new WoodLog(),962,756);\n addObject(new WoodLog(),1049,722);\n addObject(new WoodLog(),1132,673);\n addObject(new WoodLog(),1431,585);\n addObject(new WoodLog(),1520,555);\n addObject(new WoodLog(),1598,582);\n addObject(new WoodLog(),1678,623);\n addObject(new WoodLog(),1759,686);\n addObject(new WoodLog(),1677,741);\n addObject(new WoodLog(),1860,714);\n addObject(new WoodLog(),1464,493);\n addObject(new WoodLog(),2620,579);\n addObject(new WoodLog(),2532,501);\n addObject(new WoodLog(),2634,458);\n addObject(new WoodLog(),2434,462);\n addObject(new WoodLog(),2324,769);\n addObject(new WoodLog(),3124,796);\n addObject(new WoodLog(),3241,756);\n addObject(new WoodLog(),3371,721);\n addObject(new WoodLog(),3497,754);\n addObject(new WoodLog(),3493,653);\n addObject(new WoodLog(),3612,605);\n addObject(new WoodLog(),3594,791);\n\n \n \n addObject(new Grass(20,2),300,885);\n addObject(new Grass(5,2),1279,635);\n addObject(new Grass(6,2),1279,468);\n addObject(new Grass(5,2),1521,799);\n addObject(new Grass(9,2),2539,344);\n addObject(new Grass(8,2),2560,684);\n addObject(new Grass(15,2),2714,845);\n addObject(new Grass(15,2),2714,845);\n addObject(new Grass(5,2),3764,845);\n addObject(new Grass(6,2),3034,445);\n\n addObject(new Tree(4),186,811);\n addObject(new Tree(5),412,650);\n addObject(new Tree(4),624,812);\n addObject(new Tree(4),2438,270);\n addObject(new Tree(4),2550,273);\n addObject(new Tree(4),2655,271);\n addObject(new Tree(4),2496,771);\n addObject(new Tree(4),2723,771);\n addObject(new Tree(5),2999,612);\n\n \n addObject(new MafiaEnemy(),2514,291);\n addObject(new MafiaEnemy(),2714,291);\n addObject(new MafiaEnemy(),292,832);\n addObject(new MafiaEnemy(),410,832);\n addObject(new MafiaEnemy(),1526,678);\n addObject(new MafiaEnemy(),2393,291);\n addObject(new MafiaEnemy(),2649,291);\n addObject(new MafiaEnemy(),2547,792);\n addObject(new MafiaEnemy(),2746,792);\n addObject(new MafiaEnemy(),3685,792);\n\n \n //addObject(new Moveable(), 500, 500);\n }", "private void render()\n\t{\n\t\ttheta = (float) (velocity.heading() + Math.toRadians(90.0));\n\n\t\t// se baser sur le temps écoulé depuis le lancement\n\t\tf = parent.frameCount / 4;\n\t\tint fi = f + 1;\n\t\tfloat x = fi % DIM * W;\n\t\tfloat y = fi / DIM % DIM * H;\n\n\t\tparent.pushMatrix();\n\t\tparent.translate(location.x, location.y);\n\t\tparent.rotate(theta);\n\t\tparent.beginShape();\n\t\tparent.texture(spritesheet);\n\t\tparent.vertex(0, 0, x, y);\n\t\tparent.vertex(100, 0, x + W, y);\n\t\tparent.vertex(100, 100, x + W, y + H);\n\t\tparent.vertex(0, 100, x, y + H);\n\t\tparent.endShape();\n\t\tparent.popMatrix();\n\t}", "private void renderBody(GL2 gl, SimulationBody body) {\n\t\t// apply the transform\n\t\tRenderUtilities.pushTransform(gl);\n\t\tRenderUtilities.applyTransform(gl, body.getTransform());\n\t\t\n\t\t// render the body\n\t\t// check for multiple fixtures\n\t\tbody.render(gl);\n\t\t\n\t\t// render the center of mass\n\t\tbody.renderCenter(gl);\n\n\t\tRenderUtilities.popTransform(gl);\n\t\t\n\t\t// render the velocities\n\t\tbody.renderVelocity(gl);\n\t}", "public ProjectGame() {\n\n super(\"BulletHell\", 1200, 900);\n die = new Event();\n backgroundMusic = new SoundManagerClass();\n playButton.setPositionX(420);\n playButton.setPositionY(180);\n quitButton.setPositionX(623);\n quitButton.setPositionY(181);\n //x = 0;\n reduceLife = new Event();\n fadeOutEvent = new Event();\n PickedUpEvent = new Event();\n die.setEventType(\"playerDeath\");\n fadeOutEvent.setEventType(\"FadeOut\");\n reduceLife.setEventType(\"Collision\");\n collidedEvent = new Event();\n collidedEvent.setEventType(\"CollidedEvent\");\n throwKnife = new Event();\n throwKnife.setEventType(\"throwKnife\");\n\n\n keyIcon.setPositionX(200);\n keyIcon.setPositionY(40);\n\n knifeIcon.setPositionX(205);\n knifeIcon.setPositionY(95);\n\n currentLevel = 0;//0 = base , 3=brigham's level\n\n\n PickedUpEvent.setEventType(\"CoinPickedUp\");\n\n this.addEventListener(myQuestManager, collidedEvent.getEventType());\n\n\n background.setScaleX(5);\n background.setScaleY(5);\n\n background.setScaleX(5);\n background.setScaleY(5);\n\n\n player = new Player(\"player\", \"resources/player_sheet.png\", \"idle_right\");\n player.setSpriteSheetJson(\"resources/player_sheet.json\");\n player.setDelay(100);\n\n player.getLifeArray().get(0).setPositionX(390);\n player.getLifeArray().get(0).setPositionY(40);\n player.getLifeArray().get(1).setPositionX(420);\n player.getLifeArray().get(1).setPositionY(40);\n player.getLifeArray().get(2).setPositionX(450);\n player.getLifeArray().get(2).setPositionY(40);\n // player.setHasPhysics(true);\n keyCount = 0;\n knifeCount = 4;\n // player.setHasPhysics(true);\n\n // platform.setPositionX(50);\n // platform.setPositionY(550);\n\n\n // platform1.setPositionX(150);\n // platform1.setPositionY(150);\n\n\n player.setPositionX(550);\n player.setPositionY(700);\n\n pressE = new Sprite(\"pressE\", \"pressE.png\");\n player.addChild(pressE);\n pressE.setPositionY(-50);\n\n\n coin.setPositionY(250);\n coin.setPositionX(660);\n\n findKey.setPositionX(500);\n findKey.setPositionY(-20);\n\n getToRoom.setPositionX(500);\n getToRoom.setPositionY(-20);\n\n killTurtle.setPositionX(500);\n killTurtle.setPositionY(-20);\n\n\n //Rectangle2D rect = new Rectangle2D.Float(600,400,700,500);\n //coverList = new ArrayList<Rectangle2D>(); //list of cover sprites\n //coverList.add(rect);\n\n ///////////////////////////////////////LEVEL 0 ////////////////////////////////////////////////////////////////\n\n if (currentLevel == 0) {\n\n tutorial = new TutorialLevel1(\"Tutorial\");\n tutorial.run();\n addChild(tutorial);\n\n myLevel = new Level0(\"Room1\");\n myLevel.run();\n addChild(myLevel);\n\n\n myLevel1 = new Level1(\"Room2\");\n myLevel1.run();\n myLevel1.hide();\n addChild(myLevel1);\n\n myLevel2 = new ahmedslevel(\"Room3\", player);\n myLevel2.run();\n myLevel2.hide();\n addChild(myLevel2);\n\n myLevel3 = new BrighamLevel(\"Room4\");\n myLevel3.run();\n myLevel3.hide();\n addChild(myLevel3);\n\n level4 = new AlternatingSpikesLevel(\"Room6\");\n level4.run();\n level4.hide();\n addChild(level4);\n\n bossLevel = new BossLevel(\"Room5\", player);\n bossLevel.run();\n bossLevel.hide();\n addChild(bossLevel);\n\n\n\n tutorial.mapDoorToRoom(0,myLevel);\n myLevel.mapDoorToRoom(0, myLevel1);\n myLevel1.mapDoorToRoom(0, myLevel2);\n myLevel2.mapDoorToRoom(0, myLevel3);\n myLevel3.mapDoorToRoom(0, level4);\n level4.mapDoorToRoom(0, bossLevel);\n //myLevel3.mapDoorToRoom(0,bossLevel);\n\n\n currentRoom = tutorial;\n\n //myLevel1.mapDoorToRoom(0,myLevel2);\n\n //myLevel2.run();\n //myLevel2.hide();\n\n\n //myLevel2.mapDoorToRoom(0,myLevel3);\n //myLevel3.run();\n //myLevel3.hide();\n currentQuestObjective = 0;\n\n }\n\n if (currentLevel == 4) {\n\n\n bossLevel = new BossLevel(\"Room4\", player);\n bossLevel.run();\n currentRoom = bossLevel;\n\n\n }\n\n enemies = currentRoom.enemies;\n pickpocketEnemy = null;\n\n transitionY = 615;\n transitionYCurrent = 615;\n\n\n backgroundMusic.playSoundEffect(\"resources/oceanOperator.wav\", 100);\n\n }", "public void onLivingUpdate()\n {\n super.onLivingUpdate();\n double moveSpeed = this.getAttributeMap().getAttributeInstance(SharedMonsterAttributes.MOVEMENT_SPEED).getAttributeValue();\n if (timetopee-- < 0 && !bumgave)\n {\n isJumping = false;\n\n if (bumrotation == 999F)\n {\n bumrotation = rotationYaw;\n }\n\n rotationYaw = bumrotation;\n moveSpeed = 0.0F;\n\n if (!onGround)\n {\n motionY -= 0.5D;\n }\n \n /* TODO\n if(worldObj.isRemote)\n {\n \tMCW.proxy.pee(worldObj, posX, posY, posZ, rotationYaw, modelsize);\n } */\n\n if (timetopee < -200)\n {\n timetopee = rand.nextInt(600) + 600;\n bumrotation = 999F;\n int j = MathHelper.floor_double(posX);\n int k = MathHelper.floor_double(posY);\n int l = MathHelper.floor_double(posZ);\n\n for (int i1 = -1; i1 < 2; i1++)\n {\n for (int j1 = -1; j1 < 2; j1++)\n {\n if (rand.nextInt(3) != 0)\n {\n continue;\n }\n\n Block k1 = worldObj.getBlockState(new BlockPos(j + j1, k - 1, l - i1)).getBlock();\n Block l1 = worldObj.getBlockState(new BlockPos(j + j1, k, l - i1)).getBlock();\n\n if (rand.nextInt(2) == 0)\n {\n if ((k1 == Blocks.GRASS || k1 == Blocks.DIRT) && l1 == Blocks.AIR)\n {\n worldObj.setBlockState(new BlockPos(j + j1, k, l - i1), Blocks.YELLOW_FLOWER.getDefaultState());\n }\n\n continue;\n }\n\n if ((k1 == Blocks.GRASS || k1 == Blocks.DIRT) && l1 == Blocks.AIR)\n {\n \tworldObj.setBlockState(new BlockPos(j + j1, k, l - i1), Blocks.RED_FLOWER.getDefaultState());\n }\n }\n }\n }\n }\n }", "public void sunAndTwoPlanets()\n {\n removeAllObjects();\n addObject (new Body (50, 240.0, new Vector(270, 0.0), new Color(255, 216, 0)), 460, 310);\n addObject (new Body (20, 4.2, new Vector(90, 2.2), new Color(0, 124, 196)), 695, 300);\n addObject (new Body (24, 4.6, new Vector(270, 1.8), new Color(248, 160, 86)), 180, 290);\n }", "private static void initPlanets(){\r\n CelestialBody Sun = new CelestialBody(\"Sun\", Color.YELLOW, 50);\r\n \r\n initNewCelestialBody(new CelestialBody(\"Mercury\", Color.GRAY, 10, Sun, 0.3870, 0.3788, 0.0796));\r\n initNewCelestialBody(new CelestialBody(\"Venus\", Color.GREEN, 20, Sun, 0.7219, 0.7219, 0.0049));\r\n initNewCelestialBody(new CelestialBody(\"Earth\", Color.BLUE, 25, Sun, 1.0027, 1.0025, 0.0167));\r\n initNewCelestialBody(new CelestialBody(\"Mars\", Color.RED, 20, Sun, 1.5241, 1.5173, 0.1424));\r\n initNewCelestialBody(new CelestialBody(\"Jupiter\", Color.BEIGE, 50, Sun, 5.2073, 5.2010, 0.2520));\r\n initNewCelestialBody(new CelestialBody(\"Saturn\", Color.CHOCOLATE, 40, Sun, 9.5590, 9.5231, 0.5181));\r\n initNewCelestialBody(new CelestialBody(\"Uranus\", Color.AQUAMARINE, 30, Sun, 19.1848, 19.1645, 0.9055));\r\n initNewCelestialBody(new CelestialBody(\"Neptune\", Color.AQUA, 30, Sun, 30.0806, 30.0788, 0.2687));\r\n \r\n initNewCelestialBody(Sun);\r\n renderService.setFocus(getPlanetController(\"Sun\"));\r\n }", "public void drawPlayer(){\n Player player = world.getPlayer();\n if(player.isGod()) {\n spriteBatch.draw(fadedPlayerTexture,player.getPosition().x * ppuX, player.getPosition().y * ppuY,\n player.WIDTH * ppuX, player.HEIGHT * ppuY);\n } else {\n spriteBatch.draw(playerTexture, player.getPosition().x * ppuX, player.getPosition().y * ppuY,\n player.WIDTH * ppuX, player.HEIGHT * ppuY);\n }\n }", "public void areaEffect(Player player){\n if(object.getProperties().containsKey(\"endLevel\")) {\n System.out.println(\"Fin du level\");\n setCategoryFilter(GameTest.DESTROYED_BIT);\n PlayScreen.setEndLevel();\n }\n\n if(object.getProperties().containsKey(\"startBossFight\")) {\n\n System.out.println(\"Start Boss Fight\");\n setCategoryFilter(GameTest.DESTROYED_BIT);\n\n TiledMapTileLayer.Cell cell = new TiledMapTileLayer.Cell();\n cell.setTile(tileSet.getTile(910));\n layer.setCell(99, 6, cell);\n cell.setTile(tileSet.getTile(910));\n layer.setCell(99, 7, cell);\n cell.setTile(tileSet.getTile(910));\n layer.setCell(99, 8, cell);\n cell.setTile(tileSet.getTile(910));\n layer.setCell(99, 9, cell);\n\n cell.setTile(tileSet.getTile(910));\n layer.setCell(100, 6, cell);\n cell.setTile(tileSet.getTile(910));\n layer.setCell(100, 7, cell);\n cell.setTile(tileSet.getTile(910));\n layer.setCell(100, 8, cell);\n cell.setTile(tileSet.getTile(910));\n layer.setCell(100, 9, cell);\n\n PlayScreen.cameraChangeBoss(true);\n setCategoryFilterFixture(GameTest.GROUND_BIT, PlayScreen.getFixtureStartBoss());\n\n }\n\n if(object.getProperties().containsKey(\"blueKnight\")) {\n System.out.println(\"Changement en bleu\");\n setCategoryFilter(GameTest.DESTROYED_BIT);\n getCell().setTile(null);\n PlayScreen.setColorKnight(\"blue\");\n }\n\n if(object.getProperties().containsKey(\"greyKnight\")) {\n System.out.println(\"Changement en gris\");\n setCategoryFilter(GameTest.DESTROYED_BIT);\n getCell().setTile(null);\n PlayScreen.setColorKnight(\"grey\");\n }\n\n if(object.getProperties().containsKey(\"redKnight\")) {\n System.out.println(\"Changement en rouge\");\n setCategoryFilter(GameTest.DESTROYED_BIT);\n getCell().setTile(null);\n PlayScreen.setColorKnight(\"red\");\n }\n\n }", "public void b(World paramaqu, BlockPosition paramdt, Block parambec, Random paramRandom)\r\n/* 39: */ {\r\n/* 40: 54 */ if (paramaqu.isClient) {\r\n/* 41: 55 */ return;\r\n/* 42: */ }\r\n/* 43: 58 */ if ((paramaqu.l(paramdt.up()) < 4) && (paramaqu.getBlock(paramdt.up()).getType().getLightOpacity() > 2))\r\n/* 44: */ {\r\n/* 45: 59 */ paramaqu.setBlock(paramdt, BlockList.dirt.instance());\r\n/* 46: 60 */ return;\r\n/* 47: */ }\r\n/* 48: 63 */ if (paramaqu.l(paramdt.up()) >= 9) {\r\n/* 49: 64 */ for (int i = 0; i < 4; i++)\r\n/* 50: */ {\r\n/* 51: 65 */ BlockPosition localdt = paramdt.offset(paramRandom.nextInt(3) - 1, paramRandom.nextInt(5) - 3, paramRandom.nextInt(3) - 1);\r\n/* 52: 66 */ BlockType localatr = paramaqu.getBlock(localdt.up()).getType();\r\n/* 53: 67 */ Block localbec = paramaqu.getBlock(localdt);\r\n/* 54: 68 */ if ((localbec.getType() == BlockList.dirt) && (localbec.getData(BlockDirt.a) == avd.a) && (paramaqu.l(localdt.up()) >= 4) && (localatr.getLightOpacity() <= 2)) {\r\n/* 55: 69 */ paramaqu.setBlock(localdt, BlockList.grass.instance());\r\n/* 56: */ }\r\n/* 57: */ }\r\n/* 58: */ }\r\n/* 59: */ }", "@Override\n public void render(SpriteBatch spriteBatch) {\n\n // check for collision with the left side of the screen\n /*if (body.getPosition().x < (Controller.getCamera().getUnprojectedScreenVector().x * -1) + radius) {\n body.setLinearVelocity(body.getLinearVelocity().x * -1, body.getLinearVelocity().y);\n }\n\n // check for collision with the right side of the screen\n if (body.getPosition().x > Controller.getCamera().getUnprojectedScreenVector().x - radius) {\n body.setLinearVelocity(body.getLinearVelocity().x * -1, body.getLinearVelocity().y);\n }*/\n\n // check for collision with the top side of the screen\n if (body.getPosition().y > Controller.getGameViewport().getWorldHeight() - radius) {\n body.setLinearVelocity(body.getLinearVelocity().x, Math.abs(body.getLinearVelocity().y) * -1);\n }\n\n // synchronize sprite with the body\n position.set(body.getPosition().x - radius - margin, body.getPosition().y - radius - margin);\n sprite.setPosition(position.x, position.y);\n sprite.draw(spriteBatch);\n\n // todo the ball should be destroyed when it is below the screen (and invalidated once it is below the plank)\n // there should be some kind of container of balls (there can be more balls in the game) and once\n // all balls are invalidated, they should be destroyed and game should be failed\n }", "public void b(World paramaqu, Random paramRandom, BlockPosition paramdt, Block parambec)\r\n/* 77: */ {\r\n/* 78: 93 */ BlockPosition localdt1 = paramdt.up();\r\n/* 79: */ label260:\r\n/* 80: 95 */ for (int i = 0; i < 128; i++)\r\n/* 81: */ {\r\n/* 82: 96 */ BlockPosition localdt2 = localdt1;\r\n/* 83: 97 */ for (int j = 0; j < i / 16; j++)\r\n/* 84: */ {\r\n/* 85: 98 */ localdt2 = localdt2.offset(paramRandom.nextInt(3) - 1, (paramRandom.nextInt(3) - 1) * paramRandom.nextInt(3) / 2, paramRandom.nextInt(3) - 1);\r\n/* 86: 99 */ if ((paramaqu.getBlock(localdt2.down()).getType() != BlockList.grass) || (paramaqu.getBlock(localdt2).getType().blocksMovement())) {\r\n/* 87: */ break label260;\r\n/* 88: */ }\r\n/* 89: */ }\r\n/* 90:104 */ if (paramaqu.getBlock(localdt2).getType().material == Material.air)\r\n/* 91: */ {\r\n/* 92: */ Object localObject;\r\n/* 93:108 */ if (paramRandom.nextInt(8) == 0)\r\n/* 94: */ {\r\n/* 95:109 */ localObject = paramaqu.b(localdt2).a(paramRandom, localdt2);\r\n/* 96:110 */ avy localavy = ((EnumFlowerVariant)localObject).a().a();\r\n/* 97:111 */ Block localbec = localavy.instance().setData(localavy.l(), (Comparable)localObject);\r\n/* 98:112 */ if (localavy.f(paramaqu, localdt2, localbec)) {\r\n/* 99:113 */ paramaqu.setBlock(localdt2, localbec, 3);\r\n/* 100: */ }\r\n/* 101: */ }\r\n/* 102: */ else\r\n/* 103: */ {\r\n/* 104:116 */ localObject = BlockList.tallgrass.instance().setData(bbh.a, bbi.b);\r\n/* 105:117 */ if (BlockList.tallgrass.f(paramaqu, localdt2, (Block)localObject)) {\r\n/* 106:118 */ paramaqu.setBlock(localdt2, (Block)localObject, 3);\r\n/* 107: */ }\r\n/* 108: */ }\r\n/* 109: */ }\r\n/* 110: */ }\r\n/* 111: */ }", "public void draw(GameCanvas canvas){\n if(tags.length > 0 && body != null){\n FilmstripAsset fa;\n float angle = (float)((getBody().getAngle() + Math.PI * 4) % (Math.PI * 2));\n\n if (isDead) {\n ImageAsset ia = (ImageAsset) assetMap.get(tags[4]);\n Affine2 aff = new Affine2();\n aff.setToRotationRad((float)(deadAngle + Math.PI/2));\n aff.preScale(ia.getImageScale().x,ia.getImageScale().y * 0.6f );\n aff.preTranslate(body.getPosition().x * drawScale.x, body.getPosition().y*drawScale.y);\n canvas.draw(ia.getTexture(), Color.WHITE, ia.getOrigin().x, ia.getOrigin().y,aff);\n return;\n }\n\n if (isSecondStage){\n fa = (FilmstripAsset) assetMap.get(tags[3]);\n }\n else if(angle <= Math.PI*0.25f || angle > Math.PI*1.75f){\n fa = (FilmstripAsset) assetMap.get(tags[1]);\n }\n else if(angle <= Math.PI*0.75f && angle > Math.PI*0.25f){\n fa = (FilmstripAsset) assetMap.get(tags[2]);\n }\n else if(angle <= Math.PI*1.25f && angle > Math.PI*0.75f){\n fa = (FilmstripAsset) assetMap.get(tags[0]);\n }\n else {\n fa = (FilmstripAsset) assetMap.get(tags[3]);\n }\n\n if(fa != null){\n int nFrame = (GameObject.counter / fa.getSpeed()) % fa.getNumFrames();\n TextureRegion texture = fa.getTexture(nFrame/2);\n\n Affine2 aff = new Affine2();\n aff.setToScaling(fa.getImageScale().x * 1, fa.getImageScale().y * 0.7f);\n aff.preShear(-0.2f, 0);\n aff.preTranslate((body.getPosition().x)* drawScale.x - fa.getImageScale().x * fa.getTexture(nFrame/2).getRegionWidth() * 0.05f , (body.getPosition().y -0.2f ) * drawScale.y - fa.getTexture(nFrame/2).getRegionHeight() * fa.getImageScale().y * 0.05f);\n canvas.draw(fa.getTexture(nFrame/2), new Color(0,0,0,0.5f), fa.getOrigin().x, fa.getOrigin().y, aff);\n\n canvas.draw(texture, Color.WHITE,fa.getOrigin().x,fa.getOrigin().y,body.getPosition().x*drawScale.x,body.getPosition().y*drawScale.x,0,fa.getImageScale().x,fa.getImageScale().y);\n }\n }\n }", "public void renderLoop() {\n\t\tplayer.move(calculateVectorDirectionBetweenEyeAndCenter());\n\t\tcamera.move();\n\t\tm.setLookAt(camera.getPosition().x,\n\t\t\t\tcamera.getPosition().y + 10,\n\t\t\t\tcamera.getPosition().z,\n\t\t\t\tplayer.getPosition().x,\n\t\t\t\tplayer.getPosition().y + 10,\n\t\t\t\tplayer.getPosition().z,\n\t\t\t\tcalculateUpVectorOfCameraPosition(secondOrthogonalVector).x,\n\t\t\t\tcalculateUpVectorOfCameraPosition(secondOrthogonalVector).y,\n\t\t\t\tcalculateUpVectorOfCameraPosition(secondOrthogonalVector).z);\n\t\tm.get(fb);\n\n\t\tglLoadMatrixf(fb);\n\t\t\n\t\tglPushMatrix();\n\t\t\tupdateSpotLight();\n\t\t\tupdatePointLight();\n\t\tglPopMatrix();\n\t\t\n\t\tglPushMatrix();\n\t\t\tglPolygonMode(GL_BACK, GL_FILL);\n\t\t\tglPolygonMode(GL_FRONT, GL_POINT);\n\t\t\tterrain.generateCave();\n\t\tglPopMatrix();\n\t\t\n\t\tglPushMatrix();\n\t\t\tglPolygonMode(GL_FRONT, GL_FILL);\n\t\t\tterrain.generateGround();\n\t\tglPopMatrix();\n\n\t\tglPushMatrix();\n\t\t\tterrain.drawEnd();\n\t\tglPopMatrix();\n\t\t\n\t\tglPushMatrix();\n\t\t\tglTranslatef(player.getPosition().x, player.getPosition().y, player.getPosition().z);\n\t\t\tglRotatef(player.getRotY(), 0, 1, 0);\n\t\t\tplayer.getModel().draw(player.getMoveAngle());\n\t\tglPopMatrix();\n\t}", "public GameObject spawnBomber(LogicEngine in_logicEngine){\n\t\tGameObject ship = new GameObject(\"data/\"+GameRenderer.dpiFolder+\"/bomber.png\",((float)LogicEngine.SCREEN_WIDTH)+50,LogicEngine.SCREEN_HEIGHT-50,0);\r\n\t\tship.i_animationFrameSizeHeight = 58;\r\n\t\tship.i_animationFrameSizeWidth = 58;\r\n\t\t\r\n\t\t//fly back and forth\r\n\t\tLoopWaypointsStep s = new LoopWaypointsStep();\r\n\t\ts.waypoints.add(new Point2d(-30,LogicEngine.SCREEN_HEIGHT-50));\r\n\t\ts.waypoints.add(new Point2d(LogicEngine.SCREEN_WIDTH+50,LogicEngine.SCREEN_HEIGHT-50));\r\n\t\t\r\n\t\tship.b_mirrorImageHorizontal = true;\r\n\t\t\r\n\t\tship.stepHandlers.add(s);\r\n\t\tship.v.setMaxForce(5.0f);\r\n\t\tship.v.setMaxVel(5.0f);\r\n\t\tship.allegiance = GameObject.ALLEGIANCES.ENEMIES;\r\n\r\n\r\n\t\t//tadpole bullets\r\n\t\tGameObject go_tadpole = this.spawnTadpole(in_logicEngine);\r\n\t\tgo_tadpole.stepHandlers.clear();\r\n\t\tFlyStraightStep fly = new FlyStraightStep(new Vector2d(0,-0.5f));\r\n\t\tfly.setIsAccelleration(true);\r\n\t\t\r\n\t\t\r\n\t\tif(Difficulty.isHard())\r\n\t\t{\tgo_tadpole.v.setMaxVel(5);\r\n\t\t\tgo_tadpole.v.setMaxForce(5);\r\n\t\t}\r\n\t\telse\r\n\t\t{\tgo_tadpole.v.setMaxVel(10);\r\n\t\t\tgo_tadpole.v.setMaxForce(5);\r\n\t\t}\r\n\t\tgo_tadpole.stepHandlers.add(fly);\r\n\t\tgo_tadpole.v.setVel(new Vector2d(-2.5f,0f));\r\n\t\t\r\n\t\t\r\n\t\t//bounce on hard and medium\r\n\t\tif(Difficulty.isHard() || Difficulty.isMedium())\r\n\t\t{\r\n\t\t\tBounceOfScreenEdgesStep bounce = new BounceOfScreenEdgesStep();\r\n\t\t\tbounce.b_sidesOnly = true;\r\n\t\t\tgo_tadpole.stepHandlers.add(bounce);\r\n\t\t}\r\n\t\t\r\n\t\t//drop bombs\r\n\t\tLaunchShipsStep launch = new LaunchShipsStep(go_tadpole, 20, 5, 3, true);\r\n\t\tlaunch.b_addToBullets = true;\r\n\t\tlaunch.b_forceVelocityChangeBasedOnParentMirror = true;\r\n\t\t\r\n\t\tship.stepHandlers.add(launch);\r\n\t\tship.rotateToV=true;\r\n\t\t\r\n\t\t//give it some hp\r\n\t\tHitpointShipCollision c = new HitpointShipCollision(ship, 50, 50f);\r\n\t\tc.setSimpleExplosion();\r\n\t\tship.collisionHandler = c;\r\n\t\t\r\n\t\tin_logicEngine.objectsEnemies.add(ship);\r\n\t\t\r\n\t\treturn ship;\r\n\t\r\n\t}", "void worldGo(int speed) {\n\t\tif (Hit != true) {\n\t\t\tfloat vo = 7;\n\t\t\tint x = 0;\n\t\t\tfloat y = vo;\n\t\t\tif (EZInteraction.isKeyDown(KeyEvent.VK_SPACE)) {\n\t\t\t\ty = (float) (-vo * 1.4);\n\t\t\t}\n\t\t\tif (turtle.image.getXCenter() < 250 || reachEnd == true) {\n\t\t\t\tx = speed;\n\t\t\t} else if (turtle.image.getXCenter() >= 250 && reachEnd == false) {\n\t\t\t\tmove(-speed);\n\t\t\t\tbackground.translateBy(-0.4, 0);\n\t\t\t}\n\t\t\tif (turtle.image.getYCenter() >= 700) {\n\t\t\t\tturtle.move(0, -vo);\n\t\t\t}\n\t\t\tturtle.move(x, y);\n\t\t\tif (turtle.image.getYCenter() <= 0) {\n\t\t\t\tturtle.move(0, -y);\n\t\t\t}\n\t\t\tfor (int a = 0; a < height; a++) {\n\n\t\t\t\tfor (int b = 0; b < width; b++) {\n\t\t\t\t\tif (FWorld[a][b] != null) {\n\t\t\t\t\t\tif (turtle.image.isPointInElement(FWorld[a][b].getXCenter(), FWorld[a][b].getYCenter())) {\n\t\t\t\t\t\t\tHit = true;\n\t\t\t\t\t\t\tint iX = FWorld[a][b].getXCenter();\n\t\t\t\t\t\t\tint iY = FWorld[a][b].getYCenter();\n\t\t\t\t\t\t\texplosion = EZ.addImage(\"boom.png\", iX, iY);\n\t\t\t\t\t\t\tGameOver.play();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (turtle.image.getXCenter() >= 1030) {\n\t\t\t\tPlayerreachEnd = true;\n\t\t\t}\n\t\t}\n\t}", "public Player() {\n\t\t\n\t\tif (Main.role == 0) this.role = Role.Attacker;\n\t\tif (Main.role == 1) this.role = Role.Defender;\n\t\t\n\t\tnavigator = Main.nav;\n\t\t\n\t\tballGrabber = new BallGrab();\n\t\t\n\t\tballPlatform[0] = Main.upperRightX + 35; //120\n\t\tballPlatform[1] = Main.upperRightY - 8; //165\n\t\t\n\t\tstartingCorner = Main.startingCorner;\n\t\t\n\t\t\n\t}", "public gameWorld()\n { \n // Create a new world with 600x600 cells with a cell size of 1x1 pixels.\n super(600, 600, 1); \n \n addObject(new winSign(), 310, 300);\n addObject(new obscureDecorative(), 300, 400);\n addObject(new obscureDecorative(), 300, 240);\n \n for(int i = 1; i < 5; i++) {\n addObject(new catchArrow(i * 90), 125 * i, 100);\n }\n for (int i = 0; i < 12; i++) {\n addObject(new damageArrowCatch(), 50 * i + 25, 50); \n }\n \n \n //Spawning Interval\n\n if(timerInterval >= 10) {\n arrowNumber = Greenfoot.getRandomNumber(3);\n }\n if(arrowNumber == 0) {\n addObject(new upArrow(directionOfArrow[0], imageOfArrow[0]), 125, 590);\n arrowNumber = 5;\n }\n if(arrowNumber == 1) {\n addObject(new upArrow(directionOfArrow[1], imageOfArrow[1]), 125 * 2, 590);\n arrowNumber = 5;\n }\n if(arrowNumber == 2) {\n addObject(new upArrow(directionOfArrow[2], imageOfArrow[2]), 125 * 3, 590);\n arrowNumber = 5;\n }\n if( arrowNumber == 3) {\n addObject(new upArrow(directionOfArrow[3], imageOfArrow[3]), 125 * 4, 590);\n arrowNumber = 5;\n }\n \n \n\n \n }", "public void enter(FieldPlayer player){\n player.getTeam().setReceiver(player);\n \n //this player is also now the controlling player\n player.getTeam().setControllingPlayer(player);\n\n //there are two types of receive behavior. One uses arrive to direct\n //the receiver to the position sent by the passer in its telegram. The\n //other uses the pursuit behavior to pursue the ball. \n //This statement selects between them dependent on the probability\n //ChanceOfUsingArriveTypeReceiveBehavior, whether or not an opposing\n //player is close to the receiving player, and whether or not the receiving\n //player is in the opponents 'hot region' (the third of the pitch closest\n //to the opponent's goal\n double PassThreatRadius = 70.0;\n\n if (( player.isInHotRegion() ||\n RandFloat() < Params.Instance().ChanceOfUsingArriveTypeReceiveBehavior) &&\n !player.getTeam().isOpponentWithinRadius(player.getPos(), PassThreatRadius)){\n player.getSteering().arriveOn();\n }\n else{\n player.getSteering().pursuitOn();\n }\n \n //FIXME: Change animation\n// player.info.setAnim(\"Run\");\n// player.info.setDebugText(\"ReceiveBall\");\n }", "private void processPlayerCollision() {\n\t\t// This starts by converting the player vertices to global positions.\n\t\tVector3 playerGlobalPosition = player.getGlobalPositionVector();\n\t\tVector3 playerGlobalRotation = player.getGlobalRotationVector();\n\n\t\tVector3 playerVertex1 = new Vector3(player.hitboxPoints[0], player.hitboxPoints[1]);\n\t\tVector3 playerVertex2 = new Vector3(player.hitboxPoints[2], player.hitboxPoints[3]);\n\t\tVector3 playerVertex3 = new Vector3(player.hitboxPoints[4], player.hitboxPoints[5]);\n\t\t// TODO: Confirm this is correct.\n\t\tVector3 playerVertex1Global = new Vector3(playerVertex1.x * -Math.sin(Math.toRadians(playerGlobalRotation.z)), playerVertex1.y * Math.cos(Math.toRadians(playerGlobalRotation.z))).add(playerGlobalPosition);\n\t\tVector3 playerVertex2Global = new Vector3(playerVertex2.x * -Math.sin(Math.toRadians(playerGlobalRotation.z)), playerVertex2.y * Math.cos(Math.toRadians(playerGlobalRotation.z))).add(playerGlobalPosition);\n\t\tVector3 playerVertex3Global = new Vector3(playerVertex3.x * -Math.sin(Math.toRadians(playerGlobalRotation.z)), playerVertex3.y * Math.cos(Math.toRadians(playerGlobalRotation.z))).add(playerGlobalPosition);\n\n\t\tfor (AsteroidsAsteroid a : asteroids) {\n\t\t\t// If any of the vertices collide and the player is alive, lose a life.\n\t\t\tif ((a.collides(playerVertex1Global) || a.collides(playerVertex2Global) || a.collides(playerVertex3Global)) && player.isShowing()) {\n\t\t\t\tloseLife();\n\t\t\t}\n\t\t}\n\t}", "public MineHard()\r\n { \r\n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\r\n super(16, 16, 32);\r\n addObject(new Person() , 1 , 14);\r\n addObject(new Rock() , 1 , 15);\r\n addObject(new Rock() , 8 , 15);\r\n addObject(new Rock() , 12 , 15);\r\n addObject(new Rock() , 5 , 14);\r\n addObject(new Rock() , 15 , 13);\r\n addObject(new Rock() , 9 , 13);\r\n addObject(new Rock() , 12 , 12);\r\n addObject(new Rock() , 10 , 11);\r\n addObject(new Rock() , 7 , 11);\r\n addObject(new Rock() , 2 , 11);\r\n addObject(new Rock() , 1 , 12);\r\n addObject(new Rock() , 15 , 10);\r\n addObject(new Rock() , 12 , 9);\r\n addObject(new Rock() , 4 , 9);\r\n addObject(new Rock() , 1 , 9);\r\n addObject(new Rock() , 11 , 8);\r\n addObject(new Rock() , 13 , 7);\r\n addObject(new Rock() , 10 , 7);\r\n addObject(new Rock() , 9 , 7);\r\n addObject(new Rock() , 8 , 7);\r\n addObject(new Rock() , 7 , 7);\r\n addObject(new Rock() , 2 , 6);\r\n addObject(new Rock() , 5 , 5);\r\n addObject(new Rock() , 12 , 5);\r\n addObject(new Rock() , 9 , 4);\r\n addObject(new Rock() , 13 , 2);\r\n addObject(new Rock() , 3 , 3);\r\n addObject(new Rock() , 4 , 2);\r\n addObject(new Rock() , 1 , 1);\r\n addObject(new Rock() , 9 , 1);\r\n addObject(new Rock() , 10 , 0);\r\n addObject(new Rock() , 0 , 0);\r\n addObject(new Rock() , 0 , 7);\r\n addObject(new Rock() , 5 , 0);\r\n addObject(new Rock() , 15 , 0);\r\n addObject(new Rock() , 15 , 8);\r\n \r\n addObject(new Goldbar() , 15 , 2);\r\n addObject(new Goldbar() , 12 , 8);\r\n addObject(new Goldbar() , 15 , 15);\r\n addObject(new Goldbar() , 3 , 2);\r\n addObject(new Goldbar() , 9 , 0);\r\n addObject(new Goldbar() , 2 , 9);\r\n \r\n addObject(new Zombie() , 13 , 13);\r\n addObject(new Zombie() , 12 , 6);\r\n addObject(new Zombie() , 6 , 0);\r\n addObject(new Zombie() , 1 , 4);\r\n addObject(new Zombie() , 7 , 9);\r\n addObject(new TryC() , 2 , 1);\r\n addObject(new MainMenu() , 12 , 1);\r\n }", "public static ArrayList<Freebody> preset4(){\n\t\t\r\n\t\tinitializePreqs();\r\n\t\tint size = 8; //radius of balls\r\n\t\tfloat bounce = 1; //elasticity of balls\r\n\t\tfloat drag=1;\r\n\t\t// DRAG IS A VALUE BETWEEN 0 AND 1!! 1 would make it completely stop, by sapping\r\n\t\t// away all velocity.\r\n\t\t// 0.5 would reduce the speed by 1/2 each tick, and 0 is no friction\r\n\t\tint locX,locY,locZ;\r\n\t\t\r\n\t\tint dis=1500;\t\t\t \t//distance between the main mass and secondary masses\r\n\t\t\r\n\t\tfloat invertMass=-200000;\t\t//mass of the secondary masses, negative mass makes them repel the smaller particles, not attract\r\n\t\tfloat mainMass = 850000;\t\t//mass of the main Freebody.\r\n\t\t\r\n\t\tfloat ratio=(-invertMass/mainMass);\r\n\t\tint secSize=(int) ((Math.cbrt(ratio)*10*size)); \t //size of secondary masses; size is proportional to mass.\r\n\t\tint worldSize=0;\r\n\t\t\r\n\t\tif(worldSize!=0) { locX=worldSize/2;locY=worldSize/2;locZ=worldSize/2; } //location of the action, typically the middle of the scene, or where the main mass is located.\r\n\t\t else { locX=2500;locY=2500;locZ=2500; }\r\n\t\t\r\n\t\t//Black hole\r\n\t\tlist.add(new Freebody(0, 0, mainMass, locX,locY,locZ, (int)(size)*10, bounce, drag));\r\n\t\t\r\n\t\t//below is secondary masses creation\r\n\t\t//z axis offset\r\n\t\t//list.add(new Freebody(0, 0, invertMass, locX,locY,locZ+dis, secSize, size, size, bounce, 1, Color.blue));\r\n\t\t//list.add(new Freebody(0, 0, invertMass, locX,locY,locZ-dis, secSize, size, size, bounce, 1, Color.blue));\r\n\t\t//x axis offset\r\n\t\t//list.add(new Freebody(0, 0, invertMass, locX+dis,locY,locZ, secSize, size, size, bounce, drag, Color.blue));\r\n\t\t//list.add(new Freebody(0, 0, invertMass, locX-dis,locY,locZ, secSize, size, size, bounce, drag, Color.blue));\r\n\t\t//y axis offset\r\n\t\t//list.add(new Freebody(0, 0, invertMass, locX,locY+dis,locZ, secSize, size, size, bounce, drag, Color.blue));\r\n\t\t//list.add(new Freebody(0, 0, invertMass, locX,locY-dis,locZ, secSize, size, size, bounce, drag, Color.blue));\r\n\t\t//end of large masses creation\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t//variable to make it easier to change the # of particles\r\n\t\tint c=25;\r\n\t\t\r\n\t\t//below is explaining how to setup the particles around the center mass.\r\n\t\t//make symmetry with 1000 open space on both sides\r\n\t\t//worldsize-2000=usable space\r\n\t\t//c*2*d is space used by objects\r\n\t\t//worldsize-2000=c*2*d\r\n\t\t//d=(worldsize-2000)/(2c)\r\n\t\t//starting x is 1000.\r\n\t\t\r\n\t\t//y starting is so that c/2 is at locY.\r\n\t\t//worldSize/2=y+(c/2*d)\r\n\t\t//y starting = (worldSize/2)-(c/2*d)\r\n\t\t//END of explanation\r\n\t\t\r\n\t\tfloat d=(locX*2-2000)/(2*c);\r\n\t\tfloat yStart=(locY)-((c/2)*d);\r\n\t\t//setting the max sizes of i,j,k in the for loops.\r\n\t\tint I=1*c;\r\n\t\tint J=2*c;\r\n\t\tint K=2;\r\n\t\t//speed and angle of particles, defaulted inverted for symmetry.\r\n\t\tint sped=500;\r\n\t\tint ang=30;\r\n\t\t\r\n\t\tint start=1000;\r\n\t\tfor(int i=0; i<I; i++) {\r\n\t\t\tfor(int j=0; j<J;j++) {\r\n\t\t\t\tfor(int k=0; k<K;k++) { \r\n\t\t\t\t\tlist.add(new Freebody(-sped, ang, 1, start+(int)(d*j), (int)(i*d+yStart), (int)(-k*d)+(locZ -1000), size, bounce, 0.001f));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tfor(int i=0; i<I; i++) {\r\n\t\t\tfor(int j=0; j<J;j++) {\r\n\t\t\t\tfor(int k=0; k<K;k++) {\r\n\t\t\t\t\tlist.add(new Freebody( sped, ang, 1, start+(int)(d*j), (int)(i*d+yStart), (int)(k*d)+(locZ +1000), size, bounce, 0.001f));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tint obsInOnHalf=I*J*K; //how many particles(Freebodys) are in one \"half\" (presets are normally made with 2 distinct halves)\r\n\t\t\t\t\t\t\t\t //below is to set velocities of every particle easily.\r\n\t\tint larges=1; //set this value equal to how many large masses were made.\r\n\t\t\r\n\t\t//vels of particles\r\n\t\tfloat vX=sped,vY=sped,vZ=0;\r\n\t\tfor(int i=5; i<(obsInOnHalf)+larges;i++) {\r\n\t\t\tlist.get(i).setVel(vX, vY, vZ);\r\n\t\t}\r\n\t\tfor(int i=(obsInOnHalf)+larges; i<list.size();i++) {\r\n\t\t\tlist.get(i).setVel(-vX, -vY, 0);\r\n\t\t}\r\n\t\t\r\n\t\t//set worldSize to 0 for no boundaries (unlimited universe)\t\t\t\r\n\t\tuni = new WorldCreator(worldSize, worldSize, worldSize, 0,2,locX,locY,locZ);\r\n\t\t\r\n\t\t//turns on(or off) object/object collisions, off by default.\r\n\t\tuni.collisions(false);\t\t\t\r\n\t\treturn list;\r\n\t}", "public WallCollision(Room room, Entity player) {\n this.room = room;\n this.player = (NinjaEntity) player;\n }", "@Override\r\n protected SimpleBody addObject(Entity e) {\n PhysicsShape ps = e.get(PhysicsShape.class);\r\n PhysicsMassType pmt = e.get(PhysicsMassType.class);\r\n Position pos = e.get(Position.class);\r\n\r\n // Right now only works for CoG-centered shapes \r\n SimpleBody newBody = createStatic(e.getId(), pmt.getTypeName(ed), ps.getFixture(), true);\r\n\r\n newBody.setPosition(pos); //ES position: Not used anymore, since Dyn4j controls movement\r\n\r\n newBody.getTransform().setTranslation(pos.getLocation().x, pos.getLocation().y); //Dyn4j position\r\n newBody.getTransform().setRotation(pos.getRotation());\r\n\r\n newBody.setUserData(e.getId());\r\n\r\n newBody.setLinearDamping(0.3);\r\n\r\n return newBody;\r\n }", "public void playEnemy(){\n // System.out.println(\"staaaaaaaaaaaaaaaaaaaaar\"+character.getBlock());\n for(int i = 0 ; i < enemyController.getSize() ; i++){\n if (! enemies.get(i).isDead())\n effectHandler.playEnemy( i );\n }\n for( int i = 0 ; i < enemyController.getSize() ; i++){\n if (! enemies.get(i).isDead())\n effectHandler.endEnemyTurn(i);\n }\n\n }", "@Override\n\tpublic void updatePlayer(Joueur joueur) {\n\t\t\n\t}", "public Body getPlanet() {\n return this.currentPlanet;\n }", "public void b(EntityPlayer paramahd) {}", "private void prepare()\n {\n addObject(player,185,196);\n player.setLocation(71,271);\n Ground ground = new Ground();\n addObject(ground,300,360);\n invent invent = new invent();\n addObject(invent,300,375);\n }", "public Player(){\n\t\tthis.cell = 0;\n\t}", "protected Body (World world, org.jbox2d.dynamics.Body body) {\n\t\tthis.world = world;\n\t\tthis.body = body;\n\t}", "public void onPlayerCollision(Player player){\n\t\tif(player.weapon instanceof RailGun)\n\t\tplayer.weapon=new TripleGun(player,(short) (PLAYER_FIRE_RATE*1.5f),(short) (PLAYER_BULLET_SPEED*1.5),projectileTextures[1],(short)50);\n\t\telse if(player.weapon instanceof TripleGun)\n\t\t\tplayer.weapon=new PentaGun(player,(short) (PLAYER_FIRE_RATE),PLAYER_BULLET_SPEED,projectileTextures[2],(short)250);\n\t\t\t\n\t}", "public boolean isSideSolid(IBlockAccess world, int x, int y, int z, ForgeDirection side)\n\t{\n\t\treturn true;\n\t}", "public void physics(double rate){\n\t\tfloat nextTop=0;\r\n\t\tif(getContained()==null){\r\n\t\t\tint year=Main.world.timeline.getTerra();\r\n\r\n\t\t\tgx=(int)Math.floor(x);\r\n\t\t\tgy=(int)Math.floor(y);\r\n\t\t\tif(gx<0){\r\n\t\t\t\tgx=0;\r\n\t\t\t}\r\n\t\t\tif(gy<0){\r\n\t\t\t\tgy=0;\r\n\t\t\t}\r\n\t\t\tMain.world.contacts(this);\r\n\t\t\tif(getTopObjects()>0){\r\n\t\t\t\ttop=getTopObjects();\r\n\t\t\t}else{\r\n\t\t\t\ttop=(Main.world.land.getHigh(year,gx,gy));\r\n\t\t\t}\r\n\r\n\t\t\tif(dx<pit){\r\n\t\t\t\tdx=pit;\r\n\t\t\t}\r\n\t\t\tif(dy<pit){\r\n\t\t\t\tdy=pit;\r\n\t\t\t}\r\n\t\t\tfloat mm=Main.level.getStats().getSize()-pit;\r\n\t\t\tif(dx>mm ){\r\n\t\t\t\tdx=mm;\r\n\t\t\t}\r\n\t\t\tif(dy>mm ){\r\n\t\t\t\tdy=mm;\r\n\t\t\t}\r\n\r\n\t\t\tnextTop=Main.world.land.getHigh(year,(int)Math.floor(dx), (int)Math.floor(dy));\r\n\t\t}else{\r\n\t\t\tfloat smx=getContained().boundsx;\r\n\t\t\tfloat smy=getContained().boundsy;\r\n\t\t\tfloat emx=getContained().boundex;\r\n\t\t\tfloat emy=getContained().boundey;\r\n\r\n\t\t\tif(dx<smx){\r\n\t\t\t\tdx=smx;\r\n\t\t\t}else if(dx>emx){\r\n\t\t\t\tdx=emx;\r\n\t\t\t}\r\n\r\n\t\t\tif(dy<smy){\r\n\t\t\t\tdy=smy;\r\n\t\t\t}else if(dy>emy){\r\n\t\t\t\tdy=emy;\r\n\t\t\t}\r\n\t\t\tgetContained().innerTouch(this);\r\n\t\t}\r\n\r\n\t\tint m=Main.level.getStats().getSize()-1;\r\n\t\tpz=z;\r\n\t\tz+=vz*rate;\r\n\t\tfloat hz=z-top;\r\n\t\tif(z<-2){\r\n\t\t\tz=-2;\r\n\t\t\tfallDamage();\r\n\t\t}\r\n\t\tif(hz>0){\r\n\t\t\tif(submerged()){\r\n\t\t\t\tvz-=UserData.getWaterGravity()*rate;\r\n\t\t\t\tif(vz<-1){\r\n\t\t\t\t\tvz=-1;\r\n\t\t\t\t}\r\n\t\t\t\tfloat zu=Main.world.land.getWaterHigh(gx,gy);\r\n\t\t\t\tfloat z1=zu;\r\n\t\t\t\tfloat z2=zu;\r\n\t\t\t\tfloat z3=zu;\r\n\t\t\t\tfloat z4=zu;\r\n\r\n\t\t\t\tif(gx>0){\r\n\t\t\t\t\tz1=Main.world.land.getWaterHigh(gx-1,gy);\r\n\t\t\t\t}\r\n\t\t\t\tif(gx<m){\r\n\t\t\t\t\tz2=Main.world.land.getWaterHigh(gx+1,gy);\r\n\t\t\t\t}\r\n\t\t\t\tif(gy>0){\r\n\t\t\t\t\tz3=Main.world.land.getWaterHigh(gx,gy-1);\r\n\t\t\t\t}\r\n\t\t\t\tif(gy<m){\r\n\t\t\t\t\tz4=Main.world.land.getWaterHigh(gx,gy+1);\r\n\t\t\t\t}\r\n\t\t\t\tif(z1>zu){\r\n\t\t\t\t\tvx+=rate;\r\n\t\t\t\t}\r\n\t\t\t\tif(z2>zu){\r\n\t\t\t\t\tvx-=rate;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif(z3>zu){\r\n\t\t\t\t\tvy+=rate;\r\n\t\t\t\t}\r\n\t\t\t\tif(z4>zu){\r\n\t\t\t\t\tvy-=rate;\r\n\t\t\t\t}\r\n\t\t\t}else{\r\n\t\t\t\tvz-=UserData.getGravity()*rate;\r\n\t\t\t}\r\n\t\t\tgrounded=false;//vz>=-0.02;\r\n\t\t}else{\r\n\t\t\tif(!grounded){\r\n\t\t\t\tgrounded=true;\r\n\t\t\t\tland();\r\n\r\n\t\t\t}\r\n\t\t\tvz=0;\r\n\t\t\tz=top;\r\n\t\t}\r\n\r\n\t\tdx+=vx*rate;\r\n\t\tdy+=vy*rate;\r\n\r\n\t\tfloat sz=nextTop-z;\r\n\t\tfloat sx=(float) (rate*(dx-x)/5f);\r\n\t\tfloat sy=(float) (rate*(dy-y)/5f);\r\n\r\n\t\tif(sz<=stepHeight && Math.abs(vx)<0.01f && Math.abs(vy)<0.01f){\r\n\t\t\tpx=x;\r\n\t\t\tpy=y;\r\n\t\t\tx+=sx;\r\n\t\t\ty+=sy;\r\n\t\t}else{\r\n\t\t\tdx=x;\r\n\t\t\tdy=y;\r\n\t\t}\r\n\t\tif(Math.abs(sx)<0.006 &&Math.abs(sy)<0.006){\r\n\t\t\tmoving=false;\r\n\t\t}else{\r\n\t\t\tmoving=true;\r\n\t\t}\r\n\t}", "@Override\r\n\tpublic void landOnSquare(Player player) {\n\t\tsuper.landOnSquare(player);\r\n\t}", "@Override\n public void collide(CollisionEvent e) {\n if (e.getOtherBody().equals(game.getPlayer())){ \n game.getPlayer().setPaper(1);\n game.getPlayer().addScore(10);\n this.destroy();\n }\n }", "@Override\r\n protected SimpleBody addObject(Entity e) {\n PhysicsShape ps = e.get(PhysicsShape.class);\r\n PhysicsMassType pmt = e.get(PhysicsMassType.class);\r\n Position pos = e.get(Position.class);\r\n\r\n // Right now only works for CoG-centered shapes \r\n SimpleBody newBody = createBody(e.getId(), pmt.getTypeName(ed), ps.getFixture(), true);\r\n\r\n newBody.setPosition(pos); //ES position: Not used anymore, since Dyn4j controls movement\r\n\r\n newBody.getTransform().setTranslation(pos.getLocation().x, pos.getLocation().y); //Dyn4j position\r\n newBody.getTransform().setRotation(pos.getRotation());\r\n\r\n newBody.setUserData(e.getId());\r\n\r\n newBody.setLinearDamping(0.3);\r\n\r\n return newBody;\r\n }", "@Override\n public void run() {\n if (!GameState.getCurrent().equals(GameState.PLAYING)) return;\n \n player.setGameMode(GameMode.SURVIVAL);\n player.teleport(ConfigUtils.getRandomSpawn(game.getActiveWorld()));\n player.setHealth(20.0);\n player.setFoodLevel(20);\n new InventoryBuilder(main, player);\n \n }", "private void render(Vec3d playerPos) {\n GlStateManager.pushMatrix();\n GlStateManager.translated(- playerPos.getX(), - playerPos.getY(), - playerPos.getZ());//The render starts at the player, so we subtract the player coords and move the render to 0,0,0\n GlStateManager.callList(callList);\n GlStateManager.popMatrix();\n }", "public PlayerObject(Vector r, Vector v, double mass) {\n super(r, v, mass);\n this.cam = new Camera(this, DEFAULT_FOV);\n this.rot = 0;\n }", "public static ArrayList<Freebody> preset3(){\n\t\t\r\n\t\tinitializePreqs();\r\n\t\tint size = 8; //radius of balls\r\n\t\tfloat bounce = 1; //elasticity of balls\r\n\t\tfloat drag=1;\r\n\t\t// DRAG IS A VALUE BETWEEN 0 AND 1!! 1 would make it completely stop, by sapping\r\n\t\t// away all velocity.\r\n\t\t// 0.5 would reduce the speed by 1/2 each tick, and 0 is no friction\r\n\t\tint locX,locY,locZ;\r\n\t\t\r\n\t\tint dis=1500;\t\t\t \t//distance between the main mass and secondary masses\r\n\t\t\r\n\t\tfloat invertMass=-200000;\t\t//mass of the secondary masses, negative mass makes them repel the smaller particles, not attract\r\n\t\tfloat mainMass = 650000;\t\t//mass of the main Freebody.\r\n\t\t\r\n\t\tfloat ratio=(-invertMass/mainMass);\r\n\t\tint secSize=(int) ((Math.cbrt(ratio)*10*size)); \t //size of secondary masses; size is proportional to mass.\r\n\t\tint worldSize=0;\r\n\t\t\r\n\t\tif(worldSize!=0) { locX=worldSize/2;locY=worldSize/2;locZ=worldSize/2; } //location of the action, typically the middle of the scene, or where the main mass is located.\r\n\t\t else { locX=2500;locY=2500;locZ=2500; }\r\n\t\t\r\n\t\t//Black hole\r\n\t\t//list.add(new Freebody(0, 0, mainMass, locX,locY,locZ, (int)(size)*10, bounce, drag));\r\n\t\t\r\n\t\t//below is secondary masses creation\r\n\t\t//z axis offset\r\n\t\t//list.add(new Freebody(0, 0, invertMass, locX,locY,locZ+dis, secSize, size, size, bounce, 1, Color.blue));\r\n\t\t//list.add(new Freebody(0, 0, invertMass, locX,locY,locZ-dis, secSize, size, size, bounce, 1, Color.blue));\r\n\t\t//x axis offset\r\n\t\t//list.add(new Freebody(0, 0, invertMass, locX+dis,locY,locZ, secSize, size, size, bounce, drag, Color.blue));\r\n\t\t//list.add(new Freebody(0, 0, invertMass, locX-dis,locY,locZ, secSize, size, size, bounce, drag, Color.blue));\r\n\t\t//y axis offset\r\n\t\t//list.add(new Freebody(0, 0, invertMass, locX,locY+dis,locZ, secSize, size, size, bounce, drag, Color.blue));\r\n\t\t//list.add(new Freebody(0, 0, invertMass, locX,locY-dis,locZ, secSize, size, size, bounce, drag, Color.blue));\r\n\t\t//end of large masses creation\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t//variable to make it easier to change the # of particles\r\n\t\tint c=30;\r\n\t\t\r\n\t\t//below is explaining how to setup the particles around the center mass.\r\n\t\t//make symmetry with 1000 open space on both sides\r\n\t\t//worldsize-2000=usable space\r\n\t\t//c*2*d is space used by objects\r\n\t\t//worldsize-2000=c*2*d\r\n\t\t//d=(worldsize-2000)/(2c)\r\n\t\t//starting x is 1000.\r\n\t\t\r\n\t\t//y starting is so that c/2 is at locY.\r\n\t\t//worldSize/2=y+(c/2*d)\r\n\t\t//y starting = (worldSize/2)-(c/2*d)\r\n\t\t//END of explanation\r\n\t\t\r\n\t\tfloat d=(locX*2-2000)/(2*c);\r\n\t\tfloat yStart=(locY)-((c/2)*d);\r\n\t\t//speed and angle of particles, defaulted inverted for symmetry.\r\n\t\tint sped=1600;\r\n\t\tint ang=30;\r\n\t\t\r\n\t\tint start=1000;\r\n\t\tfor(int i=0; i<c; i++) {\r\n\t\t\tfor(int j=0; j<c*2;j++) {\r\n\t\t\t\tfor(int k=0; k<2;k++) { \r\n\t\t\t\t\tlist.add(new Freebody(-sped, ang, 1, start+(int)(d*j), (int)(i*d+yStart), (int)(-k*d)+(locZ -1000), size, bounce, 0.001f));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tfor(int i=0; i<c; i++) {\r\n\t\t\tfor(int j=0; j<c*2;j++) {\r\n\t\t\t\tfor(int k=0; k<2;k++) {\r\n\t\t\t\t\tlist.add(new Freebody( sped, ang, 1, start+(int)(d*j), (int)(i*d+yStart), (int)(k*d)+(locZ +1000), size, bounce, 0.001f));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tint obsInOnHalf=c*c*2*2; //how many particles(Freebodys) are in one \"half\" (presets are normally made with 2 distinct halves)\r\n\t\t\t\t\t\t\t\t //below is to set velocities of every particle easily.\r\n\t\tint larges=0; //set this value equal to how many large masses were made.\r\n\t\tfor(int i=5; i<(obsInOnHalf)+larges;i++) {\r\n\t\t\tlist.get(i).setVel(-0, -sped/3, sped/2);\r\n\t\t}\r\n\t\tfor(int i=(obsInOnHalf)+larges; i<list.size();i++) {\r\n\t\t\tlist.get(i).setVel(0, sped/3, -sped/2);\r\n\t\t}\r\n\t\t\r\n\t\t//set worldSize to 0 for no boundaries (unlimited universe)\t\t\t\r\n\t\tuni = new WorldCreator(worldSize, worldSize, worldSize, 0,2,locX,locY,locZ);\r\n\t\t\r\n\t\t//turns on(or off) object/object collisions, off by default.\r\n\t\tuni.collisions(false);\t\t\t\r\n\t\treturn list;\r\n\t}", "public void moveY(){\n\t\tfor(int i = 0; i < level.solids.size(); i++){\n\t\t\tBlock solid = level.solids.get(i);\n\t\t\tif(solid != this && isColliding(solid, x, y)){\n\t\t\t\tif(solid.type.equals(\"Projectile\") && this.type.equals(\"Projectile\")){\n\t\t\t\t\tPlayer parent = ((Projectile)this).parent;\n\t\t\t\t\tPlayer other = ((Projectile)solid).parent;\n\n\t\t\t\t\tif(parent != other){\n\t\t\t\t\t\tstun(parent);\n\t\t\t\t\t\tstun(other);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tint clangTemp = Gameplay.random.nextInt(8) + 1;\n\t\t\t\t\tif(clangTemp <= 4){\n\t\t\t\t\t\tparent.clang1.play();\n\t\t\t\t\t}\n\t\t\t\t\telse if(clangTemp >= 5 && clangTemp <= 6){\n\t\t\t\t\t\tparent.clang2.play();\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\tparent.clang3.play();\n\t\t\t\t\t}\n\n\t\t\t\t\tlevel.solids.remove(this);\n\t\t\t\t\tlevel.solids.remove(solid);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\telse if(solid.type.equals(\"Hitbox\")){\n\t\t\t\t\tif(solid != parent.hitbox){\n\t\t\t\t\t\tdouble dist = Math.abs(solid.y - this.y);\n\t\t\t\t\t\tfor(int n = 1; n <= dist && !isColliding(solid, x, y + Math.signum(velY)) && Math.signum(velY) != 0; n++){\n\t\t\t\t\t\t\ty += Math.signum(velY);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\trelativeY += velY;\n\t\tvelY += accelY;\n\t\ty = (float) (parent.y + parent.hitbox.height / 2.0 + relativeY); //start it at the center of the player's hitbox, then move to its relative x\n\t}", "public static void setScene() {\n\n Shape ground = new Plane(vec3(0.0, -1.0, 0.0), vec3(0, 1, -0.2), new Diffuse(new Vec3(1,1,1), white));\n \n /* Shape globe1 = new Sphere(vec3(0.0, 2, -6.0), 0.5, new Diffuse(new Vec3(1,1,1), new Vec3(0.5, 0.5, 0.5)));\n Shape globe2 = new Sphere(vec3(2, 0, -6.0), 0.5, new Diffuse(new Vec3(1,1,1), new Vec3(0.5, 0.5, 0.5)));\n Shape globe3 = new Sphere(vec3(-2, 0, -6.0), 0.5, new Diffuse(new Vec3(1,1,1), new Vec3(0.5, 0.5, 0.5)));\n*/\n Shape globe1T = new Sphere(vec3(0.0, 2, -2.0), 0.3, new Diffuse(new Vec3(1,1,1), white));\n // Shape globe2T = new Sphere(vec3(-0.5, -2, -3.0), 0.5, new Diffuse(new Vec3(1,1,1),yellow));\n // Shape globe3T = new Sphere(vec3(0.5, -2, -3.0), 0.5, new Diffuse(new Vec3(1,1,1), yellow));\n\n \n \n Shape globe4 = new Sphere(vec3(0.0, 2, -4.0), 0.5, new Diffuse(new Vec3(1,1,1), new Vec3(0.3, 0.3, 0.3)));\n Shape globe5 = new Sphere(vec3(2, 0, -4.0), 0.5, new Diffuse(new Vec3(1,1,1), new Vec3(0.3, 0.3, 0.3)));\n Shape globe6 = new Sphere(vec3(-2, 0, -4.0), 0.5, new Diffuse(new Vec3(1,1,1), new Vec3(0.3, 0.3, 0.3)));\n \n Shape globe7 = new Sphere(vec3(0.0, 2, -8.0), 0.5, new Diffuse(new Vec3(1,1,1), new Vec3(0.7, 0.7, 0.7)));\n Shape globe8 = new Sphere(vec3(2, 0, -8.0), 0.5, new Diffuse(new Vec3(1,1,1), new Vec3(0.7, 0.7, 0.7)));\n Shape globe9 = new Sphere(vec3(-2, 0, -8.0), 0.5, new Diffuse(new Vec3(1,1,1), new Vec3(0.7, 0.7, 0.7)));\n Shape globe7D = new Sphere(vec3(0.0, -2, -8.0), 0.5, new Diffuse(new Vec3(1,1,1), new Vec3(0.7, 0.7, 0.7)));\n\n Shape globeC = new Sphere(vec3(0.0, 0.0, -6.0), 1.0, new Diffuse(new Vec3(1,1,1), red));\n \n ArrayList<Shape> shapes = new ArrayList<>();\n shapes.add(bg);\n shapes.add(ground);\n shapes.add(globe1T);\n // shapes.add(globe2T);\n // shapes.add(globe3T);\n //shapes.add(globe4);\n //shapes.add(globe5);\n shapes.add(globe7);\n shapes.add(globe8);\n shapes.add(globe9);\n shapes.add(globe7D);\n shapes.add(globeC);\n gr = new Group(shapes);\n /////////////////////////////--------------------------------------\n \n \n }", "public Body getNativeBody() {\r\n\t\treturn box2dComponent.getBody();\r\n\t}", "public void act()\r\n {\n \r\n if (Background.enNum == 0)\r\n {\r\n length = Background.length;\r\n width = Background.width;\r\n getWorld().addObject (new YouWon(), length / 2, width / 2);\r\n \r\n //long lastAdded2 = System.currentTimeMillis();\r\n //long curTime3 = System.currentTimeMillis();\r\n //long curTime3 = System.currentTimeMillis();\r\n //long seconds = curTime3 / 1000;\r\n //sleep = 3;\r\n //try {\r\n //TimeUnit.SECONDS.sleep(sleep);\r\n //} catch(InterruptedException ex) {\r\n //Thread.currentThread().interrupt();\r\n //}\r\n //Greenfoot.delay(3);\r\n //long curTime3 = System.currentTimeMillis();\r\n //long secs2 = curTime3 / 1000;\r\n //long curTime4;\r\n //long secs3;\r\n //do\r\n //{\r\n //getWorld().addObject (new YouWon(), length / 2, width / 2);\r\n //curTime4 = System.currentTimeMillis();\r\n //secs3 = curTime3 / 1000;\r\n //} while (curTime4 / 1000 < curTime3 / 1000 + 3);\r\n //if (System.currentTimeMillis()/1000 - 3 >= secs2)\r\n //{\r\n //do\r\n //{\r\n pause(3000);\r\n Actor YouWon;\r\n YouWon = getOneObjectAtOffset(0, 0, YouWon.class);\r\n World world;\r\n world = getWorld();\r\n world.removeObject(this);\r\n Background.xp += 50;\r\n Background.myGold += 100;\r\n if (Background.xp >= 50 && Background.xp < 100){\r\n Background.myLevel = 2;\r\n getWorld().addObject (new Level(), getWorld().getWidth() / 2, getWorld().getHeight() / 2);\r\n } else if (Background.xp >= 100 && Background.xp < 200){\r\n Background.myLevel = 3;\r\n getWorld().addObject (new Level(), getWorld().getWidth() / 2, getWorld().getHeight() / 2);\r\n } else if (Background.xp >= 200 && Background.xp < 400){\r\n Background.myLevel = 4;\r\n getWorld().addObject (new Level(), getWorld().getWidth() / 2, getWorld().getHeight() / 2);\r\n } else if (Background.xp >= 400 && Background.xp < 800){\r\n Background.myLevel = 5;\r\n getWorld().addObject (new Level(), getWorld().getWidth() / 2, getWorld().getHeight() / 2);\r\n } else if (Background.xp >= 800 && Background.xp < 1600){\r\n Background.myLevel = 6;\r\n getWorld().addObject (new Level(), getWorld().getWidth() / 2, getWorld().getHeight() / 2);\r\n } else if (Background.xp >= 1600 && Background.xp < 3200){\r\n Background.myLevel = 7;\r\n getWorld().addObject (new Level(), getWorld().getWidth() / 2, getWorld().getHeight() / 2);\r\n } else if (Background.xp >= 3200 && Background.xp < 6400){\r\n Background.myLevel = 8;\r\n getWorld().addObject (new Level(), getWorld().getWidth() / 2, getWorld().getHeight() / 2);\r\n } else if (Background.xp >= 6400 && Background.xp < 12800){\r\n Background.myLevel = 9;\r\n getWorld().addObject (new Level(), getWorld().getWidth() / 2, getWorld().getHeight() / 2);\r\n } else if (Background.xp >= 12800){\r\n Background.myLevel = 10;\r\n getWorld().addObject (new Level(), getWorld().getWidth() / 2, getWorld().getHeight() / 2);\r\n }\r\n //curTime3 = System.currentTimeMillis();\r\n //secs2 = curTime3 / 1000;\r\n //index2++;\r\n //Greenfoot.setWorld(new YouWon());\r\n //lastAdded2 = curTime3;\r\n //}\r\n //} while (index2 <= 0);\r\n }\r\n }", "void updatePlayer(Player player);", "public GameManager() {\n\t\tobjects.add(new Player(4, 4, ComponentManager.getComponent(ComponentManager.ComponentType.AABB), ProjectileManager.ProjectileType.Bullet, ComponentManager.ComponentType.AABB));\n\t\t\n\t\n\t\t\n\t\tobjects.add(new Platform(new AABBComponent()));\n\t\t\n\t\tloadLevel(\"/levelImage2_0.png\");\n\t\t\n\t\t//мусор\n\t\t\n\t\t//p1 = null;\n\t\t\n\t\t\n\t\tPBParticle p1 = null;\n\t\tPBParticle p2 = null;\n\t\t\n\t\tPLink l1 = null;\n\t\t\n\t\tnumOfPart = 48;\n\t\t\n\t\tint colNum = numOfPart / 3;\n\t\t\n\t\t\n\t\tfor(int i = 0; i < numOfPart; i ++)\n\t\t{\n\t\t\t\n\t\t\t\n\t\t\tp2 = p1; \n\t\t\t\n\t\t\tp1 = new PBParticle( (float)((4 + i % colNum) * TS),(float) ((4 + i / colNum) * TS), (float)(Math.random()*5), (float)(Math.random()*5), 1, new CircleComponent());\n\t\t\t\n\t\t\t\n\t\t\t//связи диагональ левый верхний - правый нижний\n\t\t\t/*if(i / colNum > 0 && i % colNum < colNum - 1)//не первая строка и не последняя чатсица в строке\n\t\t\t{\n\t\t\t\tl1 = new PLink(p1, (PBParticle)objects.get(objects.size() - colNum + 1), 20, this.stiffness);\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tsdlinks.add(l1);\n\t\t\t}\n\t\t\t\n\t\t\t//связи диагональ правый верхний - левый нижний\n\t\t\t\n\t\t\tif(i / colNum > 0 && i % colNum > 0) \n\t\t\t{\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tl1 = new PLink(p1, (PBParticle)objects.get(objects.size() - colNum - 1), 20, this.stiffness);\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tmdlinks.add(l1);\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t//горизонтальные связи\n\t\t\t\n\t\t\t//первая итерация для создания связи не подходит\n\t\t\t\n\t\t\t//также для создания горизонтальной связи не подходит итерация\n\t\t\t//когда p1 на новой строке, а p2 а старой\n\t\t\t\n\t\t\t\n\t\t\tif(p2 != null && (p1.getPosY() - p2.getPosY()) == 0)\n\t\t\t{\n\t\t\t\tl1 = new PLink(p1, p2, 20, this.stiffness);\n\t\t\t\t\n\t\t\t\thlinks.add(l1);\n\t\t\t}\n\t\t\t\n\t\t\t//вертикальные связи\n\t\t\t\n\t\t\t//проверить не ноль ли при делении i на количество столбцов\n\t\t\t//если не ноль то я должен выбрать из массива ссылок элемент \n\t\t\t//порядковый номер которого \n\t\t\tif(i / colNum != 0) //не первая строка\n\t\t\t{\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tl1 = new PLink(p1, (PBParticle)objects.get(objects.size() - colNum ), 20, this.stiffness);\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tvlinks.add(l1);\n\t\t\t}*/\n\t\t\t\n\t\t\t\n\t\t\tobjects.add(p1);\n\t\t}\n\t\t\n\n\t\t\n\t\t\n\t\t//p1 = new PBParticle( 12 * TS, 1 * TS, 0, 1, 1);\n\t\t//objects.add(p1);\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\tcamera = new Camera(\"player\");\n\t}", "public void update(Player player) {\n\t\t\n\t}", "public boolean addComponentParts(World world, Random random, StructureBoundingBox boundingBox)\n {\n if (this.field_143015_k < 0)\n {\n this.field_143015_k = this.getAverageGroundLevel(world, boundingBox);\n\n if (this.field_143015_k < 0)\n {\n return true;\n }\n\n this.boundingBox.offset(0, this.field_143015_k - this.boundingBox.maxY + 5 - 1, 0);\n }\n\n this.fillWithBlocks(world, boundingBox, 1, 1, 1, 10, 4, 10, Blocks.air, Blocks.air, false);\n this.fillWithBlocks(world, boundingBox, 0, 0, 0, 10, 0, 10, Blocks.cobblestone, Blocks.cobblestone, false);\n /*this.fillWithBlocks(world, boundingBox, 0, 0, 0, 10, 0, 0, Blocks.cobblestone, Blocks.cobblestone, false);\n this.fillWithBlocks(world, boundingBox, 10, 0, 0, 10, 0, 10, Blocks.cobblestone, Blocks.cobblestone, false);\n this.fillWithBlocks(world, boundingBox, 10, 0, 10, 0, 0, 10, Blocks.cobblestone, Blocks.cobblestone, false);\n this.fillWithBlocks(world, boundingBox, 0, 0, 10, 0, 0, 0, Blocks.cobblestone, Blocks.cobblestone, false);*/\n this.fillWithBlocks(world, boundingBox, 1, 0, 1, 9, 0, 9, plankBlock, plankBlock, false);\n this.fillWithBlocks(world, boundingBox, 0, 4, 0, 10, 4, 10, Blocks.cobblestone, Blocks.cobblestone, false);\n \n //RIGHT WALL\n this.fillWithBlocks(world, boundingBox, 0, 1, 0, 0, 1, 10, plankBlock, plankBlock, false);\n this.fillWithBlocks(world, boundingBox, 0, 3, 0, 0, 3, 10, plankBlock, plankBlock, false);\n this.placeBlockAtCurrentPosition(world, plankBlock, 0, 0, 2, 0, boundingBox);\n this.placeBlockAtCurrentPosition(world, logBlock, 0, 0, 2, 1, boundingBox);\n this.fillWithBlocks(world, boundingBox, 0, 2, 2, 0, 2, 4, Blocks.glass, Blocks.glass, false);\n this.placeBlockAtCurrentPosition(world, logBlock, 0, 0, 2, 5, boundingBox);\n this.fillWithBlocks(world, boundingBox, 0, 2, 6, 0, 2, 8, Blocks.glass, Blocks.glass, false);\n this.placeBlockAtCurrentPosition(world, logBlock, 0, 0, 2, 9, boundingBox);\n this.placeBlockAtCurrentPosition(world, plankBlock, 0, 0, 2, 10, boundingBox);\n \n //LEFT WALL\n this.fillWithBlocks(world, boundingBox, 10, 1, 0, 10, 1, 10, plankBlock, plankBlock, false);\n this.fillWithBlocks(world, boundingBox, 10, 3, 0, 10, 3, 10, plankBlock, plankBlock, false);\n this.placeBlockAtCurrentPosition(world, plankBlock, 0, 10, 2, 0, boundingBox);\n this.placeBlockAtCurrentPosition(world, logBlock, 0, 10, 2, 1, boundingBox);\n this.fillWithBlocks(world, boundingBox, 10, 2, 2, 10, 2, 4, Blocks.glass, Blocks.glass, false);\n this.placeBlockAtCurrentPosition(world, logBlock, 0, 10, 2, 5, boundingBox);\n this.fillWithBlocks(world, boundingBox, 10, 2, 6, 10, 2, 8, Blocks.glass, Blocks.glass, false);\n this.placeBlockAtCurrentPosition(world, logBlock, 0, 10, 2, 9, boundingBox);\n this.placeBlockAtCurrentPosition(world, plankBlock, 0, 10, 2, 10, boundingBox);\n \n //FRONT WALL\n this.fillWithBlocks(world, boundingBox, 0, 1, 0, 5, 1, 0, plankBlock, plankBlock, false);\n this.fillWithBlocks(world, boundingBox, 7, 1, 0, 10, 1, 0, plankBlock, plankBlock, false);\n this.fillWithBlocks(world, boundingBox, 0, 3, 0, 10, 3, 0, plankBlock, plankBlock, false);\n this.placeBlockAtCurrentPosition(world, plankBlock, 0, 0, 2, 0, boundingBox);\n this.placeBlockAtCurrentPosition(world, logBlock, 0, 1, 2, 0, boundingBox);\n this.placeBlockAtCurrentPosition(world, Blocks.glass, 0, 2, 2, 0, boundingBox);\n this.placeBlockAtCurrentPosition(world, logBlock, 0, 3, 2, 0, boundingBox);\n this.placeBlockAtCurrentPosition(world, Blocks.glass, 0, 4, 2, 0, boundingBox);\n this.placeBlockAtCurrentPosition(world, logBlock, 0, 5, 2, 0, boundingBox);\n this.placeBlockAtCurrentPosition(world, logBlock, 0, 7, 2, 0, boundingBox);\n this.placeBlockAtCurrentPosition(world, Blocks.glass, 0, 8, 2, 0, boundingBox);\n this.placeBlockAtCurrentPosition(world, logBlock, 0, 9, 2, 0, boundingBox);\n this.placeBlockAtCurrentPosition(world, plankBlock, 0, 10, 2, 0, boundingBox);\n \n //BACK WALL\n this.fillWithBlocks(world, boundingBox, 0, 1, 10, 10, 1, 10, plankBlock, plankBlock, false);\n this.fillWithBlocks(world, boundingBox, 0, 3, 10, 10, 3, 10, plankBlock, plankBlock, false);\n this.placeBlockAtCurrentPosition(world, plankBlock, 0, 0, 2, 10, boundingBox);\n this.placeBlockAtCurrentPosition(world, logBlock, 0, 1, 2, 10, boundingBox);\n this.placeBlockAtCurrentPosition(world, Blocks.glass, 0, 2, 2, 10, boundingBox);\n this.placeBlockAtCurrentPosition(world, logBlock, 0, 3, 2, 10, boundingBox);\n this.placeBlockAtCurrentPosition(world, Blocks.glass, 0, 4, 2, 10, boundingBox);\n this.placeBlockAtCurrentPosition(world, logBlock, 0, 5, 2, 10, boundingBox);\n this.placeBlockAtCurrentPosition(world, Blocks.glass, 0, 6, 2, 10, boundingBox);\n this.placeBlockAtCurrentPosition(world, logBlock, 0, 7, 2, 10, boundingBox);\n this.placeBlockAtCurrentPosition(world, Blocks.glass, 0, 8, 2, 10, boundingBox);\n this.placeBlockAtCurrentPosition(world, logBlock, 0, 9, 2, 10, boundingBox);\n this.placeBlockAtCurrentPosition(world, plankBlock, 0, 10, 2, 10, boundingBox);\n \n \n //DECO\n this.placeBlockAtCurrentPosition(world, Blocks.carpet, ((carpetMeta == -1) ? random.nextInt(15) : carpetMeta), 3, 1, 4, boundingBox);\n this.placeBlockAtCurrentPosition(world, Blocks.carpet, ((carpetMeta == -1) ? random.nextInt(15) : carpetMeta), 3, 1, 5, boundingBox);\n this.placeBlockAtCurrentPosition(world, Blocks.carpet, ((carpetMeta == -1) ? random.nextInt(15) : carpetMeta), 3, 1, 6, boundingBox);\n this.placeBlockAtCurrentPosition(world, Blocks.carpet, ((carpetMeta == -1) ? random.nextInt(15) : carpetMeta), 3, 1, 7, boundingBox);\n this.placeBlockAtCurrentPosition(world, Blocks.carpet, ((carpetMeta == -1) ? random.nextInt(15) : carpetMeta), 4, 1, 4, boundingBox);\n this.placeBlockAtCurrentPosition(world, Blocks.carpet, ((carpetMeta == -1) ? random.nextInt(15) : carpetMeta), 4, 1, 5, boundingBox);\n this.placeBlockAtCurrentPosition(world, Blocks.carpet, ((carpetMeta == -1) ? random.nextInt(15) : carpetMeta), 4, 1, 6, boundingBox);\n this.placeBlockAtCurrentPosition(world, Blocks.carpet, ((carpetMeta == -1) ? random.nextInt(15) : carpetMeta), 4, 1, 7, boundingBox);\n this.placeBlockAtCurrentPosition(world, Blocks.carpet, ((carpetMeta == -1) ? random.nextInt(15) : carpetMeta), 5, 1, 4, boundingBox);\n this.placeBlockAtCurrentPosition(world, Blocks.carpet, ((carpetMeta == -1) ? random.nextInt(15) : carpetMeta), 5, 1, 5, boundingBox);\n this.placeBlockAtCurrentPosition(world, Blocks.carpet, ((carpetMeta == -1) ? random.nextInt(15) : carpetMeta), 5, 1, 6, boundingBox);\n this.placeBlockAtCurrentPosition(world, Blocks.carpet, ((carpetMeta == -1) ? random.nextInt(15) : carpetMeta), 5, 1, 7, boundingBox);\n this.placeBlockAtCurrentPosition(world, Blocks.carpet, ((carpetMeta == -1) ? random.nextInt(15) : carpetMeta), 6, 1, 4, boundingBox);\n this.placeBlockAtCurrentPosition(world, Blocks.carpet, ((carpetMeta == -1) ? random.nextInt(15) : carpetMeta), 6, 1, 5, boundingBox);\n this.placeBlockAtCurrentPosition(world, Blocks.carpet, ((carpetMeta == -1) ? random.nextInt(15) : carpetMeta), 6, 1, 6, boundingBox);\n this.placeBlockAtCurrentPosition(world, Blocks.carpet, ((carpetMeta == -1) ? random.nextInt(15) : carpetMeta), 6, 1, 7, boundingBox);\n this.placeBlockAtCurrentPosition(world, Blocks.carpet, ((carpetMeta == -1) ? random.nextInt(15) : carpetMeta), 7, 1, 4, boundingBox);\n this.placeBlockAtCurrentPosition(world, Blocks.carpet, ((carpetMeta == -1) ? random.nextInt(15) : carpetMeta), 7, 1, 5, boundingBox);\n this.placeBlockAtCurrentPosition(world, Blocks.carpet, ((carpetMeta == -1) ? random.nextInt(15) : carpetMeta), 7, 1, 6, boundingBox);\n this.placeBlockAtCurrentPosition(world, Blocks.carpet, ((carpetMeta == -1) ? random.nextInt(15) : carpetMeta), 7, 1, 7, boundingBox);\n this.placeBlockAtCurrentPosition(world, Blocks.crafting_table, 0, 9, 1, 9, boundingBox);\n this.placeBlockAtCurrentPosition(world, logBlock, 0, 9, 1, 8, boundingBox);\n this.placeBlockAtCurrentPosition(world, logBlock, 0, 9, 1, 7, boundingBox);\n this.placeBlockAtCurrentPosition(world, logBlock, 0, 8, 1, 9, boundingBox);\n this.placeBlockAtCurrentPosition(world, Blocks.furnace, this.getMetadataWithOffset(Blocks.furnace, 1), 8, 1, 9, boundingBox);\n this.generateStructureChestContents(world, boundingBox, random, 7, 1, 9, workshopChestContents, getCount(random, 5, 7));\n this.generateStructureChestContents(world, boundingBox, random, 6, 1, 9, workshopChestContents, getCount(random, 5, 7));\n this.placeDoorAtCurrentPosition(world, boundingBox, random, 6, 1, 0, this.getMetadataWithOffset(Blocks.wooden_door, 1));\n //this.placeBlockAtCurrentPosition(world, Blocks.torch, this.getMetadataWithOffset(Blocks.torch, 1), 5, 3, 9, boundingBox);\n\n if (this.getBlockAtCurrentPosition(world, 6, 0, -1, boundingBox).getMaterial() == Material.air && this.getBlockAtCurrentPosition(world, 6, -1, -1, boundingBox).getMaterial() != Material.air)\n {\n this.placeBlockAtCurrentPosition(world, Blocks.stone_stairs, this.getMetadataWithOffset(Blocks.stone_stairs, 3), 6, 0, -1, boundingBox);\n }\n\n /* for (l = 0; l < 6; ++l)\n {\n for (int i1 = 0; i1 < 9; ++i1)\n {\n this.clearCurrentPositionBlocksUpwards(p_74875_1_, i1, 9, l, p_74875_3_);\n this.func_151554_b(p_74875_1_, Blocks.cobblestone, 0, i1, -1, l, p_74875_3_);\n }\n }*/\n\n this.spawnVillagers(world, boundingBox, 2, 1, 2, 1);\n return true;\n }", "public void handleInput(float dt) {\n\n if (player.currentState != Guy.State.DEAD) {\n if (Gdx.input.isKeyJustPressed(Input.Keys.UP))\n player.b2body.applyLinearImpulse(new Vector2(0, 2f), player.b2body.getWorldCenter(), true);\n\n if (Gdx.input.isKeyPressed(Input.Keys.RIGHT) && player.b2body.getLinearVelocity().x <= 2)\n player.b2body.applyLinearImpulse(new Vector2(0.1f, 0), player.b2body.getWorldCenter(), true);\n\n if (Gdx.input.isKeyPressed(Input.Keys.LEFT) && player.b2body.getLinearVelocity().x >= -2)\n player.b2body.applyLinearImpulse(new Vector2(-0.1f, 0), player.b2body.getWorldCenter(), true);\n\n if (Gdx.input.isKeyJustPressed(Input.Keys.SPACE))\n player.b2body.applyForce(new Vector2(0f, 0.1f), player.b2body.getWorldCenter(), true);\n }\n }", "public void setPlayerPosition(Player player) {\n if (player.getPositionX() < 0 && (player.getPositionY() > screenHeight / 2 - doorSize && player.getPositionY() < screenHeight / 2 + doorSize)) {\n //left exit to right entry\n player.position.x = screenWidth - wallSize - player.getRadius();\n player.position.y = player.getPositionY();\n } else if ((player.getPositionX() > screenWidth / 2 - doorSize && player.getPositionX() < screenWidth / 2 + doorSize) && player.getPositionY() < 0) {\n //top exit to bottom entry\n player.position.x = player.getPositionX();\n player.position.y = screenHeight - wallSize - player.getRadius();\n } else if (player.getPositionX() > screenWidth && (player.getPositionY() > screenHeight / 2 - doorSize && player.getPositionY() < screenHeight / 2 + doorSize)) {\n //right exit to left entry\n player.position.x = wallSize + player.getRadius();\n player.position.y = player.getPositionY();\n } else {\n //bottom exit to top entry\n player.position.x = player.getPositionX();\n player.position.y = wallSize + player.getRadius();\n }\n }", "public Player(Point2D position, RvsB_World map) {\n\t\tsuper(position);\n\t\tsetHp(stats.getDEFAULT_MAX_HP());\n\t\tsetMaxHp(stats.getDEFAULT_MAX_HP());\n\t\tsetMap(map);\n\t\tsetPhysicalShape(new PhysicalRectangle((int) getPosition().x(), (int) getPosition().y(), stats.getWidth(),\n\t\t\t\tstats.getHeight()));\n\t\tsetLookingAt(Side.RIGHT);\n\t\tsetPush(new Point2D(0, 0));\n\t\tsetJump(100, 0.33);\n\n\t\tfor (int i = 0; i< INFECTION_STATE.length; i++) {\n\t\t\ttoraxs[i] = new RotationRectangle((int) getPosition().x(), (int) getPosition().y(),\n\t\t\t\t\tstats.getWidth(), stats.getHeight());\n\t\t\ttoraxs[i].setTexturePath(INFECTION_STATE[i]);\n//\t\t\tgetTorax().setPaint(Color.BLUE);\n//\t\t\tgetGraphicShapes().add(toraxs[i]);\n\t\t}\n\t\tsetTorax(toraxs[0]);\n\t\t// RotationRectangle legs = new RotationRectangle((int)\n\t\t// getPosition().x(), (int) getPosition().y(),\n\t\t// stats.getWidth(), stats.getHeight());\n\t\tfor (String path : LEG_SPRITES) {\n\t\t\tRotationRectangle legs = new RotationRectangle((int) getPosition().x(), (int) getPosition().y(),\n\t\t\t\t\tstats.getWidth(), stats.getHeight());\n\t\t\taddLegs(legs);\n\t\t\tlegs.setTexturePath(path);\n\t\t\tgetGraphicShapes().add(legs);\n\t\t}\n\t\t// addLegs(legs);\n\t\t// getGraphicShapes().add(legs);\n\t\t// getLegs().setPaint(Color.RED);\n\t\t// getGraphicShapes().get(stats.getBODY()).setPaint(Color.BLUE);\n\t\t// getGraphicShapes().add(null);\n\n\t\tsetScore(0);\n\t\t// setWeapon(new RocketLauncher(this));\n\t\tsetWeapon(new Knife(this));\n\t\tsetSpeed(new Point2D(0, 0));\n\t\tsetKillTracer(new Tracer(new Line_trace(getPosition(), getPosition().add(getSpeed()), this)));\n\n\t}", "@Override\n public void render() {\n\n renderer.prepWindowRender(globalGameData.getGameWindow());\n renderer.setRenderSpace(0,0,500,500);\n\n\n renderEnvironment(getMainCamera(),testPlayer.getPlayerEntity().getEntityView().getViewableRegions(), instancedGridMesh);\n renderer.enableTransparency();\n walkieTalkie.render(renderer,renderer.getRenderWidth());\n renderer.disableTransparency();\n\n\n\n renderer.setRenderSpace(500,0,500,500);\n if (currentPlayers.containsKey(UUID.fromString(\"087954ba-2b12-4215-9a90-f7b810797562\"))) {\n renderEnvironment(getMainCamera(),currentPlayers.get(UUID.fromString(\"087954ba-2b12-4215-9a90-f7b810797562\")).getEntityView().getViewableRegions(), instancedGridMesh);\n }\n\n renderer.setRenderSpace(1000,0,500,500);\n renderer.enableTransparency();\n renderer.render2DTextItems(debugItems, \"Default2D\");\n renderer.disableTransparency();\n\n /*\n if (currentPlayers.containsKey(UUID.fromString(\"087954ba-2b12-4215-9a90-f7b810797562\"))) {\n renderer.setRenderSpace(500, 0, 500, 500);\n for (Region region : currentPlayers.get(UUID.fromString(\"087954ba-2b12-4215-9a90-f7b810797562\")).getEntityView().getViewableRegions()) {\n for (Block block : region.getBlocksArray()) {\n if (block instanceof CustomRenderBlock) {\n ((CustomRenderBlock) block).renderCustomBlock(renderer, camera);\n }\n }\n for (Entity entity : region.getEntities()) {\n entity.render(renderer, camera);\n }\n }\n }\n */\n\n\n //renderer.setRenderSpace(500,0,280,500);\n //SpriteItem spriteItem = new SpriteItem(AssetLoader.getTextureAsset(\"Noise\"),280,500,true);\n //spriteItem.setPosition(0,0,0);\n //renderer.render2DSpriteItem(spriteItem,\"Default2D\");\n //spriteItem.cleanup();\n\n\n\n /*\n renderer.getShader(\"DebugShader2D\").bind();\n glActiveTexture(GL_TEXTURE1);\n glBindTexture(GL_TEXTURE_2D, shaderTestBitmap.getId());\n glActiveTexture(GL_TEXTURE2);\n glBindTexture(GL_TEXTURE_2D, shaderTestEffect1.getId());\n glActiveTexture(GL_TEXTURE3);\n glBindTexture(GL_TEXTURE_2D, shaderTestEffect2.getId());\n glActiveTexture(GL_TEXTURE4);\n glBindTexture(GL_TEXTURE_2D, shaderTestEffect3.getId());\n renderer.getShader(\"DebugShader2D\").setUniform(\"bitmap\", 1);\n renderer.getShader(\"DebugShader2D\").setUniform(\"effect1\", 2);\n renderer.getShader(\"DebugShader2D\").setUniform(\"effect2\", 3);\n renderer.getShader(\"DebugShader2D\").setUniform(\"effect3\", 4);\n i++;\n i %= 600;\n float framePercent = i / 600.0f;\n renderer.getShader(\"DebugShader2D\").setUniform(\"frame\", framePercent);\n System.out.println(i);\n shaderTest.setPosition((float)gameInput.getMouseX(),(float)gameInput.getMouseY(),0);\n renderer.render2DSprite(shaderTest, \"DebugShader2D\");\n */\n\n\n\n\n\n }", "Player getDormantPlayer();", "public Player(World world) {\n\n super(world, playerShape);\n addImage(idleImage);\n score = 0;\n lives = 3;\n\n }", "public void update()\n {\n // start from the bottom of the world\n\n for (int y = height - 1; y >= 0; --y)\n {\n // compute offset to this and next line\n\n int thisOffset = y * width;\n \n // are we at top or bottom?\n\n boolean atTop = y == 0;\n boolean atBot = y == height - 1;\n\n // process line in random order\n \n for (int x: xRndIndex[rnd.nextInt(RND_INDEX_CNT)])\n {\n // index of this pixel\n \n int ip = thisOffset + x;\n \n // value of this pixel\n\n int p = pixels[ip];\n\n // don't process inert matter\n\n if (p == AIR || p == ROCK || p == EARTH)\n continue;\n\n // are we on a left or right edge?\n\n boolean atLeft = x == 0;\n boolean atRight = x == width - 1;\n\n // indices of pixels around this particle\n\n int iuc = ip - width;\n int idc = ip + width;\n int idl = idc - 1;\n int idr = idc + 1;\n int il = ip - 1;\n int ir = ip + 1;\n\n // get pixels for each index\n\n int uc = atTop ? ROCK : pixels[iuc];\n int dc = atBot ? ROCK : pixels[idc];\n int dl = atBot || atLeft ? ROCK : pixels[idl];\n int dr = atBot || atRight ? ROCK : pixels[idr];\n int l = atLeft ? ROCK : pixels[il];\n int r = atRight ? ROCK : pixels[ir];\n \n // the following actions propogate elements around the\n // world, they do not conserve matter\n\n // if fire, propogate fire\n\n if (p == FIRE1 || p == FIRE2 || p == FIRE3 || \n p == FIRE4 || p == FIRE5 || p == FIRE6)\n {\n int[] burn = {atLeft ? ip : il,\n atRight ? ip : ir,\n atTop ? ip : iuc,\n atBot ? ip : idc};\n\n\n for (int ib: burn)\n {\n int b = pixels[ib];\n\t\t\t\t\t \n\t\t\t\t\t // fire burns plants and oil, makes steam out of water\n\t\t\t\t\t \n if ((b == PLANT || b == OIL || b == COLUMBINE) &&\n rnd.nextInt(FIRE_CHANCE_IN) == 0)\n pixels[ib] = FIRE1;\n else\n if (b == WATER)\n {\n pixels[ib] = STEAM;\n pixels[ip] = STEAM;\n\t\t\t\t\t\t pixels[iuc] = STEAM;\n p = STEAM;\n break;\n }\n }\n // move fire along\n\n if (p == FIRE1)\n {\n pixels[ip] = FIRE3;\n continue;\n }\n if (p == FIRE2)\n {\n pixels[ip] = FIRE3;\n continue;\n }\n if (p == FIRE3)\n {\n pixels[ip] = FIRE4;\n continue;\n }\n if (p == FIRE4)\n {\n pixels[ip] = FIRE5;\n continue;\n }\n if (p == FIRE5)\n {\n pixels[ip] = FIRE6;\n continue;\n }\n if (p == FIRE6)\n {\n pixels[ip] = AIR;\n continue;\n }\n }\n // if this is steam, evaporate into air\n\n if (p == STEAM)\n { pixels[ip] = AIR;\n continue;\n\t\t\t }\n\n // if this is an everything sucker\n\n if (p == AIR_SOURCE)\n {\n int[] targets = {atLeft ? ip : il,\n atRight ? ip : ir,\n atTop ? ip : iuc,\n atBot ? ip : idc};\n for (int it: targets)\n pixels[it] = AIR;\n continue;\n }\n // if this is a water source\n\n if (p == WATER_SOURCE)\n {\n int[] targets = {atLeft ? ip : il,\n atRight ? ip : ir,\n atTop ? ip : iuc,\n atBot ? ip : idc};\n for (int it: targets)\n if (pixels[it] == AIR &&\n rnd.nextInt(WATER_CHANCE_IN) == 0)\n pixels[it] = WATER;\n continue;\n }\n // if this is a fire source\n\n if (p == OIL_SOURCE)\n {\n int[] targets = {atRight ? ip : ir,\n atLeft ? ip : il,\n atTop ? ip : iuc,\n atBot ? ip : idc};\n for (int it: targets)\n if (pixels[it] == AIR)\n pixels[it] = OIL;\n continue;\n }\n // if this is a sand source\n\n if (p == SAND_SOURCE)\n {\n int[] targets = {atLeft ? ip : il,\n atRight ? ip : ir,\n atTop ? ip : iuc,\n atBot ? ip : idc};\n for (int it: targets)\n if (pixels[it] == AIR &&\n rnd.nextInt(SAND_CHANCE_IN) == 0)\n pixels[it] = SAND;\n continue;\n }\n // if this is a plant, propogate growth\n\n if (p == PLANT)\n {\n\n int iul = iuc - 1;\n int iur = iuc + 1;\n\n int[] targets = {atLeft ? ip : il,\n atLeft || atTop ? ip : iul,\n atRight ? ip : ir,\n atRight || atTop ? ip : iur,\n atTop ? ip : iuc,\n atBot ? ip : idc,\n atBot || atLeft ? ip : idl,\n atBot || atRight ? ip : idr,\n };\n\t\t\t\t if (pixels[idl] == PLANT && pixels[idc] == PLANT && \n\t\t\t\t pixels[idr] == PLANT && pixels[ir] == PLANT && \n\t\t\t\t\t pixels[il] == PLANT && pixels[iuc] == WATER)\n\t\t\t\t\t pixels[ip] = COLUMBINE;\n for (int ix: targets)\n if (pixels[ix] == AIR)\n for (int it: targets)\n if (pixels[it] == WATER && rnd.nextInt(PLANT_CHANCE_IN) == 0)\n pixels[it] = PLANT;\n\t\t\t\t continue;\n }\n // if this is a flower\n\n if (p == COLUMBINE)\n\t\t\t {\n\t\t\t continue;\n\t\t\t }\n // if this is a fire source\n\n if (p == FIRE_SOURCE)\n {\n int[] targets = {atLeft ? ip : il,\n atRight ? ip : ir,\n atTop ? ip : iuc,\n atBot ? ip : idc};\n for (int it: targets)\n if (pixels[it] == PLANT || pixels[it] == OIL)\n pixels[it] = FIRE1;\n continue;\n }\n // all actions from this point on conserve matter\n // we only calculate the place to which this particle\n // will move, the the default is to do nothing\n\n int dest = NO_CHANGE;\n \n // if it's a oil\n\n if (p == OIL)\n {\n // compute indices for up left and up right\n\n int iul = iuc - 1;\n int iur = iuc + 1;\n\n // get pixels for each index\n\n int ul = atTop || atLeft ? ROCK : pixels[iul];\n int ur = atTop || atRight ? ROCK : pixels[iur];\n\n // if there is sand/earth above, erode that\n\n if (uc == EARTH || uc == SAND)\n dest = iuc; \n\n // if pixles up left and up right sand/water\n\n else if ((ul == EARTH || ul == SAND) && \n (ur == EARTH || ur == SAND))\n dest = rnd.nextBoolean() ? iul : iur;\n\n // if air underneath, go down\n \n else if (dc == AIR)\n dest = idc;\n \n // if air on both sides below, pick one\n\n else if (dl == AIR && dr == AIR)\n dest = rnd.nextBoolean() ? idl : idr;\n\n // if air only down left, go left\n\n else if (dl == AIR)\n dest = idl;\n\n // if air only down right, go right\n\n else if (dr == AIR)\n dest = idr;\n\n // if air on both sides below, pick one\n\n else if ((l == AIR || l == EARTH || l == SAND) &&\n (r == AIR || r == EARTH || r == SAND))\n dest = rnd.nextBoolean() ? il : ir;\n\n // if air only down left, go left\n\n else if (l == AIR || l == EARTH || l == SAND)\n dest = il;\n\n // if air only down right, go right\n\n else if (r == AIR || r == EARTH || r == SAND)\n dest = ir;\n\n // the case where water flows out two pixels\n \n else\n {\n // get items 2 pixels on either side of this one\n\n int ill = ip - 2;\n int irr = ip + 2;\n int ll = x < 2 ? ROCK : pixels[ill];\n int rr = x > width - 3 ? ROCK : pixels[irr];\n\n // if air on both sides, pick one\n\n if (ll == AIR && rr == AIR)\n dest = rnd.nextBoolean() ? irr : ill;\n \n // if air only right right, go right right\n \n else if (rr == AIR)\n dest = irr;\n \n // if air only left left, go left left\n\n else if (ll == AIR)\n dest = ill;\n }\n }\n // if it's water\n\n else if (p == WATER)\n {\n // compute indices for up left and up right\n\n int iul = iuc - 1;\n int iur = iuc + 1;\n\n // get pixels for each index\n\n int ul = atTop || atLeft ? ROCK : pixels[iul];\n int ur = atTop || atRight ? ROCK : pixels[iur];\n\n // if there is sand/earth above, erode that\n\n if (uc == EARTH || uc == SAND)\n dest = iuc; \n\n // if pixles up left and up right sand/water\n\n else if ((ul == EARTH || ul == SAND) && \n (ur == EARTH || ur == SAND))\n dest = rnd.nextBoolean() ? iul : iur;\n\n // if air underneath, go down\n \n else if (dc == AIR || dc == OIL)\n dest = idc;\n\n // if air on both sides below, pick one\n\n else if ((dl == AIR || dl == OIL) && (dr == AIR || dr == OIL))\n dest = rnd.nextBoolean() ? idl : idr;\n\n // if air only down left, go left\n\n else if (dl == AIR || dl == OIL)\n dest = idl;\n\n // if air only down right, go right\n\n else if (dr == AIR || dr == OIL)\n dest = idr;\n\n // if air on both sides below, pick one\n\n else if ((l == AIR || l == EARTH || l == SAND) &&\n (r == AIR || r == EARTH || r == SAND))\n dest = rnd.nextBoolean() ? il : ir;\n\n // if air only down left, go left\n\n else if (l == AIR || l == EARTH || l == SAND)\n dest = il;\n\n // if air only down right, go right\n\n else if (r == AIR || r == EARTH || r == SAND)\n dest = ir;\n\n // the case where water flows out two pixels\n \n else\n {\n // get items 2 pixels on either side of this one\n\n int ill = ip - 2;\n int irr = ip + 2;\n int ll = x < 2 ? ROCK : pixels[ill];\n int rr = x > width - 3 ? ROCK : pixels[irr];\n\n // if air on both sides, pick one\n\n if (ll == AIR && rr == AIR)\n dest = rnd.nextBoolean() ? irr : ill;\n \n // if air only right right, go right right\n \n else if (rr == AIR)\n dest = irr;\n \n // if air only left left, go left left\n\n else if (ll == AIR)\n dest = ill;\n }\n }\n // all other elements behave like sand\n\n else\n {\n // if air underneath, go down\n \n if (dc == AIR || dc == WATER)\n dest = idc;\n\n // if air on both sides below, pick one\n\n else if ((dl == AIR || dl == WATER) && \n (dr == AIR || dr == WATER))\n dest = rnd.nextBoolean() ? idl : idr;\n\n // if air only down left, go left\n\n else if (dl == AIR || dl == WATER)\n dest = idl;\n\n // if air only down right, go right\n\n else if (dr == AIR || dr == WATER)\n dest = idr;\n }\n // if a change is requried, swap pixles\n\n try\n {\n if (dest != NO_CHANGE)\n {\n if (pixels[ip] == WATER_SOURCE)\n out.println(\"swap1 WS & \" + Element.lookup(pixels[dest]));\n if (pixels[dest] == WATER_SOURCE)\n out.println(\"swap2 WS & \" + Element.lookup(pixels[ip]));\n\n pixels[ip] = pixels[dest];\n pixels[dest] = p;\n }\n }\n catch (Exception ex)\n {\n ex.printStackTrace();\n out.println(\" X: \" + x);\n out.println(\" Y: \" + y);\n out.println(\"Source: \" + Element.lookup(p));\n out.println(\"Source: \" + Element.lookup(pixels[ip]));\n out.println(\" Dest: \" + Element.lookup(pixels[dest]));\n \n }\n }\n }\n }", "private void checkCollision()\n {\n if (gameOverBool==false)\n { \n Actor a = getOneIntersectingObject(Wall.class);\n if (a != null||isAtEdge())\n {\n setImage(\"gone.png\");//laat de helicopter verdwijnen\n //greenfoot.GreenfootSound.stop(\"helisound.wav\");\n World world = getWorld();\n world.addObject(new Explosion(), getX(), getY());\n Greenfoot.playSound(\"heliExplosion.wav\");\n world.addObject( new Gameover(), 600, 300 );\n gameOverBool = true; \n }\n } \n }" ]
[ "0.6721123", "0.63223326", "0.62411207", "0.6096732", "0.60086715", "0.5912954", "0.59041625", "0.586669", "0.58133423", "0.5771105", "0.5763531", "0.57634705", "0.5755307", "0.57446784", "0.57284415", "0.56984466", "0.5684864", "0.5683224", "0.56443155", "0.56310356", "0.56291527", "0.56004965", "0.55973333", "0.5581979", "0.5581933", "0.55524063", "0.5529487", "0.5501773", "0.5477757", "0.547531", "0.54732966", "0.547326", "0.5473033", "0.5465228", "0.5454449", "0.5452293", "0.54437405", "0.5442648", "0.54384863", "0.54383814", "0.5434316", "0.5431005", "0.5415124", "0.54141796", "0.5406205", "0.53952837", "0.53918755", "0.5389025", "0.538074", "0.5373142", "0.5370897", "0.5370815", "0.5369041", "0.5368139", "0.53656787", "0.5356345", "0.5352755", "0.53414994", "0.5339417", "0.5337641", "0.53360796", "0.5329959", "0.5326791", "0.5324226", "0.5316734", "0.5315347", "0.53064615", "0.53051573", "0.52946115", "0.5291927", "0.5287989", "0.52843714", "0.5283164", "0.52809983", "0.52797765", "0.527615", "0.5272886", "0.5271994", "0.5265938", "0.5263253", "0.526065", "0.52586114", "0.525759", "0.52517754", "0.52481025", "0.5246785", "0.5244366", "0.52428854", "0.523147", "0.5231076", "0.5228417", "0.5228358", "0.5223984", "0.52237594", "0.52211607", "0.5221104", "0.5215734", "0.5211594", "0.5211421", "0.5210417", "0.52038544" ]
0.0
-1
gestion des armes :
public void changeWeapon(String weaponName) { m_weapon.changeAttack(weaponName); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void limpiarDatos() {\n\t\t\n\t}", "public void generTirarDados() {\n\r\n\t}", "public void buscarGestor(){\r\n\t\t\r\n\t}", "@Override\n\tvoid geraDados() {\n\n\t}", "private void mostrarEmenta (){\n }", "public void ordenaPontos(){\r\n\t\tloja.ordenaPontos();\r\n\t}", "@Override\n\tpublic void preparar() {\n\t\tSystem.out.println(\"massa, presunto, queijo, calabreza e cebola\");\n\t\t\n\t}", "private void carregaAvisosGerais() {\r\n\t\tif (codWcagEmag == WCAG) {\r\n\t\t\t/*\r\n\t\t\t * Mudan�as de idioma\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"4.1\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Ignorar arte ascii\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"13.10\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Utilizar a linguagem mais clara e simples poss�vel\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"14.1\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * navega��o de maneira coerente\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"13.4\", AVISO, codWcagEmag, \"\"));\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"14.2\", AVISO, codWcagEmag, \"\"));\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"11.4\", AVISO, codWcagEmag, \"\"));\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"14.3\", AVISO, codWcagEmag, \"\"));\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"12.3\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Fornecer mapa\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"13.3\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Abreviaturas\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"4.2\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Fornecer atalho\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"9.5\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Prefer�ncias (por ex., por idioma ou por tipo de conte�do).\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"11.3\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * BreadCrumb\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"13.5\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * fun��es de pesquisa\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"13.7\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * front-loading\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"13.8\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Documentos compostos por mais de uma p�gina\r\n\t\t\t */\r\n\t\t\t// comentado por n�o ter achado equi\r\n\t\t\t// erroOuAviso.add(new ArmazenaErroOuAviso(\"3.10\", AVISO,\r\n\t\t\t// codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Complementar o texto com imagens, etc.\r\n\t\t\t */\r\n\t\t\t// erroOuAviso.add(new ArmazenaErroOuAviso(\"3.11\", AVISO,\r\n\t\t\t// codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Forne�a metadados.\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"13.2\", AVISO, codWcagEmag, \"\"));\r\n\t\t} else if (codWcagEmag == EMAG) {\r\n\t\t\t/*\r\n\t\t\t * Mudan�as de idioma\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"1.2\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Ignorar arte ascii\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"1.3\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Utilizar a linguagem mais clara e simples poss�vel\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"1.9\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * navega��o de maneira coerente\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"1.10\", AVISO, codWcagEmag, \"\"));\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"1.21\", AVISO, codWcagEmag, \"\"));\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"1.24\", AVISO, codWcagEmag, \"\"));\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"2.9\", AVISO, codWcagEmag, \"\"));\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"2.11\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Fornecer mapa\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"2.17\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Abreviaturas\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"3.2\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Fornecer atalho\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"3.3\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Prefer�ncias (por ex., por idioma ou por tipo de conte�do).\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"3.5\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * BreadCrumb\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"3.6\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * fun��es de pesquisa\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"3.8\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * front-loading\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"3.9\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Documentos compostos por mais de uma p�gina\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"3.10\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Complementar o texto com imagens, etc.\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"3.11\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Forne�a metadados.\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"3.14\", AVISO, codWcagEmag, \"\"));\r\n\t\t}\r\n\r\n\t}", "@Override\r\n\tpublic void AgregarOrden() {\n\r\n\t}", "public void transcribir() \r\n\t{\r\n\t\tpalabras = new ArrayList<List<CruciCasillas>>();\r\n\t\tmanejadorArchivos = new CruciSerializacion();\r\n\t\tint contador = 0;\r\n\t\t\r\n\t\tmanejadorArchivos.leer(\"src/Archivos/crucigrama.txt\");\r\n\t\t\r\n\t\tfor(int x = 0;x<manejadorArchivos.getPalabras().size();x++){\r\n\t\t\t\r\n\t\t\tcontador++;\r\n\t\t\t\r\n\t\t\tif (contador == 4) {\r\n\t\t\t\r\n\t\t\t\tList<CruciCasillas> generico = new ArrayList<CruciCasillas>();\r\n\t\t\t\t\r\n\t\t\t\tfor(int y = 0; y < manejadorArchivos.getPalabras().get(x).length();y++)\r\n\t\t\t\t{\r\n\t\t\t\t\t\tgenerico.add(new CruciCasillas(manejadorArchivos.getPalabras().get(x).charAt(y)));\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tif (y == (manejadorArchivos.getPalabras().get(x).length() - 1)) \r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tpalabras.add(generico);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\tcontador = 0;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t\t\t\r\n\t}", "private void comerFantasma(Fantasma fantasma) {\n // TODO implement here\n }", "@Override\n\tpublic void mostrarDados() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "private void gestionAlarmeTpsReel() {\r\n\t\tint cptCapteur = 0;\r\n\t\tboolean blAlert = false;\r\n\t\tboolean blTrouve = false;\r\n\t\tString strSql = \"\";\r\n\t\tResultSet result = null;\r\n\t\tint voieApi = -1;\r\n\r\n\t\t// Lecture de la table AlarmeEnCours\r\n\t\tstrSql = \"SELECT V2_AlarmeEnCours.*, Capteur.VoieApi AS CapteurVoieApi, Capteur.Alarme, Capteur.Description, Capteur.TypeCapteur, Capteur.Nom, Capteur.Inhibition, Capteur.idAlarmeService,\"\r\n\t\t\t + \" Equipement.NumeroInventaire \"\r\n\t\t\t + \" FROM (V2_AlarmeEnCours LEFT JOIN (Capteur LEFT JOIN Equipement ON Capteur.idEquipement = Equipement.idEquipement)\"\r\n\t\t\t + \" ON V2_AlarmeEnCours.idCapteur = Capteur.idCapteur)\"\r\n\t\t\t + \" WHERE Capteur.idAlarmeService = \" + EFS_Constantes.gestionUtilisateur.getIdAlarmeService();\r\n\t\tresult = ctn.lectureData(strSql);\r\n\t\ttry {\r\n\t\t\twhile(result.next()) {\r\n\t\t\t\tcptCapteur++;\r\n\t\t\t\t// voie traitée\r\n\t\t\t\tvoieApi = result.getInt(\"CapteurVoieApi\") - 1;\r\n\t\t\t\t// Regarder si déjà dans la liste\r\n\t\t\t\tblTrouve = false;\r\n\t\t\t\tfor(int i = 0; i < mdlTpsReelAlarme.getRowCount(); i++) {\r\n\t\t\t\t\tif(mdlTpsReelAlarme.getIdCapteur(i) == result.getInt(\"idCapteur\")) {\r\n\t\t\t\t\t\t// Mettre à jour la valeur\r\n\t\t\t\t\t\tif(result.getInt(\"TypeCapteur\") == CAPTEUR_ANALOGIQUE_ENTREE) {\r\n\t\t\t\t\t\t\tmdlTpsReelAlarme.setValueAt((EFS_Client_Variable.tbValeurAI[voieApi] + EFS_Client_Variable.tbCalibrationAI[voieApi]) / 10, i, JTABLE_ALARME_VALEUR);\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tmdlTpsReelAlarme.setValueAt((double)EFS_Client_Variable.tbValeurDI[voieApi], i, JTABLE_ALARME_VALEUR);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tmdlTpsReelAlarme.setValueAt(result.getDate(\"DateDisparition\"), i, JTABLE_ALARME_DISPARITION);\r\n\t\t\t\t\t\tmdlTpsReelAlarme.setValueAt(result.getDate(\"DateApparition\"), i, JTABLE_ALARME_APPARITION);\r\n\t\t\t\t\t\tmdlTpsReelAlarme.setValueAt(result.getDate(\"DatePriseEnCompte\"), i, JTABLE_ALARME_PRISE_EN_COMPTE);\r\n\t\t\t\t\t\tblTrouve = true;\r\n\t\t\t\t\t} // Fin if\r\n\t\t\t\t} // Fin for i\r\n\t\t\t\tif(!blTrouve) {\r\n\t\t\t\t\tif(result.getInt(\"Alarme\") == ALARME_ALERT) {\r\n\t\t\t\t\t\tblAlert = true;\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse {\r\n\t\t\t\t\t\tblAlert = false;\r\n\t\t\t\t\t}\r\n//\t\t\t\t\tif ((result.getInt(\"Inhibition\") != ALARME_INHIBITION) && (result.getInt(\"blTempo\") == ALARME_TEMPO_DEPASSEE)) {\r\n\t\t\t\t\t\tmdlTpsReelAlarme.addAlarme(new TpsReelAlarme(result.getInt(\"idCapteur\"), result.getString(\"Nom\")\r\n\t\t\t\t\t\t\t\t, result.getString(\"Description\"), result.getString(\"NumeroInventaire\"), result.getDate(\"DateApparition\"),\r\n\t\t\t\t\t\t\t\tresult.getDate(\"DatePriseEnCompte\"), result.getString(\"DescriptionAlarme\")\r\n\t\t\t\t\t\t\t\t, result.getInt(\"VoieApi\"), blAlert, result.getDate(\"DateDisparition\"), result.getInt(\"Alarme\")));\r\n//\t\t\t\t\t} // fin mise en tableau\r\n\t\t\t\t} // fin blTrouve\r\n\t\t\t} // fin while\r\n\t\t} \r\n\t\tcatch (SQLException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tctn.closeLectureData();\r\n\t\ttry {\r\n\t\t\tresult.close();\r\n\t\t\tresult = null;\r\n\t\t} catch (SQLException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tif (mdlTpsReelAlarme.getRowCount() != cptCapteur) {\r\n\t\t\tmdlTpsReelAlarme.removeAllAlarme();\r\n\t\t\tgestionAlarmeTpsReel();\r\n\t\t}\r\n\t}", "public void Ordenamiento() {\n\n\t}", "public void FermerAgd() {\n //on essaye d'ouvrir un fichier dans lequel enregistrer le contenu de l'agenda\n try {\n Formatter agd_a_enreg = new Formatter(\"C:\\\\Projet_Agenda_ING3\\\\saved_agendas\");\n\n for (RdV el : this.getAgenda()) {\n //on enregistre 1 rdv par ligne\n //faire gaffe aux formats : %..\n agd_a_enreg.format(\"%s/%s/%s de %s a %s : %s , %s\\n\",\n el.getDate().getDayOfMonth(), el.getDate().getMonthValue(),\n el.getDate().getYear(), el.getHdebut(),\n el.getHfin(), el.getLibelle(), el.getRappel());\n //on supprime le rdv de l'arraylist d'agenda \n this.suppressionRdV(el);\n }\n //on ferme le fichier en ecriture\n agd_a_enreg.close();\n //on met l'attribut agenda à null une fois qu'il est \"vidé\"\n this.agd = null;\n } //en cas de probleme dans l'ouverture du fichier on affiche une erreur\n catch (Exception e) {\n System.out.print(\"Erreur d'ouverture du fichier en ecriture\\n\");\n }\n\n }", "public void carregar(DadosGrafico dados){\r\n \r\n }", "private void cargarFichaLepra_inicio() {\r\n\t\tMap<String, Object> parametros = new HashMap<String, Object>();\r\n\t\tparametros.put(\"nro_identificacion\",\r\n\t\t\t\tadmision_seleccionada.getNro_identificacion());\r\n\t\tparametros.put(\"nro_ingreso\", admision_seleccionada.getNro_ingreso());\r\n\t\tparametros.put(\"estado\", admision_seleccionada.getEstado());\r\n\t\tparametros.put(\"codigo_administradora\",\r\n\t\t\t\tadmision_seleccionada.getCodigo_administradora());\r\n\t\tparametros.put(\"id_plan\", admision_seleccionada.getId_plan());\r\n\t\tparametros.put(IVias_ingreso.ADMISION_PACIENTE, admision_seleccionada);\r\n\t\tparametros.put(IVias_ingreso.OPCION_VIA_INGRESO,\r\n\t\t\t\tOpciones_via_ingreso.REGISTRAR);\r\n\t\ttabboxContendor.abrirPaginaTabDemanda(false,\r\n\t\t\t\tIRutas_historia.PAGINA_INICIO_TRATAMIENTO_LEPRA,\r\n\t\t\t\tIRutas_historia.LABEL_INICIO_TRATAMIENTO_LEPRA, parametros);\r\n\t}", "private void inizia() throws Exception {\n this.setAllineamento(Layout.ALLINEA_CENTRO);\n this.creaBordo(\"Coperti serviti\");\n\n campoPranzo=CampoFactory.intero(\"a pranzo\");\n campoPranzo.setLarghezza(60);\n campoPranzo.setModificabile(false);\n campoCena=CampoFactory.intero(\"a cena\");\n campoCena.setLarghezza(60);\n campoCena.setModificabile(false);\n campoTotale=CampoFactory.intero(\"Totale\");\n campoTotale.setLarghezza(60); \n campoTotale.setModificabile(false);\n\n this.add(campoPranzo);\n this.add(campoCena);\n this.add(campoTotale);\n }", "private void inicializarVariablesControlRonda() {\n\t\ttieneAs = new int[4];\n\t\tfor(int i=0;i<tieneAs.length;i++) {\n\t\t\ttieneAs[i]=0;\n\t\t}\n\t\tidJugadores = new String[3];\n\t\tvalorManos = new int[4];\n\t\t\n\t\tmazo = new Baraja();\n\t\tCarta carta;\n\t\tganador = new ArrayList<String>();\n\t\tapuestasJugadores = new int[3];\n\t\tmanoJugador1 = new ArrayList<Carta>();\n\t\tmanoJugador2 = new ArrayList<Carta>();\n\t\tmanoJugador3 = new ArrayList<Carta>();\n\t\tmanoDealer = new ArrayList<Carta>();\n\t\tparejaNombreGanancia = new ArrayList<Pair<String,Integer>>(); \n\t\t\n\t\t// gestiona las tres manos en un solo objeto para facilitar el manejo del hilo\n\t\tmanosJugadores = new ArrayList<ArrayList<Carta>>(4);\n\t\tmanosJugadores.add(manoJugador1);\n\t\tmanosJugadores.add(manoJugador2);\n\t\tmanosJugadores.add(manoJugador3);\n\t\tmanosJugadores.add(manoDealer);\n\t\t// reparto inicial jugadores 1 y 2\n\t\tfor (int i = 1; i <= 2; i++) {\n\t\t\tcarta = mazo.getCarta();\n\t\t\tmanoJugador1.add(carta);\n\t\t\tcalcularValorMano(carta, 0);\n\t\t\tcarta = mazo.getCarta();\n\t\t\tmanoJugador2.add(carta);\n\t\t\tcalcularValorMano(carta, 1);\n\t\t\tcarta = mazo.getCarta();\n\t\t\tmanoJugador3.add(carta);\n\t\t\tcalcularValorMano(carta, 2);\n\t\t}\n\t\t// Carta inicial Dealer\n\t\tcarta = mazo.getCarta();\n\t\tmanoDealer.add(carta);\n\t\tcalcularValorMano(carta, 3);\n\n\t\t\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "private void remplirPrestaraireData() {\n\t}", "public void cargarEpicrisis() {\r\n\t\tif (admision_seleccionada != null\r\n\t\t\t\t&& admision_seleccionada.getAtendida()) {\r\n\t\t\tMap<String, Object> parametros = new HashMap<String, Object>();\r\n\t\t\tparametros.put(\"nro_identificacion\",\r\n\t\t\t\t\tadmision_seleccionada.getNro_identificacion());\r\n\t\t\tparametros.put(\"nro_ingreso\",\r\n\t\t\t\t\tadmision_seleccionada.getNro_ingreso());\r\n\t\t\tparametros.put(\"estado\", admision_seleccionada.getEstado());\r\n\t\t\tparametros.put(\"codigo_administradora\",\r\n\t\t\t\t\tadmision_seleccionada.getCodigo_administradora());\r\n\t\t\tparametros.put(\"id_plan\", admision_seleccionada.getId_plan());\r\n\t\t\tparametros.put(IVias_ingreso.ADMISION_PACIENTE,\r\n\t\t\t\t\tadmision_seleccionada);\r\n\t\t\tparametros.put(IVias_ingreso.OPCION_VIA_INGRESO,\r\n\t\t\t\t\tOpciones_via_ingreso.REGISTRAR);\r\n\t\t\ttabboxContendor.abrirPaginaTabDemanda(false,\r\n\t\t\t\t\tIRutas_historia.PAGINA_HC_EPICRISIS,\r\n\t\t\t\t\tIRutas_historia.LABEL_HC_EPICRISIS, parametros);\r\n\t\t}\r\n\r\n\t}", "public void iniciarBatalha() {\r\n\t\trede.iniciarPartidaRede();\r\n\t}", "private void remplirMaterielData() {\n\t}", "private static void statACricri() {\n \tSession session = new Session();\n \tNSTimestamp dateRef = session.debutAnnee();\n \tNSArray listAffAnn = EOAffectationAnnuelle.findAffectationsAnnuelleInContext(session.ec(), null, null, dateRef);\n \tLRLog.log(\">> listAffAnn=\"+listAffAnn.count() + \" au \" + DateCtrlConges.dateToString(dateRef));\n \tlistAffAnn = LRSort.sortedArray(listAffAnn, \n \t\t\tEOAffectationAnnuelle.INDIVIDU_KEY + \".\" + EOIndividu.NOM_KEY);\n \t\n \tEOEditingContext ec = new EOEditingContext();\n \tCngUserInfo ui = new CngUserInfo(new CngDroitBus(ec), new CngPreferenceBus(ec), ec, new Integer(3065));\n \tStringBuffer sb = new StringBuffer();\n \tsb.append(\"service\").append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \tsb.append(\"agent\").append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \tsb.append(\"contractuel\").append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \tsb.append(\"travaillees\").append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \tsb.append(\"conges\").append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \tsb.append(\"dues\").append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \tsb.append(\"restant\");\n \tsb.append(ConstsPrint.CSV_NEW_LINE);\n \t\n \n \tfor (int i = 0; i < listAffAnn.count(); i++) {\n \t\tEOAffectationAnnuelle itemAffAnn = (EOAffectationAnnuelle) listAffAnn.objectAtIndex(i);\n \t\t//\n \t\tEOEditingContext edc = new EOEditingContext();\n \t\t//\n \t\tNSArray array = EOAffectationAnnuelle.findSortedAffectationsAnnuellesForOidsInContext(\n \t\t\t\tedc, new NSArray(itemAffAnn.oid()));\n \t\t// charger le planning pour forcer le calcul\n \t\tPlanning p = Planning.newPlanning((EOAffectationAnnuelle) array.objectAtIndex(0), ui, dateRef);\n \t\t// quel les contractuels\n \t\t//if (p.affectationAnnuelle().individu().isContractuel(p.affectationAnnuelle())) {\n \t\ttry {p.setType(\"R\");\n \t\tEOCalculAffectationAnnuelle calcul = p.affectationAnnuelle().calculAffAnn(\"R\");\n \t\tint minutesTravaillees3112 = calcul.minutesTravaillees3112().intValue();\n \t\tint minutesConges3112 = calcul.minutesConges3112().intValue();\n \t\t\n \t\t// calcul des minutes dues\n \t\tint minutesDues3112 = /*0*/ 514*60;\n \t\t/*\tNSArray periodes = p.affectationAnnuelle().periodes();\n \t\tfor (int j=0; j<periodes.count(); j++) {\n \t\t\tEOPeriodeAffectationAnnuelle periode = (EOPeriodeAffectationAnnuelle) periodes.objectAtIndex(j);\n \t\tminutesDues3112 += periode.valeurPonderee(p.affectationAnnuelle().minutesDues(), septembre01, decembre31);\n \t\t}*/\n \t\tsb.append(p.affectationAnnuelle().structure().libelleCourt()).append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \t\tsb.append(p.affectationAnnuelle().individu().nomComplet()).append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \t\tsb.append(p.affectationAnnuelle().individu().isContractuel(p.affectationAnnuelle())?\"O\":\"N\").append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \t\tsb.append(TimeCtrl.stringForMinutes(minutesTravaillees3112)).append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \t\tsb.append(TimeCtrl.stringForMinutes(minutesConges3112)).append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \t\tsb.append(TimeCtrl.stringForMinutes(minutesDues3112)).append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \t\tsb.append(TimeCtrl.stringForMinutes(minutesTravaillees3112 - minutesConges3112 - minutesDues3112)).append(ConstsPrint.CSV_NEW_LINE);\n \t\tLRLog.log((i+1)+\"/\"+listAffAnn.count() + \" (\" + p.affectationAnnuelle().individu().nomComplet() + \")\");\n \t\t} catch (Throwable e) {\n \t\t\te.printStackTrace();\n \t\t}\n \t\tedc.dispose();\n \t\t//}\n \t}\n \t\n\t\tString fileName = \"/tmp/stat_000_\"+listAffAnn.count()+\".csv\";\n \ttry {\n\t\t\tBufferedWriter fichier = new BufferedWriter(new FileWriter(fileName));\n\t\t\tfichier.write(sb.toString());\n\t\t\tfichier.close();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\tLRLog.log(\"writing \" + fileName);\n\t\t}\n }", "public void datos_elegidos(){\n\n\n }", "private void cargarJugadoresEnMesa() {\n\n\t\tString nombreFichero = String.format(\"jugadoresEnMesa%d.csv\", id);\n\n\t\tthis.jugadoresEnMesa = GestionCSV.obtenerJugadores(nombreFichero);\n\n\t}", "public static void main(String[] args) {\n\t\tnew Ventana();\n/*\n\t\tCollection<MuroDeEnergia> muros = new ArrayList<MuroDeEnergia>();\n\t\tCollection<NaveInvasora> naves = new ArrayList<NaveInvasora>();\n\t\tBateria jugador = new Bateria();\n\t\t\n\t\tJuego.getInstancia();\n\t\tmuros = Juego.getInstancia().getMuros();\n\t\tnaves = Juego.getInstancia().getEnemigos();\n\t\tjugador = Juego.getInstancia().getJugador();\n\t\t\n\t\tIterator<MuroDeEnergia> i;\n\t\tfor (i = muros.iterator(); i.hasNext();) {\n\t\t\tMuroDeEnergia act = i.next();\n\t\t\tSystem.out.println(\"El muro \" + act.getCodigoMuro() + \" esta ubicado en: (\" + act.getCoordenadaX() + \", \" + act.getCoordenadaY() + \")\");\n\t\t}\n\t\t\n\t\tIterator<NaveInvasora> j;\n\t\tfor (j = naves.iterator(); j.hasNext();) {\n\t\t\tNaveInvasora act = j.next();\n\t\t\tSystem.out.println(\"El enemigo \" + act.getCodigoNave() + \" esta ubicado en: (\" + act.getCoordenadaX() + \", \" + act.getCoordenadaY() + \")\");\n\t\t}\n\t\t\n\t\tSystem.out.println(\"El jugador esta ubicado en (\" + jugador.getCoordenadaX() + \", \" + jugador.getCoordenadaY() + \")\" );\n\n\t\tSystem.out.println(\"Hay \" + muros.size() + \" muros de energia.\");\n\t\tJuego.getInstancia().destruirMuro(1);\n\t\tSystem.out.println(\"El muro 1 fue destruido.\");\n\t\tmuros = Juego.getInstancia().getMuros();\n\t\tSystem.out.println(\"Hay \" + muros.size() + \" muros de energia.\");\n\t\t\n\t\tSystem.out.println(\"Hay \" + naves.size() + \" enemigos. El jugador tiene \" + jugador.getPuntos() + \" puntos.\");\n\t\tJuego.getInstancia().destruirNave(9);\n\t\tSystem.out.println(\"La nave 9 fue destruida.\");\n\t\tnaves = Juego.getInstancia().getEnemigos();\n\t\tSystem.out.println(\"Hay \" + naves.size() + \" enemigos. El jugador tiene \" + jugador.getPuntos() + \" puntos.\");\n\t\tSystem.out.println(\"Usted esta en el nivel \" + Juego.getInstancia().getDificultad());\n\t\tSystem.out.println(\"Destruyendo naves...\");\n\t\tint idNave = 0;\n\t\twhile(idNave < 15) {\n\n\t\t\tJuego.getInstancia().destruirNave(idNave);\n\n\t\t\tidNave++;\n\n\t\t}\n\t\tSystem.out.println(\"Todas las naves fueron destruidas. Usted esta en el nivel \" + Juego.getInstancia().getDificultad() + \".\");\n\n\t\tSystem.out.println(\"El jugador esta ubicado en (\" + jugador.getCoordenadaX() + \", \" + jugador.getCoordenadaY() + \")\" );\n\t\t\n\t\tSystem.out.println(\"El jugador se mueve a la izquierda\");\n\t\tJuego.getInstancia().presionaFlechaIzq();\n\t\tSystem.out.println(\"El jugador esta ubicado en (\" + jugador.getCoordenadaX() + \", \" + jugador.getCoordenadaY() + \")\" );\n\t\t\n\t\tSystem.out.println(\"El jugador se mueve a la izquierda\");\n\t\tJuego.getInstancia().presionaFlechaIzq();\n\t\tSystem.out.println(\"El jugador esta ubicado en (\" + jugador.getCoordenadaX() + \", \" + jugador.getCoordenadaY() + \")\" );\n\n\t\tSystem.out.println(\"El jugador se mueve a la derecha\");\n\t\tJuego.getInstancia().presionaFlechaDer();\n\t\tSystem.out.println(\"El jugador esta ubicado en (\" + jugador.getCoordenadaX() + \", \" + jugador.getCoordenadaY() + \")\" );\n\n\t\tSystem.out.println(\"Se termina el juego:\");\n\t\tJuego.getInstancia().finalizarJuego();\n\t\t\n*/\n\t}", "void entrerAuGarage();", "public void llenarInformacion(){\n llenarDetalles();\n llenarLogros();\n }", "public Ficha_Ingreso_Egreso() {\n initComponents();\n limpiar();\n bloquear();\n \n }", "private void agregarFantasma(Fantasma fantasma) {\n // TODO implement here\n }", "private ArrayList<MeubleModele> initMeubleModeleCatalogue(){\n ArrayList<MeubleModele> catalogue = new ArrayList<>();\n // Création meubles\n MeubleModele Table1 = new MeubleModele(\"Table acier noir\", \"MaCuisine.com\", MeubleModele.Type.Tables,29,110,67);\n MeubleModele Table2 = new MeubleModele(\"Petite table ronde\", \"MaCuisine.com\", MeubleModele.Type.Tables,100,60,60);\n MeubleModele Table3 = new MeubleModele(\"Table 4pers. blanche\", \"MaCuisine.com\", MeubleModele.Type.Tables,499,160,95);\n MeubleModele Table4 = new MeubleModele(\"Table 8pers. noire\", \"MaCuisine.com\", MeubleModele.Type.Tables,599,240,105);\n MeubleModele Table5 = new MeubleModele(\"Table murale blanche\", \"MaCuisine.com\", MeubleModele.Type.Tables,39,74,60);\n MeubleModele Table6 = new MeubleModele(\"Table murale noire\", \"MaCuisine.com\", MeubleModele.Type.Tables,49,90,50);\n MeubleModele Meuble = new MeubleModele(\"Grandes étagères\", \"MaCuisine.com\", MeubleModele.Type.Meubles,99,147,147);\n MeubleModele Chaise = new MeubleModele(\"Chaise blanche cuir\", \"MaCuisine.com\", MeubleModele.Type.Chaises,59,30,30);\n //MeubleModele Machine_A_Laver = new MeubleModele(\"Machine à laver Bosch\", \"Bosch\", MeubleModele.Type.Petits_electromenagers,499,100,100);\n //MeubleModele Plan_de_travail = new MeubleModele(\"Plan de travail avec évier\", \"MaCuisine.com\", MeubleModele.Type.Gros_electromenagers,130,200,60);\n // Images meubles\n //Image i = new Image(getClass().getResourceAsStream(\"../Sprites/table1.png\"));\n //if (i == null) {\n // System.out.println(\"Erreur\");\n //}\n Table1.setImg(new Image(getClass().getResourceAsStream(\"../Sprites/table1.png\")));\n Table2.setImg(new Image(getClass().getResourceAsStream(\"../Sprites/table2.png\")));\n Table3.setImg(new Image(getClass().getResourceAsStream(\"../Sprites/table3.png\")));\n Table4.setImg(new Image(getClass().getResourceAsStream(\"../Sprites/table4.png\")));\n Table5.setImg(new Image(getClass().getResourceAsStream(\"../Sprites/table5.png\")));\n Table6.setImg(new Image(getClass().getResourceAsStream(\"../Sprites/table6.png\")));\n Meuble.setImg(new Image(getClass().getResourceAsStream(\"../Sprites/meuble.png\")));\n Chaise.setImg(new Image(getClass().getResourceAsStream(\"../Sprites/chaise.png\")));\n // add catalogue\n catalogue.add(Table1);\n catalogue.add(Table2);\n catalogue.add(Table3);\n catalogue.add(Table4);\n catalogue.add(Table5);\n catalogue.add(Table6);\n catalogue.add(Meuble);\n catalogue.add(Chaise);\n //catalogue.add(Machine_A_Laver);\n //catalogue.add(Plan_de_travail);\n return catalogue;\n }", "@Override\n\tpublic void trabajar() {\n\n\t}", "public void pedirValoresCabecera(){\n \r\n \r\n \r\n \r\n }", "public void recibeOrden() {\r\n\t\tSystem.out.println(\"Ordene mi General\");\r\n\t}", "public void cambioLigas(){\n\t\ttry{\n\t\t\tmodelo.updatePartidosEmaitzak(ligasel.getSelectionModel().getSelectedItem().getIdLiga());\n\t\t}catch(ManteniException e){\n\t\t\t\n\t\t}\n\t\t\n\t}", "public void avvia() {\n /* variabili e costanti locali di lavoro */\n\n try { // prova ad eseguire il codice\n getModuloRisultati().avvia();\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n\n super.avvia();\n\n }", "public void datosBundle()\n {\n //creamos un Bundle para recibir los datos de MascotasFavoritas al presionar el boton de atras en la ActionBar\n Bundle datosBundleAtras = getActivity().getIntent().getExtras();\n //preguntamos si este objeto viene con datos o esta vacio\n if(datosBundleAtras!=null)\n {//si hay datos estos se los agregamos a un ArrayList de mascotas\n mascotas = (ArrayList<Mascota>) datosBundleAtras.getSerializable(\"listamascotasatras\");\n }else{\n //si el bundle No trae datos entonces se inicializara la lista con datos\n validarBundle=1;\n //return;\n }\n }", "public void generar() throws Exception {\n\t\tAnalizador_Sintactico.salida.generar(\".DATA\", \"genero los datos estaticos para la clase \"+this.nombre);\r\n\t\tAnalizador_Sintactico.salida.generar(\"VT_\"+nombre+\":\",\" \");\r\n\t\t\r\n\t\tboolean esDinamico=false;\r\n\t\t\r\n\t\t//para cada metodo, genero la etiqueta dw al codigo\r\n\t\tfor (EntradaMetodo m: entradaMetodo.values()) {\r\n\t\t\tif (m.getModificador().equals(\"dynamic\")) {\r\n\t\t\t\tAnalizador_Sintactico.salida.gen_DW(\"DW \"+m.getEtiqueta(),\"offset: \"+m.getOffsetMetodo(),m.getOffsetMetodo());\r\n\t\t\t\tesDinamico=true;\r\n\t\t\t}\r\n\t\t}\r\n\t\tAnalizador_Sintactico.salida.agregar_DW();\r\n\t\t\r\n\t\t//si NO hay ningun metodo dinamico -> VT con NOP\r\n\t\tif (! esDinamico)\r\n\t\t\tAnalizador_Sintactico.salida.generar(\"NOP\",\"no hago nada\");\r\n\t\t\r\n\t\t//genero codigo para todos los metodos\r\n\t\tAnalizador_Sintactico.salida.generar(\".CODE\",\"seccion codigo de la clase \"+this.nombre);\r\n\t\t\r\n\t\tList<EntradaPar> listaParams;\r\n\t\tfor(EntradaMetodo m: entradaMetodo.values()) {\r\n\t\t\t//metodo actual es m\r\n\t\t\tAnalizador_Sintactico.TS.setMetodoActual(m);\r\n\t\t\t\r\n\t\t\t//SETEO el offset de sus parametros\r\n\t\t\tlistaParams= m.getEntradaParametros();\r\n\t\t\t\r\n\t\t\tfor(EntradaPar p: listaParams) {\r\n\t\t\t\t//seteo offset de p\r\n\t\t\t\t\r\n\t\t\t\t//si es dinamico m -> offset desde 3\r\n\t\t\t\tif (m.getModificador().equals(\"dynamic\")) {\r\n\t\t\t\t\tp.setOffset((listaParams.size() +4) - p.getUbicacion());\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t//si es estatico m -> offset desde 2\r\n\t\t\t\t\tp.setOffset((listaParams.size() +3) - p.getUbicacion());\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//genero el codigo del cuerpo de ese metodo\r\n\t\t\tm.generar();\r\n\t\t}\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t//genero codigo para todos los constructores\r\n\t\tfor(EntradaCtor c: entradaCtor.values()) {\r\n\t\t\t//metodo actual es m\r\n\t\t\tAnalizador_Sintactico.TS.setMetodoActual(c);\r\n\t\t\t\r\n\t\t\t//SETEO el offset de sus parametros\r\n\t\t\tlistaParams= c.getEntradaParametros();\r\n\t\t\t\r\n\t\t\tfor(EntradaPar p: listaParams) {\r\n\t\t\t\t//seteo offset de p\r\n\t\t\t\tp.setOffset(listaParams.size() +4 - p.getUbicacion());\t// +4 porque el ctor tiene this\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\t//genero el codigo de ese metodo\r\n\t\t\tc.generar();\r\n\t\t}\t\r\n\t}", "private void aggiornamento()\n {\n\t gestoreTasti.aggiornamento();\n\t \n\t /*Se lo stato di gioco esiste eseguiamo il suo aggiornamento.*/\n if(Stato.getStato() != null)\n {\n \t Stato.getStato().aggiornamento();\n }\n }", "private void cargarFichaLepra_control() {\r\n\r\n\t\tMap<String, Object> parameters = new HashMap<String, Object>();\r\n\t\tparameters.put(\"codigo_empresa\", codigo_empresa);\r\n\t\tparameters.put(\"codigo_sucursal\", codigo_sucursal);\r\n\t\tparameters.put(\"nro_identificacion\", tbxNro_identificacion.getValue());\r\n\r\n\t\tficha_inicio_lepraService.setLimit(\"limit 25 offset 0\");\r\n\r\n\t\t// log.info(\"parameters>>>>\" + parameters);\r\n\t\tBoolean ficha_inicio = ficha_inicio_lepraService\r\n\t\t\t\t.existe_paciente_lepra(parameters);\r\n\t\t// log.info(\"ficha_inicio>>>>\" + ficha_inicio);\r\n\r\n\t\tif (ficha_inicio) {\r\n\t\t\tMap<String, Object> parametros = new HashMap<String, Object>();\r\n\t\t\tparametros.put(\"nro_identificacion\",\r\n\t\t\t\t\tadmision_seleccionada.getNro_identificacion());\r\n\t\t\tparametros.put(\"nro_ingreso\",\r\n\t\t\t\t\tadmision_seleccionada.getNro_ingreso());\r\n\t\t\tparametros.put(\"estado\", admision_seleccionada.getEstado());\r\n\t\t\tparametros.put(\"codigo_administradora\",\r\n\t\t\t\t\tadmision_seleccionada.getCodigo_administradora());\r\n\t\t\tparametros.put(\"id_plan\", admision_seleccionada.getId_plan());\r\n\t\t\tparametros.put(IVias_ingreso.ADMISION_PACIENTE,\r\n\t\t\t\t\tadmision_seleccionada);\r\n\t\t\tparametros.put(IVias_ingreso.OPCION_VIA_INGRESO,\r\n\t\t\t\t\tOpciones_via_ingreso.REGISTRAR);\r\n\t\t\ttabboxContendor.abrirPaginaTabDemanda(false,\r\n\t\t\t\t\tIRutas_historia.PAGINA_SEGUIMIENTO_TRATAMIENTO_LEPRA,\r\n\t\t\t\t\tIRutas_historia.LABEL_SEGUIMIENTO_TRATAMIENTO_LEPRA,\r\n\t\t\t\t\tparametros);\r\n\t\t}\r\n\t}", "public static void main(String[] args) {\n \n //Joueur zidane=new Joueur(\"zidane\",\"zinedine\",\"zizou\", \"12/07/1995\",\"marseille\",\"francais\",75.5f,1.82f, Sexe.HOMME,Pied.AMBIDEXTRE,Tenue.SHORT,34,Sponsor.FLY_EMIRATES);\n // Attaquant messi=new Attaquant(\"zidane\",\"zinedine\",\"zizou\", \"12/07/1995\",\"marseille\",\"francais\",75.5f,1.82f, Sexe.HOMME,Pied.AMBIDEXTRE,Tenue.SHORT,10,Sponsor.FLY_EMIRATES,PosteJoueur.DEFENSEUR);\n //Milieu xavi=new Milieu(\"xavi\",\"xava\",\"go\", \"12/07/1990\",\"barcelone\",\"espagnol\",78.5f,1.85f, Sexe.HOMME,Pied.DROIT,Tenue.JOGGING,15,Sponsor.FLY_EMIRATES,PosteJoueur.DEFENSEUR);\n //Defenseur ramos=new Defenseur(\"xavi\",\"ramos\",\"ifjiej\", \"18/07/1990\",\"madrid\",\"espagnol\",78.5f,1.88f, Sexe.HOMME,Pied.GAUCHE,Tenue.SHORT,15,Sponsor.FLY_EMIRATES,PosteJoueur.MILIEU);\n //ramos.celebrer();\n //ramos.defendre();\n //Gardien neuer=new Gardien(\"neuer\",\"manuel\",\"ifjiej\", \"18/07/1991\",\"Bayern\",\"bayern\",88.5f,1.95f, Sexe.HOMME,Pied.GAUCHE,Tenue.SHORT,15,Sponsor.FLY_EMIRATES);\n //neuer.sortir();\n //Spectateur paul=new Spectateur(\"bollart\",12,false,false);\n //Arbitre guillaume=new Arbitre(\"ovigneur\",\"guillaume\",\"guigou\",\"12/07/1676\",\"Lille\", \"France\", 1.98f,1.67f,Sexe.HOMME,Pied.DROIT,Tenue.SHORT,48,Sponsor.MORELLE);\n Equipe marseille= new Equipe (NomEquipe.OM);\n Equipe paris= new Equipe (NomEquipe.PSG);\n Match match=new Match(TypeTerrain.GAZON,marseille,paris);\n match.simulerMatch();\n System.out.println(match.equipeGagnante);\n System.out.println(marseille.attaquants[2].getStatTir());\n \n Tournoi tournoi = new Tournoi(); \n tournoi.qualificaionsTournoi();\n tournoi.huitiemes();\n tournoi.quarts();\n tournoi.demi();\n tournoi.finale();\n \n System.out.println(tournoi.getEquipeEnLis());\n System.out.println(tournoi.getEquipeQualifie());\n System.out.println(tournoi.getEquipePerdanteHuit());\n System.out.println(tournoi.getEquipeGagnanteHuit());\n System.out.println(tournoi.getEquipePerdanteQuarts());\n System.out.println(tournoi.getEquipeGagnanteQuarts());\n System.out.println(tournoi.getEquipePerdanteDemi());\n System.out.println(tournoi.getEquipeGagnanteDemi());\n System.out.println(tournoi.getEquipeFinale());\n\n \n \n //Mise en place de \"l'interface\"\n Scanner sc = new Scanner(System.in);\n \n //Choix du mode de jeu\n System.out.println(\"\\n *** Choix du mode de jeu *** \\n\\t| tournoi : taper 1|\\n\\t| mode solo : taper 2|\");\n int modeDeJeu = sc.nextInt();\n sc.nextLine(); //On vide la ligne\n \n //AJOUTER UNE EXCEPTION POUR LE MODE DE JEU\n \n \n \n //Choix de l'equipe a l'aide d'un scanner\n// System.out.println(\"Choisissez votre équipe :\");\n// NomEquipe equipe;\n// Equipe equipeChoisit = new Equipe(nomEquipe);\n \n\n\n /*Scanner sc = new Scanner(System.in);\n System.out.println(\"Voulez vous disputer un match ? Oui=1 ou NON=2 \");\n int i = sc.nextInt();\n System.out.println(\"Saisissez le numéro de l'equipe avec laquelle vous voulez Jouez \"\n + \"PSG :1\"\n + \"MARSEILLE:2 \");\n //On vide la ligne avant d'en lire une autre\n sc.nextLine();\n int equipe = sc.nextInt(); \n System.out.println(\"FIN ! \");\n \n switch(equipe) {\n case 1:\n Equipe paris= new Equipe (NomEquipe.PSG);\n System.out.println(paris.stade);\n break;\n case 2 :\n Equipe marseille= new Equipe (NomEquipe.OM);\n System.out.println(marseille.stade);\n \n }*/\n }", "private void dibujarRuta(Aeropuerto origen, Aeropuerto destino, List<Aeropuerto> mundoA,List<Ruta> mundoR) {\n\t\tList<Ruta> rutaAerolineas = new ArrayList<Ruta>();\n\t\t\n\t\tfor (int i=0;i<mundoR.size();i++){\n\t\t\tif (mundoR.get(i).getIdOrigen().equals(origen.getId()) && mundoR.get(i).getIdDestino().equals(destino.getId())){ \n\t\t\t\t//System.out.println(mundoR.get(i).getAerolinea());\n\t\t\t\trutaAerolineas.add(mundoR.get(i));\n\t\t\t\tNode nodoOrigen = Display.graph.getNode(origen.getId());\n\t\t\t\tNode nodoDestino = Display.graph.getNode(destino.getId());\n\t\t\t\t \n\t\t\t\t//Eliminar todos los nodos y agregar exclusivamente el seleccionado. \n\t\t\t\tfor (int j = 0; j <mundoR.size(); j++){\n\t\t\t\t\ttry{\n\t\t\t\t\t\tDisplay.graph.removeEdge(mundoR.get(j).getId());\n\t\t\t\t\t} catch(Exception e) {};\n\t\t\t\t}\n\t\t\t\t \n\t\t\t\tDisplay.graph.addEdge(mundoR.get(i).getId(), nodoOrigen, nodoDestino);\n\t\t\t\tDisplay.graph.addAttribute(\"ui.stylesheet\", \n\t\t\t\t\t\t\t\t\"\t\t node {shape: circle;\" + \n\t\t\t\t\t\t \t\t\" size: 2px;\" + \n\t\t\t\t\n\t\t\t\t\t\t \t\t\" fill-color: rgba(3, 166, 120,200);}\" + \n\t\t\t\t\t\t \t\t\n\t\t\t\t\t\t \t\t\" edge { shape: cubic-curve;\" +\n\t\t\t\t\t\t \t\t\" fill-mode: gradient-horizontal;\" + \n\t\t\t\t\t\t \t\t\"\t\t fill-color: rgba(250,190,88,250);\"+\t\n\t\t\t\t\t\t \t\t\" z-index: 100;\" + \n\t\t\t\t\t\t \t\t\"\t\t arrow-size: 10px;}\" +\n\t\t\t\t\t\t \t\t\n\t\t\t\t\t\t \t\t\" graph {fill-color: #2C3E50;}\"\n\t\t\t\t);\n\t\t\t\t\n\t\t\t}\n\t\t }\n\t\t\n\t\t\n\t\tif (rutaAerolineas.size() == 0){\n\t\t\tSystem.out.println(\"No hay ruta directa\");\n\t\t\tDijkstraAlgorithm dijkstra = new DijkstraAlgorithm();\n\t\t\tdijkstra.shortestPath(origen, destino, mundoR);\n\t\t\t\n\t\t\t\n\t\t}\n\t\telse {\n\t\t\tViewer viewer = Display.graph.display();\n\t\t\tView view = viewer.getDefaultView();\n\t\t\t //view.getCamera().setViewPercent(1.7);\n\t\t\tviewer.disableAutoLayout(); \n\t\t}\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "private void limpa() {\n\t\t// limpa Alfabeto\n\t\tsimbolos.limpar();\n\t\t// limpa conjunto de estados\n\t\testados.limpar();\n\t\t// limpa Funcao Programa\n\t\tfuncaoPrograma.limpar();\n\t\t// Limpa estados finais\n\t\testadosFinais.limpar();\n\t}", "public void aumentarReproducidas() {\n\t\tsuper.aumentarReproducidas();\n\n\t}", "public void listar() {\n\t\t\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "ParqueaderoEntidad agregar(ParqueaderoEntidad parqueadero);", "public void inicialAleatorio() {\n //aqui adiciona naquele vetor que de auxilio\n alocacao.add(Estados.ELETRICISTAS);\n alocacao.add(Estados.ELETRICISTAS2);\n alocacao.add(Estados.QUALIDADE);\n alocacao.add(Estados.QUALIDADE2);\n alocacao.add(Estados.FABRICACAO_ESTRUTURAL);\n alocacao.add(Estados.FABRICACAO_ESTRUTURAL2);\n alocacao.add(Estados.FABRICACAO_ESTRUTURAL3);\n alocacao.add(Estados.PLANEJAMENTO);\n\n //biblioteca que sorteia aleatoriamente os departamentos\n Collections.shuffle(alocacao);\n\n for (int i = 0; i < 4; i++) {\n matrix[1][i] = alocacao.get(i);\n\n }\n\n for (int i = 0; i < 4; i++) {\n matrix[3][i] = alocacao.get(i + 4);\n }\n\n }", "@Override\n public void crearReloj() {\n Manecilla seg;\n seg = new Manecilla(40,60,0,1,null);\n cronometro = new Reloj(seg);\n }", "private void moverCarroLujo() {\n for (Auto auto : arrEnemigosAuto) {\n auto.render(batch);\n\n auto.moverIzquierda();\n }\n }", "private static void menuManejoJugadores() {\n\t\tint opcion;\n\t\tdo{\n\t\t\topcion=menuManejoJugadores.gestionar();\n\t\t\tgestionarMenuManejoJugador(opcion);\n\t\t}while(opcion!=menuManejoJugadores.getSALIR());\n\t}", "public void annuler(){\r\n try {\r\n viewEtudiantInscripEcheance = new ViewEtudiantInscriptionEcheance();\r\n echeance_etudiant = new EcoEcheanceEtudiant(); \r\n \r\n } catch (Exception e) {\r\n System.err.println(\"Erreur capturée : \"+e);\r\n }\r\n }", "@Override\r\n\tprotected void agregarObjeto() {\r\n\t\t// opcion 1 es agregar nuevo justificativo\r\n\t\tthis.setTitle(\"PROCESOS - PERMISOS INDIVIDUALES (AGREGANDO)\");\r\n\t\tthis.opcion = 1;\r\n\t\tactivarFormulario();\r\n\t\tlimpiarTabla();\r\n\t\tthis.panelBotones.habilitar();\r\n\t}", "public void inicializar() {\n\t\tarestas.forEach(aresta -> {\n\t\t\taresta.getOrigin().atribuirPesoInicial();\n\t\t\taresta.getTarget().atribuirPesoInicial();\n\t\t});\n\t}", "public GestorAtracciones()\n {\n gestor_trabajadores = new GestorTrabajadores();\n atracciones = new ArrayList<>();\n lectura = new Scanner(System.in);\n crearAtracciones();\n calculoTipoAtraccion();\n calculoPersonal();\n }", "public static void main(String[] args) throws Exception {\n datosPronostico=null; \r\n _reloj= new Reloj(); \r\n setRouteCalculatorPronostico(new RouteCalculatorPronostico());\r\n getRouteCalculatorPronostico().inicializaValores();\r\n ManejaDatos m= new ManejaDatos(); \r\n _reloj.detenerReloj();\r\n DiaPronostico.setNumTurnos(3);\r\n _reloj.setReloj(0, 0, 17, 5, 2012);\r\n int diaInicio=369;\r\n //_reloj.getFechaActual().add(Calendar.DAY_OF_YEAR, diaInicio);\r\n getRouteCalculatorPronostico().setReloj(_reloj);\r\n insertaPronostico();\r\n getRouteCalculatorPronostico().setIdPronostico(idPronostico);\r\n try{\r\n \r\n datosPronostico= m.sacaDatosPronostico(\"dat\", datosPronostico,_reloj,servletContext);\r\n procesaDatos();\r\n \r\n GeneraArchivosPronostico generador= new GeneraArchivosPronostico();\r\n /*ArrayList<OrdenEntrega> ordenes; \r\n _reloj.getFechaActual().add(Calendar.DAY_OF_YEAR, 372);\r\n for(int i=1;i<28;i++){\r\n _reloj.getFechaActual().add(Calendar.DAY_OF_YEAR, 1);\r\n ordenes=generador.nuevoGeneraArchivo(372,_reloj, new Mapa(150,100));\r\n }*/\r\n \r\n /*\r\n System.out.println(ordenes.size());*/\r\n /*\r\n Mapa mapa = new Mapa(150, 100);\r\n generador.nuevoGeneraArchivo(diaInicio, _reloj, mapa);*/\r\n GestorVehiculos gestorV= new GestorVehiculos(_reloj); \r\n \r\n getRouteCalculatorPronostico().setGestorVehiculos(gestorV);\r\n _reloj.getFechaActual().add(Calendar.DAY_OF_YEAR, diaInicio);\r\n getRouteCalculatorPronostico().calculaPronostico(diaInicio);\r\n \r\n getRouteCalculatorPronostico().correrDibujaPronostico();\r\n \r\n setRouteCalculatorPronostico(null);\r\n }catch(Exception e){\r\n \r\n throw e;\r\n \r\n }\r\n \r\n }", "public Artefato() {\r\n\t\tthis.membros = new ArrayList<Membro>();\r\n\t\tthis.servicos = new ArrayList<IServico>();\r\n\t}", "private void EstablecerVistas(TipoGestion tGestion){\n\t\tCantEjecutada=Utilitarios.round(activ.getCantidadEjecutada(),4);\n\t\n\t\tcantContratada=Utilitarios.round(activ.getCantidadContratada(),4);\n\t\t\n\t\t//CantPendienteDeEjecutar = Utilitarios.round((activ.getCantidadContratada()-activ.getCantidadEjecutada()),4);\n\n\n\t\tif ( activ.getCantidadEjecutada() > activ.getCantidadContratada()){\n\t\t\tCantPendienteDeEjecutar = 0;\n\t\t\tCantExcendete = Utilitarios.round((activ.getCantidadEjecutada()-activ.getCantidadContratada()),4);\n\t\t\tPorcExcedente = Utilitarios.round((CantExcendete / cantContratada * 100),2);\n\t\t\t((TextView) getActivity().findViewById(R.id.tv_fragAgregarAvancesRenglon_PorcCantidadExcedente)).setTextColor(getResources().getColorStateList(R.color.graphRed));\n\t\t}\n\t\telse{\n\t\t\tCantPendienteDeEjecutar = Utilitarios.round((activ.getCantidadContratada()-activ.getCantidadEjecutada()),4);\n\t\t\t((TextView) getActivity().findViewById(R.id.tv_fragAgregarAvancesRenglon_PorcCantidadExcedente)).setTextColor(getResources().getColorStateList(R.color.graphGreen));\n\t\t}\n\n\t\t\n\t\tif ( activ.getCantidadContratada() > 0){\n\t\t\t\tPorcEjecutado=Utilitarios.round((activ.getCantidadEjecutada()/cantContratada) * 100,2);\n\t\t\t\tPorcPendienteDeEjecutar = Utilitarios.round((CantPendienteDeEjecutar / cantContratada * 100),2);\n\t\t\t}\n\t\telse{\n\t\t\tPorcPendienteDeEjecutar\t= 0.00;\n\t\t\tPorcPendienteDeEjecutar = 0.00;\n\t\t}\n\n\t\t((TextView) getActivity()\n\t\t\t\t.findViewById(R.id.tv_fragAgregarAvancesRenglon_Actividad))\n\t\t\t\t.setText(String.valueOf(cantContratada));\n\n\t\t((TextView) getActivity()\n \t\t\t.findViewById(R.id.tv_fragAgregarAvancesRenglon_CantidadContratada))\n \t\t\t.setText(String.valueOf(cantContratada));\n\n \t((TextView) getActivity()\n \t\t\t.findViewById(R.id.tv_fragAgregarAvancesRenglon_CantidadEjecutada))\n \t\t\t.setText(String.valueOf(CantEjecutada));\n\n \t((TextView) getActivity()\n \t\t\t.findViewById(R.id.tv_fragAgregarAvancesRenglon_PorcCantidadEjecutada))\n \t\t\t.setText( String.valueOf(PorcEjecutado) + \"%\");\n\n\n \ttvEtiquetaAgregarAvances.setText(getActivity().getString(R.string.fragment_agregar_avances_renglon_4));\n\n\t\tdesActividad.setText(\"[\" + activ.getCodigoInstitucional() + \"] - \" + activ.getDescripcion());\n \t\n\t\tif(tGestion == TipoGestion.Por_Cantidades){\n\t\t\t((TextView) getActivity()\n \t\t\t.findViewById(R.id.et_fragAgregarAvancesEtiquetaPorc))\n \t\t\t.setVisibility(0);\n \t}\n \telse{\n \t\t\n \t\t((TextView) getActivity()\n \t\t\t.findViewById(R.id.et_fragAgregarAvancesEtiquetaPorc))\n \t\t\t.setText(\"%\");\n\n \t}\n\n\t\t\n\t\t//Se deshabilitara el widget de ingreso del avance para cuando la cantidad\n\t\t//pendiente de ejecutar sea igual o menor a 0\n\t\t/*if (CantPendienteDeEjecutar>0){\n \t((TextView) getActivity()\n \t\t\t.findViewById(R.id.tv_fragAgregarAvancesRenglon_FechaActualizo))\n \t\t\t.setText(getActivity().getResources().getString(R.string.fragment_agregar_avances_renglon_2)\n \t\t\t\t\t+ \" \" + String.valueOf(activ.getFechaActualizacion()));\n \t}\n \telse\n \t{\n \t\tToast.makeText(getActivity(), getActivity().getString(R.string.fragment_agregar_avances_renglon_5), Toast.LENGTH_LONG).show();\n \t\tetNuevoAvance.setText(\"0.00\");\n \t\tetNuevoAvance.setEnabled(false);\n \t}*/\n \t\n \t((TextView) getActivity()\n \t\t\t.findViewById(R.id.tv_fragAgregarAvancesRenglon_CantidadPorEjecutar))\n \t\t\t.setText(String.valueOf(Utilitarios.round(CantPendienteDeEjecutar, 4)));\n \t((TextView) getActivity()\n \t\t\t.findViewById(R.id.tv_fragAgregarAvancesRenglon_PorcCantidadPorEjecutar))\n \t\t\t.setText(String.valueOf(Utilitarios.round(PorcPendienteDeEjecutar, 2)) + \"%\");\n\n\t\t((TextView) getActivity()\n\t\t\t\t.findViewById(R.id.tv_fragAgregarAvancesRenglon_CantidadExcedente))\n\t\t\t\t.setText(String.valueOf(Utilitarios.round(CantExcendete, 4)));\n\n\t\t((TextView) getActivity()\n\t\t\t\t.findViewById(R.id.tv_fragAgregarAvancesRenglon_PorcCantidadExcedente))\n\t\t\t\t.setText(String.valueOf(Utilitarios.round(PorcExcedente, 2)) + \"%\");\n\n\t\tvalidarAvance(String.valueOf(etNuevoAvance.getText()));\n \t\n \tetNuevoAvance.addTextChangedListener(new TextWatcher() {\n \t\t\n\t\t\t@Override\n\t\t\tpublic void beforeTextChanged(CharSequence s, int start,\n\t\t\t\t\tint count, int after) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void onTextChanged(CharSequence s, int start,\n\t\t\t\t\tint before, int count) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void afterTextChanged(Editable s) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tvalidarAvance(s.toString());\n\t\t\t\t\t\t\t\t\t\n\t\t\t}\n \t});\n\t\t\n\t}", "public void cadastrarOfertasQuad1(){\n \n String[] palavras;\n \n //Primeiro quadrimestre\n try {\n try (BufferedReader lerArq = new BufferedReader(new InputStreamReader(new FileInputStream(\"/home/charles/alocacao/Arquivos Alocação/Arquivos CSV/Planejamento2017_q1.csv\"), \"UTF-8\"))) {\n String linha = lerArq.readLine(); //cabeçalho\n \n linha = lerArq.readLine();\n\n// linha = linha.replaceAll(\"\\\"\", \"\");\n while (linha != null) {\n\n linha = linha.replaceAll(\"\\\"\", \"\");\n\n palavras = linha.split(\";\", -1);\n\n oferta = new OfertaDisciplina();\n\n oferta.setCurso(palavras[0]);//2\n\n String nome = palavras[2];//4\n \n String codigo = palavras[1];//3\n \n Disciplina d = disciplinaFacade.findByCodOrName(codigo, nome);\n\n if (d != null) {\n// Disciplina d = disciplinaFacade.findByName(nome).get(0);\n oferta.setDisciplina(d);\n }\n oferta.setT(Integer.parseInt(palavras[3]));//5\n oferta.setP(Integer.parseInt(palavras[4]));//6\n oferta.setTurno(palavras[6]);//11\n oferta.setCampus(palavras[7]);//12\n if (!palavras[8].equals(\"\")) {\n oferta.setNumTurmas(Integer.parseInt(palavras[8]));//13\n }\n if (!palavras[9].equals(\"\")) {\n oferta.setPeriodicidade(palavras[9]);//19\n } else{\n oferta.setPeriodicidade(\"semanal\");\n }\n oferta.setQuadrimestre(1);\n\n salvarNoBanco();\n\n linha = lerArq.readLine();\n// linha = linha.replaceAll(\"\\\"\", \"\");\n }\n } //cabeçalho\n ofertas1LazyModel = null;\n } catch (IOException e) {\n System.err.printf(\"Erro na abertura do arquivo: %s.\\n\", e.getMessage());\n } \n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "private void colocar(){\n setLayout(s);\n eleccion = new BarraEleccion(imagenes,textos);\n eleccion.setLayout(new GridLayout(4,4));\n eleccion.setBorder(BorderFactory.createTitledBorder(\n BorderFactory.createBevelBorder(5), \"SELECCIONA EL MAGUEY\",\n TitledBorder.CENTER, TitledBorder.TOP,new Font(\"Helvetica\",Font.BOLD,15),Color.WHITE));\n eleccion.setFondoImagen(imgFond);\n etqAlcohol = new JLabel(\"SELECCIONA EL GRADO DE ALCOHOL\");\n etqAlcohol.setFont(new Font(\"Helvetica\", Font.BOLD, 14));\n etqAlcohol.setForeground(Color.WHITE);\n alcohol = new JComboBox<>();\n etqTipo = new JLabel(\"SELECCIONA EL TIPO DE MEZCAL\");\n etqTipo.setFont(new Font(\"Helvetica\", Font.BOLD, 14));\n etqTipo.setForeground(Color.WHITE);\n tipo = new JComboBox<>();\n btnRegistrar = new JButton();\n btnRegistrar.setFont(new Font(\"Sylfaen\", Font.BOLD, 17));\n btnRegistrar.setText(\"Registrar\");\n btnRegistrar.setHorizontalAlignment(SwingConstants.CENTER);\n btnRegistrar.setActionCommand(\"registrar\");\n add(eleccion);\n add(etqAlcohol);\n add(alcohol);\n add(etqTipo);\n add(tipo);\n add(btnRegistrar);\n iniciarVistas();\n }", "public void repartirGanancias() {\n\t\t \n\t\t System.out.println(\"JUGADORES EN GANANCIAS:\");\n\t\t for(int i = 0; i < idJugadores.length;i++) {\n\t\t\t System.out.println(\"idJugador [\"+i+\"] : \"+idJugadores[i]);\n\t\t }\n\t\t System.out.println(\"GANADORES EN GANANCIA\");\n\t\t for(int i = 0; i < ganador.size();i++) {\n\t\t\t System.out.println(\"Ganador [\"+i+\"] : \"+ganador.get(i));\n\t\t }\n\t\t if(ganador.size() >= 1) {\n\t\t\t for(int i = 0; i < idJugadores.length; i++) {\n\n\t\t\t\t if(contieneJugador(ganador, idJugadores[i])) {\n\t\t\t\t\t System.out.println(\"Entra ganador \"+idJugadores[i]);\n\t\t\t\t\t if(verificarJugadaBJ(manosJugadores.get(i))) {\n\t\t\t\t\t\t System.out.println(\"Pareja nombre agregado: \"+idJugadores[i]);\n\t\t\t\t\t\t parejaNombreGanancia.add(new Pair<String, Integer>(idJugadores[i],25));\n\t\t\t\t\t }else {\n\t\t\t\t\t\t System.out.println(\"Pareja nombre agregado --> \"+idJugadores[i]);\n\t\t\t\t\t\t parejaNombreGanancia.add(new Pair<String, Integer>(idJugadores[i],20));\n\t\t\t\t\t }\n\t\t\t\t }\n\t\t\t } \n\t\t }else {\n\t\t\t System.out.println(\"no ganó nadie\");\n\t\t\t parejaNombreGanancia.add(new Pair<String, Integer>(\"null\",0));\n\t\t }\n\t }", "void pasarALista();", "protected void elaboraPagina() {\n testoPagina = VUOTA;\n\n //header\n testoPagina += this.elaboraHead();\n\n //body\n testoPagina += this.elaboraBody();\n\n //footer\n //di fila nella stessa riga, senza ritorno a capo (se inizia con <include>)\n testoPagina += this.elaboraFooter();\n\n //--registra la pagina principale\n if (dimensioniValide()) {\n testoPagina = testoPagina.trim();\n\n if (pref.isBool(FlowCost.USA_DEBUG)) {\n testoPagina = titoloPagina + A_CAPO + testoPagina;\n titoloPagina = PAGINA_PROVA;\n }// end of if cycle\n\n //--nelle sottopagine non eseguo il controllo e le registro sempre (per adesso)\n if (checkPossoRegistrare(titoloPagina, testoPagina) || pref.isBool(FlowCost.USA_DEBUG)) {\n appContext.getBean(AQueryWrite.class, titoloPagina, testoPagina, summary);\n logger.info(\"Registrata la pagina: \" + titoloPagina);\n } else {\n logger.info(\"Non modificata la pagina: \" + titoloPagina);\n }// end of if/else cycle\n\n //--registra eventuali sottopagine\n if (usaBodySottopagine) {\n uploadSottoPagine();\n }// end of if cycle\n }// end of if cycle\n\n }", "public static void main(String[] args) {\n\t\t\n\t\tRubro rubro1= new Rubro (\"Cafeteria\");\n\t\t\n\t\t// inicializo el arreglo de importes\n\t\t\n\t\trubro1.inicializarGastos();\n\t\t\n\t\t\n\t\t// le cargo a enero y febrero gastos // pruebo método agregarGasto\n\t\t\n\t\trubro1.agregarGasto(MESDELANIO.ABRIL, 100);\n\t\trubro1.agregarGasto(MESDELANIO.ENERO, 200);\n\n\t\t\n\t\t// VEO QUE LO HAYA CARGADO BIEN\n\t\t\n\t\tSystem.out.println(rubro1);\n\t\t\n\t\n\t\t// pruebo método getNombre()\n\n\t\trubro1.getName();\n\t\tSystem.out.println(rubro1.getName());\n\t\t\n\t\t// pruebo método getTotalGastos - pido enero y pido abril \n\t\t// debería darme 200 y 100\n\t\t\n\t\trubro1.getTotalGastos(MESDELANIO.ENERO);\n\t\trubro1.getTotalGastos(MESDELANIO.ABRIL);\n\n\t\tSystem.out.println(rubro1.getTotalGastos(MESDELANIO.ENERO));\n\t\tSystem.out.println(rubro1.getTotalGastos(MESDELANIO.ABRIL));\n\t\t\n\t\t\n\t\t/// ---- MÉTODOS DE GASTOSTOTAL\n\t\t\n\t\t\n\t\t// Creo un objeto gasto anual\n\t\t\n\t\tGastoAnual gasto2020 = new GastoAnual ();\n\t\t\n\t\t// AGREGO rubros\n\t\tgasto2020.agregarRubro(rubro1);\n\t\t\n\t\t// pruebo el método AgregarGasto\n\t\t\n\t\tgasto2020.agregarGastoNuevo(MESDELANIO.ENERO, \"Cafeteria\", 200);\n\t\tgasto2020.agregarGastoNuevo(MESDELANIO.ENERO, \"Cafeteria\", 200);\n\t\n\t\t\n // esto debería agregar 200 pesos a cafeteria, lo cual daría un total de 400 \n\t\t\n\t\trubro1.getTotalGastos(MESDELANIO.ENERO);\n\t\tSystem.out.println(rubro1.getTotalGastos(MESDELANIO.ENERO));\n\t\t\n\t\t\n\t\t// ahora pruebo si agrega un rubro que no existe con AgregarGastoNuevo\n\t\t\n\tgasto2020.agregarGastoNuevo(MESDELANIO.MARZO, \"Tintoreria\", 200);\n\tSystem.out.println(gasto2020);\n\t\t \n\t\t\n\t\t// pruebo consolidadoDeGastos()\n\t\t\n\t\tgasto2020.consolidadoDeGastos();\n\t\t\n\t\t// pruebo gastoAcumulado(MESDELANIO mes) \n\t\t\n\t\tgasto2020.gastoAcumulado(MESDELANIO.ENERO);\n\t\tgasto2020.gastoAcumulado(MESDELANIO.FEBRERO);\n\t\tgasto2020.gastoAcumulado(MESDELANIO.MARZO);\n\t\t\n\t\t// deberia dar 400\n\t\t\n\t\tSystem.out.println(gasto2020.gastoAcumulado(MESDELANIO.ENERO));\n\t\t\n\t\t// deberia dar 0 \n\t\t\n\t\tSystem.out.println(gasto2020.gastoAcumulado(MESDELANIO.FEBRERO));\n\t\t\n\t\t// deberia dar 200\n\n\t\tSystem.out.println(gasto2020.gastoAcumulado(MESDELANIO.MARZO));\n\n\t\t\n\t\t\n\t\t// pruebo gastoAcumulado(String nombreRubro) por rubro\n\t\t\n\t\tgasto2020.gastoAcumulado(\"Cafeteria\");\n\t\t\n\t\t// debería dar 400\n\t\t\n\t\tSystem.out.println(gasto2020.gastoAcumulado(\"Cafeteria\"));\n\t\t\n\t\t// debería dar 200 \n\t\tSystem.out.println(gasto2020.gastoAcumulado(\"Tintoreria\"));\n\t\t\n\t\t\n\t\t// debería dar -1\n\t\tSystem.out.println(gasto2020.gastoAcumulado(\"Supermercado\"));\n\t\t\n\t\t\n\t\t// pruebo informarConsumoPorMes y por promedio \n\t\t\n\t\tgasto2020.informarConsumosPorMes();\n\t\t\n\t\t\n\t\t// pruebo public void informarMesMayorConsumo() - debe darme enero con 400 \n\t\t\n\t\t\n\t\tgasto2020.informarMesMayorConsumo();\n\t\t\n\n\t\n\t\t\n\t\t\n\n\t}", "private void listar() throws Exception{\n int resId=1;\n List<PlatoDia> lista = this.servicioRestaurante.listarMenuDia(resId);\n this.modelListEspecial.clear();\n lista.forEach(lse -> {\n this.modelListEspecial.addElement(\"ID: \" + lse.getId() \n + \" NOMBRE: \" + lse.getNombre()\n + \" DESCRIPCION: \" + lse.getDescripcion()\n + \" PRECIO: \" + lse.getPrecio()\n + \" ENTRADA: \"+lse.getEntrada() \n + \" PRINCIPIO: \"+lse.getPrincipio()\n + \" CARNE: \"+lse.getCarne()\n + \" BEBIDA: \"+lse.getBebida()\n + \" DIA: \"+lse.getDiaSemana());\n });\n }", "private void reestablecerComponentes()\n {\n tokenslist = new LinkedList<LineaToken>();\n tokenslistErrores = new LinkedList<LineaToken>();\n info_tabla_tokens.clear();\n info_tabla_errores.clear();\n ta_errores_sintacticos_id.clear();\n ta_errores_semanticos_id.clear();\n ta_tabla_simbolos_id.clear();\n ta_codigo_ensamblador_id.clear();\n Generador.contadorEtiq = 1;\n Generador.etiqAnterior = \"L0\";\n EliminarArchivoASM();\n }", "public void MieiOrdini()\r\n {\r\n getOrdini();\r\n\r\n }", "@Override\npublic String toString() {// PARA MOSTRAR LOS DATOS DE ESTA CLASE\n// TODO Auto-generated method stub\nreturn MuestraCualquiera();\n}", "private void cargarRegistroMedicamentos() {\r\n\t\tMap<String, Object> parametros = new HashMap<String, Object>();\r\n\t\tparametros.put(\"admision_seleccionada\", admision_seleccionada);\r\n\t\tparametros.put(\"rol_medico\", \"S\");\r\n\t\ttabboxContendor.abrirPaginaTabDemanda(false,\r\n\t\t\t\t\"/pages/registro_medicamentos.zul\", \"REGISTRO DE MEDICAMENTOS\",\r\n\t\t\t\tparametros);\r\n\t}", "public void rodar(){\n\t\tmeuConjuntoDePneus.rodar();\r\n\t}", "public static void main(String[] args) {\n Tabuleiro resta1 = new Tabuleiro();\n //Imprime o estado inicial do tabuleiro\n System.out.println(\"Tabuleiro inicial\");\n resta1.imprimir(); \n //Lê comandos e os tranforma em um vetor de strings\n CSVReader csv = new CSVReader();\n csv.setDataSource(\"/home/cristiano/Documents/resta.csv\");\n String commands[] = csv.requestCommands();\n //Executa comandos no tabuleiro\n for(int i=0; i<commands.length; i++){\n resta1.movimento(commands[i]);\n //Encerra o loop caso o jogador ganhe\n if(Pecas.n==1)\n break;\n }\n }", "public void creaAziendaAgricola(){\n\t\tCantina nipozzano = creaCantina(\"Nipozzano\");\t\n\t\tBotte[] bottiNipozzano = new Botte[5+(int)(Math.random()*10)];\t\n\t\tfor(int i=0; i<bottiNipozzano.length; i++){\n\t\t\tbottiNipozzano[i] = creaBotte(nipozzano, i, (int)(Math.random()*10+1), tipologiaBotte[(int)(Math.random()*tipologiaBotte.length)]);\n\t\t}\t\t\n\t\tVigna mormoreto = creaVigna(\"Mormoreto\", 330, 25, EsposizioneVigna.sud, \"Terreni ricchi di sabbia, ben drenati. Discreta presenza di calcio. pH neutro o leggermente alcalino\");\n\t\tFilare[] filariMormoreto = new Filare[5+(int)(Math.random()*10)];\n\t\tfor(int i=0; i<filariMormoreto.length;i++){\n\t\t\tfilariMormoreto[i] = creaFilare(mormoreto, i, tipologiaFilare[(int)(Math.random()*tipologiaFilare.length)]);\n\t\t}\t\n\t\tVigna montesodi = creaVigna(\"Montesodi\", 400, 20, EsposizioneVigna.sud_ovest, \"Arido e sassoso, di alberese, argilloso e calcareo, ben drenato, poco ricco di sostanza organica\");\n\t\tFilare[] filariMontesodi = new Filare[5+(int)(Math.random()*10)];\n\t\tfor(int i=0; i<filariMontesodi.length;i++){\n\t\t\tfilariMontesodi[i] = creaFilare(montesodi, i, tipologiaFilare[(int)(Math.random()*tipologiaFilare.length)]);\n\t\t}\n\t\t/*\n\t\t * CANTINA: POMINO - VIGNETO BENEFIZIO\n\t\t */\n\t\t\n\t\tCantina pomino = creaCantina(\"Pomino\");\n\t\tBotte[] bottiPomino = new Botte[5+(int)(Math.random()*10)];\t\n\t\tfor(int i=0; i<bottiPomino.length; i++){\n\t\t\tbottiPomino[i] = creaBotte(pomino, i, (int)(Math.random()*10+1), tipologiaBotte[(int)(Math.random()*tipologiaBotte.length)]);\n\t\t}\n\t\tVigna benefizio = creaVigna(\"Benefizio\", 700, 9, EsposizioneVigna.sud_ovest, \"Terreni ricchi di sabbia, forte presenza di scheletro. Molto drenanti. Ricchi in elementi minerali. PH acido o leggermente acido.\");\n\t\tFilare[] filariBenefizio = new Filare[5+(int)(Math.random()*10)];\n\t\tfor(int i=0; i<filariBenefizio.length;i++){\n\t\t\tfilariBenefizio[i] = creaFilare(benefizio, i, tipologiaFilare[(int)(Math.random()*tipologiaFilare.length)]);\n\t\t}\n\t\t\n\t\taziendaAgricolaDAO.saveLuogo(nipozzano);\n\t\taziendaAgricolaDAO.saveLuogo(mormoreto);\n\t\taziendaAgricolaDAO.saveLuogo(montesodi);\n\t\t\n\t\taziendaAgricolaDAO.saveLuogo(pomino);\n\t\taziendaAgricolaDAO.saveLuogo(benefizio);\n\t\t\n\t\taziendaAgricolaDAO.saveResponsabile(responsabile(\"Giulio d'Afflitto\"));\n\t\taziendaAgricolaDAO.saveResponsabile(responsabile(\"Francesco Ermini\"));\n\n\t\t\n\t}", "private void atualizarTela() {\n\t\tSystem.out.println(\"\\n*** Refresh da Pagina / Consultando Todos os Registro da Tabela PressaoArterial\\n\");\n\t\tpressaoArterial = new PressaoArterial();\n\t\tlistaPressaoArterial = pressaoArterialService.buscarTodos();\n\n\t}", "public void abrirCerradura(){\n cerradura.abrir();\r\n }", "public void abrir(String name, String rfc, Double sueldo, Double aguinaldo2,// Ya esta hecho es el vizualizador\r\n\t\t\tDouble primav2, Double myH2, Double gF, Double sGMM2, Double hip, Double donat, Double subR,\r\n\t\t\tDouble transp, String NivelE, Double colegiatura2) {\r\n\t\tthis.nombre=name;//\r\n\t\tthis.RFC=rfc;//\r\n\t\tthis.SueldoM=sueldo;//\r\n\t\tthis.Aguinaldo=aguinaldo2;//\r\n\t\tthis.PrimaV=primav2;//\r\n\t\tthis.MyH=myH2;//\r\n\t\tthis.GatsosFun=gF;//\r\n\t\tthis.SGMM=sGMM2;//\r\n\t\tthis.Hipotecarios=hip;//\r\n\t\tthis.Donativos=donat;//\r\n\t\tthis.SubRetiro=subR;//\r\n\t\tthis.TransporteE=transp;//\r\n\t\tthis.NivelE=NivelE;//\r\n\t\tthis.Colegiatura=colegiatura2;//\r\n\t\t\r\n\t\tthis.calculo(this.nombre, this.RFC, this.SueldoM, this.Aguinaldo, this.PrimaV,this.MyH,this.GatsosFun,\r\n\t\t\t\tthis.SGMM,this.Hipotecarios,this.Donativos,this.SubRetiro,this.TransporteE,this.NivelE,this.Colegiatura);\r\n\t\t\r\n\t\tpr.Imprimir(this.nombre, this.RFC, this.SueldoM,this.IngresoA,this.Aguinaldo,this.PrimaV,this.MyH,this.GatsosFun,this.SGMM,this.Hipotecarios,this.Donativos,this.SubRetiro,this.TransporteE,this.NivelE,this.Colegiatura,this.AguinaldoE,this.AguinaldoG,this.PrimaVE,this.PrimaVG,this.TotalIngresosG,this.MaxDedColeg,this.TotalDedNoRetiro,this.DedPerm,this.MontoISR,this.CuotaFija,this.PorcExced,this.PagoEx,this.Total);\r\n\t\t\r\n\t}", "@Override\r\n\tpublic void horario() {\n\t\t\r\n\t}", "public void inizializza() {\n Navigatore nav;\n Portale portale;\n\n super.inizializza();\n\n try { // prova ad eseguire il codice\n\n Modulo modulo = getModuloRisultati();\n modulo.inizializza();\n// Campo campo = modulo.getCampoChiave();\n// campo.setVisibileVistaDefault(false);\n// campo.setPresenteScheda(false);\n// Vista vista = modulo.getVistaDefault();\n// vista.getElement\n// Campo campo = vista.getCampo(modulo.getCampoChiave());\n\n\n\n /* aggiunge il Portale Navigatore al pannello placeholder */\n nav = this.getNavigatore();\n portale = nav.getPortaleNavigatore();\n this.getPanNavigatore().add(portale);\n\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n\n }", "private void cargarRemisiones() {\r\n\t\tMap<String, Object> parametros = new HashMap<String, Object>();\r\n\t\tparametros.put(\"nro_identificacion\",\r\n\t\t\t\tadmision_seleccionada.getNro_identificacion());\r\n\t\tparametros.put(\"nro_ingreso\", admision_seleccionada.getNro_ingreso());\r\n\t\tparametros.put(\"estado\", admision_seleccionada.getEstado());\r\n\t\tparametros.put(\"tipo_hc\", \"\");\r\n\t\tparametros.put(IVias_ingreso.ADMISION_PACIENTE, admision_seleccionada);\r\n\r\n\t\ttabboxContendor.abrirPaginaTabDemanda(false,\r\n\t\t\t\tIRutas_historia.PAGINA_REMISIONES, \"REMISIONES\", parametros);\r\n\t}", "public void mostrarCompra() {\n }", "public logicaEnemigos(){\n\t\t//le damos una velocidad inicial al enemigo\n\t\tsuVelocidad = 50;\n\t\tsuDireccionActual = 0.0;\n\t\tposX = 500 ;\n\t\tposY = 10;\n\t}", "public void afficherLru() {\n\t\tint nbrCols = listEtape.size();\n\t\tint nbrRows = 0;\n\t\tfor(ArrayList<Processus> list: listEtape) {\n\t\t\tif(list.size() > nbrRows) nbrRows = list.size(); \n\t\t}\n\t\t\n\t\taddColsRows(resultPane, nbrCols+1, nbrRows);\n\t\taddPanelForResult(resultPane);\n\t\n\n\t\tresultPane.setStyle(\"-fx-background-color: #23CFDC\");\n\n\t\t// Affichage du résultat\n\t\tfor(int i=0; i< listEtape.size();i++) {\n\t\t\tArrayList<Processus> list = listEtape.get(i); \n\t\t\tfor(int j=0; j<list.size(); j++) {\n\t\t\t\tProcessus p = list.get(j); \n\t\t\t\tLabel label = new Label(\"\" + p.getValue());\n\n\t\t\t\tresultPane.add(label, i+1, j);\n\t\t\t\tGridPane.setHalignment(label, HPos.CENTER);\n\n\t\t\t}\n\t\t}\n\t\tresultPane.setVisible(true);\n\t\tgenere = true;\n\t}", "public void prepararDados(int tab) {\n\n if (modHT.getRowCount() == 0 || modMF.getRowCount() == 0) {\n JOptionPane.showMessageDialog(null, \"Não há nada para calcular!\", \"INFORMAÇÃO\", 1);\n modAt.setRowCount(0);\n modEx.setRowCount(0);\n } else {\n if (tab == 0) {\n aTra = new Atrasos(Atraso);\n aTra.tamTabelas(modHT, modMF);\n } else {\n hEx = new HorasExtras(HoraExtra);\n hEx.tamTabelas(modHT, modMF);\n }\n }\n }", "private void cargarNotasEnfermeria() {\r\n\t\tMap<String, Object> parametros = new HashMap<String, Object>();\r\n\t\tparametros.put(\"admision_seleccionada\", admision_seleccionada);\r\n\t\tparametros.put(\"rol_medico\", \"S\");\r\n\t\ttabboxContendor.abrirPaginaTabDemanda(false,\r\n\t\t\t\t\"/pages/notas_enfermeria.zul\", \"NOTAS DE ENFERMERIA\",\r\n\t\t\t\tparametros);\r\n\t}", "public void cadastrarOfertasQuad2(){\n \n String[] palavras;\n \n //Primeiro quadrimestre\n try {\n try (BufferedReader lerArq = new BufferedReader(new InputStreamReader(new FileInputStream(\"/home/charles/alocacao/Arquivos Alocação/Arquivos CSV/Planejamento2017_q2.csv\"), \"UTF-8\"))) {\n String linha = lerArq.readLine(); //cabeçalho\n \n linha = lerArq.readLine(); \n\n// linha = linha.replaceAll(\"\\\"\", \"\");\n while (linha != null) {\n\n linha = linha.replaceAll(\"\\\"\", \"\");\n\n palavras = linha.split(\";\", -1);\n\n oferta = new OfertaDisciplina();\n\n oferta.setCurso(palavras[0]);//2\n\n String nome = palavras[2];//4\n \n String codigo = palavras[1];//3\n \n Disciplina d = disciplinaFacade.findByCodOrName(codigo, nome);\n\n if (d != null) {\n// Disciplina d = disciplinaFacade.findByName(nome).get(0);\n oferta.setDisciplina(d);\n }\n oferta.setT(Integer.parseInt(palavras[3]));//5\n oferta.setP(Integer.parseInt(palavras[4]));//6\n oferta.setTurno(palavras[6]);//11\n oferta.setCampus(palavras[7]);//12\n if (!palavras[8].equals(\"\")) {\n oferta.setNumTurmas(Integer.parseInt(palavras[8]));//13\n }\n if (!palavras[9].equals(\"\")) {\n oferta.setPeriodicidade(palavras[9]);//19\n } else{\n oferta.setPeriodicidade(\"semanal\");\n }\n oferta.setQuadrimestre(2);\n\n salvarNoBanco();\n\n linha = lerArq.readLine();\n// linha = linha.replaceAll(\"\\\"\", \"\");\n }\n } //cabeçalho\n ofertas2LazyModel = null;\n\n } catch (IOException e) {\n System.err.printf(\"Erro na abertura do arquivo: %s.\\n\", e.getMessage());\n }\n }", "public void mostrarTablero(){\n\t\tIterator<String> itr = getIteradorMinas();\n\t\tString mina = null;\n\t\tint col;\n\t\tint fila;\n\t\tint conta=1;\n\t\tCasilla casilla;\n\t\tif (lMinas.size()>0){\n\t\t\twhile(itr.hasNext()){\n\t\t\t\tconta++;\n\t\t\t\tmina=itr.next(); \n\t\t\t\tcol=this.separarCoordenadasCol(this.separarCoordenadasString(mina));\n\t\t\t\tfila=this.separarCoordenadasFil(this.separarCoordenadasString(mina));\n\t\t\t\tcasilla=buscarCasilla(fila, col);\n\t\t\t\tif(!casilla.estaDesvelada()&&!casilla.tieneBandera()){\n\t\t\t\t\tcasilla.descubrir();\n\t\t\t\t\tsetChanged();\n\t\t\t\t\tnotifyObservers(fila+\",\"+col+\",\"+10);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tcomprobarBanderas();\n\t\t\n\t}", "public static void main(String[] args) {\n\t\tFornitura forn= new Fornitura();\n\t\tArrayList<Dipendente> dip = new ArrayList<Dipendente>();\t\t\n\t\tfor(int j = 0;j<3;j++){\n\t\t\tDipendente d = new Dipendente();\n\t\t\td.setCodAziendaUfficiale(\"soc\"+j);\n\t\t\td.setCodDipendenteUfficiale(\"dip\"+j);\n\t\t\tArrayList<Voce> voc = new ArrayList<Voce>();\n\t\t\tArrayList<Movimento> mov = new ArrayList<Movimento>();\n\t\t\tfor(int i = 0;i<5;i++)\n\t\t\t{\n\t\t\t\tMovimento m = new Movimento();\n\t\t\t\tm.setIdCodDipZuc(d.getCodDipendenteUfficiale());\n\t\t\t\tm.setIdCodSocZuc(d.getCodAziendaUfficiale());\n\t\t\t\tVoce v = new Voce();\n\t\t\t\tv.setIdCodDipZuc(d.getCodDipendenteUfficiale());\n\t\t\t\tv.setIdCodSocZuc(d.getCodAziendaUfficiale());\n\t\t\t\ttry {\n\t\t\t\t\tm.setDatetime(DatatypeFactory.newInstance().newXMLGregorianCalendar(new GregorianCalendar()));\n\t\t\t\t\tv.setDatetimeFine(DatatypeFactory.newInstance().newXMLGregorianCalendar(new GregorianCalendar()));\n\t\t\t\t\tv.setDatetimeInit(DatatypeFactory.newInstance().newXMLGregorianCalendar(new GregorianCalendar()));\n\t\t\t\t} catch (DatatypeConfigurationException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\tm.setGiornoChiusuraStraordinari(\"N\");\n\t\t\t\tm.setNumMinuti(480);\n\t\t\t\tm.setPippo(4.56);\n\t\t\t\tm.setGiustificativo(\"Giustificativo\");\n\t\t\t\tv.setNumMinuti(60);\n\t\t\t\tv.setPippo(100.45);\n\t\t\t\tv.setTopolino(\"Topo Lino\");\n\t\t\t\tmov.add(m);\n\t\t\t\tvoc.add(v);\n\t\t\t}\n\t\t\td.setMovimenti(mov);\n\t\t\td.setVociRetributive(voc);\n\t\t\tdip.add(d);\n\t\t}\n\t\tforn.setDipendente(dip);\n\t\tJAXBContext jc;\n\t\ttry {\n\t\t\tjc = JAXBContext.newInstance(Fornitura.class);\n\t\t\tMarshaller marshaller = jc.createMarshaller();\n\t\t\tmarshaller.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, true);\n\t\t\tmarshaller.marshal(forn, System.out);\n\t\t} catch (JAXBException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\ttry(FileOutputStream fileOut = new FileOutputStream(\"workbook.xlsx\");Workbook wb = new XSSFWorkbook())\n\t\t{\n\t\t XSSFSheet sheetA = (XSSFSheet)wb.createSheet(\"Movimenti\");\n//\t\t XSSFSheet sheetB = (XSSFSheet)wb.createSheet(\"VociRetributive\");\n\n\t\t \n\t\t /*Impostazioni per i movimenti*/\t\t \n\t\t /* Create an object of type XSSFTable */\n\t\t \n\t\t XSSFTable my_table = sheetA.createTable();\n\t\t \n\t\t /* get CTTable object*/\n\t\t CTTable cttable = my_table.getCTTable();\n\t\t \n\t\t /* Let us define the required Style for the table */ \n\t\t CTTableStyleInfo table_style = cttable.addNewTableStyleInfo();\n\t\t table_style.setName(\"TableStyleMedium9\"); \n\t\t \n\t\t /* Set Table Style Options */\n\t\t table_style.setShowColumnStripes(false); //showColumnStripes=0\n\t\t table_style.setShowRowStripes(true); //showRowStripes=1\n\t\t \n\t\t /* Define the data range including headers */\n\t\t AreaReference my_data_range = new AreaReference(new CellReference(0, 0), new CellReference(Fornitura.getNumeroDiMovimenti(forn), 6));\n\t\t \n\t\t /* Set Range to the Table */\n\t\t cttable.setRef(my_data_range.formatAsString());\n\t\t cttable.setDisplayName(\"Movimenti\"); /* this is the display name of the table */\n\t\t cttable.setName(\"Movimenti\"); /* This maps to \"displayName\" attribute in <table>, OOXML */ \n\t\t cttable.setId(1L); //id attribute against table as long value\n\t\t \n\t\t CTTableColumns columns = cttable.addNewTableColumns();\n\t\t CTAutoFilter autoFilter = cttable.addNewAutoFilter();\n\t\t \n\t\t columns.setCount(7L); //define number of columns\n\t\n\t\t /* Define Header Information for the Table */\n\t\t for (int i = 0; i < 7; i++)\n\t\t {\n\t\t CTTableColumn column = columns.addNewTableColumn(); \n\t \t switch(i)\n\t \t {\n\t \t \tcase 0:\n\t \t \t\tcolumn.setName(\"idCodDipZuc\");\n\t \t \t\tbreak;\n\t \t \tcase 1:\n\t \t \t\tcolumn.setName(\"idCodSocZuc\");\n\t \t \t\tbreak;\n\t \t \tcase 2:\n\t \t \t\tcolumn.setName(\"giustificativo\");\n\t \t \t\tbreak;\n\t \t \tcase 3:\n\t \t \t\tcolumn.setName(\"NumMinuti\");\n\t \t \t\tbreak;\n\t \t \tcase 4:\n\t \t \t\tcolumn.setName(\"GiornChiusS\");\n\t \t \t\tbreak;\n\t \t \tcase 5:\n\t \t \t\tcolumn.setName(\"Pippo\");\n\t \t \t\tbreak;\n\t \t \tcase 6:\n\t \t \t\tcolumn.setName(\"Data\");\n\t \t \t\tbreak;\n\t\n\t \t }\n\t \t \n\t \t \n\t \t column.setId(i+1);\n\t \t CTFilterColumn filter = autoFilter.addNewFilterColumn();\n\t \t filter.setColId(i+1);\n\t \t filter.setShowButton(true);\n\t \t sheetA.autoSizeColumn(i);\n\t \t sheetA.setColumnWidth(i, sheetA.getColumnWidth(i) + 1024);\n\t \t \n\t\t }\n\t\t \n\t\t List<Dipendente> ld = forn.getDipendente();\n\t\t int numRowMov = -1;\n\t\t /*Inizializzazione HEADER*/\n\t\t XSSFRow rowAA = sheetA.createRow(++numRowMov);\n\t\t for(int j=0;j<7;j++){\n \t\t\tXSSFCell localXSSFCellFD = rowAA.createCell(j);\n \t\t\tcreaHeader(j, localXSSFCellFD);\t\t\n\t\t }\n\t\t \n//\t\t int numRowVoc = 0;\n\t\t ;\n\t\t for(Dipendente d:ld)\n\t\t {\n\t\t \tList<Movimento> lm = d.getMovimenti();\n\t\t \t//List<Voce> lv = d.getVociRetributive();\n\t\t \tfor(Movimento m:lm)\n\t\t \t{\t \t\t\n\t\t \t\tXSSFRow rowA = sheetA.createRow(++numRowMov);\n\t\t \t\tfor(int j = 0; j < 7; j++)\n\t\t \t\t{\n\t\t \t\t\tXSSFCell localXSSFCell = rowA.createCell(j);\n\t\t\t\t\t\tcreaMovimento(wb, d, m, j, localXSSFCell);\n\t\t \t\t}\n\t\t \t}\n//\t\t \tfor(Voce v:lv)\n//\t\t \t{\n//\t\t \t\t\n//\t\t \t}\n\t\t \t\n\t\t }\n\t\t wb.write(fileOut);\n\t fileOut.flush();\n\t\t fileOut.close();\n\t wb.close();\n\t \n\t System.out.println(\"**** LEGGO IL FILE SCRITTO ****\");\n\t /*Aprire un altro file, leggerlo e generare l'xml*/\n\n FileInputStream excelFile = new FileInputStream(new File(\"workbook.xlsx\"));\n XSSFWorkbook workbook = new XSSFWorkbook(excelFile);\n XSSFSheet foglioMov = workbook.getSheet(\"Movimenti\");\n List<XSSFTable> ltab = foglioMov.getTables();\n HashMap<String,Dipendente> hmsd = new HashMap<String,Dipendente>();\n for(XSSFTable xsfftab:ltab)\n {\n \tif(\"Movimenti\".equals(xsfftab.getName()))\n \t{\n \t\tint iIni =xsfftab.getStartCellReference().getRow();\n \t\tint jIni =xsfftab.getStartCellReference().getCol();\n \t\tint iFin =xsfftab.getEndCellReference().getRow();\n \t\tint jFin =xsfftab.getEndCellReference().getCol();\n \t\tCTTableColumns cttc = xsfftab.getCTTable().getTableColumns();\n \t\tfor(int i = iIni+1;i<=iFin;i++)\n \t\t{\n \t\t\tString codDipZuc = null;\n \t\t\tString codSocZuc = null;\n \t\t\tString giustificativo = null;\n \t\t\tInteger numMin = null;\n \t\t\tString gioChiu = null;\n \t\t\tDouble pippo = null;\n \t\t\tjava.util.Date laData = null;\n \t\t\tfor(int j=jIni;j<=jFin;j++)\n \t\t\t{\n \t\t\t\tSystem.out.println(jFin);\n \t\t\t\tswitch(cttc.getTableColumnArray(j).getName())\n \t\t\t\t{\n \t\t\t\t\tcase \"idCodDipZuc\":\n \t\t\t\t\t\tSystem.out.println(i+\",\"+j+\": \"+foglioMov.getRow(i).getCell(j).getStringCellValue());\n \t\t\t\t\t\tcodDipZuc = foglioMov.getRow(i).getCell(j).getStringCellValue(); \t\t\t\t\t\t\n \t\t\t\t\t\tbreak;\n \t\t\t\t\tcase \"idCodSocZuc\":\n \t\t\t\t\t\tSystem.out.println(i+\",\"+j+\": \"+foglioMov.getRow(i).getCell(j).getStringCellValue());\n \t\t\t\t\t\tcodSocZuc = foglioMov.getRow(i).getCell(j).getStringCellValue();\n \t\t\t\t\t\tbreak;\n \t\t\t\t\tcase \"giustificativo\":\n \t\t\t\t\t\tSystem.out.println(i+\",\"+j+\": \"+foglioMov.getRow(i).getCell(j).getStringCellValue());\n \t\t\t\t\t\tgiustificativo = foglioMov.getRow(i).getCell(j).getStringCellValue();\n \t\t\t\t\t\tbreak;\n \t\t\t\t\tcase \"NumMinuti\":\n \t\t\t\t\t\tSystem.out.println(i+\",\"+j+\": \"+foglioMov.getRow(i).getCell(j).getNumericCellValue());\n \t\t\t\t\t\tnumMin = (int)foglioMov.getRow(i).getCell(j).getNumericCellValue();\n \t\t\t\t\t\tbreak;\n \t\t\t\t\tcase \"GiornChiusS\":\n \t\t\t\t\t\tSystem.out.println(i+\",\"+j+\": \"+foglioMov.getRow(i).getCell(j).getStringCellValue());\n \t\t\t\t\t\tgioChiu = foglioMov.getRow(i).getCell(j).getStringCellValue();\n \t\t\t\t\t\tbreak;\n \t\t\t\t\tcase \"Pippo\":\n \t\t\t\t\t\tSystem.out.println(i+\",\"+j+\": \"+foglioMov.getRow(i).getCell(j).getNumericCellValue());\n \t\t\t\t\t\tpippo = foglioMov.getRow(i).getCell(j).getNumericCellValue();\n \t\t\t\t\t\tbreak;\n \t\t\t\t\tcase \"Data\":\n \t\t\t\t\t\tSystem.out.println(i+\",\"+j+\": \"+foglioMov.getRow(i).getCell(j).getDateCellValue());\n \t\t\t\t\t\tlaData = foglioMov.getRow(i).getCell(j).getDateCellValue();\n \t\t\t\t\t\tbreak;\n \t\t\t\t}\n\n \t\t\t}\n \t \tif(!hmsd.containsKey(codSocZuc+\";\"+codDipZuc))\n \t \t{\n \t \t\tDipendente dip0 = new Dipendente();\n \t \t\tdip0.setCodAziendaUfficiale(codSocZuc);\n \t \t\tdip0.setCodDipendenteUfficiale(codDipZuc);\n \t \t\tdip0.setMovimenti(new ArrayList<Movimento>());\n \t \t\thmsd.put(codSocZuc+\";\"+codDipZuc,dip0);\n \t \t}\t \t\n \t \tMovimento e = new Movimento();\n \t \tGregorianCalendar gc = GregorianCalendar.from(ZonedDateTime.now());\n \t \te.setIdCodDipZuc(codDipZuc);\n \t \te.setIdCodSocZuc(codSocZuc);\n \t \te.setGiornoChiusuraStraordinari(gioChiu);\n \t \te.setGiustificativo(giustificativo);\n \t \te.setNumMinuti(numMin);\n \t \te.setPippo(pippo);\n \t \tgc.setTime(laData);\n \t \ttry {\n\t\t\t\t\t\t\te.setDatetime(DatatypeFactory.newInstance().newXMLGregorianCalendar(gc));\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t} catch (DatatypeConfigurationException e1) {\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t}\n \t \thmsd.get(codSocZuc+\";\"+codDipZuc).getMovimenti().add(e);\t \t\t\t\n \t\t}\n \t\t\t\n \t}\n }\n System.out.println(\"**** SCRIVO IL NUOVO XML ****\");\n Fornitura forni = new Fornitura();\n forni.setDipendente(new ArrayList<Dipendente>(hmsd.values()));\n \t\tJAXBContext jc12;\n \t\ttry {\n \t\t\tjc12 = JAXBContext.newInstance(Fornitura.class);\n \t\t\tMarshaller marshaller = jc12.createMarshaller();\n \t\t\tmarshaller.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, true);\n \t\t\tmarshaller.marshal(forni, System.out);\n \t\t} catch (JAXBException e) {\n \t\t\t// TODO Auto-generated catch block\n \t\t\te.printStackTrace();\n \t\t}\n \n//\t for(/*TUTTE LE RIGHE DI VOCI RETRIBUTIVA*/)\n//\t {\n//\t \tif(!hmIDDip.containsKey(\"idSoc;idDip\"))\n//\t \t{\n//\t \t\tDipendente dip = new Dipendente();\n//\t \t\tdip.setCodAziendaUfficiale(\"idSoc\");\n//\t \t\tdip.setCodDipendenteUfficiale(\"idDip\");\n//\t \t\tdip.setVociRetributive(new ArrayList<Voce>());\n//\t \t\t\n//\t \t}else if(hmIDDip.get(\"idSoc;idDip\").getVociRetributive()==null)\n//\t \t\thmIDDip.get(\"idSoc;idDip\").setVociRetributive(new ArrayList<Voce>());\n//\t \thmIDDip.get(\"idSoc;idDip\").getVociRetributive().add(e);\n//\t }\n\t \n\t\t} catch (IOException e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\n\t \n \n\t\t\n\t}", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "public void anuncio() {\n\n\t\tapp.image(pantallaEncontrado, 197, 115, 300, 150);\n\n\t\tapp.image(botonContinuar, 253, 285);\n\n\t}", "private static void cajas() {\n\t\t\n\t}", "public GestionTemas() {\n initComponents();\n inicializarComponente();\n cargarTemas();\n }", "private static void gestionarMenuManejoJugador(int opcion) {\n\t\tswitch(opcion){\n\t\tcase 1:annadirJugador();\n\t\t\tbreak;\n\t\tcase 2:eliminarJugador();\n\t\t\tbreak;\n\t\tcase 3: System.out.println(jugadores.toString());\n\t\t\tbreak;\n\t\tcase 4:\n\t\t\tbreak;\n\t\t}\n\t\t\n\t}", "private void setupEscenario2( )\n {\n String todasMarcadas, casillasSinMarca;\n String[] marcadas, noMarcadas;\n int casilla;\n // Prepara el tablero\n triqui = new Triqui( );\n\n // Primer jugador\n\n marcaJugador1 = \"X\";\n todasMarcadas = \"1,2,3,4\";\n marcadas = todasMarcadas.split( \",\" );\n casillasJugador1 = new ArrayList( );\n\n for( int i = 0; i < marcadas.length; i++ )\n {\n casilla = Integer.parseInt( marcadas[ i ] );\n triqui.marcarCasilla( casilla, marcaJugador1 );\n casillasJugador1.add( new Integer( casilla ) );\n }\n\n // Segundo jugador\n\n marcaJugador2 = \"O\";\n todasMarcadas = \"5,6,7,8\";\n marcadas = todasMarcadas.split( \",\" );\n casillasJugador2 = new ArrayList( );\n\n for( int i = 0; i < marcadas.length; i++ )\n {\n casilla = Integer.parseInt( marcadas[ i ] );\n triqui.marcarCasilla( casilla, marcaJugador2 );\n casillasJugador2.add( new Integer( casilla ) );\n }\n\n // Casillas sin marcar\n\n casillasSinMarca = \"9\";\n noMarcadas = casillasSinMarca.split( \",\" );\n casillasSinMarcar = new ArrayList( );\n\n for( int i = 0; i < noMarcadas.length; i++ )\n {\n casilla = Integer.parseInt( noMarcadas[ i ] );\n casillasSinMarcar.add( new Integer( casilla ) );\n }\n }", "@Override\n\tpublic void cargarBateria() {\n\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "private void procedureBasePrDessin(){\n if(courante == null){\n reset();\n courante = new Tortue(simpleLogo.getFeuille(), true);\n simpleLogo.setBarreOutilsVisible(true);\n }\n }", "private void cargarTabla() {\n\t\tObject[] fila = new Object[7];\r\n\t\tfila[1] = txtCedula.getText();\r\n\t\tfila[2] = txtFuncionario.getText();\r\n\t\tfila[3] = util.getDateToString(dcDesde.getDate());\r\n\t\tif (cbTipo.getSelectedIndex() == 1 || cbTipo.getSelectedIndex() == 2) {\r\n\t\t\tfila[4] = util.getDateToString(dcDesde.getDate());\r\n\t\t} else {\r\n\t\t\tfila[4] = util.getDateToString(dcHasta.getDate());\r\n\t\t}\r\n\t\tfila[5] = cbTipo.getSelectedItem();\r\n\t\tfila[6] = txtMotivo.getText().toUpperCase();\r\n\t\tthis.modelo.addRow(fila);\r\n\t\ttbJustificaciones.setModel(this.modelo);\r\n\t}" ]
[ "0.7029134", "0.6757484", "0.67514914", "0.67182046", "0.6539602", "0.65334374", "0.6524766", "0.64392793", "0.6406957", "0.639225", "0.63683695", "0.63594306", "0.6357561", "0.6345025", "0.63209933", "0.6313169", "0.6310739", "0.6301717", "0.6268372", "0.62479705", "0.62369424", "0.623342", "0.622813", "0.6226985", "0.6201834", "0.6200814", "0.6196434", "0.6175894", "0.61574185", "0.61545146", "0.6139402", "0.6139276", "0.61383766", "0.61272806", "0.6120472", "0.61165345", "0.61146164", "0.6110377", "0.6104846", "0.6104415", "0.6100747", "0.6096487", "0.6094876", "0.60931844", "0.6088599", "0.60798883", "0.6075595", "0.60749227", "0.60715747", "0.6070972", "0.60678476", "0.6066167", "0.60515386", "0.6049247", "0.6045677", "0.6035222", "0.6024785", "0.6018098", "0.6014273", "0.60140514", "0.60129005", "0.6011589", "0.6010522", "0.6005702", "0.60052556", "0.60049385", "0.6004887", "0.6004041", "0.6000531", "0.5990865", "0.5989071", "0.59857756", "0.5984119", "0.59796745", "0.59735465", "0.59661126", "0.59620196", "0.59600747", "0.59599346", "0.5958441", "0.5950989", "0.5944784", "0.5943587", "0.59432185", "0.59417105", "0.5941414", "0.59391266", "0.5933918", "0.59324646", "0.5929789", "0.59283537", "0.5927387", "0.59235764", "0.59235287", "0.5916686", "0.5912987", "0.59129757", "0.59078", "0.59070784", "0.5905774", "0.59029937" ]
0.0
-1
update check le controller avant l'update des forces. Permet de rajouter les forces pour le saut, ou de modifier la vitesse
public void updateIAController(float deltaTime, Vector2 targetPosition) { m_controller.setTargetPosition(targetPosition); m_controller.setAttackRange(1000); m_controller.setOwnLife(m_life); m_controller.setOwnPosition(getPosition()); m_controller.setVisibility(100000); m_controller.update(deltaTime); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void updateForces() {\n\t\tapplyForce(new Vector(0, 0.05));\r\n\t}", "public void makeUpdate()\n {\n this.mustUpdate = true;\n }", "public void update() {\n\t\tupdateController();\n\t\tupdateTimer();\n\t\tupdateTrifecta();\n\t\tupdateGyro();\n\t\tupdateGameTime();\n\t\t//updateTilt();\n\t}", "public void update(){}", "public void update(){}", "public void update() {}", "public void update() ;", "boolean update();", "public void update(){\n \t//NOOP\n }", "public void update() {\n\t\t\n\t}", "public void update() {\n\t}", "public void update() {\n\t}", "public void update() {\n\t}", "public void update() {\n\t}", "public void requestUpdate(){\n shouldUpdate = true;\n }", "public void update() {\r\n\t\t\r\n\t}", "public void update(){\r\n\t\t\r\n\t}", "public void update() {\n\n //Updates all the modules\n for(Module module : modules.values())\n module.update();\n\n //Applies all the forces that can act on this mobile (gravity, air resistance etc)\n for(Force force : forces)\n force.apply();\n\n position = position.add(velocity.multiply(deltaTime()));\n rotation = rotation.multiply(angularVelocity.copy().quaternion().scale(deltaTime()));\n }", "public void update() {\n }", "public void update(){\r\n }", "public void update()\n {\n this.controller.updateAll();\n theLogger.info(\"Update request recieved from UI\");\n }", "public void checkForUpdate();", "public void update() {\n\n }", "public void update() {\n\n }", "public void update();", "public void update();", "public void update();", "public void update();", "public void update();", "public void update();", "public void update();", "public void doUpdate() {\n \tboolean actualizo = this.update(); \n \t\n if (actualizo) {\n // this.exit();\n \n // Ver aca si direcciono a la edición ... lo hace la clase que\n \tthis.redireccion();\n \n } else {\n //new MessageWindowPane(\"Se produjo un error en la actualización\");\n }\n \n \n }", "public void update(){\n }", "protected abstract void update();", "protected abstract void update();", "protected abstract void update();", "@Override\n public void update(int[] completeUpdate) {\n if (completeUpdate.length == 48){\n c00Controller.update(new int[]{completeUpdate[0]});\n c10Controller.update(new int[]{completeUpdate[4]});\n c20Controller.update(new int[]{completeUpdate[8]});\n c01Controller.update(new int[]{completeUpdate[1]});\n c11Controller.update(new int[]{completeUpdate[5]});\n c21Controller.update(new int[]{completeUpdate[9]});\n c02Controller.update(new int[]{completeUpdate[2]});\n c12Controller.update(new int[]{completeUpdate[6]});\n c22Controller.update(new int[]{completeUpdate[10]});\n c03Controller.update(new int[]{completeUpdate[3]});\n c13Controller.update(new int[]{completeUpdate[7]});\n c23Controller.update(new int[]{completeUpdate[11]});\n }\n else {\n paycheckController.update(completeUpdate);\n }\n }", "public void updateController() {\n\t\tjoystickLXAxis = controller.getRawAxis(portJoystickLXAxis);\t\t//returns a value [-1,1]\n\t\tjoystickLYAxis = controller.getRawAxis(portJoystickLYAxis);\t\t//returns a value [-1,1]\n\t\tjoystickLPress = controller.getRawButton(portJoystickLPress);\t//returns a value {0,1}\n\t\t\n\t\t//right joystick update\n\t\tjoystickRXAxis = controller.getRawAxis(portJoystickRXAxis);\t\t//returns a value [-1,1]\n\t\tjoystickRYAxis = controller.getRawAxis(portJoystickRYAxis);\t\t//returns a value [-1,1]\n\t\tjoystickRPress = controller.getRawButton(portJoystickRPress);\t//returns a value {0,1}\n\t\t\n\t\t//trigger updates\n\t\ttriggerL = controller.getRawAxis(portTriggerL);\t\t//returns a value [0,1]\n\t\ttriggerR = controller.getRawAxis(portTriggerR);\t\t//returns a value [0,1]\n\t\t\n\t\t//bumper updates\n\t\tbumperL = controller.getRawButton(portBumperL);\t\t//returns a value {0,1}\n\t\tbumperR = controller.getRawButton(portBumperR);\t\t//returns a value {0,1}\n\t\t\n\t\t//button updates\n\t\tbuttonX = controller.getRawButton(portButtonX);\t\t//returns a value {0,1}\n\t\tbuttonY = controller.getRawButton(portButtonY);\t\t//returns a value {0,1}\n\t\tbuttonA = controller.getRawButton(portButtonA);\t\t//returns a value {0,1}\n\t\tbuttonB = controller.getRawButton(portButtonB);\t\t//returns a value {0,1}\n\t\t\n\t\tbuttonBack = controller.getRawButton(portButtonBack);\t//returns a value {0,1}\n\t\tbuttonStart = controller.getRawButton(portButtonStart);\t//returns a value {0,1}\n\t\t\n\t\t//toggle checks\n\t\ttankDriveBool = checkButton(buttonX, tankDriveBool, portButtonX);\t\t//toggles boolean if button is pressed\n\t\tfastBool = checkButton(buttonB, fastBool, portButtonB);\t\t\t\t\t//toggles boolean if button is pressed\n\t\t\n\t\t\n\t\t//d-pad/POV updates\n\t\tdPad = controller.getPOV(portDPad);\t\t//returns a value {-1,0,45,90,135,180,225,270,315}\n\n\t\t//d-pad/POV turns\n\t\tif (dPad != -1) {\n\t\t\tdPad = 360 - dPad; //Converts the clockwise dPad rotation into a Gyro-readable counterclockwise rotation.\n\t\t\trotateTo(dPad);\n\t\t}\n\t\t\n\t\tjoystickDeadZone();\n\t}", "@Override\r\n\tpublic void update() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void update() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void update() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void update() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void update() {\n\t\t\r\n\t}", "void update();", "void update();", "void update();", "void update();", "void update();", "void update();", "void update();", "void update();", "@Override\n\tpublic void update() {\n\n\t}", "@Override\n\tpublic void update() {\n\n\t}", "@Override\n\tpublic void update() {\n\n\t}", "@Override\n\tpublic void update() {\n\n\t}", "@Override\n\tpublic void update() {\n\n\t}", "@Override\n\tpublic void update() {\n\n\t}", "public void update() {\n\t\tupdate(1);\n\t}", "Motivo update(Motivo update);", "@Override\r\n\tpublic void update() {\r\n\r\n\t}", "@Override\n\tpublic void update(CorsoDiLaurea corso) {\n\t\t\n\t}", "@Override\n\tpublic void update() {\n\t\t\n\t}", "@Override\n\tpublic void update() {\n\t\t\n\t}", "@Override\n\tpublic void update() {\n\t\t\n\t}", "@Override\n\tpublic void update() {\n\t\t\n\t}", "@Override\n\tpublic void update() {\n\t\t\n\t}", "@Override\n\tpublic void update() {\n\t\t\n\t}", "@Override\n\tpublic void update() {\n\t\t\n\t}", "@Override\n\tpublic void update() {\n\t\t\n\t}", "@Override\n\tpublic void update() {\n\t\t\n\t}", "@Override\n\tpublic void update() {\n\t\t\n\t}", "boolean needUpdate();", "@Override\r\n\tpublic void update() {\n\t}", "@Override\r\n\tpublic void update() {\n\t}", "abstract public void update();", "protected static void update() {\n\t\tstepsTable.update();\n\t\tactive.update();\n\t\tmeals.update();\n\t\t\n\t}", "public void update(Controller controller) {\r\n\t\t// Friction removing speed depending on weight.\r\n\t\tdx = dx - dx * 0.04;\r\n\r\n\t\t// Force = k * Distance From Equilibrium * Mass\r\n\t\tdx += 0.00016 * (1.75 - x) * (1 / (fatLevel)); // Elastic rope:\r\n\t\t\t\t\t\t\t\t\t\t\t \r\n\r\n\t\tif (controller.keys[KeyEvent.VK_RIGHT] || controller.keys[KeyEvent.VK_D]){\r\n\t\t\tdx += 0.0004;\r\n\t\t}\r\n\t\tif (controller.keys[KeyEvent.VK_LEFT] || controller.keys[KeyEvent.VK_A]){\r\n\t\t\tdx -= 0.0004;\r\n\t\t\t//Moving against the rope's force burns fat\r\n\t\t\tfatLevel -= 0.003;\r\n\t\t}\r\n\r\n\t\tx += dx;\r\n\r\n\t\tlimitScreenMovement();\r\n\t\t\r\n\r\n\t\t// Movement Y-axis\r\n\t\tif (controller.keys[KeyEvent.VK_UP] || controller.keys[KeyEvent.VK_W]) {\r\n\t\t\tjump();\r\n\t\t}\r\n\t\t/*\r\n\t\t * This prevents double-jumping.\r\n\t\t * By setting the number of jump-key presses over the allowed value \r\n\t\t * for adding more speed, no more force will be added if the key is \r\n\t\t * pressed again.\r\n\t\t */\r\n\t\telse if(jumping){\r\n\t\t\tjumpKeyPresses = 100;\r\n\t\t\tjumping = false;\r\n\t\t}\r\n\r\n\t\ty += dy;\r\n\t\t\r\n\t\t//If the player is jumping, add the gravitational acceleration to dy.\r\n\t\tif (jumpKeyPresses > 0) {\r\n\t\t\tdy += 0.0009;\r\n\t\t\t\r\n\t\t\t//If the player just hit the ground, reset speed and position.\r\n\t\t\tif (y > groundLevel) {\r\n\t\t\t\tdy = 0;\r\n\t\t\t\ty = groundLevel;\r\n\t\t\t\tjumpKeyPresses = 0;\r\n\t\t\t\t//Jumping burns fat.\r\n\t\t\t\tfatLevel -= 0.05;\t\r\n\t\t\t}\r\n\t\t}\r\n\t}", "@Override\n\tpublic void update() {\n\t}", "@Override\n\tpublic void update() {\n\t}", "@Override\n\tpublic void update() {\n\t}", "@Override\n\tpublic boolean update(){\n\t\tif(dead){ return true; }\n\t\tfieldOfView.setOwnerId(this.ownerId);\n\t\tupdateHealthBar();\n\t\tupdateTexture();\n\t\tregenHealth();\n\t\tadjustAttackspeed();\n\t\tattack();\n\t\treturn false;\n\t}", "public abstract void update();", "public abstract void update();", "public abstract void update();", "public abstract void update();", "public abstract void update();", "public abstract void update();", "public abstract void update();", "public abstract void update();", "public abstract void update();", "public abstract void update();", "public abstract void update();", "public abstract void update();", "@Override\n\tpublic void update() { }", "@Override\r\n\tpublic void update() {\r\n\t}", "@Override\n\tpublic void update() {}", "@Override\n\tpublic void update() {}", "@ScheduledMethod(start = 1, interval = 1)\n\tpublic void update() {\n\t\tupdateParameters();\t\t\t// update bee coefficients using parameters UI\n\t\tkillBee();\t\t\t\t\t// (possibly) kill the bee (not currently used)\n\t\tlowFoodReturn();\n\t\tif(state == \"SLEEPING\"){\n\t\t\tsleep();\n\t\t}\n\t\tif(state == \"SCOUTING\"){\n\t\t\tscout();\n\t\t}\n\t\tif(state == \"TARGETING\"){\n\t\t\ttarget();\n\t\t}\n\t\tif(state == \"HARVESTING\"){\n\t\t\tharvest();\n\t\t}\n\t\tif(state == \"RETURNING\"){\n\t\t\treturnToHive();\n\t\t}\n\t\tif(state == \"AIMLESSSCOUTING\"){\n\t\t\taimlessScout();\n\t\t}\n\t\tif(state == \"DANCING\"){\n\t\t\tdance();\n\t\t}\n\t\tif(state == \"FOLLOWING\"){\n\t\t\tfollow();\n\t\t}\n\t}", "@Override\n\t\tpublic void update() {\n\n\t\t}", "@Override\n\t\tpublic void update() {\n\n\t\t}", "@Override\n\t\tpublic void update() {\n\n\t\t}" ]
[ "0.68405735", "0.6724104", "0.66741675", "0.65657187", "0.65657187", "0.650432", "0.64982146", "0.64771724", "0.64559937", "0.64406043", "0.64403236", "0.64403236", "0.64403236", "0.64403236", "0.6412814", "0.6377321", "0.6373351", "0.6324055", "0.629678", "0.6282861", "0.62816876", "0.6280384", "0.6265914", "0.6265914", "0.62615865", "0.62615865", "0.62615865", "0.62615865", "0.62615865", "0.62615865", "0.62615865", "0.62105364", "0.620666", "0.6165495", "0.6165495", "0.6154407", "0.6154377", "0.61537975", "0.6133336", "0.6133336", "0.6133336", "0.6133336", "0.6133336", "0.6109696", "0.6109696", "0.6109696", "0.6109696", "0.6109696", "0.6109696", "0.6109696", "0.6109696", "0.61060745", "0.61060745", "0.61060745", "0.61060745", "0.61060745", "0.61060745", "0.61015093", "0.60967684", "0.608112", "0.60747993", "0.6068032", "0.6068032", "0.6068032", "0.6068032", "0.6068032", "0.6068032", "0.6068032", "0.6068032", "0.6068032", "0.6068032", "0.6066737", "0.6060611", "0.6060611", "0.6057022", "0.60542536", "0.6054001", "0.6049078", "0.6049078", "0.6049078", "0.60433435", "0.6043276", "0.6043276", "0.6043276", "0.6043276", "0.6043276", "0.6043276", "0.6043276", "0.6043276", "0.6043276", "0.6043276", "0.6043276", "0.6043276", "0.60397696", "0.60336155", "0.6023312", "0.6023312", "0.6017713", "0.6016462", "0.6016462", "0.6016462" ]
0.0
-1
Color screenColor = batch.getColor();
@Override public void draw(Batch batch) { if(m_texRegion.isFlipX() && m_rightDirection) m_texRegion.flip(true, false); else if(!m_texRegion.isFlipX() && !m_rightDirection) m_texRegion.flip(true, false); if(this.m_isInvulnerable) batch.setColor(1,1,1,0.5f); else batch.setColor(new Color(Color.WHITE)); this.updateTransform(); batch.draw(m_texRegion, this.getDimension().x, this.getDimension().y, this.getTransform()); batch.setColor(new Color(Color.WHITE)); m_lifeBar.setLife((int) this.m_life); m_lifeBar.setPosition(this.getPosition().add(0, 64)); m_lifeBar.draw(batch); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public GameColor getColor();", "public Color getColor() { return color; }", "public Color getColor()\n {\n return color;\n }", "public Color getColor()\n { \n return color;\n }", "public Color getColor(){\n return color;\n }", "public Color getScreenBackgroundColor();", "public Color getColor() {\n return this.color;\n }", "public Color getColor() { return color.get(); }", "int getColour();", "public Color getColor()\n {\n return color;\n }", "public Color getColor()\r\n {\r\n return currentColor;\r\n }", "public Color get_color() {return this.color;}", "public int getColor(){\r\n\t\treturn color;\r\n\t}", "public int getColor(){\n\t\treturn color;\n\t}", "public int getColor(){\n\t\treturn color;\n\t}", "public Color getColor()\n {\n return color;\n }", "public Color getColor()\n {\n return color;\n }", "public Color getColor()\n {\n return color;\n }", "public String getColor() { \n return color; \n }", "public String getColor(){\r\n return color;\r\n }", "public int getColor() {\n return color;\n }", "public Color getColor() {\n return color;\n }", "public int getColor();", "public int getColor();", "public Color getColor();", "public Color getColor();", "public Color getColor();", "public Color getColor() {\n return color;\r\n }", "public String getColor(){\n return this.color;\n }", "public Color getColor() {\n\treturn color;\n }", "public int getColor() {\n \t\treturn color;\n \t}", "public Color getColor() {\r\n return color;\r\n }", "public Color getColor() {\r\n return color;\r\n }", "public Color getColor() {\r\n return color;\r\n }", "public Color getColor() {\n return this.color;\n }", "@Override\n public Color getColor() {\n return color;\n }", "public String getColor(){\n return this._color;\n }", "public Color getCurrentColor();", "@Override\n\t\tpublic Color color() { return color; }", "int getContactColor();", "public Color getColor() {\n return color;\n }", "public Color getColor() {\n return color;\n }", "public Color getColor() {\n return color;\n }", "public Color getColor() {\n return color;\n }", "public Color getColor() {\n return color;\n }", "public Color getColor() {\n return color;\n }", "public int getColor() {\n return this.color;\n }", "public Color getColor() {\r\n return this.color;\r\n }", "public Color getColor() {\n \t\treturn color;\n \t}", "public String getColor()\n {\n return color;\n }", "public String getColor()\n {\n return color;\n }", "Color getColor();", "Color getColor();", "Color getColor();", "Color getColor();", "Color getColor();", "public void getColor() {\n\t\tPoint point = MouseInfo.getPointerInfo().getLocation();\n\t\trobot.mouseMove(point.x, point.y);\n\t\tColor color = robot.getPixelColor(point.x, point.y);\n//\t\tSystem.out.println(color);\n\t}", "public void Color() {\n\t\t\r\n\t}", "public Color getColor() \n\t{\n\t\treturn color;\n\t}", "public RGBColor getColor(){\r\n return this._color;\r\n }", "public Color getColor() {\n return this.color;\n }", "public Color getColor() {\n return this.color;\n }", "public Color getColor() {\n return this.color;\n }", "public int getColor() {\r\n return Color;\r\n }", "public Color color()\n {\n return myColor;\n }", "public Color getColor() {\r\n return currentColor;\r\n }", "String getColor();", "String getColour();", "public Color getColor()\n {\n return mTeam.getColor();\n }", "public int getColour() {\n return colour;\n }", "public ColorRoom getColor() {\n return color;\n }", "public Color getLineColor();", "public String getColor()\n {\n return this.color;\n }", "public Color getColor(){\r\n return color_rey;\r\n }", "public Color getColor() {\r\n return this.BoardColor;\r\n }", "public String getColor(){\n\t\treturn color;\n\t}", "public String getColor() {\r\n return color;\r\n }", "@Override\r\n public Llama.Color getColor() {\r\n return color;\r\n }", "public Color getColor() {\r\n\t\treturn color;\r\n\t}", "public Color getColor() {\r\n\t\treturn color;\r\n\t}", "public Colour getColour();", "protected final Color getColor() {\n\t\treturn tile.getColor();\n\t}", "public String getColor() {\n return color;\n }", "public String getColor() {\n return color;\n }", "public String getColor() {\n return color;\n }", "public String getColor() {\n return color;\n }", "public String getColor() {\n return color;\n }", "public String getColor() {\n return color;\n }", "public String getColor() {\n return color;\n }", "public String getColor() {\n return color;\n }", "public abstract Color getColor();", "public Color color() {\n return color;\n }", "public Color color() {\n return color;\n }", "public char getSeekerColor() {\n return getCharProperty(\"RequestedColor\");\n }", "public Color getColor() {\n\t\treturn _color;\n\t}", "public Color color() {\n return this.color;\n }", "public Color getColor() {\n\t\treturn color;\n\t}", "public Color getColor() {\n\t\treturn color;\n\t}", "public Color getColor() {\n\t\treturn color;\n\t}", "public Color getColor() {\n\t\treturn color;\n\t}", "public String getColor() {\n return this.color;\n }" ]
[ "0.68459815", "0.6758661", "0.6758217", "0.6661535", "0.6659042", "0.6626728", "0.65297246", "0.6526439", "0.647206", "0.6468707", "0.6466903", "0.64619124", "0.6451791", "0.6447872", "0.6447872", "0.6447412", "0.6447412", "0.6447412", "0.64382005", "0.64267975", "0.6410169", "0.64070374", "0.64027053", "0.64027053", "0.6391161", "0.6391161", "0.6391161", "0.63829494", "0.63727695", "0.63587785", "0.63314587", "0.6296363", "0.6296363", "0.6296363", "0.6294084", "0.6288777", "0.6266717", "0.62542826", "0.6246254", "0.62415767", "0.62124455", "0.62124455", "0.62124455", "0.62124455", "0.62124455", "0.62124455", "0.6206167", "0.62027234", "0.6197728", "0.6190382", "0.6190382", "0.61858726", "0.61858726", "0.61858726", "0.61858726", "0.61858726", "0.61726487", "0.6167943", "0.6158624", "0.614622", "0.61306846", "0.61306846", "0.61306846", "0.6126288", "0.6125206", "0.6114942", "0.61107486", "0.61080134", "0.6097273", "0.6093399", "0.60927206", "0.60855895", "0.6078026", "0.6052878", "0.6042479", "0.60353017", "0.60348886", "0.6010052", "0.60023504", "0.60023504", "0.5998758", "0.5993617", "0.598444", "0.598444", "0.598444", "0.598444", "0.598444", "0.598444", "0.598444", "0.598444", "0.5979891", "0.59717226", "0.59717226", "0.59687203", "0.5965191", "0.59636265", "0.596157", "0.596157", "0.596157", "0.596157", "0.595848" ]
0.0
-1
JsonValue playerData = jsonData.get("enemy");
@Override public void read(Json json, JsonValue jsonData) { super.read(json, jsonData); System.out.println("enemyData = "+jsonData); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static Level readJson(String jsonName) {\n\n InputStream levelInputStream;\n try {\n levelInputStream = new FileInputStream(jsonName);\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n return null;\n }\n JsonReader levelReader = Json.createReader(levelInputStream);\n\n JsonObject fileObject = levelReader.readObject();\n JsonObject levelInfo = fileObject.getJsonObject(\"Level Info\");\n JsonObject tiles = fileObject.getJsonObject(\"Tiles\");\n JsonArray rows = (JsonArray) tiles.get(\"rows\");\n\n int rowCount = levelInfo.getInt(\"rowCount\");\n int colCount = levelInfo.getInt(\"columnCount\");\n JsonArray enemies = (JsonArray) levelInfo.get(\"Enemies\");\n Position playerStart = new Position(levelInfo.getInt(\"playerX\"), levelInfo.getInt(\"playerY\"));\n\n AbstractTile[][] tileArray = new AbstractTile[colCount][rowCount];\n\n Iterator<JsonValue> rowsIterator = rows.iterator();\n\n while (rowsIterator.hasNext()) {\n // Convert from jsonValue to jsonObject, then get the array of tiles\n JsonObject currentRowObject = (JsonObject) rowsIterator.next();\n JsonArray currentRow = (JsonArray) currentRowObject.get(\"objects\");\n\n // Iterate through each row of tiles\n Iterator<JsonValue> currentRowIterator = currentRow.iterator();\n while (currentRowIterator.hasNext()) {\n JsonObject currentTile = (JsonObject) currentRowIterator.next();\n JsonValue type = currentTile.get(\"Tile Type\");\n JsonValue row = currentTile.get(\"row\");\n JsonValue column = currentTile.get(\"column\");\n JsonValue rotated = currentTile.get(\"Rotation\");\n boolean isRotated = false;\n if (rotated.toString().equals(\"\\\"Horizontal\\\"\")) {\n isRotated = false;\n } else if (rotated.toString().equals(\"\\\"Vertical\\\"\")) {\n isRotated = true;\n }\n String tileName = type.toString();\n int tileRow = stringToInt(row.toString());\n int tileColumn = stringToInt(column.toString());\n AbstractTile tileObject;\n if (tileName.equals(\"\\\"Key\\\"\")) {\n JsonValue colour = currentTile.get(\"Colour\");\n String tileColour = colour.toString();\n tileColour = tileColour.substring(1, tileColour.length() - 1);\n tileObject = new Key(tileColour);\n } else if (tileName.equals(\"\\\"ExitPortal\\\"\")) {\n tileObject = new ExitPortal();\n } else if (tileName.equals(\"\\\"ExitLock\\\"\")) {\n tileObject = new ExitLock(isRotated);\n } else if (tileName.equals(\"\\\"InfoField\\\"\")) {\n JsonValue infoText = currentTile.get(\"InfoText\");\n String tileInfoText = infoText.toString();\n tileObject = new InfoField(tileInfoText);\n } else if (tileName.equals(\"\\\"LockedDoor\\\"\")) {\n JsonValue colour = currentTile.get(\"Colour\");\n String tileColour = colour.toString();\n tileColour = tileColour.substring(1, tileColour.length() - 1);\n tileObject = new LockedDoor(isRotated, tileColour);\n } else if (tileName.equals(\"\\\"Treasure\\\"\")) {\n tileObject = new Treasure();\n } else if (tileName.equals(\"\\\"DeathTile\\\"\")) {\n tileObject = new DeathTile();\n } else if (tileName.equals(\"\\\"Wall\\\"\")) {\n tileObject = new Wall();\n // Free tile\n } else {\n tileObject = new FreeTile();\n }\n tileArray[tileColumn][tileRow] = tileObject;\n }\n }\n\n ArrayList<AbstractActor> enemiesArrayList = new ArrayList<AbstractActor>();\n\n Iterator<JsonValue> enemiesIterator = enemies.iterator();\n JsonObject currentEnemyObject;\n\n while (enemiesIterator.hasNext()) {\n AbstractActor currentEnemy;\n currentEnemyObject = (JsonObject) enemiesIterator.next();\n int xstartPos = currentEnemyObject.getInt(\"startingX\");\n int ystartPos = currentEnemyObject.getInt(\"startingY\");\n JsonValue aiType = currentEnemyObject.get(\"AI Type\");\n int tickSpeed = currentEnemyObject.getInt(\"Tick Speed\");\n JsonValue movement = currentEnemyObject.get(\"Movement String\");\n\n Position aiStartPos = new Position(xstartPos, ystartPos);\n\n String aiTypeString = aiType.toString();\n String movementString = movement.toString();\n aiTypeString = aiTypeString.substring(1, aiTypeString.length() - 1);\n movementString = movementString.substring(1, movementString.length() - 1);\n\n if (aiTypeString.equals(\"PatternEnemy\")) {\n currentEnemy = new PatternEnemy(aiStartPos, tickSpeed, movementString);\n enemiesArrayList.add(currentEnemy);\n } else if (aiTypeString.equals(\"StalkerEnemy\")) {\n currentEnemy = new StalkerEnemy(aiStartPos, tickSpeed);\n enemiesArrayList.add(currentEnemy);\n }\n\n }\n\n Player returnPlayer = new Player(playerStart);\n Set<AbstractActor> returnEnemies = new HashSet<AbstractActor>();\n returnEnemies.addAll(enemiesArrayList);\n int maxTime = levelInfo.getInt(\"timeLimit\");\n Level returnLevel = new Level(maxTime, returnPlayer, tileArray, returnEnemies);\n return returnLevel;\n\n }", "public native Object parse( Object json, String texturePath );", "void mo350a(C0636l c0636l, JsonValue jsonValue);", "private String loadJSONFromAsset() {\n String json = null;\n try {\n InputStream is = getAssets().open(\"playerData.json\");\n int size = is.available();\n byte[] buffer = new byte[size];\n is.read(buffer);\n is.close();\n json = new String(buffer, \"UTF-8\");\n } catch (IOException ex) {\n ex.printStackTrace();\n return null;\n }\n return json;\n }", "public Enemy getEnemy(){\n return enemy;\n }", "String getJson();", "String getJson();", "String getJson();", "public Node getPlayerData(){\n if(blender_Player == null){\n /** Get player data **/\n blender_Player = (Node) assetManager.loadModel(\"Models/Blender/PlayerModel.j3o\");\n String name = blender_Player.getName();\n\n /** Get player scene data **/\n Node blenderNode = (Node) blender_Player.getChildren().get(0);\n playerData_Children = blenderNode.getChildren();\n\n for(int p = 0; p < playerData_Children.size(); p++){\n String namePD = playerData_Children.get(p).getName();\n if(namePD.equals(\"AnimCharacter\")){\n playerIndex = p;\n }\n //System.out.println(\"Name : \" + namePD);\n }\n }\n if(playerIndex == -1){\n return null;\n }\n return (Node) playerData_Children.get(playerIndex);\n }", "JsonObject raw();", "public void sendPlayerData() throws JSONException {\n\t\tJSONObject json = new JSONObject();\n\t\tJSONObject json2 = new JSONObject();\n\t\tjson2.put(\"Name\", playerModel.getPlayerName());\n\n\t\tswitch (playerModel.getPlayerColor()) {\n\n\t\tcase PL_BLUE:\n\t\t\tjson2.put(\"Farbe\", \"Blau\");\n\t\t\tbreak;\n\t\tcase PL_RED:\n\t\t\tjson2.put(\"Farbe\", \"Rot\");\n\t\t\tbreak;\n\t\tcase PL_WHITE:\n\t\t\tjson2.put(\"Farbe\", \"Weiß\");\n\t\t\tbreak;\n\t\tcase PL_YELLOW:\n\t\t\tjson2.put(\"Farbe\", \"Orange\");\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tbreak;\n\n\t\t}\n\t\tjson.put(\"Spieler\", json2);\n\t\tlog.info(playerModel + \" verschickt\");\n\t\tcontroller.getClient().send(json);\n\t}", "public void readAchievements() {\n\t\tDataStorage dataStorage = new DataStorage();\n\t\tjsonObject = JsonObject.readFrom(dataStorage.getAchievements()); // readFrom is buffered\n\t}", "public void deserialize(JsonObject src);", "public interface JsonValue {\n\n /**\n * The enum Value type.\n */\n enum ValueType\n {\n /**\n * Json object value type.\n */\n JSON_OBJECT,\n /**\n * Json array value type.\n */\n JSON_ARRAY,\n /**\n * Json string value type.\n */\n JSON_STRING,\n /**\n * Json number value type.\n */\n JSON_NUMBER,\n /**\n * Json boolean value type.\n */\n JSON_BOOLEAN\n }\n\n /**\n * Gets json value type.\n *\n * @return the json value type\n */\n ValueType getJsonValueType();\n\n}", "public Player(JsonObject jsonPlayer) {\n this.nickname = jsonPlayer.get(\"nickname\").getAsString();\n this.nRedAmmo = jsonPlayer.get(\"nRedAmmo\").getAsInt();\n this.nBlueAmmo = jsonPlayer.get(\"nBlueAmmo\").getAsInt();\n this.nYellowAmmo = jsonPlayer.get(\"nYellowAmmo\").getAsInt();\n this.points = jsonPlayer.get(\"points\").getAsInt();\n\n this.weaponList = new ArrayList<>();\n JsonArray jsonWeaponList = jsonPlayer.get(\"weaponList\").getAsJsonArray();\n for (int i = 0; i < jsonWeaponList.size(); i++) {\n Weapon w = new Weapon(jsonWeaponList.get(i).getAsJsonObject());\n this.weaponList.add(w);\n }\n\n this.powerUpList = new ArrayList<>();\n JsonArray jsonPowerUpList = jsonPlayer.get(\"powerUpList\").getAsJsonArray();\n for (int i = 0; i < jsonPowerUpList.size(); i++) {\n PowerUp p = new PowerUp(jsonPowerUpList.get(i).getAsJsonObject());\n this.powerUpList.add(p);\n }\n\n this.damages = new ArrayList<>();\n JsonArray jsonDamages = jsonPlayer.get(\"damages\").getAsJsonArray();\n for (int i = 0; i < jsonDamages.size(); i++) {\n String s = jsonDamages.get(i).getAsString();\n this.damages.add(s);\n }\n\n this.marks = new ArrayList<>();\n JsonArray jsonMarks = jsonPlayer.get(\"marks\").getAsJsonArray();\n for (int i = 0; i < jsonMarks.size(); i++) {\n String s = jsonMarks.get(i).getAsString();\n this.marks.add(s);\n }\n\n this.nDeaths = jsonPlayer.get(\"nDeaths\").getAsInt();\n this.xPosition = jsonPlayer.get(\"xPosition\").getAsInt();\n this.yPosition = jsonPlayer.get(\"yPosition\").getAsInt();\n this.isDead = jsonPlayer.get(\"isDead\").getAsBoolean();\n this.nMoves = jsonPlayer.get(\"nMoves\").getAsInt();\n this.nMovesBeforeGrabbing = jsonPlayer.get(\"nMovesBeforeGrabbing\").getAsInt();\n this.nMovesBeforeShooting = jsonPlayer.get(\"nMovesBeforeShooting\").getAsInt();\n this.playerStatus = new PlayerStatus(jsonPlayer.get(\"playerStatus\").getAsJsonObject());\n }", "public static Player jsonToPlayer(JSONObject player) throws JSONException {\n return new Player(player.getInt(\"id\"), player.getString(\"name\"));\n\t}", "public JSONObject playerToJson() {\n JSONObject playerAsJsonObject = new JSONObject();\n playerAsJsonObject.put(JSON_NAME_KEY, this.name);\n playerAsJsonObject.put(JSON_PLAYERID_KEY, this.playerID);\n return playerAsJsonObject;\n }", "public void parseJSONData(Object JSONdata){\n\n\t}", "@Override\r\n\tpublic JSONObject getJSON() {\n\t\treturn tenses;\r\n\t}", "public String getJson();", "public PlayerData getPlayerData() {\n return player;\n }", "public Enemy getEnemy(int whichEnemy);", "public String loadJSONFromAsset() {\n String json = null;\n try {\n InputStream is = getAssets().open(\"election-county-2012.json\");\n int size = is.available();\n byte[] buffer = new byte[size];\n is.read(buffer);\n is.close();\n json = new String(buffer, \"UTF-8\");\n } catch (IOException ex) {\n ex.printStackTrace();\n return null;\n }\n return json;\n }", "public String getPlayerInfo(String team, String level, String gameElement) {\n\n String playerInfo = \"\";\n\n // convert JSON element to JSON array\n JsonArray jsa = jse.getAsJsonObject().get(\"data\").getAsJsonObject().get(\"games\").getAsJsonObject().get(\"game\")\n .getAsJsonArray();\n\n for(int i = 0; i < jsa.size(); i++) {\n if(jsa.get(i).getAsJsonObject().get(\"home_team_name\").getAsString().equals(team) ||\n jsa.get(i).getAsJsonObject().get(\"away_team_name\").getAsString().equals(team)) {\n playerInfo = jsa.get(i).getAsJsonObject().get(level).getAsJsonObject().get(gameElement).getAsString();\n }\n }\n return playerInfo;\n }", "String getJSON();", "public String parseJSON(){\r\n String json = null;\r\n try{\r\n InputStream istream = context.getAssets().open(\"restaurantopeninghours.json\");\r\n int size = istream.available();\r\n byte[] buffer = new byte[size];\r\n istream.read(buffer);\r\n istream.close();\r\n json = new String(buffer, \"UTF-8\");\r\n }catch (IOException ex){\r\n ex.printStackTrace();\r\n return null;\r\n }\r\n return json;\r\n }", "public final native JSONLoaderObject parse(JavaScriptObject json,String texturePath)/*-{\r\n\treturn this.parse(json,texturePath);\r\n\t}-*/;", "Response updatePlayerStats(String jsonMessage);", "GistUser deserializeUserFromJson(String json);", "public JSON getJsonObject() {\n return jsonObject;\n }", "void mo28373a(JSONObject jSONObject);", "public String loadJSONFromAsset() {\n String json;\n try {\n InputStream is = getAssets().open(\"track_v0649.json\");\n int size = is.available();\n byte[] buffer = new byte[size];\n\n is.read(buffer);\n is.close();\n json = new String(buffer, \"UTF-8\");\n } catch (IOException ex) {\n ex.printStackTrace();\n return null;\n }\n return json;\n }", "public PlayerFunctionality getPlayerData()\r\n\t{ return data; }", "public native Object parse( Object json );", "@Test\n public void testMappedValues() throws JSONException {\n JSONObject jo = new JSONObject(\"{\\\"valueData\\\":{\\\"data\\\":\\\"Value Name\\\"}}\");\n JsonableTestClassWithMapping jtc = Jsonable.loadFromJson(jo, JsonableTestClassWithMapping.class);\n assertEquals(\"Value Name\", jtc.valueData.data);\n jo = new JSONObject(\"{\\\"value\\\":\\\"Value Name\\\"}\");\n jtc = Jsonable.loadFromJson(jo, JsonableTestClassWithMapping.class);\n assertEquals(\"Value Name\", jtc.valueData.data);\n }", "public void onResponse(JSONObject response) {\n Gson gson = new Gson();\n\n String dataArray = null;\n\n try {\n dataArray = response.getString(\"staffMembers\");\n } catch (JSONException e) {\n Log.e(this.getClass().toString(), e.getMessage());\n }\n\n\n\n\n StaffMember[] staffMembers = gson.fromJson(dataArray, StaffMember[].class);\n\n\n\n\n\n }", "@Override\n\tpublic JSONObject getData(JSONObject o) {\n\t\treturn null;\n\n\t}", "public interface JsonStructure\n/* */ extends JsonValue\n/* */ {\n/* */ default JsonValue getValue(String jsonPointer) {\n/* 60 */ return Json.createPointer(jsonPointer).getValue(this);\n/* */ }\n/* */ }", "@Override\n public Object loadFromJson(Context context) {\n Gson gson = new Gson();\n String json = FileManager.getInstance().loadFromFile(getFileName(), context);\n if(json.equals(\"\")) {\n return null;\n }\n\n return gson.fromJson(json, MatchStorage.class);\n\n }", "@JsonValue\n @Override\n public String toString()\n {\n return value;\n }", "private JSONArray teamToJson() {\r\n JSONArray jsonArray = new JSONArray();\r\n\r\n for (Hero h: team) {\r\n jsonArray.put(h.toJson());\r\n }\r\n\r\n return jsonArray;\r\n }", "@Override\r\n\tpublic void parseJson(JSONObject json) {\n\t\tif(json == null) {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\ttry {\r\n\t\t\ttype = getInt(json,d_type);\r\n\t\t} catch(Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "public Pokemon getEnemyPokemon()\r\n {\r\n return enemyPokemon;\r\n }", "Gist deserializeGistFromJson(String json);", "public ChatMember(JsonObject json) {\n\n }", "public String loadJSONFromAsset() {\n String json = null;\n try {\n json = new String(buffer, \"UTF-8\");\n } catch (UnsupportedEncodingException e1) {\n e1.printStackTrace();\n }\n\n return json;\n }", "@Test\n public void toJsonTest() {\n JsonObject jsonObject = device.toJson();\n\n assertEquals(deviceID, jsonObject.get(\"deviceID\").getAsString());\n assertEquals(token, jsonObject.get(\"token\").getAsString());\n }", "@Test\n public void testAuthenticate() throws JSONException {\n\n String strData = \"{\\\"name\\\": \\\"fred\\\"}\";\n JSONObject jsonObject = new JSONObject(strData);\n\n String deviceUuid = jsonObject.getString(\"deviceUuid\");\n\n assertNull(deviceUuid);\n }", "public abstract void fromJson(JSONObject jsonObject);", "public String loadJSONFromAsset(Context context) {\n json = null;\n try {\n InputStream is = getApplicationContext().getAssets().open(\"techdrop.json\");\n int size = is.available();\n byte[] buffer = new byte[size];\n is.read(buffer);\n is.close();\n json = new String(buffer, \"UTF-8\");\n } catch (IOException ex) {\n ex.printStackTrace();\n return null;\n }\n return json;\n }", "public String getLineScore(String team, String level, String levelTwo, String gameElement) {\n\n String playerInfo = \"\";\n\n // convert JSON element to JSON array\n JsonArray jsa = jse.getAsJsonObject().get(\"data\").getAsJsonObject().get(\"games\").getAsJsonObject().get(\"game\")\n .getAsJsonArray();\n\n for(int i = 0; i < jsa.size(); i++) {\n if(jsa.get(i).getAsJsonObject().get(\"home_team_name\").getAsString().equals(team) ||\n jsa.get(i).getAsJsonObject().get(\"away_team_name\").getAsString().equals(team)) {\n playerInfo = jsa.get(i).getAsJsonObject().get(level).getAsJsonObject().get(levelTwo).getAsJsonObject()\n .get(gameElement).getAsString();\n }\n }\n return playerInfo;\n }", "JSONObject toJson();", "JSONObject toJson();", "public String getJsondata() {\n return jsondata;\n }", "public static JSONObject playerToJson(Player player) {\n\t\tJSONObject obj = new JSONObject();\n\t\tobj.put(\"name\", player.getName());\n\t\tobj.put(\"id\", player.getId());\n\t\treturn obj;\n\t}", "public String getPlayerName(){\n return this.playerName;\n\n }", "ValueType getJsonValueType();", "@Override\n public Enemy getEnemyPlayer() {\n return batMan.getEnemyPlayer();\n }", "public List<Enemy> getEnemies();", "public interface ArrayJson {\r\n\t//size for array used,for map, arraySize is map.size*2\r\n\tpublic int arraySize();\r\n\r\n\tpublic int length();// orig length\r\n\r\n\t// getters for getXX By index\r\n\tpublic Object get(int index);\r\n\r\n\tpublic boolean getBoolean(int index);\r\n\r\n\tpublic double getDouble(int index);\r\n\r\n\tpublic <E extends Enum<E>> E getEnum(Class<E> clazz, int index);\r\n\r\n\tpublic BigDecimal getBigDecimal(int index);\r\n\r\n\tpublic BigInteger getBigInteger(int index);\r\n\r\n\tpublic int getInt(int index);\r\n\r\n\tpublic JSONArray getJSONArray(int index);\r\n\r\n\tpublic JSONObject getJSONObject(int index);\r\n\r\n\tpublic long getLong(int index);\r\n\r\n\tpublic String getString(int index);\r\n}", "public static Race fromJson(JSONObject json) {\n Race race = new Race();\n try {\n // Basic race info\n race.title = json.getString(\"title\");\n race.date = json.getString(\"date\");\n race.time = json.getString(\"time\");\n race.setDateAndTime(race.date, race.time);\n race.blockquote = json.getString(\"blockquote\");\n race.description = json.getString(\"description\");\n race.raceImage = json.getString(\"chapterImage\");\n race.raceURL = json.getString(\"eventURL\");\n\n // Round information\n List<Round> rounds = new Round().fromJsonToRoundList(json.getJSONArray(\"raceStructure\"));\n race.rounds = (ArrayList<Round>) rounds;\n\n // Racer information\n Iterator<String> racerKeys = json.getJSONObject(\"racers\").keys();\n ArrayList<Racer> racers = new ArrayList<Racer>();\n while (racerKeys.hasNext()) {\n String username = racerKeys.next();\n JSONObject userJson = json.getJSONObject(\"racers\").getJSONObject(username);\n String racerURL = userJson.getString(\"racerPage\");\n String racerPhoto = userJson.getString(\"racerPhoto\");\n String droneName = userJson.getString(\"dronename\");\n String droneURL = userJson.getString(\"droneURL\");\n String frequency = userJson.getString(\"frequency\");\n racers.add(new Racer(username, racerURL, racerPhoto, droneName, droneURL, frequency));\n }\n race.racers = racers;\n\n // Admin information\n Iterator<String> adminIter = json.getJSONObject(\"admins\").keys();\n ArrayList<String> admins = new ArrayList<String>();\n while (adminIter.hasNext()) {\n admins.add(adminIter.next());\n }\n\n // Status data\n race.currentState = json.getJSONObject(\"currentState\").getString(\"currentState\");\n race.targetTime = Long.parseLong(json.getJSONObject(\"currentState\").getString(\"time\"));\n } catch (JSONException e) {\n e.printStackTrace();\n return null;\n }\n return race;\n }", "@Test\n public void testFromJson() {\n String rawTxJson = \"{\\n\" +\n \" \\\"tx_id\\\": \\\"88367f8df0e3bbb0027b1133b3de36ab779e26af00fc256bde7228c9727d20ef\\\",\\n\" +\n \" \\\"version\\\": 1,\\n\" +\n \" \\\"size\\\": 236,\\n\" +\n \" \\\"time_range\\\": 1521625823,\\n\" +\n \" \\\"inputs\\\": [\\n\" +\n \" {\\n\" +\n \" \\\"type\\\": \\\"spend\\\",\\n\" +\n \" \\\"asset_id\\\": \\\"ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff\\\",\\n\" +\n \" \\\"asset_definition\\\": {},\\n\" +\n \" \\\"amount\\\": 100000000000,\\n\" +\n \" \\\"control_program\\\": \\\"0014f54622eeb837e39d359f7530b6fbbd7256c9e73d\\\",\\n\" +\n \" \\\"address\\\": \\\"sm1q74rz9m4cxl3e6dvlw5ctd7aawftvneeaqsuq3v\\\",\\n\" +\n \" \\\"spent_output_id\\\": \\\"34d739d5020d7e92477222b652e8fbe08467f5eb03700ce2ef57752930b05ff1\\\",\\n\" +\n \" \\\"input_id\\\": \\\"4ae0a25ea92e8c2749099576a234e7dfacb643597545873549c5000ba83fdd9a\\\"\\n\" +\n \" }\\n\" +\n \" ],\\n\" +\n \" \\\"outputs\\\": [\\n\" +\n \" {\\n\" +\n \" \\\"type\\\": \\\"control\\\",\\n\" +\n \" \\\"id\\\": \\\"8a511581e2fb6986abc3be3bbd842434f642db7c56a1fc5c4c7adf93c750e9a4\\\",\\n\" +\n \" \\\"position\\\": 0,\\n\" +\n \" \\\"asset_id\\\": \\\"ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff\\\",\\n\" +\n \" \\\"asset_definition\\\": {},\\n\" +\n \" \\\"amount\\\": 99959999500,\\n\" +\n \" \\\"control_program\\\": \\\"00144453a011caf735428d0291d82b186e976e286fc1\\\",\\n\" +\n \" \\\"address\\\": \\\"sm1qg3f6qyw27u659rgzj8vzkxrwjahzsm7pyjen5j\\\"\\n\" +\n \" },\\n\" +\n \" {\\n\" +\n \" \\\"type\\\": \\\"control\\\",\\n\" +\n \" \\\"id\\\": \\\"03b6ac529c2d1c7d422a7c063d74893e8ca2003b2b3368c27d0ede2d2f6ea3ba\\\",\\n\" +\n \" \\\"position\\\": 1,\\n\" +\n \" \\\"asset_id\\\": \\\"ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff\\\",\\n\" +\n \" \\\"asset_definition\\\": {},\\n\" +\n \" \\\"amount\\\": 500,\\n\" +\n \" \\\"control_program\\\": \\\"0014613908c28df499e3aa04e033100efaa24ca8fd01\\\",\\n\" +\n \" \\\"address\\\": \\\"sm1qvyus3s5d7jv782syuqe3qrh65fx23lgpzf33em\\\"\\n\" +\n \" }\\n\" +\n \" ],\\n\" +\n \" \\\"fee\\\": 40000000\\n\" +\n \" }\";\n RawTransaction decodedTx = RawTransaction.fromJson(rawTxJson);\n System.out.println(decodedTx.toJson());\n }", "@Test\n public void canRepresentAsJson() throws Exception {\n final RtReleaseAsset asset = new RtReleaseAsset(\n new FakeRequest().withBody(\"{\\\"asset\\\":\\\"release\\\"}\"),\n release(),\n 1\n );\n MatcherAssert.assertThat(\n asset.json().getString(\"asset\"),\n Matchers.equalTo(\"release\")\n );\n }", "private void addData(App yourApp, JSONObject jsonObject) {\n JSONArray jsonArray = jsonObject.getJSONArray(\"Teams\");\n for (Object json : jsonArray) {\n JSONObject nextTeam = (JSONObject) json;\n Team teamWithData = getTeamInfo(nextTeam);\n yourApp.addTeam(teamWithData);\n }\n }", "public void testJson() {\n\t\t\n\t\tSmallTalkEpisode episode = new SmallTalkEpisode();\n\t\tSmallTalkGespraech gespraech = new SmallTalkGespraech(0);\n\t\t\n\t\tSmallTalkJsonHelper testInstanz1 = new SmallTalkJsonHelper(\"We\", 2.34 , 0);\n\t\tSmallTalkJsonHelper testInstanz2 = new SmallTalkJsonHelper(\"Bez\", 5.24 , 0);\n\t\tSmallTalkJsonHelper testInstanz3 = new SmallTalkJsonHelper(\"Begr\", 22.34 , 1);\n\t\t\n\t\tJSONObject jsonObject = new JSONObject(testInstanz1);\n\t\tString myJson1 = jsonObject.toString();\n\t\tgespraech.addGespraech(myJson1);\n\t\t\n\t\tjsonObject = new JSONObject(testInstanz2);\n\t\tString myJson2 = jsonObject.toString();\n\t\tgespraech.addGespraech(myJson2);\n\t\t\n\t\tjsonObject = new JSONObject(testInstanz3);\n\t\tString myJson3 = jsonObject.toString();\n\t\tgespraech.addGespraech(myJson3);\n\t\t\n\t\tepisode.addGespraech(gespraech.createInnerJson());\n\t\t\n\t\tSmallTalkGespraech gespraech1 = new SmallTalkGespraech(1);\n\t\t\n\t\tSmallTalkJsonHelper testInstanz4 = new SmallTalkJsonHelper(\"We\", 2.34 , 0);\n\t\tSmallTalkJsonHelper testInstanz5 = new SmallTalkJsonHelper(\"Bez\", 5.24 , 0);\n\t\tSmallTalkJsonHelper testInstanz6 = new SmallTalkJsonHelper(\"Begr\", 22.34 , 1);\n\t\t\n\t\tjsonObject = new JSONObject(testInstanz1);\n\t\tString myJson4 = jsonObject.toString();\n\t\tgespraech1.addGespraech(myJson1);\n\t\t\n\t\tjsonObject = new JSONObject(testInstanz2);\n\t\tString myJson5 = jsonObject.toString();\n\t\tgespraech1.addGespraech(myJson2);\n\t\t\n\t\tjsonObject = new JSONObject(testInstanz3);\n\t\tString myJson6 = jsonObject.toString();\n\t\tgespraech1.addGespraech(myJson3);\n\t\t\n\t\tepisode.addGespraech(gespraech1.createInnerJson());\n\t\t\n\t\tSystem.out.println(episode.createInnerJson());\n\t\t\n\t\tFileSaver fileSaver = new FileSaver();\n\t\tfileSaver.stringAsJson(episode.createInnerJson(), \"FinalJson.json\");\n\t}", "@Override\n\tpublic JsonElement load(LoadGameRequest LoadRequest) {\n\t\treturn null;\n\t}", "public JsonValue toJsonValue(Object value) throws JsonException {\n return toJsonValue(value, null);\n }", "public Player getPlayer() { return player;}", "@JsonGetter(\"agent\")\n public Object getAgent ( ) { \n return this.agent;\n }", "public JsonObject toJson();", "@JsonDeserialize(as = FactionLeaderboardImpl.class)\npublic interface FactionLeaderboard extends Leaderboard {\n}", "T mo512a(C0636l c0636l, JsonValue jsonValue);", "public static Player getPlayer(Player player){\n Player returnPlayer = null;\n if (player != null) {\n try {\n returnPlayer = mapper.readValue(new File(\"Data\\\\PlayerData\\\\\" + getFileName(player) + \".json\"), Player.class);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n return returnPlayer;\n }", "@GetMapping(\"/getJson\")\r\n\tpublic HashMap<String, Object> getJsonValue() throws IOException {\n\r\n\t\tHashMap<String, Object> globalVariable = null;\r\n\t\tObjectMapper mapper = new ObjectMapper();\r\n\t\tString path = \"rules/backUp.json\";\r\n\r\n\t\tResourceLoader resource = new DefaultResourceLoader();\r\n\t\torg.springframework.core.io.Resource resource2 = resource.getResource(\"classpath:\" + path);\r\n\r\n\t\tReader reader = new InputStreamReader(resource2.getInputStream());\r\n\t\tSystem.out.println(\"reader ouput \" + reader.toString());\r\n\t\tString fileData = FileCopyUtils.copyToString(reader);\r\n\t\tSystem.out.println(\" filedate is \" + fileData);\r\n\r\n\t\tTypeReference<HashMap<String, Object>> typeRef = new TypeReference<HashMap<String, Object>>() {\r\n\t\t};\r\n\t\tHashMap<String, Object> readValue = mapper.readValue(fileData, typeRef);\r\n\t\treturn readValue;\r\n\t}", "public static JsonElement getResponseFromJson(final JsonElement json)\n {\n if (json != null && json.isJsonObject())\n {\n final JsonObject jsonObject = json.getAsJsonObject();\n return jsonObject.get(\"response\");\n }\n return null;\n }", "private Team getTeamInfo(JSONObject jsonObject) {\n String name = jsonObject.getString(\"Team Name\");\n Team newTeam = new Team(name);\n JSONArray jsonArray = jsonObject.getJSONArray(\"Users\");\n for (Object json : jsonArray) {\n JSONObject nextUser = (JSONObject) json;\n User newUser = getUserInfo(nextUser);\n newTeam.addUser(newUser);\n }\n return newTeam;\n }", "public int getPoints ( Player player );", "public Player getPlayer() { return player; }", "public void testTeamAndGroupJSON() throws Exception {\n\n IInternalContest contest = new UnitTestData().getContest();\n EventFeedJSON eventFeedJSON = new EventFeedJSON(contest);\n\n Account[] accounts = getAccounts(contest, Type.TEAM);\n \n Account account = accounts[0];\n\n String json = eventFeedJSON.getTeamJSON(contest, account);\n \n// System.out.println(\"debug team json = \"+json);\n\n // debug team json = {\"id\":\"1\", \"icpc_id\":\"3001\", \"name\":\"team1\", \"organization_id\": null, \"group_id\":\"1024\"}\n\n asertEqualJSON(json, \"id\", \"1\");\n asertEqualJSON(json, \"name\", \"team1\");\n ObjectMapper mapper = new ObjectMapper();\n JsonNode readTree = mapper.readTree(json);\n List<JsonNode> findValues = readTree.findValues(\"group_ids\");\n assertEquals(\"matching group ids\", \"1024\", findValues.get(0).elements().next().asText());\n\n assertJSONStringValue(json, \"id\", \"1\");\n assertJSONStringValue(json, \"icpc_id\", \"3001\");\n }", "private static JsonObject getJsonObjectFromJson(\n final JsonObject jsonObject, final String key)\n {\n if (jsonObject != null && jsonObject.get(key) != null\n && jsonObject.get(key).isJsonObject())\n {\n return jsonObject.get(key).getAsJsonObject();\n }\n return null;\n }", "@Test\n public void jsonTest() {\n // TODO: test json\n }", "private String loadJSONFromAsset(){\n String json = null;\n AssetManager assetManager = getAssets();\n try{\n InputStream IS = assetManager.open(\"datosFases.json\");\n int size = IS.available();\n byte[] buffer = new byte[size];\n IS.read(buffer);\n IS.close();\n json = new String(buffer,\"UTF-8\");\n\n } catch (IOException ex){\n ex.printStackTrace();\n return null;\n }\n\n return json;\n }", "public String loadJSONFromAsset(Context context) {\n String json = null;\n try {\n InputStream is;\n int id = context.getResources().getIdentifier(\"sentiment\", \"raw\", context.getPackageName());\n is = context.getResources().openRawResource(id);\n\n int size = is.available();\n\n byte[] buffer = new byte[size];\n\n is.read(buffer);\n\n is.close();\n\n json = new String(buffer, \"UTF-8\");\n\n\n } catch (IOException ex) {\n ex.printStackTrace();\n return null;\n }\n return json;\n\n }", "public void ReadJson() {\n System.out.println(\"Read Json Method in the Mother Class\");\n }", "public JSONObject getInfo() throws Exception;", "@JsonDeserialize(as = Game.class)\npublic interface IGame extends InGameInterface, IGameFacade {\n\n}", "public Player getPlayer(){\r\n return player;\r\n }", "public void getStateJson() throws JSONException {\n String json = null;\n try {\n InputStream inputStream = getAssets().open(\"states.json\");\n int size = inputStream.available();\n byte[] buffer = new byte[size];\n inputStream.read(buffer);\n inputStream.close();\n json = new String(buffer, \"UTF-8\");\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n\n JSONObject jsonObject = new JSONObject(json);\n JSONArray events = jsonObject.getJSONArray(\"states\");\n for (int j = 0; j < events.length(); j++) {\n JSONObject cit = events.getJSONObject(j);\n State stateData = new State();\n\n stateData.setStateId(Integer.parseInt(cit.getString(\"id\")));\n stateData.setStateName(cit.getString(\"name\"));\n stateData.setCountryId(Integer.parseInt(cit.getString(\"country_id\")));\n stateObject.add(stateData);\n }\n }", "@Override\n\tpublic JSONObject getJSONObject() {\n\t\treturn mainObj;\n\t}", "public static String playerJSON(String input, int player) {\n\t\tString choice = \"\";\n\t\t\n\t\tif (player == 1) {\n\t\t\thandleInput(input, \"playerOne\");\n\t\t\tchoice = printChoice[PlayerBean.PLAYERONE-1];\n\t\t} else {\n\t\t\thandleInput(input, \"playerTwo\");\n\t\t\tchoice = printChoice[PlayerBean.PLAYERTWO-1];\n\t\t}\n\t\t\n\t\tString pattern\t= \"{\\\"Player\" + player + \"\\\":\\\"%s\\\"}\";\n\t\treturn String.format(pattern, choice);\n\t}", "private String loadJSONFromAsset() {\n String json = null;\n try {\n //AssetManager assetManager = getAssets();\n InputStream is = getAssets().open(\"sa.json\");\n //InputStream is = getResources().openRawResource(\"sa.json\");\n int size = is.available();\n\n byte[] buffer = new byte[size];\n\n is.read(buffer);\n\n is.close();\n\n json = new String(buffer, \"UTF-8\");\n Log.i(\"Json\",json);\n\n\n } catch (Exception ex) {\n ex.printStackTrace();\n return null;\n }\n return json;\n\n }", "Person addPerson(JSONObject person);", "private void writeAchievements() {\n\t\tDataStorage dataStorage = new DataStorage();\n\t\tdataStorage.setAchievements(jsonObject.toString());\n\t}", "public interface Writable {\r\n // EFFECTS: returns this as JSON object\r\n JSONObject toJson();\r\n}", "public Integer loadJSONFile()\n {\n JSONParser parser = new JSONParser();\n try{\n\n Object obj = parser.parse(new FileReader(\"/Users/rnuka/Desktop/sample.json\"));\n JSONObject jsonObj = (JSONObject)obj;\n\n Long age = (Long)jsonObj.get(\"age\");\n System.out.println(\"age:\"+age);\n\n String name = (String)jsonObj.get(\"name\");\n System.out.println(\"name:\" + name);\n\n JSONArray address = (JSONArray)jsonObj.get(\"address\");\n\n for(Object str : address){\n System.out.println(str);\n }\n\n\n\n }catch(Exception e){\n e.printStackTrace();\n }\n return 1;\n }", "public String getGameInfo(String team, String gameElement) {\n\n String gameInfo = \"\";\n\n // convert JSON element to JSON array\n JsonArray jsa = jse.getAsJsonObject().get(\"data\").getAsJsonObject().get(\"games\").getAsJsonObject().get(\"game\")\n .getAsJsonArray();\n\n for(int i = 0; i < jsa.size(); i++) {\n if(jsa.get(i).getAsJsonObject().get(\"home_team_name\").getAsString().equals(team) ||\n jsa.get(i).getAsJsonObject().get(\"away_team_name\").getAsString().equals(team)) {\n gameInfo = jsa.get(i).getAsJsonObject().get(gameElement).getAsString();\n }\n }\n return gameInfo;\n }", "void sendJson(Object data);", "public static JSONObject loadJSONObjectFromAsset(Context context) {\n String jsonStr = null;\n JSONObject jsonObject = null;\n try {\n //here we need context to access ASSETS --> ANDROID TUTORIAL / codeBlock - Patterns / Application.java\n InputStream is = context.getAssets().open(\"listHomeItem.json\");\n int size = is.available();\n byte[] buffer = new byte[size];\n is.read(buffer);\n is.close();\n jsonStr = new String(buffer, \"UTF-8\");\n\n jsonObject = new JSONObject(jsonStr);\n\n } catch (IOException ex) {\n ex.printStackTrace();\n return null;\n\n } catch (JSONException e) {\n e.printStackTrace();\n return null;\n }\n return jsonObject;\n }", "public int getPlayer()\n {\n return this.player;\n }", "void validateJson();" ]
[ "0.5781079", "0.56187975", "0.5509987", "0.54994005", "0.53478986", "0.5344269", "0.5344269", "0.5344269", "0.5333743", "0.53323346", "0.5315126", "0.52958745", "0.5275624", "0.5258517", "0.5226722", "0.522579", "0.5220207", "0.51927406", "0.51890695", "0.51849717", "0.5167716", "0.51348007", "0.5127431", "0.51237303", "0.5118524", "0.5115636", "0.5113989", "0.51039165", "0.5097034", "0.5073784", "0.50667125", "0.50626636", "0.50558215", "0.50435764", "0.50389075", "0.50341296", "0.5020006", "0.49952778", "0.4965717", "0.4961214", "0.4960169", "0.49543178", "0.49532694", "0.49449074", "0.49317348", "0.49315822", "0.49278802", "0.49145132", "0.49005714", "0.48998955", "0.4898776", "0.48901528", "0.48901528", "0.48799652", "0.48756096", "0.4865262", "0.48617628", "0.48609075", "0.4859443", "0.48560885", "0.4852143", "0.48489404", "0.483932", "0.48381472", "0.48375505", "0.4826546", "0.48259306", "0.48045897", "0.47995138", "0.478419", "0.4776247", "0.47712162", "0.47612295", "0.47549477", "0.47533357", "0.47386223", "0.4738556", "0.47381935", "0.4730207", "0.47284314", "0.4720733", "0.471943", "0.4706868", "0.46887004", "0.468126", "0.4680931", "0.46805593", "0.46779838", "0.46732175", "0.46727195", "0.46707058", "0.46694708", "0.46663123", "0.46658698", "0.46615216", "0.46562967", "0.4652389", "0.4648066", "0.46473256", "0.4645053" ]
0.7644505
0
int totalUsuarios = 0;
public void registrar() { try { do { //totalUsuarios = this.registraUnUsuario(totalUsuarios); this.registraUnUsuario(); } while (!this.salir()); } catch (IOException e) { flujoSalida.println("Error de entrada/salida, finalizará la aplicación."); } flujoSalida.println("Total usuarios registrados: "+totalUsuarios); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void sumarUnidad() {\r\n\t\tcantidad++;\r\n\t}", "public int getTotalEntradas() {\n\t\treturn totalEntradas;\n\t}", "public int getSueldoTotal() {\n return sueldoTotal;\n }", "public int getTotal () {\n return total;\n }", "public int getTotal() {\n return total;\n }", "public int leerDatosUsuarios() {\n\t\tMiObjectInputStream oi = null;\n\t\tboolean b = false;\n\t\ttry { // comprueba que el archivo FLIBROS existe antes de leerlo\n\t\t\toi = new MiObjectInputStream(new FileInputStream(Const.FUSUARIOS));\n\t\t\tb = true;\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"Archivo no encontrado - altaUsuario\" + e.toString());\n\t\t}\n\n\t\tint n = 0;\n\t\tif (b) { // si el archivo existe, leera los usuarios almacenados\n\t\t\ttry {\n\t\t\t\twhile (b) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tUsuario u = (Usuario) oi.readObject();\n\t\t\t\t\t\tn++;\n\t\t\t\t\t} catch (EOFException e) {\n\t\t\t\t\t\tb = false;\n\t\t\t\t\t}\n\t\t\t\t} // finaliza el while para la lectura\n\t\t\t\toi.close();\n\t\t\t} catch (Exception e) {// encaso de encontrar el archivo pero no puede leerlo\n\t\t\t\tSystem.out.println(\"Problemas al leer el archivo - altaUsuario\" + e.toString());\n\t\t\t}\n\t\t}\n\t\treturn n;\n\t}", "public int getTotal() {\n return total;\n }", "public int getTotal() {\n return total;\n }", "public int getAyudantes(){\n return ayudantes; \n }", "public int getCuerdas(){\n\treturn this.cuerdas;\n }", "public int getTotal()\n\t{\n\t\treturn total;\n\t\t\n\t}", "int getUsersCount();", "int getUsersCount();", "int getUsersCount();", "public int countUsers()\n {\n int nbUser = 0;\n pw.println(12);\n try\n {\n nbUser = Integer.parseInt(bis.readLine()) ;\n }\n catch (IOException e)\n {\n e.printStackTrace();\n }\n return nbUser ;\n }", "public int getTotal () {\r\n\t\treturn total;\r\n\t}", "public int getTotal () {\r\n\t\treturn total;\r\n\t}", "int getCantidad();", "public void sumar() {\n Acumula.acumulador++;\n }", "public int getCantidadCalles();", "public int getTotal () {\n\t\treturn total;\n\t}", "public int cuantosCursos(){\n return inscripciones.size();\n }", "public int numberOfUsers() {\r\n \tint anzahlUser=userDAO.getUserList().size();\r\n \treturn anzahlUser;\r\n }", "int getTotalCount();", "int getTotalDepositCount();", "public int darCantidadSalones()\n {\n return salones.size( );\n }", "public int getTotalRecaudado()\n {\n return maquina1.getTotal() + maquina2.getTotal();\n }", "Integer loadUserCount();", "private int numeroCuentas() {\r\n\t\tint cuentasCreadas = 0;\r\n\t\tfor (Cuenta cuenta : this.cuentas) {\r\n\t\t\tif (cuenta != null) {\r\n\t\t\t\tcuentasCreadas++;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn cuentasCreadas;\r\n\t}", "public void incrementTotal(){\n total++;\n }", "public Integer getCantidadTotal() {\n return cantidadTotal;\n }", "public int getTotalCustomers()\n {\n return totalCustomers;\n }", "public int getTotal_votos() {\n return total_votos;\n }", "public int getTotal() {\n\t\treturn total;\n\t}", "public static int getTotalAtraccions() {\n return totalAtraccions;\n }", "void getTotalNumerCustomer();", "public int total() {\n return _total;\n }", "public int getTamanio(){\r\n return tamanio;\r\n }", "public int getTotal() {\n return total[ke];\n }", "public int getDiceTotal()\r\n {\r\n return diceTotal;\r\n }", "Integer total();", "public int numberOfAdmin(){\n return administratorMyArray.size();\n }", "public int cantidadDispositivos() {\n return dispositivos.size();\n }", "public int getAtracciones(){\n return atracciones.size(); \n }", "int getSumaAdunata();", "int getUserCount();", "int getUserCount();", "public int getTotalReturnCount(){\n return totalReturnCount;\n }", "public int obtenerRegistros(){\n int registros = 0;\n try{\n //METODOS DE CONEXION\n Connection connect = getConnection();\n PreparedStatement ps;\n ResultSet res;\n \n //QUERY PARA OBTENER LOS VALORES\n ps = connect.prepareStatement(\"SELECT COUNT(*) AS registros FROM personal\");\n res = ps.executeQuery();\n \n while(res.next()){\n System.out.println(\"numero de registros en tabla personal\"+res.getInt(\"registros\"));\n registros = res.getInt(\"registros\");\n } \n }\n catch(Exception e){\n System.out.println(\"No fue posible obtener el numero de registros de personal error\"+e);\n JOptionPane.showMessageDialog(null, \"Hubo un error:\"+e); \n }\n return registros;\n }", "public int getTotalSalesCount(){\n return totalSalesCount;\n }", "public int getCantidad() {\n return cantidad;\n }", "public int total() {\n return this.total;\n }", "public long getTotal() { return total; }", "public long getTotal() { return total; }", "public long getUsersCount() {\r\n return usersCount;\r\n }", "public void calculoPersonal(){\n ayudantes = getAyudantesNecesarios();\n responsables = getResponsablesNecesarios();\n \n //Calculo atencion al cliente (30% total trabajadores) y RRPP (10% total trabajadores):\n \n int total = ayudantes + responsables;\n \n atencion_al_cliente = (total * 30) / 100;\n \n RRPP = (total * 10) / 100;\n \n //Creamos los trabajadores\n \n gestor_trabajadores.crearTrabajadores(RRPP, ayudantes,responsables,atencion_al_cliente);\n \n }", "@Override\n public int findTotal(){\n try {\n return runner.query(con.getThreadConnection(),\"select count(*) from user\",new BeanHandler<Integer>(Integer.class));\n } catch (SQLException e) {\n System.out.println(\"执行失败\");\n throw new RuntimeException(e);\n }\n }", "public int getLoggedInUsers();", "@Transactional\r\n\tpublic Integer countUserss() {\r\n\t\treturn ((Long) usersDAO.createQuerySingleResult(\"select count(o) from Users o\").getSingleResult()).intValue();\r\n\t}", "public int getTotalCount() {\n return totalCount;\n }", "public int getCantidaddeMotores() {\r\n return cantidaddeMotores;\r\n }", "UnsignedInt getTotal();", "public int getNumberOfRestraunts(){\n \n return numberOfRestraunts; \n }", "public int getDineroRecaudadoPorMaquina1()\n {\n return maquina1.getTotal();\n }", "public int getTotalSales()\n {\n int sales = totalSales;\n totalSales = 0;\n return sales;\n }", "public int getTotal() {\n\t\t\treturn total;\n\t\t}", "int totalRows(){\n return row;\n }", "public int getcontador(){\nreturn contador;}", "public int getCantidadAvenidas();", "public int getCalorias() {return calorias;}", "public static int getSuma() {\n\t\treturn suma;\n\t}", "int getTotal(){\n\t\treturn this.orderTotal;\n\t}", "public void total() {\n\t\t\n\t}", "public int rekisteroi() {\n this.tunnusNro = seuraavaNro;\n Tuote.seuraavaNro++;\n return tunnusNro;\n }", "public void AddNroCitasRealizadas() {\n\t\tthis.NroCitasRealizadas = this.NroCitasRealizadas+1;\n\t}", "public void aumentarAciertos() {\r\n this.aciertos += 1;\r\n this.intentos += 1; \r\n }", "public int getTotal() {\n\t\treturn this.total;\n\t}", "int getSuma();", "public double getTotal (){ \r\n return total;\r\n }", "public long getTotal() {\n return total;\n }", "public long getTotal() {\n return total;\n }", "public int rekisteroi() {\r\n alId = seuraavaNro;\r\n seuraavaNro++;\r\n\r\n return seuraavaNro;\r\n }", "public void aumentarMinas(){\n\r\n if(espM==false){\r\n minascerca++;\r\n }\r\n }", "public int getTotalItems()\n {\n return totalItems;\n }", "studentCounter(){ \n\t\tnumStudentInRoom = 0 ;\n\t}", "public void zeraEmpates() {\r\n contaEmpates = 0;\r\n }", "public int getNumNudo() {\n return numNudo;\n }", "public int getUsersCount()\n\t{\n\t\tint usersCount=(int) userDao.count();\n\t\treturn usersCount;\n\t}", "@Override\r\n\tpublic long getTotal() {\n\t\treturn 0;\r\n\t}", "public int getAciertos() {\r\n return aciertos;\r\n }", "public int getSuma() {\n return suma_;\n }", "public int getAtencionAlCliente(){\n return atencion_al_cliente; \n }", "public int getNumPeople(){\r\n int num = 0;\r\n return num;\r\n }", "public int getUsersCount() {\n return users_.size();\n }", "public int getUsersCount() {\n return users_.size();\n }", "public int getActiveUserCount() {\n return activeUserCount;\n }", "public int getSistemaSalud() {\r\n\t\treturn sistemaSalud;\r\n\t}", "public Summalista()\r\n\t{\r\n\t\tthis.summa = 0;\r\n\t\tthis.alkiot = 0;\r\n\t}", "public int getUserCount() {\n return instance.getUserCount();\n }", "int getActAmountCount();", "public void setSueldoTotal(int sueldoTotal) {\n this.sueldoTotal = sueldoTotal;\n }" ]
[ "0.68716204", "0.68208665", "0.67443216", "0.67319214", "0.6714175", "0.65493035", "0.6533075", "0.6533075", "0.6523188", "0.65219486", "0.65006006", "0.6461012", "0.6461012", "0.6461012", "0.6460383", "0.64600086", "0.64600086", "0.6451609", "0.6450468", "0.64065224", "0.6406058", "0.63960224", "0.6389292", "0.63705534", "0.63648313", "0.63469076", "0.63466936", "0.6335918", "0.63276744", "0.63144636", "0.6310197", "0.6242543", "0.6239109", "0.623756", "0.62294215", "0.62249136", "0.6214211", "0.6200219", "0.61987925", "0.61940217", "0.6182358", "0.61701095", "0.61466116", "0.61322814", "0.6119756", "0.61096364", "0.61096364", "0.61047715", "0.6096211", "0.6092115", "0.60793376", "0.60735023", "0.60524035", "0.60524035", "0.6040077", "0.6032056", "0.6031494", "0.60290104", "0.60253817", "0.60220337", "0.60125023", "0.6002856", "0.59885246", "0.59856826", "0.5978197", "0.597478", "0.59723455", "0.5970708", "0.5968676", "0.59644324", "0.59613365", "0.5961191", "0.5958307", "0.5957864", "0.5957449", "0.59573835", "0.59559494", "0.59503126", "0.593594", "0.5933848", "0.5933848", "0.59261006", "0.58954567", "0.5894966", "0.5894289", "0.58866304", "0.58864754", "0.5885707", "0.5884515", "0.5883184", "0.58821887", "0.5871702", "0.5870265", "0.586984", "0.5869636", "0.5867112", "0.5865092", "0.5859457", "0.5855015", "0.5854828", "0.585321" ]
0.0
-1
Connect will establish the connection to Cloud Bigtable.
public static void connect() throws IOException { if (PROJECT_ID == null || INSTANCE_ID == null) { if (sc != null) { sc.log("environment variables BIGTABLE_PROJECT, and BIGTABLE_INSTANCE need to be defined."); } return; } connection = BigtableConfiguration.connect(PROJECT_ID, INSTANCE_ID); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void initializeConnection() {\n\n cluster = Cluster.builder().addContactPoint(host).build();\n session = cluster.connect(keyspaceName);\n session.execute(\"USE \".concat(keyspaceName));\n }", "public void connect(){\n if (connected) {\n // connection already established\n return;\n }\n // Create connection to Database\n Properties props = new Properties();\n props.setProperty(\"user\", DB_USER);\n props.setProperty(\"password\", DB_PASSWORD);\n //props.setProperty(\"ssl\", \"true\");\n //\"Connecting to database...\"\n try {\n Class.forName(\"org.postgresql.Driver\");\n String connection_string = generateURL();\n dbConnect = DriverManager.getConnection(connection_string, props);\n //\"Connection established\"\n status = \"Connection established\";\n connected = true;\n } catch (SQLException e) {\n //\"Connection failed: SQL error\"\n status = \"Connection failed: \" + e.getMessage();\n connected = false;\n } catch (Exception e) {\n //\"Connection failed: unknown error\"\n status = \"Connection failed: \" + e.getMessage();\n connected = false;\n }\n }", "public static Connection getConnection() {\n if (connection == null) {\n try {\n connect();\n } catch (IOException e) {\n if (sc != null) {\n sc.log(\"connect \", e);\n }\n }\n }\n if (connection == null) {\n if (sc != null) {\n sc.log(\"BigtableHelper-No Connection\");\n }\n }\n return connection;\n }", "@Override\n public void connect(Properties conf) throws Exception {\n loadConfiguration(conf);\n hBaseOperation = new HBaseOperation(conf);\n hadoopConf = hBaseOperation.gethConf();\n hbaseConnections = new Connection[numConnection];\n for (int i = 0; i < numConnection; i++) {\n hbaseConnections[i] = ConnectionFactory.createConnection(hadoopConf);\n }\n currentConnectionID = new AtomicInteger(0);\n dataTableName = TableName.valueOf(this.dataTableNameString);\n logger.info(\"HBase connections established.\");\n }", "private void connect() {\n if (this.connection == null && !this.connected) {\n try {\n this.connection = DriverManager.getConnection(this.dbUrl, this.dbUser, this.dbPassword);\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }\n }", "public void initConnection(){\n \t String HOST = \"jdbc:mysql://10.20.63.22:3306/cloud\";\n String USERNAME = \"root\";\n String PASSWORD = \"test\";\n try {\n Class.forName(\"com.mysql.jdbc.Driver\");\n } catch (ClassNotFoundException ex) {\n ex.printStackTrace();\n }\n \n try {\n conn = DriverManager.getConnection(HOST, USERNAME, PASSWORD);\n } catch (SQLException ex) {\n ex.printStackTrace();\n }\n }", "public void openConnection(){\r\n try {\r\n Driver dr = new FabricMySQLDriver();\r\n DriverManager.registerDriver(dr);\r\n log.info(\"registrable driver\");\r\n } catch (SQLException e) {\r\n log.error(e.getMessage());\r\n e.printStackTrace();\r\n }\r\n try {\r\n connection = DriverManager.getConnection(URL, USERNAME, PASSWORD);\r\n log.info(\"get connection\");\r\n } catch (SQLException e) {\r\n log.error(e.getMessage());\r\n e.printStackTrace();\r\n }\r\n }", "public void connect() {\n\n\t\ttry {\n\n\t\t\tClass.forName(\"com.mysql.cj.jdbc.Driver\");\n\t\t} catch (ClassNotFoundException ex) {\n\t\t\tSystem.err.println(\"Unable to load MySQL Driver\");\n\t\t\t\n\t\t}\n\n\t\tString jdbcUrl = \"jdbc:mysql://localhost:3306/userinfo?useLegacyDatetimeCode=false&serverTimezone=UTC&useSSL=false\";\n\t\ttry {\n\t\t\t// DriverManager.registerDriver(new com.mysql.jdbc.Driver());\n\t\t\tConnection con = DriverManager.getConnection(jdbcUrl, \"root\", \"smmk143143\");\n\t\t\tconn = con;\n\t\t\t// Set auto commit as false.\n\t\t\tconn.setAutoCommit(false);\n\t\t\tSystem.out.println(\"接続済み/Connected\");\n\n\t\t} catch (SQLException e) {\n\t\t\tSystem.out.println(\"接続エラーが発生しました/Connection Error Occured\");\n\t\t\tSystem.out.println(e.getMessage());\n\n\t\t}\n\t}", "public void connectToExternalServer()\n\t{\n\t\tbuildConnectionString(\"10.228.6.204\", \"\", \"ctec\", \"student\");\n\t\tsetupConnection();\n\t\t// createDatabase(\"Kyler\");\n\t}", "private static void connect() {\n\t\ttry {\n\t\t\tif (connection == null) {\n\t\t\t\tClass.forName(\"org.mariadb.jdbc.Driver\");\n\t\t\t\tconnection = DriverManager.getConnection(url, user, password);\n\t\t\t\tconnection.setAutoCommit(false);\n\t\t\t}\n\n\t\t} catch (Exception e) {\n\n\t\t}\n\t}", "public void connect()\n\t{\n try{\n \tClass.forName(\"com.mysql.jdbc.Driver\").newInstance();\n \tconn = DriverManager.getConnection(url,user,pwd);\n \tSystem.out.println(\"Connected...\");\n }\n \n catch(Exception se){\n \tse.printStackTrace();\n }\n\t}", "public void connect() {\n\n DatabaseGlobalAccess.getInstance().setEmf(Persistence.createEntityManagerFactory(\"PU_dashboarddb\"));\n DatabaseGlobalAccess.getInstance().setEm(DatabaseGlobalAccess.getInstance().getEmf().createEntityManager());\n DatabaseGlobalAccess.getInstance().getDatabaseData();\n DatabaseGlobalAccess.getInstance().setDbReachable(true);\n }", "public void getConnect() \n {\n con = new ConnectDB().getCn();\n \n }", "public void connect(){\r\n\t\tSystem.out.println(\"Connecting to Sybase Database...\");\r\n\t}", "public void initializeConnection(){\n try{\n dbConnect = DriverManager.getConnection(DBURL, USERNAME, PASSWORD);\n } catch (SQLException ex){\n ex.printStackTrace();\n }\n }", "public DBAO(Connection connect) {\r\n\r\n this.connector = connect;\r\n }", "public static void connect() {\n \t\tconnPool.start();\n \t}", "public Connection connect() {\n\t\t\n\n\t\ttry {\n\t\t\tconnection = DriverManager.getConnection(URL, USERNAME, PASSWORD);\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\tSystem.out.println(\"Creating connection\");\n\t\treturn connection;\n\n\t}", "public static void connect()\n {\n conn = null;\n try {\n Class.forName(\"org.postgresql.Driver\");\n conn = DriverManager.getConnection(url, user, password);\n System.out.println(\"Connected to Server Successfully.\");\n }catch(Exception e) {\n System.out.println(e.getMessage());\n }\n }", "public void connect() {\n this.disconnect();\n\n Settings settings = ImmutableSettings.settingsBuilder()\n .put(\"cluster.name\", this.cluster)\n .put(\"client.transport.sniff\", true)\n .build();\n this.elasticClient = new TransportClient(settings).addTransportAddresses(\n new InetSocketTransportAddress(this.host, this.port)\n );\n }", "void connect() {\n try {\n Class.forName(\"com.mysql.jdbc.Driver\"); // Driver is located in src/mysql-connector...\n } catch (ClassNotFoundException e) {\n e.printStackTrace();\n }\n\n System.out.println(\"Connecting to database...\");\n\n try {\n // Make the connection\n con = DriverManager.getConnection(DB_URL, USER, PASS);\n System.out.println(\"Connection established!\");\n System.out.println(\"Creating statement...\");\n\n // Create a statement (not for output)\n st = con.createStatement();\n\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }", "public void connect() {\n try {\n Class.forName(\"com.mysql.jdbc.Connection\");\n //characterEncoding=latin1&\n //Class.forName(\"org.apache.derby.jdbc.EmbeddedDriver\");\n //Connection conn = new Connection();\n url += \"?characterEncoding=latin1&useConfigs=maxPerformance&useSSL=false\";\n conn = DriverManager.getConnection(url, userName, password);\n if (conn != null) {\n System.out.println(\"Established connection to \"+url+\" Database\");\n }\n }\n catch(SQLException e) {\n throw new IllegalStateException(\"Cannot connect the database \"+url, e);\n }\n catch(ClassNotFoundException e) {\n e.printStackTrace();\n }\n\n }", "DBConnect() {\n \n }", "public Connection connect(){\n Connection con = null; \n try {\n Class.forName(DB_DRIVE_NAME).newInstance();\n con = DriverManager.getConnection(CONNECTION_URL, DB_CONNECTION_USERNAME, DB_CONNECTION_PASSWORD); \n }catch (Exception e) {\n System.err.println(\"Cannot connect to database server\");\n System.err.println(e);\n }\n return con;\n }", "public void connect() {\n try {\n socket = connectToBackEnd();\n } catch (IOException ioe) {\n ioe.printStackTrace();\n }\n }", "public static void openConnection() {\n\n\t\ttry {\n\t\t\tClass.forName(\"com.mysql.cj.jdbc.Driver\");\n\t\t\tconexion = DriverManager.getConnection(\"jdbc:mysql://192.168.1.51:9090?useTimeone=true&serverTimezone=UTC\",\n\t\t\t\t\t\"remote\", \"Password123\");// credenciales temporales\n\t\t\tSystem.out.print(\"Server Connected\");\n\n\t\t} catch (SQLException | ClassNotFoundException ex) {\n\t\t\tSystem.out.print(\"No se ha podido conectar con mi base de datos\");\n\t\t\tSystem.out.println(ex.getMessage());\n\n\t\t}\n\n\t}", "public static void establishConnection() {\n try {\n PropertiesLoader loader = new PropertiesLoader();\n String sshUser = loader.loadProperty().getProperty(\"sshUser\");\n String sshPassword = loader.loadProperty().getProperty(\"sshPassword\");\n String sshHost = loader.loadProperty().getProperty(\"sshHost\");\n int sshPort = Integer.parseInt(loader.loadProperty().getProperty(\"sshPort\"));\n String remoteHost = loader.loadProperty().getProperty(\"remoteHost\");\n int localPort = Integer.parseInt(loader.loadProperty().getProperty(\"localPort\"));\n int remotePort = Integer.parseInt(loader.loadProperty().getProperty(\"remotePort\"));\n\n String dbUrl = loader.loadProperty().getProperty(\"dbUrl\");\n String dbUser = loader.loadProperty().getProperty(\"dbUser\");\n String dbPassword = loader.loadProperty().getProperty(\"dbPassword\");\n\n DatabaseManager.doSshTunnel(sshUser, sshPassword, sshHost, sshPort, remoteHost, localPort, remotePort);\n connection = DriverManager.getConnection(dbUrl, dbUser, dbPassword);\n } catch (Exception ex) {\n ex.printStackTrace();\n }\n }", "public DBConnect(String hostname, String dbname, String username, String password, int port, String _nodetable, String [] _nodeCols, String _edgetable, String [] _edgeCols){\r\n this.stillWorks=true;\r\n this.hostname=hostname;\r\n this.dbname=dbname;\r\n this.username=username;\r\n this.password=password;\r\n this.nodetable=_nodetable;\r\n this.edgetable=_edgetable; \r\n this.nodeCols=_nodeCols;\r\n this.edgeCols=_edgeCols;\r\n this.port=port;\r\n }", "public synchronized void connectToCloud() {\n if (!Platform.cloudSelected) {\n // guarantee to execute once\n Platform.cloudSelected = true;\n AppConfigReader reader = AppConfigReader.getInstance();\n String name = reader.getProperty(EventEmitter.CLOUD_CONNECTOR, \"none\");\n if (\"none\".equalsIgnoreCase(name)) {\n // there are no cloud connector. Check if there are cloud services.\n startCloudServices();\n } else {\n SimpleClassScanner scanner = SimpleClassScanner.getInstance();\n List<ClassInfo> services = scanner.getAnnotatedClasses(CloudConnector.class, true);\n if (!startService(name, services, true)) {\n log.error(\"Cloud connector ({}) not found\", name);\n }\n }\n }\n }", "public void connect() {}", "public void connect()\r\n\t{\r\n\t\tkonekcija = ConnectionClass.getConnection(adresa, port, imeBaze, korisnickoIme, sifra);\r\n\t\tSystem.out.println(\"Konekcija otvorena: \"+ konekcija.toString());\r\n\t}", "public void connect();", "public void connect();", "public void connect();", "abstract public void openConnection();", "void createConnection();", "private void connect() {\n connectionString = \"jdbc:mysql://\" + Config.getInstance().getMySQLServerName() + \":\" + Config.getInstance().getMySQLServerPort() + \"/\" + Config.getInstance().getMySQLDatabaseName();\n\n try {\n Assassin.p.getLogger().info(\"Attempting connection to MySQL...\");\n\n // Force driver to load if not yet loaded\n Class.forName(\"com.mysql.jdbc.Driver\");\n Properties connectionProperties = new Properties();\n connectionProperties.put(\"user\", Config.getInstance().getMySQLUserName());\n connectionProperties.put(\"password\", Config.getInstance().getMySQLUserPassword());\n connectionProperties.put(\"autoReconnect\", \"false\");\n connectionProperties.put(\"maxReconnects\", \"0\");\n connection = DriverManager.getConnection(connectionString, connectionProperties);\n\n Assassin.p.getLogger().info(\"Connection to MySQL was a success!\");\n }\n catch (SQLException ex) {\n connection = null;\n\n if (reconnectAttempt == 0 || reconnectAttempt >= 11) {\n Assassin.p.getLogger().severe(\"Connection to MySQL failed!\");\n printErrors(ex);\n }\n }\n catch (ClassNotFoundException ex) {\n connection = null;\n\n if (reconnectAttempt == 0 || reconnectAttempt >= 11) {\n Assassin.p.getLogger().severe(\"MySQL database driver not found!\");\n }\n }\n }", "public abstract void connect() throws UnknownHostException, IOException;", "private void connect() {\n\t\t//\n\t\ttry {\n\t\t\tconn = DriverManager.getConnection(logInfo, user, pwd);\n\t\t\tsmt = conn.createStatement();\n\t\t\tif (conn != null) {\n\t\t\t\tSystem.out.println(\"[System:] Postgres Connection successful\");\n\t\t\t\tstatus = true;\n\t\t\t} else {\n\t\t\t\tSystem.err.println(\"Failed to make connection!\");\n\t\t\t\tstatus = false;\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\tSystem.err.println(\"Connection Failed!\");\n\t\t\te.printStackTrace();\n\t\t\tstatus = false;\n\t\t}\n\t\t\n\t}", "public Connection connect() {\n conn = null;\n try {\n conn = DriverManager.getConnection(url, user, password);\n System.out.println(\"Connected successfully.\");\n } catch (SQLException e) {\n System.out.println(e.getMessage());\n }\n \n return conn;\n }", "protected void connect() {\n\t\treadProperties();\n\t\tif (validateProperties())\n\t\t\tjuraMqttClient = createClient();\n\t}", "public Connection connect()\r\n\t\t {\r\n\t\t Connection con = null;\r\n\t\t try\r\n\t\t {\r\n\t\t Class.forName(\"com.mysql.jdbc.Driver\");\r\n\r\n\t\t //Provide the correct details: DBServer/DBName, username, password\r\n\t\t con = DriverManager.getConnection(\"jdbc:mysql://127.0.0.1:3308/paf\", \"root\", \"\");\r\n\t\t \r\n\t\t//For testing\r\n\t\t System.out.print(\"Successfully connected\"); \r\n\t\t \r\n\t\t }\r\n\t\t catch (Exception e)\r\n\t\t {e.printStackTrace();}\r\n\t\t return con;\r\n\t\t }", "public void connect() throws ConnectionFailedException\n {\n isConnected = true;\n }", "private void connectToDB() throws Exception\n\t{\n\t\tcloseConnection();\n\t\t\n\t\tcon = Env.getConnectionBradawl();\n\t}", "Connection createConnection();", "@Override\r\n\tpublic void connect() {\n\t\tport=\"tastecard\";\r\n\t\tSystem.out.println(\"This is the implementation of db for the taste card\"+port);\r\n\t}", "public void connect() throws ClassNotFoundException, SQLException {\n }", "public Connection connect(){\n try{\n \n Class.forName(\"org.apache.derby.jdbc.ClientDriver\").newInstance();\n conn = DriverManager.getConnection(dbUrl, name, pass);\n System.out.println(\"connected\");\n }\n catch(Exception e){\n System.out.println(\"connection problem\");\n }\n return conn;\n }", "void connect() throws TransportException;", "@Override\n public abstract void connect();", "@Override\n public void connect() {\n\n //System.out.println(\"-------Embedded Java DB Connection Testing --------\");\n\n // silently return if connection is open\n if (is_open) {\n return;\n }\n\n // check for correct classpath\n try {\n Class.forName(\"org.apache.derby.jdbc.EmbeddedDriver\");\n } catch (ClassNotFoundException e) {\n System.out.println(\"Java DB Driver not found. Add the classpath to your module.\");\n e.printStackTrace();\n return;\n }\n\n //System.out.println(\"Java DB driver registered!\");\n\n // try to connect to edu.wpi.cs3733d18.teamS.database with given name\n try {\n DriverManager.registerDriver(new EmbeddedDriver());\n connection = DriverManager.getConnection(\"jdbc:derby:\" + db_name + \";create=true\");\n\n // set auto commit to false to control what is committed\n connection.setAutoCommit(false);\n\n // create a new statement\n statement = connection.createStatement();\n\n // open the connection\n is_open = true;\n } catch (SQLException e) {\n System.out.println(\"Could not connect to edu.wpi.cs3733d18.teamS.database: \" + db_name + \"\\n\" +\n e.getMessage());\n e.printStackTrace();\n }\n\n //System.out.println(\"Java DB connection established!\");\n\n }", "void connect() throws Exception;", "public static void connect() {\n try {\n Class.forName(\"com.mysql.jdbc.Driver\");\n DataBaseConnect.connect = DriverManager\n .getConnection(\"jdbc:mysql://localhost/magazyn?\"\n + \"user=root&password=\");\n } catch (SQLException e1) {\n e1.printStackTrace();\n } catch (ClassNotFoundException e1) {\n e1.printStackTrace();\n }\n }", "private void connect() {\n try {\n Class.forName(\"com.microsoft.sqlserver.jdbc.SQLServerDriver\");\n cnt = DriverManager.getConnection(hosting, user, pass);\n } catch (Exception e) {\n e.printStackTrace();\n JOptionPane.showMessageDialog(this, \"lỗi kết nối\");\n }\n }", "@Override\n public boolean init()\n {\n \tFile file = new File(\"err.txt\");\n\t\tFileOutputStream fos;\n\t\ttry {\n\t\t\tfos = new FileOutputStream(file);\n\t\t\tPrintStream ps = new PrintStream(fos);\n\t\t\tSystem.setErr(ps);\n\t\t} catch (FileNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n if (connected)\n {\n System.out.println(\"Client connection already initialized.\");\n return true;\n }\n properties = getProperties();\n String driver = properties.getProperty(DRIVER_CLASS, DRIVER_CLASS_DEFAULT);\n String url = properties.getProperty(CONNECTION_URL, CONNECTION_URL_DEFAULT);\n String user = properties.getProperty(CONNECTION_USER, CONNECTION_USER_DEFAULT);\n String passwd = properties.getProperty(CONNECTION_PASSWD, CONNECTION_PASSWD_DEFAULT);\n try\n {\n if (driver != null)\n {\n Class.forName(driver);\n }\n connection = DriverManager.getConnection(url, user, passwd);\n System.out.println(\"Connection established successfully!\");\n connected = true;\n newCachedStatements = new ConcurrentHashMap<>();\n return true;\n }\n catch (ClassNotFoundException | SQLException ex)\n {\n Logger.getLogger(WindowsAzureClientInit.class.getName()).log(Level.SEVERE, null, ex);\n System.out.println(\"Error in creating a connection with the database!\");\n return false;\n }\n }", "public static void doConnect() {\r\n\t\tlogger.info(\"Connecting to server......\");\r\n\t\tChannelFuture future = null;\r\n\t\ttry {\r\n\t\t\tfuture = bootstrap.connect(new InetSocketAddress(host, port));\r\n\t\t\tfuture.addListener(channelFutureListener);\r\n\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\t// future.addListener(channelFutureListener);\r\n\t\t\tlogger.warn(\"Closed connection.\");\r\n\t\t}\r\n\r\n\t}", "public void DBConnect() {\n \tdatabase = new DatabaseAccess();\n \tif (database != null) {\n \t\ttry {\n \t\t\tString config = getServletContext().getInitParameter(\"dbConfig\");\n \t\t\tdatabase.GetConnectionProperties(config);\n \t\t\tdatabase.DatabaseConnect();\n \t\t}\n \t\tcatch (Exception e) {\n \t\t\te.printStackTrace();\n \t\t}\n \t}\n }", "public void connect() {\n aiConfiguration = new AIConfiguration(getClientAccessToken(),\n AIConfiguration.SupportedLanguages.English,\n AIConfiguration.RecognitionEngine.System);\n aiService = AIService.getService(context, aiConfiguration);\n aiService.setListener(this);\n aiDataService = new AIDataService(context, aiConfiguration);\n }", "protected BBoxDBCluster connectToServer() throws InterruptedException {\n\t\tfinal String clusterName = BBoxDBConfigurationManager.getConfiguration().getClustername();\n\t\tfinal BBoxDBCluster bboxdbCluster = new BBoxDBCluster(CLUSTER_CONTACT_POINT, clusterName);\n\t\n\t\tfinal boolean result = bboxdbCluster.connect();\n\t\tAssert.assertTrue(result);\n\t\t\n\t\tThread.sleep(50);\n\t\t\n\t\tAssert.assertTrue(bboxdbCluster.isConnected());\n\t\t\n\t\treturn bboxdbCluster;\n\t}", "public void openConnection(){\n\n\t\tString dbIP = getConfig().getString(\"mysql.ip\");\n\t\tString dbDB = getConfig().getString(\"mysql.databaseName\");\n\t\tString dbUN = getConfig().getString(\"mysql.username\");\n\t\tString dbPW = getConfig().getString(\"mysql.password\");\n\n\t\ttry {\n\t\t\tClass.forName(\"com.mysql.jdbc.Driver\");\n\t\t\tconnection = DriverManager.getConnection(\"jdbc:mysql://\" + dbIP + \"/\" + dbDB, dbUN, dbPW);\n\t\t\tgetLogger().info(\"Connected to databse!\");\n\t\t} catch (SQLException ex) {\n\t\t\t// handle any errors\n\t\t\tgetLogger().info(\"SQLException: \" + ex.getMessage());\n\t\t\tgetLogger().info(\"SQLState: \" + ex.getSQLState());\n\t\t\tgetLogger().info(\"VendorError: \" + ex.getErrorCode());\n\t\t} catch (ClassNotFoundException e) {\n\t\t\tgetLogger().info(\"Gabe, you done goof'd!\");\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "private static void createCouchbaseClient() {\n LOGGER.debug(\"Creating Couchbase Client\");\n String bucket = CONFIG.getString(\"couchbase.bucket\");\n String[] hosts = CONFIG.getString(\"couchbase.host\").split(\";\");\n String port = CONFIG.getString(\"couchbase.port\");\n String base = CONFIG.getString(\"couchbase.base\");\n\n List<URI> uris = new ArrayList<>();\n for (final String host : hosts) {\n uris.add(URI.create(\"http://\" + host + \":\" + port + \"/\" + base));\n }\n try {\n tapClient = new TapClient(uris, bucket, \"\");\n } catch (Exception ex) {\n LOGGER.error(\"Caught exception trying to connect to Couchbase\", ex);\n }\n }", "public boolean connect() {\r\n\tboolean result = false;\r\n\r\n\tif (isConnected()) { // if already connected\r\n\t result = true;\r\n\t} else {\r\n\t conn = createConnection();\r\n\r\n\t if (conn != null && countTables() > 0) {\r\n\t\tresult = true;\r\n\r\n\t\tsetConnected(result);\r\n\t }\r\n\t}\r\n\r\n\treturn result;\r\n }", "public boolean connect(){\n try{\n conn = DriverManager.getConnection(uri, user, password);\n }catch (SQLException sqle){\n DLException dle = new DLException(sqle, \"Unable to conclude this operation\");\n return false;\n }\n return true;\n }", "public void connectToDatabase(){\n\t\ttry{\n\t\t connection = DriverManager.getConnection(dbConfig.getUrl(), dbConfig.getUser(), dbConfig.getPassword());\n\t\t System.out.println(\"Successfully connected to database.\");\n\t\t} catch (Exception e){\n\t\t\tSystem.out.println(\"An error occurred while attempting to connect to the database.\");\n\t\t\te.printStackTrace();\n\t\t\tSystem.exit(1);\n\t\t}\n\t}", "private Connection connect() {\n String url = \"jdbc:sqlite:\" + dbPath + dbName;\n Connection con = null;\n try {\n con = DriverManager.getConnection(url);\n }\n catch (SQLException e) {\n System.out.println(\"ERROR: \" + e.getMessage());\n }\n\n return con;\n }", "private void createConnection() {\n this.callbacks = getCallbacks();\n\n Properties props = new Properties();\n props.putAll(getTestProps());\n props.putAll(getProps());\n this.connection = Connections.create((ConnectionCallbacks) callbacks, props);\n configureConnection(connection);\n }", "public void connectToDb() {\n try {\n con = DriverManager.getConnection(url, user, password);\n } catch (SQLException ex) {\n JOptionPane.showMessageDialog(null, \"Erro: \" + ex.getMessage(), \"Mensagem de Erro\", JOptionPane.ERROR_MESSAGE);\n }\n\n }", "public void connect(boolean verbose) throws Exception {\n /* STEP 1: Register JDBC driver */\n Class.forName(JDBC_DRIVER);\n\n /* STEP 2: Open a connection */\n if (verbose)\n System.out.println(\"Connecting to database...\");\n conn = DriverManager.getConnection(dbUrl, user, pass);\n }", "public static Connection connect(){\n\t\tConnection connection=null;\r\n\t\ttry {\r\n\t\t\tClass.forName(\"com.mysql.cj.jdbc.Driver\");\r\n\t\t\tconnection=DriverManager.getConnection(\"jdbc:mysql://localhost:3306/weather\",\"root\",\"Dhanya@123\");\r\n\t\t System.out.println(\"Connected\");\r\n\t}catch (ClassNotFoundException classNotFoundException) {\r\n\t\tclassNotfoundException.printStackTrace();\t\r\n\t}catch (SQLException sqlException) {\r\n\t\tsqlException.printStackTrace();\r\n\t}\r\n\t\treturn connection;\r\n\t\t\r\n\t}", "public void openConnection() throws Exception {\r\n configProps.load(new FileInputStream(configFilename));\r\n\r\n jSQLDriver = configProps.getProperty(\"flightservice.jdbc_driver\");\r\n jSQLUrl = configProps.getProperty(\"flightservice.url\");\r\n jSQLUser = configProps.getProperty(\"flightservice.sqlazure_username\");\r\n jSQLPassword = configProps.getProperty(\"flightservice.sqlazure_password\");\r\n\r\n /* load jdbc drivers */\r\n Class.forName(jSQLDriver).newInstance();\r\n\r\n /* open connections to the flights database */\r\n conn = DriverManager.getConnection(jSQLUrl, // database\r\n jSQLUser, // user\r\n jSQLPassword); // password\r\n\r\n conn.setAutoCommit(true); //by default automatically commit after each statement\r\n\r\n /* You will also want to appropriately set the transaction's isolation level through:\r\n conn.setTransactionIsolation(...)\r\n See Connection class' JavaDoc for details.\r\n */\r\n }", "public void connecting() {\n\n }", "protected void connectionEstablished() {}", "public void connect(String hostname, int port, String username, String database, String password, boolean useSSL, boolean compress, int maxconnections) throws ClassNotFoundException, SQLException {\n while (connections.size() > 0) {\n ThreadConnection tconn = connections.pop();\n tconn.conn.close();\n }\n if (watchDog != null) {\n watchDog.terminate();\n }\n try {\n this.isCompetitionDB = null;\n this.hostname = hostname;\n this.port = port;\n this.username = username;\n this.password = password;\n this.database = database;\n properties = new Properties();\n properties.put(\"user\", username);\n properties.put(\"password\", password);\n properties.put(\"rewriteBatchedStatements\", \"true\");\n //properties.put(\"profileSQL\", \"true\");\n //properties.put(\"traceProtocol\", \"true\");\n //properties.put(\"logger\", \"edacc.model.MysqlLogger\");\n //properties.put(\"useUnbufferedInput\", \"false\");\n //properties.put(\"useServerPrepStmts\", \"true\");\n if (useSSL) {\n properties.put(\"useSSL\", \"true\");\n properties.put(\"requireSSL\", \"true\");\n }\n if (compress) {\n properties.put(\"useCompression\", \"true\");\n }\n /*java.io.PrintWriter w =\n new java.io.PrintWriter(new java.io.OutputStreamWriter(System.out));\n DriverManager.setLogWriter(w);*/\n \n Class.forName(\"com.mysql.jdbc.Driver\");\n this.maxconnections = maxconnections;\n watchDog = new ConnectionWatchDog();\n connections.add(new ThreadConnection(Thread.currentThread(), getNewConnection(), System.currentTimeMillis()));\n watchDog.start();\n } catch (ClassNotFoundException e) {\n throw e;\n } catch (SQLException e) {\n throw e;\n } finally {\n // inform Observers of changed connection state\n this.setChanged();\n this.notifyObservers();\n }\n }", "public static Connection connect(){\n\t\ttry {\n\t\t\tadd = Configure.getADDRESS();\n\t\t\tconn = ConnectionFactory.getConnect(add, Configure.port, \"TCP\");\n\t\t} catch (Exception e) {\n\t\t\tConfigure.logger.error(e.getMessage());\n\t\t\t//System.out.println(e.getMessage());\n\t\t\te.printStackTrace();\n\t\t\t//System.exit(0);\n\t\t}\n\t\treturn conn;\n\t}", "private Connection connect() {\n Connection conn = null;\n try {\n conn = DriverManager.getConnection(urlPath);\n } catch (SQLException e) {\n System.out.println(e.getMessage());\n }\n return conn;\n }", "public void connect()\n\t{\n\t\t//Database driver required for connection\n\t\tString jdbcDriver = \"com.mysql.jdbc.Driver\";\n\t\t\n\t\ttry\n\t\t{\n\t\t\t//Loading JDBC Driver class at run-time\n\t\t\tClass.forName(jdbcDriver);\n\t\t}\n\t\tcatch (Exception excp)\n\t\t{\n\t\t\tlog.error(\"Unexpected exception occurred while attempting user schema DB connection... \" + excp.getMessage());\n\t\t}\t\t\n\t\t\n\t\tlog.info(\"Initiating connection to user schema database \" + dbUrl + \"...\");\n\t\t\n\t\ttry\n\t\t{\n\t\t\tdbConnection = DriverManager.getConnection(dbUrl, dbUsername, dbPassword);\n\t\t}\n\t\tcatch (SQLException sqle)\n\t\t{\n\t\t\tdbConnection = null;\n\t\t\tlog.error(\"SQLException occurred while connecting to user schema database... \" + sqle.getMessage());\n\t\t}\n\t}", "public boolean connect(){\n if(isConnect)\n return true;\n\n this.isConnect = true;\n\n this.repository = sqLiteConnect(new Repository().getColumnType());\n\n if(this.repository == null){\n ItemBox.getLogger().severe(\"[Database] \\\"repository\\\" connect fail!\");\n return false;\n }\n\n\n ItemBox.getLogger().info(\"[Database] connect success\");\n return true;\n }", "public ConnectDB(){\r\n\r\n\t}", "public void getConnection() throws RtpException {\n /* Create the database connection */\n try {\n conn = Connector.connect(cInfo, credentials, null);\n } catch (RtpException rtpe) {\n throw rtpe;\n } catch (Exception e) {\n throw new RtpException(\"Database Connection has failed for:\" + cInfo.toString(), e);\n }\n\n log.info(\"Database Connected Successfully. ID: {}\", conn.toString());\n }", "public Reply connect(String connectAddress, int connectPort) throws ThingsException, InterruptedException;", "@Override\n\tpublic void connect() throws SQLException {\n if (jdbcConnection == null || jdbcConnection.isClosed()) {\n try {\n Class.forName(\"com.mysql.cj.jdbc.Driver\");\n } catch (ClassNotFoundException e) {\n throw new SQLException(e);\n }\n jdbcConnection = DriverManager.getConnection(\n jdbcURL, jdbcUsername, jdbcPassword);\n }\t\t \n\t\t\n\t}", "private Connection connect()\n\t{\n\t\tConnection con = null;\n\t\t\n\t\ttry\n\t\t{\n\t\t\tClass.forName(\"com.mysql.jdbc.Driver\");\n\n\t\t\t//Provide the correct details: DBServer/DBName, username, password\n\t\t\tcon = DriverManager.getConnection(\"jdbc:mysql://127.0.0.1:3306/project? useUnicode=true&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=UTC\", \"root\", \"\");\n\t\t}\n\t\tcatch (Exception e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n \n\t\treturn con;\n \n\t}", "private static void dbConnect() {\r\n\t\tif (conn == null)\r\n\t\t\ttry {\r\n\t\t\t\tconn = DriverManager.getConnection(\"jdbc:mysql://localhost/sims?user=root&password=12345&useSSL=true\");\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t}", "public void connectDB() {\n\t\tSystem.out.println(\"CONNECTING TO DB\");\n\t\tSystem.out.print(\"Username: \");\n\t\tusername = scan.nextLine();\n\t\tConsole console = System.console(); // Hides password input in console\n\t\tpassword = new String(console.readPassword(\"Password: \"));\n\t\ttry {\n\t\t\tDriverManager.registerDriver (new oracle.jdbc.driver.OracleDriver());\n\t\t\tconnection = DriverManager.getConnection(url, username, password);\n\t\t} catch(Exception Ex) {\n\t\t\tSystem.out.println(\"Error connecting to database. Machine Error: \" + Ex.toString());\n\t\t\tEx.printStackTrace();\n\t\t\tSystem.out.println(\"\\nCONNECTION IS REQUIRED: EXITING\");\n\t\t\tSystem.exit(0); // No need to make sure connection is closed since it wasn't made\n\t\t}\n\t}", "public void createConnection()\n\t{\n\t\ttry\n {\n\t\t\tClass.forName(\"com.mysql.jdbc.Driver\");\n // Get a connection\n conn = DriverManager.getConnection(dbURL, \"root\", \"root\"); \n System.out.println(\"Connected...\");\n }\n catch (Exception except)\n {\n except.printStackTrace();\n }\n\t}", "public void doConnect() {\n Debug.logInfo(\"Connecting to \" + client.getServerURI() + \" with device name[\" + client.getClientId() + \"]\", MODULE);\n\n IMqttActionListener conListener = new IMqttActionListener() {\n\n public void onSuccess(IMqttToken asyncActionToken) {\n Debug.logInfo(\"Connected.\", MODULE);\n state = CONNECTED;\n carryOn();\n }\n\n public void onFailure(IMqttToken asyncActionToken, Throwable exception) {\n ex = exception;\n state = ERROR;\n Debug.logError(\"connect failed\" + exception.getMessage(), MODULE);\n carryOn();\n }\n\n public void carryOn() {\n synchronized (caller) {\n donext = true;\n caller.notifyAll();\n }\n }\n };\n\n try {\n // Connect using a non-blocking connect\n client.connect(conOpt, \"Connect sample context\", conListener);\n } catch (MqttException e) {\n // If though it is a non-blocking connect an exception can be\n // thrown if validation of parms fails or other checks such\n // as already connected fail.\n state = ERROR;\n donext = true;\n ex = e;\n }\n }", "public Connection getConnection() {\n {\n Connection connection = null;\n String hostName = \"learntogether.database.windows.net\"; // update me\n String dbName = \"LearnTogether\"; // update me\n String user = \"ysanson\"; // update me\n String password = \"LearnTogether1\"; // update me\n String url = String.format(\"jdbc:sqlserver://%s:1433;database=%s;user=%s;password=%s;encrypt=true;\"\n + \"hostNameInCertificate=*.database.windows.net;loginTimeout=30;\", hostName, dbName, user, password);\n try {\n connection = DriverManager.getConnection(url);\n } catch (SQLException e) {\n e.printStackTrace();\n }\n return connection;\n }\n }", "public abstract boolean Connect(String Host, int port) throws TransportLayerException, InvalidNetworkLayerDeviceException, CommunicationException, LowLinkException;", "public void connect() { \t\n \tbindService(IChatService.class, apiConnection);\n }", "public void connect(){\n try {\n Class.forName(\"com.mysql.jdbc.Driver\");\n } catch (ClassNotFoundException ex) {\n System.out.println(\"ClassNotFoundException in connect()\");\n }\n try {\n connection = DriverManager.getConnection(\"jdbc:mysql://localhost:3306/pmt\", \"root\", \"\");\n } catch (SQLException ex) {\n System.out.println(\"SQLException in connect()\");\n }\n \n }", "public static void establishConnection()throws IOException, SQLException {\n connection= DriverManager.getConnection(\n Configuration.fileReader(\"dbhostname\"),\n Configuration.fileReader(\"dbusername\"),\n Configuration.fileReader(\"dbpassword\"));\n statement=connection.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE,ResultSet.CONCUR_READ_ONLY);\n }", "private void openConnection(){}", "private void connectToDB() {\n try {\n Class.forName(\"org.postgresql.Driver\");\n this.conn = DriverManager.getConnection(prs.getProperty(\"url\"),\n prs.getProperty(\"user\"), prs.getProperty(\"password\"));\n } catch (SQLException e1) {\n e1.printStackTrace();\n } catch (ClassNotFoundException e) {\n e.printStackTrace();\n }\n }", "private static void connectDatabase(){\n\t\t// register the driver\n\t\ttry{\n\t\t\tClass.forName(DRIVER).newInstance();\n\t\t\tconnection = DriverManager.getConnection(CONNECTION_URL);\n\t\t} catch (IllegalAccessException | InstantiationException | ClassNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "public static Connection connect() {\n\n\t\t// Create a variable for the connection string.\n\t\tString connectionUrl = \"jdbc:sqlserver://localhost:1433;\"\n\t\t\t\t+ \"databaseName=SwaziBankIntranet2016;user=intranetUser;password=12345678=I\";\n\n\t\t// Declare the JDBC objects.\n\n\t\ttry {\n\t\t\t// Establish the connection.\n\t\t\tClass.forName(\"com.microsoft.sqlserver.jdbc.SQLServerDriver\");\n\t\t\tcon = (Connection) DriverManager.getConnection(connectionUrl);\n\t\t}\n\t\t// Handle any errors that may have occurred.\n\t\tcatch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\treturn con;\n\t}", "public void buildConnect() {\n\t\ttry {\n\t\t\tClass.forName(jdbcDriver);\n\t\t\tconnection= DriverManager.getConnection(dbUrl, user, passwd);\n\t\t\tstatement= connection.createStatement();\n\t\t} catch (ClassNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t}", "public final DBI getConnect() {\n try {\n Class.forName(\"com.mysql.cj.jdbc.Driver\");\n // String dbc = System.getenv(\"DB_CONNECTION\");\n // if (dbc == null || dbc.equals(\"\")) {\n // dbc = \"localhost:3306\";\n // }\n // DBI dbi = new DBI(\"jdbc:mysql://\" + dbc + \"/MLPXX?allowPublicKeyRetrieval=true&useSSL=false\", \"MLPXX\", \"MLPXX\");\n DBI dbi = new DBI(\"jdbc:mysql://localhost:3306/MLPXX?allowPublicKeyRetrieval=true&useSSL=false\", \"MLPXX\", \"MLPXX\");\n\n //DBI dbi = new DBI(\"jdbc:mysql://\" + dbc + \"/MLPXX?useSSL=false\", \"MLPXX\", \"MLPXX\");\n // dbi.setSQLLog(new PrintStreamLog());\n return dbi;\n } catch (ClassNotFoundException e) {\n //return null;\n throw new RuntimeException(e);\n }\n }", "@Test\n public void testConnect() throws MainException {\n System.out.println(\"connect\");\n LinkingDb instance = new LinkingDb(new ConfigurazioneTO(\"jdbc:hsqldb:file:database/\",\n \"ADISysData\", \"asl\", \"\"));\n Connection result = instance.connect();\n assertNotNull(result);\n boolean expResult = true;\n assertEquals(instance.isConnected(), expResult);\n }", "void connect(String servers) throws InterruptedException,\n ClassNotFoundException, SQLException {\n connection = DBConnection.getJDBCConnection(servers);\n\n periodicStatsContext = ((IVoltDBConnection) connection).createStatsContext();\n fullStatsContext = ((IVoltDBConnection) connection).createStatsContext();\n }", "public Connection connect() throws SQLException {\n\n return DriverManager.getConnection(URL);\n }" ]
[ "0.6377862", "0.61530465", "0.60479856", "0.6021939", "0.58095187", "0.5804947", "0.5802677", "0.5793418", "0.5791489", "0.57720613", "0.57475215", "0.5734687", "0.57162505", "0.5707263", "0.5697627", "0.56910557", "0.56830376", "0.5660414", "0.565988", "0.5648357", "0.5638627", "0.56291556", "0.56032866", "0.55729866", "0.5541866", "0.5498721", "0.54710126", "0.54461634", "0.5434671", "0.5428847", "0.5423746", "0.53932697", "0.53932697", "0.53932697", "0.5390981", "0.5379746", "0.53765637", "0.5363653", "0.5360671", "0.5360305", "0.53596276", "0.53495264", "0.53390044", "0.533737", "0.5332233", "0.5330797", "0.5329991", "0.5311434", "0.53113955", "0.5310705", "0.53075594", "0.53010654", "0.52969956", "0.5284966", "0.5277534", "0.52600294", "0.52590513", "0.52441764", "0.52439606", "0.5241423", "0.52315253", "0.5215161", "0.521504", "0.52077955", "0.5204794", "0.520469", "0.52038085", "0.51926696", "0.5184438", "0.5172362", "0.5171446", "0.5164163", "0.51571894", "0.5155862", "0.5155353", "0.5152241", "0.5149387", "0.5148897", "0.5147269", "0.5142726", "0.5127145", "0.51270396", "0.5118766", "0.5117093", "0.51038784", "0.5098334", "0.50933933", "0.50918067", "0.50897944", "0.50896", "0.5083819", "0.5082372", "0.5078179", "0.507234", "0.50722164", "0.5066751", "0.50578684", "0.5054788", "0.50540733", "0.50517106" ]
0.7315145
0
Get the shared connection to Cloud Bigtable.
public static Connection getConnection() { if (connection == null) { try { connect(); } catch (IOException e) { if (sc != null) { sc.log("connect ", e); } } } if (connection == null) { if (sc != null) { sc.log("BigtableHelper-No Connection"); } } return connection; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Connection getConn(){\n \n return new util.ConnectionPar().getConn();\n }", "public static Connection getConn() {\n return conn;\n }", "public static Connection getConnection() {\n return singleInstance.createConnection();\n }", "private static Connection getConnection(){\n Connection conn = THREAD_CONNECTION.get();\n if(conn == null){\n try {\n conn = DATA_SOURCE.getConnection();\n } catch (SQLException e) {\n e.printStackTrace();\n LOGGER.error(\"getConnection error\", e);\n throw new RuntimeException(e);\n } finally {\n THREAD_CONNECTION.set(conn);\n }\n }\n AssertUtil.notNull(conn);\n return conn;\n }", "public static Connection getConnection() {\n\t\t\n\t\treturn conn;\n\t}", "public static Connection getConnection() {\n\t\tConnection conn = null;\n\t\ttry {\n\t\t\tconn = getConnectionPool().getConnection();\n\t\t\t// will get a thread-safe connection from the BoneCP connection\n\t\t\t// pool.\n\t\t\t// synchronization of the method will be done inside BoneCP source\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn conn;\n\t}", "public Connection getConnection();", "public Connection getConnection();", "public Connection getConnection();", "public Connection getCachedConnection (CConnection connection);", "public Connection getCachedConnection (CConnection connection);", "public static Connection getConnection() {\n \t\treturn connPool.getConnection();\n \t}", "Connection getConnection() {\n\t\treturn connection;\n\t}", "public Connection getConnection() {\n return conn;\n }", "public Connection getConnection() {\n return conn;\n }", "public Connection getConnection()\n\t{\n\t\treturn connection;\n\t}", "public Connection getConnection() {\r\n\tConnection result = null;\r\n\tif (isConnected()) {\r\n\t result = conn;\r\n\t}\r\n\treturn result;\r\n }", "public\n Connection getConnection();", "public static Connector GetConnection(){\n\t\ttry{\n\t\t\tif(c_connection == null){\n\t\t\t\tc_connection = new Connector();\n\t\t\t}\n\t\t\treturn c_connection;\n\t\t}catch (Exception e) {\n\t\t\tSystem.out.println(e);\n\t\t\treturn null;\n\t\t}\n\t}", "public Connection getConnection(){\r\n\t\treturn connection;\r\n\t}", "public static Connection getConnection() {\n\n if (concount<conns-1) {\n concount++;\n } else {\n concount=0;\n }\n return con_pool[concount];\n }", "public String getConnection()\n {\n return this.connection;\n }", "storage_server_connections get(String id);", "public Connection getConnection() {\r\n return connection;\r\n }", "public Connection getConnection() {\r\n return connection;\r\n }", "public Connection getConn() {\r\n return conn;\r\n }", "public Connection getConnection()\n\t{\n\t\treturn wConn;\n\t}", "public Connection getConn()\r\n\t{\r\n\t\treturn this.conn;\r\n\t}", "public static Connection getConnection() {\n\t\treturn null;\r\n\t}", "public static Connection getConnection() {\n\t\treturn null;\n\t}", "public Connection getConnection() {\n return connection;\n }", "public Connection getConn()\n\t{\n\t\treturn this.conn;\n\t}", "public Connection getConn() {return conn;}", "public Connection getConnection() {\n \t\treturn this.connect;\n \t}", "public Connection getConnection() {\n\t\treturn this.connection;\n\t}", "protected Connection getConnection () {\n \t\treturn connection;\n \t}", "public Connection getConnection() {\n this.connect();\n return this.connection;\n }", "public final Connection getConnection() throws SQLException {\n\t\tString[] threadCredentials = (String[]) this.threadBoundCredentials.get();\n\t\tif (threadCredentials != null) {\n\t\t\treturn doGetConnection(threadCredentials[0], threadCredentials[1]);\n\t\t}\n\t\telse {\n\t\t\treturn doGetConnection(this.username, this.password);\n\t\t}\n\t}", "public ConnectionConfig getConnectionConfig()\n {\n return _connectionConfig;\n }", "public static Connection getConnection() {\n\treturn null;\n}", "protected Connection getConnection() {\r\n\t\treturn getProcessor().getConnection();\r\n\t}", "protected Connection getConnection() {\n return con;\n }", "public Connections getConnections();", "public IConnection getConnection () { \n\t\treturn connection;\n\t}", "public Connection getConnection(){\n try{\n if(connection == null || connection.isClosed()){\n connection = FabricaDeConexao.getConnection();\n return connection;\n } else return connection;\n } catch (SQLException e){throw new RuntimeException(e);}\n }", "public String getConnection();", "@Override\n public Connection getConnection() {\n boolean createNewConnection = false;\n Connection returnConnection = null;\n synchronized (connections) { //Lock the arraylist\n if (connections.isEmpty()) { //Check if any connections available\n createNewConnection = true; //If not, create new one\n } else {\n returnConnection = connections.get(0); //Get first available one\n connections.remove(0); //And remove from list\n }\n }\n if (createNewConnection) { //If new connection needed\n returnConnection = createConnection();\n }\n return returnConnection;\n }", "@Provides\n @Current\n IpcConnection getCurrentConnection(@Current IpcCall call) {\n return call.getConnection();\n }", "public IRemoteConnection getConnection() {\n \t\treturn fSelectedConnection;\n \t}", "public Connection getConnection(){\n\t\tif(connection == null){\r\n\t\t\tinitConnection();\r\n\t\t}\r\n\t\treturn connection;\r\n\t}", "com.google.protobuf.ByteString\n getConnectionBytes();", "com.google.protobuf.ByteString\n getConnectionBytes();", "com.google.protobuf.ByteString\n getConnectionBytes();", "com.google.protobuf.ByteString\n getConnectionBytes();", "public Connection getConnection() throws ResourceException\n {\n return (Connection)cm.allocateConnection(mcf, null);\n }", "@NonNull\n protected final Connection getConnection() {\n return mConnection;\n }", "protected IXConnection getConnection() {\n return eloCmisConnectionManager.getConnection(this.getCallContext());\n }", "private synchronized Connection getConnection(String serverName)\n {\n if (configurationStoreConnection == null)\n {\n ConnectorConfigurationFactory connectorConfigurationFactory = new ConnectorConfigurationFactory();\n\n return connectorConfigurationFactory.getServerConfigConnection(serverName);\n }\n else\n {\n return configurationStoreConnection;\n }\n }", "public static Connection GetConnection_s() {\n try {\n return connectionPool.getConnection(); \n } catch (SQLException e) {\n return null;\n }\n }", "private Connection getConnection() {\n if (_connection != null) return _connection;\n\n Element ncElement = getNetcdfElement();\n \n //See if we can get the database connection from a JNDI resource.\n String jndi = ncElement.getAttributeValue(\"jndi\");\n if (jndi != null) {\n try {\n Context initCtx = new InitialContext();\n Context envCtx = (Context) initCtx.lookup(\"java:comp/env\");\n DataSource ds = (DataSource) envCtx.lookup(jndi);\n _connection = ds.getConnection();\n } catch (Exception e) {\n String msg = \"Failed to get database connection from JNDI: \" + jndi;\n _logger.error(msg, e);\n throw new TSSException(msg, e);\n }\n return _connection;\n }\n\n //Make the connection ourselves.\n String connectionString = ncElement.getAttributeValue(\"connectionString\");\n String dbUser = ncElement.getAttributeValue(\"dbUser\");\n String dbPassword = ncElement.getAttributeValue(\"dbPassword\");\n String jdbcDriver = ncElement.getAttributeValue(\"jdbcDriver\");\n \n try {\n Class.forName(jdbcDriver);\n _connection = DriverManager.getConnection(connectionString, dbUser, dbPassword);\n } catch (Exception e) {\n String msg = \"Failed to get database connection: \" + connectionString;\n _logger.error(msg, e);\n throw new TSSException(msg, e);\n } \n \n return _connection;\n }", "@Override\n public String getConnection() {\n Object ref = connection_;\n if (ref instanceof String) {\n return (String) ref;\n } else {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n connection_ = s;\n return s;\n }\n }", "@Override\n public String getConnection() {\n Object ref = connection_;\n if (ref instanceof String) {\n return (String) ref;\n } else {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n connection_ = s;\n return s;\n }\n }", "@Override\n public String getConnection() {\n Object ref = connection_;\n if (ref instanceof String) {\n return (String) ref;\n } else {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n connection_ = s;\n return s;\n }\n }", "@Override\n public String getConnection() {\n Object ref = connection_;\n if (ref instanceof String) {\n return (String) ref;\n } else {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n connection_ = s;\n return s;\n }\n }", "public ConnectionField getConnection() {\n \n\treturn connectionField;\n \n }", "public abstract Connection getConnection();", "public String getConnection() {\n Object ref = connection_;\n if (!(ref instanceof String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n connection_ = s;\n return s;\n } else {\n return (String) ref;\n }\n }", "public String getConnection() {\n Object ref = connection_;\n if (!(ref instanceof String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n connection_ = s;\n return s;\n } else {\n return (String) ref;\n }\n }", "public String getConnection() {\n Object ref = connection_;\n if (!(ref instanceof String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n connection_ = s;\n return s;\n } else {\n return (String) ref;\n }\n }", "public String getConnection() {\n Object ref = connection_;\n if (!(ref instanceof String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n connection_ = s;\n return s;\n } else {\n return (String) ref;\n }\n }", "public Connection getCon() {\r\n return con;\r\n }", "public Connection ObtenirConnexion(){return cn;}", "com.google.container.v1.ConfigConnectorConfig getConfigConnectorConfig();", "public String getConnectionURL (CConnection connection);", "public String getConnectionURL (CConnection connection);", "@Override\n public com.google.protobuf.ByteString\n getConnectionBytes() {\n Object ref = connection_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n connection_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "@Override\n public com.google.protobuf.ByteString\n getConnectionBytes() {\n Object ref = connection_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n connection_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "@Override\n public com.google.protobuf.ByteString\n getConnectionBytes() {\n Object ref = connection_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n connection_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "@Override\n public com.google.protobuf.ByteString\n getConnectionBytes() {\n Object ref = connection_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n connection_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "@Override\n public Cassandra.Client getAPI() {\n return client;\n }", "public synchronized Connection getConnection() throws SQLException {\n/* 158 */ return getConnection(true, false);\n/* */ }", "public ConnectionConfig createConnection()\n {\n return _connectionConfig;\n }", "String getConnection();", "String getConnection();", "String getConnection();", "String getConnection();", "CurrentRowCacheDao getCurrentRowCacheConnection(Long tableId);", "protected abstract boolean sharedConnectionEnabled();", "public static Connection getConnection() {\n\t\ttry {\n\t\t\treturn DBUtil.getInstance().ds.getConnection();\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn null;\n\n\t}", "public static Connect getConnect() {\n\t\treturn connection;\n\t}", "public Socket getConnection() {\n return connection;\n }", "private Connection getConnection() {\n if ( conn==null ) {\n conn = Util.getConnection( \"root\", \"\" );\n }\n return conn;\n }", "protected TDConnexion getTdConnexion() {\n return tdConnect;\n }", "public long getConnectionId() {\n return connId;\n }", "public com.google.protobuf.ByteString\n getConnectionBytes() {\n Object ref = connection_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n connection_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public com.google.protobuf.ByteString\n getConnectionBytes() {\n Object ref = connection_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n connection_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public com.google.protobuf.ByteString\n getConnectionBytes() {\n Object ref = connection_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n connection_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public com.google.protobuf.ByteString\n getConnectionBytes() {\n Object ref = connection_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n connection_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public Connection getMyConnection(){\n return myConnection;\n }", "public IRemoteConnection getRemoteConnection() {\n\t\tif (fRemoteConnectionWidget != null && !fRemoteConnectionWidget.isDisposed()) {\n\t\t\treturn fRemoteConnectionWidget.getConnection();\n\t\t}\n\t\treturn null;\n \t}" ]
[ "0.64201444", "0.6062464", "0.60622334", "0.6059309", "0.60326254", "0.6005219", "0.5995696", "0.5995696", "0.5995696", "0.5983024", "0.5983024", "0.5931139", "0.5925399", "0.5906662", "0.5906662", "0.5897939", "0.58902884", "0.5876616", "0.5868992", "0.58671933", "0.58661747", "0.58589184", "0.58513755", "0.5851223", "0.5851223", "0.5846269", "0.5844598", "0.584316", "0.5839903", "0.5836372", "0.58254033", "0.58229893", "0.5818664", "0.58183444", "0.5804305", "0.579723", "0.5788813", "0.57728946", "0.57634383", "0.5754836", "0.5750854", "0.5736085", "0.5720368", "0.56920063", "0.56870663", "0.5680229", "0.567038", "0.5664592", "0.5661327", "0.5661267", "0.56353164", "0.56353164", "0.56353164", "0.56353164", "0.5628033", "0.56130415", "0.5610002", "0.5597344", "0.55944115", "0.5592094", "0.5587659", "0.5587659", "0.5587659", "0.5587659", "0.55494803", "0.55472493", "0.5546988", "0.5546988", "0.5546988", "0.5546988", "0.5522131", "0.55087185", "0.5499816", "0.54793876", "0.54793876", "0.5461202", "0.5461202", "0.5461202", "0.5461202", "0.54561806", "0.5451388", "0.54429317", "0.54344463", "0.54344463", "0.54344463", "0.54344463", "0.5425968", "0.5418372", "0.54142654", "0.5407735", "0.5381608", "0.53790784", "0.53720385", "0.5366793", "0.5365278", "0.5365278", "0.5365278", "0.5365278", "0.5364854", "0.5364373" ]
0.70330226
0
This will be invoked as part of a warmup request, or the first user request if no warmup request was invoked.
@Override public void contextInitialized(ServletContextEvent event) { if (event != null) { sc = event.getServletContext(); if (PROJECT_ID == null) { PROJECT_ID = sc.getInitParameter("BIGTABLE_PROJECT"); } if (INSTANCE_ID == null) { INSTANCE_ID = sc.getInitParameter("BIGTABLE_INSTANCE"); } } if (PROJECT_ID != null && PROJECT_ID.startsWith("@")) { PROJECT_ID = null; } if (INSTANCE_ID != null && INSTANCE_ID.startsWith("@")) { INSTANCE_ID = null; } if (PROJECT_ID == null) { PROJECT_ID = System.getProperty("BIGTABLE_PROJECT"); } if (INSTANCE_ID == null) { INSTANCE_ID = System.getProperty("BIGTABLE_INSTANCE"); } try { connect(); } catch (IOException e) { if (sc != null) { sc.log("BigtableHelper - connect ", e); } } if (connection == null) { if (sc != null) { sc.log("BigtableHelper-No Connection"); } } if (sc != null) { sc.log("ctx Initialized: " + PROJECT_ID + " " + INSTANCE_ID); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void warmUp();", "public Object call() {\n if (_needWarmup) {\n warmup(); \n _needWarmup = false;\n }\n else {\n run();\n _needWarmup = true;\n }\n return null;\n }", "public void warmup(TestCase testCase) { \n run(testCase);\n }", "@Override\n public void warmUp() {\n System.out.println(super.getName() + \" (\" + this.modality() + \") is warming up...\");\n }", "private void preRequest() {\n\t\tSystem.out.println(\"pre request, i am playing job\");\n\t}", "public void warmup() {\n long millis;\n TestCaseImpl tc = _testCase;\n \n // Get number of threads to adjust iterations\n int nOfThreads = tc.getIntParam(Constants.NUMBER_OF_THREADS);\n \n int warmupIterations = 0;\n String warmupTime = tc.getParam(Constants.WARMUP_TIME);\n if (warmupTime != null) {\n // Calculate end time\n long startTime = millis = Util.currentTimeMillis();\n long endTime = startTime + Util.parseDuration(warmupTime);\n \n while (endTime > millis) {\n warmup(tc); // Call warmup\n warmupIterations++;\n millis = Util.currentTimeMillis();\n } \n }\n else {\n // Adjust warmup iterations based on number of threads\n warmupIterations = tc.getIntParam(Constants.WARMUP_ITERATIONS) / nOfThreads;\n \n for (int i = 0; i < warmupIterations; i++) {\n warmup(tc); // Call warmup\n }\n }\n \n // Accumulate actual number of iterations\n synchronized (tc) {\n int actualWarmupIterations = \n tc.hasParam(Constants.ACTUAL_WARMUP_ITERATIONS) ? \n tc.getIntParam(Constants.ACTUAL_WARMUP_ITERATIONS) : 0;\n tc.setIntParam(Constants.ACTUAL_WARMUP_ITERATIONS, \n actualWarmupIterations + warmupIterations);\n }\n }", "public void prefetch() {\n\t}", "protected long requestProcessingStarted() {\n\t\trequestsInProcessing++;\n\t\treturn System.currentTimeMillis();\n\t}", "protected void executeBeforeMiddlewares(Request request)\n {\n synchronized (this.middlewares) {\n List<Middleware> middlewares = getRouteMiddleware(\"*\");\n \n if (middlewares != null) {\n // Execute all of the wildcard middleware.\n for (Middleware middleware : middlewares) {\n middleware.before(request, services);\n }\n }\n \n middlewares = getRouteMiddleware(request.route());\n \n if (middlewares != null) {\n // Execute all the before middleware.\n for (Middleware middleware : middlewares) {\n middleware.before(request, services);\n }\n }\n \n middlewares = Volt.getRouteMiddlewares(\"*\");\n\n if (middlewares != null) {\n // Execute all of the global wildcard middleware.\n for (Middleware middleware : middlewares) {\n middleware.before(request, services);\n }\n }\n\n middlewares = Volt.getRouteMiddlewares(request.route());\n\n if (middlewares != null) {\n // Execute all the before global middleware.\n for (Middleware middleware : middlewares) {\n middleware.before(request, services);\n }\n }\n }\n }", "@Override\n\tpublic Object run() throws ZuulException {\n\t\tRequestContext requestContext = RequestContext.getCurrentContext();\n\t\tHttpServletRequest request = requestContext.getRequest();\n\t\trequestContext.set(FilterConstants.LOAD_BALANCER_KEY, request.getHeader(CUSTOM_ROUTE_HEADER));\n\t\t\n\t\treturn null;\n\t}", "protected void warmupImpl(M newValue) {\n\n }", "public int getWarmupTime() {\n return warmupTime;\n }", "InstrumentablePerformanceExecutor<T> warmup();", "public void setWarmupTime(int value) {\n this.warmupTime = value;\n }", "protected void setLoadedForThisRequest() {\r\n\t\tContextUtils.setRequestAttribute(getRequestLoadedMarker(), Boolean.TRUE);\r\n\t}", "public void prepareForDeferredProcessing() {\n\n }", "@Override\n\t\t\t\t\tpublic void onReqStart() {\n\t\t\t\t\t}", "public void initialExecutionResourcesExhausted() {\n \n \t\t// if (this.environment.getExecutingThread() != Thread.currentThread()) {\n \t\t// throw new ConcurrentModificationException(\n \t\t// \"initialExecutionResourcesExhausted must be called from the task that executes the user code\");\n \t\t// }\n \n \t\t// Construct a resource utilization snapshot\n \t\tfinal long timestamp = System.currentTimeMillis();\n \t\t// Get CPU-Usertime in percent\n \t\tThreadMXBean threadBean = ManagementFactory.getThreadMXBean();\n \t\tlong userCPU = (threadBean.getCurrentThreadUserTime() / NANO_TO_MILLISECONDS) * 100\n \t\t\t/ (timestamp - this.startTime);\n \n \t\t// collect outputChannelUtilization\n \t\tfinal Map<ChannelID, Long> channelUtilization = new HashMap<ChannelID, Long>();\n \t\tlong totalOutputAmount = 0;\n \t\tfor (int i = 0; i < this.environment.getNumberOfOutputGates(); ++i) {\n \t\t\tfinal OutputGate<? extends Record> outputGate = this.environment.getOutputGate(i);\n \t\t\tfor (int j = 0; j < outputGate.getNumberOfOutputChannels(); ++j) {\n \t\t\t\tfinal AbstractOutputChannel<? extends Record> outputChannel = outputGate.getOutputChannel(j);\n \t\t\t\tchannelUtilization.put(outputChannel.getID(),\n \t\t\t\t\tLong.valueOf(outputChannel.getAmountOfDataTransmitted()));\n \t\t\t\ttotalOutputAmount += outputChannel.getAmountOfDataTransmitted();\n \t\t\t}\n \t\t}\n \t\tlong totalInputAmount = 0;\n \t\tfor (int i = 0; i < this.environment.getNumberOfInputGates(); ++i) {\n \t\t\tfinal InputGate<? extends Record> inputGate = this.environment.getInputGate(i);\n \t\t\tfor (int j = 0; j < inputGate.getNumberOfInputChannels(); ++j) {\n \t\t\t\tfinal AbstractInputChannel<? extends Record> inputChannel = inputGate.getInputChannel(j);\n \t\t\t\tchannelUtilization.put(inputChannel.getID(),\n \t\t\t\t\tLong.valueOf(inputChannel.getAmountOfDataTransmitted()));\n \t\t\t\ttotalInputAmount += inputChannel.getAmountOfDataTransmitted();\n \n \t\t\t}\n \t\t}\n \t\tBoolean force = null;\n \n \t\tif (this.environment.getInvokable().getClass().isAnnotationPresent(Stateful.class)\n \t\t\t&& !this.environment.getInvokable().getClass().isAnnotationPresent(Stateless.class)) {\n \t\t\t// Don't checkpoint statefull tasks\n \t\t\tforce = false;\n \t\t} else {\n \t\t\t// look for a forced decision from the user\n \t\t\tForceCheckpoint forced = this.environment.getInvokable().getClass().getAnnotation(ForceCheckpoint.class);\n \t\t\tif (forced != null) {\n \t\t\t\tforce = forced.checkpoint();\n \t\t\t}\n \t\t}\n \t\tfinal ResourceUtilizationSnapshot rus = new ResourceUtilizationSnapshot(timestamp, channelUtilization, userCPU,\n \t\t\tforce, totalInputAmount, totalOutputAmount);\n \n \t\t// Notify the listener objects\n \t\tfinal Iterator<ExecutionListener> it = this.registeredListeners.iterator();\n \t\twhile (it.hasNext()) {\n \t\t\tit.next().initialExecutionResourcesExhausted(this.environment.getJobID(), this.vertexID, rus);\n \t\t}\n \n \t\t// Finally, propagate event to the job manager\n \t\tthis.taskManager.initialExecutionResourcesExhausted(this.environment.getJobID(), this.vertexID, rus);\n \t}", "protected void executeAfterMiddlewares(Request request) {\n synchronized (this.middlewares) {\n List<Middleware> middlewares = getRouteMiddleware(\"*\");\n\n if (middlewares != null) {\n // Execute all of the wildcard middleware.\n for (Middleware middleware : middlewares) {\n middleware.after(request, services);\n }\n }\n\n middlewares = getRouteMiddleware(request.route());\n\n if (middlewares != null) {\n // Execute all the after middleware.\n for (Middleware middleware : middlewares) {\n middleware.after(request, services);\n }\n }\n \n middlewares = Volt.getRouteMiddlewares(\"*\");\n\n if (middlewares != null) {\n // Execute all of the global wildcard middleware.\n for (Middleware middleware : middlewares) {\n middleware.after(request, services);\n }\n }\n\n middlewares = Volt.getRouteMiddlewares(request.route());\n\n if (middlewares != null) {\n // Execute all the after global middleware.\n for (Middleware middleware : middlewares) {\n middleware.after(request, services);\n }\n }\n }\n }", "private void constructorPostProcessing()\n {\n prepareNextRequest();\n fetchNextBatch();\n advanceObjectSummary();\n }", "public void prePerform() {\n // nothing to do by default\n }", "boolean doWarmUp() {\n Future future = null;\n try {\n future = threadPoolExecutor.submit(updateTask);\n future.get(warmUpTimeoutMs, TimeUnit.MILLISECONDS); // block until done or timeout\n return true;\n } catch (Exception e) {\n logger.warn(\"Best effort warm up failed\", e);\n } finally {\n if (future != null) {\n future.cancel(true);\n }\n }\n return false;\n }", "public void postProcessing() {\n //empty\n }", "@Override\n public void preStart() {\n Reaper.watchWithDefaultReaper(this);\n }", "public interface IAutonomousRunner {\n <T> void runSingleAutonomousTx(\n RequestContext ctx,\n int expectedTotal, // expected total number of records (Collections.size())\n Iterable<T> iterable, // provider of loop variables\n Function<T, RequestParameters> requestProvider, // converts a loop variable to a request\n Consumer<StatisticsDTO> logEnhancer, // optional (may be null): enhances the statistics output (set info1...)\n String processId // processId of the statistics log\n );\n}", "@Override\n public Object run() {\n System.out.println(\"[MyZuulFilter] This request has passed through the custom Zuul Filter...\");\n return null;\n }", "private void requestUsers(){\n if(mIsLoading)\n return;\n\n mIsLoading = true;\n UserManager.getsInstance().requestUsers(StackExchangeSite.STACK_OVERFLOW,100);\n }", "private void requireRequestStages() {\n //Check if there are any request stage configurations\n if (this.requestStageConfigs.isEmpty()) {\n throw new IllegalStateException(\"Request stages need to be added before the request can be build.\");\n }\n }", "private int heavyAttack() {\n return attack(6, 2);\n }", "private RequestExecution() {}", "public void iterateOnce(String userInput) {\n if (this.applicationState.checkFlag().equals(Flag.STORAGE_FAILED)) {\n StorageLoadAction storageLoadAction = (StorageLoadAction) Command.getActionFromCommand(userInput,\n this.applicationState);\n this.applicationState = storageLoadAction.run();\n } else if (this.applicationState.checkFlag().equals(Flag.DEFAULT)) {\n this.applicationState = new Pipeline(userInput, this.applicationState).run();\n }\n }", "@Override\n\tpublic void onRequestStart(String reqId) {\n\t\t\n\t}", "public final int warmup(M newValue) {\n numWarmup++;\n warmupImpl(newValue);\n return numWarmup;\n }", "protected abstract void nextRequest ();", "@Before\n public void setup() {\n config.setProperty(Constants.PROPERTY_RETRY_DELAY, \"1\");\n config.setProperty(Constants.PROPERTY_RETRY_LIMIT, \"3\");\n rc = new RequestContext(null);\n rc.setTimeToLiveSeconds(2);\n }", "Call mo35727a(Request request);", "protected void requestTile(TileKey key)\n {\n if (WorldWind.getTaskService().isFull())\n return;\n\n if (this.getLevels().isResourceAbsent(key))\n return;\n\n RequestTask request = new RequestTask(key, this);\n WorldWind.getTaskService().addTask(request);\n }", "@Override\n public void preRun() {\n super.preRun();\n }", "public void warmUp(int numReads, Random random) {\n int wordsInMainMem = (mainMemory.getSize() / WORD_SIZE);\n\n for (int i = 0; i < numReads; i++) {\n // Generate a random line address\n int wordAddress = random.nextInt(wordsInMainMem) * WORD_SIZE;\n boolean[] address = Binary.uDecToBin(wordAddress, 32);\n readWord(address, false);\n }\n warmUpRequests = requestCount;\n }", "@Override\n\tpublic void earlyStartup() {\n\t}", "protected void onFirstUse() {}", "public HjResetRunningRequest(RequestContext requestContext) {\n super(requestContext, new HjCriteria(), new HjResult());\n}", "protected void resolveRequest(final IndexMetadata indexMetadata, final Request request) {\n if (request.waitForActiveShards() == ActiveShardCount.DEFAULT) {\n // if the wait for active shard count has not been set in the request,\n // resolve it from the index settings\n request.waitForActiveShards(indexMetadata.getWaitForActiveShards());\n }\n }", "public okhttp3.Request followUpRequest() {\n /*\n r5 = this;\n r1 = 0;\n r0 = r5.userResponse;\n if (r0 != 0) goto L_0x000b;\n L_0x0005:\n r0 = new java.lang.IllegalStateException;\n r0.<init>();\n throw r0;\n L_0x000b:\n r0 = r5.streamAllocation;\n r0 = r0.connection();\n if (r0 == 0) goto L_0x0027;\n L_0x0013:\n r0 = r0.route();\n L_0x0017:\n r2 = r5.userResponse;\n r2 = r2.code();\n r3 = r5.userRequest;\n r3 = r3.method();\n switch(r2) {\n case 300: goto L_0x0063;\n case 301: goto L_0x0063;\n case 302: goto L_0x0063;\n case 303: goto L_0x0063;\n case 307: goto L_0x0053;\n case 308: goto L_0x0053;\n case 401: goto L_0x0046;\n case 407: goto L_0x0029;\n case 408: goto L_0x00dc;\n default: goto L_0x0026;\n };\n L_0x0026:\n return r1;\n L_0x0027:\n r0 = r1;\n goto L_0x0017;\n L_0x0029:\n if (r0 == 0) goto L_0x003f;\n L_0x002b:\n r1 = r0.proxy();\n L_0x002f:\n r1 = r1.type();\n r2 = java.net.Proxy.Type.HTTP;\n if (r1 == r2) goto L_0x0046;\n L_0x0037:\n r0 = new java.net.ProtocolException;\n r1 = \"Received HTTP_PROXY_AUTH (407) code while not using proxy\";\n r0.<init>(r1);\n throw r0;\n L_0x003f:\n r1 = r5.client;\n r1 = r1.proxy();\n goto L_0x002f;\n L_0x0046:\n r1 = r5.client;\n r1 = r1.authenticator();\n r2 = r5.userResponse;\n r1 = r1.authenticate(r0, r2);\n goto L_0x0026;\n L_0x0053:\n r0 = \"GET\";\n r0 = r3.equals(r0);\n if (r0 != 0) goto L_0x0063;\n L_0x005b:\n r0 = \"HEAD\";\n r0 = r3.equals(r0);\n if (r0 == 0) goto L_0x0026;\n L_0x0063:\n r0 = r5.client;\n r0 = r0.followRedirects();\n if (r0 == 0) goto L_0x0026;\n L_0x006b:\n r0 = r5.userResponse;\n r2 = \"Location\";\n r0 = r0.header(r2);\n if (r0 == 0) goto L_0x0026;\n L_0x0075:\n r2 = r5.userRequest;\n r2 = r2.url();\n r0 = r2.resolve(r0);\n if (r0 == 0) goto L_0x0026;\n L_0x0081:\n r2 = r0.scheme();\n r4 = r5.userRequest;\n r4 = r4.url();\n r4 = r4.scheme();\n r2 = r2.equals(r4);\n if (r2 != 0) goto L_0x009d;\n L_0x0095:\n r2 = r5.client;\n r2 = r2.followSslRedirects();\n if (r2 == 0) goto L_0x0026;\n L_0x009d:\n r2 = r5.userRequest;\n r2 = r2.newBuilder();\n r4 = okhttp3.internal.http.HttpMethod.permitsRequestBody(r3);\n if (r4 == 0) goto L_0x00c3;\n L_0x00a9:\n r4 = okhttp3.internal.http.HttpMethod.redirectsToGet(r3);\n if (r4 == 0) goto L_0x00d8;\n L_0x00af:\n r3 = \"GET\";\n r2.method(r3, r1);\n L_0x00b4:\n r1 = \"Transfer-Encoding\";\n r2.removeHeader(r1);\n r1 = \"Content-Length\";\n r2.removeHeader(r1);\n r1 = \"Content-Type\";\n r2.removeHeader(r1);\n L_0x00c3:\n r1 = r5.sameConnection(r0);\n if (r1 != 0) goto L_0x00ce;\n L_0x00c9:\n r1 = \"Authorization\";\n r2.removeHeader(r1);\n L_0x00ce:\n r0 = r2.url(r0);\n r1 = r0.build();\n goto L_0x0026;\n L_0x00d8:\n r2.method(r3, r1);\n goto L_0x00b4;\n L_0x00dc:\n r0 = r5.requestBodyOut;\n if (r0 == 0) goto L_0x00e6;\n L_0x00e0:\n r0 = r5.requestBodyOut;\n r0 = r0 instanceof okhttp3.internal.http.RetryableSink;\n if (r0 == 0) goto L_0x00f1;\n L_0x00e6:\n r0 = 1;\n L_0x00e7:\n r2 = r5.callerWritesRequestBody;\n if (r2 == 0) goto L_0x00ed;\n L_0x00eb:\n if (r0 == 0) goto L_0x0026;\n L_0x00ed:\n r1 = r5.userRequest;\n goto L_0x0026;\n L_0x00f1:\n r0 = 0;\n goto L_0x00e7;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: okhttp3.internal.http.HttpEngine.followUpRequest():okhttp3.Request\");\n }", "public void testPrioritizeContention() throws Exception\n {\n ResourceContentionManager rcm = rezmgr.getContentionManager();\n\n // Handler impl used for testing...\n class Handler implements ResourceContentionHandler\n {\n public boolean called = false;\n\n public int ret = 1;\n\n public ResourceUsage req = null;\n\n public ResourceUsage[] own = null;\n\n public String proxy = null;\n\n public void reset(int ret)\n {\n this.ret = ret;\n called = false;\n req = null;\n own = null;\n proxy = null;\n }\n\n /**\n * Returns based on value of <i>ret</i>.\n * <ol>\n * <li>-1 then null\n * <li>0 then [0]\n * <li>1 then [owners.length] with requester at front\n * </ol>\n */\n public ResourceUsage[] resolveResourceContention(ResourceUsage requester, ResourceUsage owners[])\n {\n called = true;\n req = requester;\n own = owners;\n\n if (ret == -1)\n return null;\n else if (ret == 0)\n return new ResourceUsage[0];\n else\n {\n ResourceUsage[] prior = new ResourceUsage[owners.length];\n prior[0] = requester;\n System.arraycopy(owners, 0, prior, 1, owners.length - 1);\n return prior;\n }\n }\n\n public void resourceContentionWarning(ResourceUsage newRequest, ResourceUsage[] currentReservations)\n {\n // does nothing for now\n }\n\n }\n ResourceManager.Client client = new ResourceManager.Client(new DummyClient(), new Proxy(),\n new ResourceUsageImpl(new AppID(1, 4), 1), new Context(new AppID(1, 4)));\n ResourceManager.Client clients[] = {\n new ResourceManager.Client(new DummyClient(), new Proxy(), new ResourceUsageImpl(new AppID(2, 2), 2),\n new Context(new AppID(2, 2))),\n new ResourceManager.Client(new DummyClient(), new Proxy(), new ResourceUsageImpl(new AppID(1, 1), 1),\n new Context(new AppID(1, 1))),\n new ResourceManager.Client(new DummyClient(), new Proxy(), new ResourceUsageImpl(new AppID(4, 4), 4),\n new Context(new AppID(4, 4))),\n new ResourceManager.Client(new DummyClient(), new Proxy(), new ResourceUsageImpl(new AppID(3, 3), 3),\n new Context(new AppID(3, 3))),\n new ResourceManager.Client(new DummyClient(), new Proxy(), new ResourceUsageImpl(new AppID(2, 2), 2),\n new Context(new AppID(2, 2))),\n new ResourceManager.Client(new DummyClient(), new Proxy(), new ResourceUsageImpl(new AppID(4, 5), 4),\n new Context(new AppID(4, 5))),\n new ResourceManager.Client(new DummyClient(), new Proxy(), new ResourceUsageImpl(new AppID(5, 5), 5),\n new Context(new AppID(5, 5))),\n new ResourceManager.Client(new DummyClient(), new Proxy(), new ResourceUsageImpl(new AppID(4, 3), 4),\n new Context(new AppID(4, 3))), };\n ResourceUsage usages[] = new ResourceUsage[clients.length];\n for (int i = 0; i < clients.length; ++i)\n usages[i] = clients[i].resusage;\n\n try\n {\n ResourceManager.Client[] prioritized;\n\n // Call with null handler\n int r = 0;\n prioritized = rezmgr.prioritizeContention(client, clients);\n assertNotNull(\"Should not return null (given no handler)\", prioritized);\n assertEquals(\"Unexpected array size (given no handler)\", clients.length + 1, prioritized.length);\n int last = 256;\n for (int i = 0; i < prioritized.length; ++i)\n System.out.println(((Context) prioritized[i].context).priority + \" \"\n + position(clients, prioritized[i]));\n for (int i = 0; i < prioritized.length; ++i)\n {\n int prior = prioritized[i].getUsagePriority();\n assertTrue(\"Expected sorted by priority (given no handler) [\" + i + \"]\", last >= prior);\n // If same priority as last, verify that ordering is correct\n // Current definition is to go based upon original order in\n // owner list\n if (last == prior)\n {\n assertTrue(\"Expected equal priority to maintin existing order\",\n position(clients, prioritized[i]) > position(clients, prioritized[i - 1]));\n }\n\n last = prior;\n }\n\n // Add Handler\n Handler handler = new Handler();\n rcm.setResourceContentionHandler(handler);\n\n // Expect manager to prioritize\n handler.reset(-1);\n r = 1;\n prioritized = rezmgr.prioritizeContention(client, clients);\n assertTrue(\"Expected handler to be called\", handler.called);\n assertSame(\"Expected given requester to be used\", client.resusage, handler.req);\n assertNotNull(\"Expected owners array to be non-null\", handler.own);\n assertEquals(\"Expected owners length to be same as specified\", clients.length, handler.own.length);\n for (int i = 0; i < clients.length; ++i)\n assertEquals(\"Unexpected owner id passed to handler\", usages[i], handler.own[i]);\n assertNotNull(\"Should not return null (given null)\", prioritized);\n assertEquals(\"Unexpected array size (given null)\", clients.length + 1, prioritized.length);\n last = 256;\n for (int i = 0; i < prioritized.length; ++i)\n {\n int prior = prioritized[i].getUsagePriority();\n assertTrue(\"Expected sorted by priority (given null) [\" + i + \"]\", last >= prior);\n last = prior;\n }\n\n // Expect empty array\n handler.reset(0);\n r = 2;\n prioritized = rezmgr.prioritizeContention(client, clients);\n assertTrue(\"Expected handler to be called\", handler.called);\n assertSame(\"Expected given requester to be used\", client.resusage, handler.req);\n assertNotNull(\"Expected owners array to be non-null\", handler.own);\n assertEquals(\"Expected owners length to be same as specified\", clients.length, handler.own.length);\n for (int i = 0; i < clients.length; ++i)\n assertEquals(\"Unexpected owner id passed to handler\", usages[i], handler.own[i]);\n assertNotNull(\"Should not return null (given 0)\", prioritized);\n assertEquals(\"Unexpected array size (given 0)\", 0, prioritized.length);\n\n // Expect specified array\n handler.reset(1);\n r = 3;\n prioritized = rezmgr.prioritizeContention(client, clients);\n assertTrue(\"Expected handler to be called\", handler.called);\n assertSame(\"Expected given requester to be used\", client.resusage, handler.req);\n assertNotNull(\"Expected owners array to be non-null\", handler.own);\n assertEquals(\"Expected owners length to be same as specified\", clients.length, handler.own.length);\n for (int i = 0; i < clients.length; ++i)\n assertEquals(\"Unexpected owner id passed to handler\", usages[i], handler.own[i]);\n assertNotNull(\"Should not return null\", prioritized);\n assertEquals(\"Unexpected array size\", clients.length, prioritized.length);\n assertEquals(\"Unexpected array entry [0]\", client, prioritized[0]);\n // Actually, just expect to be sorted by AppID\n // When we have same AppID, might be reordered...\n // Let's assign priority numbers to each AppID...\n // And then make sure that clients are sorted accordingly\n // !!! Minor issue here... is if AppID is represented more than once\n // in array returned by handler... which one is used to specify\n // priority?\n // First position or last? Here we assume last.\n // TODO (TomH) Resolve with new resource contention\n /*\n * Hashtable idprior = new Hashtable(); for(int i = 0; i <\n * handler.own.length; ++i) idprior.put(handler.own[i].getAppID(),\n * new Integer(handler.own.length-i)); last = handler.own.length+1;\n * for(int i = 1; i < prioritized.length; ++i) { Integer p =\n * (Integer)idprior.get(((Context)prioritized[i].context).id);\n * assertNotNull(\"AppID wasn't passed to handler to begin with\", p);\n * int prior = p.intValue();\n * assertTrue(\"Expected clients to be in priority order\", last >=\n * prior); last = prior; }\n */\n\n // Replace the handler\n Handler replace = new Handler();\n rcm.setResourceContentionHandler(replace);\n handler.reset(0);\n replace.reset(0);\n prioritized = rezmgr.prioritizeContention(client, clients);\n assertTrue(\"Replacement handler should be called\", replace.called);\n assertFalse(\"Original handler should NOT be called\", handler.called);\n handler = replace;\n\n // Check for empty owners\n handler.reset(-1);\n prioritized = rezmgr.prioritizeContention(client, new ResourceManager.Client[0]);\n assertTrue(\"Expected handler to be called\", handler.called);\n assertTrue(\"Expected empty owners\", handler.own.length == 0);\n assertNotNull(\"Should not return null (no owners)\", prioritized);\n assertEquals(\"Unexpected array size (no owners)\", 1, prioritized.length);\n assertEquals(\"Unexpected entry (no owners)\", client, prioritized[0]);\n\n // Remove the handler\n rcm.setResourceContentionHandler(null);\n handler.reset(0);\n prioritized = rezmgr.prioritizeContention(client, clients);\n assertFalse(\"Handler was removed, should not be called\", handler.called);\n assertNotNull(\"Should not return null (removed)\", prioritized);\n assertEquals(\"Unexpected array size (removed)\", clients.length + 1, prioritized.length);\n last = 256;\n for (int i = 0; i < prioritized.length; ++i)\n {\n int prior = prioritized[i].getUsagePriority();\n assertTrue(\"Expected sorted by priority (removed) [\" + i + \"]\", last >= prior);\n last = prior;\n }\n }\n finally\n {\n // Clear handler\n rcm.setResourceContentionHandler(null);\n }\n\n }", "@Override\n public void preloadRecentApps() {\n if (!isUserSetup()) {\n return;\n }\n\n mImpl.preloadRecentApps();\n }", "@Override\n\tpublic void preServe() {\n\n\t}", "protected void additionalProcessing() {\n\t}", "public void incrementActiveRequests() \n {\n ++requests;\n }", "private void doBeforeApplyRequest(final PhaseEvent arg0) {\n\t}", "public static void seed() {\n\n // Get locations, employees, and custodians from database.\n ArrayList<Location> locations = new ArrayList(LocationTable.getLocations().values());\n ArrayList<User> employees = UserTable.getEmployees();\n ArrayList<User> custodians = UserTable.getCustodians();\n\n // Generate random sanitation requests\n Random rand = new Random();\n final int numEntries = 30;\n for (int i = 0; i < numEntries; i++) {\n\n // Generate location (uniform)\n Location location = locations.get(rand.nextInt(locations.size()));\n\n // Generate priority (uniform)\n Priority priority;\n switch (rand.nextInt(3)) {\n case 0: priority = Priority.HIGH; break;\n case 1: priority = Priority.MEDIUM; break;\n default: priority = Priority.LOW; break;\n }\n\n // Generate requester\n User requester = employees.get(rand.nextInt(employees.size()));\n\n // Generate request time (uniform current time + ~12 hours)\n Timestamp requestTime = new Timestamp(\n new Date().getTime() + rand.nextInt(43200000));\n\n // Generate description\n String description;\n switch (rand.nextInt(3)) {\n case 0: description = \"Drink spill\";\n case 1: description = \"Vomit\";\n default: description = \"Radioactive waste\";\n }\n\n // Add request to database\n SanitationRequest request = new SanitationRequest(\n 0, location, priority, Status.INCOMPLETE, description,\n requester, requestTime,\n null, null, null);\n\n // Mark 2/3 of requests as claimed\n int claimFlag = rand.nextInt(3);\n if (claimFlag > 0) {\n\n // Mark as claimed within 1 hour of request\n User servicer = custodians.get(rand.nextInt(custodians.size()));\n Timestamp claimedTime = new Timestamp(\n requestTime.getTime() + rand.nextInt(3600000));\n request.setServicer(servicer);\n request.setClaimedTime(claimedTime);\n\n // Mark half of claimed requests as completed within 2 hours of claim\n if (claimFlag == 2) {\n Timestamp completedTime = new Timestamp(\n claimedTime.getTime() + rand.nextInt(7200000));\n request.setCompletedTime(completedTime);\n request.setStatus(Status.COMPLETE);\n }\n\n // Update request in database\n editSanitationRequest(request);\n }\n\n // Add request to database\n addSanitationRequest(request);\n }\n }", "public void run() {\n long creationInterval = MILLISEC_PER_SEC / this.generationRate;\n\n int curIndex = 0;\n long startTime, endTime, diff, sleepTime, dur = this.test_duration;\n\n do {\n // startTime = System.nanoTime();\n startTime = System.currentTimeMillis();\n\n Request r = new DataKeeperRequest((HttpClient) this.clients[curIndex], this.appserverID, this.url);\n curIndex = (curIndex + 1) % clientsPerNode;\n this.requests.add(r);\n\n try {\n r.setEnterQueueTime();\n this.requestQueue.put(r);\n } catch (Exception e) {\n throw new RuntimeException(e);\n }\n\n // endTime = System.nanoTime();\n endTime = System.currentTimeMillis();\n diff = endTime - startTime;\n dur -= diff;\n sleepTime = creationInterval - diff;\n if (sleepTime < 0) {\n continue;\n }\n\n try {\n // Thread.sleep(NANO_PER_MILLISEC / sleepTime, (int) (NANO_PER_MILLISEC % sleepTime));\n Thread.sleep(sleepTime);\n } catch (InterruptedException e) {\n throw new RuntimeException(e);\n }\n\n dur -= sleepTime;\n } while (dur > 0);\n\n try {\n this.requestQueue.put(new ExitRequest());\n this.requestQueueHandler.join();\n } catch (InterruptedException e) {\n throw new RuntimeException(e);\n }\n }", "private PredictRequest() {\n\t}", "public final void invokeHandlerAddedIfNeeded() {\n if (this.firstRegistration) {\n this.firstRegistration = false;\n callHandlerAddedForAllHandlers();\n }\n }", "Request mo35725m0();", "@Override\n public void run() {\n if (requestsTable.get(userID) == -1) {\n requestsTable.put(userID, 0);\n }\n }", "protected void runBeforeIteration() {}", "private int spreadWriteRequests() {\n return RANDOM.nextInt(MAX_SLEEP_TIME);\n }", "public void earlyStartup() {\r\n\t\ttry {\r\n\t\t\tearlyStartupInternal();\r\n\t\t} catch (Throwable t) {\r\n\t\t\tlogger.error(\"Unexpected Error\", t);\r\n\t\t}\r\n\t}", "public static void main(String[] args) throws InterruptedException {\n\n Random random = new Random();\n RateLimitingVOne rateLimiter = new RateLimitingVOne();\n UUID userId = UUID.randomUUID();\n\n List<Request> allRequests = new ArrayList<>();\n\n long start = System.currentTimeMillis();\n for (int i = 1; i < 100; i++) {\n int count = random.nextInt(10);\n Request nr = new Request(count> 0 ? count : 1, System.currentTimeMillis(), i);\n allRequests.add(nr);\n rateLimiter.handleNewRequest(nr, userId);\n// sleep(random.nextInt(350));\n sleep(250);\n }\n\n long elapsed = System.currentTimeMillis() - start;\n\n System.out.println(\"Time ---- >> \"+ elapsed);\n\n for (Request tr : allRequests) {\n long since = (tr.timestamp - start);\n int count = tr.isRejected ? -tr.requestsCount : tr.requestsCount;\n System.out.println(tr.sequence+\", \"+ since + \" , \" + count);\n }\n\n\n Request r = rateLimiter.userRequestLog.get(userId);\n int count =0;\n while (r.previous != null) {\n count++;\n r = r.previous;\n }\n\n System.out.println(count);\n\n\n }", "protected void runBeforeIterations() {}", "private void caseForfeit(Request request) {\n }", "public void retryRequired(){\n startFetching(query);\n }", "@Override\r\n\tprotected void doFirst() {\n\t\t\r\n\t}", "protected abstract boolean sendNextRequests();", "@Override\n public Result filter(FilterChain chain, Context context) {\n ninjaAppengineEnvironment.initOrSkip();\n\n return chain.next(context);\n\n }", "public void request() {\n }", "public synchronized void onNewRequest() {\r\n\t\tallRequestsTracker.onNewRequest();\r\n\t\trecentRequestsTracker.onNewRequest();\r\n\t}", "public static void getRequests(User user, HttpServletRequest request) {\n List<Request> userRequests = user.getRequests(new Query());\n request.setAttribute(\"userRequests\", userRequests);\n if (userRequests != null) {\n request.setAttribute(\"hasRequests\", true);\n }\n }", "public void handleRequest () {\n\t// TODO: move this method to separate thread, \n\t// TODO: it may block in many places.\n\tRequestHandler rh = new RequestHandler ();\t\n\tCache<HttpHeader, HttpHeader> cache = proxy.getCache ();\n\tString method = request.getMethod ();\n\tif (!method.equals (\"GET\") && !method.equals (\"HEAD\"))\n\t cache.remove (request);\n\t\t\n\trh.entry = cache.getEntry (request);\n\tif (rh.entry != null)\n\t rh.dataHook = rh.entry.getDataHook (proxy.getCache ());\n\n\tcheckNoStore (rh.entry);\n\tif (!rh.cond.checkMaxStale (request, rh) && checkMaxAge (rh))\n\t setMayUseCache (false);\n\t\n\trh.conditional = rh.cond.checkConditional (this, request, rh);\n\tif (partialContent (rh)) \n\t fillupContent (rh);\n\tcheckIfRange (rh);\n\n\tboolean mc = getMayCache ();\n\tif (getMayUseCache ()) {\n\t // in cache?\n\t if (rh.entry != null) {\n\t\tCacheChecker cc = new CacheChecker ();\n\t\tif (cc.checkCachedEntry (this, request, rh)) {\n\t\t return;\n\t\t}\n\t }\n\t}\n\t\n\tif (rh.content == null) {\n\t // Ok cache did not have a usable resource, \n\t // so get the resource from the net.\n\t // reset value to one before we thought we could use cache...\n\t mayCache = mc;\n\t SWC swc = new SWC (this, proxy.getOffset (), request, requestBuffer,\n\t\t\t tlh, clientResourceHandler, rh);\n\t swc.establish ();\n\t} else {\n\t resourceEstablished (rh);\n\t}\n }", "@Override\n public CompletionStage<Result> call(final Http.Context ctx) {\n final RequestHookRunner hookRunner = injector.instanceOf(RequestHookRunner.class);\n HttpRequestStartedHook.runHook(hookRunner, ctx);\n return delegate.call(ctx)\n .thenCompose(result -> hookRunner.waitForHookedComponentsToFinish()\n .thenApplyAsync(unused -> HttpRequestEndedHook.runHook(hookRunner, result), HttpExecution.defaultContext()));\n }", "@Override\r\n\tpublic void processWorkload() {\n this.spawnUser(periods.get(0).getPeriodStartTimePoint());\t\r\n\t}", "public void willStartOne() {\n startOne();\n }", "public void addRequest( Request currentRequest)\r\n\t{\r\n\t\r\n\t\tif(availableElevadors.isEmpty())\r\n\t\t{\r\n\t\t\tSystem.out.println(\"--------- Currently all elevators in the system are Occupied ------\");\t\r\n\t\t\tSystem.out.println(\"--------- Request to Go to Floor \" + currentRequest.getDestinationflour()+\" From Floor\" + currentRequest.getCurrentFlour() +\" has been added to the System --------\");\r\n\t\t\tcheckAvaliableElevators();\t\r\n\t\t}\r\n\t\t\r\n\t\tprocessRequest(currentRequest);\t\t\r\n\t\t\r\n\t}", "Response hi(Request request) {\n return hi(request, true);\n }", "OptimizeResponse() {\n\n\t}", "SiteWriterTemplate startBunch() throws Exception;", "protected void checkForFirstRequest() throws IOException {\n if(firstRequest) {\n while (!connected || (serveResponse = in.readLine()).isEmpty());\n firstRequest = false;\n }\n }", "@Override\n\tprotected void addRequestedGenerators() {\n\t\tList<Generator> allRequestedGenerators = request.getRequestedGenerators();\n\t\tif(allRequestedGenerators.isEmpty()){\n\t\t\theuristics.add(new BadFloatGenerator( (NumberSpecification<Double>) request.getNumberSpecification(), seed));\n\t\t} else{\n\t\t\tfor (Generator requestedGenerator : allRequestedGenerators) {\n\t\t\t\tif(requestedGenerator.getGeneratorName().trim().toUpperCase().equals(\"BadFloat\".trim().toUpperCase())){\n\t\t\t\t\theuristics.add(new BadFloatGenerator((NumberSpecification<Double>) request.getNumberSpecification(), seed));\n\t\t\t\t} else{\n\t\t\t\t\tIllegalGenerator illegalGenerator = ResponseFactory.INSTANCE.createIllegalGenerator(requestedGenerator.getGeneratorName(), \"unknown generator\");\n\t\t\t\t\tgetWarningsPart().getIllegalGenerators().add(illegalGenerator);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "@Override\n\tprotected Object handleUserinfoEndpointRequest(String requestId) {\n\t\tif(!receivedRefreshRequest) {\n\t\t\t//we don't want the test to be marked as completed if the client sends a userinfo\n\t\t\t//request before sending a refresh request\n\t\t\t//this is not the userinfo request we are looking for\n\t\t\treceivedUserinfoRequest = false;\n\t\t}\n\t\treturn super.handleUserinfoEndpointRequest(requestId);\n\t}", "@Override\n public void beforeFirstLogic() {\n }", "public Object dispatchAndWait(IThreadable request)\n {\n if (!running_)\n throw new IllegalStateException();\n\n return strategy_.dispatchAndWait(request);\n }", "public void\t\t\tstartGeneration() throws Exception\n\t{\n\t\tif (RequestGenerator.DEBUG_LEVEL == 1) {\n\t\t\tthis.logMessage(\"Request generator \" + this.rgURI + \" starting.\") ;\n\t\t}\n\t\t\n\t\tthis.generateNextRequest() ;\n\t}", "@FunctionalInterface\npublic interface RequestProcessor\n {\n public enum Status\n {\n CONTINUE, BREAK\n }\n\n /*******************************************************************************************************************\n *\n * Try to process the current request.\n *\n * @param request the request\n * @return {@code CONTINUE} if the next processor should be called, {@code BREAK} if this was the final processor\n * of this request\n *\n ******************************************************************************************************************/\n @Nonnull\n public Status process (@Nonnull Request request)\n throws NotFoundException, IOException, HttpStatusException;\n }", "@Override\n\t\t\tpublic void onNext(GreetingRequest request) {\n\t\t\t\tSystem.out.println(\"GreetingsServiceImpl.greetAll greet rqeuested by \"+request);\n\t\t\t\t\n\t\t\t\t//mimicking delay\n\t\t\t\tThreadUtils.sleep(2000);\n\t\t\t\t\n\t\t\t\t//lets respond back for every request\n\t\t\t\tHuman human = request.getHuman();\n\t\t\t\tresponseObserver.onNext(GreetingResponse.newBuilder().setMessage(\"jai shree ram says \"+human.getFirstName()+\" \"+human.getLastName()).build());\n\t\t\t}", "@SuppressWarnings(\"unchecked\")\r\n\tpublic void execute() {\r\n\t\tlong startTime = System.currentTimeMillis();\r\n\r\n\t\tif (LOG.willLogAtLevel(LogConfiguration.DEBUG)) {\r\n\t\t\tLOG.debug(String.format(\"Entering AbstractAuthenticator, userid: %s\", ssoUser!=null?ssoUser.getUserName():\"null\"));\r\n\t\t}\r\n\t\tmapHeaderToUserProfileMap();\r\n\r\n\t\tif (AuthenticatorHelper.isVAPLoggedIn(request)) {\r\n\t\t\tString userIdentifier = (String)userProfile.get(AuthenticationConsts.KEY_USER_NAME);\r\n\t\t\tif (LOG.willLogAtLevel(LogConfiguration.DEBUG)) {\r\n\t\t\t\tLOG.debug(String.format(\"User is Logged in, user: %s\", userIdentifier));\r\n\t\t\t}\r\n\t\t\tif (AuthenticatorHelper.isForceCleanupSession(request)) {\r\n\t\t\t\tif (LOG.willLogAtLevel(LogConfiguration.DEBUG)) {\r\n\t\t\t\t\tLOG.debug(String.format(\"Force session clean up, userid: %s\", userIdentifier));\r\n\t\t\t\t}\r\n\t\t\t\tAuthenticatorHelper.cleanupSession(request);\r\n\t\t\t} else if (isDiffUser()) {\r\n\t\t\t\tif (LOG.willLogAtLevel(LogConfiguration.DEBUG)) {\r\n\t\t\t\t\tLOG.debug(String.format(\"Different User, userid: %s\", userIdentifier));\r\n\t\t\t\t}\r\n\t\t\t\tuserProfile.put(AuthenticationConsts.KEY_LAST_LOGIN_DATE,\r\n\t\t\t\t\t\t\t\tnew Date());\r\n\t\t\t\tAuthenticatorHelper.cleanupSession(request);\r\n\t\t\t} else if (isUserRecentUpdated()) {\r\n\t\t\t\tif (LOG.willLogAtLevel(LogConfiguration.DEBUG)) {\r\n\t\t\t\t\tLOG.debug(String.format(\"User is updated, userid: %s\", userIdentifier));\r\n\t\t\t\t}\r\n\t\t\t\t// not cleanup session per CR 86\r\n\t\t\t\t//AuthenticatorHelper.cleanupSession(request);\r\n\t\t\t} else if (AuthenticatorHelper.isForceInitSession(request)) {\r\n\t\t\t\tif (LOG.willLogAtLevel(LogConfiguration.DEBUG)) {\r\n\t\t\t\t\tLOG.debug(String.format(\"Force initSession tag found, userid: %s\", userIdentifier));\r\n\t\t\t\t}\r\n\t\t\t\t// not cleanup session per CR 86\r\n\t\t\t\t//AuthenticatorHelper.cleanupSession(request);\r\n\t\t\t} else if (AuthenticatorHelper.isSiteChanged(request)) {\r\n\t\t\t\tif (LOG.willLogAtLevel(LogConfiguration.DEBUG)) {\r\n\t\t\t\t\tLOG.debug(String.format(\"Site is changed, userid: %s\", userIdentifier));\r\n\t\t\t\t}\r\n\t\t\t\t// not cleanup session per CR 86\r\n\t\t\t\t//AuthenticatorHelper.cleanupSession(request);\r\n\t\t\t} else {\r\n\t\t\t\tif (LOG.willLogAtLevel(LogConfiguration.DEBUG)) {\r\n\t\t\t\t\tLOG.debug(String.format(\"Other Cases, userid: %s\", userIdentifier));\r\n\t\t\t\t}\r\n\t\t\t\t// keep the current HTTP header user profile\r\n\t\t\t\tMap httpHeaderUserProfile = userProfile;\r\n\r\n\t\t\t\t// fetch userProfile from session, only need to refresh this user profile map\r\n\t\t\t\tuserProfile = (Map)request.getSession()\r\n\t\t\t\t\t\t\t\t\t\t .getAttribute(AuthenticationConsts.USER_PROFILE_KEY);\r\n\t\t\t\t// get groups from userProfile\r\n\t\t\t\tList<String> sessionGroups = (List<String>)userProfile.get(AuthenticationConsts.KEY_USER_GROUPS);\r\n\t\t\t\trefreshLocaleRelatedGroups(sessionGroups);\r\n\r\n\t\t\t\t// refresh user timezone\r\n\t\t\t\trefreshUserTimezone(userProfile, httpHeaderUserProfile);\r\n\r\n\t\t\t\tuserName = (String)userProfile.get(AuthenticationConsts.KEY_USER_NAME);\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tif (LOG.willLogAtLevel(LogConfiguration.DEBUG)) {\r\n\t\t\t\tLOG.debug(String.format(\"User is logging in as: %s\", ssoUser!=null?ssoUser.getUserName():\"null\"));\r\n\t\t\t}\r\n\t\t\tuserProfile.put(AuthenticationConsts.KEY_LAST_LOGIN_DATE,\r\n\t\t\t\t\t\t\tnew Date());\r\n\t\t}\r\n\r\n\r\n\t\t// Set the SPFAuthType attribute before calling group service so the group definitions can\r\n\t\t// use its value.\r\n\t\tsetAuthTypeProfileAttribute();\r\n\r\n\t\ttry {\r\n\t\t\t// Retrieve user group from UGS to SSOUser\r\n\t\t\t// and synchronous to VAP user, and return the\r\n\t\t\t// updated vap user\r\n\t\t\tUser updatedVAPUser = syncVAPUser();\r\n\t\t\tsaveUserProfile2Session(updatedVAPUser);\r\n\t\t\tuserName = ssoUser.getUserName();\r\n\t\t} catch (Exception ex) {\r\n\t\t\tuserName = null;\r\n\t\t\tLOG.error(\"Invoke Authenticator.execute error: \" + ex.getMessage(),\r\n\t\t\t\t\t ex);\r\n\t\t\trequest.getSession()\r\n\t\t\t\t .setAttribute(AuthenticationConsts.SESSION_ATTR_SSO_ERROR,\r\n \"1\");\r\n\t\t\tRequestContext.getThreadInstance()\r\n\t\t\t\t\t\t .getDiagnosticContext()\r\n\t\t\t\t\t\t .setError(ErrorCode.AUTH001, ex.toString());\r\n\t\t}\r\n\t\tif (LOG.willLogAtLevel(LogConfiguration.DEBUG)) {\r\n\t\t\tLOG.debug(String.format(\"Time spent on AbstractAuthenticator.execute (sec): %s for user: %s\", (System.currentTimeMillis()-startTime)/1000, userName));\r\n\t\t}\r\n\t}", "public void synchronousStart() {\n if (getState() < 500) {\n synchronousPrefetch();\n if (getState() < 500) {\n return;\n }\n }\n synchronousSyncStart(getTimeBase().getTime());\n }", "public void queueEstimationRequest(Request req) {\n queue.add(req);\n\n if (queueNotEmpty.availablePermits() <= 0) {\n // try to not issue too many permits (>1 make the worker spin needlessly)\n queueNotEmpty.release();\n }\n }", "@Override\n public void onStart() {\n game = bwClient.getGame();\n self = game.self();\n intel = IntelligenceAgent.getInstance(game);\n combat = CombatAgent.getInstance(game);\n \n combat.addUnitTypeToModel(UnitClassification.MELEE);\n combat.addUnitTypeToModel(UnitClassification.RANGED);\n combat.loadModels();\n combat.setSkirmish(true);\n\n epoch = 14;\n frameCount = 0;\n Epoch_Cycles = 0;\n skirmVal = false;\n }", "public void handleController(HttpServletRequest request, HttpServletResponse response) {\n AppEngineJobContext context = new AppEngineJobContext(request, false);\n try {\n List<ShardState> shardStates = ShardState.getShardStatesFromJobID(\n ds, context.getJobID());\n MapReduceState mrState = MapReduceState.getMapReduceStateFromJobID(\n ds, context.getJobID());\n \n List<ShardState> activeShardStates = selectActiveShards(shardStates);\n \n aggregateState(mrState, shardStates);\n mrState.setActiveShardCount(activeShardStates.size());\n mrState.setShardCount(shardStates.size());\n \n if (activeShardStates.size() == 0) {\n mrState.setDone();\n } else {\n refillQuotas(context, mrState, activeShardStates);\n }\n mrState.persist();\n \n if (MapReduceState.Status.ACTIVE.equals(mrState.getStatus())) {\n scheduleController(request, context, context.getSliceNumber() + 1);\n } else {\n deleteAllShards(shardStates);\n if (context.hasDoneCallback()) {\n scheduleDoneCallback(\n context.getDoneCallbackQueue(), context.getDoneCallbackUrl(),\n context.getJobID().toString());\n }\n }\n } catch (EntityNotFoundException enfe) {\n log.severe(\"Couldn't find the state for MapReduce: \" + context.getJobID()\n + \". Aborting!\");\n return;\n }\n }", "@Test(expected=IllegalStateException.class)\n public void onRequestBeforeInitialization() {\n onRequest();\n fail(\"cannot do stubbing, Jadler hasn't been initialized yet\");\n }", "private void swarmingPhase() {\n if (prevMaxTimestamp == -1 || client.player.getVs() == null) {\n return;\n }\n final Set<NodeAddress> fathers = ((GroupedOverlayModule<?>) mainOverlay).getNodeGroup(GroupedOverlayModule.fathersGroupName);\n final PrimeNodeReport alreadyRequested = new PrimeNodeReport();\n final Map<Long, Integer> howManyMissingDescriptions = new TreeMap<Long, Integer>();\n // TODO initialize, also, why in parameter and not as return value?\n initiateHowManyMissingDescriptions(howManyMissingDescriptions);\n for (final NodeAddress father : fathers) {\n if (!inboxHistory.keySet().contains(father)) {\n continue;\n }\n // Don't do swarming phase for nodes that didn't get any chunks yet.\n if (inboxHistory.get(father).getLatestTimestamp() <= client.player.getVs()\n .getAvailableDescriptions(client.player.getVs().windowOffset).getLatestTimestamp()) {\n final PrimeNodeReport availableDescriptionsAtFather = inboxHistory.get(father);\n PrimeNodeReport requestToSend = client.player.getVs().getMissingDescriptions().getIntersect(availableDescriptionsAtFather);\n requestToSend = alreadyRequested.getDelta(requestToSend);\n updateRequestAccordingThreshold(howManyMissingDescriptions, requestToSend);\n if (requestToSend.size() == 0) {\n continue;\n }\n requestToSend = requestToSend.getRandomSubset(client.player.getVs().windowOffset - 1, prevMaxTimestamp, r);\n if (requestToSend.size() != 0) {\n requestToSend.playTime = client.player.getVs().windowOffset;\n alreadyRequested.update(requestToSend);\n updateHowManyMissingDescriptions(howManyMissingDescriptions, requestToSend);\n network.send(new PrimeRequestMessage<PrimeNodeReport>(getMessageTag(), network.getAddress(), father, new PrimeNodeReport(\n requestToSend)));\n }\n }\n }\n }", "private void requestFirstHug() {\n new ImageDownloader(this) {\n @Override\n protected void onPostExecute(String filePath) {\n super.onPostExecute(filePath);\n Hug hug = new Hug(\n getString(R.string.first_hug_message),\n filePath,\n System.currentTimeMillis());\n HugDatabaseHelper.insertHug(MainActivity.this, hug);\n }\n }.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR, KramConstant.GOOGLE_SEARCH_URL);\n }", "private void runFullScenario(HttpServletRequest request, HttpServletResponse response) throws IOException, ClassNotFoundException, InterruptedException, QueryExecutionException {\n SimApi.runFullScenario();\n }", "@Override\n public void postBootSetup() {\n }", "public void post() {\n//\t\tif(!supercachequery){\n//\t\t\thandlePostReset();\n//\t\t}\n//\t\tsupercachequery = false;\n\t}", "private RequestManager() {\n\t // no instances\n\t}", "public interface PrefetchAlgorithm {\n Map<Request, Long> schedule(Collection<Request> requests, RatePredictionService ratePredictionService);\n\n void configure(Map<String, String> configuration);\n}", "public void\t\t\tgenerateNextRequest() throws Exception\n\t{\n\t\t// generate a random number of instructions for the request.\n\t\tlong noi =\n\t\t\t(long) this.rng.nextExponential(this.meanNumberOfInstructions) ;\n\t\tRequest r = new Request(this.rgURI + \"-\" + this.counter++, noi) ;\n\t\t// generate a random delay until the next request generation.\n\t\tlong interArrivalDelay =\n\t\t\t\t(long) this.rng.nextExponential(this.meanInterArrivalTime) ;\n\n\t\tif (RequestGenerator.DEBUG_LEVEL == 2) {\n\t\t\tthis.logMessage(\n\t\t\t\t\t\"Request generator \" + this.rgURI + \n\t\t\t\t\t\" submitting request \" + r.getRequestURI() + \" at \" +\n\t\t\t\t\tTimeProcessing.toString(System.currentTimeMillis() +\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tinterArrivalDelay) +\n\t\t\t\" with number of instructions \" + noi) ;\n\t\t}\n\t\t\n\t\t// submit the current request.\n\t\tthis.rsop.sendRequestAndNotify(r) ;\n\t\t// schedule the next request generation.\n\t\tthis.nextRequestTaskFuture =\n\t\t\tthis.scheduleTask(\n\t\t\t\tnew AbstractComponent.AbstractTask() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t((RequestGenerator)this.getOwner()).\n\t\t\t\t\t\t\t\tgenerateNextRequest() ;\n\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\tthrow new RuntimeException(e) ;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\tTimeManagement.acceleratedDelay(interArrivalDelay),\n\t\t\t\tTimeUnit.MILLISECONDS) ;\n\t\t\n\t}", "public void ondemandSetupIsDone();", "@Override\n public Object run() throws ZuulException {\n HttpServletRequest request = RequestContext.getCurrentContext().getRequest();\n logger.info(\"request-> {} request uri -> {}\", request, request.getRequestURI());\n\n return null;\n }" ]
[ "0.6539642", "0.6098558", "0.574792", "0.5673036", "0.55091023", "0.5334554", "0.5328945", "0.5305661", "0.5287669", "0.5199041", "0.5196308", "0.51683563", "0.5103165", "0.508161", "0.5075438", "0.50331753", "0.49350587", "0.49346584", "0.49174336", "0.4915401", "0.49085385", "0.48907396", "0.48720115", "0.48361015", "0.48260987", "0.48110545", "0.4802724", "0.47850215", "0.47831824", "0.4776497", "0.47720084", "0.47672778", "0.47639024", "0.47574273", "0.47569978", "0.472758", "0.4723022", "0.4715941", "0.47142124", "0.47106534", "0.4709118", "0.47067037", "0.4703979", "0.4699186", "0.46987557", "0.46856955", "0.4684334", "0.46694952", "0.46646154", "0.46602035", "0.4647896", "0.4641905", "0.46398717", "0.46386704", "0.46370116", "0.46361628", "0.46327904", "0.46322823", "0.46311897", "0.46311525", "0.46218413", "0.46209663", "0.46128953", "0.46034122", "0.4599342", "0.45929974", "0.45905042", "0.45903876", "0.45773965", "0.45752195", "0.45668128", "0.45665956", "0.4566492", "0.4554194", "0.45503438", "0.4546731", "0.45422488", "0.45394933", "0.453614", "0.45339605", "0.45339206", "0.45287722", "0.45277953", "0.45172623", "0.4514798", "0.45146027", "0.45090687", "0.45045182", "0.45022956", "0.45022678", "0.4496429", "0.44834182", "0.44829914", "0.44815364", "0.44780445", "0.4475778", "0.44729355", "0.44693735", "0.4463774", "0.4463303", "0.44555056" ]
0.0
-1
App Engine does not currently invoke this method.
@Override public void contextDestroyed(ServletContextEvent event) { if (connection == null) { return; } try { connection.close(); } catch (IOException io) { if (sc != null) { sc.log("contextDestroyed ", io); } } connection = null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void onFirstUse() {}", "@Override\r\n\tpublic void engine() {\r\n\t\t// TODO Auto-generated method stub\t\t\r\n\t}", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void execute(ActionContext ctx) {\n\t\t\r\n\t}", "@java.lang.Override\n public boolean hasAppEngineVersion() {\n return stepInfoCase_ == 22;\n }", "@Override\n\tpublic int method() {\n\t\treturn 0;\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "public boolean method_208() {\r\n return false;\r\n }", "@Override\r\n\tprotected void execute() {\r\n\t}", "public EventLoop method_4094() {\n return null;\n }", "protected void invokeInternal(XTeeMessage<Document> request, XTeeMessage<Element> response) throws Exception {\n throw new IllegalStateException(\"You must override either the 'invokeInternal' or the 'invokeInternalEx' method!\");\n }", "@java.lang.Override\n public boolean hasAppEngineVersion() {\n return stepInfoCase_ == 22;\n }", "@Override\n protected void execute() {\n }", "@Override\n protected void execute() {\n }", "@Override\n protected void execute() {\n }", "@Override\r\n\tpublic void engine() {\n\t\t\r\n\t}", "@Override\n\t\tprotected void onPreExecute() \n\t\t{\n\t\t}", "protected void doManaged() {\n // default is no-op\n }", "@Override\n protected void appStart() {\n }", "@Override\r\n\t\t\tpublic void onRequest() {\n\t\t\t\t\r\n\t\t\t}", "@Override\n\tpublic void OnRequest() {\n\t\t\n\t}", "@Override\n\tprotected void executeGet(GetRequest request, OperationResponse response) {\n\t}", "@Override\n\tprotected final void onSubmit()\n\t{\n\t}", "@Override\n public void perish() {\n \n }", "public boolean method_196() {\r\n return false;\r\n }", "@Override\n protected void execute() {\n \n }", "@Override\n\t\t\t\t\t\t\tpublic void appUpdateFaild() {\n\t\t\t\t\t\t\t\thandler.sendEmptyMessage(1);\n\t\t\t\t\t\t\t}", "boolean invokeOperation() {\n return false;\n }", "private RESTBackend()\n\t\t{\n\t\t\t\n\t\t}", "@Override\r\npublic int method() {\n\treturn 0;\r\n}", "protected void onBeginRequest()\n\t{\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n protected void execute() {\n \n }", "@Override\r\n\tpublic Response invoke() {\n\t\treturn null;\r\n\t}", "@Override\r\n\t\tprotected void onPreExecute() {\n\t\t}", "protected void execute() {}", "@Override\r\n\tpublic void method() {\n\t\r\n\t}", "@Override\n protected void execute() {\n\n }", "public void method_4270() {}", "public void backEndProcesses() {\n\n }", "@Override\r\n\t\tpublic void action()\r\n\t\t{\r\n// throw new UnsupportedOperationException(\"Not supported yet.\");\r\n\t\t}", "@Override\n protected void executeLowLevelRequest() {\n doPutItem();\n }", "@Override\r\n\tpublic void execute(HttpServletRequest request, HttpServletResponse response) throws Exception {\n\t\t\r\n\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\n\t\tprotected void onPreExecute() {\n\t\t}", "public boolean method_216() {\r\n return false;\r\n }", "public void method_201() {}", "@Override\n protected void prot() {\n }", "@Override\n\t\t\tpublic void onPreSubmit() {\n\t\t\t}", "@Override\n\t\t\tpublic void onPreSubmit() {\n\t\t\t}", "protected void execute() {\n\t\t\n\t}", "@Override\r\n public boolean isSafe() {\n return false;\r\n }", "@Override\n\t protected void onPreExecute() {\n\t }", "@Override\n\t\t\tprotected void onPreExecute()\n\t\t\t{\n\n\t\t\t}", "protected void execute() {\r\n }", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "@Override\n public int getMethodCount()\n {\n return 1;\n }", "public boolean method_198() {\r\n return false;\r\n }", "@Override\n\tprotected void postRun() {\n\n\t}", "protected void execute() {\n \t// literally still do nothing\n }", "public void referToGP(){\r\n\t\t//here is some code that we do not have access to\r\n\t}", "public boolean method_218() {\r\n return false;\r\n }", "public boolean method_4093() {\n return false;\n }", "public void service() {\n\t}", "@Override\n public void feedingHerb() {\n\n }", "public abstract void engineWork() throws Exception;", "@Override\n\tpublic void checkUpdateClient() {\n\t}", "protected void execute() {\n\n\t}", "public boolean method_4088() {\n return false;\n }", "@Override\r\n\t\tprotected void run() {\n\t\t\t\r\n\t\t}", "public void request() {\n }", "@Override\n\t\t\tpublic void onPreExecute() {\n\t\t\t\t\n\t\t\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\r\n\tprotected void onPreExecute() {\n\t}", "@Override\n public void Execute() {\n\n }", "protected void execute() {\n\t}", "public boolean method_214() {\r\n return false;\r\n }", "@Override\n\tpublic void preProcessAction(GwtEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override \r\n public boolean needsEmfService() { return false; }", "public static void staticMethod() {\n Log.e(\"LOG_TAG\", \"Company: STATIC Instance method\");\n }", "protected void execute()\n {\n }", "protected void execute()\n\t{\n\t}", "public boolean method_194() {\r\n return false;\r\n }", "@Override\n\tpublic void call() {\n\t\t\n\t}", "@Override\r\n\tprotected void processExecute() {\n\r\n\t}", "@Override\r\n public void saveEApplication() {\n }", "protected void doSomethingElse()\r\n {\r\n \r\n }", "@Override\r\n\tpublic void manage() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tprotected void saveContext() {\n\t\t\t\t\r\n\t\t\t}", "protected void onAfterCreateApplication() {\n\n\t}", "@Override\r\n\tprotected void doPre() {\n\t\t\r\n\t}", "protected void execute() {\n }", "protected void execute() {\n }", "protected void execute() {\n }", "protected void execute() {\n }", "protected void execute() {\n }", "protected void execute() {\n }", "protected void execute() {\n }" ]
[ "0.57595384", "0.5557935", "0.55287725", "0.5523616", "0.55192316", "0.5507273", "0.5499211", "0.548739", "0.548312", "0.5482735", "0.547717", "0.54659057", "0.5465577", "0.5465577", "0.5465577", "0.54594713", "0.54485685", "0.54437846", "0.54216063", "0.5417127", "0.5414768", "0.54143995", "0.5411649", "0.54049975", "0.5390116", "0.53899616", "0.53820837", "0.53678226", "0.53617066", "0.53605384", "0.53577816", "0.53564245", "0.53564245", "0.5355599", "0.53488755", "0.5335819", "0.5334779", "0.53301424", "0.5325776", "0.5325718", "0.532398", "0.5317188", "0.5301575", "0.5299655", "0.5298668", "0.528383", "0.52745545", "0.5271134", "0.5265709", "0.52622557", "0.52622557", "0.52616584", "0.5258402", "0.5251951", "0.5250928", "0.52502", "0.52387285", "0.52387285", "0.52359676", "0.52283007", "0.5227073", "0.522277", "0.5213783", "0.52136266", "0.5212821", "0.5202855", "0.5198759", "0.5192161", "0.51859564", "0.51822734", "0.5181031", "0.51757485", "0.51754546", "0.5174045", "0.5173809", "0.5173469", "0.51699656", "0.51697034", "0.51680344", "0.5160518", "0.51604533", "0.5159976", "0.5157719", "0.51568705", "0.5152285", "0.5150942", "0.5149895", "0.51381713", "0.51365227", "0.51321626", "0.5129783", "0.5125384", "0.5120689", "0.5120487", "0.5115606", "0.5115606", "0.5115606", "0.5115606", "0.5115606", "0.5115606", "0.5115606" ]
0.0
-1
A Spatial Database is in charge of store, delete and retrieve spatial objects. For each object an identifier (i.e. id) is specified, but is is not unique. An identifier can be associated to many spatial object and a spatial object can be associated to many id. The SpatialDatabase is in charge to generate and handle spatial identifier (i.e. spatialId) for each spatial object such that a couple (id, geoId) univocally identifies a spatial object.
public interface ISpatialDatabase { /** * Return the name of the SpatialDatabase * * @return The name of the SpatialDatabase */ String getName(); /** * Retrieve the bounds which contain all the indexed objects. * * @return The bounds */ RectangleLatLng getBounds(); /** * Store the rectangle in the database. * * @param rectangle * @param id */ void storeObject(RectangleLatLng rectangle, String id); /** * Store the point in the database * * @param point * @param id */ void storeObject(PointLatLng point, String id); /** * Store the circle in the database * * @param circle * @param id */ void storeObject(Circle circle, String id); /** * Store the polygon in the database * * @param polygon * @param id */ void storeObject(Polygon polygon, String id); /** * Remove the rectangle associated to the given id from the spatial * database. * * @param rectangle * The rectangle to be removed * @param id * The identifier to be removed * @return True if the removal was successful */ boolean removeObject(RectangleLatLng rectangle, String id); /** * Remove the point associated to the given id from the spatial database. * * @param point * The point to be removed * @param id * The identifier to be removed * @return True if the removal was successful */ boolean removeObject(PointLatLng point, String id); /** * Remove the circle associated to the given id from the spatial database. * * @param circle * The circle to be removed * @param id * The identifier to be removed * @return True if the removal was successful */ boolean removeObject(Circle circle, String id); /** * Remove the polygon associated to the given id from the spatial database. * * @param polygon * The polygon to be removed * @param id * The identifier to be removed * @return True if the removal was successful */ boolean removeObject(Polygon polygon, String id); /** * Deletes all the spatial objects associated to the given id * * @param id * The identifier to be removed * @return True if the database changed its statusF */ boolean removeObject(String id); /** * Retrieves the couple (id, geoId) of all the spatial object that * intersects with the bounds given as input * * @param bounds * @return Map Id->Set&lt;GeoId&gt; resulting from the query */ Multimap<String, String> intersects(RectangleLatLng bounds); /** * Retrieves the couple (id, geoId) of all the spatial object that * intersects with the bounds given as input * * @param bounds * @return Map Id->Set&lt;GeoId&gt; resulting from the query */ Multimap<String, String> intersects(PointLatLng point); /** * Retrieves the couple (id, geoId) of all the spatial object that * intersects with the bounds given as input * * @param bounds * @return Map Id->Set&lt;GeoId&gt; resulting from the query */ Multimap<String, String> intersects(Circle bounds); /** * Retrieves the couple (id, geoId) of all the spatial object that * intersects with the bounds given as input * * @param bounds * @return Map Id->Set&lt;GeoId&gt; resulting from the query */ Multimap<String, String> intersects(Polygon bounds); /** * Return true if the specified identifier id is stored in the * SpatialDatabase * * @param id * @return */ boolean hasGeoInformation(String id); void reset(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void storeObject(Polygon polygon, String id);", "void storeObject(PointLatLng point, String id);", "public static SqlOperatorTable spatialInstance() {\n return SPATIAL.get();\n }", "public interface IdbLocation {\n\n Location createLocation(int _id, String _name); //throws DBException;\n Location setLocation(int _id, String _name);\n boolean deleteLocation(int _id);\n\n static Location getLocation(int _id) {\n return new Location();\n }\n\n static HashMap<Integer, Location> getLocations() { // <id_Location, Location object itself>\n return new HashMap<Integer, Location>();\n }\n \n}", "void storeObject(RectangleLatLng rectangle, String id);", "public void testSpatialQuery(){\n\t\t\r\n\t\tSpatialQueryTest sqt = new SpatialQueryTest();\r\n\t\ttry{\r\n\t\t\tsqt.runSpatialIndexTest();\r\n\t\t}catch(IOException ex){\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t}", "long getWorldId();", "Long getDbId();", "int getShapeId();", "long getWorldid();", "long getWorldid();", "public ObjectID() {\n UUID u = UUID.randomUUID();\n data = storeData(u, IDVersion.SIMPLE);\n }", "public interface SpatialRelationshipGeneratorService {\n public ArrayList<SpatialRelation>[][] getSpatialRelationshipMatrixOfObject(List<GraphicalImageComponent> objectList);\n\n}", "@SuppressWarnings({\"unchecked\"})\n private void loadDataFromOSM() {\n try {\n System.out.println(\">> Attempting to load data from OSM database...\");\n // Load JDBC driver and establish connection\n Class.forName(\"org.postgresql.Driver\");\n String url = \"jdbc:postgresql://localhost:5432/osm_austria\";\n mConn = DriverManager.getConnection(url, \"geo\", \"geo\");\n // Add geometry types to the connection\n PGConnection c = (PGConnection) mConn;\n c.addDataType(\"geometry\", (Class<? extends PGobject>) Class.forName(\"org.postgis.PGgeometry\"));\n c.addDataType(\"box2d\", (Class<? extends PGobject>) Class.forName(\"org.postgis.PGbox2d\"));\n\n // Create statement and execute query\n Statement s = mConn.createStatement();\n\n // Get boundary types\n String query = \"SELECT * FROM boundary_area AS a WHERE a.type IN (8001,8002,8003,8004);\";\n executeSQL(query, s);\n\n query = \"SELECT * FROM landuse_area AS a WHERE a.type IN (5001, 5002);\";\n executeSQL(query, s);\n\n /* // Get landuse types\n\n r = s.executeQuery(query);\n\n while (r.next()) {\n String id = r.getString(\"id\");\n int type = r.getInt(\"type\");\n PGgeometry geom = (PGgeometry) r.getObject(\"geom\");\n\n switch (geom.getGeoType()) {\n case Geometry.POLYGON:\n String wkt = geom.toString();\n org.postgis.Polygon p = new org.postgis.Polygon(wkt);\n if (p.numRings() >= 1) {\n Polygon poly = new Polygon();\n LinearRing ring = p.getRing(0);\n for (int i = 0; i < ring.numPoints(); i++) {\n org.postgis.Point pPG = ring.getPoint(i);\n poly.addPoint((int) pPG.x, (int) pPG.y);\n }\n mObjects.add(new GeoObject(id, type, poly));\n }\n break;\n default:\n break;\n }\n }\n\n // Get natural types\n query = \"SELECT * FROM natural_area AS a WHERE a.type IN (6001, 6002, 6005);\";\n\n r = s.executeQuery(query);\n\n while (r.next()) {\n String id = r.getString(\"id\");\n int type = r.getInt(\"type\");\n PGgeometry geom = (PGgeometry) r.getObject(\"geom\");\n\n switch (geom.getGeoType()) {\n case Geometry.POLYGON:\n String wkt = geom.toString();\n org.postgis.Polygon p = new org.postgis.Polygon(wkt);\n if (p.numRings() >= 1) {\n Polygon poly = new Polygon();\n LinearRing ring = p.getRing(0);\n for (int i = 0; i < ring.numPoints(); i++) {\n org.postgis.Point pPG = ring.getPoint(i);\n poly.addPoint((int) pPG.x, (int) pPG.y);\n }\n mObjects.add(new GeoObject(id, type, poly));\n }\n break;\n default:\n break;\n }\n }\n */\n\n s.close();\n mConn.close();\n } catch (Exception _e) {\n System.out.println(\">> Loading data failed!\\n\" + _e.toString());\n }\n\n }", "public interface GeoData{\r\n /**\r\n * Most geodata sets contain features for which there is no data, or the data is missing.<br>\r\n * In these cases a specific value is often used to represent these special cases.<p>\r\n * The static final value MISSING is the default value used by GeoDatas to represent\r\n * these cases.\r\n * @see #setMissingValueCode\r\n * @see #getMissingValueCode\r\n */\r\n public static final double MISSING = Double.NaN;\r\n\r\n\t\t/** \r\n\t\t * All geodata have a type - this is particularly important when\r\n\t\t * interfacing with other data sources/formats.\r\n\t\t * @see #setDataType\r\n\t\t * @see #getDataType\r\n\t\t */\r\n\t\tpublic static final int CHARACTER = 0;\r\n\t\tpublic static final int INTEGER = 1;\r\n\t\tpublic static final int FLOATING = 2;\r\n \r\n /**\r\n * All GeoData objects can have a name associated with them.<br>\r\n * Typicaly the name will match the Column heading from which the data came from.<br>\r\n * Names can be important when the GeoData is used in thematic maps as this is the\r\n * name that will be placed in the key by default.<br>\r\n * @author James Macgill JM\r\n * @return String The name associated with this GeoData.\r\n */\r\n String getName();\r\n /**\r\n * All GeoData objects can have a name associated with them.<br>\r\n * Typicaly the name will match the Column heading from which the data came from.<br>\r\n * Names can be important when the GeoData is used in thematic maps as this is the\r\n * name that will be placed in the key by default.<br>\r\n *\r\n * @author James Macgill JM\r\n * @param name_ The name to be associated with this GeoData.\r\n */\r\n void setName(String name_);\r\n \r\n \r\n /**\r\n * looks up and matches a value to the specifed feature id.<br>\r\n * Used for example by shaders to obtain vaules for thematic mapping.<br>\r\n *\r\n * @author James Macgill JM\r\n * @param id An int specifying the feature id to retreve a value for.\r\n * @return double The value for the specified id, if no id matches the one given then the value specifed by setMissingValue should be returned.\r\n * @see #setMissingValue\r\n */\r\n double getValue(int id);\r\n \r\n /**\r\n * Looks up and retreves a string for the specifed feature id.<br>\r\n * Used for example by the ToolTip feature in Themes to provide tool tip text for each feature.\r\n *\r\n * @author James Macgill JM\r\n * @param id An int specifying the feature to retreve the text for.\r\n * @return String A piece of text for the chosen feature id. If no id matches then an empty string should be returned \" \"\r\n */\r\n String getText(int id);\r\n \r\n /**\r\n * In order to allow systems to iterate through all of the data contained within the GeoData object this\r\n * method provides a list of all of the IDs which have associated values stored.\r\n *\r\n * @author James Macgill JM\r\n * @return Enumeration An enumeration of all of the IDs which can then be iterated through.\r\n */\r\n Enumeration getIds();\r\n \r\n /**\r\n * Not all posible ids will have a value stored in the GeoData object, so when a call is made to getValue with an id that is\r\n * not stored a special value is returned to signify that a value for this id is missing.<br>\r\n * By default that value is set to MISSING, however this behavoir can be changed by calling this method with a new value.<br>\r\n * \r\n * @see #getMissingValueCode\r\n * @author James Macgill JM\r\n * @param mv A double containing the new value to represent missing data.\r\n */\r\n public void setMissingValueCode(double mv);\r\n \r\n /**\r\n * Not all posible ids will have a value stored in the GeoData object, so when a call is made to getValue with an id that is\r\n * not stored a special value is returned to signify that a value for this id is missing.<br>\r\n * A call to this method will return the current code in use to represent that situation.<br>\r\n *\r\n * @see #setMissingValueCode\r\n * @author James Macgill JM\r\n * @return double The current value representing missing data.\r\n */ \r\n public double getMissingValueCode();\r\n \r\n /**\r\n * A quick statistic relating to the values stored in the GeoData object.<br>\r\n * \r\n * @author James Macgill JM\r\n * @return double The largest value currently stored in this GeoData. The missingValueCode is not included in this test.\r\n */\r\n double getMax();\r\n \r\n /**\r\n * A quick statistic relating to the values stored in the GeoData object.<br>\r\n * \r\n * @author James Macgill JM\r\n * @return double The smallest value currently stored in this GeoData. The missingValueCode is not included in this test.\r\n */\r\n double getMin();\r\n \r\n /**\r\n * The total number of stored id/value pairs stored in this GeoData.\r\n * @author James Macgill JM\r\n * @return int The number of values stored in this GeoData.\r\n */\r\n int getSize();\r\n \r\n /**\r\n * The total number of stored values stored in this GeoData which equal the missing value code.\r\n * @author James Macgill JM\r\n * @return int The number of missing values stored in this GeoData.\r\n */\r\n int getMissingCount();\r\n\r\n\t\t/** \r\n\t\t * Gets the type of data stored in the geodata<br>\r\n\t\t * <ul><li>String - GeoData.CHARACTER</li> \r\n\t\t * <li>Integer - GeoData.INTEGER</li>\r\n\t\t * <li>Double - GeoData.FLOATING</li></ul>\r\n\t\t */\r\n\t\t int getDataType();\r\n\t\t/** \r\n\t\t * Sets the type of data stored in the geodata<br>\r\n\t\t * <ul><li>String - GeoData.character</li> \r\n\t\t * <li>Integer - GeoData.integer</li>\r\n\t\t * <li>Double - GeoData.float</li></ul>\r\n\t\t */\r\n\t\t void setDataType(int type );\r\n}", "int getMapID();", "int getMapID();", "int getMapID();", "int getMapID();", "int getMapID();", "int getMapID();", "int getMapID();", "int getMapID();", "int getMapID();", "int getMapID();", "int getMapID();", "int getMapID();", "int getMapID();", "public void buildLocations() {\n try (PreparedStatement prep = Database.getConnection().prepareStatement(\n \"CREATE TABLE IF NOT EXISTS locations (id TEXT, latitude\"\n + \" REAL, longitude REAL, name TEXT, PRIMARY KEY (id));\")) {\n prep.executeUpdate();\n } catch (final SQLException exc) {\n exc.printStackTrace();\n }\n }", "Location selectByPrimaryKey(Integer locationId);", "@Override\n\tpublic int getPrimaryKey() {\n\t\treturn _locMstLocation.getPrimaryKey();\n\t}", "public abstract Long getId();", "public interface IdCoordinateSource {\n\n /**\n * Get the matching coordinate for the given ID\n *\n * @param id the ID to look up\n * @return matching coordinate\n */\n Optional<Point> getCoordinate(int id);\n\n /**\n * Get the matching coordinates for the given IDs\n *\n * @param ids the IDs to look up\n * @return the matching coordinates\n */\n Collection<Point> getCoordinates(int... ids);\n\n /**\n * Get the ID for the coordinate point\n *\n * @param coordinate the coordinate to look up\n * @return the matching ID\n */\n Optional<Integer> getId(Point coordinate);\n\n /**\n * Returns all the coordinates of this source\n *\n * @return all available coordinates\n */\n Collection<Point> getAllCoordinates();\n\n /**\n * Returns the nearest n coordinate points. If n is greater than four, this method will try to\n * return the corner points of the bounding box.\n *\n * @param coordinate the coordinate to look up\n * @param n number of searched points\n * @return the nearest n coordinates or all coordinates if n is less than all available points\n */\n List<CoordinateDistance> getNearestCoordinates(Point coordinate, int n);\n\n /**\n * Returns the closest n coordinate points to the given coordinate, that are inside a given\n * bounding box, from a collection of all available points. The bounding box is calculated with\n * the given distance. If n is greater than four, this method will try to return the corner points\n * of the bounding box.\n *\n * @param coordinate the coordinate to look up the nearest neighbours for\n * @param n how many neighbours to look up\n * @param distance to the borders of the envelope that contains the coordinates\n * @return the nearest n coordinates to the given point\n */\n List<CoordinateDistance> getClosestCoordinates(\n Point coordinate, int n, ComparableQuantity<Length> distance);\n\n /**\n * Calculates and returns the nearest n coordinate distances to the given coordinate from a given\n * collection of points. If the set is empty or null an empty list is returned. If n is greater\n * than four, this method will try to return the corner points of the bounding box.\n *\n * @param coordinate the coordinate to look up the nearest neighbours for\n * @param n how many neighbours to look up\n * @param coordinates the collection of points\n * @return a list of the nearest n coordinates to the given point or an empty list\n */\n default List<CoordinateDistance> calculateCoordinateDistances(\n Point coordinate, int n, Collection<Point> coordinates) {\n if (coordinates != null && !coordinates.isEmpty()) {\n SortedSet<CoordinateDistance> sortedDistances =\n GeoUtils.calcOrderedCoordinateDistances(coordinate, coordinates);\n return restrictToBoundingBox(coordinate, sortedDistances, n);\n } else {\n return Collections.emptyList();\n }\n }\n\n /**\n * Method for evaluating the found points. This method tries to return the four corner points of\n * the bounding box of the given coordinate. If one of the found points matches the given\n * coordinate, only this point is returned. If the given number of searched points is less than\n * four, this method will only return the nearest n corner points. If the given number of searched\n * points is greater than four, this method will return the four corner points plus the nearest n\n * points to match the number of searched points.\n *\n * <p>To work properly, the given collection of {@link CoordinateDistance}'s should already be\n * sorted by distance.\n *\n * @param coordinate at the center of the bounding box\n * @param distances list of found points with their distances\n * @param numberOfPoints that should be returned\n * @return list of distances\n */\n default List<CoordinateDistance> restrictToBoundingBox(\n Point coordinate, Collection<CoordinateDistance> distances, int numberOfPoints) {\n boolean topLeft = false;\n boolean topRight = false;\n boolean bottomLeft = false;\n boolean bottomRight = false;\n\n List<CoordinateDistance> resultingDistances = new ArrayList<>();\n List<CoordinateDistance> other = new ArrayList<>();\n\n // search for smallest bounding box\n for (CoordinateDistance distance : distances) {\n Point point = distance.getCoordinateB();\n\n // check for bounding box\n if (!topLeft && (point.getX() < coordinate.getX() && point.getY() > coordinate.getY())) {\n resultingDistances.add(distance);\n topLeft = true;\n } else if (!topRight\n && (point.getX() > coordinate.getX() && point.getY() > coordinate.getY())) {\n resultingDistances.add(distance);\n topRight = true;\n } else if (!bottomLeft\n && (point.getX() < coordinate.getX() && point.getY() < coordinate.getY())) {\n resultingDistances.add(distance);\n bottomLeft = true;\n } else if (!bottomRight\n && (point.getX() > coordinate.getX() && point.getY() < coordinate.getY())) {\n resultingDistances.add(distance);\n bottomRight = true;\n } else if (coordinate.equalsExact(point, 1e-6)) {\n // if current point is matching the given coordinate, we need to return only the current\n // point\n\n resultingDistances.clear();\n resultingDistances.add(distance);\n return resultingDistances;\n } else {\n other.add(distance);\n }\n }\n\n // check if n distances are found\n int diff = numberOfPoints - resultingDistances.size();\n\n if (diff > 0) {\n resultingDistances.addAll(other.stream().limit(diff).toList());\n } else if (diff < 0) {\n return resultingDistances.stream().limit(numberOfPoints).toList();\n }\n\n return resultingDistances;\n }\n}", "private void insert(SQLiteDatabase db, String geomText) {\n String sql = \"INSERT INTO \"+TABLE_NAME+\" (id, polygon) VALUES (null, '\"+geomText+\"')\";\n Log.i(\"SQL line\", sql);\n db.execSQL(sql);//insert(TABLE_NAME, null, values);\n }", "public abstract ID getId();", "Geq createGeq();", "public interface IDBPOI {\n\t/** Name of the database */\n static final String DB_NAME = \"discoveryRallye\";\n \n /** Name of the table */\n static final String DB_TABLE_POIS = \"pois\";\n \n /** version number of the database */\n static final int DB_VERSION \t\t= 1;\n \n /** name of the id column */\n static final String ATTR_ID = \"_id\";\n \n /** name of the name column */\n static final String ATTR_NAME = \"name\";\n \n /** name of the longitude column */\n static final String ATTR_LON = \"longitude\";\n \n /** name of the latitude column */\n static final String ATTR_LAT = \"latitude\";\n}", "TCpySpouse selectByPrimaryKey(Integer id);", "@UML(identifier=\"SpatialCapabilities\", specification=ISO_19143)\npublic interface SpatialCapabilities {\n /**\n * Advertises which geometry operands are supported by the service.\n * Geometry operands listed here are defined globally, indicating that\n * all spatial operators know how to process the specified operands.\n *\n * @return geometry operands supported globally by the service.\n */\n @UML(identifier=\"geometryOperand\", obligation=MANDATORY, specification=ISO_19143)\n Collection<? extends ScopedName> getGeometryOperands();\n\n /**\n * Advertises which spatial operators are supported by the service.\n * Keys are spatial operator names and values are geometry operands defined\n * {@linkplain #getGeometryOperands() globally} or locally for each spatial operator,\n * indicating that the specific operator knows how to process the specified operands.\n *\n * @return spatial operators supported by the service.\n *\n * @departure easeOfUse\n * GeoAPI replaces the {@code SpatialOperatorDescription} type by {@code Map.Entry}.\n * It reduces the number of interfaces and makes easy to query the operands for a specific operator.\n */\n @UML(identifier=\"spatialOperator\", obligation=MANDATORY, specification=ISO_19143)\n Map<SpatialOperatorName, List<? extends ScopedName>> getSpatialOperators();\n}", "PrimaryKey createPrimaryKey();", "int getMapPointID();", "protected abstract NativeSQLStatement createNativeGeometryTypeStatement();", "public void storeSnpLocation(Map<String, Set<Location>> snpToLocations) {\n for (String snpRsId : snpToLocations.keySet()) {\n\n Set<Location> snpLocationsFromMapping = snpToLocations.get(snpRsId);\n\n // Check if the SNP exists\n SingleNucleotidePolymorphism snpInDatabase =\n singleNucleotidePolymorphismRepository.findByRsId(snpRsId);\n if(snpInDatabase == null){\n snpInDatabase =\n singleNucleotidePolymorphismQueryService.findByRsIdIgnoreCase(snpRsId);\n }\n\n if (snpInDatabase != null) {\n\n // Store all new location objects\n Collection<Location> newSnpLocations = new ArrayList<>();\n\n for (Location snpLocationFromMapping : snpLocationsFromMapping) {\n\n String chromosomeNameFromMapping = snpLocationFromMapping.getChromosomeName();\n if (chromosomeNameFromMapping != null) {\n chromosomeNameFromMapping = chromosomeNameFromMapping.trim();\n }\n\n Integer chromosomePositionFromMapping = snpLocationFromMapping.getChromosomePosition();\n// if (chromosomePositionFromMapping != null) {\n// chromosomePositionFromMapping = chromosomePositionFromMapping.trim();\n// }\n\n Region regionFromMapping = snpLocationFromMapping.getRegion();\n String regionNameFromMapping = null;\n if (regionFromMapping != null) {\n if (regionFromMapping.getName() != null) {\n regionNameFromMapping = regionFromMapping.getName().trim();\n }\n }\n\n // Check if location already exists\n Location existingLocation =\n locationRepository.findByChromosomeNameAndChromosomePositionAndRegionName(\n chromosomeNameFromMapping,\n chromosomePositionFromMapping,\n regionNameFromMapping);\n\n\n if (existingLocation != null) {\n newSnpLocations.add(existingLocation);\n }\n // Create new location\n else {\n Location newLocation = locationCreationService.createLocation(chromosomeNameFromMapping,\n chromosomePositionFromMapping,\n regionNameFromMapping);\n\n newSnpLocations.add(newLocation);\n }\n }\n\n // If we have new locations then link to snp and save\n if (newSnpLocations.size() > 0) {\n\n // Set new location details\n snpInDatabase.setLocations(newSnpLocations);\n // Update the last update date\n snpInDatabase.setLastUpdateDate(new Date());\n singleNucleotidePolymorphismRepository.save(snpInDatabase);\n }\n else {getLog().warn(\"No new locations to add to \" + snpRsId);}\n\n }\n\n // SNP doesn't exist, this should be extremely rare as SNP value is a copy\n // of the variant entered by the curator which\n // by the time mapping is started should already have been saved\n else {\n // TODO WHAT WILL HAPPEN FOR MERGED SNPS\n getLog().error(\"Adding location for SNP not found in database, RS_ID:\" + snpRsId);\n throw new RuntimeException(\"Adding location for SNP not found in database, RS_ID: \" + snpRsId);\n\n }\n\n }\n }", "public Object getID()\n {\n return data.siObjectID;\n }", "public IndexableDocument() {\n\t\tthis.id=new ObjectId();\n\t}", "org.hl7.fhir.Integer getCoordinateSystem();", "public abstract long getId();", "public abstract long getId();", "public IdMap() {\n\t\tthis.add(new TextItems());\n\t\tthis.add(new DateTimeEntity());\n\t\tthis.add(EntityCreator.createJson(false));\n\t\tthis.add(EntityCreator.createJson(true));\n\t\tthis.add(new ObjectMapEntry());\n\t\tthis.add(EntityCreator.createXML());\n\t}", "public interface SimpleCityDao {\n\n void insertWithIdGenerate(SimpleCity simpleCity);\n\n void insert(SimpleCity simpleCity);\n\n void update(SimpleCity simpleCity);\n\n void deleteById(Long id);\n\n SimpleCity findById(Long id);\n}", "public int getSensorId();", "Long getId();", "Long getId();", "Long getId();", "public void deleteCoordinates() {\n this.openWriteableDB();\n db.delete(COORD_TABLE, null, null);\n this.close();\n }", "public interface GLId {\n public int generateTexture();\n\n public void glGenBuffers(int n, int[] buffers, int offset);\n\n public void glDeleteTextures(int n, int[] textures, int offset);\n\n public void glDeleteBuffers(int n, int[] buffers, int offset);\n\n public void glDeleteFramebuffers(int n, int[] buffers, int offset);\n}", "public interface DcSquadDAO {\n /**\n * Insert one <tt>DcSquadDO</tt> object to DB table <tt>dc_squad</tt>, return primary key\n *\n * <p>\n * The sql statement for this operation is <br>\n * <tt>insert into dc_squad(squad_name,squad_desc,axiser,cubers,followers,investors,status,gmt_create,gmt_modify,attention) values (?, ?, ?, ?, ?, ?, ?, CURRENT_TIMESTAMP, CURRENT_TIMESTAMP, ?)</tt>\n *\n *\t@param dcSquad\n *\t@return long\n *\t@throws DataAccessException\n */\n public long insert(DcSquadDO dcSquad) throws DataAccessException;\n\n /**\n * Query DB table <tt>dc_squad</tt> for records.\n *\n * <p>\n * The sql statement for this operation is <br>\n * <tt>select * from dc_squad</tt>\n *\n *\t@return List<DcSquadDO>\n *\t@throws DataAccessException\n */\n public List<DcSquadDO> load() throws DataAccessException;\n\n /**\n * Query DB table <tt>dc_squad</tt> for records.\n *\n * <p>\n * The sql statement for this operation is <br>\n * <tt>select * from dc_squad where (id = ?)</tt>\n *\n *\t@param id\n *\t@return DcSquadDO\n *\t@throws DataAccessException\n */\n public DcSquadDO loadById(long id) throws DataAccessException;\n\n /**\n * Query DB table <tt>dc_squad</tt> for records.\n *\n * <p>\n * The sql statement for this operation is <br>\n * <tt>select * from dc_squad where (squad_name = ?)</tt>\n *\n *\t@param squadName\n *\t@return DcSquadDO\n *\t@throws DataAccessException\n */\n public DcSquadDO loadByName(String squadName) throws DataAccessException;\n\n /**\n * Update DB table <tt>dc_squad</tt>.\n *\n * <p>\n * The sql statement for this operation is <br>\n * <tt>update dc_squad set squad_name=?, squad_desc=?, axiser=?, cubers=?, followers=?, investors=?, status=?, gmt_modify=CURRENT_TIMESTAMP where (id = ?)</tt>\n *\n *\t@param dcSquad\n *\t@return int\n *\t@throws DataAccessException\n */\n public int update(DcSquadDO dcSquad) throws DataAccessException;\n\n /**\n * Delete records from DB table <tt>dc_squad</tt>.\n *\n * <p>\n * The sql statement for this operation is <br>\n * <tt>delete from dc_squad where (id = ?)</tt>\n *\n *\t@param id\n *\t@return int\n *\t@throws DataAccessException\n */\n public int deleteById(long id) throws DataAccessException;\n\n /**\n * Query DB table <tt>dc_squad</tt> for records.\n *\n * <p>\n * The sql statement for this operation is <br>\n * <tt>select * from dc_squad where ((squad_name = ?) AND (axiser = ?) AND (cubers = ?) AND (followers = ?) AND (investors = ?) AND (status = ?) AND (gmt_create = ?) AND (gmt_modify = ?))</tt>\n *\n *\t@param squadName\n *\t@param axiser\n *\t@param cubers\n *\t@param followers\n *\t@param investors\n *\t@param status\n *\t@param gmtCreate\n *\t@param gmtModify\n *\t@param pageSize\n *\t@param pageNum\n *\t@return PageList\n *\t@throws DataAccessException\n */\n public PageList query(String squadName, String axiser, String cubers, String followers,\n String investors, String status, Date gmtCreate, Date gmtModify,\n int pageSize, int pageNum) throws DataAccessException;\n\n /**\n * Update DB table <tt>dc_squad</tt>.\n *\n * <p>\n * The sql statement for this operation is <br>\n * <tt>update dc_squad set attention=? where (id = ?)</tt>\n *\n *\t@param attention\n *\t@param id\n *\t@return int\n *\t@throws DataAccessException\n */\n public int updateAttention(long attention, long id) throws DataAccessException;\n\n}", "public DataPersistence() {\n storage = new HashMap<>();\n idCounter = 0;\n }", "public void buildLocation() {\n try (PreparedStatement prep = Database.getConnection()\n .prepareStatement(\"CREATE TABLE IF NOT EXISTS location (location_name\"\n + \" TEXT, lat REAL, lon REAL PRIMARY KEY (location_name));\")) {\n prep.executeUpdate();\n } catch (final SQLException e) {\n e.printStackTrace();\n }\n }", "private MapDBLabelToId() {\n\t\tproperties = new ProjectProperties(this.getClass());\n\n\t\tmap = db.getCollection(COLLECTION_NAME);\n\t\t// commitFrequency = properties.getInt(\"mapdb.commit\");\n\t}", "java.lang.String getDatabaseId();", "@Override\n protected void set(java.util.Collection<org.tair.db.locusdetail.ILocusDetail> list) {\n loci = list;\n // Add the primary keys to the serialized key list if there are any.\n if (loci != null) {\n for (com.poesys.db.dto.IDbDto object : loci) {\n lociKeys.add(object.getPrimaryKey());\n }\n }\n }", "long getId();", "long getId();", "long getId();", "long getId();", "long getId();", "long getId();", "long getId();", "long getId();", "long getId();", "long getId();", "long getId();", "long getId();", "long getId();", "long getId();", "long getId();", "long getId();", "long getId();", "long getId();", "long getId();", "Short getId();", "@Override\n\tpublic void storeLocations(long fleetId, AreaType areaType) throws DBConnectException, LocationRepositoryException {\n\t\tConnection connection = null;\n\t\ttry {\n\t\t\tconnection = DBConnector.getConnection(url);\n\t\t\t\n\t\t\tdelete(connection, fleetId, areaType);\n\t\t\t\n\t\t\tPreparedStatement ps = null;\n\t\t\tResultSet rs = null;\n\t\t\tString sql = \"SELECT id, LocationName, SpeedLimit, IsSafe, SequenceNo, latitude, longitude \"+\n\t\t\t\t\t\t \"FROM LocationsImport \"+\n\t\t\t\t\t\t \"WHERE AreaType = ? \"+\n\t\t\t\t\t\t \"ORDER BY LocationName, SequenceNo \";\n\t\t\ttry {\n\t\t\t\tps = connection.prepareStatement(sql);\n\t\t\t\tint i = 1;\n\t\t\t\tps.setString(i,areaType.name);\n\t\t\t\trs = ps.executeQuery();\n\t\t\t\tLocation currentLocation = null;\n\t\t\t\t\n\t\t\t\twhile (rs.next()) {\n\t\t\t\t\ti = 1;\n\t\t\t\t\tlong id = rs.getLong(i++);\n\t\t\t\t\tString locationName = rs.getString(i++);\n\t\t\t\t\tBigDecimal speedLimit = rs.getBigDecimal(i++);\n\t\t\t\t\tboolean isSafe = rs.getInt(i++)==1;\n\t\t\t\t\tint sequenceNo = rs.getInt(i++);\n\t\t\t\t\tBigDecimal latitude = rs.getBigDecimal(i++);\n\t\t\t\t\tBigDecimal longitude = rs.getBigDecimal(i++);\n\t\t\t\t\tif (currentLocation == null || !currentLocation.isSameAs(locationName)) { // Location has changed\n\t\t\t\t\t\tif (currentLocation != null) {\n\t\t\t\t\t\t\tsave(connection, fleetId, areaType, currentLocation);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcurrentLocation = new Location(id, areaType, locationName, sequenceNo, speedLimit, isSafe, latitude, longitude);\n\t\t\t\t\t\tlogger.log(Level.INFO,\"Started new location \"+locationName);\n\t\t\t\t\t} else {\t// This is another point in the existing currentLocation. Make sure the sequenceNo makes sense, otherwise reject it\n\t\t\t\t\t\tif (currentLocation.isNextInSequence(sequenceNo)) {\n\t\t\t\t\t\t\tcurrentLocation.add(sequenceNo, latitude,longitude);\n\t\t\t\t\t\t\tlogger.log(Level.INFO,\"Added to location \"+locationName+\" sequenceNo \"+sequenceNo+\" number of points \"+currentLocation.getNumberOfPoints());\n\t\t\t\t\t\t} else { \n\t\t\t\t\t\t\tcurrentLocation.markAsBad(\"Incorrect sequence number \"+sequenceNo+\" - it should have been 1 more than \"+currentLocation.getSequenceNo());\n\t\t\t\t\t\t\tlogger.log(Level.INFO,\"Incorrect sequenceNo \"+sequenceNo+\" for location \"+locationName+\" it should have been \"+currentLocation.getSequenceNo()+\"+1\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (currentLocation != null) {\n\t\t\t\t\tsave(connection, fleetId, areaType, currentLocation);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t} catch (SQLException ex) {\n\t\t\t\tString msg = \"Unable to select the locations to import for AreaType \"+areaType+\" using sql \"+sql+\" : SQLException \"+ex.getMessage();\n\t\t\t\tlogger.log(Level.SEVERE,msg,ex);\n\t\t\t\tthrow new LocationRepositoryException(msg,ex);\n\t\t\t} finally {\t\t\n\t\t\t\tif (rs != null) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\trs.close();\n\t\t\t\t\t} catch (Throwable th) {\n\t\t\t\t\t}\n\t\t\t\t\trs = null;\n\t\t\t\t}\n\t\t\t\tif (ps != null) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tps.close();\n\t\t\t\t\t} catch (Throwable th) {\n\t\t\t\t\t}\n\t\t\t\t\tps = null;\n\t\t\t\t}\n\t\t\t}\n\t\t} finally {\n\t\t\tif (connection != null) {\n\t\t\t\ttry {\n\t\t\t\t\tconnection.close();\n\t\t\t\t} catch (Throwable th) {\n\t\t\t\t}\n\t\t\t\tconnection = null;\n\t\t\t}\n\t\t}\n\t}", "private static void mapDbAsstIDs()\r\n {\r\n if (dbIdMap == null) {\r\n dbIdMap = new HashMap<String, Integer>();\r\n dbIdMap.put(\"repair\", 1);\r\n dbIdMap.put(\"fuel\", 2);\r\n dbIdMap.put(\"tuition\", 3);\r\n dbIdMap.put(\"clothing\", 4);\r\n dbIdMap.put(\"registration\", 5);\r\n dbIdMap.put(\"utilities\", 21);\r\n }\r\n }", "Identifier getId();", "public long getWorldid() {\n return worldid_;\n }", "public long getWorldid() {\n return worldid_;\n }", "FeatureId getFeatureId();", "private void mockUpDB() {\n locationDBAdapter.insertLocationData(\n \"ChIJd0UHJHcw2jARVTHgHdgUyrk\",\n \"Baan Thong Luang\",\n \"https://maps.gstatic.com/mapfiles/place_api/icons/lodging-71.png\",\n \"https://maps.google.com/maps/contrib/101781857378275784222/photos\",\n \"CmRSAAAAEegLHnt03YODdRQ658VBWtIhOoz3TjUAj1oVqQIlLq0DkfSttuS-SQ3aOLBBbuFdwKbpkbsrFzMWghgyZeRD-n5rshknOXv6p5Xo3bdYr5FMOUGCy-6f6LYRy1PN9cKOEhBuj-7Dc5fBhX_38N_Sn7OPGhTBRgFIvThYstd7e8naYNPMUS2rTQ\",\n \"GOOGLE\",\n \"236/10 Wualai Road Tumbon Haiya, CHIANG MAI\",\n 18.770709,\n 98.978078,\n 0.0);\n\n }", "public void add(GeometricalObject object);", "void add(GeometricalObject object);", "void storeObject(Circle circle, String id);", "public ArrayList<Station> queryAreaStations(int areaId) throws SQLException {\n\t\tArrayList<Station> stations = new ArrayList<Station>();\n\t\t\n\t\t// query string for all stations of an area\n\t\tString strStatement = \"select stations.\" + COLUMN_ID + \", stations.\" + COLUMN_NAME +\n\t\t\t\", stations.\" + COLUMN_ABBREAVIATION + \", stations.\" + COLUMN_LATITUDE +\n\t\t\t\" , stations.\" + COLUMN_LONGITUDE + \" from \" + mDbName + \".\" + TABLE_AREA + \" as area, \" +\n\t\t\t\" (\tselect distinct stations.\" + COLUMN_ID + \", stations.\" + COLUMN_NAME +\n\t\t\t\", stations.\" + COLUMN_ABBREAVIATION + \", stations.\" + COLUMN_LATITUDE +\n\t\t\t\" , stations.\" + COLUMN_LONGITUDE + \" from \" + mDbName + \".\" + TABLE_AREA_HAS_ROUTES + \" as ahr, \" + \n\t\t\t\" (\tselect stations.\" + COLUMN_ID + \", stations.\" + COLUMN_NAME +\n\t\t\t\", stations.\" + COLUMN_ABBREAVIATION + \", stations.\" + COLUMN_LATITUDE +\n\t\t\t\" , stations.\" + COLUMN_LONGITUDE + \" from \" + mDbName + \".\" + TABLE_ROUTE + \" as route, \" + \n\t\t\t\" (\tselect distinct station.\" + COLUMN_ID + \", station.\" + COLUMN_NAME +\n\t\t\t\", station.\" + COLUMN_ABBREAVIATION + \", station.\" + COLUMN_LATITUDE +\n\t\t\t\" , station.\" + COLUMN_LONGITUDE + \" from \" + mDbName + \".\" + TABLE_ROUTE_HAS_STATIONS + \" as rhs, \" +\n\t\t\tmDbName + \".\" + TABLE_STATION + \" as station ) as stations \" +\n\t\t\t\") as stations ) as stations where area.\" + COLUMN_ID + \"=\" + areaId;\n//\t\tmController.log(strStatement);\n\t\tif (mMysqlConnection == null) {\n\t\t\tmMysqlConnection = DriverManager\n\t\t\t\t\t.getConnection(getConnectionURI());\n\t\t}\n\t\t\t\n\t\tmStatement = mMysqlConnection.createStatement();\n\t\tmResultSet = mStatement.executeQuery(strStatement);\n\t\t\n\t\t// for each result set found, create a new Station instance and store the related information \n\t\t// of the station and add each to the stations list\n\t\twhile (mResultSet.next()) {\n\t\t\tStation station = new Station();\n\t\t\tstation.setId(mResultSet.getInt(COLUMN_ID));\n\t\t\tstation.setName(mResultSet.getString(COLUMN_NAME));\n\t\t\tstation.setAbbreviation(mResultSet.getString(COLUMN_ABBREAVIATION));\n\t\t\tstation.setGeoPoint(mResultSet.getInt(COLUMN_LATITUDE), mResultSet.getInt(COLUMN_LONGITUDE));\n\t\t\t\n\t\t\tstations.add(station);\n\t\t}\n\n\t\tLOGGER.info(\"Read \" + stations.size() + \" stations from DB\");\n\t\treturn stations;\n\t}", "Location getLocationById(long id);", "@Override\n @PersistField(id = true, name = \"id\", readonly = true)\n public int hashCode()\n {\n int positionHash = position == null ? 0 : position.hashCode();\n int worldHash = worldData == null ? 0 : worldData.getName().hashCode();\n return positionHash ^ worldHash << 14;\n }", "int insert(Goodexistsingle record);", "public long getWorldid() {\n return worldid_;\n }", "public long getWorldid() {\n return worldid_;\n }", "public SpecializedGraph_TripleStore(IPSet pSet, Integer dbGraphID) {\n\t\tm_pset = pSet;\n\t\tmy_GID = new DBIDInt(dbGraphID);\n\t}", "@Override\n public void init() {\n this.shapes = new DatabaseShape();\n }" ]
[ "0.57755107", "0.56935", "0.55740756", "0.531495", "0.5117905", "0.5100995", "0.50853384", "0.5017615", "0.4993976", "0.49929026", "0.49929026", "0.4954822", "0.4951328", "0.49190778", "0.49065444", "0.4886437", "0.4886437", "0.4886437", "0.4886437", "0.4886437", "0.4886437", "0.4886437", "0.4886437", "0.4886437", "0.4886437", "0.4886437", "0.4886437", "0.4886437", "0.48843074", "0.48766202", "0.48477972", "0.48417288", "0.48346496", "0.48312053", "0.48200917", "0.48011905", "0.47945043", "0.47868228", "0.47851905", "0.4777222", "0.47634438", "0.4760377", "0.47493994", "0.47402382", "0.47239718", "0.47236985", "0.4721799", "0.4721799", "0.4705836", "0.4701536", "0.46984726", "0.46905416", "0.46905416", "0.46905416", "0.46896222", "0.46840873", "0.4671505", "0.4669335", "0.46587428", "0.46422705", "0.4641889", "0.46405944", "0.463972", "0.463972", "0.463972", "0.463972", "0.463972", "0.463972", "0.463972", "0.463972", "0.463972", "0.463972", "0.463972", "0.463972", "0.463972", "0.463972", "0.463972", "0.463972", "0.463972", "0.463972", "0.463972", "0.46395126", "0.46355182", "0.46139467", "0.46133536", "0.46089512", "0.46089512", "0.46074414", "0.4602949", "0.46001112", "0.45954433", "0.45932984", "0.45929268", "0.45881253", "0.45852005", "0.45811394", "0.4578025", "0.4578025", "0.45751792", "0.45735165" ]
0.7205236
0
Return the name of the SpatialDatabase
String getName();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getDatabaseName();", "java.lang.String getDatabaseName();", "java.lang.String getDatabaseName();", "java.lang.String getDatabaseName();", "@Override\n public String getDatabaseName() {\n return mappings.getDatabaseName();\n }", "public String databaseName();", "@java.lang.Override\n public java.lang.String getDatabaseName() {\n java.lang.Object ref = databaseName_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n databaseName_ = s;\n return s;\n }\n }", "@java.lang.Override\n public java.lang.String getDatabaseName() {\n java.lang.Object ref = databaseName_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n databaseName_ = s;\n return s;\n }\n }", "@java.lang.Override\n public java.lang.String getDatabaseName() {\n java.lang.Object ref = databaseName_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n databaseName_ = s;\n return s;\n }\n }", "@java.lang.Override\n public java.lang.String getDatabaseName() {\n java.lang.Object ref = databaseName_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n databaseName_ = s;\n return s;\n }\n }", "public abstract String getDatabaseName();", "public java.lang.String getDatabaseName() {\n java.lang.Object ref = databaseName_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n databaseName_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getDatabaseName() {\n java.lang.Object ref = databaseName_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n databaseName_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getDatabaseName() {\n java.lang.Object ref = databaseName_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n databaseName_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getDatabaseName() {\n java.lang.Object ref = databaseName_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n databaseName_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public String getDatabaseName(){\n\treturn strDbName;\n }", "public String getDatabaseName () {\n return databaseName;\n }", "protected String getDatabaseName() {\n\t\treturn database;\n\t}", "public String getDatabaseName() {\n return databaseName;\n }", "com.google.protobuf.ByteString\n getDatabaseNameBytes();", "com.google.protobuf.ByteString\n getDatabaseNameBytes();", "com.google.protobuf.ByteString\n getDatabaseNameBytes();", "com.google.protobuf.ByteString\n getDatabaseNameBytes();", "public String getDatabase();", "public String getDatabaseName() {\n return dbName;\n }", "public String getDatabaseName() {\n return txtDatabaseName().getText();\n }", "public String getDatabaseFileName();", "public String getDatabaseName() {\n return this.databaseName;\n }", "public String getDatabaseName()\n {\n return \"assetdr\";\n }", "public String getDBName()\n {\n return dbServer;\n }", "public String getDatabase() {\r\n \t\treturn properties.getProperty(KEY_DATABASE);\r\n \t}", "String getDatabase();", "public String getDbName() {\r\n\t\tif (this.dbname == null)\r\n\t\t\treturn null;\r\n\r\n\t\treturn (String) this.dbname.getSelectedItem();\r\n\t}", "private String getPhysicalDbName() {\n String pdbName =TestConfiguration.getCurrent().getJDBCUrl();\n if (pdbName != null)\n pdbName=pdbName.substring(pdbName.lastIndexOf(\"oneuse\"),pdbName.length());\n else {\n // with JSR169, we don't *have* a protocol, and so, no url, and so\n // we'll have had a null.\n // But we know the name of the db is something like system/singleUse/oneuse#\n // So, let's see if we can look it up, if everything's been properly\n // cleaned, there should be just 1...\n pdbName = (String) AccessController.doPrivileged(new java.security.PrivilegedAction() {\n String filesep = getSystemProperty(\"file.separator\");\n public Object run() {\n File dbdir = new File(\"system\" + filesep + \"singleUse\");\n String[] list = dbdir.list();\n // Some JVMs return null for File.list() when the directory is empty\n if( list != null)\n {\n if(list.length > 1)\n {\n for( int i = 0; i < list.length; i++ )\n {\n if(list[i].indexOf(\"oneuse\")<0)\n continue;\n else\n {\n return list[i];\n }\n }\n // give up trying to be smart, assume it's 0\n return \"oneuse0\";\n }\n else\n return list[0];\n }\n return null;\n }\n });\n \n }\n return pdbName;\n }", "String getVirtualDatabaseName() throws Exception;", "public String getDbName();", "@java.lang.Override\n public com.google.protobuf.ByteString\n getDatabaseNameBytes() {\n java.lang.Object ref = databaseName_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n databaseName_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "@java.lang.Override\n public com.google.protobuf.ByteString\n getDatabaseNameBytes() {\n java.lang.Object ref = databaseName_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n databaseName_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "@java.lang.Override\n public com.google.protobuf.ByteString\n getDatabaseNameBytes() {\n java.lang.Object ref = databaseName_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n databaseName_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "@java.lang.Override\n public com.google.protobuf.ByteString\n getDatabaseNameBytes() {\n java.lang.Object ref = databaseName_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n databaseName_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public void printDatabaseName(){\n Realm realm;\n if(realmConfiguration != null) {\n realm = DatabaseUtilities.buildRealm(this.realmConfiguration);\n } else {\n realm = buildRealm(context);\n }\n String str = realm.getConfiguration().getRealmFileName();\n if(!StringUtilities.isNullOrEmpty(str)){\n L.m(\"Database Name: \" + str);\n }\n }", "public String databaseName() {\n return this.databaseName;\n }", "public com.google.protobuf.ByteString\n getDatabaseNameBytes() {\n java.lang.Object ref = databaseName_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n databaseName_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public com.google.protobuf.ByteString\n getDatabaseNameBytes() {\n java.lang.Object ref = databaseName_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n databaseName_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public com.google.protobuf.ByteString\n getDatabaseNameBytes() {\n java.lang.Object ref = databaseName_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n databaseName_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public com.google.protobuf.ByteString\n getDatabaseNameBytes() {\n java.lang.Object ref = databaseName_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n databaseName_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "java.lang.String getDatabaseId();", "public abstract String getDbNodeName();", "public String getFullName()\n {\n String schema = db.getSchema();\n return (schema!=null) ? schema+\".\"+name : name;\n }", "public String getDatabase() {\r\n return Database;\r\n }", "DbObjectName createDbObjectName();", "public String getDataBaseName() {\r\n\t\treturn dataBaseName + \".db\";\r\n\t}", "public String getType() \t\t\t\t{ return DATABASE_NAME; }", "@Override\r\n\tpublic String getDataBaseName(String[] sql) {\n\t\treturn UsedDataBase.getUsedDataBase();\r\n\t}", "public String getDatabase() {\n return this.database;\n }", "public String getSystemDatabase(String databaseName)\n\t{\n\t\treturn \"template1\";\n\t}", "public String getSearchDatabaseName() throws InvalidFormatException;", "public String getDB() {\n return database;\n }", "public String getDBString();", "public String getDatabase()\n {\n return m_database; \n }", "public String getType() {\n return DATABASE_NAME;\n }", "public String getDB() {\n\t\treturn db;\r\n\t}", "public String getDbName() {\n return dbName;\n }", "public String getDbName() {\n return dbName;\n }", "public String getDb() {\n return db;\n }", "public String getDb() {\n return db;\n }", "public String getDatabaseName()\n {\n return \"product\";\n }", "public static String getDatabase() {\r\n return database;\r\n }", "public String getDatabaseSchemaName() {\n return databaseSchemaName;\n }", "String getSchemaName();", "String getSchemaName();", "public String getDatabaseLocation() {\n return txtDatabaseLocation().getText();\n }", "public static String getDatabaseClassName() {\n\t\tif (xml == null) return null;\n\t\treturn databaseClassName;\n\t}", "public String[] getDatabaseNames() {\n return context.databaseList();\n }", "public java.lang.String getDatabaseId() {\n java.lang.Object ref = databaseId_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n databaseId_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public JTextFieldOperator txtDatabaseName() {\n if (_txtDatabaseName==null) {\n _txtDatabaseName = new JTextFieldOperator((JTextField) lblDatabaseName().getLabelFor());\n }\n return _txtDatabaseName;\n }", "public String getDbName() {\n\t\treturn mDbName;\n\t}", "@Override\n public String getDbString() {\n return null;\n }", "public String getTableDbName() {\r\n return \"t_phase\";\r\n }", "@java.lang.Override\n public java.lang.String getDatabaseId() {\n java.lang.Object ref = databaseId_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n databaseId_ = s;\n return s;\n }\n }", "public String getName() {\n return \"Database_adapter-\"+this.name;\n }", "public String getNoSqlDbProductName() throws StoreFactoryException;", "public String getName() { return \"GDS\"; }", "String getDbPath(String dbName);", "public static String getPathDB() {\n return pathDB;\n }", "public DatabaseMeta getSharedDatabase( String name ) {\n return (DatabaseMeta) getSharedObject( DatabaseMeta.class.getName(), name );\n }", "public String getName() { return _sqlName; }", "protected abstract String getDatabaseID();", "public List<String> getDatabaseNames() {\r\n try {\r\n // get the database\r\n List<String> dbNames = mongo.getDatabaseNames();\r\n logger.logp(Level.INFO, TAG, \"getCollectionNames\", \" databases:\" + dbNames);\r\n return dbNames;\r\n } catch (Exception e) {\r\n logger.logp(Level.SEVERE, TAG, \"getCollectionNames\", e.getMessage());\r\n e.printStackTrace();\r\n }\r\n return null;\r\n }", "public static String getShowDatabaseStatement() {\n return SHOW_DATABASES;\n }", "public JLabelOperator lblDatabaseName() {\n if (_lblDatabaseName==null) {\n _lblDatabaseName = new JLabelOperator(this,\n Bundle.getStringTrimmed(\"org.netbeans.modules.derby.ui.Bundle\", \"LBL_DatabaseName\"));\n }\n return _lblDatabaseName;\n }", "public String getWorldName() {\n\t\treturn MinecraftServer.getServer().worldServers[0].getSaveHandler()\n\t\t\t\t.getWorldDirectoryName();\n\t}", "public String getDbn() {\n return dbn;\n }", "public TableName name();", "private String getHiveDatabase(String namespace) {\n if (namespace == null) {\n return null;\n }\n String tablePrefix = cConf.get(Constants.Dataset.TABLE_PREFIX);\n return namespace.equals(Id.Namespace.DEFAULT.getId()) ? namespace : String.format(\"%s_%s\", tablePrefix, namespace);\n }", "@Override\n public DatabaseType getDatabaseType() {\n return mappings.getDatabaseType();\n }", "public Database(String name) {\r\n\t\tthis.name = name;\r\n\t\tDatabaseUniverse.getAllDatabases().add(this);\r\n\t\tDatabaseUniverse.setDatabaseNumber(1);\r\n\t\tCommandLineMenu.setActiveDatabase(this);\r\n\t}", "String getCassandraName();", "public String getPath() { return db.getPath(); }", "public String getCatalog()\n\t{\n\t\tif (m_dbName != null)\n\t\t\treturn m_dbName;\n\t//\tlog.severe(\"Database Name not set (yet) - call getConnectionURL first\");\n\t\treturn null;\n\t}", "public String getDBTableName()\n\t{\n\t\treturn this.getClass().getSimpleName();\n\t}" ]
[ "0.7664524", "0.7664524", "0.7664524", "0.7664524", "0.7373657", "0.7322456", "0.7044737", "0.7044737", "0.7044737", "0.7044737", "0.7043759", "0.7010696", "0.7010696", "0.7010696", "0.7010696", "0.69023395", "0.6883332", "0.68608105", "0.6824344", "0.6805212", "0.6805212", "0.6805212", "0.6805212", "0.6746117", "0.6729319", "0.6711322", "0.6698485", "0.66759366", "0.6628753", "0.6608346", "0.65914595", "0.6585962", "0.655533", "0.65445644", "0.6527554", "0.65194637", "0.64930147", "0.64930147", "0.64930147", "0.64930147", "0.6468967", "0.6466132", "0.6391855", "0.6391855", "0.6391855", "0.6391855", "0.6380234", "0.6340998", "0.6333556", "0.6320047", "0.63199973", "0.6308643", "0.6285936", "0.6282672", "0.626156", "0.62528956", "0.6192078", "0.61888444", "0.617095", "0.6151479", "0.61485773", "0.61475873", "0.61217225", "0.61217225", "0.61102545", "0.61102545", "0.60876876", "0.6084182", "0.6047259", "0.6042232", "0.6042232", "0.5999119", "0.59843844", "0.59648293", "0.5932447", "0.5905257", "0.5884069", "0.5871064", "0.58683956", "0.5858524", "0.58488005", "0.5829559", "0.5817384", "0.5815301", "0.58055025", "0.5804955", "0.5771058", "0.575855", "0.57526207", "0.5746203", "0.57418233", "0.5739105", "0.57343876", "0.56942517", "0.56926435", "0.56523573", "0.5638448", "0.56324464", "0.56259423", "0.56163293", "0.56116015" ]
0.0
-1
Retrieve the bounds which contain all the indexed objects.
RectangleLatLng getBounds();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public List<Bound> getBounds() {\n return Collections.unmodifiableList(bounds);\n }", "public Bounds getBounds () { return (bounds); }", "public final BoundingBox getBounds() {\n\t\tif (bounds==null) {\n\t\t\tint srsID =( (Geometry)this.get(0).getDefaultGeometry()).getSRID();\n\t\t\tBoundingBox re = new BoundingBoxImpl(\"\"+srsID);\n\t\t\tfor (SimpleFeature f : this) {\n\t\t\t\tre.include(f.getBounds());\n\t\t\t}\n\t\t\tbounds = re;\n\t\t}\n\t\treturn bounds;\n\t}", "public BoundsObject getBounds() {\n\t\treturn null;\n\t}", "public float[] getBounds() {\r\n\t\tfloat[] bounds = {x_ - width_/ 2, x_ + width_ / 2, y_ - height_ / 2, y_ + height_ / 2};\r\n\t\treturn bounds;\r\n\t}", "public double[] get_bounds() {\n System.out.println ( \"section.get_bounds() called\" );\n double[] current_bounds = null;\n if (contours != null) {\n for (int i=0; i<contours.size(); i++) {\n ContourClass contour = contours.get(i);\n double[] cont_bounds = contour.get_bounds();\n if (cont_bounds != null) {\n if (current_bounds == null) {\n current_bounds = new double[4];\n current_bounds[0] = cont_bounds[0];\n current_bounds[1] = cont_bounds[1];\n current_bounds[2] = cont_bounds[2];\n current_bounds[3] = cont_bounds[3];\n } else {\n if (cont_bounds[0] < current_bounds[0]) current_bounds[0] = cont_bounds[0]; // minx\n if (cont_bounds[1] > current_bounds[1]) current_bounds[1] = cont_bounds[1]; // maxx\n if (cont_bounds[2] < current_bounds[2]) current_bounds[2] = cont_bounds[2]; // miny\n if (cont_bounds[3] > current_bounds[3]) current_bounds[3] = cont_bounds[3]; // maxy\n }\n }\n }\n }\n return ( current_bounds );\n }", "public int getBound();", "public Rectangle getBounds() {\r\n return bounds;\r\n }", "public Bounds get() {\n\treturn bounds;\n }", "public ReferencedEnvelope getBounds(){\n if(bounds==null){\n // Create Null envelope\n this.bounds = new ReferencedEnvelope(getCRS());\n // First try to find the BBOX definition in the gisNode directly\n try{\n if(gisNode.hasProperty(INeoConstants.PROPERTY_BBOX_NAME)){\n double[] bbox = (double[])gisNode.getProperty(INeoConstants.PROPERTY_BBOX_NAME);\n this.bounds = new ReferencedEnvelope(bbox[0],bbox[1],bbox[2],bbox[3],crs);\n }else{\n System.err.println(\"No BBox defined in the GeoNeo object\");\n }\n }catch(Exception bbox_e){\n System.err.println(\"Failed to interpret BBOX: \"+bbox_e.getMessage());\n bbox_e.printStackTrace(System.err);\n }\n // Secondly, if bounds is still empty, try find all feature geometries and calculate bounds\n try{\n if(this.bounds.isNull()){\n // Try to create envelope from any data referenced by the gisNode\n for(GeoNode node:getGeoNodes()){\n //TODO: support high dimensions\n this.bounds.expandToInclude(node.getCoords()[0], node.getCoords()[1]);\n }\n }\n }catch(Exception bbox_e){\n System.err.println(\"Failed to interpret BBOX: \"+bbox_e.getMessage());\n bbox_e.printStackTrace(System.err);\n }\n }\n return bounds;\n }", "public List<String> getAllBoundaries() {\n\t\treturn getFieldsOfType(PropertyLocation.class, Boundary.class);\n\t}", "GridEnvelope getLimits();", "public Rectangle getBounds() {\n\t\tif (bounds == null) {\n\t\t\tsuper.getBounds();\n\t\t\tfor (int i = 0; i < getChildren().size(); i++) {\n\t\t\t\tIFigure child = (IFigure) getChildren().get(i);\n\t\t\t\tbounds.union(child.getBounds());\n\t\t\t}\n\t\t}\n\t\treturn bounds;\n\t}", "protected Box getGroupBounds (int idx)\n {\n if (_groupBounds.length <= idx) {\n Box[] obounds = _groupBounds;\n _groupBounds = new Box[idx + 1];\n System.arraycopy(obounds, 0, _groupBounds, 0, obounds.length);\n for (int ii = obounds.length; ii < _groupBounds.length; ii++) {\n _groupBounds[ii] = new Box();\n }\n }\n return _groupBounds[idx];\n }", "public void computeStoredBounds()\n {\n computeSRectangleBound();\n computeCircleBound();\n }", "Rectangle getBounds();", "public List<Float> getBoundingsOfCell() {\n\n\t\tfloat minXPoint = Float.POSITIVE_INFINITY;\n\t\tfloat maxXPoint = Float.NEGATIVE_INFINITY;\n\t\tfloat minYPoint = Float.POSITIVE_INFINITY;\n\t\tfloat maxYPoint = Float.NEGATIVE_INFINITY;\n\n\t\tfor (int i = 0; i < face.edges().size(); i++) {\n\n\t\t\tDCEL_Edge e = (DCEL_Edge) face.edges().get(i);\n\n\t\t\tArc2_Sweep arc = (Arc2_Sweep) e.reference;\n\n\t\t\t// Looking for most left located point of cell\n\t\t\tif (minXPoint > arc.minX().x) {\n\t\t\t\tminXPoint = arc.minX().x;\n\t\t\t}\n\t\t\t// Looking for most right located point of cell\n\t\t\tif (maxXPoint < arc.maxX().x) {\n\t\t\t\tmaxXPoint = arc.maxX().x;\n\t\t\t}\n\t\t\t// Looking for highest located point of cell\n\t\t\tif (minYPoint > arc.minY().y) {\n\t\t\t\tminYPoint = arc.minY().y;\n\t\t\t}\n\t\t\t// Looking for lowest located point of cell\n\t\t\tif (maxYPoint < arc.maxY().y) {\n\t\t\t\tmaxYPoint = arc.maxY().y;\n\t\t\t}\n\n\t\t}\n\n\t\tList<Float> boundings = new ArrayList<Float>();\n\t\tboundings.add(minXPoint);\n\t\tboundings.add(maxXPoint);\n\t\tboundings.add(minYPoint);\n\t\tboundings.add(maxYPoint);\n\t\treturn boundings;\n\n\t}", "public Rectangle getBounds();", "public Rectangle getBounds();", "public Rectangle getBounds(){\r\n return new Rectangle(x, y, w, w);\r\n }", "public abstract Regionlike getGridBounds();", "public abstract Rectangle getBounds();", "public abstract Rectangle getBounds();", "public abstract Rectangle getBounds();", "public RectF getBounds()\n {\n return bounds;\n }", "public MWC.GenericData.WorldArea getBounds()\r\n\t{\n\t\treturn null;\r\n\t}", "@Override\n\tpublic GRectangle getBounds() {\n\t\tif (isEmpty()) {\n\t\t\treturn new GRectangle();\n\t\t} else {\n\t\t\tGPoint p0 = points.get(0);\n\t\t\tdouble minX = p0.getX();\n\t\t\tdouble maxX = minX;\n\t\t\tdouble minY = p0.getY();\n\t\t\tdouble maxY = minY;\n\t\t\tfor (int i = 1; i < size(); i++) {\n\t\t\t\tGPoint p1 = points.get(i);\n\t\t\t\tminX = Math.min(minX, p1.getX());\n\t\t\t\tmaxX = Math.max(maxX, p1.getX());\n\t\t\t\tminY = Math.min(minY, p1.getY());\n\t\t\t\tmaxY = Math.max(maxY, p1.getY());\n\t\t\t}\n\t\t\treturn new GRectangle(minX, maxX, minY, maxY);\n\t\t}\n\t}", "public Bounds getBounds() {\n\t\treturn boss.getBoundsInParent();\n\t}", "public Rectangle getBounds() {\n\treturn new Rectangle((int)x,(int)y,32,32);\n\t}", "public boolean getBoundsVolatile() {\n\t\treturn true;\n\t}", "public Rectangle bounds()\n\t{\n\t\treturn (new Rectangle(x, y, 10, 10));\n\t}", "public Rectangle getBounds() {\n return new Rectangle(x, y, 32, 32);\n }", "public Rectangle getBounds()\n {\n return new Rectangle ((int)x,(int)y,32,32);\n }", "public Map<Integer, Geometry> getBoundary() throws SQLException {\n return retrieveExpected(createNativeBoundaryStatement(), GEOMETRY);\n }", "public DeclaredTypeListNode getBounds()throws ClassCastException;", "public Rectangle get_bounds() {\n return new Rectangle(x,y, width-3, height-3);\n }", "public List<Access> getTypeBounds() {\n return getTypeBoundList();\n }", "public Rectangle getBounds() {\n return super.getBounds();\n }", "@NonNull\n public Rect getBounds() {\n return new Rect(mBounds);\n }", "public Rectangle getBounds() {\n\t\treturn new Rectangle((int) xPos, (int) yPos, (int) width, (int) height);\n\t}", "public Rectangle getBounds() {\n\t\treturn new Rectangle(getX(),getY(),width, width);\n\t}", "@Override\n public Rectangle getBounds() {\n return new Rectangle(x,y,64,64);\n }", "public final native LatLngBounds getBounds() /*-{\n return this.getBounds();\n }-*/;", "@Override\n\tpublic List<StockinExamVO> getInbounds() throws RemoteException {\n\t\tList<StockinExamVO> l=new ArrayList<StockinExamVO>();\n\t\tl.add(new StockinExamVO(\"1\",1,new CommodityLocation(1,1,1,1),City.Beijing));\n\t\treturn l;\n\t}", "public IntegerValue[] getIntegerBoundsForVariable() {\n return select.getIntegerBounds();\n }", "Rectangle getBounds() {\n return new Rectangle(getLocation(), getSize());\n }", "public Rectangle getBounds() {\n\t\t\treturn new Rectangle(x_pos, y_pos, getIconWidth(), getIconHeight());\n\t\t}", "public int[] getSelectionBounds() {\r\n if(selectionBounds == null){\r\n return new int[]{};\r\n }\r\n return selectionBounds;\r\n }", "public PBounds getBoundsReference() {\n\t\tPBounds bds = super.getBoundsReference();\n\t\tgetUnionOfChildrenBounds(bds);\n\n\t\tcachedChildBounds.setRect(bds);\n\t\tdouble scaledIndent = INDENT/renderCamera.getViewScale();\t\t\n\t\tbds.setRect(bds.getX()-scaledIndent,bds.getY()-scaledIndent,bds.getWidth()+2*scaledIndent,bds.getHeight()+2*scaledIndent);\n\t\t\n\t\treturn bds;\n\t}", "public Rectangle getBounds()\r\n\t{\r\n\t\treturn new Rectangle(x, y, w, h);\r\n\t}", "private float[] getControlBounds() {\n\t\tRectangle r = control instanceof Scrollable ? ((Scrollable) control).getClientArea() : control.getBounds();\n\t\tfloat[] controlBounds = new float[]{r.x, r.y, r.x + r.width, r.y + r.height};\n\t\treturn controlBounds;\n\t}", "public Rect getBound() {\n return new Rect((int) (x - radius), (int) (y - radius), (int) (x + radius), (int) (y + radius));\n }", "public Rectangle getBounds() {\r\n return new Rectangle(x, y, 55, 51);\r\n }", "public Rectangle getBounds() {\n return null;\n }", "public abstract Rectangle getSnapshotBounds();", "protected Rectangle determineBounds() {\n return getNetTransform().createTransformedShape( _bounds ).getBounds();\n }", "@Override\n public Rectangle getBounds() {\n return new Rectangle(this.bounds);\n }", "int getBoundsX();", "public double[] getRealBounds(RealVar r) {\n if (empty) {\n throw new UnsupportedOperationException(\"Empty solution. No solution found\");\n }\n return realmap.get(r);\n }", "@Override\r\n\tpublic Rectangle getBound() {\n\t\treturn new Rectangle((int)x, (int)y, (int)width, (int)height);\r\n\t}", "public Rectangle getBounds() {\n return new Rectangle((int) getX() - 20, (int) getY() - 20, 40, 40);\n }", "public Rectangle getBounds() {\n return new Rectangle(getMinX(), getMinY(), getWidth(), getHeight());\n }", "public java.util.List<Dimension> getDimensionsAll();", "public Bounds getLogicalBounds() {\n return getDragContext().getLogicalBounds();\n }", "@Override\n\tpublic Rect getHitbox() \n\t{\n\t\treturn _bounds;\n\t}", "List<Object> getCountExtent();", "public RMRect bounds() { return new RMRect(x(), y(), width(), height()); }", "public Rectangle getBounds() {\n return new Rectangle(x, y, DIAMETER, DIAMETER); // returns a rectangle with its dimensions\r\n }", "public Rectangle getBoundingBox() {\n\t\treturn getBounds();\n\t}", "public Stream<Area> extractBounds() {\n if (getPolygonsAsJson() != null && !getPolygonsAsJson().trim().equalsIgnoreCase(\"[]\")) {\n ObjectMapper mapper = new ObjectMapper();\n try {\n @SuppressWarnings(\"unchecked\")\n ArrayList<LinkedHashMap<String, Double>> bounds = (ArrayList<LinkedHashMap<String, Double>>) mapper.readValue(getPolygonsAsJson(), ArrayList.class);\n return bounds.stream().map(entry -> new Area(entry.get(LEFT), entry.get(TOP), entry.get(RIGHT), entry.get(BOTTOM)));\n } catch (IOException e) {\n throw new EmbryonicException(\"Error parsing json for InterestOfAreas\", e);\n }\n }\n return Stream.empty();\n }", "public RMRect getBounds() { return new RMRect(getX(), getY(), getWidth(), getHeight()); }", "private Bounds getBounds(final Value value, final DebugContext context)\r\n throws ViewerException {\r\n Bounds b = new Bounds();\r\n Method getBoundsMethod = value.getMethod(context,\r\n \"getBounds\", \"java.awt.Rectangle\", null);\r\n Value bounds = value.invokeMethod(context, getBoundsMethod,\r\n null);\r\n String type = value.getType(context).getName(context);\r\n int dot = type.lastIndexOf('.');\r\n if (dot >= 0) {\r\n type = type.substring(dot + 1);\r\n }\r\n b.type = type;\r\n \r\n try {\r\n Method getTextMethod = value.getMethod(context, \"getText\",\r\n \"java.lang.String\", null);\r\n Value result = value.invokeMethod(context, getTextMethod,\r\n null);\r\n if (!result.isNull()) {\r\n String str = result.toString(context);\r\n if (str.length() > 10) {\r\n str = str.substring(0, 7) + \"...\";\r\n }\r\n b.type += \" \\\"\" + str + \"\\\"\";\r\n }\r\n }\r\n catch (ViewerException e) {\r\n }\r\n \r\n b.bounds.x = bounds.getFieldValue(context, \"x\").toInt(context);\r\n b.bounds.y = bounds.getFieldValue(context, \"y\").toInt(context);\r\n b.bounds.width = bounds.getFieldValue(context, \"width\").\r\n toInt(context);\r\n b.bounds.height = bounds.getFieldValue(context, \"height\").\r\n toInt(context);\r\n if (value.isInstanceOf(context, \"java.awt.Container\")) {\r\n Method getComponentsMethod = value.getMethod(context,\r\n \"getComponents\", \"java.awt.Component[]\", null);\r\n Value children;\r\n try {\r\n children = value.invokeMethod(context,\r\n getComponentsMethod, null);\r\n }\r\n catch (ViewerException e) {\r\n b.children = new Bounds[0];\r\n return b;\r\n }\r\n b.children = new Bounds[children.getArrayLength(context)];\r\n for (int c = 0; c < b.children.length; c++) {\r\n b.children[c] = getBounds(children.getArrayElement(context,\r\n c), context);\r\n }\r\n }\r\n return b; \r\n }", "public Rectangle getBounds() {\n\t\tRectangle Box = new Rectangle(x, y, 48, 48);\n\t\treturn Box;\n\t}", "@Test\n public void testBoundsAsCompositesWithEqAndInRestrictions()\n {\n CFMetaData cfMetaData = newCFMetaData(Sort.ASC, Sort.ASC);\n\n ByteBuffer value1 = ByteBufferUtil.bytes(1);\n ByteBuffer value2 = ByteBufferUtil.bytes(2);\n ByteBuffer value3 = ByteBufferUtil.bytes(3);\n Restriction eq = newSingleEq(cfMetaData, 0, value1);\n Restriction in = newSingleIN(cfMetaData, 1, value1, value2, value3);\n PrimaryKeyRestrictions restrictions = new PrimaryKeyRestrictionSet(cfMetaData.comparator);\n restrictions = restrictions.mergeWith(eq).mergeWith(in);\n\n List<Composite> bounds = restrictions.boundsAsComposites(cfMetaData, Bound.START, QueryOptions.DEFAULT);\n assertEquals(3, bounds.size());\n assertComposite(bounds.get(0), value1, value1, EOC.START);\n assertComposite(bounds.get(1), value1, value2, EOC.START);\n assertComposite(bounds.get(2), value1, value3, EOC.START);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.END, QueryOptions.DEFAULT);\n assertEquals(3, bounds.size());\n assertComposite(bounds.get(0), value1, value1, EOC.END);\n assertComposite(bounds.get(1), value1, value2, EOC.END);\n assertComposite(bounds.get(2), value1, value3, EOC.END);\n }", "int getBoundsWidth();", "public String getRectangleBounds() {\n checkAvailable();\n return impl.getRectangle();\n }", "Map<Coord, ICell> getAllCells();", "public Rect bounds(Window w) {\r\n\t\treturn new Rect(c.bounds(w).width,c.bounds(w).height);\r\n\t}", "public java.awt.Rectangle getBounds(){\r\n return new java.awt.Rectangle((int)Math.round(x), (int)Math.round(y), (int)Math.round(getWidth()), (int)Math.round(getHeight()));\r\n }", "@Override\r\n\tpublic Area getBoundsArea() {\n\t\treturn null;\r\n\t}", "private float[] getBounds(TileCoolantPipe tile) {\n float[] bounds = new float[6];\n boolean[] connected = tile.getConnectedSides();\n float hDiameter = cableDiameter / 2.0F;\n for (ForgeDirection dir : ForgeDirection.VALID_DIRECTIONS) {\n float width = 0.5F;\n if (!connected[dir.ordinal()]) {//(sides & dir.flag) != dir.flag) {\n width = hDiameter;\n }\n if (dir.ordinal() % 2 == 0) {\n width *= -1;\n }\n bounds[dir.ordinal()] = 0.5F + width;\n }\n return bounds;\n }", "@Override\n public GRectangle getBounds() {\n return null;\n }", "public void calculateBoundsAABB() {\n\t\tsuper.minY = 0;\n\t\tradius = 0;\n\t\tmaxY = 0;\n\t\tminX = 999999;\n\t\tmaxX = -999999;\n\t\tmaxZ = -99999;\n\t\tminZ = 99999;\n\t\tfor (int j = 0; j < vertexCount; j++) {\n\t\t\tint x = vertexX[j];\n\t\t\tint y = vertexY[j];\n\t\t\tint z = vertexZ[j];\n\t\t\tif (x < minX) {\n\t\t\t\tminX = x;\n\t\t\t}\n\t\t\tif (x > maxX) {\n\t\t\t\tmaxX = x;\n\t\t\t}\n\t\t\tif (z < minZ) {\n\t\t\t\tminZ = z;\n\t\t\t}\n\t\t\tif (z > maxZ) {\n\t\t\t\tmaxZ = z;\n\t\t\t}\n\t\t\tif (-y > super.minY) {\n\t\t\t\tsuper.minY = -y;\n\t\t\t}\n\t\t\tif (y > maxY) {\n\t\t\t\tmaxY = y;\n\t\t\t}\n\t\t\tint radiusSqr = (x * x) + (z * z);\n\t\t\tif (radiusSqr > radius) {\n\t\t\t\tradius = radiusSqr;\n\t\t\t}\n\t\t}\n\t\tradius = (int) Math.sqrt(radius);\n\t\tminDepth = (int) Math.sqrt((radius * radius) + (super.minY * super.minY));\n\t\tmaxDepth = minDepth + (int) Math.sqrt((radius * radius) + (maxY * maxY));\n\t}", "public Rectangle getBound(){\n \tint x = (int)location.getX();\n \tint y = (int)location.getY();\n \t\n \tif(isExploded == false)\n \t\treturn new Rectangle(x, y, image.getWidth(null), image.getHeight(null));\n \telse\n \t\treturn new Rectangle(x,y, 1,1);\n }", "@Test\n public void testBoundsAsCompositesWithMultiEqAndSingleSliceRestrictions()\n {\n CFMetaData cfMetaData = newCFMetaData(Sort.ASC, Sort.ASC, Sort.ASC);\n\n ByteBuffer value1 = ByteBufferUtil.bytes(1);\n ByteBuffer value2 = ByteBufferUtil.bytes(2);\n ByteBuffer value3 = ByteBufferUtil.bytes(3);\n\n // (clustering_0, clustering_1) = (1, 2) AND clustering_2 > 3\n Restriction multiEq = newMultiEq(cfMetaData, 0, value1, value2);\n Restriction singleSlice = newSingleSlice(cfMetaData, 2, Bound.START, false, value3);\n PrimaryKeyRestrictions restrictions = new PrimaryKeyRestrictionSet(cfMetaData.comparator);\n restrictions = restrictions.mergeWith(multiEq).mergeWith(singleSlice);\n\n List<Composite> bounds = restrictions.boundsAsComposites(cfMetaData, Bound.START, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), value1, value2, value3, EOC.END);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.END, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), value1, value2, EOC.END);\n }", "public abstract double[] getUpperBound();", "public Range findRangeBounds(CategoryDataset dataset) { return findRangeBounds(dataset, true); }", "public void testFindRangeBounds() {\n XYBlockRenderer renderer = new XYBlockRenderer();\n XYSeriesCollection dataset = new XYSeriesCollection();\n XYSeries series = new XYSeries(\"S1\");\n series.add(1.0, null);\n dataset.addSeries(series);\n Range r = renderer.findRangeBounds(dataset);\n }", "final int getNumberOfBoundedBoundSymbols() {\n if (this.boundedBoundSymbols == null) return 0;\n\n int num = 0;\n for (int i = 0; i < this.boundedBoundSymbols.length; i++) {\n if (this.tupleOrs[i]) {\n num++;\n }\n else {\n num += this.boundedBoundSymbols[i].length;\n }\n }\n return num;\n }", "public Rectangle2D getExtents() { return this.extents; }", "public Set<T> getRanges();", "public GJBox2D boundingBox() {\n\t\tdouble xmin = Double.MAX_VALUE;\n\t\tdouble ymin = Double.MAX_VALUE;\n\t\tdouble xmax = Double.MIN_VALUE;\n\t\tdouble ymax = Double.MIN_VALUE;\n\n\t\t// coordinates of current point\n\t\tdouble x, y;\n\t\t\n\t\t// Iterate on each control point of each segment\n\t\tfor (Segment seg : this.segments) {\n\t\t\tfor (GJPoint2D p : seg.controlPoints()) {\n\t\t\t\t// get current coordinates\n\t\t\t\tx = p.x();\n\t\t\t\ty = p.y();\n\t\t\t\t\n\t\t\t\t// update bounds\n\t\t\t\txmin = Math.min(xmin, x);\n\t\t\t\tymin = Math.min(ymin, y);\n\t\t\t\txmax = Math.max(xmax, x);\n\t\t\t\tymax = Math.max(ymax, y);\n\t\t\t}\n\t\t}\n\t\t\n\t\t// createFromCollection a new GJBox2D with the bounds\n\t\treturn new GJBox2D(xmin, xmax, ymin, ymax);\n\t}", "private List<Rectangle> getRectanglesToConsiderForBranchingVarCalculation () {\r\n \r\n List<Rectangle> rectanglesToConsider = new ArrayList<Rectangle> ();\r\n \r\n //for every constraint, see if it has rects at the best lp\r\n \r\n for (Map <Double, List<Rectangle>> rectMap: myInfeasibleRectanglesList) {\r\n for (List<Rectangle> rectList : rectMap.values()) { \r\n \r\n rectanglesToConsider.addAll(rectList );\r\n \r\n } \r\n }\r\n \r\n return rectanglesToConsider;\r\n }", "public Region getSiteRegionBounds() {\n int numSources = eqkRupForecast.getNumSources();\n\n double minLat = Double.POSITIVE_INFINITY;\n double maxLat = Double.NEGATIVE_INFINITY;\n double minLon = Double.POSITIVE_INFINITY;\n double maxLon = Double.NEGATIVE_INFINITY;\n\n\n //Going over each and every source in the forecast\n for (int sourceIndex = 0; sourceIndex < numSources; ++sourceIndex) {\n // get the ith source\n ProbEqkSource source = eqkRupForecast.getSource(sourceIndex);\n int numRuptures = source.getNumRuptures();\n\n //going over all the ruptures in the source\n for (int rupIndex = 0; rupIndex < numRuptures; ++rupIndex) {\n ProbEqkRupture rupture = source.getRupture(rupIndex);\n\n RuptureSurface rupSurface = rupture.getRuptureSurface();\n\n //getting the iterator for all points on the rupture\n ListIterator it = rupSurface.getLocationsIterator();\n boolean rupInside = false;\n //looping over all the rupture pt locations and if any of those lies\n //within the provided distance range then include the rupture in the list.\n while (it.hasNext()) {\n Location ptLoc = (Location) it.next();\n if (region.contains(ptLoc)) {\n rupInside = true;\n break;\n }\n }\n it = rupSurface.getLocationsIterator();\n while (it.hasNext() && rupInside) {\n Location ptLoc = (Location) it.next();\n double lat = ptLoc.getLatitude();\n double lon = ptLoc.getLongitude();\n double depth = ptLoc.getDepth();\n if (lat < minLat)\n minLat = lat;\n if (lat > maxLat)\n maxLat = lat;\n if (lon < minLon)\n minLon = lon;\n if (lon > maxLon)\n maxLon = lon;\n if (depth > maxDepth)\n maxDepth = depth;\n }\n }\n }\n return new Region(\n \t\tnew Location(minLat, minLon),\n \t\tnew Location(maxLat, maxLon));\n }", "public List<BoundingRegion> getBoundingRegions() {\n return this.boundingRegions;\n }", "public RMRect getBoundsInside() { return new RMRect(0, 0, getWidth(), getHeight()); }", "public Bounds getProbabilityBounds();", "public int getBoundContainerElementCount() {\n return nestedElements.size();\n }", "protected abstract void getAllUniformLocations();", "public Rectangle2D getBounds() {\n\t\tif (_child == null) {\n\t\t\treturn new Rectangle2D.Double();\n\t\t} else {\n\t\t\treturn _child.getBounds();\n\t\t}\n\t}" ]
[ "0.6801677", "0.6774096", "0.6667588", "0.66559666", "0.6606496", "0.65099466", "0.636716", "0.6349986", "0.62794816", "0.6273725", "0.62614745", "0.6245105", "0.6232412", "0.6167793", "0.61408764", "0.6140431", "0.61278796", "0.6106341", "0.6106341", "0.60306233", "0.60192066", "0.6015661", "0.6015661", "0.6015661", "0.5996771", "0.59920377", "0.59840727", "0.5973048", "0.5961596", "0.59476316", "0.59210044", "0.59148127", "0.58965963", "0.58831906", "0.5881317", "0.58776236", "0.5859423", "0.5832448", "0.5819237", "0.58153003", "0.58147496", "0.57900697", "0.5785036", "0.578299", "0.5781925", "0.5773611", "0.5766969", "0.57665247", "0.5754557", "0.5743255", "0.57341766", "0.5733607", "0.5731495", "0.57219017", "0.5717037", "0.57160807", "0.5700815", "0.5687851", "0.56854504", "0.5666885", "0.56403995", "0.56393194", "0.562019", "0.55937934", "0.55900776", "0.5585785", "0.5581124", "0.5573454", "0.5563042", "0.55550283", "0.5547428", "0.55374813", "0.5532582", "0.55315834", "0.55263996", "0.55148506", "0.55065715", "0.54958355", "0.5493492", "0.54768044", "0.54762733", "0.5474999", "0.5473448", "0.5472119", "0.54714656", "0.5462742", "0.54518867", "0.5446257", "0.54388994", "0.5435072", "0.5434433", "0.54317605", "0.5431563", "0.5421412", "0.54179823", "0.5416772", "0.54141665", "0.54081434", "0.54028535", "0.53919643" ]
0.5857468
37
Store the rectangle in the database.
void storeObject(RectangleLatLng rectangle, String id);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void storeRectangle(Roi roi, MetadataStore store,\n int roiNum, int shape)\n {\n Rectangle bounds = roi.getBounds();\n store.setRectangleX(new Double(bounds.x), roiNum, shape);\n store.setRectangleY(new Double(bounds.y), roiNum, shape);\n store.setRectangleWidth(new Double(bounds.width), roiNum, shape);\n store.setRectangleHeight(new Double(bounds.height), roiNum, shape);\n }", "public void addRectangle(Rectangle rectangle){\n rectangles.add(rectangle);\n }", "public static void writeRectangle(Model model, int x1, int y1, int x2, int y2, char colour) {\n int xLength = model.getWidth();\n int yLength = model.getHeight();\n\n if (x1 > xLength || x2 > xLength || y1 > yLength || y2 > yLength) {\n System.out.println(String.format(\"Couldn't create rectangle inside current simpleCanvas width: %d, height: %d\", xLength, yLength));\n return;\n }\n\n writeLine(model, x1, y1, x1, y2, colour);\n writeLine(model, x1, y2, x2, y2, colour);\n writeLine(model, x2, y2, x2, y1, colour);\n writeLine(model, x2, y1, x1, y1, colour);\n }", "public sRectangle getSavedSRectangleBound()\n {\n return savedSRectangleBound;\n }", "@Override\n public void setRectangle() {\n switch (direction){\n case 0:\n rectangle.setLocation((int)x+5,(int)y+8);\n break;\n case 2:\n rectangle.setLocation((int)x+5,(int)y+8);\n break;\n case 1:\n rectangle.setLocation((int)x+13,(int)y+8);\n break;\n case 3:\n rectangle.setLocation((int)x+2,(int)y+8);\n break;\n }\n\n }", "public void setRectangle(String key, Rectangle value) {\n\t\tif (value != null && !value.equals(getDefault(key)))\n\t\t\tinternal.setProperty(key, value.x + \" \" + value.y + \" \" + value.width + ' ' + value.height);\n\t\telse\n\t\t\tinternal.remove(key);\n\t}", "public void recordLocation(){\n\t\tg2d.setColor(Color.blue);\n\t\n int x = (int)(sd.getLocationX() * scale) + width/2;\n int y = (int)(sd.getLocationY() * scale) + height/2;\n g2d.fillRect(x,y,8,8);\n\t\n\t}", "void setBounds(Rectangle rectangle);", "private void saveData(){\n databaseReference.setValue(new Teacher(0, \"\", 0.0));\n }", "public Room( Rectangle r){\n\t\tthis.r = r;\n\t}", "public void save(int screenId, float x, float y) {\n\t\tx = x / SCALE_POSITION;\n\t\ty = (y + SET_BACKGROUND_POSITION_Y - MARGIN_Y) / SCALE_POSITION;\n\t\tdb.updateWhenSaving(screenId, x, y);\n\t}", "@Override\n\tpublic void save(PropertyRooms propertyRoom) {\n\t\thibernateTemplate.saveOrUpdate(propertyRoom);\n\t}", "public void save(){\n BoardSerializer.serialize(this);\n }", "void createRectangles();", "protected void createRect()\r\n\t{\r\n\t\trect = new Rectangle(getX(),getY(),width,height);\r\n\t}", "public Rectangle getRectangle() {\n return rectangle;\n }", "public QuadtreeNode(Rectangle rect) {\n this.rectangle = rect;\n }", "public void fillRectangle(RectangleShape rectangle);", "public void saveToDB() {\n \twipeDB();\n\t\tSQLiteDatabase db = nodeData.getReadableDatabase();\n\t\tContentValues values = new ContentValues();\n\t\tfor (int i = 0; i < wallpapers.size(); i++) {\n\t\t\tvalues.put(EventDataSQLHelper.NODE, nodeToString(wallpapers.get(i)));\n\t\t\ttry {\t\t\t\t\n\t\t\t\tdb.insertOrThrow(EventDataSQLHelper.TABLE, null, values);\n\t\t\t\tLog.d(\"AddToDB\", nodeToString(wallpapers.get(i)));\n\t\t\t} catch (SQLException e) {\n\t\t\t\tLog.d(\"AddToDB\", \"\" + e.getMessage());\n\t\t\t}\n\t\t}\n\t\tdb.close();\n }", "public void drawRectangle(Rectangle rectangle) {\n implementation.devDrawRectangle(\n (int) rectangle.getMinX(),\n (int) rectangle.getMinY(),\n (int) rectangle.getWidth(),\n (int) rectangle.getHeight(),\n rectangle.getColor()\n );\n }", "public void setObject(double height) {\n // remove the object from the pane if it's already existed\n removeFromPane(object);\n \n // create object rectangle\n // x coordinate = Xcenter - half of the rectangle's width\n // y coordinate = Y coordinate of the ground line - rectangle's height\n object = new Rectangle(objectWidth, height);\n object.setLayoutX(objectCenterX - objectWidth / 2);\n object.setLayoutY(groundLineY - height);\n\n // Check the comboBox to set the corresponding object\n // fill the appropriate image to the object rectangle\n if (pickPicture.getValue().equals(\"Candle\")) {\n object.setFill(AssetManager.getCandleImage());\n } else if (pickPicture.getValue().equals(\"Can\")) {\n object.setFill(AssetManager.getCanImage());\n } else {\n object.setFill(AssetManager.getPencilImage());\n }\n\n // add the object rectangle to the pane\n addToPane(object);\n\n // update the object height value\n objectHeight = object.getHeight();\n }", "public Shape getRectangle() {\n return rectangle;\n }", "void storeObject(Polygon polygon, String id);", "private static void storePolygon(PolygonRoi roi, MetadataStore store,\n int roiNum, int shape)\n {\n Rectangle bounds = roi.getBounds();\n int[] xCoordinates = roi.getXCoordinates();\n int[] yCoordinates = roi.getYCoordinates();\n StringBuffer points = new StringBuffer();\n for (int i=0; i<xCoordinates.length; i++) {\n points.append(xCoordinates[i] + bounds.x);\n points.append(\",\");\n points.append(yCoordinates[i] + bounds.y);\n if (i < xCoordinates.length - 1) points.append(\" \");\n }\n store.setPolylinePoints(points.toString(), roiNum, shape);\n store.setPolylineClosed(Boolean.TRUE, roiNum, shape);\n }", "public ProtectedCuboidRegion saveRegion() {\n\t\t\n\t\tcom.sk89q.worldedit.BlockVector pos1 = \n\t\t\t\tnew com.sk89q.worldedit.BlockVector(position1.getBlockX(), position1.getBlockY(), position1.getBlockZ());\n\t\tcom.sk89q.worldedit.BlockVector pos2 =\n\t\t\t\tnew com.sk89q.worldedit.BlockVector(position2.getBlockX(), position2.getBlockY(), position2.getBlockZ());\n\t\t\n\t\tplayer.sendMessage(\"\" + name + position1.toString() + position2.toString());\n\t\t\n\t\tProtectedCuboidRegion newPlotRegion = new ProtectedCuboidRegion(name, pos1, pos2);\n\t\t\n\t\tRegionManager regionManager = Mcc.worldGuard.getRegionManager(player.getWorld());\n\t\tregionManager.addRegion(newPlotRegion);\n\t\tnewPlotRegion = (ProtectedCuboidRegion) regionManager.getRegion(name);\n\t\t\n\t\tnewPlotRegion.setPriority(2);\n\t\ttry {\n\t\t\tregionManager.save();\n\t\t} catch (ProtectionDatabaseException e) {\n\t\t\tplayer.sendMessage(ChatColor.RED + \"Critical World Guard error! Notify Funonly\");\n\t\t}\n\t\t\n\t\treturn newPlotRegion;\n\t}", "Rectangle(double newWidth, double newHeight){\n height = newHeight;\n width = newWidth;\n }", "public void createRectangle(double x, double y, double width, double height) {\r\n GRect rectangle = new GRect(x, y, width, height);\r\n rectangle.setFilled(true);\r\n rectangle.setFillColor(Color.GRAY);\r\n rectangle.setColor(Color.WHITE);\r\n add(rectangle);\r\n }", "public Rectangle() {\n super();\n properties = new HashMap<String, Double>();\n properties.put(\"Width\", null);\n properties.put(\"Length\", null);\n }", "public void addRectangle(MyRectangle rectangle) {\n rectangles[numberOfRectangles++] = rectangle;\n }", "Rectangle getRect(){\n \treturn new Rectangle(x,y,70,25);\n }", "public static void drawRectangle(double width, double height) {\n gl.glPushMatrix();\n gl.glScaled(width, height, 1);\n gl.glBegin(GL.GL_TRIANGLE_FAN);\n gl.glVertex3d(-0.5, -0.5, 0);\n gl.glVertex3d(0.5, -0.5, 0);\n gl.glVertex3d(0.5, 0.5, 0);\n gl.glVertex3d(-0.5, 0.5, 0);\n gl.glEnd();\n gl.glPopMatrix();\n }", "public Rectangle(Point upperLeft, double width, double height) {\n this.upperLeft = upperLeft;\n this.width = width;\n this.height = height;\n }", "public Rectangle() {\n\t\tthis.width = 1;\n\t\tthis.hight = 1;\n\t\tcounter++;\n\t}", "public void save() {\n RegionOwn.saveRegionOwner(this);\n }", "public void update(CenteredRectangle rect) throws SlickException\r\n {\r\n update(rect.getCenterX(), rect.getCenterY());\r\n }", "public void save(Room room) {\n\t\tSession session = sessionFactory.getCurrentSession();\n\t\tsession.saveOrUpdate(room);\n\t\tsession.flush();\n\t}", "@Override\r\n\tpublic void save() {\n\r\n\t\ts.save();\r\n\r\n\t}", "public Rectangle() {\n\t\tthis.corner = new Point();\n\t\tthis.size = new Point();\n\t}", "public void save() {\t\n\t\n\t\n\t}", "public static void save(Rectangle c) {\n int index = Integer.parseInt(c.getPath().substring(6).split(\"\\\\.\")[0]) % maxBufferSize;\n if (buffer[index] != null && !c.getPath().equals(buffer[index].getPath())) {\n serialize(buffer[index]);\n }\n buffer[index] = c;\n }", "protected void saveValues() {\n dataModel.persist();\n }", "@Override\n public void rect(double x, double y, double width, double height) {\n graphicsEnvironmentImpl.rect(canvas, x, y, width, height);\n }", "public Rectangle2D getRectangle() {\n return rectangle;\n }", "@Override\n\tpublic void save() {\n\t\t\n\t}", "@Override\n\tpublic void save() {\n\t\t\n\t}", "public RectangleFromGeometricObject(double width, double height) {\r\n\t\tthis.width = width;\r\n\t\tthis.height = height;\r\n\t}", "public RectangleObject(double width, double height) {\r\n\t\tthis.width = width;\r\n\t\tthis.height = height;\r\n\t}", "public Rectangle getShape(){\n return myRectangle;\n }", "private static void storeLine(Line roi, MetadataStore store,\n int roiNum, int shape)\n {\n store.setLineX1(new Double(roi.x1), roiNum, shape);\n store.setLineX2(new Double(roi.x2), roiNum, shape);\n store.setLineY1(new Double(roi.y1), roiNum, shape);\n store.setLineY2(new Double(roi.y2), roiNum, shape);\n }", "Scoreboard saveScoreboard(Scoreboard scoreboard);", "public void drawRectangle(int x, int y, int width, int height, Color color) {\n implementation.devDrawRectangle(x, y, width, height, color);\n }", "public void save();", "public void save();", "public void save();", "public void save();", "public void saveGeominas(Geominas entity) throws Exception;", "@Override\n public void saveValues() {\n \n }", "public RectangleShape(int xCoord, int yCoord, int widthOfRect, int heightOfRect)\n {\n System.out.println(\"setting x to: \"+ xCoord+\" & setting y to: \"+ yCoord);\n x = xCoord;\n y = yCoord;\n width = widthOfRect;\n height = heightOfRect;\n }", "int insert(CmsRoomBook record);", "Rectangle(){\n height = 1;\n width = 1;\n }", "private void save() {\n Tile[][] field = gameController.grid.field;\n Tile[][] undoField = gameController.grid.undoField;\n// SharedPreferenceUtil.put(this, SpConstant.WIDTH, field.length);\n// SharedPreferenceUtil.put(this, SpConstant.HEIGHT, field.length);\n for (int xx = 0; xx < field.length; xx++) {\n for (int yy = 0; yy < field[0].length; yy++) {\n if (field[xx][yy] != null) {\n SharedPreferenceUtil.put(this, xx + \"_\" + yy, field[xx][yy].getValue());\n } else {\n SharedPreferenceUtil.put(this, xx + \"_\" + yy, 0);\n }\n\n if (undoField[xx][yy] != null) {\n SharedPreferenceUtil.put(this, SpConstant.UNDO_GRID + xx + \"_\" + yy, undoField[xx][yy].getValue());\n } else {\n SharedPreferenceUtil.put(this, SpConstant.UNDO_GRID + xx + \"_\" + yy, 0);\n }\n }\n }\n SharedPreferenceUtil.put(this, SpConstant.SCORE, gameController.currentScore);\n SharedPreferenceUtil.put(this, SpConstant.HIGH_SCORE_TEMP, gameController.historyHighScore);\n SharedPreferenceUtil.put(this, SpConstant.UNDO_SCORE, gameController.lastScore);\n SharedPreferenceUtil.put(this, SpConstant.CAN_UNDO, gameController.canUndo);\n SharedPreferenceUtil.put(this, SpConstant.GAME_STATE, gameController.gameState);\n SharedPreferenceUtil.put(this, SpConstant.UNDO_GAME_STATE, gameController.lastGameState);\n SharedPreferenceUtil.put(this, SpConstant.AUDIO_ENABLED, gameController.isAudioEnabled);\n }", "private void saveData() {\n readViews();\n final BookEntry bookEntry = new BookEntry(mNameString, mQuantityString, mPriceString, mSupplier, mPhoneString);\n AppExecutors.getInstance().diskIO().execute(new Runnable() {\n @Override\n public void run() {\n // Insert the book only if mBookId matches DEFAULT_BOOK_ID\n // Otherwise update it\n // call finish in any case\n if (mBookId == DEFAULT_BOOK_ID) {\n mDb.bookDao().insertBook(bookEntry);\n } else {\n //update book\n bookEntry.setId(mBookId);\n mDb.bookDao().updateBook(bookEntry);\n }\n finish();\n }\n });\n }", "@Test @Graded(description=\"testAddRectangle\", marks=12)\n\tpublic void testAddRectangle() {\n\t\tRectangle r = new Rectangle(30, 5);\n\t\tlist1.add(r);\n\t\tassertEquals(5, list1.currentSize());\n\t\tassertEquals(5, list1.currentCapacity());\n\t\tassertNotNull(list1.get(0));\n\t\tassertEquals(\"10 by 5\", list1.get(0).toString());\n\t\tassertNotNull(list1.get(1));\n\t\tassertEquals(\"70 by 10\", list1.get(1).toString());\n\t\tassertNotNull(list1.get(2));\n\t\tassertEquals(\"20 by 20\", list1.get(2).toString());\n\t\tassertNotNull(list1.get(3));\n\t\tassertEquals(\"90 by 50\", list1.get(3).toString());\n\t\tassertNotNull(list1.get(4));\n\t\tassertEquals(\"30 by 5\", list1.get(4).toString());\n\n\t\tr.width = (1);\n\t\t// we wanted to add an instance copy of the object\n\t\tassertEquals(\"30 by 5\", list1.get(4).toString());\n\n\t\t// adding 6th item should have \"grown\" the list\n\t\tr = new Rectangle(100);\n\n\t\t// add test will pass after you correctly implement grow()\n\t\tlist1.add(r);\n\t\tassertEquals(6, list1.currentSize());\n\t\tassertEquals(15, list1.currentCapacity());\n\t\tassertNotNull(list1.get(0));\n\t\tassertEquals(\"10 by 5\", list1.get(0).toString());\n\t\tassertNotNull(list1.get(1));\n\t\tassertEquals(\"70 by 10\", list1.get(1).toString());\n\t\tassertNotNull(list1.get(2));\n\t\tassertEquals(\"20 by 20\", list1.get(2).toString());\n\t\tassertNotNull(list1.get(3));\n\t\tassertEquals(\"90 by 50\", list1.get(3).toString());\n\t\tassertNotNull(list1.get(4));\n\t\tassertEquals(\"30 by 5\", list1.get(4).toString());\n\t\tassertNotNull(list1.get(5));\n\t\tassertEquals(\"100 by 100\", list1.get(5).toString());\n\n\t\tr.width = (888);\n\t\t// we wanted to add an instance copy of the object\n\t\tassertEquals(\"100 by 100\", list1.get(5).toString());\n\t\tcurrentMethodName = new Throwable().getStackTrace()[0].getMethodName();\n\n\t}", "@Override\n public void save()\n {\n \n }", "private void drawDB(Graphics g) {\n\t\tfor (Vertex v:db.getVerticesOfClass(\"Location\")) {\n\t\t\t// if the location is a door draw it in RED\n\t\t\tIterable <Vertex> vIt = v.getVertices(Direction.OUT, \"IS_A\");\n\t\t\tfor (Vertex vv: vIt) {\n\t\t\t\tif (vv.getProperty(\"@class\").equals(\"LocationConcept\"))\n\t\t\t\t\tif (vv.getProperty(\"Name\").equals(\"door\")) {\n\t\t\t\t\t\tg.setColor(Color.RED);\n\t\t\t\t\t\t((Graphics2D) g).setStroke(new BasicStroke (4f));\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tIterable <Vertex> corners = v.getProperty(\"Shape\");\n\t\t\tPolygon locationShape = new Polygon();\n\t\t\tint x = 0, y = 0, i = 0, xSum = 0, ySum = 0;\n\t\t\tif (corners != null) {\n\t\t\t\tfor (Vertex corner: corners) {\n\t\t\t\t\tx = ScaleToPlotX(corner.getProperty(\"x\"));\n\t\t\t\t\ty = ScaleToPlotY(corner.getProperty(\"y\"));\n\t\t\t\t\tlocationShape.addPoint(x, y);\n\t\t\t\t\txSum = xSum + x;\n\t\t\t\t\tySum = ySum + y;\n\t\t\t\t\ti++;\n\t\t\t\t}\n\t\t\t\tg.drawPolygon(locationShape);\n\t\t\t\tg.drawString((String) v.getProperty(\"Name\"), xSum/i - 10, ySum/i + 10); // draw the name in the middle of the room\n\t\t\t}\n\t\t\tg.setColor(Color.BLACK); // switch back to BLACK color for the next room\n\t\t\t((Graphics2D) g).setStroke(new BasicStroke (1f));\n\t\t}\n\t\t\n\t\t// draw all positions inside of a location as little RED circles\n\t\tg.setColor(Color.RED);\n\t\tfor (Edge e: db.getEdgesOfClass(\"IS_CONNECTED_TO\")) {\n\t\t\tVertex p1 = e.getVertex(Direction.IN);\n\t\t\tVertex p2 = e.getVertex(Direction.OUT);\n\t\t\tString p1Class = p1.getProperty(\"@class\");\n\t\t\tString p2Class = p1.getProperty(\"@class\");\t\n\n\t\t\tif (p1Class.equals(\"Position\") && p2Class.equals(\"Position\")) {\n\t\t\t\tg.fillOval(ScaleToPlotX(p1.getProperty(\"x\")), ScaleToPlotY(p1.getProperty(\"y\")),10,10);\n\t\t\t\tg.fillOval(ScaleToPlotX(p2.getProperty(\"x\")), ScaleToPlotY(p2.getProperty(\"y\")),10,10);\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\tg.setColor(Color.BLUE);\n\t\tif (pos != null) {\n\t\t\tg.fillOval(ScaleToPlotX(pos.getProperty(\"x\")), ScaleToPlotY(pos.getProperty(\"y\")),10,10);\n\t\t}\n\t}", "@Override\n public void save() {\n \n }", "public void storeValues() throws SQLException { //store values into the database\n \tstoreValuesDump();\n \tstoreValuesMatl();\n }", "public Rectangle(Rectangle rect) {\n\t\tsuper(rect.getX(),rect.getY(),rect.getWidth(),rect.getHeight(),rect.getColour());\n\t}", "int insert(XxAreaWithBLOBs record);", "private synchronized final void makeAreaDirty(int top, int left,\n int bottom, int right) {\n if (bottom < visTop || top > (visTop + rows)) {\n // Dirt outside visible area, ignore\n return;\n }\n\n // Translate to screen coordinates\n top = top - visTop;\n bottom = bottom - visTop;\n\n if (!isDirty) {\n dirtyTop = top;\n dirtyBottom = bottom;\n dirtyLeft = left;\n dirtyRight = right;\n isDirty = true;\n } else {\n // Grow dirty area to include all dirty spots on screen\n if(top < dirtyTop) {\n dirtyTop = top;\n }\n if(bottom > dirtyBottom) {\n dirtyBottom = bottom;\n }\n if(left < dirtyLeft) {\n dirtyLeft = left;\n }\n if(right > dirtyRight) {\n dirtyRight = right;\n }\n if (dirtyTop == dirtyBottom) {\n dirtyBottom++;\n }\n if (dirtyLeft == dirtyRight) {\n dirtyRight++;\n }\n }\n // Make sure that values are sane\n dirtyTop = (dirtyTop < 0) ? 0 : dirtyTop;\n dirtyBottom = (dirtyBottom > rows) ? rows : dirtyBottom;\n dirtyLeft = (dirtyLeft < 0) ? 0 : dirtyLeft;\n dirtyRight = (dirtyRight > cols) ? cols : dirtyRight;\n\n // Make sure that the dirty area is a box, so if the new\n // dirt spans many lines, the entire screen width should\n // be repainted.\n if (dirtyBottom - dirtyTop > 1) {\n dirtyLeft = 0;\n dirtyRight = cols;\n }\n }", "private static void addRectangle(String[] input) throws NumberFormatException, IncorrectParametersException{\n if (input.length == 5){\n try{\n int x1 = Integer.parseInt(input[1]); \n int y1 = Integer.parseInt(input[2]);\n int x2 = Integer.parseInt(input[3]); \n int y2 = Integer.parseInt(input[4]);\n try{\n canvas.createRectangle(x1, y1, x2, y2);\n System.out.println(canvas.render());\n } catch (NullPointerException ex) {\n System.out.println(\"Initialise a new canvas first!\");\n }\n } catch (NumberFormatException ex) {\n System.out.println(\"HELP: to create a new rectangle enter `R x1 y1 x2 y2`, with (x1,y1) being the upper left corner and (x2,y2) the lower right one.\");\n }\n } else {\n System.out.println(\"HELP: to create a new rectangle enter `R x1 y1 x2 y2`, with (x1,y1) being the upper left corner and (x2,y2) the lower right one.\");\n throw new IncorrectParametersException(\"\");\n }\n }", "@Override\n\tpublic void posSave() {\n\t\t\n\t}", "@Override\n\tpublic void posSave() {\n\t\t\n\t}", "@Override\n\tpublic void resize(double width, double height) {\n\t\t\n\t\tsuper.resize(width, height); \n\t\tdb_board.resize(width, height);\n\t}", "private void drawRectangle(GraphicsContext gc, double x, double y) {\r\n GraphicsContext gc2 = myCanvas.getGraphicsContext2D();\r\n gc2.setFill(randomColor());\r\n gc2.fillRect(x - 20, y - 20, 40, 40);\r\n }", "private void drawRect(double x0, double y0, double width, double height, int lWidth, Color color){\n \n lWidth = Math.min(lWidth, max_width);\n \n x0 += 0.5 * lWidth;\n y0 += 0.5 * lWidth;\n width -= lWidth;\n height -= lWidth;\n \n x0 /= this.width;\n y0 /= this.height;\n width /= this.width;\n height /= this.height;\n \n x0 -= 0.5;\n y0 -= 0.5;\n \n glLineWidth(lWidth);\n \n glBegin(GL_LINES);\n glEnable(GL_LINE_WIDTH);\n glColor3f(color.getRed(), color.getGreen(), color.getBlue());\n \n //left side\n glVertex3d(x0, y0 + height, 0);\n glVertex3d(x0, y0, 0);\n \n //Right side\n glVertex3d(x0 + width, y0, 0);\n glVertex3d(x0 + width, y0 + height, 0);\n \n x0 -= (double)lWidth / (double)this.width / 2d;\n width += (double)lWidth / (double)this.width;\n \n //bottom\n glVertex3d(x0, y0, 0);\n glVertex3d(x0 + width, y0, 0);\n \n //top\n glVertex3d(x0, y0 + height, 0);\n glVertex3d(x0 + width, y0 + height, 0);\n \n \n glEnd();\n }", "@Override\n public void onSaveInstanceState(Bundle savedInstanceState) {\n \tfinal EditText edittext = (EditText) findViewById(R.id.edittext);\n \tsavedInstanceState.putString(\"square\",edittext.getText().toString());\n \tsuper.onSaveInstanceState(savedInstanceState);\n }", "private Geometry rectangleToGeometry(Rectangle2D r) {\n return createRectangle(r.getMinX(), r.getMinY(), r.getWidth(),\n r.getHeight());\n }", "@Override\n\tpublic void insert(Room ob) {\n\t\tConnection cn = ConnectionPool.getInstance().getConnection();\n\t\ttry {\n\t\t\tPreparedStatement ps = cn.prepareStatement(\"INSERT INTO room VALUES (?,?)\");\n\t\t\tps.setInt(1, ob.getIdRoom());\n\t\t\tps.setInt(2, ob.getIdRoomType());\n\n\t\t\tps.execute();\n\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\tConnectionPool.getInstance().closeConnection(cn);\n\t\t}\n\t}", "void storeObject(Circle circle, String id);", "public void savePolygon()\n {\n if (canSavePolygon())\n {\n SaveDialog dialog = new SaveDialog(createPolygonActivity, this, model);\n dialog.show();\n }\n }", "public void insert() throws LRException\n\t{\n\t\tDataHRecordData myData=(DataHRecordData)getData();\n\t\tgetBackground();\n\t\ttry { myData.record.save(background.getClient()); }\n\t\tcatch (LDBException e) { setStatus(e); }\n\t}", "public Rectangle() {\n x = 0;\n y = 0;\n width = 0;\n height = 0;\n }", "public Pyramid saveObject(Pyramid obj) {\n //return:\n Pyramid result=null;\n \n //oldPyramid -> to update if not null\n Pyramid oldPyramid=this.getObjectById(obj.getId());\n \n //input values:\n ContentValues cValues=new ContentValues();\n cValues.put(PyramidTable.COLUMN_POL_LEFT,obj.getPoleLeft());\n cValues.put(PyramidTable.COLUMN_POL_RIGHT,obj.getPoleRight());\n cValues.put(PyramidTable.COLUMN_SEGMENTATION,obj.toUniqueString());\n //TODO: remove: cValues.put(PyramidTable.COLUMN_WIDTH,obj.getWidth());\n //insert or update:\n if(oldPyramid==null){\n cValues.put(PyramidTable.COLUMN_ID,obj.getId());\n long res=this.database.insert(PyramidTable.TABLE_PYRAMID, null, cValues);\n if(res==obj.getId()){\n result=obj;\n }\n }else{\n String[] whereArgs={Integer.toString(obj.getId())};\n long res=this.database.update(PyramidTable.TABLE_PYRAMID, cValues, PyramidTable.COLUMN_ID+\"=?\", whereArgs);\n if(res>0){\n result=obj;\n }\n }\n return result;\n }", "private void saveLocations(){\n\n final LocationsDialog frame = this;\n WorkletContext context = WorkletContext.getInstance();\n\n LocationsTableModel model = (LocationsTableModel) locationsTable.getModel();\n final HashMap<Integer, Location> dirty = model.getDirty();\n\n\n for(Integer id : dirty.keySet()) {\n Location location = dirty.get(id);\n\n\n if (!Helper.insert(location, \"Locations\", context)) {\n System.out.print(\"insert failed!\");\n }\n\n }// end for\n\n model.refresh();\n\n }", "private void setRect(org.chromium.components.paint_preview.common.proto.PaintPreview.RectProto value) {\n value.getClass();\n rect_ = value;\n bitField0_ |= 0x00000001;\n }", "public void drawRect(float x, float y, float width, float height) {\n float x1 = margins.computeX(x), y1 = margins.computeY(y);\n float x2 = margins.computeX(x + width), y2 = margins.computeY(y + height);\n buffer(() -> {\n GL15.glBufferData(GL15.GL_ARRAY_BUFFER, new float[]{\n x1, y1, 0F, 0F,\n x2, y1, 1F, 0F,\n x2, y2, 1F, 1F,\n x1, y2, 0F, 1F\n }, GL15.GL_STREAM_DRAW);\n GL11.glDrawArrays(GL11.GL_QUADS, 0, 4);\n });\n }", "void storeEditorData(int userid,String name,Object bodyContent){\n dbConnection();\n try{\n PGobject editorData = new PGobject();\n editorData.setType(\"json\");\n editorData.setValue(bodyContent.toString());\n\n stmt = con.prepareStatement(\"INSERT INTO editorData(name,bodyContent,userid)VALUES(?,?,?)\");\n stmt.setString(1,name);\n stmt.setObject(2,editorData);\n stmt.setInt(3,userid);\n\n stmt.executeUpdate();\n }\n catch(Exception e){\n e.printStackTrace();\n }\n finally{\n closeConnection();\n }\n \n }", "public Rectangle(double width, double height) {\r\n this.width = width;\r\n this.height = height;\r\n }", "@Override\n\tpublic Rectangle2D getRectangle() {\n\t\treturn rect;\n\t}", "void save(ViewDefinition viewDefinition);", "public Rectangle() {\n this.length = 0;\n this.width = 0;\n\n }", "private void setCollision(){\n\t\tMapObjects mapObjects = map.getLayers().get(\"COLLISION\").getObjects();\n\t\tfor (int ii = 0; ii < mapObjects.getCount(); ++ii){\n\t\t\tRectangleMapObject rectangle_map_object = (RectangleMapObject) mapObjects.get(ii);\n\t\t\tareaCollision.add(new Rectangle(rectangle_map_object.getRectangle()));\n\t\t}\n\t}", "void save();", "void save();", "void save();", "@SuppressWarnings(\"unused\")\n private static void storeOval(OvalRoi roi,\n MetadataStore store, int roiNum, int shape)\n {\n // TODO: storeOval\n }", "public void saveFenceInSqliteDB(String name, String address, String city, String province, Double lat, Double lng, String range, String number, String textSMS, int event) {\n boolean active = true; // default whan you add a geofence is active\n boolean match = false; // default whan you add a geofence is not in fence\n\n int id = Controller.insertFenceOnSQLiteDB(name, address, city, province, lat + \"\", lng + \"\", range, 1, number, textSMS, event);\n Fence f = new Fence(id, name, address, city, province, lat, lng, Float.parseFloat(range), active, match, number, textSMS, event);\n Controller.fences.add(f);\n Toast.makeText(this.getContext(), \"Added the fence: \" + f.getName() + \"!\", Toast.LENGTH_LONG).show();\n }", "@Override\n public void save() {\n\n }", "@Override\n\tpublic void addLecture(Lecture l) {\n\t\tSession session = this.sessionFactory.getCurrentSession();\n\t\tsession.persist(l);\n\t}" ]
[ "0.6863947", "0.56340045", "0.5599744", "0.55212855", "0.5520737", "0.54749876", "0.5453971", "0.5447527", "0.5430093", "0.5399607", "0.53953034", "0.53509307", "0.53362507", "0.53348696", "0.5333131", "0.52991766", "0.5297999", "0.52177733", "0.5205234", "0.5195397", "0.518462", "0.518042", "0.5180062", "0.51771295", "0.5171646", "0.5170486", "0.51598185", "0.5131654", "0.5119879", "0.50831276", "0.508045", "0.5068669", "0.5062851", "0.50576866", "0.50514495", "0.50465816", "0.5043072", "0.50319564", "0.503116", "0.50162154", "0.50157356", "0.50092214", "0.49982008", "0.49968657", "0.49968657", "0.4995726", "0.4992869", "0.49909535", "0.49909434", "0.4988013", "0.49836498", "0.49736512", "0.49736512", "0.49736512", "0.49736512", "0.49629718", "0.49574366", "0.49571213", "0.4947659", "0.4943762", "0.4943409", "0.49428183", "0.4939091", "0.49386564", "0.49314663", "0.49236044", "0.49228403", "0.49220088", "0.49161208", "0.49148524", "0.49109113", "0.49013638", "0.49013638", "0.4900969", "0.48925763", "0.48760054", "0.48752123", "0.48737434", "0.48681572", "0.4866601", "0.48646685", "0.48603946", "0.48485804", "0.4846278", "0.48446867", "0.4843177", "0.4839603", "0.4827101", "0.48261082", "0.48123378", "0.48036316", "0.47990322", "0.47974992", "0.47961262", "0.47961262", "0.47961262", "0.47947764", "0.47944066", "0.47907183", "0.47866267" ]
0.6756426
1
Store the point in the database
void storeObject(PointLatLng point, String id);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void save(HrUserPoint hrUserPoint) {\n\t\tthis.sessionFactory.getCurrentSession().save(hrUserPoint);\n\t}", "@Override\r\n\t\tpublic Savepoint setSavepoint() throws SQLException {\n\t\t\treturn null;\r\n\t\t}", "private void addUserPoint() {\n\n String userRefEmail = edtEmailPengguna.getText().toString().replace('.', '_');\n final int poin = Integer.parseInt(tvPoinTransaksi.getText().toString());\n\n final DatabaseReference userDataRef = FirebaseDatabase.getInstance().getReference().child(\"Users\").child(userRefEmail);\n userDataRef.addListenerForSingleValueEvent(new ValueEventListener() {\n @Override\n public void onDataChange(@NonNull DataSnapshot dataSnapshot) {\n String userCurrentPoint = Objects.requireNonNull(dataSnapshot.child(\"point\").getValue()).toString();\n\n int finalPoint = Integer.parseInt(userCurrentPoint) + poin;\n userDataRef.child(\"point\").setValue(finalPoint);\n }\n\n @Override\n public void onCancelled(@NonNull DatabaseError databaseError) {\n }\n });\n }", "@Override\r\n\t\tpublic Savepoint setSavepoint(String name) throws SQLException {\n\t\t\treturn null;\r\n\t\t}", "public void saveGeominas(Geominas entity) throws Exception;", "public void saveJbdTravelPoint2014(JbdTravelPoint2014 jbdTravelPoint2014);", "public void setPoint(double point){\r\n this.point = point;\r\n }", "@Test\n\tpublic void testCreation() {\n\n\t\tnew Point(20, 10).save();\n\n\t\tList<Point> points = Point.findByAll();\n\n\t\tassertEquals(1, points.size());\n\t\tassertEquals(points.get(0).x, 20);\n\t\tassertEquals(points.get(0).y, 10);\n\n\t}", "void addRecord(DistRecord record, boolean persistPoints);", "@Override\r\n public void storePin() {\n DataStoreGP1 data = (DataStoreGP1) ds;\r\n data.pin = data.temp_p;\r\n System.out.println(\"Pin has been saved successfully..\");\r\n }", "public abstract void setPoint(Point p);", "public void setPoint(Integer point) {\n this.point = point;\n }", "int insert(PointsExchangeRecord record);", "@Test\n public void storeSavesBotLocation() {\n BotMemoryRecord record = new BotMemoryRecord();\n record.store(Point.pt(5, 5));\n\n assertThat(record.getLastKnownLocation(), Matchers.is(Point.pt(5, 5)));\n }", "public void insert(Spot spot) { mRepository.insert(spot); }", "void setPosition(Point point);", "public boolean save(UserFootPoint footPoint) {\n\t\ttry {\n\t\t\tthis.footPointDao.save(footPoint);\n\t\t\treturn true;\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\treturn false;\n\t\t}\n\t}", "public void insert(Point2D p) {\n pointSet.add(p);\n }", "public void preSaveInit() {\n persistentData.clear();\n for (int i = 0; i < getNumPoints(); i++) {\n persistentData.add(getPoint(i));\n }\n }", "private void processSavepoint() throws HsqlException {\n\n String token;\n\n token = tokenizer.getSimpleName();\n\n session.savepoint(token);\n }", "@Override\r\n\tpublic void save() {\n\r\n\t\ts.save();\r\n\r\n\t}", "public void save() {\n //write lift information to datastore\n LiftDataAccess lda = new LiftDataAccess();\n ArrayList<Long>newKeys = new ArrayList<Long>();\n for (Lift l : lift) {\n newKeys.add(lda.insert(l));\n }\n\n //write resort information to datastore\n liftKeys = newKeys;\n dao.update(this);\n }", "public void addPoint( final Point2d point ){\n points.add(new Point2d(point));\n\n dirty = true;\n }", "void setStartPoint(Location location, boolean persistPoints);", "public void setPoint(Integer point) {\n\t\tthis.point = point;\n\t}", "public void persistVisit(Visit visit) throws SQLException{\n\t\tpersistPlace(visit.getPlace());\n\t\t\n\t\tString readPlacePKQuery = \"SELECT id FROM Place WHERE name = ? AND descriptionFile = ?\";\n\t\tString insertVisitQuery = \"INSERT INTO Visit (visitTime, price, id_place) VALUES (?,?,?)\";\n\n\t\t//Then, get the primary key of the Place\n\t\tPreparedStatement preparedStatement = conn.prepareStatement(readPlacePKQuery);\n\t\t\n\t\tpreparedStatement.setString(1, visit.getPlace().getName());\n\t\tpreparedStatement.setString(2, visit.getPlace().getDescriptionFile());\n\t\t\n\t\tResultSet result = preparedStatement.executeQuery();\n\t\tresult.next();\n\t\t\n\t\tint placePK = result.getInt(\"id\");\n\t\t\n\t\tpreparedStatement.close();\n\n\t\t//Set visit in the database\n\t\tpreparedStatement = conn.prepareStatement(insertVisitQuery);\n\t\t\n\t\tpreparedStatement.setFloat(1, visit.getTime());\n\t\tpreparedStatement.setFloat(2, visit.getPrice());\n\t\tpreparedStatement.setInt(3, placePK);\n\n\t\tpreparedStatement.executeUpdate();\n\n\t\tpreparedStatement.close();\n\t}", "@Override\r\n\tpublic boolean savePosition(Position post) throws Exception {\n\t\treturn false;\r\n\t}", "public void saveJbdTravelPointLog2013(JbdTravelPointLog2013 jbdTravelPointLog2013);", "private DataPoint _addPoint(DataPoint point) {\n DataPoint existingPoint = ntree.add(point);\n if (existingPoint != null) {\n return existingPoint;\n }\n ensureDistances();\n lastAddedPoint = point;\n return null;\n }", "void storeObject(Polygon polygon, String id);", "@Override\n\tpublic void posSave() {\n\t\t\n\t}", "@Override\n\tpublic void posSave() {\n\t\t\n\t}", "public void addPoint() {\n points += 1;\n }", "@PropertyMapped\n\tpublic int getPoint() {\n\t\treturn point;\t\t\n\t}", "public boolean addPoint(Point p);", "public void insert(Point2D p) {\n\n if (p == null)\n throw new IllegalArgumentException(\"Got null object in insert()\");\n\n point2DSET.add(p);\n }", "public void save();", "public void save();", "public void save();", "public void save();", "private void addLocationToDatabase(Location location){\n if(recordLocations){\n JourneyLocation journeyLocation = new JourneyLocation(currentJourneyId, new LatLng(location.getLatitude(), location.getLongitude()), System.currentTimeMillis());\n interactor.addLocation(journeyLocation);\n }\n }", "public void setPoints(String points);", "public void addPoint(java.util.List point)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(POINT$0);\n target.setListValue(point);\n }\n }", "@Override\n\tpublic void save(Member member) {\n\t\tConnection conn = null;\n\t\t\ttry {\n\t\t\t\tconn = DbcpConnectionPool.getConnection();\n\t\t\t\tCallableStatement cstmt = conn.prepareCall(\"call Member_save(?,?,?)\");\n\t\t\t\tcstmt.setString(1, member.getMemberCard());\n\t\t\t\tcstmt.setDouble(2, member.getTotalCost());\n\t\t\t\tcstmt.setString(3, member.getRegDate());\n\t\t\t\tcstmt.execute();\n\t\t\t\tcstmt.close();\n\t\t\t\tconn.close();\n\t\t\t} catch (SQLException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t}", "protected void saveValues() {\n dataModel.persist();\n }", "public static void addGpsLogDataPoint( Connection connection, OmsGeopaparazziProject3To4Converter.GpsPoint point,\n long gpslogId ) throws Exception {\n Date timestamp = TimeUtilities.INSTANCE.TIME_FORMATTER_LOCAL.parse(point.utctime);\n\n String insertSQL = \"INSERT INTO \" + TableDescriptions.TABLE_GPSLOG_DATA + \"(\" + //\n TableDescriptions.GpsLogsDataTableFields.COLUMN_ID.getFieldName() + \", \" + //\n TableDescriptions.GpsLogsDataTableFields.COLUMN_LOGID.getFieldName() + \", \" + //\n TableDescriptions.GpsLogsDataTableFields.COLUMN_DATA_LON.getFieldName() + \", \" + //\n TableDescriptions.GpsLogsDataTableFields.COLUMN_DATA_LAT.getFieldName() + \", \" + //\n TableDescriptions.GpsLogsDataTableFields.COLUMN_DATA_ALTIM.getFieldName() + \", \" + //\n TableDescriptions.GpsLogsDataTableFields.COLUMN_DATA_TS.getFieldName() + //\n \") VALUES\" + \"(?,?,?,?,?,?)\";\n try (PreparedStatement writeStatement = connection.prepareStatement(insertSQL)) {\n writeStatement.setLong(1, point.id);\n writeStatement.setLong(2, gpslogId);\n writeStatement.setDouble(3, point.lon);\n writeStatement.setDouble(4, point.lat);\n writeStatement.setDouble(5, point.altim);\n writeStatement.setLong(6, timestamp.getTime());\n\n writeStatement.executeUpdate();\n }\n }", "public void add(int index, PointF point)\n {\n flushCache();\n points.add(index, Geometry.clone(point));\n }", "public void setPoint( Float point ) {\n this.point = point;\n }", "public void save(PosPrice posPrice) throws DataAccessException {\n super.save(posPrice);\n }", "public static Points createEntity() {\n Points points = new Points()\n .date(DEFAULT_DATE)\n .exercise(DEFAULT_EXERCISE)\n .meals(DEFAULT_MEALS)\n .alcohol(DEFAULT_ALCOHOL)\n .notes(DEFAULT_NOTES);\n return points;\n }", "public void addData(DataPoint point)\n {\n data.add(point);\n }", "private void addPoint( LatLng point ) {\n \t\tthis.addMarker( point );\n \t\tthis.commitPolygon();\n \t}", "public void save(ZpEvaluateDegreeVersionEntity entity) {\n\t\tdao.save(entity);\n\t}", "public void save(PtJJdwcy entity);", "public void insert(String word, Point point)\r\n\t{\r\n\t\t//call insert\r\n\t\troot.insert(new Data(word, point));\r\n\t}", "public void insert() {\n\t\tSession session = DBManager.getSession();\n\t\tsession.beginTransaction();\n\t\tsession.save(this);\n\t\tsession.getTransaction().commit();\n\t}", "public int getPoint(){\n return point;\n }", "void write(Point point) throws InfluxDbApiNotFoundException, InfluxDbApiBadrequestException, InfluxDbTransportException;", "@Override\n\tpublic void insert(Property property) {\n\t\tpr.save(property);\n\t}", "public void saveToDB() {\n \twipeDB();\n\t\tSQLiteDatabase db = nodeData.getReadableDatabase();\n\t\tContentValues values = new ContentValues();\n\t\tfor (int i = 0; i < wallpapers.size(); i++) {\n\t\t\tvalues.put(EventDataSQLHelper.NODE, nodeToString(wallpapers.get(i)));\n\t\t\ttry {\t\t\t\t\n\t\t\t\tdb.insertOrThrow(EventDataSQLHelper.TABLE, null, values);\n\t\t\t\tLog.d(\"AddToDB\", nodeToString(wallpapers.get(i)));\n\t\t\t} catch (SQLException e) {\n\t\t\t\tLog.d(\"AddToDB\", \"\" + e.getMessage());\n\t\t\t}\n\t\t}\n\t\tdb.close();\n }", "private void saveData(){\n databaseReference.setValue(new Teacher(0, \"\", 0.0));\n }", "public Point getPoint() {\n return point;\n }", "public void saveOrUpdate(PosPrice posPrice) throws DataAccessException{\n super.saveOrUpdate(posPrice);\n }", "public Point getPoint(){\n\t\treturn _point;\n\t}", "public void storeValues() throws SQLException { //store values into the database\n \tstoreValuesDump();\n \tstoreValuesMatl();\n }", "void storeObject(RectangleLatLng rectangle, String id);", "public void updateLoc()\n {\n driverLoc = new ParseGeoPoint(driverLocCord.latitude, driverLocCord.longitude);\n ParseUser.getCurrentUser().put(\"Location\", driverLoc);\n ParseUser.getCurrentUser().saveInBackground(new SaveCallback() {\n @Override\n public void done(ParseException e) {\n if(e==null){\n Toast.makeText(getApplicationContext(), \"Location Updated\", Toast.LENGTH_SHORT).show();\n }\n else{\n\n Toast.makeText(getApplicationContext(), \"Error in Location Update\", Toast.LENGTH_SHORT).show();\n e.printStackTrace();\n }\n }\n });\n\n\n populate();\n\n }", "void putData(CheckPoint checkPoint);", "public void setPoints(java.math.BigDecimal points) {\n this.points = points;\n }", "public void store(final boolean fast) {\n if (!_storeLock.tryLock()) {\n return;\n }\n\n try {\n Connection con = null;\n PreparedStatement statement = null;\n try {\n con = DatabaseFactory.getInstance().getConnection();\n statement = con.prepareStatement(//\n \"UPDATE characters SET face=?,hairStyle=?,hairColor=?,x=?,y=?,z=?\" + //\n \",karma=?,pvpkills=?,pkkills=?,rec_have=?,rec_left=?,rec_bonus_time=?,hunt_points=?,hunt_time=?,clanid=?,deletetime=?,\" + //\n \"title=?,accesslevel=?,online=?,leaveclan=?,deleteclan=?,nochannel=?,\" + //\n \"onlinetime=?,pledge_type=?,pledge_rank=?,lvl_joined_academy=?,apprentice=?,key_bindings=?,pcBangPoints=?,char_name=?,vitality=?,fame=?,bookmarks=?,last_hwid=? WHERE obj_Id=? LIMIT 1\");\n statement.setInt(1, getAppearanceComponent().getFace());\n statement.setInt(2, getAppearanceComponent().getHairStyle());\n statement.setInt(3, getAppearanceComponent().getHairColor());\n if (_stablePoint == null) // если игрок находится в точке в которой его сохранять не стоит (например на виверне) то сохраняются последние координаты\n {\n statement.setInt(4, getX());\n statement.setInt(5, getY());\n statement.setInt(6, getZ());\n } else {\n statement.setInt(4, _stablePoint.x);\n statement.setInt(5, _stablePoint.y);\n statement.setInt(6, _stablePoint.z);\n }\n statement.setInt(7, getKarma());\n statement.setInt(8, getPvpKills());\n statement.setInt(9, getPkKills());\n statement.setInt(10, getRecommendationComponent().getRecomHave());\n statement.setInt(11, getRecommendationComponent().getRecomLeft());\n statement.setInt(12, getRecommendationComponent().getRecomBonusTime());\n statement.setInt(13, getNevitComponent().getPoints());\n statement.setInt(14, getNevitComponent().getTime());\n statement.setInt(15, getClanId());\n statement.setInt(16, getDeleteTimer());\n statement.setString(17, _title);\n statement.setInt(18, _accessLevel);\n statement.setInt(19, isOnline() && !isInOfflineMode() ? 1 : 0);\n statement.setLong(20, getLeaveClanTime() / 1000L);\n statement.setLong(21, getDeleteClanTime() / 1000L);\n statement.setLong(22, _NoChannel > 0 ? getNoChannelRemained() / 1000 : _NoChannel);\n statement.setInt(23, (int) (_onlineBeginTime > 0 ? (_onlineTime + System.currentTimeMillis() - _onlineBeginTime) / 1000L : _onlineTime / 1000L));\n statement.setInt(24, getPledgeType());\n statement.setInt(25, getPowerGrade());\n statement.setInt(26, getLvlJoinedAcademy());\n statement.setInt(27, getApprentice());\n statement.setBytes(28, getKeyBindings());\n statement.setInt(29, getPremiumAccountComponent().getPcBangPoints());\n statement.setString(30, getName());\n statement.setInt(31, (int) getVitalityComponent().getVitality());\n statement.setInt(32, getFame());\n statement.setInt(33, getTeleportBookMarkComponent().getTpBookmarkSize());\n String hwid = getNetConnection() != null ? getNetConnection().getHWID() : getEnterHwid();\n statement.setString(34, hwid != null ? hwid : \"\");\n statement.setInt(35, getObjectId());\n\n statement.executeUpdate();\n } catch (final Exception e) {\n _log.error(\"Could not store char data: \" + this + '!', e);\n } finally {\n DbUtils.closeQuietly(con, statement);\n }\n\n GameStats.increaseUpdatePlayerBase();\n\n getPlayerClassComponent().storeCharSubClasses();\n\n if (!fast) {\n CharacterEffectDAO.getInstance().insert(this);\n CharacterGroupReuseDAO.getInstance().insert(this);\n storeDisableSkills();\n storeBlockList();\n }\n } finally {\n _storeLock.unlock();\n }\n }", "public PointRecord(){\n \n }", "@Override\n\tpublic void queryPoints() {\n\n\t}", "@Override\n public void execute()\n {\n measurementPoint = new MeasurementPoint(position);\n // Add marker to map and get the position of the marker on the map\n markerPositionOnMap = mapCanvas.addMarker(position, layer.getLayerName(), \"\", layer.getColor());\n // Add marker position to measurementPoint\n measurementPoint.setMarkerPositionOnMap(markerPositionOnMap);\n // Add measurementPoint to layerManager\n layer.addMeasurementPoint(measurementPoint);\n }", "private void insertState(State state) {\n SQLiteDatabase db = dbHelper.getWritableDatabase();\n state.print();\n cupboard().withDatabase(db).put(state);\n IDToday++;\n aCache.put(Const.Cache_Lastime_Timepoint, state.getTime_point());\n }", "public static String createSavepoint() throws DatabaseWrapperOperationException {\r\n \t\tString savepointName = UUID.randomUUID().toString();\r\n \t\r\n \t\ttry (PreparedStatement createSavepointStatement = ConnectionManager.getConnection().prepareStatement(\r\n \t\t\t\tSAVEPOINT + DatabaseStringUtilities.encloseNameWithQuotes(savepointName));) {\t\t\t\r\n \t\t\tcreateSavepointStatement.execute();\r\n \t\t\treturn savepointName;\r\n \t\t} catch (SQLException e) {\r\n \t\t\tLOGGER.error(\"Creating the savepoint {} failed\", savepointName);\r\n \t\t\tthrow new DatabaseWrapperOperationException(DBErrorState.ERROR_CLEAN_STATE, e);\r\n \t\t}\r\n \t}", "@Override\r\n\t\tpublic void releaseSavepoint(Savepoint savepoint) throws SQLException {\n\t\t\t\r\n\t\t}", "@Override\n public void persist() {\n }", "public org.astrogrid.stc.coords.v1_10.beans.Double3Type addNewPoint()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.astrogrid.stc.coords.v1_10.beans.Double3Type target = null;\n target = (org.astrogrid.stc.coords.v1_10.beans.Double3Type)get_store().add_element_user(POINT$0);\n return target;\n }\n }", "private void _setPoint(int index, DataPoint point) {\n ntree.set(index, point);\n ensureDistances();\n }", "public Integer getPoint() {\n return point;\n }", "public boolean SavePoint() {\n\t\tcmds.clear();\n\t\treturn true;\n\t}", "public void addPoint(T p) {\n points.add(p);\n }", "private void writeGPSDataToDB(String lat, String lon, String alt) {\n databaseHandler.setValueInExpInfo(lat, \"receiver_latitude\", experimentNumber);\n databaseHandler.setValueInExpInfo(lon, \"receiver_longitude\", experimentNumber);\n databaseHandler.setValueInExpInfo(alt, \"receiver_altitude\", experimentNumber);\n }", "public void storeMarker(UserMarker marker) {\n Entity markerEntity = new Entity(\"UserMarker\");\n markerEntity.setProperty(\"lat\", marker.getLat());\n markerEntity.setProperty(\"lng\", marker.getLng());\n markerEntity.setProperty(\"content\", marker.getContent());\n datastore.put(markerEntity);\n }", "Point createPoint();", "public void setPoint(double value) {\r\n this.point = value;\r\n }", "void saveShipment(Shipment shipment);", "public void saveFenceInSqliteDB(String name, String address, String city, String province, Double lat, Double lng, String range, String number, String textSMS, int event) {\n boolean active = true; // default whan you add a geofence is active\n boolean match = false; // default whan you add a geofence is not in fence\n\n int id = Controller.insertFenceOnSQLiteDB(name, address, city, province, lat + \"\", lng + \"\", range, 1, number, textSMS, event);\n Fence f = new Fence(id, name, address, city, province, lat, lng, Float.parseFloat(range), active, match, number, textSMS, event);\n Controller.fences.add(f);\n Toast.makeText(this.getContext(), \"Added the fence: \" + f.getName() + \"!\", Toast.LENGTH_LONG).show();\n }", "void saveTrip(Trip parTrip);", "public void insert(Point2D p) {\n if (p == null) {\n throw new IllegalArgumentException(\"cannot insert null pt\");\n }\n pointsSet.add(p);\n }", "public void saveGoal(Goal goal);", "public void addPoint (String user, double point) throws IOException { \r\n this.point = this.point + point; \r\n Owner o = new Owner(user, password);\r\n String lineSplit[];\r\n out = new FileReader(\"Customer.txt\");\r\n BufferedReader read = new BufferedReader(out);\r\n \r\n String line;\r\n String data = \"\";\r\n \r\n while((line = read.readLine()) != null){\r\n lineSplit = null;\r\n lineSplit = line.split(\",\");\r\n userName = lineSplit[0];\r\n password = lineSplit[1];\r\n status = o.changeStatus(this.point);\r\n \r\n if(user.equals(userName)){\r\n data+=userName+\",\"+password+\",\"+status+\",\"+this.point+\"\\r\\n\";\r\n System.out.println(data);\r\n }\r\n else{\r\n data+=line+\"\\r\\n\";\r\n }\r\n }\r\n read.close();\r\n in = new FileWriter(\"Customer.txt\");\r\n in.write(data);\r\n in.close();\r\n }", "public boolean add(PointF point)\n {\n flushCache();\n return points.add(Geometry.clone(point));\n }", "private boolean writeLocationObjectToDB(JacocDBLocation toAdd)\n {\n\tSQLiteDatabase db = this.getWritableDatabase();\n\n\tContentValues values = new ContentValues();\n\tvalues.put(this.LOCATION_NAME, toAdd.getLocationName());\n\tvalues.put(this.NE_REAL_LAT, toAdd.getRealLocation().getNorthEast().getLat());\n\tvalues.put(this.NE_REAL_LNG, toAdd.getRealLocation().getNorthEast().getLng());\n\tvalues.put(this.SW_REAL_LAT, toAdd.getRealLocation().getSouthWest().getLat());\n\tvalues.put(this.SW_REAL_LNG, toAdd.getRealLocation().getSouthWest().getLng());\n\tvalues.put(this.NE_MAP_LAT, toAdd.getMapLocation().getNorthEast().getLat());\n\tvalues.put(this.NE_MAP_LNG, toAdd.getMapLocation().getNorthEast().getLng());\n\tvalues.put(this.SW_MAP_LAT, toAdd.getMapLocation().getSouthWest().getLat());\n\tvalues.put(this.SW_MAP_LNG, toAdd.getMapLocation().getSouthWest().getLng());\n\tvalues.put(this.HIGH_SPEC, toAdd.getHighSpectrumRange());\n\tvalues.put(this.LOW_SPEC, toAdd.getLowSpectrumRange());\n\n\tdb.insert(TABLE_NAME, null, values);\n\tdb.close(); // Closing database connection\n\n\treturn true;\n }", "public double getPoint() {\r\n return point;\r\n }", "public double getPoint() {\r\n return point;\r\n }", "@Override\n\tpublic void save(Facture x) {\n\t\tgetHibernateTemplate().save(x);\n\t}", "private void CreaCoordinate(){\n \n this.punto = new Point(80, 80);\n \n }", "void save();", "void save();" ]
[ "0.6812628", "0.64852196", "0.6451334", "0.6197212", "0.61292905", "0.6081005", "0.6075524", "0.60745394", "0.6010336", "0.59997994", "0.58999205", "0.58962363", "0.585787", "0.5814911", "0.58060825", "0.5782736", "0.57790774", "0.5772398", "0.57321906", "0.57321584", "0.5731801", "0.5731092", "0.57294816", "0.5721368", "0.5720386", "0.571969", "0.5701088", "0.5700772", "0.5679145", "0.5678241", "0.56742895", "0.56742895", "0.5671152", "0.56696963", "0.5663338", "0.5660915", "0.56539196", "0.56539196", "0.56539196", "0.56539196", "0.5651199", "0.5647572", "0.56448287", "0.56374836", "0.5636886", "0.5632352", "0.5615247", "0.560551", "0.55923593", "0.55765164", "0.55643547", "0.5556754", "0.5548025", "0.55479103", "0.5547638", "0.55430096", "0.55418116", "0.5538026", "0.5536827", "0.5536672", "0.5535232", "0.5535116", "0.55327445", "0.5523158", "0.55200064", "0.5510032", "0.55091166", "0.55063236", "0.5501273", "0.54996675", "0.5493841", "0.54907626", "0.5489713", "0.5486272", "0.5484776", "0.5475176", "0.5470004", "0.54676825", "0.54651946", "0.5455251", "0.5454528", "0.54538774", "0.54496443", "0.54428774", "0.5441854", "0.5440653", "0.5440519", "0.54392505", "0.543118", "0.54307306", "0.54238373", "0.5421696", "0.5417157", "0.54161686", "0.54125875", "0.54125875", "0.5408737", "0.54042226", "0.54015857", "0.54015857" ]
0.7396409
0
Store the circle in the database
void storeObject(Circle circle, String id);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String saveShape(){\n\t\tString s = \"\";\n\t\ts+=\"Circle\\n\";\n\t\ts+= this.circle.toString();\n\t\tint xPoint = this.circle.getCentre().getX();\n\t\tint yPoint = this.circle.getCentre().getY();\n\t\tint radius = this.circle.getRadius();\n\t\ts+= \"\\tcenter:(\"+ xPoint + \",\"+ yPoint+\")\\n\";\n\t\ts+= \"\\tradius:\"+ radius+\"\\n\";\n\t\ts+= \"End Circle\\n\";\n\t\t\n\t\treturn s;\n\t}", "public Circle getSavedCircleBound()\n {\n return savedCircleBound;\n }", "public void saveGeominas(Geominas entity) throws Exception;", "public void saveToDB() {\n \twipeDB();\n\t\tSQLiteDatabase db = nodeData.getReadableDatabase();\n\t\tContentValues values = new ContentValues();\n\t\tfor (int i = 0; i < wallpapers.size(); i++) {\n\t\t\tvalues.put(EventDataSQLHelper.NODE, nodeToString(wallpapers.get(i)));\n\t\t\ttry {\t\t\t\t\n\t\t\t\tdb.insertOrThrow(EventDataSQLHelper.TABLE, null, values);\n\t\t\t\tLog.d(\"AddToDB\", nodeToString(wallpapers.get(i)));\n\t\t\t} catch (SQLException e) {\n\t\t\t\tLog.d(\"AddToDB\", \"\" + e.getMessage());\n\t\t\t}\n\t\t}\n\t\tdb.close();\n }", "private void saveData(){\n databaseReference.setValue(new Teacher(0, \"\", 0.0));\n }", "void storeObject(RectangleLatLng rectangle, String id);", "void storeObject(PointLatLng point, String id);", "public void newCrayon(Crayon cr) {\r\n\tem.getTransaction( ).begin( );\r\n em.persist(cr);\r\n em.getTransaction().commit();\r\n }", "private void addCircle() {\n\t\tdouble r = getRadius();\n\t\tadd(new GOval(getWidth() / 2.0 - r, getHeight() / 2.0 - r, 2 * r, 2 * r));\n\t}", "private void saveRaceCar() {\n if(Storage.getSelectedRaceCar() == null){\n RaceCar raceCar = new RaceCar(\n Storage.getNewId(),\n Double.valueOf(cornerWeightFLInput.getText()),\n Double.valueOf(cornerWeightFRInput.getText()),\n Double.valueOf(cornerWeightRLInput.getText()),\n Double.valueOf(cornerWeightRRInput.getText())\n );\n setRaceCarDefaultsToValues(raceCar);\n Storage.addRaceCar(raceCar);\n Storage.setSelectedRaceCar(raceCar);\n }else{\n RaceCar raceCar = Storage.getSelectedRaceCar();\n raceCar.setCornerWeightFL(Double.valueOf(cornerWeightFLInput.getText()));\n raceCar.setCornerWeightFR(Double.valueOf(cornerWeightFRInput.getText()));\n raceCar.setCornerWeightRL(Double.valueOf(cornerWeightRLInput.getText()));\n raceCar.setCornerWeightRR(Double.valueOf(cornerWeightRRInput.getText()));\n setRaceCarDefaultsToValues(raceCar);\n Storage.replaceRaceCar(raceCar);\n Storage.setSelectedRaceCar(raceCar);\n }\n }", "public void addCircle(Circle circle){\n circles.add(circle);\n }", "@Override\r\n\tpublic void saveCosmetics(CosmeticsDTO cosmeticsDTO) {\n\t\tSession session = null;\r\n\t\ttry {\r\n\t\t\tsession = HibSingleton.getFactory().openSession();\r\n\t\t\tsession.beginTransaction();\r\n\t\t\tsession.save(cosmeticsDTO);\r\n\t\t\tsession.getTransaction().commit();\r\n\t\t\tif (Objects.nonNull(cosmeticsDTO)) {\r\n\t\t\t\tSystem.out.println(\"data is stored in database successfully\");\r\n\t\t\t} else {\r\n\t\t\t\tSystem.out.println(\"data is not stored in database\");\r\n\r\n\t\t\t}\r\n\t\t} catch (HibernateException e) {\r\n\t\t\tsession.getTransaction().rollback();\r\n\t\t\te.printStackTrace();\r\n\t\t} finally {\r\n\t\t\tif (Objects.nonNull(session)) {\r\n\t\t\t\tsession.close();\r\n\t\t\t} else {\r\n\t\t\t\tSystem.out.println(\"session not closed properly\");\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t}", "public void saveFenceInSqliteDB(String name, String address, String city, String province, Double lat, Double lng, String range, String number, String textSMS, int event) {\n boolean active = true; // default whan you add a geofence is active\n boolean match = false; // default whan you add a geofence is not in fence\n\n int id = Controller.insertFenceOnSQLiteDB(name, address, city, province, lat + \"\", lng + \"\", range, 1, number, textSMS, event);\n Fence f = new Fence(id, name, address, city, province, lat, lng, Float.parseFloat(range), active, match, number, textSMS, event);\n Controller.fences.add(f);\n Toast.makeText(this.getContext(), \"Added the fence: \" + f.getName() + \"!\", Toast.LENGTH_LONG).show();\n }", "@SuppressWarnings(\"unused\")\n private static void storeOval(OvalRoi roi,\n MetadataStore store, int roiNum, int shape)\n {\n // TODO: storeOval\n }", "public Circle getCircle(){\n return circleObj;\n }", "private void saveObjects() {\n\t\tgo.setMeteors(meteors);\n\t\tgo.setExplosions(explosions);\n\t\tgo.setTargets(targets);\n\t\tgo.setRockets(rockets);\n\t\tgo.setCrosses(crosses);\n\t\tgo.setEarth(earth);\n\t}", "public void AddDataRecordtoDB(View view) {\n\n //get the running distance from textview\n TextView TV_distance = (TextView)findViewById(R.id.data_length);\n Double runningDistance = Double.parseDouble(TV_distance.getText().toString());\n System.out.println(\"distance is :\"+runningDistance);\n\n //get the calories from textview\n TextView TV_calories = (TextView)findViewById(R.id.data_calories);\n Double runningCalories = Double.parseDouble(TV_calories.getText().toString());\n System.out.println(\"calorie is :\"+runningCalories);\n\n // new an running \"entity\"\n Runningdata NewRunningdata = new Runningdata();\n NewRunningdata.setDistance(runningDistance);\n NewRunningdata.setCalorie(runningCalories);\n NewRunningdata.setStarttime(startTime);\n\n // using \"dao\" to manipulate database\n runningdao.insert(NewRunningdata);\n System.out.println(\"I did insertion\");\n }", "private void saveAT() \n {\n // get DatabaseConnector to interact with the SQLite database\n\t AnimalDatabase db = new AnimalDatabase(this);\n\t AnimalList al = new AnimalList (db);\n\t \n // insert the contact information into the database\n al.Update(id, amount, comments);\n\n }", "public void saveDetailsOnClick(View view)\n {\n\n //Create Picture object by passing String params set by user.\n Picture picture = new Picture(locationEditText.getText().toString(),\n pictureNameEditText.getText().toString());\n\n //call pushPicture method using instance of Picture to push picture to Firebase\n picture.pushPicture(picture.getLocation(),picture.getName());\n\n\n //Display Toast to let user know that picture has been saved.\n Toast.makeText(PictureActivity.this, R.string.save_toast,\n Toast.LENGTH_SHORT).show();\n\n }", "public void drawCircle() {\n mMap.clear();\n // Generate the points\n mMap.addPolygon(new PolygonOptions().addAll(points).strokeWidth(5).strokeColor(Color.RED).fillColor(Color.TRANSPARENT));\n // Create and return the polygon\n for (int i=0;i<points.size();i++){\n Log.v(\"DrawCircle\",\"drwaakmdaskfmlsmn\"+points.get(i));\n }\n\n\n\n }", "private void drawDB(Graphics g) {\n\t\tfor (Vertex v:db.getVerticesOfClass(\"Location\")) {\n\t\t\t// if the location is a door draw it in RED\n\t\t\tIterable <Vertex> vIt = v.getVertices(Direction.OUT, \"IS_A\");\n\t\t\tfor (Vertex vv: vIt) {\n\t\t\t\tif (vv.getProperty(\"@class\").equals(\"LocationConcept\"))\n\t\t\t\t\tif (vv.getProperty(\"Name\").equals(\"door\")) {\n\t\t\t\t\t\tg.setColor(Color.RED);\n\t\t\t\t\t\t((Graphics2D) g).setStroke(new BasicStroke (4f));\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tIterable <Vertex> corners = v.getProperty(\"Shape\");\n\t\t\tPolygon locationShape = new Polygon();\n\t\t\tint x = 0, y = 0, i = 0, xSum = 0, ySum = 0;\n\t\t\tif (corners != null) {\n\t\t\t\tfor (Vertex corner: corners) {\n\t\t\t\t\tx = ScaleToPlotX(corner.getProperty(\"x\"));\n\t\t\t\t\ty = ScaleToPlotY(corner.getProperty(\"y\"));\n\t\t\t\t\tlocationShape.addPoint(x, y);\n\t\t\t\t\txSum = xSum + x;\n\t\t\t\t\tySum = ySum + y;\n\t\t\t\t\ti++;\n\t\t\t\t}\n\t\t\t\tg.drawPolygon(locationShape);\n\t\t\t\tg.drawString((String) v.getProperty(\"Name\"), xSum/i - 10, ySum/i + 10); // draw the name in the middle of the room\n\t\t\t}\n\t\t\tg.setColor(Color.BLACK); // switch back to BLACK color for the next room\n\t\t\t((Graphics2D) g).setStroke(new BasicStroke (1f));\n\t\t}\n\t\t\n\t\t// draw all positions inside of a location as little RED circles\n\t\tg.setColor(Color.RED);\n\t\tfor (Edge e: db.getEdgesOfClass(\"IS_CONNECTED_TO\")) {\n\t\t\tVertex p1 = e.getVertex(Direction.IN);\n\t\t\tVertex p2 = e.getVertex(Direction.OUT);\n\t\t\tString p1Class = p1.getProperty(\"@class\");\n\t\t\tString p2Class = p1.getProperty(\"@class\");\t\n\n\t\t\tif (p1Class.equals(\"Position\") && p2Class.equals(\"Position\")) {\n\t\t\t\tg.fillOval(ScaleToPlotX(p1.getProperty(\"x\")), ScaleToPlotY(p1.getProperty(\"y\")),10,10);\n\t\t\t\tg.fillOval(ScaleToPlotX(p2.getProperty(\"x\")), ScaleToPlotY(p2.getProperty(\"y\")),10,10);\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\tg.setColor(Color.BLUE);\n\t\tif (pos != null) {\n\t\t\tg.fillOval(ScaleToPlotX(pos.getProperty(\"x\")), ScaleToPlotY(pos.getProperty(\"y\")),10,10);\n\t\t}\n\t}", "@Override\n\tpublic void save(CorsoDiLaurea corso) {\n\t\t\n\t}", "public void saveState() {\n savedPen.setValues(pm.pen);\n }", "void storeObject(Polygon polygon, String id);", "protected void saveValues() {\n dataModel.persist();\n }", "@Override\r\n\tpublic void save() {\n\r\n\t\ts.save();\r\n\r\n\t}", "public void recordLocation(){\n\t\tg2d.setColor(Color.blue);\n\t\n int x = (int)(sd.getLocationX() * scale) + width/2;\n int y = (int)(sd.getLocationY() * scale) + height/2;\n g2d.fillRect(x,y,8,8);\n\t\n\t}", "public void save() {\n //write lift information to datastore\n LiftDataAccess lda = new LiftDataAccess();\n ArrayList<Long>newKeys = new ArrayList<Long>();\n for (Lift l : lift) {\n newKeys.add(lda.insert(l));\n }\n\n //write resort information to datastore\n liftKeys = newKeys;\n dao.update(this);\n }", "private void createCircle(double x, double y) {\r\n GOval circle = new GOval(x, y, DIAMETR, DIAMETR);\r\n circle.setFilled(true);\r\n circle.setFillColor(Color.BLACK);\r\n add(circle);\r\n }", "@Override\n public void draw() {\n drawAPI.drawCircle(radius, x, y); \n }", "private void addUserPoint() {\n\n String userRefEmail = edtEmailPengguna.getText().toString().replace('.', '_');\n final int poin = Integer.parseInt(tvPoinTransaksi.getText().toString());\n\n final DatabaseReference userDataRef = FirebaseDatabase.getInstance().getReference().child(\"Users\").child(userRefEmail);\n userDataRef.addListenerForSingleValueEvent(new ValueEventListener() {\n @Override\n public void onDataChange(@NonNull DataSnapshot dataSnapshot) {\n String userCurrentPoint = Objects.requireNonNull(dataSnapshot.child(\"point\").getValue()).toString();\n\n int finalPoint = Integer.parseInt(userCurrentPoint) + poin;\n userDataRef.child(\"point\").setValue(finalPoint);\n }\n\n @Override\n public void onCancelled(@NonNull DatabaseError databaseError) {\n }\n });\n }", "public void persist(CredentialsModel credential) {\n Connection connection = null;\n PreparedStatement stmt = null;\n try {\n try {\n connection = ds.getConnection();\n try {\n stmt = connection.prepareStatement(\n \"INSERT INTO Credentials VALUES (?, ?, ?)\");\n stmt.setInt(1, credential.getEmployee().getEmpNumber());\n stmt.setString(2, credential.getUserName());\n stmt.setString(3, credential.getPassword());\n stmt.executeUpdate();\n } finally {\n if (stmt != null) {\n stmt.close();\n }\n }\n } finally {\n if (connection != null) {\n connection.close();\n }\n }\n } catch (SQLException ex) {\n System.out.println(\"Error in persist \" + credential);\n ex.printStackTrace();\n }\n }", "public Circle(Circle circle) {\n this.center = circle.center;\n this.radius = circle.radius;\n }", "@Override\n\tpublic void save(HrUserPoint hrUserPoint) {\n\t\tthis.sessionFactory.getCurrentSession().save(hrUserPoint);\n\t}", "private void doCircle()\n\t{\n\t\tubisenseData = new UbisenseMockupData();\n\t\tDecimalFormat df = new DecimalFormat(\"#0,00\");\n\n\t\telapsedTime = 0;\n\t\t\n\t\tubisenseData.setTagID(Helper.DEFAULT_TAG_ID);\n\t\tubisenseData.setUnit(Helper.UBISENSE_UNIT);\n\t\tubisenseData.setOntology(Helper.LP_ONTOLOGY_URL);\n\t\tubisenseData.setVersion(Helper.UBISENSE_VERSION);\n\t\tubisenseData.setId(\"\");\n\t\tubisenseData.setSendTime(sendTime);\n\n\t\tlong millis = startDate.getMillis();\n\t\tmillis += offset.toStandardDuration().getMillis();\n//\t\tmillis += parentOffset.toStandardDuration().getMillis();\n\t\t\n\t\t//Radianten des Winkels berechnen\n\t\tdouble radiant = Math.toRadians(arc);\n\t\t\n\t\t// Distanz d berechnen, die auf dem Kreis zurückgelegt werden soll\n\t\tdouble d = Math.PI * radius * (arc / 180);\n\t\t\n\t\t// Zeit t [s] berechnen, die für die Distanz d unter gegebener Geschwindigkeit benötigt wird.\n\t\tdouble t = d / toolSpeed;\n\t\tdouble steps = Math.ceil(t) +1;\n\n\t\t//Startkoordinaten berechnen\n\t\tint startX, startY;\n\t\tstartX = x1;\n\t\tstartY = y1 + radius;\n\t\t\n\t\twhile(steps > 0 && !terminate)\n\t\t{\n\t\t\tdouble x,y, currentTime=0, currentArc = 0;\n\t\t\tif (t != 0)\n\t\t\tcurrentTime = elapsedTime / t;\n\n\t\t\tcurrentArc = radiant * currentTime;\n\t\t\t\n\t\t\tx = (startX - x1) * Math.cos(currentArc) - (startY - y1) * Math.sin(currentArc) + x1;\n\t\t\ty = (startX - x1) * Math.sin(currentArc) + (startY - y1) * Math.cos(currentArc) + y1;\n\n\t\t\tubisenseData.setPosition(new Point3D(\tDouble.parseDouble(df.format(x)),\n\t\t\t \tDouble.parseDouble(df.format(y)),\n\t\t\t\t\t\t\t\t\t\t\t\t\t1.6));\n\t\t\tubisenseData.setId(String.valueOf(Helper.getRandomInt()));\n\t\t\tubisenseData.setTime(millis + (long) (elapsedTime*SLEEP_INTERVAL));\n\t\t\t\n\t\t\tEntryEvent event = new EntryEvent(this);\n\t\t\tnotifyListeners(event);\n\t\t\telapsedTime++;\n\t\t\tif (elapsedTime > t)\n\t\t\t\telapsedTime = t;\n\t\t\t\n\t\t\tsteps--;\n\t\t\ttry\n\t\t\t{\n\t\t\t\tif (speed > 0)\n\t\t\t\t\tThread.sleep(SLEEP_INTERVAL/speed);\n\t\t\t}\n\t\t\tcatch (InterruptedException e)\n\t\t\t{\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "public void save() {\t\n\t\n\t\n\t}", "public void save();", "public void save();", "public void save();", "public void save();", "public Circle(double r)\n {\n setRad(r);\n\n }", "void saveCity(City city);", "@Override\n public void saveValues() {\n \n }", "private void insert(SQLiteDatabase db, String geomText) {\n String sql = \"INSERT INTO \"+TABLE_NAME+\" (id, polygon) VALUES (null, '\"+geomText+\"')\";\n Log.i(\"SQL line\", sql);\n db.execSQL(sql);//insert(TABLE_NAME, null, values);\n }", "private void UploadtoServerSavedLocaiton() {\n\t\tCursor c = database.rawQuery(\"SELECT * from locations \", null);\r\n\t\tString mName = null, mPolygon = null;\r\n\t\tbyte[] blob;\r\n\r\n\t\tif (c != null) {\r\n\t\t\tif (c.moveToFirst()) {\r\n\t\t\t\tdo {\r\n\t\t\t\t\tmName = c.getString(c.getColumnIndex(\"name\"));\r\n\t\t\t\t\tblob = c.getBlob(c.getColumnIndex(\"polygon\"));\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tmPolygon = new String(blob, \"UTF-8\");\r\n\t\t\t\t\t} catch (UnsupportedEncodingException e) {\r\n\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t}\r\n\t\t\t\t\tUploadSavedLocationtoServer(mName, mPolygon);\r\n\t\t\t\t} while (c.moveToNext());\r\n\t\t\t}\r\n\t\t\tif (mResponse.contains(\"Success\")) {\r\n\t\t\t\t// Success alert\r\n\t\t\t\tmaTitle = \"Success\";\r\n\t\t\t\tmaMessage = \"Field added successfully\";\r\n\t\t\t\tShowAlert(maTitle, maMessage);\r\n\t\t\t\tuploadarraylist = new ArrayList<String>();\r\n\t\t\t\tmyList = new ArrayList<LatLng>();\r\n\t\t\t\tdatabase.execSQL(\"delete from locations\");\r\n\t\t\t\tSystem.err.println(\"database empty\");\r\n\r\n\t\t\t} else {\r\n\t\t\t\t// Failure Alert\r\n\t\t\t\tmaTitle = \"Failure\";\r\n\t\t\t\tmaMessage = \"Error in adding field\\nTry again\";\r\n\t\t\t\tShowAlert(maTitle, maMessage);\r\n\t\t\t}\r\n\t\t}\r\n\t\tc.close();\r\n\r\n\t}", "public final void save(final ByteBuffer buffer) {\r\n buffer.putInt(respawnRate);\r\n buffer.putShort((short) getId());\r\n buffer.putInt(getCount());\r\n buffer.putShort((short) (getLocation().getX() & 0xFFFF)).putShort((short) (getLocation().getY() & 0xFFFF))\r\n .put((byte) getLocation().getZ());\r\n }", "public void save() {\n ProductData.saveData(tree);\n }", "private static void calculateRadiusforCircle()\r\n\t{\r\n\t\tsensorRadius = Math.sqrt((double) averageDensity / (double) numberOfSensors);\r\n\t\tsensorRadius = sensorRadius * unitSizeForCircle;\r\n\t\tnoOfCellRowsCoulmns = (int) (unitSizeForSquare / sensorRadius);\r\n\t\tcell = new Cell[noOfCellRowsCoulmns + 2][noOfCellRowsCoulmns + 3];\r\n\t\tinitializeCell(noOfCellRowsCoulmns + 2, noOfCellRowsCoulmns + 3);\r\n\t}", "public Circle() {\r\n this.radius = 0.0;\r\n this.center = new Point();\r\n }", "public Circle(double radius){\n\t\tradius =this.radius;\n\t\tcolor =\"Red\";\n\t}", "int insert(SportAlbumPicture record);", "void save();", "void save();", "void save();", "public void saveDay() {\n day.setServices(serviciosTotales);\n day.setTasks(tasksTotales);\n\n databaseReference.child(day.getDate() + \"_\" + day.getUserId()).setValue(day);\n Toast.makeText(context, \"Creando archivo para enviar por correo.\", Toast.LENGTH_LONG).show();\n //todo, so far it will keep updating the day\naskPermissions();\n createExcel();\n\n }", "private void subirDispositivo(){\n DatabaseReference subir_data = db_reference.child(\"Dispositivo\");\n Map<String, String> dataDispositivo = new HashMap<String, String>();\n dataDispositivo.put(\"Evento\", etNombreCurso.getText().toString());\n dataDispositivo.put(\"Latitud1\", disp_Lat1);\n dataDispositivo.put(\"Longitud1\", disp_Long1);\n dataDispositivo.put(\"Latitud2\", disp_Lat2);\n dataDispositivo.put(\"Longitud2\", disp_Long2);\n subir_data.push().setValue(dataDispositivo);\n }", "public void store(final boolean fast) {\n if (!_storeLock.tryLock()) {\n return;\n }\n\n try {\n Connection con = null;\n PreparedStatement statement = null;\n try {\n con = DatabaseFactory.getInstance().getConnection();\n statement = con.prepareStatement(//\n \"UPDATE characters SET face=?,hairStyle=?,hairColor=?,x=?,y=?,z=?\" + //\n \",karma=?,pvpkills=?,pkkills=?,rec_have=?,rec_left=?,rec_bonus_time=?,hunt_points=?,hunt_time=?,clanid=?,deletetime=?,\" + //\n \"title=?,accesslevel=?,online=?,leaveclan=?,deleteclan=?,nochannel=?,\" + //\n \"onlinetime=?,pledge_type=?,pledge_rank=?,lvl_joined_academy=?,apprentice=?,key_bindings=?,pcBangPoints=?,char_name=?,vitality=?,fame=?,bookmarks=?,last_hwid=? WHERE obj_Id=? LIMIT 1\");\n statement.setInt(1, getAppearanceComponent().getFace());\n statement.setInt(2, getAppearanceComponent().getHairStyle());\n statement.setInt(3, getAppearanceComponent().getHairColor());\n if (_stablePoint == null) // если игрок находится в точке в которой его сохранять не стоит (например на виверне) то сохраняются последние координаты\n {\n statement.setInt(4, getX());\n statement.setInt(5, getY());\n statement.setInt(6, getZ());\n } else {\n statement.setInt(4, _stablePoint.x);\n statement.setInt(5, _stablePoint.y);\n statement.setInt(6, _stablePoint.z);\n }\n statement.setInt(7, getKarma());\n statement.setInt(8, getPvpKills());\n statement.setInt(9, getPkKills());\n statement.setInt(10, getRecommendationComponent().getRecomHave());\n statement.setInt(11, getRecommendationComponent().getRecomLeft());\n statement.setInt(12, getRecommendationComponent().getRecomBonusTime());\n statement.setInt(13, getNevitComponent().getPoints());\n statement.setInt(14, getNevitComponent().getTime());\n statement.setInt(15, getClanId());\n statement.setInt(16, getDeleteTimer());\n statement.setString(17, _title);\n statement.setInt(18, _accessLevel);\n statement.setInt(19, isOnline() && !isInOfflineMode() ? 1 : 0);\n statement.setLong(20, getLeaveClanTime() / 1000L);\n statement.setLong(21, getDeleteClanTime() / 1000L);\n statement.setLong(22, _NoChannel > 0 ? getNoChannelRemained() / 1000 : _NoChannel);\n statement.setInt(23, (int) (_onlineBeginTime > 0 ? (_onlineTime + System.currentTimeMillis() - _onlineBeginTime) / 1000L : _onlineTime / 1000L));\n statement.setInt(24, getPledgeType());\n statement.setInt(25, getPowerGrade());\n statement.setInt(26, getLvlJoinedAcademy());\n statement.setInt(27, getApprentice());\n statement.setBytes(28, getKeyBindings());\n statement.setInt(29, getPremiumAccountComponent().getPcBangPoints());\n statement.setString(30, getName());\n statement.setInt(31, (int) getVitalityComponent().getVitality());\n statement.setInt(32, getFame());\n statement.setInt(33, getTeleportBookMarkComponent().getTpBookmarkSize());\n String hwid = getNetConnection() != null ? getNetConnection().getHWID() : getEnterHwid();\n statement.setString(34, hwid != null ? hwid : \"\");\n statement.setInt(35, getObjectId());\n\n statement.executeUpdate();\n } catch (final Exception e) {\n _log.error(\"Could not store char data: \" + this + '!', e);\n } finally {\n DbUtils.closeQuietly(con, statement);\n }\n\n GameStats.increaseUpdatePlayerBase();\n\n getPlayerClassComponent().storeCharSubClasses();\n\n if (!fast) {\n CharacterEffectDAO.getInstance().insert(this);\n CharacterGroupReuseDAO.getInstance().insert(this);\n storeDisableSkills();\n storeBlockList();\n }\n } finally {\n _storeLock.unlock();\n }\n }", "public Circle(double radius){\n this.radius = radius;\n }", "private boolean writeLocationObjectToDB(JacocDBLocation toAdd)\n {\n\tSQLiteDatabase db = this.getWritableDatabase();\n\n\tContentValues values = new ContentValues();\n\tvalues.put(this.LOCATION_NAME, toAdd.getLocationName());\n\tvalues.put(this.NE_REAL_LAT, toAdd.getRealLocation().getNorthEast().getLat());\n\tvalues.put(this.NE_REAL_LNG, toAdd.getRealLocation().getNorthEast().getLng());\n\tvalues.put(this.SW_REAL_LAT, toAdd.getRealLocation().getSouthWest().getLat());\n\tvalues.put(this.SW_REAL_LNG, toAdd.getRealLocation().getSouthWest().getLng());\n\tvalues.put(this.NE_MAP_LAT, toAdd.getMapLocation().getNorthEast().getLat());\n\tvalues.put(this.NE_MAP_LNG, toAdd.getMapLocation().getNorthEast().getLng());\n\tvalues.put(this.SW_MAP_LAT, toAdd.getMapLocation().getSouthWest().getLat());\n\tvalues.put(this.SW_MAP_LNG, toAdd.getMapLocation().getSouthWest().getLng());\n\tvalues.put(this.HIGH_SPEC, toAdd.getHighSpectrumRange());\n\tvalues.put(this.LOW_SPEC, toAdd.getLowSpectrumRange());\n\n\tdb.insert(TABLE_NAME, null, values);\n\tdb.close(); // Closing database connection\n\n\treturn true;\n }", "@Override\n\tpublic void posSave() {\n\t\t\n\t}", "@Override\n\tpublic void posSave() {\n\t\t\n\t}", "public void save() {\r\n\t\ttry {\r\n\t\t\tthis.iniObjects();\r\n\t\t\tGxyService currentService = getGxyService();\r\n\t\t\tCompassSession session = new CobooCompass().getCompass().openSession();\r\n\t\t\tCompassTransaction tx = session.beginLocalTransaction();\r\n\t\t\tPerson person = null;\r\n\t\t\tCompassHits hits = session.find(\"ResidentpersonId:\" + this.personId.getHValue());\r\n\t\t\tif (hits.length() > 0) {\r\n\t\t\t\tCompassHit hit = hits.hit(0);\r\n\t\t\t\tperson = (Person) hit.getData();\r\n\t\t\t} else {\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\tCalendar cal = Calendar.getInstance();\r\n\t\t\tcal.setTime(this.visitTime[visitNo]);\r\n\t\t\tString StrYear = String.valueOf(cal.get(Calendar.YEAR));\r\n\r\n\t\t\tInfo gxyInfo = person.getGxyInfo();\r\n\t\t\tList<YearService> servicesOfYear = new ArrayList<YearService>();\r\n\t\t\tif (gxyInfo == null) {\r\n\t\t\t\tInfo Info = new GxyInfo();\r\n\t\t\t\tInfo.setIf_gxy(true);\r\n\t\t\t\tInfo.setDiagTime(new Date());\r\n\t\t\t\tperson.setGxyInfo(Info);\r\n\t\t\t\tgxyInfo = Info;\r\n\t\t\t} // else {\r\n\t\t\t\r\n\t\t\tservicesOfYear = gxyInfo.getYearServices();\r\n\t\t\tboolean found = false;\r\n\t\t\tfor (YearService ys : servicesOfYear) {\r\n\t\t\t\tif (ys.getYear().equals(StrYear)) {\r\n\t\t\t\t\tfound = true;\r\n\t\t\t\t\tGxyService[] gxyServices = ys.getServicesOfYear();\r\n\t\t\t\t\tgxyServices[visitNo] = currentService;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\t\t\tif (!found) {\r\n\t\t\t\tYearService newYs = new YearService();\r\n\t\t\t\tnewYs.setYear(StrYear);\r\n\t\t\t\tGxyService[] gxyServices = newYs.getServicesOfYear();\r\n\t\t\t\tfor (int i = 0; i < gxyServices.length; i++) {\r\n\t\t\t\t\tgxyServices[i] = new GxyService();\r\n\t\t\t\t\tgxyServices[i].setId(System.nanoTime());\r\n\t\t\t\t}\r\n\t\t\t\tgxyServices[visitNo] = currentService;\r\n\t\t\t\tservicesOfYear.add(newYs);\r\n\r\n\t\t\t}\r\n\t\t\t// }\r\n\t\t\tgxyInfo.setYearServices(servicesOfYear);\r\n\t\t\tperson.setGxyInfo(gxyInfo);\r\n\r\n\t\t\t// session.save(this.doctors[this.visitNo]);\r\n\t\t\t// gxyInfo.setId(System.nanoTime());\r\n\r\n\t\t\tsession.save(currentService);\r\n\t\t\tsession.save(person);\r\n\t\t\ttx.commit();\r\n\t\t\tsession.close();\r\n\t\t\tsuper.saveFile(this);\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "public void save(Sectors sectors) {\n\t\tString sql=\"{CALL Insert_Sectors(?,?,?,?)}\";\n\t\tjdbcTemplate.update(sql,sectors.getId(),sectors.getName(),sectors.getImage(),sectors.getStatus());\n\t}", "protected void saveRecord() throws DAOException {\r\n\t\t// Prepara para actualizar\r\n\t\tobject.prepareToUpdate();\r\n\t\t// Guarda objecto\r\n\t\tobjectDao.save(object);\r\n\t\t// Guarda registros de relaciones\r\n\t\tfor (Sedrelco relco : object.getRelcos()) {\r\n\t\t\t// Asigna Id padre\r\n\t\t\trelco.getId().setDconsecnk(object.getDconsecnk());\r\n\t\t\tsedrelcoDao.save(relco);\r\n\t\t}\r\n\t}", "@Transactional\n\tprivate void generateGodSet() {\n\t\tMinionCard ex1 = createMinionCard(\"Chatton transcendent\", -2, 1 , 1 , -1, \"Utilise mon energie\",\"img/cardImg/godSet/glow.jpg\");\n\t\tMinionCard ex2 = createMinionCard(\"Reda EX\", -7, 1,1, -2, \"Oh la la.\",\"img/cardImg/godSet/Reda.png\");\n\t\tMinionCard ex3 = createMinionCard(\"François EX\", -12, 1, 1, -3, \"Aujourd'hui On a Oncle Bob\",\"img/cardImg/godSet/Francois.png\");\n\t\t\n\t\tcardRepository.save(ex1);\n\t\tcardRepository.save(ex2);\n\t\tcardRepository.save(ex3);\n\t\t\n\t}", "void save(MountPoint mountPoint);", "@Override\n public void save()\n {\n \n }", "private void CreaCoordinate(){\n \n this.punto = new Point(80, 80);\n \n }", "@Override\n public void save() {\n \n }", "public void insert(){\r\n\t\tString query = \"INSERT INTO liveStock(name, eyeColor, sex, type, breed, \"\r\n\t\t\t\t+ \"height, weight, age, furColor, vetNumber) \"\r\n\t\t\t\t+ \"VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) \";\r\n\t\t\r\n\t\ttry {\r\n\t\t\tPreparedStatement prepareStatement = conn.prepareStatement(query);\r\n\t\t\t\r\n\t\t\tprepareStatement.setString(1, liveStock.getName());\r\n\t\t\tprepareStatement.setString(2, liveStock.getEyeColor());\r\n\t\t\tprepareStatement.setString(3, liveStock.getSex());\r\n\t\t\tprepareStatement.setString(4, liveStock.getAnimalType());\r\n\t\t\tprepareStatement.setString(5, liveStock.getAnimalBreed());\r\n\t\t\tprepareStatement.setString(6, liveStock.getHeight());\r\n\t\t\tprepareStatement.setString(7, liveStock.getWeight());\r\n\t\t\tprepareStatement.setInt(8, liveStock.getAge());\r\n\t\t\tprepareStatement.setString(9, liveStock.getFurColor());\r\n\t\t\tprepareStatement.setInt(10, liveStock.getVetNumber());\r\n\t\t\t\r\n\t\t\tprepareStatement.execute();\r\n\t\t\t\r\n\t\t} catch (SQLException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "private void saveData() {\n }", "private void addColoredCircle(int row, int col, Color c) {\n\t\tdouble size = CIRCLE_RADIUS * 2;\n\t\tGOval oval = new GOval(size, size);\n\t\toval.setFilled(true);\n\t\toval.setColor(c);\n\t\tadd(oval, col - CIRCLE_RADIUS, row - CIRCLE_RADIUS);\n\t}", "@Override\n\tpublic void draw() {\n\t\tSystem.out.println(\"Inside draw of Circle ..Point is: \"+center.getX() +\",\"+center.getY());\n\t}", "private void setFigureAtPlayerBattleground(int row, int col) {\n if (currentPlayer.isInPlayerBattlefield(row) && fields[row][col].isFieldFree()) {\n\n currentField.getCurrentFigure().setOwner(currentPlayer);\n currentPlayer.addFigure(currentField.getCurrentFigure());\n fields[row][col].setCurrentFigure(currentField.getCurrentFigure());\n\n } else {\n showMessageOnScreen(\"Invalid position!\");\n }\n }", "void savePicturePath(String userName, String picturePath) throws DatabaseException;", "public Curso save(Curso c) {\n\t\tc.setId(cursos.size()+1);\n\t\tcursos.add(c);\n\t\treturn c;\n\t}", "public void plantCrop(String owner, int plotNumber, String cropName){\n Land land = new Land();\n\n land.setCrop(cropName);\n land.setPlantTime(new Date(), cropName);\n land.setOwner(owner);\n land.setPlotNumber(plotNumber);\n\n Date plantTime = land.getPlantTime();\n Date finishedTime = land.getFinishedTime();\n Date witherTime = land.getWitherTime();\n int currentStatus = land.getCurrentStatus();\n String progressBar = land.getProgressBar();\n\n// SimpleDateFormat sdf = new java.text.SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\n// String formattedPlantTime = sdf.format(plantTime);\n// String formattedFinishedTime = sdf.format(finishedTime);\n// String formattedWitherTime = sdf.format(witherTime);\n\n Connection conn = controller.getConnection();\n PreparedStatement stmt = null;\n String sql = \"INSERT INTO magnet.land (owner, plotNumber, plantTime, finishedTime, witherTime, cropName, currentStatus, progressBar) VALUES (?,?,?,?,?,?,?,?)\";\n\n try {\n stmt = conn.prepareStatement(sql);\n stmt.setString(1, owner);\n stmt.setInt(2, plotNumber);\n stmt.setTimestamp(3, new java.sql.Timestamp(plantTime.getTime()) );\n stmt.setTimestamp(4, new java.sql.Timestamp(finishedTime.getTime()));\n stmt.setTimestamp(5, new java.sql.Timestamp(witherTime.getTime()));\n stmt.setString(6, cropName);\n stmt.setInt(7, currentStatus);\n stmt.setString(8, progressBar);\n stmt.executeUpdate();\n\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }", "public void saveJbdTravelPoint2014(JbdTravelPoint2014 jbdTravelPoint2014);", "private void DrawCircle(GL2 gl, int xC, int yC, int radius) {\n gl.glPointSize(10.0f);\n gl.glColor3d(1, 2, 1);\n gl.glBegin(GL2.GL_POINTS);\n\n gl.glVertex2d(xC, yC);\n\n int x = radius, y = 0, d = -4 * radius + 5;\n draw8SymmetricCurves(gl, xC, yC, x, y);\n while (y <= x) {\n if (d < 0) {\n d = d + ((2 * y + 3) * 4);\n y++;\n } else {\n d += ((-2 * x + 2 * y + 5) * 4);\n x--;\n y++;\n }\n draw8SymmetricCurves(gl, xC, yC, x, y);\n }\n gl.glEnd();\n }", "public Circle() {\n radius = 1.0;\n color = \"red\";\n }", "@Override\r\n public void storePin() {\n DataStoreGP1 data = (DataStoreGP1) ds;\r\n data.pin = data.temp_p;\r\n System.out.println(\"Pin has been saved successfully..\");\r\n }", "private void saveToDb() {\r\n ContentValues values = new ContentValues();\r\n values.put(DbAdapter.KEY_DATE, mTime);\r\n if (mPayeeText != null && mPayeeText.getText() != null)\r\n \tvalues.put(DbAdapter.KEY_PAYEE, mPayeeText.getText().toString());\r\n if (mAmountText != null && mAmountText.getText() != null)\r\n \tvalues.put(DbAdapter.KEY_AMOUNT, mAmountText.getText().toString());\r\n if (mCategoryText != null && mCategoryText.getText() != null)\r\n \tvalues.put(DbAdapter.KEY_CATEGORY, mCategoryText.getText().toString());\r\n if (mMemoText != null && mMemoText.getText() != null)\r\n \tvalues.put(DbAdapter.KEY_MEMO, mMemoText.getText().toString());\r\n if (mTagText != null && mTagText.getText() != null)\r\n \tvalues.put(DbAdapter.KEY_TAG, mTagText.getText().toString());\r\n\r\n \tif (Utils.validate(values)) {\r\n \t\tmDbHelper.open();\r\n \t\tif (mRowId == null) {\r\n \t\t\tlong id = mDbHelper.create(values);\r\n \t\t\tif (id > 0) {\r\n \t\t\t\tmRowId = id;\r\n \t\t\t}\r\n \t\t} else {\r\n \t\t\tmDbHelper.update(mRowId, values);\r\n \t\t}\r\n \t\tmDbHelper.close();\r\n \t}\r\n\t}", "public static void addCircle(MapLocation center, float size, float desire) {\n switch (circleCount) {\n case 0:\n Z1c_desire = desire;\n Z1c_center = center;\n Z1c_size = size;\n circleCount++;\n break;\n case 1:\n Z2c_desire = desire;\n Z2c_center = center;\n Z2c_size = size;\n circleCount++;\n break;\n case 2:\n Z3c_desire = desire;\n Z3c_center = center;\n Z3c_size = size;\n circleCount++;\n break;\n case 3:\n Z4c_desire = desire;\n Z4c_center = center;\n Z4c_size = size;\n circleCount++;\n break;\n case 4:\n Z5c_desire = desire;\n Z5c_center = center;\n Z5c_size = size;\n circleCount++;\n break;\n case 5:\n Z6c_desire = desire;\n Z6c_center = center;\n Z6c_size = size;\n circleCount++;\n break;\n case 6:\n Z7c_desire = desire;\n Z7c_center = center;\n Z7c_size = size;\n circleCount++;\n break;\n case 7:\n Z8c_desire = desire;\n Z8c_center = center;\n Z8c_size = size;\n circleCount++;\n break;\n case 8:\n Z9c_desire = desire;\n Z9c_center = center;\n Z9c_size = size;\n circleCount++;\n break;\n case 9:\n Z10c_desire = desire;\n Z10c_center = center;\n Z10c_size = size;\n circleCount++;\n break;\n case 10:\n Z11c_desire = desire;\n Z11c_center = center;\n Z11c_size = size;\n circleCount++;\n break;\n case 11:\n Z12c_desire = desire;\n Z12c_center = center;\n Z12c_size = size;\n circleCount++;\n break;\n case 12:\n Z13c_desire = desire;\n Z13c_center = center;\n Z13c_size = size;\n circleCount++;\n break;\n case 13:\n Z14c_desire = desire;\n Z14c_center = center;\n Z14c_size = size;\n circleCount++;\n break;\n case 14:\n Z15c_desire = desire;\n Z15c_center = center;\n Z15c_size = size;\n circleCount++;\n break;\n case 15:\n Z16c_desire = desire;\n Z16c_center = center;\n Z16c_size = size;\n circleCount++;\n break;\n case 16:\n Z17c_desire = desire;\n Z17c_center = center;\n Z17c_size = size;\n circleCount++;\n break;\n case 17:\n Z18c_desire = desire;\n Z18c_center = center;\n Z18c_size = size;\n circleCount++;\n break;\n case 18:\n Z19c_desire = desire;\n Z19c_center = center;\n Z19c_size = size;\n circleCount++;\n break;\n case 19:\n Z20c_desire = desire;\n Z20c_center = center;\n Z20c_size = size;\n circleCount++;\n break;\n }\n }", "public Coordinate getCircle();", "@Override\n\tpublic void save() {\n\t\t\n\t}", "@Override\n\tpublic void save() {\n\t\t\n\t}", "private void newCircle()\n {\n setMinimumSize(null);\n\n //Generate a new circle\n panel.generateNewCircle();\n\n //Calculate the circle properties and setup the text area with their values\n generateTextArea();\n\n //Repack the frame to fit everything perfectly\n pack();\n\n setMinimumSize(getSize());\n }", "public Square getCircleSquare(){\n return circleSquare;\n }", "public int savePicture() {\n if (path == null || name == null || author == null || dating == null || location == null\n || typeId == 0 || artPeriodId == 0 || typeId == -1 || artPeriodId == -1\n || path.trim().equals(\"\")\n || name.trim().equals(\"\")\n || author.trim().equals(\"\")\n || dating.trim().equals(\"\")\n || location.trim().equals(\"\")) {\n return 0;\n } else {\n Integer movement;\n if (movementId == -1) {\n movement = null;\n } else {\n movement = movementId;\n }\n if (trivia == null) {\n pictureRepository.insertNewPicture(path, name, author, dating, location, typeId, movement, artPeriodId);\n } else {\n pictureRepository.insertNewPicture(path, name, author, dating, location, typeId, movement, artPeriodId, trivia);\n }\n return 1;\n }\n }", "private void circle(){\n\t\tsquareCollison();\n\t\tsetMoveSpeed(10);\n\t}", "public void save() throws DfException {\n\t\tobject.save();\n\t}", "private void drawCircle(int radius) {\n if (mCircle != null) {\n mCircle.remove();\n }\n // We defined a new circle center options with location and radius\n mCircleOptions.center(new LatLng(mLocation.getLatitude(), mLocation.getLongitude())).radius(radius); // In meters\n // We add here to the map the new circle\n mCircle = mGoogleMap.addCircle(mCircleOptions);\n }", "public Circle(){\n\t\t\n\t\tradius = 1.0;\n\t\tcolor =\"Red\";\n\t}", "private void setCircle() {\n\t\tlayout_Circle=new Circle[][] {{null, null, null, null, null, null, null, null, null, null, null},\n\t\t\t \t\t\t\t\t\t {null, null, null, null, null, finishCircle, null, null, null, null, null},\n\t\t\t \t\t\t\t\t\t {null, null, null, null, null, pos80, null, null, null, null, null},\n\t\t\t \t\t\t\t\t\t {null, null, null, null, pos7_1, pos70, pos71, null, null, null, null},\n\t\t\t \t\t\t\t\t\t {null, null, null, pos6_2, pos6_1, pos60, pos61, pos62, null, null, null},\n\t\t\t \t\t\t\t\t\t {null, null, pos5_3, pos5_2, pos5_1, pos50, pos51, pos52, pos53, null, null},\n\t\t\t \t\t\t\t\t\t {null, pos4_4, pos4_3, pos4_2, pos4_1, pos40, pos41, pos42, pos43, pos44, null},\n\t\t\t \t\t\t\t\t\t {null, null, pos3_3, pos3_2, pos3_1, pos30, pos31, pos32, pos33, null, null},\n\t\t\t \t\t\t\t\t\t {null, null, null, pos2_2, pos2_1, pos20, pos21, pos22, null, null, null},\n\t\t\t \t\t\t\t\t\t {null, null, null, null, pos1_1, pos10, pos11, null, null, null, null},\n\t\t\t \t\t\t\t\t\t {null, null, null, null, null, startCircle, null, null, null, null, null},\n\t\t\t \t\t\t\t\t\t {null, null, null, null, null, null, null, null, null, null, null}};\n\t}", "public void setShape(Info shape) {\n \n }", "public void save(){\n DatabaseReference dbRef = DatabaseHelper.getDb().getReference().child(DatabaseVars.VouchersTable.VOUCHER_TABLE).child(getVoucherID());\n\n dbRef.setValue(this);\n }", "public void save(RaceSituation raceSituation);", "public void insert(Calificar c){\n Session session = sessionFactory.openSession();\n \n Transaction tx = null;\n \n try{\n tx = session.beginTransaction();\n \n session.persist(c);\n tx.commit();\n }\n catch(Exception e){\n if(tx != null){ tx.rollback(); }\n e.printStackTrace();\n }\n finally { session.close(); }\n }", "private void insertEmployeeRecord(){\n\n Drawable dbDrawable = getResources().getDrawable(R.drawable.empphoto);\n Bitmap bitmap = ((BitmapDrawable)dbDrawable).getBitmap();\n\n ByteArrayOutputStream stream = new ByteArrayOutputStream();\n bitmap.compress(Bitmap.CompressFormat.PNG, 100, stream);\n //Inserting values to Employee table.\n ContentValues vals = new ContentValues();\n vals.put(Constants.EMP_ID, \"1\");\n vals.put(Constants.EMP_NAME, \"Jaldip Gadhiya\");\n vals.put(Constants.EMP_AGE, \"30\");\n vals.put(Constants.EMP_PHOTO_IMAGE, stream.toByteArray());\n dbHelper.insertContentVals(Constants.EMPLOYEE_RECORD, vals);\n\n\n }", "void save(Bill bill);" ]
[ "0.59487784", "0.5565754", "0.54931754", "0.5487285", "0.54731333", "0.54611313", "0.5415668", "0.5412941", "0.5361371", "0.53152645", "0.5270309", "0.52443945", "0.5234292", "0.5204652", "0.51972663", "0.5182106", "0.5177488", "0.5176673", "0.5169967", "0.5143869", "0.50764847", "0.5074511", "0.50617725", "0.50569516", "0.50484216", "0.50428826", "0.5026753", "0.50103515", "0.50012696", "0.50005627", "0.4987592", "0.4975503", "0.49716583", "0.4971539", "0.4971445", "0.49668694", "0.49578238", "0.49578238", "0.49578238", "0.49578238", "0.49566075", "0.49276927", "0.49160045", "0.49155572", "0.49146742", "0.4910971", "0.49100488", "0.49091768", "0.4903372", "0.49002844", "0.48990822", "0.48845595", "0.48845595", "0.48845595", "0.48786414", "0.48784813", "0.48770294", "0.4868152", "0.48587576", "0.4851865", "0.4851865", "0.48514524", "0.48452976", "0.484513", "0.4842608", "0.4842476", "0.48357192", "0.4834952", "0.48313758", "0.48296443", "0.4826285", "0.4825858", "0.48247337", "0.48215866", "0.48205253", "0.4820469", "0.48185065", "0.48050758", "0.4802058", "0.4801346", "0.4798597", "0.47925052", "0.47888258", "0.47884297", "0.4787814", "0.4787814", "0.47870672", "0.47828233", "0.47793353", "0.47793323", "0.47761017", "0.47759604", "0.4765469", "0.4765005", "0.4763791", "0.47618008", "0.4754325", "0.47518575", "0.47469437", "0.4744988" ]
0.72150695
0
Store the polygon in the database
void storeObject(Polygon polygon, String id);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void savePolygon()\n {\n if (canSavePolygon())\n {\n SaveDialog dialog = new SaveDialog(createPolygonActivity, this, model);\n dialog.show();\n }\n }", "private static void storePolygon(PolygonRoi roi, MetadataStore store,\n int roiNum, int shape)\n {\n Rectangle bounds = roi.getBounds();\n int[] xCoordinates = roi.getXCoordinates();\n int[] yCoordinates = roi.getYCoordinates();\n StringBuffer points = new StringBuffer();\n for (int i=0; i<xCoordinates.length; i++) {\n points.append(xCoordinates[i] + bounds.x);\n points.append(\",\");\n points.append(yCoordinates[i] + bounds.y);\n if (i < xCoordinates.length - 1) points.append(\" \");\n }\n store.setPolylinePoints(points.toString(), roiNum, shape);\n store.setPolylineClosed(Boolean.TRUE, roiNum, shape);\n }", "private void UploadtoServerSavedLocaiton() {\n\t\tCursor c = database.rawQuery(\"SELECT * from locations \", null);\r\n\t\tString mName = null, mPolygon = null;\r\n\t\tbyte[] blob;\r\n\r\n\t\tif (c != null) {\r\n\t\t\tif (c.moveToFirst()) {\r\n\t\t\t\tdo {\r\n\t\t\t\t\tmName = c.getString(c.getColumnIndex(\"name\"));\r\n\t\t\t\t\tblob = c.getBlob(c.getColumnIndex(\"polygon\"));\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tmPolygon = new String(blob, \"UTF-8\");\r\n\t\t\t\t\t} catch (UnsupportedEncodingException e) {\r\n\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t}\r\n\t\t\t\t\tUploadSavedLocationtoServer(mName, mPolygon);\r\n\t\t\t\t} while (c.moveToNext());\r\n\t\t\t}\r\n\t\t\tif (mResponse.contains(\"Success\")) {\r\n\t\t\t\t// Success alert\r\n\t\t\t\tmaTitle = \"Success\";\r\n\t\t\t\tmaMessage = \"Field added successfully\";\r\n\t\t\t\tShowAlert(maTitle, maMessage);\r\n\t\t\t\tuploadarraylist = new ArrayList<String>();\r\n\t\t\t\tmyList = new ArrayList<LatLng>();\r\n\t\t\t\tdatabase.execSQL(\"delete from locations\");\r\n\t\t\t\tSystem.err.println(\"database empty\");\r\n\r\n\t\t\t} else {\r\n\t\t\t\t// Failure Alert\r\n\t\t\t\tmaTitle = \"Failure\";\r\n\t\t\t\tmaMessage = \"Error in adding field\\nTry again\";\r\n\t\t\t\tShowAlert(maTitle, maMessage);\r\n\t\t\t}\r\n\t\t}\r\n\t\tc.close();\r\n\r\n\t}", "public void createPolygonMap(){\n Log.d(\"POLYGON MAP\",\"SETTING\");\n PolygonManager.getIstance().putPolygonRegion(gMap);\n }", "public void saveGeominas(Geominas entity) throws Exception;", "private void insert(SQLiteDatabase db, String geomText) {\n String sql = \"INSERT INTO \"+TABLE_NAME+\" (id, polygon) VALUES (null, '\"+geomText+\"')\";\n Log.i(\"SQL line\", sql);\n db.execSQL(sql);//insert(TABLE_NAME, null, values);\n }", "void storeObject(PointLatLng point, String id);", "void storeObject(RectangleLatLng rectangle, String id);", "public void completePolygon(){\n\n PolygonOptions polygonOptions = new PolygonOptions()\n .addAll(points)\n .strokeColor(Color.GREEN)\n .fillColor(Color.TRANSPARENT);\n\n mMap.addPolygon(polygonOptions);\n\n //Add the coordinates of the first GridPoint to the end of the list to complete the polygon\n collectedPoints.add(collectedPoints.get(1));\n collectedPoints.add(\"\\n\");\n String CPString = collectedPoints.toString();\n\n //Obtain the right folder path from the intent passed on from the Form activity\n Intent data = getIntent();\n String name = (String) data.getSerializableExtra(\"name\");\n String number = (String) data.getSerializableExtra(\"number\");\n\n try {\n\n File textFolder = new File(Environment.getExternalStorageDirectory(), \"/CroftCappture/ \" + name + \"/Croft \" + number + \"/\");\n\n if (!textFolder.exists()) {\n\n textFolder.mkdirs();\n\n }\n\n String date = new SimpleDateFormat(\"yyyy-MM-dd_HH-mm-ss\").format(new Date());\n File destination = new File(textFolder, \"croft\"+date+\".txt\");\n FileWriter writer = new FileWriter(destination);\n writer.append(CPString);\n writer.flush();\n writer.close();\n\n } catch (IOException e) {\n\n e.printStackTrace();\n\n }\n\n mSubmitButton.setVisibility(View.VISIBLE);\n\n Toast.makeText(MainActivity.this, \"Finished mapping croft!\", Toast.LENGTH_SHORT).show();\n\n }", "private void GetSavedLocation() {\n\t\tCursor c = database.rawQuery(\"SELECT * from locations \", null);\r\n\t\t@SuppressWarnings(\"unused\")\r\n\t\tString mName = null, mPolygon = null;\r\n\t\tbyte[] blob;\r\n\r\n\t\tif (c != null) {\r\n\t\t\tif (c.moveToFirst()) {\r\n\t\t\t\tdo {\r\n\t\t\t\t\tmName = c.getString(c.getColumnIndex(\"name\"));\r\n\t\t\t\t\tblob = c.getBlob(c.getColumnIndex(\"polygon\"));\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tmPolygon = new String(blob, \"UTF-8\");\r\n\t\t\t\t\t} catch (UnsupportedEncodingException e) {\r\n\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t}\r\n\t\t\t\t\tSystem.err.println(\"Location NAme:\" + mName);\r\n\t\t\t\t} while (c.moveToNext());\r\n\t\t\t}\r\n\t\t}\r\n\t}", "void add(Polygon3 polygon)\n\t\t{\n\t\t\tPolygon3[] shapes2 = new Polygon3[shapes.length+1];\n\t\t\tfor(int i=0; i<shapes.length; i++)\n\t\t\t{\n\t\t\t\tshapes2[i] = shapes[i];\n\t\t\t}\n\t\t\tshapes2[shapes.length] = polygon;\n\t\t\tshapes = new Polygon3[shapes2.length];\n\t\t\tfor(int i=0; i<shapes2.length; i++)\n\t\t\t{\n\t\t\t shapes[i] = shapes2[i];\n\t\t\t}\n\t\t\t\n\t\t}", "private void setShape(){\n // 0 - index of the vertex at the top of the polygon\n shapex[0] = x + MathUtils.cos(radians) * 8;\n shapey[0] = y + MathUtils.sin(radians) * 8;\n\n // 1 - index of the vertex at the bottom left of the polygon\n shapex[1] = x + MathUtils.cos(radians - 4 * 3.1415f / 5) * 8;\n shapey[1] = y + MathUtils.sin(radians - 4 * 3.1415f / 5) * 8;\n\n // 2 - index of the vertex at the bottom right of the polygon\n shapex[2] = x + MathUtils.cos(radians + 4 * 3.1415f / 5) * 8;\n shapey[2] = y + MathUtils.sin(radians + 4 * 3.1415f / 5) * 8;\n }", "public File saveDrawing() {\n stopDrawing();\n GeoJsonConverter converter = new GeoJsonConverter();\n String string = converter.convertToGeoJson(currentDrawing.getAllLines());\n\n File file = new File(context.getExternalFilesDir(null), \"drawing.geojson\");\n try {\n FileOutputStream outputStream = new FileOutputStream(file);\n outputStream.write(string.getBytes()); //write the string to the file\n outputStream.close(); //close the stream\n //Log.d(TAG, string);\n } catch (FileNotFoundException e) {\n Log.e(TAG, \"FileNotFoundException\");\n } catch (IOException e) {\n Log.e(TAG, \"IOException\");\n\n }\n\n return file;\n }", "private void UploadSavedLocationtoServer(String mName, String mPolygon) {\n\t\ttry {\r\n\t\t\thttpClient = new DefaultHttpClient();\r\n\t\t\tSystem.err.println(\"Test\" + muUrl);\r\n\t\t\thttpPost = new HttpPost(muUrl + \"addfield.php\");\r\n\t\t\tnameValuePairs = new ArrayList<NameValuePair>();\r\n\t\t\tnameValuePairs.add(new BasicNameValuePair(\"field_name\", mName));\r\n\t\t\tnameValuePairs.add(new BasicNameValuePair(\"userid\", muUid));\r\n\t\t\tnameValuePairs\r\n\t\t\t\t\t.add(new BasicNameValuePair(\"polygon_data\", mPolygon));\r\n\t\t\thttpPost.setEntity(new UrlEncodedFormEntity(nameValuePairs));\r\n\t\t\tResponseHandler<String> responseHandler = new BasicResponseHandler();\r\n\t\t\tmResponse = httpClient.execute(httpPost, responseHandler);\r\n\t\t\tmResponse = mResponse.trim().toString();\r\n\r\n\t\t} catch (Exception e) {\r\n\t\t\tSystem.err.println(e.toString());\r\n\t\t\tToast.makeText(getApplicationContext(), \"Error in connection\",\r\n\t\t\t\t\tToast.LENGTH_LONG).show();\r\n\t\t}\r\n\r\n\t}", "public void save() {\n //write lift information to datastore\n LiftDataAccess lda = new LiftDataAccess();\n ArrayList<Long>newKeys = new ArrayList<Long>();\n for (Lift l : lift) {\n newKeys.add(lda.insert(l));\n }\n\n //write resort information to datastore\n liftKeys = newKeys;\n dao.update(this);\n }", "public Polygon()\n {\n points = new ArrayList<PointF>();\n }", "private void updateGuiPolygon() {\n \t\tif ( this.poly != null ) {\n \t\t\tthis.poly.remove();\n \t\t}\n \n \t\t// A polygon is at minimum a triangle.\n \t\tif ( !this.satisfiesPolygon() ) {\n \t\t\treturn;\n \t\t}\n \n \t\tPolygonOptions options = new PolygonOptions();\n \t\toptions\n \t\t\t.geodesic( POLYGON_GEODESIC )\n \t\t\t.strokeWidth( 2 )\n \t\t\t.fillColor( this.getFillColor() )\n \t\t\t.strokeColor( this.getResources().getColor( POLYGON_STROKE_COLOR ) );\n \n \t\tfor ( Marker marker : this.markers ) {\n \t\t\toptions.add( marker.getPosition() );\n \t\t}\n \n \t\tthis.poly = this.googleMap.addPolygon( options );\n \t}", "public void addPolygon(Polygon X, int latIndex, int longIndex) {\r\n\tif (!squares.containsKey(latIndex))\r\n\t squares.put(latIndex, new HashMap<Integer, GeoSquare>());\r\n\tif (!squares.get(latIndex).containsKey(longIndex))\r\n\t squares.get(latIndex).put(longIndex, new GeoSquare());\r\n\tsquares.get(latIndex).get(longIndex).elements.add(X);\r\n\r\n\tif (!polygonsToSquares.containsKey(X.uri))\r\n\t polygonsToSquares.put(X.uri, new HashSet<List<Integer>>());\r\n\tpolygonsToSquares.get(X.uri).add(Arrays.asList(new Integer[] { latIndex, longIndex }));\r\n }", "public void saveJbdTravelPoint2014(JbdTravelPoint2014 jbdTravelPoint2014);", "public void addPolyGon() {\n abstractEditor.drawNewShape(new ESurfaceDT());\n }", "public gov.ucore.ucore._2_0.PolygonType addNewPolygon()\n {\n synchronized (monitor())\n {\n check_orphaned();\n gov.ucore.ucore._2_0.PolygonType target = null;\n target = (gov.ucore.ucore._2_0.PolygonType)get_store().add_element_user(POLYGON$0);\n return target;\n }\n }", "public void add(Polygon p) {\n for (int i = 0; i < p.size(); i++)\n add(p.get(i).xyz.x, p.get(i).xyz.y, p.get(i).xyz.z);\n }", "public static void writePolygon(FileWriter output, List<Integer> bufferPoly, List<String> geomPoly, int location) throws Exception{\n\tSystem.out.println(\"size\"+location+\" :\"+bufferPoly.size());\n\t\t\n\tfor (int i=0; i<bufferPoly.size();i++){\n\t\toutput.append(Objects.toString(bufferPoly.get(i)));\n\t\toutput.append(\";\");\n\t\toutput.append(Objects.toString(location));\n\t\toutput.append(\"\\n\");\n\t}\t\n\t}", "void saveTrip(Trip parTrip);", "public void setPolygon(gov.ucore.ucore._2_0.PolygonType polygon)\n {\n synchronized (monitor())\n {\n check_orphaned();\n gov.ucore.ucore._2_0.PolygonType target = null;\n target = (gov.ucore.ucore._2_0.PolygonType)get_store().find_element_user(POLYGON$0, 0);\n if (target == null)\n {\n target = (gov.ucore.ucore._2_0.PolygonType)get_store().add_element_user(POLYGON$0);\n }\n target.set(polygon);\n }\n }", "public void saveFenceInSqliteDB(String name, String address, String city, String province, Double lat, Double lng, String range, String number, String textSMS, int event) {\n boolean active = true; // default whan you add a geofence is active\n boolean match = false; // default whan you add a geofence is not in fence\n\n int id = Controller.insertFenceOnSQLiteDB(name, address, city, province, lat + \"\", lng + \"\", range, 1, number, textSMS, event);\n Fence f = new Fence(id, name, address, city, province, lat, lng, Float.parseFloat(range), active, match, number, textSMS, event);\n Controller.fences.add(f);\n Toast.makeText(this.getContext(), \"Added the fence: \" + f.getName() + \"!\", Toast.LENGTH_LONG).show();\n }", "public static void save()\n\t{\n writeMap();\n\t}", "@Override\n\tpublic boolean save(String file) {\n\t\n\t\tGson gson = new GsonBuilder().create();\n\t\tJsonArray arrEdges = new JsonArray();\n\t\tJsonArray arrNodes = new JsonArray();\n\t\tCollection<node_data> arrV = this.dwg.getV();\n\t\tfor(node_data vertex : arrV) {\n\t\t\tJsonObject nodesObj = new JsonObject();\n\t\t\tgeo_location gl = vertex.getLocation();\n\t\t\tnodesObj.addProperty(\"pos\",String.valueOf(gl.x())+\",\"+String.valueOf(gl.y())+\",\"+String.valueOf(gl.z()));\n\t\t\tnodesObj.addProperty(\"id\",vertex.getKey());\n\t\t\tarrNodes.add(nodesObj);\n\t\t\tCollection<edge_data> arrE = this.dwg.getE(vertex.getKey());\n\t\t\tfor(edge_data edge : arrE) {\n\t\t\t\tJsonObject edgesObj = new JsonObject();\n\t\t\t\tedgesObj.addProperty(\"src\",edge.getSrc());\n\t\t\t\tedgesObj.addProperty(\"w\",edge.getWeight());\n\t\t\t\tedgesObj.addProperty(\"dest\",edge.getDest());\n\t\t\t\tarrEdges.add(edgesObj);\n\t\t\t}\n\t\t}\n\t\tJsonObject graphObj = new JsonObject();\n\t\tgraphObj.add(\"Edges\",arrEdges);\n\t\tgraphObj.add(\"Nodes\",arrNodes);\n\t\tString ans = gson.toJson(graphObj);\n\n\t\ttry{\n\t\t\tPrintWriter pw = new PrintWriter(new File(file));\n\t\t\tpw.write(ans);\n\t\t\tpw.close();\n\t\t}\n\t\tcatch (FileNotFoundException e){\n\t\t\te.printStackTrace();\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "private void saveToStorage() {\n FileOutputStream fos = null;\n try {\n fos = context.openFileOutput(\"GeoFences\", Context.MODE_PRIVATE);\n ObjectOutputStream oos = new ObjectOutputStream(fos);\n oos.writeObject(currentList);\n oos.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public void updateGeominas(Geominas entity) throws Exception;", "private void save(JTour jTour){\n if(jTour.save()>0){\n for(JPlace jPlace : jTour.getPlaces()){\n if(jPlace.save() > 0){\n //u principu bi trebala biti samo jedna lokacija u placu\n jPlace.getLocations().get(0).save();\n }\n }\n }\n\n }", "public void init() {\r\n BufferedReader in = null;\r\n String line;\r\n PreparedStatement iStmt;\r\n String insertStmt = \"INSERT INTO \" + schema + \"ULDSHAPE \"\r\n + \"(SHAPE, ALLHGHT, ALLLENG, ALLWDTH, BIGPIC, DESCR, INTERNALVOLUME, INTHGHT, INTLENG, INTWDTH, \"\r\n + \"MAXGROSSWGHT, RATING, TAREWGHT, THUMBNAIL, UPDATED, UPDTUSER, VERSION) VALUES \"\r\n + \"(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)\";\r\n int count = 0;\r\n\r\n LOG.log(Level.INFO, \"Initialize basic Uldshapes in DB from file [{0}]\", path);\r\n\r\n try {\r\n in = new BufferedReader(new InputStreamReader(new FileInputStream(path), StandardCharsets.UTF_8));\r\n\r\n iStmt = conn.prepareStatement(insertStmt);\r\n\r\n while ((line = in.readLine()) != null) {\r\n LOG.finer(line);\r\n\r\n UldshapeVO uldshapeVO = parseUldshape(line);\r\n\r\n iStmt.setString(1, uldshapeVO.getShape());\r\n iStmt.setInt(2, uldshapeVO.getAllhght());\r\n iStmt.setInt(3, uldshapeVO.getAllleng());\r\n iStmt.setInt(4, uldshapeVO.getAllwdth());\r\n iStmt.setBytes(5, uldshapeVO.getBigpic());\r\n iStmt.setString(6, uldshapeVO.getDescr());\r\n iStmt.setInt(7, uldshapeVO.getInternalvolume());\r\n iStmt.setInt(8, uldshapeVO.getInthght());\r\n iStmt.setInt(9, uldshapeVO.getIntleng());\r\n iStmt.setInt(10, uldshapeVO.getIntwdth());\r\n iStmt.setInt(11, uldshapeVO.getMaxgrosswght());\r\n iStmt.setString(12, uldshapeVO.getRating());\r\n iStmt.setInt(13, uldshapeVO.getTarewght());\r\n iStmt.setBytes(14, uldshapeVO.getThumbnail());\r\n iStmt.setTimestamp(15, DbUtil.getCurrentTimeStamp());\r\n iStmt.setString(16, uldshapeVO.getUpdtuser());\r\n iStmt.setLong(17, 0);\r\n\r\n // execute insert SQL stetement\r\n iStmt.executeUpdate();\r\n\r\n ++count;\r\n }\r\n LOG.log(Level.INFO, \"Finished: [{0}] ULDSHAPES loaded\", count);\r\n\r\n DbUtil.cleanupJdbc();\r\n }\r\n catch (IOException ioex) {\r\n LOG.log(Level.SEVERE, \"An IO error occured. The error message is: {0}\", ioex.getMessage());\r\n }\r\n catch (SQLException ex) {\r\n LOG.log(Level.SEVERE, \"An SQL error occured. The error message is: {0}\", ex.getMessage());\r\n }\r\n finally {\r\n if (in != null) {\r\n try {\r\n in.close();\r\n }\r\n catch (IOException e) {\r\n }\r\n }\r\n }\r\n }", "public void save() throws Exception{\n\t\tm_service = new DistrictService();\n\t\t//插入城市\t\t\n\t\t//String saveStr = \"~`哈迪~`达鲁~`哥本~`~`~`C~`9898~`9898~`0~`~`0~`~`从DHL地区表中导入~`N~`N~`N~`~`~`~`~`~`~`EMS~`~`~@~#\";\t\n\t\t//插入国家\n\t\tString saveStr = \"3785~`麦克1~`纽斯1~`迪录1~`~`~`C~`9898~`9898~`0~`~`0~`~`从DHL地区表中导入~`N~`N~`N~`1~`~`~`~`~`~`EMS~`~`~@~#\";\t\n\n\t\tDecoder objPD = new Decoder(saveStr);\n\t\tString objReturn = m_service.save(objPD);\n\t\tSystem.out.println(objReturn);\n\t\t\n\t}", "public Polygon getPolygon(double eyeDistance){\n //define the front two verticies of the currentTrack\n Point3D track_vertex0 = currentTrack.getVertex(0);\n Point3D track_vertex1 = currentTrack.getVertex(1);\n //use center point to define the center of the sphape\n int cubeSize = 3;\n\n Point3D front_up_left = new Point3D (centerPoint.x-cubeSize, centerPoint.y-cubeSize, centerPoint.z-cubeSize);\n Point3D front_down_left = new Point3D (centerPoint.x-cubeSize, centerPoint.y+cubeSize, centerPoint.z-cubeSize);\n Point3D front_down_right = new Point3D (centerPoint.x+cubeSize, centerPoint.y+cubeSize, centerPoint.z-cubeSize);\n Point3D front_up_right = new Point3D (centerPoint.x+cubeSize, centerPoint.y-cubeSize, centerPoint.z-cubeSize);\n\n Point3D back_up_left = new Point3D (front_up_left.x, front_up_left.y, centerPoint.z+cubeSize);\n Point3D back_down_left = new Point3D (front_down_left.x, front_down_left.y, centerPoint.z+cubeSize);\n Point3D back_down_right = new Point3D (front_down_right.x, front_down_right.y, centerPoint.z+cubeSize);\n Point3D back_up_right = new Point3D (front_up_right.x, front_up_right.y, centerPoint.z+cubeSize);\n\n //aranges verticies in the order they will be drawn\n Point3D[] cube_verticies = {front_up_left, front_down_left, front_down_right, front_up_right,\n front_up_left, back_up_left, back_up_right, front_up_right,\n front_down_right, back_down_right, back_up_right, back_down_right,\n back_down_left, back_up_left, back_down_left, front_down_left};\n\n int[] x_points = new int[16];\n int[] y_points = new int[16];\n //convert 3D points to 2D points\n for(int i=0;i<16;i++){\n if(cube_verticies[i].z <= 200){ //same fix as for the track positioning\n x_points[i] = (int) -cube_verticies[i].projectPoint3D(eyeDistance).getX();\n y_points[i] = (int) cube_verticies[i].projectPoint3D(eyeDistance).getY();\n }\n else{\n x_points[i] = (int) cube_verticies[i].projectPoint3D(eyeDistance).getX();\n y_points[i] = (int) cube_verticies[i].projectPoint3D(eyeDistance).getY();\n }\n }\n Polygon polygon = new Polygon(x_points, y_points, 16);\n return polygon;\n }", "@Override\r\n\tpublic void save() {\n\r\n\t\ts.save();\r\n\r\n\t}", "public void save() {\t\n\t\n\t\n\t}", "public void saveSensorsDB() throws Exception {\n\n\t\t//Get JDBC connection\n\t\tConnection connection = null;\n\t\tStatement stmt = null;\n\t\tConnectDB conn = new ConnectDB();\n\t\tconnection = conn.getConnection();\n\n\t\tstmt = connection.createStatement();\n\t\tfor (int key : getMap().keySet()) {\n\t\t\tSubArea value = getMap().get(key);\n\t\t\tint fireValue = (value.isFireSensor()) ? 1 : 0;\n\t\t\tint burglaryValue = (value.isBurglarySensor()) ? 1 : 0;\n\t\t\t//Save Fire and Burglary sensors\n\t\t\tString sql = \"UPDATE section SET fireSensor=\" + fireValue\n\t\t\t\t\t+ \", burglarySensor=\" + burglaryValue + \" WHERE id=\" + key;\n\t\t\tstmt.executeUpdate(sql);\n\t\t}\n\n\t}", "public void save();", "public void save();", "public void save();", "public void save();", "void save();", "void save();", "void save();", "public abstract void encodeGeometryValue(Geometry value, int srid, StringBuffer sql)\r\n throws IOException;", "@Test\n public void testPolygonExport(){\n fakeCoord.add(new Point2D.Double(0.10,0.20));\n VecCommandStack.push(VecCommandFactory.GetShapeCommand(VecCommandType.POLYGON, fakeCoord));\n String print = VecCommandStack.peek().PrintToFile();\n assertEquals(\"POLYGON 0.1 0.2 \\n\", print);\n }", "public Area(ArrayList<Point> polygonPoints) {\n this.polygonPoints = polygonPoints;\n }", "@FXML\r\n private void crearTriangulo(ActionEvent event) {\n \r\n double x[] = {100, 150, 50};\r\n double y[] = {100, 210, 210, 50};\r\n \r\n g.setFill(Color.GOLD);\r\n g.fillPolygon(x, y, 3);\r\n }", "public void preSaveInit() {\n persistentData.clear();\n for (int i = 0; i < getNumPoints(); i++) {\n persistentData.add(getPoint(i));\n }\n }", "public void saveToDB() {\n \twipeDB();\n\t\tSQLiteDatabase db = nodeData.getReadableDatabase();\n\t\tContentValues values = new ContentValues();\n\t\tfor (int i = 0; i < wallpapers.size(); i++) {\n\t\t\tvalues.put(EventDataSQLHelper.NODE, nodeToString(wallpapers.get(i)));\n\t\t\ttry {\t\t\t\t\n\t\t\t\tdb.insertOrThrow(EventDataSQLHelper.TABLE, null, values);\n\t\t\t\tLog.d(\"AddToDB\", nodeToString(wallpapers.get(i)));\n\t\t\t} catch (SQLException e) {\n\t\t\t\tLog.d(\"AddToDB\", \"\" + e.getMessage());\n\t\t\t}\n\t\t}\n\t\tdb.close();\n }", "public void Polygon(WMFPoint p[], short nbr) throws IOException {\n\t\taddCommandLINES(META_POLYGON, p, nbr);\n\t}", "private boolean writeLocationObjectToDB(JacocDBLocation toAdd)\n {\n\tSQLiteDatabase db = this.getWritableDatabase();\n\n\tContentValues values = new ContentValues();\n\tvalues.put(this.LOCATION_NAME, toAdd.getLocationName());\n\tvalues.put(this.NE_REAL_LAT, toAdd.getRealLocation().getNorthEast().getLat());\n\tvalues.put(this.NE_REAL_LNG, toAdd.getRealLocation().getNorthEast().getLng());\n\tvalues.put(this.SW_REAL_LAT, toAdd.getRealLocation().getSouthWest().getLat());\n\tvalues.put(this.SW_REAL_LNG, toAdd.getRealLocation().getSouthWest().getLng());\n\tvalues.put(this.NE_MAP_LAT, toAdd.getMapLocation().getNorthEast().getLat());\n\tvalues.put(this.NE_MAP_LNG, toAdd.getMapLocation().getNorthEast().getLng());\n\tvalues.put(this.SW_MAP_LAT, toAdd.getMapLocation().getSouthWest().getLat());\n\tvalues.put(this.SW_MAP_LNG, toAdd.getMapLocation().getSouthWest().getLng());\n\tvalues.put(this.HIGH_SPEC, toAdd.getHighSpectrumRange());\n\tvalues.put(this.LOW_SPEC, toAdd.getLowSpectrumRange());\n\n\tdb.insert(TABLE_NAME, null, values);\n\tdb.close(); // Closing database connection\n\n\treturn true;\n }", "void saveShipment(Shipment shipment);", "private PolygonEditor(String f, float boxHeight)\n {\n super();\n this.boxHeight = boxHeight;\n System.out.println(\"height = \" + boxHeight);\n powerOf10 = 1;\n while (powerOf10*boxHeight < 300) {\n powerOf10 *= 10;\n }\n\n if (f != null) icon = new ImageIcon(f);\n if (icon == null) {\n pixelScale = SCALE;\n bitmapWidth = WIDTH/SCALE;\n bitmapHeight = HEIGHT/SCALE;\n } else {\n Image image = icon.getImage();\n int w = icon.getIconWidth();\n int h = icon.getIconHeight();\n pixelScale = Math.min(WIDTH/w, HEIGHT/h);\n bitmapWidth = w;\n bitmapHeight = h;\n image = image.getScaledInstance((int)(w * pixelScale), -1, Image.SCALE_DEFAULT);\n icon.setImage(image);\n }\n canvasWidth = (bitmapWidth * pixelScale);\n canvasHeight = (bitmapHeight * pixelScale);\n centreX = canvasWidth/2.0f;\n centreY = canvasHeight/2.0f;\n scale = boxHeight / canvasHeight;\n setPreferredSize(new java.awt.Dimension((int)canvasWidth, (int)canvasHeight));\n\n points = new ArrayList<Point2D.Float>();\n addMouseListener(new MouseAdapter() {\n public void mousePressed(MouseEvent e) {\n Point2D.Float p = toGridPoint(e.getX(), e.getY());\n currentVertex = findVertex(p);\n if (currentVertex < 0) {\n currentVertex = points.size();\n points.add(p);\n } else {\n points.set(currentVertex, p);\n }\n repaint();\n }\n\n public void mouseReleased(MouseEvent e) {\n String mods = e.getMouseModifiersText(e.getModifiers());\n if (!mods.equals(\"Button1\")) {\n points.remove(currentVertex);\n }\n currentVertex = -1;\n updateView();\n }\n });\n addMouseMotionListener(new MouseMotionAdapter() {\n public void mouseDragged(MouseEvent e) {\n Point2D.Float p = toGridPoint(e.getX(), e.getY());\n points.set(currentVertex, p);\n repaint();\n }\n });\n }", "public void updatePolygon(Polygon polygon) {\n if (!isAddedToMap(polygon)) {\n logNonAdded(polygon);\n } else {\n this.polygons.update(polygon);\n }\n }", "@Override\n\tpublic void save() {\n\t\t\n\t}", "@Override\n\tpublic void save() {\n\t\t\n\t}", "private void saveLocations(){\n\n final LocationsDialog frame = this;\n WorkletContext context = WorkletContext.getInstance();\n\n LocationsTableModel model = (LocationsTableModel) locationsTable.getModel();\n final HashMap<Integer, Location> dirty = model.getDirty();\n\n\n for(Integer id : dirty.keySet()) {\n Location location = dirty.get(id);\n\n\n if (!Helper.insert(location, \"Locations\", context)) {\n System.out.print(\"insert failed!\");\n }\n\n }// end for\n\n model.refresh();\n\n }", "@Override\n public void onPolygonClick(Polygon polygon) {\n // Flip the values of the red, green, and blue components of the polygon's color.\n int color = polygon.getStrokeColor() ^ 0x00ffffff;\n polygon.setStrokeColor(color);\n color = polygon.getFillColor() ^ 0x00ffffff;\n polygon.setFillColor(color);\n\n Toast.makeText(this, \"Area type \" + polygon.getTag().toString(), Toast.LENGTH_SHORT).show();\n }", "public void saveMap(){\n dataBase.updateMap(level);\n }", "@Override\n\tpublic void posSave() {\n\t\t\n\t}", "@Override\n\tpublic void posSave() {\n\t\t\n\t}", "public void insert(HProvinceFb record) {\r\n getSqlMapClientTemplate().insert(\"H_PROVINCE_FB.ibatorgenerated_insert\", record);\r\n }", "@Override\n\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\tif(e.getSource() == jb1)\n\t\t\t{\n\t\t\t\ttry \n\t\t\t\t{\n\t\t\t\t\tScanner scanner = new Scanner(new File(\"src/shapes.dat\"));\n\t\t\t\t\tshapes=new Polygon3[scanner.nextInt()];\n\t\t\t for(int i=0;i<shapes.length;i++)\n\t\t\t {\n\t\t\t \tshapes[i]=new Polygon3();\n\t\t\t \tif(scanner.hasNextInt()){\n\t\t\t \t\tshapes[i].setSides(scanner.nextInt());\n\t\t\t \t}\n\t\t \t\tDimension loadd[]=new Dimension[shapes[i].getSides()];\n\t\t\t \tfor(int j=0;j<shapes[i].getSides();j++){\n\t\t\t \t\tif(scanner.hasNextInt()){\n\t\t\t\t \t\tloadd[j]=new Dimension(scanner.nextInt(),scanner.nextInt());\n\t\t\t\t \t}\t\n\t\t\t \t}\n\t\t\t \tshapes[i].setDimension(loadd);\n\t\t\t }\n\t\t\t scanner.close();\n\t\t\t\t} \n\t\t\t\t\n\t\t\t\tcatch (FileNotFoundException fnf) \n\t\t\t\t{\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\tfnf.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t//Save File actions\n\t\t\tif(e.getSource() == jb2)\n\t\t\t{\t\n\t\t\t\tDataOutputStream output;\n\t\t\t\ttry \n\t\t\t\t{\n\t\t\t\t\toutput = new DataOutputStream(new FileOutputStream(\"src/shapes.dat\"));\n\t\t\t\t\toutput.writeInt(shapes.length);\n\t\t\t\t\t for (int i = 0; i < shapes.length; i++) \n\t\t\t\t\t {\n\t\t\t\t output.writeInt(shapes[i].getSides());\n\t\t\t\t Dimension saved[]=shapes[i].getDimension();\n\t\t\t\t for(int j=0; j<shapes[i].getSides(); j++)\n\t\t\t\t {\n\t\t\t\t \toutput.writeInt(saved[j].width);\n\t\t\t\t \toutput.writeInt(saved[j].height);\n\t\t\t\t }\n\t\t\t\t }\n\t\t\t\t output.close();\n\t\t\t\t} \n\t\t\t\tcatch (FileNotFoundException fnf) \n\t\t\t\t{\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\tfnf.printStackTrace();\n\t\t\t\t} \n\t\t\t\tcatch (IOException ie) \n\t\t\t\t{\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\tie.printStackTrace();\n\t\t\t\t}\n\t\t \n\t\t\t}\n\t\t\t\n\t\t\t//Create button actions\n\t\t\tif(e.getSource() == jb3)\n\t\t\t{\n\t\t\t\tpoly = null;\n\t\t\t\tpoly= new Polygon3();\n\t\t\t\tjp3.repaint();\n\t\t\t\trevalidate();\n\t\t\t\tjp3.setBorder(BorderFactory.createLineBorder(Color.PINK, 4));\n\t\t\t\tjp3.setBackground(Color.WHITE);\n\t\t\t\tjp3.setEnabled(true);\n\t\t\t}\n\t\t\t\n\t\t\t//Scrap button actions\n\t\t\tif(e.getSource() == jb4)\n\t\t\t{\n\t\t\t\tpoly = null;\n\t\t\t\tpoly= new Polygon3();\n\t\t\t\tjp3.repaint();\n\t\t\t\trevalidate();\n\t\t\t\tjp3.setBorder(BorderFactory.createLineBorder(Color.PINK, 4));\n\t\t\t\tjp3.setBackground(Color.GRAY);\n\t\t\t\tjp3.setEnabled(false);\n\t\t\t}\n\t\t\t\n\t\t\t//Keep button actions\n\t\t\tif(e.getSource() == jb5)\n\t\t\t{\n\t\t\t\tadd(poly);\n\t\t\t\tpoly = null;\n\t\t\t\tpoly= new Polygon3();\n\t\t\t\tjp3.repaint();\n\t\t\t\trevalidate();\n\t\t\t\tjp3.setBorder(BorderFactory.createLineBorder(Color.PINK, 4));\n\t\t\t\tjp3.setBackground(Color.WHITE);\n\t\t\t\tjp3.setEnabled(true);\n\t\t\t}\n\t\t\t\n\t\t\t// < button actions\n\t\t\tif(e.getSource() == jb6)\n\t\t\t{\n\t\t\t\tif((shapes == null)||(shapes.length == 0))\n\t\t\t\t\tSystem.out.println(\"No Polygon3s to view!\");\n\t\t else\n\t\t {\n\t\t\t count--;\n\t\t\t if(count<0)\n\t\t\t {\n\t\t\t count= shapes.length-1;\n\t\t\t poly= shapes[count];\n\t\t\t jp3.paint(g);\n\t\t\t }\n\t\t\t \n\t\t\t else \n\t\t\t {\n\t\t\t poly= shapes[count];\n\t\t\t jp3.paint(g);\n\t\t\t \n\t\t\t }\n\t\t\t \n\t\t }\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t// > button actions\n\t\t\tif(e.getSource() == jb7)\n\t\t\t{\n\t\t\t\tif((shapes == null)||(shapes.length == 0) || count == shapes.length )\n\t\t\t\t\tSystem.out.println(\"No Polygon3s to view!\");\n\t\t\t else\n\t\t\t {\n\t\t\t count++;\n\t\t\t if (count > shapes.length-1)\n\t\t\t { \n\t\t\t count=0;\n\t\t\t poly= shapes[count];\n\t\t\t jp3.paint(g);\n\t\t\t }\n\t\t\t else \n\t\t\t {\n\t\t\t poly= shapes[count];\n\t\t\t jp3.paint(g);\n\t\t\t }\n\t\t\t \n\t\t\t }\n\t\t\t}\n\t\t}", "public abstract Polygon4D project();", "@Override\n public void save() {\n \n }", "public Polygon() {\n N = 0;\n a = new Point[4];\n }", "void save() {\n gameModelPoDao.saveToFile(file.getAbsolutePath(), gameModelPo);\n }", "public interface ISpatialDatabase {\n\n\t/**\n\t * Return the name of the SpatialDatabase\n\t * \n\t * @return The name of the SpatialDatabase\n\t */\n\tString getName();\n\n\t/**\n\t * Retrieve the bounds which contain all the indexed objects.\n\t * \n\t * @return The bounds\n\t */\n\tRectangleLatLng getBounds();\n\n\t/**\n\t * Store the rectangle in the database.\n\t * \n\t * @param rectangle\n\t * @param id\n\t */\n\tvoid storeObject(RectangleLatLng rectangle, String id);\n\n\t/**\n\t * Store the point in the database\n\t * \n\t * @param point\n\t * @param id\n\t */\n\tvoid storeObject(PointLatLng point, String id);\n\n\t/**\n\t * Store the circle in the database\n\t * \n\t * @param circle\n\t * @param id\n\t */\n\tvoid storeObject(Circle circle, String id);\n\n\t/**\n\t * Store the polygon in the database\n\t * \n\t * @param polygon\n\t * @param id\n\t */\n\tvoid storeObject(Polygon polygon, String id);\n\n\t/**\n\t * Remove the rectangle associated to the given id from the spatial\n\t * database.\n\t * \n\t * @param rectangle\n\t * The rectangle to be removed\n\t * @param id\n\t * The identifier to be removed\n\t * @return True if the removal was successful\n\t */\n\tboolean removeObject(RectangleLatLng rectangle, String id);\n\n\t/**\n\t * Remove the point associated to the given id from the spatial database.\n\t * \n\t * @param point\n\t * The point to be removed\n\t * @param id\n\t * The identifier to be removed\n\t * @return True if the removal was successful\n\t */\n\tboolean removeObject(PointLatLng point, String id);\n\n\t/**\n\t * Remove the circle associated to the given id from the spatial database.\n\t * \n\t * @param circle\n\t * The circle to be removed\n\t * @param id\n\t * The identifier to be removed\n\t * @return True if the removal was successful\n\t */\n\tboolean removeObject(Circle circle, String id);\n\n\t/**\n\t * Remove the polygon associated to the given id from the spatial database.\n\t * \n\t * @param polygon\n\t * The polygon to be removed\n\t * @param id\n\t * The identifier to be removed\n\t * @return True if the removal was successful\n\t */\n\tboolean removeObject(Polygon polygon, String id);\n\n\t/**\n\t * Deletes all the spatial objects associated to the given id\n\t * \n\t * @param id\n\t * The identifier to be removed\n\t * @return True if the database changed its statusF\n\t */\n\tboolean removeObject(String id);\n\n\t/**\n\t * Retrieves the couple (id, geoId) of all the spatial object that\n\t * intersects with the bounds given as input\n\t * \n\t * @param bounds\n\t * @return Map Id->Set&lt;GeoId&gt; resulting from the query\n\t */\n\tMultimap<String, String> intersects(RectangleLatLng bounds);\n\n\t/**\n\t * Retrieves the couple (id, geoId) of all the spatial object that\n\t * intersects with the bounds given as input\n\t * \n\t * @param bounds\n\t * @return Map Id->Set&lt;GeoId&gt; resulting from the query\n\t */\n\tMultimap<String, String> intersects(PointLatLng point);\n\n\t/**\n\t * Retrieves the couple (id, geoId) of all the spatial object that\n\t * intersects with the bounds given as input\n\t * \n\t * @param bounds\n\t * @return Map Id->Set&lt;GeoId&gt; resulting from the query\n\t */\n\tMultimap<String, String> intersects(Circle bounds);\n\n\t/**\n\t * Retrieves the couple (id, geoId) of all the spatial object that\n\t * intersects with the bounds given as input\n\t * \n\t * @param bounds\n\t * @return Map Id->Set&lt;GeoId&gt; resulting from the query\n\t */\n\tMultimap<String, String> intersects(Polygon bounds);\n\n\t/**\n\t * Return true if the specified identifier id is stored in the\n\t * SpatialDatabase\n\t * \n\t * @param id\n\t * @return\n\t */\n\tboolean hasGeoInformation(String id);\n\n\tvoid reset();\n}", "@Override\n public void save()\n {\n \n }", "private void addGeoData(String key, double lat, double lon)\n {\n String type=\"\";\n if(mType=='E')\n type=\"Events/\";\n else if(mType=='G')\n type=\"Groups/\";\n\n DatabaseReference placeRef= database.getReference(type+mEntityID+\"/places\");\n GeoFire geoFire= new GeoFire(placeRef);\n geoFire.setLocation(key,new GeoLocation(lat,lon));\n\n }", "public ProtectedCuboidRegion saveRegion() {\n\t\t\n\t\tcom.sk89q.worldedit.BlockVector pos1 = \n\t\t\t\tnew com.sk89q.worldedit.BlockVector(position1.getBlockX(), position1.getBlockY(), position1.getBlockZ());\n\t\tcom.sk89q.worldedit.BlockVector pos2 =\n\t\t\t\tnew com.sk89q.worldedit.BlockVector(position2.getBlockX(), position2.getBlockY(), position2.getBlockZ());\n\t\t\n\t\tplayer.sendMessage(\"\" + name + position1.toString() + position2.toString());\n\t\t\n\t\tProtectedCuboidRegion newPlotRegion = new ProtectedCuboidRegion(name, pos1, pos2);\n\t\t\n\t\tRegionManager regionManager = Mcc.worldGuard.getRegionManager(player.getWorld());\n\t\tregionManager.addRegion(newPlotRegion);\n\t\tnewPlotRegion = (ProtectedCuboidRegion) regionManager.getRegion(name);\n\t\t\n\t\tnewPlotRegion.setPriority(2);\n\t\ttry {\n\t\t\tregionManager.save();\n\t\t} catch (ProtectionDatabaseException e) {\n\t\t\tplayer.sendMessage(ChatColor.RED + \"Critical World Guard error! Notify Funonly\");\n\t\t}\n\t\t\n\t\treturn newPlotRegion;\n\t}", "boolean removeObject(Polygon polygon, String id);", "public void save() {\n ProductData.saveData(tree);\n }", "public Geometry creatPolygon(FOV f) {\n\t\tCoordinate[] coordinates = new Coordinate[] {\r\n\t\t\t\tnew Coordinate(f.getPolygon().getLocation().getX(), f.getPolygon().getLocation().getY()),\r\n\t\t\t\tnew Coordinate(f.getPolygon().getP1().getX(), f.getPolygon().getP1().getY()),\r\n\t\t\t\tnew Coordinate(f.getPolygon().getP2().getX(), f.getPolygon().getP2().getY()),\r\n\t\t\t\tnew Coordinate(f.getPolygon().getP3().getX(), f.getPolygon().getP3().getY()),\r\n\t\t\t\tnew Coordinate(f.getPolygon().getP4().getX(), f.getPolygon().getP4().getY()),\r\n\t\t\t\tnew Coordinate(f.getPolygon().getLocation().getX(), f.getPolygon().getLocation().getY()) };\r\n\t\t// use the default factory, which gives full double-precision\r\n\t\tGeometry g1 = new GeometryFactory().createPolygon(coordinates);\r\n\t\treturn g1;\r\n\t}", "void setPolygonsFromOutside(ArrayList<Path2D> polygons) {\n this.polygons = polygons;\n }", "private void saveData() {\n }", "public void save(DataOutputStream dataOut) {\n int i;\n int j;\n for (i = 0; i < nr_of_segments; i++) {\n for (j = 0; j < points_per_segment; j++) {\n try {\n dataOut.writeDouble(points[i][j].x);\n dataOut.writeDouble(points[i][j].y);\n dataOut.writeDouble(points[i][j].z);\n } catch (IOException e) {\n System.out.println(\"Problem creating file\");\n }\n\n }\n }\n }", "@Override\n\tpublic void save(HrUserPoint hrUserPoint) {\n\t\tthis.sessionFactory.getCurrentSession().save(hrUserPoint);\n\t}", "Polygon(PApplet theParent, int id_) {\n\t\tthis.myParent = theParent;\n\t\tid = id_;\n\n\t\t// interaction vars\n\t\tP = new PVector();\n\t\tbeginP = new PVector();\n\t\toffsetP = new PVector();\n\t\tbeginOffsetP = new PVector();\n\t\tbeginOffset = new PVector();\n\t\toffset = new PVector();\n\t\tanchorLine = new PVector();\n\t\tlockAnchor = new PVector();\n\n\t\tcenter = new PVector();\n\n\t\t// println(\"state: \"+state);\n\n\t\tsetupPoints(); //\n\t\tsetupLines(); //\n\n\t\tcreatePoints(); // moved to parent class FreeTransform\n\t\tupdateGlobalLines(); // aka init line objects\n\t}", "@Override\r\n\t\tpublic Savepoint setSavepoint() throws SQLException {\n\t\t\treturn null;\r\n\t\t}", "public void save() {\n RegionOwn.saveRegionOwner(this);\n }", "private void saveTuple(ArrayList<Tuple> tupleList) {\n\n\t\ttry {\n\t\t\tFileOutputStream fileOutputStream = context.openFileOutput(\n\t\t\t\t\tSAVE_FILE, Context.MODE_PRIVATE);\n\t\t\tOutputStreamWriter outputStreamWriter = new OutputStreamWriter(\n\t\t\t\t\tfileOutputStream);\n\t\t\tGsonBuilder builder = new GsonBuilder();\n\t\t\tGson gson = builder.create();\n\t\t\tgson.toJson(tupleList, outputStreamWriter); // Serialize to Json\n\t\t\toutputStreamWriter.flush();\n\t\t\toutputStreamWriter.close();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "@Override\r\n public void storePin() {\n DataStoreGP1 data = (DataStoreGP1) ds;\r\n data.pin = data.temp_p;\r\n System.out.println(\"Pin has been saved successfully..\");\r\n }", "void saveCity(City city);", "public ArrayList<Polygon> getPolygons ()\n\t{\n\t\treturn object;\n\t}", "private void rebuildPolygon() {\n //recalculate new center\n float borderNeeded = mPolygonShapeSpec.hasBorder() ? mPolygonShapeSpec.getBorderWidth() : 0;\n float shadowNeeded = mPolygonShapeSpec.hasShadow() ? mPolygonShapeSpec.getShadowRadius() : 0;\n mPolygonShapeSpec.setCenterX(mPolygonShapeSpec.getDiameter() / 2 + (float) (getPaddingLeft() +\n getPaddingRight()) / 2 + borderNeeded + shadowNeeded);\n mPolygonShapeSpec.setCenterY(mPolygonShapeSpec.getDiameter() / 2 + (float) (getPaddingTop() +\n getPaddingBottom()) / 2 + borderNeeded + shadowNeeded);\n\n if (mPolygonShapeSpec.getNumVertex() < 3)\n return;\n\n mPath = mPolygonShape.getPolygonPath(mPolygonShapeSpec);\n }", "protected void saveValues() {\n dataModel.persist();\n }", "@Override\r\n\tpublic void saveDistrict(District district) {\n\t\t\r\n\t}", "private void saveMap(String[] data) {\n\t\tif(curCon == null)\r\n\t\t\treturn;\r\n\t\tif(data == null || data.length < 3)\r\n\t\t{\r\n\t\t\tLog.e(curCon.getString(R.string.yao_social_error_map_data) ,curCon.getString(R.string.yao_social_error_map_data_message));\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tParseObject testObject = new ParseObject(\"MapPoint\");\r\n\t\tfor(int i = 0, nLen = data.length; i < nLen; i++)\r\n\t\t{\r\n\t\t\ttestObject.put(mapKey[i], data[i]);\r\n\t\t}\t\t\r\n\t\ttestObject.saveInBackground();\r\n\t\t\t\r\n\t}", "@Override\r\n\tpublic void save() {\n\r\n\t}", "@Override\r\n\tpublic void save() {\n\r\n\t}", "public void saveState() {\n savedPen.setValues(pm.pen);\n }", "public Flight save(Flight flight);", "void setupPolygonDrag() {\n\t\tselectedLine = -1;\n\t\tbeginOffsetP.set(P);\n\t\tfor (int i = 0; i < amount; i++)\n\t\t\tpoint[i].beginPosition.set(point[i].position);\n\t}", "public void save() throws DfException {\n\t\tobject.save();\n\t}", "public boolean save();", "void saveData() throws SerializerException;", "public void save() {\r\n\t\ttry {\r\n\t\t\tthis.iniObjects();\r\n\t\t\tGxyService currentService = getGxyService();\r\n\t\t\tCompassSession session = new CobooCompass().getCompass().openSession();\r\n\t\t\tCompassTransaction tx = session.beginLocalTransaction();\r\n\t\t\tPerson person = null;\r\n\t\t\tCompassHits hits = session.find(\"ResidentpersonId:\" + this.personId.getHValue());\r\n\t\t\tif (hits.length() > 0) {\r\n\t\t\t\tCompassHit hit = hits.hit(0);\r\n\t\t\t\tperson = (Person) hit.getData();\r\n\t\t\t} else {\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\tCalendar cal = Calendar.getInstance();\r\n\t\t\tcal.setTime(this.visitTime[visitNo]);\r\n\t\t\tString StrYear = String.valueOf(cal.get(Calendar.YEAR));\r\n\r\n\t\t\tInfo gxyInfo = person.getGxyInfo();\r\n\t\t\tList<YearService> servicesOfYear = new ArrayList<YearService>();\r\n\t\t\tif (gxyInfo == null) {\r\n\t\t\t\tInfo Info = new GxyInfo();\r\n\t\t\t\tInfo.setIf_gxy(true);\r\n\t\t\t\tInfo.setDiagTime(new Date());\r\n\t\t\t\tperson.setGxyInfo(Info);\r\n\t\t\t\tgxyInfo = Info;\r\n\t\t\t} // else {\r\n\t\t\t\r\n\t\t\tservicesOfYear = gxyInfo.getYearServices();\r\n\t\t\tboolean found = false;\r\n\t\t\tfor (YearService ys : servicesOfYear) {\r\n\t\t\t\tif (ys.getYear().equals(StrYear)) {\r\n\t\t\t\t\tfound = true;\r\n\t\t\t\t\tGxyService[] gxyServices = ys.getServicesOfYear();\r\n\t\t\t\t\tgxyServices[visitNo] = currentService;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\t\t\tif (!found) {\r\n\t\t\t\tYearService newYs = new YearService();\r\n\t\t\t\tnewYs.setYear(StrYear);\r\n\t\t\t\tGxyService[] gxyServices = newYs.getServicesOfYear();\r\n\t\t\t\tfor (int i = 0; i < gxyServices.length; i++) {\r\n\t\t\t\t\tgxyServices[i] = new GxyService();\r\n\t\t\t\t\tgxyServices[i].setId(System.nanoTime());\r\n\t\t\t\t}\r\n\t\t\t\tgxyServices[visitNo] = currentService;\r\n\t\t\t\tservicesOfYear.add(newYs);\r\n\r\n\t\t\t}\r\n\t\t\t// }\r\n\t\t\tgxyInfo.setYearServices(servicesOfYear);\r\n\t\t\tperson.setGxyInfo(gxyInfo);\r\n\r\n\t\t\t// session.save(this.doctors[this.visitNo]);\r\n\t\t\t// gxyInfo.setId(System.nanoTime());\r\n\r\n\t\t\tsession.save(currentService);\r\n\t\t\tsession.save(person);\r\n\t\t\ttx.commit();\r\n\t\t\tsession.close();\r\n\t\t\tsuper.saveFile(this);\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "public void save() {\n DataBuffer.saveDataLocally();\n\n //TODO save to db must be done properly\n DataBuffer.save(session);\n\n //TODO recording saved confirmation\n }" ]
[ "0.7300955", "0.686361", "0.64638245", "0.63456845", "0.62538993", "0.620016", "0.60866684", "0.59547526", "0.5915643", "0.5765332", "0.5724249", "0.5634525", "0.55362993", "0.54708314", "0.54581976", "0.54499596", "0.544905", "0.5409259", "0.53982145", "0.5366991", "0.53628063", "0.53558797", "0.5327019", "0.53131855", "0.530607", "0.52947015", "0.5290932", "0.5277043", "0.52691525", "0.52678", "0.52057034", "0.51951444", "0.5194874", "0.51898384", "0.5189824", "0.5162205", "0.5153113", "0.51524377", "0.51524377", "0.51524377", "0.51524377", "0.51469797", "0.51469797", "0.51469797", "0.5127447", "0.5122427", "0.5116077", "0.5103588", "0.5097481", "0.50764143", "0.5072126", "0.5057371", "0.50477785", "0.50305086", "0.502689", "0.50066686", "0.50066686", "0.5005841", "0.49966964", "0.49733737", "0.49635932", "0.49635932", "0.49619725", "0.4946049", "0.49179724", "0.49148345", "0.4913545", "0.49079832", "0.49041855", "0.49037215", "0.4903582", "0.49030688", "0.49024805", "0.4901811", "0.49005067", "0.48987636", "0.48979154", "0.48918605", "0.48898792", "0.48862508", "0.48830718", "0.48801947", "0.4878843", "0.48771733", "0.48700505", "0.48674938", "0.48659474", "0.48558268", "0.48523903", "0.48517117", "0.48516706", "0.48516706", "0.48516217", "0.4849852", "0.48455968", "0.48331952", "0.4831821", "0.48272622", "0.48231155", "0.48150045" ]
0.7844984
0
Remove the rectangle associated to the given id from the spatial database.
boolean removeObject(RectangleLatLng rectangle, String id);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void removeByid_(long id_);", "boolean removeObject(Polygon polygon, String id);", "public void removeObject(String id) {\n\taddCollisionObject(CollisionObjectWrapper.removeObject(id));\n }", "void remove(Long id);", "void remove(Long id);", "void remove(String id);", "void remove(String id);", "void remove(String id);", "public void removeGraphic(int id)\n\t{\n\t\tgetObject().removeGraphic(id);\n\t\treturn;\n\t}", "public void remove(String id) {\n\t\t\n\t}", "void remove(int id);", "public void remove(Integer id) {\n\t\t\r\n\t}", "@Override\n\t@Transactional\n\tpublic void removeLecture(int id) {\n\t\tthis.lectureDao.removeLecture(id);\n\t}", "@Override\n\tpublic void removeLecture(int id) {\n\t\tSession session = this.sessionFactory.getCurrentSession();\n\t\tLecture l = (Lecture) session.load(Lecture.class, new Integer(id));\n\t\tif(null != l){\n\t\t\tsession.delete(l);\n\t\t}\n\t}", "void remover(Long id);", "void remover(Long id);", "public void removeID(String id)\n { \n idReferences.remove(id); \n }", "boolean remove (I id);", "public void removePainter(Integer id);", "public void freeGeometry(final int id){\n\t\t//android.util.Log.d(TAG,\"freeGeometry(\"+id+\")\");\n\t\tthis.geometries.get(id).free();\n\t}", "boolean removeObject(String id);", "public void remove(Integer id) {\n\r\n\t}", "public void deleteSubLocation(int id){\n\t\tSQLiteDatabase db = this.getWritableDatabase();\n\t\tdb.delete(table_subLocation, key_id + \" = ? \", new String [] { String.valueOf(id) });\n\t\tdb.close();\n\t}", "public void deleteLocation(int id){\n\t\tSQLiteDatabase db = this.getWritableDatabase();\n\t\tdb.delete(table_location, key_id + \" = ? \", new String [] { String.valueOf(id) });\n\t\tdb.close();\n\t}", "void remove(PK id);", "public void removeById(long id) {\r\n\t\tpersistenceManager.deletePersistent(this.getById(id));\r\n\t\t\r\n\t}", "E remove(Id id);", "@Override\n\tpublic void remove(int id) {\n\t}", "boolean removeObject(PointLatLng point, String id);", "@Override\n\tpublic void remove(int id) {\n\n\t}", "@Override\n\tpublic boolean eliminaRisposta(Long id) {\n\t\tDB db = getDB();\n\t\tMap<Long, Risposta> risposte = db.getTreeMap(\"risposte\");\n\t\trisposte.remove(id);\n\t\tdb.commit();\n\t\t\n\t\tif(!risposte.containsKey(id))\n\t\t\treturn true;\n\t\telse \n\t\t\treturn false;\n\t}", "void removeById(Long id) throws DaoException;", "@Override\n\tpublic boolean removeById(long id) {\n\t\treturn false;\n\t}", "public void removeFreeColGameObject(String id) {\n AIObject o = getAIObject(id);\n if (o != null) {\n o.dispose();\n }\n removeAIObject(id);\n }", "public boolean removeRoom(String id){\n for(int i = 0; i < rooms.size(); i++){\n Room roomAti = (Room)rooms.get(i);\n if(roomAti.id.equals(id)){\n rooms.remove(i);\n return true;\n }\n }\n return false;\n }", "@Override\n public void delete(int id) {\n repr.delete(id);\n }", "public void removeItem(int id);", "@Override\n public void delete(Long id) {\n log.debug(\"Request to delete Square : {}\", id);\n squareRepository.deleteById(id);\n }", "void deleteLocationById(long id);", "void removeDetail(String id);", "public void remove(int objectId) throws SQLException;", "public void removeWord(int id);", "private void removeArea() {\n \t\tthis.set.remove( this.area );\n \t\tthis.finish();\n \t}", "public void remove(ObjectId id) {\n\t_filesCollection.remove(new BasicDBObject(\"_id\", id));\n\t_chunkCollection.remove(new BasicDBObject(\"files_id\", id));\n }", "public void delById(Serializable id) ;", "@Override\n\tpublic void deleteById(Serializable id) {\n\t\tmapper.deleteById(id);\n\t\t\n\t}", "public void deleteLocation(int id){\n\t\tdb.delete(DBEntryContract.LocationEntry.TABLE_NAME, \"_id = ?\", new String[]{String.valueOf(id)});\n\t}", "@Modifying\r\n @Query(\"delete from Window w where w.room.id= ?1\")\r\n void deleteByRoom(Long id);", "public synchronized void removeGame(String id) {\n if (null != this.waitingGame && this.waitingGame.getID() == id) {\n this.waitingGame = null;\n }\n }", "public boolean deleteRooms(int id, String location)\n throws RemoteException, DeadlockException;", "public void removeElement(int id) {\n for (int i = 0; i < data.size(); i++) {\n if (data.get(i).id == id) {\n data.remove(data.get(i));\n }\n }\n System.out.println(\"there are \" + data.size() + \" balls left from the server\");\n }", "void remove(int id)throws IllegalArgumentException;", "boolean removeObject(Circle circle, String id);", "public void removeUser(long id) {\n\troomMembers.remove(id);\n }", "public void deleteLocationType(int id){\n\t\tSQLiteDatabase db = this.getWritableDatabase();\n\t\tdb.delete(table_locationType, key_id + \" = ? \", new String [] { String.valueOf(id) });\n\t\tdb.close();\n\t}", "public void delete(int id) {\n\t\tmapper.delete(id);\n\t}", "void deleteBoard(long id);", "public void eliminarSolicitud(int id){\n listaSolicitudes.remove(id);\n }", "@Override\n\tpublic int remove(String id) {\n\t\treturn 0;\n\t}", "public void delete(Long id) {\n gameRepository.delete(id);\n }", "@Override\n public void remove(Integer id) {\n Connection c = null;\n PreparedStatement pstmt = null;\n\n try {\n c = DBUtils.getConnection();\n pstmt = c.prepareStatement(\"DELETE FROM curso WHERE idcurso = ?\");\n\n pstmt.setInt(1, id);\n\n pstmt.executeUpdate();\n } catch (Exception e) {\n e.printStackTrace();\n } finally {\n try {\n if (pstmt != null) {\n pstmt.close();\n }\n DBUtils.closeConnection(c);\n } catch (SQLException ex) {\n Logger.getLogger(JdbcCursoRepository.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n }", "public void deleteById(String id);", "public static void supprimerGroupe(int id) {\n\n // Creation de l'entity manager\n EntityManager em = GestionFactory.factory.createEntityManager();\n\n // Recherche\n @SuppressWarnings(\"unchecked\")\n Query query = em.createQuery(\n \"SELECT e FROM Groupe e WHERE e.idGroupe = :idGroupe\")\n .setParameter(\"idGroupe\", id);\n\n Groupe groupe = (Groupe) query.getSingleResult();\n List<Etudiant> listeEtudiants = groupe.getEtudiants();\n\n for(int i=0;i < listeEtudiants.size();i++){\n listeEtudiants.get(i).setGroupe(null);\n EtudiantDAO.update(listeEtudiants.get(i));\n }\n\n em.getTransaction().begin();\n em.remove(groupe);\n em.getTransaction().commit();\n\n em.close();\n\n }", "@Override\r\n\tpublic void removeStrumentoById(int id) throws StrumentoNotFoundException {\n\t\t\r\n\t}", "void deletById(Integer id);", "public void delete(String book_id){\n\t\tmap.remove(book_id);\n\t\t\n\t}", "public boolean removeSickPerson(int id) throws SQLException;", "@RequestMapping(method = RequestMethod.DELETE, value = \"/rack/{id}\")\n\tpublic Rack removerack(@PathVariable(\"id\") long id)\n\t\t\tthrows NotFoundException {\n\t\tif (RackController.rack != null) {\n\t\t\tif (RackController.rack.getId() == id) {\n\t\t\t\tRackController.rack = new Rack();\n\n\t\t\t\treturn RackController.rack;\n\t\t\t}\n\n\t\t}\n\t\tthrow new NotFoundException(ErrorMessage.RACK_ID_NOT_FOUND);\n\t}", "@Override\n\tpublic int delete(Long id) {\n\t\treturn floorDao.delete(id);\n\t}", "@Override\n\tpublic int deleteObjectById(Integer id) {\n\t\treturn evaluateMapper.deleteObjectById(id);\n\t}", "public void eliminarTripulante(Long id);", "public int removeById(int id) {\n\t\treturn 0;\r\n\t}", "public void removeListingById(int id) throws SQLException;", "@Override\n\tpublic void removeById(int id) {\n\t\tem.remove(em.find(Restaurant.class, id));\n\t}", "@Override\n public void delete(Long id) {\n Room room = roomRepository.getOne(id);\n roomRepository.delete(room);\n }", "public Curso remove(Long id) {\n\t\tfor (Curso curso : cursos) {\n\t\t\tif(curso.getId() == id) {\n\t\t\t\tcursos.remove(curso);\n\t\t\t\treturn curso;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "@Override\n public Game removeGame(Long game_id) {\n Game game = gameDataAccess.findById(game_id).get();\n gameDataAccess.delete(game);\n return game;\n }", "@Override\n public Book removeBookById(int id) throws DaoException {\n DataBaseHelper helper = new DataBaseHelper();\n Book book = Book.newBuilder().build();\n try (Connection connection = SqlConnector.connect();\n PreparedStatement statementSelectById =\n helper.prepareStatementSelectById(connection, id);\n ResultSet resultSet = statementSelectById.executeQuery()) {\n while (resultSet.next()) {\n BookCreator bookCreator = new BookCreator();\n book = bookCreator.create(resultSet);\n resultSet.deleteRow();\n }\n if (book.getId() == 0) {\n throw new DaoException(\"There is no such book in warehouse!\");\n }\n } catch (SQLException e) {\n throw new DaoException(e);\n }\n return book;\n }", "public void removeAIObject(String id) {\n aiObjects.remove(id);\n }", "public abstract List<PaintObjectWriting> deleteRectangle(\n final Rectangle _r, List<PaintObjectWriting> _l);", "public void remove(GeometricalObject object);", "public void removeGroup(String id) {\r\n System.out.println(\"conectado con model ---> metodo removeGroup\");\r\n //TODO\r\n }", "public void deleteLocationInfo(int id){\n\t\tSQLiteDatabase db = this.getWritableDatabase();\n\t\tdb.delete(table_locationInfo, key_id + \" = ? \", new String [] { String.valueOf(id) });\n\t\tdb.close();\n\t}", "void deleteFeature(Integer id);", "public void remover(Long id) {\n\n repository.delete(id);\n }", "@Override\n\tpublic void eliminar(int id) {\n\t\tdao.deleteById(id);;\n\t}", "static void deleteLastRectangle(){\n System.out.println(coloredRectangles.size());\n coloredRectangles.remove(coloredRectangles.size() - 1);\n //revalidate();\n }", "@Override\n\tpublic void remove(Long id) throws IllegalArgumentException {\n\n\t}", "@Transactional void removeById(long id) throws IllegalArgumentException;", "public void removeMovie(int id) {\n String selection = ColumnMovie.ID + \" = ?\";\n String[] selectionArgs = {Integer.toString(id)};\n\n deleteAnyRow(MOVIE_TABLE_NAME, selection, selectionArgs);\n }", "void remove(GeometricalObject object);", "public void delete(Long id) {\n log.debug(\"Request to delete MGachaRenditionBeforeShootCutInCharacterNum : {}\", id);\n mGachaRenditionBeforeShootCutInCharacterNumRepository.deleteById(id);\n }", "void removeAirport(Long id);", "@Override\n\tpublic void remove(Long id) throws ApplicationException {\n\n\t}", "@Override\n\tpublic void delByPrimaryKey(int id) throws SQLException {\n\n\t}", "public void freeScene(final int id){\n\t\t//android.util.Log.d(TAG,\"freeScene(\"+id+\")\");\n\t\tthis.scenes.delete(id);\n\t}", "public void deleteById(Long id);", "public void delObject(int id) {\n\n\t\t// last element?\n\t\tif (elements.size() - 1 == id) {\n\t\t\t// remove it\n\t\t\telements.remove(id);\n\t\t} else {\n\t\t\t// reset only element\n\t\t\telements.get(id).setObject(createObject());\n\t\t\telements.get(id).setModified(true);\n\t\t}\n\n\t\t// inform tab\n\t\tbuildEmptyView();\n\t}", "@Override\n\t\tpublic void removeStudentById(Integer id) \n\t\t{\n\t\t\tStudent stu=(Student) sessionFactory.getCurrentSession().load(Student.class,id);\n\t if(null!=stu)\n\t {\n\t sessionFactory.getCurrentSession().delete(stu);\n\t }\n\t\t\t\n\t\t}", "public void delete(Long id) {\n log.debug(\"Request to delete Game : {}\", id);\n gameRepository.deleteById(id);\n }" ]
[ "0.6735684", "0.6662711", "0.6410094", "0.6381661", "0.6381661", "0.6348271", "0.6348271", "0.6348271", "0.62807393", "0.6236415", "0.6216539", "0.61743003", "0.6168281", "0.616771", "0.6148126", "0.6148126", "0.61046636", "0.6090141", "0.6067798", "0.6046256", "0.6021546", "0.6018006", "0.6004056", "0.60033196", "0.5996841", "0.59814554", "0.5962072", "0.59603816", "0.5953307", "0.5928763", "0.58930176", "0.587343", "0.5860335", "0.58569974", "0.5845369", "0.58359134", "0.583434", "0.58258265", "0.5824763", "0.581691", "0.58100164", "0.58002335", "0.57883793", "0.57835764", "0.5775663", "0.57414216", "0.5739699", "0.573429", "0.56977165", "0.56888866", "0.56789654", "0.5669861", "0.5662191", "0.5655786", "0.5650049", "0.56449413", "0.56429297", "0.5642513", "0.5640723", "0.5634415", "0.5628366", "0.5612853", "0.56105053", "0.5601358", "0.55994445", "0.5593264", "0.5591409", "0.55815965", "0.5576372", "0.5573135", "0.55728257", "0.5558038", "0.55547696", "0.5553661", "0.5539725", "0.55364674", "0.553536", "0.55339617", "0.55327284", "0.5529962", "0.5522254", "0.55081254", "0.55080414", "0.54957837", "0.54906255", "0.54869175", "0.5483844", "0.5483612", "0.5480987", "0.5479744", "0.54782325", "0.54771143", "0.5471524", "0.54714036", "0.54700696", "0.54657", "0.5464297", "0.5464063", "0.5457609", "0.54561156" ]
0.7771584
0
Remove the point associated to the given id from the spatial database.
boolean removeObject(PointLatLng point, String id);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void removeByid_(long id_);", "public void remove(GPoint point) {\n\t\tpoints.remove(point);\n\t}", "void remove(Long id);", "void remove(Long id);", "void remove(PK id);", "public boolean removePoint(Point p);", "public void eliminarTripulante(Long id);", "void remove(String id);", "void remove(String id);", "void remove(String id);", "E remove(Id id);", "public void removePoint(Point2D p);", "void deleteLocationById(long id);", "public void deleteLocation(int id){\n\t\tSQLiteDatabase db = this.getWritableDatabase();\n\t\tdb.delete(table_location, key_id + \" = ? \", new String [] { String.valueOf(id) });\n\t\tdb.close();\n\t}", "void remove(int id);", "public boolean removeSickPerson(int id) throws SQLException;", "public void removeById(long id) {\r\n\t\tpersistenceManager.deletePersistent(this.getById(id));\r\n\t\t\r\n\t}", "public void deleteLocation(int id){\n\t\tdb.delete(DBEntryContract.LocationEntry.TABLE_NAME, \"_id = ?\", new String[]{String.valueOf(id)});\n\t}", "void removeById(Long id) throws DaoException;", "public void removePoint(int i)\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(POINT$0, i);\n }\n }", "public void remove(String id) {\n\t\t\n\t}", "public void remove(Integer id) {\n\t\t\r\n\t}", "public void remove(Point p)\n {\n pellets.remove(p);\n }", "boolean removeObject(Polygon polygon, String id);", "boolean remove (I id);", "void remover(Long id);", "void remover(Long id);", "public void delete(Integer id) {\n\t\tlogger.debug(\"Deleting existing person\");\n\t\t// Retrieve existing person\n\t\tPerson person = this.get(id);\n\t\t// Delete \n\t\tentityManager.remove(person);\n\t}", "public static boolean removeSeg(double id) {\n\n String sql = \"DELETE FROM corpus1 WHERE id = ?\";\n\n try (Connection conn = DatabaseOperations.connect();\n PreparedStatement pstmt = conn.prepareStatement(sql)) {\n\n // set the corresponding param\n pstmt.setDouble(1, id);\n // execute the delete statement\n pstmt.executeUpdate();\n return true;\n\n } catch (SQLException e) {\n System.out.println(\"removeSeg: \" + e.getMessage());\n return false;\n }\n }", "void deleteFeature(Integer id);", "public void removeID(String id)\n { \n idReferences.remove(id); \n }", "public void deleteLocationInfo(int id){\n\t\tSQLiteDatabase db = this.getWritableDatabase();\n\t\tdb.delete(table_locationInfo, key_id + \" = ? \", new String [] { String.valueOf(id) });\n\t\tdb.close();\n\t}", "public void remove(Integer id) {\n\r\n\t}", "public void delete(int id) {\n\t\tmapper.delete(id);\n\t}", "public void removePoint(int line, int point) {\n\t\tif (this.aggregationMethod == AggregationMethod.ALL) {\n\t\t\tlines.get(line).removePointFromAll(point);\n\t\t} else {\n\t\t\tlines.get(line).removePoint(point);\n\t\t}\n\t}", "@Override\r\n\tpublic void remove(int id) throws SQLException {\r\n\t\tString removeSql = \"DELETE FROM \" + tableName + \" WHERE (id = ?)\";\r\n\t\ttry {\r\n\t\t\t//connection = ds.getConnection();\r\n\t\t\tpreparedStatement = connection.prepareStatement(removeSql);\r\n\t\t\tpreparedStatement.setInt(1, id);\r\n\t\t\tpreparedStatement.executeUpdate();\r\n\t\t\tconnection.commit();\r\n\t\t} catch (SQLException e) {\r\n\t\t}\r\n\t}", "void deletePersonById( final Long id );", "public void deleteOne(String id) {\n\t\t mongoTemplate.remove(new Query(Criteria.where(\"id\").is(id)), AsxDataVO.class); \r\n\t}", "public void eliminarSolicitud(int id){\n listaSolicitudes.remove(id);\n }", "@Override\n\tpublic boolean eliminaRisposta(Long id) {\n\t\tDB db = getDB();\n\t\tMap<Long, Risposta> risposte = db.getTreeMap(\"risposte\");\n\t\trisposte.remove(id);\n\t\tdb.commit();\n\t\t\n\t\tif(!risposte.containsKey(id))\n\t\t\treturn true;\n\t\telse \n\t\t\treturn false;\n\t}", "public void delById(Serializable id) ;", "@Override\n\tpublic void deleteById(Serializable id) {\n\t\tmapper.deleteById(id);\n\t\t\n\t}", "@Override\n\tpublic boolean removeById(long id) {\n\t\treturn false;\n\t}", "public static void delete(int id) {\r\n\t\tString IdColumnName = \"feature_id\";\r\n\t\toperation.removeRow(\"FEATURE\", IdColumnName, id);\r\n\t}", "@Override\n\tpublic void deletePerson(Serializable id) {\n\t\tPerson person = (Person)sessionFactory.getCurrentSession().get(Person.class, 1L);\n\t\tsessionFactory.getCurrentSession().delete(person);\n\t}", "public void deleteById(String id);", "@Override\n\tpublic int deleteObjectById(Integer id) {\n\t\treturn evaluateMapper.deleteObjectById(id);\n\t}", "@Override\n\tpublic void removeEntityById(String id) {\n\t\tClassMetadata classMetadata = sessionFactory.getClassMetadata(entityType);\n\t\tString idName = classMetadata.getIdentifierPropertyName();\n\t\tString simpleName = entityType.getSimpleName();\n\t\tString hql = \"delete from\" +simpleName+\"e where e.\"+idName+\"=?\";\n\t\tgetQuery(hql, id).executeUpdate();\n\t}", "public boolean deleteById(Object id);", "public boolean deleteById(Object id);", "public void delete(Long id);", "public void delete(Long id);", "public void delete(Long id);", "public void delete(Long id);", "public void delete(Long id);", "public void deleteById(Long id);", "@Override\n public void deleteByPrimaryKey(String id) {\n infoMapper.deleteByPrimaryKey(id);\n }", "boolean removeObject(String id);", "@Override\n\tpublic int delete(String id) {\n\t\treturn st.delete(\"couplens.delete\",id);\n\t}", "public Point2D removePoint(int i);", "public void delete(String id);", "public void delete(String id);", "public void delete(String id);", "public void delete(String id);", "public void delete(String id);", "@Override\r\n\tpublic void delete(int id) {\n\t\tshipperDao.delete(id);\r\n\t}", "public void remove(int objectId) throws SQLException;", "public boolean remove(String id) throws SQLException\n {\n String update = \"DELETE FROM Persons WHERE teamId = ?\";\n PreparedStatement stmt = db.getPreparedStatement(update);\n stmt.setString(1, id);\n db.executeUpdate(stmt);\n\n return false;\n }", "@Override\n\tpublic void remove(int id) {\n\t}", "public void delete(Integer id) {\n\t\tpersonRepository.delete(id);\n\t}", "public void remove(double x, double y) {\n\t\tremove(new GPoint(x, y));\n\t}", "public void deleteLocationType(int id){\n\t\tSQLiteDatabase db = this.getWritableDatabase();\n\t\tdb.delete(table_locationType, key_id + \" = ? \", new String [] { String.valueOf(id) });\n\t\tdb.close();\n\t}", "void deleteById(long id);", "public void delete(Long id) {\n\t\tpersonRepository.deleteById(id);\n\t}", "public boolean deleteById(final Long id);", "@Override\n\tpublic void delete(long id) {\n\t\tmapper.deleteByPrimaryKey(id);\n\t}", "@Override\n\tpublic void remove(int id) {\n\n\t}", "@Override\r\n\tpublic void delParamInfoById(String id) {\n\t\tpm.deleteByPrimaryKey(id);\r\n\t\t\r\n\t}", "public void delete(Long id) {\n log.debug(\"Request to delete GeoTypeCommune : {}\", id);\n geoTypeCommuneRepository.deleteById(id);\n }", "public void delete(Integer id);", "public void delete(Integer id);", "public void delete(Integer id);", "public void deleteSubLocation(int id){\n\t\tSQLiteDatabase db = this.getWritableDatabase();\n\t\tdb.delete(table_subLocation, key_id + \" = ? \", new String [] { String.valueOf(id) });\n\t\tdb.close();\n\t}", "void deletById(Integer id);", "public int deleteByPrimaryKey(Integer id) {\r\n HProvinceFb key = new HProvinceFb();\r\n key.setId(id);\r\n int rows = getSqlMapClientTemplate().delete(\"H_PROVINCE_FB.ibatorgenerated_deleteByPrimaryKey\", key);\r\n return rows;\r\n }", "void deleteById(String id);", "void deleteById(String id);", "void deleteById(String id);", "void deleteById(String id);", "void deleteById(String id);", "void deleteById(String id);", "void deleteById(String id);", "void deleteById(String id);", "void deleteById(String id);", "void deleteById(String id);", "void deleteById(int id);", "void deleteById(final String id);", "@Override\n\tpublic void eliminar(int id) {\n\t\tdao.deleteById(id);;\n\t}", "public int deleteByPrimaryKey(Integer id) throws SQLException {\r\n\t\tElemFeature key = new ElemFeature();\r\n\t\tkey.setId(id);\r\n\t\tint rows = getSqlMapClientTemplate().delete(\r\n\t\t\t\t\"cementerio_elem_feature.ibatorgenerated_deleteByPrimaryKey\",\r\n\t\t\t\tkey);\r\n\t\treturn rows;\r\n\t}", "void removePost(int id) throws RemoteException, SQLException;" ]
[ "0.69164133", "0.68020505", "0.6688912", "0.6688912", "0.66021", "0.65599847", "0.6530286", "0.64969474", "0.64969474", "0.64969474", "0.646104", "0.64581454", "0.64571935", "0.643659", "0.6434557", "0.63649523", "0.6331945", "0.6313939", "0.629238", "0.6257635", "0.62463826", "0.6239279", "0.6216331", "0.61978245", "0.6178347", "0.6178238", "0.6178238", "0.61765337", "0.61612093", "0.6138562", "0.61335516", "0.6120042", "0.60792726", "0.6076511", "0.60697967", "0.6068214", "0.60676277", "0.6065553", "0.6053465", "0.6049656", "0.6043334", "0.60403055", "0.6035479", "0.6029859", "0.60250485", "0.60090107", "0.5989483", "0.59831357", "0.5966246", "0.5966246", "0.5965673", "0.5965673", "0.5965673", "0.5965673", "0.5965673", "0.59587693", "0.595362", "0.5950871", "0.59478575", "0.5940825", "0.59329396", "0.59329396", "0.59329396", "0.59329396", "0.59329396", "0.5930773", "0.5925252", "0.59224975", "0.59200186", "0.59112847", "0.5907024", "0.5904931", "0.5899598", "0.5897713", "0.5893697", "0.5890436", "0.5889667", "0.5885329", "0.5877749", "0.5877187", "0.5877187", "0.5877187", "0.5876721", "0.587281", "0.58726174", "0.58711475", "0.58711475", "0.58711475", "0.58711475", "0.58711475", "0.58711475", "0.58711475", "0.58711475", "0.58711475", "0.58711475", "0.5868493", "0.5864433", "0.5855736", "0.5854719", "0.5851832" ]
0.8021666
0
Remove the circle associated to the given id from the spatial database.
boolean removeObject(Circle circle, String id);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean removeObject(PointLatLng point, String id);", "void remove(Long id);", "void remove(Long id);", "public void removeByid_(long id_);", "boolean removeObject(RectangleLatLng rectangle, String id);", "void remove(String id);", "void remove(String id);", "void remove(String id);", "public Curso remove(Long id) {\n\t\tfor (Curso curso : cursos) {\n\t\t\tif(curso.getId() == id) {\n\t\t\t\tcursos.remove(curso);\n\t\t\t\treturn curso;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "void remove(int id);", "@Override\n\tpublic void deleteCours(long id) {\n\t\tem.remove(getCours(id));\n\t}", "public void removeObject(String id) {\n\taddCollisionObject(CollisionObjectWrapper.removeObject(id));\n }", "public void remove(String id) {\n\t\t\n\t}", "@Override\n public void remove(Integer id) {\n Connection c = null;\n PreparedStatement pstmt = null;\n\n try {\n c = DBUtils.getConnection();\n pstmt = c.prepareStatement(\"DELETE FROM curso WHERE idcurso = ?\");\n\n pstmt.setInt(1, id);\n\n pstmt.executeUpdate();\n } catch (Exception e) {\n e.printStackTrace();\n } finally {\n try {\n if (pstmt != null) {\n pstmt.close();\n }\n DBUtils.closeConnection(c);\n } catch (SQLException ex) {\n Logger.getLogger(JdbcCursoRepository.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n }", "boolean removeObject(Polygon polygon, String id);", "void removeById(Long id) throws DaoException;", "public void remove(Integer id) {\n\t\t\r\n\t}", "public boolean removeSickPerson(int id) throws SQLException;", "boolean remove (I id);", "void remover(Long id);", "void remover(Long id);", "public void delete(Long id) {\n log.debug(\"Request to delete CentreComposition : {}\", id); centreCompositionRepository.deleteById(id);\n }", "void remove(PK id);", "@Override\n public void delete(Long id) {\n log.debug(\"Request to delete Square : {}\", id);\n squareRepository.deleteById(id);\n }", "public void removeGraphic(int id)\n\t{\n\t\tgetObject().removeGraphic(id);\n\t\treturn;\n\t}", "E remove(Id id);", "public void remove(Integer id) {\n\r\n\t}", "public void remove(GeometricalObject object);", "public void removeID(String id)\n { \n idReferences.remove(id); \n }", "void remove(GeometricalObject object);", "public void eliminarTripulante(Long id);", "boolean removeObject(String id);", "public void clearCircle();", "@SuppressWarnings(\"rawtypes\")\n\tpublic void deleteById(String id)\n\t{\n\t\topen();\n\t\ttry\n\t\t{\n\t\t\tCensus census= new Census();\n\t\t\tcensus.setId(id);\n\t\t\tObjectSet result=DB.queryByExample(census);\n\t\t\t\n\t\t\tif(result.hasNext())\n\t\t\t{\n\t\t\t\tDB.delete((Census)result.next());\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tSystem.out.println(\"[DB4O]Census does not exist in database\");\n\t\t\t}\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\t\n\t\t}\n\t\tfinally\n\t\t{\n\t\t\tclose();\n\t\t}\n\t\t\n\t}", "void removeBall(Coordinates at);", "public void removeFreeColGameObject(String id) {\n AIObject o = getAIObject(id);\n if (o != null) {\n o.dispose();\n }\n removeAIObject(id);\n }", "void remove(K id);", "public void deleteOne(String id) {\n\t\t mongoTemplate.remove(new Query(Criteria.where(\"id\").is(id)), AsxDataVO.class); \r\n\t}", "public static boolean removeSeg(double id) {\n\n String sql = \"DELETE FROM corpus1 WHERE id = ?\";\n\n try (Connection conn = DatabaseOperations.connect();\n PreparedStatement pstmt = conn.prepareStatement(sql)) {\n\n // set the corresponding param\n pstmt.setDouble(1, id);\n // execute the delete statement\n pstmt.executeUpdate();\n return true;\n\n } catch (SQLException e) {\n System.out.println(\"removeSeg: \" + e.getMessage());\n return false;\n }\n }", "@Override\n\tpublic void remove(int id) {\n\t}", "public void eliminarSolicitud(int id){\n listaSolicitudes.remove(id);\n }", "@Override\n\tpublic void remove(int id) {\n\n\t}", "public void removePainter(Integer id);", "public void removeElement(int id) {\n for (int i = 0; i < data.size(); i++) {\n if (data.get(i).id == id) {\n data.remove(data.get(i));\n }\n }\n System.out.println(\"there are \" + data.size() + \" balls left from the server\");\n }", "public void removeGroup(String id) {\r\n System.out.println(\"conectado con model ---> metodo removeGroup\");\r\n //TODO\r\n }", "public void delete(int id) {\n\t\tmapper.delete(id);\n\t}", "void deletePersonById( final Long id );", "public void freeGeometry(final int id){\n\t\t//android.util.Log.d(TAG,\"freeGeometry(\"+id+\")\");\n\t\tthis.geometries.get(id).free();\n\t}", "@Override\n\tpublic boolean eliminaRisposta(Long id) {\n\t\tDB db = getDB();\n\t\tMap<Long, Risposta> risposte = db.getTreeMap(\"risposte\");\n\t\trisposte.remove(id);\n\t\tdb.commit();\n\t\t\n\t\tif(!risposte.containsKey(id))\n\t\t\treturn true;\n\t\telse \n\t\t\treturn false;\n\t}", "public void removeById(long id) {\r\n\t\tpersistenceManager.deletePersistent(this.getById(id));\r\n\t\t\r\n\t}", "public void delete(Long id);", "public void delete(Long id);", "public void delete(Long id);", "public void delete(Long id);", "public void delete(Long id);", "public void deleteById(String id);", "void removeDetail(String id);", "public void deleteById(Long id);", "public static void supprimerGroupe(int id) {\n\n // Creation de l'entity manager\n EntityManager em = GestionFactory.factory.createEntityManager();\n\n // Recherche\n @SuppressWarnings(\"unchecked\")\n Query query = em.createQuery(\n \"SELECT e FROM Groupe e WHERE e.idGroupe = :idGroupe\")\n .setParameter(\"idGroupe\", id);\n\n Groupe groupe = (Groupe) query.getSingleResult();\n List<Etudiant> listeEtudiants = groupe.getEtudiants();\n\n for(int i=0;i < listeEtudiants.size();i++){\n listeEtudiants.get(i).setGroupe(null);\n EtudiantDAO.update(listeEtudiants.get(i));\n }\n\n em.getTransaction().begin();\n em.remove(groupe);\n em.getTransaction().commit();\n\n em.close();\n\n }", "void removeUser(Long id);", "@Override\n\tpublic boolean removeById(long id) {\n\t\treturn false;\n\t}", "public void remove(int objectId) throws SQLException;", "public void removeAIObject(String id) {\n aiObjects.remove(id);\n }", "@Override\n\tpublic void remove(int id){\n\t\ttry {\n\t\t\tcon = ConexaoSingleton.getInstance();\n\t\t\tpst = con.prepareStatement(\"DELETE FROM Medicamento WHERE IDMEDC=?\");\n\t\t\tpst.setInt(1, id);\n\t\t\tpst.execute();\n\t\t}catch(SQLException e) {\n\t\t\t\n\t\t}\n\t}", "public void removeNode (int id)\r\n {\r\n uNodes.remove(id); //hard remove; See undo/redo/History.java\r\n }", "public void deleteLocation(int id){\n\t\tSQLiteDatabase db = this.getWritableDatabase();\n\t\tdb.delete(table_location, key_id + \" = ? \", new String [] { String.valueOf(id) });\n\t\tdb.close();\n\t}", "public void deleteLocation(int id){\n\t\tdb.delete(DBEntryContract.LocationEntry.TABLE_NAME, \"_id = ?\", new String[]{String.valueOf(id)});\n\t}", "void delete(final Long id);", "public void removeUser(long id) {\n\troomMembers.remove(id);\n }", "public void eliminarCajeros(int id);", "void deleteLocationById(long id);", "private void removeNodeById(Integer id)\n {\n if (allNodes.size() == 0)\n {\n return;\n }\n nodeIds.remove(id);\n CommunicationLink removedNode = allNodes.remove(id);\n removedNode.close();\n }", "public void removeInwDepartCompetence(final String id);", "void deleteById(Long id);", "void deleteById(Long id);", "void deleteById(Long id);", "void deleteById(Long id);", "Boolean removeOperation(Long id);", "@Override\r\n public void removerConcursando(long id) throws Exception {\n rnConcursando.remover(id);\r\n }", "public void remove(ObjectId id) {\n\t_filesCollection.remove(new BasicDBObject(\"_id\", id));\n\t_chunkCollection.remove(new BasicDBObject(\"files_id\", id));\n }", "public boolean remove(String id) throws SQLException\n {\n String update = \"DELETE FROM Persons WHERE teamId = ?\";\n PreparedStatement stmt = db.getPreparedStatement(update);\n stmt.setString(1, id);\n db.executeUpdate(stmt);\n\n return false;\n }", "void deleteById(String id);", "void deleteById(String id);", "void deleteById(String id);", "void deleteById(String id);", "void deleteById(String id);", "void deleteById(String id);", "void deleteById(String id);", "void deleteById(String id);", "void deleteById(String id);", "void deleteById(String id);", "public void delete(String id);", "public void delete(String id);", "public void delete(String id);", "public void delete(String id);", "public void delete(String id);", "public void delete(Long id) {\n log.debug(\"Request to delete GeoTypeCommune : {}\", id);\n geoTypeCommuneRepository.deleteById(id);\n }", "@Override\n public void remove(Long id) {\n Track trackToDelete = trackRepository\n .findById(id)\n .orElseThrow(() -> logicExceptionComponent.getExceptionEntityNotFound(\"Track\", id));\n\n /**\n * Con la entidad encontrada en la DB (trackToDelete) se le indica el repository que debe hacer el borrado\n * de este objeto.\n */\n trackRepository.delete(trackToDelete);\n }", "public void delete(int id) { \n\t\tint save = findPosition(id);\n\t\t\n\t\tif (save == numOfNode - 1) {\n\t\t\tnode [save] = null;\n\t\t\tnumOfNode--;\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t// dich dan cac node vao\n\t\tfor (int i = save; i < numOfNode - 1; i++) {\n\t\t\tnode[i] = node[i + 1];\n\t\t}\n\t\t\n\t\tnode[numOfNode - 1] = null;\n\t\tnumOfNode--;\n\t}", "public static void delete(int id){\n\t\tfind.byId(id).delete();\n\t}" ]
[ "0.66726667", "0.66444254", "0.66444254", "0.6572698", "0.6503512", "0.63976836", "0.63976836", "0.63976836", "0.6392139", "0.63557416", "0.62600374", "0.6259377", "0.62330997", "0.6178197", "0.6159155", "0.61463344", "0.6136042", "0.61318564", "0.61185586", "0.6117642", "0.6117642", "0.6086478", "0.6072754", "0.6057844", "0.6056874", "0.603089", "0.6024963", "0.59759355", "0.59458554", "0.5930493", "0.59215516", "0.59134465", "0.58885515", "0.586665", "0.58643717", "0.58556724", "0.5851411", "0.5841814", "0.58373576", "0.5791297", "0.57819927", "0.5767944", "0.57541853", "0.57528365", "0.5744197", "0.57398546", "0.5715938", "0.5714943", "0.5705264", "0.57027984", "0.5700439", "0.5700439", "0.5700439", "0.5700439", "0.5700439", "0.5697098", "0.5693607", "0.5682796", "0.5681262", "0.5677565", "0.5664301", "0.56559896", "0.5647961", "0.56393415", "0.5631014", "0.56301117", "0.562914", "0.56290376", "0.5628501", "0.56262404", "0.5622083", "0.56202614", "0.56165975", "0.5611655", "0.5611655", "0.5611655", "0.5611655", "0.5608774", "0.56009084", "0.559307", "0.559099", "0.5590195", "0.5590195", "0.5590195", "0.5590195", "0.5590195", "0.5590195", "0.5590195", "0.5590195", "0.5590195", "0.5590195", "0.5589252", "0.5589252", "0.5589252", "0.5589252", "0.5589252", "0.55877155", "0.55809563", "0.5574508", "0.55708563" ]
0.77652884
0
Remove the polygon associated to the given id from the spatial database.
boolean removeObject(Polygon polygon, String id);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean removeObject(PointLatLng point, String id);", "boolean removeObject(RectangleLatLng rectangle, String id);", "public void removeByid_(long id_);", "public void freeGeometry(final int id){\n\t\t//android.util.Log.d(TAG,\"freeGeometry(\"+id+\")\");\n\t\tthis.geometries.get(id).free();\n\t}", "void storeObject(Polygon polygon, String id);", "void deleteFeature(Integer id);", "public void removeInwDepartCompetence(final String id);", "public void removeGraphic(int id)\n\t{\n\t\tgetObject().removeGraphic(id);\n\t\treturn;\n\t}", "public void eliminarSolicitud(int id){\n listaSolicitudes.remove(id);\n }", "boolean remove (I id);", "public int deleteByPrimaryKey(Integer id) {\r\n HProvinceFb key = new HProvinceFb();\r\n key.setId(id);\r\n int rows = getSqlMapClientTemplate().delete(\"H_PROVINCE_FB.ibatorgenerated_deleteByPrimaryKey\", key);\r\n return rows;\r\n }", "void remove(String id);", "void remove(String id);", "void remove(String id);", "public void removeID(String id)\n { \n idReferences.remove(id); \n }", "void remove(PK id);", "public void deleteLocation(int id){\n\t\tSQLiteDatabase db = this.getWritableDatabase();\n\t\tdb.delete(table_location, key_id + \" = ? \", new String [] { String.valueOf(id) });\n\t\tdb.close();\n\t}", "public void deleteSubLocation(int id){\n\t\tSQLiteDatabase db = this.getWritableDatabase();\n\t\tdb.delete(table_subLocation, key_id + \" = ? \", new String [] { String.valueOf(id) });\n\t\tdb.close();\n\t}", "public void delete(Long id) {\n log.debug(\"Request to delete GeoTypeCommune : {}\", id);\n geoTypeCommuneRepository.deleteById(id);\n }", "public void removePainter(Integer id);", "void remove(Long id);", "void remove(Long id);", "public static void delete(int id) {\r\n\t\tString IdColumnName = \"feature_id\";\r\n\t\toperation.removeRow(\"FEATURE\", IdColumnName, id);\r\n\t}", "public void remove(String id) {\n\t\t\n\t}", "public void removeObject(String id) {\n\taddCollisionObject(CollisionObjectWrapper.removeObject(id));\n }", "void removeAirport(Long id);", "public void removeListingById(int id) throws SQLException;", "void remove(int id);", "public void eliminarTripulante(Long id);", "void deleteLocationById(long id);", "@Override\n\t@Transactional\n\tpublic void removeLecture(int id) {\n\t\tthis.lectureDao.removeLecture(id);\n\t}", "boolean removeObject(String id);", "public int deleteByPrimaryKey(Integer id) throws SQLException {\r\n\t\tElemFeature key = new ElemFeature();\r\n\t\tkey.setId(id);\r\n\t\tint rows = getSqlMapClientTemplate().delete(\r\n\t\t\t\t\"cementerio_elem_feature.ibatorgenerated_deleteByPrimaryKey\",\r\n\t\t\t\tkey);\r\n\t\treturn rows;\r\n\t}", "@Override\n\tpublic void deleteById(Serializable id) {\n\t\tmapper.deleteById(id);\n\t\t\n\t}", "public void deleteLocationType(int id){\n\t\tSQLiteDatabase db = this.getWritableDatabase();\n\t\tdb.delete(table_locationType, key_id + \" = ? \", new String [] { String.valueOf(id) });\n\t\tdb.close();\n\t}", "public void remove(GeometricalObject object);", "public void deleteLocation(int id){\n\t\tdb.delete(DBEntryContract.LocationEntry.TABLE_NAME, \"_id = ?\", new String[]{String.valueOf(id)});\n\t}", "public void remove(Integer id) {\n\t\t\r\n\t}", "public static boolean removeSeg(double id) {\n\n String sql = \"DELETE FROM corpus1 WHERE id = ?\";\n\n try (Connection conn = DatabaseOperations.connect();\n PreparedStatement pstmt = conn.prepareStatement(sql)) {\n\n // set the corresponding param\n pstmt.setDouble(1, id);\n // execute the delete statement\n pstmt.executeUpdate();\n return true;\n\n } catch (SQLException e) {\n System.out.println(\"removeSeg: \" + e.getMessage());\n return false;\n }\n }", "@Override\n\tpublic void removeLecture(int id) {\n\t\tSession session = this.sessionFactory.getCurrentSession();\n\t\tLecture l = (Lecture) session.load(Lecture.class, new Integer(id));\n\t\tif(null != l){\n\t\t\tsession.delete(l);\n\t\t}\n\t}", "public void delete(int id) {\n\t\tmapper.delete(id);\n\t}", "E remove(Id id);", "public void deleteVertex(int id) throws SQLException {\n\t\tVertex vert = rDb.findVertById(id);\n\t\trDb.deleteVert(vert);\n\t}", "public void removeById(long id) {\r\n\t\tpersistenceManager.deletePersistent(this.getById(id));\r\n\t\t\r\n\t}", "public void deleteLocationInfo(int id){\n\t\tSQLiteDatabase db = this.getWritableDatabase();\n\t\tdb.delete(table_locationInfo, key_id + \" = ? \", new String [] { String.valueOf(id) });\n\t\tdb.close();\n\t}", "void remove(GeometricalObject object);", "void removeById(Long id) throws DaoException;", "@Override\n\tpublic void deleteCours(long id) {\n\t\tem.remove(getCours(id));\n\t}", "public boolean remove(String id) throws SQLException\n {\n String update = \"DELETE FROM Persons WHERE teamId = ?\";\n PreparedStatement stmt = db.getPreparedStatement(update);\n stmt.setString(1, id);\n db.executeUpdate(stmt);\n\n return false;\n }", "@SuppressWarnings(\"rawtypes\")\n\tpublic void deleteById(String id)\n\t{\n\t\topen();\n\t\ttry\n\t\t{\n\t\t\tCensus census= new Census();\n\t\t\tcensus.setId(id);\n\t\t\tObjectSet result=DB.queryByExample(census);\n\t\t\t\n\t\t\tif(result.hasNext())\n\t\t\t{\n\t\t\t\tDB.delete((Census)result.next());\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tSystem.out.println(\"[DB4O]Census does not exist in database\");\n\t\t\t}\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\t\n\t\t}\n\t\tfinally\n\t\t{\n\t\t\tclose();\n\t\t}\n\t\t\n\t}", "public void delById(Serializable id) ;", "public void removeAgentServiceLocationMapping(long id);", "@Override\n\tpublic boolean eliminaRisposta(Long id) {\n\t\tDB db = getDB();\n\t\tMap<Long, Risposta> risposte = db.getTreeMap(\"risposte\");\n\t\trisposte.remove(id);\n\t\tdb.commit();\n\t\t\n\t\tif(!risposte.containsKey(id))\n\t\t\treturn true;\n\t\telse \n\t\t\treturn false;\n\t}", "public void deleteById(String id);", "public void removeWord(int id);", "public void deleteOne(String id) {\n\t\t mongoTemplate.remove(new Query(Criteria.where(\"id\").is(id)), AsxDataVO.class); \r\n\t}", "public void remove(Integer id) {\n\r\n\t}", "@Override\n\tpublic int delete(String id) {\n\t\treturn st.delete(\"couplens.delete\",id);\n\t}", "private void removeUser(HttpServletRequest req) throws PolygonException {\n int id = Integer.parseInt(req.getParameter(\"id\"));\n try {\n UsersMapper.removeUser(id);\n } catch (PolygonException ex) {\n String msg = \"UsersMapper.removeUser() fails\";\n throw new PolygonException(msg);\n }\n }", "private void updateGuiPolygon() {\n \t\tif ( this.poly != null ) {\n \t\t\tthis.poly.remove();\n \t\t}\n \n \t\t// A polygon is at minimum a triangle.\n \t\tif ( !this.satisfiesPolygon() ) {\n \t\t\treturn;\n \t\t}\n \n \t\tPolygonOptions options = new PolygonOptions();\n \t\toptions\n \t\t\t.geodesic( POLYGON_GEODESIC )\n \t\t\t.strokeWidth( 2 )\n \t\t\t.fillColor( this.getFillColor() )\n \t\t\t.strokeColor( this.getResources().getColor( POLYGON_STROKE_COLOR ) );\n \n \t\tfor ( Marker marker : this.markers ) {\n \t\t\toptions.add( marker.getPosition() );\n \t\t}\n \n \t\tthis.poly = this.googleMap.addPolygon( options );\n \t}", "public void removeVertex();", "@Override\n\tpublic boolean removeById(long id) {\n\t\treturn false;\n\t}", "public boolean deleteById(Object id);", "public boolean deleteById(Object id);", "public void deleteBuildingTypeById(int id)\r\n\t{\n\t\tString query = \"{ call deleteBuildingTypeById(?)}\";\t\r\n\t\t// Open a connection to DB\r\n\t\tif(conn == null)\r\n\t\t\tconn = JdbcSqlServerConnection.getConnection();\r\n\t\t\r\n\t\ttry\r\n\t\t{\r\n\t\t\t// Prepare the call for SP\r\n\t\t\tcs = conn.prepareCall(query);\r\n\t\t\tcs.setInt(1, id);\r\n\t\t\t// make SP call\r\n\t\t\trs = cs.executeQuery();\r\n\t\t}catch(Exception ex){\r\n\t\t\tex.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t\t//close che db coonection\r\n\t\tif(conn!=null)\r\n\t\t\ttry {\r\n\t\t\t\tJdbcSqlServerConnection.closeConnection(conn);\r\n\t\t\t} catch (SQLException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\t\t\t\t\r\n\t}", "public Curso remove(Long id) {\n\t\tfor (Curso curso : cursos) {\n\t\t\tif(curso.getId() == id) {\n\t\t\t\tcursos.remove(curso);\n\t\t\t\treturn curso;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "public void remove(ObjectId id) {\n\t_filesCollection.remove(new BasicDBObject(\"_id\", id));\n\t_chunkCollection.remove(new BasicDBObject(\"files_id\", id));\n }", "@Override\n\tpublic void deleteById(int id) {\n\t\tdesignMapper.deleteById(id);\n\t}", "private PlotDefinition removePlotDefinition(final String id) {\n return Identifiable.removeIdentifiable(id, getPlotDefinitionList());\n }", "public static void supprimerGroupe(int id) {\n\n // Creation de l'entity manager\n EntityManager em = GestionFactory.factory.createEntityManager();\n\n // Recherche\n @SuppressWarnings(\"unchecked\")\n Query query = em.createQuery(\n \"SELECT e FROM Groupe e WHERE e.idGroupe = :idGroupe\")\n .setParameter(\"idGroupe\", id);\n\n Groupe groupe = (Groupe) query.getSingleResult();\n List<Etudiant> listeEtudiants = groupe.getEtudiants();\n\n for(int i=0;i < listeEtudiants.size();i++){\n listeEtudiants.get(i).setGroupe(null);\n EtudiantDAO.update(listeEtudiants.get(i));\n }\n\n em.getTransaction().begin();\n em.remove(groupe);\n em.getTransaction().commit();\n\n em.close();\n\n }", "public void removePoint(int i)\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(POINT$0, i);\n }\n }", "@Override\r\n\tpublic void remove(int id) throws SQLException {\r\n\t\tString removeSql = \"DELETE FROM \" + tableName + \" WHERE (id = ?)\";\r\n\t\ttry {\r\n\t\t\t//connection = ds.getConnection();\r\n\t\t\tpreparedStatement = connection.prepareStatement(removeSql);\r\n\t\t\tpreparedStatement.setInt(1, id);\r\n\t\t\tpreparedStatement.executeUpdate();\r\n\t\t\tconnection.commit();\r\n\t\t} catch (SQLException e) {\r\n\t\t}\r\n\t}", "@Override\n\tpublic void excluir(Long id) {\n\t\tdao.delete(id);\n\t}", "void deleteById(final String id);", "@Override\n\tpublic int deleteObjectById(Integer id) {\n\t\treturn evaluateMapper.deleteObjectById(id);\n\t}", "public void removeFreeColGameObject(String id) {\n AIObject o = getAIObject(id);\n if (o != null) {\n o.dispose();\n }\n removeAIObject(id);\n }", "void remover(Long id);", "void remover(Long id);", "public void deleteObject(String id) {\n\t\t\n\t}", "public void delete(Long id) {\n log.debug(\"Request to delete CentreComposition : {}\", id); centreCompositionRepository.deleteById(id);\n }", "public void removeElement(int id) {\n for (int i = 0; i < data.size(); i++) {\n if (data.get(i).id == id) {\n data.remove(data.get(i));\n }\n }\n System.out.println(\"there are \" + data.size() + \" balls left from the server\");\n }", "void deleteById(String id);", "void deleteById(String id);", "void deleteById(String id);", "void deleteById(String id);", "void deleteById(String id);", "void deleteById(String id);", "void deleteById(String id);", "void deleteById(String id);", "void deleteById(String id);", "void deleteById(String id);", "public void delete(Integer id) {\n\t\tlogger.debug(\"Deleting existing Landmark\");\n\n\t\t// Retrieve session from Hibernate\n\t\tSession session = sessionFactory.getCurrentSession();\n\n\t\t// Retrieve existing Landmark first\n\t\tLandmark landmark = (Landmark) session.get(Landmark.class, id);\n\n\t\t// Delete\n\t\tsession.delete(landmark);\n\t}", "@Override\n\tpublic void eliminar(int id) {\n\t\tdao.deleteById(id);;\n\t}", "public void delete(String id);", "public void delete(String id);", "public void delete(String id);", "public void delete(String id);", "public void delete(String id);", "void deletById(Integer id);", "public void remove(int objectId) throws SQLException;" ]
[ "0.65348375", "0.63834053", "0.62394226", "0.6148551", "0.6106682", "0.60396576", "0.6011294", "0.5970015", "0.59377617", "0.5900462", "0.5855171", "0.5838219", "0.5838219", "0.5838219", "0.5821925", "0.5808298", "0.58030766", "0.57567686", "0.5753141", "0.5750836", "0.5747976", "0.5747976", "0.57412905", "0.5728653", "0.5688193", "0.5656779", "0.5639253", "0.5630085", "0.56259084", "0.5609895", "0.5586811", "0.5570429", "0.5567786", "0.5563727", "0.55576384", "0.55413663", "0.5519305", "0.5488194", "0.5482126", "0.5480186", "0.5475353", "0.5473628", "0.54687375", "0.5461923", "0.54605687", "0.5445304", "0.5436362", "0.54319113", "0.54257953", "0.53975266", "0.53862935", "0.5380772", "0.53680414", "0.5367387", "0.53621864", "0.5360644", "0.53516823", "0.53503305", "0.534952", "0.5344225", "0.53419924", "0.53416926", "0.53305286", "0.53305286", "0.5329144", "0.53148794", "0.53137594", "0.53063273", "0.5294867", "0.52940464", "0.5285233", "0.5274684", "0.5261101", "0.52535874", "0.5247722", "0.5230411", "0.5222285", "0.5222285", "0.52157074", "0.52142304", "0.5213493", "0.5209193", "0.5209193", "0.5209193", "0.5209193", "0.5209193", "0.5209193", "0.5209193", "0.5209193", "0.5209193", "0.5209193", "0.5208769", "0.52054155", "0.5195243", "0.5195243", "0.5195243", "0.5195243", "0.5195243", "0.5195028", "0.51934457" ]
0.8157652
0
Deletes all the spatial objects associated to the given id
boolean removeObject(String id);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void deleteAll(MDSKey id) {\n deleteAll(id, x -> true);\n }", "public void freeGeometry(final int id){\n\t\t//android.util.Log.d(TAG,\"freeGeometry(\"+id+\")\");\n\t\tthis.geometries.get(id).free();\n\t}", "public void deleteObject(String id) {\n\t\t\n\t}", "void deleteFeature(Integer id);", "boolean removeObject(PointLatLng point, String id);", "private void cleanUpLocations(Long id) {\n// List<SingleNucleotidePolymorphism> snps =\n// singleNucleotidePolymorphismRepository.findByLocationsId(id);\n// List<GenomicContext> genomicContexts = genomicContextRepository.findByLocationId(id);\n List<SingleNucleotidePolymorphism> snps =\n singleNucleotidePolymorphismRepository.findIdsByLocationId(id);\n List<GenomicContext> genomicContexts = genomicContextRepository.findIdsByLocationId(id);\n\n if (snps.size() == 0 && genomicContexts.size() == 0) {\n locationRepository.delete(id);\n }\n }", "@Override\n\tpublic int deleteHitos(int id) {\n\t\treturn hitosDao.deleteHitos(id);\n\t}", "void deleteLocationById(long id);", "@Override\r\n public void deleteIdentifierReferences( String id ) {\n for( GlobalStateDataControl globalStateDataControl : globalStatesDataControlList ) {\r\n globalStateDataControl.deleteIdentifierReferences( id );\r\n\r\n }\r\n }", "@Override\n\tpublic void delete(Integer id) {\n\t\tgastoModel.deleteById(id);\n\t}", "@Override\n\tpublic void deleteById(Serializable id) {\n\t\tmapper.deleteById(id);\n\t\t\n\t}", "boolean removeObject(Polygon polygon, String id);", "public void deleteById(String id);", "public boolean deleteById(Object id);", "public boolean deleteById(Object id);", "public void delete(Long id) {\n log.debug(\"Request to delete GeoTypeCommune : {}\", id);\n geoTypeCommuneRepository.deleteById(id);\n }", "@Override\n\tpublic int deleteObjectById(Integer id) {\n\t\treturn evaluateMapper.deleteObjectById(id);\n\t}", "public void delById(Serializable id) ;", "@Override\n public void delete(Long id) {\n log.debug(\"Request to delete Collection : {}\", id);\n collectionRepository.delete(id);\n collectionSearchRepository.delete(id);\n }", "@Override\n\tpublic void deleteCours(long id) {\n\t\tem.remove(getCours(id));\n\t}", "public void deleteAll(int[] id) {\n\t\tdao.deleteAll(id);\r\n\t}", "@Override\n\tpublic void deleteById(String id) {\n\t\t\n\t}", "boolean removeObject(RectangleLatLng rectangle, String id);", "@Override\n\tpublic void deleteById(Long id) {\n\n\t}", "public void delete(Long id) {\n log.debug(\"Request to delete CentreComposition : {}\", id); centreCompositionRepository.deleteById(id);\n }", "public void deleteLocation(int id){\n\t\tSQLiteDatabase db = this.getWritableDatabase();\n\t\tdb.delete(table_location, key_id + \" = ? \", new String [] { String.valueOf(id) });\n\t\tdb.close();\n\t}", "@Override\n public void delete(Long id) {\n log.debug(\"Request to delete Costo : {}\", id);\n costoRepository.delete(id);\n costoSearchRepository.delete(id);\n }", "void deleteById(String id);", "void deleteById(String id);", "void deleteById(String id);", "void deleteById(String id);", "void deleteById(String id);", "void deleteById(String id);", "void deleteById(String id);", "void deleteById(String id);", "void deleteById(String id);", "void deleteById(String id);", "public void deleteById(Long id);", "public void delete(String id);", "public void delete(String id);", "public void delete(String id);", "public void delete(String id);", "public void delete(String id);", "void deleteById(int id);", "void deleteTrackerListOs(final Integer id);", "public void deleteLocation(int id){\n\t\tdb.delete(DBEntryContract.LocationEntry.TABLE_NAME, \"_id = ?\", new String[]{String.valueOf(id)});\n\t}", "public void deleteOne(String id) {\n\t\t mongoTemplate.remove(new Query(Criteria.where(\"id\").is(id)), AsxDataVO.class); \r\n\t}", "@Override\n\tpublic void deleteById(int id) {\n\t\t\n\t}", "public void delete(K id);", "@Override\r\n\tpublic void deleteById(Long id) {\n\t\tsuper.deleteById(id);\r\n\t}", "void deleteById(final String id);", "public void delete(Long id);", "public void delete(Long id);", "public void delete(Long id);", "public void delete(Long id);", "public void delete(Long id);", "public boolean deletePeople(Long id);", "public void eliminarCajeros(int id);", "public void destroy(int id)\n\t{\n\t\tobjectToId.remove(idToObject.get(id));\n\t\tidToObject.remove(id);\n\t}", "public void deleteById(long id) {\n\t\t\n\t}", "public void deleteLocationInfo(int id){\n\t\tSQLiteDatabase db = this.getWritableDatabase();\n\t\tdb.delete(table_locationInfo, key_id + \" = ? \", new String [] { String.valueOf(id) });\n\t\tdb.close();\n\t}", "public void deleteById(long id) {\n\n\t}", "@Override\n\tpublic void del(Object id) {\n\n\t}", "void deleteById(Long id);", "void deleteById(Long id);", "void deleteById(Long id);", "void deleteById(Long id);", "public void deleteAll();", "public void deleteAll();", "public void deleteAll();", "@Override\n\tpublic void deletebyid(Integer id) {\n\t\t\n\t}", "@Override\r\n\tpublic void delete(int id) {\n\t\tstnLooseMtRepository.delete(id);\r\n\t\t}", "public void remove(ObjectId id) {\n\t_filesCollection.remove(new BasicDBObject(\"_id\", id));\n\t_chunkCollection.remove(new BasicDBObject(\"files_id\", id));\n }", "public void DeleteAllActivityUser(iconnectionpool connectionPool, String id){\n try{\n Connection con=null;\n //get connection from Pool\n con=connectionPool.getConnection();\n Statement stmt=con.createStatement(); \n String sql=\"delete from similarplaces where id_user=\"+id;\n stmt.executeUpdate(sql); \n }catch(Exception e){}\n }", "@Override\n\tpublic void deleteById(Integer id) {\n\t\t\n\t}", "public void deleteById(Integer id) {\n\n\t}", "@Override\r\n\tpublic void delete(Long id) {\n\t\t\r\n\t}", "public void delete(int id);", "public static void delete(int id){\n\t\tfind.byId(id).delete();\n\t}", "@Override\n public void delete(Long id) {\n log.debug(\"Request to delete OraganizationalUnit : {}\", id);\n oraganizationalUnitRepository.deleteById(id);\n oraganizationalUnitSearchRepository.deleteById(id);\n }", "public void delObject(int id) {\n\n\t\t// last element?\n\t\tif (elements.size() - 1 == id) {\n\t\t\t// remove it\n\t\t\telements.remove(id);\n\t\t} else {\n\t\t\t// reset only element\n\t\t\telements.get(id).setObject(createObject());\n\t\t\telements.get(id).setModified(true);\n\t\t}\n\n\t\t// inform tab\n\t\tbuildEmptyView();\n\t}", "public void delete(int id) {\n\t\tmapper.delete(id);\n\t}", "public void delete(Long id) {\n gameRepository.delete(id);\n }", "void delete(ID id);", "public void delete(Integer id);", "public void delete(Integer id);", "public void delete(Integer id);", "@Override\n\tpublic void delete(Serializable id) {\n\n\t}", "@Override\n\tpublic void deleteById(String id) throws Exception {\n\t\t\n\t}", "public void delete(Long id) {\n log.debug(\"Request to delete CaraterDaInternacao : {}\", id);\n caraterDaInternacaoRepository.deleteById(id);\n caraterDaInternacaoSearchRepository.deleteById(id);\n }", "public JiburiVar deleteById(int id){\n jiburiMapper.deleteById(id);\n return jiburiMapper.getAllById(id);\n }", "void deleteById(Integer id);", "void deleteById(Integer id);", "@Override\n\tpublic void delete(Serializable id) {\n\t\t\n\t}", "@Override\n public void delete(Long id) {\n log.debug(\"Request to delete Square : {}\", id);\n squareRepository.deleteById(id);\n }", "public void delete(Long id) {\n\t\tdao.deleteObjectByIds(id);\n\t}", "void deleteAll();", "void deleteAll();", "void deleteAll();", "public void deleteAll();" ]
[ "0.72733855", "0.68233424", "0.6740129", "0.6677967", "0.66057", "0.65611136", "0.64137423", "0.63930863", "0.63865966", "0.6385151", "0.6373267", "0.6357293", "0.63484293", "0.63261116", "0.63261116", "0.6302261", "0.63008314", "0.63002473", "0.6260503", "0.62504876", "0.6250244", "0.62433827", "0.6242798", "0.6223556", "0.6206822", "0.62048703", "0.6203989", "0.6201223", "0.6201223", "0.6201223", "0.6201223", "0.6201223", "0.6201223", "0.6201223", "0.6201223", "0.6201223", "0.6201223", "0.6185651", "0.618198", "0.618198", "0.618198", "0.618198", "0.618198", "0.61567897", "0.6141026", "0.6138637", "0.61302197", "0.6121487", "0.6110896", "0.6101043", "0.60941976", "0.60890776", "0.60890776", "0.60890776", "0.60890776", "0.60890776", "0.6088625", "0.6087239", "0.6084557", "0.60832137", "0.6069882", "0.6068861", "0.60686857", "0.6062678", "0.6062678", "0.6062678", "0.6062678", "0.60606825", "0.60606825", "0.60606825", "0.60542846", "0.6051229", "0.60406953", "0.6036416", "0.60359967", "0.60346746", "0.6024217", "0.60226095", "0.6018068", "0.6016492", "0.6015768", "0.60151374", "0.6003243", "0.6002356", "0.60011095", "0.60011095", "0.60011095", "0.59982467", "0.59979683", "0.5993825", "0.59873337", "0.59852356", "0.59852356", "0.5982236", "0.5980968", "0.5979898", "0.5978808", "0.5978808", "0.5978808", "0.59784526" ]
0.60568196
70
Retrieves the couple (id, geoId) of all the spatial object that intersects with the bounds given as input
Multimap<String, String> intersects(RectangleLatLng bounds);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Multimap<String, String> intersects(Polygon bounds);", "Multimap<String, String> intersects(Circle bounds);", "List<GeoPoint> findGeoIntersections(Ray ray);", "public List<PointDetails> getIntersectingPoints(Rectangle2D rect) {\n\t\tboolean useParallelStreaming = numPoints() > 10000;\n\t\treturn Utils.parallelize(getPointDetails().stream(), useParallelStreaming)\n\t\t\t\t.filter(p->rect.contains(p.location))\n\t\t\t\t.collect(Collectors.toList());\n\t}", "List<Long> getBestSolIntersection();", "RectangleLatLng getBounds();", "public static S2CellUnion findCellIds(S2LatLngRect latLngRect) {\n\n\t\tConcurrentLinkedQueue<S2CellId> queue = new ConcurrentLinkedQueue<S2CellId>();\n\t\tArrayList<S2CellId> cellIds = new ArrayList<S2CellId>();\n\n\t\tfor (S2CellId c = S2CellId.begin(0); !c.equals(S2CellId.end(0)); c = c.next()) {\n\t\t\tif (containsGeodataToFind(c, latLngRect)) {\n\t\t\t\tqueue.add(c);\n\t\t\t}\n\t\t}\n\n\t\tprocessQueue(queue, cellIds, latLngRect);\n\t\tassert queue.size() == 0;\n\t\tqueue = null;\n\n\t\tif (cellIds.size() > 0) {\n\t\t\tS2CellUnion cellUnion = new S2CellUnion();\n\t\t\tcellUnion.initFromCellIds(cellIds); // This normalize the cells.\n\t\t\t// cellUnion.initRawCellIds(cellIds); // This does not normalize the cells.\n\t\t\tcellIds = null;\n\n\t\t\treturn cellUnion;\n\t\t}\n\n\t\treturn null;\n\t}", "public double[] getHitGeoCoord();", "Multimap<String, String> intersects(PointLatLng point);", "public Map<Integer, Boolean> getIntersects(Geometry geom) throws SQLException {\n return retrieveExpected(createNativeIntersectsStatement(geom), BOOLEAN);\n }", "protected abstract Iterable<E> getIntersecting(D lower, D upper);", "public Bounds getLatLonBounds(BoundsObject bounds) {\n\t\treturn null;\n\t}", "public final BoundingBox getBounds() {\n\t\tif (bounds==null) {\n\t\t\tint srsID =( (Geometry)this.get(0).getDefaultGeometry()).getSRID();\n\t\t\tBoundingBox re = new BoundingBoxImpl(\"\"+srsID);\n\t\t\tfor (SimpleFeature f : this) {\n\t\t\t\tre.include(f.getBounds());\n\t\t\t}\n\t\t\tbounds = re;\n\t\t}\n\t\treturn bounds;\n\t}", "boolean intersects( Geometry gmo );", "public Map<Integer, Geometry> getIntersection(Geometry geom) throws SQLException {\n return retrieveExpected(createNativeIntersectionStatement(geom), GEOMETRY);\n }", "Collection<Point> getCoordinates(int... ids);", "public ReferencedEnvelope getBounds(){\n if(bounds==null){\n // Create Null envelope\n this.bounds = new ReferencedEnvelope(getCRS());\n // First try to find the BBOX definition in the gisNode directly\n try{\n if(gisNode.hasProperty(INeoConstants.PROPERTY_BBOX_NAME)){\n double[] bbox = (double[])gisNode.getProperty(INeoConstants.PROPERTY_BBOX_NAME);\n this.bounds = new ReferencedEnvelope(bbox[0],bbox[1],bbox[2],bbox[3],crs);\n }else{\n System.err.println(\"No BBox defined in the GeoNeo object\");\n }\n }catch(Exception bbox_e){\n System.err.println(\"Failed to interpret BBOX: \"+bbox_e.getMessage());\n bbox_e.printStackTrace(System.err);\n }\n // Secondly, if bounds is still empty, try find all feature geometries and calculate bounds\n try{\n if(this.bounds.isNull()){\n // Try to create envelope from any data referenced by the gisNode\n for(GeoNode node:getGeoNodes()){\n //TODO: support high dimensions\n this.bounds.expandToInclude(node.getCoords()[0], node.getCoords()[1]);\n }\n }\n }catch(Exception bbox_e){\n System.err.println(\"Failed to interpret BBOX: \"+bbox_e.getMessage());\n bbox_e.printStackTrace(System.err);\n }\n }\n return bounds;\n }", "protected abstract NativeSQLStatement createNativeIntersectsStatement(Geometry geom);", "@Override\n final boolean intersect(Bounds bounds, Point4d pickPos) {\n\treturn bounds.intersect(this.bounds, pickPos);\n }", "@Test\n public void testBoundsAsCompositesWithMultiInRestrictions()\n {\n CFMetaData cfMetaData = newCFMetaData(Sort.ASC, Sort.ASC);\n\n ByteBuffer value1 = ByteBufferUtil.bytes(1);\n ByteBuffer value2 = ByteBufferUtil.bytes(2);\n ByteBuffer value3 = ByteBufferUtil.bytes(3);\n Restriction in = newMultiIN(cfMetaData, 0, asList(value1, value2), asList(value2, value3));\n PrimaryKeyRestrictions restrictions = new PrimaryKeyRestrictionSet(cfMetaData.comparator);\n restrictions = restrictions.mergeWith(in);\n\n List<Composite> bounds = restrictions.boundsAsComposites(cfMetaData, Bound.START, QueryOptions.DEFAULT);\n assertEquals(2, bounds.size());\n assertComposite(bounds.get(0), value1, value2, EOC.START);\n assertComposite(bounds.get(1), value2, value3, EOC.START);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.END, QueryOptions.DEFAULT);\n assertEquals(2, bounds.size());\n assertComposite(bounds.get(0), value1, value2, EOC.END);\n assertComposite(bounds.get(1), value2, value3, EOC.END);\n }", "public List<Point> query(Rectangle rectangle) {\n if (!boundary.intersects(rectangle)) {\n return Collections.emptyList();\n }\n\n List<Point> found = new ArrayList<>();\n points.stream()\n .filter(rectangle::contains)\n .forEach(found::add);\n\n if (isSubdivided) {\n found.addAll(nw.query(rectangle));\n found.addAll(ne.query(rectangle));\n found.addAll(se.query(rectangle));\n found.addAll(sw.query(rectangle));\n }\n\n return found;\n }", "public ArrayList<ArrayList<String>> extractCoordsFromWfsXml(String xml_og, String url_geofenceWfs, String serviceIdentifier) {\r\n\t\t\r\n\t\t//logger.debug(xml_og);\r\n\t\tnameSpaceUri = getArbeitsbereichXmlTagFromWfs(url_geofenceWfs); //z.B. focus\r\n\t\tPointPolygon point = new PointPolygon();\r\n\t\tArrayList<String> list_objectid = new ArrayList<String>();\r\n\t\tArrayList<String> list_coords = new ArrayList<String>();\r\n\t\tArrayList<ArrayList<String>> list_coords_objectid = new ArrayList<ArrayList<String>>();\r\n\t\t\r\n\t\t\r\n\t\tDocumentBuilder dbuilder = null;\r\n\t\ttry {\t\t\t\r\n\t\t\tXPath xPath = XPathFactory.newInstance().newXPath();\r\n\t\t\tDocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();\r\n\t\t\tdbFactory.setNamespaceAware(true);\r\n\t DocumentBuilder builder = dbFactory.newDocumentBuilder();\r\n\t Document doc = builder.parse(new InputSource(new StringReader(xml_og)));\r\n\t \t \r\n\t \txPath.setNamespaceContext(new NamespaceContext() {\r\n\t\t\t\t\t\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tpublic Iterator getPrefixes(String namespaceURI) {\r\n\t\t\t\t\t\treturn null;\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tpublic String getPrefix(String namespaceURI) {\r\n\t\t\t\t\t\treturn null;\r\n\t\t\t\t\t}\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t @Override\r\n\t\t\t public String getNamespaceURI(String args) {\r\n\t\t\t if(nameSpaceUri.equals(args)){\r\n\t\t\t \treturn nameSpaceUri;\r\n\t\t\t }else if(\"gml\".equals(args)){\r\n\t\t\t \treturn \"http://www.opengis.net/gml/3.2\"; \t\r\n\t\t\t }else{\r\n\t\t\t \treturn null;\r\n\t\t\t }\r\n\t\t\t }\r\n\t\t\t\t});\t\t\r\n//\t \tString path_offering = \"/wfs:FeatureCollection/wfs:member/geofence_sbg:geofence_sbg_bbox/@gml:id\";\r\n//\t\t\t\tNode node_offering = (Node)xPath.compile(path_offering).evaluate(doc, XPathConstants.NODE);\r\n//\t\t\t\tSystem.out.println(\"offering: \"+node_offering.getNodeValue());\r\n\t\t\t\t/*\r\n\t\t\t\tString path_offering = \"/soap:Envelope/soap:Body/sos:Capabilities/@version\";\r\n\t\t\t\tNode node_offering = (Node)xPath.compile(path_offering).evaluate(doc, XPathConstants.NODE);\r\n\t\t\t\tSystem.out.println(\"offering: \"+node_offering.getTextContent());\r\n\t\t\t\t\r\n\t\t\t\tString path_procedures = \"//om:OM_Observation[@name='GetObservation']/ows:Parameter[@name='procedure']/ows:AllowedValues/ows:Value\"; */\r\n//\t\t\t\tString pathToLoading = \"//om:OM_Observation[om:observedProperty[@xlink:href='http://ispace.researchstudio.at/ont/swe/property/Loading']]/om:result\";\r\n\t\t\t\t\r\n\r\n\t \tString pathToObjectid = \"//\"+nameSpaceUri +\":objectid\";\r\n\t \tNodeList nodes_Objectid = (NodeList)xPath.compile(pathToObjectid).evaluate(doc, XPathConstants.NODESET);\r\n\t \t\r\n\t\t\t\tString pathToCoordinates =\"//gml:LinearRing/gml:posList\";\r\n\t\t\t\tNodeList nodes_position = (NodeList)xPath.compile(pathToCoordinates).evaluate(doc, XPathConstants.NODESET);\r\n\t\t\t\t//book[title/@lang = 'it'] [@uom='abc']\r\n\t\t\t\t//myNodeList.item(0).setNodeValue(\"Hi test!\");\r\n\t\t\t\tString xy= \"\";\r\n\t\t\t\t\r\n\t\t\t//\tlogger.debug(\"vor for loop ParserXmlJson.extractPointFromIO:\"+ nodes_position.getLength());\t\r\n\t\t\t\tfor(int n = 0; n<nodes_position.getLength(); n++){\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(serviceIdentifier.equals(\"within\")){\r\n\t\t\t\t\t\tpoint.list_ofStrConsistingOf5CoordinatesForBoundingBox.add(nodes_position.item(n).getTextContent());\r\n\t\t\t\t\t}else{\r\n\t\t\t\t\t\tpoint.list_ofStrConsistingOf5CoordinatesForBoundingBoxWithin.add(nodes_position.item(n).getTextContent());\r\n\t\t\t\t\t}\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\tlist_coords.add(nodes_position.item(n).getTextContent());\r\n\t\t\t\t\t\r\n\t\t\t\t\tlist_objectid.add(nodes_Objectid.item(n).getTextContent());\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t//node_procedures.item(n).setTextContent(\"4444\");\r\n\t\t\t\t\t//System.out.println(\"ParserXmlJson.parseInsertObservation:parser EDITED:\"+node_procedures.item(n).getTextContent());\r\n\t\t\t\t}\t\t\t\r\n\t\t\t//\tSystem.out.println(TextFiles.xmlDocument2StringWithPrettyPrint(doc, 2));\r\n\t\t\t\ttry{\r\n\t\t\t\t\t\r\n\t\t\t\t}catch(Exception e){\r\n\t\t\t\t\tSystem.out.println(\"Error: maybe no coordinates!\");\r\n\t\t\t\t\te.printStackTrace();\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t}catch(Exception ex){\r\n\t\t\tex.printStackTrace();\r\n\t\t}\t\t\t\r\n\t\tlist_coords_objectid.add(list_coords);\r\n\t\tlist_coords_objectid.add(list_objectid);\r\n\t\treturn list_coords_objectid;//point.list_ofStrConsistingOf5CoordinatesForBoundingBox;\t\t\t\t\r\n\t}", "public Stream<Area> extractBounds() {\n if (getPolygonsAsJson() != null && !getPolygonsAsJson().trim().equalsIgnoreCase(\"[]\")) {\n ObjectMapper mapper = new ObjectMapper();\n try {\n @SuppressWarnings(\"unchecked\")\n ArrayList<LinkedHashMap<String, Double>> bounds = (ArrayList<LinkedHashMap<String, Double>>) mapper.readValue(getPolygonsAsJson(), ArrayList.class);\n return bounds.stream().map(entry -> new Area(entry.get(LEFT), entry.get(TOP), entry.get(RIGHT), entry.get(BOTTOM)));\n } catch (IOException e) {\n throw new EmbryonicException(\"Error parsing json for InterestOfAreas\", e);\n }\n }\n return Stream.empty();\n }", "public Iterable<Point2D> range(RectHV rect) {\n\n if (rect == null)\n throw new IllegalArgumentException(\"Got null object in range()\");\n \n Queue<Point2D> pointsInside = new Queue<>();\n \n for (Point2D p : point2DSET) {\n \n double x = p.x();\n double y = p.y();\n if (x >= rect.xmin() && x <= rect.xmax() &&\n y >= rect.ymin() && y <= rect.ymax())\n pointsInside.enqueue(p);\n \n }\n \n return pointsInside;\n }", "public PickBounds(Bounds boundsObject) {\n\tbounds = boundsObject;\n }", "@Test\n public void testBoundsAsCompositesWithEqAndInRestrictions()\n {\n CFMetaData cfMetaData = newCFMetaData(Sort.ASC, Sort.ASC);\n\n ByteBuffer value1 = ByteBufferUtil.bytes(1);\n ByteBuffer value2 = ByteBufferUtil.bytes(2);\n ByteBuffer value3 = ByteBufferUtil.bytes(3);\n Restriction eq = newSingleEq(cfMetaData, 0, value1);\n Restriction in = newSingleIN(cfMetaData, 1, value1, value2, value3);\n PrimaryKeyRestrictions restrictions = new PrimaryKeyRestrictionSet(cfMetaData.comparator);\n restrictions = restrictions.mergeWith(eq).mergeWith(in);\n\n List<Composite> bounds = restrictions.boundsAsComposites(cfMetaData, Bound.START, QueryOptions.DEFAULT);\n assertEquals(3, bounds.size());\n assertComposite(bounds.get(0), value1, value1, EOC.START);\n assertComposite(bounds.get(1), value1, value2, EOC.START);\n assertComposite(bounds.get(2), value1, value3, EOC.START);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.END, QueryOptions.DEFAULT);\n assertEquals(3, bounds.size());\n assertComposite(bounds.get(0), value1, value1, EOC.END);\n assertComposite(bounds.get(1), value1, value2, EOC.END);\n assertComposite(bounds.get(2), value1, value3, EOC.END);\n }", "public abstract boolean intersect(BoundingBox bbox);", "public List<LatLng> getCoordinates() {\n return getGeometryObject();\n }", "public ArrayList<ArrayList<String>> extractCoordsFromWfsXml(String xml_og) {\r\n\t\tSystem.out.println(\"ParserXmlJson.extractBoundingBoxFromWfsXml: \"+ xml_og);\r\n\t\tPointPolygon point = new PointPolygon();\r\n\t\tArrayList<String> list_objectid = new ArrayList<String>();\r\n\t\tArrayList<String> list_coords = new ArrayList<String>();\r\n\t\tArrayList<ArrayList<String>> list_coords_objectid = new ArrayList<ArrayList<String>>();\r\n\t\t\r\n\t\t\r\n\t\tDocumentBuilder dbuilder = null;\r\n\t\ttry {\t\t\t\r\n\t\t\tXPath xPath = XPathFactory.newInstance().newXPath();\r\n\t\t\tDocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();\r\n\t\t\tdbFactory.setNamespaceAware(true);\r\n\t DocumentBuilder builder = dbFactory.newDocumentBuilder();\r\n\t Document doc = builder.parse(new InputSource(new StringReader(xml_og)));\r\n\t \t \r\n\t \txPath.setNamespaceContext(new NamespaceContext() {\r\n\t\t\t\t\t\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tpublic Iterator getPrefixes(String namespaceURI) {\r\n\t\t\t\t\t\treturn null;\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tpublic String getPrefix(String namespaceURI) {\r\n\t\t\t\t\t\treturn null;\r\n\t\t\t\t\t}\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t @Override\r\n\t\t\t public String getNamespaceURI(String args) {\r\n\t\t\t if(LoadOnStartAppConfiguration.arbeitsbereichXmlTagPolygon.equals(args)){\r\n\t\t\t \treturn LoadOnStartAppConfiguration.arbeitsbereichXmlTagPolygon;\r\n\t\t\t }else if(\"gml\".equals(args)){\r\n\t\t\t \treturn \"http://www.opengis.net/gml/3.2\"; \t\r\n\t\t\t }else{\r\n\t\t\t \treturn null;\r\n\t\t\t }\r\n\t\t\t }\r\n\t\t\t\t});\t\t\r\n//\t \tString path_offering = \"/wfs:FeatureCollection/wfs:member/geofence_sbg:geofence_sbg_bbox/@gml:id\";\r\n//\t\t\t\tNode node_offering = (Node)xPath.compile(path_offering).evaluate(doc, XPathConstants.NODE);\r\n//\t\t\t\tSystem.out.println(\"offering: \"+node_offering.getNodeValue());\r\n\t\t\t\t/*\r\n\t\t\t\tString path_offering = \"/soap:Envelope/soap:Body/sos:Capabilities/@version\";\r\n\t\t\t\tNode node_offering = (Node)xPath.compile(path_offering).evaluate(doc, XPathConstants.NODE);\r\n\t\t\t\tSystem.out.println(\"offering: \"+node_offering.getTextContent());\r\n\t\t\t\t\r\n\t\t\t\tString path_procedures = \"//om:OM_Observation[@name='GetObservation']/ows:Parameter[@name='procedure']/ows:AllowedValues/ows:Value\"; */\r\n//\t\t\t\tString pathToLoading = \"//om:OM_Observation[om:observedProperty[@xlink:href='http://ispace.researchstudio.at/ont/swe/property/Loading']]/om:result\";\r\n\t\t\t\t\r\n\t\t\t\t//jetzt werden hier aber alle X Y Koordinaten,die sich in InsertObservation.xml wiederholen, ausgelesen werden\r\n\t \tString pathToObjectid = \"//geofence_sbg:objectid\";\r\n\t \tNodeList nodes_Objectid = (NodeList)xPath.compile(pathToObjectid).evaluate(doc, XPathConstants.NODESET);\r\n\t \t\r\n\t\t\t\tString pathToCoordinates =\"//gml:LinearRing/gml:posList\";\r\n\t\t\t\tNodeList nodes_position = (NodeList)xPath.compile(pathToCoordinates).evaluate(doc, XPathConstants.NODESET);\r\n\t\t\t\t//book[title/@lang = 'it'] [@uom='abc']\r\n\t\t\t\t//myNodeList.item(0).setNodeValue(\"Hi mom!\");\r\n\t\t\t\tString xy= \"\";\r\n\t\t\t\t\r\n\t\t\t\tSystem.out.println(\"vor for loop ParserXmlJson.extractPointFromIO:\"+ nodes_position.getLength());\t\r\n\t\t\t\tfor(int n = 0; n<nodes_position.getLength(); n++){\r\n\t\t\t\t\tSystem.out.println(\"ParserXmlJson.extractPointFromIO: \"+nodes_position.item(n).getTextContent());\r\n\t\t\t\t\tpoint.list_ofStrConsistingOf5CoordinatesForBoundingBox.add(nodes_position.item(n).getTextContent());\r\n\t\t\t\t\tlist_coords.add(nodes_position.item(n).getTextContent());\r\n\t\t\t\t\tSystem.out.println(\"ParserXmlJson.extractPointFromIO objectid: \"+nodes_Objectid.item(n).getTextContent());\r\n\t\t\t\t\tlist_objectid.add(nodes_Objectid.item(n).getTextContent());\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t//node_procedures.item(n).setTextContent(\"4444\");\r\n\t\t\t\t\t//System.out.println(\"ParserXmlJson.parseInsertObservation:parser EDITED:\"+node_procedures.item(n).getTextContent());\r\n\t\t\t\t}\t\t\t\r\n\t\t\t//\tSystem.out.println(TextFiles.xmlDocument2StringWithPrettyPrint(doc, 2));\r\n\t\t\t\ttry{\r\n\t\t\t\t\t\r\n\t\t\t\t}catch(Exception e){\r\n\t\t\t\t\tSystem.out.println(\"Error: maybe no coordinates!\");\r\n\t\t\t\t\te.printStackTrace();\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t}catch(Exception ex){\r\n\t\t\tex.printStackTrace();\r\n\t\t}\t\t\t\r\n\t\tlist_coords_objectid.add(list_coords);\r\n\t\tlist_coords_objectid.add(list_objectid);\r\n\t\treturn list_coords_objectid;//point.list_ofStrConsistingOf5CoordinatesForBoundingBox;\t\t\t\t\r\n\t}", "private static void ParseMapXMLGetIntersections()\r\n\t{\r\n\t\ttry {\r\n\t\t\tSAXParserFactory factory = SAXParserFactory.newInstance();\r\n\t\t\tSAXParser saxParser = factory.newSAXParser();\r\n\r\n\t\t\tDefaultHandler handler = new DefaultHandler() {\r\n\r\n\t\t\t\tpublic void startElement(String uri, String localName,\r\n\t\t\t\t\t\tString qName, Attributes attributes)\r\n\t\t\t\t\t\tthrows SAXException {\r\n\r\n\t\t\t\t\tif (qName.equalsIgnoreCase(\"bounds\")) {\r\n\t\t\t\t\t\tint k = attributes.getLength();\r\n\t\t\t\t\t\tSystem.out.println(\"Map boundries:\");\r\n\t\t\t\t\t\tfor (int i = 0; i < k; i++)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tif (attributes.getLocalName(i).compareToIgnoreCase(\"minlat\") == 0)\r\n\t\t\t\t\t\t\t\tSystem.out.println(\"MinLat: \" + attributes.getValue(i));\r\n\t\t\t\t\t\t\tif (attributes.getLocalName(i).compareToIgnoreCase(\"maxlat\") == 0)\r\n\t\t\t\t\t\t\t\tSystem.out.println(\"MaxLat: \" + attributes.getValue(i));\r\n\t\t\t\t\t\t\tif (attributes.getLocalName(i).compareToIgnoreCase(\"minlon\") == 0)\r\n\t\t\t\t\t\t\t\tSystem.out.println(\"MinLon: \" + attributes.getValue(i));\r\n\t\t\t\t\t\t\tif (attributes.getLocalName(i).compareToIgnoreCase(\"maxlon\") == 0)\r\n\t\t\t\t\t\t\t\tSystem.out.println(\"MaxLon: \" + attributes.getValue(i));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tif (qName.equalsIgnoreCase(\"node\")) {\r\n\t\t\t\t\t\tint k = attributes.getLength();\r\n\t\t\t\t\t\tlong id = 0;\r\n\t\t\t\t\t\tdouble lat = 0;\r\n\t\t\t\t\t\tdouble lon = 0;\r\n\t\t\t\t\t\tfor (int i = 0; i < k; i++)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tif (attributes.getLocalName(i).compareToIgnoreCase(\"id\") == 0)\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tid = Long.valueOf(attributes.getValue(i));\r\n\t\t\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tif (attributes.getLocalName(i).compareToIgnoreCase(\"lat\") == 0)\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tlat = Double.valueOf(attributes.getValue(i));\r\n\t\t\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tif (attributes.getLocalName(i).compareToIgnoreCase(\"lon\") == 0)\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tlon = Double.valueOf(attributes.getValue(i));\r\n\t\t\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\thashtableNodes.put(id, new Intersection(lat, lon, id));\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\tif (qName.equalsIgnoreCase(\"nd\")) \r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tlong reference = Long.valueOf(attributes.getValue(0));\r\n\t\t\t\t\t\tif (hashtableCounter.containsKey(reference)) {\r\n\t\t\t\t\t\t\tint value = hashtableCounter.get(reference);\r\n\t\t\t\t\t\t\thashtableCounter.put(reference, value + 1);\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\thashtableCounter.put(reference, 1);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\tpublic void endElement(String uri, String localName,\r\n\t\t\t\t\t\tString qName) throws SAXException {\r\n\r\n\t\t\t\t}\r\n\t\t\t};\r\n\t\t\tsaxParser.parse(MapPath, handler);\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\tSystem.exit(0);\r\n\t\t}\r\n\t\t\r\n\t\t// remove the nodes which only appears once in way's nd.\r\n\t\tLinkedList<Long> removeList = new LinkedList<Long>();\r\n\t\tfor (long theKey : hashtableCounter.keySet())\r\n\t\t{\r\n\t\t\tif (hashtableCounter.get(theKey) <= 1)\r\n\t\t\t{\r\n\t\t\t\tremoveList.add(theKey);\r\n\t\t\t}\r\n\t\t}\r\n\t\tfor (long theKey : removeList)\r\n\t\t{\r\n\t\t\thashtableNodes.remove(theKey);\r\n\t\t}\r\n\t}", "public Map<Integer, Boolean> getWithin(Geometry geom) throws SQLException {\n return retrieveExpected(createNativeWithinStatement(geom), BOOLEAN);\n }", "@GET\n\t@Produces(\"application/json\")\n\t@Path(\"within\")\n\tpublic List<Pizzerias> findPizzeriasWithin(@QueryParam(\"lat1\") float lat1,\n @QueryParam(\"lon1\") float lon1, @QueryParam(\"lat2\") float lat2,\n @QueryParam(\"lon2\") float lon2) {\n dbConnection.checkDatabase();\n\t\tArrayList<Pizzerias> allPizzeriasList = new ArrayList<Pizzerias>();\n\t\tMongoCollection pizzerias = dbConnection.getCollection();\n\n\t\t// make the query object\n\t\tBasicDBObject spatialQuery = new BasicDBObject();\n\n\t\tArrayList<double[]> boxList = new ArrayList<double[]>();\n\t\tboxList.add(new double[] { new Float(lat2), new Float(lon2) });\n\t\tboxList.add(new double[] { new Float(lat1), new Float(lon1) });\n\n\t\tBasicDBObject boxQuery = new BasicDBObject();\n\t\tboxQuery.put(\"$box\", boxList);\n\n\t\tspatialQuery.put(\"pos\", new BasicDBObject(\"$within\", boxQuery));\n\t\tSystem.out.println(\"Using spatial query: \" + spatialQuery.toString());\n\n\t\tMongoCursor<Document> cursor = pizzerias.find(spatialQuery).iterator();\n\t\ttry {\n\t\t\twhile (cursor.hasNext()) {\n\t\t\t\tallPizzeriasList.add(this.populatePizzeriasInformation(cursor.next()));\n\t\t\t}\n\t\t} finally {\n\t\t\tcursor.close();\n\t\t}\n\t\tSystem.out.println(\"Return \" + allPizzeriasList.size() + \" pizzerias\");\n\n\t\treturn allPizzeriasList;\n\t}", "public Map<Integer, Boolean> getContains(Geometry geom) throws SQLException {\n return retrieveExpected(createNativeContainsStatement(geom), BOOLEAN);\n }", "public Coordinates intersection() {\n return intersection;\n }", "List<Coord> allActiveCells();", "Collection<Point> getAllCoordinates();", "public Map<Integer, Geometry> getBoundary() throws SQLException {\n return retrieveExpected(createNativeBoundaryStatement(), GEOMETRY);\n }", "public interface IdCoordinateSource {\n\n /**\n * Get the matching coordinate for the given ID\n *\n * @param id the ID to look up\n * @return matching coordinate\n */\n Optional<Point> getCoordinate(int id);\n\n /**\n * Get the matching coordinates for the given IDs\n *\n * @param ids the IDs to look up\n * @return the matching coordinates\n */\n Collection<Point> getCoordinates(int... ids);\n\n /**\n * Get the ID for the coordinate point\n *\n * @param coordinate the coordinate to look up\n * @return the matching ID\n */\n Optional<Integer> getId(Point coordinate);\n\n /**\n * Returns all the coordinates of this source\n *\n * @return all available coordinates\n */\n Collection<Point> getAllCoordinates();\n\n /**\n * Returns the nearest n coordinate points. If n is greater than four, this method will try to\n * return the corner points of the bounding box.\n *\n * @param coordinate the coordinate to look up\n * @param n number of searched points\n * @return the nearest n coordinates or all coordinates if n is less than all available points\n */\n List<CoordinateDistance> getNearestCoordinates(Point coordinate, int n);\n\n /**\n * Returns the closest n coordinate points to the given coordinate, that are inside a given\n * bounding box, from a collection of all available points. The bounding box is calculated with\n * the given distance. If n is greater than four, this method will try to return the corner points\n * of the bounding box.\n *\n * @param coordinate the coordinate to look up the nearest neighbours for\n * @param n how many neighbours to look up\n * @param distance to the borders of the envelope that contains the coordinates\n * @return the nearest n coordinates to the given point\n */\n List<CoordinateDistance> getClosestCoordinates(\n Point coordinate, int n, ComparableQuantity<Length> distance);\n\n /**\n * Calculates and returns the nearest n coordinate distances to the given coordinate from a given\n * collection of points. If the set is empty or null an empty list is returned. If n is greater\n * than four, this method will try to return the corner points of the bounding box.\n *\n * @param coordinate the coordinate to look up the nearest neighbours for\n * @param n how many neighbours to look up\n * @param coordinates the collection of points\n * @return a list of the nearest n coordinates to the given point or an empty list\n */\n default List<CoordinateDistance> calculateCoordinateDistances(\n Point coordinate, int n, Collection<Point> coordinates) {\n if (coordinates != null && !coordinates.isEmpty()) {\n SortedSet<CoordinateDistance> sortedDistances =\n GeoUtils.calcOrderedCoordinateDistances(coordinate, coordinates);\n return restrictToBoundingBox(coordinate, sortedDistances, n);\n } else {\n return Collections.emptyList();\n }\n }\n\n /**\n * Method for evaluating the found points. This method tries to return the four corner points of\n * the bounding box of the given coordinate. If one of the found points matches the given\n * coordinate, only this point is returned. If the given number of searched points is less than\n * four, this method will only return the nearest n corner points. If the given number of searched\n * points is greater than four, this method will return the four corner points plus the nearest n\n * points to match the number of searched points.\n *\n * <p>To work properly, the given collection of {@link CoordinateDistance}'s should already be\n * sorted by distance.\n *\n * @param coordinate at the center of the bounding box\n * @param distances list of found points with their distances\n * @param numberOfPoints that should be returned\n * @return list of distances\n */\n default List<CoordinateDistance> restrictToBoundingBox(\n Point coordinate, Collection<CoordinateDistance> distances, int numberOfPoints) {\n boolean topLeft = false;\n boolean topRight = false;\n boolean bottomLeft = false;\n boolean bottomRight = false;\n\n List<CoordinateDistance> resultingDistances = new ArrayList<>();\n List<CoordinateDistance> other = new ArrayList<>();\n\n // search for smallest bounding box\n for (CoordinateDistance distance : distances) {\n Point point = distance.getCoordinateB();\n\n // check for bounding box\n if (!topLeft && (point.getX() < coordinate.getX() && point.getY() > coordinate.getY())) {\n resultingDistances.add(distance);\n topLeft = true;\n } else if (!topRight\n && (point.getX() > coordinate.getX() && point.getY() > coordinate.getY())) {\n resultingDistances.add(distance);\n topRight = true;\n } else if (!bottomLeft\n && (point.getX() < coordinate.getX() && point.getY() < coordinate.getY())) {\n resultingDistances.add(distance);\n bottomLeft = true;\n } else if (!bottomRight\n && (point.getX() > coordinate.getX() && point.getY() < coordinate.getY())) {\n resultingDistances.add(distance);\n bottomRight = true;\n } else if (coordinate.equalsExact(point, 1e-6)) {\n // if current point is matching the given coordinate, we need to return only the current\n // point\n\n resultingDistances.clear();\n resultingDistances.add(distance);\n return resultingDistances;\n } else {\n other.add(distance);\n }\n }\n\n // check if n distances are found\n int diff = numberOfPoints - resultingDistances.size();\n\n if (diff > 0) {\n resultingDistances.addAll(other.stream().limit(diff).toList());\n } else if (diff < 0) {\n return resultingDistances.stream().limit(numberOfPoints).toList();\n }\n\n return resultingDistances;\n }\n}", "Collection<? extends WrappedIndividual> getContains();", "int indexOf(GeometricalObject object);", "protected int[] getParticlesByIndexInside( ArrayList<Object> geomObjects,PointXY[] boundingBox ){\r\n\t\t\r\n\t\tArrayList<Integer> pset = new ArrayList<Integer>() ;\r\n\t\tPoint2D testP2D;\r\n\t\tRepulsionFieldParticle particle;\r\n\t\tObject geomObject;\r\n\t\t\r\n\t\tboolean covered;\r\n\t\t\r\n\t\t\r\n\r\n\t\tfor (int i= 0; i<particles.size() ;i++){\r\n\t\t\t\r\n\t\t\tparticle = particles.get(i) ;\r\n\t\t\t\r\n\t\t\t// within bounding box? no? skip the rest , -> next particle by index value\r\n\t\t\tif ((particle.x<boundingBox[0].x-averageDistance*1.1) || (particle.x>boundingBox[1].x+averageDistance*1.1)){\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t\tif ((particle.y<boundingBox[0].y-averageDistance*1.1) || (particle.y>boundingBox[3].y+averageDistance*1.1)){\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t \r\n\t\t\t\r\n\t\t\ttestP2D = new Point2D( particle.x, particle.y);\r\n\t\t\t\r\n\t\t\t// test particle across all ellipses\r\n\t\t\tfor (int s=0;s<geomObjects.size();s++){\r\n\t\t\t\t\r\n\t\t\t\tgeomObject = geomObjects.get(s) ;\r\n\t\t\t\t \r\n\t\t\t\tcovered = isInsideGeomObject(geomObject,testP2D);\r\n\t\t\t\t\r\n\t\t\t\tif (covered) {\r\n\t\t\t\t\tif (pset.contains(i)==false){\r\n\t\t\t\t\t\tpset.add(i) ;\r\n\t\t\t\t\t}\r\n\t\t\t\t\t// out.print(2, \"+++ particle added, index:\"+i+\", location x,y:\" + df.format(particle.x)+\",\" + df.format(particle.y)+\" +++\");\r\n\t\t\t\t}else{\r\n\t\t\t\t\t// out.print(2, \"--- particle NOT added, index:\"+i+\", location x,y:\" + df.format(particle.x)+\",\" + df.format(particle.y)+\" ---\");\r\n\t\t\t\t}\r\n\t\t\t} // s->\r\n\t\t\t\r\n\t\t} // i->\r\n\t\t\r\n\t\t\r\n\t\tint[] particleIndexes = new int[pset.size()] ;\r\n\t\t\r\n\t\tfor (int i=0;i< pset.size();i++){\r\n\t\t\tparticleIndexes[i] = pset.get(i) ;\r\n\t\t}\r\n\t\treturn particleIndexes;\r\n\t}", "@Test\n public void testBoundsAsCompositesWithMultiEqRestrictions()\n {\n CFMetaData cfMetaData = newCFMetaData(Sort.ASC, Sort.ASC);\n\n ByteBuffer value1 = ByteBufferUtil.bytes(1);\n ByteBuffer value2 = ByteBufferUtil.bytes(2);\n Restriction eq = newMultiEq(cfMetaData, 0, value1, value2);\n PrimaryKeyRestrictions restrictions = new PrimaryKeyRestrictionSet(cfMetaData.comparator);\n restrictions = restrictions.mergeWith(eq);\n\n List<Composite> bounds = restrictions.boundsAsComposites(cfMetaData, Bound.START, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), value1, value2, EOC.START);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.END, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), value1, value2, EOC.END);\n }", "public Iterable<Point2D> range(RectHV rect) {\n if (rect == null) throw new IllegalArgumentException(\n \"Null pointer provided instead of a query rectangle\");\n ptsInside = new SET<Point2D>();\n searchForPoints(root, rect);\n return ptsInside;\n }", "void storeObject(RectangleLatLng rectangle, String id);", "public org.landxml.schema.landXML11.RoadwayNameRef xgetIntersectingRoadwayRef()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.landxml.schema.landXML11.RoadwayNameRef target = null;\r\n target = (org.landxml.schema.landXML11.RoadwayNameRef)get_store().find_attribute_user(INTERSECTINGROADWAYREF$20);\r\n return target;\r\n }\r\n }", "public int indexOf(GeometricalObject object);", "long getCoordinates();", "long getCoordinates();", "@Override\r\n\tpublic List<GeoPoint> findGeoIntersections(Ray ray, double maxDistance) {\n\t\treturn null;\r\n\t}", "public S2LatLngRect getBound() {\n // To save time, we ignore numerical errors in the computed S2LatLngs while\n // accumulating the bounds and then account for them here.\n //\n // S2LatLng(S2Point) has a maximum error of 0.955 * S2.DBL_EPSILON in latitude.\n // In the worst case, we might have rounded \"inwards\" when computing the\n // bound and \"outwards\" when computing the latitude of a contained point P,\n // therefore we expand the latitude bounds by 2 * S2.DBL_EPSILON in each\n // direction. (A more complex analysis shows that 1.5 * S2.DBL_EPSILON is\n // enough, but the expansion amount should be a multiple of S2.DBL_EPSILON in\n // order to avoid rounding errors during the expansion itself.)\n //\n // S2LatLng(S2Point) has a maximum error of S2.DBL_EPSILON in longitude, which\n // is simply the maximum rounding error for results in the range [-Pi, Pi].\n // This is true because the Gnu implementation of atan2() comes from the IBM\n // Accurate Mathematical Library, which implements correct rounding for this\n // intrinsic (i.e., it returns the infinite precision result rounded to the\n // nearest representable value, with ties rounded to even values). This\n // implies that we don't need to expand the longitude bounds at all, since\n // we only guarantee that the bound contains the *rounded* latitudes of\n // contained points. The *true* latitudes of contained points may lie up to\n // S2.DBL_EPSILON outside of the returned bound.\n\n S2LatLng expansion = S2LatLng.fromRadians(2 * S2.DBL_EPSILON, 0);\n return builder.build().expanded(expansion).polarClosure();\n }", "private static HashMap<Integer, ArrayList<String>> checkAndMergeIntersectedPoints(HashMap<Integer, ArrayList<String>> boundedRegionPointsMap) {\n\n\t\t// Iterate over regions one by one, to validate with rest of the regions iteratively.\n\t for(Integer key1 : boundedRegionPointsMap.keySet()) {\n\t ArrayList<String> list1 = boundedRegionPointsMap.get(key1);\n\n\t for (Integer key2 : boundedRegionPointsMap.keySet()) {\n\t \t// Only need to check for keys (region counters) incrementally\n\t if (key1 < key2) {\n\t ArrayList<String> list2 = boundedRegionPointsMap.get(key2);\n\t for(String point : list2) {\n\t \t// If there is an intersecting point in two regions, merge them.\n\t if (list1.contains(point)) {\n\t list1.addAll(list2);\n\t // Just to make sure there won't be any duplicate points introduced after the merge.\n\t Set<String> uniquePoints = new HashSet<String>(list1);\n\t boundedRegionPointsMap.put(key1, new ArrayList<String>(uniquePoints));\n\t break;\n\t }\n\t }\n\t }\n\t }\n\n\t }\n\t return boundedRegionPointsMap;\n\t}", "public static S2LatLngRect getBoundingLatLngRect(final GeoRectangle geoRectangle) {\n final GeoPoint minPoint = geoRectangle.getBottomLeft();\n final GeoPoint maxPoint = geoRectangle.getTopRight();\n\n if (minPoint != null && maxPoint != null) {\n final S2LatLng minLatLng = S2LatLng.fromDegrees(minPoint.getLatitude(), minPoint.getLongitude());\n final S2LatLng maxLatLng = S2LatLng.fromDegrees(maxPoint.getLatitude(), maxPoint.getLongitude());\n return new S2LatLngRect(minLatLng, maxLatLng);\n } else {\n throw new IllegalArgumentException(\"min and max points must exist!!!\");\n }\n }", "Collection<Feature> getReference();", "private GObject getCollidingObject() {\n \tdouble x1 = ball.getX();\n \tdouble y1 = ball.getY();\n \tdouble x2 = x1 + BALL_RADIUS * 2;\n \tdouble y2 = y1 + BALL_RADIUS * 2;\n \n \tif (getElementAt(x1, y1) != null) return getElementAt(x1, y1);\n \tif (getElementAt(x1, y2) != null) return getElementAt(x1, y2);\n \tif (getElementAt(x2, y1) != null) return getElementAt(x2, y1);\n \tif (getElementAt(x2, y2) != null) return getElementAt(x2, y2);\n \n \treturn null;\n }", "List<GridCoordinate> getCoordinates(int cellWidth, int cellHeight);", "@SuppressWarnings(\"unchecked\")\n public Collection<T> getWithinQuad(long quad) {\n ArrayList<Object> result = new ArrayList<Object>();\n root.addDescendantsWithinQuad(this, quad, result);\n return (ArrayList<T>) result;\n }", "public Iterable<Point2D> range(RectHV rect) {\n if (rect == null) {\n throw new IllegalArgumentException();\n }\n SET<Point2D> result = new SET<Point2D>();\n for (Point2D point : points) {\n if (rect.contains(point))\n result.add(point);\n }\n return result;\n }", "@Test\n public void testBoundsAsCompositesWithOneInRestrictionsAndOneClusteringColumn()\n {\n ByteBuffer value1 = ByteBufferUtil.bytes(1);\n ByteBuffer value2 = ByteBufferUtil.bytes(2);\n ByteBuffer value3 = ByteBufferUtil.bytes(3);\n\n CFMetaData cfMetaData = newCFMetaData(Sort.ASC, Sort.ASC);\n\n Restriction in = newSingleIN(cfMetaData, 0, value1, value2, value3);\n\n PrimaryKeyRestrictions restrictions = new PrimaryKeyRestrictionSet(cfMetaData.comparator);\n restrictions = restrictions.mergeWith(in);\n\n List<Composite> bounds = restrictions.boundsAsComposites(cfMetaData, Bound.START, QueryOptions.DEFAULT);\n assertEquals(3, bounds.size());\n assertComposite(bounds.get(0), value1, EOC.START);\n assertComposite(bounds.get(1), value2, EOC.START);\n assertComposite(bounds.get(2), value3, EOC.START);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.END, QueryOptions.DEFAULT);\n assertEquals(3, bounds.size());\n assertComposite(bounds.get(0), value1, EOC.END);\n assertComposite(bounds.get(1), value2, EOC.END);\n assertComposite(bounds.get(2), value3, EOC.END);\n }", "public Tuple2<Integer, ArrayList<Integer>> call(Rectangle rectangle) throws Exception {\n\t\t\t\t\tList<Point> firstInputCollection = firstInput.getValue();\n\t\t\t\t\tArrayList<Integer> secondInputIds = new ArrayList<Integer>();\n\t\t\t\t\t// Iterate the second input and check for the second set\n\t\t\t\t\t// of rectangle id’s\n\t\t\t\t\t// that hold the rectangle from first set obtained from\n\t\t\t\t\t// the mapped RDD\n\t\t\t\t\tfor (Point point : firstInputCollection) {\n\t\t\t\t\t\tif (point.isPointinsideQueryWindow(rectangle)) {\n\t\t\t\t\t\t\tsecondInputIds.add(point.getPointID());\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t// Create a new tuple of the mapped values and return\n\t\t\t\t\t// back the mapped\n\t\t\t\t\t// transformation.\n\t\t\t\t\tTuple2<Integer, ArrayList<Integer>> resultList = new Tuple2<Integer, ArrayList<Integer>>(rectangle\n\t\t\t\t\t\t\t.getRectangleId(), secondInputIds);\n\t\t\t\t\treturn resultList;\n\t\t\t\t}", "public Iterable<Point2D> range(RectHV rect) {\n if (rect == null) throw new NullPointerException();\n TreeSet<Point2D> inRangeSet = new TreeSet<>();\n for (Point2D point : pointSet) {\n if (rect.contains(point)) {\n inRangeSet.add(point);\n }\n }\n return inRangeSet;\n }", "public Bounds getBounds () { return (bounds); }", "protected abstract NativeSQLStatement createNativeIntersectionStatement(Geometry geom);", "default List<Point3D> findIntersections(Ray ray) {\n\tList<GeoPoint> geoList = findGeoIntersections(ray);\n\treturn geoList == null ? null\n\t: geoList .stream()\n\t.map(gp -> gp.point)\n\t.collect(Collectors.toList());\n\t}", "@Override\r\n\tpublic List<GeoPoint> findIntersections(Ray ray,double maxDistance) {\n\t List<GeoPoint> intersections = null;\r\n\r\n\t for (Intersectable geo : _geometriesList) {\r\n\t List<GeoPoint> tempIntersections = geo.findIntersections(ray,maxDistance);\r\n\t if (tempIntersections != null) {\r\n\t if (intersections == null)\r\n\t intersections = new ArrayList<GeoPoint>();\r\n\t intersections.addAll(tempIntersections);\r\n\t }\r\n\t }\r\n\t \r\n\r\n\t return intersections;\r\n\r\n\t}", "@Test\n public void testBoundsAsCompositesWithOneEqRestrictionsAndTwoClusteringColumns()\n {\n CFMetaData cfMetaData = newCFMetaData(Sort.ASC, Sort.ASC);\n\n ByteBuffer clustering_0 = ByteBufferUtil.bytes(1);\n Restriction eq = newSingleEq(cfMetaData, 0, clustering_0);\n\n PrimaryKeyRestrictions restrictions = new PrimaryKeyRestrictionSet(cfMetaData.comparator);\n restrictions = restrictions.mergeWith(eq);\n\n List<Composite> bounds = restrictions.boundsAsComposites(cfMetaData, Bound.START, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), clustering_0, EOC.START);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.END, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), clustering_0, EOC.END);\n }", "public List<Float> getBoundingsOfCell() {\n\n\t\tfloat minXPoint = Float.POSITIVE_INFINITY;\n\t\tfloat maxXPoint = Float.NEGATIVE_INFINITY;\n\t\tfloat minYPoint = Float.POSITIVE_INFINITY;\n\t\tfloat maxYPoint = Float.NEGATIVE_INFINITY;\n\n\t\tfor (int i = 0; i < face.edges().size(); i++) {\n\n\t\t\tDCEL_Edge e = (DCEL_Edge) face.edges().get(i);\n\n\t\t\tArc2_Sweep arc = (Arc2_Sweep) e.reference;\n\n\t\t\t// Looking for most left located point of cell\n\t\t\tif (minXPoint > arc.minX().x) {\n\t\t\t\tminXPoint = arc.minX().x;\n\t\t\t}\n\t\t\t// Looking for most right located point of cell\n\t\t\tif (maxXPoint < arc.maxX().x) {\n\t\t\t\tmaxXPoint = arc.maxX().x;\n\t\t\t}\n\t\t\t// Looking for highest located point of cell\n\t\t\tif (minYPoint > arc.minY().y) {\n\t\t\t\tminYPoint = arc.minY().y;\n\t\t\t}\n\t\t\t// Looking for lowest located point of cell\n\t\t\tif (maxYPoint < arc.maxY().y) {\n\t\t\t\tmaxYPoint = arc.maxY().y;\n\t\t\t}\n\n\t\t}\n\n\t\tList<Float> boundings = new ArrayList<Float>();\n\t\tboundings.add(minXPoint);\n\t\tboundings.add(maxXPoint);\n\t\tboundings.add(minYPoint);\n\t\tboundings.add(maxYPoint);\n\t\treturn boundings;\n\n\t}", "Map<BoardCellCoordinates, Set<Integer>> getWinningCoordinates();", "public List<Integer> getNeighbourIds() {\n List<Integer> neighbours = new ArrayList<>();\n // get references from the neighbouring cells.\n for (VoronoiHalfEdge halfEdge : halfEdges) {\n VoronoiEdge edge = halfEdge.getEdge();\n if (edge.getLeftSite() != null && edge.getLeftSite().getIdentifier() != site.getIdentifier()) {\n neighbours.add(edge.getLeftSite().getIdentifier());\n } else if (edge.getRightSite() != null && edge.getRightSite().getIdentifier() != site.getIdentifier()) {\n neighbours.add(edge.getRightSite().getIdentifier());\n }\n }\n return neighbours;\n }", "Pair<Rectangle, Rectangle> getRectangles();", "@Test\n public void testBoundsAsCompositesWithMultiEqAndSingleSliceRestrictions()\n {\n CFMetaData cfMetaData = newCFMetaData(Sort.ASC, Sort.ASC, Sort.ASC);\n\n ByteBuffer value1 = ByteBufferUtil.bytes(1);\n ByteBuffer value2 = ByteBufferUtil.bytes(2);\n ByteBuffer value3 = ByteBufferUtil.bytes(3);\n\n // (clustering_0, clustering_1) = (1, 2) AND clustering_2 > 3\n Restriction multiEq = newMultiEq(cfMetaData, 0, value1, value2);\n Restriction singleSlice = newSingleSlice(cfMetaData, 2, Bound.START, false, value3);\n PrimaryKeyRestrictions restrictions = new PrimaryKeyRestrictionSet(cfMetaData.comparator);\n restrictions = restrictions.mergeWith(multiEq).mergeWith(singleSlice);\n\n List<Composite> bounds = restrictions.boundsAsComposites(cfMetaData, Bound.START, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), value1, value2, value3, EOC.END);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.END, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), value1, value2, EOC.END);\n }", "Collection<? extends Boundary> getIsBoundaryNodeOf();", "Map<Coord, ICell> getAllCells();", "private Map<Geometry, List<Point3D>> getSceneRayIntersections(Ray ray){\n //Map key - geometric\n //value - a list of cut points\n Map<Geometry, List<Point3D>> sceneRayIntersectPions = new HashMap<Geometry, List<Point3D>>();\n //Iterator we can go through all the geometric shapes\n Iterator<Geometry> geometries = _scene.getGeometriesIterator();\n //for each geometry finde intersection points\n while (geometries.hasNext()){\n Geometry geometry = geometries.next();\n List<Point3D> geometryIntersectionPoints = geometry.FindIntersections(ray);\n if(!geometryIntersectionPoints.isEmpty())\n //add geometryIntersectionPoints(list) to key geometry\n sceneRayIntersectPions.put(geometry, geometryIntersectionPoints);\n }\n return sceneRayIntersectPions;\n }", "private List<InternalConstraint> genInternalCtrsForNonOverlapping(NonOverlapping ectr, GeostObject o) {\n List<InternalConstraint> ictrs = new ArrayList<InternalConstraint>();\n List<ShiftedBox> sb = stp.getShape(o.getShapeId().getLB());\n Iterator<Integer> itr;\n itr = ectr.getFrame().getRelForbidRegions().keySet().iterator();\n boolean printit = false;\n while (itr.hasNext()) {\n int i = itr.next();\n if (!(o.getObjectId() == i)) {\n for (int k = 0; k < sb.size(); k++) {\n // We will generate an outbox constraint corresponding to each relative forbidden region we already generated\n // for the shifted boxes of the shape corresponding to the Obj o\n\n // here we go into the relative forbidden regions\n loop:\n for (int l = 0; l < ectr.getFrame().getRelForbidRegions(i).size(); l++) {\n int[] t = new int[cst.getDIM()];\n int[] s = new int[cst.getDIM()];\n for (int j = 0; j < cst.getDIM(); j++) {\n int min = ectr.getFrame().getRelForbidRegions(i).get(l).getMinimumBoundary(j) - sb.get(k).getOffset(j) - sb.get(k).getSize(j);\n int max = ectr.getFrame().getRelForbidRegions(i).get(l).getMaximumBoundary(j) - sb.get(k).getOffset(j);\n\n s[j] = max - min + 1; // length of the jth coordinate\n if (s[j] <= 0) // since the length is negative\n continue loop;\n t[j] = min; // It is the offset. lower left corner.\n\n if (printit) System.out.println(o.getObjectId() + \" \" + j + \" \" + o);\n int supDom = o.getCoord(j).getUB();// + sb.get(k).getOffset(j) + sb.get(k).getSize(j);\n int infDom = o.getCoord(j).getLB();// + sb.get(k).getOffset(j) ;\n int maxObj = o.getCoord(j).getUB() + sb.get(k).getOffset(j) + sb.get(k).getSize(j) - 1;\n if (maxObj > o.getCoord(j).getUB()) maxObj = o.getCoord(j).getUB();\n int minObj = o.getCoord(j).getLB() + sb.get(k).getOffset(j);\n if (minObj < o.getCoord(j).getLB()) minObj = o.getCoord(j).getLB();\n\n if (printit) System.out.println(\"box: \" + t[j] + \" \" + s[j]);\n if (printit) System.out.println(\"dom: \" + minObj + \" \" + maxObj);\n\n\n if ((supDom < t[j]) || (infDom > t[j] + s[j])) {\n // this means the intersection of dom(o.x) and the region forbidden region associated with Outbox(t,s) is empty. In the other words all\n // the placement space is feasible for o.x according to the constraint Outbox(t,s)\n if (printit) System.out.println(\"skip\");\n continue loop;\n }\n if ((maxObj < t[j]) || (minObj > t[j] + s[j])) {\n // this means the intersection of dom(o.x) and the region forbidden region associated with Outbox(t,s) is empty. In the other words all\n // the placement space is feasible for o.x according to the constraint Outbox(t,s)\n if (printit) System.out.println(\"skip2\");\n continue loop;\n }\n\n //clipping\n if (stp.opt.clipping) {\n // t[j] = Math.max(minObj, t[j]);\n // s[j] = Math.min(maxObj, t[j] + s[j]) - t[j] ;\n }\n\n if (printit) System.out.println(\"result box: \" + t[j] + \" \" + s[j]);\n\n\n }\n\n Outbox new_ob = new Outbox(t, s);\n\n\n Pair<Outbox, Boolean> result;\n if (ictrs.size() != 0) {\n Outbox last_ob = (Outbox) ictrs.get(ictrs.size() - 1);\n result = mergeAdjacent(new_ob, last_ob);\n\n new_ob = result.fst;\n\n if (result.snd) ictrs.remove(ictrs.size() - 1);\n\n }\n\n ictrs.add(new_ob);\n }\n }\n }\n }\n return ictrs;\n }", "@Dimensional(designDocument = \"userGeo\", spatialViewName = \"byLocation\")\n List<User> findByLocationWithin(Box cityBoundingBox);", "Rectangle getBounds();", "Rectangle getBoundingBox(Rectangle rect);", "public Iterable<Point2D> range(RectHV rect) {\n //rect\n Queue<Point2D> range = new Queue<Point2D>();\n \n for (Point2D p: bst.keys()) {\n if (rect.contains(p)) {\n range.enqueue(p);\n }\n }\n return range; \n }", "public abstract int[] getCoords();", "public Iterable<Point2D> range(RectHV rect) {\n ArrayList<Point2D> returnArray = new ArrayList<Point2D>();\n if (rect == null) {\n throw new IllegalArgumentException(\"rect input is null\");\n }\n for (Point2D i : pointsSet) {\n if (rect.contains(i))\n returnArray.add(i);\n }\n return returnArray;\n }", "private Coordinate[] generateBoundingBox(final Geometry geometry) {\n if (geometry == null || geometry.getCoordinates() == null || geometry.getCoordinates().length == 0) {\n return new Coordinate[]{new Coordinate(0,0),new Coordinate(0,0)};\n }\n final Coordinate firstPoint = geometry.getCoordinates()[0];\n double minLat = firstPoint.y;\n double minLon = firstPoint.x;\n double maxLat = firstPoint.y;\n double maxLon = firstPoint.x;\n for (final Coordinate coordinate : geometry.getCoordinates()) {\n if (coordinate.x < minLon) {\n minLon = coordinate.x;\n }\n if (coordinate.y < minLat) {\n minLat = coordinate.y;\n }\n if (coordinate.x > maxLon) {\n maxLon = coordinate.x;\n }\n if (coordinate.y > maxLat) {\n maxLat = coordinate.y;\n }\n }\n return new Coordinate[]{\n new Coordinate(minLon, minLat),\n new Coordinate(maxLon, maxLat)\n };\n }", "public Set<Coordinate> getAllSurroundingCellsAsCoordinates() {\n Set<MapCoordinate> mapCoordinates = getAllSurroundingCellsAsMapCoordinatesStartingFromTopLeft(1);\n return mapCoordinates\n .stream()\n .map(mapCoordinate -> mapCoordinate.toCoordinate())\n .collect(\n Collectors.toSet()\n );\n }", "private HashMap<Coordinate, Coordinate> getAreaIntersectionPt( Geometry gfaPoly )\n\t{\n\t\tHashMap<Coordinate, Coordinate>\tinterPtsPair = new HashMap<Coordinate, Coordinate>();\t\n\n\t\tArrayList<Coordinate> interPts = new ArrayList<Coordinate>();\t\t\n\t\tArrayList<Coordinate> pts;\n\t\tArrayList<Integer> interIndex = new ArrayList<Integer>();\n\t\tArrayList<Integer> indx = new ArrayList<Integer>();\n\t\t\n\t\t//Reorder in clockwise - first point is repeated at the end.\n\t\tArrayList<Coordinate> gfaPoints = new ArrayList<Coordinate>();\n\t\tfor ( Coordinate c : gfaPoly.getCoordinates() ) {\n\t\t\tgfaPoints.add( c );\n\t\t}\n\t\t\n\t\tArrayList<Coordinate> cwGfaPts = GfaSnap.getInstance().reorderInClockwise( gfaPoints, null );\n\t\t\n\t\t//Get all intersection point with FA region common border.\n\t\tHashMap<String, Geometry> areaCommBnds = GfaClip.getInstance().getFaAreaXCommBounds();\t\n\t\tfor ( Geometry bnd : areaCommBnds.values() ) {\n\t\t\tpts = GfaClip.getInstance().lineIntersect( cwGfaPts.toArray( new Coordinate[ cwGfaPts.size() ]), \n\t\t\t\t\t bnd.getCoordinates(), indx );\n\t\t\t\n\t\t\tif ( pts.size() > 0 ) {\n\t\t\t\tinterPts.addAll( pts );\n\t\t\t\tinterIndex.addAll( indx );\n\t\t\t}\n\t\t}\n\n\t\tif ( interPts.size() <= 0 ) {\n\t\t\treturn interPtsPair;\n\t\t}\n\n\t\t/*\n\t\t * Find the area common bound points inside the polygon to ensure\n\t\t * the new snap points will not cluster with these points.\n\t\t */\n\t\t ArrayList<Coordinate> checkPoints = new ArrayList<Coordinate>();\n\t\t for ( Geometry g : areaCommBnds.values() ) {\t\t\t \n\t\t\t for ( Coordinate c : g.getCoordinates() ) {\n\t\t\t\t Geometry pp = GfaClip.getInstance().pointsToGeometry( new Coordinate[]{ c } );\n\t\t\t\t if ( !checkPoints.contains( c ) && pp.within( gfaPoly ) ) {\n\t\t\t\t\t checkPoints.add( c );\n\t\t\t\t }\n\t\t\t }\n\t\t }\n\n\t\t /*\n\t\t * Now insert each common intersection point into the el polygon\n\t\t * and snap it outside of the el polygon.\n\t\t * \n\t\t * Note: the point cannot be any point of the el polygon or any \n\t\t * snap point that has been used.\n\t\t * \n\t\t * If an intersection point is not within the clustering distance of \n\t\t * the point before it (Pb) or point after it (Pa), simply insert it into \n\t\t * the polygon and snap it. Otherwise, do the following:\n\t\t * \n\t\t * 1. Pick the closer one of Pb and Pa as Pn. \n\t\t * 2. Check if Pn is within the clustering distance of the common boundary\n\t\t * points inside the FROM line. \n\t\t * 3. If so, snap Pn to the closest point not within the clustering distance\n\t\t * and match the intersection point and Pn to the new point. \n\t\t * 4. If not, match the intersection point with Pn.\n\t\t */\n\t\t ArrayList<Coordinate> usedPoints = new ArrayList<Coordinate>();\n\t\t usedPoints.addAll( cwGfaPts );\n\t\t \n\t\t ArrayList<Coordinate> ePts = new ArrayList<Coordinate>();\t\t \n\t\t for ( int ii = 0; ii < interPts.size(); ii++ ) {\n\t\t\t \n\t\t Coordinate interP = interPts.get( ii );\n\t\t\t Coordinate ptBefore = cwGfaPts.get( interIndex.get( ii ) );\n\t\t\t Coordinate ptAfter = cwGfaPts.get( interIndex.get( ii ) + 1 );\n\t\t\t \n\t\t\t double qdist1 = GfaSnap.getInstance().distance( interP, ptBefore );\n\t\t\t double qdist2 = GfaSnap.getInstance().distance( interP, ptAfter );\n\n\t\t\t int addOne = -1; \t \n\t\t\t int qmatch = -1;\n\t\t\t double qdist;\n\n\t\t\t if ( qdist1 < qdist2 ) {\n\t\t\t\t qmatch = interIndex.get( ii ); \n\t\t\t\t qdist = qdist1;\n\t\t\t }\n\t\t\t else {\n\t\t\t\t qmatch = interIndex.get( ii ) + 1;\n\t\t\t\t qdist = qdist2;\n\t\t\t }\n\n\t\t\t if ( ( qdist / PgenUtil.NM2M ) < GfaSnap.CLUSTER_DIST ) {\n\n\t\t\t\t Coordinate ptMatch = cwGfaPts.get( qmatch );\n\t\t\t\t for ( Coordinate c : checkPoints ) {\n\t\t\t\t\t if ( GfaSnap.getInstance().isCluster( c, ptMatch ) ) {\n\t\t\t\t\t\t addOne = qmatch;\n\t\t\t\t\t\t break;\n\t\t\t\t\t }\n\t\t\t\t }\n\t\t\t\t \t\t\t\t \n\t\t\t\t if ( addOne < 0 ) {\n\t\t\t\t\t interPtsPair.put( new Coordinate( interP ),\n\t\t\t\t\t\t\t new Coordinate( ptMatch ) );\n\t\t\t\t\t continue; //Done - ptMatch is a snapped point.\n\t\t\t\t }\n\t\t\t }\n\t\t\t \n\t\t\t // Snap\n\t\t\t int kk, kk2;\n\t\t\t if ( addOne >= 0 ) {\n\t\t\t kk = addOne;\n\t\t\t kk2 = kk;\n\n\t\t\t ePts.clear();\n\t\t\t ePts.addAll( cwGfaPts );\n\t\t\t }\n\t\t\t else {\t\t\t\t \n\t\t\t ePts.clear();\n\t\t\t\t ePts.addAll( GfaSnap.getInstance().insertArray( cwGfaPts, interIndex.get( ii ) + 1, interP ) );\n\t\t\t\t kk = interIndex.get( ii ) + 1;\n\t\t\t\t kk2 = kk;\n\t\t\t }\n\n\t\t\t \n\t\t\t ePts.remove( ePts.size() - 1 );\n\t\t\t \n\t\t\t Coordinate[] snapped = new Coordinate[1];\n \n\t\t\t //snap....\n\t\t\t int status = GfaSnap.getInstance().snapPtGFA( kk, kk2, usedPoints, checkPoints, \n\t\t\t\t\t\t ePts, true, true, 3.0F, snapped );\n\t\t\t \n\t\t\t if ( status != 0 ) {\n\t\t\t\t if ( addOne >= 0 ) {\n\t\t\t\t\t snapped[ 0 ] = new Coordinate( ePts.get( kk ) );\n\t\t\t\t }\n\t\t\t\t else {\n\t\t\t\t\t snapped[ 0 ] = new Coordinate( interP );\n\t\t\t\t }\n\t\t\t }\n\t\t\t \n\t\t\t interPtsPair.put( new Coordinate( interP ), \n\t\t\t new Coordinate( snapped[ 0 ] ) );\n\t\t\t \n\t\t\t if ( addOne >= 0 ) {\n\t\t\t\t interPtsPair.put( new Coordinate( cwGfaPts.get( addOne ) ), \n\t\t new Coordinate( snapped[ 0 ] ) );\t\t\t\t \n\t\t\t }\t\n\t\t\t \n\t\t\t usedPoints.add( snapped[ 0 ] );\n\t\t\t \n\t\t }\n\t\t\n\t\treturn interPtsPair;\n\t}", "public Tuple2<Integer, ArrayList<Integer>> call(Rectangle rectangle) throws Exception {\n\t\t\t\t\tList<Rectangle> firstInputCollection = firstInput.value();\n\t\t\t\t\tArrayList<Integer> secondInputIds = new ArrayList<Integer>();\n\t\t\t\t\t// Iterate the second input and check for the second set\n\t\t\t\t\t// of rectangle id’s\n\t\t\t\t\t// that hold the rectangle from first set obtained from\n\t\t\t\t\t// the mapped RDD\n\t\t\t\t\tfor (Rectangle firstRects : firstInputCollection) {\n\t\t\t\t\t\tif (rectangle.isRectangleinsideQueryWindow(firstRects)) {\n\t\t\t\t\t\t\tsecondInputIds.add(firstRects.getRectangleId());\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t// Create a new tuple of the mapped values and return\n\t\t\t\t\t// back the mapped\n\t\t\t\t\t// transformation.\n\t\t\t\t\tTuple2<Integer, ArrayList<Integer>> resultList = new Tuple2<Integer, ArrayList<Integer>>(rectangle\n\t\t\t\t\t\t\t.getRectangleId(), secondInputIds);\n\t\t\t\t\treturn resultList;\n\t\t\t\t}", "public void x(Connection connection, Connection connection2) throws SQLException {\n\t\t\r\n\t\tSet<Long> gaugeContainingPolygonIds = new HashSet<Long>();\r\n\t\t\r\n\t\t// get all polygon\r\n\t\tStatement statement = connection2.createStatement();\r\n\t\tResultSet executeQuery = statement.executeQuery(\"SELECT id, name, ST_X(ST_ASTEXT(geom)), ST_Y(ST_ASTEXT(geom)) FROM gauge\");\r\n\t\twhile(executeQuery.next()) {\r\n\t\t\tString lon = executeQuery.getString(3);\r\n\t\t\tString lat = executeQuery.getString(4);\r\n\t\t\tString name = executeQuery.getString(2);\r\n\t\t\tStatement statementGaugePolygon = connection.createStatement();\r\n\t\t\t// get the polygons which are very close to the gauges, assuming that they are very close to the shore\r\n\t\t\tResultSet execute = statementGaugePolygon.executeQuery(\"SELECT osm_id FROM planet_osm_polygon AS b WHERE ST_DWithin(way, ST_Transform(ST_GeomFromText( 'POINT(\" + lon + \" \" + lat + \")', 4326), 900913), 100) AND (water is not null OR waterway is not null OR \\\"natural\\\" = 'water')\");\r\n\t\t\twhile(execute.next()) {\r\n\t\t\t\tlong id = execute.getLong(1);\r\n\t\t\t\tgaugeContainingPolygonIds.add(id);\r\n\t\t\t\tSystem.out.println(id + \":\" + lat + \":\" + lon + \":\" + name);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n////\t\tgaugeNodes.add(3566912L);\r\n////\t\tgaugeNodes.add(4252513L);\r\n//\t\tgaugeNodes.add(144017399L);\r\n\t\t\r\n\t\tSet<Long> set = new HashSet<Long>();\r\n\t\tset.add(27425090L);\r\n\t\tLong neighbors = getNeighbors(connection, set, 0, gaugeContainingPolygonIds, new HashSet<Long>());\r\n\t\tSystem.out.println(\"target\" + neighbors);\r\n\t}", "public Map<Integer, Boolean> getOverlaps(Geometry geom) throws SQLException {\n return retrieveExpected(createNativeOverlapsStatement(geom), BOOLEAN);\n }", "public Iterable<Point2D> range(RectHV rect) {\n SET<Point2D> point_list = new SET<Point2D>();\n rangesearch(root, rect, point_list);\n return point_list;\n }", "public Map<Integer, Geometry> getGeomUnion(Geometry geom) throws SQLException {\n return retrieveExpected(createNativeGeomUnionStatement(geom), GEOMETRY);\n }", "private boolean isBetweenBounds(int x, int y, int[] bounds) {\n return x >= bounds[0] && x <= bounds[2] && y >= bounds[1] && y <= bounds[3];\n }", "public Set<Point> getHitboxPoints() {\n Set<Point> hitboxPoints = new HashSet<>();\n\n for(Point p : relevantPoints)\n {\n int currX = (int)(p.x + xPos - (getWidth() / 2));\n int currY = (int)(p.y + yPos - (getHeight() / 2));\n\n hitboxPoints.add(new Point(currX, currY));\n }\n\n return hitboxPoints;\n }", "public static void obtenerInfoColisionJugador(Jugador jugador, Objeto col,String[] direccion, ArrayList<Objeto> obj_colision) {\n Rectangle[] lados_ente = jugador.objeto_ente.getRectangle();\n Rectangle[] lados_col = col.getRectangle();\n\n \n if (col.getTag().compareToIgnoreCase(Objeto.Tag.COMIDA) == 0 || col.getTag().compareToIgnoreCase(Objeto.Tag.MONEDA) == 0) {\n //System.out.println(\"COMIDA\");\n for(int i=0;i<4;i++)\n if (lados_ente[i].intersects(lados_col[0])) {\n obj_colision.add(col);\n return;\n }\n }\n\n \n \n if (col.getTag().compareToIgnoreCase(Objeto.Tag.ENEMIGO) == 0) {\n\n //System.out.println(lados_ente[0].x + \" con \" + lados_col[0].x + \" tag: \" + col.getId());\n if (lados_ente[0].intersects(lados_col[2])) {\n //\"arriba\";\n obj_colision.add(col);\n direccion[0] = \"enemigo_arriba\";\n }\n //else\n // System.out.println(lados_ente[0].y + \" con \" + lados_col[2].y + \" tag: \" + col.getId());\n if (lados_ente[1].intersects(lados_col[3])) {\n //\"derecha\";\n obj_colision.add(col);\n direccion[1] = \"enemigo_derecha\";\n\n }\n if (lados_ente[2].intersects(lados_col[0])) {\n //\"abajo\";\n obj_colision.add(col);\n direccion[2] = \"enemigo_abajo\";\n }\n if (lados_ente[3].intersects(lados_col[1])) {\n //\"izquierda\";\n obj_colision.add(col);\n direccion[3] = \"enemigo_izquierda\";\n }\n\n }\n \n if (col.getTag().compareToIgnoreCase(Objeto.Tag.NPC) == 0) {\n\n //System.out.println(lados_ente[0].x + \" con \" + lados_col[0].x + \" tag: \" + col.getId());\n if (lados_ente[0].intersects(lados_col[0])) {\n //\"arriba\";\n obj_colision.add(col);\n direccion[0] = \"npc_arriba\";\n }\n //else\n // System.out.println(lados_ente[0].y + \" con \" + lados_col[2].y + \" tag: \" + col.getId());\n if (lados_ente[1].intersects(lados_col[0])) {\n //\"derecha\";\n obj_colision.add(col);\n direccion[1] = \"npc_derecha\";\n\n }\n if (lados_ente[2].intersects(lados_col[0])) {\n //\"abajo\";\n obj_colision.add(col);\n direccion[2] = \"npc_abajo\";\n }\n if (lados_ente[3].intersects(lados_col[0])) {\n //\"izquierda\";\n obj_colision.add(col);\n direccion[3] = \"npc_izquierda\";\n }\n\n }\n\n if (lados_ente[0].intersects(lados_col[0])) {\n //\"arriba\";\n obj_colision.add(col);\n direccion[0] = \"entorno_arriba\";\n }\n if (lados_ente[1].intersects(lados_col[0])) {\n //\"derecha\";\n obj_colision.add(col);\n direccion[1] = \"entorno_derecha\";\n }\n if (lados_ente[2].intersects(lados_col[0])) {\n //\"abajo\";\n obj_colision.add(col);\n direccion[2] = \"entorno_abajo\";\n }\n if (lados_ente[3].intersects(lados_col[0])) {\n //\"izquierda\";\n obj_colision.add(col);\n direccion[3] = \"entorno_izquierda\";\n }\n }", "@Override\n\tpublic List<DisplayResult> getResults(ReferencedEnvelope bounds) {\n\t\t\n\t\tString whereClause = bounds != null ? \"WHERE ST_Transform(geom, 4326) && ST_MakeEnvelope(\"+bounds.getMinX()+\",\"+bounds.getMinY()+\",\"+bounds.getMaxX()+\",\"+bounds.getMaxY()+\") \" : \"\";\n\t\t\n\t\t//Only latest results\n\t\tString query = \"SELECT DISTINCT ON (meshblock_id) id, meshblock_id, operat_score, date_entered, ST_AsText(ST_Transform(centroid,4326)), ST_AsText(ST_Transform(geom,4326)), \"\n\t\t\t\t+ \"natural_elements_score, incivilities_and_nuisance_score, navigation_and_mobility_score, territorial_score \"\n\t\t\t\t+ \"FROM result \"\n\t\t\t\t+ whereClause\n\t\t\t\t+ \"ORDER BY meshblock_id, date_entered DESC;\";\n\n\t\tSystem.out.println(query);\n\t GeometryFactory geometryFactory = JTSFactoryFinder.getGeometryFactory();\n\n\t WKTReader reader = new WKTReader(geometryFactory);\n\t \n\t\tRowMapper<DisplayResult> rowMapper = (rs, rowNum) -> {\n\t\t\t\n\t\t\tDisplayResult result = new DisplayResult();\n\t\t\tresult.setResultId(rs.getInt(1));\n\t\t\tresult.setMeshblockId(rs.getInt(2));\n\t\t\tresult.setOperatScore(rs.getDouble(3));\n\t\t\t\t\n\t\t\tresult.setNaturalElementsScore(rs.getDouble(7));\n\t\t\tresult.setIncivilitiesScore(rs.getDouble(8));\n\t\t\tresult.setNavigationScore(rs.getDouble(9));\n\t\t\tresult.setTerritorialScore(rs.getDouble(10));\n\t\t\tPoint point;\n\t\t\ttry {\n\t\t\t\tpoint = (Point) reader.read(rs.getString(5));\n\t\t\t\tresult.setCentroid(point.toString());\n\t\t\t\tresult.setLat(point.getCoordinate().y);\n\t\t\t\tresult.setLng(point.getCoordinate().x);\n\t\t\t\t\t\n\t\t\t\tresult.setGeom(rs.getString(6));\n\t\t\t\t\n\t\t\t} catch (ParseException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\treturn result;\n\t\t};\n\t\t\n\t\treturn jdbcTemplate.query(query, rowMapper);\n\t\t\n\t}", "@NonNull JavaBoundingBox[] collision();", "private Intersection[] getExtremIntersection(){\n if(!mapLoaded){\n return null;\n }\n Intersection northernmost = intersectionList.get(0);\n Intersection southernmost = intersectionList.get(0);\n Intersection easternmost = intersectionList.get(0);\n Intersection westernmost = intersectionList.get(0);\n\n for(int i=0 ; i<intersectionList.size() ; i++){\n Intersection testedIntersection = intersectionList.get(i);\n //north\n if(northernmost.getLatitude() < testedIntersection.getLatitude()) {\n northernmost = testedIntersection;\n }\n //south\n if(southernmost.getLatitude() > testedIntersection.getLatitude()) {\n southernmost = testedIntersection;\n }\n //east\n if(easternmost.getLongitude() < testedIntersection.getLongitude()) {\n easternmost = testedIntersection;\n }\n //west\n if(westernmost.getLongitude() > testedIntersection.getLongitude()) {\n westernmost = testedIntersection;\n }\n }\n Intersection[] extremum = {northernmost , southernmost , easternmost , westernmost};\n return extremum;\n }", "@Test\n public void testBoundsAsCompositesWithOneEqRestrictionsAndOneClusteringColumn()\n {\n CFMetaData cfMetaData = newCFMetaData(Sort.ASC);\n\n ByteBuffer clustering_0 = ByteBufferUtil.bytes(1);\n Restriction eq = newSingleEq(cfMetaData, 0, clustering_0);\n\n PrimaryKeyRestrictions restrictions = new PrimaryKeyRestrictionSet(cfMetaData.comparator);\n restrictions = restrictions.mergeWith(eq);\n\n List<Composite> bounds = restrictions.boundsAsComposites(cfMetaData, Bound.START, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), clustering_0, EOC.START);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.END, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), clustering_0, EOC.END);\n }", "public Map<Integer, ArrayList<LatLng>> shapeCoordinates (Map<Integer, ArrayList<LatLng>> shapeIdList) {\r\n Cursor getData = getReadableDatabase().rawQuery(\"select shape_id, shape_pt_lat, shape_pt_lon from shapes\", null);\r\n int count = 1;\r\n // Make sure start off the first position of the table\r\n getData.moveToFirst();\r\n // Store the index of end of the table\r\n int end = getData.getCount();\r\n // Loop through all the key\r\n for(Integer key : shapeIdList.keySet()) {\r\n // Create a new Arraylist\r\n ArrayList<LatLng> shapeCoordinates = new ArrayList<LatLng>();\r\n while (key == getData.getInt(0)) {\r\n // Add coordinate into the list\r\n shapeCoordinates.add(new LatLng(getData.getDouble(1), getData.getDouble(2)));\r\n count++;\r\n if (count == end) {\r\n break;\r\n }\r\n // Move to next table\r\n getData.moveToPosition(count);\r\n }\r\n // store the key and list into the HashMap\r\n shapeIdList.put(key, shapeCoordinates);\r\n }\r\n\r\n return shapeIdList;\r\n }", "private List<HashMap<TimeSelector, Long>> updateEq(\n HashMap<ComparableExpression, HashSet<ComparableExpression>> rEq,\n HashMap<TimeSelector, Long> lowerBounds, HashMap<TimeSelector, Long> upperBounds)\n throws QueryContradictoryException {\n\n ArrayList<ArrayList<ComparableExpression>> eq = relationToTuples(rEq);\n for (ArrayList<ComparableExpression> tuple : eq) {\n TimeSelector selector = null;\n TimeLiteral literal = null;\n // only comparisons between a selector and a literal are interesting here\n if (tuple.get(0) instanceof TimeSelector && tuple.get(1) instanceof TimeLiteral) {\n selector = (TimeSelector) tuple.get(0);\n literal = (TimeLiteral) tuple.get(1);\n } else if (tuple.get(1) instanceof TimeSelector && tuple.get(0) instanceof TimeLiteral) {\n selector = (TimeSelector) tuple.get(1);\n literal = (TimeLiteral) tuple.get(0);\n } else {\n continue;\n }\n // for selector=literal, lowerBound(selector) = literal and upperBound(selector) = literal\n Long literalValue = literal.getMilliseconds();\n if (lowerBounds.get(selector) > literalValue || upperBounds.get(selector) < literalValue) {\n throw new QueryContradictoryException();\n } else {\n lowerBounds.put(selector, literalValue);\n upperBounds.put(selector, literalValue);\n }\n }\n return Arrays.asList(lowerBounds, upperBounds);\n }", "private ResultSet getSpatialQueryResults(final Connection conn, final SearchRegion region) throws SQLException {\n final Statement stmt = conn.createStatement();\n final double lx = region.getLx(), ly = region.getLy(), rx = region.getRx(), ry = region.getRy();\n\n //Careful about the precision of the float from string formatter\n final String spatial_query = String.format(\"SELECT * FROM item_location WHERE \"\n + \"MBRContains(GeomFromText('Polygon((%f %f, %f %f, %f %f, %f %f, %f %f))'), coord)\", \n lx, ly, lx, ry, rx, ry, rx, ly, lx, ly);\n return stmt.executeQuery(spatial_query);\n }", "public Rectangle getBounds();", "public Rectangle getBounds();" ]
[ "0.649081", "0.6087731", "0.60737604", "0.5942413", "0.5879346", "0.5835114", "0.5622062", "0.5618572", "0.5519836", "0.5434651", "0.5379208", "0.53132844", "0.53093415", "0.5286779", "0.52793896", "0.52746534", "0.5257597", "0.52076375", "0.52075255", "0.5171447", "0.5170369", "0.5140502", "0.51255244", "0.51012677", "0.50949025", "0.50817996", "0.50788236", "0.5060946", "0.5042014", "0.5041986", "0.50355846", "0.50331074", "0.50269413", "0.5023737", "0.49894348", "0.49861473", "0.49790263", "0.49770167", "0.49767447", "0.49738535", "0.49530044", "0.49520737", "0.4947852", "0.49454492", "0.49302414", "0.491727", "0.49106997", "0.49106997", "0.4899942", "0.48980513", "0.48906073", "0.4845669", "0.48439088", "0.4840713", "0.48406813", "0.48356646", "0.4833542", "0.48257822", "0.48211554", "0.4820725", "0.48168242", "0.48125774", "0.48047787", "0.4801671", "0.4791973", "0.47890866", "0.47872397", "0.47863695", "0.47846606", "0.47846478", "0.47841248", "0.47789815", "0.47740167", "0.47666666", "0.47541374", "0.47529477", "0.4746658", "0.4744018", "0.47388735", "0.47355235", "0.47299573", "0.47293907", "0.47214177", "0.47209668", "0.4720456", "0.47166008", "0.4706027", "0.4692885", "0.46903843", "0.4688432", "0.468143", "0.4681099", "0.46653888", "0.46639898", "0.46619663", "0.46573484", "0.46554735", "0.4641584", "0.46358266", "0.46358266" ]
0.6831096
0
Retrieves the couple (id, geoId) of all the spatial object that intersects with the bounds given as input
Multimap<String, String> intersects(PointLatLng point);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Multimap<String, String> intersects(RectangleLatLng bounds);", "Multimap<String, String> intersects(Polygon bounds);", "Multimap<String, String> intersects(Circle bounds);", "List<GeoPoint> findGeoIntersections(Ray ray);", "public List<PointDetails> getIntersectingPoints(Rectangle2D rect) {\n\t\tboolean useParallelStreaming = numPoints() > 10000;\n\t\treturn Utils.parallelize(getPointDetails().stream(), useParallelStreaming)\n\t\t\t\t.filter(p->rect.contains(p.location))\n\t\t\t\t.collect(Collectors.toList());\n\t}", "List<Long> getBestSolIntersection();", "RectangleLatLng getBounds();", "public static S2CellUnion findCellIds(S2LatLngRect latLngRect) {\n\n\t\tConcurrentLinkedQueue<S2CellId> queue = new ConcurrentLinkedQueue<S2CellId>();\n\t\tArrayList<S2CellId> cellIds = new ArrayList<S2CellId>();\n\n\t\tfor (S2CellId c = S2CellId.begin(0); !c.equals(S2CellId.end(0)); c = c.next()) {\n\t\t\tif (containsGeodataToFind(c, latLngRect)) {\n\t\t\t\tqueue.add(c);\n\t\t\t}\n\t\t}\n\n\t\tprocessQueue(queue, cellIds, latLngRect);\n\t\tassert queue.size() == 0;\n\t\tqueue = null;\n\n\t\tif (cellIds.size() > 0) {\n\t\t\tS2CellUnion cellUnion = new S2CellUnion();\n\t\t\tcellUnion.initFromCellIds(cellIds); // This normalize the cells.\n\t\t\t// cellUnion.initRawCellIds(cellIds); // This does not normalize the cells.\n\t\t\tcellIds = null;\n\n\t\t\treturn cellUnion;\n\t\t}\n\n\t\treturn null;\n\t}", "public double[] getHitGeoCoord();", "public Map<Integer, Boolean> getIntersects(Geometry geom) throws SQLException {\n return retrieveExpected(createNativeIntersectsStatement(geom), BOOLEAN);\n }", "protected abstract Iterable<E> getIntersecting(D lower, D upper);", "public Bounds getLatLonBounds(BoundsObject bounds) {\n\t\treturn null;\n\t}", "public final BoundingBox getBounds() {\n\t\tif (bounds==null) {\n\t\t\tint srsID =( (Geometry)this.get(0).getDefaultGeometry()).getSRID();\n\t\t\tBoundingBox re = new BoundingBoxImpl(\"\"+srsID);\n\t\t\tfor (SimpleFeature f : this) {\n\t\t\t\tre.include(f.getBounds());\n\t\t\t}\n\t\t\tbounds = re;\n\t\t}\n\t\treturn bounds;\n\t}", "boolean intersects( Geometry gmo );", "public Map<Integer, Geometry> getIntersection(Geometry geom) throws SQLException {\n return retrieveExpected(createNativeIntersectionStatement(geom), GEOMETRY);\n }", "Collection<Point> getCoordinates(int... ids);", "public ReferencedEnvelope getBounds(){\n if(bounds==null){\n // Create Null envelope\n this.bounds = new ReferencedEnvelope(getCRS());\n // First try to find the BBOX definition in the gisNode directly\n try{\n if(gisNode.hasProperty(INeoConstants.PROPERTY_BBOX_NAME)){\n double[] bbox = (double[])gisNode.getProperty(INeoConstants.PROPERTY_BBOX_NAME);\n this.bounds = new ReferencedEnvelope(bbox[0],bbox[1],bbox[2],bbox[3],crs);\n }else{\n System.err.println(\"No BBox defined in the GeoNeo object\");\n }\n }catch(Exception bbox_e){\n System.err.println(\"Failed to interpret BBOX: \"+bbox_e.getMessage());\n bbox_e.printStackTrace(System.err);\n }\n // Secondly, if bounds is still empty, try find all feature geometries and calculate bounds\n try{\n if(this.bounds.isNull()){\n // Try to create envelope from any data referenced by the gisNode\n for(GeoNode node:getGeoNodes()){\n //TODO: support high dimensions\n this.bounds.expandToInclude(node.getCoords()[0], node.getCoords()[1]);\n }\n }\n }catch(Exception bbox_e){\n System.err.println(\"Failed to interpret BBOX: \"+bbox_e.getMessage());\n bbox_e.printStackTrace(System.err);\n }\n }\n return bounds;\n }", "protected abstract NativeSQLStatement createNativeIntersectsStatement(Geometry geom);", "@Override\n final boolean intersect(Bounds bounds, Point4d pickPos) {\n\treturn bounds.intersect(this.bounds, pickPos);\n }", "public List<Point> query(Rectangle rectangle) {\n if (!boundary.intersects(rectangle)) {\n return Collections.emptyList();\n }\n\n List<Point> found = new ArrayList<>();\n points.stream()\n .filter(rectangle::contains)\n .forEach(found::add);\n\n if (isSubdivided) {\n found.addAll(nw.query(rectangle));\n found.addAll(ne.query(rectangle));\n found.addAll(se.query(rectangle));\n found.addAll(sw.query(rectangle));\n }\n\n return found;\n }", "@Test\n public void testBoundsAsCompositesWithMultiInRestrictions()\n {\n CFMetaData cfMetaData = newCFMetaData(Sort.ASC, Sort.ASC);\n\n ByteBuffer value1 = ByteBufferUtil.bytes(1);\n ByteBuffer value2 = ByteBufferUtil.bytes(2);\n ByteBuffer value3 = ByteBufferUtil.bytes(3);\n Restriction in = newMultiIN(cfMetaData, 0, asList(value1, value2), asList(value2, value3));\n PrimaryKeyRestrictions restrictions = new PrimaryKeyRestrictionSet(cfMetaData.comparator);\n restrictions = restrictions.mergeWith(in);\n\n List<Composite> bounds = restrictions.boundsAsComposites(cfMetaData, Bound.START, QueryOptions.DEFAULT);\n assertEquals(2, bounds.size());\n assertComposite(bounds.get(0), value1, value2, EOC.START);\n assertComposite(bounds.get(1), value2, value3, EOC.START);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.END, QueryOptions.DEFAULT);\n assertEquals(2, bounds.size());\n assertComposite(bounds.get(0), value1, value2, EOC.END);\n assertComposite(bounds.get(1), value2, value3, EOC.END);\n }", "public ArrayList<ArrayList<String>> extractCoordsFromWfsXml(String xml_og, String url_geofenceWfs, String serviceIdentifier) {\r\n\t\t\r\n\t\t//logger.debug(xml_og);\r\n\t\tnameSpaceUri = getArbeitsbereichXmlTagFromWfs(url_geofenceWfs); //z.B. focus\r\n\t\tPointPolygon point = new PointPolygon();\r\n\t\tArrayList<String> list_objectid = new ArrayList<String>();\r\n\t\tArrayList<String> list_coords = new ArrayList<String>();\r\n\t\tArrayList<ArrayList<String>> list_coords_objectid = new ArrayList<ArrayList<String>>();\r\n\t\t\r\n\t\t\r\n\t\tDocumentBuilder dbuilder = null;\r\n\t\ttry {\t\t\t\r\n\t\t\tXPath xPath = XPathFactory.newInstance().newXPath();\r\n\t\t\tDocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();\r\n\t\t\tdbFactory.setNamespaceAware(true);\r\n\t DocumentBuilder builder = dbFactory.newDocumentBuilder();\r\n\t Document doc = builder.parse(new InputSource(new StringReader(xml_og)));\r\n\t \t \r\n\t \txPath.setNamespaceContext(new NamespaceContext() {\r\n\t\t\t\t\t\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tpublic Iterator getPrefixes(String namespaceURI) {\r\n\t\t\t\t\t\treturn null;\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tpublic String getPrefix(String namespaceURI) {\r\n\t\t\t\t\t\treturn null;\r\n\t\t\t\t\t}\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t @Override\r\n\t\t\t public String getNamespaceURI(String args) {\r\n\t\t\t if(nameSpaceUri.equals(args)){\r\n\t\t\t \treturn nameSpaceUri;\r\n\t\t\t }else if(\"gml\".equals(args)){\r\n\t\t\t \treturn \"http://www.opengis.net/gml/3.2\"; \t\r\n\t\t\t }else{\r\n\t\t\t \treturn null;\r\n\t\t\t }\r\n\t\t\t }\r\n\t\t\t\t});\t\t\r\n//\t \tString path_offering = \"/wfs:FeatureCollection/wfs:member/geofence_sbg:geofence_sbg_bbox/@gml:id\";\r\n//\t\t\t\tNode node_offering = (Node)xPath.compile(path_offering).evaluate(doc, XPathConstants.NODE);\r\n//\t\t\t\tSystem.out.println(\"offering: \"+node_offering.getNodeValue());\r\n\t\t\t\t/*\r\n\t\t\t\tString path_offering = \"/soap:Envelope/soap:Body/sos:Capabilities/@version\";\r\n\t\t\t\tNode node_offering = (Node)xPath.compile(path_offering).evaluate(doc, XPathConstants.NODE);\r\n\t\t\t\tSystem.out.println(\"offering: \"+node_offering.getTextContent());\r\n\t\t\t\t\r\n\t\t\t\tString path_procedures = \"//om:OM_Observation[@name='GetObservation']/ows:Parameter[@name='procedure']/ows:AllowedValues/ows:Value\"; */\r\n//\t\t\t\tString pathToLoading = \"//om:OM_Observation[om:observedProperty[@xlink:href='http://ispace.researchstudio.at/ont/swe/property/Loading']]/om:result\";\r\n\t\t\t\t\r\n\r\n\t \tString pathToObjectid = \"//\"+nameSpaceUri +\":objectid\";\r\n\t \tNodeList nodes_Objectid = (NodeList)xPath.compile(pathToObjectid).evaluate(doc, XPathConstants.NODESET);\r\n\t \t\r\n\t\t\t\tString pathToCoordinates =\"//gml:LinearRing/gml:posList\";\r\n\t\t\t\tNodeList nodes_position = (NodeList)xPath.compile(pathToCoordinates).evaluate(doc, XPathConstants.NODESET);\r\n\t\t\t\t//book[title/@lang = 'it'] [@uom='abc']\r\n\t\t\t\t//myNodeList.item(0).setNodeValue(\"Hi test!\");\r\n\t\t\t\tString xy= \"\";\r\n\t\t\t\t\r\n\t\t\t//\tlogger.debug(\"vor for loop ParserXmlJson.extractPointFromIO:\"+ nodes_position.getLength());\t\r\n\t\t\t\tfor(int n = 0; n<nodes_position.getLength(); n++){\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(serviceIdentifier.equals(\"within\")){\r\n\t\t\t\t\t\tpoint.list_ofStrConsistingOf5CoordinatesForBoundingBox.add(nodes_position.item(n).getTextContent());\r\n\t\t\t\t\t}else{\r\n\t\t\t\t\t\tpoint.list_ofStrConsistingOf5CoordinatesForBoundingBoxWithin.add(nodes_position.item(n).getTextContent());\r\n\t\t\t\t\t}\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\tlist_coords.add(nodes_position.item(n).getTextContent());\r\n\t\t\t\t\t\r\n\t\t\t\t\tlist_objectid.add(nodes_Objectid.item(n).getTextContent());\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t//node_procedures.item(n).setTextContent(\"4444\");\r\n\t\t\t\t\t//System.out.println(\"ParserXmlJson.parseInsertObservation:parser EDITED:\"+node_procedures.item(n).getTextContent());\r\n\t\t\t\t}\t\t\t\r\n\t\t\t//\tSystem.out.println(TextFiles.xmlDocument2StringWithPrettyPrint(doc, 2));\r\n\t\t\t\ttry{\r\n\t\t\t\t\t\r\n\t\t\t\t}catch(Exception e){\r\n\t\t\t\t\tSystem.out.println(\"Error: maybe no coordinates!\");\r\n\t\t\t\t\te.printStackTrace();\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t}catch(Exception ex){\r\n\t\t\tex.printStackTrace();\r\n\t\t}\t\t\t\r\n\t\tlist_coords_objectid.add(list_coords);\r\n\t\tlist_coords_objectid.add(list_objectid);\r\n\t\treturn list_coords_objectid;//point.list_ofStrConsistingOf5CoordinatesForBoundingBox;\t\t\t\t\r\n\t}", "public Stream<Area> extractBounds() {\n if (getPolygonsAsJson() != null && !getPolygonsAsJson().trim().equalsIgnoreCase(\"[]\")) {\n ObjectMapper mapper = new ObjectMapper();\n try {\n @SuppressWarnings(\"unchecked\")\n ArrayList<LinkedHashMap<String, Double>> bounds = (ArrayList<LinkedHashMap<String, Double>>) mapper.readValue(getPolygonsAsJson(), ArrayList.class);\n return bounds.stream().map(entry -> new Area(entry.get(LEFT), entry.get(TOP), entry.get(RIGHT), entry.get(BOTTOM)));\n } catch (IOException e) {\n throw new EmbryonicException(\"Error parsing json for InterestOfAreas\", e);\n }\n }\n return Stream.empty();\n }", "public Iterable<Point2D> range(RectHV rect) {\n\n if (rect == null)\n throw new IllegalArgumentException(\"Got null object in range()\");\n \n Queue<Point2D> pointsInside = new Queue<>();\n \n for (Point2D p : point2DSET) {\n \n double x = p.x();\n double y = p.y();\n if (x >= rect.xmin() && x <= rect.xmax() &&\n y >= rect.ymin() && y <= rect.ymax())\n pointsInside.enqueue(p);\n \n }\n \n return pointsInside;\n }", "public PickBounds(Bounds boundsObject) {\n\tbounds = boundsObject;\n }", "public abstract boolean intersect(BoundingBox bbox);", "@Test\n public void testBoundsAsCompositesWithEqAndInRestrictions()\n {\n CFMetaData cfMetaData = newCFMetaData(Sort.ASC, Sort.ASC);\n\n ByteBuffer value1 = ByteBufferUtil.bytes(1);\n ByteBuffer value2 = ByteBufferUtil.bytes(2);\n ByteBuffer value3 = ByteBufferUtil.bytes(3);\n Restriction eq = newSingleEq(cfMetaData, 0, value1);\n Restriction in = newSingleIN(cfMetaData, 1, value1, value2, value3);\n PrimaryKeyRestrictions restrictions = new PrimaryKeyRestrictionSet(cfMetaData.comparator);\n restrictions = restrictions.mergeWith(eq).mergeWith(in);\n\n List<Composite> bounds = restrictions.boundsAsComposites(cfMetaData, Bound.START, QueryOptions.DEFAULT);\n assertEquals(3, bounds.size());\n assertComposite(bounds.get(0), value1, value1, EOC.START);\n assertComposite(bounds.get(1), value1, value2, EOC.START);\n assertComposite(bounds.get(2), value1, value3, EOC.START);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.END, QueryOptions.DEFAULT);\n assertEquals(3, bounds.size());\n assertComposite(bounds.get(0), value1, value1, EOC.END);\n assertComposite(bounds.get(1), value1, value2, EOC.END);\n assertComposite(bounds.get(2), value1, value3, EOC.END);\n }", "public List<LatLng> getCoordinates() {\n return getGeometryObject();\n }", "public ArrayList<ArrayList<String>> extractCoordsFromWfsXml(String xml_og) {\r\n\t\tSystem.out.println(\"ParserXmlJson.extractBoundingBoxFromWfsXml: \"+ xml_og);\r\n\t\tPointPolygon point = new PointPolygon();\r\n\t\tArrayList<String> list_objectid = new ArrayList<String>();\r\n\t\tArrayList<String> list_coords = new ArrayList<String>();\r\n\t\tArrayList<ArrayList<String>> list_coords_objectid = new ArrayList<ArrayList<String>>();\r\n\t\t\r\n\t\t\r\n\t\tDocumentBuilder dbuilder = null;\r\n\t\ttry {\t\t\t\r\n\t\t\tXPath xPath = XPathFactory.newInstance().newXPath();\r\n\t\t\tDocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();\r\n\t\t\tdbFactory.setNamespaceAware(true);\r\n\t DocumentBuilder builder = dbFactory.newDocumentBuilder();\r\n\t Document doc = builder.parse(new InputSource(new StringReader(xml_og)));\r\n\t \t \r\n\t \txPath.setNamespaceContext(new NamespaceContext() {\r\n\t\t\t\t\t\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tpublic Iterator getPrefixes(String namespaceURI) {\r\n\t\t\t\t\t\treturn null;\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tpublic String getPrefix(String namespaceURI) {\r\n\t\t\t\t\t\treturn null;\r\n\t\t\t\t\t}\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t @Override\r\n\t\t\t public String getNamespaceURI(String args) {\r\n\t\t\t if(LoadOnStartAppConfiguration.arbeitsbereichXmlTagPolygon.equals(args)){\r\n\t\t\t \treturn LoadOnStartAppConfiguration.arbeitsbereichXmlTagPolygon;\r\n\t\t\t }else if(\"gml\".equals(args)){\r\n\t\t\t \treturn \"http://www.opengis.net/gml/3.2\"; \t\r\n\t\t\t }else{\r\n\t\t\t \treturn null;\r\n\t\t\t }\r\n\t\t\t }\r\n\t\t\t\t});\t\t\r\n//\t \tString path_offering = \"/wfs:FeatureCollection/wfs:member/geofence_sbg:geofence_sbg_bbox/@gml:id\";\r\n//\t\t\t\tNode node_offering = (Node)xPath.compile(path_offering).evaluate(doc, XPathConstants.NODE);\r\n//\t\t\t\tSystem.out.println(\"offering: \"+node_offering.getNodeValue());\r\n\t\t\t\t/*\r\n\t\t\t\tString path_offering = \"/soap:Envelope/soap:Body/sos:Capabilities/@version\";\r\n\t\t\t\tNode node_offering = (Node)xPath.compile(path_offering).evaluate(doc, XPathConstants.NODE);\r\n\t\t\t\tSystem.out.println(\"offering: \"+node_offering.getTextContent());\r\n\t\t\t\t\r\n\t\t\t\tString path_procedures = \"//om:OM_Observation[@name='GetObservation']/ows:Parameter[@name='procedure']/ows:AllowedValues/ows:Value\"; */\r\n//\t\t\t\tString pathToLoading = \"//om:OM_Observation[om:observedProperty[@xlink:href='http://ispace.researchstudio.at/ont/swe/property/Loading']]/om:result\";\r\n\t\t\t\t\r\n\t\t\t\t//jetzt werden hier aber alle X Y Koordinaten,die sich in InsertObservation.xml wiederholen, ausgelesen werden\r\n\t \tString pathToObjectid = \"//geofence_sbg:objectid\";\r\n\t \tNodeList nodes_Objectid = (NodeList)xPath.compile(pathToObjectid).evaluate(doc, XPathConstants.NODESET);\r\n\t \t\r\n\t\t\t\tString pathToCoordinates =\"//gml:LinearRing/gml:posList\";\r\n\t\t\t\tNodeList nodes_position = (NodeList)xPath.compile(pathToCoordinates).evaluate(doc, XPathConstants.NODESET);\r\n\t\t\t\t//book[title/@lang = 'it'] [@uom='abc']\r\n\t\t\t\t//myNodeList.item(0).setNodeValue(\"Hi mom!\");\r\n\t\t\t\tString xy= \"\";\r\n\t\t\t\t\r\n\t\t\t\tSystem.out.println(\"vor for loop ParserXmlJson.extractPointFromIO:\"+ nodes_position.getLength());\t\r\n\t\t\t\tfor(int n = 0; n<nodes_position.getLength(); n++){\r\n\t\t\t\t\tSystem.out.println(\"ParserXmlJson.extractPointFromIO: \"+nodes_position.item(n).getTextContent());\r\n\t\t\t\t\tpoint.list_ofStrConsistingOf5CoordinatesForBoundingBox.add(nodes_position.item(n).getTextContent());\r\n\t\t\t\t\tlist_coords.add(nodes_position.item(n).getTextContent());\r\n\t\t\t\t\tSystem.out.println(\"ParserXmlJson.extractPointFromIO objectid: \"+nodes_Objectid.item(n).getTextContent());\r\n\t\t\t\t\tlist_objectid.add(nodes_Objectid.item(n).getTextContent());\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t//node_procedures.item(n).setTextContent(\"4444\");\r\n\t\t\t\t\t//System.out.println(\"ParserXmlJson.parseInsertObservation:parser EDITED:\"+node_procedures.item(n).getTextContent());\r\n\t\t\t\t}\t\t\t\r\n\t\t\t//\tSystem.out.println(TextFiles.xmlDocument2StringWithPrettyPrint(doc, 2));\r\n\t\t\t\ttry{\r\n\t\t\t\t\t\r\n\t\t\t\t}catch(Exception e){\r\n\t\t\t\t\tSystem.out.println(\"Error: maybe no coordinates!\");\r\n\t\t\t\t\te.printStackTrace();\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t}catch(Exception ex){\r\n\t\t\tex.printStackTrace();\r\n\t\t}\t\t\t\r\n\t\tlist_coords_objectid.add(list_coords);\r\n\t\tlist_coords_objectid.add(list_objectid);\r\n\t\treturn list_coords_objectid;//point.list_ofStrConsistingOf5CoordinatesForBoundingBox;\t\t\t\t\r\n\t}", "private static void ParseMapXMLGetIntersections()\r\n\t{\r\n\t\ttry {\r\n\t\t\tSAXParserFactory factory = SAXParserFactory.newInstance();\r\n\t\t\tSAXParser saxParser = factory.newSAXParser();\r\n\r\n\t\t\tDefaultHandler handler = new DefaultHandler() {\r\n\r\n\t\t\t\tpublic void startElement(String uri, String localName,\r\n\t\t\t\t\t\tString qName, Attributes attributes)\r\n\t\t\t\t\t\tthrows SAXException {\r\n\r\n\t\t\t\t\tif (qName.equalsIgnoreCase(\"bounds\")) {\r\n\t\t\t\t\t\tint k = attributes.getLength();\r\n\t\t\t\t\t\tSystem.out.println(\"Map boundries:\");\r\n\t\t\t\t\t\tfor (int i = 0; i < k; i++)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tif (attributes.getLocalName(i).compareToIgnoreCase(\"minlat\") == 0)\r\n\t\t\t\t\t\t\t\tSystem.out.println(\"MinLat: \" + attributes.getValue(i));\r\n\t\t\t\t\t\t\tif (attributes.getLocalName(i).compareToIgnoreCase(\"maxlat\") == 0)\r\n\t\t\t\t\t\t\t\tSystem.out.println(\"MaxLat: \" + attributes.getValue(i));\r\n\t\t\t\t\t\t\tif (attributes.getLocalName(i).compareToIgnoreCase(\"minlon\") == 0)\r\n\t\t\t\t\t\t\t\tSystem.out.println(\"MinLon: \" + attributes.getValue(i));\r\n\t\t\t\t\t\t\tif (attributes.getLocalName(i).compareToIgnoreCase(\"maxlon\") == 0)\r\n\t\t\t\t\t\t\t\tSystem.out.println(\"MaxLon: \" + attributes.getValue(i));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tif (qName.equalsIgnoreCase(\"node\")) {\r\n\t\t\t\t\t\tint k = attributes.getLength();\r\n\t\t\t\t\t\tlong id = 0;\r\n\t\t\t\t\t\tdouble lat = 0;\r\n\t\t\t\t\t\tdouble lon = 0;\r\n\t\t\t\t\t\tfor (int i = 0; i < k; i++)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tif (attributes.getLocalName(i).compareToIgnoreCase(\"id\") == 0)\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tid = Long.valueOf(attributes.getValue(i));\r\n\t\t\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tif (attributes.getLocalName(i).compareToIgnoreCase(\"lat\") == 0)\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tlat = Double.valueOf(attributes.getValue(i));\r\n\t\t\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tif (attributes.getLocalName(i).compareToIgnoreCase(\"lon\") == 0)\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tlon = Double.valueOf(attributes.getValue(i));\r\n\t\t\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\thashtableNodes.put(id, new Intersection(lat, lon, id));\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\tif (qName.equalsIgnoreCase(\"nd\")) \r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tlong reference = Long.valueOf(attributes.getValue(0));\r\n\t\t\t\t\t\tif (hashtableCounter.containsKey(reference)) {\r\n\t\t\t\t\t\t\tint value = hashtableCounter.get(reference);\r\n\t\t\t\t\t\t\thashtableCounter.put(reference, value + 1);\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\thashtableCounter.put(reference, 1);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\tpublic void endElement(String uri, String localName,\r\n\t\t\t\t\t\tString qName) throws SAXException {\r\n\r\n\t\t\t\t}\r\n\t\t\t};\r\n\t\t\tsaxParser.parse(MapPath, handler);\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\tSystem.exit(0);\r\n\t\t}\r\n\t\t\r\n\t\t// remove the nodes which only appears once in way's nd.\r\n\t\tLinkedList<Long> removeList = new LinkedList<Long>();\r\n\t\tfor (long theKey : hashtableCounter.keySet())\r\n\t\t{\r\n\t\t\tif (hashtableCounter.get(theKey) <= 1)\r\n\t\t\t{\r\n\t\t\t\tremoveList.add(theKey);\r\n\t\t\t}\r\n\t\t}\r\n\t\tfor (long theKey : removeList)\r\n\t\t{\r\n\t\t\thashtableNodes.remove(theKey);\r\n\t\t}\r\n\t}", "public Map<Integer, Boolean> getWithin(Geometry geom) throws SQLException {\n return retrieveExpected(createNativeWithinStatement(geom), BOOLEAN);\n }", "@GET\n\t@Produces(\"application/json\")\n\t@Path(\"within\")\n\tpublic List<Pizzerias> findPizzeriasWithin(@QueryParam(\"lat1\") float lat1,\n @QueryParam(\"lon1\") float lon1, @QueryParam(\"lat2\") float lat2,\n @QueryParam(\"lon2\") float lon2) {\n dbConnection.checkDatabase();\n\t\tArrayList<Pizzerias> allPizzeriasList = new ArrayList<Pizzerias>();\n\t\tMongoCollection pizzerias = dbConnection.getCollection();\n\n\t\t// make the query object\n\t\tBasicDBObject spatialQuery = new BasicDBObject();\n\n\t\tArrayList<double[]> boxList = new ArrayList<double[]>();\n\t\tboxList.add(new double[] { new Float(lat2), new Float(lon2) });\n\t\tboxList.add(new double[] { new Float(lat1), new Float(lon1) });\n\n\t\tBasicDBObject boxQuery = new BasicDBObject();\n\t\tboxQuery.put(\"$box\", boxList);\n\n\t\tspatialQuery.put(\"pos\", new BasicDBObject(\"$within\", boxQuery));\n\t\tSystem.out.println(\"Using spatial query: \" + spatialQuery.toString());\n\n\t\tMongoCursor<Document> cursor = pizzerias.find(spatialQuery).iterator();\n\t\ttry {\n\t\t\twhile (cursor.hasNext()) {\n\t\t\t\tallPizzeriasList.add(this.populatePizzeriasInformation(cursor.next()));\n\t\t\t}\n\t\t} finally {\n\t\t\tcursor.close();\n\t\t}\n\t\tSystem.out.println(\"Return \" + allPizzeriasList.size() + \" pizzerias\");\n\n\t\treturn allPizzeriasList;\n\t}", "public Map<Integer, Boolean> getContains(Geometry geom) throws SQLException {\n return retrieveExpected(createNativeContainsStatement(geom), BOOLEAN);\n }", "public Coordinates intersection() {\n return intersection;\n }", "List<Coord> allActiveCells();", "Collection<Point> getAllCoordinates();", "public Map<Integer, Geometry> getBoundary() throws SQLException {\n return retrieveExpected(createNativeBoundaryStatement(), GEOMETRY);\n }", "Collection<? extends WrappedIndividual> getContains();", "public interface IdCoordinateSource {\n\n /**\n * Get the matching coordinate for the given ID\n *\n * @param id the ID to look up\n * @return matching coordinate\n */\n Optional<Point> getCoordinate(int id);\n\n /**\n * Get the matching coordinates for the given IDs\n *\n * @param ids the IDs to look up\n * @return the matching coordinates\n */\n Collection<Point> getCoordinates(int... ids);\n\n /**\n * Get the ID for the coordinate point\n *\n * @param coordinate the coordinate to look up\n * @return the matching ID\n */\n Optional<Integer> getId(Point coordinate);\n\n /**\n * Returns all the coordinates of this source\n *\n * @return all available coordinates\n */\n Collection<Point> getAllCoordinates();\n\n /**\n * Returns the nearest n coordinate points. If n is greater than four, this method will try to\n * return the corner points of the bounding box.\n *\n * @param coordinate the coordinate to look up\n * @param n number of searched points\n * @return the nearest n coordinates or all coordinates if n is less than all available points\n */\n List<CoordinateDistance> getNearestCoordinates(Point coordinate, int n);\n\n /**\n * Returns the closest n coordinate points to the given coordinate, that are inside a given\n * bounding box, from a collection of all available points. The bounding box is calculated with\n * the given distance. If n is greater than four, this method will try to return the corner points\n * of the bounding box.\n *\n * @param coordinate the coordinate to look up the nearest neighbours for\n * @param n how many neighbours to look up\n * @param distance to the borders of the envelope that contains the coordinates\n * @return the nearest n coordinates to the given point\n */\n List<CoordinateDistance> getClosestCoordinates(\n Point coordinate, int n, ComparableQuantity<Length> distance);\n\n /**\n * Calculates and returns the nearest n coordinate distances to the given coordinate from a given\n * collection of points. If the set is empty or null an empty list is returned. If n is greater\n * than four, this method will try to return the corner points of the bounding box.\n *\n * @param coordinate the coordinate to look up the nearest neighbours for\n * @param n how many neighbours to look up\n * @param coordinates the collection of points\n * @return a list of the nearest n coordinates to the given point or an empty list\n */\n default List<CoordinateDistance> calculateCoordinateDistances(\n Point coordinate, int n, Collection<Point> coordinates) {\n if (coordinates != null && !coordinates.isEmpty()) {\n SortedSet<CoordinateDistance> sortedDistances =\n GeoUtils.calcOrderedCoordinateDistances(coordinate, coordinates);\n return restrictToBoundingBox(coordinate, sortedDistances, n);\n } else {\n return Collections.emptyList();\n }\n }\n\n /**\n * Method for evaluating the found points. This method tries to return the four corner points of\n * the bounding box of the given coordinate. If one of the found points matches the given\n * coordinate, only this point is returned. If the given number of searched points is less than\n * four, this method will only return the nearest n corner points. If the given number of searched\n * points is greater than four, this method will return the four corner points plus the nearest n\n * points to match the number of searched points.\n *\n * <p>To work properly, the given collection of {@link CoordinateDistance}'s should already be\n * sorted by distance.\n *\n * @param coordinate at the center of the bounding box\n * @param distances list of found points with their distances\n * @param numberOfPoints that should be returned\n * @return list of distances\n */\n default List<CoordinateDistance> restrictToBoundingBox(\n Point coordinate, Collection<CoordinateDistance> distances, int numberOfPoints) {\n boolean topLeft = false;\n boolean topRight = false;\n boolean bottomLeft = false;\n boolean bottomRight = false;\n\n List<CoordinateDistance> resultingDistances = new ArrayList<>();\n List<CoordinateDistance> other = new ArrayList<>();\n\n // search for smallest bounding box\n for (CoordinateDistance distance : distances) {\n Point point = distance.getCoordinateB();\n\n // check for bounding box\n if (!topLeft && (point.getX() < coordinate.getX() && point.getY() > coordinate.getY())) {\n resultingDistances.add(distance);\n topLeft = true;\n } else if (!topRight\n && (point.getX() > coordinate.getX() && point.getY() > coordinate.getY())) {\n resultingDistances.add(distance);\n topRight = true;\n } else if (!bottomLeft\n && (point.getX() < coordinate.getX() && point.getY() < coordinate.getY())) {\n resultingDistances.add(distance);\n bottomLeft = true;\n } else if (!bottomRight\n && (point.getX() > coordinate.getX() && point.getY() < coordinate.getY())) {\n resultingDistances.add(distance);\n bottomRight = true;\n } else if (coordinate.equalsExact(point, 1e-6)) {\n // if current point is matching the given coordinate, we need to return only the current\n // point\n\n resultingDistances.clear();\n resultingDistances.add(distance);\n return resultingDistances;\n } else {\n other.add(distance);\n }\n }\n\n // check if n distances are found\n int diff = numberOfPoints - resultingDistances.size();\n\n if (diff > 0) {\n resultingDistances.addAll(other.stream().limit(diff).toList());\n } else if (diff < 0) {\n return resultingDistances.stream().limit(numberOfPoints).toList();\n }\n\n return resultingDistances;\n }\n}", "int indexOf(GeometricalObject object);", "protected int[] getParticlesByIndexInside( ArrayList<Object> geomObjects,PointXY[] boundingBox ){\r\n\t\t\r\n\t\tArrayList<Integer> pset = new ArrayList<Integer>() ;\r\n\t\tPoint2D testP2D;\r\n\t\tRepulsionFieldParticle particle;\r\n\t\tObject geomObject;\r\n\t\t\r\n\t\tboolean covered;\r\n\t\t\r\n\t\t\r\n\r\n\t\tfor (int i= 0; i<particles.size() ;i++){\r\n\t\t\t\r\n\t\t\tparticle = particles.get(i) ;\r\n\t\t\t\r\n\t\t\t// within bounding box? no? skip the rest , -> next particle by index value\r\n\t\t\tif ((particle.x<boundingBox[0].x-averageDistance*1.1) || (particle.x>boundingBox[1].x+averageDistance*1.1)){\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t\tif ((particle.y<boundingBox[0].y-averageDistance*1.1) || (particle.y>boundingBox[3].y+averageDistance*1.1)){\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t \r\n\t\t\t\r\n\t\t\ttestP2D = new Point2D( particle.x, particle.y);\r\n\t\t\t\r\n\t\t\t// test particle across all ellipses\r\n\t\t\tfor (int s=0;s<geomObjects.size();s++){\r\n\t\t\t\t\r\n\t\t\t\tgeomObject = geomObjects.get(s) ;\r\n\t\t\t\t \r\n\t\t\t\tcovered = isInsideGeomObject(geomObject,testP2D);\r\n\t\t\t\t\r\n\t\t\t\tif (covered) {\r\n\t\t\t\t\tif (pset.contains(i)==false){\r\n\t\t\t\t\t\tpset.add(i) ;\r\n\t\t\t\t\t}\r\n\t\t\t\t\t// out.print(2, \"+++ particle added, index:\"+i+\", location x,y:\" + df.format(particle.x)+\",\" + df.format(particle.y)+\" +++\");\r\n\t\t\t\t}else{\r\n\t\t\t\t\t// out.print(2, \"--- particle NOT added, index:\"+i+\", location x,y:\" + df.format(particle.x)+\",\" + df.format(particle.y)+\" ---\");\r\n\t\t\t\t}\r\n\t\t\t} // s->\r\n\t\t\t\r\n\t\t} // i->\r\n\t\t\r\n\t\t\r\n\t\tint[] particleIndexes = new int[pset.size()] ;\r\n\t\t\r\n\t\tfor (int i=0;i< pset.size();i++){\r\n\t\t\tparticleIndexes[i] = pset.get(i) ;\r\n\t\t}\r\n\t\treturn particleIndexes;\r\n\t}", "@Test\n public void testBoundsAsCompositesWithMultiEqRestrictions()\n {\n CFMetaData cfMetaData = newCFMetaData(Sort.ASC, Sort.ASC);\n\n ByteBuffer value1 = ByteBufferUtil.bytes(1);\n ByteBuffer value2 = ByteBufferUtil.bytes(2);\n Restriction eq = newMultiEq(cfMetaData, 0, value1, value2);\n PrimaryKeyRestrictions restrictions = new PrimaryKeyRestrictionSet(cfMetaData.comparator);\n restrictions = restrictions.mergeWith(eq);\n\n List<Composite> bounds = restrictions.boundsAsComposites(cfMetaData, Bound.START, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), value1, value2, EOC.START);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.END, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), value1, value2, EOC.END);\n }", "public Iterable<Point2D> range(RectHV rect) {\n if (rect == null) throw new IllegalArgumentException(\n \"Null pointer provided instead of a query rectangle\");\n ptsInside = new SET<Point2D>();\n searchForPoints(root, rect);\n return ptsInside;\n }", "void storeObject(RectangleLatLng rectangle, String id);", "public org.landxml.schema.landXML11.RoadwayNameRef xgetIntersectingRoadwayRef()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.landxml.schema.landXML11.RoadwayNameRef target = null;\r\n target = (org.landxml.schema.landXML11.RoadwayNameRef)get_store().find_attribute_user(INTERSECTINGROADWAYREF$20);\r\n return target;\r\n }\r\n }", "public int indexOf(GeometricalObject object);", "long getCoordinates();", "long getCoordinates();", "@Override\r\n\tpublic List<GeoPoint> findGeoIntersections(Ray ray, double maxDistance) {\n\t\treturn null;\r\n\t}", "public S2LatLngRect getBound() {\n // To save time, we ignore numerical errors in the computed S2LatLngs while\n // accumulating the bounds and then account for them here.\n //\n // S2LatLng(S2Point) has a maximum error of 0.955 * S2.DBL_EPSILON in latitude.\n // In the worst case, we might have rounded \"inwards\" when computing the\n // bound and \"outwards\" when computing the latitude of a contained point P,\n // therefore we expand the latitude bounds by 2 * S2.DBL_EPSILON in each\n // direction. (A more complex analysis shows that 1.5 * S2.DBL_EPSILON is\n // enough, but the expansion amount should be a multiple of S2.DBL_EPSILON in\n // order to avoid rounding errors during the expansion itself.)\n //\n // S2LatLng(S2Point) has a maximum error of S2.DBL_EPSILON in longitude, which\n // is simply the maximum rounding error for results in the range [-Pi, Pi].\n // This is true because the Gnu implementation of atan2() comes from the IBM\n // Accurate Mathematical Library, which implements correct rounding for this\n // intrinsic (i.e., it returns the infinite precision result rounded to the\n // nearest representable value, with ties rounded to even values). This\n // implies that we don't need to expand the longitude bounds at all, since\n // we only guarantee that the bound contains the *rounded* latitudes of\n // contained points. The *true* latitudes of contained points may lie up to\n // S2.DBL_EPSILON outside of the returned bound.\n\n S2LatLng expansion = S2LatLng.fromRadians(2 * S2.DBL_EPSILON, 0);\n return builder.build().expanded(expansion).polarClosure();\n }", "private static HashMap<Integer, ArrayList<String>> checkAndMergeIntersectedPoints(HashMap<Integer, ArrayList<String>> boundedRegionPointsMap) {\n\n\t\t// Iterate over regions one by one, to validate with rest of the regions iteratively.\n\t for(Integer key1 : boundedRegionPointsMap.keySet()) {\n\t ArrayList<String> list1 = boundedRegionPointsMap.get(key1);\n\n\t for (Integer key2 : boundedRegionPointsMap.keySet()) {\n\t \t// Only need to check for keys (region counters) incrementally\n\t if (key1 < key2) {\n\t ArrayList<String> list2 = boundedRegionPointsMap.get(key2);\n\t for(String point : list2) {\n\t \t// If there is an intersecting point in two regions, merge them.\n\t if (list1.contains(point)) {\n\t list1.addAll(list2);\n\t // Just to make sure there won't be any duplicate points introduced after the merge.\n\t Set<String> uniquePoints = new HashSet<String>(list1);\n\t boundedRegionPointsMap.put(key1, new ArrayList<String>(uniquePoints));\n\t break;\n\t }\n\t }\n\t }\n\t }\n\n\t }\n\t return boundedRegionPointsMap;\n\t}", "public static S2LatLngRect getBoundingLatLngRect(final GeoRectangle geoRectangle) {\n final GeoPoint minPoint = geoRectangle.getBottomLeft();\n final GeoPoint maxPoint = geoRectangle.getTopRight();\n\n if (minPoint != null && maxPoint != null) {\n final S2LatLng minLatLng = S2LatLng.fromDegrees(minPoint.getLatitude(), minPoint.getLongitude());\n final S2LatLng maxLatLng = S2LatLng.fromDegrees(maxPoint.getLatitude(), maxPoint.getLongitude());\n return new S2LatLngRect(minLatLng, maxLatLng);\n } else {\n throw new IllegalArgumentException(\"min and max points must exist!!!\");\n }\n }", "Collection<Feature> getReference();", "private GObject getCollidingObject() {\n \tdouble x1 = ball.getX();\n \tdouble y1 = ball.getY();\n \tdouble x2 = x1 + BALL_RADIUS * 2;\n \tdouble y2 = y1 + BALL_RADIUS * 2;\n \n \tif (getElementAt(x1, y1) != null) return getElementAt(x1, y1);\n \tif (getElementAt(x1, y2) != null) return getElementAt(x1, y2);\n \tif (getElementAt(x2, y1) != null) return getElementAt(x2, y1);\n \tif (getElementAt(x2, y2) != null) return getElementAt(x2, y2);\n \n \treturn null;\n }", "List<GridCoordinate> getCoordinates(int cellWidth, int cellHeight);", "@SuppressWarnings(\"unchecked\")\n public Collection<T> getWithinQuad(long quad) {\n ArrayList<Object> result = new ArrayList<Object>();\n root.addDescendantsWithinQuad(this, quad, result);\n return (ArrayList<T>) result;\n }", "public Iterable<Point2D> range(RectHV rect) {\n if (rect == null) {\n throw new IllegalArgumentException();\n }\n SET<Point2D> result = new SET<Point2D>();\n for (Point2D point : points) {\n if (rect.contains(point))\n result.add(point);\n }\n return result;\n }", "@Test\n public void testBoundsAsCompositesWithOneInRestrictionsAndOneClusteringColumn()\n {\n ByteBuffer value1 = ByteBufferUtil.bytes(1);\n ByteBuffer value2 = ByteBufferUtil.bytes(2);\n ByteBuffer value3 = ByteBufferUtil.bytes(3);\n\n CFMetaData cfMetaData = newCFMetaData(Sort.ASC, Sort.ASC);\n\n Restriction in = newSingleIN(cfMetaData, 0, value1, value2, value3);\n\n PrimaryKeyRestrictions restrictions = new PrimaryKeyRestrictionSet(cfMetaData.comparator);\n restrictions = restrictions.mergeWith(in);\n\n List<Composite> bounds = restrictions.boundsAsComposites(cfMetaData, Bound.START, QueryOptions.DEFAULT);\n assertEquals(3, bounds.size());\n assertComposite(bounds.get(0), value1, EOC.START);\n assertComposite(bounds.get(1), value2, EOC.START);\n assertComposite(bounds.get(2), value3, EOC.START);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.END, QueryOptions.DEFAULT);\n assertEquals(3, bounds.size());\n assertComposite(bounds.get(0), value1, EOC.END);\n assertComposite(bounds.get(1), value2, EOC.END);\n assertComposite(bounds.get(2), value3, EOC.END);\n }", "public Tuple2<Integer, ArrayList<Integer>> call(Rectangle rectangle) throws Exception {\n\t\t\t\t\tList<Point> firstInputCollection = firstInput.getValue();\n\t\t\t\t\tArrayList<Integer> secondInputIds = new ArrayList<Integer>();\n\t\t\t\t\t// Iterate the second input and check for the second set\n\t\t\t\t\t// of rectangle id’s\n\t\t\t\t\t// that hold the rectangle from first set obtained from\n\t\t\t\t\t// the mapped RDD\n\t\t\t\t\tfor (Point point : firstInputCollection) {\n\t\t\t\t\t\tif (point.isPointinsideQueryWindow(rectangle)) {\n\t\t\t\t\t\t\tsecondInputIds.add(point.getPointID());\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t// Create a new tuple of the mapped values and return\n\t\t\t\t\t// back the mapped\n\t\t\t\t\t// transformation.\n\t\t\t\t\tTuple2<Integer, ArrayList<Integer>> resultList = new Tuple2<Integer, ArrayList<Integer>>(rectangle\n\t\t\t\t\t\t\t.getRectangleId(), secondInputIds);\n\t\t\t\t\treturn resultList;\n\t\t\t\t}", "public Iterable<Point2D> range(RectHV rect) {\n if (rect == null) throw new NullPointerException();\n TreeSet<Point2D> inRangeSet = new TreeSet<>();\n for (Point2D point : pointSet) {\n if (rect.contains(point)) {\n inRangeSet.add(point);\n }\n }\n return inRangeSet;\n }", "public Bounds getBounds () { return (bounds); }", "protected abstract NativeSQLStatement createNativeIntersectionStatement(Geometry geom);", "default List<Point3D> findIntersections(Ray ray) {\n\tList<GeoPoint> geoList = findGeoIntersections(ray);\n\treturn geoList == null ? null\n\t: geoList .stream()\n\t.map(gp -> gp.point)\n\t.collect(Collectors.toList());\n\t}", "@Override\r\n\tpublic List<GeoPoint> findIntersections(Ray ray,double maxDistance) {\n\t List<GeoPoint> intersections = null;\r\n\r\n\t for (Intersectable geo : _geometriesList) {\r\n\t List<GeoPoint> tempIntersections = geo.findIntersections(ray,maxDistance);\r\n\t if (tempIntersections != null) {\r\n\t if (intersections == null)\r\n\t intersections = new ArrayList<GeoPoint>();\r\n\t intersections.addAll(tempIntersections);\r\n\t }\r\n\t }\r\n\t \r\n\r\n\t return intersections;\r\n\r\n\t}", "@Test\n public void testBoundsAsCompositesWithOneEqRestrictionsAndTwoClusteringColumns()\n {\n CFMetaData cfMetaData = newCFMetaData(Sort.ASC, Sort.ASC);\n\n ByteBuffer clustering_0 = ByteBufferUtil.bytes(1);\n Restriction eq = newSingleEq(cfMetaData, 0, clustering_0);\n\n PrimaryKeyRestrictions restrictions = new PrimaryKeyRestrictionSet(cfMetaData.comparator);\n restrictions = restrictions.mergeWith(eq);\n\n List<Composite> bounds = restrictions.boundsAsComposites(cfMetaData, Bound.START, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), clustering_0, EOC.START);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.END, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), clustering_0, EOC.END);\n }", "Map<BoardCellCoordinates, Set<Integer>> getWinningCoordinates();", "public List<Integer> getNeighbourIds() {\n List<Integer> neighbours = new ArrayList<>();\n // get references from the neighbouring cells.\n for (VoronoiHalfEdge halfEdge : halfEdges) {\n VoronoiEdge edge = halfEdge.getEdge();\n if (edge.getLeftSite() != null && edge.getLeftSite().getIdentifier() != site.getIdentifier()) {\n neighbours.add(edge.getLeftSite().getIdentifier());\n } else if (edge.getRightSite() != null && edge.getRightSite().getIdentifier() != site.getIdentifier()) {\n neighbours.add(edge.getRightSite().getIdentifier());\n }\n }\n return neighbours;\n }", "public List<Float> getBoundingsOfCell() {\n\n\t\tfloat minXPoint = Float.POSITIVE_INFINITY;\n\t\tfloat maxXPoint = Float.NEGATIVE_INFINITY;\n\t\tfloat minYPoint = Float.POSITIVE_INFINITY;\n\t\tfloat maxYPoint = Float.NEGATIVE_INFINITY;\n\n\t\tfor (int i = 0; i < face.edges().size(); i++) {\n\n\t\t\tDCEL_Edge e = (DCEL_Edge) face.edges().get(i);\n\n\t\t\tArc2_Sweep arc = (Arc2_Sweep) e.reference;\n\n\t\t\t// Looking for most left located point of cell\n\t\t\tif (minXPoint > arc.minX().x) {\n\t\t\t\tminXPoint = arc.minX().x;\n\t\t\t}\n\t\t\t// Looking for most right located point of cell\n\t\t\tif (maxXPoint < arc.maxX().x) {\n\t\t\t\tmaxXPoint = arc.maxX().x;\n\t\t\t}\n\t\t\t// Looking for highest located point of cell\n\t\t\tif (minYPoint > arc.minY().y) {\n\t\t\t\tminYPoint = arc.minY().y;\n\t\t\t}\n\t\t\t// Looking for lowest located point of cell\n\t\t\tif (maxYPoint < arc.maxY().y) {\n\t\t\t\tmaxYPoint = arc.maxY().y;\n\t\t\t}\n\n\t\t}\n\n\t\tList<Float> boundings = new ArrayList<Float>();\n\t\tboundings.add(minXPoint);\n\t\tboundings.add(maxXPoint);\n\t\tboundings.add(minYPoint);\n\t\tboundings.add(maxYPoint);\n\t\treturn boundings;\n\n\t}", "Pair<Rectangle, Rectangle> getRectangles();", "Collection<? extends Boundary> getIsBoundaryNodeOf();", "@Test\n public void testBoundsAsCompositesWithMultiEqAndSingleSliceRestrictions()\n {\n CFMetaData cfMetaData = newCFMetaData(Sort.ASC, Sort.ASC, Sort.ASC);\n\n ByteBuffer value1 = ByteBufferUtil.bytes(1);\n ByteBuffer value2 = ByteBufferUtil.bytes(2);\n ByteBuffer value3 = ByteBufferUtil.bytes(3);\n\n // (clustering_0, clustering_1) = (1, 2) AND clustering_2 > 3\n Restriction multiEq = newMultiEq(cfMetaData, 0, value1, value2);\n Restriction singleSlice = newSingleSlice(cfMetaData, 2, Bound.START, false, value3);\n PrimaryKeyRestrictions restrictions = new PrimaryKeyRestrictionSet(cfMetaData.comparator);\n restrictions = restrictions.mergeWith(multiEq).mergeWith(singleSlice);\n\n List<Composite> bounds = restrictions.boundsAsComposites(cfMetaData, Bound.START, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), value1, value2, value3, EOC.END);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.END, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), value1, value2, EOC.END);\n }", "Map<Coord, ICell> getAllCells();", "private Map<Geometry, List<Point3D>> getSceneRayIntersections(Ray ray){\n //Map key - geometric\n //value - a list of cut points\n Map<Geometry, List<Point3D>> sceneRayIntersectPions = new HashMap<Geometry, List<Point3D>>();\n //Iterator we can go through all the geometric shapes\n Iterator<Geometry> geometries = _scene.getGeometriesIterator();\n //for each geometry finde intersection points\n while (geometries.hasNext()){\n Geometry geometry = geometries.next();\n List<Point3D> geometryIntersectionPoints = geometry.FindIntersections(ray);\n if(!geometryIntersectionPoints.isEmpty())\n //add geometryIntersectionPoints(list) to key geometry\n sceneRayIntersectPions.put(geometry, geometryIntersectionPoints);\n }\n return sceneRayIntersectPions;\n }", "private List<InternalConstraint> genInternalCtrsForNonOverlapping(NonOverlapping ectr, GeostObject o) {\n List<InternalConstraint> ictrs = new ArrayList<InternalConstraint>();\n List<ShiftedBox> sb = stp.getShape(o.getShapeId().getLB());\n Iterator<Integer> itr;\n itr = ectr.getFrame().getRelForbidRegions().keySet().iterator();\n boolean printit = false;\n while (itr.hasNext()) {\n int i = itr.next();\n if (!(o.getObjectId() == i)) {\n for (int k = 0; k < sb.size(); k++) {\n // We will generate an outbox constraint corresponding to each relative forbidden region we already generated\n // for the shifted boxes of the shape corresponding to the Obj o\n\n // here we go into the relative forbidden regions\n loop:\n for (int l = 0; l < ectr.getFrame().getRelForbidRegions(i).size(); l++) {\n int[] t = new int[cst.getDIM()];\n int[] s = new int[cst.getDIM()];\n for (int j = 0; j < cst.getDIM(); j++) {\n int min = ectr.getFrame().getRelForbidRegions(i).get(l).getMinimumBoundary(j) - sb.get(k).getOffset(j) - sb.get(k).getSize(j);\n int max = ectr.getFrame().getRelForbidRegions(i).get(l).getMaximumBoundary(j) - sb.get(k).getOffset(j);\n\n s[j] = max - min + 1; // length of the jth coordinate\n if (s[j] <= 0) // since the length is negative\n continue loop;\n t[j] = min; // It is the offset. lower left corner.\n\n if (printit) System.out.println(o.getObjectId() + \" \" + j + \" \" + o);\n int supDom = o.getCoord(j).getUB();// + sb.get(k).getOffset(j) + sb.get(k).getSize(j);\n int infDom = o.getCoord(j).getLB();// + sb.get(k).getOffset(j) ;\n int maxObj = o.getCoord(j).getUB() + sb.get(k).getOffset(j) + sb.get(k).getSize(j) - 1;\n if (maxObj > o.getCoord(j).getUB()) maxObj = o.getCoord(j).getUB();\n int minObj = o.getCoord(j).getLB() + sb.get(k).getOffset(j);\n if (minObj < o.getCoord(j).getLB()) minObj = o.getCoord(j).getLB();\n\n if (printit) System.out.println(\"box: \" + t[j] + \" \" + s[j]);\n if (printit) System.out.println(\"dom: \" + minObj + \" \" + maxObj);\n\n\n if ((supDom < t[j]) || (infDom > t[j] + s[j])) {\n // this means the intersection of dom(o.x) and the region forbidden region associated with Outbox(t,s) is empty. In the other words all\n // the placement space is feasible for o.x according to the constraint Outbox(t,s)\n if (printit) System.out.println(\"skip\");\n continue loop;\n }\n if ((maxObj < t[j]) || (minObj > t[j] + s[j])) {\n // this means the intersection of dom(o.x) and the region forbidden region associated with Outbox(t,s) is empty. In the other words all\n // the placement space is feasible for o.x according to the constraint Outbox(t,s)\n if (printit) System.out.println(\"skip2\");\n continue loop;\n }\n\n //clipping\n if (stp.opt.clipping) {\n // t[j] = Math.max(minObj, t[j]);\n // s[j] = Math.min(maxObj, t[j] + s[j]) - t[j] ;\n }\n\n if (printit) System.out.println(\"result box: \" + t[j] + \" \" + s[j]);\n\n\n }\n\n Outbox new_ob = new Outbox(t, s);\n\n\n Pair<Outbox, Boolean> result;\n if (ictrs.size() != 0) {\n Outbox last_ob = (Outbox) ictrs.get(ictrs.size() - 1);\n result = mergeAdjacent(new_ob, last_ob);\n\n new_ob = result.fst;\n\n if (result.snd) ictrs.remove(ictrs.size() - 1);\n\n }\n\n ictrs.add(new_ob);\n }\n }\n }\n }\n return ictrs;\n }", "@Dimensional(designDocument = \"userGeo\", spatialViewName = \"byLocation\")\n List<User> findByLocationWithin(Box cityBoundingBox);", "Rectangle getBounds();", "Rectangle getBoundingBox(Rectangle rect);", "public Iterable<Point2D> range(RectHV rect) {\n //rect\n Queue<Point2D> range = new Queue<Point2D>();\n \n for (Point2D p: bst.keys()) {\n if (rect.contains(p)) {\n range.enqueue(p);\n }\n }\n return range; \n }", "public abstract int[] getCoords();", "public Iterable<Point2D> range(RectHV rect) {\n ArrayList<Point2D> returnArray = new ArrayList<Point2D>();\n if (rect == null) {\n throw new IllegalArgumentException(\"rect input is null\");\n }\n for (Point2D i : pointsSet) {\n if (rect.contains(i))\n returnArray.add(i);\n }\n return returnArray;\n }", "private Coordinate[] generateBoundingBox(final Geometry geometry) {\n if (geometry == null || geometry.getCoordinates() == null || geometry.getCoordinates().length == 0) {\n return new Coordinate[]{new Coordinate(0,0),new Coordinate(0,0)};\n }\n final Coordinate firstPoint = geometry.getCoordinates()[0];\n double minLat = firstPoint.y;\n double minLon = firstPoint.x;\n double maxLat = firstPoint.y;\n double maxLon = firstPoint.x;\n for (final Coordinate coordinate : geometry.getCoordinates()) {\n if (coordinate.x < minLon) {\n minLon = coordinate.x;\n }\n if (coordinate.y < minLat) {\n minLat = coordinate.y;\n }\n if (coordinate.x > maxLon) {\n maxLon = coordinate.x;\n }\n if (coordinate.y > maxLat) {\n maxLat = coordinate.y;\n }\n }\n return new Coordinate[]{\n new Coordinate(minLon, minLat),\n new Coordinate(maxLon, maxLat)\n };\n }", "public Set<Coordinate> getAllSurroundingCellsAsCoordinates() {\n Set<MapCoordinate> mapCoordinates = getAllSurroundingCellsAsMapCoordinatesStartingFromTopLeft(1);\n return mapCoordinates\n .stream()\n .map(mapCoordinate -> mapCoordinate.toCoordinate())\n .collect(\n Collectors.toSet()\n );\n }", "public void x(Connection connection, Connection connection2) throws SQLException {\n\t\t\r\n\t\tSet<Long> gaugeContainingPolygonIds = new HashSet<Long>();\r\n\t\t\r\n\t\t// get all polygon\r\n\t\tStatement statement = connection2.createStatement();\r\n\t\tResultSet executeQuery = statement.executeQuery(\"SELECT id, name, ST_X(ST_ASTEXT(geom)), ST_Y(ST_ASTEXT(geom)) FROM gauge\");\r\n\t\twhile(executeQuery.next()) {\r\n\t\t\tString lon = executeQuery.getString(3);\r\n\t\t\tString lat = executeQuery.getString(4);\r\n\t\t\tString name = executeQuery.getString(2);\r\n\t\t\tStatement statementGaugePolygon = connection.createStatement();\r\n\t\t\t// get the polygons which are very close to the gauges, assuming that they are very close to the shore\r\n\t\t\tResultSet execute = statementGaugePolygon.executeQuery(\"SELECT osm_id FROM planet_osm_polygon AS b WHERE ST_DWithin(way, ST_Transform(ST_GeomFromText( 'POINT(\" + lon + \" \" + lat + \")', 4326), 900913), 100) AND (water is not null OR waterway is not null OR \\\"natural\\\" = 'water')\");\r\n\t\t\twhile(execute.next()) {\r\n\t\t\t\tlong id = execute.getLong(1);\r\n\t\t\t\tgaugeContainingPolygonIds.add(id);\r\n\t\t\t\tSystem.out.println(id + \":\" + lat + \":\" + lon + \":\" + name);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n////\t\tgaugeNodes.add(3566912L);\r\n////\t\tgaugeNodes.add(4252513L);\r\n//\t\tgaugeNodes.add(144017399L);\r\n\t\t\r\n\t\tSet<Long> set = new HashSet<Long>();\r\n\t\tset.add(27425090L);\r\n\t\tLong neighbors = getNeighbors(connection, set, 0, gaugeContainingPolygonIds, new HashSet<Long>());\r\n\t\tSystem.out.println(\"target\" + neighbors);\r\n\t}", "private HashMap<Coordinate, Coordinate> getAreaIntersectionPt( Geometry gfaPoly )\n\t{\n\t\tHashMap<Coordinate, Coordinate>\tinterPtsPair = new HashMap<Coordinate, Coordinate>();\t\n\n\t\tArrayList<Coordinate> interPts = new ArrayList<Coordinate>();\t\t\n\t\tArrayList<Coordinate> pts;\n\t\tArrayList<Integer> interIndex = new ArrayList<Integer>();\n\t\tArrayList<Integer> indx = new ArrayList<Integer>();\n\t\t\n\t\t//Reorder in clockwise - first point is repeated at the end.\n\t\tArrayList<Coordinate> gfaPoints = new ArrayList<Coordinate>();\n\t\tfor ( Coordinate c : gfaPoly.getCoordinates() ) {\n\t\t\tgfaPoints.add( c );\n\t\t}\n\t\t\n\t\tArrayList<Coordinate> cwGfaPts = GfaSnap.getInstance().reorderInClockwise( gfaPoints, null );\n\t\t\n\t\t//Get all intersection point with FA region common border.\n\t\tHashMap<String, Geometry> areaCommBnds = GfaClip.getInstance().getFaAreaXCommBounds();\t\n\t\tfor ( Geometry bnd : areaCommBnds.values() ) {\n\t\t\tpts = GfaClip.getInstance().lineIntersect( cwGfaPts.toArray( new Coordinate[ cwGfaPts.size() ]), \n\t\t\t\t\t bnd.getCoordinates(), indx );\n\t\t\t\n\t\t\tif ( pts.size() > 0 ) {\n\t\t\t\tinterPts.addAll( pts );\n\t\t\t\tinterIndex.addAll( indx );\n\t\t\t}\n\t\t}\n\n\t\tif ( interPts.size() <= 0 ) {\n\t\t\treturn interPtsPair;\n\t\t}\n\n\t\t/*\n\t\t * Find the area common bound points inside the polygon to ensure\n\t\t * the new snap points will not cluster with these points.\n\t\t */\n\t\t ArrayList<Coordinate> checkPoints = new ArrayList<Coordinate>();\n\t\t for ( Geometry g : areaCommBnds.values() ) {\t\t\t \n\t\t\t for ( Coordinate c : g.getCoordinates() ) {\n\t\t\t\t Geometry pp = GfaClip.getInstance().pointsToGeometry( new Coordinate[]{ c } );\n\t\t\t\t if ( !checkPoints.contains( c ) && pp.within( gfaPoly ) ) {\n\t\t\t\t\t checkPoints.add( c );\n\t\t\t\t }\n\t\t\t }\n\t\t }\n\n\t\t /*\n\t\t * Now insert each common intersection point into the el polygon\n\t\t * and snap it outside of the el polygon.\n\t\t * \n\t\t * Note: the point cannot be any point of the el polygon or any \n\t\t * snap point that has been used.\n\t\t * \n\t\t * If an intersection point is not within the clustering distance of \n\t\t * the point before it (Pb) or point after it (Pa), simply insert it into \n\t\t * the polygon and snap it. Otherwise, do the following:\n\t\t * \n\t\t * 1. Pick the closer one of Pb and Pa as Pn. \n\t\t * 2. Check if Pn is within the clustering distance of the common boundary\n\t\t * points inside the FROM line. \n\t\t * 3. If so, snap Pn to the closest point not within the clustering distance\n\t\t * and match the intersection point and Pn to the new point. \n\t\t * 4. If not, match the intersection point with Pn.\n\t\t */\n\t\t ArrayList<Coordinate> usedPoints = new ArrayList<Coordinate>();\n\t\t usedPoints.addAll( cwGfaPts );\n\t\t \n\t\t ArrayList<Coordinate> ePts = new ArrayList<Coordinate>();\t\t \n\t\t for ( int ii = 0; ii < interPts.size(); ii++ ) {\n\t\t\t \n\t\t Coordinate interP = interPts.get( ii );\n\t\t\t Coordinate ptBefore = cwGfaPts.get( interIndex.get( ii ) );\n\t\t\t Coordinate ptAfter = cwGfaPts.get( interIndex.get( ii ) + 1 );\n\t\t\t \n\t\t\t double qdist1 = GfaSnap.getInstance().distance( interP, ptBefore );\n\t\t\t double qdist2 = GfaSnap.getInstance().distance( interP, ptAfter );\n\n\t\t\t int addOne = -1; \t \n\t\t\t int qmatch = -1;\n\t\t\t double qdist;\n\n\t\t\t if ( qdist1 < qdist2 ) {\n\t\t\t\t qmatch = interIndex.get( ii ); \n\t\t\t\t qdist = qdist1;\n\t\t\t }\n\t\t\t else {\n\t\t\t\t qmatch = interIndex.get( ii ) + 1;\n\t\t\t\t qdist = qdist2;\n\t\t\t }\n\n\t\t\t if ( ( qdist / PgenUtil.NM2M ) < GfaSnap.CLUSTER_DIST ) {\n\n\t\t\t\t Coordinate ptMatch = cwGfaPts.get( qmatch );\n\t\t\t\t for ( Coordinate c : checkPoints ) {\n\t\t\t\t\t if ( GfaSnap.getInstance().isCluster( c, ptMatch ) ) {\n\t\t\t\t\t\t addOne = qmatch;\n\t\t\t\t\t\t break;\n\t\t\t\t\t }\n\t\t\t\t }\n\t\t\t\t \t\t\t\t \n\t\t\t\t if ( addOne < 0 ) {\n\t\t\t\t\t interPtsPair.put( new Coordinate( interP ),\n\t\t\t\t\t\t\t new Coordinate( ptMatch ) );\n\t\t\t\t\t continue; //Done - ptMatch is a snapped point.\n\t\t\t\t }\n\t\t\t }\n\t\t\t \n\t\t\t // Snap\n\t\t\t int kk, kk2;\n\t\t\t if ( addOne >= 0 ) {\n\t\t\t kk = addOne;\n\t\t\t kk2 = kk;\n\n\t\t\t ePts.clear();\n\t\t\t ePts.addAll( cwGfaPts );\n\t\t\t }\n\t\t\t else {\t\t\t\t \n\t\t\t ePts.clear();\n\t\t\t\t ePts.addAll( GfaSnap.getInstance().insertArray( cwGfaPts, interIndex.get( ii ) + 1, interP ) );\n\t\t\t\t kk = interIndex.get( ii ) + 1;\n\t\t\t\t kk2 = kk;\n\t\t\t }\n\n\t\t\t \n\t\t\t ePts.remove( ePts.size() - 1 );\n\t\t\t \n\t\t\t Coordinate[] snapped = new Coordinate[1];\n \n\t\t\t //snap....\n\t\t\t int status = GfaSnap.getInstance().snapPtGFA( kk, kk2, usedPoints, checkPoints, \n\t\t\t\t\t\t ePts, true, true, 3.0F, snapped );\n\t\t\t \n\t\t\t if ( status != 0 ) {\n\t\t\t\t if ( addOne >= 0 ) {\n\t\t\t\t\t snapped[ 0 ] = new Coordinate( ePts.get( kk ) );\n\t\t\t\t }\n\t\t\t\t else {\n\t\t\t\t\t snapped[ 0 ] = new Coordinate( interP );\n\t\t\t\t }\n\t\t\t }\n\t\t\t \n\t\t\t interPtsPair.put( new Coordinate( interP ), \n\t\t\t new Coordinate( snapped[ 0 ] ) );\n\t\t\t \n\t\t\t if ( addOne >= 0 ) {\n\t\t\t\t interPtsPair.put( new Coordinate( cwGfaPts.get( addOne ) ), \n\t\t new Coordinate( snapped[ 0 ] ) );\t\t\t\t \n\t\t\t }\t\n\t\t\t \n\t\t\t usedPoints.add( snapped[ 0 ] );\n\t\t\t \n\t\t }\n\t\t\n\t\treturn interPtsPair;\n\t}", "public Tuple2<Integer, ArrayList<Integer>> call(Rectangle rectangle) throws Exception {\n\t\t\t\t\tList<Rectangle> firstInputCollection = firstInput.value();\n\t\t\t\t\tArrayList<Integer> secondInputIds = new ArrayList<Integer>();\n\t\t\t\t\t// Iterate the second input and check for the second set\n\t\t\t\t\t// of rectangle id’s\n\t\t\t\t\t// that hold the rectangle from first set obtained from\n\t\t\t\t\t// the mapped RDD\n\t\t\t\t\tfor (Rectangle firstRects : firstInputCollection) {\n\t\t\t\t\t\tif (rectangle.isRectangleinsideQueryWindow(firstRects)) {\n\t\t\t\t\t\t\tsecondInputIds.add(firstRects.getRectangleId());\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t// Create a new tuple of the mapped values and return\n\t\t\t\t\t// back the mapped\n\t\t\t\t\t// transformation.\n\t\t\t\t\tTuple2<Integer, ArrayList<Integer>> resultList = new Tuple2<Integer, ArrayList<Integer>>(rectangle\n\t\t\t\t\t\t\t.getRectangleId(), secondInputIds);\n\t\t\t\t\treturn resultList;\n\t\t\t\t}", "public Map<Integer, Boolean> getOverlaps(Geometry geom) throws SQLException {\n return retrieveExpected(createNativeOverlapsStatement(geom), BOOLEAN);\n }", "public Iterable<Point2D> range(RectHV rect) {\n SET<Point2D> point_list = new SET<Point2D>();\n rangesearch(root, rect, point_list);\n return point_list;\n }", "public Map<Integer, Geometry> getGeomUnion(Geometry geom) throws SQLException {\n return retrieveExpected(createNativeGeomUnionStatement(geom), GEOMETRY);\n }", "private boolean isBetweenBounds(int x, int y, int[] bounds) {\n return x >= bounds[0] && x <= bounds[2] && y >= bounds[1] && y <= bounds[3];\n }", "public Set<Point> getHitboxPoints() {\n Set<Point> hitboxPoints = new HashSet<>();\n\n for(Point p : relevantPoints)\n {\n int currX = (int)(p.x + xPos - (getWidth() / 2));\n int currY = (int)(p.y + yPos - (getHeight() / 2));\n\n hitboxPoints.add(new Point(currX, currY));\n }\n\n return hitboxPoints;\n }", "public static void obtenerInfoColisionJugador(Jugador jugador, Objeto col,String[] direccion, ArrayList<Objeto> obj_colision) {\n Rectangle[] lados_ente = jugador.objeto_ente.getRectangle();\n Rectangle[] lados_col = col.getRectangle();\n\n \n if (col.getTag().compareToIgnoreCase(Objeto.Tag.COMIDA) == 0 || col.getTag().compareToIgnoreCase(Objeto.Tag.MONEDA) == 0) {\n //System.out.println(\"COMIDA\");\n for(int i=0;i<4;i++)\n if (lados_ente[i].intersects(lados_col[0])) {\n obj_colision.add(col);\n return;\n }\n }\n\n \n \n if (col.getTag().compareToIgnoreCase(Objeto.Tag.ENEMIGO) == 0) {\n\n //System.out.println(lados_ente[0].x + \" con \" + lados_col[0].x + \" tag: \" + col.getId());\n if (lados_ente[0].intersects(lados_col[2])) {\n //\"arriba\";\n obj_colision.add(col);\n direccion[0] = \"enemigo_arriba\";\n }\n //else\n // System.out.println(lados_ente[0].y + \" con \" + lados_col[2].y + \" tag: \" + col.getId());\n if (lados_ente[1].intersects(lados_col[3])) {\n //\"derecha\";\n obj_colision.add(col);\n direccion[1] = \"enemigo_derecha\";\n\n }\n if (lados_ente[2].intersects(lados_col[0])) {\n //\"abajo\";\n obj_colision.add(col);\n direccion[2] = \"enemigo_abajo\";\n }\n if (lados_ente[3].intersects(lados_col[1])) {\n //\"izquierda\";\n obj_colision.add(col);\n direccion[3] = \"enemigo_izquierda\";\n }\n\n }\n \n if (col.getTag().compareToIgnoreCase(Objeto.Tag.NPC) == 0) {\n\n //System.out.println(lados_ente[0].x + \" con \" + lados_col[0].x + \" tag: \" + col.getId());\n if (lados_ente[0].intersects(lados_col[0])) {\n //\"arriba\";\n obj_colision.add(col);\n direccion[0] = \"npc_arriba\";\n }\n //else\n // System.out.println(lados_ente[0].y + \" con \" + lados_col[2].y + \" tag: \" + col.getId());\n if (lados_ente[1].intersects(lados_col[0])) {\n //\"derecha\";\n obj_colision.add(col);\n direccion[1] = \"npc_derecha\";\n\n }\n if (lados_ente[2].intersects(lados_col[0])) {\n //\"abajo\";\n obj_colision.add(col);\n direccion[2] = \"npc_abajo\";\n }\n if (lados_ente[3].intersects(lados_col[0])) {\n //\"izquierda\";\n obj_colision.add(col);\n direccion[3] = \"npc_izquierda\";\n }\n\n }\n\n if (lados_ente[0].intersects(lados_col[0])) {\n //\"arriba\";\n obj_colision.add(col);\n direccion[0] = \"entorno_arriba\";\n }\n if (lados_ente[1].intersects(lados_col[0])) {\n //\"derecha\";\n obj_colision.add(col);\n direccion[1] = \"entorno_derecha\";\n }\n if (lados_ente[2].intersects(lados_col[0])) {\n //\"abajo\";\n obj_colision.add(col);\n direccion[2] = \"entorno_abajo\";\n }\n if (lados_ente[3].intersects(lados_col[0])) {\n //\"izquierda\";\n obj_colision.add(col);\n direccion[3] = \"entorno_izquierda\";\n }\n }", "@Override\n\tpublic List<DisplayResult> getResults(ReferencedEnvelope bounds) {\n\t\t\n\t\tString whereClause = bounds != null ? \"WHERE ST_Transform(geom, 4326) && ST_MakeEnvelope(\"+bounds.getMinX()+\",\"+bounds.getMinY()+\",\"+bounds.getMaxX()+\",\"+bounds.getMaxY()+\") \" : \"\";\n\t\t\n\t\t//Only latest results\n\t\tString query = \"SELECT DISTINCT ON (meshblock_id) id, meshblock_id, operat_score, date_entered, ST_AsText(ST_Transform(centroid,4326)), ST_AsText(ST_Transform(geom,4326)), \"\n\t\t\t\t+ \"natural_elements_score, incivilities_and_nuisance_score, navigation_and_mobility_score, territorial_score \"\n\t\t\t\t+ \"FROM result \"\n\t\t\t\t+ whereClause\n\t\t\t\t+ \"ORDER BY meshblock_id, date_entered DESC;\";\n\n\t\tSystem.out.println(query);\n\t GeometryFactory geometryFactory = JTSFactoryFinder.getGeometryFactory();\n\n\t WKTReader reader = new WKTReader(geometryFactory);\n\t \n\t\tRowMapper<DisplayResult> rowMapper = (rs, rowNum) -> {\n\t\t\t\n\t\t\tDisplayResult result = new DisplayResult();\n\t\t\tresult.setResultId(rs.getInt(1));\n\t\t\tresult.setMeshblockId(rs.getInt(2));\n\t\t\tresult.setOperatScore(rs.getDouble(3));\n\t\t\t\t\n\t\t\tresult.setNaturalElementsScore(rs.getDouble(7));\n\t\t\tresult.setIncivilitiesScore(rs.getDouble(8));\n\t\t\tresult.setNavigationScore(rs.getDouble(9));\n\t\t\tresult.setTerritorialScore(rs.getDouble(10));\n\t\t\tPoint point;\n\t\t\ttry {\n\t\t\t\tpoint = (Point) reader.read(rs.getString(5));\n\t\t\t\tresult.setCentroid(point.toString());\n\t\t\t\tresult.setLat(point.getCoordinate().y);\n\t\t\t\tresult.setLng(point.getCoordinate().x);\n\t\t\t\t\t\n\t\t\t\tresult.setGeom(rs.getString(6));\n\t\t\t\t\n\t\t\t} catch (ParseException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\treturn result;\n\t\t};\n\t\t\n\t\treturn jdbcTemplate.query(query, rowMapper);\n\t\t\n\t}", "@NonNull JavaBoundingBox[] collision();", "private Intersection[] getExtremIntersection(){\n if(!mapLoaded){\n return null;\n }\n Intersection northernmost = intersectionList.get(0);\n Intersection southernmost = intersectionList.get(0);\n Intersection easternmost = intersectionList.get(0);\n Intersection westernmost = intersectionList.get(0);\n\n for(int i=0 ; i<intersectionList.size() ; i++){\n Intersection testedIntersection = intersectionList.get(i);\n //north\n if(northernmost.getLatitude() < testedIntersection.getLatitude()) {\n northernmost = testedIntersection;\n }\n //south\n if(southernmost.getLatitude() > testedIntersection.getLatitude()) {\n southernmost = testedIntersection;\n }\n //east\n if(easternmost.getLongitude() < testedIntersection.getLongitude()) {\n easternmost = testedIntersection;\n }\n //west\n if(westernmost.getLongitude() > testedIntersection.getLongitude()) {\n westernmost = testedIntersection;\n }\n }\n Intersection[] extremum = {northernmost , southernmost , easternmost , westernmost};\n return extremum;\n }", "@Test\n public void testBoundsAsCompositesWithOneEqRestrictionsAndOneClusteringColumn()\n {\n CFMetaData cfMetaData = newCFMetaData(Sort.ASC);\n\n ByteBuffer clustering_0 = ByteBufferUtil.bytes(1);\n Restriction eq = newSingleEq(cfMetaData, 0, clustering_0);\n\n PrimaryKeyRestrictions restrictions = new PrimaryKeyRestrictionSet(cfMetaData.comparator);\n restrictions = restrictions.mergeWith(eq);\n\n List<Composite> bounds = restrictions.boundsAsComposites(cfMetaData, Bound.START, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), clustering_0, EOC.START);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.END, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), clustering_0, EOC.END);\n }", "public Map<Integer, ArrayList<LatLng>> shapeCoordinates (Map<Integer, ArrayList<LatLng>> shapeIdList) {\r\n Cursor getData = getReadableDatabase().rawQuery(\"select shape_id, shape_pt_lat, shape_pt_lon from shapes\", null);\r\n int count = 1;\r\n // Make sure start off the first position of the table\r\n getData.moveToFirst();\r\n // Store the index of end of the table\r\n int end = getData.getCount();\r\n // Loop through all the key\r\n for(Integer key : shapeIdList.keySet()) {\r\n // Create a new Arraylist\r\n ArrayList<LatLng> shapeCoordinates = new ArrayList<LatLng>();\r\n while (key == getData.getInt(0)) {\r\n // Add coordinate into the list\r\n shapeCoordinates.add(new LatLng(getData.getDouble(1), getData.getDouble(2)));\r\n count++;\r\n if (count == end) {\r\n break;\r\n }\r\n // Move to next table\r\n getData.moveToPosition(count);\r\n }\r\n // store the key and list into the HashMap\r\n shapeIdList.put(key, shapeCoordinates);\r\n }\r\n\r\n return shapeIdList;\r\n }", "private List<HashMap<TimeSelector, Long>> updateEq(\n HashMap<ComparableExpression, HashSet<ComparableExpression>> rEq,\n HashMap<TimeSelector, Long> lowerBounds, HashMap<TimeSelector, Long> upperBounds)\n throws QueryContradictoryException {\n\n ArrayList<ArrayList<ComparableExpression>> eq = relationToTuples(rEq);\n for (ArrayList<ComparableExpression> tuple : eq) {\n TimeSelector selector = null;\n TimeLiteral literal = null;\n // only comparisons between a selector and a literal are interesting here\n if (tuple.get(0) instanceof TimeSelector && tuple.get(1) instanceof TimeLiteral) {\n selector = (TimeSelector) tuple.get(0);\n literal = (TimeLiteral) tuple.get(1);\n } else if (tuple.get(1) instanceof TimeSelector && tuple.get(0) instanceof TimeLiteral) {\n selector = (TimeSelector) tuple.get(1);\n literal = (TimeLiteral) tuple.get(0);\n } else {\n continue;\n }\n // for selector=literal, lowerBound(selector) = literal and upperBound(selector) = literal\n Long literalValue = literal.getMilliseconds();\n if (lowerBounds.get(selector) > literalValue || upperBounds.get(selector) < literalValue) {\n throw new QueryContradictoryException();\n } else {\n lowerBounds.put(selector, literalValue);\n upperBounds.put(selector, literalValue);\n }\n }\n return Arrays.asList(lowerBounds, upperBounds);\n }", "private ResultSet getSpatialQueryResults(final Connection conn, final SearchRegion region) throws SQLException {\n final Statement stmt = conn.createStatement();\n final double lx = region.getLx(), ly = region.getLy(), rx = region.getRx(), ry = region.getRy();\n\n //Careful about the precision of the float from string formatter\n final String spatial_query = String.format(\"SELECT * FROM item_location WHERE \"\n + \"MBRContains(GeomFromText('Polygon((%f %f, %f %f, %f %f, %f %f, %f %f))'), coord)\", \n lx, ly, lx, ry, rx, ry, rx, ly, lx, ly);\n return stmt.executeQuery(spatial_query);\n }", "public Rectangle getBounds();", "public Rectangle getBounds();" ]
[ "0.6831715", "0.6491324", "0.6087959", "0.6075711", "0.5943503", "0.58803844", "0.58339465", "0.56223094", "0.5618762", "0.5436981", "0.53811383", "0.53115284", "0.5307903", "0.52897394", "0.52802956", "0.52749574", "0.52576935", "0.52109873", "0.52082026", "0.51717305", "0.51696134", "0.514094", "0.5125466", "0.5101154", "0.5093611", "0.50828874", "0.5079888", "0.5060722", "0.5043015", "0.5041541", "0.50370985", "0.50344235", "0.5028439", "0.5025569", "0.4990255", "0.49855345", "0.49782348", "0.49776804", "0.49768823", "0.49758032", "0.49538296", "0.49505883", "0.49479622", "0.49456877", "0.4932604", "0.49192977", "0.49104783", "0.49104783", "0.49018314", "0.48957145", "0.48903075", "0.48465264", "0.48443273", "0.48423895", "0.48401165", "0.4836208", "0.48333222", "0.48234513", "0.4821606", "0.4820572", "0.48148888", "0.48148185", "0.4806565", "0.480411", "0.47900188", "0.4786844", "0.47867158", "0.47866905", "0.47850478", "0.4782858", "0.47819823", "0.4777857", "0.47753224", "0.47660986", "0.47552854", "0.47522497", "0.4747122", "0.4743837", "0.47389868", "0.4735441", "0.47298956", "0.47295702", "0.47217438", "0.4721729", "0.47214878", "0.4718471", "0.47056404", "0.46938923", "0.4688821", "0.46883476", "0.468289", "0.46812278", "0.46661508", "0.46653467", "0.46597463", "0.46571764", "0.4653484", "0.46417737", "0.46349564", "0.46349564" ]
0.55206317
9
Retrieves the couple (id, geoId) of all the spatial object that intersects with the bounds given as input
Multimap<String, String> intersects(Circle bounds);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Multimap<String, String> intersects(RectangleLatLng bounds);", "Multimap<String, String> intersects(Polygon bounds);", "List<GeoPoint> findGeoIntersections(Ray ray);", "public List<PointDetails> getIntersectingPoints(Rectangle2D rect) {\n\t\tboolean useParallelStreaming = numPoints() > 10000;\n\t\treturn Utils.parallelize(getPointDetails().stream(), useParallelStreaming)\n\t\t\t\t.filter(p->rect.contains(p.location))\n\t\t\t\t.collect(Collectors.toList());\n\t}", "List<Long> getBestSolIntersection();", "RectangleLatLng getBounds();", "public static S2CellUnion findCellIds(S2LatLngRect latLngRect) {\n\n\t\tConcurrentLinkedQueue<S2CellId> queue = new ConcurrentLinkedQueue<S2CellId>();\n\t\tArrayList<S2CellId> cellIds = new ArrayList<S2CellId>();\n\n\t\tfor (S2CellId c = S2CellId.begin(0); !c.equals(S2CellId.end(0)); c = c.next()) {\n\t\t\tif (containsGeodataToFind(c, latLngRect)) {\n\t\t\t\tqueue.add(c);\n\t\t\t}\n\t\t}\n\n\t\tprocessQueue(queue, cellIds, latLngRect);\n\t\tassert queue.size() == 0;\n\t\tqueue = null;\n\n\t\tif (cellIds.size() > 0) {\n\t\t\tS2CellUnion cellUnion = new S2CellUnion();\n\t\t\tcellUnion.initFromCellIds(cellIds); // This normalize the cells.\n\t\t\t// cellUnion.initRawCellIds(cellIds); // This does not normalize the cells.\n\t\t\tcellIds = null;\n\n\t\t\treturn cellUnion;\n\t\t}\n\n\t\treturn null;\n\t}", "public double[] getHitGeoCoord();", "Multimap<String, String> intersects(PointLatLng point);", "public Map<Integer, Boolean> getIntersects(Geometry geom) throws SQLException {\n return retrieveExpected(createNativeIntersectsStatement(geom), BOOLEAN);\n }", "protected abstract Iterable<E> getIntersecting(D lower, D upper);", "public Bounds getLatLonBounds(BoundsObject bounds) {\n\t\treturn null;\n\t}", "public final BoundingBox getBounds() {\n\t\tif (bounds==null) {\n\t\t\tint srsID =( (Geometry)this.get(0).getDefaultGeometry()).getSRID();\n\t\t\tBoundingBox re = new BoundingBoxImpl(\"\"+srsID);\n\t\t\tfor (SimpleFeature f : this) {\n\t\t\t\tre.include(f.getBounds());\n\t\t\t}\n\t\t\tbounds = re;\n\t\t}\n\t\treturn bounds;\n\t}", "boolean intersects( Geometry gmo );", "public Map<Integer, Geometry> getIntersection(Geometry geom) throws SQLException {\n return retrieveExpected(createNativeIntersectionStatement(geom), GEOMETRY);\n }", "Collection<Point> getCoordinates(int... ids);", "public ReferencedEnvelope getBounds(){\n if(bounds==null){\n // Create Null envelope\n this.bounds = new ReferencedEnvelope(getCRS());\n // First try to find the BBOX definition in the gisNode directly\n try{\n if(gisNode.hasProperty(INeoConstants.PROPERTY_BBOX_NAME)){\n double[] bbox = (double[])gisNode.getProperty(INeoConstants.PROPERTY_BBOX_NAME);\n this.bounds = new ReferencedEnvelope(bbox[0],bbox[1],bbox[2],bbox[3],crs);\n }else{\n System.err.println(\"No BBox defined in the GeoNeo object\");\n }\n }catch(Exception bbox_e){\n System.err.println(\"Failed to interpret BBOX: \"+bbox_e.getMessage());\n bbox_e.printStackTrace(System.err);\n }\n // Secondly, if bounds is still empty, try find all feature geometries and calculate bounds\n try{\n if(this.bounds.isNull()){\n // Try to create envelope from any data referenced by the gisNode\n for(GeoNode node:getGeoNodes()){\n //TODO: support high dimensions\n this.bounds.expandToInclude(node.getCoords()[0], node.getCoords()[1]);\n }\n }\n }catch(Exception bbox_e){\n System.err.println(\"Failed to interpret BBOX: \"+bbox_e.getMessage());\n bbox_e.printStackTrace(System.err);\n }\n }\n return bounds;\n }", "protected abstract NativeSQLStatement createNativeIntersectsStatement(Geometry geom);", "@Override\n final boolean intersect(Bounds bounds, Point4d pickPos) {\n\treturn bounds.intersect(this.bounds, pickPos);\n }", "public List<Point> query(Rectangle rectangle) {\n if (!boundary.intersects(rectangle)) {\n return Collections.emptyList();\n }\n\n List<Point> found = new ArrayList<>();\n points.stream()\n .filter(rectangle::contains)\n .forEach(found::add);\n\n if (isSubdivided) {\n found.addAll(nw.query(rectangle));\n found.addAll(ne.query(rectangle));\n found.addAll(se.query(rectangle));\n found.addAll(sw.query(rectangle));\n }\n\n return found;\n }", "@Test\n public void testBoundsAsCompositesWithMultiInRestrictions()\n {\n CFMetaData cfMetaData = newCFMetaData(Sort.ASC, Sort.ASC);\n\n ByteBuffer value1 = ByteBufferUtil.bytes(1);\n ByteBuffer value2 = ByteBufferUtil.bytes(2);\n ByteBuffer value3 = ByteBufferUtil.bytes(3);\n Restriction in = newMultiIN(cfMetaData, 0, asList(value1, value2), asList(value2, value3));\n PrimaryKeyRestrictions restrictions = new PrimaryKeyRestrictionSet(cfMetaData.comparator);\n restrictions = restrictions.mergeWith(in);\n\n List<Composite> bounds = restrictions.boundsAsComposites(cfMetaData, Bound.START, QueryOptions.DEFAULT);\n assertEquals(2, bounds.size());\n assertComposite(bounds.get(0), value1, value2, EOC.START);\n assertComposite(bounds.get(1), value2, value3, EOC.START);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.END, QueryOptions.DEFAULT);\n assertEquals(2, bounds.size());\n assertComposite(bounds.get(0), value1, value2, EOC.END);\n assertComposite(bounds.get(1), value2, value3, EOC.END);\n }", "public ArrayList<ArrayList<String>> extractCoordsFromWfsXml(String xml_og, String url_geofenceWfs, String serviceIdentifier) {\r\n\t\t\r\n\t\t//logger.debug(xml_og);\r\n\t\tnameSpaceUri = getArbeitsbereichXmlTagFromWfs(url_geofenceWfs); //z.B. focus\r\n\t\tPointPolygon point = new PointPolygon();\r\n\t\tArrayList<String> list_objectid = new ArrayList<String>();\r\n\t\tArrayList<String> list_coords = new ArrayList<String>();\r\n\t\tArrayList<ArrayList<String>> list_coords_objectid = new ArrayList<ArrayList<String>>();\r\n\t\t\r\n\t\t\r\n\t\tDocumentBuilder dbuilder = null;\r\n\t\ttry {\t\t\t\r\n\t\t\tXPath xPath = XPathFactory.newInstance().newXPath();\r\n\t\t\tDocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();\r\n\t\t\tdbFactory.setNamespaceAware(true);\r\n\t DocumentBuilder builder = dbFactory.newDocumentBuilder();\r\n\t Document doc = builder.parse(new InputSource(new StringReader(xml_og)));\r\n\t \t \r\n\t \txPath.setNamespaceContext(new NamespaceContext() {\r\n\t\t\t\t\t\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tpublic Iterator getPrefixes(String namespaceURI) {\r\n\t\t\t\t\t\treturn null;\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tpublic String getPrefix(String namespaceURI) {\r\n\t\t\t\t\t\treturn null;\r\n\t\t\t\t\t}\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t @Override\r\n\t\t\t public String getNamespaceURI(String args) {\r\n\t\t\t if(nameSpaceUri.equals(args)){\r\n\t\t\t \treturn nameSpaceUri;\r\n\t\t\t }else if(\"gml\".equals(args)){\r\n\t\t\t \treturn \"http://www.opengis.net/gml/3.2\"; \t\r\n\t\t\t }else{\r\n\t\t\t \treturn null;\r\n\t\t\t }\r\n\t\t\t }\r\n\t\t\t\t});\t\t\r\n//\t \tString path_offering = \"/wfs:FeatureCollection/wfs:member/geofence_sbg:geofence_sbg_bbox/@gml:id\";\r\n//\t\t\t\tNode node_offering = (Node)xPath.compile(path_offering).evaluate(doc, XPathConstants.NODE);\r\n//\t\t\t\tSystem.out.println(\"offering: \"+node_offering.getNodeValue());\r\n\t\t\t\t/*\r\n\t\t\t\tString path_offering = \"/soap:Envelope/soap:Body/sos:Capabilities/@version\";\r\n\t\t\t\tNode node_offering = (Node)xPath.compile(path_offering).evaluate(doc, XPathConstants.NODE);\r\n\t\t\t\tSystem.out.println(\"offering: \"+node_offering.getTextContent());\r\n\t\t\t\t\r\n\t\t\t\tString path_procedures = \"//om:OM_Observation[@name='GetObservation']/ows:Parameter[@name='procedure']/ows:AllowedValues/ows:Value\"; */\r\n//\t\t\t\tString pathToLoading = \"//om:OM_Observation[om:observedProperty[@xlink:href='http://ispace.researchstudio.at/ont/swe/property/Loading']]/om:result\";\r\n\t\t\t\t\r\n\r\n\t \tString pathToObjectid = \"//\"+nameSpaceUri +\":objectid\";\r\n\t \tNodeList nodes_Objectid = (NodeList)xPath.compile(pathToObjectid).evaluate(doc, XPathConstants.NODESET);\r\n\t \t\r\n\t\t\t\tString pathToCoordinates =\"//gml:LinearRing/gml:posList\";\r\n\t\t\t\tNodeList nodes_position = (NodeList)xPath.compile(pathToCoordinates).evaluate(doc, XPathConstants.NODESET);\r\n\t\t\t\t//book[title/@lang = 'it'] [@uom='abc']\r\n\t\t\t\t//myNodeList.item(0).setNodeValue(\"Hi test!\");\r\n\t\t\t\tString xy= \"\";\r\n\t\t\t\t\r\n\t\t\t//\tlogger.debug(\"vor for loop ParserXmlJson.extractPointFromIO:\"+ nodes_position.getLength());\t\r\n\t\t\t\tfor(int n = 0; n<nodes_position.getLength(); n++){\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(serviceIdentifier.equals(\"within\")){\r\n\t\t\t\t\t\tpoint.list_ofStrConsistingOf5CoordinatesForBoundingBox.add(nodes_position.item(n).getTextContent());\r\n\t\t\t\t\t}else{\r\n\t\t\t\t\t\tpoint.list_ofStrConsistingOf5CoordinatesForBoundingBoxWithin.add(nodes_position.item(n).getTextContent());\r\n\t\t\t\t\t}\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\tlist_coords.add(nodes_position.item(n).getTextContent());\r\n\t\t\t\t\t\r\n\t\t\t\t\tlist_objectid.add(nodes_Objectid.item(n).getTextContent());\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t//node_procedures.item(n).setTextContent(\"4444\");\r\n\t\t\t\t\t//System.out.println(\"ParserXmlJson.parseInsertObservation:parser EDITED:\"+node_procedures.item(n).getTextContent());\r\n\t\t\t\t}\t\t\t\r\n\t\t\t//\tSystem.out.println(TextFiles.xmlDocument2StringWithPrettyPrint(doc, 2));\r\n\t\t\t\ttry{\r\n\t\t\t\t\t\r\n\t\t\t\t}catch(Exception e){\r\n\t\t\t\t\tSystem.out.println(\"Error: maybe no coordinates!\");\r\n\t\t\t\t\te.printStackTrace();\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t}catch(Exception ex){\r\n\t\t\tex.printStackTrace();\r\n\t\t}\t\t\t\r\n\t\tlist_coords_objectid.add(list_coords);\r\n\t\tlist_coords_objectid.add(list_objectid);\r\n\t\treturn list_coords_objectid;//point.list_ofStrConsistingOf5CoordinatesForBoundingBox;\t\t\t\t\r\n\t}", "public Stream<Area> extractBounds() {\n if (getPolygonsAsJson() != null && !getPolygonsAsJson().trim().equalsIgnoreCase(\"[]\")) {\n ObjectMapper mapper = new ObjectMapper();\n try {\n @SuppressWarnings(\"unchecked\")\n ArrayList<LinkedHashMap<String, Double>> bounds = (ArrayList<LinkedHashMap<String, Double>>) mapper.readValue(getPolygonsAsJson(), ArrayList.class);\n return bounds.stream().map(entry -> new Area(entry.get(LEFT), entry.get(TOP), entry.get(RIGHT), entry.get(BOTTOM)));\n } catch (IOException e) {\n throw new EmbryonicException(\"Error parsing json for InterestOfAreas\", e);\n }\n }\n return Stream.empty();\n }", "public Iterable<Point2D> range(RectHV rect) {\n\n if (rect == null)\n throw new IllegalArgumentException(\"Got null object in range()\");\n \n Queue<Point2D> pointsInside = new Queue<>();\n \n for (Point2D p : point2DSET) {\n \n double x = p.x();\n double y = p.y();\n if (x >= rect.xmin() && x <= rect.xmax() &&\n y >= rect.ymin() && y <= rect.ymax())\n pointsInside.enqueue(p);\n \n }\n \n return pointsInside;\n }", "public PickBounds(Bounds boundsObject) {\n\tbounds = boundsObject;\n }", "public abstract boolean intersect(BoundingBox bbox);", "@Test\n public void testBoundsAsCompositesWithEqAndInRestrictions()\n {\n CFMetaData cfMetaData = newCFMetaData(Sort.ASC, Sort.ASC);\n\n ByteBuffer value1 = ByteBufferUtil.bytes(1);\n ByteBuffer value2 = ByteBufferUtil.bytes(2);\n ByteBuffer value3 = ByteBufferUtil.bytes(3);\n Restriction eq = newSingleEq(cfMetaData, 0, value1);\n Restriction in = newSingleIN(cfMetaData, 1, value1, value2, value3);\n PrimaryKeyRestrictions restrictions = new PrimaryKeyRestrictionSet(cfMetaData.comparator);\n restrictions = restrictions.mergeWith(eq).mergeWith(in);\n\n List<Composite> bounds = restrictions.boundsAsComposites(cfMetaData, Bound.START, QueryOptions.DEFAULT);\n assertEquals(3, bounds.size());\n assertComposite(bounds.get(0), value1, value1, EOC.START);\n assertComposite(bounds.get(1), value1, value2, EOC.START);\n assertComposite(bounds.get(2), value1, value3, EOC.START);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.END, QueryOptions.DEFAULT);\n assertEquals(3, bounds.size());\n assertComposite(bounds.get(0), value1, value1, EOC.END);\n assertComposite(bounds.get(1), value1, value2, EOC.END);\n assertComposite(bounds.get(2), value1, value3, EOC.END);\n }", "public List<LatLng> getCoordinates() {\n return getGeometryObject();\n }", "public ArrayList<ArrayList<String>> extractCoordsFromWfsXml(String xml_og) {\r\n\t\tSystem.out.println(\"ParserXmlJson.extractBoundingBoxFromWfsXml: \"+ xml_og);\r\n\t\tPointPolygon point = new PointPolygon();\r\n\t\tArrayList<String> list_objectid = new ArrayList<String>();\r\n\t\tArrayList<String> list_coords = new ArrayList<String>();\r\n\t\tArrayList<ArrayList<String>> list_coords_objectid = new ArrayList<ArrayList<String>>();\r\n\t\t\r\n\t\t\r\n\t\tDocumentBuilder dbuilder = null;\r\n\t\ttry {\t\t\t\r\n\t\t\tXPath xPath = XPathFactory.newInstance().newXPath();\r\n\t\t\tDocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();\r\n\t\t\tdbFactory.setNamespaceAware(true);\r\n\t DocumentBuilder builder = dbFactory.newDocumentBuilder();\r\n\t Document doc = builder.parse(new InputSource(new StringReader(xml_og)));\r\n\t \t \r\n\t \txPath.setNamespaceContext(new NamespaceContext() {\r\n\t\t\t\t\t\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tpublic Iterator getPrefixes(String namespaceURI) {\r\n\t\t\t\t\t\treturn null;\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tpublic String getPrefix(String namespaceURI) {\r\n\t\t\t\t\t\treturn null;\r\n\t\t\t\t\t}\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t @Override\r\n\t\t\t public String getNamespaceURI(String args) {\r\n\t\t\t if(LoadOnStartAppConfiguration.arbeitsbereichXmlTagPolygon.equals(args)){\r\n\t\t\t \treturn LoadOnStartAppConfiguration.arbeitsbereichXmlTagPolygon;\r\n\t\t\t }else if(\"gml\".equals(args)){\r\n\t\t\t \treturn \"http://www.opengis.net/gml/3.2\"; \t\r\n\t\t\t }else{\r\n\t\t\t \treturn null;\r\n\t\t\t }\r\n\t\t\t }\r\n\t\t\t\t});\t\t\r\n//\t \tString path_offering = \"/wfs:FeatureCollection/wfs:member/geofence_sbg:geofence_sbg_bbox/@gml:id\";\r\n//\t\t\t\tNode node_offering = (Node)xPath.compile(path_offering).evaluate(doc, XPathConstants.NODE);\r\n//\t\t\t\tSystem.out.println(\"offering: \"+node_offering.getNodeValue());\r\n\t\t\t\t/*\r\n\t\t\t\tString path_offering = \"/soap:Envelope/soap:Body/sos:Capabilities/@version\";\r\n\t\t\t\tNode node_offering = (Node)xPath.compile(path_offering).evaluate(doc, XPathConstants.NODE);\r\n\t\t\t\tSystem.out.println(\"offering: \"+node_offering.getTextContent());\r\n\t\t\t\t\r\n\t\t\t\tString path_procedures = \"//om:OM_Observation[@name='GetObservation']/ows:Parameter[@name='procedure']/ows:AllowedValues/ows:Value\"; */\r\n//\t\t\t\tString pathToLoading = \"//om:OM_Observation[om:observedProperty[@xlink:href='http://ispace.researchstudio.at/ont/swe/property/Loading']]/om:result\";\r\n\t\t\t\t\r\n\t\t\t\t//jetzt werden hier aber alle X Y Koordinaten,die sich in InsertObservation.xml wiederholen, ausgelesen werden\r\n\t \tString pathToObjectid = \"//geofence_sbg:objectid\";\r\n\t \tNodeList nodes_Objectid = (NodeList)xPath.compile(pathToObjectid).evaluate(doc, XPathConstants.NODESET);\r\n\t \t\r\n\t\t\t\tString pathToCoordinates =\"//gml:LinearRing/gml:posList\";\r\n\t\t\t\tNodeList nodes_position = (NodeList)xPath.compile(pathToCoordinates).evaluate(doc, XPathConstants.NODESET);\r\n\t\t\t\t//book[title/@lang = 'it'] [@uom='abc']\r\n\t\t\t\t//myNodeList.item(0).setNodeValue(\"Hi mom!\");\r\n\t\t\t\tString xy= \"\";\r\n\t\t\t\t\r\n\t\t\t\tSystem.out.println(\"vor for loop ParserXmlJson.extractPointFromIO:\"+ nodes_position.getLength());\t\r\n\t\t\t\tfor(int n = 0; n<nodes_position.getLength(); n++){\r\n\t\t\t\t\tSystem.out.println(\"ParserXmlJson.extractPointFromIO: \"+nodes_position.item(n).getTextContent());\r\n\t\t\t\t\tpoint.list_ofStrConsistingOf5CoordinatesForBoundingBox.add(nodes_position.item(n).getTextContent());\r\n\t\t\t\t\tlist_coords.add(nodes_position.item(n).getTextContent());\r\n\t\t\t\t\tSystem.out.println(\"ParserXmlJson.extractPointFromIO objectid: \"+nodes_Objectid.item(n).getTextContent());\r\n\t\t\t\t\tlist_objectid.add(nodes_Objectid.item(n).getTextContent());\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t//node_procedures.item(n).setTextContent(\"4444\");\r\n\t\t\t\t\t//System.out.println(\"ParserXmlJson.parseInsertObservation:parser EDITED:\"+node_procedures.item(n).getTextContent());\r\n\t\t\t\t}\t\t\t\r\n\t\t\t//\tSystem.out.println(TextFiles.xmlDocument2StringWithPrettyPrint(doc, 2));\r\n\t\t\t\ttry{\r\n\t\t\t\t\t\r\n\t\t\t\t}catch(Exception e){\r\n\t\t\t\t\tSystem.out.println(\"Error: maybe no coordinates!\");\r\n\t\t\t\t\te.printStackTrace();\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t}catch(Exception ex){\r\n\t\t\tex.printStackTrace();\r\n\t\t}\t\t\t\r\n\t\tlist_coords_objectid.add(list_coords);\r\n\t\tlist_coords_objectid.add(list_objectid);\r\n\t\treturn list_coords_objectid;//point.list_ofStrConsistingOf5CoordinatesForBoundingBox;\t\t\t\t\r\n\t}", "private static void ParseMapXMLGetIntersections()\r\n\t{\r\n\t\ttry {\r\n\t\t\tSAXParserFactory factory = SAXParserFactory.newInstance();\r\n\t\t\tSAXParser saxParser = factory.newSAXParser();\r\n\r\n\t\t\tDefaultHandler handler = new DefaultHandler() {\r\n\r\n\t\t\t\tpublic void startElement(String uri, String localName,\r\n\t\t\t\t\t\tString qName, Attributes attributes)\r\n\t\t\t\t\t\tthrows SAXException {\r\n\r\n\t\t\t\t\tif (qName.equalsIgnoreCase(\"bounds\")) {\r\n\t\t\t\t\t\tint k = attributes.getLength();\r\n\t\t\t\t\t\tSystem.out.println(\"Map boundries:\");\r\n\t\t\t\t\t\tfor (int i = 0; i < k; i++)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tif (attributes.getLocalName(i).compareToIgnoreCase(\"minlat\") == 0)\r\n\t\t\t\t\t\t\t\tSystem.out.println(\"MinLat: \" + attributes.getValue(i));\r\n\t\t\t\t\t\t\tif (attributes.getLocalName(i).compareToIgnoreCase(\"maxlat\") == 0)\r\n\t\t\t\t\t\t\t\tSystem.out.println(\"MaxLat: \" + attributes.getValue(i));\r\n\t\t\t\t\t\t\tif (attributes.getLocalName(i).compareToIgnoreCase(\"minlon\") == 0)\r\n\t\t\t\t\t\t\t\tSystem.out.println(\"MinLon: \" + attributes.getValue(i));\r\n\t\t\t\t\t\t\tif (attributes.getLocalName(i).compareToIgnoreCase(\"maxlon\") == 0)\r\n\t\t\t\t\t\t\t\tSystem.out.println(\"MaxLon: \" + attributes.getValue(i));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tif (qName.equalsIgnoreCase(\"node\")) {\r\n\t\t\t\t\t\tint k = attributes.getLength();\r\n\t\t\t\t\t\tlong id = 0;\r\n\t\t\t\t\t\tdouble lat = 0;\r\n\t\t\t\t\t\tdouble lon = 0;\r\n\t\t\t\t\t\tfor (int i = 0; i < k; i++)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tif (attributes.getLocalName(i).compareToIgnoreCase(\"id\") == 0)\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tid = Long.valueOf(attributes.getValue(i));\r\n\t\t\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tif (attributes.getLocalName(i).compareToIgnoreCase(\"lat\") == 0)\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tlat = Double.valueOf(attributes.getValue(i));\r\n\t\t\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tif (attributes.getLocalName(i).compareToIgnoreCase(\"lon\") == 0)\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tlon = Double.valueOf(attributes.getValue(i));\r\n\t\t\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\thashtableNodes.put(id, new Intersection(lat, lon, id));\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\tif (qName.equalsIgnoreCase(\"nd\")) \r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tlong reference = Long.valueOf(attributes.getValue(0));\r\n\t\t\t\t\t\tif (hashtableCounter.containsKey(reference)) {\r\n\t\t\t\t\t\t\tint value = hashtableCounter.get(reference);\r\n\t\t\t\t\t\t\thashtableCounter.put(reference, value + 1);\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\thashtableCounter.put(reference, 1);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\tpublic void endElement(String uri, String localName,\r\n\t\t\t\t\t\tString qName) throws SAXException {\r\n\r\n\t\t\t\t}\r\n\t\t\t};\r\n\t\t\tsaxParser.parse(MapPath, handler);\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\tSystem.exit(0);\r\n\t\t}\r\n\t\t\r\n\t\t// remove the nodes which only appears once in way's nd.\r\n\t\tLinkedList<Long> removeList = new LinkedList<Long>();\r\n\t\tfor (long theKey : hashtableCounter.keySet())\r\n\t\t{\r\n\t\t\tif (hashtableCounter.get(theKey) <= 1)\r\n\t\t\t{\r\n\t\t\t\tremoveList.add(theKey);\r\n\t\t\t}\r\n\t\t}\r\n\t\tfor (long theKey : removeList)\r\n\t\t{\r\n\t\t\thashtableNodes.remove(theKey);\r\n\t\t}\r\n\t}", "public Map<Integer, Boolean> getWithin(Geometry geom) throws SQLException {\n return retrieveExpected(createNativeWithinStatement(geom), BOOLEAN);\n }", "@GET\n\t@Produces(\"application/json\")\n\t@Path(\"within\")\n\tpublic List<Pizzerias> findPizzeriasWithin(@QueryParam(\"lat1\") float lat1,\n @QueryParam(\"lon1\") float lon1, @QueryParam(\"lat2\") float lat2,\n @QueryParam(\"lon2\") float lon2) {\n dbConnection.checkDatabase();\n\t\tArrayList<Pizzerias> allPizzeriasList = new ArrayList<Pizzerias>();\n\t\tMongoCollection pizzerias = dbConnection.getCollection();\n\n\t\t// make the query object\n\t\tBasicDBObject spatialQuery = new BasicDBObject();\n\n\t\tArrayList<double[]> boxList = new ArrayList<double[]>();\n\t\tboxList.add(new double[] { new Float(lat2), new Float(lon2) });\n\t\tboxList.add(new double[] { new Float(lat1), new Float(lon1) });\n\n\t\tBasicDBObject boxQuery = new BasicDBObject();\n\t\tboxQuery.put(\"$box\", boxList);\n\n\t\tspatialQuery.put(\"pos\", new BasicDBObject(\"$within\", boxQuery));\n\t\tSystem.out.println(\"Using spatial query: \" + spatialQuery.toString());\n\n\t\tMongoCursor<Document> cursor = pizzerias.find(spatialQuery).iterator();\n\t\ttry {\n\t\t\twhile (cursor.hasNext()) {\n\t\t\t\tallPizzeriasList.add(this.populatePizzeriasInformation(cursor.next()));\n\t\t\t}\n\t\t} finally {\n\t\t\tcursor.close();\n\t\t}\n\t\tSystem.out.println(\"Return \" + allPizzeriasList.size() + \" pizzerias\");\n\n\t\treturn allPizzeriasList;\n\t}", "public Map<Integer, Boolean> getContains(Geometry geom) throws SQLException {\n return retrieveExpected(createNativeContainsStatement(geom), BOOLEAN);\n }", "public Coordinates intersection() {\n return intersection;\n }", "List<Coord> allActiveCells();", "Collection<Point> getAllCoordinates();", "public Map<Integer, Geometry> getBoundary() throws SQLException {\n return retrieveExpected(createNativeBoundaryStatement(), GEOMETRY);\n }", "Collection<? extends WrappedIndividual> getContains();", "public interface IdCoordinateSource {\n\n /**\n * Get the matching coordinate for the given ID\n *\n * @param id the ID to look up\n * @return matching coordinate\n */\n Optional<Point> getCoordinate(int id);\n\n /**\n * Get the matching coordinates for the given IDs\n *\n * @param ids the IDs to look up\n * @return the matching coordinates\n */\n Collection<Point> getCoordinates(int... ids);\n\n /**\n * Get the ID for the coordinate point\n *\n * @param coordinate the coordinate to look up\n * @return the matching ID\n */\n Optional<Integer> getId(Point coordinate);\n\n /**\n * Returns all the coordinates of this source\n *\n * @return all available coordinates\n */\n Collection<Point> getAllCoordinates();\n\n /**\n * Returns the nearest n coordinate points. If n is greater than four, this method will try to\n * return the corner points of the bounding box.\n *\n * @param coordinate the coordinate to look up\n * @param n number of searched points\n * @return the nearest n coordinates or all coordinates if n is less than all available points\n */\n List<CoordinateDistance> getNearestCoordinates(Point coordinate, int n);\n\n /**\n * Returns the closest n coordinate points to the given coordinate, that are inside a given\n * bounding box, from a collection of all available points. The bounding box is calculated with\n * the given distance. If n is greater than four, this method will try to return the corner points\n * of the bounding box.\n *\n * @param coordinate the coordinate to look up the nearest neighbours for\n * @param n how many neighbours to look up\n * @param distance to the borders of the envelope that contains the coordinates\n * @return the nearest n coordinates to the given point\n */\n List<CoordinateDistance> getClosestCoordinates(\n Point coordinate, int n, ComparableQuantity<Length> distance);\n\n /**\n * Calculates and returns the nearest n coordinate distances to the given coordinate from a given\n * collection of points. If the set is empty or null an empty list is returned. If n is greater\n * than four, this method will try to return the corner points of the bounding box.\n *\n * @param coordinate the coordinate to look up the nearest neighbours for\n * @param n how many neighbours to look up\n * @param coordinates the collection of points\n * @return a list of the nearest n coordinates to the given point or an empty list\n */\n default List<CoordinateDistance> calculateCoordinateDistances(\n Point coordinate, int n, Collection<Point> coordinates) {\n if (coordinates != null && !coordinates.isEmpty()) {\n SortedSet<CoordinateDistance> sortedDistances =\n GeoUtils.calcOrderedCoordinateDistances(coordinate, coordinates);\n return restrictToBoundingBox(coordinate, sortedDistances, n);\n } else {\n return Collections.emptyList();\n }\n }\n\n /**\n * Method for evaluating the found points. This method tries to return the four corner points of\n * the bounding box of the given coordinate. If one of the found points matches the given\n * coordinate, only this point is returned. If the given number of searched points is less than\n * four, this method will only return the nearest n corner points. If the given number of searched\n * points is greater than four, this method will return the four corner points plus the nearest n\n * points to match the number of searched points.\n *\n * <p>To work properly, the given collection of {@link CoordinateDistance}'s should already be\n * sorted by distance.\n *\n * @param coordinate at the center of the bounding box\n * @param distances list of found points with their distances\n * @param numberOfPoints that should be returned\n * @return list of distances\n */\n default List<CoordinateDistance> restrictToBoundingBox(\n Point coordinate, Collection<CoordinateDistance> distances, int numberOfPoints) {\n boolean topLeft = false;\n boolean topRight = false;\n boolean bottomLeft = false;\n boolean bottomRight = false;\n\n List<CoordinateDistance> resultingDistances = new ArrayList<>();\n List<CoordinateDistance> other = new ArrayList<>();\n\n // search for smallest bounding box\n for (CoordinateDistance distance : distances) {\n Point point = distance.getCoordinateB();\n\n // check for bounding box\n if (!topLeft && (point.getX() < coordinate.getX() && point.getY() > coordinate.getY())) {\n resultingDistances.add(distance);\n topLeft = true;\n } else if (!topRight\n && (point.getX() > coordinate.getX() && point.getY() > coordinate.getY())) {\n resultingDistances.add(distance);\n topRight = true;\n } else if (!bottomLeft\n && (point.getX() < coordinate.getX() && point.getY() < coordinate.getY())) {\n resultingDistances.add(distance);\n bottomLeft = true;\n } else if (!bottomRight\n && (point.getX() > coordinate.getX() && point.getY() < coordinate.getY())) {\n resultingDistances.add(distance);\n bottomRight = true;\n } else if (coordinate.equalsExact(point, 1e-6)) {\n // if current point is matching the given coordinate, we need to return only the current\n // point\n\n resultingDistances.clear();\n resultingDistances.add(distance);\n return resultingDistances;\n } else {\n other.add(distance);\n }\n }\n\n // check if n distances are found\n int diff = numberOfPoints - resultingDistances.size();\n\n if (diff > 0) {\n resultingDistances.addAll(other.stream().limit(diff).toList());\n } else if (diff < 0) {\n return resultingDistances.stream().limit(numberOfPoints).toList();\n }\n\n return resultingDistances;\n }\n}", "int indexOf(GeometricalObject object);", "protected int[] getParticlesByIndexInside( ArrayList<Object> geomObjects,PointXY[] boundingBox ){\r\n\t\t\r\n\t\tArrayList<Integer> pset = new ArrayList<Integer>() ;\r\n\t\tPoint2D testP2D;\r\n\t\tRepulsionFieldParticle particle;\r\n\t\tObject geomObject;\r\n\t\t\r\n\t\tboolean covered;\r\n\t\t\r\n\t\t\r\n\r\n\t\tfor (int i= 0; i<particles.size() ;i++){\r\n\t\t\t\r\n\t\t\tparticle = particles.get(i) ;\r\n\t\t\t\r\n\t\t\t// within bounding box? no? skip the rest , -> next particle by index value\r\n\t\t\tif ((particle.x<boundingBox[0].x-averageDistance*1.1) || (particle.x>boundingBox[1].x+averageDistance*1.1)){\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t\tif ((particle.y<boundingBox[0].y-averageDistance*1.1) || (particle.y>boundingBox[3].y+averageDistance*1.1)){\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t \r\n\t\t\t\r\n\t\t\ttestP2D = new Point2D( particle.x, particle.y);\r\n\t\t\t\r\n\t\t\t// test particle across all ellipses\r\n\t\t\tfor (int s=0;s<geomObjects.size();s++){\r\n\t\t\t\t\r\n\t\t\t\tgeomObject = geomObjects.get(s) ;\r\n\t\t\t\t \r\n\t\t\t\tcovered = isInsideGeomObject(geomObject,testP2D);\r\n\t\t\t\t\r\n\t\t\t\tif (covered) {\r\n\t\t\t\t\tif (pset.contains(i)==false){\r\n\t\t\t\t\t\tpset.add(i) ;\r\n\t\t\t\t\t}\r\n\t\t\t\t\t// out.print(2, \"+++ particle added, index:\"+i+\", location x,y:\" + df.format(particle.x)+\",\" + df.format(particle.y)+\" +++\");\r\n\t\t\t\t}else{\r\n\t\t\t\t\t// out.print(2, \"--- particle NOT added, index:\"+i+\", location x,y:\" + df.format(particle.x)+\",\" + df.format(particle.y)+\" ---\");\r\n\t\t\t\t}\r\n\t\t\t} // s->\r\n\t\t\t\r\n\t\t} // i->\r\n\t\t\r\n\t\t\r\n\t\tint[] particleIndexes = new int[pset.size()] ;\r\n\t\t\r\n\t\tfor (int i=0;i< pset.size();i++){\r\n\t\t\tparticleIndexes[i] = pset.get(i) ;\r\n\t\t}\r\n\t\treturn particleIndexes;\r\n\t}", "@Test\n public void testBoundsAsCompositesWithMultiEqRestrictions()\n {\n CFMetaData cfMetaData = newCFMetaData(Sort.ASC, Sort.ASC);\n\n ByteBuffer value1 = ByteBufferUtil.bytes(1);\n ByteBuffer value2 = ByteBufferUtil.bytes(2);\n Restriction eq = newMultiEq(cfMetaData, 0, value1, value2);\n PrimaryKeyRestrictions restrictions = new PrimaryKeyRestrictionSet(cfMetaData.comparator);\n restrictions = restrictions.mergeWith(eq);\n\n List<Composite> bounds = restrictions.boundsAsComposites(cfMetaData, Bound.START, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), value1, value2, EOC.START);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.END, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), value1, value2, EOC.END);\n }", "public Iterable<Point2D> range(RectHV rect) {\n if (rect == null) throw new IllegalArgumentException(\n \"Null pointer provided instead of a query rectangle\");\n ptsInside = new SET<Point2D>();\n searchForPoints(root, rect);\n return ptsInside;\n }", "void storeObject(RectangleLatLng rectangle, String id);", "public org.landxml.schema.landXML11.RoadwayNameRef xgetIntersectingRoadwayRef()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.landxml.schema.landXML11.RoadwayNameRef target = null;\r\n target = (org.landxml.schema.landXML11.RoadwayNameRef)get_store().find_attribute_user(INTERSECTINGROADWAYREF$20);\r\n return target;\r\n }\r\n }", "public int indexOf(GeometricalObject object);", "long getCoordinates();", "long getCoordinates();", "@Override\r\n\tpublic List<GeoPoint> findGeoIntersections(Ray ray, double maxDistance) {\n\t\treturn null;\r\n\t}", "public S2LatLngRect getBound() {\n // To save time, we ignore numerical errors in the computed S2LatLngs while\n // accumulating the bounds and then account for them here.\n //\n // S2LatLng(S2Point) has a maximum error of 0.955 * S2.DBL_EPSILON in latitude.\n // In the worst case, we might have rounded \"inwards\" when computing the\n // bound and \"outwards\" when computing the latitude of a contained point P,\n // therefore we expand the latitude bounds by 2 * S2.DBL_EPSILON in each\n // direction. (A more complex analysis shows that 1.5 * S2.DBL_EPSILON is\n // enough, but the expansion amount should be a multiple of S2.DBL_EPSILON in\n // order to avoid rounding errors during the expansion itself.)\n //\n // S2LatLng(S2Point) has a maximum error of S2.DBL_EPSILON in longitude, which\n // is simply the maximum rounding error for results in the range [-Pi, Pi].\n // This is true because the Gnu implementation of atan2() comes from the IBM\n // Accurate Mathematical Library, which implements correct rounding for this\n // intrinsic (i.e., it returns the infinite precision result rounded to the\n // nearest representable value, with ties rounded to even values). This\n // implies that we don't need to expand the longitude bounds at all, since\n // we only guarantee that the bound contains the *rounded* latitudes of\n // contained points. The *true* latitudes of contained points may lie up to\n // S2.DBL_EPSILON outside of the returned bound.\n\n S2LatLng expansion = S2LatLng.fromRadians(2 * S2.DBL_EPSILON, 0);\n return builder.build().expanded(expansion).polarClosure();\n }", "private static HashMap<Integer, ArrayList<String>> checkAndMergeIntersectedPoints(HashMap<Integer, ArrayList<String>> boundedRegionPointsMap) {\n\n\t\t// Iterate over regions one by one, to validate with rest of the regions iteratively.\n\t for(Integer key1 : boundedRegionPointsMap.keySet()) {\n\t ArrayList<String> list1 = boundedRegionPointsMap.get(key1);\n\n\t for (Integer key2 : boundedRegionPointsMap.keySet()) {\n\t \t// Only need to check for keys (region counters) incrementally\n\t if (key1 < key2) {\n\t ArrayList<String> list2 = boundedRegionPointsMap.get(key2);\n\t for(String point : list2) {\n\t \t// If there is an intersecting point in two regions, merge them.\n\t if (list1.contains(point)) {\n\t list1.addAll(list2);\n\t // Just to make sure there won't be any duplicate points introduced after the merge.\n\t Set<String> uniquePoints = new HashSet<String>(list1);\n\t boundedRegionPointsMap.put(key1, new ArrayList<String>(uniquePoints));\n\t break;\n\t }\n\t }\n\t }\n\t }\n\n\t }\n\t return boundedRegionPointsMap;\n\t}", "public static S2LatLngRect getBoundingLatLngRect(final GeoRectangle geoRectangle) {\n final GeoPoint minPoint = geoRectangle.getBottomLeft();\n final GeoPoint maxPoint = geoRectangle.getTopRight();\n\n if (minPoint != null && maxPoint != null) {\n final S2LatLng minLatLng = S2LatLng.fromDegrees(minPoint.getLatitude(), minPoint.getLongitude());\n final S2LatLng maxLatLng = S2LatLng.fromDegrees(maxPoint.getLatitude(), maxPoint.getLongitude());\n return new S2LatLngRect(minLatLng, maxLatLng);\n } else {\n throw new IllegalArgumentException(\"min and max points must exist!!!\");\n }\n }", "Collection<Feature> getReference();", "private GObject getCollidingObject() {\n \tdouble x1 = ball.getX();\n \tdouble y1 = ball.getY();\n \tdouble x2 = x1 + BALL_RADIUS * 2;\n \tdouble y2 = y1 + BALL_RADIUS * 2;\n \n \tif (getElementAt(x1, y1) != null) return getElementAt(x1, y1);\n \tif (getElementAt(x1, y2) != null) return getElementAt(x1, y2);\n \tif (getElementAt(x2, y1) != null) return getElementAt(x2, y1);\n \tif (getElementAt(x2, y2) != null) return getElementAt(x2, y2);\n \n \treturn null;\n }", "List<GridCoordinate> getCoordinates(int cellWidth, int cellHeight);", "@SuppressWarnings(\"unchecked\")\n public Collection<T> getWithinQuad(long quad) {\n ArrayList<Object> result = new ArrayList<Object>();\n root.addDescendantsWithinQuad(this, quad, result);\n return (ArrayList<T>) result;\n }", "public Iterable<Point2D> range(RectHV rect) {\n if (rect == null) {\n throw new IllegalArgumentException();\n }\n SET<Point2D> result = new SET<Point2D>();\n for (Point2D point : points) {\n if (rect.contains(point))\n result.add(point);\n }\n return result;\n }", "@Test\n public void testBoundsAsCompositesWithOneInRestrictionsAndOneClusteringColumn()\n {\n ByteBuffer value1 = ByteBufferUtil.bytes(1);\n ByteBuffer value2 = ByteBufferUtil.bytes(2);\n ByteBuffer value3 = ByteBufferUtil.bytes(3);\n\n CFMetaData cfMetaData = newCFMetaData(Sort.ASC, Sort.ASC);\n\n Restriction in = newSingleIN(cfMetaData, 0, value1, value2, value3);\n\n PrimaryKeyRestrictions restrictions = new PrimaryKeyRestrictionSet(cfMetaData.comparator);\n restrictions = restrictions.mergeWith(in);\n\n List<Composite> bounds = restrictions.boundsAsComposites(cfMetaData, Bound.START, QueryOptions.DEFAULT);\n assertEquals(3, bounds.size());\n assertComposite(bounds.get(0), value1, EOC.START);\n assertComposite(bounds.get(1), value2, EOC.START);\n assertComposite(bounds.get(2), value3, EOC.START);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.END, QueryOptions.DEFAULT);\n assertEquals(3, bounds.size());\n assertComposite(bounds.get(0), value1, EOC.END);\n assertComposite(bounds.get(1), value2, EOC.END);\n assertComposite(bounds.get(2), value3, EOC.END);\n }", "public Tuple2<Integer, ArrayList<Integer>> call(Rectangle rectangle) throws Exception {\n\t\t\t\t\tList<Point> firstInputCollection = firstInput.getValue();\n\t\t\t\t\tArrayList<Integer> secondInputIds = new ArrayList<Integer>();\n\t\t\t\t\t// Iterate the second input and check for the second set\n\t\t\t\t\t// of rectangle id’s\n\t\t\t\t\t// that hold the rectangle from first set obtained from\n\t\t\t\t\t// the mapped RDD\n\t\t\t\t\tfor (Point point : firstInputCollection) {\n\t\t\t\t\t\tif (point.isPointinsideQueryWindow(rectangle)) {\n\t\t\t\t\t\t\tsecondInputIds.add(point.getPointID());\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t// Create a new tuple of the mapped values and return\n\t\t\t\t\t// back the mapped\n\t\t\t\t\t// transformation.\n\t\t\t\t\tTuple2<Integer, ArrayList<Integer>> resultList = new Tuple2<Integer, ArrayList<Integer>>(rectangle\n\t\t\t\t\t\t\t.getRectangleId(), secondInputIds);\n\t\t\t\t\treturn resultList;\n\t\t\t\t}", "public Iterable<Point2D> range(RectHV rect) {\n if (rect == null) throw new NullPointerException();\n TreeSet<Point2D> inRangeSet = new TreeSet<>();\n for (Point2D point : pointSet) {\n if (rect.contains(point)) {\n inRangeSet.add(point);\n }\n }\n return inRangeSet;\n }", "public Bounds getBounds () { return (bounds); }", "protected abstract NativeSQLStatement createNativeIntersectionStatement(Geometry geom);", "default List<Point3D> findIntersections(Ray ray) {\n\tList<GeoPoint> geoList = findGeoIntersections(ray);\n\treturn geoList == null ? null\n\t: geoList .stream()\n\t.map(gp -> gp.point)\n\t.collect(Collectors.toList());\n\t}", "@Override\r\n\tpublic List<GeoPoint> findIntersections(Ray ray,double maxDistance) {\n\t List<GeoPoint> intersections = null;\r\n\r\n\t for (Intersectable geo : _geometriesList) {\r\n\t List<GeoPoint> tempIntersections = geo.findIntersections(ray,maxDistance);\r\n\t if (tempIntersections != null) {\r\n\t if (intersections == null)\r\n\t intersections = new ArrayList<GeoPoint>();\r\n\t intersections.addAll(tempIntersections);\r\n\t }\r\n\t }\r\n\t \r\n\r\n\t return intersections;\r\n\r\n\t}", "@Test\n public void testBoundsAsCompositesWithOneEqRestrictionsAndTwoClusteringColumns()\n {\n CFMetaData cfMetaData = newCFMetaData(Sort.ASC, Sort.ASC);\n\n ByteBuffer clustering_0 = ByteBufferUtil.bytes(1);\n Restriction eq = newSingleEq(cfMetaData, 0, clustering_0);\n\n PrimaryKeyRestrictions restrictions = new PrimaryKeyRestrictionSet(cfMetaData.comparator);\n restrictions = restrictions.mergeWith(eq);\n\n List<Composite> bounds = restrictions.boundsAsComposites(cfMetaData, Bound.START, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), clustering_0, EOC.START);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.END, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), clustering_0, EOC.END);\n }", "Map<BoardCellCoordinates, Set<Integer>> getWinningCoordinates();", "public List<Integer> getNeighbourIds() {\n List<Integer> neighbours = new ArrayList<>();\n // get references from the neighbouring cells.\n for (VoronoiHalfEdge halfEdge : halfEdges) {\n VoronoiEdge edge = halfEdge.getEdge();\n if (edge.getLeftSite() != null && edge.getLeftSite().getIdentifier() != site.getIdentifier()) {\n neighbours.add(edge.getLeftSite().getIdentifier());\n } else if (edge.getRightSite() != null && edge.getRightSite().getIdentifier() != site.getIdentifier()) {\n neighbours.add(edge.getRightSite().getIdentifier());\n }\n }\n return neighbours;\n }", "public List<Float> getBoundingsOfCell() {\n\n\t\tfloat minXPoint = Float.POSITIVE_INFINITY;\n\t\tfloat maxXPoint = Float.NEGATIVE_INFINITY;\n\t\tfloat minYPoint = Float.POSITIVE_INFINITY;\n\t\tfloat maxYPoint = Float.NEGATIVE_INFINITY;\n\n\t\tfor (int i = 0; i < face.edges().size(); i++) {\n\n\t\t\tDCEL_Edge e = (DCEL_Edge) face.edges().get(i);\n\n\t\t\tArc2_Sweep arc = (Arc2_Sweep) e.reference;\n\n\t\t\t// Looking for most left located point of cell\n\t\t\tif (minXPoint > arc.minX().x) {\n\t\t\t\tminXPoint = arc.minX().x;\n\t\t\t}\n\t\t\t// Looking for most right located point of cell\n\t\t\tif (maxXPoint < arc.maxX().x) {\n\t\t\t\tmaxXPoint = arc.maxX().x;\n\t\t\t}\n\t\t\t// Looking for highest located point of cell\n\t\t\tif (minYPoint > arc.minY().y) {\n\t\t\t\tminYPoint = arc.minY().y;\n\t\t\t}\n\t\t\t// Looking for lowest located point of cell\n\t\t\tif (maxYPoint < arc.maxY().y) {\n\t\t\t\tmaxYPoint = arc.maxY().y;\n\t\t\t}\n\n\t\t}\n\n\t\tList<Float> boundings = new ArrayList<Float>();\n\t\tboundings.add(minXPoint);\n\t\tboundings.add(maxXPoint);\n\t\tboundings.add(minYPoint);\n\t\tboundings.add(maxYPoint);\n\t\treturn boundings;\n\n\t}", "Pair<Rectangle, Rectangle> getRectangles();", "Collection<? extends Boundary> getIsBoundaryNodeOf();", "@Test\n public void testBoundsAsCompositesWithMultiEqAndSingleSliceRestrictions()\n {\n CFMetaData cfMetaData = newCFMetaData(Sort.ASC, Sort.ASC, Sort.ASC);\n\n ByteBuffer value1 = ByteBufferUtil.bytes(1);\n ByteBuffer value2 = ByteBufferUtil.bytes(2);\n ByteBuffer value3 = ByteBufferUtil.bytes(3);\n\n // (clustering_0, clustering_1) = (1, 2) AND clustering_2 > 3\n Restriction multiEq = newMultiEq(cfMetaData, 0, value1, value2);\n Restriction singleSlice = newSingleSlice(cfMetaData, 2, Bound.START, false, value3);\n PrimaryKeyRestrictions restrictions = new PrimaryKeyRestrictionSet(cfMetaData.comparator);\n restrictions = restrictions.mergeWith(multiEq).mergeWith(singleSlice);\n\n List<Composite> bounds = restrictions.boundsAsComposites(cfMetaData, Bound.START, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), value1, value2, value3, EOC.END);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.END, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), value1, value2, EOC.END);\n }", "Map<Coord, ICell> getAllCells();", "private Map<Geometry, List<Point3D>> getSceneRayIntersections(Ray ray){\n //Map key - geometric\n //value - a list of cut points\n Map<Geometry, List<Point3D>> sceneRayIntersectPions = new HashMap<Geometry, List<Point3D>>();\n //Iterator we can go through all the geometric shapes\n Iterator<Geometry> geometries = _scene.getGeometriesIterator();\n //for each geometry finde intersection points\n while (geometries.hasNext()){\n Geometry geometry = geometries.next();\n List<Point3D> geometryIntersectionPoints = geometry.FindIntersections(ray);\n if(!geometryIntersectionPoints.isEmpty())\n //add geometryIntersectionPoints(list) to key geometry\n sceneRayIntersectPions.put(geometry, geometryIntersectionPoints);\n }\n return sceneRayIntersectPions;\n }", "private List<InternalConstraint> genInternalCtrsForNonOverlapping(NonOverlapping ectr, GeostObject o) {\n List<InternalConstraint> ictrs = new ArrayList<InternalConstraint>();\n List<ShiftedBox> sb = stp.getShape(o.getShapeId().getLB());\n Iterator<Integer> itr;\n itr = ectr.getFrame().getRelForbidRegions().keySet().iterator();\n boolean printit = false;\n while (itr.hasNext()) {\n int i = itr.next();\n if (!(o.getObjectId() == i)) {\n for (int k = 0; k < sb.size(); k++) {\n // We will generate an outbox constraint corresponding to each relative forbidden region we already generated\n // for the shifted boxes of the shape corresponding to the Obj o\n\n // here we go into the relative forbidden regions\n loop:\n for (int l = 0; l < ectr.getFrame().getRelForbidRegions(i).size(); l++) {\n int[] t = new int[cst.getDIM()];\n int[] s = new int[cst.getDIM()];\n for (int j = 0; j < cst.getDIM(); j++) {\n int min = ectr.getFrame().getRelForbidRegions(i).get(l).getMinimumBoundary(j) - sb.get(k).getOffset(j) - sb.get(k).getSize(j);\n int max = ectr.getFrame().getRelForbidRegions(i).get(l).getMaximumBoundary(j) - sb.get(k).getOffset(j);\n\n s[j] = max - min + 1; // length of the jth coordinate\n if (s[j] <= 0) // since the length is negative\n continue loop;\n t[j] = min; // It is the offset. lower left corner.\n\n if (printit) System.out.println(o.getObjectId() + \" \" + j + \" \" + o);\n int supDom = o.getCoord(j).getUB();// + sb.get(k).getOffset(j) + sb.get(k).getSize(j);\n int infDom = o.getCoord(j).getLB();// + sb.get(k).getOffset(j) ;\n int maxObj = o.getCoord(j).getUB() + sb.get(k).getOffset(j) + sb.get(k).getSize(j) - 1;\n if (maxObj > o.getCoord(j).getUB()) maxObj = o.getCoord(j).getUB();\n int minObj = o.getCoord(j).getLB() + sb.get(k).getOffset(j);\n if (minObj < o.getCoord(j).getLB()) minObj = o.getCoord(j).getLB();\n\n if (printit) System.out.println(\"box: \" + t[j] + \" \" + s[j]);\n if (printit) System.out.println(\"dom: \" + minObj + \" \" + maxObj);\n\n\n if ((supDom < t[j]) || (infDom > t[j] + s[j])) {\n // this means the intersection of dom(o.x) and the region forbidden region associated with Outbox(t,s) is empty. In the other words all\n // the placement space is feasible for o.x according to the constraint Outbox(t,s)\n if (printit) System.out.println(\"skip\");\n continue loop;\n }\n if ((maxObj < t[j]) || (minObj > t[j] + s[j])) {\n // this means the intersection of dom(o.x) and the region forbidden region associated with Outbox(t,s) is empty. In the other words all\n // the placement space is feasible for o.x according to the constraint Outbox(t,s)\n if (printit) System.out.println(\"skip2\");\n continue loop;\n }\n\n //clipping\n if (stp.opt.clipping) {\n // t[j] = Math.max(minObj, t[j]);\n // s[j] = Math.min(maxObj, t[j] + s[j]) - t[j] ;\n }\n\n if (printit) System.out.println(\"result box: \" + t[j] + \" \" + s[j]);\n\n\n }\n\n Outbox new_ob = new Outbox(t, s);\n\n\n Pair<Outbox, Boolean> result;\n if (ictrs.size() != 0) {\n Outbox last_ob = (Outbox) ictrs.get(ictrs.size() - 1);\n result = mergeAdjacent(new_ob, last_ob);\n\n new_ob = result.fst;\n\n if (result.snd) ictrs.remove(ictrs.size() - 1);\n\n }\n\n ictrs.add(new_ob);\n }\n }\n }\n }\n return ictrs;\n }", "@Dimensional(designDocument = \"userGeo\", spatialViewName = \"byLocation\")\n List<User> findByLocationWithin(Box cityBoundingBox);", "Rectangle getBounds();", "Rectangle getBoundingBox(Rectangle rect);", "public Iterable<Point2D> range(RectHV rect) {\n //rect\n Queue<Point2D> range = new Queue<Point2D>();\n \n for (Point2D p: bst.keys()) {\n if (rect.contains(p)) {\n range.enqueue(p);\n }\n }\n return range; \n }", "public abstract int[] getCoords();", "public Iterable<Point2D> range(RectHV rect) {\n ArrayList<Point2D> returnArray = new ArrayList<Point2D>();\n if (rect == null) {\n throw new IllegalArgumentException(\"rect input is null\");\n }\n for (Point2D i : pointsSet) {\n if (rect.contains(i))\n returnArray.add(i);\n }\n return returnArray;\n }", "private Coordinate[] generateBoundingBox(final Geometry geometry) {\n if (geometry == null || geometry.getCoordinates() == null || geometry.getCoordinates().length == 0) {\n return new Coordinate[]{new Coordinate(0,0),new Coordinate(0,0)};\n }\n final Coordinate firstPoint = geometry.getCoordinates()[0];\n double minLat = firstPoint.y;\n double minLon = firstPoint.x;\n double maxLat = firstPoint.y;\n double maxLon = firstPoint.x;\n for (final Coordinate coordinate : geometry.getCoordinates()) {\n if (coordinate.x < minLon) {\n minLon = coordinate.x;\n }\n if (coordinate.y < minLat) {\n minLat = coordinate.y;\n }\n if (coordinate.x > maxLon) {\n maxLon = coordinate.x;\n }\n if (coordinate.y > maxLat) {\n maxLat = coordinate.y;\n }\n }\n return new Coordinate[]{\n new Coordinate(minLon, minLat),\n new Coordinate(maxLon, maxLat)\n };\n }", "public Set<Coordinate> getAllSurroundingCellsAsCoordinates() {\n Set<MapCoordinate> mapCoordinates = getAllSurroundingCellsAsMapCoordinatesStartingFromTopLeft(1);\n return mapCoordinates\n .stream()\n .map(mapCoordinate -> mapCoordinate.toCoordinate())\n .collect(\n Collectors.toSet()\n );\n }", "public void x(Connection connection, Connection connection2) throws SQLException {\n\t\t\r\n\t\tSet<Long> gaugeContainingPolygonIds = new HashSet<Long>();\r\n\t\t\r\n\t\t// get all polygon\r\n\t\tStatement statement = connection2.createStatement();\r\n\t\tResultSet executeQuery = statement.executeQuery(\"SELECT id, name, ST_X(ST_ASTEXT(geom)), ST_Y(ST_ASTEXT(geom)) FROM gauge\");\r\n\t\twhile(executeQuery.next()) {\r\n\t\t\tString lon = executeQuery.getString(3);\r\n\t\t\tString lat = executeQuery.getString(4);\r\n\t\t\tString name = executeQuery.getString(2);\r\n\t\t\tStatement statementGaugePolygon = connection.createStatement();\r\n\t\t\t// get the polygons which are very close to the gauges, assuming that they are very close to the shore\r\n\t\t\tResultSet execute = statementGaugePolygon.executeQuery(\"SELECT osm_id FROM planet_osm_polygon AS b WHERE ST_DWithin(way, ST_Transform(ST_GeomFromText( 'POINT(\" + lon + \" \" + lat + \")', 4326), 900913), 100) AND (water is not null OR waterway is not null OR \\\"natural\\\" = 'water')\");\r\n\t\t\twhile(execute.next()) {\r\n\t\t\t\tlong id = execute.getLong(1);\r\n\t\t\t\tgaugeContainingPolygonIds.add(id);\r\n\t\t\t\tSystem.out.println(id + \":\" + lat + \":\" + lon + \":\" + name);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n////\t\tgaugeNodes.add(3566912L);\r\n////\t\tgaugeNodes.add(4252513L);\r\n//\t\tgaugeNodes.add(144017399L);\r\n\t\t\r\n\t\tSet<Long> set = new HashSet<Long>();\r\n\t\tset.add(27425090L);\r\n\t\tLong neighbors = getNeighbors(connection, set, 0, gaugeContainingPolygonIds, new HashSet<Long>());\r\n\t\tSystem.out.println(\"target\" + neighbors);\r\n\t}", "private HashMap<Coordinate, Coordinate> getAreaIntersectionPt( Geometry gfaPoly )\n\t{\n\t\tHashMap<Coordinate, Coordinate>\tinterPtsPair = new HashMap<Coordinate, Coordinate>();\t\n\n\t\tArrayList<Coordinate> interPts = new ArrayList<Coordinate>();\t\t\n\t\tArrayList<Coordinate> pts;\n\t\tArrayList<Integer> interIndex = new ArrayList<Integer>();\n\t\tArrayList<Integer> indx = new ArrayList<Integer>();\n\t\t\n\t\t//Reorder in clockwise - first point is repeated at the end.\n\t\tArrayList<Coordinate> gfaPoints = new ArrayList<Coordinate>();\n\t\tfor ( Coordinate c : gfaPoly.getCoordinates() ) {\n\t\t\tgfaPoints.add( c );\n\t\t}\n\t\t\n\t\tArrayList<Coordinate> cwGfaPts = GfaSnap.getInstance().reorderInClockwise( gfaPoints, null );\n\t\t\n\t\t//Get all intersection point with FA region common border.\n\t\tHashMap<String, Geometry> areaCommBnds = GfaClip.getInstance().getFaAreaXCommBounds();\t\n\t\tfor ( Geometry bnd : areaCommBnds.values() ) {\n\t\t\tpts = GfaClip.getInstance().lineIntersect( cwGfaPts.toArray( new Coordinate[ cwGfaPts.size() ]), \n\t\t\t\t\t bnd.getCoordinates(), indx );\n\t\t\t\n\t\t\tif ( pts.size() > 0 ) {\n\t\t\t\tinterPts.addAll( pts );\n\t\t\t\tinterIndex.addAll( indx );\n\t\t\t}\n\t\t}\n\n\t\tif ( interPts.size() <= 0 ) {\n\t\t\treturn interPtsPair;\n\t\t}\n\n\t\t/*\n\t\t * Find the area common bound points inside the polygon to ensure\n\t\t * the new snap points will not cluster with these points.\n\t\t */\n\t\t ArrayList<Coordinate> checkPoints = new ArrayList<Coordinate>();\n\t\t for ( Geometry g : areaCommBnds.values() ) {\t\t\t \n\t\t\t for ( Coordinate c : g.getCoordinates() ) {\n\t\t\t\t Geometry pp = GfaClip.getInstance().pointsToGeometry( new Coordinate[]{ c } );\n\t\t\t\t if ( !checkPoints.contains( c ) && pp.within( gfaPoly ) ) {\n\t\t\t\t\t checkPoints.add( c );\n\t\t\t\t }\n\t\t\t }\n\t\t }\n\n\t\t /*\n\t\t * Now insert each common intersection point into the el polygon\n\t\t * and snap it outside of the el polygon.\n\t\t * \n\t\t * Note: the point cannot be any point of the el polygon or any \n\t\t * snap point that has been used.\n\t\t * \n\t\t * If an intersection point is not within the clustering distance of \n\t\t * the point before it (Pb) or point after it (Pa), simply insert it into \n\t\t * the polygon and snap it. Otherwise, do the following:\n\t\t * \n\t\t * 1. Pick the closer one of Pb and Pa as Pn. \n\t\t * 2. Check if Pn is within the clustering distance of the common boundary\n\t\t * points inside the FROM line. \n\t\t * 3. If so, snap Pn to the closest point not within the clustering distance\n\t\t * and match the intersection point and Pn to the new point. \n\t\t * 4. If not, match the intersection point with Pn.\n\t\t */\n\t\t ArrayList<Coordinate> usedPoints = new ArrayList<Coordinate>();\n\t\t usedPoints.addAll( cwGfaPts );\n\t\t \n\t\t ArrayList<Coordinate> ePts = new ArrayList<Coordinate>();\t\t \n\t\t for ( int ii = 0; ii < interPts.size(); ii++ ) {\n\t\t\t \n\t\t Coordinate interP = interPts.get( ii );\n\t\t\t Coordinate ptBefore = cwGfaPts.get( interIndex.get( ii ) );\n\t\t\t Coordinate ptAfter = cwGfaPts.get( interIndex.get( ii ) + 1 );\n\t\t\t \n\t\t\t double qdist1 = GfaSnap.getInstance().distance( interP, ptBefore );\n\t\t\t double qdist2 = GfaSnap.getInstance().distance( interP, ptAfter );\n\n\t\t\t int addOne = -1; \t \n\t\t\t int qmatch = -1;\n\t\t\t double qdist;\n\n\t\t\t if ( qdist1 < qdist2 ) {\n\t\t\t\t qmatch = interIndex.get( ii ); \n\t\t\t\t qdist = qdist1;\n\t\t\t }\n\t\t\t else {\n\t\t\t\t qmatch = interIndex.get( ii ) + 1;\n\t\t\t\t qdist = qdist2;\n\t\t\t }\n\n\t\t\t if ( ( qdist / PgenUtil.NM2M ) < GfaSnap.CLUSTER_DIST ) {\n\n\t\t\t\t Coordinate ptMatch = cwGfaPts.get( qmatch );\n\t\t\t\t for ( Coordinate c : checkPoints ) {\n\t\t\t\t\t if ( GfaSnap.getInstance().isCluster( c, ptMatch ) ) {\n\t\t\t\t\t\t addOne = qmatch;\n\t\t\t\t\t\t break;\n\t\t\t\t\t }\n\t\t\t\t }\n\t\t\t\t \t\t\t\t \n\t\t\t\t if ( addOne < 0 ) {\n\t\t\t\t\t interPtsPair.put( new Coordinate( interP ),\n\t\t\t\t\t\t\t new Coordinate( ptMatch ) );\n\t\t\t\t\t continue; //Done - ptMatch is a snapped point.\n\t\t\t\t }\n\t\t\t }\n\t\t\t \n\t\t\t // Snap\n\t\t\t int kk, kk2;\n\t\t\t if ( addOne >= 0 ) {\n\t\t\t kk = addOne;\n\t\t\t kk2 = kk;\n\n\t\t\t ePts.clear();\n\t\t\t ePts.addAll( cwGfaPts );\n\t\t\t }\n\t\t\t else {\t\t\t\t \n\t\t\t ePts.clear();\n\t\t\t\t ePts.addAll( GfaSnap.getInstance().insertArray( cwGfaPts, interIndex.get( ii ) + 1, interP ) );\n\t\t\t\t kk = interIndex.get( ii ) + 1;\n\t\t\t\t kk2 = kk;\n\t\t\t }\n\n\t\t\t \n\t\t\t ePts.remove( ePts.size() - 1 );\n\t\t\t \n\t\t\t Coordinate[] snapped = new Coordinate[1];\n \n\t\t\t //snap....\n\t\t\t int status = GfaSnap.getInstance().snapPtGFA( kk, kk2, usedPoints, checkPoints, \n\t\t\t\t\t\t ePts, true, true, 3.0F, snapped );\n\t\t\t \n\t\t\t if ( status != 0 ) {\n\t\t\t\t if ( addOne >= 0 ) {\n\t\t\t\t\t snapped[ 0 ] = new Coordinate( ePts.get( kk ) );\n\t\t\t\t }\n\t\t\t\t else {\n\t\t\t\t\t snapped[ 0 ] = new Coordinate( interP );\n\t\t\t\t }\n\t\t\t }\n\t\t\t \n\t\t\t interPtsPair.put( new Coordinate( interP ), \n\t\t\t new Coordinate( snapped[ 0 ] ) );\n\t\t\t \n\t\t\t if ( addOne >= 0 ) {\n\t\t\t\t interPtsPair.put( new Coordinate( cwGfaPts.get( addOne ) ), \n\t\t new Coordinate( snapped[ 0 ] ) );\t\t\t\t \n\t\t\t }\t\n\t\t\t \n\t\t\t usedPoints.add( snapped[ 0 ] );\n\t\t\t \n\t\t }\n\t\t\n\t\treturn interPtsPair;\n\t}", "public Tuple2<Integer, ArrayList<Integer>> call(Rectangle rectangle) throws Exception {\n\t\t\t\t\tList<Rectangle> firstInputCollection = firstInput.value();\n\t\t\t\t\tArrayList<Integer> secondInputIds = new ArrayList<Integer>();\n\t\t\t\t\t// Iterate the second input and check for the second set\n\t\t\t\t\t// of rectangle id’s\n\t\t\t\t\t// that hold the rectangle from first set obtained from\n\t\t\t\t\t// the mapped RDD\n\t\t\t\t\tfor (Rectangle firstRects : firstInputCollection) {\n\t\t\t\t\t\tif (rectangle.isRectangleinsideQueryWindow(firstRects)) {\n\t\t\t\t\t\t\tsecondInputIds.add(firstRects.getRectangleId());\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t// Create a new tuple of the mapped values and return\n\t\t\t\t\t// back the mapped\n\t\t\t\t\t// transformation.\n\t\t\t\t\tTuple2<Integer, ArrayList<Integer>> resultList = new Tuple2<Integer, ArrayList<Integer>>(rectangle\n\t\t\t\t\t\t\t.getRectangleId(), secondInputIds);\n\t\t\t\t\treturn resultList;\n\t\t\t\t}", "public Map<Integer, Boolean> getOverlaps(Geometry geom) throws SQLException {\n return retrieveExpected(createNativeOverlapsStatement(geom), BOOLEAN);\n }", "public Iterable<Point2D> range(RectHV rect) {\n SET<Point2D> point_list = new SET<Point2D>();\n rangesearch(root, rect, point_list);\n return point_list;\n }", "public Map<Integer, Geometry> getGeomUnion(Geometry geom) throws SQLException {\n return retrieveExpected(createNativeGeomUnionStatement(geom), GEOMETRY);\n }", "private boolean isBetweenBounds(int x, int y, int[] bounds) {\n return x >= bounds[0] && x <= bounds[2] && y >= bounds[1] && y <= bounds[3];\n }", "public Set<Point> getHitboxPoints() {\n Set<Point> hitboxPoints = new HashSet<>();\n\n for(Point p : relevantPoints)\n {\n int currX = (int)(p.x + xPos - (getWidth() / 2));\n int currY = (int)(p.y + yPos - (getHeight() / 2));\n\n hitboxPoints.add(new Point(currX, currY));\n }\n\n return hitboxPoints;\n }", "public static void obtenerInfoColisionJugador(Jugador jugador, Objeto col,String[] direccion, ArrayList<Objeto> obj_colision) {\n Rectangle[] lados_ente = jugador.objeto_ente.getRectangle();\n Rectangle[] lados_col = col.getRectangle();\n\n \n if (col.getTag().compareToIgnoreCase(Objeto.Tag.COMIDA) == 0 || col.getTag().compareToIgnoreCase(Objeto.Tag.MONEDA) == 0) {\n //System.out.println(\"COMIDA\");\n for(int i=0;i<4;i++)\n if (lados_ente[i].intersects(lados_col[0])) {\n obj_colision.add(col);\n return;\n }\n }\n\n \n \n if (col.getTag().compareToIgnoreCase(Objeto.Tag.ENEMIGO) == 0) {\n\n //System.out.println(lados_ente[0].x + \" con \" + lados_col[0].x + \" tag: \" + col.getId());\n if (lados_ente[0].intersects(lados_col[2])) {\n //\"arriba\";\n obj_colision.add(col);\n direccion[0] = \"enemigo_arriba\";\n }\n //else\n // System.out.println(lados_ente[0].y + \" con \" + lados_col[2].y + \" tag: \" + col.getId());\n if (lados_ente[1].intersects(lados_col[3])) {\n //\"derecha\";\n obj_colision.add(col);\n direccion[1] = \"enemigo_derecha\";\n\n }\n if (lados_ente[2].intersects(lados_col[0])) {\n //\"abajo\";\n obj_colision.add(col);\n direccion[2] = \"enemigo_abajo\";\n }\n if (lados_ente[3].intersects(lados_col[1])) {\n //\"izquierda\";\n obj_colision.add(col);\n direccion[3] = \"enemigo_izquierda\";\n }\n\n }\n \n if (col.getTag().compareToIgnoreCase(Objeto.Tag.NPC) == 0) {\n\n //System.out.println(lados_ente[0].x + \" con \" + lados_col[0].x + \" tag: \" + col.getId());\n if (lados_ente[0].intersects(lados_col[0])) {\n //\"arriba\";\n obj_colision.add(col);\n direccion[0] = \"npc_arriba\";\n }\n //else\n // System.out.println(lados_ente[0].y + \" con \" + lados_col[2].y + \" tag: \" + col.getId());\n if (lados_ente[1].intersects(lados_col[0])) {\n //\"derecha\";\n obj_colision.add(col);\n direccion[1] = \"npc_derecha\";\n\n }\n if (lados_ente[2].intersects(lados_col[0])) {\n //\"abajo\";\n obj_colision.add(col);\n direccion[2] = \"npc_abajo\";\n }\n if (lados_ente[3].intersects(lados_col[0])) {\n //\"izquierda\";\n obj_colision.add(col);\n direccion[3] = \"npc_izquierda\";\n }\n\n }\n\n if (lados_ente[0].intersects(lados_col[0])) {\n //\"arriba\";\n obj_colision.add(col);\n direccion[0] = \"entorno_arriba\";\n }\n if (lados_ente[1].intersects(lados_col[0])) {\n //\"derecha\";\n obj_colision.add(col);\n direccion[1] = \"entorno_derecha\";\n }\n if (lados_ente[2].intersects(lados_col[0])) {\n //\"abajo\";\n obj_colision.add(col);\n direccion[2] = \"entorno_abajo\";\n }\n if (lados_ente[3].intersects(lados_col[0])) {\n //\"izquierda\";\n obj_colision.add(col);\n direccion[3] = \"entorno_izquierda\";\n }\n }", "@Override\n\tpublic List<DisplayResult> getResults(ReferencedEnvelope bounds) {\n\t\t\n\t\tString whereClause = bounds != null ? \"WHERE ST_Transform(geom, 4326) && ST_MakeEnvelope(\"+bounds.getMinX()+\",\"+bounds.getMinY()+\",\"+bounds.getMaxX()+\",\"+bounds.getMaxY()+\") \" : \"\";\n\t\t\n\t\t//Only latest results\n\t\tString query = \"SELECT DISTINCT ON (meshblock_id) id, meshblock_id, operat_score, date_entered, ST_AsText(ST_Transform(centroid,4326)), ST_AsText(ST_Transform(geom,4326)), \"\n\t\t\t\t+ \"natural_elements_score, incivilities_and_nuisance_score, navigation_and_mobility_score, territorial_score \"\n\t\t\t\t+ \"FROM result \"\n\t\t\t\t+ whereClause\n\t\t\t\t+ \"ORDER BY meshblock_id, date_entered DESC;\";\n\n\t\tSystem.out.println(query);\n\t GeometryFactory geometryFactory = JTSFactoryFinder.getGeometryFactory();\n\n\t WKTReader reader = new WKTReader(geometryFactory);\n\t \n\t\tRowMapper<DisplayResult> rowMapper = (rs, rowNum) -> {\n\t\t\t\n\t\t\tDisplayResult result = new DisplayResult();\n\t\t\tresult.setResultId(rs.getInt(1));\n\t\t\tresult.setMeshblockId(rs.getInt(2));\n\t\t\tresult.setOperatScore(rs.getDouble(3));\n\t\t\t\t\n\t\t\tresult.setNaturalElementsScore(rs.getDouble(7));\n\t\t\tresult.setIncivilitiesScore(rs.getDouble(8));\n\t\t\tresult.setNavigationScore(rs.getDouble(9));\n\t\t\tresult.setTerritorialScore(rs.getDouble(10));\n\t\t\tPoint point;\n\t\t\ttry {\n\t\t\t\tpoint = (Point) reader.read(rs.getString(5));\n\t\t\t\tresult.setCentroid(point.toString());\n\t\t\t\tresult.setLat(point.getCoordinate().y);\n\t\t\t\tresult.setLng(point.getCoordinate().x);\n\t\t\t\t\t\n\t\t\t\tresult.setGeom(rs.getString(6));\n\t\t\t\t\n\t\t\t} catch (ParseException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\treturn result;\n\t\t};\n\t\t\n\t\treturn jdbcTemplate.query(query, rowMapper);\n\t\t\n\t}", "@NonNull JavaBoundingBox[] collision();", "private Intersection[] getExtremIntersection(){\n if(!mapLoaded){\n return null;\n }\n Intersection northernmost = intersectionList.get(0);\n Intersection southernmost = intersectionList.get(0);\n Intersection easternmost = intersectionList.get(0);\n Intersection westernmost = intersectionList.get(0);\n\n for(int i=0 ; i<intersectionList.size() ; i++){\n Intersection testedIntersection = intersectionList.get(i);\n //north\n if(northernmost.getLatitude() < testedIntersection.getLatitude()) {\n northernmost = testedIntersection;\n }\n //south\n if(southernmost.getLatitude() > testedIntersection.getLatitude()) {\n southernmost = testedIntersection;\n }\n //east\n if(easternmost.getLongitude() < testedIntersection.getLongitude()) {\n easternmost = testedIntersection;\n }\n //west\n if(westernmost.getLongitude() > testedIntersection.getLongitude()) {\n westernmost = testedIntersection;\n }\n }\n Intersection[] extremum = {northernmost , southernmost , easternmost , westernmost};\n return extremum;\n }", "@Test\n public void testBoundsAsCompositesWithOneEqRestrictionsAndOneClusteringColumn()\n {\n CFMetaData cfMetaData = newCFMetaData(Sort.ASC);\n\n ByteBuffer clustering_0 = ByteBufferUtil.bytes(1);\n Restriction eq = newSingleEq(cfMetaData, 0, clustering_0);\n\n PrimaryKeyRestrictions restrictions = new PrimaryKeyRestrictionSet(cfMetaData.comparator);\n restrictions = restrictions.mergeWith(eq);\n\n List<Composite> bounds = restrictions.boundsAsComposites(cfMetaData, Bound.START, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), clustering_0, EOC.START);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.END, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), clustering_0, EOC.END);\n }", "public Map<Integer, ArrayList<LatLng>> shapeCoordinates (Map<Integer, ArrayList<LatLng>> shapeIdList) {\r\n Cursor getData = getReadableDatabase().rawQuery(\"select shape_id, shape_pt_lat, shape_pt_lon from shapes\", null);\r\n int count = 1;\r\n // Make sure start off the first position of the table\r\n getData.moveToFirst();\r\n // Store the index of end of the table\r\n int end = getData.getCount();\r\n // Loop through all the key\r\n for(Integer key : shapeIdList.keySet()) {\r\n // Create a new Arraylist\r\n ArrayList<LatLng> shapeCoordinates = new ArrayList<LatLng>();\r\n while (key == getData.getInt(0)) {\r\n // Add coordinate into the list\r\n shapeCoordinates.add(new LatLng(getData.getDouble(1), getData.getDouble(2)));\r\n count++;\r\n if (count == end) {\r\n break;\r\n }\r\n // Move to next table\r\n getData.moveToPosition(count);\r\n }\r\n // store the key and list into the HashMap\r\n shapeIdList.put(key, shapeCoordinates);\r\n }\r\n\r\n return shapeIdList;\r\n }", "private List<HashMap<TimeSelector, Long>> updateEq(\n HashMap<ComparableExpression, HashSet<ComparableExpression>> rEq,\n HashMap<TimeSelector, Long> lowerBounds, HashMap<TimeSelector, Long> upperBounds)\n throws QueryContradictoryException {\n\n ArrayList<ArrayList<ComparableExpression>> eq = relationToTuples(rEq);\n for (ArrayList<ComparableExpression> tuple : eq) {\n TimeSelector selector = null;\n TimeLiteral literal = null;\n // only comparisons between a selector and a literal are interesting here\n if (tuple.get(0) instanceof TimeSelector && tuple.get(1) instanceof TimeLiteral) {\n selector = (TimeSelector) tuple.get(0);\n literal = (TimeLiteral) tuple.get(1);\n } else if (tuple.get(1) instanceof TimeSelector && tuple.get(0) instanceof TimeLiteral) {\n selector = (TimeSelector) tuple.get(1);\n literal = (TimeLiteral) tuple.get(0);\n } else {\n continue;\n }\n // for selector=literal, lowerBound(selector) = literal and upperBound(selector) = literal\n Long literalValue = literal.getMilliseconds();\n if (lowerBounds.get(selector) > literalValue || upperBounds.get(selector) < literalValue) {\n throw new QueryContradictoryException();\n } else {\n lowerBounds.put(selector, literalValue);\n upperBounds.put(selector, literalValue);\n }\n }\n return Arrays.asList(lowerBounds, upperBounds);\n }", "private ResultSet getSpatialQueryResults(final Connection conn, final SearchRegion region) throws SQLException {\n final Statement stmt = conn.createStatement();\n final double lx = region.getLx(), ly = region.getLy(), rx = region.getRx(), ry = region.getRy();\n\n //Careful about the precision of the float from string formatter\n final String spatial_query = String.format(\"SELECT * FROM item_location WHERE \"\n + \"MBRContains(GeomFromText('Polygon((%f %f, %f %f, %f %f, %f %f, %f %f))'), coord)\", \n lx, ly, lx, ry, rx, ry, rx, ly, lx, ly);\n return stmt.executeQuery(spatial_query);\n }", "public Rectangle getBounds();", "public Rectangle getBounds();" ]
[ "0.6831715", "0.6491324", "0.6075711", "0.5943503", "0.58803844", "0.58339465", "0.56223094", "0.5618762", "0.55206317", "0.5436981", "0.53811383", "0.53115284", "0.5307903", "0.52897394", "0.52802956", "0.52749574", "0.52576935", "0.52109873", "0.52082026", "0.51717305", "0.51696134", "0.514094", "0.5125466", "0.5101154", "0.5093611", "0.50828874", "0.5079888", "0.5060722", "0.5043015", "0.5041541", "0.50370985", "0.50344235", "0.5028439", "0.5025569", "0.4990255", "0.49855345", "0.49782348", "0.49776804", "0.49768823", "0.49758032", "0.49538296", "0.49505883", "0.49479622", "0.49456877", "0.4932604", "0.49192977", "0.49104783", "0.49104783", "0.49018314", "0.48957145", "0.48903075", "0.48465264", "0.48443273", "0.48423895", "0.48401165", "0.4836208", "0.48333222", "0.48234513", "0.4821606", "0.4820572", "0.48148888", "0.48148185", "0.4806565", "0.480411", "0.47900188", "0.4786844", "0.47867158", "0.47866905", "0.47850478", "0.4782858", "0.47819823", "0.4777857", "0.47753224", "0.47660986", "0.47552854", "0.47522497", "0.4747122", "0.4743837", "0.47389868", "0.4735441", "0.47298956", "0.47295702", "0.47217438", "0.4721729", "0.47214878", "0.4718471", "0.47056404", "0.46938923", "0.4688821", "0.46883476", "0.468289", "0.46812278", "0.46661508", "0.46653467", "0.46597463", "0.46571764", "0.4653484", "0.46417737", "0.46349564", "0.46349564" ]
0.6087959
2
Retrieves the couple (id, geoId) of all the spatial object that intersects with the bounds given as input
Multimap<String, String> intersects(Polygon bounds);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Multimap<String, String> intersects(RectangleLatLng bounds);", "Multimap<String, String> intersects(Circle bounds);", "List<GeoPoint> findGeoIntersections(Ray ray);", "public List<PointDetails> getIntersectingPoints(Rectangle2D rect) {\n\t\tboolean useParallelStreaming = numPoints() > 10000;\n\t\treturn Utils.parallelize(getPointDetails().stream(), useParallelStreaming)\n\t\t\t\t.filter(p->rect.contains(p.location))\n\t\t\t\t.collect(Collectors.toList());\n\t}", "List<Long> getBestSolIntersection();", "RectangleLatLng getBounds();", "public static S2CellUnion findCellIds(S2LatLngRect latLngRect) {\n\n\t\tConcurrentLinkedQueue<S2CellId> queue = new ConcurrentLinkedQueue<S2CellId>();\n\t\tArrayList<S2CellId> cellIds = new ArrayList<S2CellId>();\n\n\t\tfor (S2CellId c = S2CellId.begin(0); !c.equals(S2CellId.end(0)); c = c.next()) {\n\t\t\tif (containsGeodataToFind(c, latLngRect)) {\n\t\t\t\tqueue.add(c);\n\t\t\t}\n\t\t}\n\n\t\tprocessQueue(queue, cellIds, latLngRect);\n\t\tassert queue.size() == 0;\n\t\tqueue = null;\n\n\t\tif (cellIds.size() > 0) {\n\t\t\tS2CellUnion cellUnion = new S2CellUnion();\n\t\t\tcellUnion.initFromCellIds(cellIds); // This normalize the cells.\n\t\t\t// cellUnion.initRawCellIds(cellIds); // This does not normalize the cells.\n\t\t\tcellIds = null;\n\n\t\t\treturn cellUnion;\n\t\t}\n\n\t\treturn null;\n\t}", "public double[] getHitGeoCoord();", "Multimap<String, String> intersects(PointLatLng point);", "public Map<Integer, Boolean> getIntersects(Geometry geom) throws SQLException {\n return retrieveExpected(createNativeIntersectsStatement(geom), BOOLEAN);\n }", "protected abstract Iterable<E> getIntersecting(D lower, D upper);", "public Bounds getLatLonBounds(BoundsObject bounds) {\n\t\treturn null;\n\t}", "public final BoundingBox getBounds() {\n\t\tif (bounds==null) {\n\t\t\tint srsID =( (Geometry)this.get(0).getDefaultGeometry()).getSRID();\n\t\t\tBoundingBox re = new BoundingBoxImpl(\"\"+srsID);\n\t\t\tfor (SimpleFeature f : this) {\n\t\t\t\tre.include(f.getBounds());\n\t\t\t}\n\t\t\tbounds = re;\n\t\t}\n\t\treturn bounds;\n\t}", "boolean intersects( Geometry gmo );", "public Map<Integer, Geometry> getIntersection(Geometry geom) throws SQLException {\n return retrieveExpected(createNativeIntersectionStatement(geom), GEOMETRY);\n }", "Collection<Point> getCoordinates(int... ids);", "public ReferencedEnvelope getBounds(){\n if(bounds==null){\n // Create Null envelope\n this.bounds = new ReferencedEnvelope(getCRS());\n // First try to find the BBOX definition in the gisNode directly\n try{\n if(gisNode.hasProperty(INeoConstants.PROPERTY_BBOX_NAME)){\n double[] bbox = (double[])gisNode.getProperty(INeoConstants.PROPERTY_BBOX_NAME);\n this.bounds = new ReferencedEnvelope(bbox[0],bbox[1],bbox[2],bbox[3],crs);\n }else{\n System.err.println(\"No BBox defined in the GeoNeo object\");\n }\n }catch(Exception bbox_e){\n System.err.println(\"Failed to interpret BBOX: \"+bbox_e.getMessage());\n bbox_e.printStackTrace(System.err);\n }\n // Secondly, if bounds is still empty, try find all feature geometries and calculate bounds\n try{\n if(this.bounds.isNull()){\n // Try to create envelope from any data referenced by the gisNode\n for(GeoNode node:getGeoNodes()){\n //TODO: support high dimensions\n this.bounds.expandToInclude(node.getCoords()[0], node.getCoords()[1]);\n }\n }\n }catch(Exception bbox_e){\n System.err.println(\"Failed to interpret BBOX: \"+bbox_e.getMessage());\n bbox_e.printStackTrace(System.err);\n }\n }\n return bounds;\n }", "protected abstract NativeSQLStatement createNativeIntersectsStatement(Geometry geom);", "@Override\n final boolean intersect(Bounds bounds, Point4d pickPos) {\n\treturn bounds.intersect(this.bounds, pickPos);\n }", "@Test\n public void testBoundsAsCompositesWithMultiInRestrictions()\n {\n CFMetaData cfMetaData = newCFMetaData(Sort.ASC, Sort.ASC);\n\n ByteBuffer value1 = ByteBufferUtil.bytes(1);\n ByteBuffer value2 = ByteBufferUtil.bytes(2);\n ByteBuffer value3 = ByteBufferUtil.bytes(3);\n Restriction in = newMultiIN(cfMetaData, 0, asList(value1, value2), asList(value2, value3));\n PrimaryKeyRestrictions restrictions = new PrimaryKeyRestrictionSet(cfMetaData.comparator);\n restrictions = restrictions.mergeWith(in);\n\n List<Composite> bounds = restrictions.boundsAsComposites(cfMetaData, Bound.START, QueryOptions.DEFAULT);\n assertEquals(2, bounds.size());\n assertComposite(bounds.get(0), value1, value2, EOC.START);\n assertComposite(bounds.get(1), value2, value3, EOC.START);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.END, QueryOptions.DEFAULT);\n assertEquals(2, bounds.size());\n assertComposite(bounds.get(0), value1, value2, EOC.END);\n assertComposite(bounds.get(1), value2, value3, EOC.END);\n }", "public List<Point> query(Rectangle rectangle) {\n if (!boundary.intersects(rectangle)) {\n return Collections.emptyList();\n }\n\n List<Point> found = new ArrayList<>();\n points.stream()\n .filter(rectangle::contains)\n .forEach(found::add);\n\n if (isSubdivided) {\n found.addAll(nw.query(rectangle));\n found.addAll(ne.query(rectangle));\n found.addAll(se.query(rectangle));\n found.addAll(sw.query(rectangle));\n }\n\n return found;\n }", "public ArrayList<ArrayList<String>> extractCoordsFromWfsXml(String xml_og, String url_geofenceWfs, String serviceIdentifier) {\r\n\t\t\r\n\t\t//logger.debug(xml_og);\r\n\t\tnameSpaceUri = getArbeitsbereichXmlTagFromWfs(url_geofenceWfs); //z.B. focus\r\n\t\tPointPolygon point = new PointPolygon();\r\n\t\tArrayList<String> list_objectid = new ArrayList<String>();\r\n\t\tArrayList<String> list_coords = new ArrayList<String>();\r\n\t\tArrayList<ArrayList<String>> list_coords_objectid = new ArrayList<ArrayList<String>>();\r\n\t\t\r\n\t\t\r\n\t\tDocumentBuilder dbuilder = null;\r\n\t\ttry {\t\t\t\r\n\t\t\tXPath xPath = XPathFactory.newInstance().newXPath();\r\n\t\t\tDocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();\r\n\t\t\tdbFactory.setNamespaceAware(true);\r\n\t DocumentBuilder builder = dbFactory.newDocumentBuilder();\r\n\t Document doc = builder.parse(new InputSource(new StringReader(xml_og)));\r\n\t \t \r\n\t \txPath.setNamespaceContext(new NamespaceContext() {\r\n\t\t\t\t\t\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tpublic Iterator getPrefixes(String namespaceURI) {\r\n\t\t\t\t\t\treturn null;\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tpublic String getPrefix(String namespaceURI) {\r\n\t\t\t\t\t\treturn null;\r\n\t\t\t\t\t}\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t @Override\r\n\t\t\t public String getNamespaceURI(String args) {\r\n\t\t\t if(nameSpaceUri.equals(args)){\r\n\t\t\t \treturn nameSpaceUri;\r\n\t\t\t }else if(\"gml\".equals(args)){\r\n\t\t\t \treturn \"http://www.opengis.net/gml/3.2\"; \t\r\n\t\t\t }else{\r\n\t\t\t \treturn null;\r\n\t\t\t }\r\n\t\t\t }\r\n\t\t\t\t});\t\t\r\n//\t \tString path_offering = \"/wfs:FeatureCollection/wfs:member/geofence_sbg:geofence_sbg_bbox/@gml:id\";\r\n//\t\t\t\tNode node_offering = (Node)xPath.compile(path_offering).evaluate(doc, XPathConstants.NODE);\r\n//\t\t\t\tSystem.out.println(\"offering: \"+node_offering.getNodeValue());\r\n\t\t\t\t/*\r\n\t\t\t\tString path_offering = \"/soap:Envelope/soap:Body/sos:Capabilities/@version\";\r\n\t\t\t\tNode node_offering = (Node)xPath.compile(path_offering).evaluate(doc, XPathConstants.NODE);\r\n\t\t\t\tSystem.out.println(\"offering: \"+node_offering.getTextContent());\r\n\t\t\t\t\r\n\t\t\t\tString path_procedures = \"//om:OM_Observation[@name='GetObservation']/ows:Parameter[@name='procedure']/ows:AllowedValues/ows:Value\"; */\r\n//\t\t\t\tString pathToLoading = \"//om:OM_Observation[om:observedProperty[@xlink:href='http://ispace.researchstudio.at/ont/swe/property/Loading']]/om:result\";\r\n\t\t\t\t\r\n\r\n\t \tString pathToObjectid = \"//\"+nameSpaceUri +\":objectid\";\r\n\t \tNodeList nodes_Objectid = (NodeList)xPath.compile(pathToObjectid).evaluate(doc, XPathConstants.NODESET);\r\n\t \t\r\n\t\t\t\tString pathToCoordinates =\"//gml:LinearRing/gml:posList\";\r\n\t\t\t\tNodeList nodes_position = (NodeList)xPath.compile(pathToCoordinates).evaluate(doc, XPathConstants.NODESET);\r\n\t\t\t\t//book[title/@lang = 'it'] [@uom='abc']\r\n\t\t\t\t//myNodeList.item(0).setNodeValue(\"Hi test!\");\r\n\t\t\t\tString xy= \"\";\r\n\t\t\t\t\r\n\t\t\t//\tlogger.debug(\"vor for loop ParserXmlJson.extractPointFromIO:\"+ nodes_position.getLength());\t\r\n\t\t\t\tfor(int n = 0; n<nodes_position.getLength(); n++){\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(serviceIdentifier.equals(\"within\")){\r\n\t\t\t\t\t\tpoint.list_ofStrConsistingOf5CoordinatesForBoundingBox.add(nodes_position.item(n).getTextContent());\r\n\t\t\t\t\t}else{\r\n\t\t\t\t\t\tpoint.list_ofStrConsistingOf5CoordinatesForBoundingBoxWithin.add(nodes_position.item(n).getTextContent());\r\n\t\t\t\t\t}\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\tlist_coords.add(nodes_position.item(n).getTextContent());\r\n\t\t\t\t\t\r\n\t\t\t\t\tlist_objectid.add(nodes_Objectid.item(n).getTextContent());\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t//node_procedures.item(n).setTextContent(\"4444\");\r\n\t\t\t\t\t//System.out.println(\"ParserXmlJson.parseInsertObservation:parser EDITED:\"+node_procedures.item(n).getTextContent());\r\n\t\t\t\t}\t\t\t\r\n\t\t\t//\tSystem.out.println(TextFiles.xmlDocument2StringWithPrettyPrint(doc, 2));\r\n\t\t\t\ttry{\r\n\t\t\t\t\t\r\n\t\t\t\t}catch(Exception e){\r\n\t\t\t\t\tSystem.out.println(\"Error: maybe no coordinates!\");\r\n\t\t\t\t\te.printStackTrace();\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t}catch(Exception ex){\r\n\t\t\tex.printStackTrace();\r\n\t\t}\t\t\t\r\n\t\tlist_coords_objectid.add(list_coords);\r\n\t\tlist_coords_objectid.add(list_objectid);\r\n\t\treturn list_coords_objectid;//point.list_ofStrConsistingOf5CoordinatesForBoundingBox;\t\t\t\t\r\n\t}", "public Stream<Area> extractBounds() {\n if (getPolygonsAsJson() != null && !getPolygonsAsJson().trim().equalsIgnoreCase(\"[]\")) {\n ObjectMapper mapper = new ObjectMapper();\n try {\n @SuppressWarnings(\"unchecked\")\n ArrayList<LinkedHashMap<String, Double>> bounds = (ArrayList<LinkedHashMap<String, Double>>) mapper.readValue(getPolygonsAsJson(), ArrayList.class);\n return bounds.stream().map(entry -> new Area(entry.get(LEFT), entry.get(TOP), entry.get(RIGHT), entry.get(BOTTOM)));\n } catch (IOException e) {\n throw new EmbryonicException(\"Error parsing json for InterestOfAreas\", e);\n }\n }\n return Stream.empty();\n }", "public Iterable<Point2D> range(RectHV rect) {\n\n if (rect == null)\n throw new IllegalArgumentException(\"Got null object in range()\");\n \n Queue<Point2D> pointsInside = new Queue<>();\n \n for (Point2D p : point2DSET) {\n \n double x = p.x();\n double y = p.y();\n if (x >= rect.xmin() && x <= rect.xmax() &&\n y >= rect.ymin() && y <= rect.ymax())\n pointsInside.enqueue(p);\n \n }\n \n return pointsInside;\n }", "public PickBounds(Bounds boundsObject) {\n\tbounds = boundsObject;\n }", "public abstract boolean intersect(BoundingBox bbox);", "@Test\n public void testBoundsAsCompositesWithEqAndInRestrictions()\n {\n CFMetaData cfMetaData = newCFMetaData(Sort.ASC, Sort.ASC);\n\n ByteBuffer value1 = ByteBufferUtil.bytes(1);\n ByteBuffer value2 = ByteBufferUtil.bytes(2);\n ByteBuffer value3 = ByteBufferUtil.bytes(3);\n Restriction eq = newSingleEq(cfMetaData, 0, value1);\n Restriction in = newSingleIN(cfMetaData, 1, value1, value2, value3);\n PrimaryKeyRestrictions restrictions = new PrimaryKeyRestrictionSet(cfMetaData.comparator);\n restrictions = restrictions.mergeWith(eq).mergeWith(in);\n\n List<Composite> bounds = restrictions.boundsAsComposites(cfMetaData, Bound.START, QueryOptions.DEFAULT);\n assertEquals(3, bounds.size());\n assertComposite(bounds.get(0), value1, value1, EOC.START);\n assertComposite(bounds.get(1), value1, value2, EOC.START);\n assertComposite(bounds.get(2), value1, value3, EOC.START);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.END, QueryOptions.DEFAULT);\n assertEquals(3, bounds.size());\n assertComposite(bounds.get(0), value1, value1, EOC.END);\n assertComposite(bounds.get(1), value1, value2, EOC.END);\n assertComposite(bounds.get(2), value1, value3, EOC.END);\n }", "public List<LatLng> getCoordinates() {\n return getGeometryObject();\n }", "public ArrayList<ArrayList<String>> extractCoordsFromWfsXml(String xml_og) {\r\n\t\tSystem.out.println(\"ParserXmlJson.extractBoundingBoxFromWfsXml: \"+ xml_og);\r\n\t\tPointPolygon point = new PointPolygon();\r\n\t\tArrayList<String> list_objectid = new ArrayList<String>();\r\n\t\tArrayList<String> list_coords = new ArrayList<String>();\r\n\t\tArrayList<ArrayList<String>> list_coords_objectid = new ArrayList<ArrayList<String>>();\r\n\t\t\r\n\t\t\r\n\t\tDocumentBuilder dbuilder = null;\r\n\t\ttry {\t\t\t\r\n\t\t\tXPath xPath = XPathFactory.newInstance().newXPath();\r\n\t\t\tDocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();\r\n\t\t\tdbFactory.setNamespaceAware(true);\r\n\t DocumentBuilder builder = dbFactory.newDocumentBuilder();\r\n\t Document doc = builder.parse(new InputSource(new StringReader(xml_og)));\r\n\t \t \r\n\t \txPath.setNamespaceContext(new NamespaceContext() {\r\n\t\t\t\t\t\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tpublic Iterator getPrefixes(String namespaceURI) {\r\n\t\t\t\t\t\treturn null;\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tpublic String getPrefix(String namespaceURI) {\r\n\t\t\t\t\t\treturn null;\r\n\t\t\t\t\t}\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t @Override\r\n\t\t\t public String getNamespaceURI(String args) {\r\n\t\t\t if(LoadOnStartAppConfiguration.arbeitsbereichXmlTagPolygon.equals(args)){\r\n\t\t\t \treturn LoadOnStartAppConfiguration.arbeitsbereichXmlTagPolygon;\r\n\t\t\t }else if(\"gml\".equals(args)){\r\n\t\t\t \treturn \"http://www.opengis.net/gml/3.2\"; \t\r\n\t\t\t }else{\r\n\t\t\t \treturn null;\r\n\t\t\t }\r\n\t\t\t }\r\n\t\t\t\t});\t\t\r\n//\t \tString path_offering = \"/wfs:FeatureCollection/wfs:member/geofence_sbg:geofence_sbg_bbox/@gml:id\";\r\n//\t\t\t\tNode node_offering = (Node)xPath.compile(path_offering).evaluate(doc, XPathConstants.NODE);\r\n//\t\t\t\tSystem.out.println(\"offering: \"+node_offering.getNodeValue());\r\n\t\t\t\t/*\r\n\t\t\t\tString path_offering = \"/soap:Envelope/soap:Body/sos:Capabilities/@version\";\r\n\t\t\t\tNode node_offering = (Node)xPath.compile(path_offering).evaluate(doc, XPathConstants.NODE);\r\n\t\t\t\tSystem.out.println(\"offering: \"+node_offering.getTextContent());\r\n\t\t\t\t\r\n\t\t\t\tString path_procedures = \"//om:OM_Observation[@name='GetObservation']/ows:Parameter[@name='procedure']/ows:AllowedValues/ows:Value\"; */\r\n//\t\t\t\tString pathToLoading = \"//om:OM_Observation[om:observedProperty[@xlink:href='http://ispace.researchstudio.at/ont/swe/property/Loading']]/om:result\";\r\n\t\t\t\t\r\n\t\t\t\t//jetzt werden hier aber alle X Y Koordinaten,die sich in InsertObservation.xml wiederholen, ausgelesen werden\r\n\t \tString pathToObjectid = \"//geofence_sbg:objectid\";\r\n\t \tNodeList nodes_Objectid = (NodeList)xPath.compile(pathToObjectid).evaluate(doc, XPathConstants.NODESET);\r\n\t \t\r\n\t\t\t\tString pathToCoordinates =\"//gml:LinearRing/gml:posList\";\r\n\t\t\t\tNodeList nodes_position = (NodeList)xPath.compile(pathToCoordinates).evaluate(doc, XPathConstants.NODESET);\r\n\t\t\t\t//book[title/@lang = 'it'] [@uom='abc']\r\n\t\t\t\t//myNodeList.item(0).setNodeValue(\"Hi mom!\");\r\n\t\t\t\tString xy= \"\";\r\n\t\t\t\t\r\n\t\t\t\tSystem.out.println(\"vor for loop ParserXmlJson.extractPointFromIO:\"+ nodes_position.getLength());\t\r\n\t\t\t\tfor(int n = 0; n<nodes_position.getLength(); n++){\r\n\t\t\t\t\tSystem.out.println(\"ParserXmlJson.extractPointFromIO: \"+nodes_position.item(n).getTextContent());\r\n\t\t\t\t\tpoint.list_ofStrConsistingOf5CoordinatesForBoundingBox.add(nodes_position.item(n).getTextContent());\r\n\t\t\t\t\tlist_coords.add(nodes_position.item(n).getTextContent());\r\n\t\t\t\t\tSystem.out.println(\"ParserXmlJson.extractPointFromIO objectid: \"+nodes_Objectid.item(n).getTextContent());\r\n\t\t\t\t\tlist_objectid.add(nodes_Objectid.item(n).getTextContent());\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t//node_procedures.item(n).setTextContent(\"4444\");\r\n\t\t\t\t\t//System.out.println(\"ParserXmlJson.parseInsertObservation:parser EDITED:\"+node_procedures.item(n).getTextContent());\r\n\t\t\t\t}\t\t\t\r\n\t\t\t//\tSystem.out.println(TextFiles.xmlDocument2StringWithPrettyPrint(doc, 2));\r\n\t\t\t\ttry{\r\n\t\t\t\t\t\r\n\t\t\t\t}catch(Exception e){\r\n\t\t\t\t\tSystem.out.println(\"Error: maybe no coordinates!\");\r\n\t\t\t\t\te.printStackTrace();\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t}catch(Exception ex){\r\n\t\t\tex.printStackTrace();\r\n\t\t}\t\t\t\r\n\t\tlist_coords_objectid.add(list_coords);\r\n\t\tlist_coords_objectid.add(list_objectid);\r\n\t\treturn list_coords_objectid;//point.list_ofStrConsistingOf5CoordinatesForBoundingBox;\t\t\t\t\r\n\t}", "private static void ParseMapXMLGetIntersections()\r\n\t{\r\n\t\ttry {\r\n\t\t\tSAXParserFactory factory = SAXParserFactory.newInstance();\r\n\t\t\tSAXParser saxParser = factory.newSAXParser();\r\n\r\n\t\t\tDefaultHandler handler = new DefaultHandler() {\r\n\r\n\t\t\t\tpublic void startElement(String uri, String localName,\r\n\t\t\t\t\t\tString qName, Attributes attributes)\r\n\t\t\t\t\t\tthrows SAXException {\r\n\r\n\t\t\t\t\tif (qName.equalsIgnoreCase(\"bounds\")) {\r\n\t\t\t\t\t\tint k = attributes.getLength();\r\n\t\t\t\t\t\tSystem.out.println(\"Map boundries:\");\r\n\t\t\t\t\t\tfor (int i = 0; i < k; i++)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tif (attributes.getLocalName(i).compareToIgnoreCase(\"minlat\") == 0)\r\n\t\t\t\t\t\t\t\tSystem.out.println(\"MinLat: \" + attributes.getValue(i));\r\n\t\t\t\t\t\t\tif (attributes.getLocalName(i).compareToIgnoreCase(\"maxlat\") == 0)\r\n\t\t\t\t\t\t\t\tSystem.out.println(\"MaxLat: \" + attributes.getValue(i));\r\n\t\t\t\t\t\t\tif (attributes.getLocalName(i).compareToIgnoreCase(\"minlon\") == 0)\r\n\t\t\t\t\t\t\t\tSystem.out.println(\"MinLon: \" + attributes.getValue(i));\r\n\t\t\t\t\t\t\tif (attributes.getLocalName(i).compareToIgnoreCase(\"maxlon\") == 0)\r\n\t\t\t\t\t\t\t\tSystem.out.println(\"MaxLon: \" + attributes.getValue(i));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tif (qName.equalsIgnoreCase(\"node\")) {\r\n\t\t\t\t\t\tint k = attributes.getLength();\r\n\t\t\t\t\t\tlong id = 0;\r\n\t\t\t\t\t\tdouble lat = 0;\r\n\t\t\t\t\t\tdouble lon = 0;\r\n\t\t\t\t\t\tfor (int i = 0; i < k; i++)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tif (attributes.getLocalName(i).compareToIgnoreCase(\"id\") == 0)\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tid = Long.valueOf(attributes.getValue(i));\r\n\t\t\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tif (attributes.getLocalName(i).compareToIgnoreCase(\"lat\") == 0)\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tlat = Double.valueOf(attributes.getValue(i));\r\n\t\t\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tif (attributes.getLocalName(i).compareToIgnoreCase(\"lon\") == 0)\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tlon = Double.valueOf(attributes.getValue(i));\r\n\t\t\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\thashtableNodes.put(id, new Intersection(lat, lon, id));\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\tif (qName.equalsIgnoreCase(\"nd\")) \r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tlong reference = Long.valueOf(attributes.getValue(0));\r\n\t\t\t\t\t\tif (hashtableCounter.containsKey(reference)) {\r\n\t\t\t\t\t\t\tint value = hashtableCounter.get(reference);\r\n\t\t\t\t\t\t\thashtableCounter.put(reference, value + 1);\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\thashtableCounter.put(reference, 1);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\tpublic void endElement(String uri, String localName,\r\n\t\t\t\t\t\tString qName) throws SAXException {\r\n\r\n\t\t\t\t}\r\n\t\t\t};\r\n\t\t\tsaxParser.parse(MapPath, handler);\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\tSystem.exit(0);\r\n\t\t}\r\n\t\t\r\n\t\t// remove the nodes which only appears once in way's nd.\r\n\t\tLinkedList<Long> removeList = new LinkedList<Long>();\r\n\t\tfor (long theKey : hashtableCounter.keySet())\r\n\t\t{\r\n\t\t\tif (hashtableCounter.get(theKey) <= 1)\r\n\t\t\t{\r\n\t\t\t\tremoveList.add(theKey);\r\n\t\t\t}\r\n\t\t}\r\n\t\tfor (long theKey : removeList)\r\n\t\t{\r\n\t\t\thashtableNodes.remove(theKey);\r\n\t\t}\r\n\t}", "public Map<Integer, Boolean> getWithin(Geometry geom) throws SQLException {\n return retrieveExpected(createNativeWithinStatement(geom), BOOLEAN);\n }", "@GET\n\t@Produces(\"application/json\")\n\t@Path(\"within\")\n\tpublic List<Pizzerias> findPizzeriasWithin(@QueryParam(\"lat1\") float lat1,\n @QueryParam(\"lon1\") float lon1, @QueryParam(\"lat2\") float lat2,\n @QueryParam(\"lon2\") float lon2) {\n dbConnection.checkDatabase();\n\t\tArrayList<Pizzerias> allPizzeriasList = new ArrayList<Pizzerias>();\n\t\tMongoCollection pizzerias = dbConnection.getCollection();\n\n\t\t// make the query object\n\t\tBasicDBObject spatialQuery = new BasicDBObject();\n\n\t\tArrayList<double[]> boxList = new ArrayList<double[]>();\n\t\tboxList.add(new double[] { new Float(lat2), new Float(lon2) });\n\t\tboxList.add(new double[] { new Float(lat1), new Float(lon1) });\n\n\t\tBasicDBObject boxQuery = new BasicDBObject();\n\t\tboxQuery.put(\"$box\", boxList);\n\n\t\tspatialQuery.put(\"pos\", new BasicDBObject(\"$within\", boxQuery));\n\t\tSystem.out.println(\"Using spatial query: \" + spatialQuery.toString());\n\n\t\tMongoCursor<Document> cursor = pizzerias.find(spatialQuery).iterator();\n\t\ttry {\n\t\t\twhile (cursor.hasNext()) {\n\t\t\t\tallPizzeriasList.add(this.populatePizzeriasInformation(cursor.next()));\n\t\t\t}\n\t\t} finally {\n\t\t\tcursor.close();\n\t\t}\n\t\tSystem.out.println(\"Return \" + allPizzeriasList.size() + \" pizzerias\");\n\n\t\treturn allPizzeriasList;\n\t}", "public Map<Integer, Boolean> getContains(Geometry geom) throws SQLException {\n return retrieveExpected(createNativeContainsStatement(geom), BOOLEAN);\n }", "public Coordinates intersection() {\n return intersection;\n }", "List<Coord> allActiveCells();", "Collection<Point> getAllCoordinates();", "public Map<Integer, Geometry> getBoundary() throws SQLException {\n return retrieveExpected(createNativeBoundaryStatement(), GEOMETRY);\n }", "Collection<? extends WrappedIndividual> getContains();", "public interface IdCoordinateSource {\n\n /**\n * Get the matching coordinate for the given ID\n *\n * @param id the ID to look up\n * @return matching coordinate\n */\n Optional<Point> getCoordinate(int id);\n\n /**\n * Get the matching coordinates for the given IDs\n *\n * @param ids the IDs to look up\n * @return the matching coordinates\n */\n Collection<Point> getCoordinates(int... ids);\n\n /**\n * Get the ID for the coordinate point\n *\n * @param coordinate the coordinate to look up\n * @return the matching ID\n */\n Optional<Integer> getId(Point coordinate);\n\n /**\n * Returns all the coordinates of this source\n *\n * @return all available coordinates\n */\n Collection<Point> getAllCoordinates();\n\n /**\n * Returns the nearest n coordinate points. If n is greater than four, this method will try to\n * return the corner points of the bounding box.\n *\n * @param coordinate the coordinate to look up\n * @param n number of searched points\n * @return the nearest n coordinates or all coordinates if n is less than all available points\n */\n List<CoordinateDistance> getNearestCoordinates(Point coordinate, int n);\n\n /**\n * Returns the closest n coordinate points to the given coordinate, that are inside a given\n * bounding box, from a collection of all available points. The bounding box is calculated with\n * the given distance. If n is greater than four, this method will try to return the corner points\n * of the bounding box.\n *\n * @param coordinate the coordinate to look up the nearest neighbours for\n * @param n how many neighbours to look up\n * @param distance to the borders of the envelope that contains the coordinates\n * @return the nearest n coordinates to the given point\n */\n List<CoordinateDistance> getClosestCoordinates(\n Point coordinate, int n, ComparableQuantity<Length> distance);\n\n /**\n * Calculates and returns the nearest n coordinate distances to the given coordinate from a given\n * collection of points. If the set is empty or null an empty list is returned. If n is greater\n * than four, this method will try to return the corner points of the bounding box.\n *\n * @param coordinate the coordinate to look up the nearest neighbours for\n * @param n how many neighbours to look up\n * @param coordinates the collection of points\n * @return a list of the nearest n coordinates to the given point or an empty list\n */\n default List<CoordinateDistance> calculateCoordinateDistances(\n Point coordinate, int n, Collection<Point> coordinates) {\n if (coordinates != null && !coordinates.isEmpty()) {\n SortedSet<CoordinateDistance> sortedDistances =\n GeoUtils.calcOrderedCoordinateDistances(coordinate, coordinates);\n return restrictToBoundingBox(coordinate, sortedDistances, n);\n } else {\n return Collections.emptyList();\n }\n }\n\n /**\n * Method for evaluating the found points. This method tries to return the four corner points of\n * the bounding box of the given coordinate. If one of the found points matches the given\n * coordinate, only this point is returned. If the given number of searched points is less than\n * four, this method will only return the nearest n corner points. If the given number of searched\n * points is greater than four, this method will return the four corner points plus the nearest n\n * points to match the number of searched points.\n *\n * <p>To work properly, the given collection of {@link CoordinateDistance}'s should already be\n * sorted by distance.\n *\n * @param coordinate at the center of the bounding box\n * @param distances list of found points with their distances\n * @param numberOfPoints that should be returned\n * @return list of distances\n */\n default List<CoordinateDistance> restrictToBoundingBox(\n Point coordinate, Collection<CoordinateDistance> distances, int numberOfPoints) {\n boolean topLeft = false;\n boolean topRight = false;\n boolean bottomLeft = false;\n boolean bottomRight = false;\n\n List<CoordinateDistance> resultingDistances = new ArrayList<>();\n List<CoordinateDistance> other = new ArrayList<>();\n\n // search for smallest bounding box\n for (CoordinateDistance distance : distances) {\n Point point = distance.getCoordinateB();\n\n // check for bounding box\n if (!topLeft && (point.getX() < coordinate.getX() && point.getY() > coordinate.getY())) {\n resultingDistances.add(distance);\n topLeft = true;\n } else if (!topRight\n && (point.getX() > coordinate.getX() && point.getY() > coordinate.getY())) {\n resultingDistances.add(distance);\n topRight = true;\n } else if (!bottomLeft\n && (point.getX() < coordinate.getX() && point.getY() < coordinate.getY())) {\n resultingDistances.add(distance);\n bottomLeft = true;\n } else if (!bottomRight\n && (point.getX() > coordinate.getX() && point.getY() < coordinate.getY())) {\n resultingDistances.add(distance);\n bottomRight = true;\n } else if (coordinate.equalsExact(point, 1e-6)) {\n // if current point is matching the given coordinate, we need to return only the current\n // point\n\n resultingDistances.clear();\n resultingDistances.add(distance);\n return resultingDistances;\n } else {\n other.add(distance);\n }\n }\n\n // check if n distances are found\n int diff = numberOfPoints - resultingDistances.size();\n\n if (diff > 0) {\n resultingDistances.addAll(other.stream().limit(diff).toList());\n } else if (diff < 0) {\n return resultingDistances.stream().limit(numberOfPoints).toList();\n }\n\n return resultingDistances;\n }\n}", "int indexOf(GeometricalObject object);", "protected int[] getParticlesByIndexInside( ArrayList<Object> geomObjects,PointXY[] boundingBox ){\r\n\t\t\r\n\t\tArrayList<Integer> pset = new ArrayList<Integer>() ;\r\n\t\tPoint2D testP2D;\r\n\t\tRepulsionFieldParticle particle;\r\n\t\tObject geomObject;\r\n\t\t\r\n\t\tboolean covered;\r\n\t\t\r\n\t\t\r\n\r\n\t\tfor (int i= 0; i<particles.size() ;i++){\r\n\t\t\t\r\n\t\t\tparticle = particles.get(i) ;\r\n\t\t\t\r\n\t\t\t// within bounding box? no? skip the rest , -> next particle by index value\r\n\t\t\tif ((particle.x<boundingBox[0].x-averageDistance*1.1) || (particle.x>boundingBox[1].x+averageDistance*1.1)){\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t\tif ((particle.y<boundingBox[0].y-averageDistance*1.1) || (particle.y>boundingBox[3].y+averageDistance*1.1)){\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t \r\n\t\t\t\r\n\t\t\ttestP2D = new Point2D( particle.x, particle.y);\r\n\t\t\t\r\n\t\t\t// test particle across all ellipses\r\n\t\t\tfor (int s=0;s<geomObjects.size();s++){\r\n\t\t\t\t\r\n\t\t\t\tgeomObject = geomObjects.get(s) ;\r\n\t\t\t\t \r\n\t\t\t\tcovered = isInsideGeomObject(geomObject,testP2D);\r\n\t\t\t\t\r\n\t\t\t\tif (covered) {\r\n\t\t\t\t\tif (pset.contains(i)==false){\r\n\t\t\t\t\t\tpset.add(i) ;\r\n\t\t\t\t\t}\r\n\t\t\t\t\t// out.print(2, \"+++ particle added, index:\"+i+\", location x,y:\" + df.format(particle.x)+\",\" + df.format(particle.y)+\" +++\");\r\n\t\t\t\t}else{\r\n\t\t\t\t\t// out.print(2, \"--- particle NOT added, index:\"+i+\", location x,y:\" + df.format(particle.x)+\",\" + df.format(particle.y)+\" ---\");\r\n\t\t\t\t}\r\n\t\t\t} // s->\r\n\t\t\t\r\n\t\t} // i->\r\n\t\t\r\n\t\t\r\n\t\tint[] particleIndexes = new int[pset.size()] ;\r\n\t\t\r\n\t\tfor (int i=0;i< pset.size();i++){\r\n\t\t\tparticleIndexes[i] = pset.get(i) ;\r\n\t\t}\r\n\t\treturn particleIndexes;\r\n\t}", "@Test\n public void testBoundsAsCompositesWithMultiEqRestrictions()\n {\n CFMetaData cfMetaData = newCFMetaData(Sort.ASC, Sort.ASC);\n\n ByteBuffer value1 = ByteBufferUtil.bytes(1);\n ByteBuffer value2 = ByteBufferUtil.bytes(2);\n Restriction eq = newMultiEq(cfMetaData, 0, value1, value2);\n PrimaryKeyRestrictions restrictions = new PrimaryKeyRestrictionSet(cfMetaData.comparator);\n restrictions = restrictions.mergeWith(eq);\n\n List<Composite> bounds = restrictions.boundsAsComposites(cfMetaData, Bound.START, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), value1, value2, EOC.START);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.END, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), value1, value2, EOC.END);\n }", "public Iterable<Point2D> range(RectHV rect) {\n if (rect == null) throw new IllegalArgumentException(\n \"Null pointer provided instead of a query rectangle\");\n ptsInside = new SET<Point2D>();\n searchForPoints(root, rect);\n return ptsInside;\n }", "void storeObject(RectangleLatLng rectangle, String id);", "public org.landxml.schema.landXML11.RoadwayNameRef xgetIntersectingRoadwayRef()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.landxml.schema.landXML11.RoadwayNameRef target = null;\r\n target = (org.landxml.schema.landXML11.RoadwayNameRef)get_store().find_attribute_user(INTERSECTINGROADWAYREF$20);\r\n return target;\r\n }\r\n }", "public int indexOf(GeometricalObject object);", "long getCoordinates();", "long getCoordinates();", "@Override\r\n\tpublic List<GeoPoint> findGeoIntersections(Ray ray, double maxDistance) {\n\t\treturn null;\r\n\t}", "public S2LatLngRect getBound() {\n // To save time, we ignore numerical errors in the computed S2LatLngs while\n // accumulating the bounds and then account for them here.\n //\n // S2LatLng(S2Point) has a maximum error of 0.955 * S2.DBL_EPSILON in latitude.\n // In the worst case, we might have rounded \"inwards\" when computing the\n // bound and \"outwards\" when computing the latitude of a contained point P,\n // therefore we expand the latitude bounds by 2 * S2.DBL_EPSILON in each\n // direction. (A more complex analysis shows that 1.5 * S2.DBL_EPSILON is\n // enough, but the expansion amount should be a multiple of S2.DBL_EPSILON in\n // order to avoid rounding errors during the expansion itself.)\n //\n // S2LatLng(S2Point) has a maximum error of S2.DBL_EPSILON in longitude, which\n // is simply the maximum rounding error for results in the range [-Pi, Pi].\n // This is true because the Gnu implementation of atan2() comes from the IBM\n // Accurate Mathematical Library, which implements correct rounding for this\n // intrinsic (i.e., it returns the infinite precision result rounded to the\n // nearest representable value, with ties rounded to even values). This\n // implies that we don't need to expand the longitude bounds at all, since\n // we only guarantee that the bound contains the *rounded* latitudes of\n // contained points. The *true* latitudes of contained points may lie up to\n // S2.DBL_EPSILON outside of the returned bound.\n\n S2LatLng expansion = S2LatLng.fromRadians(2 * S2.DBL_EPSILON, 0);\n return builder.build().expanded(expansion).polarClosure();\n }", "private static HashMap<Integer, ArrayList<String>> checkAndMergeIntersectedPoints(HashMap<Integer, ArrayList<String>> boundedRegionPointsMap) {\n\n\t\t// Iterate over regions one by one, to validate with rest of the regions iteratively.\n\t for(Integer key1 : boundedRegionPointsMap.keySet()) {\n\t ArrayList<String> list1 = boundedRegionPointsMap.get(key1);\n\n\t for (Integer key2 : boundedRegionPointsMap.keySet()) {\n\t \t// Only need to check for keys (region counters) incrementally\n\t if (key1 < key2) {\n\t ArrayList<String> list2 = boundedRegionPointsMap.get(key2);\n\t for(String point : list2) {\n\t \t// If there is an intersecting point in two regions, merge them.\n\t if (list1.contains(point)) {\n\t list1.addAll(list2);\n\t // Just to make sure there won't be any duplicate points introduced after the merge.\n\t Set<String> uniquePoints = new HashSet<String>(list1);\n\t boundedRegionPointsMap.put(key1, new ArrayList<String>(uniquePoints));\n\t break;\n\t }\n\t }\n\t }\n\t }\n\n\t }\n\t return boundedRegionPointsMap;\n\t}", "public static S2LatLngRect getBoundingLatLngRect(final GeoRectangle geoRectangle) {\n final GeoPoint minPoint = geoRectangle.getBottomLeft();\n final GeoPoint maxPoint = geoRectangle.getTopRight();\n\n if (minPoint != null && maxPoint != null) {\n final S2LatLng minLatLng = S2LatLng.fromDegrees(minPoint.getLatitude(), minPoint.getLongitude());\n final S2LatLng maxLatLng = S2LatLng.fromDegrees(maxPoint.getLatitude(), maxPoint.getLongitude());\n return new S2LatLngRect(minLatLng, maxLatLng);\n } else {\n throw new IllegalArgumentException(\"min and max points must exist!!!\");\n }\n }", "Collection<Feature> getReference();", "private GObject getCollidingObject() {\n \tdouble x1 = ball.getX();\n \tdouble y1 = ball.getY();\n \tdouble x2 = x1 + BALL_RADIUS * 2;\n \tdouble y2 = y1 + BALL_RADIUS * 2;\n \n \tif (getElementAt(x1, y1) != null) return getElementAt(x1, y1);\n \tif (getElementAt(x1, y2) != null) return getElementAt(x1, y2);\n \tif (getElementAt(x2, y1) != null) return getElementAt(x2, y1);\n \tif (getElementAt(x2, y2) != null) return getElementAt(x2, y2);\n \n \treturn null;\n }", "List<GridCoordinate> getCoordinates(int cellWidth, int cellHeight);", "@SuppressWarnings(\"unchecked\")\n public Collection<T> getWithinQuad(long quad) {\n ArrayList<Object> result = new ArrayList<Object>();\n root.addDescendantsWithinQuad(this, quad, result);\n return (ArrayList<T>) result;\n }", "public Iterable<Point2D> range(RectHV rect) {\n if (rect == null) {\n throw new IllegalArgumentException();\n }\n SET<Point2D> result = new SET<Point2D>();\n for (Point2D point : points) {\n if (rect.contains(point))\n result.add(point);\n }\n return result;\n }", "@Test\n public void testBoundsAsCompositesWithOneInRestrictionsAndOneClusteringColumn()\n {\n ByteBuffer value1 = ByteBufferUtil.bytes(1);\n ByteBuffer value2 = ByteBufferUtil.bytes(2);\n ByteBuffer value3 = ByteBufferUtil.bytes(3);\n\n CFMetaData cfMetaData = newCFMetaData(Sort.ASC, Sort.ASC);\n\n Restriction in = newSingleIN(cfMetaData, 0, value1, value2, value3);\n\n PrimaryKeyRestrictions restrictions = new PrimaryKeyRestrictionSet(cfMetaData.comparator);\n restrictions = restrictions.mergeWith(in);\n\n List<Composite> bounds = restrictions.boundsAsComposites(cfMetaData, Bound.START, QueryOptions.DEFAULT);\n assertEquals(3, bounds.size());\n assertComposite(bounds.get(0), value1, EOC.START);\n assertComposite(bounds.get(1), value2, EOC.START);\n assertComposite(bounds.get(2), value3, EOC.START);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.END, QueryOptions.DEFAULT);\n assertEquals(3, bounds.size());\n assertComposite(bounds.get(0), value1, EOC.END);\n assertComposite(bounds.get(1), value2, EOC.END);\n assertComposite(bounds.get(2), value3, EOC.END);\n }", "public Tuple2<Integer, ArrayList<Integer>> call(Rectangle rectangle) throws Exception {\n\t\t\t\t\tList<Point> firstInputCollection = firstInput.getValue();\n\t\t\t\t\tArrayList<Integer> secondInputIds = new ArrayList<Integer>();\n\t\t\t\t\t// Iterate the second input and check for the second set\n\t\t\t\t\t// of rectangle id’s\n\t\t\t\t\t// that hold the rectangle from first set obtained from\n\t\t\t\t\t// the mapped RDD\n\t\t\t\t\tfor (Point point : firstInputCollection) {\n\t\t\t\t\t\tif (point.isPointinsideQueryWindow(rectangle)) {\n\t\t\t\t\t\t\tsecondInputIds.add(point.getPointID());\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t// Create a new tuple of the mapped values and return\n\t\t\t\t\t// back the mapped\n\t\t\t\t\t// transformation.\n\t\t\t\t\tTuple2<Integer, ArrayList<Integer>> resultList = new Tuple2<Integer, ArrayList<Integer>>(rectangle\n\t\t\t\t\t\t\t.getRectangleId(), secondInputIds);\n\t\t\t\t\treturn resultList;\n\t\t\t\t}", "public Iterable<Point2D> range(RectHV rect) {\n if (rect == null) throw new NullPointerException();\n TreeSet<Point2D> inRangeSet = new TreeSet<>();\n for (Point2D point : pointSet) {\n if (rect.contains(point)) {\n inRangeSet.add(point);\n }\n }\n return inRangeSet;\n }", "public Bounds getBounds () { return (bounds); }", "protected abstract NativeSQLStatement createNativeIntersectionStatement(Geometry geom);", "default List<Point3D> findIntersections(Ray ray) {\n\tList<GeoPoint> geoList = findGeoIntersections(ray);\n\treturn geoList == null ? null\n\t: geoList .stream()\n\t.map(gp -> gp.point)\n\t.collect(Collectors.toList());\n\t}", "@Override\r\n\tpublic List<GeoPoint> findIntersections(Ray ray,double maxDistance) {\n\t List<GeoPoint> intersections = null;\r\n\r\n\t for (Intersectable geo : _geometriesList) {\r\n\t List<GeoPoint> tempIntersections = geo.findIntersections(ray,maxDistance);\r\n\t if (tempIntersections != null) {\r\n\t if (intersections == null)\r\n\t intersections = new ArrayList<GeoPoint>();\r\n\t intersections.addAll(tempIntersections);\r\n\t }\r\n\t }\r\n\t \r\n\r\n\t return intersections;\r\n\r\n\t}", "@Test\n public void testBoundsAsCompositesWithOneEqRestrictionsAndTwoClusteringColumns()\n {\n CFMetaData cfMetaData = newCFMetaData(Sort.ASC, Sort.ASC);\n\n ByteBuffer clustering_0 = ByteBufferUtil.bytes(1);\n Restriction eq = newSingleEq(cfMetaData, 0, clustering_0);\n\n PrimaryKeyRestrictions restrictions = new PrimaryKeyRestrictionSet(cfMetaData.comparator);\n restrictions = restrictions.mergeWith(eq);\n\n List<Composite> bounds = restrictions.boundsAsComposites(cfMetaData, Bound.START, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), clustering_0, EOC.START);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.END, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), clustering_0, EOC.END);\n }", "public List<Float> getBoundingsOfCell() {\n\n\t\tfloat minXPoint = Float.POSITIVE_INFINITY;\n\t\tfloat maxXPoint = Float.NEGATIVE_INFINITY;\n\t\tfloat minYPoint = Float.POSITIVE_INFINITY;\n\t\tfloat maxYPoint = Float.NEGATIVE_INFINITY;\n\n\t\tfor (int i = 0; i < face.edges().size(); i++) {\n\n\t\t\tDCEL_Edge e = (DCEL_Edge) face.edges().get(i);\n\n\t\t\tArc2_Sweep arc = (Arc2_Sweep) e.reference;\n\n\t\t\t// Looking for most left located point of cell\n\t\t\tif (minXPoint > arc.minX().x) {\n\t\t\t\tminXPoint = arc.minX().x;\n\t\t\t}\n\t\t\t// Looking for most right located point of cell\n\t\t\tif (maxXPoint < arc.maxX().x) {\n\t\t\t\tmaxXPoint = arc.maxX().x;\n\t\t\t}\n\t\t\t// Looking for highest located point of cell\n\t\t\tif (minYPoint > arc.minY().y) {\n\t\t\t\tminYPoint = arc.minY().y;\n\t\t\t}\n\t\t\t// Looking for lowest located point of cell\n\t\t\tif (maxYPoint < arc.maxY().y) {\n\t\t\t\tmaxYPoint = arc.maxY().y;\n\t\t\t}\n\n\t\t}\n\n\t\tList<Float> boundings = new ArrayList<Float>();\n\t\tboundings.add(minXPoint);\n\t\tboundings.add(maxXPoint);\n\t\tboundings.add(minYPoint);\n\t\tboundings.add(maxYPoint);\n\t\treturn boundings;\n\n\t}", "public List<Integer> getNeighbourIds() {\n List<Integer> neighbours = new ArrayList<>();\n // get references from the neighbouring cells.\n for (VoronoiHalfEdge halfEdge : halfEdges) {\n VoronoiEdge edge = halfEdge.getEdge();\n if (edge.getLeftSite() != null && edge.getLeftSite().getIdentifier() != site.getIdentifier()) {\n neighbours.add(edge.getLeftSite().getIdentifier());\n } else if (edge.getRightSite() != null && edge.getRightSite().getIdentifier() != site.getIdentifier()) {\n neighbours.add(edge.getRightSite().getIdentifier());\n }\n }\n return neighbours;\n }", "Map<BoardCellCoordinates, Set<Integer>> getWinningCoordinates();", "Pair<Rectangle, Rectangle> getRectangles();", "Collection<? extends Boundary> getIsBoundaryNodeOf();", "@Test\n public void testBoundsAsCompositesWithMultiEqAndSingleSliceRestrictions()\n {\n CFMetaData cfMetaData = newCFMetaData(Sort.ASC, Sort.ASC, Sort.ASC);\n\n ByteBuffer value1 = ByteBufferUtil.bytes(1);\n ByteBuffer value2 = ByteBufferUtil.bytes(2);\n ByteBuffer value3 = ByteBufferUtil.bytes(3);\n\n // (clustering_0, clustering_1) = (1, 2) AND clustering_2 > 3\n Restriction multiEq = newMultiEq(cfMetaData, 0, value1, value2);\n Restriction singleSlice = newSingleSlice(cfMetaData, 2, Bound.START, false, value3);\n PrimaryKeyRestrictions restrictions = new PrimaryKeyRestrictionSet(cfMetaData.comparator);\n restrictions = restrictions.mergeWith(multiEq).mergeWith(singleSlice);\n\n List<Composite> bounds = restrictions.boundsAsComposites(cfMetaData, Bound.START, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), value1, value2, value3, EOC.END);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.END, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), value1, value2, EOC.END);\n }", "Map<Coord, ICell> getAllCells();", "private Map<Geometry, List<Point3D>> getSceneRayIntersections(Ray ray){\n //Map key - geometric\n //value - a list of cut points\n Map<Geometry, List<Point3D>> sceneRayIntersectPions = new HashMap<Geometry, List<Point3D>>();\n //Iterator we can go through all the geometric shapes\n Iterator<Geometry> geometries = _scene.getGeometriesIterator();\n //for each geometry finde intersection points\n while (geometries.hasNext()){\n Geometry geometry = geometries.next();\n List<Point3D> geometryIntersectionPoints = geometry.FindIntersections(ray);\n if(!geometryIntersectionPoints.isEmpty())\n //add geometryIntersectionPoints(list) to key geometry\n sceneRayIntersectPions.put(geometry, geometryIntersectionPoints);\n }\n return sceneRayIntersectPions;\n }", "private List<InternalConstraint> genInternalCtrsForNonOverlapping(NonOverlapping ectr, GeostObject o) {\n List<InternalConstraint> ictrs = new ArrayList<InternalConstraint>();\n List<ShiftedBox> sb = stp.getShape(o.getShapeId().getLB());\n Iterator<Integer> itr;\n itr = ectr.getFrame().getRelForbidRegions().keySet().iterator();\n boolean printit = false;\n while (itr.hasNext()) {\n int i = itr.next();\n if (!(o.getObjectId() == i)) {\n for (int k = 0; k < sb.size(); k++) {\n // We will generate an outbox constraint corresponding to each relative forbidden region we already generated\n // for the shifted boxes of the shape corresponding to the Obj o\n\n // here we go into the relative forbidden regions\n loop:\n for (int l = 0; l < ectr.getFrame().getRelForbidRegions(i).size(); l++) {\n int[] t = new int[cst.getDIM()];\n int[] s = new int[cst.getDIM()];\n for (int j = 0; j < cst.getDIM(); j++) {\n int min = ectr.getFrame().getRelForbidRegions(i).get(l).getMinimumBoundary(j) - sb.get(k).getOffset(j) - sb.get(k).getSize(j);\n int max = ectr.getFrame().getRelForbidRegions(i).get(l).getMaximumBoundary(j) - sb.get(k).getOffset(j);\n\n s[j] = max - min + 1; // length of the jth coordinate\n if (s[j] <= 0) // since the length is negative\n continue loop;\n t[j] = min; // It is the offset. lower left corner.\n\n if (printit) System.out.println(o.getObjectId() + \" \" + j + \" \" + o);\n int supDom = o.getCoord(j).getUB();// + sb.get(k).getOffset(j) + sb.get(k).getSize(j);\n int infDom = o.getCoord(j).getLB();// + sb.get(k).getOffset(j) ;\n int maxObj = o.getCoord(j).getUB() + sb.get(k).getOffset(j) + sb.get(k).getSize(j) - 1;\n if (maxObj > o.getCoord(j).getUB()) maxObj = o.getCoord(j).getUB();\n int minObj = o.getCoord(j).getLB() + sb.get(k).getOffset(j);\n if (minObj < o.getCoord(j).getLB()) minObj = o.getCoord(j).getLB();\n\n if (printit) System.out.println(\"box: \" + t[j] + \" \" + s[j]);\n if (printit) System.out.println(\"dom: \" + minObj + \" \" + maxObj);\n\n\n if ((supDom < t[j]) || (infDom > t[j] + s[j])) {\n // this means the intersection of dom(o.x) and the region forbidden region associated with Outbox(t,s) is empty. In the other words all\n // the placement space is feasible for o.x according to the constraint Outbox(t,s)\n if (printit) System.out.println(\"skip\");\n continue loop;\n }\n if ((maxObj < t[j]) || (minObj > t[j] + s[j])) {\n // this means the intersection of dom(o.x) and the region forbidden region associated with Outbox(t,s) is empty. In the other words all\n // the placement space is feasible for o.x according to the constraint Outbox(t,s)\n if (printit) System.out.println(\"skip2\");\n continue loop;\n }\n\n //clipping\n if (stp.opt.clipping) {\n // t[j] = Math.max(minObj, t[j]);\n // s[j] = Math.min(maxObj, t[j] + s[j]) - t[j] ;\n }\n\n if (printit) System.out.println(\"result box: \" + t[j] + \" \" + s[j]);\n\n\n }\n\n Outbox new_ob = new Outbox(t, s);\n\n\n Pair<Outbox, Boolean> result;\n if (ictrs.size() != 0) {\n Outbox last_ob = (Outbox) ictrs.get(ictrs.size() - 1);\n result = mergeAdjacent(new_ob, last_ob);\n\n new_ob = result.fst;\n\n if (result.snd) ictrs.remove(ictrs.size() - 1);\n\n }\n\n ictrs.add(new_ob);\n }\n }\n }\n }\n return ictrs;\n }", "@Dimensional(designDocument = \"userGeo\", spatialViewName = \"byLocation\")\n List<User> findByLocationWithin(Box cityBoundingBox);", "Rectangle getBounds();", "Rectangle getBoundingBox(Rectangle rect);", "public Iterable<Point2D> range(RectHV rect) {\n //rect\n Queue<Point2D> range = new Queue<Point2D>();\n \n for (Point2D p: bst.keys()) {\n if (rect.contains(p)) {\n range.enqueue(p);\n }\n }\n return range; \n }", "public abstract int[] getCoords();", "public Iterable<Point2D> range(RectHV rect) {\n ArrayList<Point2D> returnArray = new ArrayList<Point2D>();\n if (rect == null) {\n throw new IllegalArgumentException(\"rect input is null\");\n }\n for (Point2D i : pointsSet) {\n if (rect.contains(i))\n returnArray.add(i);\n }\n return returnArray;\n }", "private Coordinate[] generateBoundingBox(final Geometry geometry) {\n if (geometry == null || geometry.getCoordinates() == null || geometry.getCoordinates().length == 0) {\n return new Coordinate[]{new Coordinate(0,0),new Coordinate(0,0)};\n }\n final Coordinate firstPoint = geometry.getCoordinates()[0];\n double minLat = firstPoint.y;\n double minLon = firstPoint.x;\n double maxLat = firstPoint.y;\n double maxLon = firstPoint.x;\n for (final Coordinate coordinate : geometry.getCoordinates()) {\n if (coordinate.x < minLon) {\n minLon = coordinate.x;\n }\n if (coordinate.y < minLat) {\n minLat = coordinate.y;\n }\n if (coordinate.x > maxLon) {\n maxLon = coordinate.x;\n }\n if (coordinate.y > maxLat) {\n maxLat = coordinate.y;\n }\n }\n return new Coordinate[]{\n new Coordinate(minLon, minLat),\n new Coordinate(maxLon, maxLat)\n };\n }", "public Set<Coordinate> getAllSurroundingCellsAsCoordinates() {\n Set<MapCoordinate> mapCoordinates = getAllSurroundingCellsAsMapCoordinatesStartingFromTopLeft(1);\n return mapCoordinates\n .stream()\n .map(mapCoordinate -> mapCoordinate.toCoordinate())\n .collect(\n Collectors.toSet()\n );\n }", "public Tuple2<Integer, ArrayList<Integer>> call(Rectangle rectangle) throws Exception {\n\t\t\t\t\tList<Rectangle> firstInputCollection = firstInput.value();\n\t\t\t\t\tArrayList<Integer> secondInputIds = new ArrayList<Integer>();\n\t\t\t\t\t// Iterate the second input and check for the second set\n\t\t\t\t\t// of rectangle id’s\n\t\t\t\t\t// that hold the rectangle from first set obtained from\n\t\t\t\t\t// the mapped RDD\n\t\t\t\t\tfor (Rectangle firstRects : firstInputCollection) {\n\t\t\t\t\t\tif (rectangle.isRectangleinsideQueryWindow(firstRects)) {\n\t\t\t\t\t\t\tsecondInputIds.add(firstRects.getRectangleId());\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t// Create a new tuple of the mapped values and return\n\t\t\t\t\t// back the mapped\n\t\t\t\t\t// transformation.\n\t\t\t\t\tTuple2<Integer, ArrayList<Integer>> resultList = new Tuple2<Integer, ArrayList<Integer>>(rectangle\n\t\t\t\t\t\t\t.getRectangleId(), secondInputIds);\n\t\t\t\t\treturn resultList;\n\t\t\t\t}", "private HashMap<Coordinate, Coordinate> getAreaIntersectionPt( Geometry gfaPoly )\n\t{\n\t\tHashMap<Coordinate, Coordinate>\tinterPtsPair = new HashMap<Coordinate, Coordinate>();\t\n\n\t\tArrayList<Coordinate> interPts = new ArrayList<Coordinate>();\t\t\n\t\tArrayList<Coordinate> pts;\n\t\tArrayList<Integer> interIndex = new ArrayList<Integer>();\n\t\tArrayList<Integer> indx = new ArrayList<Integer>();\n\t\t\n\t\t//Reorder in clockwise - first point is repeated at the end.\n\t\tArrayList<Coordinate> gfaPoints = new ArrayList<Coordinate>();\n\t\tfor ( Coordinate c : gfaPoly.getCoordinates() ) {\n\t\t\tgfaPoints.add( c );\n\t\t}\n\t\t\n\t\tArrayList<Coordinate> cwGfaPts = GfaSnap.getInstance().reorderInClockwise( gfaPoints, null );\n\t\t\n\t\t//Get all intersection point with FA region common border.\n\t\tHashMap<String, Geometry> areaCommBnds = GfaClip.getInstance().getFaAreaXCommBounds();\t\n\t\tfor ( Geometry bnd : areaCommBnds.values() ) {\n\t\t\tpts = GfaClip.getInstance().lineIntersect( cwGfaPts.toArray( new Coordinate[ cwGfaPts.size() ]), \n\t\t\t\t\t bnd.getCoordinates(), indx );\n\t\t\t\n\t\t\tif ( pts.size() > 0 ) {\n\t\t\t\tinterPts.addAll( pts );\n\t\t\t\tinterIndex.addAll( indx );\n\t\t\t}\n\t\t}\n\n\t\tif ( interPts.size() <= 0 ) {\n\t\t\treturn interPtsPair;\n\t\t}\n\n\t\t/*\n\t\t * Find the area common bound points inside the polygon to ensure\n\t\t * the new snap points will not cluster with these points.\n\t\t */\n\t\t ArrayList<Coordinate> checkPoints = new ArrayList<Coordinate>();\n\t\t for ( Geometry g : areaCommBnds.values() ) {\t\t\t \n\t\t\t for ( Coordinate c : g.getCoordinates() ) {\n\t\t\t\t Geometry pp = GfaClip.getInstance().pointsToGeometry( new Coordinate[]{ c } );\n\t\t\t\t if ( !checkPoints.contains( c ) && pp.within( gfaPoly ) ) {\n\t\t\t\t\t checkPoints.add( c );\n\t\t\t\t }\n\t\t\t }\n\t\t }\n\n\t\t /*\n\t\t * Now insert each common intersection point into the el polygon\n\t\t * and snap it outside of the el polygon.\n\t\t * \n\t\t * Note: the point cannot be any point of the el polygon or any \n\t\t * snap point that has been used.\n\t\t * \n\t\t * If an intersection point is not within the clustering distance of \n\t\t * the point before it (Pb) or point after it (Pa), simply insert it into \n\t\t * the polygon and snap it. Otherwise, do the following:\n\t\t * \n\t\t * 1. Pick the closer one of Pb and Pa as Pn. \n\t\t * 2. Check if Pn is within the clustering distance of the common boundary\n\t\t * points inside the FROM line. \n\t\t * 3. If so, snap Pn to the closest point not within the clustering distance\n\t\t * and match the intersection point and Pn to the new point. \n\t\t * 4. If not, match the intersection point with Pn.\n\t\t */\n\t\t ArrayList<Coordinate> usedPoints = new ArrayList<Coordinate>();\n\t\t usedPoints.addAll( cwGfaPts );\n\t\t \n\t\t ArrayList<Coordinate> ePts = new ArrayList<Coordinate>();\t\t \n\t\t for ( int ii = 0; ii < interPts.size(); ii++ ) {\n\t\t\t \n\t\t Coordinate interP = interPts.get( ii );\n\t\t\t Coordinate ptBefore = cwGfaPts.get( interIndex.get( ii ) );\n\t\t\t Coordinate ptAfter = cwGfaPts.get( interIndex.get( ii ) + 1 );\n\t\t\t \n\t\t\t double qdist1 = GfaSnap.getInstance().distance( interP, ptBefore );\n\t\t\t double qdist2 = GfaSnap.getInstance().distance( interP, ptAfter );\n\n\t\t\t int addOne = -1; \t \n\t\t\t int qmatch = -1;\n\t\t\t double qdist;\n\n\t\t\t if ( qdist1 < qdist2 ) {\n\t\t\t\t qmatch = interIndex.get( ii ); \n\t\t\t\t qdist = qdist1;\n\t\t\t }\n\t\t\t else {\n\t\t\t\t qmatch = interIndex.get( ii ) + 1;\n\t\t\t\t qdist = qdist2;\n\t\t\t }\n\n\t\t\t if ( ( qdist / PgenUtil.NM2M ) < GfaSnap.CLUSTER_DIST ) {\n\n\t\t\t\t Coordinate ptMatch = cwGfaPts.get( qmatch );\n\t\t\t\t for ( Coordinate c : checkPoints ) {\n\t\t\t\t\t if ( GfaSnap.getInstance().isCluster( c, ptMatch ) ) {\n\t\t\t\t\t\t addOne = qmatch;\n\t\t\t\t\t\t break;\n\t\t\t\t\t }\n\t\t\t\t }\n\t\t\t\t \t\t\t\t \n\t\t\t\t if ( addOne < 0 ) {\n\t\t\t\t\t interPtsPair.put( new Coordinate( interP ),\n\t\t\t\t\t\t\t new Coordinate( ptMatch ) );\n\t\t\t\t\t continue; //Done - ptMatch is a snapped point.\n\t\t\t\t }\n\t\t\t }\n\t\t\t \n\t\t\t // Snap\n\t\t\t int kk, kk2;\n\t\t\t if ( addOne >= 0 ) {\n\t\t\t kk = addOne;\n\t\t\t kk2 = kk;\n\n\t\t\t ePts.clear();\n\t\t\t ePts.addAll( cwGfaPts );\n\t\t\t }\n\t\t\t else {\t\t\t\t \n\t\t\t ePts.clear();\n\t\t\t\t ePts.addAll( GfaSnap.getInstance().insertArray( cwGfaPts, interIndex.get( ii ) + 1, interP ) );\n\t\t\t\t kk = interIndex.get( ii ) + 1;\n\t\t\t\t kk2 = kk;\n\t\t\t }\n\n\t\t\t \n\t\t\t ePts.remove( ePts.size() - 1 );\n\t\t\t \n\t\t\t Coordinate[] snapped = new Coordinate[1];\n \n\t\t\t //snap....\n\t\t\t int status = GfaSnap.getInstance().snapPtGFA( kk, kk2, usedPoints, checkPoints, \n\t\t\t\t\t\t ePts, true, true, 3.0F, snapped );\n\t\t\t \n\t\t\t if ( status != 0 ) {\n\t\t\t\t if ( addOne >= 0 ) {\n\t\t\t\t\t snapped[ 0 ] = new Coordinate( ePts.get( kk ) );\n\t\t\t\t }\n\t\t\t\t else {\n\t\t\t\t\t snapped[ 0 ] = new Coordinate( interP );\n\t\t\t\t }\n\t\t\t }\n\t\t\t \n\t\t\t interPtsPair.put( new Coordinate( interP ), \n\t\t\t new Coordinate( snapped[ 0 ] ) );\n\t\t\t \n\t\t\t if ( addOne >= 0 ) {\n\t\t\t\t interPtsPair.put( new Coordinate( cwGfaPts.get( addOne ) ), \n\t\t new Coordinate( snapped[ 0 ] ) );\t\t\t\t \n\t\t\t }\t\n\t\t\t \n\t\t\t usedPoints.add( snapped[ 0 ] );\n\t\t\t \n\t\t }\n\t\t\n\t\treturn interPtsPair;\n\t}", "public Map<Integer, Boolean> getOverlaps(Geometry geom) throws SQLException {\n return retrieveExpected(createNativeOverlapsStatement(geom), BOOLEAN);\n }", "public void x(Connection connection, Connection connection2) throws SQLException {\n\t\t\r\n\t\tSet<Long> gaugeContainingPolygonIds = new HashSet<Long>();\r\n\t\t\r\n\t\t// get all polygon\r\n\t\tStatement statement = connection2.createStatement();\r\n\t\tResultSet executeQuery = statement.executeQuery(\"SELECT id, name, ST_X(ST_ASTEXT(geom)), ST_Y(ST_ASTEXT(geom)) FROM gauge\");\r\n\t\twhile(executeQuery.next()) {\r\n\t\t\tString lon = executeQuery.getString(3);\r\n\t\t\tString lat = executeQuery.getString(4);\r\n\t\t\tString name = executeQuery.getString(2);\r\n\t\t\tStatement statementGaugePolygon = connection.createStatement();\r\n\t\t\t// get the polygons which are very close to the gauges, assuming that they are very close to the shore\r\n\t\t\tResultSet execute = statementGaugePolygon.executeQuery(\"SELECT osm_id FROM planet_osm_polygon AS b WHERE ST_DWithin(way, ST_Transform(ST_GeomFromText( 'POINT(\" + lon + \" \" + lat + \")', 4326), 900913), 100) AND (water is not null OR waterway is not null OR \\\"natural\\\" = 'water')\");\r\n\t\t\twhile(execute.next()) {\r\n\t\t\t\tlong id = execute.getLong(1);\r\n\t\t\t\tgaugeContainingPolygonIds.add(id);\r\n\t\t\t\tSystem.out.println(id + \":\" + lat + \":\" + lon + \":\" + name);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n////\t\tgaugeNodes.add(3566912L);\r\n////\t\tgaugeNodes.add(4252513L);\r\n//\t\tgaugeNodes.add(144017399L);\r\n\t\t\r\n\t\tSet<Long> set = new HashSet<Long>();\r\n\t\tset.add(27425090L);\r\n\t\tLong neighbors = getNeighbors(connection, set, 0, gaugeContainingPolygonIds, new HashSet<Long>());\r\n\t\tSystem.out.println(\"target\" + neighbors);\r\n\t}", "public Iterable<Point2D> range(RectHV rect) {\n SET<Point2D> point_list = new SET<Point2D>();\n rangesearch(root, rect, point_list);\n return point_list;\n }", "public Map<Integer, Geometry> getGeomUnion(Geometry geom) throws SQLException {\n return retrieveExpected(createNativeGeomUnionStatement(geom), GEOMETRY);\n }", "private boolean isBetweenBounds(int x, int y, int[] bounds) {\n return x >= bounds[0] && x <= bounds[2] && y >= bounds[1] && y <= bounds[3];\n }", "public Set<Point> getHitboxPoints() {\n Set<Point> hitboxPoints = new HashSet<>();\n\n for(Point p : relevantPoints)\n {\n int currX = (int)(p.x + xPos - (getWidth() / 2));\n int currY = (int)(p.y + yPos - (getHeight() / 2));\n\n hitboxPoints.add(new Point(currX, currY));\n }\n\n return hitboxPoints;\n }", "public static void obtenerInfoColisionJugador(Jugador jugador, Objeto col,String[] direccion, ArrayList<Objeto> obj_colision) {\n Rectangle[] lados_ente = jugador.objeto_ente.getRectangle();\n Rectangle[] lados_col = col.getRectangle();\n\n \n if (col.getTag().compareToIgnoreCase(Objeto.Tag.COMIDA) == 0 || col.getTag().compareToIgnoreCase(Objeto.Tag.MONEDA) == 0) {\n //System.out.println(\"COMIDA\");\n for(int i=0;i<4;i++)\n if (lados_ente[i].intersects(lados_col[0])) {\n obj_colision.add(col);\n return;\n }\n }\n\n \n \n if (col.getTag().compareToIgnoreCase(Objeto.Tag.ENEMIGO) == 0) {\n\n //System.out.println(lados_ente[0].x + \" con \" + lados_col[0].x + \" tag: \" + col.getId());\n if (lados_ente[0].intersects(lados_col[2])) {\n //\"arriba\";\n obj_colision.add(col);\n direccion[0] = \"enemigo_arriba\";\n }\n //else\n // System.out.println(lados_ente[0].y + \" con \" + lados_col[2].y + \" tag: \" + col.getId());\n if (lados_ente[1].intersects(lados_col[3])) {\n //\"derecha\";\n obj_colision.add(col);\n direccion[1] = \"enemigo_derecha\";\n\n }\n if (lados_ente[2].intersects(lados_col[0])) {\n //\"abajo\";\n obj_colision.add(col);\n direccion[2] = \"enemigo_abajo\";\n }\n if (lados_ente[3].intersects(lados_col[1])) {\n //\"izquierda\";\n obj_colision.add(col);\n direccion[3] = \"enemigo_izquierda\";\n }\n\n }\n \n if (col.getTag().compareToIgnoreCase(Objeto.Tag.NPC) == 0) {\n\n //System.out.println(lados_ente[0].x + \" con \" + lados_col[0].x + \" tag: \" + col.getId());\n if (lados_ente[0].intersects(lados_col[0])) {\n //\"arriba\";\n obj_colision.add(col);\n direccion[0] = \"npc_arriba\";\n }\n //else\n // System.out.println(lados_ente[0].y + \" con \" + lados_col[2].y + \" tag: \" + col.getId());\n if (lados_ente[1].intersects(lados_col[0])) {\n //\"derecha\";\n obj_colision.add(col);\n direccion[1] = \"npc_derecha\";\n\n }\n if (lados_ente[2].intersects(lados_col[0])) {\n //\"abajo\";\n obj_colision.add(col);\n direccion[2] = \"npc_abajo\";\n }\n if (lados_ente[3].intersects(lados_col[0])) {\n //\"izquierda\";\n obj_colision.add(col);\n direccion[3] = \"npc_izquierda\";\n }\n\n }\n\n if (lados_ente[0].intersects(lados_col[0])) {\n //\"arriba\";\n obj_colision.add(col);\n direccion[0] = \"entorno_arriba\";\n }\n if (lados_ente[1].intersects(lados_col[0])) {\n //\"derecha\";\n obj_colision.add(col);\n direccion[1] = \"entorno_derecha\";\n }\n if (lados_ente[2].intersects(lados_col[0])) {\n //\"abajo\";\n obj_colision.add(col);\n direccion[2] = \"entorno_abajo\";\n }\n if (lados_ente[3].intersects(lados_col[0])) {\n //\"izquierda\";\n obj_colision.add(col);\n direccion[3] = \"entorno_izquierda\";\n }\n }", "@Override\n\tpublic List<DisplayResult> getResults(ReferencedEnvelope bounds) {\n\t\t\n\t\tString whereClause = bounds != null ? \"WHERE ST_Transform(geom, 4326) && ST_MakeEnvelope(\"+bounds.getMinX()+\",\"+bounds.getMinY()+\",\"+bounds.getMaxX()+\",\"+bounds.getMaxY()+\") \" : \"\";\n\t\t\n\t\t//Only latest results\n\t\tString query = \"SELECT DISTINCT ON (meshblock_id) id, meshblock_id, operat_score, date_entered, ST_AsText(ST_Transform(centroid,4326)), ST_AsText(ST_Transform(geom,4326)), \"\n\t\t\t\t+ \"natural_elements_score, incivilities_and_nuisance_score, navigation_and_mobility_score, territorial_score \"\n\t\t\t\t+ \"FROM result \"\n\t\t\t\t+ whereClause\n\t\t\t\t+ \"ORDER BY meshblock_id, date_entered DESC;\";\n\n\t\tSystem.out.println(query);\n\t GeometryFactory geometryFactory = JTSFactoryFinder.getGeometryFactory();\n\n\t WKTReader reader = new WKTReader(geometryFactory);\n\t \n\t\tRowMapper<DisplayResult> rowMapper = (rs, rowNum) -> {\n\t\t\t\n\t\t\tDisplayResult result = new DisplayResult();\n\t\t\tresult.setResultId(rs.getInt(1));\n\t\t\tresult.setMeshblockId(rs.getInt(2));\n\t\t\tresult.setOperatScore(rs.getDouble(3));\n\t\t\t\t\n\t\t\tresult.setNaturalElementsScore(rs.getDouble(7));\n\t\t\tresult.setIncivilitiesScore(rs.getDouble(8));\n\t\t\tresult.setNavigationScore(rs.getDouble(9));\n\t\t\tresult.setTerritorialScore(rs.getDouble(10));\n\t\t\tPoint point;\n\t\t\ttry {\n\t\t\t\tpoint = (Point) reader.read(rs.getString(5));\n\t\t\t\tresult.setCentroid(point.toString());\n\t\t\t\tresult.setLat(point.getCoordinate().y);\n\t\t\t\tresult.setLng(point.getCoordinate().x);\n\t\t\t\t\t\n\t\t\t\tresult.setGeom(rs.getString(6));\n\t\t\t\t\n\t\t\t} catch (ParseException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\treturn result;\n\t\t};\n\t\t\n\t\treturn jdbcTemplate.query(query, rowMapper);\n\t\t\n\t}", "@NonNull JavaBoundingBox[] collision();", "private Intersection[] getExtremIntersection(){\n if(!mapLoaded){\n return null;\n }\n Intersection northernmost = intersectionList.get(0);\n Intersection southernmost = intersectionList.get(0);\n Intersection easternmost = intersectionList.get(0);\n Intersection westernmost = intersectionList.get(0);\n\n for(int i=0 ; i<intersectionList.size() ; i++){\n Intersection testedIntersection = intersectionList.get(i);\n //north\n if(northernmost.getLatitude() < testedIntersection.getLatitude()) {\n northernmost = testedIntersection;\n }\n //south\n if(southernmost.getLatitude() > testedIntersection.getLatitude()) {\n southernmost = testedIntersection;\n }\n //east\n if(easternmost.getLongitude() < testedIntersection.getLongitude()) {\n easternmost = testedIntersection;\n }\n //west\n if(westernmost.getLongitude() > testedIntersection.getLongitude()) {\n westernmost = testedIntersection;\n }\n }\n Intersection[] extremum = {northernmost , southernmost , easternmost , westernmost};\n return extremum;\n }", "@Test\n public void testBoundsAsCompositesWithOneEqRestrictionsAndOneClusteringColumn()\n {\n CFMetaData cfMetaData = newCFMetaData(Sort.ASC);\n\n ByteBuffer clustering_0 = ByteBufferUtil.bytes(1);\n Restriction eq = newSingleEq(cfMetaData, 0, clustering_0);\n\n PrimaryKeyRestrictions restrictions = new PrimaryKeyRestrictionSet(cfMetaData.comparator);\n restrictions = restrictions.mergeWith(eq);\n\n List<Composite> bounds = restrictions.boundsAsComposites(cfMetaData, Bound.START, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), clustering_0, EOC.START);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.END, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), clustering_0, EOC.END);\n }", "public Map<Integer, ArrayList<LatLng>> shapeCoordinates (Map<Integer, ArrayList<LatLng>> shapeIdList) {\r\n Cursor getData = getReadableDatabase().rawQuery(\"select shape_id, shape_pt_lat, shape_pt_lon from shapes\", null);\r\n int count = 1;\r\n // Make sure start off the first position of the table\r\n getData.moveToFirst();\r\n // Store the index of end of the table\r\n int end = getData.getCount();\r\n // Loop through all the key\r\n for(Integer key : shapeIdList.keySet()) {\r\n // Create a new Arraylist\r\n ArrayList<LatLng> shapeCoordinates = new ArrayList<LatLng>();\r\n while (key == getData.getInt(0)) {\r\n // Add coordinate into the list\r\n shapeCoordinates.add(new LatLng(getData.getDouble(1), getData.getDouble(2)));\r\n count++;\r\n if (count == end) {\r\n break;\r\n }\r\n // Move to next table\r\n getData.moveToPosition(count);\r\n }\r\n // store the key and list into the HashMap\r\n shapeIdList.put(key, shapeCoordinates);\r\n }\r\n\r\n return shapeIdList;\r\n }", "private List<HashMap<TimeSelector, Long>> updateEq(\n HashMap<ComparableExpression, HashSet<ComparableExpression>> rEq,\n HashMap<TimeSelector, Long> lowerBounds, HashMap<TimeSelector, Long> upperBounds)\n throws QueryContradictoryException {\n\n ArrayList<ArrayList<ComparableExpression>> eq = relationToTuples(rEq);\n for (ArrayList<ComparableExpression> tuple : eq) {\n TimeSelector selector = null;\n TimeLiteral literal = null;\n // only comparisons between a selector and a literal are interesting here\n if (tuple.get(0) instanceof TimeSelector && tuple.get(1) instanceof TimeLiteral) {\n selector = (TimeSelector) tuple.get(0);\n literal = (TimeLiteral) tuple.get(1);\n } else if (tuple.get(1) instanceof TimeSelector && tuple.get(0) instanceof TimeLiteral) {\n selector = (TimeSelector) tuple.get(1);\n literal = (TimeLiteral) tuple.get(0);\n } else {\n continue;\n }\n // for selector=literal, lowerBound(selector) = literal and upperBound(selector) = literal\n Long literalValue = literal.getMilliseconds();\n if (lowerBounds.get(selector) > literalValue || upperBounds.get(selector) < literalValue) {\n throw new QueryContradictoryException();\n } else {\n lowerBounds.put(selector, literalValue);\n upperBounds.put(selector, literalValue);\n }\n }\n return Arrays.asList(lowerBounds, upperBounds);\n }", "private ResultSet getSpatialQueryResults(final Connection conn, final SearchRegion region) throws SQLException {\n final Statement stmt = conn.createStatement();\n final double lx = region.getLx(), ly = region.getLy(), rx = region.getRx(), ry = region.getRy();\n\n //Careful about the precision of the float from string formatter\n final String spatial_query = String.format(\"SELECT * FROM item_location WHERE \"\n + \"MBRContains(GeomFromText('Polygon((%f %f, %f %f, %f %f, %f %f, %f %f))'), coord)\", \n lx, ly, lx, ry, rx, ry, rx, ly, lx, ly);\n return stmt.executeQuery(spatial_query);\n }", "public Rectangle getBounds();", "public Rectangle getBounds();" ]
[ "0.68314403", "0.60875344", "0.60733056", "0.59425133", "0.58784914", "0.58343583", "0.5622514", "0.56184566", "0.5519609", "0.5436653", "0.53796685", "0.5312688", "0.53088266", "0.52871656", "0.5280633", "0.5273473", "0.5257703", "0.52092147", "0.5207818", "0.5170024", "0.5168872", "0.513967", "0.512521", "0.5100396", "0.50936836", "0.50807065", "0.5080435", "0.5059643", "0.5041845", "0.5041694", "0.5037915", "0.503289", "0.50292176", "0.50235116", "0.4988762", "0.49833915", "0.4978546", "0.49769822", "0.49750948", "0.49745426", "0.4952699", "0.49505302", "0.49473372", "0.49443665", "0.4930655", "0.4918326", "0.49095887", "0.49095887", "0.4899403", "0.48969182", "0.4889692", "0.48458752", "0.48439008", "0.48406258", "0.4838734", "0.48355922", "0.4832488", "0.4824317", "0.48201856", "0.48201174", "0.48156366", "0.4813322", "0.4803353", "0.48009816", "0.47905982", "0.47867352", "0.4785757", "0.47856158", "0.47839272", "0.47831044", "0.4782443", "0.47775197", "0.4772813", "0.47653452", "0.47547224", "0.4752659", "0.47468036", "0.47436318", "0.47383302", "0.4734818", "0.4729", "0.47278863", "0.47201723", "0.4719726", "0.47188562", "0.47186393", "0.47048992", "0.4694346", "0.4690425", "0.4686706", "0.46801993", "0.46798733", "0.46644437", "0.46643662", "0.4660271", "0.46557114", "0.46538058", "0.46415216", "0.46354982", "0.46354982" ]
0.64908296
1
Return true if the specified identifier id is stored in the SpatialDatabase
boolean hasGeoInformation(String id);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean hasID();", "boolean hasID();", "boolean hasID();", "boolean hasID();", "boolean hasID();", "boolean hasID();", "boolean hasID();", "boolean hasID();", "boolean hasID();", "boolean hasId();", "boolean hasId();", "boolean hasId();", "boolean hasId();", "boolean hasId();", "boolean hasId();", "boolean hasId();", "boolean hasId();", "boolean hasId();", "boolean hasId();", "boolean hasId();", "boolean hasId();", "boolean hasId();", "boolean hasId();", "boolean hasId();", "boolean hasId();", "boolean hasId();", "boolean hasId();", "boolean hasId();", "boolean hasId();", "boolean hasId();", "boolean hasId();", "boolean hasId();", "boolean hasId();", "boolean hasId();", "boolean hasId();", "boolean hasId();", "boolean hasId();", "boolean hasId();", "public abstract boolean oidExists(String oid);", "boolean hasFromId();", "boolean existeId(Long id);", "public boolean exists(String id);", "public boolean isIdentifier(int identifier, ObjectDataOptionsEnum... options) throws PersistenceException {\n if(getAllIdentifier(options).contains(identifier)) {\n return (true);\n }\n return (false);\n }", "boolean hasMapID();", "boolean hasMapID();", "boolean hasMapID();", "boolean hasMapID();", "boolean hasMapID();", "boolean hasMapID();", "boolean hasMapID();", "boolean hasMapID();", "boolean hasMapID();", "boolean hasMapID();", "boolean hasMapID();", "boolean hasMapID();", "boolean hasMapID();", "public boolean exists(MDSKey id) {\n Row row = table.get(id.getKey());\n if (row.isEmpty()) {\n return false;\n }\n\n byte[] value = row.get(COLUMN);\n return value != null;\n }", "public boolean isExist(Serializable id);", "public boolean isIdentifier(int key, int identifier, ObjectDataOptionsEnum... options) throws PersistenceException {\n if(getAllIdentifier(key, options).contains(identifier)) {\n return (true);\n }\n return (false);\n }", "boolean isSetIdentifier();", "@Override\n\tpublic boolean existId(String id) {\n\t\treturn false;\n\t}", "boolean hasWorldid();", "boolean hasWorldid();", "boolean isSetId();", "public boolean exists( Integer idConge ) ;", "@Override\r\n\tpublic boolean exists(String id) {\n\t\treturn false;\r\n\t}", "public boolean exists(String id) {\r\n\t\tString sql = \"SELECT 1 from GAME_SET where \" + GameSet.DbField.ID + \"=?\";\r\n\r\n\t\tCursor cursor = getDatabase().rawQuery(sql, new String[] { id });\r\n\t\tif (cursor.moveToFirst()) {\r\n\t\t\treturn true;\r\n\t\t} else {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "boolean isSetID();", "public boolean doesIDExist(String id)\n {\n return idReferences.containsKey(id);\n }", "boolean exists(Integer id);", "@Override\n public boolean exists(Long id) {\n return false;\n }", "@Override\n public boolean exists(Long id) {\n return false;\n }", "public static boolean containsID(int segID) {\n String sql = \"SELECT id FROM corpus1 where id= ?\";\n\n Connection conn = null;\n PreparedStatement pstmt = null;\n ResultSet rs = null;\n\n try {\n conn = DatabaseOperations.connect();\n pstmt = conn.prepareStatement(sql);\n\n pstmt.setInt(1, segID);\n rs = pstmt.executeQuery();\n // loop through the result set\n while (rs.next()) {\n if (segID == rs.getInt(\"id\")) {\n return true;\n }\n }\n } catch (SQLException e) {\n System.out.println(\"containsID: \" + e.getMessage());\n } finally {\n try {\n if (rs != null) {\n rs.close();\n }\n if (pstmt != null) {\n pstmt.close();\n }\n if (conn != null) {\n conn.close();\n }\n } catch (SQLException e) {\n System.out.println(\"containsID: \" + e.getMessage());\n }\n }\n return false;\n\n }", "boolean hasIdentifier();", "public boolean isSetId()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(ID$6) != 0;\n }\n }", "@Override\npublic boolean existsById(String id) {\n\treturn false;\n}", "@Override\n\tpublic boolean existsById(Integer id) {\n\t\treturn false;\n\t}", "public abstract boolean isNatureExist(long id);", "boolean existsByNameAndId(String name, int id);", "@Override\n\tpublic boolean existe(Long id) {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean existe(Long id) {\n\t\treturn false;\n\t}", "public abstract boolean isValidID(long ID);", "public boolean hasStoreId() {\n return genClient.cacheHasKey(CacheKey.storeId);\n }", "boolean isPrimaryKey();", "public boolean exists(String id) {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean isPersistent() {\n\t\treturn id != -1;\n\t}", "public boolean hasId(long id)\r\n \t{ \r\n \t\tlogger.debug(\"calling hasId(\"+id+\") was called...\");\r\n \t\treturn(externalFileMgrDao.hasId(id));\r\n \t}", "public boolean isSetId()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().find_attribute_user(ID$6) != null;\n }\n }", "Boolean exists(Session session, IRI identifier);", "@Override\n public boolean isAlreadyInDb () {\n try {\n load( idDevice );\n } catch ( EntityNotFoundException e ) {\n return false;\n }\n return true;\n }", "public Boolean checkHouseWithId(){\n\t\t\tif(removeHouse == null){\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t}", "public boolean isExist(String id) {\n return mysqlDao.isExist(id);\n }", "boolean exists(PK id);", "boolean hasResMineID();", "public boolean checkIfThisGAZRecordIsInTheDB()\n\t{\n\t\treturn checkIfThisRecordIsInTheDB(getWhereConditionBaseOnIdRecord());\n\t}", "private boolean hasMapping(Identifier pid) throws DataAccessException {\n\n boolean mapped = false;\n int countReturned = 0;\n\n if (pid.getValue() == null) {\n throw new DataAccessException(new Exception(\"The given identifier was null\"));\n }\n\n // query the identifier table\n String sqlStatement = \"SELECT guid FROM \" + IDENTIFIER_TABLE + \"where guid = ?\";\n\n countReturned = this.jdbcTemplate\n .queryForInt(sqlStatement, new Object[] { pid.getValue() });\n\n if (countReturned > 0) {\n mapped = true;\n }\n\n return mapped;\n }", "boolean hasUnitId();", "boolean hasServerId();", "public boolean isSetIdentifier()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(IDENTIFIER$0) != 0;\n }\n }", "boolean existePorId(Long id);" ]
[ "0.69300914", "0.69300914", "0.69300914", "0.69300914", "0.69300914", "0.69300914", "0.69300914", "0.69300914", "0.69300914", "0.67161113", "0.67161113", "0.67161113", "0.67161113", "0.67161113", "0.67161113", "0.67161113", "0.67161113", "0.67161113", "0.67161113", "0.67161113", "0.67161113", "0.67161113", "0.67161113", "0.67161113", "0.67161113", "0.67161113", "0.67161113", "0.67161113", "0.67161113", "0.67161113", "0.67161113", "0.67161113", "0.67161113", "0.67161113", "0.67161113", "0.67161113", "0.67161113", "0.67161113", "0.67091393", "0.6679896", "0.66297674", "0.6626857", "0.6623003", "0.6596537", "0.6596537", "0.6596537", "0.6596537", "0.6596537", "0.6596537", "0.6596537", "0.6596537", "0.6596537", "0.6596537", "0.6596537", "0.6596537", "0.6596537", "0.6565982", "0.65521824", "0.6518486", "0.64913744", "0.64632726", "0.6456076", "0.6456076", "0.6455359", "0.64360017", "0.6406853", "0.63691074", "0.6365831", "0.6333729", "0.6314871", "0.63040257", "0.63040257", "0.62856185", "0.62760925", "0.6267421", "0.6210274", "0.62036073", "0.6199706", "0.61957216", "0.6161914", "0.6161914", "0.6159164", "0.6145464", "0.6140666", "0.6123645", "0.61172533", "0.61172086", "0.61121947", "0.61096567", "0.60848594", "0.607921", "0.6078384", "0.60782784", "0.6075728", "0.60656077", "0.60573584", "0.6057205", "0.6055755", "0.6050466", "0.6049532" ]
0.6796909
9
Fetch ingredient by id
public IngredientDto fetchOne(Long id) { Ingredient ingredient = repository.findById(id) .orElseThrow(() -> new IngredientNotFoundException(id)); return ingredientMapper.toDto(ingredient); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Ingredient getById(Long id) {\n return ingredientRepository.getOne(id);\n }", "@GetMapping(\"/{id}/recipe/{recipeId}\")\n public ResponseEntity<IngredientDTO> getIngredient(@PathVariable Long recipeId, @PathVariable Long id){\n IngredientDTO ingredient = ingredientService.findByRecipeIdAndIngredientId(recipeId, id);\n return new ResponseEntity<>(ingredient, HttpStatus.OK);\n }", "Map<String, Object> getIngredient(long foodID);", "public ArrayList<IngredientRecipePOJO> getAllIngredientRecipeByIdRecipe(String idRecipe);", "Recipe findRecipeById(Long id) throws ServiceFailureException;", "@Override\n public RiceptDto getRicept(int id) {\n Optional<Ricept> ricept = riceptRepository.findById(id);\n if (!ricept.isPresent()) {\n log.error(\"Ricept not found by id. Class RiceptServiceImpl, method getRicept\");\n throw new NotFoundException(\"Ricept not found by id\");\n }\n log.info(\"Get ingredient by id. Class RiceptServiceImpl, method getRicept\");\n return RiceptDto.of(ricept.get());\n }", "public Cursor loadRecipe(int id){\r\n Cursor c = db.query(recipes.TABLENAME, new String[]{recipes.TITLE, recipes.IMAGE, recipes.INGREDIENTS, recipes.STEPS, recipes.TYPE, recipes.TIME, recipes.PEOPLE, recipes.IDRECIPE}, recipes.IDRECIPE + \"=\" + id, null, null, null, null);\r\n if (c != null) c.moveToFirst();\r\n return c;\r\n }", "Dish selectByPrimaryKey(String id);", "RecipeObject getRecipe(int recipeID);", "@Override\n\tpublic Goods selectById(Integer id) {\n\t\treturn goodsDao.selectById(id);\n\t}", "private void handleActionGetIngredients(int recipeId) {\n mDb = AppDatabase.getInstance(getApplicationContext());\n final List<Ingredient> ingredients = mDb.recipeDao().getRecipe(recipeId).getIngredients();\n StringBuilder ingredientsList = new StringBuilder();\n for (int i = 0; i < ingredients.size(); i++) {\n String quantity = ingredients.get(i).getQuantity();\n String measure = ingredients.get(i).getMeasure();\n String ingredient = ingredients.get(i).getIngredient();\n\n String string = \"\\n\" + quantity + \" \" + measure + \" \" + ingredient + \"\\n\";\n ingredientsList.append(string);\n }\n AppWidgetManager appWidgetManager = AppWidgetManager.getInstance(this);\n int[] appWidgetIds = appWidgetManager.getAppWidgetIds(new ComponentName(this,\n BakingWidgetProvider.class));\n //Now update all widgets\n BakingWidgetProvider.updateIngredientWidgets(this, appWidgetManager, appWidgetIds,\n ingredientsList.toString());\n }", "public Ingrediente buscar(int id) {\n\n\t\tConnection conn = null;\n\t\tResultSet resultSet = null;\n\t\tPreparedStatement stmt = null;\n\t\tconn = getConnection();\n\t\tIngrediente ingrediente = null;\n\t\ttry {\n\t\t\tstmt = conn\n\t\t\t\t\t.prepareStatement(\"SELECT * FROM INGREDIENTE WHERE IDINGREDIENTES = ?\");\n\t\t\tstmt.setInt(1, id);\n\t\t\tresultSet = stmt.executeQuery();\n\t\t\twhile (resultSet.next()) {\n\t\t\t\tingrediente = new Ingrediente();\n\t\t\t\tingrediente.setIdIngredientes(resultSet\n\t\t\t\t\t\t.getInt(\"idIngredientes\"));\n\t\t\t\tingrediente.setNome(resultSet.getString(\"nome\"));\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\tcloseConnection(conn, stmt, resultSet);\n\t\t}\n\t\treturn ingrediente;\n\t}", "@Override\n\tpublic Recipe getRecipe(int id) {\n\t\tRestTemplate restTemplate = new RestTemplate();\n\t\t\n\t\tResponseEntity<Recipe> rateResponse =\n\t\t restTemplate.exchange(BASE_URL + RECIPE_URL + id, HttpMethod.GET, \n\t\t \t\tnull, new ParameterizedTypeReference<Recipe>() {\n\t\t });\n\t\tRecipe recipe = rateResponse.getBody();\n\t\tlogger.debug(\"RECIPE Info :\" + recipe);\n\t\treturn recipe;\n\t}", "public IngredientDB getIngredientDB(long id) {\n SQLiteDatabase db = this.getReadableDatabase();\n\n Cursor cursor = db.query(IngredientDB.TABLE_NAME,\n new String[]{IngredientDB.COLUMN_ID, IngredientDB.COLUMN_INGREDIENT, IngredientDB.COLUMN_TIMESTAMP},\n IngredientDB.COLUMN_ID + \"=?\",\n new String[]{String.valueOf(id)}, null, null, null, null);\n\n if (cursor != null)\n cursor.moveToFirst();\n\n // prepare ingredient object\n IngredientDB ingredient = new IngredientDB(\n cursor.getInt(cursor.getColumnIndex(IngredientDB.COLUMN_ID)),\n cursor.getString(cursor.getColumnIndex(IngredientDB.COLUMN_INGREDIENT)),\n cursor.getString(cursor.getColumnIndex(IngredientDB.COLUMN_TIMESTAMP)));\n\n // close the db connection\n cursor.close();\n\n return ingredient;\n }", "RecipeInformationObject getRecipeInformation(int recipeId) throws EntityException, EntityNotFoundException;", "cskaoyan_mall_order_goods selectByPrimaryKey(Integer id);", "@Override\n\tpublic RecetteDTO findById(long idProduit, long idIngredient) {\n\t\treturn null;\n\t}", "ItoProduct selectByPrimaryKey(Integer id);", "Receta getByIdWithImages(long id);", "RiceCooker getById(long id);", "@Override\n\tpublic Recipe findById(Integer id) {\n\t\treturn null;\n\t}", "DashboardGoods selectByPrimaryKey(Integer id);", "public Goods getid(Integer id) {\n\t\treturn sm.selectOne(\"com.huyu.entity.Goods.getById\", id);\n\t}", "Goods selectByPrimaryKey(String goodsId);", "public List<Ingredient> getAll() {\n return ingredientRepository.findAll();\n }", "@Override\r\n\tpublic Food getFoodById(int id) {\n\t\tString sql=\"select * from food where id=?\";\r\n\t\tList<Food> list=(List<Food>) BaseDao.select(sql, Food.class,id);\r\n\t\tif(list.size()>0) {\r\n\t\t\treturn list.get(0);\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "Sequipment selectByPrimaryKey(Integer id);", "public Recipe getRecipeAt(Long id) {\r\n \t\tfor (Recipe recipe : recipeList)\r\n \t\t\tif (recipe.getId() == id)\r\n \t\t\t\treturn recipe;\r\n \t\treturn null;\r\n \t}", "LuckyBag selectByPrimaryKey(Integer id);", "public Recipe findByIdRecipe(int id) {\n\t\tSession session = sessionFactory.openSession();\n\t\treturn (Recipe) session.get(Recipe.class, id);\n\t}", "RespuestaRest<ParqueaderoEntidad> consultar(String id);", "@Override\n\tpublic Goods selectOne(int id) {\n\t\tString sql=\"select g_id gid,gt_id gtid,g_name gname,g_date gdate,g_picture gpicture,g_price gprice,g_star gstar,g_info ginfo,gpic1 gpic1,gpic2 gpic2,gpic3 gpic3,gpic4 gpic4 from goods where g_id=?\";\n\t\tList list=queryAll(sql,Goods.class,new Object[]{id});\n\t\treturn (Goods) list.get(0);\n\t}", "GoodsPo selectByPrimaryKey(Long id);", "public Product get(String id);", "@Override\n public RecipeEntity getRecipeDto(long id)\n {\n return this.load(RecipeEntity.class, id);\n }", "@Override\r\n\tpublic Long getID(ProductIngredientParam param) {\n\t\treturn param.getId();\r\n\t}", "@Override\n public Dish get(int id, int restaurantId) {\n List<Dish> dishes = crudRepository.get(id, restaurantId);\n return DataAccessUtils.singleResult(dishes);\n }", "Product selectByPrimaryKey(Integer id);", "@Override\n\tpublic FoodItem getItem(Long id) {\n\t\treturn foodItemRepository.getOne(id);\n\t}", "BasicEquipment selectByPrimaryKey(Integer id);", "@Override\n public CartEntity getById(int id) {\n return entityManager.find(CartEntity.class,id);\n }", "NjProductTaticsRelation selectByPrimaryKey(String id);", "@Override\n\tpublic Gift getGift(Long id) {\n\t\treturn mGiftDatabase.get(id);\n\t}", "public Recipe getRecipe(int id) {\n int i = id - 1000;\n if(i < 0 || i > recipes.get(recipes.size() - 1).getID()-1000){\n //throw new IndexOutOfBoundsException();\n Recipe r = null;\n return r;\n }\n return recipes.get(i);\n }", "public Recipe findById(Long id) {\n\t\tOptional<Recipe> findRecipe = recipeRepository.findById(id);\n\t\tif(findRecipe.isPresent()) {\n\t\t\treturn findRecipe.get();\n\t\t} else {\n\t\t\treturn null;\n\t\t}\n\t}", "@Query(\"select f from Factura f join fetch f.cliente c join fetch f.items l join fetch l.producto where f.id = ?1 \")\n\tpublic Factura fetchByIdWithClienteWithItemFacturaWithProducto(Long id);", "public Recipe getRecipeFromRepository(Integer id) {\n\t\tOptional<RecipeEntity> optRecipe = recipesRepo.findById(id);\n\t\tif(optRecipe.isPresent())\n\t\t\treturn mapToRecipeObject(optRecipe.get());\n\t\telse\n\t\t\treturn null;\n\t}", "CfgSearchRecommend selectByPrimaryKey(Long id);", "@ApiModelProperty(value = \"recipe ingredients by id\")\n @JsonProperty(\"ingredients\")\n public List<BigDecimal> getIngredients() {\n return ingredients;\n }", "Item findById(String id);", "@Override\n\tpublic Products queryProductbyId(Integer id) {\n\t\treturn (Products)getSqlMapClientTemplate().queryForObject(buildId(SQL_PREFIX, \"queryProductbyId\"),id);\n\t}", "EnterprisePicture selectByPrimaryKey(Integer id);", "Product selectByPrimaryKey(Long id);", "@Override\n\tpublic Food findFoodById(int id) {\n\t\treturn fb.findFoodById(id);\n\t}", "@Override\n\tpublic item findById(Long id, Integer cantidad) {\n\t\treturn new item(donkyClientFeign.detalles(id),cantidad);\n\t}", "InvoiceDTO fetchByID(int id);", "@Override\n @Transactional(readOnly = true)\n public Optional<Recipe> findOne(Long id) {\n log.debug(\"Request to get Recipe : {}\", id);\n return recipeRepository.findById(id);\n }", "public Invoice findById(long id);", "private Future<JsonObject> fetchItem(String id) {\n Promise<JsonObject> p = Promise.promise();\n client\n .get(catPort, catHost, catItemPath)\n .addQueryParam(ID, id)\n .send()\n .onFailure(\n ar -> {\n ar.printStackTrace();\n p.fail(INTERNALERROR);\n })\n .onSuccess(\n obj -> {\n JsonObject res = obj.bodyAsJsonObject();\n if (obj.statusCode() == 200)\n {\n if (res.getString(STATUS).equals(status.SUCCESS.toString().toLowerCase()))\n p.complete(obj.bodyAsJsonObject().getJsonArray(RESULTS).getJsonObject(0));\n }\n else{\n if (obj.statusCode() == 404)\n p.fail(ITEMNOTFOUND + id);\n else{\n LOGGER.error(\"failed fetchItem: \" + res);\n p.fail(INTERNALERROR);\n }\n\n }\n });\n return p.future();\n }", "public static void startActionGetIngredients(Context context, int recipeId) {\n Intent intent = new Intent(context, GetIngredientsService.class);\n intent.setAction(ACTION_GET_INGREDIENTS);\n intent.putExtra(EXTRA_RECIPE_ID, recipeId);\n context.startService(intent);\n }", "@GraphQLQuery(name = \"food\")\n public Optional<Food> getFoodById(@GraphQLArgument(name = \"id\") Long id) {\n return foodRepository.findById(id);\n }", "CartDO selectByPrimaryKey(Integer id);", "CraftAdvReq selectByPrimaryKey(Integer id);", "public Artista select (int id) {\n EntityManager e = IndConnector.getConnection();\n Artista a = e.find(Artista.class, new Long(id));\n e.close();\n return a;\n }", "Article selectByPrimaryKey(String id);", "public BankThing retrieve(String id);", "IceApp selectByPrimaryKey(Long id);", "Abum selectByPrimaryKey(String id);", "@Query(\"select f from Factura f join fetch f.cliente c join fetch f.items l join fetch l.producto where f.id =?1\")\n\tpublic Factura fetchByIdWithClienteWithItemFacturaWithProducto(Long id);", "@Override\r\n\tpublic ProductRaw getById(int id) {\n\t\treturn productRawDao.selectByPrimaryKey(id);\r\n\t}", "@Override\r\n\tpublic Article select(Integer id) {\n\t\treturn dao.select(id);\r\n\t}", "YzStiveExplosion selectByPrimaryKey(Integer id);", "UserGift selectByPrimaryKey(String ugId);", "ProductEntity findById(long id);", "CatalogItem getItembyId(final Long id);", "@GetMapping(value = \"/{id}\")\n @PreAuthorize(\"hasRole('ADMIN') or hasRole('USER')\")\n public ResponseEntity<RecipeDto> getRecipeById(@PathVariable(\"id\") @NotNull final int id) {\n return new ResponseEntity<>(RecipeDto.from(recipeService.getRecipeById(id)), HttpStatus.OK);\n }", "GirlInfo selectByPrimaryKey(Integer id);", "@Override\n public E getById(final I id) {\n LOG.info(\"[getById] Start: Id = \" + id);\n LOG.info(\"[getById] End\");\n return entityManager.find(entityClass, id);\n }", "public o selectById(long id);", "public Produit getProduit(int theId);", "Powers selectByPrimaryKey(Integer id);", "@Override\r\n\tpublic Dx_Goods getByid(int id) {\n\t\treturn dx_GoodsDao.getByid(id);\r\n\t}", "Product findById(long id);", "@Override\n @LogMethod\n public T get(long id) throws InventoryException {\n \tInventoryHelper.checkPositive(id, \"id\");\n T entity = repository.getByKey(id);\n InventoryHelper.checkEntityExist(entity, id);\n return entity;\n }", "public CartLine get(int id);", "ItemStockDO selectByPrimaryKey(Integer id);", "ItemStockDO selectByPrimaryKey(Integer id);", "Order getOrder(int id) throws ServiceException;", "Dormitory selectByPrimaryKey(Integer id);", "@Override\r\n\tpublic Product showOne(int id) throws Exception {\n\t\treturn this.dao.showOne(id);\r\n\t}", "UcOrderGuestInfo selectByPrimaryKey(Long id);", "@GetMapping(\"/{id}\")\n public ResultEntity<ItemDTO> getItemByItemId(@PathVariable String id)\n {\n return itemService.getItemByItemId(id);\n }", "public Object consultar(int id) throws Exception {\n throw new UnsupportedOperationException(\"Not supported yet.\");\n }", "Tourst selectByPrimaryKey(String id);", "@RequestMapping(value = \"/{id}\", method = RequestMethod.GET)\n public Invoice getInvoiceById(@PathVariable int id) {\n return DatabaseInvoicePostgre.getInvoiceById(id);\n }", "Caiwu selectByPrimaryKey(Integer id);", "Prueba selectByPrimaryKey(Integer id);", "Nutrition selectByPrimaryKey(Integer nutritionid);", "ProductPricelistEntityWithBLOBs selectByPrimaryKey(Integer id);", "@Override\n\tpublic FoodItemDto getFoodItem(Long id) {\n\t\tObject[] item = foodItemRepository.getOneFoodItem(id);\n\t\tFoodItemDto result = new FoodItemDto(item);\n\t\treturn result;\n\t}" ]
[ "0.7913175", "0.71183246", "0.701914", "0.6976105", "0.68982726", "0.6697262", "0.6692386", "0.6687074", "0.66277176", "0.6617896", "0.66096103", "0.64943695", "0.6484061", "0.6449413", "0.64043295", "0.63857794", "0.63731664", "0.6318515", "0.62966293", "0.62733454", "0.62591964", "0.6254285", "0.62485546", "0.62288725", "0.6218564", "0.62133944", "0.62047595", "0.6191279", "0.61911994", "0.6183472", "0.61293375", "0.612128", "0.6111362", "0.6104714", "0.6100969", "0.6096267", "0.60826844", "0.60764164", "0.60689324", "0.60587674", "0.6041706", "0.6010509", "0.59993994", "0.59978324", "0.5993467", "0.59897053", "0.59761584", "0.59730774", "0.59670097", "0.596068", "0.5955895", "0.5952768", "0.5940765", "0.59363115", "0.59319216", "0.5931759", "0.59190935", "0.59189725", "0.59077567", "0.59060854", "0.5890551", "0.5881653", "0.58754003", "0.58752507", "0.58751607", "0.5868485", "0.5846832", "0.58413947", "0.5839525", "0.58361447", "0.58315635", "0.5826285", "0.5816667", "0.5812811", "0.58099794", "0.5800688", "0.57908785", "0.5790483", "0.5775277", "0.5774101", "0.57726985", "0.577047", "0.5766287", "0.5760634", "0.5754529", "0.5740973", "0.5740973", "0.57372475", "0.5734932", "0.57333905", "0.57311386", "0.5730855", "0.5719401", "0.57117265", "0.5710462", "0.56981474", "0.5697282", "0.5694667", "0.5692103", "0.5679767" ]
0.6977176
3
Run shellscript from resourcefolder.
static void executeShellScript(String scriptName, String value1, String value2, File workDirectory) throws IOSException { try { File tempFile = createTempFile(scriptName); if (value1 == null) { value1 = ""; } if (value2 == null) { value2 = ""; } ProcessBuilder processBuilder = new ProcessBuilder("sh", tempFile.getAbsoluteFile().toString(), value1, value2); processBuilder.directory(workDirectory); CommandHelper.performCommand(processBuilder); } catch (IOException e) { e.printStackTrace(); throw new IOSException(e); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void runScript(String script) throws IOException, InterruptedException, RootToolsException, TimeoutException {\r\n\r\n// File tmpFolder = ctx.getDir(\"tmp\", Context.MODE_PRIVATE);\r\n//\r\n// File f = new File(tmpFolder, TEMP_SCRIPT);\r\n// f.setExecutable(true);\r\n// f.deleteOnExit();\r\n//\r\n// // Write the script to be executed\r\n// PrintWriter out = new PrintWriter(new FileOutputStream(f));\r\n// if (new File(\"/system/bin/sh\").exists()) {\r\n// out.write(\"#!/system/bin/sh\\n\");\r\n// }\r\n// out.write(script);\r\n// if (!script.endsWith(\"\\n\")) {\r\n// out.write(\"\\n\");\r\n// }\r\n// out.write(\"exit\\n\");\r\n// out.flush();\r\n// out.close();\r\n\r\n Log.d(this.getClass().getSimpleName(), \"Requesting file execution\");\r\n// Process exec = Runtime.getRuntime().exec(\"su -c \" + f.getAbsolutePath());\r\n// int res = exec.waitFor();\r\n// Toast.makeText(ctx, \"result: \" + res, Toast.LENGTH_LONG).show();\r\n \r\n// if (res != 0) {\r\n// ExceptionHandler.handle(this, R.string.error_script_loading, ctx);\r\n// }\r\n \r\n\r\n if (RootTools.isAccessGiven()) {\r\n List<String> output = RootTools.sendShell(script, SCRIPT_MAX_TIMEOUT);\r\n Log.d(\"\" + this, \"\" + output);\r\n }\r\n }", "public void run(){\n\t\tGlobal.printer.print(\"\\ngetting resource from \"+apkName+\" ... \");\n\t\tString cmd = \"java -jar \\\"\"+this.apktoolPath+\"\\\" d \\\"\"+this.filePath+\"\\\" -f -o \\\"\"+ this.apkPath+\"\\\"\";\n\t\t//Global.copyDir(this.tmpResPath, this.apkPath);\n\t\ttry {\n\t\t\tGlobal.sysCmd(cmd );//,Global.printer);\n\t\t\tGlobal.printer.print(\"succeed!!\");\n\t\t} catch (Exception e) {\n\t\t\tGlobal.printer.print(\"error!!\");\n\t\t\t//Global.printer.print(e.getMessage());\n\t\t}\n\t}", "private void executeShellCommands( final File folderApp, final File targetJavaAppStub )\n throws MojoExecutionException\n {\n this.logger.info( \"Executing shell commands ...\" );\n\n assert ( targetJavaAppStub.exists() == true );\n shellExec( \"chmod 775 \" + escapeWhitespace( targetJavaAppStub.getAbsolutePath() ) );\n\n assert ( folderApp.exists() == true );\n // set attribute \"Has bundle\"\n shellExec( \"/Developer/Tools/SetFile -a B \" + escapeWhitespace( folderApp.getAbsolutePath() ) );\n }", "public void setShellFile(String shellScript)\r\n\t{\r\n\t\tm_shellScript = shellScript;\r\n\t}", "public void execfile(String filename) {\n }", "void executeScript(Readable script) throws IOException;", "void openResource(String resourcePath);", "public ExecScriptCallback()\n {\n\tchooserTitle = DragonUI.textSource.getI18NText(TextKeys.SPTFILE,\n\t\t\t\t\t\t \"SCRIPT FILE TO RUN\");\n\t}", "public void doRunScript(StaplerRequest req, StaplerResponse rsp, @QueryParameter(\"name\") String scriptName) throws IOException, ServletException {\n \t\tcheckPermission(Hudson.ADMINISTER);\n \n \t\tScript script = getScript(scriptName, true);\n \t\treq.setAttribute(\"script\", script);\n \t\t// set default selection\n \t\treq.setAttribute(\"currentNode\", \"(master)\");\n \t\treq.getView(this, \"runscript.jelly\").forward(req, rsp);\n \t}", "public Object executeScript(String command);", "@Test\n public void runScript() throws IllegalArgumentException {\n WebDriverCommandProcessor proc = new WebDriverCommandProcessor(\"http://localhost/\", manager.get());\n CommandFactory factory = new CommandFactory(proc);\n factory.newCommand(1, \"runScript\", \"alert('test')\");\n }", "public void execute()\n throws BuildException\n {\n if (_resinHome == null)\n throw new BuildException(\"resinHome is required by jspc\");\n\n if (_rootDirectory == null)\n throw new BuildException(\"rootDirectory is required by jspc\");\n\n File resinJar = new File(_resinHome,\n \"lib\" + File.separatorChar + \"resin.jar\");\n\n if (! resinJar.exists())\n throw new BuildException(\"resinHome '\"\n + _resinHome\n + \"' does not appear to be valid\");\n\n Java java = new Java(this);\n java.setFailonerror(true);\n java.setFork(true);\n java.setJar(resinJar);\n\n List<String> args = new ArrayList<String>();\n args.add(\"jspc\");\n args.add(\"-app-dir\");\n args.add(_rootDirectory.getPath());\n\n for (String arg : args)\n java.createArg().setLine(arg);\n\n log(java.getCommandLine().toString(), _level.intValue());\n\n java.executeJava();\n }", "public static String buildScriptResource(ResourceAttribute tsa) {\n String scriptResourceName = SysConf.getSysConf().getString(\n \"system.directory.user_workspace_dir\")\n + \"/\"\n + \"targets_scripts\"\n + \"/\"\n + tsa.getResource().getUniqueName().toLowerCase()\n + \"/\"\n + \"converters\" + \"/\" + tsa.getConverterClassName();\n return scriptResourceName;\n }", "public void executePython()\n {\n\n Process pr;\n try {\n pr = Runtime.getRuntime().exec(\"/usr/local/bin//python3 /Users/jithinjose/Downloads/Corona-Tracker/src/main/resources/test12.py\");\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "@Override\n public InputStream findResource(String filename)\n {\n InputStream resource = null;\n try\n {\n Path scriptRootPath = Files.createDirectories(getScriptRootPath(side));\n Path scriptPath = scriptRootPath.resolve(filename).toAbsolutePath();\n resource = Files.newInputStream(scriptPath, StandardOpenOption.READ);\n } catch (IOException e)\n {\n resource = super.findResource(filename);\n }\n return resource;\n }", "public void runExstream () throws IOException, InterruptedException {\n\t\tnew File(path).mkdir();\n\t\t\n\t\t// create control file\n\t\tControlFile controlFile = createControlFile();\n\t\tcontrolFile.writeControlFile(path + request.getTemplate() + \".control\");\n\t\t\n\t\t// write data file\n\t\tInputStream is = this.getClass().getResourceAsStream(\"/TPS/TPS_SPRDR1.xml\");\n\t\tString content = IOUtils.toString(is);\n\t\tcontent = content.replace(\"{INSERT GUID}\", request.getGuid());\n\t\t\n\t\tStringReader sr = new StringReader(content);\n\t\tOutputStream os = new FileOutputStream(new File(path + templateXml));\n\t\t\n\t\tIOUtils.copy(sr, os);\n\t\t\n\t\t// run exstream\n\t\tRuntime runtime = Runtime.getRuntime();\n\t\tProcess process = null;\n\t\t\n\t\tprocess = runtime.exec(command);\n\t\t\n\t\tint exitCode = process.waitFor();\n\t\t\n\t\t\n\t\t\n\t}", "public abstract void runScript() throws Exception;", "public static File createStartupScript(final String cmdline) {\r\n BufferedWriter output = null;\r\n\r\n File script = null;\r\n File gisrc = null;\r\n\r\n UUID id;\r\n String tmpPrefix;\r\n String tmpSuffix;\r\n String tmpExtension;\r\n String tmpBase;\r\n String tmpName;\r\n\r\n final String sFolder = SextanteGUI.getSettingParameterValue(SextanteGrassSettings.GRASS_FOLDER);\r\n final String sWinShell = SextanteGUI.getSettingParameterValue(SextanteGrassSettings.GRASS_WIN_SHELL);\r\n\r\n //Create temporary script file in system's temp dir\r\n id = UUID.randomUUID();\r\n tmpPrefix = new String(GrassUtils.TEMP_PREFIX);\r\n tmpSuffix = new String(\"_\" + id);\r\n tmpBase = new String(System.getProperty(\"java.io.tmpdir\"));\r\n if (Sextante.isWindows()) {\r\n tmpExtension = new String(\"bat\");\r\n }\r\n else {\r\n tmpExtension = new String(\"sh\");\r\n }\r\n if (tmpBase.endsWith(File.separator)) {\r\n tmpName = new String(tmpBase + File.separator + tmpPrefix + tmpSuffix.replace('-', '_') + \".\" + tmpExtension);\r\n }\r\n else {\r\n tmpName = new String(tmpBase + File.separator + tmpPrefix + tmpSuffix.replace('-', '_') + \".\" + tmpExtension);\r\n }\r\n script = new File(tmpName);\r\n script.deleteOnExit();\r\n\r\n //Create a temporary GISRC file in system's temp dir\r\n id = UUID.randomUUID();\r\n tmpPrefix = new String(GrassUtils.TEMP_PREFIX);\r\n tmpSuffix = new String(\"_\" + id);\r\n tmpBase = new String(System.getProperty(\"java.io.tmpdir\"));\r\n if (tmpBase.endsWith(File.separator)) {\r\n tmpName = new String(tmpBase + File.separator + tmpPrefix + tmpSuffix.replace('-', '_') + \".gisrc\");\r\n }\r\n else {\r\n tmpName = new String(tmpBase + File.separator + tmpPrefix + tmpSuffix.replace('-', '_') + \".gisrc\");\r\n }\r\n gisrc = new File(tmpName);\r\n gisrc.deleteOnExit();\r\n\r\n //Get GISDBASE, LOCATION and MAPSET from String parameter\r\n final String mapset = new String(getGrassMapsetFolder().substring(getGrassMapsetFolder().lastIndexOf(File.separator) + 1,\r\n getGrassMapsetFolder().length()));\r\n final String path = new String(getGrassMapsetFolder().substring(0, getGrassMapsetFolder().lastIndexOf(File.separator)));\r\n final String location = new String(path.substring(path.lastIndexOf(File.separator) + 1, path.length()));\r\n final String gisdbase = new String(path.substring(0, path.lastIndexOf(File.separator)));\r\n\r\n //Write the temporary GISRC file to use in this session\r\n try {\r\n output = new BufferedWriter(new FileWriter(gisrc));\r\n output.write(\"GISDBASE: \" + gisdbase + \"\\n\");\r\n output.write(\"LOCATION_NAME: \" + location + \"\\n\");\r\n output.write(\"MAPSET: \" + mapset + \"\\n\");\r\n output.write(\"GRASS_GUI: text\\n\");\r\n output.close();\r\n }\r\n catch (final Exception e) {\r\n return (null);\r\n }\r\n\r\n //Write the startup script\r\n if (Sextante.isUnix() || Sextante.isMacOSX()) {\r\n //Startup script for *nix like systems with built-in shell interpreter\r\n final String grassfolder = new String(sFolder);\r\n try {\r\n output = new BufferedWriter(new FileWriter(script));\r\n output.write(\"#!/bin/sh\\n\");\r\n output.write(\"export GISRC=\\\"\" + gisrc.getAbsolutePath() + \"\\\"\\n\");\r\n output.write(\"export GISBASE=\\\"\" + grassfolder + \"\\\"\\n\");\r\n output.write(\"export GRASS_PROJSHARE=\\\"\" + grassfolder + File.separator + \"share\" + File.separator + \"proj\" + \"\\\"\\n\");\r\n output.write(\"export GRASS_MESSAGE_FORMAT=gui\\n\");\r\n output.write(\"export GRASS_SH=/bin/sh\\n\");\r\n output.write(\"export GRASS_PERL=/usr/bin/perl\\n\");\r\n output.write(\"export GRASS_VERSION=\\\"\" + getGrassVersion() + \"\\\"\\n\");\r\n output.write(\"export GIS_LOCK=$$\\n\");\r\n output.write(\"\\n\");\r\n output.write(\"if [ \\\"$LC_ALL\\\" ] ; then\\n\");\r\n output.write(\"\\tLCL=`echo \\\"$LC_ALL\\\" | sed 's/\\\\(..\\\\)\\\\(.*\\\\)/\\\\1/'`\\n\");\r\n output.write(\"elif [ \\\"$LC_MESSAGES\\\" ] ; then\\n\");\r\n output.write(\"\\tLCL=`echo \\\"$LC_MESSAGES\\\" | sed 's/\\\\(..\\\\)\\\\(.*\\\\)/\\\\1/'`\\n\");\r\n output.write(\"else\\n\");\r\n output.write(\"\\tLCL=`echo \\\"$LANG\\\" | sed 's/\\\\(..\\\\)\\\\(.*\\\\)/\\\\1/'`\\n\");\r\n output.write(\"fi\\n\");\r\n output.write(\"\\n\");\r\n output.write(\"if [ -n \\\"$GRASS_ADDON_PATH\\\" ] ; then\\n\");\r\n output.write(\"\\tPATH=\\\"\" + grassfolder + \"/bin:\" + grassfolder + \"/scripts:$GRASS_ADDON_PATH:$PATH\\\"\\n\");\r\n output.write(\"else\\n\");\r\n output.write(\"\\tPATH=\\\"\" + grassfolder + \"/bin:\" + grassfolder + \"/scripts:$PATH\\\"\\n\");\r\n output.write(\"fi\\n\");\r\n output.write(\"export PATH\\n\");\r\n output.write(\"\\n\");\r\n if (Sextante.isMacOSX()) {\r\n output.write(\"if [ ! \\\"$DYLD_LIBRARY_PATH\\\" ] ; then\\n\");\r\n output.write(\"\\tDYLD_LIBRARY_PATH=\\\"$GISBASE/lib\\\"\\n\");\r\n output.write(\"else\\n\");\r\n output.write(\"\\tDYLD_LIBRARY_PATH=\\\"$GISBASE/lib:$DYLD_LIBRARY_PATH\\\"\\n\");\r\n output.write(\"fi\\n\");\r\n output.write(\"export DYLD_LIBRARY_PATH\\n\");\r\n }\r\n else {\r\n output.write(\"if [ ! \\\"$LD_LIBRARY_PATH\\\" ] ; then\\n\");\r\n output.write(\"\\tLD_LIBRARY_PATH=\\\"$GISBASE/lib\\\"\\n\");\r\n output.write(\"else\\n\");\r\n output.write(\"\\tLD_LIBRARY_PATH=\\\"$GISBASE/lib:$LD_LIBRARY_PATH\\\"\\n\");\r\n output.write(\"fi\\n\");\r\n output.write(\"export LD_LIBRARY_PATH\\n\");\r\n }\r\n output.write(\"\\n\");\r\n output.write(\"if [ ! \\\"$GRASS_PYTHON\\\" ] ; then\\n\");\r\n output.write(\"\\tGRASS_PYTHON=python\\n\");\r\n output.write(\"fi\\n\");\r\n output.write(\"export GRASS_PYTHON\\n\");\r\n output.write(\"if [ ! \\\"$PYTHONPATH\\\" ] ; then\\n\");\r\n output.write(\"\\tPYTHONPATH=\\\"$GISBASE/etc/python\\\"\\n\");\r\n output.write(\"else\\n\");\r\n output.write(\"\\tPYTHONPATH=\\\"$GISBASE/etc/python:$PYTHONPATH\\\"\\n\");\r\n output.write(\"fi\\n\");\r\n output.write(\"export PYTHONPATH\\n\");\r\n output.write(\"\\n\");\r\n output.write(\"if [ ! \\\"$GRASS_GNUPLOT\\\" ] ; then\\n\");\r\n output.write(\"\\tGRASS_GNUPLOT=\\\"gnuplot -persist\\\"\\n\");\r\n output.write(\"\\texport GRASS_GNUPLOT\\n\");\r\n output.write(\"fi\\n\");\r\n output.write(\"\\n\");\r\n output.write(\"if [ \\\"$GRASS_FONT_CAP\\\" ] && [ ! -f \\\"$GRASS_FONT_CAP\\\" ] ; then\\n\");\r\n output.write(\"\\tg.mkfontcap\\n\");\r\n output.write(\"fi\\n\");\r\n output.write(\"\\n\");\r\n output.write(\"g.gisenv set=\\\"MAPSET=\" + mapset + \"\\\"\\n\");\r\n output.write(\"g.gisenv set=\\\"LOCATION=\" + location + \"\\\"\\n\");\r\n output.write(\"g.gisenv set=\\\"LOCATION_NAME=\" + location + \"\\\"\\n\");\r\n output.write(\"g.gisenv set=\\\"GISDBASE=\" + gisdbase + \"\\\"\\n\");\r\n output.write(\"g.gisenv set=\\\"GRASS_GUI=text\\\"\\n\");\r\n output.write(\"\\n\");\r\n output.write(\"\\\"\" + grassfolder + File.separator + \"etc\" + File.separator + \"run\\\" \" + \"\\\"$GRASS_BATCH_JOB\\\" 1>&2\\n\");\r\n output.write(\"\\n\");\r\n output.close();\r\n setExecutable(script.getAbsolutePath());\r\n }\r\n catch (final Exception e) {\r\n return (null);\r\n }\r\n }\r\n else {//Windows\r\n\r\n //Write windows startup script\r\n String shToolsPath = \"\";\r\n if ((sWinShell.length() < 2) || (sWinShell == null)) {\r\n return (null);\r\n }\r\n shToolsPath = sWinShell;\r\n shToolsPath = shToolsPath.substring(0, shToolsPath.lastIndexOf(File.separator));\r\n try {\r\n //m_ComFile.createNewFile();\r\n output = new BufferedWriter(new FileWriter(script));\r\n //Turn on/off verbose output\r\n output.write(\"@echo off\\n\");\r\n //Settings that would otherwise be done in grassXx.bat\r\n output.write(\"set HOME=\" + System.getProperty(\"user.home\") + \"\\n\");\r\n output.write(\"set GISRC=\" + gisrc.getAbsolutePath() + \"\\n\");\r\n output.write(\"set GRASS_SH=\" + sWinShell + \"\\n\");\r\n output.write(\"set PATH=\" + shToolsPath + File.separator + \";\" + \"%PATH%\\n\");\r\n output.write(\"set WINGISBASE=\" + sFolder + \"\\n\");\r\n output.write(\"set GISBASE=\" + sFolder + \"\\n\");\r\n output.write(\"set GRASS_PROJSHARE=\" + sFolder + File.separator + \"share\" + File.separator + \"proj\" + \"\\n\");\r\n output.write(\"set GRASS_MESSAGE_FORMAT=gui\\n\");\r\n //Replacement code for etc/Init.bat\r\n output.write(\"if \\\"%GRASS_ADDON_PATH%\\\"==\\\"\\\" set PATH=%WINGISBASE%\\\\bin;%WINGISBASE%\\\\scripts;%WINGISBASE%\\\\lib;%PATH%\\n\");\r\n output.write(\"if not \\\"%GRASS_ADDON_PATH%\\\"==\\\"\\\" set PATH=%WINGISBASE%\\\\bin;%WINGISBASE%\\\\scripts;%WINGISBASE%\\\\lib;%GRASS_ADDON_PATH%;%PATH%\\n\");\r\n output.write(\"\\n\");\r\n output.write(\"set GRASS_VERSION=\" + getGrassVersion() + \"\\n\");\r\n output.write(\"if not \\\"%LANG%\\\"==\\\"\\\" goto langset\\n\");\r\n output.write(\"FOR /F \\\"usebackq delims==\\\" %%i IN (`\\\"%WINGISBASE%\\\\etc\\\\winlocale\\\"`) DO @set LANG=%%i\\n\");\r\n output.write(\":langset\\n\");\r\n output.write(\"\\n\");\r\n output.write(\"set PATHEXT=%PATHEXT%;.PY\\n\");\r\n output.write(\"set PYTHONPATH=%PYTHONPATH%;%WINGISBASE%\\\\etc\\\\python;%WINGISBASE%\\\\etc\\\\wxpython\\\\n\");\r\n output.write(\"\\n\");\r\n output.write(\"g.gisenv.exe set=\\\"MAPSET=\" + mapset + \"\\\"\\n\");\r\n output.write(\"g.gisenv.exe set=\\\"LOCATION=\" + location + \"\\\"\\n\");\r\n output.write(\"g.gisenv.exe set=\\\"LOCATION_NAME=\" + location + \"\\\"\\n\");\r\n output.write(\"g.gisenv.exe set=\\\"GISDBASE=\" + gisdbase + \"\\\"\\n\");\r\n output.write(\"g.gisenv.exe set=\\\"GRASS_GUI=text\\\"\\n\");\r\n output.write(cmdline);\r\n output.write(\"\\n\");\r\n /*output.write(\"call \\\"%GRASS_BATCH_JOB%\\\"\\n\");\r\n output.write(\"call \\\"%GRASS_BATCH_JOB%\\\" > \" + m_ComFile.getAbsolutePath() + \" 2>&1\\n\\n\");*/\r\n output.write(\"exit\\n\");\r\n output.close();\r\n }\r\n catch (final Exception e) {\r\n return (null);\r\n }\r\n }\r\n\r\n if (script != null) {\r\n return script;\r\n }\r\n return null;\r\n }", "public static void command(FileObject folder) {\n String jsxPath = \"C:\\\\Users\\\\gwieleng\\\\AppData\\\\Roaming\\\\npm\\\\jsx.cmd\";\n String folderPath = folder.getPath();\n File file = FileUtil.toFile(folder);\n ExecutionDescriptor executionDescriptor = new ExecutionDescriptor().\n frontWindow(true).\n controllable(true).\n showProgress(true);\n ExternalProcessBuilder externalProcessBuilder = new ExternalProcessBuilder(jsxPath).\n workingDirectory(file).\n addArgument(\"--watch\").\n addArgument(\"--extension\").\n addArgument(\"jsx\").\n addArgument(folderPath).\n addArgument(folderPath);\n ExecutionService service = ExecutionService.newService(\n externalProcessBuilder, \n executionDescriptor, \n \"React\"\n );\n service.run();\n }", "protected String getResourceScript(Resource resource, LocalContainer container)\n {\n ConfigurationBuilderFactory configurationBuilderFactory =\n new DefaultConfigurationBuilderFactory();\n ConfigurationBuilder builder =\n configurationBuilderFactory.createConfigurationBuilder(container, resource);\n String configurationEntry = builder.toConfigurationEntry(resource);\n return configurationEntry;\n }", "private String getCreateRunScript(ActionURL url, boolean isOutput)\n {\n return DataRegion.getJavaScriptObjectReference(getDataRegionName()) +\n \".getSelected({success: \" + getSelectedScript(url, isOutput) + \"});\";\n }", "File getExecutable();", "void startScript() {\n\n\t\tif (UIHANDLER_WS_NAME.equalsIgnoreCase((String) core.readDataPool(\n\t\t\t\tDP_ACTUAL_UIHANDLER, preferences.getString(\n\t\t\t\t\t\tPropName_UIHander, UIHANDLER_WS_NAME)))) {\n\n\t\t\t// startButtonLabel.setIcon(resourceMap.getIcon(\"startButtonLabel.icon\"));\n\t\t\tcore.getSystemIF().openBrowser();\n\t\t} else {\n\t\t\tArchive ActiveArchive = (Archive) mSourceSpinner.getSelectedItem();\n\t\t\tif (ActiveArchive == null) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tpreferences\n\t\t\t\t\t.edit()\n\t\t\t\t\t.putString(PropName_ScriptName,\n\t\t\t\t\t\t\tActiveArchive.getFileName()).commit();\n\t\t\tcore.writeDataPool(DP_ACTIVE_ARCHIVE, ActiveArchive);\n\t\t\tcore.startScriptArchive(ActiveArchive);\n\n\t\t\t// ----------------------------------------------------------\n\t\t\t// prepare the \"load Script\" message\n\t\t\tDiagnose.showDialog = true;\n\t\t\t// the following trick avoids a recreation of the Diagnose\n\t\t\t// TapActivity as long as the previous created one is still\n\t\t\t// in memory\n\t\t\tIntent i = new Intent();\n\t\t\ti.setClass(MainActivity.this, DiagnoseTab.class);\n\t\t\ti.addFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP);\n\t\t\tstartActivity(i);\n\n\t\t}\n\n\t}", "private void configureScenarioScript(final Demo demo,\n final Scenario scenario, final String name,\n final ClassLoader demoResourceLoader) {\n final String username = demo.getScriptProperty(scenario.getName(), name, \"Credentials.Username\");\n final String password = demo.getScriptProperty(scenario.getName(), name, \"Credentials.Password\");\n if (null == username || null == password) {\n logger.logWarning(\"Demo script {0} for scenario {1} is not configured correctly.\", name, scenario.getName());\n } else {\n final Credentials credentials = new Credentials();\n credentials.setPassword(password);\n credentials.setUsername(username);\n scenario.addScript(new Script() {\n public String getName() {\n return name;\n }\n public InputStream open() {\n // TODO Should support other script types\n return demoResourceLoader.getResourceAsStream(\n MessageFormat.format(\"{0}/{1}.groovy\",\n scenario.getName().toLowerCase(), name));\n }\n public InputStream openResource(final String name) {\n return demoResourceLoader.getResourceAsStream(\n MessageFormat.format(\"{0}/resources/{1}\",\n scenario.getName().toLowerCase(), name));\n }\n }, credentials);\n }\n }", "public interface BashScriptService {\n public boolean createProjectAssetFolders(String projectAssetEncryptedFolderName) throws Exception;\n\n public boolean runBashScriptInRemoteServer(String projectAssetEncryptedFolderName) throws Exception;\n}", "void execute(Executable executable);", "String getResource();", "private void doExecute() throws MojoExecutionException {\n URL buildUrl;\n try {\n buildUrl = buildDirectory.toURI().toURL();\n getLog().info(\"build directory \" + buildUrl.toString());\n } catch (MalformedURLException e1) {\n throw new MojoExecutionException(\"Cannot build URL for build directory\");\n }\n ClassLoader loader = makeClassLoader();\n Properties properties = new Properties(project.getProperties());\n properties.setProperty(\"lenskit.eval.dataDir\", dataDir);\n properties.setProperty(\"lenskit.eval.analysisDir\", analysisDir);\n dumpClassLoader(loader);\n EvalConfigEngine engine = new EvalConfigEngine(loader, properties);\n \n try {\n File f = new File(script);\n getLog().info(\"Loading evalution script from \" + f.getPath());\n engine.execute(f);\n } catch (CommandException e) {\n throw new MojoExecutionException(\"Invalid evaluation script\", e);\n } catch (IOException e) {\n throw new MojoExecutionException(\"IO Exception on script\", e);\n }\n }", "@HandleAfterCreate\n public void scriptRunning(Script script) {\n scriptProccessingService.perform(script.getId());\n }", "@Override\r\n public String execute() throws JShellException {\r\n // validate before executing\r\n try {\r\n this.validate();\r\n } catch (JShellException e) {\r\n throw e;\r\n }\r\n // pop the path and cd to it\r\n DirectoryStack dStack = this.getShell().getDirStack();\r\n Path newCwd = dStack.pop();\r\n this.getShell().getFs().changeDirectory(newCwd);\r\n return null;\r\n }", "public void executeScript(final String javaScript) {\n\t\tif(Platform.isFxApplicationThread()) {\n\t\t\twebEngine.executeScript(javaScript);\n\t\t}else {\n\t\t\tPlatform.runLater(new Runnable() {\n\t\t\t\tpublic void run() {\n\t\t\t\t\twebEngine.executeScript(javaScript);\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t}", "public String getExecutable();", "private static void process() {\n try {\n \tpath = path.replaceAll(\"\\\\\\\\\",\"\\\\\\\\\\\\\\\\\");\n Process process = Runtime.getRuntime().exec(\"cmd /c start \"+\"\\\"\"+\"\\\" \\\"\"+ path+\"\\\"\");\n } catch (Exception ex) {\n ex.printStackTrace();\n }\n }", "public static void createRubyScript(IProject rubyProject, String scriptName, IResource resource) {\r\n \t\tString name = getAWEprojectNameFromResource(rubyProject);\r\n \t\tProject project = findProject(name);\r\n \t\tRubyProject ruby = findRubyProject(project, rubyProject.getName());\r\n \t\tif (ruby != null) {\r\n \t\t\tcreateScriptIfNotExist(ruby, scriptName, resource);\r\n \t\t}\t\t\r\n \t}", "void run() throws IOException {\n\t\tint lastSlash = savedFilePath.lastIndexOf(\"\\\\\");\n\t\tString pathDir = savedFilePath.substring(0,lastSlash);\n\t\tint dotPos = savedFilePath.lastIndexOf(\".\");\n\t\tString fileName = savedFilePath.substring(lastSlash+1,dotPos);\n\t\tString[] command = {\n\t\t\t\t\"cmd.exe\",\n\t\t\t\t\"/c\",\n\t\t\t\t\"cd\",\n\t\t\t\tpathDir,\n\t\t\t\t\"&\",\n\t\t\t\t\"Start\",\n\t\t\t\t\"cmd.exe\",\n\t\t\t\t\"/k\",\n\t\t\t\tjavaPath,\n\t\t\t\tfileName\n\t\t};\n\t\tRuntime runtime = Runtime.getRuntime();\n\t\truntime.exec(command);\n\t}", "public void run() {\n\t\t try {\n\t\t Clip clip = AudioSystem.getClip();\n\t\t //AudioInputStream inputStream = AudioSystem.getAudioInputStream(\n\t\t //Main.class.getResourceAsStream(\"/path/to/sounds/\" + url));\n\t\t //clip.open(inputStream);\n\t\t clip.start(); \n\t\t } catch (Exception e) {\n\t\t System.err.println(e.getMessage());\n\t\t }\n\t\t }", "private void shellExec( final String shellCommand )\n throws MojoExecutionException\n {\n try\n {\n this.logger.debug( \"Executing shell command '\" + shellCommand + \"' ...\" );\n PtShellExecuter.executeProcess( shellCommand );\n }\n catch ( PtException e )\n {\n throw new MojoExecutionException( \"Could not execute command '\" + shellCommand + \"'!\", e );\n }\n }", "String getExecutable();", "public String getResourcePath();", "public void setExecutable(String executable);", "public Script() {\n\n fs = System.getProperty(\"file.separator\");\n ps = System.getProperty(\"path.separator\");\n\n try {\n env = new Environment();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public void runFile(String filename) {\n }", "public void runScript(File script) throws DataAccessLayerException {\n byte[] bytes = null;\n try {\n bytes = FileUtil.file2bytes(script);\n } catch (FileNotFoundException e) {\n throw new DataAccessLayerException(\n \"Unable to open input stream to sql script: \" + script);\n } catch (IOException e) {\n throw new DataAccessLayerException(\n \"Unable to read script contents for script: \" + script);\n }\n runScript(new StringBuffer().append(new String(bytes)));\n }", "@Override\r\n\tpublic String execute(String script) {\n\t\treturn script+\"sb\";\r\n\t}", "public static String getResourceString (String aResourceString)\n {\n String resourceFile = ADMIN_CONSOLE_BUNDLE;\n String str = getResourceString(aResourceString, \"\");\n return str;\n }", "private void executeArchetypeCommand() {\n /*\n * Maven embedder:doit\n *\n */\n\n String[] commands = {\"mvn\",\"archetype:create\",\n \"-DarchetypeGroupId=org.appfuse\",\n \"-DarchetypeArtifactId=appfuse-archetype-basic-struts\",\n \"-DarchetypeVersion=1.0-m2\",\n \"-DgroupId=\" + data.getPackageName(),\n \"-DartifactId=\" + data.getApplicationName(),\n \"-DremoteRepositories=http://oss.sonatype.org/content/repositories/appfuse-releases\"};\n\n\n String path = PropertyUtility.getInstance().getSystemProperties().getProperty(\"user.dir\");\n log.info(path);\n \n runCommand(commands, null, new File(\"../\"));\n\n //buffer.append(\"firefox http://localhost/mediawiki\");\n\n }", "public void doEditScript(StaplerRequest req, StaplerResponse rsp, @QueryParameter(\"name\") String scriptName) throws IOException, ServletException {\n \t\tcheckPermission(Hudson.ADMINISTER);\n \n \t\tScript script = getScript(scriptName, true);\n \t\treq.setAttribute(\"script\", script);\n \t\treq.getView(this, \"edit.jelly\").forward(req, rsp);\n \t}", "private void exec(String inputFile, String outputPath) {\n\t\tRuntime runtime = Runtime.getRuntime();\n\t\tString[] args = {\"java\", \"-jar\",freelingpath,freelingconf, outputPath, inputFile};\n\t\ttry {\n\t\t\tProcess p = runtime.exec(args);\n\t\t\tp.waitFor();\n\t\t\t//System.out.println(p.exitValue());\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (InterruptedException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "InternalResponseBehavior executeScript(ResourceConfig config, Map<String, Object> bindings);", "private static void doFsCommand(final FsShell shell, final String [] args)\n throws Exception {\n int errcode = shell.run(args);\n if (errcode != 0) throw new IOException(\"Failed put; errcode=\" + errcode);\n }", "@Override\n public Object evaluate(String script) throws CompilationFailedException {\n return getShell().evaluate(script);\n }", "@EventListener\n public void scriptResultWriting(ScriptLaunched scriptLaunched){\n Long id = scriptLaunched.getEventData();\n logger.info(\"script with id: \" + id + \" launched\");\n // run task for script with id\n }", "public void executeSshPassShellScript() {\n\n\t\tString executableScriptCommand = null;\n\t\tArrayList<String> sshResultArray;\n\t\tArrayList<String> listExecuteCmdArray = new ArrayList<String>();\n\t\tlistExecuteCmdArray.add(targetScriptFilePath.toString());\n\t\tlistExecuteCmdArray.add(newNode.getIpAddress());\n\t\tlistExecuteCmdArray.add(newNode.getUserName());\n\t\tlistExecuteCmdArray.add(newNode.getPassword());\n\t\tString actionCmd = createSshCommand(diskName, byteSize, blockCount );\n\t\tlog.debug(\"actionCmd :\" + actionCmd);\n\t\tlistExecuteCmdArray.add(actionCmd);\n\t\tSshpassClientConnection sshpassConn = new SshpassClientConnection();\n\t\tsshResultArray = sshpassConn.executeProcess(listExecuteCmdArray);\n\t\tlistExecuteCmdArray.remove(4);\n\t\tlistExecuteCmdArray.clear();\n\n\t}", "@Override\n public void handle(ActionEvent t) {\n \n try {\n Runtime.getRuntime().exec(\"rundll32 url.dll,FileProtocolHandler \" + \"src\\\\multimedia\\\\Manual de usuario.pdf\");\n} catch (IOException e) {\n e.printStackTrace();\n}\n\n}", "public void exec();", "protected abstract String getResourcePath();", "public StaticScript script(String script) {\n this.script = script;\n return this;\n }", "public void run() throws IOException {\n copyFile(JAR_PATH, JAR_DESTINATION);\n copyFile(LICENSE_PATH, LICENSE_DESTINATION);\n copyFile(LISTFILE_PATH, LISTFILE_DESTINATION);\n copyFile(README_PATH, README_DESTINATION);\n writeFileContents(RUN_CONTENTS, RUN_DESTINATION);\n }", "@Test\r\n\t@Deployment(resources={\"MyProcess03.bpmn\" })\r\n\tpublic void starter() {\r\n\t\tactivitiSpringRule.getIdentityService().setAuthenticatedUserId(\"claudio\");\r\n\t\t\r\n\t\tRuntimeService runtimeService = activitiSpringRule.getRuntimeService();\t\t\r\n\t\tProcessInstance processInstance = runtimeService.startProcessInstanceByKey(\"MyProcess03\");\r\n\t\t\r\n\t\tassertEquals(\"claudio\",runtimeService.getVariable(processInstance.getId(), \"myStarter\"));\r\n\t}", "@MBeanInfo(\"Execute commands from a file\")\n String execfile(@MBeanInfo(\"Path to file\") String path);", "private void handleResources() throws MojoExecutionException {\n List<Resource> resources = project.getResources();\n if (resources.isEmpty()) {\n return;\n }\n Plugin resourcesPlugin = project.getPlugin(ORG_APACHE_MAVEN_PLUGINS + \":\" + MAVEN_RESOURCES_PLUGIN);\n if (resourcesPlugin == null) {\n return;\n }\n executeMojo(\n plugin(\n groupId(ORG_APACHE_MAVEN_PLUGINS),\n artifactId(MAVEN_RESOURCES_PLUGIN),\n version(resourcesPlugin.getVersion()),\n resourcesPlugin.getDependencies()),\n goal(\"resources\"),\n getPluginConfig(resourcesPlugin),\n executionEnvironment(\n project,\n session,\n pluginManager));\n }", "public void execute() throws MojoExecutionException {\n\n // 1. Create and set up directories\n getLog().info(\"Creating and setting up the bundle directories\");\n buildDirectory.mkdirs();\n\n File bundleDir = new File(buildDirectory, bundleName + \".app\");\n bundleDir.mkdirs();\n\n File contentsDir = new File(bundleDir, \"Contents\");\n contentsDir.mkdirs();\n\n File resourcesDir = new File(contentsDir, \"Resources\");\n resourcesDir.mkdirs();\n\n File javaDirectory = new File(contentsDir, \"Java\");\n javaDirectory.mkdirs();\n\n File macOSDirectory = new File(contentsDir, \"MacOS\");\n macOSDirectory.mkdirs();\n\n // 2. Copy in the native java application stub\n getLog().info(\"Copying the native Java Application Stub\");\n File launcher = new File(macOSDirectory, javaLauncherName);\n launcher.setExecutable(true);\n\n FileOutputStream launcherStream = null;\n try {\n launcherStream = new FileOutputStream(launcher);\n } catch (FileNotFoundException ex) {\n throw new MojoExecutionException(\"Could not copy file to directory \" + launcher, ex);\n }\n\n InputStream launcherResourceStream = this.getClass().getResourceAsStream(javaLauncherName);\n try {\n IOUtil.copy(launcherResourceStream, launcherStream);\n } catch (IOException ex) {\n throw new MojoExecutionException(\"Could not copy file \" + javaLauncherName + \" to directory \" + macOSDirectory, ex);\n }\n\n // 3.Copy icon file to the bundle if specified\n if (iconFile != null) {\n File f = searchFile(iconFile, project.getBasedir());\n\n if (f != null && f.exists() && f.isFile()) {\n getLog().info(\"Copying the Icon File\");\n try {\n FileUtils.copyFileToDirectory(f, resourcesDir);\n } catch (IOException ex) {\n throw new MojoExecutionException(\"Error copying file \" + iconFile + \" to \" + resourcesDir, ex);\n }\n } else {\n throw new MojoExecutionException(String.format(\"Could not locate iconFile '%s'\", iconFile));\n }\n }\n\n // 4. Resolve and copy in all dependencies from the pom\n getLog().info(\"Copying dependencies\");\n List<String> files = copyDependencies(javaDirectory);\n if (additionalBundledClasspathResources != null && !additionalBundledClasspathResources.isEmpty()) {\n files.addAll(copyAdditionalBundledClasspathResources(javaDirectory, \"lib\", additionalBundledClasspathResources));\n }\n\n // 5. Check if JRE should be embedded. Check JRE path. Copy JRE\n if (jrePath != null) {\n File f = new File(jrePath);\n if (f.exists() && f.isDirectory()) {\n // Check if the source folder is a jdk-home\n File pluginsDirectory = new File(contentsDir, \"PlugIns/JRE/Contents/Home/jre\");\n pluginsDirectory.mkdirs();\n\n File sourceFolder = new File(jrePath, \"Contents/Home\");\n if (new File(jrePath, \"Contents/Home/jre\").exists()) {\n sourceFolder = new File(jrePath, \"Contents/Home/jre\");\n }\n\n try {\n getLog().info(\"Copying the JRE Folder from : [\" + sourceFolder + \"] to PlugIn folder: [\" + pluginsDirectory + \"]\");\n FileUtils.copyDirectoryStructure(sourceFolder, pluginsDirectory);\n File binFolder = new File(pluginsDirectory, \"bin\");\n //Setting execute permissions on executables in JRE\n for (String filename : binFolder.list()) {\n new File(binFolder, filename).setExecutable(true, false);\n }\n\n new File (pluginsDirectory, \"lib/jspawnhelper\").setExecutable(true,false);\n embeddJre = true;\n } catch (IOException ex) {\n throw new MojoExecutionException(\"Error copying folder \" + f + \" to \" + pluginsDirectory, ex);\n }\n } else {\n getLog().warn(\"JRE not found check jrePath setting in pom.xml\");\n }\n } else if (jreFullPath != null){\n getLog().info(\"JRE Full path is used [\" + jreFullPath + \"]\");\n embeddJre = true;\n }\n\n // 6. Create and write the Info.plist file\n getLog().info(\"Writing the Info.plist file\");\n File infoPlist = new File(bundleDir, \"Contents\" + File.separator + \"Info.plist\");\n this.writeInfoPlist(infoPlist, files);\n\n // 7. Copy specified additional resources into the top level directory\n getLog().info(\"Copying additional resources\");\n if (additionalResources != null && !additionalResources.isEmpty()) {\n this.copyResources(buildDirectory, additionalResources);\n }\n\n // 7. Make the stub executable\n if (!SystemUtils.IS_OS_WINDOWS) {\n getLog().info(\"Making stub executable\");\n Commandline chmod = new Commandline();\n try {\n chmod.setExecutable(\"chmod\");\n chmod.createArgument().setValue(\"755\");\n chmod.createArgument().setValue(launcher.getAbsolutePath());\n\n chmod.execute();\n } catch (CommandLineException e) {\n throw new MojoExecutionException(\"Error executing \" + chmod + \" \", e);\n }\n } else {\n getLog().warn(\"The stub was created without executable file permissions for UNIX systems\");\n }\n\n // 8. Create the DMG file\n if (generateDiskImageFile) {\n if (SystemUtils.IS_OS_MAC_OSX || SystemUtils.IS_OS_MAC) {\n getLog().info(\"Generating the Disk Image file\");\n Commandline dmg = new Commandline();\n try {\n // user wants /Applications symlink in the resulting disk image\n if (includeApplicationsSymlink) {\n createApplicationsSymlink();\n }\n dmg.setExecutable(\"hdiutil\");\n dmg.createArgument().setValue(\"create\");\n dmg.createArgument().setValue(\"-srcfolder\");\n dmg.createArgument().setValue(buildDirectory.getAbsolutePath());\n dmg.createArgument().setValue(diskImageFile.getAbsolutePath());\n\n try {\n dmg.execute().waitFor();\n } catch (InterruptedException ex) {\n throw new MojoExecutionException(\"Thread was interrupted while creating DMG \" + diskImageFile, ex);\n } finally {\n if (includeApplicationsSymlink) {\n removeApplicationsSymlink();\n }\n }\n } catch (CommandLineException ex) {\n throw new MojoExecutionException(\"Error creating disk image \" + diskImageFile, ex);\n }\n\n if (diskImageInternetEnable) {\n getLog().info(\"Enabling the Disk Image file for internet\");\n try {\n Commandline internetEnableCommand = new Commandline();\n\n internetEnableCommand.setExecutable(\"hdiutil\");\n internetEnableCommand.createArgument().setValue(\"internet-enable\");\n internetEnableCommand.createArgument().setValue(\"-yes\");\n internetEnableCommand.createArgument().setValue(diskImageFile.getAbsolutePath());\n\n internetEnableCommand.execute();\n } catch (CommandLineException ex) {\n throw new MojoExecutionException(\"Error internet enabling disk image: \" + diskImageFile, ex);\n }\n }\n projectHelper.attachArtifact(project, \"dmg\", null, diskImageFile);\n }\n if (SystemUtils.IS_OS_LINUX) {\n getLog().info(\"Generating the Disk Image file\");\n Commandline linux_dmg = new Commandline();\n try {\n linux_dmg.setExecutable(\"genisoimage\");\n linux_dmg.createArgument().setValue(\"-V\");\n linux_dmg.createArgument().setValue(bundleName);\n linux_dmg.createArgument().setValue(\"-D\");\n linux_dmg.createArgument().setValue(\"-R\");\n linux_dmg.createArgument().setValue(\"-apple\");\n linux_dmg.createArgument().setValue(\"-no-pad\");\n linux_dmg.createArgument().setValue(\"-o\");\n linux_dmg.createArgument().setValue(diskImageFile.getAbsolutePath());\n linux_dmg.createArgument().setValue(buildDirectory.getAbsolutePath());\n\n try {\n linux_dmg.execute().waitFor();\n } catch (InterruptedException ex) {\n throw new MojoExecutionException(\"Thread was interrupted while creating DMG \" + diskImageFile,\n ex);\n }\n } catch (CommandLineException ex) {\n throw new MojoExecutionException(\"Error creating disk image \" + diskImageFile + \" genisoimage probably missing\", ex);\n }\n projectHelper.attachArtifact(project, \"dmg\", null, diskImageFile);\n\n } else {\n getLog().warn(\"Disk Image file cannot be generated in non Mac OS X and Linux environments\");\n }\n }\n\n getLog().info(\"App Bundle generation finished\");\n }", "public void doTriggerScript(StaplerRequest req, StaplerResponse rsp, @QueryParameter(\"scriptName\") String scriptName,\n \t\t\t@QueryParameter(\"script\") String script, @QueryParameter(\"node\") String node) throws IOException, ServletException {\n \t\tcheckPermission(Hudson.ADMINISTER);\n \n \t\t// set the script info back to the request, to display it together with\n \t\t// the output.\n \t\tScript tempScript = getScript(scriptName, false);\n \t\ttempScript.setScript(script);\n \t\treq.setAttribute(\"script\", tempScript);\n \t\treq.setAttribute(\"currentNode\", node);\n \n \t\tString output = doScript(node, script);\n \t\treq.setAttribute(\"output\", output);\n \t\treq.getView(this, \"runscript.jelly\").forward(req, rsp);\n \t}", "void loadScript(URL url) throws IOException, ScriptRunnerException;", "public Script(String name, String description, String path){\n\t\tthis.name = name;\n\t\tthis.description = description;\n\t\tthis.path = path + \"/\" + name + \".sh\";\n\t\t\n\t\t//TODO set image icon\n\t}", "public void runner() {\n\t\ttry {\n\t\t\tRuntime r = Runtime.getRuntime();\n\t\t\tString path = \"cmd /c cd D:\\\\\\\\AA三下\\\\\\\\java精灵\\\\ffmpeg-20190513-dcc9998-win64-static\\\\bin\";\n\t\t\tr.exec(\"cmd /c d:\");\n\t\t\t// r.exec(\"cd D:\\\\AA三下\\\\java精灵\\ffmpeg-20190513-dcc9998-win64-static\\bin\");\n\t\t\t//r.exec(path);\n\t\t\tr.exec(\"D:\\\\\\\\\\\\\\\\AA三下\\\\\\\\\\\\\\\\java精灵\\\\\\\\ffmpeg-20190513-dcc9998-win64-static\\\\\\\\bin\\\\\\\\ffmpeg.exe -i E:\\\\recordyin\\\\1.wav -i E:\\\\recordAVI\\\\out2.avi E:\\\\recorder\\\\a11.avi\");\n\t\t\tSystem.out.println(\"over\");\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public static void main(String[] args) {\n Process p;\n try {\n String filename=\"/home/pramit/Desktop/Developers/Try/Test/orig_IMG_2.jpg\",isdl=\"1\";\n String[] cmd = { \"/bin/sh\",\"-c\",\"/home/pramit/IdeaProjects/DigitalKYCServer/src/com/company/crop_n_rotate.py \"\n +filename+\" \"+isdl};\n\n p = Runtime.getRuntime().exec(cmd);\n BufferedReader reader=new BufferedReader(new InputStreamReader(\n p.getInputStream()));\n p.waitFor();\n String z=String.valueOf(p.exitValue());\n System.out.println(\"z= \"+z);\n String line;\n while((line = reader.readLine()) != null) {\n System.out.println(line);\n }\n } catch (IOException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n } catch (InterruptedException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n }", "private void runScriptShell(Interpreter interpreter, String filePath) {\r\n\r\n\t\tint lineNumber = 1;\r\n\r\n\t\tFile file = new File(filePath);\r\n\r\n\t\tSet<String> errorMessages = new HashSet<String>();\r\n\r\n\t\ttry {\r\n\r\n\t\t\tthis.statementScanner = new Scanner(file);\r\n\r\n\t\t\tthis.statementScanner.useDelimiter(\"(?<!\\\\\\\\);\");\r\n\r\n\t\t\twhile (this.statementScanner.hasNext()) {\r\n\r\n\t\t\t\tthis.input = this.statementScanner.next();\r\n\r\n\t\t\t\tthis.statement.parseStatement(this.input);\r\n\r\n\t\t\t\terrorMessages = statement.getErrorMessages();\r\n\r\n\t\t\t\tif (errorMessages.size() > 0) {\r\n\t\t\t\t\tSystem.out.println(\" Error on line number \" + lineNumber + \": \");\r\n\t\t\t\t\tfor (String errorMessage : errorMessages) {\r\n\r\n\t\t\t\t\t\tSystem.out.println(\" \" + errorMessage);\r\n\t\t\t\t\t}\r\n\t\t\t\t} else {\r\n\r\n\t\t\t\t\tinterpreter.processStatement(this.statement);\r\n\t\t\t\t}\r\n\r\n\t\t\t\tlineNumber++;\r\n\t\t\t}\r\n\r\n\t\t\tstatementScanner.close();\r\n\t\t\t/*\r\n\t\t\t * For script input, the file is written to and saved after the script's\r\n\t\t\t * execution is complete.\r\n\t\t\t */\r\n\t\t\tinterpreter.getDisk().writeDataMapToDisk(interpreter.getMemory().getDataMap());\r\n\t\t\t\r\n\t\t} catch (FileNotFoundException e) {\r\n\r\n\t\t\tSystem.out.println(\"Could not access the script file: \" + filePath + \"...no changes were made.\");\r\n\t\t}\r\n\r\n\t}", "protected abstract Executable getExecutable();", "String getAbsolutePathWithinSlingHome(String relativePath);", "public static void setExecutable(String executable) {\n \tGlobals.executable = executable;\n \tsetProperty(\"executable\", executable);\n }", "@Test\n public void run_main(){\n\n String resource_folder = (new File(\"src/test/resources/\")).getAbsolutePath()+ File.separator ;\n\n String[] args = new String[7];\n args[0] = \"-run\";\n args[1] = resource_folder + \"test_configs/line_ctm.xml\";\n args[2] = \"mytest\";\n args[3] = resource_folder+\"sample_output_request.xml\";\n args[4] = \"temp\";\n args[5] = \"0\";\n args[6] = \"100\";\n\n OTM.main(args);\n\n }", "public static ShellRunner runShellCommand(String[] cmd) {\n\t\tShellRunner shellRunner = new ShellRunner(cmd);\n\t\tshellRunner.start();\n\t\treturn shellRunner;\n\t}", "public void runScriptFileWithMessage(final Script script, final IBaseMessage message)\n\t{\t\t\t\t\n\t\trunScriptFileParameter(script, BaseScriptManager.MESSAGE_PARAMETER, message, true);\n\t}", "public static Process runBatchFileInWindows(String src, boolean requestAdminAccess) throws Exception {\n if (!isSoWindows()) {\n return null;\n }\n// String srcCall = src;\n// if (requestAdminAccess) {\n//\n// final File file = File.createTempFile(\"gold-call-admin-\", \".bat\");\n// final String fileGetAdmin = \"get-admin-\" + CSPUtilidadesLang.getTempoCompletoLimpo() + \".vbs\";\n// FileWriter fw = new java.io.FileWriter(file);\n// fw.write(\"@echo off \" + LINE_SEPARATOR\n// + \":-------------------------------------\" + LINE_SEPARATOR\n// + \"IF \\\"%PROCESSOR_ARCHITECTURE%\\\" EQU \\\"amd64\\\" ( \" + LINE_SEPARATOR\n// + \" >nul 2>&1 \\\"%SYSTEMROOT%\\\\SysWOW64\\\\cacls.exe\\\" \\\"%SYSTEMROOT%\\\\SysWOW64\\\\config\\\\system\\\" \" + LINE_SEPARATOR\n// + \") ELSE ( \" + LINE_SEPARATOR\n// + \" >nul 2>&1 \\\"%SYSTEMROOT%\\\\system32\\\\cacls.exe\\\" \\\"%SYSTEMROOT%\\\\system32\\\\config\\\\system\\\" \" + LINE_SEPARATOR\n// + \") \" + LINE_SEPARATOR\n// + \"if '%errorlevel%' NEQ '0' ( \" + LINE_SEPARATOR\n// + \" goto UACPrompt \" + LINE_SEPARATOR\n// + \") else ( goto gotAdmin ) \" + LINE_SEPARATOR\n// + \":UACPrompt \" + LINE_SEPARATOR\n// + \" echo Set UAC = CreateObject^(\\\"Shell.Application\\\"^) > \\\"%temp%\\\\\" + fileGetAdmin + \"\\\" \" + LINE_SEPARATOR\n// + \" set params = %*:\\\"=\\\"\\\" \" + LINE_SEPARATOR\n// + \" echo UAC.ShellExecute \\\"cmd.exe\\\", \\\"/c \\\"\\\"%~s0\\\"\\\" %params%\\\", \\\"\\\", \\\"runas\\\", 0 >> \\\"%temp%\\\\\" + fileGetAdmin + \"\\\" \" + LINE_SEPARATOR\n// + \" \\\"%temp%\\\\\" + fileGetAdmin + \"\\\" \" + LINE_SEPARATOR\n// + \" del \\\"%temp%\\\\\" + fileGetAdmin + \"\\\" \" + LINE_SEPARATOR\n// + \" exit /B \" + LINE_SEPARATOR\n// + \":gotAdmin \" + LINE_SEPARATOR\n// + \" pushd \\\"%CD%\\\" \" + LINE_SEPARATOR\n// + \" CD /D \\\"%~dp0\\\" \" + LINE_SEPARATOR\n// + \":-------------------------------------\" + LINE_SEPARATOR\n// + new CSPArquivosLocais(src).getContent());\n// fw.close();\n// srcCall = file.getAbsolutePath();\n// }\n if (requestAdminAccess) {\n return runVisualBasicScriptInWindows(\n \"Set UAC = CreateObject(\\\"Shell.Application\\\")\" + LINE_SEPARATOR\n + \"UAC.ShellExecute \\\"\" + src + \"\\\", \\\"\\\", \\\"\\\", \\\"runas\\\", 1\"\n );\n }\n return runProcessInSo(\"cmd\", \"/c\", \"start\", \"/b\", src);\n }", "public static void main(String[] args) {\n System.out.println(ResourcesUtil.getResources(\"mapper/sqlmapper.js\"));\n }", "protected Object execScript(String call) {\r\n if (call==null||call.length()==0)\r\n return null;\r\n Desktop desktop = getDesktop();\r\n Object client = desktop.getClient();\r\n Doc doc = desktop.getDoc();\r\n \r\n int left = call.indexOf('(');\r\n String name = call.substring(0, left);\r\n String args = call.substring(left+1, call.length()-1);\r\n \r\n try {\r\n Object[] params;\r\n if (args.trim().length()==0)\r\n params = null;\r\n else\r\n params = Doc.parseParameters(doc, this, args);\r\n Method m = Doc.findMethod(client, name, params);\r\n return Doc.invokeMethod(m, client, params);\r\n } catch (OxyException e) {\r\n Desktop.warn(\"error invoking method \"+name+\" with args: \"+args, e);\r\n return null;\r\n }\r\n }", "public static void main(String args[]){\r\n\t\tSintatico analisador = new Sintatico(\"resources/shell\");\r\n\t\tanalisador.analise();\r\n\t\t//*/\r\n\t}", "@Override\r\n\t\t\tpublic void run() {\n\t\t\t\texecutable.feedbackExecutionProcessRunning();\r\n\t\t\t}", "private static void testRunHardcodedCmd() {\n\t\tString[] cmdArray = { \"./runAsUser/runAsUser.exe\", \"c:\\\\procesos\", \"martin.zaragoza@ACCUSYSARGBSAS\", \"Marzo2015\", \"\\\"C:\\\\WINDOWS\\\\system32\\\\cmd.exe\\\"\",\n\t\t\t\t\"\\\"/c a.exe 1\\\"\" };\n\t\ttry {\n\t\t\tFile wrkDir = new File(\"c:\\\\procesos\");\n\n\t\t\tProcess process = Runtime.getRuntime().exec(cmdArray, null, wrkDir);\n\t\t\tprintStdout(process.getInputStream());\n\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void resourcesLocation (String folder) {\n staticFileFolder = folder.startsWith (\"/\")? folder.substring (1) : folder;\n }", "public void executeScriptCommand(AbstractView view, String commandLine,\n boolean echoCommand)\n {\n // We can use \"thisframe\" and \"thisview\" as reference values. This\n // function binds them to specific names.\n commandLine = m_ScriptCommands\n .replaceVariables(this, view, commandLine);\n\n // Now execute the command\n m_ScriptCommands.executeCommand(commandLine, echoCommand);\n }", "@Override\r\n public void syncExecute(String script)\r\n {\n\r\n }", "protected void doScript(Set<String> scripts, JspWriter out, HttpServletRequest request, HttpServletResponse response, String location) throws IOException {\n\t\tif( scripts.contains(location)){\n\t\t\treturn;\n\t\t}\n\t\tscripts.add(location);\n\t\tif( location.startsWith(\"/\")){\n\t\t\t// script file\n\t\t\tout.print(\"<script type=\\\"text/javascript\\\" charset=\\\"utf8\\\" src=\\\"\");\n\t\t\tif( location.startsWith(\"//\")){\n\t\t\t\t// remote script file\n\t\t\t\tout.print(location);\n\t\t\t}else {\n\t\t\t\t// local script file\n\t\t\t\t// no sessionid needed\n\t\t\t\tout.print(request.getContextPath()+location);\t\t\n\t\t\t}\n\t\t\tout.println(\"\\\"></script>\");\n\t\t}else{\n\t\t\t// in-line script\n\t\t\tout.print(\"<script type=\\\"text/javascript\\\" charset=\\\"utf8\\\" >\");\n\t\t\tout.print(location);\n\t\t\tout.println(\"</script>\");\n\t\t}\n\t}", "public HttpResponse doUploadScript(StaplerRequest req) throws IOException, ServletException {\n \t\tcheckPermission(Hudson.ADMINISTER);\n \t\ttry {\n \t\t\tFile rootDir = getScriptDirectory();\n \n \t\t\tServletFileUpload upload = new ServletFileUpload(new DiskFileItemFactory());\n \n \t\t\tFileItem fileItem = (FileItem) upload.parseRequest(req).get(0);\n \t\t\tString fileName = Util.getFileName(fileItem.getName());\n \t\t\tif (StringUtils.isEmpty(fileName)) {\n \t\t\t\treturn new HttpRedirect(\".\");\n \t\t\t}\n \t\t\tfileName = fixFileName(fileName);\n \n \t\t\tfileItem.write(new File(rootDir, fileName));\n \n \t\t\tScript script = getScript(fileName, false);\n \t\t\tif (script == null) {\n \t\t\t\tscript = new Script(fileName, \"uploaded\");\n \t\t\t}\n \n \t\t\tScriptlerConfiguration config = getConfiguration();\n \t\t\tconfig.addOrReplace(script);\n \n \t\t\treturn new HttpRedirect(\"index\");\n \t\t} catch (IOException e) {\n \t\t\tthrow e;\n \t\t} catch (Exception e) {\n \t\t\tthrow new ServletException(e);\n \t\t}\n \t}", "@Override\r\n public void execute(Workbook workbook) {\n InputStream fileStream = this.getResourceStream(\"xlsx/Employee absence schedule.xlsx\");\r\n workbook.open(fileStream);\r\n }", "private static native void eval(String script)\n /*-{\n try {\n if (script == null) return;\n $wnd.eval(script);\n } catch (e) {\n }\n }-*/;", "Resource getResource();", "public static void createCommandScript(Path scriptPath, String command) throws CWLException {\r\n if (scriptPath != null) {\r\n File scriptFile = scriptPath.toFile();\r\n if (scriptFile.setExecutable(true)) {\r\n logger.trace(\"Set file executable attribute.\");\r\n }\r\n if (scriptFile.setReadable(true)) {\r\n logger.trace(\"Set file readable attribute.\");\r\n }\r\n if (scriptFile.setWritable(true)) {\r\n logger.trace(\"Set file writable attribute.\");\r\n }\r\n if (command != null) {\r\n write(scriptFile, command);\r\n } else {\r\n write(scriptFile, \"#!/bin/bash\");\r\n }\r\n }\r\n }", "Script createScript();", "public static void main(String[] args){\nFile filez = new File(\"d:/prac/sub1\");\r\ndeleteFolder(filez);\r\n}", "public void includeScript(String command, Vector args) throws Throwable {\n String scriptUrl = (String)args.elementAt(0);\n checkArgument(scriptUrl, \"Missing script url in \" + command);\n \n if (!scriptUrl.startsWith(\"http:\") && !scriptUrl.startsWith(\"file:\")) {\n int upCount = 0;\n while(scriptUrl.startsWith(\"..\")) {\n scriptUrl = scriptUrl.substring(\"../\".length());\n upCount++;\n }\n if (baseUrl != null) {\n String newBaseUrl = baseUrl;\n for(int i=0; i<upCount; i++) {\n int index = newBaseUrl.lastIndexOf('/');\n newBaseUrl = newBaseUrl.substring(0, index);\n }\n scriptUrl = newBaseUrl + \"/\" + scriptUrl;\n }\n }\n String tmpBaseUrl = baseUrl;\n runScriptFileI(scriptUrl, false);\n baseUrl = tmpBaseUrl;\n }", "private static void exportResource(String resourcePathName, File outFolder) throws Exception {\n InputStream stream = null;\n try {\n // note that each / is a directory down in the \"jar tree\" been the jar the root of the\n // tree\n stream = DeployManagementModuleFlow.class.getResourceAsStream(resourcePathName);\n if (stream == null) {\n throw new Exception(\"Cannot get resource \\\"\" + resourcePathName\n + \"\\\" from Jar file.\");\n }\n File outFile = new File(outFolder, new File(resourcePathName).getName());\n outFile.getParentFile().mkdirs();\n Files.copy(stream, outFile.toPath());\n } finally {\n if (stream != null) {\n stream.close();\n }\n }\n }", "String getResourceID();", "private static void createScriptIfNotExist(RubyProject rubyProject, String scriptName, IResource scriptResource) {\r\n \t\tboolean exist = false;\r\n \t\t\r\n \t\tRubyProjectElement element = findRubyScript(rubyProject, scriptName);\r\n \t\tif (element != null) {\r\n \t\t\texist = true;\r\n \t\t}\r\n \t\t\r\n \t\tif (!exist) {\r\n \t\t\tRubyFile rubyFile = ProjectFactoryImpl.eINSTANCE.createRubyFile();\r\n \t\t\trubyFile.setName(scriptName);\r\n \t\t\trubyFile.setResource(scriptResource);\r\n \t\t\trubyProject.getRubyElementsInternal().add(rubyFile);\r\n \t\t\trubyFile.setRubyProjectInternal(rubyProject);\r\n \t\t}\r\n \t}", "private void runCommand(String[] commandArray, String[] envP, File location) {\n try {\n Runtime.getRuntime().exec(commandArray, envP, location);\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public InputStream open() {\n return demoResourceLoader.getResourceAsStream(\n MessageFormat.format(\"{0}/{1}.groovy\",\n scenario.getName().toLowerCase(), name));\n }", "@SuppressWarnings(\"ResultOfMethodCallIgnored\")\n @Override\n public LuaValue call(LuaValue arg) {\n String path = arg.checkjstring();\n\n // It's fine to append your path with .lua as it follows Lua standards.\n if (path.startsWith(\"/\")) path.replaceFirst(\"/\", \"\");\n if (!path.endsWith(\".lua\")) path = path + \".lua\";\n\n // Load the script if it's already in memory for this plugin.\n LuaValue possiblyLoadedScript = g.get(\"__lukkitpackages__\").checktable().get(path);\n if (possiblyLoadedScript != null) return possiblyLoadedScript;\n\n // Get the resource as an InputStream from the plugin's resource getter\n InputStream is = plugin.getResource(path);\n if (is != null) {\n try {\n LuaValue calledScript = g.load(new InputStreamReader(is, \"UTF-8\"), path.replace(\"/\", \".\")).call();\n g.get(\"__lukkitpackages__\").checktable().set(path, calledScript);\n return calledScript;\n } catch (LukkitPluginException e) {\n e.printStackTrace();\n addError(e);\n } catch (UnsupportedEncodingException e) {\n e.printStackTrace();\n }\n }\n\n throw new LukkitPluginException(\"Requested Lua file at \" + path + \" but it does not exist.\");\n }", "public static String runToString(String nclscript, String path, Object ... args) throws IOException {\n String arguments = \"\";\n //copy the args to the arguments string\n int index = 1;\n for (Object arg:args) {\n if (arg.getClass().getCanonicalName().contains(\"[]\")) {\n arguments += \"'arg\"+index+\"=(/\";\n for (int i=0;i<((Object[])arg).length;i++) {\n arguments += getArgumentString(((Object[])arg)[i]);\n if (i < ((Object[])arg).length-1) arguments += \",\";\n }\n arguments += \"/)' \";\n } else {\n arguments += \"'arg\"+index+\"=\" + getArgumentString(arg) + \"' \";\n }\n index++;\n }\n //comando in einem Shell-Script ausführen\n File script = File.createTempFile(\"ncl\", \"sh\");\n PrintWriter pw = new PrintWriter(script);\n pw.println(\"#!/bin/bash -l\");\n if (System.getProperty(\"os.name\").toLowerCase().contains(\"mac\")) {\n pw.println(\"script -q /dev/null $SHELL -c \\\"ncl -Q \" + nclscript + \" \" + arguments+\"\\\"\"); \n } else if (System.getProperty(\"os.name\").toLowerCase().contains(\"linux\")) {\n pw.println(\"script -c \\\"ncl -Q \" + nclscript + \" \" + arguments+\"\\\" -q /dev/null\"); \n } else {\n pw.println(\"echo \\\"status_exit(0)\\\" | ncl -Q \" + nclscript + \" \" + arguments); \n }\n pw.flush();\n pw.close();\n script.setExecutable(true);\n script.deleteOnExit();\n String output = Exec.runToString(script.getAbsolutePath(), path);\n script.delete();\n return output;\n }", "private void editScriptButtonActionPerformed() {\n // DEBUG CODE load the test script script\n String script = \"\";\n\n try {\n script = ScriptsDAO.getTextForBuiltInScript(\"utils/aspace/\", \"mapper.bsh\");\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n // if we running in standalone mode in pre update 15\n if (mainFrame == null || mainFrame.getAtVersionNumber().contains(\"15\") || mainFrame.getAtVersionNumber().contains(\"16\")) {\n if (cvd == null) {\n cvd = new CodeViewerDialog(this, SyntaxConstants.SYNTAX_STYLE_JAVA, script, true, false);\n }\n\n cvd.setTitle(\"Mapper Script Editor\");\n cvd.pack();\n cvd.setVisible(true);\n } else {\n // check to see if we have a viewer dialog, if not initialize one\n if (svd == null) {\n svd = new ScriptViewerDialog(this, \"Mapper Script Editor\");\n }\n\n svd.setCurrentScript(script);\n svd.pack();\n svd.setVisible(true);\n }\n }" ]
[ "0.5710444", "0.557007", "0.55100816", "0.52476853", "0.523703", "0.5200068", "0.5172458", "0.51609236", "0.5157095", "0.5129851", "0.5126699", "0.51037455", "0.50908345", "0.4953551", "0.4878403", "0.4869485", "0.484949", "0.4818631", "0.48032665", "0.47941324", "0.47538713", "0.47394425", "0.47357455", "0.47062105", "0.47020346", "0.46887028", "0.46742117", "0.46731794", "0.46712664", "0.46670723", "0.46663594", "0.46592516", "0.4646585", "0.4642735", "0.46163464", "0.4601287", "0.45990902", "0.45666596", "0.4566415", "0.45447907", "0.45438907", "0.45436388", "0.4543487", "0.45295727", "0.45261526", "0.45197725", "0.45197254", "0.45059848", "0.44935232", "0.44839907", "0.4480228", "0.44749746", "0.4462965", "0.4456188", "0.44486776", "0.44463336", "0.44377047", "0.44357553", "0.43891585", "0.4388447", "0.4380005", "0.43717584", "0.43712395", "0.43583384", "0.43253177", "0.43122318", "0.42991287", "0.42937192", "0.42933393", "0.4284881", "0.4279467", "0.42765355", "0.4268191", "0.42568326", "0.42391455", "0.422895", "0.4227397", "0.42273498", "0.42210153", "0.41949093", "0.41945073", "0.41935804", "0.4187065", "0.41829062", "0.41813445", "0.4178421", "0.41783836", "0.4173675", "0.41638872", "0.4163424", "0.41620934", "0.41589063", "0.41580608", "0.41406703", "0.41402835", "0.41397133", "0.4134248", "0.41328213", "0.41273144", "0.41248596" ]
0.50432456
13
/ METHODES PUBLIQUES / METHODES PRIVEES / ACCESSEURS
@XmlAttribute(name = "key") public String getKey() { return key; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void getPrix() {\n\t\t\n\t}", "public void ordenaPontos(){\r\n\t\tloja.ordenaPontos();\r\n\t}", "public void topicsAdvertisedByPub() {\r\n int index = 1;\r\n System.out.println(\"Topics advertised by this publisher: \");\r\n for(Topic topic: pubTopics){\r\n System.out.println(index + \"->\" + topic + \"\\n\");\r\n index++;\r\n }\r\n }", "@Override\n\tpublic void pausaParaComer() {\n\n\t}", "private void poetries() {\n\n\t}", "@Override\n\t\t\tpublic void visit(MethodDeclaration arg0, Object arg1) {\n\t\t\t\tif((arg0.getModifiers() & Modifier.PUBLIC) == Modifier.PUBLIC) {\n\t\t\t\t\t\tif(arg0.getName().substring(0, 3) == \"get\" || arg0.getName().substring(0, 3) == \"set\")\n\t\t\t\t\t\t\tpublicAcces.add(new Pair(arg0.getName() + \"( \"+planeL(arg0.getParameters()) +\") :\" + arg0.getType().toString(), Character.toLowerCase(arg0.getName().substring(3).charAt(0)) + (arg0.getName().substring(3).length() > 1 ? arg0.getName().substring(3).substring(1) : \"\")));\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tpublicAcces.add(new Pair(arg0.getName() + \"( \"+planeL(arg0.getParameters()) +\") :\" + arg0.getType().toString(), Character.toLowerCase(arg0.getName().substring(3).charAt(0)) + (arg0.getName().substring(3).length() > 1 ? arg0.getName().substring(3).substring(1) : \"\")));\n\t\t\t\t\t\tuses(arg0.getParameters());\n\t\t\t\t}\n\t\t\t\tsuper.visit(arg0, arg1);\n\t\t\t}", "@Override\n public String getDescription() {\n return \"Phasing vote casting\";\n }", "@Override\n\tpublic String parler() {\n\t\treturn \"Je suis un Orc\";\n\t}", "public static void main(String[] args) {\n\t\tCheckAccess_moderfier ac=new CheckAccess_moderfier();\n\t\tac.defaultmethos();\n\t\tac.accessmedthos();\n\t\tSystem.out.println(ac.i);\n\t\t\n\t//\tSystem.out.println(ac.j);\n\t}", "public void perder() {\n // TODO implement here\n }", "@Override\r\n\tpublic int getPuntuacion() {\n\t\treturn super.getPuntuacion();\r\n\t}", "public static void menuPrincicipal() {\n\t\tSystem.out.println(\"+---------------------------+\");\n\t\tSystem.out.println(\"| Elige una opcion |\");\n\t\tSystem.out.println(\"+---------------------------+\");\n\t\tSystem.out.println(\"| 1-Modificar Orden |\");\n\t\tSystem.out.println(\"+---------------------------+\");\n\t\tSystem.out.println(\"| 2-Eliminar orden |\");\n\t\tSystem.out.println(\"+---------------------------+\");\n\t\tSystem.out.println(\"| 3-Ver todas las ordenes |\");\n\t\tSystem.out.println(\"+---------------------------+\");\n\t\tSystem.out.println(\"| 0-Salir |\");\n\t\tSystem.out.println(\"+---------------------------+\");\n\t}", "public static void main(String[] args) {\n persegi_panjang pp = new persegi_panjang();\r\n pp.lebar=30;\r\n pp.panjang=50;\r\n Segitiga s = new Segitiga();\r\n s.alas=20;\r\n s.tinggi=40;\r\n Persegi p = new Persegi();\r\n p.sisi=40;\r\n lingkaran l= new lingkaran();\r\n l.jari=20;\r\n \r\npp.luas();\r\npp.keliling();\r\np.luas();\r\np.keliling();\r\ns.luas();\r\ns.keliling();\r\nl.luas();\r\nl.keliling();\r\n}", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n public void affiche(){\n System.out.println(\"Loup : \\n points de vie : \"+this.ptVie+\"\\n pourcentage d'attaque : \"+this.pourcentageAtt+\n \"\\n dégâts d'attaque : \"+this.degAtt+\"\\n pourcentage de parade :\"+this.pourcentagePar+\n \"\\n position : \"+this.pos.toString());\n\n }", "public GrapheIndicateursProjet (Projet p) {\n seuils = p.getSeuilFixes() ;\n \n // pour l'echelle, on determine les mesures max de toutes les iterations\n \n \n iterations = p.getListeIt() ; \n nbIt = iterations.size() ;\n \n // calcul des maximums\n Iteration tempIt = null ;\n IndicateursIteration tempIndIt = null ;\n for (int i = 0 ; i < nbIt ; i++)\n {\n if (iterations.get(i) instanceof Iteration)\n {\n tempIt = (Iteration)iterations.get(i) ;\n tempIndIt = tempIt.getIndicateursIteration() ;\n // charges\n if (tempIndIt.getTotalCharges() > chargesMax) { chargesMax = tempIndIt.getTotalCharges() ; }\n\t\tif (tempIndIt.getChargeMoyenneParticipants() > moyenneChargesMax) { moyenneChargesMax = tempIndIt.getChargeMoyenneParticipants() ; }\n\t\tif (tempIndIt.getNombreParticipants() > participantsMax) { participantsMax = tempIndIt.getNombreParticipants() ; }\n\t\tif (tempIndIt.getNombreTachesTerminees() > tachesTermineesMax) { tachesTermineesMax = tempIndIt.getNombreTachesTerminees() ; }\n\t\tif (tempIndIt.getNombreMoyenTachesParticipants() > tachesParticipantsMax) { tachesParticipantsMax = tempIndIt.getNombreMoyenTachesParticipants() ; }\n\t\tif (tempIndIt.getDureeMoyenneTaches() > dureeMoyenneTacheMax) { dureeMoyenneTacheMax = tempIndIt.getDureeMoyenneTaches() ; }\n }\n }\n setPreferredSize(new Dimension(ITERATION_WIDTH * nbIt,440));\n\t//setBorder(new TitledBorder(new EtchedBorder(), \"toto\", 5, TitledBorder.ABOVE_TOP)) ;\n }", "public void listarExamesDaDisciplina(){\r\n System.out.println(\"Docentes da disciplina\");\r\n for(int i=0;i<exames.size();i++){\r\n System.out.println(exames.get(i).getDisciplina().getNome());\r\n }\r\n }", "public void parler() {\n\t System.out.println(this.formulerMonNom()); // appel d'une méthode de l'objet\n\t System.out.println(\"Je suis un animal et j'ai \" + this.nombreDePatte + \" pattes\");\n\t }", "private void skrivOversikt() {\n System.out.println(\"\\n- Leger -\\n\");\n for (Lege lege : leger){\n System.out.println(lege);\n }\n\n System.out.println(\"\\n- Pasienter -\");\n for (Pasient pasient : pasienter){\n System.out.println(\"\\n\" + pasient);\n }\n\n System.out.println(\"\\n- Legemidler -\");\n for (Legemiddel legemiddel : legemidler){\n System.out.println(\"\\n\" + legemiddel);\n }\n\n System.out.println(\"\\n- Resepter -\");\n for (Resept resept : resepter){\n System.out.println(\"\\n\" + resept);\n }\n }", "@Override\n public void pp(){\n PP=3+2*nivel;\n }", "@Override\r\n\tpublic void CalcPeri() {\n\t\tSystem.out.println(4*side);\t\r\n\t}", "public int getNumPubMethods(){\r\n\t\treturn classStat.getNPuM();\r\n\t}", "public static void main(String[] args) {\n\n\t\t\n\t\tProces p1= new Proces(20, 0, 10);\n\t\tProces p2= new Proces(10, 1, 10);\n\t\tProces p3= new Proces(30, 6, 10);\n\t\tProces p4= new Proces(9, 7, 10);\n\t\tArrayList<Proces> procesy1= new ArrayList<Proces>();\n\t\tprocesy1.add(p1);\n\t\tprocesy1.add(p2);\n\t\tprocesy1.add(p3);\n\t\tprocesy1.add(p4);\n\t\tProcesor proc1= new Procesor(1, procesy1);\n\t\n\t\t\n\t\t\n\t\tArrayList<Proces> procesy2= new ArrayList<Proces>();\n\t\tprocesy2.add(new Proces(40, 2, 14));\n\t\tprocesy2.add(new Proces(20, 8, 9));\n\t\tprocesy2.add(new Proces(30, 2, 3));\n\t\tprocesy2.add(new Proces(10, 4, 5));\n\t\tprocesy2.add(new Proces(4, 7, 14));\n\t\tProcesor proc2= new Procesor(2, procesy2);\n\t\n\t\t\n\t\t\n\t\tArrayList<Procesor> procesory= new ArrayList<Procesor>();\n\t\tprocesory.add(proc1);\n\t\tprocesory.add(proc2);\n\t\t\n\t\tint ileProcesorow=2;\n\t\tint progR=20;\n\t\tint progP=20;\n\t\tint iloscZapytanZ=10;\n\t\tint okresPomiaruObciazen=1;\n\t\t\n\t\tAlgorithms al= new Algorithms(procesory, progP, iloscZapytanZ, progR);\n\t\tal.wyswietlProcesory();\n\t\tal.symulacjaPierwsza(okresPomiaruObciazen);\n\t\tal.symulacjaDruga(okresPomiaruObciazen);\n\t\tal.symulacjaTrzecia(okresPomiaruObciazen);\n\t\t\n\t\t\n\t\t\n\t}", "@Override\n public String toString() { \n return super.getName() + getP1().toString() + \", \" + getP2().toString() \n + \", \" + getP3().toString();\n }", "public abstract Koordinate schuss();", "@Override\n public ArrayList<Propiedad> getPrecioAgente(double pMenor, double pMayor, String pId) throws SQLException {\n ArrayList<Propiedad> resultado = new ArrayList<Propiedad>();\n resultado = (ArrayList<Propiedad>) bdPropiedad.selectQuery(\"SELECT * FROM PROPIEDAD WHERE ID_AGENTE = '\" + pId + \"' AND \"\n + \"PRECIO >= \" + pMenor + \" AND PRECIO <= \" + pMayor);\n return resultado;\n }", "@Override\n public ArrayList<Propiedad> getPrecioCliente(double pMenor, double pMayor) throws SQLException {\n ArrayList<Propiedad> resultado = new ArrayList<Propiedad>();\n resultado = (ArrayList<Propiedad>) bdPropiedad.selectQuery(\"SELECT * FROM PROPIEDAD WHERE ESTADO = 'ACTIVO' AND \"\n + \"PRECIO >= \" + pMenor + \" AND PRECIO <= \" + pMayor);\n return resultado;\n }", "public void affiche() {\n System.out.println(\"le tapis porte \"+this.tapis.size()+\" caisse(s)\");\n for (Iterator it = this.tapis.iterator(); it.hasNext(); ) {\n System.out.println(it.next().toString());\n } \n }", "public static void main(String[] args) {\n Alumnos a = new Alumnos(\"3457794\",\"IDS\",\"A\",3,\"Juan\",\"Masculino\",158);\n //recibe: String folio,String nombre, String sexo, int edad\n Profesores p = new Profesores(\"SDW7984\",\"Dr. Pimentel\",\"Masculino\",25);\n \n //recibe: String puesto,String nombre, String sexo, int edad\n Administrativos ad = new Administrativos(\"Rectoria\",\"Jesica\",\"Femenino\",25);\n \n //datos de alumnos//\n System.out.println(\"\\nEl alumno tiene los siguientes datos:\");\n System.out.println(a.GetName());\n System.out.println(a.GetEdad());\n System.out.println(a.getCarrera());\n \n //datos de maestro//\n System.out.println(\"\\nLos datos de x maestro es:\");\n System.out.println(p.GetName());\n System.out.println(p.getFolio());\n System.out.println(p.GetEdad());\n \n //daros de Administrativo//\n System.out.println(\"\\nLos datos de x Administrativo\");\n System.out.println(ad.GetName());\n System.out.println(ad.getPuesto());\n System.out.println(ad.GetEdad());\n \n \n System.out.println(\"\\n\\nIntegranres de Equipo\");\n System.out.println(\"Kevin Serrano - 133369\");\n System.out.println(\"Luis Angel Farelo Toledo - 143404\");\n System.out.println(\"Ericel Nucamendi Jose - 133407\");\n System.out.println(\"Javier de Jesus Flores Herrera - 143372\");\n System.out.println(\"Carlos Alejandro Zenteno Robles - 143382\");\n }", "int obliczLiczbaKont()\n\t{\n\t\tListaProsumentowWrap listaProsumentowWrap= ListaProsumentowWrap.getInstance();\n\t\tArrayList<Prosument> listaProsumentow = listaProsumentowWrap.getListaProsumentow();\n\t\t\n\t\tint sum=0;\n\t\t\n\t\tint i=0;\n\t\twhile (i<listaProsumentow.size())\n\t\t{\n\t\t\tProsument prosument = listaProsumentow.get(i);\n\t\t\t\n\t\t\tif (prosument instanceof ProsumentEV)\n\t\t\t{\n\t\t\t\tsum+=2;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tsum++;\n\t\t\t}\n\t\t\t\n\t\t\ti++;\n\t\t}\n\t\t\n\t\treturn sum;\n\t}", "@Override\n\tpublic void preparar() {\n\t\tSystem.out.println(\"massa, presunto, queijo, calabreza e cebola\");\n\t\t\n\t}", "@Override\n public String getDescription() {\n return \"Digital goods price change\";\n }", "public static void pt(int numGen) {\r\n\r\n\t\tswitch (numGen) {\r\n\t\tcase 0:\r\n\t\t\tinitialisations();\r\n\t\t\tbreak;\r\n\r\n\t\t\t/* Primaires et Valeurs */\r\n\r\n\t\tcase 1: //Valeur NBENTIER POS\r\n\t\t\ttCour = ENT; \r\n\t\t\tvCour = UtilLex.valNb;\r\n\t\t\tbreak;\r\n\t\tcase 2: //Valeur NBENTIER NEG\r\n\t\t\ttCour = ENT; \r\n\t\t\tvCour = -UtilLex.valNb;\r\n\t\t\tbreak;\r\n\t\tcase 3: //Valeur BOOL VRAI\r\n\t\t\ttCour = BOOL; \r\n\t\t\tvCour = 1;\r\n\t\t\tbreak;\r\n\t\tcase 4: //Valeur BOOL FAUX\r\n\t\t\ttCour = BOOL; \r\n\t\t\tvCour = 0;\r\n\t\t\tbreak;\r\n\r\n\t\tcase 5: //PRIMAIRE VALEUR\r\n\t\t\tpo.produire(EMPILER);\r\n\t\t\tpo.produire(vCour);\r\n\t\t\tbreak;\r\n\t\tcase 6 : //PRIMAIRE IDENT\r\n\t\t\tint valALire = presentIdent(1);\r\n\t\t\tif(valALire == 0) UtilLex.messErr(\"La variable n'existe pas\");\r\n\t\t\telse {\r\n\t\t\t\tswitch (tabSymb[valALire].categorie) {\r\n\t\t\t\tcase CONSTANTE:\r\n\t\t\t\t\tpo.produire(EMPILER);\r\n\t\t\t\t\tpo.produire(tabSymb[valALire].info);\r\n\t\t\t\t\tbreak;\r\n\r\n\t\t\t\tcase VARGLOBALE:\r\n\t\t\t\t\tpo.produire(CONTENUG);\r\n\t\t\t\t\tpo.produire(tabSymb[valALire].info);\r\n\t\t\t\t\tif( desc.getUnite().equals(\"module\") )\r\n\t\t\t\t\t\tmodifVecteurTrans(1);\r\n\t\t\t\t\tbreak;\r\n\r\n\t\t\t\tcase VARLOCALE: \r\n\t\t\t\t\tpo.produire(CONTENUL);\r\n\t\t\t\t\tpo.produire(tabSymb[valALire].info);\r\n\t\t\t\t\tpo.produire(0);\r\n\t\t\t\t\tbreak;\r\n\r\n\t\t\t\tcase PARAMFIXE : \r\n\t\t\t\t\tpo.produire(CONTENUL);\r\n\t\t\t\t\tpo.produire(tabSymb[valALire].info);\r\n\t\t\t\t\tpo.produire(0);\r\n\t\t\t\t\tbreak;\r\n\r\n\t\t\t\tcase PARAMMOD : \r\n\t\t\t\t\tpo.produire(CONTENUL);\r\n\t\t\t\t\tpo.produire(tabSymb[valALire].info);\r\n\t\t\t\t\tpo.produire(1);\r\n\t\t\t\t\tbreak;\r\n\r\n\t\t\t\tdefault:\r\n\t\t\t\t\tUtilLex.messErr(\"Action non valide\");\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\ttCour = tabSymb[valALire].type;\r\n\t\t\tbreak;\r\n\r\n\t\t\t/* Expressions */\r\n\r\n\t\tcase 10:\r\n\t\t\tverifBool();\r\n\t\t\tbreak;\r\n\t\tcase 11:\r\n\t\t\tpo.produire(OU);\r\n\t\t\ttCour = BOOL;\r\n\t\t\tbreak;\r\n\t\tcase 12:\r\n\t\t\tpo.produire(ET);\r\n\t\t\ttCour = BOOL;\r\n\t\t\tbreak;\r\n\t\tcase 13:\r\n\t\t\tpo.produire(NON);\r\n\t\t\ttCour = BOOL;\r\n\t\t\tbreak;\r\n\t\tcase 14:\r\n\t\t\tverifEnt();\r\n\t\t\tbreak;\r\n\t\tcase 15:\r\n\t\t\tpo.produire(EG);\r\n\t\t\tbreak;\r\n\t\tcase 16:\r\n\t\t\tpo.produire(DIFF);\r\n\t\t\tbreak;\r\n\t\tcase 17:\r\n\t\t\tpo.produire(SUP);\r\n\t\t\tbreak;\r\n\t\tcase 18:\r\n\t\t\tpo.produire(SUPEG);\r\n\t\t\tbreak;\r\n\t\tcase 19:\r\n\t\t\tpo.produire(INF);\r\n\t\t\tbreak;\r\n\t\tcase 20:\r\n\t\t\tpo.produire(INFEG);\r\n\t\t\tbreak;\r\n\t\tcase 21:\r\n\t\t\tpo.produire(ADD);\r\n\t\t\ttCour = ENT;\r\n\t\t\tbreak;\r\n\t\tcase 22:\r\n\t\t\tpo.produire(SOUS);\r\n\t\t\ttCour = ENT;\r\n\t\t\tbreak;\r\n\t\tcase 23:\r\n\t\t\tpo.produire(MUL);\r\n\t\t\ttCour = ENT;\r\n\t\t\tbreak;\r\n\t\tcase 24:\r\n\t\t\tpo.produire(DIV);\r\n\t\t\ttCour = ENT;\r\n\t\t\tbreak;\r\n\t\tcase 25:\r\n\t\t\ttCour = BOOL;\r\n\t\t\tbreak;\r\n\r\n\t\t\t/* Déclarations */\r\n\r\n\t\t\t// Variables\r\n\t\tcase 50:\r\n\t\t\ttCour = ENT;\r\n\t\t\tbreak;\r\n\r\n\t\tcase 51:\r\n\t\t\ttCour = BOOL;\r\n\t\t\tbreak;\r\n\r\n\t\tcase 52:\r\n\t\t\tnbVar = 0;\r\n\t\t\tbreak;\r\n\r\n\t\tcase 53: //On place l'ident dans la table des symboles\r\n\t\t\tint varc = presentIdent(1);\r\n\t\t\tif( varc == 0) {\r\n\t\t\t\t//dernier ident lu n'est pas dans tabSymb\r\n\t\t\t\tif(bc == 1){\r\n\t\t\t\t\tplaceIdent(UtilLex.numId, VARGLOBALE, tCour, nbVar);\r\n\t\t\t\t}\r\n\t\t\t\telse{\r\n\t\t\t\t\tplaceIdent(UtilLex.numId, VARLOCALE, tCour, nbVar+nbParamProc+2);\r\n\t\t\t\t}\r\n\t\t\t\tnbVar++;\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tUtilLex.messErr(\"La variable '\"+UtilLex.repId(varc)+\"' a deja ete declaree\");\r\n\t\t\t}\r\n\t\t\tbreak;\r\n\r\n\t\tcase 54: //On reserve de l'espace pour chaque variable globale/locale lue\r\n\t\t\tif( desc.getUnite().equals(\"programme\") ){\r\n\t\t\t\tpo.produire(RESERVER);\r\n\t\t\t\tpo.produire(nbVar);\r\n\t\t\t}\r\n\t\t\tdesc.setTailleGlobaux(nbVar);\r\n\t\t\tbreak;\r\n\r\n\t\t\t// Constantes\r\n\r\n\t\tcase 60: //\"Var = valeur\", On place var dans la table des symboles\r\n\t\t\tint constc = presentIdent(1);\r\n\t\t\tif( constc == 0) {\r\n\t\t\t\t//dernier ident lu n'est pas dans tabSymb\r\n\t\t\t\tplaceIdent(UtilLex.numId, CONSTANTE, tCour, vCour);\r\n\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tUtilLex.messErr(\"La constante '\"+UtilLex.repId(constc)+\"' a deja ete declaree\");\r\n\t\t\t}\r\n\r\n\t\t\tbreak;\r\n\r\n\r\n\t\t\t/* Affectations */\r\n\r\n\t\tcase 70:\r\n\t\t\tvTmp = presentIdent(1);\r\n\t\t\tbreak;\r\n\r\n\t\tcase 71:\r\n\t\t\tint varAffect = vTmp;\r\n\t\t\tif( varAffect == 0) {\r\n\t\t\t\t//dernier ident lu n'est pas dans tabSymb\r\n\t\t\t\tUtilLex.messErr(\"La Variable '\"+UtilLex.repId(varAffect)+\"' n'a pas ete declaree\");\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tif(tabSymb[varAffect].type != tCour) {\r\n\t\t\t\t\tUtilLex.messErr(\"types non-concordants\");\r\n\t\t\t\t}\r\n\t\t\t\tswitch(tabSymb[varAffect].categorie){\r\n\t\t\t\tcase VARGLOBALE : \r\n\t\t\t\t\tpo.produire(AFFECTERG);\r\n\t\t\t\t\tpo.produire(tabSymb[varAffect].info);\r\n\t\t\t\t\tif( desc.getUnite().equals(\"module\") )\r\n\t\t\t\t\t\tmodifVecteurTrans(1);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase VARLOCALE : \r\n\t\t\t\t\tpo.produire(AFFECTERL);\r\n\t\t\t\t\tpo.produire(tabSymb[varAffect].info);\r\n\t\t\t\t\tpo.produire(0);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase PARAMMOD :\r\n\t\t\t\t\tpo.produire(AFFECTERL);\r\n\t\t\t\t\tpo.produire(tabSymb[varAffect].info);\r\n\t\t\t\t\tpo.produire(1);\t\t\t\t\t\r\n\t\t\t\t\tbreak;\t\t\t\t\r\n\t\t\t\tdefault : \r\n\t\t\t\t\tUtilLex.messErr(\"Ne peut pas affecter dans \"+UtilLex.repId(varAffect)+\"', c'est une constante\");\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tbreak;\r\n\r\n\r\n\t\t\t/* Lectures, Ecritures */\r\n\r\n\t\t\t// Lecture\r\n\r\n\t\tcase 80:\r\n\t\t\tint varALire = presentIdent(1);\r\n\t\t\tif( varALire == 0) {\r\n\t\t\t\t//dernier ident lu n'est pas dans tabSymb\r\n\t\t\t\tUtilLex.messErr(UtilLex.repId(varALire)+\"' n'a pas ete declaree\");\r\n\t\t\t}\t\t\t\r\n\t\t\tswitch(tabSymb[varALire].categorie){\r\n\t\t\tcase VARGLOBALE : \r\n\t\t\t\tif(tabSymb[varALire].type == BOOL){\r\n\t\t\t\t\tpo.produire(LIREBOOL);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tpo.produire(LIRENT);\r\n\t\t\t\t}\r\n\t\t\t\tpo.produire(AFFECTERG);\r\n\t\t\t\tpo.produire(tabSymb[varALire].info);\r\n\t\t\t\tif( desc.getUnite().equals(\"module\") )\r\n\t\t\t\t\tmodifVecteurTrans(1);\r\n\t\t\t\tbreak;\r\n\t\t\tcase VARLOCALE : \r\n\t\t\t\tif(tabSymb[varALire].type == BOOL){\r\n\t\t\t\t\tpo.produire(LIREBOOL);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tpo.produire(LIRENT);\t\r\n\t\t\t\t}\r\n\t\t\t\tpo.produire(AFFECTERL);\r\n\t\t\t\tpo.produire(tabSymb[varALire].info);\r\n\t\t\t\tpo.produire(0);\r\n\t\t\t\tbreak;\r\n\t\t\tcase PARAMMOD :\r\n\t\t\t\tif(tabSymb[varALire].type == BOOL){\r\n\t\t\t\t\tpo.produire(LIREBOOL);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tpo.produire(LIRENT);\r\n\t\t\t\t}\r\n\t\t\t\tpo.produire(AFFECTERG);\r\n\t\t\t\tpo.produire(tabSymb[varALire].info);\r\n\t\t\t\tpo.produire(1);\r\n\t\t\t\tif( desc.getUnite().equals(\"module\") )\r\n\t\t\t\t\tmodifVecteurTrans(1);\r\n\t\t\t\tbreak;\t\t\t\t\r\n\t\t\tdefault : \r\n\t\t\t\tUtilLex.messErr(\"Ne peut pas lire dans \"+UtilLex.repId(varALire)+\"', c'est une constante\");\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\tbreak;\r\n\r\n\t\t\t// Ecriture\r\n\r\n\t\tcase 81:\r\n\t\t\tswitch(tCour) {\r\n\t\t\tcase BOOL:\r\n\t\t\t\tpo.produire(ECRBOOL);\r\n\t\t\t\tbreak;\r\n\t\t\tcase ENT:\r\n\t\t\t\tpo.produire(ECRENT);\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\tbreak;\r\n\r\n\t\t\t/* Conditions */\r\n\r\n\t\t\t/* si */\r\n\r\n\t\t\t// si\r\n\t\tcase 100:\r\n\t\t\tverifBool();\r\n\t\t\tpo.produire(BSIFAUX);\r\n\t\t\t//on met 0 en argument en attendant de savoir ou on branche\r\n\t\t\tpo.produire(0);\r\n\t\t\tpileRep.empiler(po.getIpo());\r\n\t\t\tif( desc.getUnite().equals(\"module\") )\r\n\t\t\t\tmodifVecteurTrans(2);\r\n\t\t\tbreak;\r\n\r\n\t\t\t// sinon\r\n\t\tcase 101:\r\n\t\t\tpo.modifier(pileRep.depiler(), po.getIpo()+3);\r\n\t\t\tpo.produire(BINCOND);\r\n\t\t\t//on met 0 en argument en attendant de savoir ou on branche\r\n\t\t\tpo.produire(0);\r\n\t\t\tpileRep.empiler(po.getIpo());\r\n\t\t\tif( desc.getUnite().equals(\"module\") )\r\n\t\t\t\tmodifVecteurTrans(2);\r\n\t\t\tbreak;\r\n\r\n\t\t\t// fsi\r\n\t\tcase 102:\r\n\t\t\tpo.modifier(pileRep.depiler(), po.getIpo()+1);\r\n\t\t\tbreak;\r\n\r\n\t\t\t/* cond */\r\n\r\n\t\t\t// cond\r\n\t\tcase 120:\r\n\t\t\tpileRep.empiler(0);\r\n\t\t\tbreak;\r\n\r\n\t\t\t// exp : (bsifaux)\r\n\t\tcase 121:\r\n\t\t\tverifBool();\r\n\t\t\tpo.produire(BSIFAUX);\r\n\t\t\t//on met 0 en argument en attendant de savoir ou on branche\r\n\t\t\tpo.produire(0);\r\n\t\t\tpileRep.empiler(po.getIpo());\r\n\t\t\tif( desc.getUnite().equals(\"module\") )\r\n\t\t\t\tmodifVecteurTrans(2);\r\n\t\t\t//System.out.println(\"121 \"+pileRep.toString());\r\n\t\t\tbreak;\r\n\r\n\t\t\t// , ou aut (bincond)\r\n\t\tcase 122:\r\n\t\t\tpo.modifier(pileRep.depiler(), po.getIpo()+3);\r\n\t\t\t//System.out.println(\"122_1 \"+pileRep.toString());\r\n\t\t\tpo.produire(BINCOND);\r\n\t\t\tpo.produire(pileRep.depiler());\r\n\t\t\tpileRep.empiler(po.getIpo());\r\n\t\t\tif( desc.getUnite().equals(\"module\") )\r\n\t\t\t\tmodifVecteurTrans(2);\r\n\t\t\t//System.out.println(\"122_2 \"+pileRep.toString());\r\n\t\t\tbreak;\r\n\r\n\t\t\t// fcond\r\n\t\tcase 123:\r\n\t\t\tint fcond = po.getIpo()+1;\r\n\t\t\t// last binc (-1)\r\n\t\t\tint lbinc = pileRep.depiler();\r\n\t\t\t// the one before (-2)\r\n\t\t\tint tmp;\r\n\r\n\t\t\twhile(lbinc != 0) {\t\t\t\t// 0 n'est jamais dans la pile à fcond, ce while fait toujours au moins une iteration\r\n\t\t\t\ttmp = po.getElt(lbinc);\r\n\t\t\t\tpo.modifier(lbinc, fcond);\r\n\t\t\t\tlbinc = tmp;\r\n\t\t\t}\r\n\t\t\tbreak;\r\n\r\n\t\t\t// cas ou il n'y a pas de aut\r\n\t\t\t// \t-> regler le dernier bsifaux a ipo+1\r\n\t\t\t//\t-> ne pas produire de bincond pour le dernier case\r\n\t\tcase 124:\r\n\t\t\tpo.modifier(pileRep.depiler(), po.getIpo()+1);\r\n\t\t\tbreak;\r\n\r\n\t\t\t/* Boucle */\r\n\r\n\t\t\t// ttq\r\n\t\tcase 140:\r\n\t\t\tpileRep.empiler(po.getIpo()+1);\r\n\t\t\tbreak;\r\n\r\n\t\t\t// exp\r\n\t\tcase 141:\r\n\t\t\tverifBool();\r\n\t\t\tpo.produire(BSIFAUX);\r\n\t\t\t//on met 0 en argument en attendant de savoir ou on branche\r\n\t\t\tpo.produire(0);\r\n\t\t\tpileRep.empiler(po.getIpo());\r\n\t\t\tif( desc.getUnite().equals(\"module\") )\r\n\t\t\t\tmodifVecteurTrans(2);\r\n\t\t\tbreak;\r\n\r\n\t\tcase 142:\r\n\t\t\tpo.modifier(pileRep.depiler(), po.getIpo()+3);\r\n\t\t\tpo.produire(BINCOND);\r\n\t\t\tpo.produire(pileRep.depiler());\r\n\t\t\tif( desc.getUnite().equals(\"module\") )\r\n\t\t\t\tmodifVecteurTrans(2);\r\n\t\t\tbreak;\r\n\r\n\t\t\t/////////////// PROCEDURES /////////////////// \r\n\r\n\t\t\t//Si il ya des proc�dures\r\n\t\tcase 198 : \r\n\t\t\tif( desc.getUnite().equals(\"programme\") ){\r\n\t\t\t\tpo.produire(BINCOND);\r\n\t\t\t\tpo.produire(0);\r\n\t\t\t\tpileRep.empiler(po.getIpo());\r\n\t\t\t}\r\n\t\t\tbreak;\r\n\r\n\t\tcase 199 :\r\n\t\t\tif( desc.getUnite().equals(\"programme\") ){\r\n\t\t\t\tpo.modifier(pileRep.depiler(), po.getIpo()+1);\r\n\t\t\t}\r\n\t\t\tbreak;\r\n\r\n\t\tcase 200 : //D�claration d'une proc�dure \r\n\r\n\t\t\t//On v�ifie que le nom de la proc�dure n'est pas d�j� pris \r\n\t\t\tif(presentIdent(1) == 0){\r\n\t\t\t\tplaceIdent(UtilLex.numId, PROC, NEUTRE, po.getIpo()+1);\r\n\t\t\t\tint indexTabDef = desc.presentDef(UtilLex.repId(UtilLex.numId));\r\n\t\t\t\tif( indexTabDef != -1){\r\n\t\t\t\t\tdesc.modifDefAdPo(indexTabDef, po.getIpo()+1);\r\n\t\t\t\t\tplaceIdent(-1, DEF, NEUTRE, 0);\r\n\t\t\t\t}\r\n\t\t\t\telse{\r\n\t\t\t\t\tplaceIdent(-1, PRIVEE, NEUTRE, 0);\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\tnbParamProc = 0;\r\n\t\t\t}\r\n\t\t\tbc = it + 1;\r\n\t\t\tbreak;\r\n\r\n\r\n\r\n\t\tcase 201 : //D�claration des param�tres fixes\r\n\t\t\t//Ajout des param�tres fixes dans la table des symboles\r\n\t\t\tif(presentIdent(bc) == 0){\r\n\t\t\t\tplaceIdent(UtilLex.numId, PARAMFIXE, tCour, nbParamProc);\r\n\t\t\t\tnbParamProc++;\r\n\t\t\t}\r\n\t\t\tbreak;\r\n\r\n\t\tcase 202: //D�claration des param�tres mod\r\n\t\t\tif(presentIdent(bc) == 0){\r\n\t\t\t\tplaceIdent(UtilLex.numId, PARAMMOD, tCour, nbParamProc);\r\n\t\t\t\tnbParamProc++;\r\n\t\t\t}\r\n\t\t\tbreak;\r\n\r\n\t\tcase 203: //Modifie le nombre de param�tres dans la table des symboles \r\n\t\t\tint indexTabDef = desc.presentDef(UtilLex.repId(tabSymb[bc-2].code));\r\n\t\t\tif( indexTabDef != -1)\r\n\t\t\t\tdesc.modifDefNbParam(indexTabDef, nbParamProc);\r\n\t\t\ttabSymb[bc-1].info = nbParamProc;\r\n\t\t\tbreak;\t\r\n\r\n\t\tcase 210: \r\n\t\t\t//Met � -1 les variables de la proc�dure une fois qu'elle est finie\r\n\t\t\tpo.produire(RETOUR);\r\n\t\t\tpo.produire(nbParamProc);\r\n\t\t\tit = bc + nbParamProc - 1;\r\n\t\t\tfor(int i = 0; i < nbParamProc; i++){\r\n\t\t\t\ttabSymb[bc+i].code = -1;\r\n\t\t\t}\t\t\t\r\n\t\t\tbc = 1;\r\n\t\t\tbreak;\r\n\r\n\t\t\t// appel d'une fonction\r\n\t\tcase 215: \r\n\t\t\tint paramEff = presentIdent(1);\r\n\t\t\tswitch(tabSymb[paramEff].categorie){\r\n\t\t\tcase VARGLOBALE : \r\n\t\t\t\tpo.produire(EMPILERADG);\r\n\t\t\t\tpo.produire(tabSymb[paramEff].info);\r\n\t\t\t\tif( desc.getUnite().equals(\"module\") )\r\n\t\t\t\t\tmodifVecteurTrans(1);\r\n\t\t\t\tbreak;\r\n\r\n\t\t\tcase VARLOCALE :\r\n\t\t\t\tpo.produire(EMPILERADL);\r\n\t\t\t\tpo.produire(tabSymb[paramEff].info);\r\n\t\t\t\tpo.produire(0);\r\n\t\t\t\tbreak;\r\n\r\n\t\t\tcase PARAMMOD :\r\n\t\t\t\tpo.produire(EMPILERADL);\r\n\t\t\t\tpo.produire(tabSymb[paramEff].info);\r\n\t\t\t\tpo.produire(1);\r\n\t\t\t\tbreak;\r\n\r\n\t\t\tcase PARAMFIXE :\t\t\r\n\t\t\tcase CONSTANTE : \r\n\t\t\t\tUtilLex.messErr(\"PARAMFIXE et CONSTANTE interdits pour des PARAMMOD\");\r\n\t\t\t\tbreak;\r\n\r\n\t\t\t}\r\n\t\t\tbreak;\r\n\r\n\r\n\t\tcase 220 : \r\n\t\t\tpo.produire(APPEL); //On produit l'appel\t\r\n\t\t\tpo.produire(tabSymb[vTmp].info); //On produit le numero de la ligne de la proc\r\n\t\t\tif(desc.getUnite().equals(\"programme\")){\r\n\t\t\t\tmodifVecteurTrans(REFEXT);\t\t\t\t\r\n\t\t\t}\r\n\t\t\tpo.produire(tabSymb[vTmp+1].info); //On produit le nombre de paramètres de la proc\r\n\t\t\tbreak;\r\n\r\n\t\t/////////////// COMPILATION SEPAREE ///////////// \r\n\t\tcase 300: \r\n\t\t\t//On lit un def, ajout du nom dans tabDef\r\n\t\t\tdesc.ajoutDef(UtilLex.repId(UtilLex.numId));\t\t\t\r\n\t\t\tbreak;\r\n\t\t\t\r\n\t\t\t// ajout du champs unite du descripteur\r\n\t\t\t\r\n\t\tcase 301:\r\n\t\t\tdesc.setUnite(\"programme\");\r\n\t\t\tbreak;\r\n\t\t\r\n\t\tcase 302:\r\n\t\t\tdesc.setUnite(\"module\");\r\n\t\t\tbreak;\r\n\t\t\r\n\t\tcase 303:\r\n\t\t\tUtilLex.nomSource = UtilLex.repId(UtilLex.numId);\r\n\t\t\tbreak;\r\n\t\t\t\r\n\t\t\t// ajout de la taille du code\r\n\t\tcase 304:\r\n\t\t\tdesc.setTailleCode(po.getIpo());\r\n\t\t\tdesc.ecrireDesc(UtilLex.nomSource);\r\n\t\t\tafftabSymb();\r\n\t\t\tSystem.out.println(desc);\r\n\t\t\tpo.constGen();\r\n\t\t\tpo.constObj();\r\n\t\t\tbreak;\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t// taille \r\n\t\tcase 310:\r\n\t\t\t//On ajoute ref dans la table des symbs\r\n\t\t\tif(desc.presentRef(UtilLex.repId(UtilLex.numId)) == 0){\r\n\t\t\t\tdesc.ajoutRef(UtilLex.repId(UtilLex.numId));\r\n\t\t\t\tdesc.modifRefNbParam(desc.getNbRef(), 0);\r\n\t\t\t\tplaceIdent(UtilLex.numId, PROC, NEUTRE, desc.getNbRef());\r\n\t\t\t\tplaceIdent(-1, REF, NEUTRE, 0);\r\n\t\t\t\tnbParamProc = 0;\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\tUtilLex.messErr(\"Procédure déjà declarée\");\r\n\t\t\t}\r\n\t\t\tbreak;\r\n\t\t\r\n\t\tcase 311:\r\n\t\t\tint i = desc.getNbRef();\r\n\t\t\tdesc.modifRefNbParam(i, desc.getRefNbParam(i)+1);\r\n\t\t\ttabSymb[it].info = desc.getRefNbParam(i);\r\n\t\t\tbreak;\r\n\t\t\t\r\n\r\n\t\tcase 312 : //D�claration des param�tres fixes\r\n\t\t\t//Ajout des param�tres fixes dans la table des symboles\r\n\t\t\tplaceIdent(-1, PARAMFIXE, tCour, nbParamProc);\r\n\t\t\tnbParamProc++;\r\n\t\t\tbreak;\r\n\r\n\t\tcase 313: //D�claration des param�tres mod\r\n\t\t\tplaceIdent(-1, PARAMMOD, tCour, nbParamProc);\r\n\t\t\tnbParamProc++;\r\n\t\t\tbreak;\r\n\r\n\t\tcase 314 : //Modifie le nombre de param�tres dans la table des symboles \r\n\t\t\ttabSymb[it-nbParamProc].info = nbParamProc;\r\n\t\t\tbreak;\t\r\n\t\t\t\r\n\t\tcase 1000:\r\n\t\t\tpo.produire(ARRET);\r\n\t\t\tbreak;\r\n\r\n\t\tdefault:\r\n\t\t\tSystem.out.println(\"Point de generation non prevu dans votre liste\");\r\n\t\t\tbreak;\r\n\r\n\t\t}\r\n\t}", "public PrnPrivitakVo() {\r\n\t\tsuper();\r\n\t}", "public void calcularPesos(){\r\n StructursDecisors.weightsDecisors=new ArrayList();\r\n double [][] matrizEigenvectors=createMatriz();\r\n for(int i=0; i<Structurs.names.size();i++)\r\n for(int j=0; j<StructursDecisors.names.size(); j++)\r\n System.out.println(\"MatrizEigenvector[\"+i+\"][\"+j+\"]\"+\"=\"+matrizEigenvectors[i][j]);\r\n double eigenvectorCriterios[]=new double[Structurs.eigenvector.size()];\r\n for(int i=0; i<Structurs.eigenvector.size(); i++)\r\n eigenvectorCriterios[i]=(double) Structurs.eigenvector.get(i);\r\n double []vectorPesos=createArrayPesos(matrizEigenvectors, eigenvectorCriterios);\r\n \r\n }", "Publication getPubli();", "PetriNetDoc getPetrinet();", "public interface GestionDesProfilsOperations\r\n{\r\n /**\r\n * Read accessor for numeroGDP attribute\r\n * @return the attribute value\r\n */\r\n public short numeroGDP();\r\n\r\n /**\r\n * Operation connexion\r\n */\r\n public PostLicence.GestionDesVoeux connexion(PostLicence.IEtudiant iorEtudiant, String ine, String mdp)\r\n throws PostLicence.DonneesInvalides;\r\n\r\n /**\r\n * Operation consulterProfil\r\n */\r\n public PostLicence.Etudiant consulterProfil(String ine)\r\n throws PostLicence.DonneesInvalides;\r\n\r\n /**\r\n * Operation modifierProfil\r\n */\r\n public void modifierProfil(String ine, String adr)\r\n throws PostLicence.DonneesInvalides;\r\n\r\n /**\r\n * Operation inscriptionGestionDesVoeux\r\n */\r\n public void inscriptionGestionDesVoeux(PostLicence.GestionDesVoeux GDesVx);\r\n\r\n}", "@Override\n protected String title()\n {\n return \"Operative\";\n }", "public static void main(String[] args) {\n\t\tSystem.out.println(queryporder.querySum(0, 60));\n\t\tSystem.out.println(queryporder.queryName(\"郭靖\"));\n\t\tSystem.out.println(queryporder.queryAll());\n\t\t\n\t\t//List l = queryporder.queryAll();\n\t\t//List l = queryporder.querySum(0, 60);\n\t\tList l = queryporder.queryName(\"郭靖\");\n\t\tfor(Object o : l) {\n\t\t\tporder p = (porder)o;\n\t\t\tSystem.out.println(\n\t\t\t\tp.getId()+\",\"+\n\t\t\t\tp.getName()+\",\"+\n\t\t\t\tp.getProduct1()+\",\"+\n\t\t\t\tp.getProduct2()+\",\"+\n\t\t\t\tp.getProduct3()+\",\"+\n\t\t\t\tp.getSum()+\",\"+\n\t\t\t\tp.getDiscount()\n\t\t\t\t\t\n\t\t\t\t\t);\n\t\t}\n\t\t\n\t}", "public static void main(String[] args) {\n Course AbstractAdvancedJavaSuperClass = new AdvancedJavaCourse(\"AdvancedJava\", \"-003\");\r\n Course AbstractJavaSuperClass = new IntroJavaCourse(\"IntroJava\", \"-002\");\r\n Course AbstractProgramClass = new IntroToProgrammingCourse(\"Intro\", \"-001\");\r\n\r\n AbstractAdvancedJavaSuperClass.setCredits(4);\r\n AbstractJavaSuperClass.setCredits(4.0);\r\n AbstractProgramClass.setCredits(4.0);\r\n \r\n //this is a test\r\n \r\n AbstractAdvancedJavaSuperClass.setPrerequisites(AbstractJavaSuperClass.getCourseNumber());\r\n AbstractJavaSuperClass.setPrerequisites(AbstractProgramClass.getCourseNumber());\r\n \r\n System.out.println(AbstractProgramClass.getCapitalizedCourseName()\r\n + \" \" + AbstractProgramClass.getCourseNumber() );\r\n \r\n System.out.println(AbstractJavaSuperClass.getCourseName()\r\n + \" \" + AbstractJavaSuperClass.getCourseNumber() \r\n + \" \" + AbstractJavaSuperClass.getPrerequisites());\r\n \r\n System.out.println(AbstractAdvancedJavaSuperClass.getCourseName()\r\n + \" \" + AbstractAdvancedJavaSuperClass.getCourseNumber() \r\n + AbstractAdvancedJavaSuperClass.getPrerequisites() );\r\n}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\n public String getDescription() {\n return \"Ordinary payment\";\n }", "public void listarDocDaDisciplina(){\r\n for(int i=0;i<docentes.size();i++){\r\n System.out.println(docentes.get(i).toString());\r\n }\r\n }", "public void method() {\r\n\t\tSystem.out.println(\"4. 전체(다른 패키지) 접근 확인 - 상속\");\r\n//\t\tSystem.out.println(prot);\r\n//\t\tSystem.out.println(pub);\r\n\t}", "public void aplicarDescuento();", "private void mostrarInformacionP(){\n System.out.println(\"Nombre: \"+this.nombre);\n System.out.println(\"Sexo: \"+ this.sexo);\n System.out.println(\"Edad: \" + edad);\n\n }", "public CHORE_INFO_PERIOD getPriod();", "public static void main(String[] args) throws Exception {\n\t\tPerro p1=new Perro();\r\n\t\tPerro p2 =new Perro(\"Chucho\", \"Pastor Aleman\", 3,true);\r\n\t\tPerroPresa pp1=new PerroPresa();\r\n\t\tPerroPresa pp2=new PerroPresa(\"Dientes\",\"pitbull\",5,true);\r\n\t\tpp1.setNombre(\"ŅamŅam\");\r\n\t\tp1.setEdad(-3);\r\n\t\tSystem.out.println(p1.toString());\r\n\t\tSystem.out.println(p2.toString());\r\n\t\tSystem.out.println(pp1.toString());\r\n\t\tpp1.atacar();\r\n\t\tSystem.out.println(pp2.toString());\r\n\t\tpp2.atacar();\r\n\t}", "private void remplirPrestaraireData() {\n\t}", "private void _generatePublications() {\n for (int i = 0; i < publications_.size(); i++) {\n _generateAPublication( (PublicationInfo) publications_.get(i));\n if(globalVersionTrigger){\n \t PublicationInfo pub = (PublicationInfo) publications_.get(i);\n \t writer_log.addPropertyInstance(pub.id, RDF.type.getURI(), ontology+\"#Publication\", true);\n \t writer_log.addPropertyInstance(pub.id, ontology+\"#name\", pub.name, false);\n \t for(String author : (ArrayList<String>) pub.authors){\n \t\t writer_log.addPropertyInstance(pub.id, ontology+\"#author\", author, true); \n \t }\n }\n }\n }", "public void getCosts() {\n\t}", "@Override\n protected void getExras() {\n }", "public void pridejNovePivo ()\n\t{\n\t\n\t\tpivo = pivo + PRODUKCE;\n\t\t\n\t}", "private void reposicionarPersonajes() {\n // TODO implement here\n }", "@Override \r\npublic double earnings() { \r\n\t return getWage() * getPieces(); \r\n}", "@Override\n public void perish() {\n \n }", "@Override\n public String getDescription() {\n return \"Digital goods listing\";\n }", "@Override\n\tpublic int Prix() {\n\t\treturn voiture.Prix() +250;\n\t}", "ConjuntoTDA claves();", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "public void creatOnt(List<Promoter> pros){\r\n\t\tString nameuri = \"http://miuras.inf.um.es/ontologies/OGO.owl#Name\";\r\n\t\tString authoruri = \"http://miuras.inf.um.es/ontologies/promoter.owl#Author\";\r\n\t\tString iduri = \"http://miuras.inf.um.es/ontologies/OGO.owl#Identifier\";\r\n\t\tString linkuri = \"http://miuras.inf.um.es/ontologies/promoter.owl#Link\";\r\n\t\tString locuri = \"http://miuras.inf.um.es/ontologies/OGO.owl#Location\";\r\n\t\tString titleuri = \"http://miuras.inf.um.es/ontologies/promoter.owl#Title\";\r\n\t\t\r\n\t\tString activeuri = \"http://miuras.inf.um.es/ontologies/promoter.owl#active\";\r\n\t\tString fromspeciesuri = \"http://miuras.inf.um.es/ontologies/OGO.owl#fromSpecies\";\r\n\t\tString hasgouri = \"http://miuras.inf.um.es/ontologies/OGO.owl#hasGO\";\r\n\t\tString hashomologyuri = \"http://miuras.inf.um.es/ontologies/promoter.owl#hasHomolgy\";\r\n\t\tString haskeyworduri = \"http://miuras.inf.um.es/ontologies/promoter.owl#hasKeywords\";\r\n\t\tString haspromoteruri = \"http://miuras.inf.um.es/ontologies/promoter.owl#hasPromoter\";\r\n\t\tString hasreferenceuri = \"http://miuras.inf.um.es/ontologies/promoter.owl#hasReference\";\r\n\t\tString hasresourceuri = \"http://miuras.inf.um.es/ontologies/OGO.owl#hasResource\";\r\n\t\tString isbelongeduri = \"http://miuras.inf.um.es/ontologies/promoter.owl#isBelongedTo\";\r\n\t\tString isexpresseduri = \"http://miuras.inf.um.es/ontologies/promoter.owl#isExpressedTo\";\r\n\t\tString istranscribeduri = \"http://miuras.inf.um.es/ontologies/promoter.owl#isTranscribedTo\";\r\n\t\tString istranslateduri = \"http://miuras.inf.um.es/ontologies/OGO.owl#isTranslatedTo\";\r\n\t\t\r\n\t\tString gouri = \"http://miuras.inf.um.es/ontologies/OGO.owl#GO_term\";\r\n\t\tString geneuri = \"http://miuras.inf.um.es/ontologies/OGO.owl#Gene\";\r\n\t\tString homologyuri = \"http://miuras.inf.um.es/ontologies/promoter.owl#Homology\";\r\n\t\tString keyworduri = \"http://miuras.inf.um.es/ontologies/promoter.owl#Keyword\";\r\n\t\tString taxonomyuri = \"http://um.es/ncbi.owl#NCBI_1\";\r\n\t\tString promoteruri = \"http://miuras.inf.um.es/ontologies/promoter.owl#Promoter\";\r\n\t\tString proteinuri = \"http://miuras.inf.um.es/ontologies/OGO.owl#Protein\";\r\n\t\tString referenceuri = \"http://miuras.inf.um.es/ontologies/promoter.owl#Reference\";\r\n\t\tString resourceuri = \"http://miuras.inf.um.es/ontologies/OGO.owl#Resource\";\r\n\t\tString mrnauri = \"http://miuras.inf.um.es/ontologies/promoter.owl#mRNA\";\r\n\t\t\r\n\t\tSimpleExample se = new SimpleExample();\r\n\t\tOntModel onmo = null;\r\n\t\ttry {\r\n\t\t\tonmo = se.loadDB2nd();\r\n\t\t} catch (ClassNotFoundException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tint index = 1;\r\n\t\tfor(Promoter pro: pros){\r\n\t\t\t// Create new individual of promoter;\r\n\t\t\tIndividual newproidv = se.CreateandGetIdv(\r\n\t\t\t\t\tpromoteruri + \"_\" + pro.getName(),\r\n\t\t\t\t\tpromoteruri, onmo);\r\n\t\t\t// Create the relation between promoter and homology\r\n\t\t\tif(pro.getHomology().getId().trim().length()>0){\r\n\t\t\t\tIndividual homoidv = se.CreateandGetIdv(\r\n\t\t\t\t\t\thomologyuri + \"_\" + pro.getHomology().getId(),\r\n\t\t\t\t\t\thomologyuri, onmo);\r\n\t\t\t\tse.addObjProperty(onmo, newproidv.getURI(), hashomologyuri, homoidv.getURI());\r\n\t\t\t}\r\n\t\t\t//create the reference individual and the relation to promoter\r\n\t\t\tfor(Reference ref : pro.getReferences()){\r\n\t\t\t\tIndividual refidv = se.CreateandGetIdv(\r\n\t\t\t\t\t\treferenceuri + \"_\" + ref.getPubmed(),\r\n\t\t\t\t\t\treferenceuri, onmo);\r\n\t\t\t\tse.addDataProperty(onmo, refidv.getURI(), authoruri, ref.getAuther());\r\n\t\t\t\tse.addDataProperty(onmo, refidv.getURI(), titleuri, ref.getTitle());\r\n\t\t\t\tse.addDataProperty(onmo, refidv.getURI(), iduri, ref.getPubmed());\r\n\t\t\t\tse.addDataProperty(onmo, refidv.getURI(), locuri, ref.getLocation());\r\n\t\t\t\tse.addObjProperty(onmo, newproidv.getURI(), hasreferenceuri, refidv.getURI());\r\n\t\t\t}\r\n\t\t\t//create the resource individual and the relation to promoter\r\n\t\t\tfor(Resource res : pro.getResources()){\r\n\t\t\t\tIndividual residv = se.CreateandGetIdv(\r\n\t\t\t\t\t\tresourceuri + \"_\" + res.getId(),\r\n\t\t\t\t\t\tresourceuri, onmo);\r\n\t\t\t\tse.addDataProperty(onmo, residv.getURI(), nameuri, res.getDataset());\r\n\t\t\t\tse.addDataProperty(onmo, residv.getURI(), linkuri, res.getLink());\r\n\t\t\t\tse.addDataProperty(onmo, residv.getURI(), iduri, res.getId());\r\n\t\t\t\tse.addObjProperty(onmo, newproidv.getURI(), hasresourceuri, residv.getURI());\r\n\t\t\t}\r\n\t\t\t//create the keyword individual and the relation to promoter\r\n\t\t\tfor(Keyword kwd : pro.getKeywords()){\r\n\t\t\t\tIndividual kwdidv = se.CreateandGetIdv(\r\n\t\t\t\t\t\tkeyworduri + \"_\" + kwd.getKeyword(),\r\n\t\t\t\t\t\tkeyworduri, onmo);\r\n\t\t\t\tse.addDataProperty(onmo, kwdidv.getURI(), nameuri, kwd.getKeyword());\r\n\t\t\t\tse.addObjProperty(onmo, newproidv.getURI(), haskeyworduri, kwdidv.getURI());\r\n\t\t\t}\r\n\t\t\t//create the gene individual and the relative individuals to the gene\r\n\t\t\t//create the relation between the gene individual and the relative individuals to the gene and the promoter\r\n\t\t\tfor(Gene gen: pro.getGenes()){\r\n\t\t\t\t//create the gene individual and the relation to promoter\r\n\t\t\t\tIndividual genidv = se.CreateandGetIdv(\r\n\t\t\t\t\t\tgeneuri + \"_\" + gen.getId(),\r\n\t\t\t\t\t\tgeneuri, onmo);\r\n\t\t\t\tse.addDataProperty(onmo, genidv.getURI(), iduri, gen.getId());\r\n\t\t\t\tse.addObjProperty(onmo, genidv.getURI(), haspromoteruri, newproidv.getURI());\r\n\t\t\t\tse.addObjProperty(onmo, newproidv.getURI(), isbelongeduri, genidv.getURI());\r\n\t\t\t\t//create or get the go individual and the relation to gene\r\n\t\t\t\tfor(GO ngo: gen.getGos()){\r\n\t\t\t\t\tIndividual goidv = se.CreateandGetIdv(\r\n\t\t\t\t\t\t\tse.OGO_PREFIX + \"#GO_\" + ngo.getId(),\r\n\t\t\t\t\t\t\tgouri, onmo);\r\n\t\t\t\t\tse.addObjProperty(onmo, genidv.getURI(), hasgouri, goidv.getURI());\r\n\t\t\t\t}\r\n\t\t\t\t//create or get the taxonomy individual and the relation to gene\r\n\t\t\t\tIndividual taxidv = se.CreateandGetIdv(\r\n\t\t\t\t\t\tse.NCBI_PREFIX + \"#NCBI_\" + gen.getTaxonomy().getId(),\r\n\t\t\t\t\t\ttaxonomyuri, onmo);\r\n\t\t\t\tse.addObjProperty(onmo, genidv.getURI(), fromspeciesuri, taxidv.getURI());\r\n\t\t\t\t//create the mRNA and protein individual and the relation to gene\r\n\t\t\t\tfor(int i = 0; i<=gen.getMrnas().size()-1; i++){\r\n\t\t\t\t\tString rnaid = gen.getMrnas().get(i).getId();\r\n\t\t\t\t\tif(!rnaid.equals(\"-\")){\r\n\t\t\t\t\t\tIndividual rnaidv = se.CreateandGetIdv(\r\n\t\t\t\t\t\t\tmrnauri + \"_\" + rnaid,\r\n\t\t\t\t\t\t\tmrnauri, onmo);\r\n\t\t\t\t\t\tse.addDataProperty(onmo, rnaidv.getURI(), iduri, rnaid);\r\n\t\t\t\t\t se.addObjProperty(onmo, genidv.getURI(), istranscribeduri, rnaidv.getURI());\r\n\t\t\t\t\t se.addObjProperty(onmo, newproidv.getURI(), activeuri, rnaidv.getURI());\r\n\t\t\t\t\t String prnid = gen.getProteins().get(i).getId();\r\n\t\t\t\t\t if(!prnid.equals(\"-\")){\r\n\t\t\t\t\t \tIndividual prnidv = se.CreateandGetIdv(\r\n\t\t\t\t\t\t\t\t\tproteinuri + \"_\" + rnaid,\r\n\t\t\t\t\t\t\t\t\tproteinuri, onmo);\r\n\t\t\t\t\t\t\tse.addDataProperty(onmo, prnidv.getURI(), iduri, prnid);\r\n\t\t\t\t\t\t\tse.addObjProperty(onmo, genidv.getURI(), isexpresseduri, prnidv.getURI());\r\n\t\t\t\t\t\t\tse.addObjProperty(onmo, rnaidv.getURI(), istranslateduri, prnidv.getURI());\r\n\t\t\t\t\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tSystem.out.println(index+++\".\t\"+\"Promoter: \"+pro.getName()+\" finished!\");\r\n\t\t}\r\n\t}", "Term getP();", "private void incrementarPuntaje(int puntos) {\n // TODO implement here\n }", "public void Ordenamiento() {\n\n\t}", "@Override\n public String cualquierMetodo2() {\n return \"Método implementado en la clase hija viaje de incentivo\";\n }", "public void aumentarReproducidas() {\n\t\tsuper.aumentarReproducidas();\n\n\t}", "public interface CausalAprobacionDevolucionCommon\n{\n\t/** Propiedad autorizar ingreso secuencias. */\n\tpublic final long AUTORIZAR_INGRESO_SECUENCIAS = 9L;\n\n\t/** Propiedad devolucion aprobador. */\n\tpublic final long DEVOLUCION_APROBADOR = 4L;\n\n\t/** Propiedad devolver al analista de restitucion de turno. */\n\tpublic final long DEVOLVER_AL_ANALISTA_DE_RESTITUCION_DE_TURNO = 11L;\n\n\t/** Propiedad devolver a analisis de desistimiento. */\n\tpublic final long DEVOLVER_A_ANALISIS_DE_DESISTIMIENTO = 8L;\n\n\t/** Propiedad devolver con observacion copias. */\n\tpublic final long DEVOLVER_CON_OBSERVACION_COPIAS = 113L;\n\n\t/** Propiedad devolver con solicitud copias. */\n\tpublic final long DEVOLVER_CON_SOLICITUD_COPIAS = 114L;\n\n\t/** Propiedad DEVOLVER_ETAPA_ANTERIOR_410. */\n\tpublic final long DEVOLVER_ETAPA_ANTERIOR_410 = 124L;\n\n\t/** Propiedad DEVOLVER_ETAPA_ANTERIOR_415. */\n\tpublic final long DEVOLVER_ETAPA_ANTERIOR_415 = 123L;\n\n\t/** Propiedad DEVOLVER_ETAPA_ANTERIOR_420. */\n\tpublic final long DEVOLVER_ETAPA_ANTERIOR_420 = 122L;\n\n\t/** Propiedad devolver grabacion del folio. */\n\tpublic final long DEVOLVER_GRABACION_DEL_FOLIO = 60L;\n\n\t/** Propiedad devolver negacion al ejecutor. */\n\tpublic final long DEVOLVER_NEGACION_AL_EJECUTOR = 63L;\n\n\t/** Propiedad devolver negacion de la solicitud. */\n\tpublic final long DEVOLVER_NEGACION_DE_LA_SOLICITUD = 58L;\n\n\t/** Propiedad devolver resolucion de grabacion. */\n\tpublic final long DEVOLVER_RESOLUCION_DE_GRABACION = 59L;\n\n\t/** Propiedad error al generar documentos. */\n\tpublic final long ERROR_AL_GENERAR_DOCUMENTOS = 6L;\n\n\t/** Propiedad error datos del turno. */\n\tpublic final long ERROR_DATOS_DEL_TURNO = 7L;\n\n\t/** Propiedad error en la generación del documento. */\n\tpublic final long ERROR_EN_LA_GENERACION_DEL_DOCUMENTO = 61L;\n\n\t/** Propiedad error en la seleccion de la plantilla. */\n\tpublic final long ERROR_EN_LA_SELECCION_DE_LA_PLANTILLA = 62L;\n\n\t/** Propiedad generar nota devolutiva. */\n\tpublic final long GENERAR_NOTA_DEVOLUTIVA = 2L;\n\n\t/** Propiedad inscripcion con observaciones. */\n\tpublic final long INSCRIPCION_CON_OBSERVACIONES = 1L;\n\n\t/** Propiedad inscripcion testamento con observaciones. */\n\tpublic final long INSCRIPCION_TESTAMENTO_CON_OBSERVACIONES = 111L;\n\n\t/** Propiedad modificar oficios o actos administrativos. */\n\tpublic final long MODIFICAR_OFICIOS_O_ACTOS_ADMINISTRATIVOS = 3L;\n\n\t/** Propiedad no autorizar ingreso secuencias. */\n\tpublic final long NO_AUTORIZAR_INGRESO_SECUENCIAS = 10L;\n\n\t/** Propiedad no generar inscripción. */\n\tpublic final long NO_GENERAR_INSCRIPCION = 112L;\n\n\t/** Propiedad reproduccion de constancia. */\n\tpublic final long REPRODUCCION_DE_CONSTANCIA = 12L;\n\n\t/** Propiedad requiere complementacion. */\n\tpublic final long REQUIERE_COMPLEMENTACION = 5L;\n\t\n\t/** Propiedad modificar resolucion. */\n\tpublic final long MODIFICAR_RESOLUCION = 140L;\n\t\n\t/** Propiedad modificar datos en el folio a crear. */\n\tpublic final long MODIFICAR_DATOS_EN_EL_FOLIO_A_CREAR = 171L;\n\t\n\t/** Propiedad negar solicitud. */\n\tpublic final long NEGAR_SOLICITUD = 172L;\n\t\n}", "public interface METHODS {\n public static int TIME = 0;\n public static int DISTANCE= 1;\n public static int STEPS = 2;\n public static int ACHIEVEMENTS = 3;\n }", "Operations operations();", "@Override\n public void cantidad_Punteria(){\n punteria=69.5+05*nivel+aumentoP;\n }", "public void printInfo() {\n System.out.println(\"\\n\\n---------------------BASIC RESULTS-----------------------\\n\");\n System.out.println(\"Most positive article: \" + mostPositiveDoc + \"\\nwith positivity \" + mostPositive + \"\\n\");\n System.out.println(\"Most negative article: \" + mostNegativeDoc + \"\\nwith negativity \" + mostNegative + \"\\n\");\n if (biggestDifference >= 0) {\n System.out.println(\"Biggest difference: \" + biggestDifferenceDoc + \"\\nwith more positivity by \" + biggestDifference);\n } else {\n System.out.println(\"Biggest difference: \" + biggestDifferenceDoc + \"\\nwith more negativity by \" + Math.abs(biggestDifference));\n }\n \n System.out.println(\"\\nAverage positivity: \" + avgPositive);\n System.out.println(\"Average negativity: \" + avgNegative);\n System.out.println(\"\\n-----------------------------------------------------------\\n\");\n System.out.println(\"\\n---------------------ADVANCED RESULTS----------------------\");\n \n System.out.println(\"\\nAverage positivity for PUBLISHERS:\");\n for (String s : publisherOptimism.keySet()) {\n LinkedList<Double> positives = publisherOptimism.get(s);\n int size = positives.size();\n double total = 0;\n for (double d : positives) {\n total += d;\n }\n System.out.println(s + \", positivity = \" + total / size);\n }\n \n System.out.println(\"\\nAverage negativity for PUBLISHERS:\");\n for (String s : publisherPessimism.keySet()) {\n LinkedList<Double> negatives = publisherPessimism.get(s);\n int size = negatives.size();\n double total = 0;\n for (double d : negatives) {\n total += d;\n }\n System.out.println(s + \", negativity = \" + total / size);\n }\n \n System.out.println(\"\\nAverage positivity for REGIONS:\");\n for (String s : regionOptimism.keySet()) {\n LinkedList<Double> positives = regionOptimism.get(s);\n int size = positives.size();\n double total = 0;\n for (double d : positives) {\n total += d;\n }\n System.out.println(s + \", positivity = \" + total / size);\n }\n \n System.out.println(\"\\nAverage negativity for REGIONS:\");\n for (String s : regionPessimism.keySet()) {\n LinkedList<Double> negatives = regionPessimism.get(s);\n int size = negatives.size();\n double total = 0;\n for (double d : negatives) {\n total += d;\n }\n System.out.println(s + \", negativity = \" + total / size);\n }\n \n System.out.println(\"\\nAverage positivity for DATES:\");\n for (LocalDate s : dayOptimism.keySet()) {\n LinkedList<Double> positives = dayOptimism.get(s);\n int size = positives.size();\n double total = 0;\n for (double d : positives) {\n total += d;\n }\n System.out.println(s + \", positivity = \" + total / size);\n }\n \n System.out.println(\"\\nAverage negativity for DATES:\");\n for (LocalDate s : dayPessimism.keySet()) {\n LinkedList<Double> negatives = dayPessimism.get(s);\n int size = negatives.size();\n double total = 0;\n for (double d : negatives) {\n total += d;\n }\n System.out.println(s + \", negativity = \" + total / size);\n }\n \n System.out.println(\"\\nAverage positivity for WEEKDAYS:\");\n for (DayOfWeek s : weekdayOptimism.keySet()) {\n LinkedList<Double> positives = weekdayOptimism.get(s);\n int size = positives.size();\n double total = 0;\n for (double d : positives) {\n total += d;\n }\n System.out.println(s + \", positivity = \" + total / size);\n }\n \n System.out.println(\"\\nAverage negativity for WEEKDAYS:\");\n for (DayOfWeek s : weekdayPessimism.keySet()) {\n LinkedList<Double> negatives = weekdayPessimism.get(s);\n int size = negatives.size();\n double total = 0;\n for (double d : negatives) {\n total += d;\n }\n System.out.println(s + \", negativity = \" + total / size);\n }\n \n System.out.println(\"\\n-----------------------------------------------------------\\n\");\n \n }", "public static void printSubTableDonors() {\n System.out.println(\"\\n\\t(I) - Sort by ID\");\n System.out.println(\"\\t(N) - Sort Number of Recipients\");\n System.out.println(\"\\t(B) - Sort by Blood Type\");\n System.out.println(\"\\t(O) - Sort by Organ Donated\");\n System.out.println(\"\\t(Q) - Back to Main Menu\");\n }", "private static void statACricri() {\n \tSession session = new Session();\n \tNSTimestamp dateRef = session.debutAnnee();\n \tNSArray listAffAnn = EOAffectationAnnuelle.findAffectationsAnnuelleInContext(session.ec(), null, null, dateRef);\n \tLRLog.log(\">> listAffAnn=\"+listAffAnn.count() + \" au \" + DateCtrlConges.dateToString(dateRef));\n \tlistAffAnn = LRSort.sortedArray(listAffAnn, \n \t\t\tEOAffectationAnnuelle.INDIVIDU_KEY + \".\" + EOIndividu.NOM_KEY);\n \t\n \tEOEditingContext ec = new EOEditingContext();\n \tCngUserInfo ui = new CngUserInfo(new CngDroitBus(ec), new CngPreferenceBus(ec), ec, new Integer(3065));\n \tStringBuffer sb = new StringBuffer();\n \tsb.append(\"service\").append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \tsb.append(\"agent\").append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \tsb.append(\"contractuel\").append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \tsb.append(\"travaillees\").append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \tsb.append(\"conges\").append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \tsb.append(\"dues\").append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \tsb.append(\"restant\");\n \tsb.append(ConstsPrint.CSV_NEW_LINE);\n \t\n \n \tfor (int i = 0; i < listAffAnn.count(); i++) {\n \t\tEOAffectationAnnuelle itemAffAnn = (EOAffectationAnnuelle) listAffAnn.objectAtIndex(i);\n \t\t//\n \t\tEOEditingContext edc = new EOEditingContext();\n \t\t//\n \t\tNSArray array = EOAffectationAnnuelle.findSortedAffectationsAnnuellesForOidsInContext(\n \t\t\t\tedc, new NSArray(itemAffAnn.oid()));\n \t\t// charger le planning pour forcer le calcul\n \t\tPlanning p = Planning.newPlanning((EOAffectationAnnuelle) array.objectAtIndex(0), ui, dateRef);\n \t\t// quel les contractuels\n \t\t//if (p.affectationAnnuelle().individu().isContractuel(p.affectationAnnuelle())) {\n \t\ttry {p.setType(\"R\");\n \t\tEOCalculAffectationAnnuelle calcul = p.affectationAnnuelle().calculAffAnn(\"R\");\n \t\tint minutesTravaillees3112 = calcul.minutesTravaillees3112().intValue();\n \t\tint minutesConges3112 = calcul.minutesConges3112().intValue();\n \t\t\n \t\t// calcul des minutes dues\n \t\tint minutesDues3112 = /*0*/ 514*60;\n \t\t/*\tNSArray periodes = p.affectationAnnuelle().periodes();\n \t\tfor (int j=0; j<periodes.count(); j++) {\n \t\t\tEOPeriodeAffectationAnnuelle periode = (EOPeriodeAffectationAnnuelle) periodes.objectAtIndex(j);\n \t\tminutesDues3112 += periode.valeurPonderee(p.affectationAnnuelle().minutesDues(), septembre01, decembre31);\n \t\t}*/\n \t\tsb.append(p.affectationAnnuelle().structure().libelleCourt()).append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \t\tsb.append(p.affectationAnnuelle().individu().nomComplet()).append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \t\tsb.append(p.affectationAnnuelle().individu().isContractuel(p.affectationAnnuelle())?\"O\":\"N\").append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \t\tsb.append(TimeCtrl.stringForMinutes(minutesTravaillees3112)).append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \t\tsb.append(TimeCtrl.stringForMinutes(minutesConges3112)).append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \t\tsb.append(TimeCtrl.stringForMinutes(minutesDues3112)).append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \t\tsb.append(TimeCtrl.stringForMinutes(minutesTravaillees3112 - minutesConges3112 - minutesDues3112)).append(ConstsPrint.CSV_NEW_LINE);\n \t\tLRLog.log((i+1)+\"/\"+listAffAnn.count() + \" (\" + p.affectationAnnuelle().individu().nomComplet() + \")\");\n \t\t} catch (Throwable e) {\n \t\t\te.printStackTrace();\n \t\t}\n \t\tedc.dispose();\n \t\t//}\n \t}\n \t\n\t\tString fileName = \"/tmp/stat_000_\"+listAffAnn.count()+\".csv\";\n \ttry {\n\t\t\tBufferedWriter fichier = new BufferedWriter(new FileWriter(fileName));\n\t\t\tfichier.write(sb.toString());\n\t\t\tfichier.close();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\tLRLog.log(\"writing \" + fileName);\n\t\t}\n }", "public void affiche () {\r\n\t\tSystem.out.println(\"Nom du porteur du compte: \" + this.porteur);\r\n\t\tSystem.out.println(\"numéro du compte: \" + this.IBAN);\r\n\t\tSystem.out.println(\"Solde du compte: \" + this.solde);\r\n\t}", "public static void main (String[] arg){\n\n Personnage[] tpers = {new Guerrier(),new Sniper(),new Chirirugien(),new Medecin(), new Civil()};\n\n for (Personnage p : tpers) {\n\n System.out.println(\"\\t Instancier de\" +p.getClass().getName());\n System.out.println(\"********************************\");\n p.seDeplacer();\n p.soigne();\n p.combattre();\n\n\n }\n System.out.println(\"********************************\");\n Personnage pers = new Guerrier();\n pers.soigne();\n pers.setSoin(new Operation(\n\n ));\n pers.soigne();\n }", "public void recevoir(IPorcelet p);", "double getPricePerPerson();", "@Override\n\tpublic void printPriceDescription() {\n\t\tfor(IComponent obj:components) {\n\t\t\tobj.printPriceDescription();\n\t\t}\n\t\t\n\t}", "public static void main( String[] args )\n {\n int contador = 0;\n Perro perro1 = new Perro(\"Pepe\",4,\"Pug\"); \n //perro1.setNombre(\"Axel\");\n //System.out.println(perro1.getNombre());\n Perro perro2 = new Perro(\"Sasha\",3,\"Siberiano\"); \n //System.out.println(perro2.getNombre()); */\n JOptionPane.showMessageDialog(null, \"Unidad 2\",\"Misiontic\",JOptionPane.ERROR_MESSAGE);\n Perro perro3 = new Perro(\"Manchis\",7,\"Chandoso\"); \n System.out.println(Perro.contadorPerros);\n Perro.ladrar();\n }", "public static void main(String[] args) {\n Potencia p = new Potencia(2, 5);\n //2-Impriman los 3 atributos\n System.out.println(p.base+\"^\"+p.expo+\"=\"+p.pot);\n }", "public void ektypwsiGiatrou() {\n\t\t// Elegxw an yparxoun iatroi\n\t\tif(numOfDoctors != 0)\n\t\t{\n\t\t\tfor(int i = 0; i < numOfDoctors; i++)\n\t\t\t{\n\t\t\t\tSystem.out.println();\n\t\t\t\tSystem.out.println(\"INFO FOR DOCTOR No.\" + (i+1) + \":\");\n\t\t\t\tdoctor[i].print();\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.println(\"DEN YPARXOUN DIATHESIMOI GIATROI PROS EMFANISH!\");\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "public void ParcoursPrefixe() {\r\n System.out.print(getElement() + \",\");\r\n if (getGauche() != null) {\r\n getGauche().ParcoursPrefixe();\r\n }\r\n if (getDroite() != null) {\r\n getDroite().ParcoursPrefixe();\r\n }\r\n }", "public void aumentarReproducciones() {\n\t\treproducciones++;\n\t}", "private void writePubVertices(PrintWriter pubVerticesWriter) {\n\t\tint pubIndex;\n\t\tint publicationId;\n\t\tIterator pubIterator;\n\n\t\tpubIterator = publications.getIterator();\n\t\tpubIndex = 0;\n\n\t\twhile (pubIterator.hasNext()) {\n\t\t\tpublicationId = ((DefaultPublication)pubIterator.next()).getId();\n\t\t\tpubVerticesWriter.println(\" \" + (pubIndex + 1) + \" \" + \"p\"\n\t\t\t + (publicationId) + \" 0.0 0.0 triangle ic Maroon bc Black\");\n\n\t\t\tpublicationMap[publicationId] = pubIndex;\n\t\t\tpubIndex++;\n\t\t}\n\t}", "public void PedirSintomas() {\n\t\t\r\n\t\tSystem.out.println(\"pedir sintomas del paciente para relizar el diagnosticoa\");\r\n\t}", "@Override\n public String getDescription() {\n return \"Dividend payment\";\n }", "@Override\n\tpublic void verVehiculosDisponibles() {\n\t\tif(getCapacidad() > 0) {\n\t\t\tSystem.out.println(\"Plazas disponibles : \" + getCapacidad() + \" plazas, peso disponible : \" + getPeso() + \" kg, Carros disponibles: \" + \" 1 \" + \" Carro disponible, Capacidad de Personas : 4 personas, Peso maximo : 500 kg\");\n\t\t}else\n\t\t{\n\t\t\tSystem.out.println(\"Plazas disponibles : \" + getCapacidad() + \" plazas, peso disponible : \" + getPeso() + \" kg, Carros disponibles: \" + \" 0 \" + \" Carro disponibles, Capacidad de Personas : 4 personas, Peso maximo : 500 kg\");\n\t\t}\n\t\t\n\t}", "Subp getSubp();", "public void printLiterature() {\n //print all books in articles\n if (books.size() != 0) {\n System.out.println(\"Books: \");\n for (Book b : books) {\n System.out.print(\"\\nName: \" + b.getName() + \", Author: \" + b.getAuthor()\n + \", Publishing House: \" + b.getPublishingHouse() + \", Publishing Year: \"\n + b.getPublishingYear());\n }\n } else {\n System.out.println(\"0 books in articles!\");\n }\n\n //print all journals in articles\n if (journals.size() != 0) {\n System.out.println(\"\\n\\nJournals: \");\n for (Journal j : journals) {\n System.out.print(\"\\nName: \" + j.getName() + \", Subjects: \" + j.getSubjects()\n + \", Publishing date: \" + j.getPublishingDate());\n }\n } else {\n System.out.println(\"0 journals in articles!\");\n }\n\n //print all yearbooks in articles\n if (yearbooks.size() != 0) {\n System.out.println(\"\\n\\nYearbooks: \");\n for (Yearbook y : yearbooks) {\n System.out.print(\"\\nName: \" + y.getName() + \", Subjects: \" + y.getSubjects()\n + \", Publishing House: \" + y.getPublishingHouse() + \", Publishing Year: \"\n + y.getPublishingYear());\n }\n } else {\n System.out.println(\"0 yearbooks in articles!\");\n }\n }", "Product getPProducts();", "@Override\r\n public String toString() {\r\n return \"(\" + idn + \",\" + this.n + \")\"; //il y avait un rpobleme avec id -> me disait que acces privé dans noeud\r\n }", "public void visOversikt() {\r\n System.out.println(\"\\nPerson Oversikt:\");\r\n\r\n for(Person person : personListe.values()) {\r\n System.out.println(\"\\n\" + person);\r\n System.out.println(person + \" eier \" + (person.eierSize() + person.utlaantSize()) + \" DVD'er\");\r\n System.out.println(person + \" laaner ut \" + person.utlaantSize() + \" DVD'er\");\r\n System.out.println(person + \" laaner \" + person.laanerSize() + \" DVD'er\");\r\n }\r\n }", "public int getNumProMethods(){\r\n\t\treturn classStat.getNProM();\r\n\t}", "@Override\n\tpublic void descriere() {\n\t\tSystem.out.println(\"Item: \"+this.numeSectiune);\n\t}", "@Override\n public String getDescription() {\n return \"Digital goods purchase\";\n }", "public static void main(String[] args) {\n\t\tfor (int i = 0; i < 5; i++) {\n\t\t\tSystem.out.print(i);\n\t\t}\n\t\tdouble pi = 3.1415927;\n\t\tSystem.out.println(\"; pi = \" + pi);\n\n\n\t\t// creation/manipulation d'objets\n\t\tPoint0 p0 = null; \n\t\tp0 = new Point0();\n\n\t\tp0.x = -2;\n\t\tp0.y = 1;\n\t\tSystem.out.println(\"p0: (\" + p0.x + \",\" + p0.y + \")\");\n\n\t\tPoint0 p1 = new Point0(); \n\t\tp1 = p0;\n\t\tp1.translate(2, 2);\n\t\tSystem.out.print(\"Maintenant, p0 vaut: \");\n\t\tSystem.out.println(\"(\" + p0.x + \",\" + p0.y + \")\");\n\t}", "public void listarProvincia() {\n provincias = JPAFactoryDAO.getFactory().getProvinciaDAO().find();\n// for(int i=0;i<provincias.size();i++ ){\n// System.out.println(\"lista:\"+provincias.get(i).getNombreprovincia());\n// }\n }", "private void atualizar_tbl_pro_profs() {\n throw new UnsupportedOperationException(\"Not supported yet.\");\n//To change body of generated methods, choose Tools | Templates.\n }", "@Override\r\n public void parar(Conexion conexion){\n }" ]
[ "0.5827838", "0.5718744", "0.5558656", "0.5420463", "0.52953374", "0.5292206", "0.5289021", "0.5275951", "0.526128", "0.52594817", "0.5255845", "0.52512175", "0.5230235", "0.5222055", "0.5220599", "0.5206349", "0.5174832", "0.5173055", "0.51694626", "0.5165319", "0.5154026", "0.5150112", "0.5141862", "0.5137806", "0.51361406", "0.5120789", "0.51191986", "0.51186025", "0.51100004", "0.509562", "0.50927097", "0.50746644", "0.5062299", "0.5061722", "0.50617105", "0.5060516", "0.50603366", "0.50583553", "0.50569963", "0.5053021", "0.5048103", "0.5046178", "0.5042624", "0.50374466", "0.5032226", "0.50300413", "0.5027948", "0.50124216", "0.50115675", "0.49979132", "0.4994603", "0.4994507", "0.49902543", "0.49853754", "0.49769872", "0.49762052", "0.49756807", "0.4971113", "0.49675682", "0.49661806", "0.49535617", "0.49483326", "0.49411944", "0.4938383", "0.49314258", "0.49274695", "0.4920378", "0.49194244", "0.49193475", "0.49173662", "0.49152526", "0.49007124", "0.49006578", "0.4900423", "0.48988903", "0.48962998", "0.48865497", "0.4886372", "0.48820317", "0.48794585", "0.48776954", "0.48773617", "0.48760402", "0.48755378", "0.48727372", "0.48614183", "0.48591027", "0.48556456", "0.48546144", "0.48519957", "0.48496464", "0.48487657", "0.48482826", "0.4843646", "0.4841584", "0.4833837", "0.4829419", "0.4825062", "0.48224854", "0.4820731", "0.481991" ]
0.0
-1
Converts the binary signature value to the Xml DSig format in function of used algorithm
public static byte[] convertToXmlDSig(final EncryptionAlgorithm algorithm, byte[] signatureValue) { try { if (algorithm == EncryptionAlgorithm.ECDSA) { return DSSSignatureUtils.convertECDSAASN1toXMLDSIG(signatureValue); } else if (algorithm == EncryptionAlgorithm.DSA) { return DSSSignatureUtils.convertDSAASN1toXMLDSIG(signatureValue); } return signatureValue; } catch (IOException e) { throw new RuntimeException(e); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void valSig (String fileName) {\n javax.xml.parsers.DocumentBuilderFactory dbf =\n javax.xml.parsers.DocumentBuilderFactory.newInstance();\n dbf.setNamespaceAware(true);\n javax.xml.parsers.DocumentBuilder db = null;\n\n System.out.println(\"\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\");\n\n try {\n db = dbf.newDocumentBuilder();\n } catch (ParserConfigurationException e) {\n e.printStackTrace();\n }\n try {\n Document doc =\n db.parse(new FileInputStream(fileName));\n\n XPathFactory xpf = XPathFactory.newInstance();\n XPath xpath = xpf.newXPath();\n xpath.setNamespaceContext(new DSNamespaceContext());\n String expression = \"//ds:Signature[1]\";\n Element sigElement =\n (Element) xpath.evaluate(expression, doc, XPathConstants.NODE);\n\n XMLSignature signature =\n new XMLSignature(sigElement, (new File(fileName)).toURI().toURL().toString());\n\n String expressionBody = \"//soapenv:Body\";\n Element bodyElement =\n (Element) xpath.evaluate(expressionBody, doc, XPathConstants.NODE);\n\n Attr id = bodyElement.getAttributeNode(\"Id\") ;\n IdResolver.registerElementById(bodyElement,id);\n //signature.addResourceResolver(new OfflineResolver());\n\n KeyInfo ki = signature.getKeyInfo();\n System.out.println(\"================================signature.getSignatureValue()================================\");\n\n String svStr = new String(signature.getSignatureValue());\n System.out.println(svStr);\n System.out.println(\"================================signature.getSignatureValue()================================\");\n\n if (ki != null) {\n if (ki.containsX509Data()) {\n System.out.println(\"Could find a X509Data element in the KeyInfo\");\n }\n X509Certificate cert = signature.getKeyInfo().getX509Certificate();\n if (cert != null) {\n System.out.println(\"The XML signature in file \"\n // + f.toURI().toURL().toString() + \" is \"\n + (signature.checkSignatureValue(cert)\n ? \"valid (good)\" : \"invalid !!!!! (bad)\"));\n } else {\n System.out.println(\"Did not find a Certificate\");\n PublicKey pk = signature.getKeyInfo().getPublicKey();\n if (pk != null) {\n System.out.println(\"The XML signature in file \"\n // + f.toURI().toURL().toString() + \" is \"\n + (signature.checkSignatureValue(pk)\n ? \"valid (good)\" : \"invalid !!!!! (bad)\"));\n } else {\n System.out.println(\n \"Did not find a public key, so I can't check the signature\");\n }\n }\n } else {\n System.out.println(\"Did not find a KeyInfo\");\n }\n\n\n\n\n\n } catch (SAXException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n } catch (XPathExpressionException e) {\n e.printStackTrace();\n } catch (XMLSignatureException e) {\n e.printStackTrace();\n } catch (XMLSecurityException e) {\n e.printStackTrace();\n }\n\n }", "org.apache.xmlbeans.XmlBase64Binary xgetSignatureImage();", "BigInteger getDigitalSignature();", "public abstract byte[] getSignature();", "com.google.protobuf.ByteString getSignature();", "com.google.protobuf.ByteString\n getSignatureBytes();", "com.google.protobuf.ByteString\n getSignatureBytes();", "com.google.protobuf.ByteString getSig();", "com.microsoft.schemas.office.x2006.digsig.STSignatureText xgetSignatureText();", "com.microsoft.schemas.office.x2006.digsig.STSignatureType xgetSignatureType();", "String getSignature();", "String getSignature();", "String getSignature();", "public byte[] sign() throws XMLSignatureException {\n/* 177 */ return this.signatureAlgorithm.engineSign();\n/* */ }", "org.apache.calcite.avatica.proto.Common.Signature getSignature();", "private void setSignature(com.google.protobuf.ByteString value) {\n java.lang.Class<?> valueClass = value.getClass();\n bitField0_ |= 0x00000010;\n signature_ = value;\n }", "java.lang.String getSignatureText();", "public org.w3c.dom.Element signXML(org.w3c.dom.Document doc, \n java.lang.String certAlias, \n java.lang.String algorithm,\n java.lang.String transformAlag, \n java.util.List ids) \n throws XMLSignatureException {\n if (doc == null) { \n SAMLUtilsCommon.debug.error(\"signXML: doc is null.\"); \n throw new XMLSignatureException( \n SAMLUtilsCommon.bundle.getString(\"nullInput\")); \n } \n \n if (certAlias == null || certAlias.length() == 0) { \n SAMLUtilsCommon.debug.error(\"signXML: certAlias is null.\"); \n throw new XMLSignatureException( \n SAMLUtilsCommon.bundle.getString(\"nullInput\"));\n } \n \n org.w3c.dom.Element root = doc.getDocumentElement();\n \n XMLSignature signature = null;\n try {\n Constants.setSignatureSpecNSprefix(\"\"); \n PrivateKey privateKey = \n (PrivateKey) keystore.getPrivateKey(certAlias);\n if (privateKey == null) { \n SAMLUtilsCommon.debug.error(\"private key is null\"); \n throw new XMLSignatureException( \n SAMLUtilsCommon.bundle.getString(\"nullprivatekey\")); \n } \n \n if (algorithm == null || algorithm.length() == 0) { \n algorithm = getKeyAlgorithm(privateKey); \n } \n if (!isValidAlgorithm(algorithm)) { \n throw new XMLSignatureException( \n SAMLUtilsCommon.bundle.getString(\"invalidalgorithm\")); \n } \n signature = new XMLSignature(doc, \"\", algorithm, \n Canonicalizer.ALGO_ID_C14N_EXCL_OMIT_COMMENTS); \n \n \t root.appendChild(signature.getElement());\n \t int size = ids.size();\n \t for (int i = 0; i < size; ++i) {\n \t\tTransforms transforms = new Transforms(doc);\n \t\tif (transformAlag != null) {\n \t\t transforms.addTransform(transformAlag);\n }\n \t\ttransforms.addTransform(\n \t\t\t\tTransforms.TRANSFORM_C14N_EXCL_OMIT_COMMENTS);\n \t\tString id = (String) ids.get(i);\n \t\tif (SAMLUtilsCommon.debug.messageEnabled()) {\n \t\t SAMLUtilsCommon.debug.message(\"id = \" +id);\n \t\t}\n \t\tsignature.addDocument(\"#\"+id, transforms,\n \t\t\tConstants.ALGO_ID_DIGEST_SHA1);\n \t }\n \n \t X509Certificate cert =\n (X509Certificate) keystore.getX509Certificate(certAlias);\n signature.addKeyInfo(cert);\n signature.sign(privateKey); \n \n } catch (Exception e) { \n \t SAMLUtilsCommon.debug.error(\"signXML Exception: \", e);\n throw new XMLSignatureException(e.getMessage()); \n } \n \n return (signature.getElement()); \n }", "public org.w3c.dom.Element signWithBinarySecurityToken(\n org.w3c.dom.Document doc,\n java.security.cert.Certificate cert,\n java.lang.String algorithm,\n java.util.List ids,\n java.lang.String referenceType)\n throws XMLSignatureException {\n return null;\n }", "String componentSignature();", "public abstract String getSignature();", "void xsetSignatureImage(org.apache.xmlbeans.XmlBase64Binary signatureImage);", "byte[] getSignatureImage();", "Signature getSignature();", "int getSignature ();", "void xsetSignatureType(com.microsoft.schemas.office.x2006.digsig.STSignatureType signatureType);", "public byte[] getSignature() {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e5 in method: android.security.keystore.DelegatingX509Certificate.getSignature():byte[], dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.security.keystore.DelegatingX509Certificate.getSignature():byte[]\");\n }", "public byte[] generateSignature()\n {\n if (!forSigning)\n {\n throw new IllegalStateException(\"PairingDigestSigner not initialised for signature generation.\");\n }\n\n byte[] hash = new byte[digest.getDigestSize()];\n digest.doFinal(hash, 0);\n\n Element[] sig = pairingSigner.generateSignature(hash);\n\n try {\n return pairingSigner.derEncode(sig);\n } catch (IOException e) {\n throw new IllegalStateException(\"unable to encode signature\");\n }\n }", "public abstract String getSigAlgOID();", "protected byte[] getSignature() {\n return signatureImpl.calculate(content, null);\n }", "public static byte[] convertDSAASN1toXMLDSIG(byte asn1Bytes[]) throws IOException {\n\n byte rLength = asn1Bytes[3];\n int ii;\n for (ii = rLength; (ii > 0) && (asn1Bytes[(4 + rLength) - ii] == 0); ii--)\n ;\n\n byte sLength = asn1Bytes[5 + rLength];\n int jj;\n for (jj = sLength; (jj > 0) && (asn1Bytes[(6 + rLength + sLength) - jj] == 0); jj--)\n ;\n\n if ((asn1Bytes[0] != 48) || (asn1Bytes[1] != asn1Bytes.length - 2) || (asn1Bytes[2] != 2) || (ii > 20) || (asn1Bytes[4 + rLength] != 2) || (jj > 20)) {\n\n throw new IOException(\"Invalid ASN.1 format of DSA signature\");\n }\n byte xmldsigBytes[] = new byte[40];\n\n System.arraycopy(asn1Bytes, (4 + rLength) - ii, xmldsigBytes, 20 - ii, ii);\n System.arraycopy(asn1Bytes, (6 + rLength + sLength) - jj, xmldsigBytes, 40 - jj, jj);\n\n return xmldsigBytes;\n }", "org.apache.xmlbeans.XmlInt xgetSignatureProviderDetails();", "public com.google.protobuf.ByteString\n getSignatureBytes() {\n Object ref = signature_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n signature_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public com.google.protobuf.ByteString\n getSignatureBytes() {\n Object ref = signature_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n signature_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "void xsetSignatureText(com.microsoft.schemas.office.x2006.digsig.STSignatureText signatureText);", "@Override\n public com.google.protobuf.ByteString\n getSignatureBytes() {\n Object ref = signature_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n signature_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "@Override\n public com.google.protobuf.ByteString\n getSignatureBytes() {\n Object ref = signature_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n signature_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public String getSignature() {\n\tString sig;\n\n\tsig = dims.substring(0, dim_count);\n\tif (num_comp == 1) {\n\t if (comp[0].compareTo(\"byte\") == 0)\n\t\tsig += \"B\";\n\t else if (comp[0].compareTo(\"char\") == 0)\n\t\tsig += \"C\";\n\t else if (comp[0].compareTo(\"double\") == 0)\n\t\tsig += \"D\";\n\t else if (comp[0].compareTo(\"float\") == 0)\n\t\tsig += \"F\";\n\t else if (comp[0].compareTo(\"int\") == 0)\n\t\tsig += \"I\";\n\t else if (comp[0].compareTo(\"long\") == 0)\n\t\tsig += \"J\";\n\t else if (comp[0].compareTo(\"short\") == 0)\n\t\tsig += \"S\";\n\t else if (comp[0].compareTo(\"boolean\") == 0)\n\t\tsig += \"Z\";\n\t else if (comp[0].compareTo(\"void\") == 0)\n\t\tsig += \"V\";\n\t else {\n\t\t// Component is an object but might have implied context\n\t\tsig += \"L\" + fullName + \";\";\n\t }\n\t}\n\telse\n\t sig += \"L\" + fullName + \";\";\n\treturn(sig);\n }", "private byte getSignatureType() \r\n \t //@ requires [?f]signatureType |-> ?theSignatureType &*& theSignatureType != null &*& theSignatureType.length == 1 &*& is_transient_byte_array(theSignatureType) == true &*& transient_byte_arrays(?ta) &*& foreachp(ta, transient_byte_array);\r\n \t //@ ensures [f]signatureType |-> theSignatureType &*& transient_byte_arrays(ta) &*& foreachp(ta, transient_byte_array);\r\n\t{\r\n\t\t//@ transient_byte_arrays_mem(theSignatureType);\r\n\t\t//@ foreachp_remove(theSignatureType, ta);\r\n\t\t//@ open transient_byte_array(theSignatureType);\r\n\t\treturn signatureType[0];\r\n\t\t//@ close transient_byte_array(theSignatureType);\r\n\t\t//@ foreachp_unremove(theSignatureType, ta);\r\n\t}", "public org.w3c.dom.Element signXML(org.w3c.dom.Document doc, \n java.lang.String certAlias, \n java.lang.String algorithm)\n throws XMLSignatureException { \n if (doc == null) {\n \t SAMLUtilsCommon.debug.error(\"signXML: doc is null.\");\n \t throw new XMLSignatureException(\n \t\t SAMLUtilsCommon.bundle.getString(\"nullInput\"));\n \t} \n if (certAlias == null || certAlias.length() == 0) {\n \t SAMLUtilsCommon.debug.error(\"signXML: certAlias is null.\");\n \t throw new XMLSignatureException(\n \t\t SAMLUtilsCommon.bundle.getString(\"nullInput\"));\n \t} \n org.w3c.dom.Element root = null; \n XMLSignature sig = null; \n try {\n Constants.setSignatureSpecNSprefix(\"\"); \n if (keystore == null) { \n throw new XMLSignatureException(\n SAMLUtilsCommon.bundle.getString(\"nullkeystore\"));\n } \n PrivateKey privateKey = \n (PrivateKey) keystore.getPrivateKey(certAlias);\n \n if (privateKey == null) {\n SAMLUtilsCommon.debug.error(\"private key is null\");\n throw new XMLSignatureException(\n SAMLUtilsCommon.bundle.getString(\"nullprivatekey\"));\n } \n root = doc.getDocumentElement(); \n \n if (algorithm == null || algorithm.length() == 0) {\n algorithm = getKeyAlgorithm(privateKey); \n }\n if (!isValidAlgorithm(algorithm)) {\n throw new XMLSignatureException(\n SAMLUtilsCommon.bundle.getString(\"invalidalgorithm\"));\n }\n \n if (c14nMethod == null || c14nMethod.length() == 0) {\n \tsig = new XMLSignature(doc, \"\", algorithm); \n } else {\n if (!isValidCanonicalizationMethod(c14nMethod)) {\n throw new XMLSignatureException(\n SAMLUtilsCommon.bundle.\n getString(\"invalidCanonicalizationMethod\"));\n } \t\t \t\n \n sig = new XMLSignature(doc, \"\", algorithm, c14nMethod); \n } \n root.appendChild(sig.getElement());\n sig.getSignedInfo().addResourceResolver(\n new com.sun.identity.saml.xmlsig.OfflineResolver());\n \n // do transform \n Transforms transforms = new Transforms(doc);\n transforms.addTransform(Transforms.TRANSFORM_ENVELOPED_SIGNATURE);\n // If exclusive canonicalization is presented in the saml locale\n \t // file, we will add a transform for it. Otherwise, will not do\n \t // such transform due to performance reason. \n if (transformAlg != null && transformAlg.length() != 0) {\n \tif (!isValidTransformAlgorithm(transformAlg)) { \n \t throw new XMLSignatureException(\n \t \t\tSAMLUtilsCommon.bundle.getString(\n \t \t\t\"invalidTransformAlgorithm\"));\n \t}\n \ttransforms.addTransform(transformAlg);\n }\n \n sig.addDocument(\"\", transforms, Constants.ALGO_ID_DIGEST_SHA1);\n \n // add certificate \n X509Certificate cert =\n (X509Certificate) keystore.getX509Certificate(certAlias);\n \n sig.addKeyInfo(cert);\n sig.sign(privateKey);\n } catch (Exception e) {\n SAMLUtilsCommon.debug.error(\"signXML Exception: \", e);\n throw new XMLSignatureException(e.getMessage());\n }\n return (sig.getElement());\n }", "public byte[] getSigAlgParams() {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e5 in method: android.security.keystore.DelegatingX509Certificate.getSigAlgParams():byte[], dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.security.keystore.DelegatingX509Certificate.getSigAlgParams():byte[]\");\n }", "public org.w3c.dom.Element signXML(org.w3c.dom.Document doc,\n java.lang.String certAlias,\n java.lang.String algorithm,\n java.lang.String idAttrName,\n java.lang.String id,\n boolean includeCert,\n \t\t\t\t java.lang.String xpath)\n throws XMLSignatureException {\n if (doc == null) { \n SAMLUtilsCommon.debug.error(\"signXML: doc is null.\"); \n throw new XMLSignatureException( \n SAMLUtilsCommon.bundle.getString(\"nullInput\")); \n } \n \n if (certAlias == null || certAlias.length() == 0) { \n SAMLUtilsCommon.debug.error(\"signXML: certAlias is null.\"); \n throw new XMLSignatureException( \n SAMLUtilsCommon.bundle.getString(\"nullInput\"));\n } \n org.w3c.dom.Element root = null; \n XMLSignature sig = null; \n try { \n Constants.setSignatureSpecNSprefix(\"\"); \n PrivateKey privateKey = \n (PrivateKey) keystore.getPrivateKey(certAlias);\n if (privateKey == null) { \n SAMLUtilsCommon.debug.error(\"private key is null\"); \n throw new XMLSignatureException( \n SAMLUtilsCommon.bundle.getString(\"nullprivatekey\")); \n } \n root = (Element) XPathAPI.selectSingleNode( \n doc, \"//*[@\" + idAttrName + \"=\\\"\" + id + \"\\\"]\");\n \n if (root == null) { \n SAMLUtilsCommon.debug.error(\"signXML: could not\" \n + \" resolv id attribute\");\n throw new XMLSignatureException( \n SAMLUtilsCommon.bundle.getString(\"invalidIDAttribute\")); \n }\n \n // add to IdResolver for idAttrName is not \"id\" case. \n if (!id.equals(this.DEF_ID_ATTRIBUTE)) {\n IdResolver.registerElementById(root, id); \n }\n if (algorithm == null || algorithm.length() == 0) { \n algorithm = getKeyAlgorithm(privateKey); ; \n } \n if (!isValidAlgorithm(algorithm)) { \n throw new XMLSignatureException( \n SAMLUtilsCommon.bundle.getString(\"invalidalgorithm\")); \n } \n sig = new XMLSignature(doc, \"\", algorithm, \n Canonicalizer.ALGO_ID_C14N_EXCL_OMIT_COMMENTS); \n \t if(xpath == null) {\n root.appendChild(sig.getElement()); \n \t } else {\n \t\tNode beforeNode = XPathAPI.selectSingleNode(doc, xpath);\n \t\troot.insertBefore(sig.getElement(), beforeNode);\n \t }\n sig.getSignedInfo().addResourceResolver( \n new com.sun.identity.saml.xmlsig.OfflineResolver()); \n // register the id for the elment, so it could be found\n // by Reference object based on URI\n if (!idAttrName.equals(DEF_ID_ATTRIBUTE)) {\n IdResolver.registerElementById(root, id);\n }\n // do transform \n Transforms transforms = new Transforms(doc); \n transforms.addTransform(Transforms.TRANSFORM_ENVELOPED_SIGNATURE); \n transforms.addTransform(\n \t\t\t\tTransforms.TRANSFORM_C14N_EXCL_OMIT_COMMENTS);\n String ref = \"#\" + id; \n sig.addDocument(ref, transforms, Constants.ALGO_ID_DIGEST_SHA1);\n if (includeCert) {\n X509Certificate cert =\n (X509Certificate) keystore.getX509Certificate(certAlias);\n sig.addKeyInfo(cert);\n }\n sig.sign(privateKey); \n } catch (Exception e) { \n \t SAMLUtilsCommon.debug.error(\"signXML Exception: \", e);\n throw new XMLSignatureException(e.getMessage()); \n } \n return (sig.getElement()); \n }", "public org.w3c.dom.Element signXML(org.w3c.dom.Document doc, \n java.lang.String certAlias, \n java.lang.String algorithm, \n java.util.List ids) \n throws XMLSignatureException { \n \n return signXML(doc, certAlias, algorithm, null, ids); \n }", "public Builder setSig(com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000002;\n sig_ = value;\n onChanged();\n return this;\n }", "SignatureIdentification createSignatureIdentification();", "public io.lightcone.data.types.EdDSASignature getSig() {\n if (sigBuilder_ == null) {\n return sig_ == null ? io.lightcone.data.types.EdDSASignature.getDefaultInstance() : sig_;\n } else {\n return sigBuilder_.getMessage();\n }\n }", "org.apache.calcite.avatica.proto.Common.SignatureOrBuilder getSignatureOrBuilder();", "void computeSignature(String signature) {\n\t\t// In case of IJavaElement signature, replace '/' by '.'\n\t\tchar[] source = signature.replace('/','.').replace('$','.').toCharArray();\n\n\t\t// Init counters and arrays\n\t\tchar[][] signatures = new char[10][];\n\t\tint signaturesCount = 0;\n\t\tint[] lengthes = new int [10];\n\t\tint typeArgsCount = 0;\n\t\tint paramOpening = 0;\n\t\tboolean parameterized = false;\n\t\t\n\t\t// Scan each signature character\n\t\tfor (int idx=0, ln = source.length; idx < ln; idx++) {\n\t\t\tswitch (source[idx]) {\n\t\t\t\tcase '>':\n\t\t\t\t\tparamOpening--;\n\t\t\t\t\tif (paramOpening == 0) {\n\t\t\t\t\t\tif (signaturesCount == lengthes.length) {\n\t\t\t\t\t\t\tSystem.arraycopy(signatures, 0, signatures = new char[signaturesCount+10][], 0, signaturesCount);\n\t\t\t\t\t\t\tSystem.arraycopy(lengthes, 0, lengthes = new int[signaturesCount+10], 0, signaturesCount);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tlengthes[signaturesCount] = typeArgsCount;\n\t\t\t\t\t\ttypeArgsCount = 0;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase '<':\n\t\t\t\t\tparamOpening++;\n\t\t\t\t\tif (paramOpening == 1) {\n\t\t\t\t\t\ttypeArgsCount = 0;\n\t\t\t\t\t\tparameterized = true;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase '*':\n\t\t\t\tcase ';':\n\t\t\t\t\tif (paramOpening == 1) typeArgsCount++;\n\t\t\t\t\tbreak;\n\t\t\t\tcase '.':\n\t\t\t\t\tif (paramOpening == 0) {\n\t\t\t\t\t\tif (signaturesCount == lengthes.length) {\n\t\t\t\t\t\t\tSystem.arraycopy(signatures, 0, signatures = new char[signaturesCount+10][], 0, signaturesCount);\n\t\t\t\t\t\t\tSystem.arraycopy(lengthes, 0, lengthes = new int[signaturesCount+10], 0, signaturesCount);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tsignatures[signaturesCount] = new char[idx+1];\n\t\t\t\t\t\tSystem.arraycopy(source, 0, signatures[signaturesCount], 0, idx);\n\t\t\t\t\t\tsignatures[signaturesCount][idx] = Signature.C_SEMICOLON;\n\t\t\t\t\t\tsignaturesCount++;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\t\t// Store signatures and type arguments\n\t\tthis.typeSignatures = new char[signaturesCount+1][];\n\t\tif (parameterized)\n\t\t\tthis.typeArguments = new char[signaturesCount+1][][];\n\t\tthis.typeSignatures[0] = source;\n\t\tif (parameterized) {\n\t\t\tthis.typeArguments[0] = Signature.getTypeArguments(source);\n\t\t\tif (lengthes[signaturesCount] != this.typeArguments[0].length) {\n\t\t\t\t// TODO (frederic) abnormal signature => should raise an error\n\t\t\t}\n\t\t}\n\t\tfor (int i=1, j=signaturesCount-1; i<=signaturesCount; i++, j--){\n\t\t\tthis.typeSignatures[i] = signatures[j];\n\t\t\tif (parameterized) {\n\t\t\t\tthis.typeArguments[i] = Signature.getTypeArguments(signatures[j]);\n\t\t\t\tif (lengthes[j] != this.typeArguments[i].length) {\n\t\t\t\t\t// TODO (frederic) abnormal signature => should raise an error\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "private static void wxSignTest(){\n\t\t\n\t\tString sb=\"appid=wx791233ecd4e71c3f&attach=91_40090_3999&mch_id=1220845901&openid=oc9Xijt__DS0SyGDGqGnUPxSkDWQ&cash_fee=7600&fee_type=CNY\"+\n\t\t\t\t\"&time_end=20150831172810&bank_type=BOC_DEBIT&nonce_str\"+\n\t\t\t\t\"=5K8264ILTKCH16CQ2502SI8ZNMTM67VS&total_fee=7600&trade_type=JSAPI&result_code=SUCCESS&return_code=SUCCESS&is_subscribe=Y&out_trade_\"+\n\t\t\t\t\"no=2015083100400904657685188272&transaction_id=1007950222201508310755172159&key=48d15a39462fbe06f6391328ff685954\";\n\t\t\tString sign = DigestUtils.md5Hex(sb).toUpperCase();\n\t\t\tSystem.out.println(\"sign=\"+sign);\t\n\t}", "public String getSignature() {\n Object ref = signature_;\n if (!(ref instanceof String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n signature_ = s;\n return s;\n } else {\n return (String) ref;\n }\n }", "public String getSignature() {\n Object ref = signature_;\n if (!(ref instanceof String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n signature_ = s;\n return s;\n } else {\n return (String) ref;\n }\n }", "int getSignatureType();", "public Builder setSignatureBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n\n signature_ = value;\n onChanged();\n return this;\n }", "public Builder setSignatureBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n\n signature_ = value;\n onChanged();\n return this;\n }", "String signITRByAssesse(String PAN,String xml, DigitalSignatureWrapper digitalSignatureWrapper) throws MissingPrivateKeyException,InvalidDigitalSignatureException,Exception;", "public org.apache.calcite.avatica.proto.Common.Signature getSignature() {\n if (signatureBuilder_ == null) {\n return signature_ == null ? org.apache.calcite.avatica.proto.Common.Signature.getDefaultInstance() : signature_;\n } else {\n return signatureBuilder_.getMessage();\n }\n }", "public static byte[] convertECDSAASN1toXMLDSIG(byte asn1Bytes[]) throws IOException {\n\n if (asn1Bytes.length < 8 || asn1Bytes[0] != 48) {\n throw new IOException(\"Invalid ASN.1 format of ECDSA signature\");\n }\n int offset;\n if (asn1Bytes[1] > 0) {\n offset = 2;\n } else if (asn1Bytes[1] == (byte) 0x81) {\n offset = 3;\n } else {\n throw new IOException(\"Invalid ASN.1 format of ECDSA signature\");\n }\n\n byte rLength = asn1Bytes[offset + 1];\n int i;\n\n for (i = rLength; (i > 0) && (asn1Bytes[(offset + 2 + rLength) - i] == 0); i--)\n ;\n\n byte sLength = asn1Bytes[offset + 2 + rLength + 1];\n int j;\n\n for (j = sLength; (j > 0) && (asn1Bytes[(offset + 2 + rLength + 2 + sLength) - j] == 0); j--)\n ;\n\n int rawLen = Math.max(i, j);\n\n if ((asn1Bytes[offset - 1] & 0xff) != asn1Bytes.length - offset || (asn1Bytes[offset - 1] & 0xff) != 2 + rLength + 2 + sLength || asn1Bytes[offset] != 2 || asn1Bytes[offset + 2 + rLength] != 2) {\n throw new IOException(\"Invalid ASN.1 format of ECDSA signature\");\n }\n byte xmldsigBytes[] = new byte[2 * rawLen];\n\n System.arraycopy(asn1Bytes, (offset + 2 + rLength) - i, xmldsigBytes, rawLen - i, i);\n System.arraycopy(asn1Bytes, (offset + 2 + rLength + 2 + sLength) - j, xmldsigBytes, 2 * rawLen - j, j);\n\n return xmldsigBytes;\n }", "public Builder setSig(io.lightcone.data.types.EdDSASignature value) {\n if (sigBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n sig_ = value;\n onChanged();\n } else {\n sigBuilder_.setMessage(value);\n }\n\n return this;\n }", "public com.google.protobuf.ByteString getSig() {\n return sig_;\n }", "@Override\n public String getSignature() {\n Object ref = signature_;\n if (ref instanceof String) {\n return (String) ref;\n } else {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n signature_ = s;\n return s;\n }\n }", "@Override\n public String getSignature() {\n Object ref = signature_;\n if (ref instanceof String) {\n return (String) ref;\n } else {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n signature_ = s;\n return s;\n }\n }", "com.google.protobuf.ByteString getArtifactSignature();", "public static String wordToSignature(String word){\n\t\tStringBuffer signature = new StringBuffer();\n\t\tfor(int i = 0; i < word.length(); i++){\n\t\t\tchar index = word.charAt(i);\n\t\t\tif(index == 'a' || index == 'b' || index == 'c'||index == 'A' || index == 'B' || index == 'C'){\n\t\t\t\tsignature.append(2);\n\t\t\t} else if(index == 'd'||index=='e'||index =='f'||index == 'D' || index == 'E' || index == 'F'){\n\t\t\t\tsignature.append(3);\n\t\t\t} else if (index =='g'|| index == 'h'|| index =='i'||index == 'G' || index == 'H' || index == 'I'){\n\t\t\t\tsignature.append(4);\n\t\t\t} else if(index =='j'|| index == 'k'|| index == 'l'||index == 'J' || index == 'K' || index == 'L'){\n\t\t\t\tsignature.append(5);\n\t\t\t} else if(index=='m'|| index =='n'|| index =='o'||index == 'M' || index == 'N' || index == 'O'){\n\t\t\t\tsignature.append(6);\n\t\t\t} else if(index == 'p'|| index == 'q' || index =='r'|| index =='s'||index == 'P' || index == 'Q' || index == 'R'||index =='S'){\n\t\t\t\tsignature.append(7);\n\t\t\t} else if(index == 't'|| index == 'u' || index == 'v'||index == 'T' || index == 'U' || index == 'V'){\n\t\t\t\tsignature.append(8);\n\t\t\t} else if(index =='w' || index == 'x' || index == 'y' || index == 'z'||index == 'W' || index == 'X' || index == 'Y'|| index =='Z'){\n\t\t\t\tsignature.append(9);\n\t\t\t}\n\t\t}return signature.toString();\n\t}", "public byte[] getDigitalSignature() {\r\n\t\treturn digitalSignature;\r\n\t}", "native String nativeGetSignature(long nativeHandler) throws RuntimeException;", "public byte []\ngetSignature() {\n\treturn signature;\n}", "private static String generateSignature(String data, String key) throws SignatureException {\n String result;\n try {\n // get an hmac_sha1 key from the raw key bytes\n SecretKeySpec signingKey = new SecretKeySpec(key.getBytes(StandardCharsets.UTF_8), \"HmacSHA1\");\n // get an hmac_sha1 Mac instance and initialize with the signing key\n Mac mac = Mac.getInstance(\"HmacSHA1\");\n mac.init(signingKey);\n // compute the hmac on input data bytes\n byte[] rawHmac = mac.doFinal(data.getBytes(StandardCharsets.UTF_8));\n result = Base64.encodeBase64String(rawHmac);\n }\n catch (Exception e) {\n throw new SignatureException(\"Failed to generate HMAC : \" + e.getMessage());\n }\n return result;\n }", "public static native String getSignature(long[] msgArgs);", "public String calculateSignature(String str) {\n try {\n String signingKey = getSigningKey();\n byte[] bytes = str.getBytes(\"UTF8\");\n SecretKeySpec secretKeySpec = new SecretKeySpec(signingKey.getBytes(\"UTF8\"), \"HmacSHA1\");\n Mac instance = Mac.getInstance(\"HmacSHA1\");\n instance.init(secretKeySpec);\n byte[] doFinal = instance.doFinal(bytes);\n return ByteString.of(doFinal, 0, doFinal.length).base64();\n } catch (InvalidKeyException e) {\n Twitter.getLogger().e(\"Twitter\", \"Failed to calculate signature\", e);\n return \"\";\n } catch (NoSuchAlgorithmException e2) {\n Twitter.getLogger().e(\"Twitter\", \"Failed to calculate signature\", e2);\n return \"\";\n } catch (UnsupportedEncodingException e3) {\n Twitter.getLogger().e(\"Twitter\", \"Failed to calculate signature\", e3);\n return \"\";\n }\n }", "public int getSignature() {\r\n\t\tif (this.signature == 0) {\r\n\t\t\tthis.signature = Math.abs(lhs);\r\n\t\t\tfor (Map.Entry<Integer, DPState> e : dpStates.entrySet())\r\n\t\t\t\tthis.signature = this.signature * 31 + e.getValue().getSignature(false);\r\n\t\t}\r\n \t\treturn this.signature;\r\n \t}", "public com.google.protobuf.ByteString getSig() {\n return sig_;\n }", "ISModifySignature createISModifySignature();", "@Override\n public String toString() {\n StringBuilder rtv = new StringBuilder(digits(mostSigBits >> 32, 8)).append('-');\n rtv.append(digits(mostSigBits >> 16, 4)).append('-');\n\trtv.append(digits(mostSigBits, 4)).append('-');\n\trtv.append(digits(leastSigBits >> 48, 4)).append('-');\n\trtv.append(digits(leastSigBits, 12));\n return rtv.toString();\n }", "String getUniqueSignature();", "String process(String data) throws LocalizedSignatureException;", "public org.w3c.dom.Element signXML(org.w3c.dom.Document doc, \n java.lang.String certAlias) \n throws XMLSignatureException { \n return signXML(doc, certAlias, null); \n }", "public static String wordToSignature(String word) {\n\t\t\n\t\t// Creating the char array\n\t\tString wordIn = word.toLowerCase();\n\t\tchar[] wordChars = wordIn.toCharArray();\n\t\t\n\t\t// The string buffer to cumulatively store the signature\n\t\tStringBuffer sBuffer = new StringBuffer(\"\");\n\t\t\n\t\t// Loops through the char array and cumulatively adds the appropriate digit\n\t\tfor(char c : wordChars) {\n\t\t\t\n\t\t\tString sigInt = \"\";\n\t\t\t\n\t\t\tif( Character.isAlphabetic(c)) {\n\t\t\t\t\n\t\t\t\tswitch(c) {\n\t\t\t\t\tcase 'a': case 'b': case 'c': sigInt = \"2\"; break;\n\t\t\t\t\tcase 'd': case 'e': case 'f': sigInt = \"3\"; break;\n\t\t\t\t\tcase 'g': case 'h': case 'i': sigInt = \"4\"; break;\n\t\t\t\t\tcase 'j': case 'k': case 'l': sigInt = \"5\"; break;\n\t\t\t\t\tcase 'm': case 'n': case 'o': sigInt = \"6\"; break;\n\t\t\t\t\tcase 'p': case 'q': case 'r': case 's': sigInt = \"7\"; break;\n\t\t\t\t\tcase 't': case 'u': case 'v': sigInt = \"8\"; break;\n\t\t\t\t\tcase 'w': case 'x': case 'y': case 'z': sigInt = \"9\"; break;\n\t\t\t\t\tdefault: sigInt = \" \";\n\t\t\t\t}\n\t\t\t\tsBuffer.append(sigInt);\n\t\t\t}else {\n\t\t\t\t// Add a space for non alphabetical\n\t\t\t\tsBuffer.append(\" \");\n\t\t\t}\n\t\t}\n\t\t// return the complete signature as a string\n\t\treturn sBuffer.toString();\n\t}", "public byte[] getSignature()\n {\n return Arrays.clone(signature);\n }", "com.microsoft.schemas.office.x2006.digsig.STSignatureComments xgetSignatureComments();", "public String getGraphSignature(){\n \t this.generateGraphSignature();\n \t return this.graphSignature;\n \t}", "private void generateGraphSignature() {\n \t this.generateVertexSignatures();\n \t Collections.sort(this.vertexSignatures);\n \t this.graphSignature = this.vertexSignatures.get(0);\n \t}", "public int getSignature() {\n\t\ttry {\n\t\t\treturn getStream().getInt(signature);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t\treturn 0;\n\t\t}\n\t}", "com.google.protobuf.ByteString getSignedTimeStamp();", "public static String wordToSignature(String word) {\n\n\t\tword = word.toLowerCase();\n\n\t\tint characterVal = 0;\n\t\tString sig = \"\";\n\n\t\tStringBuffer signature = new StringBuffer(\"\");\n\n\t\tfor (int i = 0; i < word.length(); i++) {\n\t\t\tcharacterVal = word.charAt(i); // get the integer value of the\n\t\t\t\t\t\t\t\t\t\t\t// character\n\t\t\tif ((characterVal >= 97) && (characterVal <= 99))\n\t\t\t\tsig = \"2\";\n\t\t\telse if ((characterVal >= 100) && (characterVal <= 102))\n\t\t\t\tsig = \"3\";\n\t\t\telse if ((characterVal >= 103) && (characterVal <= 105))\n\t\t\t\tsig = \"4\";\n\t\t\telse if ((characterVal >= 106) && (characterVal <= 108))\n\t\t\t\tsig = \"5\";\n\t\t\telse if ((characterVal >= 109) && (characterVal <= 111))\n\t\t\t\tsig = \"6\";\n\t\t\telse if ((characterVal >= 112) && (characterVal <= 115))\n\t\t\t\tsig = \"7\";\n\t\t\telse if ((characterVal >= 116) && (characterVal <= 118))\n\t\t\t\tsig = \"8\";\n\t\t\telse if ((characterVal >= 119) && (characterVal <= 122))\n\t\t\t\tsig = \"9\";\n\t\t\telse\n\t\t\t\tsig = \" \";\n\n\t\t\tsignature.append(sig);\n\t\t}\n\n\t\treturn signature.toString();\n\t}", "public abstract String getSigAlgName();", "default String getSignature() {\n StringBuilder sb = new StringBuilder();\n sb.append(getName());\n sb.append(\"(\");\n for (int i = 0; i < getNumberOfParams(); i++) {\n if (i != 0) {\n sb.append(\", \");\n }\n sb.append(getParam(i).describeType());\n }\n sb.append(\")\");\n return sb.toString();\n }", "public static void main(String[] args) throws AddressFormatException {\n\n// generateMultisig();\n String getSignedTransaction = signFirstTime();\n String rawtx = signSecondTime(getSignedTransaction);\n\n System.out.println(\"rawtx ->\"+ rawtx);\n }", "private static byte[] sign(KeyPair keyPair, Path path, String signatureAlgorithm)\n\t{\n\t\tbyte[] signature = null;\n\n\t\ttry\n\t\t{\n\t\t\tbyte[] dataFromFile = Files.readAllBytes(path);\n\t\t\tSignature sign = Signature.getInstance(signatureAlgorithm);\n\t\t\tsign.initSign(keyPair.getPrivate());\n\t\t\tsign.update(dataFromFile);\n\t\t\tsignature = sign.sign();\n\t\t} catch (IOException | InvalidKeyException | NoSuchAlgorithmException | SignatureException e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\treturn signature;\n\t}", "@Override\n\tpublic Document signDocument(Document doc, PrivateKey privateKey, Certificate cert) throws XMLSecurityException {\n\t\tElement rootEl = doc.getDocumentElement();\n\t\tcom.sun.org.apache.xml.internal.security.Init.init();\n\t\tXMLSignature sig = new XMLSignature(doc, null, XMLSignature.ALGO_ID_SIGNATURE_RSA_SHA1);\n\n\t\tTransforms transform = new Transforms(doc);\n\n\t\ttransform.addTransform(Transforms.TRANSFORM_ENVELOPED_SIGNATURE);\n\n\t\ttransform.addTransform(Transforms.TRANSFORM_C14N11_WITH_COMMENTS);\n\n\t\tsig.addDocument(\"\", transform, MessageDigestAlgorithm.ALGO_ID_DIGEST_SHA1);\n\n\t\tsig.addKeyInfo(cert.getPublicKey());\n\t\tsig.addKeyInfo((X509Certificate) cert);\n\n\t\trootEl.appendChild(sig.getElement());\n\t\tsig.sign(privateKey);\n\t\treturn doc;\n\n\t}", "public io.lightcone.data.types.EdDSASignature getSig() {\n return sig_ == null ? io.lightcone.data.types.EdDSASignature.getDefaultInstance() : sig_;\n }", "private static String sign(String data, String key)\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\tMac mac = Mac.getInstance(\"HmacSHA1\");\n\t\t\t\tmac.init(new SecretKeySpec(key.getBytes(), \"HmacSHA1\"));\n\t\t\t\treturn Base64.encodeBytes(mac.doFinal(data.getBytes(\"UTF-8\")));\n\t\t\t}\n\t\t\tcatch (Exception e)\n\t\t\t{\n\t\t\t\tthrow new RuntimeException(new SignatureException(\"Failed to generate signature: \" + e.getMessage(), e));\n\t\t\t}\n\t\t}", "private byte[] createSignatureBase() {\n final Charset utf8 = StandardCharsets.UTF_8;\n byte[] urlBytes = url.getBytes(utf8);\n byte[] timeStampBytes = Long.toString(timestamp).getBytes(utf8);\n byte[] secretBytes = secret.getBytes(utf8);\n\n // concatenate\n ByteArrayOutputStream stream = new ByteArrayOutputStream();\n try {\n stream.write(urlBytes);\n stream.write(body);\n stream.write(timeStampBytes);\n stream.write(secretBytes);\n } catch (IOException ex){\n logger.error(\"Could not create signature base\", ex);\n return new byte[0];\n }\n\n return stream.toByteArray();\n }", "public boolean verifyXMLSignature(String wsfVersion, String certAlias,\n Document doc) throws XMLSignatureException {\n \n if (doc == null) { \n SAMLUtilsCommon.debug.error(\"verifyXMLSignature:\" +\n \" document is null.\"); \n throw new XMLSignatureException( \n SAMLUtilsCommon.bundle.getString(\"nullInput\")); \n } \n \n try { \n this.wsfVersion = wsfVersion;\n String wsuNS = SAMLConstants.NS_WSU;\n String wsseNS = SAMLConstants.NS_WSSE;\n \n if((wsfVersion != null) &&\n (wsfVersion.equals(SOAPBindingConstants.WSF_11_VERSION))) {\n wsuNS = WSSEConstants.NS_WSU_WSF11;\n wsseNS = WSSEConstants.NS_WSSE_WSF11;\n }\n \n Element wsucontext = com.sun.org.apache.xml.internal.security.utils.\n XMLUtils.createDSctx(doc, \"wsu\", wsuNS);\n \n NodeList wsuNodes = (NodeList)XPathAPI.selectNodeList(doc,\n \"//*[@wsu:Id]\", wsucontext);\n \n if ((wsuNodes != null) && (wsuNodes.getLength() != 0)) {\n for(int i=0; i < wsuNodes.getLength(); i++) {\n Element elem = (Element) wsuNodes.item(i);\n String id = elem.getAttributeNS(wsuNS, \"Id\");\n if ((id != null) && (id.length() != 0)) {\n IdResolver.registerElementById(elem, id);\n }\n }\n }\n \n String[] attrs = {\"AssertionID\", \"RequestID\", \"ResponseID\"};\n for (int j = 0; j < attrs.length; j++) {\n NodeList aList = (NodeList)XPathAPI.selectNodeList(doc,\n \"//*[@\" + attrs[j]+\"]\");\n if ((aList != null) && (aList.getLength() != 0)) {\n int len = aList.getLength();\n for (int i = 0; i < len; i++) {\n Element elem = (Element) aList.item(i);\n String id = elem.getAttribute(attrs[j]);\n if (id != null && id.length() != 0) {\n if (SAMLUtils.debug.messageEnabled()) {\n SAMLUtils.debug.message(\"found \" + attrs[j] + \n \"=\" + id + \" elment=\" +\n XMLUtils.print(elem));\n }\n IdResolver.registerElementById(elem, id);\n }\n }\n }\n }\n \n Element nscontext = com.sun.org.apache.xml.internal.security.utils.\n XMLUtils.createDSctx (doc,\"ds\",Constants.SignatureSpecNS); \n NodeList sigElements = XPathAPI.selectNodeList (doc, \n \"//ds:Signature\", nscontext); \n \t if (SAMLUtilsCommon.debug.messageEnabled()) {\n \t\tSAMLUtilsCommon.debug.message(\"verifyXMLSignature: \" + \n \"sigElements size = \" + sigElements.getLength());\n \t }\n X509Certificate newcert= keystore.getX509Certificate (certAlias); \n PublicKey key = keystore.getPublicKey (certAlias); \n Element sigElement = null; \n //loop \n for(int i = 0; i < sigElements.getLength(); i++) { \n sigElement = (Element)sigElements.item(i);\n \t\tif (SAMLUtilsCommon.debug.messageEnabled ()) {\n \t\t SAMLUtilsCommon.debug.message(\"Sig(\" + i + \") = \" +\n \t\t\tXMLUtils.print(sigElement));\n \t\t}\n XMLSignature signature = new XMLSignature (sigElement, \"\");\n signature.addResourceResolver (\n new com.sun.identity.saml.xmlsig.OfflineResolver ());\n KeyInfo ki = signature.getKeyInfo ();\n \t\tPublicKey pk = this.getX509PublicKey(doc, ki);\n \t\tif (pk!=null) {\n \t\t // verify using public key\n \t\t if (signature.checkSignatureValue (pk)) {\n \t\t\tif (SAMLUtilsCommon.debug.messageEnabled ()) {\n \t\t\t SAMLUtilsCommon.debug.message (\n \"verifyXMLSignature:\" +\n \t\t\t\t\" Signature \" + i + \" verified\");\n \t\t\t}\n \t\t } else {\n if(SAMLUtilsCommon.debug.messageEnabled()) {\n SAMLUtilsCommon.debug.message(\n \"verifyXMLSignature:\" +\n \" Signature Verfication failed\");\n }\n \t\t\treturn false;\n \t\t }\n } else {\n if (certAlias == null || certAlias.equals (\"\")) {\n if(SAMLUtilsCommon.debug.messageEnabled()) {\n SAMLUtilsCommon.debug.message(\n \"verifyXMLSignature:\" +\n \"Certificate Alias is null\");\n }\n return false;\n }\n if (SAMLUtilsCommon.debug.messageEnabled ()) {\n SAMLUtilsCommon.debug.message (\n \"Could not find a KeyInfo, \" +\n \"try to use certAlias\");\n }\n if (newcert != null) {\n if (signature.checkSignatureValue (newcert)) {\n if (SAMLUtilsCommon.debug.messageEnabled ()) {\n SAMLUtilsCommon.debug.message (\n \"verifyXMLSignature:\" +\n \t\t\t \" Signature \" + i + \" verified\");\n }\n } else {\n return false;\n }\n } else { \n if (key != null) {\n if (signature.checkSignatureValue (key)) {\n if (SAMLUtilsCommon.debug.messageEnabled ()) {\n SAMLUtilsCommon.debug.message (\n \"verifyXMLSignature: Signature \" + i +\n \t\t\t\t \" verified\");\n }\n } else {\n return false;\n }\n } else {\n SAMLUtilsCommon.debug.error (\n \"Could not find public key\"\n \t\t\t\t+ \" based on certAlias to verify signature\");\n return false;\n }\n } \n }\n }\n return true; \n } catch (Exception ex) { \n \t SAMLUtilsCommon.debug.error(\"verifyXMLSignature Exception: \", ex);\n throw new XMLSignatureException (ex.getMessage ());\n } \n }", "public org.apache.calcite.avatica.proto.Common.SignatureOrBuilder getSignatureOrBuilder() {\n if (signatureBuilder_ != null) {\n return signatureBuilder_.getMessageOrBuilder();\n } else {\n return signature_ == null ?\n org.apache.calcite.avatica.proto.Common.Signature.getDefaultInstance() : signature_;\n }\n }", "String getSign();", "public static byte[] sign(String stringPrivateKey,String plaintext){\r\n\t\ttry {\r\n\t\t\tPKCS8EncodedKeySpec privateKeySpec = new PKCS8EncodedKeySpec(Base64.getDecoder().decode(stringPrivateKey));\r\n\t\t\tKeyFactory kf = KeyFactory.getInstance(\"EC\");\r\n\t\t\tPrivateKey privateKey= kf.generatePrivate(privateKeySpec);\r\n\t\t\tSignature sig = Signature.getInstance(\"SHA256withECDSA\");\r\n\t\t\tsig.initSign(privateKey);\r\n\t\t\tsig.update(plaintext.getBytes(\"UTF-8\"));\r\n\t\t\tbyte[] signature = sig.sign();\r\n\t\t\tSystem.out.println(\"Bytes:\"+signature.length);\r\n\t\t\treturn signature;\r\n\t\t} catch (InvalidKeyException | SignatureException | UnsupportedEncodingException | NoSuchAlgorithmException | InvalidKeySpecException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "public GpgSignature(@NonNull byte[] signature) {\n\t\tthis.signature = signature;\n\t}", "private byte[] RIPEMD160(byte[] tobeHashed){\r\n\tRIPEMD160Digest digester = new RIPEMD160Digest();\r\n\tbyte[] retValue=new byte[digester.getDigestSize()]; \r\n\tdigester.update(tobeHashed, 0, tobeHashed.length); \r\n\tdigester.doFinal(retValue, 0);\t \r\n\tbyte[] version = new byte[]{0x00};\r\n\treturn concateByteArray(version,retValue);\t\r\n}", "@Override\n\tprotected AbstractAlgorithm<ISDSRPacket> generateSignatureAlgorithm(HashMap<String, String> params) {\n\t\tparams.put(\"uid\", this.addr.getHostAddress());\n\t\tSystem.out.println(\"uid=\" + this.addr.getHostAddress());\n\t\t\n\t\treturn new IBSASalgorithm(params);\n\t}", "public byte[] getSigAlgParams()\n {\n if (c.getSignatureAlgorithm().getParameters() != null)\n {\n try\n {\n return c.getSignatureAlgorithm().getParameters().toASN1Primitive().getEncoded(ASN1Encoding.DER);\n }\n catch (IOException e)\n {\n return null;\n }\n }\n else\n {\n return null;\n }\n }" ]
[ "0.67579377", "0.6302856", "0.61846006", "0.61040425", "0.5989908", "0.5926714", "0.5926714", "0.58222705", "0.5815261", "0.57960165", "0.57541275", "0.57541275", "0.57541275", "0.5738415", "0.5696272", "0.5633874", "0.55615234", "0.55600035", "0.5558789", "0.55498856", "0.55320144", "0.5517198", "0.54390866", "0.5412653", "0.5390822", "0.5371148", "0.5344314", "0.53437585", "0.5342448", "0.5341393", "0.5296989", "0.52949", "0.5283486", "0.5283486", "0.5263798", "0.5261113", "0.5261113", "0.52434635", "0.52038693", "0.5190023", "0.5150198", "0.51431924", "0.51344335", "0.51294506", "0.512611", "0.51028204", "0.51011205", "0.5096809", "0.50956976", "0.5094254", "0.5094254", "0.50940114", "0.508144", "0.508144", "0.5076434", "0.50756073", "0.50297105", "0.50252384", "0.5019183", "0.5018659", "0.5018659", "0.50168425", "0.50099605", "0.5005569", "0.50049543", "0.49999493", "0.49944535", "0.4991928", "0.4985166", "0.4979545", "0.49779466", "0.49628884", "0.49482867", "0.49479997", "0.49342176", "0.4932473", "0.49271643", "0.49206647", "0.49203044", "0.49089754", "0.48942974", "0.48828867", "0.48822492", "0.4875087", "0.48537418", "0.48483574", "0.48379877", "0.48371947", "0.4833936", "0.48322845", "0.4830842", "0.48232436", "0.48232198", "0.4822836", "0.4815832", "0.48145682", "0.48135126", "0.48125133", "0.48095277", "0.480433" ]
0.5989124
5
Converts an ASN.1 DSA value to a XML Signature DSA Value. The JAVA JCE DSA Signature algorithm creates ASN.1 encoded (r,s) value pairs; the XML Signature requires the core BigInteger values.
public static byte[] convertDSAASN1toXMLDSIG(byte asn1Bytes[]) throws IOException { byte rLength = asn1Bytes[3]; int ii; for (ii = rLength; (ii > 0) && (asn1Bytes[(4 + rLength) - ii] == 0); ii--) ; byte sLength = asn1Bytes[5 + rLength]; int jj; for (jj = sLength; (jj > 0) && (asn1Bytes[(6 + rLength + sLength) - jj] == 0); jj--) ; if ((asn1Bytes[0] != 48) || (asn1Bytes[1] != asn1Bytes.length - 2) || (asn1Bytes[2] != 2) || (ii > 20) || (asn1Bytes[4 + rLength] != 2) || (jj > 20)) { throw new IOException("Invalid ASN.1 format of DSA signature"); } byte xmldsigBytes[] = new byte[40]; System.arraycopy(asn1Bytes, (4 + rLength) - ii, xmldsigBytes, 20 - ii, ii); System.arraycopy(asn1Bytes, (6 + rLength + sLength) - jj, xmldsigBytes, 40 - jj, jj); return xmldsigBytes; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static byte[] convertECDSAASN1toXMLDSIG(byte asn1Bytes[]) throws IOException {\n\n if (asn1Bytes.length < 8 || asn1Bytes[0] != 48) {\n throw new IOException(\"Invalid ASN.1 format of ECDSA signature\");\n }\n int offset;\n if (asn1Bytes[1] > 0) {\n offset = 2;\n } else if (asn1Bytes[1] == (byte) 0x81) {\n offset = 3;\n } else {\n throw new IOException(\"Invalid ASN.1 format of ECDSA signature\");\n }\n\n byte rLength = asn1Bytes[offset + 1];\n int i;\n\n for (i = rLength; (i > 0) && (asn1Bytes[(offset + 2 + rLength) - i] == 0); i--)\n ;\n\n byte sLength = asn1Bytes[offset + 2 + rLength + 1];\n int j;\n\n for (j = sLength; (j > 0) && (asn1Bytes[(offset + 2 + rLength + 2 + sLength) - j] == 0); j--)\n ;\n\n int rawLen = Math.max(i, j);\n\n if ((asn1Bytes[offset - 1] & 0xff) != asn1Bytes.length - offset || (asn1Bytes[offset - 1] & 0xff) != 2 + rLength + 2 + sLength || asn1Bytes[offset] != 2 || asn1Bytes[offset + 2 + rLength] != 2) {\n throw new IOException(\"Invalid ASN.1 format of ECDSA signature\");\n }\n byte xmldsigBytes[] = new byte[2 * rawLen];\n\n System.arraycopy(asn1Bytes, (offset + 2 + rLength) - i, xmldsigBytes, rawLen - i, i);\n System.arraycopy(asn1Bytes, (offset + 2 + rLength + 2 + sLength) - j, xmldsigBytes, 2 * rawLen - j, j);\n\n return xmldsigBytes;\n }", "public static byte[] convertToXmlDSig(final EncryptionAlgorithm algorithm, byte[] signatureValue) {\n\n try {\n\n if (algorithm == EncryptionAlgorithm.ECDSA) {\n\n return DSSSignatureUtils.convertECDSAASN1toXMLDSIG(signatureValue);\n } else if (algorithm == EncryptionAlgorithm.DSA) {\n\n return DSSSignatureUtils.convertDSAASN1toXMLDSIG(signatureValue);\n }\n return signatureValue;\n } catch (IOException e) {\n\n throw new RuntimeException(e);\n }\n }", "@DSSource({DSSourceKind.SENSITIVE_UNCATEGORIZED})\n @DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 13:00:53.099 -0500\", hash_original_method = \"66B1F67B2E4924691687068C01957881\", hash_generated_method = \"09FC42AAA2010F0F571B2693B7BFC711\")\n \npublic static ASN1BitString getInstance() {\n return ASN1;\n }", "BigInteger getDigitalSignature();", "public org.w3c.dom.Element signXML(org.w3c.dom.Document doc, \n java.lang.String certAlias, \n java.lang.String algorithm,\n java.lang.String transformAlag, \n java.util.List ids) \n throws XMLSignatureException {\n if (doc == null) { \n SAMLUtilsCommon.debug.error(\"signXML: doc is null.\"); \n throw new XMLSignatureException( \n SAMLUtilsCommon.bundle.getString(\"nullInput\")); \n } \n \n if (certAlias == null || certAlias.length() == 0) { \n SAMLUtilsCommon.debug.error(\"signXML: certAlias is null.\"); \n throw new XMLSignatureException( \n SAMLUtilsCommon.bundle.getString(\"nullInput\"));\n } \n \n org.w3c.dom.Element root = doc.getDocumentElement();\n \n XMLSignature signature = null;\n try {\n Constants.setSignatureSpecNSprefix(\"\"); \n PrivateKey privateKey = \n (PrivateKey) keystore.getPrivateKey(certAlias);\n if (privateKey == null) { \n SAMLUtilsCommon.debug.error(\"private key is null\"); \n throw new XMLSignatureException( \n SAMLUtilsCommon.bundle.getString(\"nullprivatekey\")); \n } \n \n if (algorithm == null || algorithm.length() == 0) { \n algorithm = getKeyAlgorithm(privateKey); \n } \n if (!isValidAlgorithm(algorithm)) { \n throw new XMLSignatureException( \n SAMLUtilsCommon.bundle.getString(\"invalidalgorithm\")); \n } \n signature = new XMLSignature(doc, \"\", algorithm, \n Canonicalizer.ALGO_ID_C14N_EXCL_OMIT_COMMENTS); \n \n \t root.appendChild(signature.getElement());\n \t int size = ids.size();\n \t for (int i = 0; i < size; ++i) {\n \t\tTransforms transforms = new Transforms(doc);\n \t\tif (transformAlag != null) {\n \t\t transforms.addTransform(transformAlag);\n }\n \t\ttransforms.addTransform(\n \t\t\t\tTransforms.TRANSFORM_C14N_EXCL_OMIT_COMMENTS);\n \t\tString id = (String) ids.get(i);\n \t\tif (SAMLUtilsCommon.debug.messageEnabled()) {\n \t\t SAMLUtilsCommon.debug.message(\"id = \" +id);\n \t\t}\n \t\tsignature.addDocument(\"#\"+id, transforms,\n \t\t\tConstants.ALGO_ID_DIGEST_SHA1);\n \t }\n \n \t X509Certificate cert =\n (X509Certificate) keystore.getX509Certificate(certAlias);\n signature.addKeyInfo(cert);\n signature.sign(privateKey); \n \n } catch (Exception e) { \n \t SAMLUtilsCommon.debug.error(\"signXML Exception: \", e);\n throw new XMLSignatureException(e.getMessage()); \n } \n \n return (signature.getElement()); \n }", "@DSSafe(DSCat.SAFE_OTHERS)\n @DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 13:00:53.096 -0500\", hash_original_method = \"AD601F3532730C1588B10C0B2F4700C0\", hash_generated_method = \"7CF3579665197E3D9616E88D35150E2D\")\n \npublic ASN1BitString() {\n super(TAG_BITSTRING);\n }", "public DERObject toASN1Object() {\n\t\treturn new DEROctetString(p.getEncoded());\n\t}", "public SignerInfo toASN1Structure()\n {\n return info;\n }", "@Override\n\tpublic Document signDocument(Document doc, PrivateKey privateKey, Certificate cert) throws XMLSecurityException {\n\t\tElement rootEl = doc.getDocumentElement();\n\t\tcom.sun.org.apache.xml.internal.security.Init.init();\n\t\tXMLSignature sig = new XMLSignature(doc, null, XMLSignature.ALGO_ID_SIGNATURE_RSA_SHA1);\n\n\t\tTransforms transform = new Transforms(doc);\n\n\t\ttransform.addTransform(Transforms.TRANSFORM_ENVELOPED_SIGNATURE);\n\n\t\ttransform.addTransform(Transforms.TRANSFORM_C14N11_WITH_COMMENTS);\n\n\t\tsig.addDocument(\"\", transform, MessageDigestAlgorithm.ALGO_ID_DIGEST_SHA1);\n\n\t\tsig.addKeyInfo(cert.getPublicKey());\n\t\tsig.addKeyInfo((X509Certificate) cert);\n\n\t\trootEl.appendChild(sig.getElement());\n\t\tsig.sign(privateKey);\n\t\treturn doc;\n\n\t}", "public org.w3c.dom.Element signXML(org.w3c.dom.Document doc, \n java.lang.String certAlias, \n java.lang.String algorithm)\n throws XMLSignatureException { \n if (doc == null) {\n \t SAMLUtilsCommon.debug.error(\"signXML: doc is null.\");\n \t throw new XMLSignatureException(\n \t\t SAMLUtilsCommon.bundle.getString(\"nullInput\"));\n \t} \n if (certAlias == null || certAlias.length() == 0) {\n \t SAMLUtilsCommon.debug.error(\"signXML: certAlias is null.\");\n \t throw new XMLSignatureException(\n \t\t SAMLUtilsCommon.bundle.getString(\"nullInput\"));\n \t} \n org.w3c.dom.Element root = null; \n XMLSignature sig = null; \n try {\n Constants.setSignatureSpecNSprefix(\"\"); \n if (keystore == null) { \n throw new XMLSignatureException(\n SAMLUtilsCommon.bundle.getString(\"nullkeystore\"));\n } \n PrivateKey privateKey = \n (PrivateKey) keystore.getPrivateKey(certAlias);\n \n if (privateKey == null) {\n SAMLUtilsCommon.debug.error(\"private key is null\");\n throw new XMLSignatureException(\n SAMLUtilsCommon.bundle.getString(\"nullprivatekey\"));\n } \n root = doc.getDocumentElement(); \n \n if (algorithm == null || algorithm.length() == 0) {\n algorithm = getKeyAlgorithm(privateKey); \n }\n if (!isValidAlgorithm(algorithm)) {\n throw new XMLSignatureException(\n SAMLUtilsCommon.bundle.getString(\"invalidalgorithm\"));\n }\n \n if (c14nMethod == null || c14nMethod.length() == 0) {\n \tsig = new XMLSignature(doc, \"\", algorithm); \n } else {\n if (!isValidCanonicalizationMethod(c14nMethod)) {\n throw new XMLSignatureException(\n SAMLUtilsCommon.bundle.\n getString(\"invalidCanonicalizationMethod\"));\n } \t\t \t\n \n sig = new XMLSignature(doc, \"\", algorithm, c14nMethod); \n } \n root.appendChild(sig.getElement());\n sig.getSignedInfo().addResourceResolver(\n new com.sun.identity.saml.xmlsig.OfflineResolver());\n \n // do transform \n Transforms transforms = new Transforms(doc);\n transforms.addTransform(Transforms.TRANSFORM_ENVELOPED_SIGNATURE);\n // If exclusive canonicalization is presented in the saml locale\n \t // file, we will add a transform for it. Otherwise, will not do\n \t // such transform due to performance reason. \n if (transformAlg != null && transformAlg.length() != 0) {\n \tif (!isValidTransformAlgorithm(transformAlg)) { \n \t throw new XMLSignatureException(\n \t \t\tSAMLUtilsCommon.bundle.getString(\n \t \t\t\"invalidTransformAlgorithm\"));\n \t}\n \ttransforms.addTransform(transformAlg);\n }\n \n sig.addDocument(\"\", transforms, Constants.ALGO_ID_DIGEST_SHA1);\n \n // add certificate \n X509Certificate cert =\n (X509Certificate) keystore.getX509Certificate(certAlias);\n \n sig.addKeyInfo(cert);\n sig.sign(privateKey);\n } catch (Exception e) {\n SAMLUtilsCommon.debug.error(\"signXML Exception: \", e);\n throw new XMLSignatureException(e.getMessage());\n }\n return (sig.getElement());\n }", "public org.w3c.dom.Element signXML(org.w3c.dom.Document doc, \n java.lang.String certAlias, \n java.lang.String algorithm, \n java.util.List ids) \n throws XMLSignatureException { \n \n return signXML(doc, certAlias, algorithm, null, ids); \n }", "String signITRByAssesse(String PAN,String xml, DigitalSignatureWrapper digitalSignatureWrapper) throws MissingPrivateKeyException,InvalidDigitalSignatureException,Exception;", "public void generateSignature(PrivateKey privateKey) {\n\t\tString data = StringUtil.getStringFromKey(sender) + StringUtil.getStringFromKey(reciepient)\n\t\t\t\t+ Float.toString(value);\n\t\tsignature = StringUtil.applyECDSASig(privateKey, data);\n\t}", "public byte[] sign() throws XMLSignatureException {\n/* 177 */ return this.signatureAlgorithm.engineSign();\n/* */ }", "public void generateSignature(PrivateKey privateKey) {\n\n String data = StringUtil.getStringFromKey(sender) + StringUtil.getStringFromKey(recipient) + Float.toString(value);\n signature = StringUtil.applyECDSASig(privateKey, data);\n }", "public static ECKey fromASN1(byte[] asn1privkey) {\n return extractKeyFromASN1(asn1privkey);\n }", "public java.lang.String signXML(java.lang.String xmlString, \n java.lang.String certAlias, \n java.lang.String algorithm, \n java.util.List ids) \n throws XMLSignatureException {\n if (xmlString == null || xmlString.length() == 0) { \n SAMLUtilsCommon.debug.error(\"signXML: xmlString is null.\");\n throw new XMLSignatureException( \n SAMLUtilsCommon.bundle.getString(\"nullInput\")); \n } \n if (certAlias == null || certAlias.length() == 0) { \n SAMLUtilsCommon.debug.error(\"signXML: certAlias is null.\"); \n throw new XMLSignatureException(\n SAMLUtilsCommon.bundle.getString(\"nullInput\"));\n } \n Element el = null; \n try { \n Document doc = XMLUtils.toDOMDocument(xmlString,\n SAMLUtilsCommon.debug);\n el = signXML(doc, certAlias, algorithm, ids); \n } catch (Exception e) { \n e.printStackTrace(); \n throw new XMLSignatureException(e.getMessage()); \n } \n return XMLUtils.print(el);\n }", "public void testExtensionsDSA() throws Exception\n\t{\n\t\t//TODO: test does not validate: either fix test or fix the function\n\t\tm_random.setSeed(158943225);\n\t\ttestExtensions(new DSATestKeyPairGenerator(m_random));\n\t}", "BlsPoint sign(BigInteger privateKey, byte[] data);", "public byte[] generateSignature()\n {\n if (!forSigning)\n {\n throw new IllegalStateException(\"PairingDigestSigner not initialised for signature generation.\");\n }\n\n byte[] hash = new byte[digest.getDigestSize()];\n digest.doFinal(hash, 0);\n\n Element[] sig = pairingSigner.generateSignature(hash);\n\n try {\n return pairingSigner.derEncode(sig);\n } catch (IOException e) {\n throw new IllegalStateException(\"unable to encode signature\");\n }\n }", "@DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 13:00:13.509 -0500\", hash_original_method = \"F3F9FDCE1484676B88E382A49EC8877F\", hash_generated_method = \"E98CBD85708A9D853A0E84BBC5FA6CF1\")\n \npublic static ASN1Object fromByteArray(byte[] data)\n throws IOException\n {\n ASN1InputStream aIn = new ASN1InputStream(data);\n\n try\n {\n return (ASN1Object)aIn.readObject();\n }\n catch (ClassCastException e)\n {\n throw new IOException(\"cannot recognise object in stream\"); \n }\n }", "public byte[] encode(java.math.BigInteger r1, java.math.BigInteger r2) throws java.io.IOException {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e9 in method: com.android.org.bouncycastle.jcajce.provider.asymmetric.ec.SignatureSpi.StdDSAEncoder.encode(java.math.BigInteger, java.math.BigInteger):byte[], dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.android.org.bouncycastle.jcajce.provider.asymmetric.ec.SignatureSpi.StdDSAEncoder.encode(java.math.BigInteger, java.math.BigInteger):byte[]\");\n }", "StdDSAEncoder(com.android.org.bouncycastle.jcajce.provider.asymmetric.ec.SignatureSpi.StdDSAEncoder r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 0073 in method: com.android.org.bouncycastle.jcajce.provider.asymmetric.ec.SignatureSpi.StdDSAEncoder.<init>(com.android.org.bouncycastle.jcajce.provider.asymmetric.ec.SignatureSpi$StdDSAEncoder):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.android.org.bouncycastle.jcajce.provider.asymmetric.ec.SignatureSpi.StdDSAEncoder.<init>(com.android.org.bouncycastle.jcajce.provider.asymmetric.ec.SignatureSpi$StdDSAEncoder):void\");\n }", "public void valSig (String fileName) {\n javax.xml.parsers.DocumentBuilderFactory dbf =\n javax.xml.parsers.DocumentBuilderFactory.newInstance();\n dbf.setNamespaceAware(true);\n javax.xml.parsers.DocumentBuilder db = null;\n\n System.out.println(\"\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\");\n\n try {\n db = dbf.newDocumentBuilder();\n } catch (ParserConfigurationException e) {\n e.printStackTrace();\n }\n try {\n Document doc =\n db.parse(new FileInputStream(fileName));\n\n XPathFactory xpf = XPathFactory.newInstance();\n XPath xpath = xpf.newXPath();\n xpath.setNamespaceContext(new DSNamespaceContext());\n String expression = \"//ds:Signature[1]\";\n Element sigElement =\n (Element) xpath.evaluate(expression, doc, XPathConstants.NODE);\n\n XMLSignature signature =\n new XMLSignature(sigElement, (new File(fileName)).toURI().toURL().toString());\n\n String expressionBody = \"//soapenv:Body\";\n Element bodyElement =\n (Element) xpath.evaluate(expressionBody, doc, XPathConstants.NODE);\n\n Attr id = bodyElement.getAttributeNode(\"Id\") ;\n IdResolver.registerElementById(bodyElement,id);\n //signature.addResourceResolver(new OfflineResolver());\n\n KeyInfo ki = signature.getKeyInfo();\n System.out.println(\"================================signature.getSignatureValue()================================\");\n\n String svStr = new String(signature.getSignatureValue());\n System.out.println(svStr);\n System.out.println(\"================================signature.getSignatureValue()================================\");\n\n if (ki != null) {\n if (ki.containsX509Data()) {\n System.out.println(\"Could find a X509Data element in the KeyInfo\");\n }\n X509Certificate cert = signature.getKeyInfo().getX509Certificate();\n if (cert != null) {\n System.out.println(\"The XML signature in file \"\n // + f.toURI().toURL().toString() + \" is \"\n + (signature.checkSignatureValue(cert)\n ? \"valid (good)\" : \"invalid !!!!! (bad)\"));\n } else {\n System.out.println(\"Did not find a Certificate\");\n PublicKey pk = signature.getKeyInfo().getPublicKey();\n if (pk != null) {\n System.out.println(\"The XML signature in file \"\n // + f.toURI().toURL().toString() + \" is \"\n + (signature.checkSignatureValue(pk)\n ? \"valid (good)\" : \"invalid !!!!! (bad)\"));\n } else {\n System.out.println(\n \"Did not find a public key, so I can't check the signature\");\n }\n }\n } else {\n System.out.println(\"Did not find a KeyInfo\");\n }\n\n\n\n\n\n } catch (SAXException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n } catch (XPathExpressionException e) {\n e.printStackTrace();\n } catch (XMLSignatureException e) {\n e.printStackTrace();\n } catch (XMLSecurityException e) {\n e.printStackTrace();\n }\n\n }", "@Override\n\tprotected AbstractAlgorithm<ISDSRPacket> generateSignatureAlgorithm(HashMap<String, String> params) {\n\t\tparams.put(\"uid\", this.addr.getHostAddress());\n\t\tSystem.out.println(\"uid=\" + this.addr.getHostAddress());\n\t\t\n\t\treturn new IBSASalgorithm(params);\n\t}", "public static byte[] SignWithPrivateKey(byte[] buf,PrivateKey pkey) throws Exception{\r\n\t\tSecureRandom secureRandom = new SecureRandom();\r\n\t\tSignature signature = Signature.getInstance(\"SHA1WithECDSA\");\r\n\t\tsignature.initSign(pkey,secureRandom);\r\n\t\tsignature.update(buf);\r\n\t\tbyte[] digitalSignature = signature.sign();\r\n\t\treturn digitalSignature;\r\n\t\t\r\n\t}", "org.apache.xmlbeans.XmlBase64Binary xgetSignatureImage();", "private void generatePkcs1Sha1Signature(APDU apdu, byte[] buffer) \r\n \t //@ requires current_applet(this) &*& [1/2]valid() &*& APDU(apdu, buffer) &*& array_slice(buffer, 0, buffer.length, _);\r\n \t //@ ensures current_applet(this) &*& [1/2]valid() &*& APDU(apdu, buffer) &*& array_slice(buffer, 0, buffer.length, _);\r\n\t{\r\n\t\t// receive the data that needs to be signed\r\n\t\tshort byteRead = apdu.setIncomingAndReceive();\r\n\t\t// check Lc\r\n\t\t\r\n\t\t\r\n\t\tshort lc = (short) (buffer[ISO7816.OFFSET_LC] & 0x00FF);\r\n\t\tif ((lc != 20) || (byteRead != 20))\r\n\t\t\tISOException.throwIt(ISO7816.SW_WRONG_LENGTH);\r\n\t\t\r\n\t\t\r\n\t\t////@ open [1/2]valid(); // auto\r\n\t\t// use the correct key\r\n\t\tif (getSignatureType() == NON_REPUDIATION) {\r\n\t\t\t////cipher.init(nonRepPrivateKey, Cipher.MODE_ENCRYPT); // stond al in comments\r\n\t\t\tcipher.init((RSAPrivateCrtKey)nonRepKeyPair.getPrivate(), Cipher.MODE_ENCRYPT);\r\n\t\t}\r\n\t\t\r\n\t\tif (getSignatureType() == AUTHENTICATION) {\r\n\t\t\tcipher.init((RSAPrivateCrtKey)authKeyPair.getPrivate(), Cipher.MODE_ENCRYPT);\r\n\t\t}\r\n\t\t\r\n\t\t////@ close [1/2]valid(); // auto\r\n\t\tJCSystem.beginTransaction();\r\n\t\t////@ open valid(); // auto\r\n\t\t\r\n\t\t//@ transient_byte_arrays_mem(messageBuffer);\r\n\t\t//@ assert transient_byte_arrays(?as);\r\n\t\t//@ foreachp_remove(messageBuffer, as);\r\n\t\t////@ open transient_byte_array(messageBuffer); // auto\r\n\r\n\t\t// prepare the message buffer to the PKCS#1 (v1.5) structure\r\n\t\tpreparePkcs1ClearText(messageBuffer, ALG_SHA1_PKCS1, lc);\r\n\t\t// copy the SHA1 hash from the APDU to the message buffer\r\n\t\tUtil.arrayCopy(buffer, (short) (ISO7816.OFFSET_CDATA), messageBuffer, (short) (128 - lc), lc);\r\n\r\n\t\t//@ close transient_byte_array(messageBuffer);\r\n\t\t//@ foreachp_unremove(messageBuffer, as);\r\n\r\n\t\t////@ close valid(); // auto\r\n\t\tJCSystem.commitTransaction();\r\n\t\t////@ open [1/2]valid(); // auto\r\n\t\t// generate signature\r\n\t\t//@ transient_byte_arrays_mem(messageBuffer);\r\n\t\t//@ assert transient_byte_arrays(?as1);\r\n\t\t//@ foreachp_remove(messageBuffer, as1);\r\n\t\t////@ open transient_byte_array(messageBuffer); // auto\r\n\t\tcipher.doFinal(messageBuffer, (short) 0, (short) 128, buffer, (short) 0);\r\n\t\t//@ close transient_byte_array(messageBuffer); // todo\r\n\t\t//@ foreachp_unremove(messageBuffer, as1);\r\n\t\t////@ close [1/2]valid(); // auto\r\n\t}", "@SuppressWarnings(\"deprecation\")\n\tpublic static X509Certificate GenerateASelfSignedCerteficate(X500Principal dnName1,\n\t \t\tX500Principal dnName2, BigInteger serialNumber ,PublicKey mypublicKey,\n\t \t\tPrivateKey myprivateKey, KeyUsage Keyus ) \n\t throws CertificateEncodingException, InvalidKeyException, IllegalStateException, NoSuchProviderException, \n\t NoSuchAlgorithmException, SignatureException\n\t {\n\t\t\t X509V3CertificateGenerator certGen = new X509V3CertificateGenerator();\n\t\t\n //Add the serial number\n\t\t\t certGen.setSerialNumber(serialNumber);\n\t\t\t certGen.setSerialNumber(BigInteger.valueOf(System.currentTimeMillis()));\n\t\t\t \n\t\t\t //Issuer Id extension \n\t\t certGen.setIssuerDN(dnName1); \n\t\t \n\t\t //Subject DN extension\n\t\t\t certGen.setSubjectDN(dnName2);\n\t\t\t \n\t\t\t //Not before \n\t\t\t certGen.setNotBefore(new Date(System.currentTimeMillis() - 24 * 60 * 60 * 1000));\n\t\t\t \n\t\t\t // Not After\n\t\t\t certGen.setNotAfter(new Date(System.currentTimeMillis() + 2 * 365 * 24 * 60 * 60 * 1000));\n\t\t\t \n\t\t\t //Set the public Key\n\t\t\t certGen.setPublicKey(mypublicKey);\n\t\t\t \n\t\t\t //Sign the certificate\n\t\t\t certGen.setSignatureAlgorithm(\"SHA256WithRSAEncryption\");\n\t\t\t certGen.addExtension(X509Extensions.KeyUsage, true, Keyus);\n\t\t\t certGen.addExtension(X509Extensions.ExtendedKeyUsage, true, new ExtendedKeyUsage(KeyPurposeId.id_kp_serverAuth));\n\t \t\n\t\t\t\n\t\t\t \n\t\t\t // finally, sign the certificate with the private key of the same KeyPair\n\t\t\t Security.addProvider(new BouncyCastleProvider());\n\t\t\t \n\t\t\t X509Certificate certroot = certGen.generate(myprivateKey,\"BC\");\n\t\t\t \n\t\t\t \n\t \treturn certroot;\n\t }", "public org.w3c.dom.Element signXML(org.w3c.dom.Document doc,\n java.lang.String certAlias,\n java.lang.String algorithm,\n java.lang.String idAttrName,\n java.lang.String id,\n boolean includeCert,\n \t\t\t\t java.lang.String xpath)\n throws XMLSignatureException {\n if (doc == null) { \n SAMLUtilsCommon.debug.error(\"signXML: doc is null.\"); \n throw new XMLSignatureException( \n SAMLUtilsCommon.bundle.getString(\"nullInput\")); \n } \n \n if (certAlias == null || certAlias.length() == 0) { \n SAMLUtilsCommon.debug.error(\"signXML: certAlias is null.\"); \n throw new XMLSignatureException( \n SAMLUtilsCommon.bundle.getString(\"nullInput\"));\n } \n org.w3c.dom.Element root = null; \n XMLSignature sig = null; \n try { \n Constants.setSignatureSpecNSprefix(\"\"); \n PrivateKey privateKey = \n (PrivateKey) keystore.getPrivateKey(certAlias);\n if (privateKey == null) { \n SAMLUtilsCommon.debug.error(\"private key is null\"); \n throw new XMLSignatureException( \n SAMLUtilsCommon.bundle.getString(\"nullprivatekey\")); \n } \n root = (Element) XPathAPI.selectSingleNode( \n doc, \"//*[@\" + idAttrName + \"=\\\"\" + id + \"\\\"]\");\n \n if (root == null) { \n SAMLUtilsCommon.debug.error(\"signXML: could not\" \n + \" resolv id attribute\");\n throw new XMLSignatureException( \n SAMLUtilsCommon.bundle.getString(\"invalidIDAttribute\")); \n }\n \n // add to IdResolver for idAttrName is not \"id\" case. \n if (!id.equals(this.DEF_ID_ATTRIBUTE)) {\n IdResolver.registerElementById(root, id); \n }\n if (algorithm == null || algorithm.length() == 0) { \n algorithm = getKeyAlgorithm(privateKey); ; \n } \n if (!isValidAlgorithm(algorithm)) { \n throw new XMLSignatureException( \n SAMLUtilsCommon.bundle.getString(\"invalidalgorithm\")); \n } \n sig = new XMLSignature(doc, \"\", algorithm, \n Canonicalizer.ALGO_ID_C14N_EXCL_OMIT_COMMENTS); \n \t if(xpath == null) {\n root.appendChild(sig.getElement()); \n \t } else {\n \t\tNode beforeNode = XPathAPI.selectSingleNode(doc, xpath);\n \t\troot.insertBefore(sig.getElement(), beforeNode);\n \t }\n sig.getSignedInfo().addResourceResolver( \n new com.sun.identity.saml.xmlsig.OfflineResolver()); \n // register the id for the elment, so it could be found\n // by Reference object based on URI\n if (!idAttrName.equals(DEF_ID_ATTRIBUTE)) {\n IdResolver.registerElementById(root, id);\n }\n // do transform \n Transforms transforms = new Transforms(doc); \n transforms.addTransform(Transforms.TRANSFORM_ENVELOPED_SIGNATURE); \n transforms.addTransform(\n \t\t\t\tTransforms.TRANSFORM_C14N_EXCL_OMIT_COMMENTS);\n String ref = \"#\" + id; \n sig.addDocument(ref, transforms, Constants.ALGO_ID_DIGEST_SHA1);\n if (includeCert) {\n X509Certificate cert =\n (X509Certificate) keystore.getX509Certificate(certAlias);\n sig.addKeyInfo(cert);\n }\n sig.sign(privateKey); \n } catch (Exception e) { \n \t SAMLUtilsCommon.debug.error(\"signXML Exception: \", e);\n throw new XMLSignatureException(e.getMessage()); \n } \n return (sig.getElement()); \n }", "@Override\n\tpublic ASN1Primitive toASN1Primitive() {\n\t\tASN1Encodable[] asn1EncodableArr = new ASN1Encodable[3];\n\t\tasn1EncodableArr[0] = asn1EncodableArr[1] = asn1EncodableArr[2] = null;\n\t\tif(majorVersion != null) {\n\t\t\tasn1EncodableArr[0] = new ASN1Integer(majorVersion.longValue());\n\t\t}\n\t\tif(minorVersion != null) {\n\t\t\tasn1EncodableArr[1] = new ASN1Integer(minorVersion.longValue());\n\t\t}\n\t\tif(revision != null) {\n\t\t\tasn1EncodableArr[2] = new ASN1Integer(revision.longValue());\n\t\t}\n\t\tDLSequence dlSequence = new DLSequence(asn1EncodableArr);\n\t\tasn1EncodableArr = new ASN1Encodable[2];\n\t\tasn1EncodableArr[0] = dlSequence;\n\t\tif(platformClass != null) {\n\t\t\t// remove 0x from start of hex string of it is there\n\t\t\tString platClass = platformClass.replaceFirst(\"0[xX]\", \"\"); \n\t\t\tbyte[] sigbytes = new BigInteger(platClass, 16).toByteArray();\n\t\t\tint numsigbytes = sigbytes.length;\n\t\t\tbyte[] bytes;\n\t\t\tif(numsigbytes >= 4)\n\t\t\t{\n\t\t\t\tbytes = sigbytes;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tbytes = new byte[4];\n\t\t\t\tint sigb_idx = numsigbytes-1;\n\t\t\t\tfor(int i=3; i >=0; i--)\n\t\t\t\t{\n\t\t\t\t\tif(sigb_idx >= 0)\n\t\t\t\t\t{\n\t\t\t\t\t\tbytes[i] = sigbytes[sigb_idx--];\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tbytes[i] = 0;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\t\n\t\t\tasn1EncodableArr[1] = new DEROctetString(bytes);\n\t\t}\n\t\telse {\n\t\t\tasn1EncodableArr[1] = null;\n\t\t}\n\t\tDLSequence asn1_platformSpec = new DLSequence(asn1EncodableArr);\n\n\t\treturn asn1_platformSpec;\n\t}", "public java.lang.String signXML(java.lang.String xmlString, \n java.lang.String certAlias, \n java.lang.String algorithm, \n java.lang.String id) \n throws XMLSignatureException { \n if (xmlString == null || xmlString.length() == 0) { \n SAMLUtilsCommon.debug.error(\"signXML: xmlString is null.\");\n throw new XMLSignatureException( \n SAMLUtilsCommon.bundle.getString(\"nullInput\")); \n } \n if (certAlias == null || certAlias.length() == 0) { \n SAMLUtilsCommon.debug.error(\"signXML: certAlias is null.\"); \n throw new XMLSignatureException(\n SAMLUtilsCommon.bundle.getString(\"nullInput\"));\n } \n Element el = null; \n try { \n Document doc = XMLUtils.toDOMDocument(xmlString, \n SAMLUtilsCommon.debug); \n el = signXML(doc, certAlias, algorithm, id); \n } catch (Exception e) { \n \t SAMLUtilsCommon.debug.error(\"signXML Exception: \", e);\n throw new XMLSignatureException(e.getMessage()); \n } \n return XMLUtils.print(el);\n }", "public void testVerifyCertificateDSA() throws Exception\n\t{\n\t\tm_random.setSeed(692859929);\n\t\ttestVerifyCertificate(new DSATestKeyPairGenerator(m_random));\n\t}", "private static byte[] createDEROctet(int usage)\n\t{\n\t\treturn new KeyUsage(usage).getDEREncoded();\n\t}", "public static byte[] longToByteArray_ASN1_Value(long toBeConverted) {\n\t\t\t\n\t\t\t//create the temporary version of what will be returned\n\t\t\tbyte[] tempToBeReturned = {\n\t\t\t\t\t(byte)(toBeConverted >> 56),\n\t\t\t\t\t(byte)(toBeConverted >> 48),\n\t\t\t\t\t(byte)(toBeConverted >> 40),\n\t\t\t\t\t(byte)(toBeConverted >> 32),\n\t\t\t\t\t(byte)(toBeConverted >> 24),\n\t\t\t\t\t(byte)(toBeConverted >> 16),\n\t\t\t\t\t(byte)(toBeConverted >> 8),\n\t\t\t\t\t(byte)toBeConverted};\n\t\t\t\n\t\t\t\n\t\t\t//converting positive long values\n\t\t\tif(toBeConverted >= 0) {\n\t\t\t\t//0 to 127: return only one octet\n\t\t\t\tif(toBeConverted<=127) {\n\t\t\t\t\tbyte[] toBeReturned = new byte[1];\n\t\t\t\t\ttoBeReturned[0] = tempToBeReturned[7];\t\t\t\t\n\t\t\t\t\treturn toBeReturned;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//128 to 32768-1 return two octets\n\t\t\t\telse if(toBeConverted<=32767) {\n\t\t\t\t\tbyte[] toBeReturned = new byte[2];\n\t\t\t\t\ttoBeReturned[0] = tempToBeReturned[6];\t\t\t\t\n\t\t\t\t\ttoBeReturned[1] = tempToBeReturned[7];\n\t\t\t\t\treturn toBeReturned;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//32767 to 8388607 return three octets\n\t\t\t\telse if(toBeConverted<=8388607) {\n\t\t\t\t\tbyte[] toBeReturned = new byte[3];\n\t\t\t\t\ttoBeReturned[0] = tempToBeReturned[5];\t\t\t\t\n\t\t\t\t\ttoBeReturned[1] = tempToBeReturned[6];\n\t\t\t\t\ttoBeReturned[2] = tempToBeReturned[7];\n\t\t\t\t\treturn toBeReturned;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//8388608 to 2147483647 return four octets\n\t\t\t\telse if(toBeConverted<=2147483647) {\n\t\t\t\t\tbyte[] toBeReturned = new byte[4];\n\t\t\t\t\ttoBeReturned[0] = tempToBeReturned[4];\t\t\t\t\n\t\t\t\t\ttoBeReturned[1] = tempToBeReturned[5];\n\t\t\t\t\ttoBeReturned[2] = tempToBeReturned[6];\n\t\t\t\t\ttoBeReturned[3] = tempToBeReturned[7];\n\t\t\t\t\treturn toBeReturned;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t//the value 0 if x == y; a value less than 0 if x < y; and a value greater than 0 if x > y\n\t\t\t\t//2147483648 to 549755813887 return five octets\n\t\t\t\telse if((Long.compare(toBeConverted, 549755813888L))<0) {\n\t\t\t\t\tbyte[] toBeReturned = new byte[5];\n\t\t\t\t\ttoBeReturned[0] = tempToBeReturned[3];\t\t\t\t\n\t\t\t\t\ttoBeReturned[1] = tempToBeReturned[4];\n\t\t\t\t\ttoBeReturned[2] = tempToBeReturned[5];\n\t\t\t\t\ttoBeReturned[3] = tempToBeReturned[6];\n\t\t\t\t\ttoBeReturned[4] = tempToBeReturned[7];\n\t\t\t\t\treturn toBeReturned;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//549755813888 to 140737488355327 return six octets\n\t\t\t\telse if((Long.compare(toBeConverted, 140737488355328L))<0) {\n\t\t\t\t\tbyte[] toBeReturned = new byte[6];\n\t\t\t\t\ttoBeReturned[0] = tempToBeReturned[2];\t\t\t\t\n\t\t\t\t\ttoBeReturned[1] = tempToBeReturned[3];\n\t\t\t\t\ttoBeReturned[2] = tempToBeReturned[4];\n\t\t\t\t\ttoBeReturned[3] = tempToBeReturned[5];\n\t\t\t\t\ttoBeReturned[4] = tempToBeReturned[6];\n\t\t\t\t\ttoBeReturned[5] = tempToBeReturned[7];\n\t\t\t\t\treturn toBeReturned;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//140737488355328 to 36028797018963967 return seven octets\n\t\t\t\telse if((Long.compare(toBeConverted, 36028797018963967L))<0) {\n\t\t\t\t\tbyte[] toBeReturned = new byte[7];\n\t\t\t\t\ttoBeReturned[0] = tempToBeReturned[1];\t\t\t\t\n\t\t\t\t\ttoBeReturned[1] = tempToBeReturned[2];\n\t\t\t\t\ttoBeReturned[2] = tempToBeReturned[3];\n\t\t\t\t\ttoBeReturned[3] = tempToBeReturned[4];\n\t\t\t\t\ttoBeReturned[4] = tempToBeReturned[5];\n\t\t\t\t\ttoBeReturned[5] = tempToBeReturned[6];\n\t\t\t\t\ttoBeReturned[6] = tempToBeReturned[7];\n\t\t\t\t\treturn toBeReturned;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t//above: return eight octets\n\t\t\t\telse {\n\t\t\t\t\treturn tempToBeReturned;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t//converting negative long values\n\t\t\telse if(toBeConverted<0) {\n\t\t\t\t//-1 to -128 1 octet \n\t\t\t\tif(toBeConverted>=-128) {\n\t\t\t\t\tbyte[] toBeReturned = new byte[1];\n\t\t\t\t\ttoBeReturned[0] = tempToBeReturned[7];\t\t\t\t\n\t\t\t\t\treturn toBeReturned;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//-129 to -32768 2 octets\n\t\t\t\telse if(toBeConverted>=-32768) {\n\t\t\t\t\tbyte[] toBeReturned = new byte[2];\n\t\t\t\t\ttoBeReturned[0] = tempToBeReturned[6];\t\t\t\t\n\t\t\t\t\ttoBeReturned[1] = tempToBeReturned[7];\n\t\t\t\t\treturn toBeReturned;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//-32769 to -8388608 3 octets\n\t\t\t\telse if(toBeConverted>=-8388608) {\n\t\t\t\t\tbyte[] toBeReturned = new byte[3];\n\t\t\t\t\ttoBeReturned[0] = tempToBeReturned[5];\t\t\t\t\n\t\t\t\t\ttoBeReturned[1] = tempToBeReturned[6];\n\t\t\t\t\ttoBeReturned[2] = tempToBeReturned[7];\n\t\t\t\t\treturn toBeReturned;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t//-8388609 to -2147483648 4 octets\n\t\t\t\telse if(toBeConverted>=-2147483648) {\n\t\t\t\t\tbyte[] toBeReturned = new byte[4];\n\t\t\t\t\ttoBeReturned[0] = tempToBeReturned[4];\t\t\t\t\n\t\t\t\t\ttoBeReturned[1] = tempToBeReturned[5];\n\t\t\t\t\ttoBeReturned[2] = tempToBeReturned[6];\n\t\t\t\t\ttoBeReturned[3] = tempToBeReturned[7];\n\t\t\t\t\treturn toBeReturned;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t//the value 0 if x == y; a value less than 0 if x < y; and a value greater than 0 if x > y\n\t\t\t\t//-2147483649 to -549755813888 5 octets \n\t\t\t\telse if((Long.compare(toBeConverted, -549755813889L))>0) {\n\t\t\t\t\tbyte[] toBeReturned = new byte[5];\n\t\t\t\t\ttoBeReturned[0] = tempToBeReturned[3];\t\t\t\t\n\t\t\t\t\ttoBeReturned[1] = tempToBeReturned[4];\n\t\t\t\t\ttoBeReturned[2] = tempToBeReturned[5];\n\t\t\t\t\ttoBeReturned[3] = tempToBeReturned[6];\n\t\t\t\t\ttoBeReturned[4] = tempToBeReturned[7];\n\t\t\t\t\treturn toBeReturned;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//-549755813889 to -140737488355328 6 octets\n\t\t\t\telse if((Long.compare(toBeConverted, -140737488355329L))>0) {\n\t\t\t\t\tbyte[] toBeReturned = new byte[6];\n\t\t\t\t\ttoBeReturned[0] = tempToBeReturned[2];\t\t\t\t\n\t\t\t\t\ttoBeReturned[1] = tempToBeReturned[3];\n\t\t\t\t\ttoBeReturned[2] = tempToBeReturned[4];\n\t\t\t\t\ttoBeReturned[3] = tempToBeReturned[5];\n\t\t\t\t\ttoBeReturned[4] = tempToBeReturned[6];\n\t\t\t\t\ttoBeReturned[5] = tempToBeReturned[7];\n\t\t\t\t\treturn toBeReturned;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//-140737488355329 to 36028797018963968 7 octets\n\t\t\t\telse if((Long.compare(toBeConverted, -36028797018963969L))>0) {\n\t\t\t\t\tbyte[] toBeReturned = new byte[7];\n\t\t\t\t\ttoBeReturned[0] = tempToBeReturned[1];\t\t\t\t\n\t\t\t\t\ttoBeReturned[1] = tempToBeReturned[2];\n\t\t\t\t\ttoBeReturned[2] = tempToBeReturned[3];\n\t\t\t\t\ttoBeReturned[3] = tempToBeReturned[4];\n\t\t\t\t\ttoBeReturned[4] = tempToBeReturned[5];\n\t\t\t\t\ttoBeReturned[5] = tempToBeReturned[6];\n\t\t\t\t\ttoBeReturned[6] = tempToBeReturned[7];\n\t\t\t\t\treturn toBeReturned;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t//below that: 8 octets\n\t\t\t\telse {\n\t\t\t\t\treturn tempToBeReturned;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t//if method fails for any reason, it returns null\n\t\t\treturn null;\n\t\t}", "public HL7Group processGT1s_ToUFD() throws ICANException {\n\n HL7Message aHL7Message = new HL7Message(mHL7Message);\n HL7Group aGT1GroupOUT = new HL7Group();\n HL7Segment aGT1SegIN = new HL7Segment(k.NULL);\n HL7Segment aGT1SegOUT = new HL7Segment(k.NULL);\n HL7Segment aPV1Segment = new HL7Segment(k.NULL);\n\n HL7Group aGT1GroupIN = new HL7Group();\n HL7Group aZCDGroupIN = new HL7Group();\n HL7Segment aZCDSeg = new HL7Segment(\"ZCD\");\n\n aGT1GroupIN = processGroup(HL7_23.Repeat_GT1);\n aZCDGroupIN = processGroup(CSC_23.Repeat_ZCD);\n\n String aPV1FinClass = k.NULL;\n CodeLookUp aLookup = new CodeLookUp(\"DefaultGuarantors.table\", mEnvironment);\n\n int aCountGT1 = 0;\n int aCountGT1Process = 1;\n\n aPV1Segment.setSegment(aHL7Message.getSegment(HL7_23.PV1));\n aPV1FinClass = aPV1Segment.get(HL7_23.PV1_20_financial_class, HL7_23.FC_finacial_class);\n\n if (aPV1FinClass.equalsIgnoreCase(\"DVA\")) {\n aGT1SegOUT = new HL7Segment(\"GT1\");\n aGT1SegOUT.setField(Integer.toString(aCountGT1Process), HL7_23.GT1_1_set_ID);\n aGT1SegOUT.set(HL7_23.GT1_3_guarantor_name, aLookup.getValue(\"DVA1\"));\n aGT1SegOUT.set(HL7_23.GT1_5_guarantor_address, HL7_23.XAD_street_1, aLookup.getValue(\"DVA2\"));\n aGT1SegOUT.set(HL7_23.GT1_5_guarantor_address, HL7_23.XAD_street_2, aLookup.getValue(\"DVA3\"));\n aGT1SegOUT.set(HL7_23.GT1_5_guarantor_address, HL7_23.XAD_state_or_province, aLookup.getValue(\"DVA4\"));\n aGT1SegOUT.set(HL7_23.GT1_5_guarantor_address, HL7_23.XAD_city, aLookup.getValue(\"DVA5\"));\n aGT1SegOUT.set(HL7_23.GT1_5_guarantor_address, HL7_23.XAD_zip, aLookup.getValue(\"DVA6\"));\n aGT1SegOUT.set(HL7_23.GT1_6_guarantor_phone_home, HL7_23.XTN_telephone_number, aLookup.getValue(\"DVA7\"));\n aGT1SegOUT.set(HL7_23.GT1_10_guarantor_type, aLookup.getValue(\"DVA8\"));\n aGT1GroupOUT.append(aGT1SegOUT.getSegment());\n\n } else if (aPV1FinClass.equalsIgnoreCase(\"TAC\")) {\n aGT1SegOUT = new HL7Segment(\"GT1\");\n aGT1SegOUT.setField(Integer.toString(aCountGT1Process), HL7_23.GT1_1_set_ID);\n aGT1SegOUT.set(HL7_23.GT1_3_guarantor_name, aLookup.getValue(\"TAC1\"));\n aGT1SegOUT.set(HL7_23.GT1_5_guarantor_address, HL7_23.XAD_street_1, aLookup.getValue(\"TAC2\"));\n aGT1SegOUT.set(HL7_23.GT1_5_guarantor_address, HL7_23.XAD_street_2, aLookup.getValue(\"TAC3\"));\n aGT1SegOUT.set(HL7_23.GT1_5_guarantor_address, HL7_23.XAD_state_or_province, aLookup.getValue(\"TAC4\"));\n aGT1SegOUT.set(HL7_23.GT1_5_guarantor_address, HL7_23.XAD_city, aLookup.getValue(\"TAC5\"));\n aGT1SegOUT.set(HL7_23.GT1_5_guarantor_address, HL7_23.XAD_zip, aLookup.getValue(\"TAC6\"));\n aGT1SegOUT.set(HL7_23.GT1_6_guarantor_phone_home, HL7_23.XTN_telephone_number, aLookup.getValue(\"TAC7\"));\n aGT1SegOUT.set(HL7_23.GT1_10_guarantor_type, aLookup.getValue(\"TAC8\"));\n aGT1GroupOUT.append(aGT1SegOUT.getSegment());\n\n } else {\n aCountGT1 = aHL7Message.countSegments(HL7_23.GT1);\n if (aCountGT1 > 0) {\n for(int i = 1; i <= aCountGT1; i++) {\n aGT1SegIN.setSegment(aHL7Message.getSegment(HL7_23.GT1, i));\n String aRecordNumber = \"\";\n int j;\n int k;\n for (j=1; j <= aZCDGroupIN.countSegments(); j++) {\n\n aZCDSeg = new HL7Segment(aZCDGroupIN.getSegment(j));\n aRecordNumber = aZCDSeg.get(CSC_23.ZCD_1_Record_Number);\n for (k=1; k <= aGT1GroupIN.countSegments(); k++) {\n aGT1SegIN = new HL7Segment(aGT1GroupIN.getSegment(k));\n if (aRecordNumber.equalsIgnoreCase(aGT1SegIN.get(HL7_23.GT1_2_guarantor_number))) {\n aGT1SegOUT = new HL7Segment(\"GT1\");\n aGT1SegOUT.setField(Integer.toString(aCountGT1Process), HL7_23.GT1_1_set_ID);\n aGT1SegOUT.linkTo(aGT1SegIN);\n aGT1SegOUT.copy(HL7_23.GT1_1_set_ID);\n aGT1SegOUT.copy(HL7_23.GT1_2_guarantor_number, HL7_23.CX_ID_number);\n aGT1SegOUT.copy(HL7_23.GT1_2_guarantor_number, HL7_23.CX_check_digit);\n aGT1SegOUT.copy(HL7_23.GT1_2_guarantor_number, HL7_23.CX_check_digit_scheme);\n aGT1SegOUT.copy(HL7_23.GT1_2_guarantor_number, HL7_23.CX_assigning_authority);\n aGT1SegOUT.copy(HL7_23.GT1_3_guarantor_name);\n aGT1SegOUT.copy(HL7_23.GT1_5_guarantor_address);\n aGT1SegOUT.copy(HL7_23.GT1_6_guarantor_phone_home, HL7_23.XTN_telephone_number);\n aGT1SegOUT.copy(HL7_23.GT1_6_guarantor_phone_home, HL7_23.XTN_telecom_use);\n aGT1SegOUT.copy(HL7_23.GT1_7_guarantor_phone_business, HL7_23.XTN_telephone_number);\n aGT1SegOUT.copy(HL7_23.GT1_7_guarantor_phone_business, HL7_23.XTN_telecom_use);\n aGT1SegOUT.copy(HL7_23.GT1_10_guarantor_type);\n aGT1GroupOUT.append(aGT1SegOUT);\n break;\n }\n }\n }\n }\n }\n }\n return aGT1GroupOUT;\n }", "private void createValue()\n\t{\n\t\ttry\n\t\t{\n\t\t\tm_usage = ((DERBitString)new ASN1InputStream(\n\t\t\t\t\t new ByteArrayInputStream(getDEROctets())).readObject()).intValue();\n\t\t} catch (Exception a_e)\n\t\t{\n\t\t\tthrow new RuntimeException(\"Could not read key usage from byte array!\");\n\t\t}\n\t}", "public org.w3c.dom.Element signXML(org.w3c.dom.Document doc, \n java.lang.String certAlias, \n java.lang.String algorithm, \n java.lang.String id) \n throws XMLSignatureException {\n return signXML(doc, certAlias, algorithm, DEF_ID_ATTRIBUTE,\n \t\t\t\tid, false, null);\n }", "public static X509V3CertificateGenerator GenerateSelfSignedCerteficate(X500Principal dnName1,X500Principal dnName2, BigInteger serialNumber ,PublicKey mypublicKey, PrivateKey myprivateKey, KeyUsage Keyus ) throws CertificateEncodingException, InvalidKeyException, IllegalStateException, NoSuchProviderException, NoSuchAlgorithmException, SignatureException\n\t {\n\t\t\t X509V3CertificateGenerator certGen = new X509V3CertificateGenerator();\n\t\t \n\n\t\t\t //certGen.addExtension(X509Extensions.ExtendedKeyUsage, true, new DERSequence(new DERObjectIdentifier(\"2.23.43.6.1.2\")));\n\n\t\t\t certGen.setSerialNumber(serialNumber);\n\t\t\t certGen.setSerialNumber(BigInteger.valueOf(System.currentTimeMillis()));\n\t\t certGen.setIssuerDN(dnName1); // use the same\n\t\t\t certGen.setSubjectDN(dnName2);\n\t\t\t // yesterday\n\t\t\t certGen.setNotBefore(new Date(System.currentTimeMillis() - 24 * 60 * 60 * 1000));\n\t\t\t // in 2 years\n\t\t\t certGen.setNotAfter(new Date(System.currentTimeMillis() + 2 * 365 * 24 * 60 * 60 * 1000));\n\t\t\t certGen.setPublicKey(mypublicKey);\n\t\t\t certGen.setSignatureAlgorithm(\"SHA256WithRSAEncryption\");\n\t\t\t certGen.addExtension(X509Extensions.KeyUsage, true, Keyus);\n\t\t\t certGen.addExtension(X509Extensions.ExtendedKeyUsage, true, new ExtendedKeyUsage(KeyPurposeId.id_kp_serverAuth));\n\n\t\t\t \n\t \treturn certGen;\n\t \t\n\t }", "@DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2014-08-13 13:14:15.603 -0400\", hash_original_method = \"9CA51125BBD9928A127E75CF99CB1D14\", hash_generated_method = \"10D7CA0C3FC5B5A6A133BC7DAAF5C8C5\")\n \npublic PublicKey getPublicKey() {\n return subjectPublicKey;\n }", "public static byte[] makeDigitalSignature(byte[] bytes, PrivateKey privateKey) throws Exception {\n\n // get a signature object using the SHA-1 and RSA combo\n // and sign the plaintext with the private key\n Signature sig = Signature.getInstance(\"SHA1WithRSA\");\n sig.initSign(privateKey);\n sig.update(bytes);\n byte[] signature = sig.sign();\n\n return signature;\n }", "public static void registerDefaultAlgorithms() {\n/* 390 */ algorithmHash.put(\"http://www.w3.org/2000/09/xmldsig#dsa-sha1\", SignatureDSA.class);\n/* */ \n/* */ \n/* 393 */ algorithmHash.put(\"http://www.w3.org/2009/xmldsig11#dsa-sha256\", SignatureDSA.SHA256.class);\n/* */ \n/* */ \n/* 396 */ algorithmHash.put(\"http://www.w3.org/2000/09/xmldsig#rsa-sha1\", SignatureBaseRSA.SignatureRSASHA1.class);\n/* */ \n/* */ \n/* 399 */ algorithmHash.put(\"http://www.w3.org/2000/09/xmldsig#hmac-sha1\", IntegrityHmac.IntegrityHmacSHA1.class);\n/* */ \n/* */ \n/* 402 */ algorithmHash.put(\"http://www.w3.org/2001/04/xmldsig-more#rsa-md5\", SignatureBaseRSA.SignatureRSAMD5.class);\n/* */ \n/* */ \n/* */ \n/* 406 */ algorithmHash.put(\"http://www.w3.org/2001/04/xmldsig-more#rsa-ripemd160\", SignatureBaseRSA.SignatureRSARIPEMD160.class);\n/* */ \n/* */ \n/* */ \n/* 410 */ algorithmHash.put(\"http://www.w3.org/2001/04/xmldsig-more#rsa-sha256\", SignatureBaseRSA.SignatureRSASHA256.class);\n/* */ \n/* */ \n/* 413 */ algorithmHash.put(\"http://www.w3.org/2001/04/xmldsig-more#rsa-sha384\", SignatureBaseRSA.SignatureRSASHA384.class);\n/* */ \n/* */ \n/* 416 */ algorithmHash.put(\"http://www.w3.org/2001/04/xmldsig-more#rsa-sha512\", SignatureBaseRSA.SignatureRSASHA512.class);\n/* */ \n/* */ \n/* 419 */ algorithmHash.put(\"http://www.w3.org/2001/04/xmldsig-more#ecdsa-sha1\", SignatureECDSA.SignatureECDSASHA1.class);\n/* */ \n/* */ \n/* 422 */ algorithmHash.put(\"http://www.w3.org/2001/04/xmldsig-more#ecdsa-sha256\", SignatureECDSA.SignatureECDSASHA256.class);\n/* */ \n/* */ \n/* 425 */ algorithmHash.put(\"http://www.w3.org/2001/04/xmldsig-more#ecdsa-sha384\", SignatureECDSA.SignatureECDSASHA384.class);\n/* */ \n/* */ \n/* 428 */ algorithmHash.put(\"http://www.w3.org/2001/04/xmldsig-more#ecdsa-sha512\", SignatureECDSA.SignatureECDSASHA512.class);\n/* */ \n/* */ \n/* 431 */ algorithmHash.put(\"http://www.w3.org/2001/04/xmldsig-more#hmac-md5\", IntegrityHmac.IntegrityHmacMD5.class);\n/* */ \n/* */ \n/* 434 */ algorithmHash.put(\"http://www.w3.org/2001/04/xmldsig-more#hmac-ripemd160\", IntegrityHmac.IntegrityHmacRIPEMD160.class);\n/* */ \n/* */ \n/* 437 */ algorithmHash.put(\"http://www.w3.org/2001/04/xmldsig-more#hmac-sha256\", IntegrityHmac.IntegrityHmacSHA256.class);\n/* */ \n/* */ \n/* 440 */ algorithmHash.put(\"http://www.w3.org/2001/04/xmldsig-more#hmac-sha384\", IntegrityHmac.IntegrityHmacSHA384.class);\n/* */ \n/* */ \n/* 443 */ algorithmHash.put(\"http://www.w3.org/2001/04/xmldsig-more#hmac-sha512\", IntegrityHmac.IntegrityHmacSHA512.class);\n/* */ }", "public org.w3c.dom.Element signXML(org.w3c.dom.Document doc, \n java.lang.String certAlias) \n throws XMLSignatureException { \n return signXML(doc, certAlias, null); \n }", "public String toXMLTag() {\n\t\tfinal StringBuffer buffer = new StringBuffer();\n\t\ttoXMLTag(buffer,0);\n\t\treturn buffer.toString();\n\t}", "public Builder mergeSig(io.lightcone.data.types.EdDSASignature value) {\n if (sigBuilder_ == null) {\n if (sig_ != null) {\n sig_ =\n io.lightcone.data.types.EdDSASignature.newBuilder(sig_).mergeFrom(value).buildPartial();\n } else {\n sig_ = value;\n }\n onChanged();\n } else {\n sigBuilder_.mergeFrom(value);\n }\n\n return this;\n }", "private static String calculateStringToSignV2(\n Map<String, String> parameters, String serviceUrl)\n throws SignatureException, URISyntaxException {\n // Sort the parameters alphabetically by storing\n // in TreeMap structure\n Map<String, String> sorted = new TreeMap<String, String>();\n sorted.putAll(parameters);\n\n // Set endpoint value\n URI endpoint = new URI(serviceUrl.toLowerCase());\n\n // Create flattened (String) representation\n StringBuilder data = new StringBuilder();\n data.append(\"POST\\n\");\n data.append(endpoint.getHost());\n data.append(\"\\n/\");\n data.append(\"\\n\");\n\n Iterator<Map.Entry<String, String>> pairs =\n sorted.entrySet().iterator();\n while (pairs.hasNext()) {\n Map.Entry<String, String> pair = pairs.next();\n if (pair.getValue() != null) {\n data.append(pair.getKey() + \"=\" + pair.getValue());\n } else {\n data.append(pair.getKey() + \"=\");\n }\n\n // Delimit parameters with ampersand (&)\n if (pairs.hasNext()) {\n data.append(\"&\");\n }\n }\n\n return data.toString();\n }", "private byte[] signData(byte[] data)\n throws CmsCadesException, GeneralSecurityException, IOException {\n CadesSignature cmsSig = new CadesSignature(data, SignedData.EXPLICIT);\n // CadesBESParameters params = new CadesBESParameters();\n CadesTParameters params = new CadesTParameters(\n \"http://tsp.iaik.tugraz.at/tsp/TspRequest\", null, null);\n params.setDigestAlgorithm(\"SHA512\");\n cmsSig.addSignerInfo(privKey_, certChain_, params);\n return cmsSig.encodeSignature();\n }", "public com.android.org.bouncycastle.asn1.ASN1Primitive toASN1Primitive() {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e5 in method: com.android.org.bouncycastle.asn1.pkcs.RSAESOAEPparams.toASN1Primitive():com.android.org.bouncycastle.asn1.ASN1Primitive, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.android.org.bouncycastle.asn1.pkcs.RSAESOAEPparams.toASN1Primitive():com.android.org.bouncycastle.asn1.ASN1Primitive\");\n }", "public byte[] getSigAlgParams()\n {\n if (c.getSignatureAlgorithm().getParameters() != null)\n {\n try\n {\n return c.getSignatureAlgorithm().getParameters().toASN1Primitive().getEncoded(ASN1Encoding.DER);\n }\n catch (IOException e)\n {\n return null;\n }\n }\n else\n {\n return null;\n }\n }", "public Builder setSig(io.lightcone.data.types.EdDSASignature value) {\n if (sigBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n sig_ = value;\n onChanged();\n } else {\n sigBuilder_.setMessage(value);\n }\n\n return this;\n }", "public Element signWithWSSX509TokenProfile(Document doc,\n java.security.cert.Certificate cert, String algorithm, List ids,\n String wsfVersion) throws XMLSignatureException {\n \n if (doc == null) { \n SAMLUtilsCommon.debug.error(\"signXML: doc is null.\"); \n throw new XMLSignatureException( \n SAMLUtilsCommon.bundle.getString(\"nullInput\")); \n } \n \n \tif (SAMLUtilsCommon.debug.messageEnabled()) {\n \t SAMLUtilsCommon.debug.message(\"Soap Envlope: \" +\n \t\tXMLUtils.print(doc.getDocumentElement()));\n \t}\n \n this.wsfVersion = wsfVersion;\n String wsseNS = SAMLConstants.NS_WSSE;\n String wsuNS = SAMLConstants.NS_WSU;\n \n if ((wsfVersion != null) &&\n (wsfVersion.equals(SOAPBindingConstants.WSF_11_VERSION))) {\n wsseNS = WSSEConstants.NS_WSSE_WSF11;\n wsuNS = WSSEConstants.NS_WSU_WSF11;\n }\n \n Element root = (Element)doc.getDocumentElement().\n getElementsByTagNameNS(wsseNS, SAMLConstants.TAG_SECURITY).item(0);\n \n XMLSignature signature = null;\n try {\n Constants.setSignatureSpecNSprefix(\"ds\"); \n Element wsucontext = com.sun.org.apache.xml.internal.security.utils.\n XMLUtils.createDSctx(doc, \"wsu\", wsuNS);\n NodeList wsuNodes = (NodeList)XPathAPI.selectNodeList(doc,\n \"//*[@wsu:Id]\", wsucontext);\n if ((wsuNodes != null) && (wsuNodes.getLength() != 0)) {\n for(int i=0; i < wsuNodes.getLength(); i++) {\n Element elem = (Element) wsuNodes.item(i);\n String id = elem.getAttributeNS(wsuNS, \"Id\");\n if (id != null && id.length() != 0) {\n IdResolver.registerElementById(elem, id);\n }\n }\n }\n \n String certAlias = keystore.getCertificateAlias(cert);\n PrivateKey privateKey = \n (PrivateKey) keystore.getPrivateKey(certAlias);\n if (privateKey == null) { \n SAMLUtilsCommon.debug.error(\"private key is null\"); \n throw new XMLSignatureException( \n SAMLUtilsCommon.bundle.getString(\"nullprivatekey\")); \n } \n \n // TODO: code clean up\n // should find cert alias, add security token and call signXML\n // to avoid code duplication\n if (algorithm == null || algorithm.length() == 0) { \n algorithm = getKeyAlgorithm(privateKey); \n } \n if (!isValidAlgorithm(algorithm)) { \n throw new XMLSignatureException( \n SAMLUtilsCommon.bundle.getString(\"invalidalgorithm\")); \n } \n signature = new XMLSignature(doc, \"\", algorithm, \n Canonicalizer.ALGO_ID_C14N_EXCL_OMIT_COMMENTS); \n \n \t root.appendChild(signature.getElement());\n \t int size = ids.size();\n \t for (int i = 0; i < size; ++i) {\n \t\tTransforms transforms = new Transforms(doc);\n \t\ttransforms.addTransform(\n \t\t\t\tTransforms.TRANSFORM_C14N_EXCL_OMIT_COMMENTS);\n \t\tString id = (String) ids.get(i);\n \t\tif (SAMLUtilsCommon.debug.messageEnabled()) {\n \t\t SAMLUtilsCommon.debug.message(\"id = \" +id);\n \t\t}\n \t\tsignature.addDocument(\"#\"+id, transforms,\n \t\t\tConstants.ALGO_ID_DIGEST_SHA1);\n \t }\n \n \t KeyInfo keyInfo = signature.getKeyInfo();\n \t Element securityTokenRef = doc.createElementNS(wsseNS,\n SAMLConstants.TAG_SECURITYTOKENREFERENCE);\n \t keyInfo.addUnknownElement(securityTokenRef);\n \t securityTokenRef.setAttributeNS(SAMLConstants.NS_XMLNS,\n \t\t SAMLConstants.TAG_XMLNS, wsseNS);\n \t securityTokenRef.setAttributeNS(SAMLConstants.NS_XMLNS,\n \t\t SAMLConstants.TAG_XMLNS_SEC, SAMLConstants.NS_SEC);\n \t securityTokenRef.setAttributeNS(null, SAMLConstants.TAG_USAGE,\n \t\t SAMLConstants.TAG_SEC_MESSAGEAUTHENTICATION);\n \n Element bsf = (Element)root.getElementsByTagNameNS(wsseNS,\n SAMLConstants.BINARYSECURITYTOKEN).item(0);\n \n \t String certId = bsf.getAttributeNS(wsuNS, SAMLConstants.TAG_ID);\n \n \t Element reference =\tdoc.createElementNS(wsseNS,\n SAMLConstants.TAG_REFERENCE);\n \t securityTokenRef.appendChild(reference);\n \t reference.setAttributeNS(null, SAMLConstants.TAG_URI, \"#\"+certId);\n \n signature.sign(privateKey); \n \n } catch (Exception e) { \n SAMLUtilsCommon.debug.error(\"signWithWSSX509TokenProfile\" +\n \" Exception: \", e);\n throw new XMLSignatureException(e.getMessage()); \n } \n \n return (signature.getElement()); \n }", "private void generatePkcs1Md5Signature(APDU apdu, byte[] buffer) \r\n \t //@ requires current_applet(this) &*& [1/2]valid() &*& APDU(apdu, buffer) &*& array_slice(buffer, 0, buffer.length, _);\r\n \t //@ ensures current_applet(this) &*& [1/2]valid() &*& APDU(apdu, buffer) &*& array_slice(buffer, 0, buffer.length, _);\r\n\t{\r\n\t\t// receive the data that needs to be signed\r\n\t\tshort byteRead = apdu.setIncomingAndReceive();\r\n\t\t// check Lc\r\n\t\tshort lc = (short) (buffer[ISO7816.OFFSET_LC] & 0x00FF);\r\n\t\tif ((lc != 16) || (byteRead != 16))\r\n\t\t\tISOException.throwIt(ISO7816.SW_WRONG_LENGTH);\r\n\t\t// use the correct key\r\n\t\t////@ open [1/2]valid(); // auto\r\n\t\t\r\n\t\tif (getSignatureType() == NON_REPUDIATION) {\t\t\r\n\t\t\tcipher.init((RSAPrivateCrtKey)nonRepKeyPair.getPrivate(), Cipher.MODE_ENCRYPT);\r\n\t\t}\r\n\t\tif (getSignatureType() == AUTHENTICATION) {\r\n\t\t\tcipher.init((RSAPrivateCrtKey)authKeyPair.getPrivate(), Cipher.MODE_ENCRYPT);\r\n\t\t}\r\n\t\t////@ close [1/2]valid(); // auto\r\n\t\tJCSystem.beginTransaction();\r\n\t\t\r\n\t\t////@ open valid(); // todo\r\n\t\t\r\n\t\t//@ transient_byte_arrays_mem(messageBuffer);\r\n\t\t//@ assert transient_byte_arrays(?as);\r\n\t\t//@ foreachp_remove(messageBuffer, as);\r\n\t\t////@ open transient_byte_array(messageBuffer); // auto\r\n\t\t\r\n\t\t// prepare the message buffer to the PKCS#1 (v1.5) structure\r\n\t\t////@ open [1/2]valid();\r\n\t\tpreparePkcs1ClearText(messageBuffer, ALG_MD5_PKCS1, lc);\r\n\t\t// copy the MD5 hash from the APDU to the message buffer\r\n\t\tUtil.arrayCopy(buffer, (short) (ISO7816.OFFSET_CDATA), messageBuffer, (short) (128 - lc), lc);\r\n\r\n\t\t//@ close transient_byte_array(messageBuffer);\r\n\t\t//@ foreachp_unremove(messageBuffer, as);\r\n\r\n\t\t////@ close valid(); // auto\r\n\t\tJCSystem.commitTransaction();\r\n\t\t////@ open [1/2]valid(); // auto\r\n\t\t// generate signature\r\n\t\t//@ transient_byte_arrays_mem(messageBuffer);\r\n\t\t//@ assert transient_byte_arrays(?as1);\r\n\t\t//@ foreachp_remove(messageBuffer, as1);\r\n\t\t//@ open transient_byte_array(messageBuffer);\r\n\t\tcipher.doFinal(messageBuffer, (short) 0, (short) 128, buffer, (short) 0);\r\n\t\t//@ close transient_byte_array(messageBuffer);\r\n\t\t//@ foreachp_unremove(messageBuffer, as1);\r\n\r\n\t\t////@ close [1/2]valid(); // auto\r\n\r\n\r\n\t}", "public java.lang.String signXML(java.lang.String xmlString,\n java.lang.String certAlias, \n java.lang.String algorithm) \n throws XMLSignatureException {\n if (xmlString == null || xmlString.length() == 0) {\n \t SAMLUtilsCommon.debug.error(\"signXML: xmlString is null.\");\n \t throw new XMLSignatureException(\n \t\t SAMLUtilsCommon.bundle.getString(\"nullInput\"));\n \t} \n if (certAlias == null || certAlias.length() == 0) {\n \t SAMLUtilsCommon.debug.error(\"signXML: certAlias is null.\");\n \t throw new XMLSignatureException(\n \t\t SAMLUtilsCommon.bundle.getString(\"nullInput\"));\n \t} \n Element el = null;\n try { \n Document doc = XMLUtils.toDOMDocument(xmlString,\n SAMLUtilsCommon.debug);\n el = signXML(doc, certAlias, algorithm); \n } catch (Exception e) {\n SAMLUtilsCommon.debug.error(\"signXML Exception: \", e);\n throw new XMLSignatureException(e.getMessage());\n }\n \n return XMLUtils.print(el);\n }", "public java.math.BigInteger[] decode(byte[] r1) throws java.io.IOException {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e9 in method: com.android.org.bouncycastle.jcajce.provider.asymmetric.ec.SignatureSpi.StdDSAEncoder.decode(byte[]):java.math.BigInteger[], dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.android.org.bouncycastle.jcajce.provider.asymmetric.ec.SignatureSpi.StdDSAEncoder.decode(byte[]):java.math.BigInteger[]\");\n }", "public org.w3c.dom.Element signWithBinarySecurityToken(\n org.w3c.dom.Document doc,\n java.security.cert.Certificate cert,\n java.lang.String algorithm,\n java.util.List ids,\n java.lang.String referenceType)\n throws XMLSignatureException {\n return null;\n }", "void setDP1( byte[] buffer, short offset, short length) throws CryptoException;", "public X509KeyUsage(DERSequence a_extension)\n\t{\n\t\tsuper(a_extension);\n\t\tcreateValue();\n\t}", "public int getASN() {\n return this.asn;\n }", "public String toXMLString(){\n\t\treturn \t\n\n\t\t\t\"<SdSeminarID>\" + m_lSdSeminarID + \"</SdSeminarID>\" + \n\t\t\t\"<DozentID>\" + m_lDozentID + \"</DozentID>\" + \n\t\t\t\"<DozentPublikationID>\" + m_lDozentPublikationID + \"</DozentPublikationID>\" + \n\t\t\t\"<DPAutorName>\" + m_sDPAutorName + \"</DPAutorName>\" + \n\t\t\t\"<DPAutorVorname>\" + m_sDPAutorVorname + \"</DPAutorVorname>\" + \n\t\t\t\"<DPVerfassertyp>\" + m_sDPVerfassertyp + \"</DPVerfassertyp>\" + \n\t\t\t\"<DPTitel>\" + m_sDPTitel + \"</DPTitel>\" + \n\t\t\t\"<DPOrt>\" + m_sDPOrt + \"</DPOrt>\" + \n\t\t\t\"<DPVerlag>\" + m_sDPVerlag + \"</DPVerlag>\" + \n\t\t\t\"<DPJahr>\" + m_iDPJahr + \"</DPJahr>\" + \n\t\t\t\"<DPBuchtitel>\" + m_sDPBuchtitel + \"</DPBuchtitel>\" + \n\t\t\t\"<DPZeitschrift>\" + m_sDPZeitschrift + \"</DPZeitschrift>\" + \n\t\t\t\"<DPHeft>\" + m_sDPHeft + \"</DPHeft>\" + \n\t\t\t\"<DPBand>\" + m_sDPBand + \"</DPBand>\" + \n\t\t\t\"<DPSeitenangaben>\" + m_sDPSeitenangaben + \"</DPSeitenangaben>\" + \n\t\t\t\"<DPReihe>\" + m_sDPReihe + \"</DPReihe>\" + \n\t\t\t\"<DPReiheHgName>\" + m_sDPReiheHgName + \"</DPReiheHgName>\" + \n\t\t\t\"<DPReiheHgVorname>\" + m_sDPReiheHgVorname + \"</DPReiheHgVorname>\" + \n\t\t\t\"<DPHgName>\" + m_sDPHgName + \"</DPHgName>\" + \n\t\t\t\"<DPHgVorname>\" + m_sDPHgVorname + \"</DPHgVorname>\" + \n\t\t\t\"<DPAuflage>\" + m_sDPAuflage + \"</DPAuflage>\" + \n\t\t\t\"<DPArt>\" + m_sDPArt + \"</DPArt>\" + \n\t\t\t\"<DPIndex>\" + m_sDPIndex + \"</DPIndex>\" + \n\t\t\t\"<DPAlternativeAusgabe>\" + m_sDPAlternativeAusgabe + \"</DPAlternativeAusgabe>\" + \n\t\t\t\"<DPBemerkung>\" + m_sDPBemerkung + \"</DPBemerkung>\" + \n\t\t\t\"<DPURL>\" + m_sDPURL + \"</DPURL>\" + \n\t\t\t\"<DPISBN>\" + m_sDPISBN + \"</DPISBN>\" + \n\t\t\t\"<DPISSN>\" + m_sDPISSN + \"</DPISSN>\" + \n\t\t\t\"<DPWeiterePersonen>\" + m_sDPWeiterePersonen + \"</DPWeiterePersonen>\" ;\n\t}", "public static void SM2Sign_fixed(String digest_str, String dA_str, String k_str){\n\n BigInteger digest = new BigInteger(digest_str,16);\n BigInteger dA = new BigInteger(dA_str,16);\n BigInteger k = new BigInteger(k_str,16);\n outer:\n for (;true;) {\n\n //BigInteger k = new BigInteger(256, random);\n //BigInteger k =new BigInteger(\"6CB28D99385C175C94F94E934817663FC176D925DD72B727260DBAAE1FB2F96F\",16);\n ECPoint Q = basePoint.multiply(k).normalize();\n if (debug) {\n System.out.println(\"kG x = \" + Q.getAffineXCoord().toBigInteger().toString(16).toUpperCase());\n System.out.println(\"kG y = \" + Q.getAffineYCoord().toBigInteger().toString(16).toUpperCase());\n }\n BigInteger r = digest.add(Q.getAffineXCoord().toBigInteger()).mod(n);\n if (r.signum() == 0 | r.add(k).equals(n)) {\n\n continue outer;\n }\n\n BigInteger Inv;\n Inv = dA.add(one).modInverse(n);\n if (debug) {\n System.out.println(\"Inv = \" + Inv.toString(16).toUpperCase());\n }\n BigInteger s = Inv.multiply(k.subtract(r.multiply(dA))).mod(n);\n if (s.signum()==0) continue outer;\n else {\n if(debug) {\n System.out.println(\"r = \" + r.toString(16).toUpperCase());\n System.out.println(\"s = \" + s.toString(16).toUpperCase());\n }\n Sign_r = r;\n Sign_s = s;\n Sign_r_str = r.toString(16).toUpperCase();\n Sign_s_str = s.toString(16).toUpperCase();\n return;\n }\n }\n\n }", "public static byte[] applyECDSASig(PrivateKey privateKey, String input) {\n Signature dsa;\n byte[] output = new byte[0];\n try {\n dsa = Signature.getInstance(\"ECDSA\", \"SC\");\n dsa.initSign(privateKey);\n byte[] strByte = input.getBytes();\n dsa.update(strByte);\n byte[] realSig = dsa.sign();\n output = realSig;\n } catch (Exception e) {\n //throw new RuntimeException(e);\n Log.e(\"ERROR\",\"An error occured while applying ecdsa!\");\n }\n return output;\n }", "private Signature(int[] value) {\n\t\tthis.value = value;\n\t\tthis.hash = Arrays.hashCode(value);\n\t}", "public void setSerialNumber(java.math.BigInteger r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e9 in method: com.android.org.bouncycastle.x509.X509V1CertificateGenerator.setSerialNumber(java.math.BigInteger):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.android.org.bouncycastle.x509.X509V1CertificateGenerator.setSerialNumber(java.math.BigInteger):void\");\n }", "public static byte[] integerToByteArray_ASN1_Value(int toBeConverted) {\n\t\t\n\t\t//create the temporary version of what will be returned\n\t\tbyte[] tempToBeReturned = {\n\t (byte)(toBeConverted >> 24),\n\t (byte)(toBeConverted >> 16),\n\t (byte)(toBeConverted >> 8),\n\t (byte)toBeConverted};\n\t\t\n\t\t\n\t\t//converting positive integers\n\t\tif(toBeConverted >= 0) {\n\t\t\t//0 to 127: return only one octet\n\t\t\tif(toBeConverted<=127) {\n\t\t\t\tbyte[] toBeReturned = new byte[1];\n\t\t\t\ttoBeReturned[0] = tempToBeReturned[3];\t\t\t\t\n\t\t\t\treturn toBeReturned;\n\t\t\t}\n\t\t\t\n\t\t\t//128 to 32768-1 return two octets\n\t\t\telse if(toBeConverted<=32767) {\n\t\t\t\tbyte[] toBeReturned = new byte[2];\n\t\t\t\ttoBeReturned[0] = tempToBeReturned[2];\t\t\t\t\n\t\t\t\ttoBeReturned[1] = tempToBeReturned[3];\n\t\t\t\treturn toBeReturned;\n\t\t\t}\n\t\t\t\n\t\t\t//32767 to 8388607 return three octets\n\t\t\telse if(toBeConverted<=8388607) {\n\t\t\t\tbyte[] toBeReturned = new byte[3];\n\t\t\t\ttoBeReturned[0] = tempToBeReturned[1];\t\t\t\t\n\t\t\t\ttoBeReturned[1] = tempToBeReturned[2];\n\t\t\t\ttoBeReturned[2] = tempToBeReturned[3];\n\t\t\t\treturn toBeReturned;\n\t\t\t}\n\t\t\t\n\t\t\t//above that: return four octets\n\t\t\telse {\n\t\t\t\treturn tempToBeReturned;\n\t\t\t}\n\t\t}\n\t\t\n\t\t//converting negative integers\n\t\telse if(toBeConverted<0) {\n\t\t\t//-1 to -128: return one octet\n\t\t\tif(toBeConverted>=-128) {\n\t\t\t\tbyte[] toBeReturned = new byte[1];\n\t\t\t\ttoBeReturned[0] = tempToBeReturned[3];\t\t\t\t\n\t\t\t\treturn toBeReturned;\n\t\t\t}\n\t\t\t\n\t\t\t//-129 to -32768 return two octets\n\t\t\telse if(toBeConverted>=-32768) {\n\t\t\t\tbyte[] toBeReturned = new byte[2];\n\t\t\t\ttoBeReturned[0] = tempToBeReturned[2];\t\t\t\t\n\t\t\t\ttoBeReturned[1] = tempToBeReturned[3];\n\t\t\t\treturn toBeReturned;\n\t\t\t}\n\t\t\t\n\t\t\t//-32769 to -8388608 return three octets\n\t\t\telse if(toBeConverted>=-8388608) {\n\t\t\t\tbyte[] toBeReturned = new byte[3];\n\t\t\t\ttoBeReturned[0] = tempToBeReturned[1];\t\t\t\t\n\t\t\t\ttoBeReturned[1] = tempToBeReturned[2];\n\t\t\t\ttoBeReturned[2] = tempToBeReturned[3];\n\t\t\t\treturn toBeReturned;\n\t\t\t}\n\t\t\t\n\t\t\t//above that: return four octets\n\t\t\telse {\n\t\t\t\treturn tempToBeReturned;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t//if method fails for any reason, it returns null\n\t\treturn null;\n\t}", "public static XMLGregorianCalendar toXMLGregorianCalendar(Date date){\n GregorianCalendar gCalendar = new GregorianCalendar();\n gCalendar.setTime(date);\n XMLGregorianCalendar xmlCalendar = null;\n try {\n xmlCalendar = DatatypeFactory.newInstance().newXMLGregorianCalendar(gCalendar);\n } catch (DatatypeConfigurationException ex) {\n ex.printStackTrace();\n }\n return xmlCalendar;\n }", "SignatureSpi(com.android.org.bouncycastle.crypto.Digest r1, com.android.org.bouncycastle.crypto.DSA r2, com.android.org.bouncycastle.jcajce.provider.asymmetric.util.DSAEncoder r3) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 0073 in method: com.android.org.bouncycastle.jcajce.provider.asymmetric.ec.SignatureSpi.<init>(com.android.org.bouncycastle.crypto.Digest, com.android.org.bouncycastle.crypto.DSA, com.android.org.bouncycastle.jcajce.provider.asymmetric.util.DSAEncoder):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.android.org.bouncycastle.jcajce.provider.asymmetric.ec.SignatureSpi.<init>(com.android.org.bouncycastle.crypto.Digest, com.android.org.bouncycastle.crypto.DSA, com.android.org.bouncycastle.jcajce.provider.asymmetric.util.DSAEncoder):void\");\n }", "BigInteger decodeBigInteger();", "private static byte[] KDF(PGPDigestCalculator digCalc, ECPoint s, int keyLen, byte[] param)\n throws IOException\n {\n byte[] ZB = s.getAffineXCoord().getEncoded();\n\n OutputStream dOut = digCalc.getOutputStream();\n\n dOut.write(0x00);\n dOut.write(0x00);\n dOut.write(0x00);\n dOut.write(0x01);\n dOut.write(ZB);\n dOut.write(param);\n\n byte[] digest = digCalc.getDigest();\n\n byte[] key = new byte[keyLen];\n\n System.arraycopy(digest, 0, key, 0, key.length);\n\n return key;\n }", "public interface DSAPrivateKey extends DSAKey, java.security.PrivateKey {\n\n /**\n * Returns the value of the private key, <code>x</code>.\n * \n * @return the value of the private key, <code>x</code>. \n */\n public BigInteger getX();\n}", "private static String signFirstTime() throws AddressFormatException\n {\n ECKey key1 = ECKey.fromPrivate(new BigInteger(\"64102401986961187973900162212679081334328198710146539384491794427145725009072\"));\n\n\n // Use the redeem script we have saved somewhere to start building the transaction\n Script redeemScript = new Script(hexStringToByteArray(\"5221021ae8964b8529dc3e52955f2cabd967e08c52008dbcca8e054143b668f3998f4a210306be609ef37366ab0f3dd4096ac23a6ee4d561fc469fa60003f799b0121ad1072102199f3d89fa00e6f55dd6ecdd911457d7264415914957db124d53bf0064963f3853ae\"));\n\n // Start building the transaction by adding the unspent inputs we want to use\n // The data is taken from blockchain.info, and can be found here: https://blockchain.info/rawtx/ca1884b8f2e0ba88249a86ec5ddca04f937f12d4fac299af41a9b51643302077\n Transaction spendTx = new Transaction(params);\n ScriptBuilder scriptBuilder = new ScriptBuilder();\n scriptBuilder.data(new String(\"a9145204ad7c5fa5a2491cd91c332e28c87221194ca087\").getBytes()); // Script of this output\n TransactionInput input = spendTx.addInput(new Sha256Hash(\"fed695bf5e2c15286956a7bd3464c5beb97ef064e1f9406eba189ea844733e7c\"), 1, scriptBuilder.build());\n\n // Add outputs to the person receiving bitcoins\n Address receiverAddress = new Address(params, \"n2cWhs5sbWFCwzuuWWsVM9ubPwykGtX75T\");\n Coin charge = Coin.valueOf(1000000); // 0.1 mBTC\n Script outputScript = ScriptBuilder.createOutputScript(receiverAddress);\n spendTx.addOutput(charge, outputScript);\n\n /*8888888888888888888888888888888888888888888888888888888888888*/\n\n // Sign the first part of the transaction using private key #1\n Sha256Hash sighash = spendTx.hashForSignature(0, redeemScript, Transaction.SigHash.ALL, false);\n ECKey.ECDSASignature ecdsaSignature = key1.sign(sighash);\n TransactionSignature transactionSignarture = new TransactionSignature(ecdsaSignature, Transaction.SigHash.ALL, false);\n\n // Create p2sh multisig input script\n Script inputScript = ScriptBuilder.createP2SHMultiSigInputScript(Arrays.asList(transactionSignarture), redeemScript);\n\n // Add the script signature to the input\n input.setScriptSig(inputScript);\n System.out.println(byteArrayToHex(spendTx.bitcoinSerialize()));\n\n return byteArrayToHex(spendTx.bitcoinSerialize());\n }", "@Test\r\n\tpublic void testPositiveGenerateSignedGaussians_2() {\n\t\tint i = 1;\r\n\t\tfor (RandomOrgClient roc : rocs) {\r\n\t\t\ttry {\r\n\t\t\t\tHashMap<String, Object> o = roc.generateSignedGaussians(10, 3.41d, 2.1d, 4, userData);\r\n\t\t\t\t\r\n\t\t\t\tthis.signedValueTester(roc, i, o, double[].class, true);\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tcollector.addError(new Error(errorMessage(i, e, true)));\r\n\t\t\t}\r\n\t\t\ti++;\r\n\t\t}\r\n\t}", "PBBignum(BigInteger value)\n {\n\tsuper(value.toString());\n\tbigIntValue = value;\n }", "public final DerNode\n toDer() throws DerDecodingException\n {\n return DerNode.parse(keyDer_.buf());\n }", "public SignatureAlgorithm(Element paramElement, String paramString) throws XMLSecurityException {\n/* 110 */ this(paramElement, paramString, false);\n/* */ }", "public static int pack(int v1, int s1, int v2, int s2) {\r\n // Checks that start and size form a valid bit range and that a value\r\n // doesn't take up more bits than its given size\r\n checkArgument(\r\n verify(v1, s1) && verify(v2, s2) && s1 + s2 <= Integer.SIZE);\r\n return packGeneral(v1, s1, v2, s2);\r\n }", "public BEREncoding\nber_encode(int tag_type, int tag)\n throws ASN1Exception\n{\n // This method must not be called!\n\n // Method is not available because this is a basic CHOICE\n // which does not have an explicit tag on it. So it is not\n // permitted to allow something else to apply an implicit\n // tag on it, otherwise the tag identifying which CHOICE\n // it is will be overwritten and lost.\n\n throw new ASN1EncodingException(\"Zebulun DiagFormat_proximity: cannot implicitly tag\");\n}", "public static XMLGregorianCalendar toXmlGregorianCalendar(Date d) {\r\n try {\r\n GregorianCalendar cal = new GregorianCalendar();\r\n cal.setTime(d);\r\n return DatatypeFactory.newInstance().newXMLGregorianCalendar(cal);\r\n } catch (DatatypeConfigurationException ex) {\r\n Logger.defaultLogger.error(ex.getMessage(), ex);\r\n }\r\n return null;\r\n }", "public Asn1FormatException() {\n super();\n }", "private X509Certificate generateSelfSignedCertificateWithFakeSignature(PublicKey publicKey) throws IOException, CertificateParsingException {\n byte[] signature;\n AlgorithmIdentifier sigAlgId;\n V3TBSCertificateGenerator tbsGenerator = new V3TBSCertificateGenerator();\n int i = this.mKeymasterAlgorithm;\n if (i == 1) {\n signature = new byte[1];\n sigAlgId = new AlgorithmIdentifier(PKCSObjectIdentifiers.sha256WithRSAEncryption, DERNull.INSTANCE);\n } else if (i == 3) {\n sigAlgId = new AlgorithmIdentifier(X9ObjectIdentifiers.ecdsa_with_SHA256);\n ASN1EncodableVector v = new ASN1EncodableVector();\n v.add(new DERInteger(0));\n v.add(new DERInteger(0));\n signature = new DERSequence().getEncoded();\n } else {\n throw new ProviderException(\"Unsupported key algorithm: \" + this.mKeymasterAlgorithm);\n }\n byte[] signature2 = signature;\n ASN1InputStream publicKeyInfoIn = new ASN1InputStream(publicKey.getEncoded());\n tbsGenerator.setSubjectPublicKeyInfo(SubjectPublicKeyInfo.getInstance(publicKeyInfoIn.readObject()));\n publicKeyInfoIn.close();\n tbsGenerator.setSerialNumber(new ASN1Integer(this.mSpec.getCertificateSerialNumber()));\n X509Principal subject = new X509Principal(this.mSpec.getCertificateSubject().getEncoded());\n tbsGenerator.setSubject(subject);\n tbsGenerator.setIssuer(subject);\n tbsGenerator.setStartDate(new Time(this.mSpec.getCertificateNotBefore()));\n tbsGenerator.setEndDate(new Time(this.mSpec.getCertificateNotAfter()));\n tbsGenerator.setSignature(sigAlgId);\n TBSCertificate tbsCertificate = tbsGenerator.generateTBSCertificate();\n ASN1EncodableVector result = new ASN1EncodableVector();\n result.add(tbsCertificate);\n result.add(sigAlgId);\n result.add(new DERBitString(signature2));\n return new X509CertificateObject(Certificate.getInstance(new DERSequence(result)));\n throw result;\n }", "@Override\r\n\tpublic void doCreateValues(String docSequenceId) throws BusinessException {\r\n\r\n\t\tDocSequence sequence = null;\r\n\r\n\t\t// check if values already exist\r\n\r\n\t\ttry {\r\n\t\t\tsequence = this\r\n\t\t\t\t\t.getEntityManager()\r\n\t\t\t\t\t.createQuery(\r\n\t\t\t\t\t\t\t\"select e from DocSequence e \"\r\n\t\t\t\t\t\t\t\t\t+ \" where e.id = :docSeqId \"\r\n\t\t\t\t\t\t\t\t\t+ \" and not exists ( select 1 from DocSequenceValue v where v.docSequence.id = e.id )\",\r\n\t\t\t\t\t\t\tDocSequence.class)\r\n\t\t\t\t\t.setParameter(\"docSeqId\", docSequenceId).getSingleResult();\r\n\t\t} catch (NoResultException e) {\r\n\t\t\tthrow new BusinessException(\r\n\t\t\t\t\t\"Cannot create values for a document sequence which already has values. \");\r\n\t\t}\r\n\r\n\t\t// generate values\r\n\r\n\t\tString prefix = \"\";\r\n\t\tString suffix = \"\";\r\n\r\n\t\tif (sequence.getPrefix() != null) {\r\n\t\t\tprefix = sequence.getPrefix();\r\n\t\t}\r\n\t\tif (sequence.getSuffix() != null) {\r\n\t\t\tsuffix = sequence.getSuffix();\r\n\t\t}\r\n\r\n\t\tint from = sequence.getFirstNo();\r\n\t\tint to = sequence.getLastNo();\r\n\t\tint length = 0;\r\n\r\n\t\tif (sequence.getPaddingLength() != null) {\r\n\t\t\tlength = sequence.getPaddingLength();\r\n\t\t}\r\n\r\n\t\tList<DocSequenceValue> values = new ArrayList<DocSequenceValue>();\r\n\t\tfor (int i = from; i <= to; i++) {\r\n\t\t\tDocSequenceValue value = new DocSequenceValue();\r\n\t\t\tString _v = i + \"\";\r\n\t\t\tif (length > 0) {\r\n\t\t\t\t_v = StringUtils.leftPad(_v, length, '0');\r\n\t\t\t}\r\n\t\t\tvalue.setNumericValue(i);\r\n\t\t\tvalue.setValue(prefix + _v + suffix);\r\n\t\t\tvalue.setDocSequence(sequence);\r\n\t\t\tvalues.add(value);\r\n\t\t}\r\n\r\n\t\tthis.findEntityService(DocSequenceValue.class).insert(values);\r\n\r\n\t}", "public static byte[] applyECDSASig(PrivateKey privateKey, String input) {\r\n\t\tSignature dsa;\r\n\t\tbyte[] output = new byte[0];\r\n\t\ttry {\r\n\t\t\tdsa = Signature.getInstance(\"ECDSA\", \"BC\");\r\n\t\t\tdsa.initSign(privateKey);\r\n\t\t\tbyte[] strByte = input.getBytes();\r\n\t\t\tdsa.update(strByte);\r\n\t\t\tbyte[] realSig = dsa.sign();\r\n\t\t\toutput = realSig;\r\n\t\t} catch (Exception e) {\r\n\t\t\tthrow new RuntimeException(e);\r\n\t\t}\r\n\t\treturn output;\r\n\t}", "private String stringRepresentationOfSign(double value) {\n int sign = 0;\n if (value < 0) sign = -1;\n else if (value > 0) sign = 1;\n else if (value == 0.0) sign = 1;\n \n\tint t = signLength() * (sign + 1);\n\treturn signString.substring (t, t + signLength());\n }", "private XMLGregorianCalendar convertDateIntoXmlDate(Date date) {\n\n GregorianCalendar cal = new GregorianCalendar();\n cal.setTime(date);\n XMLGregorianCalendar xmlCalendar = null;\n try {\n xmlCalendar = DatatypeFactory.newInstance().newXMLGregorianCalendar(cal);\n } catch (DatatypeConfigurationException e) {\n e.printStackTrace();\n }\n return xmlCalendar;\n }", "public java.lang.String signXML(java.lang.String xmlString,\n java.lang.String certAlias) \n throws XMLSignatureException {\n return signXML(xmlString, certAlias, null); \n }", "static public NSArray possibleValues(NSDictionary smcdict) {\n Object rawpossVals = smcdict.objectForKey(\"possibleValues\");\n //String non = (String)smcdict.objectForKey(\"nonNumberOrDate\");\n\n if (rawpossVals == null) {\n return null;\n }\n \n NSArray possVals = null;\n \n if (rawpossVals instanceof String) {\n WOXMLDecoder decoder = WOXMLDecoder.decoder();\n String xmlString = new String(Base64.decodeBase64((String) rawpossVals));\n log.info(\"xmlString: {}\", xmlString);\n StringReader stringReader = new StringReader(xmlString);\n InputSource is = new InputSource(stringReader);\n // invoke setEncoding (on the input source) if the XML contains multibyte characters\n try {\n possVals = (NSArray)decoder.decodeRootObject(is);\n } catch(Exception e) {\n //OWDebug.println(1, \"e:\"+e);\n }\n //possVals = NSArchiver .unarchiveObjectWithData(rawpossVals);\n } else if(rawpossVals instanceof NSArray){\n possVals = (NSArray)rawpossVals;\n }\n return possVals;\n }", "public RSAESOAEPparams(com.android.org.bouncycastle.asn1.ASN1Sequence r1) {\n /*\n // Can't load method instructions: Load method exception: null in method: com.android.org.bouncycastle.asn1.pkcs.RSAESOAEPparams.<init>(com.android.org.bouncycastle.asn1.ASN1Sequence):void, dex: in method: com.android.org.bouncycastle.asn1.pkcs.RSAESOAEPparams.<init>(com.android.org.bouncycastle.asn1.ASN1Sequence):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.android.org.bouncycastle.asn1.pkcs.RSAESOAEPparams.<init>(com.android.org.bouncycastle.asn1.ASN1Sequence):void\");\n }", "@NoPresubmitTest(\n providers = {ProviderType.BOUNCY_CASTLE},\n bugs = {\"b/253038666\"})\n @Test\n public void testSignVerifyWithParameters() {\n int keySizeInBits = 2048;\n String sha = \"SHA-256\";\n String mgf = \"MGF1\";\n int saltLength = 20;\n KeyPair keypair;\n try {\n RSAKeyGenParameterSpec params =\n getPssAlgorithmParameters(keySizeInBits, sha, mgf, sha, saltLength);\n KeyPairGenerator keyGen = KeyPairGenerator.getInstance(\"RSASSA-PSS\");\n keyGen.initialize(params);\n keypair = keyGen.genKeyPair();\n } catch (NoSuchAlgorithmException | InvalidAlgorithmParameterException ex) {\n TestUtil.skipTest(\"Key generation for RSASSA-PSS is not supported.\");\n return;\n }\n byte[] msg = new byte[4];\n RSAPublicKey pub = (RSAPublicKey) keypair.getPublic();\n RSAPrivateKey priv = (RSAPrivateKey) keypair.getPrivate();\n Signature signer;\n Signature verifier;\n try {\n signer = Signature.getInstance(\"RSASSA-PSS\");\n verifier = Signature.getInstance(\"RSASSA-PSS\");\n } catch (NoSuchAlgorithmException ex) {\n fail(\"RSASSA-PSS key generation is supported, but signature generation is not\");\n return;\n }\n // Signs the message. This part of the code constructs the PSS parameters\n // explicitely.\n try {\n signer.initSign(priv);\n } catch (InvalidKeyException ex) {\n fail(\"Provider rejects its own private key\");\n return;\n }\n try {\n PSSParameterSpec params = getPssParameterSpec(sha, mgf, sha, saltLength, 1);\n signer.setParameter(params);\n } catch (NoSuchAlgorithmException | InvalidAlgorithmParameterException ex) {\n fail(\"Parameters accepted as key generation parameters are rejected as algorithm parameters\");\n return;\n }\n byte[] signature;\n try {\n signer.update(msg);\n signature = signer.sign();\n } catch (SignatureException ex) {\n fail(\"Could not sign with RSAPSS-PSS:\" + ex.toString());\n return;\n }\n\n // Verifies the signature. This part of the code tries to copy the PSS parameters\n // from the public key. Ideally, just calling verifier.initVerify(pub) would\n // be sufficient, since the public key contains the parameters. Unfortunately,\n // copying the PSS parameters is necessary for OpenJDK, since OpenJDK does\n // not copy the algorithm parameters.\n // Even worse is BouncyCastle, where it is unclear if there is a simple way\n // to extract the algorithm parameters from the key.\n try {\n verifier.initVerify(pub);\n } catch (InvalidKeyException ex) {\n fail(\"Provider rejects its own public key\");\n return;\n }\n \n try {\n verifier.setParameter(pub.getParams());\n verifier.update(msg);\n boolean verified = verifier.verify(signature);\n assertTrue(\"Signature did not verify\", verified);\n } catch (GeneralSecurityException ex) {\n throw new AssertionError(\"Provider could not verify its own signature\", ex);\n }\n }", "void exportPublicKey(PGPPublicKeyRing pgpPublicKey, OutputStream os) throws PGPException, IOException;", "private PublicKey getWSSTokenProfilePublicKey(Document doc) {\n \tPublicKey pubKey = null;\n \t\n \ttry {\n SAMLUtilsCommon.debug.message(\"getWSSTTokenProfilePublicKey:\"+\n \" entering\");\n \n String wsseNS = SAMLConstants.NS_WSSE;\n String wsuNS = SAMLConstants.NS_WSU;\n if ((wsfVersion != null) &&\n (wsfVersion.equals(SOAPBindingConstants.WSF_11_VERSION)) ) {\n wsseNS = WSSEConstants.NS_WSSE_WSF11;\n wsuNS = WSSEConstants.NS_WSU_WSF11;\n }\n Element securityElement = (Element) doc.getDocumentElement().\n getElementsByTagNameNS(wsseNS, SAMLConstants.TAG_SECURITY).\n item(0);\n \n\t Element nscontext = com.sun.org.apache.xml.internal.security.utils.\n XMLUtils.createDSctx(doc,\"ds\",Constants.SignatureSpecNS);\n\t Element sigElement = (Element) XPathAPI.selectSingleNode(\n \t\t\t\t\tsecurityElement, \"ds:Signature[1]\",\n \t\t\t\t\tnscontext);\n \n \t Element keyinfo = (Element) sigElement.getElementsByTagNameNS(\n Constants.SignatureSpecNS, SAMLConstants.TAG_KEYINFO).item(0);\n \t Element str = (Element) keyinfo.getElementsByTagNameNS(wsseNS,\n SAMLConstants.TAG_SECURITYTOKENREFERENCE).item(0);\n \t Element reference = (Element) keyinfo.getElementsByTagNameNS(\n wsseNS, SAMLConstants.TAG_REFERENCE).item(0);\n \n if (reference != null) {\n \t String id = reference.getAttribute(SAMLConstants.TAG_URI);\n \t id = id.substring(1);\n \t nscontext = com.sun.org.apache.xml.internal.security.utils.\n XMLUtils.createDSctx(doc, SAMLConstants.PREFIX_WSU, wsuNS);\n \t Node n = XPathAPI.selectSingleNode(\n \t\t doc, \"//*[@\"+ SAMLConstants.PREFIX_WSU + \":\" +\n SAMLConstants.TAG_ID +\"=\\\"\" + id + \"\\\"]\", nscontext);\n \n if (n != null) { // X509 Security Token profile\n SAMLUtilsCommon.debug.message(\"X509 Token\");\n \t String format = ((Element) n).getAttribute(\n \t\t\t\t\t\tSAMLConstants.TAG_VALUETYPE);\n \t NodeList children = n.getChildNodes();\n \t n = children.item(0);\n \t String certString = n.getNodeValue().trim();\n \n \t\t pubKey = getPublicKey(getCertificate(certString, format));\n \n \t } else { // SAML Token profile\n SAMLUtilsCommon.debug.message(\"SAML Token\");\n reference = (Element) XPathAPI.selectSingleNode(\n doc, \"//*[@AssertionID=\\\"\" + id + \"\\\"]\");\n if (SAMLUtilsCommon.debug.messageEnabled()) {\n SAMLUtilsCommon.debug.message(\"SAML Assertion = \" +\n XMLUtils.print(reference));\n }\n \t\t // The SAML Statements contain keyinfo, they should be\n \t\t // all the same. get the first keyinfo!\n \t\t reference = (Element) reference.getElementsByTagNameNS(\n \t\t\t\t\tConstants.SignatureSpecNS,\n \t\t\t\t\tSAMLConstants.TAG_KEYINFO).item(0);\n \t\t if (reference == null) { // no cert found!\n \t\t\tSAMLUtilsCommon.debug.message(\n \"getWSSTokenProfilePublicKey:\" +\n \t\t \" no KeyInfo found!\");\n \t\t\tthrow new Exception(\n \t\t\t SAMLUtilsCommon.bundle.getString(\"nullKeyInfo\"));\n \t\t }\n \t\t Element x509Data =\n \t\t\t\t(Element) reference.getElementsByTagNameNS(\n \t\t\tConstants.SignatureSpecNS,\n \t\t\t\t\tSAMLConstants.TAG_X509DATA).item(0);\n \t\t if (x509Data !=null) { // Keyinfo constains certificate\n \t\t\treference = (Element) x509Data.getChildNodes().item(0);\n \t\t\tString certString = x509Data.getChildNodes().item(0).\n \t\t\t\t\t\tgetChildNodes().item(0).\n \t\t\t\t\t\tgetNodeValue();\n \t\t\tif (SAMLUtilsCommon.debug.messageEnabled()) {\n \t\t\t SAMLUtilsCommon.debug.message(\"certString = \" +\n \t\t\t\t\t\t\t\tcertString);\n \t\t\t}\n \t\t\treturn getPublicKey(getCertificate(certString, null));\n \t\t } else { // it should contains RSA/DSA key\n \t\t\tpubKey = getPublicKeybyDSARSAkeyValue(doc, reference);\n \t\t }\n }\n } else {\n SAMLUtilsCommon.debug.error(\"getWSSTokenProfilePublicKey:\" +\n \" unknow Security Token Reference\");\n \t }\n } catch (Exception e) {\n \t SAMLUtilsCommon.debug.error(\n \t\t\t\"getWSSTokenProfilePublicKey Exception: \", e);\n \t}\n return pubKey;\n }", "public Asn1Object( int tag, int length, byte[] value ) {\n this.tag = tag;\n this.type = tag & 0x1F;\n this.length = length;\n this.value = value;\n }", "public abstract String getSigAlgOID();", "public SignatureAlgorithm(Element paramElement, String paramString, boolean paramBoolean) throws XMLSecurityException {\n/* 124 */ super(paramElement, paramString);\n/* 125 */ this.algorithmURI = getURI();\n/* */ \n/* 127 */ Attr attr = paramElement.getAttributeNodeNS(null, \"Id\");\n/* 128 */ if (attr != null) {\n/* 129 */ paramElement.setIdAttributeNode(attr, true);\n/* */ }\n/* */ \n/* 132 */ if (paramBoolean && (\"http://www.w3.org/2001/04/xmldsig-more#hmac-md5\".equals(this.algorithmURI) || \"http://www.w3.org/2001/04/xmldsig-more#rsa-md5\"\n/* 133 */ .equals(this.algorithmURI))) {\n/* 134 */ Object[] arrayOfObject = { this.algorithmURI };\n/* */ \n/* 136 */ throw new XMLSecurityException(\"signature.signatureAlgorithm\", arrayOfObject);\n/* */ } \n/* */ \n/* 139 */ this.signatureAlgorithm = getSignatureAlgorithmSpi(this.algorithmURI);\n/* 140 */ this.signatureAlgorithm.engineGetContextFromElement(this.constructionElement);\n/* */ }", "public static HashSet<Integer> buildASNSet(HashSet<AS> asSet) {\n HashSet<Integer> outSet = new HashSet<Integer>();\n for (AS tAS : asSet) {\n outSet.add(tAS.getASN());\n }\n return outSet;\n }", "@Override\n public byte[] generateSignature() throws CryptoException, DataLengthException {\n if (!forSigning) {\n throw new IllegalStateException(\"CL04 Signer not initialised for signature generation.\");\n }\n\n try {\n CL04SignSecretPairingKeySerParameter sk = (CL04SignSecretPairingKeySerParameter) pairingKeySerParameter;\n Pairing pairing = PairingFactory.getPairing(sk.getParameters());\n final Element alpha = pairing.getZr().newRandomElement().getImmutable();\n final Element a = sk.getG().powZn(alpha);\n final List<Element> A = sk.getZ().stream().map(a::powZn).collect(Collectors.toCollection(ArrayList::new));\n final Element b = a.powZn(sk.getY()).getImmutable();\n final List<Element> B = A.stream().map(Ai -> Ai.powZn(sk.getY())).collect(Collectors.toCollection(ArrayList::new));\n final Element xTimesY = alpha.mul(sk.getX().mul(sk.getY()));\n final Element c = a.powZn(sk.getX()).mul(commitment.powZn(xTimesY)).getImmutable();\n\n Element[] signElements = new Element[3 + 2 * messages.size()];\n signElements[0] = a;\n signElements[1] = b;\n signElements[2] = c;\n for (int i = 0; i < messages.size(); i++) {\n signElements[3 + i] = A.get(i);\n signElements[3 + messages.size() + i] = B.get(i);\n }\n return derEncode(signElements);\n } catch (IOException e) {\n e.printStackTrace();\n }\n return null;\n }", "@Test\r\n\tpublic void testPositiveGenerateSignedGaussians_4() {\n\t\tint i = 1;\r\n\t\tfor (RandomOrgClient roc : rocs) {\r\n\t\t\ttry {\r\n\t\t\t\tHashMap<String, Object> o = roc.generateSignedGaussians(10, 3.41d, 2.1d, 4, \r\n\t\t\t\t\t\tidentifier, null, userData, null);\r\n\t\t\t\t\r\n\t\t\t\tthis.signedValueTester(roc, i, o, double[].class, true);\r\n\t\t\t\t\r\n\t\t\t\tHashMap<String, Object> o2 = roc.generateSignedGaussians(10, 3.41d, 2.1d, 4, \r\n\t\t\t\t\t\tidentifier, null, userData, null);\r\n\t\t\t\tcollector.checkThat(o.get(\"data\"), equalTo(o2.get(\"data\")));\r\n\t\t\t\t\r\n\t\t\t\to = roc.generateSignedGaussians(10, 3.41d, 2.1d, 4, date, null, userData, null);\r\n\t\t\t\to2 = roc.generateSignedGaussians(10, 3.41d, 2.1d, 4, date, null, userData, null);\r\n\t\t\t\tcollector.checkThat(o.get(\"data\"), equalTo(o2.get(\"data\")));\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tcollector.addError(new Error(errorMessage(i, e, true)));\r\n\t\t\t}\r\n\t\t\ti++;\r\n\t\t}\r\n\t}", "public void generateKeyPair() {\n\t\ttry {\n\t\t\tKeyPairGenerator keyGen = KeyPairGenerator.getInstance(\"DSA\", \"SUN\");\n\t\t\tSecureRandom random = SecureRandom.getInstance(\"SHA1PRNG\", \"SUN\");\n\t\t\tkeyGen.initialize(1024, random);\n\t\t\tKeyPair pair = keyGen.generateKeyPair();\n\t\t\tprivateKey = pair.getPrivate();\n\t\t\tpublicKey = pair.getPublic();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "@Test\r\n\tpublic void testPositiveGenerateSignedGaussians_1() {\n\t\tint i = 1;\r\n\t\tfor (RandomOrgClient roc : rocs) {\r\n\t\t\ttry {\r\n\t\t\t\tHashMap<String, Object> o = roc.generateSignedGaussians(10, 3.41d, 2.1d, 4);\r\n\t\t\t\t\r\n\t\t\t\tthis.signedValueTester(roc, i, o, double[].class);\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tcollector.addError(new Error(errorMessage(i, e, true)));\r\n\t\t\t}\r\n\t\t\ti++;\r\n\t\t}\r\n\t}", "public SignatureAlgorithm(Document paramDocument, String paramString, int paramInt) throws XMLSecurityException {\n/* 92 */ super(paramDocument, paramString);\n/* 93 */ this.algorithmURI = paramString;\n/* */ \n/* 95 */ this.signatureAlgorithm = getSignatureAlgorithmSpi(paramString);\n/* 96 */ this.signatureAlgorithm.engineGetContextFromElement(this.constructionElement);\n/* */ \n/* 98 */ this.signatureAlgorithm.engineSetHMACOutputLength(paramInt);\n/* 99 */ ((IntegrityHmac)this.signatureAlgorithm).engineAddContextToElement(this.constructionElement);\n/* */ }", "public Element createGPSPosElement(Document serviceDoc)\r\n\t{\r\n\t\t// Add the <gpsPos> tag\r\n\t\tif (latitude != null && longitude != null)\r\n\t\t{\r\n\t\tElement gpsElement = serviceDoc.createElement(\"gpsPos\");\r\n\t\tgpsElement.setAttribute(\"latitude\", latitude.toString());\r\n\t\tgpsElement.setAttribute(\"longitude\", longitude.toString());\r\n\t\treturn gpsElement;\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "public static void main(String[] args) {\n KeyPairGenerator keygen = null;\n try {\n keygen = KeyPairGenerator.getInstance(\"RSA\");\n SecureRandom secrand = new SecureRandom();\n // secrand.setSeed(\"17\".getBytes());//初始化随机产生器\n keygen.initialize(2048, secrand);\n KeyPair keys = keygen.genKeyPair();\n PublicKey publicKey = keys.getPublic();\n PrivateKey privateKey = keys.getPrivate();\n String pubKey = Base64.encode(publicKey.getEncoded());\n String priKey = Base64.encode(privateKey.getEncoded());\n System.out.println(\"pubKey = \" + new String(pubKey));\n System.out.println(\"priKey = \" + new String(priKey));\n\n/*\n X509EncodedKeySpec keySpec = new X509EncodedKeySpec(pubkey.getEncoded());\n KeyFactory keyFactory = KeyFactory.getInstance(\"RSA\");\n PublicKey publicKey = keyFactory.generatePublic(keySpec);\n pubKey = Base64.encode(publicKey.getEncoded());\n System.out.println(\"pubKey = \" + new String(pubKey));\n*/\n\n/*\n PKCS8EncodedKeySpec keySpec = new PKCS8EncodedKeySpec(prikey.getEncoded());\n KeyFactory keyFactory = KeyFactory.getInstance(\"RSA\");\n PrivateKey privateKey = keyFactory.generatePrivate(keySpec);\n priKey = Base64.encode(privateKey.getEncoded());\n System.out.println(\"priKey = \" + new String(priKey));\n*/\n //(N,e)是公钥\n RSAPublicKey rsaPublicKey = (RSAPublicKey) publicKey;\n System.out.println(\"RSAPublicKey:\");\n System.out.println(\"Modulus.length=\" +\n rsaPublicKey.getModulus().bitLength());\n System.out.println(\"Modulus=\" + rsaPublicKey.getModulus().toString());//n\n System.out.println(\"PublicExponent.length=\" +\n rsaPublicKey.getPublicExponent().bitLength());\n System.out.println(\"PublicExponent=\" + rsaPublicKey.getPublicExponent().toString());//e\n\n\n //(N,d)是私钥\n RSAPrivateKey rsaPrivateKey = (RSAPrivateKey) privateKey;\n System.out.println(\"RSAPrivateKey:\");\n System.out.println(\"Modulus.length=\" +\n rsaPrivateKey.getModulus().bitLength());\n System.out.println(\"Modulus=\" + rsaPrivateKey.getModulus().toString());//n\n System.out.println(\"PrivateExponent.length=\" +\n rsaPrivateKey.getPrivateExponent().bitLength());\n System.out.println(\"PrivateExponent=\" + rsaPrivateKey.getPrivateExponent().toString());//d\n\n String encodeData = encode(\" public static String encode(String toEncode,String D, String N) {\\n\" +\n \" // BigInteger var2 = new BigInteger(\\\"17369712262290647732768133445861332449863405383733306695896586821166245382729380222118948668590047591903813382253186640467063376463309880263824085810383552963627855603429835060435976633955217307266714318344160886538360012623239010786668755679438900124601074924850696725233212494777766999123952653273738958617798460338184668049410136792403729341479373919634041235053823478242208651592611582439749292909499663165109004083820192135244694907138372731716013807836312280426304459316963033144149631900633817073029029413556757588486052978078614048837784810650766996280232645714319416096306667876390555673421669667406990886847\\\");\\n\" +\n \" // BigInteger var3 = new BigInteger(\\\"65537\\\");\\n\" +\n \" int MAX_ENCRYPT_BLOCK = 128;\\n\" +\n \" int offSet = 0;\\n\" +\n \" byte[] cache;\\n\" +\n \" int i = 0;\\n\" +\n \" ByteArrayOutputStream out = new ByteArrayOutputStream();\\n\" +\n \" try {\\n\" +\n \" RSAPrivateKeySpec rsaPrivateKeySpec = new java.security.spec.RSAPrivateKeySpec(new BigInteger(N),new BigInteger(D));\\n\" +\n \" KeyFactory keyFactory = java.security.KeyFactory.getInstance(\\\"RSA\\\");\\n\" +\n \" PrivateKey privateKey = keyFactory.generatePrivate(rsaPrivateKeySpec);\\n\" +\n \" Cipher cipher = javax.crypto.Cipher.getInstance(\\\"RSA\\\");\\n\" +\n \" cipher.init(Cipher.ENCRYPT_MODE,privateKey);\\n\" +\n \"\\n\" +\n \" byte[] data = toEncode.getBytes(StandardCharsets.UTF_8);\\n\" +\n \" int inputLen = data.length;\\n\" +\n \" // 对数据分段加密\\n\" +\n \" while (inputLen - offSet > 0) {\\n\" +\n \" if (inputLen - offSet > MAX_ENCRYPT_BLOCK) {\\n\" +\n \" cache = cipher.doFinal(data, offSet, MAX_ENCRYPT_BLOCK);\\n\" +\n \" } else {\\n\" +\n \" cache = cipher.doFinal(data, offSet, inputLen - offSet);\\n\" +\n \" }\\n\" +\n \" out.write(cache, 0, cache.length);\\n\" +\n \" i++;\\n\" +\n \" offSet = i * MAX_ENCRYPT_BLOCK;\\n\" +\n \" }\\n\" +\n \" byte[] datas = out.toByteArray();\\n\" +\n \" out.close();\\n\" +\n \"\\n\" +\n \" //byte[] datas = datas = cipher.doFinal(toEncode.getBytes());\\n\" +\n \" datas = org.apache.commons.codec.binary.Base64.encodeBase64(datas);\\n\" +\n \" return new String(datas,StandardCharsets.UTF_8);\\n\" +\n \" } catch (NoSuchAlgorithmException e) {\\n\" +\n \" e.printStackTrace();\\n\" +\n \" } catch (InvalidKeySpecException e) {\\n\" +\n \" e.printStackTrace();\\n\" +\n \" } catch (NoSuchPaddingException e) {\\n\" +\n \" e.printStackTrace();\\n\" +\n \" } catch (InvalidKeyException e) {\\n\" +\n \" e.printStackTrace();\\n\" +\n \" } catch (BadPaddingException e) {\\n\" +\n \" e.printStackTrace();\\n\" +\n \" } catch (IllegalBlockSizeException e) {\\n\" +\n \" e.printStackTrace();\\n\" +\n \" } catch (IOException e) {\\n\" +\n \" e.printStackTrace();\\n\" +\n \" }\\n\" +\n \" return null;\\n\" +\n \" }\",rsaPrivateKey.getPrivateExponent().toString(),rsaPrivateKey.getModulus().toString());\n String decodeData = decode(encodeData,rsaPublicKey.getPublicExponent().toString(),rsaPublicKey.getModulus().toString());\n\n System.out.println(encodeData);\n System.out.println(decodeData);\n\n } catch (NoSuchAlgorithmException e) {\n e.printStackTrace();\n }/* catch (InvalidKeySpecException e) {\n e.printStackTrace();\n }*/\n }" ]
[ "0.635876", "0.63514173", "0.5773178", "0.5619515", "0.5415589", "0.5327816", "0.50824857", "0.5060828", "0.5022955", "0.49923712", "0.4984381", "0.47521865", "0.47292075", "0.47039115", "0.46701622", "0.46666834", "0.46651322", "0.46323913", "0.4622235", "0.46202332", "0.46160552", "0.4599153", "0.45704386", "0.45644322", "0.45516092", "0.45114055", "0.45093173", "0.45001027", "0.44989562", "0.44973648", "0.44733307", "0.44731182", "0.4460484", "0.44205293", "0.44177446", "0.43894583", "0.43852082", "0.4368457", "0.43627667", "0.43586135", "0.43556392", "0.435444", "0.43540078", "0.43271065", "0.43232015", "0.43211645", "0.43038037", "0.42952845", "0.42775792", "0.42716038", "0.42709738", "0.42558756", "0.4251469", "0.4240758", "0.42401186", "0.42357412", "0.42294407", "0.4228972", "0.4228355", "0.4228097", "0.42040554", "0.42002335", "0.4187343", "0.41839635", "0.41726208", "0.41621026", "0.41566622", "0.41442266", "0.4142771", "0.41333824", "0.41231957", "0.4123181", "0.41185105", "0.41184637", "0.4112726", "0.41023153", "0.40951887", "0.409384", "0.40937167", "0.40910387", "0.4088318", "0.40860546", "0.40813887", "0.4077323", "0.40753374", "0.40710327", "0.4067175", "0.40665516", "0.40650153", "0.4060787", "0.40601212", "0.40514976", "0.40506205", "0.40367404", "0.40345842", "0.4032327", "0.4028691", "0.40276214", "0.40237936", "0.4023533" ]
0.70818424
0
Converts an ASN.1 ECDSA value to a XML Signature ECDSA Value. The JAVA JCE ECDSA Signature algorithm creates ASN.1 encoded (r,s) value pairs; the XML Signature requires the core BigInteger values.
public static byte[] convertECDSAASN1toXMLDSIG(byte asn1Bytes[]) throws IOException { if (asn1Bytes.length < 8 || asn1Bytes[0] != 48) { throw new IOException("Invalid ASN.1 format of ECDSA signature"); } int offset; if (asn1Bytes[1] > 0) { offset = 2; } else if (asn1Bytes[1] == (byte) 0x81) { offset = 3; } else { throw new IOException("Invalid ASN.1 format of ECDSA signature"); } byte rLength = asn1Bytes[offset + 1]; int i; for (i = rLength; (i > 0) && (asn1Bytes[(offset + 2 + rLength) - i] == 0); i--) ; byte sLength = asn1Bytes[offset + 2 + rLength + 1]; int j; for (j = sLength; (j > 0) && (asn1Bytes[(offset + 2 + rLength + 2 + sLength) - j] == 0); j--) ; int rawLen = Math.max(i, j); if ((asn1Bytes[offset - 1] & 0xff) != asn1Bytes.length - offset || (asn1Bytes[offset - 1] & 0xff) != 2 + rLength + 2 + sLength || asn1Bytes[offset] != 2 || asn1Bytes[offset + 2 + rLength] != 2) { throw new IOException("Invalid ASN.1 format of ECDSA signature"); } byte xmldsigBytes[] = new byte[2 * rawLen]; System.arraycopy(asn1Bytes, (offset + 2 + rLength) - i, xmldsigBytes, rawLen - i, i); System.arraycopy(asn1Bytes, (offset + 2 + rLength + 2 + sLength) - j, xmldsigBytes, 2 * rawLen - j, j); return xmldsigBytes; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static byte[] convertToXmlDSig(final EncryptionAlgorithm algorithm, byte[] signatureValue) {\n\n try {\n\n if (algorithm == EncryptionAlgorithm.ECDSA) {\n\n return DSSSignatureUtils.convertECDSAASN1toXMLDSIG(signatureValue);\n } else if (algorithm == EncryptionAlgorithm.DSA) {\n\n return DSSSignatureUtils.convertDSAASN1toXMLDSIG(signatureValue);\n }\n return signatureValue;\n } catch (IOException e) {\n\n throw new RuntimeException(e);\n }\n }", "public static byte[] convertDSAASN1toXMLDSIG(byte asn1Bytes[]) throws IOException {\n\n byte rLength = asn1Bytes[3];\n int ii;\n for (ii = rLength; (ii > 0) && (asn1Bytes[(4 + rLength) - ii] == 0); ii--)\n ;\n\n byte sLength = asn1Bytes[5 + rLength];\n int jj;\n for (jj = sLength; (jj > 0) && (asn1Bytes[(6 + rLength + sLength) - jj] == 0); jj--)\n ;\n\n if ((asn1Bytes[0] != 48) || (asn1Bytes[1] != asn1Bytes.length - 2) || (asn1Bytes[2] != 2) || (ii > 20) || (asn1Bytes[4 + rLength] != 2) || (jj > 20)) {\n\n throw new IOException(\"Invalid ASN.1 format of DSA signature\");\n }\n byte xmldsigBytes[] = new byte[40];\n\n System.arraycopy(asn1Bytes, (4 + rLength) - ii, xmldsigBytes, 20 - ii, ii);\n System.arraycopy(asn1Bytes, (6 + rLength + sLength) - jj, xmldsigBytes, 40 - jj, jj);\n\n return xmldsigBytes;\n }", "public org.w3c.dom.Element signXML(org.w3c.dom.Document doc, \n java.lang.String certAlias, \n java.lang.String algorithm,\n java.lang.String transformAlag, \n java.util.List ids) \n throws XMLSignatureException {\n if (doc == null) { \n SAMLUtilsCommon.debug.error(\"signXML: doc is null.\"); \n throw new XMLSignatureException( \n SAMLUtilsCommon.bundle.getString(\"nullInput\")); \n } \n \n if (certAlias == null || certAlias.length() == 0) { \n SAMLUtilsCommon.debug.error(\"signXML: certAlias is null.\"); \n throw new XMLSignatureException( \n SAMLUtilsCommon.bundle.getString(\"nullInput\"));\n } \n \n org.w3c.dom.Element root = doc.getDocumentElement();\n \n XMLSignature signature = null;\n try {\n Constants.setSignatureSpecNSprefix(\"\"); \n PrivateKey privateKey = \n (PrivateKey) keystore.getPrivateKey(certAlias);\n if (privateKey == null) { \n SAMLUtilsCommon.debug.error(\"private key is null\"); \n throw new XMLSignatureException( \n SAMLUtilsCommon.bundle.getString(\"nullprivatekey\")); \n } \n \n if (algorithm == null || algorithm.length() == 0) { \n algorithm = getKeyAlgorithm(privateKey); \n } \n if (!isValidAlgorithm(algorithm)) { \n throw new XMLSignatureException( \n SAMLUtilsCommon.bundle.getString(\"invalidalgorithm\")); \n } \n signature = new XMLSignature(doc, \"\", algorithm, \n Canonicalizer.ALGO_ID_C14N_EXCL_OMIT_COMMENTS); \n \n \t root.appendChild(signature.getElement());\n \t int size = ids.size();\n \t for (int i = 0; i < size; ++i) {\n \t\tTransforms transforms = new Transforms(doc);\n \t\tif (transformAlag != null) {\n \t\t transforms.addTransform(transformAlag);\n }\n \t\ttransforms.addTransform(\n \t\t\t\tTransforms.TRANSFORM_C14N_EXCL_OMIT_COMMENTS);\n \t\tString id = (String) ids.get(i);\n \t\tif (SAMLUtilsCommon.debug.messageEnabled()) {\n \t\t SAMLUtilsCommon.debug.message(\"id = \" +id);\n \t\t}\n \t\tsignature.addDocument(\"#\"+id, transforms,\n \t\t\tConstants.ALGO_ID_DIGEST_SHA1);\n \t }\n \n \t X509Certificate cert =\n (X509Certificate) keystore.getX509Certificate(certAlias);\n signature.addKeyInfo(cert);\n signature.sign(privateKey); \n \n } catch (Exception e) { \n \t SAMLUtilsCommon.debug.error(\"signXML Exception: \", e);\n throw new XMLSignatureException(e.getMessage()); \n } \n \n return (signature.getElement()); \n }", "public static ECKey fromASN1(byte[] asn1privkey) {\n return extractKeyFromASN1(asn1privkey);\n }", "private void generatePkcs1Sha1Signature(APDU apdu, byte[] buffer) \r\n \t //@ requires current_applet(this) &*& [1/2]valid() &*& APDU(apdu, buffer) &*& array_slice(buffer, 0, buffer.length, _);\r\n \t //@ ensures current_applet(this) &*& [1/2]valid() &*& APDU(apdu, buffer) &*& array_slice(buffer, 0, buffer.length, _);\r\n\t{\r\n\t\t// receive the data that needs to be signed\r\n\t\tshort byteRead = apdu.setIncomingAndReceive();\r\n\t\t// check Lc\r\n\t\t\r\n\t\t\r\n\t\tshort lc = (short) (buffer[ISO7816.OFFSET_LC] & 0x00FF);\r\n\t\tif ((lc != 20) || (byteRead != 20))\r\n\t\t\tISOException.throwIt(ISO7816.SW_WRONG_LENGTH);\r\n\t\t\r\n\t\t\r\n\t\t////@ open [1/2]valid(); // auto\r\n\t\t// use the correct key\r\n\t\tif (getSignatureType() == NON_REPUDIATION) {\r\n\t\t\t////cipher.init(nonRepPrivateKey, Cipher.MODE_ENCRYPT); // stond al in comments\r\n\t\t\tcipher.init((RSAPrivateCrtKey)nonRepKeyPair.getPrivate(), Cipher.MODE_ENCRYPT);\r\n\t\t}\r\n\t\t\r\n\t\tif (getSignatureType() == AUTHENTICATION) {\r\n\t\t\tcipher.init((RSAPrivateCrtKey)authKeyPair.getPrivate(), Cipher.MODE_ENCRYPT);\r\n\t\t}\r\n\t\t\r\n\t\t////@ close [1/2]valid(); // auto\r\n\t\tJCSystem.beginTransaction();\r\n\t\t////@ open valid(); // auto\r\n\t\t\r\n\t\t//@ transient_byte_arrays_mem(messageBuffer);\r\n\t\t//@ assert transient_byte_arrays(?as);\r\n\t\t//@ foreachp_remove(messageBuffer, as);\r\n\t\t////@ open transient_byte_array(messageBuffer); // auto\r\n\r\n\t\t// prepare the message buffer to the PKCS#1 (v1.5) structure\r\n\t\tpreparePkcs1ClearText(messageBuffer, ALG_SHA1_PKCS1, lc);\r\n\t\t// copy the SHA1 hash from the APDU to the message buffer\r\n\t\tUtil.arrayCopy(buffer, (short) (ISO7816.OFFSET_CDATA), messageBuffer, (short) (128 - lc), lc);\r\n\r\n\t\t//@ close transient_byte_array(messageBuffer);\r\n\t\t//@ foreachp_unremove(messageBuffer, as);\r\n\r\n\t\t////@ close valid(); // auto\r\n\t\tJCSystem.commitTransaction();\r\n\t\t////@ open [1/2]valid(); // auto\r\n\t\t// generate signature\r\n\t\t//@ transient_byte_arrays_mem(messageBuffer);\r\n\t\t//@ assert transient_byte_arrays(?as1);\r\n\t\t//@ foreachp_remove(messageBuffer, as1);\r\n\t\t////@ open transient_byte_array(messageBuffer); // auto\r\n\t\tcipher.doFinal(messageBuffer, (short) 0, (short) 128, buffer, (short) 0);\r\n\t\t//@ close transient_byte_array(messageBuffer); // todo\r\n\t\t//@ foreachp_unremove(messageBuffer, as1);\r\n\t\t////@ close [1/2]valid(); // auto\r\n\t}", "@DSSource({DSSourceKind.SENSITIVE_UNCATEGORIZED})\n @DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 13:00:53.099 -0500\", hash_original_method = \"66B1F67B2E4924691687068C01957881\", hash_generated_method = \"09FC42AAA2010F0F571B2693B7BFC711\")\n \npublic static ASN1BitString getInstance() {\n return ASN1;\n }", "public org.w3c.dom.Element signXML(org.w3c.dom.Document doc, \n java.lang.String certAlias, \n java.lang.String algorithm)\n throws XMLSignatureException { \n if (doc == null) {\n \t SAMLUtilsCommon.debug.error(\"signXML: doc is null.\");\n \t throw new XMLSignatureException(\n \t\t SAMLUtilsCommon.bundle.getString(\"nullInput\"));\n \t} \n if (certAlias == null || certAlias.length() == 0) {\n \t SAMLUtilsCommon.debug.error(\"signXML: certAlias is null.\");\n \t throw new XMLSignatureException(\n \t\t SAMLUtilsCommon.bundle.getString(\"nullInput\"));\n \t} \n org.w3c.dom.Element root = null; \n XMLSignature sig = null; \n try {\n Constants.setSignatureSpecNSprefix(\"\"); \n if (keystore == null) { \n throw new XMLSignatureException(\n SAMLUtilsCommon.bundle.getString(\"nullkeystore\"));\n } \n PrivateKey privateKey = \n (PrivateKey) keystore.getPrivateKey(certAlias);\n \n if (privateKey == null) {\n SAMLUtilsCommon.debug.error(\"private key is null\");\n throw new XMLSignatureException(\n SAMLUtilsCommon.bundle.getString(\"nullprivatekey\"));\n } \n root = doc.getDocumentElement(); \n \n if (algorithm == null || algorithm.length() == 0) {\n algorithm = getKeyAlgorithm(privateKey); \n }\n if (!isValidAlgorithm(algorithm)) {\n throw new XMLSignatureException(\n SAMLUtilsCommon.bundle.getString(\"invalidalgorithm\"));\n }\n \n if (c14nMethod == null || c14nMethod.length() == 0) {\n \tsig = new XMLSignature(doc, \"\", algorithm); \n } else {\n if (!isValidCanonicalizationMethod(c14nMethod)) {\n throw new XMLSignatureException(\n SAMLUtilsCommon.bundle.\n getString(\"invalidCanonicalizationMethod\"));\n } \t\t \t\n \n sig = new XMLSignature(doc, \"\", algorithm, c14nMethod); \n } \n root.appendChild(sig.getElement());\n sig.getSignedInfo().addResourceResolver(\n new com.sun.identity.saml.xmlsig.OfflineResolver());\n \n // do transform \n Transforms transforms = new Transforms(doc);\n transforms.addTransform(Transforms.TRANSFORM_ENVELOPED_SIGNATURE);\n // If exclusive canonicalization is presented in the saml locale\n \t // file, we will add a transform for it. Otherwise, will not do\n \t // such transform due to performance reason. \n if (transformAlg != null && transformAlg.length() != 0) {\n \tif (!isValidTransformAlgorithm(transformAlg)) { \n \t throw new XMLSignatureException(\n \t \t\tSAMLUtilsCommon.bundle.getString(\n \t \t\t\"invalidTransformAlgorithm\"));\n \t}\n \ttransforms.addTransform(transformAlg);\n }\n \n sig.addDocument(\"\", transforms, Constants.ALGO_ID_DIGEST_SHA1);\n \n // add certificate \n X509Certificate cert =\n (X509Certificate) keystore.getX509Certificate(certAlias);\n \n sig.addKeyInfo(cert);\n sig.sign(privateKey);\n } catch (Exception e) {\n SAMLUtilsCommon.debug.error(\"signXML Exception: \", e);\n throw new XMLSignatureException(e.getMessage());\n }\n return (sig.getElement());\n }", "@DSSafe(DSCat.SAFE_OTHERS)\n @DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 13:00:53.096 -0500\", hash_original_method = \"AD601F3532730C1588B10C0B2F4700C0\", hash_generated_method = \"7CF3579665197E3D9616E88D35150E2D\")\n \npublic ASN1BitString() {\n super(TAG_BITSTRING);\n }", "public DERObject toASN1Object() {\n\t\treturn new DEROctetString(p.getEncoded());\n\t}", "BigInteger getDigitalSignature();", "public void valSig (String fileName) {\n javax.xml.parsers.DocumentBuilderFactory dbf =\n javax.xml.parsers.DocumentBuilderFactory.newInstance();\n dbf.setNamespaceAware(true);\n javax.xml.parsers.DocumentBuilder db = null;\n\n System.out.println(\"\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\");\n\n try {\n db = dbf.newDocumentBuilder();\n } catch (ParserConfigurationException e) {\n e.printStackTrace();\n }\n try {\n Document doc =\n db.parse(new FileInputStream(fileName));\n\n XPathFactory xpf = XPathFactory.newInstance();\n XPath xpath = xpf.newXPath();\n xpath.setNamespaceContext(new DSNamespaceContext());\n String expression = \"//ds:Signature[1]\";\n Element sigElement =\n (Element) xpath.evaluate(expression, doc, XPathConstants.NODE);\n\n XMLSignature signature =\n new XMLSignature(sigElement, (new File(fileName)).toURI().toURL().toString());\n\n String expressionBody = \"//soapenv:Body\";\n Element bodyElement =\n (Element) xpath.evaluate(expressionBody, doc, XPathConstants.NODE);\n\n Attr id = bodyElement.getAttributeNode(\"Id\") ;\n IdResolver.registerElementById(bodyElement,id);\n //signature.addResourceResolver(new OfflineResolver());\n\n KeyInfo ki = signature.getKeyInfo();\n System.out.println(\"================================signature.getSignatureValue()================================\");\n\n String svStr = new String(signature.getSignatureValue());\n System.out.println(svStr);\n System.out.println(\"================================signature.getSignatureValue()================================\");\n\n if (ki != null) {\n if (ki.containsX509Data()) {\n System.out.println(\"Could find a X509Data element in the KeyInfo\");\n }\n X509Certificate cert = signature.getKeyInfo().getX509Certificate();\n if (cert != null) {\n System.out.println(\"The XML signature in file \"\n // + f.toURI().toURL().toString() + \" is \"\n + (signature.checkSignatureValue(cert)\n ? \"valid (good)\" : \"invalid !!!!! (bad)\"));\n } else {\n System.out.println(\"Did not find a Certificate\");\n PublicKey pk = signature.getKeyInfo().getPublicKey();\n if (pk != null) {\n System.out.println(\"The XML signature in file \"\n // + f.toURI().toURL().toString() + \" is \"\n + (signature.checkSignatureValue(pk)\n ? \"valid (good)\" : \"invalid !!!!! (bad)\"));\n } else {\n System.out.println(\n \"Did not find a public key, so I can't check the signature\");\n }\n }\n } else {\n System.out.println(\"Did not find a KeyInfo\");\n }\n\n\n\n\n\n } catch (SAXException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n } catch (XPathExpressionException e) {\n e.printStackTrace();\n } catch (XMLSignatureException e) {\n e.printStackTrace();\n } catch (XMLSecurityException e) {\n e.printStackTrace();\n }\n\n }", "public BEREncoding\nber_encode()\n throws ASN1Exception\n{\n BEREncoding chosen = null;\n\n BEREncoding enc[];\n\n // Encoding choice: c_resultSets\n if (c_resultSets != null) {\n chosen = c_resultSets.ber_encode(BEREncoding.CONTEXT_SPECIFIC_TAG, 1);\n }\n\n // Encoding choice: c_badSet\n if (c_badSet != null) {\n if (chosen != null)\n throw new ASN1Exception(\"CHOICE multiply set\");\n chosen = c_badSet.ber_encode(BEREncoding.CONTEXT_SPECIFIC_TAG, 2);\n }\n\n // Encoding choice: c_relation\n if (c_relation != null) {\n if (chosen != null)\n throw new ASN1Exception(\"CHOICE multiply set\");\n chosen = c_relation.ber_encode(BEREncoding.CONTEXT_SPECIFIC_TAG, 3);\n }\n\n // Encoding choice: c_unit\n if (c_unit != null) {\n if (chosen != null)\n throw new ASN1Exception(\"CHOICE multiply set\");\n chosen = c_unit.ber_encode(BEREncoding.CONTEXT_SPECIFIC_TAG, 4);\n }\n\n // Encoding choice: c_distance\n if (c_distance != null) {\n if (chosen != null)\n throw new ASN1Exception(\"CHOICE multiply set\");\n chosen = c_distance.ber_encode(BEREncoding.CONTEXT_SPECIFIC_TAG, 5);\n }\n\n // Encoding choice: c_attributes\n if (c_attributes != null) {\n if (chosen != null)\n throw new ASN1Exception(\"CHOICE multiply set\");\n enc = new BEREncoding[1];\n enc[0] = c_attributes.ber_encode();\n chosen = new BERConstructed(BEREncoding.CONTEXT_SPECIFIC_TAG, 6, enc);\n }\n\n // Encoding choice: c_ordered\n if (c_ordered != null) {\n if (chosen != null)\n throw new ASN1Exception(\"CHOICE multiply set\");\n chosen = c_ordered.ber_encode(BEREncoding.CONTEXT_SPECIFIC_TAG, 7);\n }\n\n // Encoding choice: c_exclusion\n if (c_exclusion != null) {\n if (chosen != null)\n throw new ASN1Exception(\"CHOICE multiply set\");\n chosen = c_exclusion.ber_encode(BEREncoding.CONTEXT_SPECIFIC_TAG, 8);\n }\n\n // Check for error of having none of the choices set\n if (chosen == null)\n throw new ASN1Exception(\"CHOICE not set\");\n\n return chosen;\n}", "public org.w3c.dom.Element signXML(org.w3c.dom.Document doc, \n java.lang.String certAlias, \n java.lang.String algorithm, \n java.util.List ids) \n throws XMLSignatureException { \n \n return signXML(doc, certAlias, algorithm, null, ids); \n }", "public SignerInfo toASN1Structure()\n {\n return info;\n }", "public static String multicoord2hexwkb(IomObject value)\n\tthrows Iox2jtsException\n\t{\n\t\tif(value == null) return null;\n\t\tcom.vividsolutions.jts.geom.Geometry geom = multicoord2JTS(value);\n\t\tbyte bv[]=new com.vividsolutions.jts.io.WKBWriter().write(geom);\n\t\treturn com.vividsolutions.jts.io.WKBWriter.bytesToHex(bv);\n\t}", "public static byte[] longToByteArray_ASN1_Value(long toBeConverted) {\n\t\t\t\n\t\t\t//create the temporary version of what will be returned\n\t\t\tbyte[] tempToBeReturned = {\n\t\t\t\t\t(byte)(toBeConverted >> 56),\n\t\t\t\t\t(byte)(toBeConverted >> 48),\n\t\t\t\t\t(byte)(toBeConverted >> 40),\n\t\t\t\t\t(byte)(toBeConverted >> 32),\n\t\t\t\t\t(byte)(toBeConverted >> 24),\n\t\t\t\t\t(byte)(toBeConverted >> 16),\n\t\t\t\t\t(byte)(toBeConverted >> 8),\n\t\t\t\t\t(byte)toBeConverted};\n\t\t\t\n\t\t\t\n\t\t\t//converting positive long values\n\t\t\tif(toBeConverted >= 0) {\n\t\t\t\t//0 to 127: return only one octet\n\t\t\t\tif(toBeConverted<=127) {\n\t\t\t\t\tbyte[] toBeReturned = new byte[1];\n\t\t\t\t\ttoBeReturned[0] = tempToBeReturned[7];\t\t\t\t\n\t\t\t\t\treturn toBeReturned;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//128 to 32768-1 return two octets\n\t\t\t\telse if(toBeConverted<=32767) {\n\t\t\t\t\tbyte[] toBeReturned = new byte[2];\n\t\t\t\t\ttoBeReturned[0] = tempToBeReturned[6];\t\t\t\t\n\t\t\t\t\ttoBeReturned[1] = tempToBeReturned[7];\n\t\t\t\t\treturn toBeReturned;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//32767 to 8388607 return three octets\n\t\t\t\telse if(toBeConverted<=8388607) {\n\t\t\t\t\tbyte[] toBeReturned = new byte[3];\n\t\t\t\t\ttoBeReturned[0] = tempToBeReturned[5];\t\t\t\t\n\t\t\t\t\ttoBeReturned[1] = tempToBeReturned[6];\n\t\t\t\t\ttoBeReturned[2] = tempToBeReturned[7];\n\t\t\t\t\treturn toBeReturned;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//8388608 to 2147483647 return four octets\n\t\t\t\telse if(toBeConverted<=2147483647) {\n\t\t\t\t\tbyte[] toBeReturned = new byte[4];\n\t\t\t\t\ttoBeReturned[0] = tempToBeReturned[4];\t\t\t\t\n\t\t\t\t\ttoBeReturned[1] = tempToBeReturned[5];\n\t\t\t\t\ttoBeReturned[2] = tempToBeReturned[6];\n\t\t\t\t\ttoBeReturned[3] = tempToBeReturned[7];\n\t\t\t\t\treturn toBeReturned;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t//the value 0 if x == y; a value less than 0 if x < y; and a value greater than 0 if x > y\n\t\t\t\t//2147483648 to 549755813887 return five octets\n\t\t\t\telse if((Long.compare(toBeConverted, 549755813888L))<0) {\n\t\t\t\t\tbyte[] toBeReturned = new byte[5];\n\t\t\t\t\ttoBeReturned[0] = tempToBeReturned[3];\t\t\t\t\n\t\t\t\t\ttoBeReturned[1] = tempToBeReturned[4];\n\t\t\t\t\ttoBeReturned[2] = tempToBeReturned[5];\n\t\t\t\t\ttoBeReturned[3] = tempToBeReturned[6];\n\t\t\t\t\ttoBeReturned[4] = tempToBeReturned[7];\n\t\t\t\t\treturn toBeReturned;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//549755813888 to 140737488355327 return six octets\n\t\t\t\telse if((Long.compare(toBeConverted, 140737488355328L))<0) {\n\t\t\t\t\tbyte[] toBeReturned = new byte[6];\n\t\t\t\t\ttoBeReturned[0] = tempToBeReturned[2];\t\t\t\t\n\t\t\t\t\ttoBeReturned[1] = tempToBeReturned[3];\n\t\t\t\t\ttoBeReturned[2] = tempToBeReturned[4];\n\t\t\t\t\ttoBeReturned[3] = tempToBeReturned[5];\n\t\t\t\t\ttoBeReturned[4] = tempToBeReturned[6];\n\t\t\t\t\ttoBeReturned[5] = tempToBeReturned[7];\n\t\t\t\t\treturn toBeReturned;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//140737488355328 to 36028797018963967 return seven octets\n\t\t\t\telse if((Long.compare(toBeConverted, 36028797018963967L))<0) {\n\t\t\t\t\tbyte[] toBeReturned = new byte[7];\n\t\t\t\t\ttoBeReturned[0] = tempToBeReturned[1];\t\t\t\t\n\t\t\t\t\ttoBeReturned[1] = tempToBeReturned[2];\n\t\t\t\t\ttoBeReturned[2] = tempToBeReturned[3];\n\t\t\t\t\ttoBeReturned[3] = tempToBeReturned[4];\n\t\t\t\t\ttoBeReturned[4] = tempToBeReturned[5];\n\t\t\t\t\ttoBeReturned[5] = tempToBeReturned[6];\n\t\t\t\t\ttoBeReturned[6] = tempToBeReturned[7];\n\t\t\t\t\treturn toBeReturned;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t//above: return eight octets\n\t\t\t\telse {\n\t\t\t\t\treturn tempToBeReturned;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t//converting negative long values\n\t\t\telse if(toBeConverted<0) {\n\t\t\t\t//-1 to -128 1 octet \n\t\t\t\tif(toBeConverted>=-128) {\n\t\t\t\t\tbyte[] toBeReturned = new byte[1];\n\t\t\t\t\ttoBeReturned[0] = tempToBeReturned[7];\t\t\t\t\n\t\t\t\t\treturn toBeReturned;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//-129 to -32768 2 octets\n\t\t\t\telse if(toBeConverted>=-32768) {\n\t\t\t\t\tbyte[] toBeReturned = new byte[2];\n\t\t\t\t\ttoBeReturned[0] = tempToBeReturned[6];\t\t\t\t\n\t\t\t\t\ttoBeReturned[1] = tempToBeReturned[7];\n\t\t\t\t\treturn toBeReturned;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//-32769 to -8388608 3 octets\n\t\t\t\telse if(toBeConverted>=-8388608) {\n\t\t\t\t\tbyte[] toBeReturned = new byte[3];\n\t\t\t\t\ttoBeReturned[0] = tempToBeReturned[5];\t\t\t\t\n\t\t\t\t\ttoBeReturned[1] = tempToBeReturned[6];\n\t\t\t\t\ttoBeReturned[2] = tempToBeReturned[7];\n\t\t\t\t\treturn toBeReturned;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t//-8388609 to -2147483648 4 octets\n\t\t\t\telse if(toBeConverted>=-2147483648) {\n\t\t\t\t\tbyte[] toBeReturned = new byte[4];\n\t\t\t\t\ttoBeReturned[0] = tempToBeReturned[4];\t\t\t\t\n\t\t\t\t\ttoBeReturned[1] = tempToBeReturned[5];\n\t\t\t\t\ttoBeReturned[2] = tempToBeReturned[6];\n\t\t\t\t\ttoBeReturned[3] = tempToBeReturned[7];\n\t\t\t\t\treturn toBeReturned;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t//the value 0 if x == y; a value less than 0 if x < y; and a value greater than 0 if x > y\n\t\t\t\t//-2147483649 to -549755813888 5 octets \n\t\t\t\telse if((Long.compare(toBeConverted, -549755813889L))>0) {\n\t\t\t\t\tbyte[] toBeReturned = new byte[5];\n\t\t\t\t\ttoBeReturned[0] = tempToBeReturned[3];\t\t\t\t\n\t\t\t\t\ttoBeReturned[1] = tempToBeReturned[4];\n\t\t\t\t\ttoBeReturned[2] = tempToBeReturned[5];\n\t\t\t\t\ttoBeReturned[3] = tempToBeReturned[6];\n\t\t\t\t\ttoBeReturned[4] = tempToBeReturned[7];\n\t\t\t\t\treturn toBeReturned;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//-549755813889 to -140737488355328 6 octets\n\t\t\t\telse if((Long.compare(toBeConverted, -140737488355329L))>0) {\n\t\t\t\t\tbyte[] toBeReturned = new byte[6];\n\t\t\t\t\ttoBeReturned[0] = tempToBeReturned[2];\t\t\t\t\n\t\t\t\t\ttoBeReturned[1] = tempToBeReturned[3];\n\t\t\t\t\ttoBeReturned[2] = tempToBeReturned[4];\n\t\t\t\t\ttoBeReturned[3] = tempToBeReturned[5];\n\t\t\t\t\ttoBeReturned[4] = tempToBeReturned[6];\n\t\t\t\t\ttoBeReturned[5] = tempToBeReturned[7];\n\t\t\t\t\treturn toBeReturned;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//-140737488355329 to 36028797018963968 7 octets\n\t\t\t\telse if((Long.compare(toBeConverted, -36028797018963969L))>0) {\n\t\t\t\t\tbyte[] toBeReturned = new byte[7];\n\t\t\t\t\ttoBeReturned[0] = tempToBeReturned[1];\t\t\t\t\n\t\t\t\t\ttoBeReturned[1] = tempToBeReturned[2];\n\t\t\t\t\ttoBeReturned[2] = tempToBeReturned[3];\n\t\t\t\t\ttoBeReturned[3] = tempToBeReturned[4];\n\t\t\t\t\ttoBeReturned[4] = tempToBeReturned[5];\n\t\t\t\t\ttoBeReturned[5] = tempToBeReturned[6];\n\t\t\t\t\ttoBeReturned[6] = tempToBeReturned[7];\n\t\t\t\t\treturn toBeReturned;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t//below that: 8 octets\n\t\t\t\telse {\n\t\t\t\t\treturn tempToBeReturned;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t//if method fails for any reason, it returns null\n\t\t\treturn null;\n\t\t}", "public byte[] sign() throws XMLSignatureException {\n/* 177 */ return this.signatureAlgorithm.engineSign();\n/* */ }", "public static byte[] integerToByteArray_ASN1_Value(int toBeConverted) {\n\t\t\n\t\t//create the temporary version of what will be returned\n\t\tbyte[] tempToBeReturned = {\n\t (byte)(toBeConverted >> 24),\n\t (byte)(toBeConverted >> 16),\n\t (byte)(toBeConverted >> 8),\n\t (byte)toBeConverted};\n\t\t\n\t\t\n\t\t//converting positive integers\n\t\tif(toBeConverted >= 0) {\n\t\t\t//0 to 127: return only one octet\n\t\t\tif(toBeConverted<=127) {\n\t\t\t\tbyte[] toBeReturned = new byte[1];\n\t\t\t\ttoBeReturned[0] = tempToBeReturned[3];\t\t\t\t\n\t\t\t\treturn toBeReturned;\n\t\t\t}\n\t\t\t\n\t\t\t//128 to 32768-1 return two octets\n\t\t\telse if(toBeConverted<=32767) {\n\t\t\t\tbyte[] toBeReturned = new byte[2];\n\t\t\t\ttoBeReturned[0] = tempToBeReturned[2];\t\t\t\t\n\t\t\t\ttoBeReturned[1] = tempToBeReturned[3];\n\t\t\t\treturn toBeReturned;\n\t\t\t}\n\t\t\t\n\t\t\t//32767 to 8388607 return three octets\n\t\t\telse if(toBeConverted<=8388607) {\n\t\t\t\tbyte[] toBeReturned = new byte[3];\n\t\t\t\ttoBeReturned[0] = tempToBeReturned[1];\t\t\t\t\n\t\t\t\ttoBeReturned[1] = tempToBeReturned[2];\n\t\t\t\ttoBeReturned[2] = tempToBeReturned[3];\n\t\t\t\treturn toBeReturned;\n\t\t\t}\n\t\t\t\n\t\t\t//above that: return four octets\n\t\t\telse {\n\t\t\t\treturn tempToBeReturned;\n\t\t\t}\n\t\t}\n\t\t\n\t\t//converting negative integers\n\t\telse if(toBeConverted<0) {\n\t\t\t//-1 to -128: return one octet\n\t\t\tif(toBeConverted>=-128) {\n\t\t\t\tbyte[] toBeReturned = new byte[1];\n\t\t\t\ttoBeReturned[0] = tempToBeReturned[3];\t\t\t\t\n\t\t\t\treturn toBeReturned;\n\t\t\t}\n\t\t\t\n\t\t\t//-129 to -32768 return two octets\n\t\t\telse if(toBeConverted>=-32768) {\n\t\t\t\tbyte[] toBeReturned = new byte[2];\n\t\t\t\ttoBeReturned[0] = tempToBeReturned[2];\t\t\t\t\n\t\t\t\ttoBeReturned[1] = tempToBeReturned[3];\n\t\t\t\treturn toBeReturned;\n\t\t\t}\n\t\t\t\n\t\t\t//-32769 to -8388608 return three octets\n\t\t\telse if(toBeConverted>=-8388608) {\n\t\t\t\tbyte[] toBeReturned = new byte[3];\n\t\t\t\ttoBeReturned[0] = tempToBeReturned[1];\t\t\t\t\n\t\t\t\ttoBeReturned[1] = tempToBeReturned[2];\n\t\t\t\ttoBeReturned[2] = tempToBeReturned[3];\n\t\t\t\treturn toBeReturned;\n\t\t\t}\n\t\t\t\n\t\t\t//above that: return four octets\n\t\t\telse {\n\t\t\t\treturn tempToBeReturned;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t//if method fails for any reason, it returns null\n\t\treturn null;\n\t}", "private static String signFirstTime() throws AddressFormatException\n {\n ECKey key1 = ECKey.fromPrivate(new BigInteger(\"64102401986961187973900162212679081334328198710146539384491794427145725009072\"));\n\n\n // Use the redeem script we have saved somewhere to start building the transaction\n Script redeemScript = new Script(hexStringToByteArray(\"5221021ae8964b8529dc3e52955f2cabd967e08c52008dbcca8e054143b668f3998f4a210306be609ef37366ab0f3dd4096ac23a6ee4d561fc469fa60003f799b0121ad1072102199f3d89fa00e6f55dd6ecdd911457d7264415914957db124d53bf0064963f3853ae\"));\n\n // Start building the transaction by adding the unspent inputs we want to use\n // The data is taken from blockchain.info, and can be found here: https://blockchain.info/rawtx/ca1884b8f2e0ba88249a86ec5ddca04f937f12d4fac299af41a9b51643302077\n Transaction spendTx = new Transaction(params);\n ScriptBuilder scriptBuilder = new ScriptBuilder();\n scriptBuilder.data(new String(\"a9145204ad7c5fa5a2491cd91c332e28c87221194ca087\").getBytes()); // Script of this output\n TransactionInput input = spendTx.addInput(new Sha256Hash(\"fed695bf5e2c15286956a7bd3464c5beb97ef064e1f9406eba189ea844733e7c\"), 1, scriptBuilder.build());\n\n // Add outputs to the person receiving bitcoins\n Address receiverAddress = new Address(params, \"n2cWhs5sbWFCwzuuWWsVM9ubPwykGtX75T\");\n Coin charge = Coin.valueOf(1000000); // 0.1 mBTC\n Script outputScript = ScriptBuilder.createOutputScript(receiverAddress);\n spendTx.addOutput(charge, outputScript);\n\n /*8888888888888888888888888888888888888888888888888888888888888*/\n\n // Sign the first part of the transaction using private key #1\n Sha256Hash sighash = spendTx.hashForSignature(0, redeemScript, Transaction.SigHash.ALL, false);\n ECKey.ECDSASignature ecdsaSignature = key1.sign(sighash);\n TransactionSignature transactionSignarture = new TransactionSignature(ecdsaSignature, Transaction.SigHash.ALL, false);\n\n // Create p2sh multisig input script\n Script inputScript = ScriptBuilder.createP2SHMultiSigInputScript(Arrays.asList(transactionSignarture), redeemScript);\n\n // Add the script signature to the input\n input.setScriptSig(inputScript);\n System.out.println(byteArrayToHex(spendTx.bitcoinSerialize()));\n\n return byteArrayToHex(spendTx.bitcoinSerialize());\n }", "@Override\r\n\tpublic String marshalSC(E19 cs) throws JAXBException {\n\t\t\r\n\r\n\t\tJAXBElement<E19> element = scFactory.createE23(cs);\r\n\t\tStringWriter sw = new StringWriter();\r\n\t\tscMarshaller.marshal(element, sw);\r\n\t\tString xml = sw.toString();\r\n\t\treturn xml;\r\n\t}", "public java.lang.String signXML(java.lang.String xmlString, \n java.lang.String certAlias, \n java.lang.String algorithm, \n java.util.List ids) \n throws XMLSignatureException {\n if (xmlString == null || xmlString.length() == 0) { \n SAMLUtilsCommon.debug.error(\"signXML: xmlString is null.\");\n throw new XMLSignatureException( \n SAMLUtilsCommon.bundle.getString(\"nullInput\")); \n } \n if (certAlias == null || certAlias.length() == 0) { \n SAMLUtilsCommon.debug.error(\"signXML: certAlias is null.\"); \n throw new XMLSignatureException(\n SAMLUtilsCommon.bundle.getString(\"nullInput\"));\n } \n Element el = null; \n try { \n Document doc = XMLUtils.toDOMDocument(xmlString,\n SAMLUtilsCommon.debug);\n el = signXML(doc, certAlias, algorithm, ids); \n } catch (Exception e) { \n e.printStackTrace(); \n throw new XMLSignatureException(e.getMessage()); \n } \n return XMLUtils.print(el);\n }", "private void generatePkcs1Md5Signature(APDU apdu, byte[] buffer) \r\n \t //@ requires current_applet(this) &*& [1/2]valid() &*& APDU(apdu, buffer) &*& array_slice(buffer, 0, buffer.length, _);\r\n \t //@ ensures current_applet(this) &*& [1/2]valid() &*& APDU(apdu, buffer) &*& array_slice(buffer, 0, buffer.length, _);\r\n\t{\r\n\t\t// receive the data that needs to be signed\r\n\t\tshort byteRead = apdu.setIncomingAndReceive();\r\n\t\t// check Lc\r\n\t\tshort lc = (short) (buffer[ISO7816.OFFSET_LC] & 0x00FF);\r\n\t\tif ((lc != 16) || (byteRead != 16))\r\n\t\t\tISOException.throwIt(ISO7816.SW_WRONG_LENGTH);\r\n\t\t// use the correct key\r\n\t\t////@ open [1/2]valid(); // auto\r\n\t\t\r\n\t\tif (getSignatureType() == NON_REPUDIATION) {\t\t\r\n\t\t\tcipher.init((RSAPrivateCrtKey)nonRepKeyPair.getPrivate(), Cipher.MODE_ENCRYPT);\r\n\t\t}\r\n\t\tif (getSignatureType() == AUTHENTICATION) {\r\n\t\t\tcipher.init((RSAPrivateCrtKey)authKeyPair.getPrivate(), Cipher.MODE_ENCRYPT);\r\n\t\t}\r\n\t\t////@ close [1/2]valid(); // auto\r\n\t\tJCSystem.beginTransaction();\r\n\t\t\r\n\t\t////@ open valid(); // todo\r\n\t\t\r\n\t\t//@ transient_byte_arrays_mem(messageBuffer);\r\n\t\t//@ assert transient_byte_arrays(?as);\r\n\t\t//@ foreachp_remove(messageBuffer, as);\r\n\t\t////@ open transient_byte_array(messageBuffer); // auto\r\n\t\t\r\n\t\t// prepare the message buffer to the PKCS#1 (v1.5) structure\r\n\t\t////@ open [1/2]valid();\r\n\t\tpreparePkcs1ClearText(messageBuffer, ALG_MD5_PKCS1, lc);\r\n\t\t// copy the MD5 hash from the APDU to the message buffer\r\n\t\tUtil.arrayCopy(buffer, (short) (ISO7816.OFFSET_CDATA), messageBuffer, (short) (128 - lc), lc);\r\n\r\n\t\t//@ close transient_byte_array(messageBuffer);\r\n\t\t//@ foreachp_unremove(messageBuffer, as);\r\n\r\n\t\t////@ close valid(); // auto\r\n\t\tJCSystem.commitTransaction();\r\n\t\t////@ open [1/2]valid(); // auto\r\n\t\t// generate signature\r\n\t\t//@ transient_byte_arrays_mem(messageBuffer);\r\n\t\t//@ assert transient_byte_arrays(?as1);\r\n\t\t//@ foreachp_remove(messageBuffer, as1);\r\n\t\t//@ open transient_byte_array(messageBuffer);\r\n\t\tcipher.doFinal(messageBuffer, (short) 0, (short) 128, buffer, (short) 0);\r\n\t\t//@ close transient_byte_array(messageBuffer);\r\n\t\t//@ foreachp_unremove(messageBuffer, as1);\r\n\r\n\t\t////@ close [1/2]valid(); // auto\r\n\r\n\r\n\t}", "java.math.BigInteger getNcbi8Aa();", "public Builder mergeSig(io.lightcone.data.types.EdDSASignature value) {\n if (sigBuilder_ == null) {\n if (sig_ != null) {\n sig_ =\n io.lightcone.data.types.EdDSASignature.newBuilder(sig_).mergeFrom(value).buildPartial();\n } else {\n sig_ = value;\n }\n onChanged();\n } else {\n sigBuilder_.mergeFrom(value);\n }\n\n return this;\n }", "private byte[] signData(byte[] data)\n throws CmsCadesException, GeneralSecurityException, IOException {\n CadesSignature cmsSig = new CadesSignature(data, SignedData.EXPLICIT);\n // CadesBESParameters params = new CadesBESParameters();\n CadesTParameters params = new CadesTParameters(\n \"http://tsp.iaik.tugraz.at/tsp/TspRequest\", null, null);\n params.setDigestAlgorithm(\"SHA512\");\n cmsSig.addSignerInfo(privKey_, certChain_, params);\n return cmsSig.encodeSignature();\n }", "public BEREncoding\nber_encode(int tag_type, int tag)\n throws ASN1Exception\n{\n // This method must not be called!\n\n // Method is not available because this is a basic CHOICE\n // which does not have an explicit tag on it. So it is not\n // permitted to allow something else to apply an implicit\n // tag on it, otherwise the tag identifying which CHOICE\n // it is will be overwritten and lost.\n\n throw new ASN1EncodingException(\"Zebulun DiagFormat_proximity: cannot implicitly tag\");\n}", "@Override\n\tpublic Document signDocument(Document doc, PrivateKey privateKey, Certificate cert) throws XMLSecurityException {\n\t\tElement rootEl = doc.getDocumentElement();\n\t\tcom.sun.org.apache.xml.internal.security.Init.init();\n\t\tXMLSignature sig = new XMLSignature(doc, null, XMLSignature.ALGO_ID_SIGNATURE_RSA_SHA1);\n\n\t\tTransforms transform = new Transforms(doc);\n\n\t\ttransform.addTransform(Transforms.TRANSFORM_ENVELOPED_SIGNATURE);\n\n\t\ttransform.addTransform(Transforms.TRANSFORM_C14N11_WITH_COMMENTS);\n\n\t\tsig.addDocument(\"\", transform, MessageDigestAlgorithm.ALGO_ID_DIGEST_SHA1);\n\n\t\tsig.addKeyInfo(cert.getPublicKey());\n\t\tsig.addKeyInfo((X509Certificate) cert);\n\n\t\trootEl.appendChild(sig.getElement());\n\t\tsig.sign(privateKey);\n\t\treturn doc;\n\n\t}", "public Builder setSig(io.lightcone.data.types.EdDSASignature value) {\n if (sigBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n sig_ = value;\n onChanged();\n } else {\n sigBuilder_.setMessage(value);\n }\n\n return this;\n }", "public interface ECCSignature {\n BigInteger getR();\n\n BigInteger getS();\n\n ECCParameters getECCParameters();\n\n BigInteger getN();\n\n ECCPoint getG();\n\n ECCPoint getQu();\n}", "public byte[] encode(java.math.BigInteger r1, java.math.BigInteger r2) throws java.io.IOException {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e9 in method: com.android.org.bouncycastle.jcajce.provider.asymmetric.ec.SignatureSpi.StdDSAEncoder.encode(java.math.BigInteger, java.math.BigInteger):byte[], dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.android.org.bouncycastle.jcajce.provider.asymmetric.ec.SignatureSpi.StdDSAEncoder.encode(java.math.BigInteger, java.math.BigInteger):byte[]\");\n }", "private Signature(int[] value) {\n\t\tthis.value = value;\n\t\tthis.hash = Arrays.hashCode(value);\n\t}", "@Override\n\tpublic ASN1Primitive toASN1Primitive() {\n\t\tASN1Encodable[] asn1EncodableArr = new ASN1Encodable[3];\n\t\tasn1EncodableArr[0] = asn1EncodableArr[1] = asn1EncodableArr[2] = null;\n\t\tif(majorVersion != null) {\n\t\t\tasn1EncodableArr[0] = new ASN1Integer(majorVersion.longValue());\n\t\t}\n\t\tif(minorVersion != null) {\n\t\t\tasn1EncodableArr[1] = new ASN1Integer(minorVersion.longValue());\n\t\t}\n\t\tif(revision != null) {\n\t\t\tasn1EncodableArr[2] = new ASN1Integer(revision.longValue());\n\t\t}\n\t\tDLSequence dlSequence = new DLSequence(asn1EncodableArr);\n\t\tasn1EncodableArr = new ASN1Encodable[2];\n\t\tasn1EncodableArr[0] = dlSequence;\n\t\tif(platformClass != null) {\n\t\t\t// remove 0x from start of hex string of it is there\n\t\t\tString platClass = platformClass.replaceFirst(\"0[xX]\", \"\"); \n\t\t\tbyte[] sigbytes = new BigInteger(platClass, 16).toByteArray();\n\t\t\tint numsigbytes = sigbytes.length;\n\t\t\tbyte[] bytes;\n\t\t\tif(numsigbytes >= 4)\n\t\t\t{\n\t\t\t\tbytes = sigbytes;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tbytes = new byte[4];\n\t\t\t\tint sigb_idx = numsigbytes-1;\n\t\t\t\tfor(int i=3; i >=0; i--)\n\t\t\t\t{\n\t\t\t\t\tif(sigb_idx >= 0)\n\t\t\t\t\t{\n\t\t\t\t\t\tbytes[i] = sigbytes[sigb_idx--];\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tbytes[i] = 0;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\t\n\t\t\tasn1EncodableArr[1] = new DEROctetString(bytes);\n\t\t}\n\t\telse {\n\t\t\tasn1EncodableArr[1] = null;\n\t\t}\n\t\tDLSequence asn1_platformSpec = new DLSequence(asn1EncodableArr);\n\n\t\treturn asn1_platformSpec;\n\t}", "public void testX509EncryptionSHA1() throws Exception {\n WSSecEncrypt builder = new WSSecEncrypt();\n builder.setUserInfo(\"16c73ab6-b892-458f-abf5-2f875f74882e\", \"security\");\n builder.setKeyIdentifierType(WSConstants.ENCRYPTED_KEY_SHA1_IDENTIFIER);\n builder.setUseKeyIdentifier(true);\n \n LOG.info(\"Before Encrypting EncryptedKeySHA1....\");\n Document doc = unsignedEnvelope.getAsDocument();\n WSSecHeader secHeader = new WSSecHeader();\n secHeader.insertSecurityHeader(doc); \n Document encryptedDoc = builder.build(doc, crypto, secHeader);\n \n String outputString = \n org.apache.ws.security.util.XMLUtils.PrettyDocumentToString(encryptedDoc);\n if (LOG.isDebugEnabled()) {\n LOG.debug(\"Encrypted message with ENCRYPTED_KEY_SHA1_IDENTIFIER:\");\n LOG.debug(outputString);\n }\n assertTrue(outputString.indexOf(\"#EncryptedKeySHA1\") != -1);\n \n LOG.info(\"After Encrypting EncryptedKeySHA1....\");\n verify(encryptedDoc);\n }", "public com.android.org.bouncycastle.asn1.ASN1Primitive toASN1Primitive() {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e5 in method: com.android.org.bouncycastle.asn1.pkcs.RSAESOAEPparams.toASN1Primitive():com.android.org.bouncycastle.asn1.ASN1Primitive, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.android.org.bouncycastle.asn1.pkcs.RSAESOAEPparams.toASN1Primitive():com.android.org.bouncycastle.asn1.ASN1Primitive\");\n }", "public void testPublicKeyEC() throws Exception {\r\n // Test encoding of a ECPoint\r\n String expectedByteStr = \"04013579024680\";\r\n BigInteger affineX = new BigInteger(\"13579\", 16);\r\n BigInteger affineY = new BigInteger(\"24680\", 16);\r\n ECPoint point = new ECPoint(affineX, affineY);\r\n byte[] data = PublicKeyEC.encodePoint(point);\r\n assertEquals(\"Encoded ECPoint\", expectedByteStr, StringConverter.byteToHex(data));\r\n \r\n // Test decoding of a ECPoint\r\n ECPoint decodedPoint = PublicKeyEC.decodePoint(new BigInteger(expectedByteStr,16).toByteArray());\r\n assertEquals(\"AffineX\", affineX, decodedPoint.getAffineX());\r\n\r\n // Create key with BouncyCastle (v1.36 supports key lengths 192, 239 and 256)...\r\n // See org.bouncycastle.jce.provider.JDKKeyPairGenerator.EC\r\n KeyPairGenerator keyGen = KeyPairGenerator.getInstance(\"ECDSA\", \"BC\");\r\n keyGen.initialize(239, new SecureRandom());\r\n KeyPair keyPair = keyGen.generateKeyPair();\r\n \r\n PublicKeyEC ecKey = (PublicKeyEC)KeyFactory.createInstance(keyPair.getPublic(), \"SHA1WITHECDSA\", null);\r\n assertTrue(\"ECParams is null\", ecKey.getParams()!=null );\r\n assertEquals(\"Cofactor\", 1, ecKey.getParams().getCofactor());\r\n }", "public void affiche3(BigInteger signe){\n System.out.println(\"La signature est :\"+signe);\n }", "public java.lang.String signXML(java.lang.String xmlString, \n java.lang.String certAlias, \n java.lang.String algorithm, \n java.lang.String id) \n throws XMLSignatureException { \n if (xmlString == null || xmlString.length() == 0) { \n SAMLUtilsCommon.debug.error(\"signXML: xmlString is null.\");\n throw new XMLSignatureException( \n SAMLUtilsCommon.bundle.getString(\"nullInput\")); \n } \n if (certAlias == null || certAlias.length() == 0) { \n SAMLUtilsCommon.debug.error(\"signXML: certAlias is null.\"); \n throw new XMLSignatureException(\n SAMLUtilsCommon.bundle.getString(\"nullInput\"));\n } \n Element el = null; \n try { \n Document doc = XMLUtils.toDOMDocument(xmlString, \n SAMLUtilsCommon.debug); \n el = signXML(doc, certAlias, algorithm, id); \n } catch (Exception e) { \n \t SAMLUtilsCommon.debug.error(\"signXML Exception: \", e);\n throw new XMLSignatureException(e.getMessage()); \n } \n return XMLUtils.print(el);\n }", "public RSAESOAEPparams(com.android.org.bouncycastle.asn1.ASN1Sequence r1) {\n /*\n // Can't load method instructions: Load method exception: null in method: com.android.org.bouncycastle.asn1.pkcs.RSAESOAEPparams.<init>(com.android.org.bouncycastle.asn1.ASN1Sequence):void, dex: in method: com.android.org.bouncycastle.asn1.pkcs.RSAESOAEPparams.<init>(com.android.org.bouncycastle.asn1.ASN1Sequence):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.android.org.bouncycastle.asn1.pkcs.RSAESOAEPparams.<init>(com.android.org.bouncycastle.asn1.ASN1Sequence):void\");\n }", "public byte[] hmacSha1(byte[] value) {\n try {\n // Get an hmac_sha1 key from the raw key bytes\n byte[] keyBytes = secretkey;\n SecretKeySpec signingKey = new SecretKeySpec(keyBytes, \"HmacSHA1\");\n // Get an hmac_sha1 Mac instance and initialize with the signing key\n Mac mac = Mac.getInstance(\"HmacSHA1\");\n mac.init(signingKey);\n // Compute the hmac on input data bytes\n byte[] rawHmac = mac.doFinal(value);\n // hmacLenght = (byte) rawHmac.length;\n // Sh.d(\"h: \"+rawHmac.length);\n // Convert raw bytes to Hex\n/* byte[] hexBytes = new Hex().encode(rawHmac);\n // Covert array of Hex bytes to a String\n return new String(hexBytes, ENCODING);*/\n return rawHmac;\n //todo changed ^\n } catch (Exception e) {\n Sh.d(\"hmac exc :\"+e.getMessage());\n throw new RuntimeException(e);\n }\n }", "public String hmacSha1(String value) {\n try {\n // Get an hmac_sha1 key from the raw key bytes\n byte[] keyBytes = secretkey;\n SecretKeySpec signingKey = new SecretKeySpec(keyBytes, \"HmacSHA1\");\n // Get an hmac_sha1 Mac instance and initialize with the signing key\n Mac mac = Mac.getInstance(\"HmacSHA1\");\n mac.init(signingKey);\n // Compute the hmac on input data bytes\n byte[] rawHmac = mac.doFinal(fromBase64(value));\n hmacLenght = (byte) rawHmac.length;\n // Sh.d(\"h: \"+rawHmac.length);\n // Convert raw bytes to Hex\n/* byte[] hexBytes = new Hex().encode(rawHmac);\n // Covert array of Hex bytes to a String\n return new String(hexBytes, ENCODING);*/\n return ivmacToString(rawHmac);\n } catch (Exception e) {\n Sh.d(\"hmac exc :\"+e.getMessage());\n throw new RuntimeException(e);\n }\n }", "BigInteger getEBigInteger();", "public static void SM2Sign_fixed(String digest_str, String dA_str, String k_str){\n\n BigInteger digest = new BigInteger(digest_str,16);\n BigInteger dA = new BigInteger(dA_str,16);\n BigInteger k = new BigInteger(k_str,16);\n outer:\n for (;true;) {\n\n //BigInteger k = new BigInteger(256, random);\n //BigInteger k =new BigInteger(\"6CB28D99385C175C94F94E934817663FC176D925DD72B727260DBAAE1FB2F96F\",16);\n ECPoint Q = basePoint.multiply(k).normalize();\n if (debug) {\n System.out.println(\"kG x = \" + Q.getAffineXCoord().toBigInteger().toString(16).toUpperCase());\n System.out.println(\"kG y = \" + Q.getAffineYCoord().toBigInteger().toString(16).toUpperCase());\n }\n BigInteger r = digest.add(Q.getAffineXCoord().toBigInteger()).mod(n);\n if (r.signum() == 0 | r.add(k).equals(n)) {\n\n continue outer;\n }\n\n BigInteger Inv;\n Inv = dA.add(one).modInverse(n);\n if (debug) {\n System.out.println(\"Inv = \" + Inv.toString(16).toUpperCase());\n }\n BigInteger s = Inv.multiply(k.subtract(r.multiply(dA))).mod(n);\n if (s.signum()==0) continue outer;\n else {\n if(debug) {\n System.out.println(\"r = \" + r.toString(16).toUpperCase());\n System.out.println(\"s = \" + s.toString(16).toUpperCase());\n }\n Sign_r = r;\n Sign_s = s;\n Sign_r_str = r.toString(16).toUpperCase();\n Sign_s_str = s.toString(16).toUpperCase();\n return;\n }\n }\n\n }", "public java.lang.String signXML(java.lang.String xmlString,\n java.lang.String certAlias, \n java.lang.String algorithm) \n throws XMLSignatureException {\n if (xmlString == null || xmlString.length() == 0) {\n \t SAMLUtilsCommon.debug.error(\"signXML: xmlString is null.\");\n \t throw new XMLSignatureException(\n \t\t SAMLUtilsCommon.bundle.getString(\"nullInput\"));\n \t} \n if (certAlias == null || certAlias.length() == 0) {\n \t SAMLUtilsCommon.debug.error(\"signXML: certAlias is null.\");\n \t throw new XMLSignatureException(\n \t\t SAMLUtilsCommon.bundle.getString(\"nullInput\"));\n \t} \n Element el = null;\n try { \n Document doc = XMLUtils.toDOMDocument(xmlString,\n SAMLUtilsCommon.debug);\n el = signXML(doc, certAlias, algorithm); \n } catch (Exception e) {\n SAMLUtilsCommon.debug.error(\"signXML Exception: \", e);\n throw new XMLSignatureException(e.getMessage());\n }\n \n return XMLUtils.print(el);\n }", "private X509Certificate generateSelfSignedCertificateWithFakeSignature(PublicKey publicKey) throws IOException, CertificateParsingException {\n byte[] signature;\n AlgorithmIdentifier sigAlgId;\n V3TBSCertificateGenerator tbsGenerator = new V3TBSCertificateGenerator();\n int i = this.mKeymasterAlgorithm;\n if (i == 1) {\n signature = new byte[1];\n sigAlgId = new AlgorithmIdentifier(PKCSObjectIdentifiers.sha256WithRSAEncryption, DERNull.INSTANCE);\n } else if (i == 3) {\n sigAlgId = new AlgorithmIdentifier(X9ObjectIdentifiers.ecdsa_with_SHA256);\n ASN1EncodableVector v = new ASN1EncodableVector();\n v.add(new DERInteger(0));\n v.add(new DERInteger(0));\n signature = new DERSequence().getEncoded();\n } else {\n throw new ProviderException(\"Unsupported key algorithm: \" + this.mKeymasterAlgorithm);\n }\n byte[] signature2 = signature;\n ASN1InputStream publicKeyInfoIn = new ASN1InputStream(publicKey.getEncoded());\n tbsGenerator.setSubjectPublicKeyInfo(SubjectPublicKeyInfo.getInstance(publicKeyInfoIn.readObject()));\n publicKeyInfoIn.close();\n tbsGenerator.setSerialNumber(new ASN1Integer(this.mSpec.getCertificateSerialNumber()));\n X509Principal subject = new X509Principal(this.mSpec.getCertificateSubject().getEncoded());\n tbsGenerator.setSubject(subject);\n tbsGenerator.setIssuer(subject);\n tbsGenerator.setStartDate(new Time(this.mSpec.getCertificateNotBefore()));\n tbsGenerator.setEndDate(new Time(this.mSpec.getCertificateNotAfter()));\n tbsGenerator.setSignature(sigAlgId);\n TBSCertificate tbsCertificate = tbsGenerator.generateTBSCertificate();\n ASN1EncodableVector result = new ASN1EncodableVector();\n result.add(tbsCertificate);\n result.add(sigAlgId);\n result.add(new DERBitString(signature2));\n return new X509CertificateObject(Certificate.getInstance(new DERSequence(result)));\n throw result;\n }", "Asn1Object(int tag, int length, byte[] value) {\n\t\t\tthis.tag = tag;\n\t\t\tthis.type = tag & 0x1F;\n\t\t\tthis.length = length;\n\t\t\tthis.value = value;\n\t\t}", "public OracleXmlTypeValue(String value) {\n this.value = value;\n inputType = STRING;\n }", "public int getASN() {\n return this.asn;\n }", "public Unsigned128BitType( final BigInteger value )\n\t{\n\t\tthis( ( NativeImg< ?, ? extends LongAccess > ) null );\n\t\tdataAccess = new LongArray( 2 );\n\t\tset( value );\n\t}", "BigInteger getValue();", "public void setSerialNumber(java.math.BigInteger r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e9 in method: com.android.org.bouncycastle.x509.X509V1CertificateGenerator.setSerialNumber(java.math.BigInteger):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.android.org.bouncycastle.x509.X509V1CertificateGenerator.setSerialNumber(java.math.BigInteger):void\");\n }", "public SignatureAlgorithm(Document paramDocument, String paramString, int paramInt) throws XMLSecurityException {\n/* 92 */ super(paramDocument, paramString);\n/* 93 */ this.algorithmURI = paramString;\n/* */ \n/* 95 */ this.signatureAlgorithm = getSignatureAlgorithmSpi(paramString);\n/* 96 */ this.signatureAlgorithm.engineGetContextFromElement(this.constructionElement);\n/* */ \n/* 98 */ this.signatureAlgorithm.engineSetHMACOutputLength(paramInt);\n/* 99 */ ((IntegrityHmac)this.signatureAlgorithm).engineAddContextToElement(this.constructionElement);\n/* */ }", "String signITRByAssesse(String PAN,String xml, DigitalSignatureWrapper digitalSignatureWrapper) throws MissingPrivateKeyException,InvalidDigitalSignatureException,Exception;", "public Asn1FormatException() {\n super();\n }", "public static String toIso88591String(final int[] array) {\n byte[] byteArray = new byte[array.length];\n for (int pos = 0; pos < byteArray.length; pos++) {\n byteArray[pos] = toSignedByte(array[pos]);\n }\n return new String(byteArray, Charset.forName(\"ISO-8859-1\"));\n }", "public void testEncryptionSHA1SymmetricBytes() throws Exception {\n WSSecEncrypt builder = new WSSecEncrypt();\n builder.setKeyIdentifierType(WSConstants.ENCRYPTED_KEY_SHA1_IDENTIFIER);\n builder.setEphemeralKey(keyData);\n builder.setEncryptSymmKey(false);\n builder.setUseKeyIdentifier(true);\n \n LOG.info(\"Before Encrypting EncryptedKeySHA1....\");\n Document doc = unsignedEnvelope.getAsDocument();\n WSSecHeader secHeader = new WSSecHeader();\n secHeader.insertSecurityHeader(doc); \n Document encryptedDoc = builder.build(doc, crypto, secHeader);\n \n String outputString = \n org.apache.ws.security.util.XMLUtils.PrettyDocumentToString(encryptedDoc);\n if (LOG.isDebugEnabled()) {\n LOG.debug(\"Encrypted message with ENCRYPTED_KEY_SHA1_IDENTIFIER:\");\n LOG.debug(outputString);\n }\n assertTrue(outputString.indexOf(\"#EncryptedKeySHA1\") != -1);\n \n LOG.info(\"After Encrypting EncryptedKeySHA1....\");\n verify(encryptedDoc);\n }", "public Asn1Object( int tag, int length, byte[] value ) {\n this.tag = tag;\n this.type = tag & 0x1F;\n this.length = length;\n this.value = value;\n }", "private void createValue()\n\t{\n\t\ttry\n\t\t{\n\t\t\tm_usage = ((DERBitString)new ASN1InputStream(\n\t\t\t\t\t new ByteArrayInputStream(getDEROctets())).readObject()).intValue();\n\t\t} catch (Exception a_e)\n\t\t{\n\t\t\tthrow new RuntimeException(\"Could not read key usage from byte array!\");\n\t\t}\n\t}", "void setNcbi8Aa(java.math.BigInteger ncbi8Aa);", "public static byte[] applyECDSASig(PrivateKey privateKey, String input) {\n Signature dsa;\n byte[] output = new byte[0];\n try {\n dsa = Signature.getInstance(\"ECDSA\", \"SC\");\n dsa.initSign(privateKey);\n byte[] strByte = input.getBytes();\n dsa.update(strByte);\n byte[] realSig = dsa.sign();\n output = realSig;\n } catch (Exception e) {\n //throw new RuntimeException(e);\n Log.e(\"ERROR\",\"An error occured while applying ecdsa!\");\n }\n return output;\n }", "public abstract BigInteger nextValue();", "private static BigInteger[] getPublicKeyOriginal(BigInteger in) \r\n{\r\n\tECNamedCurveParameterSpec spec = ECNamedCurveTable.getParameterSpec(\"secp256k1\"); \r\n\tbyte[] pubKey = spec.getG().multiply(in).getEncoded(false);\r\n\tbyte[] a = new byte[32];\r\n\tbyte[] b = new byte[32];\r\n\tSystem.arraycopy(pubKey, 1, a, 0, 32);\r\n\tSystem.arraycopy(pubKey, 33, b, 0, 32);\r\n\tBigInteger[] erg = new BigInteger[2];\r\n\terg[0] = new BigInteger(1,a);\r\n\terg[1] = new BigInteger(1,b);\r\n\treturn erg;\r\n}", "public java.lang.String signXML(java.lang.String xmlString,\n java.lang.String certAlias) \n throws XMLSignatureException {\n return signXML(xmlString, certAlias, null); \n }", "public byte[] generateSignature()\n {\n if (!forSigning)\n {\n throw new IllegalStateException(\"PairingDigestSigner not initialised for signature generation.\");\n }\n\n byte[] hash = new byte[digest.getDigestSize()];\n digest.doFinal(hash, 0);\n\n Element[] sig = pairingSigner.generateSignature(hash);\n\n try {\n return pairingSigner.derEncode(sig);\n } catch (IOException e) {\n throw new IllegalStateException(\"unable to encode signature\");\n }\n }", "PBBignum(BigInteger value)\n {\n\tsuper(value.toString());\n\tbigIntValue = value;\n }", "public org.w3c.dom.Element signXML(org.w3c.dom.Document doc,\n java.lang.String certAlias,\n java.lang.String algorithm,\n java.lang.String idAttrName,\n java.lang.String id,\n boolean includeCert,\n \t\t\t\t java.lang.String xpath)\n throws XMLSignatureException {\n if (doc == null) { \n SAMLUtilsCommon.debug.error(\"signXML: doc is null.\"); \n throw new XMLSignatureException( \n SAMLUtilsCommon.bundle.getString(\"nullInput\")); \n } \n \n if (certAlias == null || certAlias.length() == 0) { \n SAMLUtilsCommon.debug.error(\"signXML: certAlias is null.\"); \n throw new XMLSignatureException( \n SAMLUtilsCommon.bundle.getString(\"nullInput\"));\n } \n org.w3c.dom.Element root = null; \n XMLSignature sig = null; \n try { \n Constants.setSignatureSpecNSprefix(\"\"); \n PrivateKey privateKey = \n (PrivateKey) keystore.getPrivateKey(certAlias);\n if (privateKey == null) { \n SAMLUtilsCommon.debug.error(\"private key is null\"); \n throw new XMLSignatureException( \n SAMLUtilsCommon.bundle.getString(\"nullprivatekey\")); \n } \n root = (Element) XPathAPI.selectSingleNode( \n doc, \"//*[@\" + idAttrName + \"=\\\"\" + id + \"\\\"]\");\n \n if (root == null) { \n SAMLUtilsCommon.debug.error(\"signXML: could not\" \n + \" resolv id attribute\");\n throw new XMLSignatureException( \n SAMLUtilsCommon.bundle.getString(\"invalidIDAttribute\")); \n }\n \n // add to IdResolver for idAttrName is not \"id\" case. \n if (!id.equals(this.DEF_ID_ATTRIBUTE)) {\n IdResolver.registerElementById(root, id); \n }\n if (algorithm == null || algorithm.length() == 0) { \n algorithm = getKeyAlgorithm(privateKey); ; \n } \n if (!isValidAlgorithm(algorithm)) { \n throw new XMLSignatureException( \n SAMLUtilsCommon.bundle.getString(\"invalidalgorithm\")); \n } \n sig = new XMLSignature(doc, \"\", algorithm, \n Canonicalizer.ALGO_ID_C14N_EXCL_OMIT_COMMENTS); \n \t if(xpath == null) {\n root.appendChild(sig.getElement()); \n \t } else {\n \t\tNode beforeNode = XPathAPI.selectSingleNode(doc, xpath);\n \t\troot.insertBefore(sig.getElement(), beforeNode);\n \t }\n sig.getSignedInfo().addResourceResolver( \n new com.sun.identity.saml.xmlsig.OfflineResolver()); \n // register the id for the elment, so it could be found\n // by Reference object based on URI\n if (!idAttrName.equals(DEF_ID_ATTRIBUTE)) {\n IdResolver.registerElementById(root, id);\n }\n // do transform \n Transforms transforms = new Transforms(doc); \n transforms.addTransform(Transforms.TRANSFORM_ENVELOPED_SIGNATURE); \n transforms.addTransform(\n \t\t\t\tTransforms.TRANSFORM_C14N_EXCL_OMIT_COMMENTS);\n String ref = \"#\" + id; \n sig.addDocument(ref, transforms, Constants.ALGO_ID_DIGEST_SHA1);\n if (includeCert) {\n X509Certificate cert =\n (X509Certificate) keystore.getX509Certificate(certAlias);\n sig.addKeyInfo(cert);\n }\n sig.sign(privateKey); \n } catch (Exception e) { \n \t SAMLUtilsCommon.debug.error(\"signXML Exception: \", e);\n throw new XMLSignatureException(e.getMessage()); \n } \n return (sig.getElement()); \n }", "public SignatureAlgorithm(Element paramElement, String paramString) throws XMLSecurityException {\n/* 110 */ this(paramElement, paramString, false);\n/* */ }", "BigInteger decodeBigInteger();", "public org.w3c.dom.Element signXML(org.w3c.dom.Document doc, \n java.lang.String certAlias) \n throws XMLSignatureException { \n return signXML(doc, certAlias, null); \n }", "org.apache.xmlbeans.XmlBase64Binary xgetSignatureImage();", "private static String toHex(byte[] array) throws NoSuchAlgorithmException {\n\n BigInteger bi = new BigInteger(1, array);\n String hex = bi.toString(16);\n int paddingLength = (array.length * 2) - hex.length();\n if (paddingLength > 0) {\n return String.format(\"%0\" + paddingLength + \"d\", 0) + hex;\n } else {\n return hex;\n }\n }", "public Element signWithWSSX509TokenProfile(Document doc,\n java.security.cert.Certificate cert, String algorithm, List ids,\n String wsfVersion) throws XMLSignatureException {\n \n if (doc == null) { \n SAMLUtilsCommon.debug.error(\"signXML: doc is null.\"); \n throw new XMLSignatureException( \n SAMLUtilsCommon.bundle.getString(\"nullInput\")); \n } \n \n \tif (SAMLUtilsCommon.debug.messageEnabled()) {\n \t SAMLUtilsCommon.debug.message(\"Soap Envlope: \" +\n \t\tXMLUtils.print(doc.getDocumentElement()));\n \t}\n \n this.wsfVersion = wsfVersion;\n String wsseNS = SAMLConstants.NS_WSSE;\n String wsuNS = SAMLConstants.NS_WSU;\n \n if ((wsfVersion != null) &&\n (wsfVersion.equals(SOAPBindingConstants.WSF_11_VERSION))) {\n wsseNS = WSSEConstants.NS_WSSE_WSF11;\n wsuNS = WSSEConstants.NS_WSU_WSF11;\n }\n \n Element root = (Element)doc.getDocumentElement().\n getElementsByTagNameNS(wsseNS, SAMLConstants.TAG_SECURITY).item(0);\n \n XMLSignature signature = null;\n try {\n Constants.setSignatureSpecNSprefix(\"ds\"); \n Element wsucontext = com.sun.org.apache.xml.internal.security.utils.\n XMLUtils.createDSctx(doc, \"wsu\", wsuNS);\n NodeList wsuNodes = (NodeList)XPathAPI.selectNodeList(doc,\n \"//*[@wsu:Id]\", wsucontext);\n if ((wsuNodes != null) && (wsuNodes.getLength() != 0)) {\n for(int i=0; i < wsuNodes.getLength(); i++) {\n Element elem = (Element) wsuNodes.item(i);\n String id = elem.getAttributeNS(wsuNS, \"Id\");\n if (id != null && id.length() != 0) {\n IdResolver.registerElementById(elem, id);\n }\n }\n }\n \n String certAlias = keystore.getCertificateAlias(cert);\n PrivateKey privateKey = \n (PrivateKey) keystore.getPrivateKey(certAlias);\n if (privateKey == null) { \n SAMLUtilsCommon.debug.error(\"private key is null\"); \n throw new XMLSignatureException( \n SAMLUtilsCommon.bundle.getString(\"nullprivatekey\")); \n } \n \n // TODO: code clean up\n // should find cert alias, add security token and call signXML\n // to avoid code duplication\n if (algorithm == null || algorithm.length() == 0) { \n algorithm = getKeyAlgorithm(privateKey); \n } \n if (!isValidAlgorithm(algorithm)) { \n throw new XMLSignatureException( \n SAMLUtilsCommon.bundle.getString(\"invalidalgorithm\")); \n } \n signature = new XMLSignature(doc, \"\", algorithm, \n Canonicalizer.ALGO_ID_C14N_EXCL_OMIT_COMMENTS); \n \n \t root.appendChild(signature.getElement());\n \t int size = ids.size();\n \t for (int i = 0; i < size; ++i) {\n \t\tTransforms transforms = new Transforms(doc);\n \t\ttransforms.addTransform(\n \t\t\t\tTransforms.TRANSFORM_C14N_EXCL_OMIT_COMMENTS);\n \t\tString id = (String) ids.get(i);\n \t\tif (SAMLUtilsCommon.debug.messageEnabled()) {\n \t\t SAMLUtilsCommon.debug.message(\"id = \" +id);\n \t\t}\n \t\tsignature.addDocument(\"#\"+id, transforms,\n \t\t\tConstants.ALGO_ID_DIGEST_SHA1);\n \t }\n \n \t KeyInfo keyInfo = signature.getKeyInfo();\n \t Element securityTokenRef = doc.createElementNS(wsseNS,\n SAMLConstants.TAG_SECURITYTOKENREFERENCE);\n \t keyInfo.addUnknownElement(securityTokenRef);\n \t securityTokenRef.setAttributeNS(SAMLConstants.NS_XMLNS,\n \t\t SAMLConstants.TAG_XMLNS, wsseNS);\n \t securityTokenRef.setAttributeNS(SAMLConstants.NS_XMLNS,\n \t\t SAMLConstants.TAG_XMLNS_SEC, SAMLConstants.NS_SEC);\n \t securityTokenRef.setAttributeNS(null, SAMLConstants.TAG_USAGE,\n \t\t SAMLConstants.TAG_SEC_MESSAGEAUTHENTICATION);\n \n Element bsf = (Element)root.getElementsByTagNameNS(wsseNS,\n SAMLConstants.BINARYSECURITYTOKEN).item(0);\n \n \t String certId = bsf.getAttributeNS(wsuNS, SAMLConstants.TAG_ID);\n \n \t Element reference =\tdoc.createElementNS(wsseNS,\n SAMLConstants.TAG_REFERENCE);\n \t securityTokenRef.appendChild(reference);\n \t reference.setAttributeNS(null, SAMLConstants.TAG_URI, \"#\"+certId);\n \n signature.sign(privateKey); \n \n } catch (Exception e) { \n SAMLUtilsCommon.debug.error(\"signWithWSSX509TokenProfile\" +\n \" Exception: \", e);\n throw new XMLSignatureException(e.getMessage()); \n } \n \n return (signature.getElement()); \n }", "@SuppressWarnings(\"deprecation\")\n\tpublic static X509Certificate GenerateASelfSignedCerteficate(X500Principal dnName1,\n\t \t\tX500Principal dnName2, BigInteger serialNumber ,PublicKey mypublicKey,\n\t \t\tPrivateKey myprivateKey, KeyUsage Keyus ) \n\t throws CertificateEncodingException, InvalidKeyException, IllegalStateException, NoSuchProviderException, \n\t NoSuchAlgorithmException, SignatureException\n\t {\n\t\t\t X509V3CertificateGenerator certGen = new X509V3CertificateGenerator();\n\t\t\n //Add the serial number\n\t\t\t certGen.setSerialNumber(serialNumber);\n\t\t\t certGen.setSerialNumber(BigInteger.valueOf(System.currentTimeMillis()));\n\t\t\t \n\t\t\t //Issuer Id extension \n\t\t certGen.setIssuerDN(dnName1); \n\t\t \n\t\t //Subject DN extension\n\t\t\t certGen.setSubjectDN(dnName2);\n\t\t\t \n\t\t\t //Not before \n\t\t\t certGen.setNotBefore(new Date(System.currentTimeMillis() - 24 * 60 * 60 * 1000));\n\t\t\t \n\t\t\t // Not After\n\t\t\t certGen.setNotAfter(new Date(System.currentTimeMillis() + 2 * 365 * 24 * 60 * 60 * 1000));\n\t\t\t \n\t\t\t //Set the public Key\n\t\t\t certGen.setPublicKey(mypublicKey);\n\t\t\t \n\t\t\t //Sign the certificate\n\t\t\t certGen.setSignatureAlgorithm(\"SHA256WithRSAEncryption\");\n\t\t\t certGen.addExtension(X509Extensions.KeyUsage, true, Keyus);\n\t\t\t certGen.addExtension(X509Extensions.ExtendedKeyUsage, true, new ExtendedKeyUsage(KeyPurposeId.id_kp_serverAuth));\n\t \t\n\t\t\t\n\t\t\t \n\t\t\t // finally, sign the certificate with the private key of the same KeyPair\n\t\t\t Security.addProvider(new BouncyCastleProvider());\n\t\t\t \n\t\t\t X509Certificate certroot = certGen.generate(myprivateKey,\"BC\");\n\t\t\t \n\t\t\t \n\t \treturn certroot;\n\t }", "@Override\n\tprotected AbstractAlgorithm<ISDSRPacket> generateSignatureAlgorithm(HashMap<String, String> params) {\n\t\tparams.put(\"uid\", this.addr.getHostAddress());\n\t\tSystem.out.println(\"uid=\" + this.addr.getHostAddress());\n\t\t\n\t\treturn new IBSASalgorithm(params);\n\t}", "public static String coord2hexwkb(IomObject value)\n\tthrows Iox2jtsException\n\t{\n\t\tif(value!=null){\n\t\t\tcom.vividsolutions.jts.geom.Geometry geom = new com.vividsolutions.jts.geom.GeometryFactory().createPoint(coord2JTS(value));\n\t\t\tbyte bv[]=new com.vividsolutions.jts.io.WKBWriter().write(geom);\n\t\t\treturn com.vividsolutions.jts.io.WKBWriter.bytesToHex(bv);\n\t\t}\n\t\treturn null;\n\t}", "void setNcbieaa(java.math.BigInteger ncbieaa);", "@DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 13:00:13.509 -0500\", hash_original_method = \"F3F9FDCE1484676B88E382A49EC8877F\", hash_generated_method = \"E98CBD85708A9D853A0E84BBC5FA6CF1\")\n \npublic static ASN1Object fromByteArray(byte[] data)\n throws IOException\n {\n ASN1InputStream aIn = new ASN1InputStream(data);\n\n try\n {\n return (ASN1Object)aIn.readObject();\n }\n catch (ClassCastException e)\n {\n throw new IOException(\"cannot recognise object in stream\"); \n }\n }", "private byte[] RIPEMD160(byte[] tobeHashed){\r\n\tRIPEMD160Digest digester = new RIPEMD160Digest();\r\n\tbyte[] retValue=new byte[digester.getDigestSize()]; \r\n\tdigester.update(tobeHashed, 0, tobeHashed.length); \r\n\tdigester.doFinal(retValue, 0);\t \r\n\tbyte[] version = new byte[]{0x00};\r\n\treturn concateByteArray(version,retValue);\t\r\n}", "public SignatureAlgorithm(Element paramElement, String paramString, boolean paramBoolean) throws XMLSecurityException {\n/* 124 */ super(paramElement, paramString);\n/* 125 */ this.algorithmURI = getURI();\n/* */ \n/* 127 */ Attr attr = paramElement.getAttributeNodeNS(null, \"Id\");\n/* 128 */ if (attr != null) {\n/* 129 */ paramElement.setIdAttributeNode(attr, true);\n/* */ }\n/* */ \n/* 132 */ if (paramBoolean && (\"http://www.w3.org/2001/04/xmldsig-more#hmac-md5\".equals(this.algorithmURI) || \"http://www.w3.org/2001/04/xmldsig-more#rsa-md5\"\n/* 133 */ .equals(this.algorithmURI))) {\n/* 134 */ Object[] arrayOfObject = { this.algorithmURI };\n/* */ \n/* 136 */ throw new XMLSecurityException(\"signature.signatureAlgorithm\", arrayOfObject);\n/* */ } \n/* */ \n/* 139 */ this.signatureAlgorithm = getSignatureAlgorithmSpi(this.algorithmURI);\n/* 140 */ this.signatureAlgorithm.engineGetContextFromElement(this.constructionElement);\n/* */ }", "public org.w3c.dom.Element signXML(org.w3c.dom.Document doc, \n java.lang.String certAlias, \n java.lang.String algorithm, \n java.lang.String id) \n throws XMLSignatureException {\n return signXML(doc, certAlias, algorithm, DEF_ID_ATTRIBUTE,\n \t\t\t\tid, false, null);\n }", "private static String calculateStringToSignV2(\n Map<String, String> parameters, String serviceUrl)\n throws SignatureException, URISyntaxException {\n // Sort the parameters alphabetically by storing\n // in TreeMap structure\n Map<String, String> sorted = new TreeMap<String, String>();\n sorted.putAll(parameters);\n\n // Set endpoint value\n URI endpoint = new URI(serviceUrl.toLowerCase());\n\n // Create flattened (String) representation\n StringBuilder data = new StringBuilder();\n data.append(\"POST\\n\");\n data.append(endpoint.getHost());\n data.append(\"\\n/\");\n data.append(\"\\n\");\n\n Iterator<Map.Entry<String, String>> pairs =\n sorted.entrySet().iterator();\n while (pairs.hasNext()) {\n Map.Entry<String, String> pair = pairs.next();\n if (pair.getValue() != null) {\n data.append(pair.getKey() + \"=\" + pair.getValue());\n } else {\n data.append(pair.getKey() + \"=\");\n }\n\n // Delimit parameters with ampersand (&)\n if (pairs.hasNext()) {\n data.append(\"&\");\n }\n }\n\n return data.toString();\n }", "public static HashSet<Integer> buildASNSet(HashSet<AS> asSet) {\n HashSet<Integer> outSet = new HashSet<Integer>();\n for (AS tAS : asSet) {\n outSet.add(tAS.getASN());\n }\n return outSet;\n }", "public DsSipAcceptEncodingHeader(byte[] value)\n throws DsSipParserException, DsSipParserListenerException {\n this(value, 0, value.length);\n }", "public org.w3c.dom.Element signWithBinarySecurityToken(\n org.w3c.dom.Document doc,\n java.security.cert.Certificate cert,\n java.lang.String algorithm,\n java.util.List ids,\n java.lang.String referenceType)\n throws XMLSignatureException {\n return null;\n }", "void setNcbistdaa(java.math.BigInteger ncbistdaa);", "java.math.BigInteger getNcbieaa();", "public void testEncryptionSHA1Symmetric() throws Exception {\n WSSecEncrypt builder = new WSSecEncrypt();\n builder.setKeyIdentifierType(WSConstants.ENCRYPTED_KEY_SHA1_IDENTIFIER);\n builder.setSymmetricKey(key);\n builder.setEncryptSymmKey(false);\n builder.setUseKeyIdentifier(true);\n \n LOG.info(\"Before Encrypting EncryptedKeySHA1....\");\n Document doc = unsignedEnvelope.getAsDocument();\n WSSecHeader secHeader = new WSSecHeader();\n secHeader.insertSecurityHeader(doc); \n Document encryptedDoc = builder.build(doc, crypto, secHeader);\n \n String outputString = \n org.apache.ws.security.util.XMLUtils.PrettyDocumentToString(encryptedDoc);\n if (LOG.isDebugEnabled()) {\n LOG.debug(\"Encrypted message with ENCRYPTED_KEY_SHA1_IDENTIFIER:\");\n LOG.debug(outputString);\n }\n assertTrue(outputString.indexOf(\"#EncryptedKeySHA1\") != -1);\n \n LOG.info(\"After Encrypting EncryptedKeySHA1....\");\n verify(encryptedDoc);\n }", "public void testPublicKeyECFields() throws Exception {\r\n CVCertificateBody bodyIS = createBody(AuthorizationRoleEnum.IS);\r\n CVCertificateBody bodyCVCA = createBody(AuthorizationRoleEnum.CVCA);\r\n\r\n CVCObject cvcObjIS = CertificateParser.parseCVCObject(bodyIS.getDEREncoded());\r\n CVCObject cvcObjCVCA = CertificateParser.parseCVCObject(bodyCVCA.getDEREncoded());\r\n assertTrue(\"CVCObj not a CVCertificateBody\", cvcObjIS.getTag()==CVCTagEnum.CERTIFICATE_BODY);\r\n\r\n // IS certificate must contain only two EC public key subfields\r\n PublicKeyEC ecKey1 = (PublicKeyEC)((CVCertificateBody)cvcObjIS).getPublicKey();\r\n assertEquals(\"Number of PublicKey subfields\", 2, ecKey1.getSubfields().size());\r\n\r\n // CVCA certificate must contain all eight EC public key subfields\r\n PublicKeyEC ecKey2 = (PublicKeyEC)((CVCertificateBody)cvcObjCVCA).getPublicKey();\r\n assertEquals(\"Number of PublicKey subfields\", 8, ecKey2.getSubfields().size());\r\n\r\n\r\n // Create a request\r\n KeyPairGenerator keyGen = KeyPairGenerator.getInstance(\"ECDSA\", \"BC\");\r\n keyGen.initialize(256, new SecureRandom());\r\n KeyPair keyPair = keyGen.generateKeyPair();\r\n CVCertificate req = CertificateGenerator.createRequest(\r\n keyPair, \r\n \"SHA256WITHECDSA\",\r\n new HolderReferenceField(\"SE\", \"KLMNOPQ\", \"00001\")\r\n );\r\n // All EC public key subfields must be present in a CVC-request\r\n CVCPublicKey pubKey = req.getCertificateBody().getPublicKey();\r\n assertEquals(\"Number of EC subfields\", 8, pubKey.getSubfields().size());\r\n }", "public static byte[] createEnveloped(\n X509Certificate encryptionCert,\n byte[] message)\n throws GeneralSecurityException, CMSException, IOException\n {\n ByteArrayOutputStream bOut = new ByteArrayOutputStream();\n SMIMEEnvelopedWriter.Builder envBldr = new SMIMEEnvelopedWriter.Builder();\n\n JcaAlgorithmParametersConverter paramsConverter =\n new JcaAlgorithmParametersConverter();\n\n AlgorithmIdentifier oaepParams = paramsConverter.getAlgorithmIdentifier(\n PKCSObjectIdentifiers.id_RSAES_OAEP,\n new OAEPParameterSpec(\"SHA-256\",\n \"MGF1\", new MGF1ParameterSpec(\"SHA-256\"),\n PSource.PSpecified.DEFAULT));\n\n envBldr.addRecipientInfoGenerator(\n new JceKeyTransRecipientInfoGenerator(\n encryptionCert, oaepParams).setProvider(\"BC\"));\n\n SMIMEEnvelopedWriter sigWrt = envBldr.build(bOut,\n new JceCMSContentEncryptorBuilder(CMSAlgorithm.AES256_CBC)\n .setProvider(\"BC\")\n .build());\n\n OutputStream out = sigWrt.getContentStream();\n\n out.write(message);\n\n out.close();\n\n return bOut.toByteArray();\n }", "public com.opentext.bn.converters.avro.entity.DocumentEvent.Builder setSenderAddressEnvelopeLevel1(java.lang.String value) {\n validate(fields()[25], value);\n this.senderAddressEnvelopeLevel1 = value;\n fieldSetFlags()[25] = true;\n return this;\n }", "public Binary suma1(){\n\n java.lang.String tosum1to;\n if (!this.toString().equals(\"0\")){\n if (java.lang.String.valueOf(this.getValue().charAt(0)).equals(\"1\") && java.lang.String.valueOf(this.getValue().charAt(1)).equals(\"1\")){\n tosum1to= this.toString().substring(1);\n }\n else {\n tosum1to= this.toString();\n }\n }\n else {\n tosum1to= this.toString();\n }\n int sumlength= tosum1to.length();\n java.lang.String retstring= \"\";\n int i=1;\n for (; i<= sumlength; i++){\n if (java.lang.String.valueOf(tosum1to.charAt(sumlength - i)).equals(\"1\")) {\n retstring+= \"0\";\n }\n else {\n retstring+= \"1\";\n i++;\n break;\n }\n }\n for (; i<= sumlength; i++){\n retstring+= java.lang.String.valueOf(tosum1to.charAt(sumlength-i));\n }\n if (this.sign().equals(\"0\") && java.lang.String.valueOf(retstring.charAt(sumlength-1)).equals(\"1\")) {\n retstring+= \"0\";\n }\n return new Binary(reverse(retstring));\n }", "public void createValue() {\r\n value = new qa.gov.mol.ProcessAcknowledgment();\r\n }", "public ImplicitCertificateGenerator(SignatureAlgorithms algorithm, byte[] parameters)\n throws IllegalArgumentException, UnsupportedOperationException, NoSuchAlgorithmException,\n NoSuchProviderException {\n if (algorithm == null) {\n throw new IllegalArgumentException(\"Missing algorithm OID\");\n } else if (!algorithm.isEcqv()) {\n throw new UnsupportedOperationException(\n \"This provider can only be used with ECQV-based signature types\");\n }\n\n X962Parameters x9params = new X962Parameters(new ASN1ObjectIdentifier(algorithm.getSecOid()));\n\n digest = MessageDigest.getInstance(\n algorithm.getDigestAlgorithm().getDigestName(), BouncyCastleProvider.PROVIDER_NAME);\n curveParameters =\n ECNamedCurveTable.getParameterSpec(algorithm.getCryptoAlgorithm().getAlgorithmName());\n algorithmId =\n new AlgorithmIdentifier(X9ObjectIdentifiers.id_ecPublicKey, x9params.toASN1Primitive());\n }", "private static ECDomainParameters init(String name) {\n BigInteger p = fromHex(\"FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFEE37\");\r\n BigInteger a = ECConstants.ZERO;\r\n BigInteger b = BigInteger.valueOf(3);\r\n byte[] S = null;\r\n BigInteger n = fromHex(\"FFFFFFFFFFFFFFFFFFFFFFFE26F2FC170F69466A74DEFD8D\");\r\n BigInteger h = BigInteger.valueOf(1);\r\n\r\n ECCurve curve = new ECCurve.Fp(p, a, b);\r\n //ECPoint G = curve.decodePoint(Hex.decode(\"03\"\r\n //+ \"DB4FF10EC057E9AE26B07D0280B7F4341DA5D1B1EAE06C7D\"));\r\n ECPoint G = curve.decodePoint(Hex.decode(\"04\"\r\n + \"DB4FF10EC057E9AE26B07D0280B7F4341DA5D1B1EAE06C7D\"\r\n + \"9B2F2F6D9C5628A7844163D015BE86344082AA88D95E2F9D\"));\r\n\r\n\t\treturn new NamedECDomainParameters(curve, G, n, h, S, name);\r\n\t}", "public java.math.BigInteger[] decode(byte[] r1) throws java.io.IOException {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e9 in method: com.android.org.bouncycastle.jcajce.provider.asymmetric.ec.SignatureSpi.StdDSAEncoder.decode(byte[]):java.math.BigInteger[], dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.android.org.bouncycastle.jcajce.provider.asymmetric.ec.SignatureSpi.StdDSAEncoder.decode(byte[]):java.math.BigInteger[]\");\n }", "private static byte[] createDEROctet(int usage)\n\t{\n\t\treturn new KeyUsage(usage).getDEREncoded();\n\t}", "public boolean verifiySignature() {\n\t\tString data = StringUtil.getStringFromKey(sender) + StringUtil.getStringFromKey(reciepient)\n\t\t\t\t+ Float.toString(value);\n\t\treturn StringUtil.verifyECDSASig(sender, data, signature);\n\t}", "public void generateSignature(PrivateKey privateKey) {\n\t\tString data = StringUtil.getStringFromKey(sender) + StringUtil.getStringFromKey(reciepient)\n\t\t\t\t+ Float.toString(value);\n\t\tsignature = StringUtil.applyECDSASig(privateKey, data);\n\t}", "private byte[][] ECDSAgeneratePublicAndPrivateKey(){\r\n int length = 0;\r\n byte[][] keys;\r\n \r\n do{\r\n \r\n\tECKeyPairGenerator gen = new ECKeyPairGenerator();\r\n\tSecureRandom secureRandom = new SecureRandom();\r\n X9ECParameters secnamecurves = SECNamedCurves.getByName(\"secp256k1\");\r\n\tECDomainParameters ecParams = new ECDomainParameters(secnamecurves.getCurve(), secnamecurves.getG(), secnamecurves.getN(), secnamecurves.getH());\r\n\tECKeyGenerationParameters keyGenParam = new ECKeyGenerationParameters(ecParams, secureRandom);\r\n\tgen.init(keyGenParam);\r\n\tAsymmetricCipherKeyPair kp = gen.generateKeyPair();\r\n\tECPrivateKeyParameters privatekey = (ECPrivateKeyParameters)kp.getPrivate();\r\n\tECPoint dd = secnamecurves.getG().multiply(privatekey.getD());\r\n\tbyte[] publickey=new byte[65];\r\n\tSystem.arraycopy(dd.getY().toBigInteger().toByteArray(), 0, publickey, 64-dd.getY().toBigInteger().toByteArray().length+1, dd.getY().toBigInteger().toByteArray().length);\r\n\tSystem.arraycopy(dd.getX().toBigInteger().toByteArray(), 0, publickey, 32-dd.getX().toBigInteger().toByteArray().length+1, dd.getX().toBigInteger().toByteArray().length);\r\n\tpublickey[0]=4;\r\n length = privatekey.getD().toByteArray().length;\r\n keys = new byte[][]{privatekey.getD().toByteArray(),publickey};\r\n \r\n }while(length != 32);\r\n\treturn keys;\r\n}", "public X509KeyUsage(DERSequence a_extension)\n\t{\n\t\tsuper(a_extension);\n\t\tcreateValue();\n\t}", "BlsPoint sign(BigInteger privateKey, byte[] data);" ]
[ "0.6162997", "0.57377565", "0.54779273", "0.52519107", "0.5106254", "0.51000893", "0.50536865", "0.5025481", "0.50198585", "0.49567202", "0.4939543", "0.493072", "0.4889353", "0.48608252", "0.48152313", "0.47989672", "0.4783343", "0.475844", "0.47308806", "0.47300684", "0.4709257", "0.46833485", "0.46779945", "0.46435115", "0.4637783", "0.46223533", "0.46090052", "0.45914727", "0.4585953", "0.45789504", "0.45604485", "0.45591754", "0.45432028", "0.45267028", "0.45256886", "0.45142037", "0.45121562", "0.45014527", "0.4497052", "0.44901678", "0.44782737", "0.44771972", "0.44759664", "0.44585773", "0.44554535", "0.4427238", "0.44272342", "0.44004315", "0.43967065", "0.4392911", "0.4385405", "0.43796346", "0.43790743", "0.43766367", "0.43651974", "0.4364439", "0.43617743", "0.43479428", "0.4342205", "0.4339044", "0.4329529", "0.43227494", "0.43155843", "0.43132836", "0.4298077", "0.4296925", "0.42945275", "0.42925128", "0.428414", "0.42825627", "0.4280754", "0.427456", "0.42700878", "0.42669204", "0.42591614", "0.42508462", "0.4235717", "0.42323923", "0.42123735", "0.420559", "0.4190324", "0.41802973", "0.41793427", "0.41790095", "0.41701034", "0.41694275", "0.41691914", "0.41672283", "0.41648287", "0.4164565", "0.41638303", "0.41601866", "0.41528925", "0.4145002", "0.4142401", "0.4135275", "0.41294977", "0.4128921", "0.4119099", "0.41182697" ]
0.66665566
0
todo check CTCI solution and modify the code
public static String compress(String str) { if (str.length() <= 1) return str; StringBuilder sb = new StringBuilder(); int currentCharacterCounter = 1; char previousCharacter = str.charAt(0); sb.append(previousCharacter); for(int i = 1; i < str.length(); i ++) { char currentCharacter = str.charAt(i); if(currentCharacter != previousCharacter) { previousCharacter = currentCharacter; sb.append(currentCharacterCounter).append(previousCharacter); currentCharacterCounter = 1; } else { currentCharacterCounter++; } } sb.append(currentCharacterCounter); String compressedString = sb.toString(); return compressedString.length() < str.length() ? compressedString : str; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void cajas() {\n\t\t\n\t}", "private void kk12() {\n\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "public void mo12628c() {\n }", "protected void mo6255a() {\n }", "public void mo38117a() {\n }", "public void solution() {\n\t\t\n\t}", "void mo57278c();", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "public void mo6081a() {\n }", "protected OpinionFinding() {/* intentionally empty block */}", "@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void compute() {\n\t\t\r\n\t}", "void mo21072c();", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "public void smell() {\n\t\t\n\t}", "public void redibujarAlgoformers() {\n\t\t\n\t}", "private void poetries() {\n\n\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\n\tprotected void logic() {\n\n\t}", "private void b044904490449щ0449щ() {\n /*\n r7 = this;\n r0 = new rrrrrr.ccrcrc;\n r1 = new java.lang.StringBuilder;\n r1.<init>();\n r2 = r7.bнн043Dннн;\n r2 = com.immersion.aws.analytics.ImmrAnalytics.b044C044C044C044Cьь(r2);\n r2 = r2.getFilesDir();\n r1 = r1.append(r2);\n r2 = java.io.File.separator;\n r1 = r1.append(r2);\n L_0x001b:\n r2 = 1;\n switch(r2) {\n case 0: goto L_0x001b;\n case 1: goto L_0x0024;\n default: goto L_0x001f;\n };\n L_0x001f:\n r2 = 0;\n switch(r2) {\n case 0: goto L_0x0024;\n case 1: goto L_0x001b;\n default: goto L_0x0023;\n };\n L_0x0023:\n goto L_0x001f;\n L_0x0024:\n r2 = \"3HC4C-01.txt\";\n r1 = r1.append(r2);\n r1 = r1.toString();\n r0.<init>(r1);\n r0.load();\n L_0x0034:\n r1 = r0.size();\n if (r1 <= 0) goto L_0x007a;\n L_0x003a:\n r1 = r0.peek();\n r2 = new rrrrrr.rcccrr;\n r2.<init>();\n r3 = r7.bнн043Dннн;\n r3 = com.immersion.aws.analytics.ImmrAnalytics.b044Cь044C044Cьь(r3);\n monitor-enter(r3);\n r4 = r7.bнн043Dннн;\t Catch:{ all -> 0x0074 }\n r4 = com.immersion.aws.analytics.ImmrAnalytics.bь044C044C044Cьь(r4);\t Catch:{ all -> 0x0074 }\n r4 = r4.bЛ041B041BЛ041BЛ;\t Catch:{ all -> 0x0074 }\n r5 = r7.bнн043Dннн;\t Catch:{ all -> 0x0074 }\n r5 = com.immersion.aws.analytics.ImmrAnalytics.bь044C044C044Cьь(r5);\t Catch:{ all -> 0x0074 }\n r5 = r5.b041B041B041BЛ041BЛ;\t Catch:{ all -> 0x0074 }\n r6 = r7.bнн043Dннн;\t Catch:{ all -> 0x0074 }\n r6 = com.immersion.aws.analytics.ImmrAnalytics.bь044C044C044Cьь(r6);\t Catch:{ all -> 0x0074 }\n r6 = r6.bЛЛЛ041B041BЛ;\t Catch:{ all -> 0x0074 }\n monitor-exit(r3);\t Catch:{ all -> 0x0074 }\n r1 = r2.sendHttpRequestFromCache(r4, r5, r6, r1);\n if (r1 == 0) goto L_0x0077;\n L_0x0069:\n if (r4 == 0) goto L_0x0077;\n L_0x006b:\n if (r5 == 0) goto L_0x0077;\n L_0x006d:\n r0.remove();\n r0.save();\n goto L_0x0034;\n L_0x0074:\n r0 = move-exception;\n monitor-exit(r3);\t Catch:{ all -> 0x0074 }\n throw r0;\n L_0x0077:\n r0.save();\n L_0x007a:\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: rrrrrr.cccccr.b044904490449щ0449щ():void\");\n }", "@SuppressWarnings(\"unused\")\r\n private void findAbdomenVOI() {\r\n \r\n // find the center of mass of the single label object in the sliceBuffer (abdomenImage)\r\n findAbdomenCM();\r\n int xcm = centerOfMass[0];\r\n int ycm = centerOfMass[1];\r\n\r\n ArrayList<Integer> xValsAbdomenVOI = new ArrayList<Integer>();\r\n ArrayList<Integer> yValsAbdomenVOI = new ArrayList<Integer>();\r\n\r\n // angle in radians\r\n double angleRad;\r\n \r\n for (int angle = 39; angle < 45; angle += 3) {\r\n int x, y, yOffset;\r\n double scaleFactor; // reduces the number of trig operations that must be performed\r\n \r\n angleRad = Math.PI * angle / 180.0;\r\n if (angle > 315 || angle <= 45) {\r\n scaleFactor = Math.tan(angleRad);\r\n x = xDim;\r\n y = ycm;\r\n yOffset = y * xDim;\r\n while (x > xcm && sliceBuffer[yOffset + x] != abdomenTissueLabel) {\r\n x--;\r\n y = ycm - (int)((x - xcm) * scaleFactor);\r\n yOffset = y * xDim;\r\n }\r\n xValsAbdomenVOI.add(x);\r\n yValsAbdomenVOI.add(y);\r\n \r\n } else if (angle > 45 && angle <= 135) {\r\n scaleFactor = (Math.tan((Math.PI / 2.0) - angleRad));\r\n x = xcm;\r\n y = 0;\r\n yOffset = y * xDim;\r\n while (y < ycm && sliceBuffer[yOffset + x] != abdomenTissueLabel) {\r\n y++;\r\n x = xcm + (int)((ycm - y) * scaleFactor);\r\n yOffset = y * xDim;\r\n }\r\n xValsAbdomenVOI.add(x);\r\n yValsAbdomenVOI.add(y);\r\n \r\n } else if (angle > 135 && angle <= 225) {\r\n scaleFactor = Math.tan(Math.PI - angleRad);\r\n x = 0;\r\n y = ycm;\r\n yOffset = y * xDim;\r\n while (x < xcm && sliceBuffer[yOffset + x] != abdomenTissueLabel) {\r\n x++;\r\n y = ycm - (int)((xcm - x) * scaleFactor);\r\n yOffset = y * xDim;\r\n }\r\n xValsAbdomenVOI.add(x);\r\n yValsAbdomenVOI.add(y);\r\n \r\n } else if (angle > 225 && angle <= 315) {\r\n scaleFactor = Math.tan((3.0 * Math.PI / 2.0) - angleRad);\r\n x = xcm;\r\n y = yDim;\r\n yOffset = y * xDim;\r\n while (y < yDim && sliceBuffer[yOffset + x] == abdomenTissueLabel) {\r\n y--;\r\n x = xcm - (int)((y - ycm) * scaleFactor);\r\n yOffset = y * xDim;\r\n }\r\n xValsAbdomenVOI.add(x);\r\n yValsAbdomenVOI.add(y);\r\n \r\n }\r\n } // end for (angle = 0; ...\r\n \r\n int[] x1 = new int[xValsAbdomenVOI.size()];\r\n int[] y1 = new int[xValsAbdomenVOI.size()];\r\n int[] z1 = new int[xValsAbdomenVOI.size()];\r\n for(int idx = 0; idx < xValsAbdomenVOI.size(); idx++) {\r\n x1[idx] = xValsAbdomenVOI.get(idx);\r\n y1[idx] = xValsAbdomenVOI.get(idx);\r\n z1[idx] = 0;\r\n }\r\n\r\n // make the VOI's and add the points to them\r\n abdomenVOI = new VOI((short)0, \"Abdomen\");\r\n abdomenVOI.importCurve(x1, y1, z1);\r\n\r\n\r\n }", "public void mo4359a() {\n }", "void mo67924c();", "public final void mo51373a() {\n }", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\r\n\tprotected void processCost() {\n\r\n\t}", "public abstract void mo27385c();", "void aprovarAnalise();", "public void mo1531a() {\n }", "@Override\n public void computeSatisfaction() {\n\n }", "void mo17012c();", "private void generateSolution() {\n\t\t// TODO\n\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "private void strin() {\n\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\n protected long getTestSolution() {\n return 100024;\n }", "private stendhal() {\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tprotected void interr() {\n\t}", "void mo72114c();", "abstract String mo1748c();", "public void mo12930a() {\n }", "public void mo9848a() {\n }", "public abstract void mo70713b();", "@Override\r\n\tprotected void doF8() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "private void findVOIs(short[] cm, ArrayList<Integer> xValsAbdomenVOI, ArrayList<Integer> yValsAbdomenVOI, short[] srcBuffer, ArrayList<Integer> xValsVisceralVOI, ArrayList<Integer> yValsVisceralVOI) {\r\n \r\n // angle in radians\r\n double angleRad;\r\n \r\n // the intensity profile along a radial line for a given angle\r\n short[] profile;\r\n \r\n // the x, y location of all the pixels along a radial line for a given angle\r\n int[] xLocs;\r\n int[] yLocs;\r\n try {\r\n profile = new short[xDim];\r\n xLocs = new int[xDim];\r\n yLocs = new int[xDim];\r\n } catch (OutOfMemoryError error) {\r\n System.gc();\r\n MipavUtil.displayError(\"findAbdomenVOI(): Can NOT allocate profile\");\r\n return;\r\n }\r\n \r\n // the number of pixels along the radial line for a given angle\r\n int count;\r\n \r\n // The threshold value for muscle as specified in the JCAT paper\r\n int muscleThresholdHU = 16;\r\n \r\n for (int angle = 0; angle < 360; angle += angularResolution) {\r\n count = 0;\r\n int x = cm[0];\r\n int y = cm[1];\r\n int yOffset = y * xDim;\r\n double scaleFactor; // reduces the number of trig operations that must be performed\r\n \r\n angleRad = Math.PI * angle / 180.0;\r\n if (angle > 315 || angle <= 45) {\r\n // increment x each step\r\n scaleFactor = Math.tan(angleRad);\r\n while (x < xDim && sliceBuffer[yOffset + x] == abdomenTissueLabel) {\r\n // store the intensity and location of each point along the radial line\r\n profile[count] = srcBuffer[yOffset + x];\r\n xLocs[count] = x;\r\n yLocs[count] = y;\r\n count++;\r\n \r\n // walk out in x and compute the value of y for the given radial line\r\n x++;\r\n y = cm[1] - (int)((x - cm[0]) * scaleFactor);\r\n yOffset = y * xDim;\r\n }\r\n \r\n // x, y is a candidate abdomen VOI point\r\n // if there are more abdomenTissueLabel pixels along the radial line,\r\n // then we stopped prematurely\r\n \r\n xValsAbdomenVOI.add(x);\r\n yValsAbdomenVOI.add(y);\r\n \r\n // profile contains all the source image intensity values along the line from\r\n // the center-of-mass to the newly computed abdomen VOI point\r\n // Find where the subcutaneous fat ends and the muscle starts\r\n \r\n // start at the end of the profile array since its order is from the\r\n // center-of-mass to the abdomen voi point\r\n \r\n int idx = count - 5; // skip over the skin\r\n while (idx >= 0 && profile[idx] < muscleThresholdHU) {\r\n idx--;\r\n }\r\n if (idx <= 0) {\r\n MipavUtil.displayError(\"findAbdomenVOI(): Can NOT find visceral cavity in the intensity profile\");\r\n break;\r\n }\r\n xValsVisceralVOI.add(xLocs[idx]);\r\n yValsVisceralVOI.add(yLocs[idx]);\r\n \r\n } else if (angle > 45 && angle <= 135) {\r\n // decrement y each step\r\n scaleFactor = (Math.tan((Math.PI / 2.0) - angleRad));\r\n while (y > 0 && sliceBuffer[yOffset + x] == abdomenTissueLabel) {\r\n // store the intensity and location of each point along the radial line\r\n profile[count] = srcBuffer[yOffset + x];\r\n xLocs[count] = x;\r\n yLocs[count] = y;\r\n count++;\r\n \r\n // walk to the top of the image and compute values of x for the given radial line\r\n y--;\r\n x = cm[0] + (int)((cm[1] - y) * scaleFactor);\r\n yOffset = y * xDim;\r\n }\r\n xValsAbdomenVOI.add(x);\r\n yValsAbdomenVOI.add(y);\r\n \r\n // profile contains all the source image intensity values along the line from\r\n // the center-of-mass to the newly computed abdomen VOI point\r\n // Find where the subcutaneous fat ends\r\n int idx = count - 5; // skip over the skin\r\n while (idx >= 0 && profile[idx] < muscleThresholdHU) {\r\n idx--;\r\n }\r\n if (idx == 0) {\r\n MipavUtil.displayError(\"findAbdomenVOI(): Can NOT find visceral cavity in the intensity profile\");\r\n return;\r\n }\r\n xValsVisceralVOI.add(xLocs[idx]);\r\n yValsVisceralVOI.add(yLocs[idx]);\r\n \r\n } else if (angle > 135 && angle <= 225) {\r\n // decrement x each step\r\n scaleFactor = Math.tan(Math.PI - angleRad);\r\n while (x > 0 && sliceBuffer[yOffset + x] == abdomenTissueLabel) {\r\n // store the intensity and location of each point along the radial line\r\n profile[count] = srcBuffer[yOffset + x];\r\n xLocs[count] = x;\r\n yLocs[count] = y;\r\n count++;\r\n \r\n x--;\r\n y = cm[1] - (int)((cm[0] - x) * scaleFactor);\r\n yOffset = y * xDim;\r\n }\r\n xValsAbdomenVOI.add(x);\r\n yValsAbdomenVOI.add(y);\r\n \r\n // profile contains all the source image intensity values along the line from\r\n // the center-of-mass to the newly computed abdomen VOI point\r\n // Find where the subcutaneous fat ends\r\n int idx = count - 5; // skip over the skin\r\n while (idx >= 0 && profile[idx] < muscleThresholdHU) {\r\n idx--;\r\n }\r\n if (idx == 0) {\r\n MipavUtil.displayError(\"findAbdomenVOI(): Can NOT find visceral cavity in the intensity profile\");\r\n return;\r\n }\r\n xValsVisceralVOI.add(xLocs[idx]);\r\n yValsVisceralVOI.add(yLocs[idx]);\r\n\r\n } else if (angle > 225 && angle <= 315) {\r\n // increment y each step\r\n scaleFactor = Math.tan((3.0 * Math.PI / 2.0) - angleRad);\r\n while (y < yDim && sliceBuffer[yOffset + x] == abdomenTissueLabel) {\r\n // store the intensity and location of each point along the radial line\r\n profile[count] = srcBuffer[yOffset + x];\r\n xLocs[count] = x;\r\n yLocs[count] = y;\r\n count++;\r\n \r\n y++;\r\n x = cm[0] - (int)((y - cm[1]) * scaleFactor);\r\n yOffset = y * xDim;\r\n }\r\n xValsAbdomenVOI.add(x);\r\n yValsAbdomenVOI.add(y);\r\n \r\n // profile contains all the source image intensity values along the line from\r\n // the center-of-mass to the newly computed abdomen VOI point\r\n // Find where the subcutaneous fat ends\r\n int idx = count - 5; // skip over the skin\r\n while (idx >= 0 && profile[idx] < muscleThresholdHU) {\r\n idx--;\r\n }\r\n if (idx == 0) {\r\n MipavUtil.displayError(\"findAbdomenVOI(): Can NOT find visceral cavity in the intensity profile\");\r\n return;\r\n }\r\n xValsVisceralVOI.add(xLocs[idx]);\r\n yValsVisceralVOI.add(yLocs[idx]);\r\n\r\n }\r\n } // end for (angle = 0; ...\r\n\r\n }", "void mo88524c();", "@Override\r\n\tpublic void solve() {\n\t\t\r\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "void mo80457c();", "void mo57277b();", "public static void main(String[] args) {\n String filename = \"\";\n Node root,standard_root;\n CseElement result;\n HashMap<Integer,ArrayList<CseElement>> control_structures;\n //Initialize variable DEBUG. True when debugging.\n boolean DEBUG = false;\n ArrayList<Node> outputs;\n //Get the filename from argument\n if(DEBUG == false & args.length ==0){\n System.out.println(\"Filename expected!..\");\n }\n else{\n filename = args[0];\n \n \n //Create the AST tree from user input file\n outputs = IOEditor.getList(filename);\n root = Tree.createTree(outputs);\n if(DEBUG == true){\n //Print and check the AST when debugging\n Tree.print(root);\n System.out.println(\"\\n\"); \n }\n //Get the Standaraize tree.\n standard_root = Tree.getST(root);\n if(DEBUG == true){\n //Print and check the standarize tree when debugging\n Tree.print(standard_root);\n }\n //Create the control structures for rpal code\n control_structures = Tree.preOrderTraversal(root);\n if(DEBUG == true){\n //Print and check the control structures when debugging\n System.out.println(control_structures);\n System.out.println(\"\");\n }\n // Evaluate the RPAL code using CSE machine\n CseMachine cm = new CseMachine(control_structures);\n try {\n //Get the resulted output\n result = cm.apply(DEBUG);\n if(result == null){\n if(DEBUG == true){\n //Check the result when debugging\n System.out.println(\"Final Result:- No return value\");\n }\n }\n else if(\"env\".equals(result.type)){\n if(DEBUG == true){\n //Check the result when debugging\n System.out.println(\"Final Result:- No return value\");\n }\n }\n else{\n if(DEBUG == true){\n //Check the result when debugging\n System.out.println(result.type +\" \"+result.value);\n }\n }\n } catch (Exception ex) {\n System.out.println(\"\\n\\n\"+ex+\"\\n\\n\");\n Logger.getLogger(Rpal.class.getName()).log(Level.SEVERE, null, ex);\n }\n } \n }", "protected boolean func_70814_o() { return true; }", "@Override\n\tpublic void anular() {\n\n\t}", "private DiscretePotentialOperations() {\r\n\t}", "void mo17021c();", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo21877s() {\n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "public static void main(String[] a){\n\n try {\n log.info(\"loading..\");\n\n //ExonQuantSource qs = new ExonQuantSource(new FileInputStream(System.getProperty(\"exon.quant.source\")));\n //ExonEQTLSource es = new ExonEQTLSource(new FileInputStream(System.getProperty(\"exon.eqtl.source\")), qs);\n\n TransQuantSource qs = new TransQuantSource(new FileInputStream(System.getProperty(\"exon.quant.source\")));\n TransEQTLSource es = new TransEQTLSource(new FileInputStream(System.getProperty(\"exon.eqtl.source\")), qs);\n\n\n AggregatedDataSource aggregatedSource = new AggregatedDataSource(qs, es);\n\n log.info(\"loaded\");\n\n log.info(\" \" + ((GenericQuantDataSource)aggregatedSource.quantSource).getStats());\n log.info(\" \" + ((GenericEQTLDataSource)aggregatedSource.eQTLSource).getStats());\n\n String chr = \"1\";\n int start = 1628906;\n int stop = 1629906;\n\n log.info(\"selecting \" + chr + \":\" + start + \"-\" + stop);\n\n ArrayList<DataFeature> quantResult = null;\n ArrayList<DataFeature> eQTLResult = null;\n\n long startTime = System.currentTimeMillis();\n\n quantResult = aggregatedSource.locateQuantFeatures(chr, start, stop);\n eQTLResult = aggregatedSource.locateEQTLFeatures(chr, start, stop);\n\n //for(int i=9;i<1000;i++) {\n //}\n\n long estimatedTime = System.currentTimeMillis() - startTime;\n\n log.info(\"Estimated run time:\" + estimatedTime + \" Millis\");\n\n log.info(\"quantResult.size() = \" + quantResult.size());\n log.info(\"eQTLResult.size() = \" + eQTLResult.size());\n\n for (DataFeature f : quantResult) {\n log.info(\"1 f = \" + f.getId() + \" start:\" + f.getStart() +\n \" end:\" + f.getEnd() + \" score:\" + f.getScore() );\n }\n\n for (DataFeature f : eQTLResult) {\n log.info(\"f = \" + f.getId() + \" start:\" + f.getStart() +\n \" end:\" + f.getEnd() + \" score:\" + f.getScore());\n\n log.info(\"linked to :\");\n\n for (LinkedFeature l0 : f.getLinked()) {\n log.info(\" linked = \" + l0.getFeature().getId() + \" start:\" + l0.getFeature().getStart() +\n \" end:\" + l0.getFeature().getEnd() + \" link score:\" + l0.getLinkScore());\n }\n }\n\n\t\t} catch (FileNotFoundException e) {\n\t\t\t// Auto-generated catch block\n\t\t\tlog.error(\"Error!\", e);\n\t\t} catch (Exception e) {\n\t\t\t// Auto-generated catch block\n log.error(\"Error!\", e);\n\t\t}\n\t}", "public void createCSProvDefault(String text,String nodeID, String user, String formID, String des, String crowdloc, ArrayList locations,String createTime, String lastTime, String timestamp) {silly times!!!! \n\t//\"createTime\":\"201503011826\",\"lastTime\":\"2015-03-01 18:07:35.735\" \"timestamp\":\"2015-03-03 12:44:40.4440\"\n\t//\n\tcreateTime=time.getDateCISnoSep(createTime+\"00\");\n\ttimestamp=timestamp.substring(0,timestamp.indexOf(\".\")-1);\n\ttimestamp=time.getDateCISTurn(timestamp);\n\tlastTime=lastTime.substring(0,lastTime.indexOf(\".\")-1);\n\tlastTime=time.getDateCISTurn(lastTime);\n\tprov = new PatternBuilder();\n\tString[] node=new String[2];\n\tnode[0]=nodeID;\n\tnode[1]=text;\n\tprov.makeGenerationPattern(node,\"EX_\"+formID, \"Prepare_CS_Task_\"+formID, cus, createTime);\n\tprov.makeGenerationPattern(\"EX_\"+formID,\"RI_\"+formID, \"Process_CS_Res_\"+formID, cus, createTime);\n\tprov.makeGoal(\"RI_\"+formID);\n\tif(nodeID!=null && !nodeID.equals(\"\")){\n\t\tprov.makeSimpleGenerationPattern(\"RI_\"+formID, \"Create_CS_RI_\"+formID, user, createTime);\n\t\tArrayList nodes=new ArrayList();\n\t\tnodes.add(nodeID);\n\t\t//prov.addNodesToGeneration(\"Create_CS_RI_\"+formID, nodes);\n\t}\n\tprov.makeCSRequPattern(\"CS_Results_\"+formID, \"Data_\"+formID, \"TASK_\"+formID, \"Process_CS_Res_\"+formID, \"Collect_CS_Res_\"+formID, timestamp, lastTime, hdc, cus);\n\tconn.UpdateModel(prov);\n\t\n}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "private void m50366E() {\n }", "@Override\r\n\tpublic void func02() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void func02() {\n\t\t\r\n\t}", "public static void main(String args[]) throws Exception {\n\n String sourceFile = args[0]; //source file has supervised SRL tags\n String targetFile = args[1]; //target file has supervised SRL tags\n String alignmentFile = args[2];\n String sourceClusterFilePath = args[3];\n String targetClusterFilePath = args[4];\n String projectionFilters = args[5];\n double sparsityThresholdStart = Double.parseDouble(args[6]);\n double sparsityThresholdEnd = Double.parseDouble(args[6]);\n\n\n Alignment alignment = new Alignment(alignmentFile);\n HashMap<Integer, HashMap<Integer, Integer>> alignmentDic = alignment.getSourceTargetAlignmentDic();\n\n final IndexMap sourceIndexMap = new IndexMap(sourceFile, sourceClusterFilePath);\n final IndexMap targetIndexMap = new IndexMap(targetFile, targetClusterFilePath);\n ArrayList<String> sourceSents = IO.readCoNLLFile(sourceFile);\n ArrayList<String> targetSents = IO.readCoNLLFile(targetFile);\n\n System.out.println(\"Projection started...\");\n DependencyLabelsAnalyser dla = new DependencyLabelsAnalyser();\n for (int senId = 0; senId < sourceSents.size(); senId++) {\n if (senId % 100000 == 0)\n System.out.print(senId);\n else if (senId % 10000 == 0)\n System.out.print(\".\");\n\n Sentence sourceSen = new Sentence(sourceSents.get(senId), sourceIndexMap);\n Sentence targetSen = new Sentence(targetSents.get(senId), targetIndexMap);\n int maxNumOfProjectedLabels = dla.getNumOfProjectedLabels(sourceSen, alignmentDic.get(senId));\n double trainGainPerWord = (double) maxNumOfProjectedLabels/targetSen.getLength();\n\n if (trainGainPerWord >= sparsityThresholdStart && trainGainPerWord< sparsityThresholdEnd) {\n dla.analysSourceTargetDependencyMatch(sourceSen, targetSen, alignmentDic.get(senId),\n sourceIndexMap, targetIndexMap, projectionFilters);\n }\n }\n System.out.print(sourceSents.size() + \"\\n\");\n dla.writeConfusionMatrix(\"confusion_\"+sparsityThresholdStart+\"_\"+sparsityThresholdEnd+\".out\", sourceIndexMap, targetIndexMap);\n }", "public void method_4270() {}", "public void mo55254a() {\n }", "@Override\n public void preprocess() {\n }", "void mo41083a();", "public void mo21795T() {\n }", "public void mo21794S() {\n }", "public void mo21793R() {\n }", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "public abstract void mo6549b();", "public void mo21785J() {\n }", "private void test() {\n\n\t}", "private void bщ04490449щ0449щ(rrrrrr.rcccrr r6) {\n /*\n r5 = this;\n r4 = 0;\n r0 = r6.getJsonData();\t Catch:{ Exception -> 0x0056 }\n r1 = new rrrrrr.ccrcrc;\t Catch:{ Exception -> 0x0056 }\n r2 = new java.lang.StringBuilder;\t Catch:{ Exception -> 0x0056 }\n r2.<init>();\t Catch:{ Exception -> 0x0056 }\n r3 = r5.bнн043Dннн;\t Catch:{ Exception -> 0x0056 }\n r3 = com.immersion.aws.analytics.ImmrAnalytics.b044C044C044C044Cьь(r3);\t Catch:{ Exception -> 0x0056 }\n r3 = r3.getFilesDir();\t Catch:{ Exception -> 0x0056 }\n r2 = r2.append(r3);\t Catch:{ Exception -> 0x0056 }\n r3 = java.io.File.separator;\t Catch:{ Exception -> 0x0056 }\n r2 = r2.append(r3);\t Catch:{ Exception -> 0x0056 }\n r3 = \"3HC4C-01.txt\";\n r2 = r2.append(r3);\t Catch:{ Exception -> 0x0056 }\n r2 = r2.toString();\t Catch:{ Exception -> 0x0056 }\n r1.<init>(r2);\t Catch:{ Exception -> 0x0056 }\n r2 = bЗ04170417ЗЗЗ;\n r3 = bЗЗЗ0417ЗЗ;\n r3 = r3 + r2;\n r2 = r2 * r3;\n r3 = b04170417З0417ЗЗ;\n r2 = r2 % r3;\n switch(r2) {\n case 0: goto L_0x0041;\n default: goto L_0x0039;\n };\n L_0x0039:\n r2 = 38;\n bЗ04170417ЗЗЗ = r2;\n r2 = 29;\n b041704170417ЗЗЗ = r2;\n L_0x0041:\n r1.load();\t Catch:{ Exception -> 0x0056 }\n L_0x0044:\n switch(r4) {\n case 0: goto L_0x004b;\n case 1: goto L_0x0044;\n default: goto L_0x0047;\n };\t Catch:{ Exception -> 0x0056 }\n L_0x0047:\n switch(r4) {\n case 0: goto L_0x004b;\n case 1: goto L_0x0044;\n default: goto L_0x004a;\n };\t Catch:{ Exception -> 0x0056 }\n L_0x004a:\n goto L_0x0047;\n L_0x004b:\n r0 = r0.toString();\t Catch:{ Exception -> 0x0056 }\n r1.push(r0);\t Catch:{ Exception -> 0x0056 }\n r1.save();\t Catch:{ Exception -> 0x0056 }\n L_0x0055:\n return;\n L_0x0056:\n r0 = move-exception;\n goto L_0x0055;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: rrrrrr.cccccr.bщ04490449щ0449щ(rrrrrr.rcccrr):void\");\n }", "private void remplirFabricantData() {\n\t}", "@Override\n\tpublic void ccc() {\n\t\t\n\t}", "@Override\r\n\t\t\tpublic void test() {\n\t\t\t}", "public void mo1403c() {\n }", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "private java.lang.String a(java.lang.String r6, com.google.b5 r7, com.google.e5 r8, java.lang.String r9) {\n /*\n r5 = this;\n r2 = F;\n r0 = r7.e();\n r1 = r5.o;\n r3 = r7.i();\n r1 = r1.a(r3);\n r3 = r1.matcher(r6);\n r1 = \"\";\n r1 = com.google.e5.NATIONAL;\t Catch:{ RuntimeException -> 0x0092 }\n if (r8 != r1) goto L_0x004b;\n L_0x001b:\n if (r9 == 0) goto L_0x004b;\n L_0x001d:\n r1 = r9.length();\t Catch:{ RuntimeException -> 0x0096 }\n if (r1 <= 0) goto L_0x004b;\n L_0x0023:\n r1 = r7.d();\t Catch:{ RuntimeException -> 0x0096 }\n r1 = r1.length();\t Catch:{ RuntimeException -> 0x0096 }\n if (r1 <= 0) goto L_0x004b;\n L_0x002d:\n r1 = r7.d();\n r4 = f;\n r1 = r4.matcher(r1);\n r1 = r1.replaceFirst(r9);\n r4 = z;\n r0 = r4.matcher(r0);\n r0 = r0.replaceFirst(r1);\n r1 = r3.replaceAll(r0);\n if (r2 == 0) goto L_0x009c;\n L_0x004b:\n r1 = r7.k();\n r4 = com.google.e5.NATIONAL;\t Catch:{ RuntimeException -> 0x0098 }\n if (r8 != r4) goto L_0x006b;\n L_0x0053:\n if (r1 == 0) goto L_0x006b;\n L_0x0055:\n r4 = r1.length();\t Catch:{ RuntimeException -> 0x009a }\n if (r4 <= 0) goto L_0x006b;\n L_0x005b:\n r4 = z;\n r4 = r4.matcher(r0);\n r1 = r4.replaceFirst(r1);\n r1 = r3.replaceAll(r1);\n if (r2 == 0) goto L_0x009c;\n L_0x006b:\n r0 = r3.replaceAll(r0);\n L_0x006f:\n r1 = com.google.e5.RFC3966;\n if (r8 != r1) goto L_0x0091;\n L_0x0073:\n r1 = p;\n r1 = r1.matcher(r0);\n r2 = r1.lookingAt();\n if (r2 == 0) goto L_0x0086;\n L_0x007f:\n r0 = \"\";\n r0 = r1.replaceFirst(r0);\n L_0x0086:\n r0 = r1.reset(r0);\n r1 = \"-\";\n r0 = r0.replaceAll(r1);\n L_0x0091:\n return r0;\n L_0x0092:\n r0 = move-exception;\n throw r0;\t Catch:{ RuntimeException -> 0x0094 }\n L_0x0094:\n r0 = move-exception;\n throw r0;\t Catch:{ RuntimeException -> 0x0096 }\n L_0x0096:\n r0 = move-exception;\n throw r0;\n L_0x0098:\n r0 = move-exception;\n throw r0;\t Catch:{ RuntimeException -> 0x009a }\n L_0x009a:\n r0 = move-exception;\n throw r0;\n L_0x009c:\n r0 = r1;\n goto L_0x006f;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.e2.a(java.lang.String, com.google.b5, com.google.e5, java.lang.String):java.lang.String\");\n }", "void mo72113b();", "public void mo21782G() {\n }", "@Override\r\n \tpublic void process() {\n \t\t\r\n \t}", "public void mo3376r() {\n }", "private void verificaData() {\n\t\t\n\t}" ]
[ "0.63286173", "0.5743566", "0.5582122", "0.55773425", "0.54831713", "0.54298824", "0.5378225", "0.53627735", "0.5352019", "0.5348025", "0.5347056", "0.53381485", "0.5337092", "0.5324424", "0.53241664", "0.531572", "0.53043246", "0.53043246", "0.52958137", "0.52911896", "0.5284048", "0.5277577", "0.52701", "0.5263587", "0.526201", "0.52579486", "0.5215919", "0.52108026", "0.5184248", "0.5174112", "0.51732093", "0.5170818", "0.51623154", "0.5157128", "0.5153495", "0.5131854", "0.5129455", "0.5122082", "0.51212496", "0.5108476", "0.5104969", "0.5102783", "0.5097334", "0.50939447", "0.5090258", "0.50902534", "0.5090221", "0.5087193", "0.5083741", "0.5074133", "0.50674593", "0.5063705", "0.50620455", "0.5061537", "0.5058159", "0.5057006", "0.5045654", "0.5045642", "0.5042781", "0.5038307", "0.5037085", "0.50294733", "0.50256246", "0.50256246", "0.50256246", "0.50256246", "0.50256246", "0.50256246", "0.50256246", "0.5016326", "0.5014106", "0.5012358", "0.50105923", "0.500364", "0.50033844", "0.5001196", "0.5001196", "0.49972463", "0.4994793", "0.49876058", "0.49872467", "0.49836874", "0.49830857", "0.49806827", "0.49786082", "0.4971896", "0.4969274", "0.49675816", "0.49632812", "0.496169", "0.4961052", "0.49594873", "0.49567333", "0.49533743", "0.4952562", "0.49464563", "0.49452645", "0.49452603", "0.49432123", "0.493778", "0.49366796" ]
0.0
-1
Created by fangqing on 11/24/17.
public interface UpdateObject { public void update(Object o); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "private stendhal() {\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n public void func_104112_b() {\n \n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "public void mo38117a() {\n }", "public void gored() {\n\t\t\n\t}", "private static void cajas() {\n\t\t\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "public void mo4359a() {\n }", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "private void kk12() {\n\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "private void poetries() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "private void init() {\n\n\t}", "private void m50366E() {\n }", "@Override\n protected void initialize() {\n\n \n }", "protected boolean func_70814_o() { return true; }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "private void strin() {\n\n\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "public void mo6081a() {\n }", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tpublic void jugar() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n public void init() {\n\n }", "@Override\n public void init() {\n\n }", "@Override\n public void init() {\n }", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "public void mo55254a() {\n }", "Constructor() {\r\n\t\t \r\n\t }", "@Override\n protected void initialize() \n {\n \n }", "private void init() {\n\n\n\n }", "public void mo12628c() {\n }", "@Override\n void init() {\n }", "@Override\n protected void init() {\n }", "protected void mo6255a() {\n }", "@Override\r\n\tprotected void doF8() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}", "public void skystonePos4() {\n }", "@Override\n\tpublic void init()\n\t{\n\n\t}", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "public void mo21877s() {\n }", "public void mo12930a() {\n }", "private Rekenhulp()\n\t{\n\t}", "@Override\n public void init() {}", "@Override\r\n\tpublic void init() {}", "@Override\n\tprotected void initdata() {\n\n\t}", "public void skystonePos6() {\n }", "@Override\n\tpublic void init() {\n\t}", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n public void memoria() {\n \n }", "public void mo9848a() {\n }", "public abstract void mo70713b();", "@Override\n\tpublic void einkaufen() {\n\t}" ]
[ "0.61580145", "0.5969738", "0.5948841", "0.5924429", "0.5919432", "0.5919432", "0.58893037", "0.5852881", "0.5848375", "0.58481234", "0.58391213", "0.5822946", "0.5822887", "0.5804238", "0.5784479", "0.57693857", "0.57687736", "0.57576805", "0.57443196", "0.574264", "0.5737713", "0.5737713", "0.5737713", "0.5737713", "0.5737713", "0.5736186", "0.57361215", "0.5712545", "0.56972384", "0.5695849", "0.5691007", "0.5684641", "0.56791747", "0.5676522", "0.56699646", "0.56598747", "0.5659397", "0.5659397", "0.5659397", "0.5659397", "0.5659397", "0.5659397", "0.5659397", "0.5658148", "0.56497514", "0.5648481", "0.5639291", "0.56232804", "0.5607013", "0.5607013", "0.5607013", "0.5606116", "0.5600084", "0.5600084", "0.5590137", "0.55816764", "0.55816764", "0.55816764", "0.55805904", "0.55805904", "0.55805904", "0.5578168", "0.5574975", "0.5574975", "0.55736256", "0.55736256", "0.55629694", "0.55627406", "0.5558736", "0.55582774", "0.55502135", "0.55362576", "0.55353814", "0.5527284", "0.55267483", "0.551741", "0.55166274", "0.55148566", "0.55140764", "0.5503518", "0.5502214", "0.54995847", "0.54840845", "0.5482456", "0.54707545", "0.54690796", "0.546884", "0.546304", "0.5462253", "0.5459904", "0.5456282", "0.5456282", "0.5456282", "0.5456282", "0.5456282", "0.5456282", "0.5456105", "0.54530644", "0.545183", "0.54468834", "0.54463273" ]
0.0
-1
read through the log file
public void getListOfUpdatedFiles(List<TrainingFiles> listOfUpdatedFile, String logPath, PropertiesConfiguration propertiesConf) { BufferedReader br = null; FileReader fr = null; try{ fr = new FileReader(logPath); br = new BufferedReader(fr); String sCurrentLine; while((sCurrentLine = br.readLine())!= null){ //make multipart files TrainingFiles trFiles = new TrainingFiles(); trFiles = createTrainingFileObjects(sCurrentLine, trFiles, propertiesConf); listOfUpdatedFile.add(trFiles); } } catch(Exception e){ } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public synchronized void readLog() {\n MemoryCache instance = MemoryCache.getInstance();\n try (Stream<String> stream = Files.lines(Paths.get(path)).skip(instance.getSkipLine())) {\n stream.forEach(s -> {\n Result result = readEachLine(s);\n instance.putResult(result);\n instance.setSkipLine(instance.getSkipLine() + 1);\n });\n } catch (IOException e) {\n logger.error(\"error during reading file \" + e.getMessage());\n }\n }", "private void processLog(File log) {\n BufferedReader in = null;\r\n ArrayList<String> list = new ArrayList<String>();\r\n String lastFrom = \"\";\r\n try {\r\n in = new BufferedReader(new FileReader(log));\r\n String line;\r\n while((line = in.readLine()) != null) {\r\n // lineNum++;\r\n if(line.contains(\"FROM\")) {\r\n // Start over at each FROM, leaving the last one and what\r\n // follows\r\n list.clear();\r\n list.add(line);\r\n lastFrom = line;\r\n } else if(line.contains(\"TO\")) {\r\n list.add(line);\r\n }\r\n }\r\n in.close();\r\n Data data = new Data(log.getName(), lastFrom);\r\n results.add(data);\r\n System.out.printf(\"%s\\n\", log.getName());\r\n for(String item : list) {\r\n System.out.printf(\" %s\\n\", item);\r\n }\r\n } catch(Exception ex) {\r\n ex.printStackTrace();\r\n }\r\n }", "public void readData() throws IOException, QueryLogException {\n\n InputStream inputstream = new FileInputStream(logFile);\n\n try {\n\n this.parser.parseQueryLog(inputstream);\n\n } catch (QueryLogException e) {\n logger.error(\"Error in parsing {}\", logFile);\n\n throw new QueryLogException(e);\n }\n// logger.info(\"Parsed {}\", logFile);\n }", "private static void parseOneFile(File logFile) throws FileNotFoundException, IOException, Exception\n\t{\n\t\t\n\t\tBufferedReader bf = new BufferedReader(new InputStreamReader(new FileInputStream(logFile), \"UTF-8\"));\n\t\tString line = null;\n\t\tint lineNum = 0;\n\t\twhile ((line = bf.readLine()) != null)\n\t\t{\n\t\t\t// 数据入库日志\n\t\t\tif (line.indexOf(ParserSqlldrLog.flag) > 0)\n\t\t\t{\n\t\t\t\tParserSqlldrLog sl = new ParserSqlldrLog();\n\t\t\t\tif (sl.parseLog(line))\n\t\t\t\t{\n\t\t\t\t\tParserSqlldrLog preSl = getSqlldrLog(sl.getSrcFile().getPath(), sl.getDataFile().getPath());\n\t\t\t\t\tif (preSl != null)\n\t\t\t\t\t{\n\t\t\t\t\t\tpreSl.merge(sl);\n\t\t\t\t\t} else\n\t\t\t\t\t{\n\t\t\t\t\t\tsqlldrLogs.add(sl);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t// 文件转换日志\n\t\t\telse if (line.indexOf(ParserMiddleLog.flag) > 0)\n\t\t\t{\n\t\t\t\tParserMiddleLog pml = new ParserMiddleLog();\n\t\t\t\tif (pml.parseLog(line))\n\t\t\t\t{\n\t\t\t\t\tParserMiddleLog prePml = getParserMiddleLogByFilePath(pml.getSrcFile().getPath(),\n\t\t\t\t\t\t\tpml.getHandleName());\n\t\t\t\t\tif (prePml != null)\n\t\t\t\t\t{\n\t\t\t\t\t\tprePml.merge(pml);\n\t\t\t\t\t} else\n\t\t\t\t\t{\n\t\t\t\t\t\tparserMiddleLogs.add(pml);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t// 文件解析入库根日志\n\t\t\telse if (line.indexOf(ParserMainLog.flag) > 0)\n\t\t\t{\n\t\t\t\tParserMainLog pl = new ParserMainLog();\n\t\t\t\tif (pl.parseLog(line))\n\t\t\t\t{\n\t\t\t\t\tParserMainLog prePl = getParserLogByFilePath(pl.getSrcFile().getPath());\n\t\t\t\t\tif (prePl != null)\n\t\t\t\t\t{\n\t\t\t\t\t\tprePl.merge(pl);\n\t\t\t\t\t} else\n\t\t\t\t\t{\n\t\t\t\t\t\tparserLogs.add(pl);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (++lineNum % 10000 == 0)\n\t\t\t{\n\t\t\t\tSystem.out.println(\"已解析\" + lineNum + \"行\");\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"该文件共解析\" + lineNum + \"行\");\n\n\t\tbf.close();\n\t}", "void ReadChatLog()\r\n {\r\n try{\r\n BufferedReader chatLogReader = new BufferedReader(new FileReader(pda_TCPServerMT.chatLog));\r\n while(chatLogReader.ready())\r\n WriteCypherMessage(chatLogReader.readLine());\r\n\r\n chatLogReader.close();\r\n } catch (Exception e){}\r\n }", "public ArrayList<SessionLog> readLogFile(){\n ArrayList<SessionLog> sessionLogList = new ArrayList<>();\n try {\n FileInputStream inputStream = getApplicationContext().openFileInput(logFileName);\n BufferedReader reader = new BufferedReader(new InputStreamReader(inputStream));\n\n while(true){\n String line = reader.readLine();\n if (line != null){\n String[] data = line.split(\",\");\n Log.i(LOG_TAG, \" - \"+ Arrays.toString(data));\n SessionLog item = new SessionLog(\n Long.parseLong(data[0]),\n new LatLng(Double.parseDouble(data[1]), Double.parseDouble(data[2])),\n data[3].equals(\"true\")\n );\n sessionLogList.add(item);\n }\n else{\n Log.i(LOG_TAG, \"Reached end of file\");\n break; // No more lines to read\n }\n }\n }\n catch (Exception e){\n Log.i(LOG_TAG, \"Problem reading from current session log file...\");\n e.printStackTrace();\n }\n return sessionLogList;\n }", "public LogReader.Log nextLog(BufferedReader dataIS) throws IOException {\r\n\r\n ServletLog log = new ServletLog();\r\n boolean haveLog = false;\r\n\r\n while (true) {\r\n dataIS.mark(20 * 1000); // track where we are\r\n String line = dataIS.readLine();\r\n if (line == null) {\r\n return haveLog ? log : null;\r\n }\r\n // if (count++ < limit) System.out.println(\"\\n\" + line); nTest reqe\r\n\r\n try {\r\n Matcher m = commonPattern.matcher(line);\r\n if (m.matches()) {\r\n if (haveLog) { // have a log, next one matches, proceed\r\n try {\r\n dataIS.reset();\r\n return log;\r\n\r\n } catch (Throwable t) {\r\n System.out.println(\"Cant reset \" + line); \r\n }\r\n }\r\n haveLog = true; // next match will return the current log\r\n\r\n log.date = convertDate( m.group(1));\r\n log.reqTime = parseLong(m.group(2));\r\n log.reqSeq = parseLong(m.group(3));\r\n log.level = m.group(4).intern();\r\n log.where = m.group(5);\r\n\r\n String rest = m.group(6);\r\n if (rest.contains(\"Request Completed\")) {\r\n int pos = rest.indexOf(\"Request Completed\");\r\n Matcher m2 = donePattern.matcher(rest.substring(pos));\r\n if (m2.matches()) {\r\n log.returnCode = parse(m2.group(1));\r\n log.sizeBytes = parseLong(m2.group(2));\r\n log.msecs = parseLong(m2.group(3));\r\n log.isDone = true;\r\n\r\n } else {\r\n System.out.println(\"Cant parse donePattern= \" + rest);\r\n System.out.println(\" line= \" + line);\r\n log.addExtra(rest);\r\n }\r\n\r\n } else if (rest.contains(\"Remote host\")) {\r\n int pos = rest.indexOf(\"Remote host\");\r\n Matcher m2 = startPattern.matcher(rest.substring(pos));\r\n if (m2.matches()) {\r\n log.ip = m2.group(1);\r\n log.verb = m2.group(2).intern();\r\n log.path = EscapeStrings.urlDecode(m2.group(3)); //old URLDecoder.decode(m2.group(3));\r\n if (m2.groupCount() > 4)\r\n log.http = m2.group(4).intern();\r\n log.isStart = true;\r\n\r\n } else {\r\n System.out.println(\"Cant parse startPattern= \" + rest);\r\n System.out.println(\" line= \" + line);\r\n log.addExtra(rest);\r\n }\r\n\r\n } else { // a non-start, non-done log\r\n log.addExtra(rest);\r\n }\r\n\r\n } else { // the true extra line\r\n //System.out.println(\"No match on \" + line);\r\n log.addExtra(line);\r\n }\r\n\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n System.out.println(\"Cant parse \" + line);\r\n log.addExtra(line);\r\n }\r\n }\r\n\r\n }", "public void parseLog2(){\n\t\ttry{\n\t\t\tMxmlFile eventlog=new MxmlFile(res.getFileName());\n\t\t\t//log.info(\"processing \"+res.getFileName());\n\t\t\tres=eventlog.parse(eventlog.read(), res);\n\t\t\teventlog.close();\n\t\t}catch(Exception e){\n\t\t\tlog.warn(e.toString());\n\t\t}\n\t}", "public String readWholeLog(String dateOfLog){\n String logLines=\"\";\n\n if(dateOfLog.equals(todaysDate)||dateOfLog.equals(\"\")) {\n if(logWriter==null){\n logLines+=readFile(dateOfLog,0);\n }else{\n closeLog();\n logLines+=readFile(dateOfLog,0);\n }\n }else{\n logLines+=readFile(dateOfLog,0);\n }\n return logLines;\n }", "public void process(LogReader.Log log) throws IOException {\n }", "public static List<String> readLogRec(File file)throws Exception{\n\t\tBufferedReader br = null;\n\t\ttry {\n\t\t\tbr = new BufferedReader(\n\t\t\t\tnew InputStreamReader(new FileInputStream(file))\t\n\t\t\t);\n\t\t\tList<String> list \n\t\t\t\t= new ArrayList<String>();\n\t\t\t\n\t\t\tString line = null;\n\t\t\twhile((line=br.readLine())!=null){\n\t\t\t\tlist.add(line);\n\t\t\t}\n\t\t\treturn list;\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\tthrow e;\n\t\t} finally{\n\t\t\tif(br != null){\n\t\t\t\tbr.close();\n\t\t\t}\n\t\t}\n\t}", "public void proccessLogFile() throws IOException {\n \n for(int i = 0; i < numberOfThreads; i++){\n Thread t = new LookupThread(entries, this);\n t.start();\n }//end for\n \n String entry = in.readLine();\n while(entry != null){\n if(entries.size() > numberOfThreads){\n try{\n Thread.sleep((long)1000.0 / numberOfThreads);\n }//end try \n catch(InterruptedException iex){\n continue;\n }//end catch\n \n synchronized(entries){\n entries.add(0, entry);\n entries.notifyAll();\n }//end synchronized\n \n entry = in.readLine();\n Thread.yield(); \n }//end if\n }//end while\n \n }", "public String readFile(){\n\t\tString res = \"\";\n\t\t\n\t\tFile log = new File(filePath);\n\t\tBufferedReader bf = null;\n\t\t\n\t\ttry{\n\t\t\tbf = new BufferedReader(new FileReader(log));\n\t\t\tString line = bf.readLine();\n\t\t\n\t\t\n\t\t\twhile (line != null){\n\t\t\t\tres += line+\"\\n\";\n\t\t\t\tline = bf.readLine();\n\t\t\t}\n\t\t\n\t\t\treturn res;\n\t\t}\n\t\tcatch(Exception oops){\n\t\t\tSystem.err.println(\"There was an error reading the file \"+oops.getStackTrace());\n\t\t\treturn \"\";\n\t\t}\n\t\tfinally{\n\t\t\ttry {\n\t\t\t\tbf.close();\n\t\t\t} catch (IOException e) {\n\t\t\t\tSystem.err.println(\"There was an error closing the read Buffer \"+e.getStackTrace());\n\t\t\t}\n\t\t}\n\t}", "private void readAndCompactLog() throws IOException {\n Schema writerSchema = new AvroSchemaConverter().convert(baseFileSchema);\n List<String> projectionFields = orderFields(\n jobConf.get(ColumnProjectionUtils.READ_COLUMN_NAMES_CONF_STR),\n jobConf.get(ColumnProjectionUtils.READ_COLUMN_IDS_CONF_STR),\n jobConf.get(\"partition_columns\", \"\"));\n // TODO(vc): In the future, the reader schema should be updated based on log files & be able to null out fields not present before\n Schema readerSchema = generateProjectionSchema(writerSchema, projectionFields);\n\n LOG.info(\n String.format(\"About to read compacted logs %s for base split %s, projecting cols %s\",\n split.getDeltaFilePaths(), split.getPath(), projectionFields));\n\n HoodieCompactedLogRecordScanner compactedLogRecordScanner =\n new HoodieCompactedLogRecordScanner(FSUtils.getFs(), split.getDeltaFilePaths(),\n readerSchema);\n\n // NOTE: HoodieCompactedLogRecordScanner will not return records for an in-flight commit\n // but can return records for completed commits > the commit we are trying to read (if using readCommit() API)\n for (HoodieRecord<HoodieAvroPayload> hoodieRecord : compactedLogRecordScanner) {\n GenericRecord rec = (GenericRecord) hoodieRecord.getData().getInsertValue(readerSchema)\n .get();\n String key = hoodieRecord.getRecordKey();\n // we assume, a later safe record in the log, is newer than what we have in the map & replace it.\n ArrayWritable aWritable = (ArrayWritable) avroToArrayWritable(rec, writerSchema);\n deltaRecordMap.put(key, aWritable);\n if (LOG.isDebugEnabled()) {\n LOG.debug(\"Log record : \" + arrayWritableToString(aWritable));\n }\n }\n }", "public void readLogFile(String[] logfilenamesA){\n\t\tint ipID = 0;\n\t\t\n\t\tm_logfilenamesA = logfilenamesA;\n\t\tfor(int h=0; h<m_logfilenamesA.length; h++){\n\t\t\tString logfilenamei = m_logfilenamesA[h];\n\t\t\tSystem.out.println(\" [\" + System.currentTimeMillis() + \n\t\t\t\t\t\"] Reading the log file: \" + logfilenamei);\n\n\t\t// Open the given file\n\t\tBufferedReader reader = null;\n\t\ttry{\n\t\t\treader = new BufferedReader(new FileReader(logfilenamei));\n\t\t} catch(FileNotFoundException ex){\n\t\t\tSystem.err.println(\"[ehupatras.webrecommendation.preprocess.log.LogReaderDiscapnet] \" +\n\t\t\t\t\t\"Not file found: \" + logfilenamei);\n\t\t\tSystem.err.println(ex.getMessage());\n\t\t\tSystem.exit(1);\n\t\t}\n\t\t\n\t\t// Read the given file line by line\n\t\tString line = null;\n\t\ttry{\n\t\t\twhile ((line = reader.readLine()) != null) {\n\t\t\t\t// split the request line\n\t\t\t\tString[] lineA = line.split(\" \");\n\t\t\t\tif(lineA.length<17){ continue; }\n\t\t\t\t\n\t\t\t\t// the fields\n\t\t\t\tString day = lineA[0];\n\t\t\t\tString timeInDay = lineA[1];\n\t\t\t\tString time = day + \" \" + timeInDay;\n\t\t\t\t\n\t\t\t\tString server_ip = lineA[2];\n\t\t\t\tString method = lineA[3];\n\t\t\t\t\n\t\t\t\tString urlname = lineA[4]; \n\t\t\t\tString param = lineA[5];\n\t\t\t\tString urlname2 = urlname;\n\t\t\t\tif(!param.equals(\"-\")){\n\t\t\t\t\turlname2 = urlname2 + \"?\" + param;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tString server_port = lineA[6];\n\t\t\t\t//String field7 = lineA[7];\n\t\t\t\tString ip = lineA[8];\n\t\t\t\tString useragent = lineA[9];\n\t\t\t\t//String field10 = lineA[10];\n\t\t\t\tString reference = lineA[11];\n\t\t\t\t//String field12 = lineA[12];\n\t\t\t\t\n\t\t\t\tString statuscodeStr = lineA[13];\n\t\t\t\tint statuscode = Integer.valueOf(statuscodeStr).intValue();\n\t\t\t\t\n\t\t\t\tString field14 = lineA[14];\n\t\t\t\tString field15 = lineA[15];\n\t\t\t\tString reqsize = lineA[16]; // size of the request in bytes\n\t\t\t\t//String field17 = lineA[17];\n\t\t\t\t//String field18 = lineA[18];\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t// the IP address field\n\t\t\t\tif(!m_ip2idHT.containsKey(ip)){\n\t\t\t\t\tipID++;\n\t\t\t\t\tm_ip2idHT.put(ip, new Integer(ipID));\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// Create page\n\t\t\t\tPage page = new PageDiscapnet(urlname2);\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t\t\t// Create a request object\n\t\t\t\tString ipIDstr = String.valueOf(m_ip2idHT.get(ip));\n\t\t\t\tString logIDstr = String.format(\"%04d\", h); \n\t\t\t\tString userIDstr = ipIDstr + logIDstr;\n\t\t\t\tRequest req = new RequestDiscapnet(ip, userIDstr, time, \n\t\t\t\t\t\tmethod, page, \"-\", statuscode, \n\t\t\t\t\t\treqsize, reference, useragent,\n\t\t\t\t\t\th);\n\t\t\t\t\n\t\t\t\t// if it is valid request, store it\n\t\t\t\tif(req.getIsValid() && page.getIsValid()){\n\t\t\t\t\t// Store the page\n\t\t\t\t\tWebsite.storeURL(page);\n\t\t\t\t\t// save the valid requests\n\t\t\t\t\tWebAccess.addRequest(req);\n\t\t\t\t}\n\t\t\t}\n\t\t} catch(IOException ex){\n\t\t\tSystem.err.println(\"[ehupatras.webrecommendation.preprocess.log.LogReaderDiscapnet] \" +\n\t\t\t\t\t\"Problems reading from the file: \" + logfilenamei);\n\t\t\tSystem.err.println(ex.getMessage());\n\t\t\tSystem.exit(1);\n\t\t}\n\t\t\n\t\t// close the file\n\t\ttry{\n\t\t\treader.close();\n\t\t} catch (IOException ex){\n\t\t\tSystem.err.println(\"[ehupatras.webrecommendation.preprocess.log.LogReaderDiscapnet] \" +\n\t\t\t\t\t\"Problems at closing the file: \" + logfilenamei);\n\t\t\tSystem.err.println(ex.getMessage());\n\t\t\tSystem.exit(1);\n\t\t}\n\t\t\n\t\t} // for each log file\n\t\t\n\t\t\n\t\t// order the WebAccessSequences\n\t\tSystem.out.println(\" [\" + System.currentTimeMillis() + \n\t\t\t\t\"] Ordering the requests. \");\n\t\tWebAccess.orderRequests();\n\t}", "public static List<String> extractData_LOG(String logFile) throws Exception {\n List<String> rows = new ArrayList<>();\n\n BufferedReader reader =new BufferedReader(new FileReader(logFile));\n String line = \"\";\n\n while ( (line = reader.readLine()) != null) {\n rows.add(line);\n }\n reader.close();\n return rows;\n }", "public static void readStats(String logfile) throws IOException {\t\t\t\t\t\t\t\t\t\t\t\t\t\n\n\t\t//System.out.println(\"Reading log file \"+logfile+\".\");\n\t\tBufferedReader br = new BufferedReader( new FileReader(logfile) );\n\t\tString line;\t\t\n\t\tboolean ignoreEntry;\n\t\tboolean isClickEntry;\n\t\tString oldSessionid=\"\";\n\t\tString ip=null;\n\t\tString oldIp=\"\";\n\t\tDate date=null;\n\t\tDate firstDate=null;\n\t\tDate lastDate=null;\t\t\n\t\tint totalSessions=0; // all sessions\n\t\t//int nEntriesSession=0;\n\t\tVector<LogEntry> vlines=new Vector<LogEntry>();\n\t\tVector<String> vqueries=new Vector<String>();\t\t\n\n\t\t// init maps\t\t\n\t\t/*\n\t\tfor (int i=0;i<entryFilters.length;i++) {\n\t\t\tentryFiltersMap.put(entryFilters[i], null);\n\t\t}\n\t\t*/\t\t\n\t\tfor (int i=0;i<queryFilters.length;i++) {\n\t\t\tqueryFiltersMap.put(queryFilters[i], null);\n\t\t}\t\t\t\n\t\tfor (int i=0;i<stopwords.length;i++) {\n\t\t\tstopwordsMap.put(stopwords[i], null);\n\t\t}\n\t\t\n\t\twhile ( ( line = br.readLine() ) != null ) {\t\t\t\t\n\t\t\tString parts[]=line.split(\"\\\\s\");\n\t\t\tip=parts[0];\t\t\t\n\t\t\tString sessionid=parts[2];\t\t\t\n\t\t\tString method=parts[5];\t\t\t\t\t\t\n\t\t\tif (!method.equals(\"\\\"GET\")) {\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tString sdate=parts[3].substring(1)+\" \"+parts[4].substring(0,parts[4].length()-1);\t\t\t\n\t\t\ttry {\n\t\t\t\tdate=dformat.parse(sdate);\n\t\t\t} \n\t\t\tcatch (ParseException e) {\n\t\t\t\tthrow new IOException(e);\n\t\t\t}\n\n\t\t\tString query=parts[6];\n\t\t\tignoreEntry=false;\n\t\t\tisClickEntry=false;\n\t\t\tif (query.startsWith(\"/pesquisa?pag=\")) {\n\t\t\t\tquery=query.substring(\"/pesquisa?pag=\".length());\n\t\t\t\tisClickEntry=true;\n\t\t\t}\n\t\t\telse if (query.startsWith(\"/pesquisa?\")) {\n\t\t\t\tquery=query.substring(\"/pesquisa?\".length());\n\t\t\t}\n\t\t\telse if (query.startsWith(\"/termos?\")) {\n\t\t\t\tquery=query.substring(\"/termos?\".length());\n\t\t\t}\n\t\t\telse { \n\t\t\t\tignoreEntry=true;\n\t\t\t}\t\t\t\t\t\n\n\t\t\tif (!ignoreEntry) {\n\t\t\t\t// count sessions\n\t\t\t\tif (oldIp.equals(\"\") || /*!oldSessionid.equals(sessionid) ||*/ !oldIp.equals(ip) || date.getTime()-lastDate.getTime()>SESSION_TIMEOUT) { // new session if one of this rules occur\t\t\n\t\t\t\t\t\n\t\t\t\t\tif (totalSessions>=IGNORE_FIRST_SESSIONS) {\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t// compute stats adding session lines\n\t\t\t\t\t if (!oldIp.equals(\"\")) {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t// reset pages view counter\n\t\t\t\t\t\t\tfor (int i=0;i<pagesViewedDistAux.length;i++) {\n\t\t\t\t\t\t\t\tpagesViewedDistAux[i]=0;\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tfor (int i=0;i<docsClickedDistAux.length;i++) {\n\t\t\t\t\t\t\t\tdocsClickedDistAux[i]=0;\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\ttotalClicksAux=0;\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t// count log entries\n\t\t\t\t\t\t\tfor (int i=0;i<vlines.size();i++) {\n\t\t\t\t\t\t\t\tif (vlines.get(i).isClick()) {\n\t\t\t\t\t\t\t\t\taddClickEntry(vlines.get(i).getQuery());\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\t\tString submittedQuery=addQueryEntry(vlines.get(i).getQuery());\n\t\t\t\t\t\t\t\t\tif (submittedQuery!=null) { // query on the first SERP\n\t\t\t\t\t\t\t\t\t\tvqueries.add(submittedQuery);\t\n\t\t\t\t\t\t\t\t\t}\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t// min and max queries per session \n\t\t\t\t\t\t\tif (nQueriesSession>maxQueriesPerSession) {\n\t\t\t\t\t\t\t\tmaxQueriesPerSession=nQueriesSession;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif (nQueriesSession<minQueriesPerSession) {\n\t\t\t\t\t\t\t\tminQueriesPerSession=nQueriesSession;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t// process valid session\n\t\t\t\t\t\t\tlong minutes=((lastDate.getTime()-firstDate.getTime())/1000/60); // compute session duration\n\t\t\t\t\t\t\tif (nQueriesSession>0 && nQueriesSession<=MAX_QUERIES_PER_SESSION && minutes>=0) { // session discarded if has no queries or too many queries or that session has a negative time (this strange case occurs probability to a system date change)\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t// set queries stats\n\t\t\t\t\t\t\t\tfor (int i=0;i<vqueries.size();i++) {\n\t\t\t\t\t\t\t\t\tstatsForQuery(vqueries.get(i));\n\t\t\t\t\t\t\t\t\t//System.out.println(\"ALLQUERIES: \"+vqueries.get(i)+\" \"+oldIp);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t// set stats of SERPs viewed\n\t\t\t\t\t\t\t\tint numberPagesViewed=0;\n\t\t\t\t\t\t\t\tfor (int i=0;i<pagesViewedDistAux.length;i++) {\n\t\t\t\t\t\t\t\t\tif (pagesViewedDistAux[i]>0) { \n\t\t\t\t\t\t\t\t\t\tpagesViewedDist[i]+=pagesViewedDistAux[i];\n\t\t\t\t\t\t\t\t\t\ttotalPagesViewed+=pagesViewedDistAux[i];\n\t\t\t\t\t\t\t\t\t\tif (i>0) {\n\t\t\t\t\t\t\t\t\t\t pagesViewedNotFirstPage+=pagesViewedDistAux[i];\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\tnumberPagesViewed++;\n\t\t\t\t\t\t\t\t\t}\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t}\t\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t// set stats of clicks\n\t\t\t\t\t\t\t\tfor (int i=0;i<docsClickedDistAux.length;i++) {\n\t\t\t\t\t\t\t\t\tdocsClickedDist[i]+=docsClickedDistAux[i];\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tif (totalClicksAux==0) {\n\t\t\t\t\t\t\t\t nSessionsWithoutClicks++;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\ttotalClicks+=totalClicksAux;\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\ttotalValidSessions++;\n\t\t\t\t\t\t\t\tif (minutes>0) {\n\t\t\t\t\t\t\t\t\ttotalValidSessionsMoreThanOneQuery++;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tnumberPagesViewedDist[numberPagesViewed>=N_PAGES_VIEWED_RANGE-1 ? numberPagesViewed=N_PAGES_VIEWED_RANGE-1 : numberPagesViewed]++;\n\t\t\t\t\t\t\t\tnQueriesSessionDist[nQueriesSession>nQueriesSessionDist.length-1 ? nQueriesSessionDist.length-1 : nQueriesSession]++;\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t// set session duration\n\t\t\t\t\t\t\t\t//if (lastDate.getTime()!=firstDate.getTime()) { to remove all sessions with only one interaction\n\t\t\t\t\t\t\t\tboolean stop=false;\n\t\t\t\t\t\t\t\tfor (int j=0;j<N_TIME_BINS && !stop;j++) {\n\t\t\t\t\t\t\t\t\tif (j==N_TIME_BINS-1 && minutes>=TIME_BINS[j]) {\n\t\t\t\t\t\t\t\t\t timeBins[j]++;\n\t\t\t\t\t\t\t\t\t stop=true;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\telse if (minutes>=TIME_BINS[j] && minutes<TIME_BINS[j+1]) {\n\t\t\t\t\t\t\t\t\t timeBins[j]++;\n\t\t\t\t\t\t\t\t\t stop=true;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tif (!stop) { // sanity check\n\t\t\t\t\t\t\t\t \tthrow new IOException(\"Wrong bin for \"+minutes+\" minutes with IP \"+oldIp+\".\");\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\ttotalMinutes+=minutes;\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t// add session to IP\n\t\t\t\t\t\t\t\tInteger nSessions=nSessionsIP.get(oldIp);\n\t\t\t\t\t\t\t\tif (nSessions!=null) {\n\t\t\t\t\t\t\t\t\tnSessionsIP.put(oldIp,nSessions+1);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\t\tnSessionsIP.put(oldIp,1);\n\t\t\t\t\t\t\t\t}\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t if (minutes<0) {\n\t\t\t\t\t\t\t \tSystem.err.println(\"Wrong bin for \"+minutes+\" minutes with IP \"+oldIp+\".\");\n\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t else if (nQueriesSession>MAX_QUERIES_PER_SESSION) {\n\t\t\t\t\t\t\t \tSystem.err.println(\"IP \"+oldIp+\" on date \"+date+\" with too many queries:\"+nQueriesSession);\n\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t else {\n\t\t\t\t\t\t\t \tSystem.err.println(\"IP \"+oldIp+\" on date \"+date+\" without queries:\"+nQueriesSession);\n\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t}\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\t\t\t\t\t \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t/* TODO remove\n\t\t\t\t\t\tif (oldSessionid.equals(sessionid)) {\n\t\t\t\t\t\t\tSystem.err.println(\"oldSessionid igual com diferentes IPs!! \"+oldSessionid+\" \"+oldIp+\" \"+ip);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t*/\n\t\t\t\t\t\t\n\t\t\t\t\t\toldSessionid=sessionid;\n\t\t\t\t\t\toldIp=ip;\t\n\t\t\t\t\t\tfirstDate=date;\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\tvlines=new Vector<LogEntry>();\n\t\t\t\t\t\tvqueries=new Vector<String>();\n\t\t\t\t\t\t//nEntriesSession=0;\n\t\t\t\t\t\tnewTerms=new HashMap<String,Integer>();\t\t\n\t\t\t\t\t\tsessionQueries=new HashSet<String>();\n\t\t\t\t\t\toldQuery=new String();\n\t\t\t\t\t\tnQueriesSession=0;\n\t\t\t\t\t}\n\t\t\t\t\ttotalSessions++;\n\t\t\t\t}\t\t\t\t\t\n\t\t\t\t\n\t\t\t\tvlines.add(new LogEntry(query,isClickEntry));\t\t\t\t\t\n\t\t\t\tlastDate=date;\n\t\t\t}\t\t\t\n\t\t}\t\t\t\t\n\t\tbr.close();\n\t\t// discard last session by discarding last vlines\n\t}", "private LogDataHolder parseLog()\n throws XMLStreamException \n {\n /*\n // These values don't seem to be used for anything, so don't try to set them\n String ascensionLogXMLVersion = \"\";\n String fileCreatorName = \"\";\n String fileCreatorVersion = \"\";\n */\n \n while (parser.hasNext()) {\n switch (parser.getEventType()) {\n case XMLStreamConstants.START_ELEMENT:\n final String nodeName = parser.getLocalName();\n /*\n if (nodeName.equals(\"ascensionlogxml\")) {\n for (int i = 0; i < parser.getAttributeCount(); i++)\n if (parser.getAttributeLocalName(i).equals(\"version\"))\n ascensionLogXMLVersion = parser.getAttributeValue(i);\n } else if (nodeName.equals(\"filecreator\")) {\n for (int i = 0; i < parser.getAttributeCount(); i++)\n if (parser.getAttributeLocalName(i).equals(\"programname\"))\n fileCreatorName = parser.getAttributeValue(i);\n else if (parser.getAttributeLocalName(i).equals(\"programversion\"))\n fileCreatorVersion = parser.getAttributeValue(i);\n } else */ \n if (nodeName.equals(\"ascension\"))\n parseAscension();\n\n break;\n default:\n break;\n }\n parser.next();\n }\n\n return logData;\n }", "public static String readLog() throws Exception {\n List<String> logsList = Files.readAllLines(new File(\"PhotoRenaming.log\").toPath());\n return String.join(\"\\n\", logsList);\n }", "private Log() {\r\n readFile(\"Save.bin\",allLogs);\r\n readFile(\"Tag.bin\", allTags);\r\n readFile(\"Password.bin\", userInfo);\r\n }", "private void readFile(String fileName)\n {\n System.out.println(\"reading File\");\n try\n {\n String line;\n BufferedReader input = new BufferedReader(\n new FileReader(fileName));\n while((line = input.readLine()) != null)\n logImage += line + \"\\n\";\n }\n catch(Exception e)\n {\n System.out.println(\"There was an error while reading the file\");\n }\n }", "private ArrayList<CallLogsData> getCallLogEntry() {\n ArrayList<CallLogsData> calllogsList = new ArrayList<CallLogsData>();\n try {\n File file = new File(mParentFolderPath + File.separator + ModulePath.FOLDER_CALLLOG\n + File.separator + ModulePath.NAME_CALLLOG);\n BufferedReader buffreader = new BufferedReader(new InputStreamReader(\n new FileInputStream(file)));\n String line = null;\n CallLogsData calllogData = null;\n while ((line = buffreader.readLine()) != null) {\n if (line.startsWith(CallLogsData.BEGIN_VCALL)) {\n calllogData = new CallLogsData();\n// MyLogger.logD(CLASS_TAG,\"startsWith(BEGIN_VCALL)\");\n }\n if (line.startsWith(CallLogsData.ID)) {\n calllogData.id = Integer.parseInt(getColonString(line));\n// MyLogger.logD(CLASS_TAG,\"startsWith(ID) = \" +calllogData.id);\n }\n\n if (line.startsWith(CallLogsData.SIMID)) {\n calllogData.simid = Utils.slot2SimId(Integer.parseInt(getColonString(line)),\n mContext);\n }\n if (line.startsWith(CallLogsData.NEW)) {\n calllogData.new_Type = Integer.parseInt(getColonString(line));\n// MyLogger.logD(CLASS_TAG,\"startsWith(NEW) = \" +calllogData.new_Type);\n }\n if (line.startsWith(CallLogsData.TYPE)) {\n calllogData.type = Integer.parseInt(getColonString(line));\n// MyLogger.logD(CLASS_TAG,\"startsWith(TYPE) = \" +calllogData.type);\n }\n if (line.startsWith(CallLogsData.DATE)) {\n String time = getColonString(line);\n// Date date = new SimpleDateFormat(\"yyyy/MM/dd HH:mm:ss\").parse(time);\n// calllogData.date = date.getTime();\n\n calllogData.date = Utils.unParseDate(time);\n\n MyLogger.logD(CLASS_TAG, \"startsWith(DATE) = \" + calllogData.date);\n }\n if (line.startsWith(CallLogsData.NAME)) {\n calllogData.name = getColonString(line);\n// MyLogger.logD(CLASS_TAG,\"startsWith(NAME) = \" +calllogData.name);\n }\n if (line.startsWith(CallLogsData.NUMBER)) {\n calllogData.number = getColonString(line);\n// MyLogger.logD(CLASS_TAG,\"startsWith(NUMBER) = \"+calllogData.number);\n }\n if (line.startsWith(CallLogsData.DURATION)) {\n calllogData.duration = Long.parseLong(getColonString(line));\n// MyLogger.logD(CLASS_TAG,\"startsWith(DURATION) = \"+calllogData.duration);\n }\n if (line.startsWith(CallLogsData.NMUBER_TYPE)) {\n calllogData.number_type = Integer.parseInt(getColonString(line));\n// MyLogger.logD(CLASS_TAG,\"startsWith(NMUBER_TYPE) = \"+calllogData.number_type);\n }\n if (line.startsWith(CallLogsData.END_VCALL)) {\n// MyLogger.logD(CLASS_TAG,calllogData.toString());\n calllogsList.add(calllogData);\n MyLogger.logD(CLASS_TAG, \"startsWith(END_VCALL)\");\n }\n }\n buffreader.close();\n } catch (IOException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n MyLogger.logE(CLASS_TAG, \"init failed\");\n }\n return calllogsList;\n }", "public void parseDumpstateFile(String filePath) {\n\t\tif (filePath == null || \"\".equals(filePath)) {\n\t\t\treturn;\n\t\t}\n\t\tFile file = new File(filePath);\n\t\tif (!file.exists()) {\n\t\t\treturn;\n\t\t}\n\t\tSystem.gc();\n\t\ttry {\n\t\t\tFileReader fr = new FileReader(file);\n\t\t\tBufferedReader br = new BufferedReader(fr);\n\t\t\tList<String> linesListMain = new ArrayList<String>();\n\t\t\tList<String> linesListEvents = new ArrayList<String>();\n\t\t\tList<String> linesListRadio = new ArrayList<String>();\n\t\t\tint state = 0;\n\t\t\tboolean finish = false;\n\t\t\twhile (br.ready()) {\n\t\t\t\tString strLine = br.readLine().trim();\n\t\t\t\tswitch (state) {\n\t\t\t\tcase 0:\n\t\t\t\t\tif (strLine.startsWith(\"------ SYSTEM LOG (logcat -v threadtime\")) {\n\t\t\t\t\t\tstate = 1;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase 1:// main\n\t\t\t\t\tif (strLine.startsWith(\"------ EVENT LOG (logcat -b events -v threadtime\")) {\n\t\t\t\t\t\tstate = 2;\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\tlinesListMain.add(strLine);\n\t\t\t\t\tbreak;\n\t\t\t\tcase 2:// events\n\t\t\t\t\tif (strLine.startsWith(\"------ RADIO LOG (logcat -b radio -v threadtime\")) {\n\t\t\t\t\t\tstate = 3;\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\tlinesListEvents.add(strLine);\n\t\t\t\t\tbreak;\n\t\t\t\tcase 3:// radio\n\t\t\t\t\tif (strLine.startsWith(\"[logcat:\")) {\n\t\t\t\t\t\tstate = 4;\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\tlinesListRadio.add(strLine);\n\t\t\t\t\tbreak;\n\t\t\t\tcase 4:// finish\n\t\t\t\t\tfinish = true;\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tassert (false);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\tif (finish) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (linesListMain.size() > 0) {\n\t\t\t\tList<LogCatMessage> logMessageMain = process_LOGCAT_V_THREADTIME(linesListMain);\n\t\t\t\tsendMessageReceivedEvent(logMessageMain, UIThread.PANEL_ID_MAIN, file);\n\t\t\t}\n\n\t\t\tif (linesListEvents.size() > 0) {\n\t\t\t\tList<LogCatMessage> logMessageEvents = process_LOGCAT_V_THREADTIME(linesListEvents);\n\t\t\t\tsendMessageReceivedEvent(logMessageEvents, UIThread.PANEL_ID_EVENTS, file);\n\t\t\t}\n\n\t\t\tif (linesListRadio.size() > 0) {\n\t\t\t\tList<LogCatMessage> logMessageRadio = process_LOGCAT_V_THREADTIME(linesListRadio);\n\t\t\t\tsendMessageReceivedEvent(logMessageRadio, UIThread.PANEL_ID_RADIO, file);\n\t\t\t}\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "public static String readLog(String fp)\n {\n try\n {\n BufferedReader r = new BufferedReader( new FileReader(fp));\n StringBuilder b = new StringBuilder();\n\n String l = r.readLine();\n while( l != null ) \n {\n b.append(l);\n l = r.readLine();\n }\n \n return b.toString().trim();\n }\n catch( IOException e )\n {\n UI.println(\"There was an error when operning the log file\");\n Trace.println(e);\n }\n\n return null;\n }", "private void readFile(String pathName, Object logs) {\r\n try {\r\n File f = new File(pathName);\r\n if (!f.exists() || f.isDirectory()) {\r\n // the result of createNewFile is not necessary need\r\n if(f.createNewFile()) {\r\n writeToFile(pathName, logs);\r\n }\r\n } else {\r\n FileInputStream fileInputStream = new FileInputStream(pathName);\r\n ObjectInputStream objectInputStream = new ObjectInputStream(fileInputStream);\r\n // the type is checked using logs.equals since instanceof can not check generic type\r\n if (logs.equals(allLogs)) {\r\n allLogs = (ArrayList<ArrayList<String>>) objectInputStream.readObject();\r\n } else if (logs.equals(getAllTags())){\r\n setAllTags((ArrayList<String>) objectInputStream.readObject());\r\n } else if (logs.equals(userInfo)) {\r\n userInfo = ((HashMap<String, String>) objectInputStream.readObject());\r\n }\r\n }\r\n } catch(IOException | ClassNotFoundException e){\r\n e.printStackTrace();\r\n }\r\n }", "List<LoggingEvent> parse(InputStream is) throws ParseException;", "public static List<String> getLogFromFile(String filePath) {\n List<String> logData = new ArrayList<>();\n File file = new File(filePath);\n try {\n Scanner sc = new Scanner(file);\n while (sc.hasNextLine()) {\n logData.add(sc.nextLine());\n }\n sc.close();\n } catch (FileNotFoundException e) {\n Logger.log(e.getMessage());\n }\n return logData;\n }", "public void readTheFile() {\n \t\terrorMap.clear();\n \n \t\tBufferedReader br;\n \t\tString nextLine;\n \t\tString[] header = null;\n \t\tArrayList<String> lines = new ArrayList<String>();\n \t\ttry {\n \t\t\tlogger.debug(\"{} loading file: {} \", getName(), RobotNX100Controller.class.getResource(\"motoman_error_code.txt\").getPath());\n \n \t\t\tbr = new BufferedReader(new FileReader(RobotNX100Controller.class.getResource(\"motoman_error_code.txt\").getPath()));\n \t\t\twhile (((nextLine = br.readLine()) != null) && (nextLine.length() > 0)) {\n \t\t\t\tif (nextLine.startsWith(\"Code\")) {\n \t\t\t\t\theader = nextLine.split(\"[, \\t][, \\t]*\");\n \t\t\t\t} else if (!nextLine.startsWith(\"#\"))\n \t\t\t\t\tlines.add(nextLine);\n \t\t\t}\n \t\t\tbr.close();\n \t\t} catch (FileNotFoundException fnfe) {\n \t\t\t// we do not want to interrupt processing because error map file not set.\n \t\t\tlogger.warn(\"Can not find the Error Message file {} for {}. Only Error code will be reported.\",\n \t\t\t\t\tgetErrorCodeFilename(), getName());\n \t\t\tlogger.warn(\"caused by \" + fnfe.getMessage(), fnfe);\n \t\t\tbr = null;\n \t\t\treturn;\n \t\t} catch (IOException ioe) {\n \t\t\t// we do not want to interrupt processing because error map file not set.\n \t\t\tlogger.warn(\"Can not find the Error Message file {} for {}. Only Error code will be reported.\",\n \t\t\t\t\tgetErrorCodeFilename(), getName());\n \t\t\tlogger.error(\"caused by \" + ioe.getMessage(), ioe);\n \t\t\tbr = null;\n \t\t\treturn;\n \t\t}\n \n \t\tnumberOfRows = lines.size();\n \t\tlogger.debug(\"the file contained \" + numberOfRows + \" lines\");\n \t\tint nColumns = new StringTokenizer(lines.get(0), \"\\t\").countTokens();\n \t\tlogger.debug(\"each line should contain \" + nColumns + \" numbers\");\n \t\tkeys = new ArrayList<String>();\n \t\tif (header != null) {\n \t\t\tfor (int i = 1; i < nColumns; i++) {\n \t\t\t\terrorMap.put(header[0], header[i]);\n \t\t\t}\n \t\t\tkeys.add(header[0]);\n \t\t}\n \n \t\tfor (int i = 0; i < numberOfRows; i++) {\n \t\t\tnextLine = lines.get(i);\n \t\t\tString[] thisLine = nextLine.split(\"[\\t][\\t]*\");\n \t\t\tfor (int j = 0; j < thisLine.length; j++)\n \t\t\t\terrorMap.put(thisLine[0], thisLine[j]);\n \t\t\tkeys.add(thisLine[0]);\n \t\t}\n \t}", "public static void reformat(String logfile) throws IOException {\t\t\n\t\t\n\t\t//System.out.println(\"Reformat log file \"+logfile+\".\");\t\t\n\t\t//Hashtable<String,String> ipSessionidMap=new Hashtable<String,String>();\n\t\tString line;\n\t\t//String s1, s2, s3;\n\t\tString queryId;\n\t\tint index1;\n\t\tint index2;\n\t\tint LIMIT_PARTS=7;\n\t\t//boolean endsInAmp;\t\t\n\t\tBufferedReader br = new BufferedReader( new FileReader(logfile) );\n\t\t//BufferedReader br = new BufferedReader( new InputStreamReader(new FileInputStream(new File(logfile)),\"ISO8859-1\") );\n\t\twhile ( ( line = br.readLine() ) != null ) {\t\t\n\t\t/*\n\t\tFileInputStream fin = new FileInputStream(logfile); \n DataInputStream din = new DataInputStream(fin);\n while (din.available() > 0) { \n \tline = din.readLine();\n */ \t\t\t\n\t\t\tString parts[]=line.split(\"\\\\s\",LIMIT_PARTS);\n\t\t\tif (parts.length<LIMIT_PARTS) {\n\t\t\t\tSystem.err.println(\"Error in reformating line:\"+line);\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tString ip=parts[0];\t\t\t\n\t\t\tString method=parts[5];\t\t\t\t\t\n\t\t\tif (!method.equals(\"\\\"GET\")) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tString query=parts[6];\n\t\t\tif (!query.startsWith(\"/pesquisa?\") && !query.startsWith(\"/termos?\")) {\n\t\t\t\tcontinue;\n\t\t\t}\t\t\n\t\t\t\t\t\t\n\t\t\t//endsInAmp=true;\n\t\t\tindex1=line.indexOf(SESSIONID_KEY);\n\t\t\tif (index1!=-1) {\n\t\t\t\tindex2=line.indexOf('&', index1);\n\t\t\t\tif (index2==-1) {\n\t\t\t\t\tindex2=line.indexOf(' ', index1);\n\t\t\t\t\t//endsInAmp=false;\n\t\t\t\t}\n\t\t\t\ttry {\n\t\t\t\t\t//s1=line.substring(0,index1);\n\t\t\t\t\tqueryId=line.substring(index1+SESSIONID_KEY.length(),index2);\t\t\t\t\t\n\t\t\t\t\t//s3=line.substring(index2+ (endsInAmp ? 1 : 0));\n\t\t\t\t\t//System.out.println(s2+\" \"+s1+s3);\n\t\t\t\t\t\n\t\t\t\t\t//ipSessionidMap.put(ip,s2);\n\t\t\t\t}\n\t\t\t\tcatch (StringIndexOutOfBoundsException e) {\n\t\t\t\t\tthrow new IOException(e);\n\t\t\t\t\t//queryId=null;\n\t\t\t\t\t//System.err.println(\"Error in substring for line: \"+line);\n\t\t\t\t}\t\t\t\t\t\t\t\t\t\n\t\t\t}\t\t\t\n\t\t\telse {\n\t\t\t\tqueryId=\"0\";\n\t\t\t\t/*\n\t\t\t\tif ((s2=ipSessionidMap.get(ip))==null) {\n\t\t\t\t\t//System.err.println(\"IP \"+ip+\" without a session.\");\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tSystem.out.println(s2+\" \"+line);\n\t\t\t\t}\n\t\t\t\t*/\n\t\t\t}\t\t\t\n\t\t\tSystem.out.print(ip+\" \"+parts[1]+\" \"+queryId);\n\t\t\tfor (int i=3; i<LIMIT_PARTS; i++) {\n\t\t\t\tSystem.out.print(\" \"+parts[i]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t\tbr.close();\n //din.close();\n\t}", "private static void readHistoryData()\n throws FileNotFoundException {\n File file = new File(HISTORY_FILE_PATH);\n Scanner scanner = new Scanner(file); // create a Scanner using the File as the source\n StringBuilder message = new StringBuilder();\n int index = 1;\n while (scanner.hasNext()) {\n String line = scanner.nextLine();\n message.append(\"\\n\\t\" + index + \". \" + line);\n index++;\n }\n scanner.close();\n\n history = message.toString();\n }", "private void readDataFromUserLog(HashMap<String,TransactionData> hmap , String filename){\n\t\t\n\t\tBufferedReader reader = null;\n\t\t\n\t\ttry{\n\t\t\treader = new BufferedReader(new FileReader(filename));\n\t\t\tString line;\n\t\t\twhile((line = reader.readLine()) != null){\n\t\t\t\tString transaction = line.split(\",\")[1];\n\t\t\t/*\tString transactionKey = (transaction.length() > keyLength ) ?\n\t\t\t\t\t\ttransaction.substring(0,keyLength):\n\t\t\t\t\t\t\ttransaction;*/\n\t\t\t\tString transactionKey = formTransactionKey(transaction);\n\t\t\t\tdouble amount = Double.parseDouble(line.split(\",\")[2]);\n\t\t\t\tif(hmap.containsKey(transactionKey)){\n\t\t\t\t\tTransactionData d = hmap.get(transactionKey);\n\t\t\t\t\td.addAnotherOccurence(amount);\n\t\t\t\t\thmap.put(transactionKey,d );\n\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tchar type = identifyTheTransactions(transaction);\n\t\t\t\t\tTransactionData d =new TransactionData(transaction,amount,type);\n\t\t\t\t\thmap.put(transactionKey,d);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\tSystem.out.println(\"Sorry!! File : \"+ filename +\" required for processing!!!\");\n\t\t\tSystem.out.println(\"\\n\\nPlease try again !!!\");\n\t\t\tSystem.exit(1);\n\t\t\t//e.printStackTrace();\n\t\t}\n\t\tfinally{\n\t\t\ttry {\n\t\t\t\treader.close();\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "public static void main(String[] args) {\n\t\ttry (BufferedReader reader = \r\n\t\t\t\tnew BufferedReader(\r\n\t\t\t\t\t\tnew FileReader(\r\n\t\t\t\t\t\t\t\tnew File(\"F:/tmp/log.txt\")));) {\r\n\r\n\t\t\tStream<String> stream = reader.lines();\t//new method lines() since java 8\r\n\t\t\t/**lines() method opens a stream of string on that reader. \r\n\t\t\t * This stream is a stream on each element i.e. a line in the file.\r\n\t\t\t * Reader.lines() opens a stream on the file \r\n\t\t\t * and every element of that stream is a single line in the file */\r\n\r\n\t\t\tstream.filter(line -> line.contains(\"ERROR\"))\r\n\t\t\t.findFirst()\r\n\t\t\t.ifPresent(System.out::print);\r\n\r\n\t\t} catch(IOException ioe) {\r\n\t\t\tSystem.out.println(ioe);\r\n\t\t}\r\n\t}", "public LogEvent[] readLogEvents(long minNumberToRead) throws Exception {\n\n if (objectInputStream == null) {\n throw new Exception(\"Log not opened for input, must open log for input before attempting to read\");\n }\n\n Vector<LogEvent> events = new Vector<LogEvent>();\n long numRead = 0;\n\n if (minNumberToRead < 1) {\n minNumberToRead = Long.MAX_VALUE;\n }\n\n Object object = null;\n do {\n try {\n object = objectInputStream.readObject();\n } catch (java.io.EOFException eof) {\n object = null;\n }\n if (object != null && object instanceof LogEvent) {\n events.addElement((LogEvent) object);\n } else if (object != null) {\n throw new Exception(\"Found object \" + object.getClass().getName() + \" expecting LogEvent in file \" + inputLogFilename);\n }\n numRead++;\n } while (object != null && numRead < minNumberToRead);\n\n return (LogEvent[]) events.toArray(new LogEvent[events.size()]);\n }", "public String readLogFromSpecifiedLine(String dateOfLog, int lineNumber){\n String logLines=\"\";\n\n if(dateOfLog.equals(todaysDate)||dateOfLog.equals(\"\")) {\n if(logWriter==null){\n logLines += readFile(dateOfLog,lineNumber);\n }else{\n closeLog();\n logLines += readFile(dateOfLog,lineNumber);\n }\n }else{\n readFile(dateOfLog,lineNumber);\n }\n\n return logLines;\n }", "void completeLogs() throws IOException;", "void completeCurrentLog() throws IOException;", "public abstract ArrayList<Log> readUserLogs(User user, int maxEntries);", "public static List<BasicPhoneCall> parseLog() throws FileNotFoundException {\n List<BasicPhoneCall> phoneCalls = new ArrayList<>();\n Scanner fileScanner = new Scanner(new File(logFilePath));\n while (fileScanner.hasNextLine()){\n String nextCall = fileScanner.nextLine();\n if (nextCall.equals(\"\")){\n continue;\n }\n List<String> callInfo = Arrays.asList(nextCall.split(\",\"));\n BasicPhoneCall phoneCall = new BasicPhoneCall(\n callInfo.get(0),\n callInfo.get(1),\n callInfo.get(2),\n callInfo.get(3),\n callInfo.get(4));\n phoneCalls.add(phoneCall);\n mapCall(phoneCall);\n }\n Collections.reverse(phoneCalls);\n return phoneCalls;\n }", "private void parse() throws IOException {\n\n\t\tStats statsObject = new Stats();\n\n\t\tstatsObject.setProcessName(process);\n\n\t\tList<String> lines = Files.readAllLines(Paths.get(filename), Charset.defaultCharset());\n\n\t\tPattern timePattern = Pattern.compile(\"((\\\\d+)-)*(\\\\d+)\\\\W((\\\\d+):)*(\\\\d+)\\\\.(\\\\d+)\");\n\n\t\tSystem.out.println(filename+\" \"+lines.get(0));\n\t\tMatcher matcher = timePattern.matcher(lines.get(0));\n\t\twhile (matcher.find()) {\n\t\t\tstatsObject.setStartTime(matcher.group(0));\n\t\t\tbreak;\n\t\t}\n\n\t\tmatcher = timePattern.matcher(lines.get(lines.size() - 1));\n\t\twhile (matcher.find()) {\n\t\t\tstatsObject.setEndTime(matcher.group(0));\n\t\t\tbreak;\n\t\t}\n\t\tString error = new String();\n\t\tfor (String line : lines) {\n\n\t\t\tif (line.startsWith(\"[\")) {\n\t\t\t\tif (!error.isEmpty()) {\n\t\t\t\t\tstatsObject.addError(error);\n\t\t\t\t\terror = \"\";\n\t\t\t\t}\n\n\t\t\t\tif (line.contains(\"Number of records processed: \")) {\n\n\t\t\t\t\tPattern numberPattern = Pattern.compile(\"\\\\d+\");\n\t\t\t\t\tmatcher = numberPattern.matcher(line);\n\t\t\t\t\t\n\t\t\t\t\tString numberOfRecordsProcessed = \"N/A\";\n\t\t\t\t\t\n\t\t\t\t\twhile (matcher.find()) {\n\t\t\t\t\t\tnumberOfRecordsProcessed = matcher.group();\n\t\t\t\t\t}\n\t\t\t\t\tstatsObject.setRecordsProcessed(numberOfRecordsProcessed);\n\n\t\t\t\t}\n\n\t\t\t\telse if (line.contains(\"WARNING\")) {\n\t\t\t\t\tif (line.contains(\"MISSING Property\")) {\n\t\t\t\t\t\tstatsObject.incrementErrorCounter();\n\t\t\t\t\t\tstatsObject.addError(line);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tstatsObject.incrementWarningCounter();\n\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t} else if (line.contains(\"Exception\") || (line.contains(\"Error\"))) {\n\t\t\t\tif (!error.isEmpty()) {\n\t\t\t\t\tstatsObject.addError(error);\n\t\t\t\t\terror = \"\";\n\t\t\t\t}\n\t\t\t\tstatsObject.incrementErrorCounter();\n\t\t\t\terror = error + line;\n\t\t\t} else {\n\t\t\t\terror = error + line ;\n\t\t\t}\n\n\t\t}\n\t\t// reader.close();\n\t\tif (statsObject.getErrorCounter() > 0) {\n\t\t\tstatsObject.setStatus(\"Failure\");\n\t\t}\n\n\t\tPattern pattern = Pattern.compile(\"\\\\d\\\\d\\\\d\\\\d\\\\d\\\\d\\\\d\\\\d\");\n\t\tmatcher = pattern.matcher(filename);\n\t\tString date = null;\n\t\twhile (matcher.find()) {\n\t\t\tdate = matcher.group(0);\n\t\t\tbreak;\n\t\t}\n\t\tboolean saveSuccessful = OutputManipulator.addToStatFile(username, process, date, statsObject);\n\n\t\tif (saveSuccessful) {\n\t\t\tFileParseScheduler.addSuccessfulParsedFileName(username, process, filename);\n\t\t}\n\n\t\tFileParseScheduler.removeLatestKilledThreads(process + filename);\n\t}", "private void openLogFile()\r\n {\n try\r\n {\r\n GregorianCalendar gc = new GregorianCalendar();\r\n runTS = su.reformatDate(\"now\", null, DTFMT);\r\n logFile = new File(logDir + File.separator + runTS + \"_identifyFTPRequests_log.txt\");\r\n logWriter = new BufferedWriter(new FileWriter(logFile));\r\n String now = su.DateToString(gc.getTime(), DTFMT);\r\n writeToLogFile(\"identifyFTPRequests processing started at \" +\r\n now.substring(8, 10) + \":\" + now.substring(10, 12) + \".\" +\r\n now.substring(12, 14) + \" on \" + now.substring(6, 8) + \"/\" +\r\n now.substring(4, 6) + \"/\" + now.substring(0, 4));\r\n }\r\n catch (Exception ex)\r\n {\r\n System.out.println(\"Error opening log file: \" + ex.getMessage());\r\n System.exit(1);\r\n }\r\n }", "@InterfaceAudience.Private\n @VisibleForTesting\n long scanForLogs() throws IOException {\n LOG.debug(\"scanForLogs on {}\", appDirPath);\n long newestModTime = 0;\n RemoteIterator<FileStatus> iterAttempt = list(appDirPath);\n while (iterAttempt.hasNext()) {\n FileStatus statAttempt = iterAttempt.next();\n LOG.debug(\"scanForLogs on {}\", statAttempt.getPath().getName());\n if (!statAttempt.isDirectory()\n || !statAttempt.getPath().getName()\n .startsWith(ApplicationAttemptId.appAttemptIdStrPrefix)) {\n LOG.debug(\"Scanner skips for unknown dir/file {}\",\n statAttempt.getPath());\n continue;\n }\n String attemptDirName = statAttempt.getPath().getName();\n RemoteIterator<FileStatus> iterCache = list(statAttempt.getPath());\n while (iterCache.hasNext()) {\n FileStatus statCache = iterCache.next();\n if (!statCache.isFile()) {\n continue;\n }\n String filename = statCache.getPath().getName();\n String owner = statCache.getOwner();\n //YARN-10884:Owner of File is set to Null on WASB Append Operation.ATS fails to read such\n //files as UGI cannot be constructed using Null User.To Fix this,anonymous user is set\n //when ACL us Disabled as the UGI is not needed there\n if ((owner == null || owner.isEmpty()) && !aclsEnabled) {\n LOG.debug(\"The owner was null when acl disabled, hence making the owner anonymous\");\n owner = \"anonymous\";\n }\n // We should only update time for log files.\n boolean shouldSetTime = true;\n LOG.debug(\"scan for log file: {}\", filename);\n if (filename.startsWith(DOMAIN_LOG_PREFIX)) {\n addSummaryLog(attemptDirName, filename, owner, true);\n } else if (filename.startsWith(SUMMARY_LOG_PREFIX)) {\n addSummaryLog(attemptDirName, filename, owner,\n false);\n } else if (filename.startsWith(ENTITY_LOG_PREFIX)) {\n addDetailLog(attemptDirName, filename, owner);\n } else {\n shouldSetTime = false;\n }\n if (shouldSetTime) {\n newestModTime\n = Math.max(statCache.getModificationTime(), newestModTime);\n }\n }\n }\n\n // if there are no logs in the directory then use the modification\n // time of the directory itself\n if (newestModTime == 0) {\n newestModTime = fs.getFileStatus(appDirPath).getModificationTime();\n }\n\n return newestModTime;\n }", "public static void main(String[] args) throws FileNotFoundException \r\n\t\t{\r\n\t\t\r\n\t\t\tdouble timestamp_difference ; \r\n\t\t{\r\n\t\t\ttry (BufferedReader br = new BufferedReader (new FileReader(\"C:\\\\mslog.txt\"))) \r\n\t\t\t{\r\n\t\t\t\t\r\n\t\t\t\t{\r\n\t\t\t\t\tSystem.out.println(\" Captured Summary of the Microservices Log file located at C:\\\\mslog.txt is as below : \" );\r\n\t\t\t\t\tSystem.out.println(\" ************ Start of Log file Summary ************* \");\r\n\t\t\t\t\tSystem.out.println(\" Sr.No 1 - \" ); \r\n\t\t\t\t\t\r\n\t\t\t\t\tString sCurrentLine;\r\n\t\t\t \r\n\t\t\t String Search=\"(addClient:97900)\";\r\n\t\t\t while ((sCurrentLine = br.readLine()) != null) \r\n\t\t\t {\t \t\r\n\t\t\t \t \r\n\t\t\t \tif(sCurrentLine.contains(Search))\r\n\t\t\t {\t\t \r\n\t\t\t System.out.println(\" (addClient:97900) string found in log file where Name of service is = addClient & Request id is = 97900 \" ) ;\r\n\t\t\t }\r\n\t\t\t \t\r\n\t\t\t \t\r\n\t\t\t }\r\n\t\t\t { \r\n\t\t\t \t\tint count = 0;\r\n\t\t\t for (int i = 0; i <= 1 ; i++) {\r\n\t\t\t count++;\r\n\t\t\t \r\n\t\t\t }\r\n\t\t\t System.out.println( \" Sr.No 2 - Number of requests made to the service are = \" + count);\r\n\t\t\t }\r\n\t\t\t \r\n\t\t\t\t\r\n\r\n\t\t\t }\t\r\n\t\t\t\r\n\r\n\t\t\t \r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t \r\n\t\t\t\t\r\n\t\t\t\tcatch (IOException e) {\r\n\t\t\t e.printStackTrace();\r\n\t\t\t }\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\ttry (BufferedReader br1 = new BufferedReader (new FileReader(\"C:\\\\mslog.txt\"))) \r\n\t\t\t{\r\n\t\t\t\t\r\n\t\t\t\t{\r\n\t\t\t String sCurrentLine;\r\n\t\t\t String Search1=\"2015-10-28T12:24:33,903\";\r\n\t\t\t while ((sCurrentLine = br1.readLine()) != null) \r\n\t\t\t {\r\n\t\t\t if(sCurrentLine.contains(Search1))\r\n\t\t\t {\r\n\t\t\t System.out.println(\" Sr.No 3 - Entry time stamp of Add Client Request (id-97900) found in logfile is = \" + Search1 );\r\n\t\t\t }\r\n\t\t\t \r\n\r\n\t\t\t }\r\n\t\t\t \r\n\r\n\t\t\t \r\n\t\t\t}\r\n\t\t\t}\r\n\t\t\t \r\n\t\t\t\t\r\n\t\t\t\tcatch (IOException e) {\r\n\t\t\t e.printStackTrace();\r\n\t\t\t }\r\n\t\t\t\t \r\n\t\t\t\r\n\t\t\ttry (BufferedReader br2 = new BufferedReader (new FileReader(\"C:\\\\mslog.txt\"))) \r\n\t\t\t{\r\n\t\t\t\t\r\n\t\t\t\t{\r\n\t\t\t String sCurrentLine;\r\n\t\t\t String Search2=\"2015-10-28T12:24:34,002\";\r\n\t\t\t while ((sCurrentLine = br2.readLine()) != null) \r\n\t\t\t {\r\n\t\t\t if(sCurrentLine.contains(Search2))\r\n\t\t\t {\r\n\t\t\t System.out.println(\" Sr.No 4 - Exit time stamp of Add Client Request (id-97900) found in logfile is = \" + Search2 );\r\n\t\t\t }\r\n\t\t\t \r\n\r\n\t\t\t }\r\n\t\t\t \r\n\r\n\t\t\t \r\n\t\t\t}\r\n\t\t\t}\r\n\t\t\t \r\n\t\t\t\t\r\n\t\t\t\tcatch (IOException e) {\r\n\t\t\t e.printStackTrace();\r\n\t\t\t }\r\n\t\t\t\r\n\t\t\ttry (BufferedReader br3 = new BufferedReader (new FileReader(\"C:\\\\mslog.txt\"))) \r\n\t\t\t{\r\n\t\t\t\t\r\n\t\t\t\t{\r\n\t\t\t String sCurrentLine;\r\n\t\t\t String Search3=\"33,903\";\t\t \r\n\t\t\t while ((sCurrentLine = br3.readLine()) != null) \r\n\t\t\t {\r\n\t\t\t if(sCurrentLine.contains(Search3))\r\n\t\t\t {\r\n\t\t\t System.out.println(\" Sr.No 5 - Entry time stamp (in seconds) of Add Client Request (id-97900) found in logfile is = \" + Search3 );\r\n\t\t\t //double secexit = Integer.parseInt(Search3);\r\n\t\t\t }\r\n\t\t\t \r\n\r\n\t\t\t }\r\n\r\n\t\t\t \r\n\t\t\t}\r\n\t\t\t}\r\n\t\t\t \r\n\t\t\t\t\r\n\t\t\t\tcatch (IOException e) {\r\n\t\t\t e.printStackTrace();\r\n\t\t\t }\r\n\t\t\t\r\n\t\t\t\r\n\t\t\ttry (BufferedReader br4 = new BufferedReader (new FileReader(\"C:\\\\mslog.txt\"))) \r\n\t\t\t{\r\n\t\t\t\t\r\n\t\t\t\t{\r\n\t\t\t String sCurrentLine;\r\n\t\t\t String Search4=\"34,002\";\t\t \r\n\t\t\t while ((sCurrentLine = br4.readLine()) != null) \r\n\t\t\t {\r\n\t\t\t if(sCurrentLine.contains(Search4))\r\n\t\t\t {\r\n\t\t\t System.out.println(\" Sr.No 6 - Exit time stamp (in seconds) of Add Client Request (id-97900) found in logfile is = \" + Search4 );\r\n\t\t\t //double secentry = Integer.parseInt(Search4);\r\n\t\t\t }\r\n\t\t\t \r\n\r\n\t\t\t }\r\n\t\t\t \r\n\r\n\t\t\t \r\n\t\t\t}\r\n\t\t\t}\r\n\t\t\t \r\n\t\t\t\t\r\n\t\t\t\tcatch (IOException e) {\r\n\t\t\t e.printStackTrace();\r\n\t\t\t }\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\ttimestamp_difference = ( 34002 - 33903 ) * 0.0001 ;\r\n\t\t\tSystem.out.println(\" Sr.No 7 - Maximum time required for Add Client request execution ( in seconds ) is = \" + timestamp_difference );\r\n\t\t\t\r\n\t\t\tSystem.out.println(\" ************ End of Log file Summary ************* \");\r\n\t\t\t\r\n\t\t\t}\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t}", "TraceList read(File file) throws IOException;", "public void readFromFile() {\n\n\t}", "public static String readlogfile(String filepath) {\n\t\tSystem.out.println(\"d�but de lecture \" + LocalDateTime.now());\n\t\tint i=0;\n\t\tStringBuilder builder = new StringBuilder();\n\t\ttry {\n\t\t\tBufferedReader buff = new BufferedReader(new InputStreamReader(new FileInputStream(filepath))); \n\t\t\tString ligne;\n\t\t\t\n\t\t\twhile ((ligne = buff.readLine()) != null) {\n\t\t\t\t\n\t\t\t\tbuilder.append(ligne).append('\\n');\n\t\t\t\t\n\t\t\t\ti++;\n\t\t\t\t\n\t\t\t\t}\n\t\t\t\n\t\t\tbuff.close();\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(e.toString());\n\t\t}\n\n\t\tSystem.out.println(\"fin de lecture \" + LocalDateTime.now());\n\t\treturn builder.toString();\n\t}", "private void logLineFromTasksFile(File cgf) {\n String str;\n if (LOG.isDebugEnabled()) {\n try (BufferedReader inl =\n new BufferedReader(new InputStreamReader(new FileInputStream(cgf\n + \"/tasks\"), \"UTF-8\"))) {\n str = inl.readLine();\n if (str != null) {\n LOG.debug(\"First line in cgroup tasks file: {} {}\", cgf, str);\n }\n } catch (IOException e) {\n LOG.warn(\"Failed to read cgroup tasks file. \", e);\n }\n }\n }", "public void logClose() throws IOException {\n\t\t\t\tlong finish = System.currentTimeMillis();\n\t\t\t\tString time = getCurrentDateTimeFull();\n\t\t\t\t// Scanning Failure Counter record:\n\t\t\t\tint failed = 0;\n\t\t\t\tif (fileExist(\"failed.num\", false)) { failed = Integer.valueOf(fileScanner(\"failed.num\")); }\n\t\t\t\t// Scanning Test Counter record:\n\t\t\t\tint n = 1;\n\t\t\t\tif (fileExist(\"test.num\", false)) {\n\t\t\t\t\tif (!fileScanner(\"test.num\").equals(null)) { n = Integer.valueOf(fileScanner(\"test.num\")); }\n\t\t\t\t}\n\t\t\t\tif (n > 1) {\n\t\t\t\t\t// Scanning Initialization record:\n\t\t\t\t\tString startingTime = fileScanner(\"ini.time\");\n\t\t\t\t\tlong start = convertStringToLong(startingTime);\n\t\t\t\t\tfileWriterPrinter(\"TOTAL TESTS: \" + Integer.valueOf(fileScanner(\"test.num\")));\n\t\t\t\t\tfileWriterPrinter(\" FAILED: \" + failed);\n\t\t\t\t\tfileWriterPrinter(\"TEST START: \" + convertCalendarMillisecondsAsLongToDateTimeHourMinSec(start));\n\t\t\t\t\tfileWriterPrinter(\"TEST FINISH: \" + time);\n\t\t\t\t\tfileWriterPrinter(\"TOTAL TIME: \" + convertTimeMillisecondsAsLongToDuration(finish - start));\n\t\t\t\t\tfileWriterPrinter();\n\t\t\t\t\t// Final Log record:\n\t\t\t\t\tif (fileExist(\"run.log\")) { \n\t\t\t\t\t\tfileWriter(\"run.log\", \"\");\n\t\t\t\t\t\tfileWriter(\"run.log\", \"TOTAL TESTS: \" + Integer.valueOf(fileScanner(\"test.num\")));\n\t\t\t\t\t\tfileWriter(\"run.log\", \" FAILED: \" + failed);\n\t\t\t\t\t\tfileWriter(\"run.log\", \"TEST START: \" + convertCalendarMillisecondsAsLongToDateTimeHourMinSec(start));\n\t\t\t\t\t\tfileWriter(\"run.log\", \"TEST FINISH: \" + time);\n\t\t\t\t\t\tfileWriter(\"run.log\", \"TOTAL TIME: \" + convertTimeMillisecondsAsLongToDuration(finish - start));\n\t\t\t\t\t\tfileWriter(\"run.log\", \"\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t// Clean-up unnecessary file(s)\n\t\t\t\tfileCleaner(\"failed.num\");\n\t\t\t\tfileCleaner(\"finish.time\");\n\t\t\t\tfileCleaner(\"ini.time\");\n\t\t\t\tfileCleaner(\"start.time\");\n\t\t\t\tfileCleaner(\"stack.trace\");\n\t\t\t\tfileCleaner(\"test.num\");\n\t\t\t\tfileCleaner(\"xml.path\");\n\t\t\t}", "public LogReader(String path) {\n this.path = path;\n }", "private int readFlatFile(String expositionDirPath, String flatFilename, int expoYear){\n String badgeID, expoValue, line = \"\";\n int lineCounter = 0, idx = 0, expoMonth = 0;\n\n try{\n // set up a logger\n Logger.setOutputFile(expositionDirPath+\"/\"+flatFilename.substring(0,flatFilename.length()-4)+\".log\");\n Logger.setAppend(false);\n\n // exposite -> expoSiteId\n String expoSite = flatFilename.substring(0,3);\n int expoSiteId = 0;\n if(expoSite.equalsIgnoreCase(\"DOE\")) expoSiteId = 1;\n else if(expoSite.equalsIgnoreCase(\"TIH\")) expoSiteId = 2;\n else if(expoSite.equalsIgnoreCase(\"IRE\")) expoSiteId = 3;\n else if(expoSite.equalsIgnoreCase(\"OTH\")) expoSiteId = 4;\n\n openInputFile(expositionDirPath+\"/\"+flatFilename);\n\n // run thru lines in file\n while((line = lineNumberReader.readLine()) != null){\n lineCounter++;\n idx = 0;\n\n if(line.length() > 0){\n badgeID = line.substring(idx,idx+BADGEID_LEN).trim(); idx+=BADGEID_LEN;\n expoMonth = Integer.parseInt(line.substring(idx,idx+BADGEID_LEN).trim()); idx+=EXPOMONTH_LEN+5; // 5 = redundant chars\n expoValue = line.substring(idx).trim();\n\n // date range in which the expositions took place (1 whole month)\n Calendar expoDate = new GregorianCalendar(expoYear,expoMonth-1,1,0,0,0);\n Date expoDateBegin = expoDate.getTime();\n expoDate.add(Calendar.MONTH,1);\n Date expoDateEnd = expoDate.getTime();\n\n if(Debug.enabled){\n Debug.println(\"\\n###### [\"+badgeID+\", \"+expoMonth+\", \"+expoValue+\"] ######\");\n Debug.println(\"expoDateBegin : \"+dateFormat.format(expoDateBegin));\n Debug.println(\"expoDateEnd : \"+dateFormat.format(expoDateEnd)+\"\\n\");\n }\n\n saveExpositionInDB(badgeID,expoSiteId,expoMonth,expoYear,expoDateBegin,expoDateEnd,expoValue);\n }\n else{\n Logger.log(\"Empty line in flatfile '\"+flatFilename+\"'.\",Logger.ERROR_LEVEL_INFO,\"\"+lineCounter);\n }\n }\n }\n catch(Exception e){\n e.printStackTrace();\n }\n finally{\n Logger.close();\n\n try{\n closeInputFile();\n }\n catch(IOException ioe){\n ioe.printStackTrace();\n }\n }\n\n if(Debug.enabled) Debug.println(\"\\n=======================================================\");\n if(Debug.enabled) Debug.println(\"flat file '\"+flatFilename+\"' read.\\n\\n\");\n\n return lineCounter;\n }", "public static ArrayList<MonitoredData> readFileData(){\n ArrayList<MonitoredData> data = new ArrayList<>();\n List<String> lines = new ArrayList<>();\n try (Stream<String> stream = Files.lines(Paths.get(\"Activities.txt\"))) {\n lines = stream\n .flatMap((line->Stream.of(line.split(\"\\t\\t\"))))\n .collect(Collectors.toList());\n for(int i=0; i<lines.size()-2; i+=3){\n MonitoredData md = new MonitoredData(lines.get(i), lines.get(i+1), lines.get(i+2));\n data.add(md);\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n //data.forEach(System.out::println);\n return data;\n }", "public static void log() {\n String branch = commitPointers.readHeadCommit()[0];\n String currName = commitPointers.readHeadCommit()[1];\n File cFile = Utils.join(Commit.COMMIT_FOLDER, currName + \".txt\");\n Commit curr = Utils.readObject(cFile, Commit.class);\n\n while (currName != null) {\n System.out.println(\"===\");\n System.out.println(\"commit \" + curr.commitID);\n if (curr.parentID.size() == 2) {\n System.out.println(\"Merge: \" + curr.parentID.get(0).substring(0, 7) + \" \" + curr.parentID.get(1).substring(0, 7));\n }\n System.out.println(\"Date: \" + curr.timeStamp.format(myFormatObj) + \" -0800\");\n System.out.println(curr.message);\n System.out.println();\n\n currName = curr.parentID.get(0);\n\n if (currName != null) {\n File newcFile = Utils.join(Commit.COMMIT_FOLDER, currName + \".txt\");\n curr = Utils.readObject(newcFile, Commit.class);\n }\n }\n }", "public void fileRead() {\n\t\tString a, b;\n\t\t\n\t\twhile (input.hasNext()) {\n\t\t\ta = input.next();\n\t\t\tb = input.next();\n\t\t\tSystem.out.printf(\"%s %s\\n\", a, b);\n\t\t}\n\t}", "void setupFileLogging();", "private static void read(String fileName) {\n try {\n BufferedReader sc = null;\n sc = new BufferedReader(new FileReader(fileName));\n String temp = sc.readLine();\n interval = Integer.parseInt(temp);\n System.out.println(\"Interval = \" + interval + \" seconds.\");\n while ((temp = sc.readLine()) != null) {\n String[] entry = temp.split(\",\");\n url = entry[0];\n cores = Integer.parseInt(entry[1]);\n System.out.println(url + \" : \" + cores);\n }\n sc.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n }", "public void readtabs(File f) {\r\n \tString str = new String();\r\n try{\r\n BufferedReader br = new BufferedReader(new FileReader(f.getAbsolutePath()));\r\n str = br.readLine();\r\n \r\n while((str = br.readLine()) != null){\r\n //str = str.replaceAll(\";\", \"\");\r\n String info[] = str.split(\";\");\r\n if(f.getName().equals(\"mdl_chat_messages.txt\")){\r\n \t//chat message id; chatid; userid; groupid; system; message; timestamp;\r\n \tmobileact ma = new mobileact(info[2].trim(), info[6].trim(), \"Chat Message\", info[5]);\r\n \tmobact.add(ma);\r\n }else if(f.getName().equals(\"mdl_forum_posts.txt\")){\r\n \t//id; discussion; parent; userid; created; modified; mailed; subject; message; \r\n \t//messageformat; messagetrust; attachment; totalscore; mailnow; \r\n \tmobileact ma = new mobileact(info[3].trim(), info[5].trim(), \"Forum Posts\", info[8].trim());\r\n \tmobact.add(ma);\r\n }else if(f.getName().equals(\"mdl_quiz_attempts.txt\")){\r\n \t//id; quiz; userid; attempt; uniqueid; layout; currentpage; \r\n \t//preview; state; timestart; timefinish; timemodified; timecheckstate; \r\n \t//sumgrades; needsupgradetonewqe; \r\n \tmobileact ma = new mobileact(info[2].trim(), info[11].trim(), \"Attempt Quiz\", info[8].trim());\r\n \tmobact.add(ma);\r\n }\r\n }\r\n br.close();\r\n }catch(Exception e){\r\n JOptionPane.showMessageDialog(null, \"read moodle log file failed.\", \"System Message\", JOptionPane.ERROR_MESSAGE);\r\n }\r\n }", "@Override\n\t\tpublic void process(EventMessage msg) {\n\t\t\tLogMessage logmsg = (LogMessage) msg;\n\t\t\tString[] records = logmsg.getChunk().split(\"\\n\");\n\t\t\tEventManager.mergeLog(records);\n\t\t}", "@Override\n public void run() {\n try (BufferedReader reader = new BufferedReader(new FileReader(file.getAbsoluteFile()))) {\n String lineFromFile = reader.readLine();\n String[] splitLine;\n String userName;\n String url;\n long time;\n while ((lineFromFile = reader.readLine()) != null) {\n splitLine = lineFromFile.split(\";\");\n userName = splitLine[3];\n url = splitLine[1];\n time = Long.parseLong(splitLine[2]);\n if (userNamesAndCorrespondingContent.containsKey(userName)) {\n Content content = userNamesAndCorrespondingContent.get(userName);\n if (content.getUrlAndCorrespondingTime().containsKey(url)) {\n content.updateTimeForCorrespondingUrl(url, time);\n } else {\n content.updateUrlAndTimeInfoForCorrespondingUsername(url, time);\n }\n } else {\n Map<String, Long> newUrlAndTime = new ConcurrentSkipListMap<>();\n newUrlAndTime.put(url, time);\n userNamesAndCorrespondingContent.put(userName, new Content(newUrlAndTime));\n }\n }\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "HashMap<String, Pair<Long, Long>> recoverLogFiles(\n DataInputStream in) throws IOException {\n HashMap<String, Pair<Long, Long>> logFiles = new HashMap<>();\n long totalEntries = in.readLong();\n for (long i = 0; i < totalEntries; i++) {\n Text attemptDirName = new Text();\n attemptDirName.readFields(in);\n Text fileName = new Text();\n fileName.readFields(in);\n LongWritable lastProcessedTime = new LongWritable();\n lastProcessedTime.readFields(in);\n LongWritable offset = new LongWritable();\n offset.readFields(in);\n Pair<Long, Long> pair = Pair.of(lastProcessedTime.get(), offset.get());\n logFiles.put(attemptDirName + Path.SEPARATOR + fileName, pair);\n }\n LOG.info(\"Recovered {} summarylog files\", totalEntries);\n return logFiles;\n }", "abstract protected String getLogFileName();", "private void recover() throws JournalException {\n if (!Utility.fileExists(this.node, this.filename)) {\n // no log file to recover, just start fresh\n startFresh();\n } else {\n PersistentStorageReader reader = null;\n try {\n reader = node.getReader(this.filename);\n } catch (IOException e) {\n throw new JournalException(\"Failed to open log file: \" \n + this.filename + \" for recovery.\");\n }\n\n if (reader != null) {\n String line = null;\n try {\n while ((line = reader.readLine()) != null) {\n if (line.equals(COMPLETE_TOKEN)) {\n this.pendingOps.poll();\n } else {\n try {\n Serializable obj = (Serializable)Serialization.decode(Utility.fromBase64(line));\n this.pendingOps.offer(obj);\n } catch (Exception e) {\n throw new JournalException(\"Error deserializing on recovery.\");\n }\n }\n }\n } catch (IOException e) {\n throw new JournalException(\"Error while reading from recovery log.\");\n }\n } else {\n throw new JournalException(\"Failed to open log file: \"\n + this.filename + \" for recovery.\");\n }\n try {\n this.log = this.node.getWriter(this.filename, true);\n } catch (IOException e) {\n throw new JournalException(\"Failed to open log file.\");\n }\n }\n }", "public void readDayData() {\n\t\tlogger.info(\"Reading data for date: \" + date);\n\t}", "public LogFileUtilities(LogFileConfiguration logFileConfiguration) throws IOException {\n this.logConfig = logFileConfiguration;\n bufferedReader = new BufferedReader(new FileReader(logFileConfiguration.getLogFile()));\n\n /* A first line is read (the next line) */\n nextLine = bufferedReader.readLine();\n }", "public void analizarArchivoDeLog(String nombreArchivo)\n {\n archivoLog.clear();\n try{\n File log = new File(nombreArchivo);\n Scanner sc = new Scanner(log);\n while (sc.hasNextLine()) {\n String linea = sc.nextLine();\n String[] arrayDeString = linea.split(\" \");\n archivoLog.add(new Acceso (Integer.parseInt(arrayDeString[0]),Integer.parseInt(arrayDeString[1]),Integer.parseInt(arrayDeString[2]),Integer.parseInt(arrayDeString[3]),Integer.parseInt(arrayDeString[4])));\n }\n sc.close();\n }\n\n catch (FileNotFoundException e){\n e.printStackTrace();\n }\n }", "private void readFile (String file, Visitor visitor) throws Exception {\n\t\tFileReader fr = new FileReader (file);\n\t\tBufferedReader reader = new BufferedReader (fr);\n\n\t\tSystem.out.println (\"Reading file \" + file);\n\n\t\tint count = 0;\n\t\tfor (String line; (line = reader.readLine()) != null;) {\n\t\t\tif (count++ % 10000 == 0) System.out.println (line);\n\t\t\tvisitor.visit (line);\n\n\t\t\tif (count >= LIMIT) break;\n\t\t}\n\n\t\tSystem.out.println (\"Done\");\n\n\t\treader.close();\n\t\tfr.close();\n\t}", "public void logOpen() throws IOException {\n\t\t\t\t// Initialization:\n\t\t\t\tfileCleaner(\"failed.log\");\n\t\t\t\tfileCleaner(\"failed.num\");\n\t\t\t\tfileCleaner(\"finish.time\");\n\t\t\t\tfileCleaner(\"ini.time\");\n\t\t\t\tfileCleaner(\"run.log\");\n\t\t\t\tfileCleaner(\"print.log\");\n\t\t\t\tfileCleaner(\"start.time\");\n\t\t\t\tfileCleaner(\"stack.trace\");\n\t\t\t\tfileCleaner(\"test.num\");\n\t\t\t\tfileCleaner(\"wait.log\");\n\t\t\t\tfileCleaner(\"xml.path\");\n\t\t\t\tfileCleaner(\"source.html\");\n\t\t\t\tString time = getCurrentDateTimeFull(); // System.out.print(\" TEST START: \" + time + \"\\n\");\n\t\t\t\tfileWriter(\"ini.time\", convertLongToString(System.currentTimeMillis()));\n\t\t\t\t// Initial Log record:\n\t\t\t\tfileWriter(\"run.log\", \" TEST START: \" + time);\n\t\t\t\tfileWriter(\"run.log\", \"\");\n\t\t\t}", "public static void main(String[] args) {\n\t\ttry {\n\t\t\tFile file = new File(\"input.txt\");\n\t\t\tScanner scan = new Scanner(file);\n\t\t\twhile (scan.hasNext()) {\n\t\t\t\tString line = scan.nextLine();\n\t\t\t\tString[] tokens = line.split(\" \");\n\t\t\t\tString key = null;\n\t\t\t\tint flag1 = 0;\n\t\t\t\tString date = tokens[1];\n\t\t\t\tDayLog currentday = null;\n\t\t\t\tint flag = 0;\n\t\t\t\tfor (int i = 0; i < daylog.size(); i++) {\n\t\t\t\t\tif (date.equals(daylog.get(i).getDate())) {\n\t\t\t\t\t\tcurrentday = daylog.get(i);\n\t\t\t\t\t\tflag = 1;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (daylog.size() == 0 || flag == 0) {\n\t\t\t\t\tDayLog day = new DayLog(date);\n\t\t\t\t\tdaylog.add(day);\n\t\t\t\t\tcurrentday = day;\n\t\t\t\t}\n\n\t\t\t\tswitch (tokens[0]) {\n\t\t\t\tcase \"food\" :\n\t\t\t\t\tcurrentday.addFood(tokens[2]);\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"water\" :\n\t\t\t\t\tcurrentday.addWater(tokens[2]);\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"activity\" :\n\t\t\t\t\tcurrentday.addActivity(tokens[2]);\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"weight\" :\n\t\t\t\t\tcurrentday.addWeight(tokens[2]);\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"sleep\" :\n\t\t\t\t\tcurrentday.addSleep(tokens[2]);\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"foodLog\":\n\t\t\t\t\tcurrentday.foodLog();\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"waterLog\":\n\t\t\t\t\tcurrentday.waterLog();\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"activityLog\":\n\t\t\t\t\tcurrentday.activityLog();\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"sleepLog\":\n\t\t\t\t\tcurrentday.sleepLog();\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"weightLog\":\n\t\t\t\t\tcurrentday.weightLog();\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"print\" :\n\t\t\t\t\tcurrentday.printLog();\n\t\t\t\t\tbreak;\n\n\t\t\t\t}\n\n\t\t\t}\n\t\t} catch (IOException io) {\n\t\t\tSystem.out.println(\"File not found\");\n\t\t}\n\t}", "private void logToFile() {\n }", "public synchronized String getHistory() {\r\n\t\tString log = new String();\r\n\t\ttry {\r\n\t\t\tFile logFile = new File(\"serverlogs.log\");\r\n\t\t\tBufferedReader logReader = new BufferedReader(new InputStreamReader(new FileInputStream(logFile)));\r\n\t\t\tString line;\r\n\t\t\twhile((line = logReader.readLine()) != null) {\r\n\t\t\t\tlog += (line + \"\\n\");\r\n\t\t\t}\r\n\t\t\tlogReader.close();\r\n\t\t} catch (IOException e) {\r\n\t\t\tgui.acknowledge(\"Error : logs are not available\");\r\n\t\t\tstop();\r\n\t\t}\r\n\t\tif(log.equals(\"\\n\")) {\r\n\t\t\tlog = new String();\r\n\t\t}\r\n\t\treturn log;\r\n\t}", "@Override\n\tpublic void run() {\n\n\t\ttry {\n\t\t\tBufferedReader br = new BufferedReader(new InputStreamReader(new FileInputStream(file)));\n\t\t\tString line = null;\n\n\t\t\twhile ((line = br.readLine()) != null) {\n\t\t\t\tString[] record = line.trim().split(\"@\");\n\t\t\t\tif (record.length != 2)\n\t\t\t\t\tcontinue;\n\t\t\t\tparse(record[0], record[1]);\n\n\t\t\t}\n\t\t\t// close buffer reader\n\t\t\tbr.close();\n\t\t\t// Debug catch An exception\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\n\t\t}\n\t}", "public SecurityLog()\n {\n String fileName = \"Log.txt\";\n File output = new File(fileName);\n if(output.exists())\n readFile(fileName);\n }", "IFileLogger log();", "private void startLogFile() {\n try {\n createLogFile();\n // First line of file contains field names\n String [] header = new String [] {\"Job\", \"Step\", \"Total Residents\", \"Domestic\", \"Employed\", \"Student\", \"Rebel\", \"Heard original rumor\", \"Heard new rumor\", \"Run\"};\n dataCSVFile_identity.writeLine(header);\n\n // activity\n String [] header_actions = new String [] {\"Job\",\"Step\",\"total residents\", \"At Home\", \"Work\", \"Searching for Work\",\n \"School\", \"Socialiazing\", \"Church\", \"Getting Water\", \"Rebel\", \"Run\"};\n\n dataCSVFile_action.writeLine(header_actions);\n\n String [] header_network = new String [] {\"Job\", \"Step\", \"node1\", \"node2\", \"weight\"};\n dataCSVFile_network.writeLine(header_network);\n\n String [] header_working = new String [] {\"Job\", \"Step\", \"Business\", \"School\", \"Health Facility\", \"Religious Facility\", \n \"Formal\", \"Informal\", \"Searching\", \"Inactive\", \"Formal at home\", \"Informal at home\", \"Run\"};\n dataCSVFile_working.writeLine(header_working);\n \n String [] header_rebels = new String [] {\"Job\", \"Step\", \"AgeGroup\", \"HHDiscrepancy\", \"Identity\", \"Count\" };\n dataCSVFile_rebels.writeLine(header_rebels);\n\n String[] header_residents = new String [] {\"Job\", \"Step\", \"Resident\", \"Age\", \"Employment status\", \"Laid off\", \"Action\", \n \"Daily water use\", \"Remaining water\", \"Required water\",\n \"Identity\",\"Is initial rebel\", \n \"Heard original rumor\", \"Heard new rumor\", \"Energy\", \"Current Aggression\", \"Aggression Rate\", \"Formal Business Capacity\", \n \"Informal Business Capacity\", \"School Capacity\", \"Has School\", \"Has formal employer\", \"Has informal Employer\", \n \"Formal income\", \"Informal income\", \"Searching income\", \"Inactive income\", \"Household Income\", \"Has electricity\", \"Has sanitation\",\n \"Has water\", \"Household expenditures\", \"Rent cost\", \"Water cost\", \"Electric cost\", \"Sanitation cost\", \n \"Transportation cost\", \"Other cost\", \"Food cost\", \"Discrepancy\", \"Run\", \"Preference\"};\n \n \n dataCSVFile_residents.writeLine(header_residents);\n\n String [] header_degreestats = new String [] {\"Job\", \"Step\", \"max degree\", \"min degree\", \"mean degree\", \"sum degree\", \"mean connections\", \"Run\"};\n dataCSVFile_degreestats.writeLine(header_degreestats);\n\n }\n\n catch (IOException ex) {\n Logger.getLogger(Kibera.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "public void open() {\r\n if (mFailedOpen) {\r\n return;\r\n }\r\n\r\n File base = new File(mBaseFileName);\r\n if (mMaxLogSizeBytes > 0 && base.length() > (mMaxLogSizeBytes / mNumSegments - 1024)) {\r\n Log.d(LOG_TAG, \"Log file exceeds maximum size\");\r\n close();\r\n renameLogs();\r\n open();\r\n } else if (mCurrentFileStream == null) {\r\n try {\r\n mCurrentFileStream = new FileOutputStream(mBaseFileName, true);\r\n } catch (FileNotFoundException e) {\r\n Log.e(LOG_TAG, \"Could not open log file \" + e.getMessage());\r\n mFailedOpen = true;\r\n mCurrentFileStream = null;\r\n }\r\n }\r\n }", "public static void loadLogFile() throws Exception {\n ConfigManager cm = ConfigManager.getInstance();\n cm.add(\"accuracytests\" + File.separator + \"Logging.xml\");\n cm.add(\"Config.xml\");\n }", "@Override\n protected void read(){\n try(BufferedReader bufferedReader = new BufferedReader(new FileReader(getPath()));) {\n\n String frequencyString;\n\n String frequencyFileFormat = \"([a-z]\\\\s\\\\d+\\\\.\\\\d+)\";\n Pattern pattern = Pattern.compile(frequencyFileFormat);\n Matcher matcher;\n\n String[] frequency;\n\n // Read in each line of the frequencies file\n while ((frequencyString = bufferedReader.readLine()) != null) {\n // Match the frequency format to a individual frequency\n matcher = pattern.matcher(frequencyString);\n if(matcher.find()){\n\n // Split the string into the character and its frequency\n frequency = matcher.group(1).split(\" \");\n\n // Add the string and its corresponding frequency to the frequencies hash map\n frequencies.put(frequency[0], Double.parseDouble(frequency[1]));\n \n }\n }\n\n // Only set to true if it successfully reads the whole file\n setFileRead();\n }\n catch(FileNotFoundException e){\n e.printStackTrace();\n }\n catch(IOException e){\n e.printStackTrace();\n }\n }", "public void log() {\n String headID = head.getCommitID();\n while (headID != null) {\n File curr = new File(\".gitlet/commits/\" + headID);\n Comm currcomm = Utils.readObject(curr, Comm.class);\n System.out.println(\"===\");\n System.out.println(\"commit \" + currcomm.getCommitID());\n if (currcomm.getMergepointer() != null) {\n System.out.println(\"Merge: \"\n + currcomm.getParent().getCommitID()\n .substring(0, 7) + \" \"\n + currcomm.getMergepointer().getCommitID()\n .substring(0, 7));\n }\n System.out.println(\"Date: \" + currcomm.getDate());\n System.out.println(currcomm.getMessage());\n System.out.println();\n if (currcomm.getParent() == null) {\n break;\n } else {\n headID = currcomm.getParent().getCommitID();\n }\n }\n }", "public void readEntries() throws FileAccessException;", "@SuppressWarnings(\"AccessingNonPublicFieldOfAnotherObject\")\n\t// Accessing final fields of a private inner class that is not exported\n\tprivate void processFile(boolean initial)\n\t{\n\t\tlog(Level.INFO, \"Processing MOTD file \" + f.getPath());\n\t\tBufferedReader in = null;\n\t\tMessage curr = null;\n\t\tfinal LinkedList<Message> stack = new LinkedList<Message>();\n\n\t\ttry\n\t\t{\n\t\t\tin = new BufferedReader(new FileReader(f));\n\n\t\t\twhile (in.ready())\n\t\t\t{\n\t\t\t\tString line = in.readLine().trim();\n\n\t\t\t\tif (line.charAt(0) == '#') continue;\n\t\t\t\tif (line.equals(\"[Message]\"))\n\t\t\t\t{\n\t\t\t\t\tif (curr != null) stack.push(curr);\n\t\t\t\t\tcurr = new Message();\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\tif (curr == null) continue;\n\t\t\t\tint div = line.indexOf('=');\n\t\t\t\tif (div == -1) continue;\n\n\t\t\t\tString field = line.substring(0,div).toLowerCase();\n\t\t\t\tString value = line.substring(div+1);\n\n\t\t\t\tif (field.equals(\"id\"))\n\t\t\t\t{\n\t\t\t\t\tcurr.id = Integer.parseInt(value);\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tif (initial) continue; // We only care for ids in initial pass\n\t\t\t\tif (field.equals(\"active\"))\n\t\t\t\t{\n\t\t\t\t\tcurr.active = Boolean.valueOf(value);\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tif (field.equals(\"title\"))\n\t\t\t\t{\n\t\t\t\t\tcurr.title = value;\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tif (field.equals(\"short\"))\n\t\t\t\t{\n\t\t\t\t\tcurr.mshort = value;\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tif (field.equals(\"long\"))\n\t\t\t\t{\n\t\t\t\t\tcurr.mlong = value;\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tif (field.equals(\"from\"))\n\t\t\t\t{\n//\t\t\t\t\tcurr.from = new Date(value).getTime();\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tif (field.equals(\"to\"))\n\t\t\t\t{\n//\t\t\t\t\tcurr.to = new Date(value).getTime();\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tif (field.equals(\"posterid\"))\n\t\t\t\t{\n\t\t\t\t\tcurr.poster_uid = value;\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tif (field.equals(\"postername\"))\n\t\t\t\t{\n\t\t\t\t\tcurr.poster_name = value;\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tif (field.equals(\"showunix\")) continue;\n\n\t\t\t\tlog(Level.WARNING, \"Unknown Field '\" + field + \"'\");\n\t\t\t}\n\t\t}\n\t\tcatch (IOException ex)\n\t\t{\n\t\t\tlog(Level.WARNING, ex);\n\t\t}\n\t\tcatch (Throwable ex)\n\t\t{\n\t\t\tlog(Level.SEVERE, ex.getMessage());\n\t\t}\n\t\tfinally\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\tin.close();\n\t\t\t}\n\t\t\tcatch (IOException ex)\n\t\t\t{\n\t\t\t}\n\t\t}\n\n\t\tif (curr != null) stack.push(curr);\n\t\tlastModified = f.lastModified();\n\n\t\tif (initial)\n\t\t{\n\t\t\tif (stack.size() > 0) lastId = stack.getLast().id;\n\t\t\treturn;\n\t\t}\n\t\tfor (Message m : stack)\n\t\t{\n\t\t\tif (m.id > lastId)\n\t\t\t{\n\t\t\t\tlog(Level.INFO, \"Sending MOTD Notice #\" + m.id);\n\t\t\t\tgetInstance().message(channel, m.toString());\n\t\t\t\tlastId = m.id;\n\t\t\t}\n\t\t}\n\t}", "@Override\n public void parse() {\n if (file == null)\n throw new IllegalStateException(\n \"File cannot be null. Call setFile() before calling parse()\");\n\n if (parseComplete)\n throw new IllegalStateException(\"File has alredy been parsed.\");\n\n FSDataInputStream fis = null;\n BufferedReader br = null;\n\n try {\n fis = fs.open(file);\n br = new BufferedReader(new InputStreamReader(fis));\n\n // Go to our offset. DFS should take care of opening a block local file\n fis.seek(readOffset);\n records = new LinkedList<T>();\n\n LineReader ln = new LineReader(fis);\n Text line = new Text();\n long read = readOffset;\n\n if (readOffset != 0)\n read += ln.readLine(line);\n\n while (read < readLength) {\n int r = ln.readLine(line);\n if (r == 0)\n break;\n\n try {\n T record = clazz.newInstance();\n record.fromString(line.toString());\n records.add(record);\n } catch (Exception ex) {\n LOG.warn(\"Unable to instantiate the updateable record type\", ex);\n }\n read += r;\n }\n\n } catch (IOException ex) {\n LOG.error(\"Encountered an error while reading from file \" + file, ex);\n } finally {\n try {\n if (br != null)\n br.close();\n\n if (fis != null)\n fis.close();\n } catch (IOException ex) {\n LOG.error(\"Can't close file\", ex);\n }\n }\n\n LOG.debug(\"Read \" + records.size() + \" records\");\n }", "void log(String line);", "public LogRecord extractFirstLogRecord() throws IOException {\n\n InferenceMachine infMach = new InferenceMachine(logConfig.getLogFile());\n\n /* First is to find a log record header */\n String line;\n do {\n line = getNextLine();\n } while ((line != null) && !infMach.isLogRecordHeader(line));\n\n /* There was any header found? */\n if (line == null) {\n throw new IllegalArgumentException(\"The file contains no record log header\");\n }\n\n LogRecord logRecord = new LogRecord(line);\n while (((line = bufferedReader.readLine()) != null) && !infMach.isLogRecordHeader(line)) {\n logRecord.addLine(line);\n }\n\n return logRecord;\n }", "public static void readObject() {\r\n try {\r\n if (new File(FILE).exists()) {\r\n LoggingService.getInstance().serverLog(\"Reading cron table.\");\r\n ChunkedCharBuffer buf = new ChunkedCharBuffer();\r\n buf.append(new InputStreamReader(new FileInputStream(FILE)));\r\n String contents = buf.toString();\r\n String[] lines = contents.split(\"[\\n\\r]+\");\r\n for (String line : lines) {\r\n String[] splitLine = line.split(\"\\\\|\");\r\n int index = 0;\r\n scheduleJob(\r\n new CronJob(\r\n splitLine[index++], //identifier\r\n Long.valueOf(splitLine[index++]), //interval\r\n new Date(Long.valueOf(splitLine[index++]).longValue()), //start time\r\n splitLine[index++], //command string\r\n splitLine[index++], //user\r\n splitLine[index++] //user service\r\n )\r\n );\r\n }\r\n } else {\r\n LoggingService.getInstance().serverLog(\"No cron table\");\r\n }\r\n } catch (Exception e) {\r\n LoggingService.getInstance().serverLog(\"Error reading cron table: \" + e);\r\n }\r\n }", "private void parseFile(String fileName) {\n\t\ttry {\n\t\t\tBufferedReader bufferedReader = new BufferedReader(new FileReader(fileName));\n\t\t\tString line;\n\t\t\tint counter = 0;\n\t\t\tString lastMethod = null;\n\t\t\t\n\t\t\twhile ((line = bufferedReader.readLine()) != null) {\n\t\t\t\t\n\t\t\t\t// Logic for method consolidation\n\t\t\t\tif (line.contains(\"Method Call\")) {\n\t\t\t\t\tlastMethod = line.substring(line.indexOf(\"target=\")+7);\n\t\t\t\t\tlastMethod = lastMethod.substring(lastMethod.indexOf('#')+1).replace(\"\\\"\",\"\").trim();\n\t\t\t\t\tlastMethod = lastMethod + \":\" + counter++;\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tif (line.contains(\"Field Write\")) {\n\t\t\t\t\tString[] tokens = line.split(\",\");\n\t\t\t\t\t\n\t\t\t\t\tString object = tokens[4].substring(tokens[4].indexOf(\"=\") + 1).replace(\"\\\"\", \"\").trim();\n\t\t\t\t\tString field = tokens[5].substring(0, tokens[5].indexOf(\"=\")).replace(\"\\\"\", \"\").trim();\n\t\t\t\t\tString value = tokens[5].substring(tokens[5].indexOf(\"=\") + 1).replace(\"\\\"\", \"\").trim();\n\t\t\t\t\tString fld = object.replace(\"/\", \".\") + \".\" + field;\n\t\t\t\t\tevents.add(new Event(fld, value, lastMethod));\n\t\t\t\t\t\n\t\t\t\t\tallFields.add(fld);\n\t\t\t\t}\n//\t\t\t\tif (line.contains(\"Method Returned\")) {\n//\t\t\t\t\t//operations for this method ended\n//\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\tbufferedReader.close();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public static void read7() {\n //read file into stream, try-with-resources\n try (Stream<String> stream = Files.lines(Paths.get(filePath))) {\n\n stream.forEach(System.out::println);\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "private LogRecordWithInputStream nextLogRecord() throws IOException {\n try {\n return nextLogRecord(reader);\n } catch (EndOfStreamException e) {\n eos = true;\n return null;\n }\n }", "public IngestLog processSeeds() throws IOException {\n long insertedcount = 0L;\n long rejectedcount = 0L;\n long duplicatecount = 0L;\n long errorcount = 0L;\n long domainsAddedCount = 0L;\n long updatecount = 0L;\n\n List<String> logentries = new ArrayList<String>();\n initalizeLogs();\n\n long lines = 0;\n SeedsDAO sdao = daoFactory.getSeedsDAO();\n DomainsDAO ddao = daoFactory.getDomainsDAO();\n\n try (BufferedReader fr = new BufferedReader(new FileReader(seedsfile))) {\n\n String line;\n while ((line = fr.readLine()) != null) {\n if (line.trim().isEmpty()) { // Silently ignore empty lines\n continue;\n }\n ++lines;\n if (lines % 10000 == 0) {\n String datestamp = \"[\" + new Date() + \"]\";\n logger.info(datestamp + \" Processed {} seeds.\", lines);\n System.out.println(datestamp + \" Processed \" + lines + \" seeds\");\n }\n\n if (insertedcount % 10000 == 0 && insertedcount>0) {\n String datestamp = \"[\" + new Date() + \"]\";\n logger.info(datestamp + \" Accepted {} seeds.\", insertedcount);\n System.out.println(datestamp + \" Accepted \" + insertedcount + \" seeds\");\n }\n if (rejectedcount % 10000 == 0 && rejectedcount>0) {\n String datestamp = \"[\" + new Date() + \"]\";\n logger.info(datestamp + \" Rejected {} seeds.\", rejectedcount);\n System.out.println(datestamp + \" Rejected \" + rejectedcount + \" seeds\");\n }\n if (updatecount % 10000 == 0 && updatecount > 0) {\n String datestamp = \"[\" + new Date() + \"]\";\n logger.info(datestamp + \" UpdatedLog reached {} lines.\", updatecount);\n System.out.println(datestamp + \" UpdatedLog reached \" + updatecount + \" lines\");\n }\n\n String errMsg = \"\";\n String url = removeAnnotationsIfNecessary(line.trim());\n URL_REJECT_REASON rejectreason = UrlUtils.isRejectableURL(url);\n \n if (!rejectreason.equals(URL_REJECT_REASON.NONE)){\n String logEntry = rejectreason + \": \" + url + \" \" + errMsg;\n if (!onlysavestats) {\n logentries.add(logEntry);\n }\n rejectedcount++;\n writeTo(logEntry, rejectLog);\n continue;\n } else {\n Seed singleSeed = new Seed(url);\n if (ingestAsDanica) {\n singleSeed.setDanicaStatus(DanicaStatus.YES);\n singleSeed.setDanicaStatusReason(\"Known by curators to be danica\");\n singleSeed.setStatus(Status.DONE);\n singleSeed.setStatusReason(\"Set to Status done at ingest to prevent further processing of this url\");\n }\n\n try {\n boolean inserted;\n inserted = sdao.insertSeed(singleSeed);\n\n if (inserted) {\n String domainName = singleSeed.getDomain();\n if (!ddao.existsDomain(domainName)) {\n Domain newdomain = Domain.createNewUndecidedDomain(domainName);\n boolean insertedDomain = ddao.insertDomain(newdomain);\n String domainLogEntry = null;\n if (!insertedDomain) {\n domainLogEntry = \"Failed to add domain '\" + domainName + \"' to domains table, the domain of seed '\" + url + \"'\";\n errorcount++;\n } else {\n domainLogEntry = \"Added domain '\" + domainName + \"' to domains table, the domain of seed '\" + url + \"'\";\n }\n\n if (!onlysavestats) {\n logentries.add(\"DOMAINS: \" + domainLogEntry); \n }\n writeTo(\"DOMAINS: \" + domainLogEntry, updateLog);\n }\n insertedcount++;\n if (!onlysavestats) {\n acceptedList.add(url);\n }\n writeTo(url, acceptLog);\n\n } else {\n if (ingestAsDanica) {\n // update state of seed if not already in Status.DONE\n Seed oldSeed = sdao.getSeed(url);\n if (oldSeed == null) {\n // Should not happen\n rejectreason = URL_REJECT_REASON.UNKNOWN;\n logger.warn(\"The url '{}' should have been in database. But no record was found\", url);\n errMsg = \"The url '\" + url + \"' should have been in database. But no record was found\";\n // Add errMsg to errors.log with datestamp\n String datestamp=\"[\" + new Date() + \"] \";\n writeTo(datestamp + errMsg, errorsLog);\n errorcount++;\n } else {\n String updateLogEntry = null;\n if (oldSeed.getDanicaStatus().equals(DanicaStatus.YES)) {\n updateLogEntry = \"The seed '\" + url + \"' is already in the database with DanicaStatus.YES and status '\" + oldSeed.getStatus() + \"'\";\n } else {\n updateLogEntry = \"The seed '\" + url + \"' is already in the database with DanicaStatus=\" + oldSeed.getDanicaStatus() + \", and status '\" +\n oldSeed.getStatus() + \"'. Changing to DanicaStatus.YES and status.DONE\";\n\n oldSeed.setDanicaStatus(DanicaStatus.YES);\n oldSeed.setDanicaStatusReason(\"Known by curators to be danica\");\n oldSeed.setStatus(Status.DONE);\n oldSeed.setStatusReason(\"Set to Status done at ingest to prevent further processing of this url\");\n sdao.updateSeed(oldSeed);\n }\n writeTo(\"UPDATED: \" + updateLogEntry, updateLog);\n\n }\n } else {\n rejectreason = URL_REJECT_REASON.DUPLICATE;\n duplicatecount++;\n }\n }\n } catch (DaoException e) {\n logger.error(\"Failure in communication with HBase\", e);\n rejectreason = URL_REJECT_REASON.UNKNOWN;\n errMsg = \"Failure in communication with HBase: \" + ExceptionUtils.getFullStackTrace(e);\n errorcount++;\n\n String datestamp=\"[\" + new Date() + \"] \";\n writeTo(datestamp + errMsg, errorsLog);\n }\n if (!rejectreason.equals(URL_REJECT_REASON.UNKNOWN)) {\n String logEntry = rejectreason + \": \" + url + \" \" + errMsg;\n if (!onlysavestats) {\n logentries.add(logEntry);\n }\n rejectedcount++;\n writeTo(logEntry, rejectLog);\n }\n\n }\n }\n } catch (IOException e) {\n throw new RuntimeException(\"Failed to read file \" + seedsfile, e);\n } finally {\n ddao.close();\n sdao.close();\n }\n // trying to update the cache\n try {\n Cache.getCache(daoFactory);\n } catch (Exception e1) {\n System.err.println(\"WARNING: failed to update the statecache: \" \n + ExceptionUtils.getFullStackTrace(e1));\n }\n\n try {\n writeStatsToLogs(insertedcount, rejectedcount, duplicatecount, errorcount, lines, logentries, onlysavestats, domainsAddedCount, updatecount); \n } catch (Exception e) {\n throw new RuntimeException(\"Failed to write logs\", e);\n }\n\n try {\n return logIngestStats(logentries, lines, insertedcount, rejectedcount, duplicatecount, errorcount);\n } catch (Exception e) {\n throw new RuntimeException(\"Failed to log ingest stats\",e);\n }\n\n}", "protected synchronized void open()\n/* */ {\n/* 193 */ super.open();\n/* 194 */ if (this.currentLogFile.length() == 0L) {\n/* 195 */ this.writer.println(\"#Fields: \" + this.pattern);\n/* 196 */ this.writer.println(\"#Version: 2.0\");\n/* 197 */ this.writer.println(\"#Software: \" + ServerInfo.getServerInfo());\n/* */ }\n/* */ }", "public void recordLog(){\r\n\t\tthis.finishLog(resourceFiles.getString(\"PathHepparIITestDirectory\") + \"/\" + TEST_FILE_NAME); \r\n\t}", "private void takeInFile() {\n System.out.println(\"Taking in file...\");\n //Reads the file\n String fileName = \"messages.txt\";\n String line = null;\n try {\n FileReader fileReader = new FileReader(fileName);\n \n BufferedReader bufferedReader = new BufferedReader(fileReader);\n\n //Adds each line to the ArrayList\n int i = 0;\n while ((line = bufferedReader.readLine()) != null) {\n lines.add(line);\n //System.out.println(line);\n i++;\n }\n \n bufferedReader.close();\n } catch (FileNotFoundException ex) {\n System.out.println(\"Unable to open file '\" + fileName + \"'\");\n } catch (IOException ex) {\n System.out.println(\"Error reading file '\" + fileName + \"'\");\n }\n System.out.println(\"Done taking in file...\");\n }", "protected void parse() throws ParseException {\n String s;\n try {\n s=getFullText();\n } catch (IOException ioe) {\n if (ioe instanceof FileNotFoundException) {\n throw new DataNotFoundException (\"Could not find log file.\", ioe);\n } else {\n throw new ParseException (\"Error getting log file text.\", new File (getFileName()));\n }\n }\n StringTokenizer sk = new StringTokenizer(s);\n ArrayList switches = new ArrayList(10);\n while (sk.hasMoreElements()) {\n String el =sk.nextToken().trim();\n if (el.startsWith(\"-J\")) {\n if (!(el.equals(\"-J-verbose:gc\"))) {\n if (!(el.startsWith(\"-J-D\"))) {\n JavaLineswitch curr = new JavaLineswitch(el.substring(2));\n addElement (curr); \n }\n }\n }\n }\n }", "private void readFile() {\n try (BufferedReader br = new BufferedReader(new FileReader(\"../CS2820/src/production/StartingInventory.txt\"))) {\n String line = br.readLine();\n while (line != null) {\n line = br.readLine();\n this.items.add(line);\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "private void readMetaFile() throws Exception, ErrorMessageException {\n System.out.println(\"Read Meta File\");\n DataInputStream dis = new DataInputStream(is);\n metaFilesPeer = new MetaFilesPeer();\n while (true) {\n /* read parent */\n String parent = dis.readUTF();\n if (parent.equals(\"//\")) {\n break;\n }\n String name = dis.readUTF();\n boolean isfile = dis.readBoolean();\n byte[] sha = null;\n if (isfile) {\n String shaBase64 = dis.readUTF();\n sha = Util.convertBase64ToBytes(shaBase64);\n }\n long timeadded = dis.readLong();\n metaFilesPeer.addMetaFile(parent, name, isfile, sha, timeadded);\n }\n }", "public void read() {\n String line = \"\";\n int counter = 0;\n try {\n input = new BufferedReader(new FileReader(file));\n while (line != null) {\n if (!(line.equals(\"arglebargle\"))) {//not a default\n names.add(line);\n }\n }\n input.close();\n }\n catch (IOException e) {\n }\n }", "static String getTimeAndSizeFromLog(String fileName){\n\t\tString res = \"\";\n\t\t\n//\t\tFile logFile = new File(\"R:/Eclipse/Partitionner/out/log_atl2_AllRanges_1000_30_20_20150629-1640.log\");\n//\t\tArrayList<ArrayList<String>> fileNames = Utils.extractModelsFromLogFile(logFile);\n\t\tArrayList<String> listNames = new ArrayList<>();\n\t\t\n\t\tString l = \"\", listModels = \"\", timeElapsed = \"\", checkRates = \"\";\n\t\t\n\t\tFile f = new File(Config.DIR_OUT+fileName);\n\t\t\n\t\tSystem.out.println(\"Reading '\"+f.getAbsolutePath()+\"'...\\t\");\n\t\ttry {\n\t\t\tPattern p=Pattern.compile(\"\\\\{.*\\\\}\");\n\t\t\tScanner scanner = new Scanner(f);\n while (scanner.hasNextLine()) { \n l = scanner.nextLine();\n if(l.trim().startsWith(\"Time\")){//Time elapsed : 5:28:19:125\n\t\t\t\t\tMatcher ma=Pattern.compile(\"\\\\:.*\").matcher(l);\n\t\t\t\t\t while(ma.find()) \n\t\t\t\t\t\t timeElapsed = ma.group().substring(1, ma.group().length()-1).trim();\n\t\t\t\t}\n if(l.trim().startsWith(\"Best\")){//Time elapsed : 5:28:19:125\n\t\t\t\t\tMatcher ma=Pattern.compile(\"Best\\\\:[\\\\S]*,{1}\").matcher(l);\n\t\t\t\t\t while(ma.find()) \n\t\t\t\t\t\t checkRates = ma.group().substring(\"Best:\".length(), ma.group().length()-1).trim();\n\t\t\t\t}\n \n\t\t\t\tif(l.trim().startsWith(\"Best\")){//Best:0.89...8,0.96...4,10 (MS15386:10 Models):(COV:89,DIS:96) rd(0,0)\t 10{model_00581.xmi,mo[...]8551.xmi}\n\t\t\t\t\tMatcher ma=p.matcher(l);\n\t\t\t\t\t while(ma.find()) \n\t\t\t listModels = ma.group().substring(1, ma.group().length()-1);\n\t\t\t\t}\n\t\t\t}\n scanner.close();\n listNames = Utils.extractModelsFromList(Config.DIR_INSTANCES+Config.METAMODEL_NAME+File.separator, \n \t\t\t\tlistModels\t\t\t\t\n \t\t\t\t,\",\");\n\n \t\tModelSet ms = new ModelSet(listNames);\n \t\tint totalClasses = 0, totalProperties = 0;\n \t\tfor (Model m : ms.getModels()) {\n \t\t\ttotalClasses += m.getNbClasses();\n \t\t\ttotalProperties += m.getNbProperties();\n \t\t}\n \t\tfloat avgClasses = (float)totalClasses / ms.size();\n \t\tfloat avgProperties = (float)totalProperties / ms.size();\n \t\tres= \";\"+timeElapsed+\";\"+avgClasses+\";\"+avgProperties;\n \t\tSystem.out.println(\" Average model size : \"+checkRates+\"..\\t\"+res);\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"WARNING : Could not process file '\"+f.getAbsolutePath()+\"'\");\n//\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\t\n\t\t\n\n\t\treturn res;\n\t}", "public void readViolationList (BufferedReader reader) {\n String line = \"\";\n try {\n reader.readLine();\n reader.readLine();\n while ((line = reader.readLine()) != null) {\n addToViolationList(line);\n }\n } catch (Exception e) {\n }\n }", "public String read(String user, String action) throws FileNotFoundException, IOException {\r\n\t\tString filename = user + \".txt\";\r\n \tString absoluteFilePath = \"\";\r\n\t\tString workingDirectory = System.getProperty(\"user.dir\");\r\n\t\tArrayList<String> create = new ArrayList<String>();\r\n\t\tArrayList<String> logged = new ArrayList<String>();\r\n\t\tArrayList<String> updated = new ArrayList<String>();\r\n\t\tArrayList<String> removed = new ArrayList<String>();\r\n\t\t\r\n\t\t\r\n\t\t//absoluteFilePath = workingDirectory + System.getProperty(\"file.separator\") + filename;\r\n\t\tabsoluteFilePath = workingDirectory + File.separator + filename;\r\n\t\ttry(BufferedReader br = new BufferedReader(new FileReader(absoluteFilePath))) {\r\n\t\t StringBuilder sb = new StringBuilder();\r\n\t\t String line = br.readLine();\r\n\t\t \r\n\t\t while (line != null) {\r\n\t\t \t\r\n\t\t \t\r\n\t\t \tString arr[] = line.split(\" \");\r\n\t\t \tString firstWord = arr[0];\r\n\t\t \tif(firstWord.equals(\"'Created\"))\r\n\t\t {\r\n\t\t \t\r\n\t\t \tcreate.add(line);\r\n\t\t \t\r\n\t\t }\r\n\t\t \t\r\n\t\t \telse if(firstWord.equals(\"'Logged\"))\r\n\t\t {\r\n\t\t \t\r\n\t\t \tlogged.add(line);\r\n\t\t \t\r\n\t\t }\r\n\t\t \t\r\n\t\t \telse if(firstWord.equals(\"'Updated\"))\r\n\t\t {\r\n\t\t \t\r\n\t\t \tupdated.add(line);\r\n\t\t \t\r\n\t\t }\r\n\t\t \t\r\n\t\t \telse if(firstWord.equals(\"'Removed\"))\r\n\t\t {\r\n\t\t \t\r\n\t\t \tremoved.add(line);\r\n\t\t \t\r\n\t\t }\r\n\t\t \t\r\n\t\t \r\n\t\t line = br.readLine();\r\n \r\n\t\t }\r\n\t\t \r\n\t\t \r\n\t\t if(action==\"logged\")\r\n\t\t {\r\n\t\t for(String d : logged)\r\n\t\t {\r\n\t\t \tsb.append(\"<p style='font-size: 80%'>\");\r\n\t\t\t sb.append(d);\r\n\t\t\t sb.append(\"</p>\");\r\n\t\t }\r\n\t\t }\r\n\t\t \r\n\t\t \r\n\t\t else if(action==\"create\")\r\n\t {\r\n\t\t for(String d : create)\r\n\t\t {\r\n\t\t \tsb.append(\"<p style='font-size: 80%'>\");\r\n\t\t\t sb.append(d);\r\n\t\t\t sb.append(\"</p>\");\r\n\t\t \t\r\n\t\t }\r\n\t } \r\n\t\t \r\n\t\r\n\t\t else if(action==\"update\")\r\n\t {\r\n\t\t for(String d : updated)\r\n\t\t {\r\n\t\t \tsb.append(\"<p style='font-size: 80%'>\");\r\n\t\t\t sb.append(d);\r\n\t\t\t sb.append(\"</p>\");\r\n\t\r\n\t\t }\r\n\t }\r\n\t\t \r\n\t\t \r\n\t\t \r\n\t\t else if(action==\"remove\") \r\n\t\t {\r\n\t\t for(String d : removed)\r\n\t\t {\r\n\t\t \tsb.append(\"<p style='font-size: 80%'>\");\r\n\t\t\t sb.append(d);\r\n\t\t\t sb.append(\"</p>\");\r\n\t\r\n\t\t }\r\n\t\t }\r\n\t\t \r\n\t\t \r\n\t\t String everything = sb.toString();\r\n\t\t return everything;\r\n\t\t} \r\n\t}", "private String readFromFileLogin() {\n String login=\"\";\n try (BufferedReader bufferedReader = new BufferedReader(new FileReader\n ((\".\\\\src\\\\pl\\\\camp\\\\it\\\\login\\\\log.txt\")))) {\n\n login = bufferedReader.readLine();\n\n } catch (IOException exc) {\n System.out.println(\"Błąd obsługi pliku!!! \" + exc.getMessage());\n }\n return login;\n }", "public static void read6() {\n List<String> list = new ArrayList<>();\n\n try (BufferedReader br = Files.newBufferedReader(Paths.get(filePath))) {\n\n //br returns as stream and convert it into a List\n list = br.lines().collect(Collectors.toList());\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n list.forEach(System.out::println);\n }", "private void readFile() {\r\n\t\tcsvEntrys = new ArrayList<>();\r\n\t\tString line = \"\";\r\n\t\ttry (BufferedReader br = new BufferedReader(new FileReader(new File(filepath)))) {\r\n\t\t\twhile ((line = br.readLine()) != null) {\r\n\t\t\t\tif (!line.contains(\"id\")) {\r\n\t\t\t\t\tcsvEntrys.add(line);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "private void chimeraRead() throws IOException {\n \t \tif (chimera == null)\n \t \t\treturn;\n\n\t\tString line = null;\n\t\twhile ((line = lineReader.readLine()) != null) {\n\t\t\t// System.out.println(\"From Chimera-->\"+line);\n\t\t\tif (line.startsWith(\"CMD\")) {\n\t\t\t\tchimeraCommandRead(line.substring(4));\n\t\t\t} else if (line.startsWith(\"ModelChanged: \")) {\n\t\t\t\t(new ModelUpdater()).start();\n\t\t\t} else if (line.startsWith(\"SelectionChanged: \")) {\n\t\t\t\t(new SelectionUpdater()).start();\n\t\t\t}\n\t\t}\n\t\treturn;\n\t}", "public void testLogAccuracy() {\r\n // log the message\r\n Exception cause = new Exception(\"some error\");\r\n String message = \"some message\";\r\n log.log(Level.ALL, cause, message);\r\n\r\n // check the result\r\n String result = AccuracyTestsHelper.getFileContent(FILE);\r\n assertTrue(result.indexOf(\"some message\") >= 0);\r\n assertTrue(result.indexOf(\"some error\") >= 0);\r\n }" ]
[ "0.7713957", "0.7406073", "0.69254816", "0.6789952", "0.677659", "0.67363316", "0.6673395", "0.65717643", "0.65228826", "0.6306014", "0.6279947", "0.6225237", "0.60765123", "0.6065388", "0.6042261", "0.6033391", "0.6007402", "0.5988399", "0.59775376", "0.5928497", "0.58820266", "0.5870053", "0.5865881", "0.5860022", "0.5846568", "0.58078784", "0.5806957", "0.5727626", "0.5724589", "0.5715104", "0.56666684", "0.56489545", "0.5631577", "0.56199145", "0.5617716", "0.55802363", "0.55433315", "0.554079", "0.5529282", "0.55271584", "0.5524714", "0.55133617", "0.5496572", "0.5495448", "0.5489764", "0.54758155", "0.545783", "0.5457126", "0.54499125", "0.5448633", "0.54472125", "0.54362684", "0.5431943", "0.54249156", "0.5418522", "0.5418187", "0.54140836", "0.5413515", "0.54049295", "0.5396945", "0.539294", "0.5370973", "0.53707385", "0.5364592", "0.53592366", "0.5336965", "0.5329143", "0.53151643", "0.53141516", "0.5313565", "0.52877134", "0.52861387", "0.52662754", "0.5258826", "0.5258456", "0.525629", "0.52461326", "0.5227988", "0.5216682", "0.5193235", "0.51822966", "0.51815575", "0.5181552", "0.5177612", "0.51775306", "0.5175637", "0.51740867", "0.51715994", "0.5169686", "0.516082", "0.5156997", "0.51487124", "0.5147055", "0.51452106", "0.5144213", "0.51382625", "0.51336366", "0.5126894", "0.5118353", "0.51163423", "0.51140994" ]
0.0
-1
Created by Monika on 10/23/2016.
public interface DiscountService extends ServiceInterface<DiscountEntity>{ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "private stendhal() {\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "public final void mo51373a() {\n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\n public void init() {\n\n }", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n public void init() {\n }", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "public void mo38117a() {\n }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void jugar() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n void init() {\n }", "@Override\n protected void initialize() \n {\n \n }", "private void m50366E() {\n }", "@Override\n public void func_104112_b() {\n \n }", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n public void init() {}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\n protected void init() {\n }", "public void mo4359a() {\n }", "@Override\n public int describeContents() { return 0; }", "@Override\r\n\tpublic void init() {}", "@Override\n public void init() {\n\n }", "@Override\n public void init() {\n\n }", "public void gored() {\n\t\t\n\t}", "protected MetadataUGWD() {/* intentionally empty block */}", "private void init() {\n\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "@Override\n public void initialize() { \n }", "private Rekenhulp()\n\t{\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "private void poetries() {\n\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "private MetallicityUtils() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\n\tprotected void initialize() {\n\t}", "@Override\n\tprotected void initialize() {\n\t}", "@Override\n\tpublic int mettreAJour() {\n\t\treturn 0;\n\t}", "public void mo6081a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t}", "@Override\n public void initialize() {}", "@Override\n public void initialize() {}", "@Override\n public void initialize() {}", "@Override\n protected void getExras() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "private static void cajas() {\n\t\t\n\t}", "protected void mo6255a() {\n }", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "protected boolean func_70814_o() { return true; }", "@Override\n public void memoria() {\n \n }", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "private void kk12() {\n\n\t}", "@Override\n\t\tpublic void init() {\n\t\t}", "public void mo21877s() {\n }", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n\tpublic void init()\n\t{\n\n\t}" ]
[ "0.6148032", "0.5954433", "0.5903123", "0.5901085", "0.58705", "0.58052886", "0.57289577", "0.57264596", "0.57264596", "0.57207626", "0.5716798", "0.5716798", "0.5716798", "0.5716798", "0.5716798", "0.5716798", "0.57114774", "0.5689061", "0.56882375", "0.56752425", "0.5669463", "0.5663307", "0.56578", "0.56472284", "0.56472284", "0.5644638", "0.5633857", "0.56304765", "0.56300324", "0.5626046", "0.56239027", "0.56239027", "0.5621867", "0.56191504", "0.56191504", "0.56191504", "0.56191504", "0.56191504", "0.56145144", "0.5608367", "0.5608341", "0.55864334", "0.5582108", "0.55803347", "0.55792195", "0.5576615", "0.5541436", "0.5539869", "0.5535785", "0.5523354", "0.5523354", "0.55171543", "0.5516773", "0.55158746", "0.5514073", "0.551122", "0.5504998", "0.55006045", "0.55006045", "0.55006045", "0.54995555", "0.54975677", "0.54975677", "0.54975677", "0.54918885", "0.54918885", "0.54918885", "0.5489688", "0.54895604", "0.548931", "0.548931", "0.5486192", "0.54830456", "0.54740953", "0.5463027", "0.54545736", "0.54545695", "0.54545695", "0.54545695", "0.5451061", "0.54500574", "0.54500574", "0.54500574", "0.54500574", "0.54500574", "0.54500574", "0.54500574", "0.5435053", "0.5429073", "0.54172987", "0.5416092", "0.5411582", "0.540827", "0.5404147", "0.53927845", "0.5388089", "0.53842217", "0.5384098", "0.5383256", "0.53805155", "0.5378876" ]
0.0
-1
TODO Autogenerated method stub
public static void main(String[] args) { Scanner sc = new Scanner(System.in); int capacity = sc.nextInt(); int numitems = sc.nextInt(); int[] weights = new int[numitems]; int[] values = new int[numitems]; for(int i = 0; i < numitems; i++){ weights[i] = sc.nextInt(); } for(int i = 0; i < numitems; i++){ values[i] = sc.nextInt(); } knapsack(weights, values, capacity); sc.close(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "private stendhal() {\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.66708666", "0.65675074", "0.65229905", "0.6481001", "0.64770633", "0.64584893", "0.6413091", "0.63764185", "0.6275735", "0.62541914", "0.6236919", "0.6223816", "0.62017626", "0.61944294", "0.61944294", "0.61920846", "0.61867654", "0.6173323", "0.61328775", "0.61276996", "0.6080555", "0.6076938", "0.6041293", "0.6024541", "0.6019185", "0.5998426", "0.5967487", "0.5967487", "0.5964935", "0.59489644", "0.59404725", "0.5922823", "0.5908894", "0.5903041", "0.5893847", "0.5885641", "0.5883141", "0.586924", "0.5856793", "0.58503157", "0.58464456", "0.5823378", "0.5809384", "0.58089525", "0.58065355", "0.58065355", "0.5800514", "0.57912874", "0.57912874", "0.57912874", "0.57912874", "0.57912874", "0.57912874", "0.57896614", "0.5789486", "0.5786597", "0.5783299", "0.5783299", "0.5773351", "0.5773351", "0.5773351", "0.5773351", "0.5773351", "0.5760369", "0.5758614", "0.5758614", "0.574912", "0.574912", "0.574912", "0.57482654", "0.5732775", "0.5732775", "0.5732775", "0.57207066", "0.57149917", "0.5714821", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57115865", "0.57045746", "0.5699", "0.5696016", "0.5687285", "0.5677473", "0.5673346", "0.56716853", "0.56688815", "0.5661065", "0.5657898", "0.5654782", "0.5654782", "0.5654782", "0.5654563", "0.56536144", "0.5652585", "0.5649566" ]
0.0
-1
This method is used for adding custom question to Service with "Open Answer" type
public void addOpenAnswerQuestion(String question) { cmbQuestionType.select(questionType); txbQuestion.type(question); btnAddQuestion.clickAndWait(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void addQuestionAnswer(Answer answer);", "private void creatingNewQuestion() {\r\n AbstractStatement<?> s;\r\n ListQuestions lq = new ListQuestions(ThemesController.getThemeSelected());\r\n switch ((String) typeQuestion.getValue()) {\r\n case \"TrueFalse\":\r\n // just to be sure the answer corresponds to the json file\r\n Boolean answer = CorrectAnswer.getText().equalsIgnoreCase(\"true\");\r\n s = new TrueFalse<>(Text.getText(), answer);\r\n break;\r\n\r\n case \"MCQ\":\r\n s = new MCQ<>(Text.getText(), TextAnswer1.getText(), TextAnswer2.getText(), TextAnswer3.getText(), CorrectAnswer.getText());\r\n break;\r\n\r\n default:\r\n s = new ShortAnswer<>(Text.getText(), CorrectAnswer.getText());\r\n break;\r\n }\r\n lq.addQuestion(new Question(s, ThemesController.getThemeSelected(), Difficulty.fromInteger((Integer) difficulty.getValue()) ));\r\n lq.writeJson(ThemesController.getThemeSelected());\r\n }", "public void addQuestion(Question question);", "private void addQuestion(Questions question) {\n ContentValues cv = new ContentValues();\n cv.put(QuestionsTable.Column_Question, question.getQuestion());\n cv.put(QuestionsTable.Column_Option1, question.getOption1());\n cv.put(QuestionsTable.Column_Option2, question.getOption2());\n cv.put(QuestionsTable.Column_Option3, question.getOption3());\n cv.put(QuestionsTable.Column_Option4, question.getOption4());\n cv.put(QuestionsTable.Column_Answer_Nr, question.getAnswerNr());\n db.insert(QuestionsTable.Table_name, null, cv);\n }", "void addAnswer(Answer answer);", "@Override\n public void add(String question, String answer){\n questions.add(question);\n answers.add(answer);\n\n }", "public void createQuestion(int sid,int qid,String qtype,String qtitle,String answer_a,String answer_b,String answer_c,String answer_d);", "QuestionPick addPickDetail(Question question);", "@Override\r\n public void addAnswer(String answer) {\r\n this.answers.add(answer);\r\n }", "@Override\n public void add(Question q) {\n try {\n c = DBConncetion.getConnection();\n int type = q.getType() == MultipleChoice ? 1 : 2; // 1 = MC , 2 = FB\n System.out.println(type);\n String sql = \"Insert into mainquestion \\n\" +\n \"Values (?,?,?,?,0,0,0)\";\n PreparedStatement pstmt = c.prepareStatement(sql);\n pstmt.setString(1,String.valueOf(q.getId()));\n pstmt.setString(2,q.getTitle());\n pstmt.setString(3,String.valueOf(q.getTime()));\n pstmt.setString(4,String.valueOf(type));\n pstmt.executeUpdate();\n if (type == 1) {\n sql = \"Insert into multiplechoice \\n\" +\n \"Values (?,?,?,?,?,?)\";\n MultipleChoice mc = (MultipleChoice) q;\n String[] answers = mc.getAnswers();\n pstmt = c.prepareStatement(sql);\n pstmt.setString(1,String.valueOf(q.getId()));\n pstmt.setString(2,answers[0]);\n pstmt.setString(3,answers[1]);\n pstmt.setString(4,answers[2]);\n pstmt.setString(5,answers[3]);\n pstmt.setString(6,mc.getCorrectAnswers());\n pstmt.executeUpdate();\n } else {\n sql = \"Insert into fill_blank Values(?,?)\";\n FillBlank fb = (FillBlank) q;\n pstmt = c.prepareStatement(sql);\n pstmt.setString(1,String.valueOf(q.getId()));\n pstmt.setString(2,fb.getCorrectAnswer());\n pstmt.executeUpdate();\n }\n } catch (Exception e) {\n throw new LoadSaveException(\"Error while adding\");\n }\n }", "@Override\n\tpublic Questions addQuestions(long testId, Questions question) throws TestMSException {\n\t\treturn null;\n\t}", "private void addQuestion() {\n if (modifiable()) {\n try {\n this.questions.add(Question.fromInput(gradeable()));\n } catch (UserInputException e) {\n System.err.println(e.getMessage());\n }\n } else {\n System.err.println(\"Can not modify this by add a question.\");\n }\n }", "public void addAnswer(Answer ans) {\n // TODO implement here\n }", "public void addQ (Question Q)\n {\n newQuestion = Q;\n \n enqueue();\n }", "public void setQuestion(String question) {\n this.question = question;\n }", "private void addQuestion() {\n Question q = new Question(\n \"¿Quien propuso la prueba del camino básico ?\", \"Tom McCabe\", \"Tom Robert\", \"Tom Charlie\", \"Tom McCabe\");\n this.addQuestion(q);\n\n\n Question q1 = new Question(\"¿Qué es una prueba de Caja negra y que errores desean encontrar en las categorías?\", \"Hace una cobertura de declaraciones del código, ramas, caminos y condiciones\", \"esta basada en la funcionalidad de los módulos del programa\", \" determina la funcionalidad del sistema\", \" determina la funcionalidad del sistema\");\n this.addQuestion(q1);\n Question q2 = new Question(\"¿Qué es la complejidad ciclomática es una métrica de calidad software?\", \"Hace una cobertura de declaraciones del código, ramas, caminos y condiciones\", \"esta basada en la funcionalidad de los módulos del programa\", \"basada en el cálculo del número\", \"basada en el cálculo del número\");\n this.addQuestion(q2);\n //preguntas del quiz II\n Question q3=new Question(\"Las pruebas de caja blanca buscan revisar los caminos, condiciones, \" +\n \"particiones de control y datos, de las funciones o módulos del sistema; \" +\n \"para lo cual el grupo de diseño de pruebas debe:\",\n \"Conformar un grupo de personas para que use el sistema nuevo\",\n \"Ejecutar sistema nuevo con los datos usados en el sistema actual\",\n \"Generar registro de datos que ejecute al menos una vez cada instrucción\",\n \"Generar registro de datos que ejecute al menos una vez cada instrucción\");\n this.addQuestion(q3);\n Question q4=new Question(\"¿Las pruebas unitarias son llamadas?\",\n \"Pruebas del camino\", \"Pruebas modulares\",\n \"Pruebas de complejidad\", \"Pruebas modulares\");\n this.addQuestion(q4);\n Question q5=new Question(\"¿Qué es una prueba de camino básico?\",\n \"Hace una cobertura de declaraciones del código\",\n \"Permite determinar si un modulo esta listo\",\n \"Técnica de pueba de caja blanca\",\n \"Técnica de pueba de caja blanca\" );\n this.addQuestion(q5);\n Question q6=new Question(\"Prueba de camino es propuesta:\", \"Tom McCabe\", \"McCall \", \"Pressman\",\n \"Tom McCabe\");\n this.addQuestion(q6);\n Question q7=new Question(\"¿Qué es complejidad ciclomatica?\",\"Grafo de flujo\",\"Programming\",\n \"Metrica\",\"Metrica\");\n this.addQuestion(q7);\n //preguntas del quiz III\n Question q8 = new Question(\n \"¿Se le llama prueba de regresión?\", \"Se tienen que hacer nuevas pruebas donde se han probado antes\",\n \"Manten informes detallados de las pruebas\", \"Selección de los usuarios que van a realizar las pruebas\",\n \"Se tienen que hacer nuevas pruebas donde se han probado antes\");\n this.addQuestion(q8);\n Question q9 = new Question(\"¿Cómo se realizan las pruebas de regresión?\",\n \"Selección de los usuarios que van a realizar las pruebas\",\n \"Se tienen que hacer nuevas pruebas donde se han probado antes\", \"A través de herramientas de automatización de pruebas\", \"A través de herramientas de automatización de pruebas\");\n this.addQuestion(q9);\n Question q10 = new Question(\"¿Cuándo ya hay falta de tiempo para ejecutar casos de prueba ya ejecutadas se dejan?\",\n \"En primer plano\", \"En segundo plano\", \"En tercer plano\", \"En segundo plano\");\n this.addQuestion(q10);\n //preguntas del quiz IV\n Question q11 = new Question(\n \"¿En qué se enfocan las pruebas funcionales?\",\n \"Enfocarse en los requisitos funcionales\", \"Enfocarse en los requisitos no funcionales\",\n \"Verificar la apropiada aceptación de datos\", \"Enfocarse en los requisitos funcionales\");\n this.addQuestion(q11);\n Question q12 = new Question(\"Las metas de estas pruebas son:\", \"Verificar la apropiada aceptación de datos\",\n \"Verificar el procesamiento\", \"Verificar la apropiada aceptación de datos, procedimiento y recuperación\",\n \"Verificar la apropiada aceptación de datos, procedimiento y recuperación\");\n this.addQuestion(q12);\n Question q13 = new Question(\"¿En qué estan basadas este tipo de pruebas?\",\n \"Hace una cobertura de declaraciones del código, ramas, caminos y condiciones\",\n \"Esta basada en la funcionalidad de los módulos del programa\",\n \"Técnicas de cajas negra\", \"Técnicas de cajas negra\");\n this.addQuestion(q13);\n //preguntas del quiz V\n Question q14 = new Question(\n \"¿Cúal es el objetivo de esta técnica?\", \"Identificar errores introducidos por la combinación de programas probados unitariamente\",\n \"Decide qué acciones tomar cuando se descubren problemas\",\n \"Verificar que las interfaces entre las componentes de software funcionan correctamente\",\n \"Identificar errores introducidos por la combinación de programas probados unitariamente\");\n this.addQuestion(q14);\n Question q15 = new Question(\"¿Cúal es la descripción de la Prueba?\",\n \"Hace una cobertura de declaraciones del código, ramas, caminos y condiciones\",\n \"Esta basada en la funcionalidad de los módulos del programa\",\n \"Describe cómo verificar que las interfaces entre las componentes de software funcionan correctamente\",\n \"Describe cómo verificar que las interfaces entre las componentes de software funcionan correctamente\");\n this.addQuestion(q15);\n Question q16 = new Question(\"Por cada caso de prueba ejecutado:\",\n \"Hace una cobertura de declaraciones del código, ramas, caminos y condiciones\",\n \"Esta basada en la funcionalidad de los módulos del programa\",\n \"Comparar el resultado esperado con el resultado obtenido\", \"Comparar el resultado esperado con el resultado obtenido\");\n this.addQuestion(q16);\n //preguntas del quiz VI\n Question q17 = new Question(\n \"Este tipo de pruebas sirven para garantizar que la calidad del código es realmente óptima:\",\n \"Pruebas Unitarias\", \"Pruebas de Calidad de Código\",\n \"Pruebas de Regresión\", \"Pruebas de Calidad de Código\");\n this.addQuestion(q17);\n Question q18 = new Question(\"Pruebas de Calidad de código sirven para: \",\n \"Hace una cobertura de declaraciones del código, ramas, caminos y condiciones\",\n \"Verificar que las especificaciones de diseño sean alcanzadas\",\n \"Garantizar la probabilidad de tener errores o bugs en la codificación\", \"Garantizar la probabilidad de tener errores o bugs en la codificación\");\n this.addQuestion(q18);\n Question q19 = new Question(\"Este análisis nos indica el porcentaje que nuestro código desarrollado ha sido probado por las pruebas unitarias\",\n \"Cobertura\", \"Focalización\", \"Regresión\", \"Cobertura\");\n this.addQuestion(q19);\n\n Question q20 = new Question( \"¿Qué significa V(G)?\",\n \"Número de Regiones\", \"Número de Aristas\", \"Número de Nodos\", \"Número de Regiones\");\n this.addQuestion(q20);\n\n Question q21 = new Question( \"¿Qué significa A?\",\n \"Número de Regiones\", \"Número de Aristas\", \"Número de Nodos\", \"Número de Aristas\");\n this.addQuestion(q21);\n\n Question q22 = new Question( \"¿Qué significa N?\",\n \"Número de Regiones\", \"Número de Aristas\", \"Número de Nodos\", \"Número de Nodos\");\n this.addQuestion(q22);\n\n Question q23 = new Question( \"¿Qué significa P?\",\n \"Número de Regiones\", \"Número de Aristas\", \"Número de Nodos Predicado\", \"Número de Nodos Predicado\");\n this.addQuestion(q23);\n Question q24 = new Question( \"De cuantás formas se puede calcular la complejidad ciclomatica V(G):\",\n \"3\", \"1\", \"2\", \"3\");\n this.addQuestion(q24);\n\n // END\n }", "@Override\n\tpublic void onQaQuestion(QaQuestion arg0, int arg1) {\n\t\t\n\t}", "public void addQuestion(Question question) {\n\t\tquestions.add(question);\n\t}", "public void addQuestionAndAnswer(String question, String answer){\n this.questionList.add(question);\n this.answerList.add(answer);\n }", "@Override\n public void askQuestion(final EJQuestion question)\n {\n final EJQuestionButton[] optionsButtons = getOptions(question);\n String[] options = new String[optionsButtons.length];\n for (int i = 0; i < optionsButtons.length; i++)\n {\n options[i] = question.getButtonText(optionsButtons[i]);\n }\n MessageDialog dialog = new MessageDialog(manager.getShell(), question.getTitle(), null, question.getMessageText(), MessageDialog.QUESTION, options, 2)\n {\n\n @Override\n public boolean close()\n {\n boolean close = super.close();\n\n int answer = getReturnCode();\n\n try\n {\n \n if (answer > -1)\n {\n question.setAnswer(optionsButtons[answer]);\n question.getActionProcessor().questionAnswered(question);\n \n }\n \n }\n catch (EJApplicationException e)\n {\n handleException(e);\n }\n\n return close;\n }\n\n };\n dialog.setBlockOnOpen(false);\n\n dialog.open();\n }", "public void question() {\n\t\tlead.answer(this);\n\t}", "@PostMapping(value=\"/add\")\n\tpublic Question addQuestion(@RequestBody Question question) throws EmptyInputException{\n\t\t Question t = questionObj.addQuestion(question);\n\t\t LOGGER.info(\"Adding Questions\");\n\t\t return t;\n\t}", "public void addQuestionOS(QuestionOS quest) {\n ContentValues values = new ContentValues();\n values.put(KEY_QUES, quest.getQUESTION());\n values.put(KEY_ANSWER, quest.getANSWER());\n values.put(KEY_OPTA, quest.getOPTA());\n values.put(KEY_OPTB, quest.getOPTB());\n values.put(KEY_OPTC, quest.getOPTC());\n values.put(KEY_OPTD, quest.getOPTD());\n // Inserting Row\n dbase.insert(TABLE_QUEST, null, values);\n }", "public void addQuestion(Question quest) {\n ContentValues values = new ContentValues();\n values.put(KEY_QUES, quest.getQUESTION());\n values.put(KEY_ANSWER, quest.getANSWER());\n values.put(KEY_OPTA, quest.getOPTA());\n values.put(KEY_OPTB, quest.getOPTB());\n values.put(KEY_OPTC, quest.getOPTC());\n // Inserting Row\n db.insert(TABLE_NAME_QUEST, null, values);\n }", "public boolean addQuestion(EcardServiceCondition condition) {\n//\t\tString questionInfo = CodeUtil.decodeBase64(getCondition(condition)\n//\t\t\t\t.getContent());\n\t\t\n\t\tString values[] = ConnectionMessage.getValue(getCondition(condition).getMessage(), \"u_id\",\n\t\t\t\t\"u_ip\", \"g_id\", \"q_title\", \"q_content\", \"q_time\", \"q_value\",\n\t\t\t\t\"province_id\", \"q_stats\");\n\t\tQuestion question = new Question();\n\t\tquestion.getUser().setUid(StringValueUtils.getInt(values[0]));\n\t\tquestion.setQuestion_ip(values[1]);\n\t\tquestion.getLawCategory().setCatId(StringValueUtils.getInt(values[2]));\n\t\tquestion.setTitle(values[3]);\n\t\tquestion.setContent(StringUtils.replace(values[4], \"\\\\\\\\\", \"\\\\\"));\n\t\ttry {\n\t\t\tquestion.setCreatetime(DateUtil.parseDate(values[5]));\n\t\t} catch (ParseException e) {\n\t\t\tquestion.setCreatetime(new Date());\n\t\t}\n\t\tquestion.setScore(StringValueUtils.getInt(values[6]));\n\t\tquestion.getProvince().setAreaId(StringValueUtils.getInt(values[7]));\n\t\tquestion.setVisible(values[8]);\n\t\tif(questionServices.addQuestion(question)>0)return true;\n\t\telse \n\t\t\treturn false;\n\t}", "void setQuestionType(QuestionType type);", "@Override\n\tpublic boolean addQuestion(QuestionObject question) {\n\t\tif (question != null && !questionComposite.checkExist(question)) {\n\t\t\tquestionComposite.add(question);\n\t\t\treturn true;\n\t\t}\n\t\telse\n\t\t\treturn false;\n\t}", "public void addQuestion(Question question) {\n \t\tquestion.setId(questionIdCounter);\n \t\tquestions.add(question);\n \t\tquestionIdCounter++;\n \t}", "@Test\n\tpublic void testSaveQuestion() {\n\t\tAssert.assertEquals(\"qna.sms.question-posted.no-replies\", questionSmsCommand.execute(\n\t\t\t\tnew ParsedMessage(USER_UPDATE, CMD, SITE, \"new question\", 1), ShortMessageCommand.MESSAGE_TYPE_SMS,\"1234\" ));\n\t\tString id = bundleLogicStub.getLastParameters()[1].toString();\n\t\tQnaQuestion question = questionLogic.getQuestionById(Long.valueOf(id));\n\t\tAssert.assertEquals(\"new question\", question.getQuestionText());\n\t\tAssert.assertEquals(USER_UPDATE, question.getOwnerId());\n\t\tAssert.assertEquals(\"1234\", question.getOwnerMobileNr());\n\t\tAssert.assertEquals(1, questionLogic.getAllQuestions(LOCATION1_ID).size()); \n\t}", "public Question(String question, String[] options, String correctAnswer, String type) {\r\n this.question = question;\r\n this.correctAnswer = correctAnswer;\r\n this.type = \"Multiple Choice\";\r\n this.options = options;\r\n }", "public void setQuestion(String question) {\n\t\tthis.question = question;\n\t}", "public void setQuestionType(String questionType) {\n this.questionType = questionType;\n }", "private void setAnswerForLastQuestion() {\n\n DbHelper dbhelper = new DbHelper(context);\n questionNo = questionNo + 1;\n QuizAnswer answer = new QuizAnswer();\n answer.setQuizId(quizId);\n answer.setQuestionId(questionId);\n int optionId = shareprefs.getInt(\"optionId\", 0);\n answer.setOptionId(optionId);\n int correctAns = shareprefs.getInt(\"correctAns\", 0);\n answer.setAnswer(correctAns);\n answer.setContentId(contentId);\n boolean flage = dbhelper.upsertQuizAnswerEntity(answer);\n if (flage) {\n shareprefs.edit().clear().commit();//clear select OptionPreferences\n Intent mIntent = new Intent(this, QuizResultActivity.class);\n mIntent.putExtra(\"quizId\", quizId);\n mIntent.putExtra(\"contentId\", contentId);\n mIntent.putExtra(\"totalQuestion\", questionList.size());\n startActivityForResult(mIntent,1);\n }\n }", "public void setOkToAddQuestion(String string) {\r\n\t\t_okToAddQuestion = string;\r\n\t}", "@Override\n\tpublic void updataanswer(Integer id, AnswerCustom answerCustom) throws Exception {\n\t\t\n\t}", "void addQuestions(String surveyId, List<Question> questions);", "@WebMethod Question createQuestion(Event event, String question, double betMinimum) throws EventFinished, QuestionAlreadyExist;", "@WebMethod Question createQuestion(Event event, String question, float betMinimum) throws EventFinished, QuestionAlreadyExist;", "public void add( IAnswer possibleAnswer );", "public void addQuestions() {\n\t\tboolean addNewQuestion = true;\n\t\tString text;\n\t\tQuestion q;\n\t\tString promptResponse;\n\t\t\n\t\twhile (addNewQuestion) {\n\t\t\tSystem.out.print(\"Enter question: \");\n\t\t\ttext = System.console().readLine();\n\t\t\tq = new QuestionImpl(questionId, text);\n\t\t\tthis.questionId++;\n\t\t\tq.addAnswers();\n\t\t\tthis.questions.add(q);\n\n\t\t\tSystem.out.print(\"Hit Return to add another question or q to quit: \");\n\t\t\tpromptResponse = System.console().readLine();\n\t\t\tif (promptResponse.equals(\"q\") ||\n\t\t\t\t\tpromptResponse.equals(\"Q\") ||\n\t\t\t\t\tpromptResponse.equals(\"quit\") ||\n\t\t\t\t\tpromptResponse.equals(\"Quit\")) {\n\t\t\t\taddNewQuestion = false;\n\t\t\t}\n\t\t}\n\t}", "public DecideQuestion(){\n\t\tsuper(0); /** call relation -> PromptQuestion.java */\n\t}", "@Override\n public void askInternalQuestion(final EJInternalQuestion question)\n {\n final EJQuestionButton[] optionsButtons = getOptions(question);\n String[] options = new String[optionsButtons.length];\n for (int i = 0; i < optionsButtons.length; i++)\n {\n options[i] = question.getButtonText(optionsButtons[i]);\n }\n MessageDialog dialog = new MessageDialog(manager.getShell(), question.getTitle(), null, question.getMessageText(), MessageDialog.QUESTION, options, 2)\n {\n\n @Override\n public boolean close()\n {\n boolean close = super.close();\n\n int answer = getReturnCode();\n\n try\n {\n \n if (answer > -1)\n {\n question.setAnswer(optionsButtons[answer]);\n question.getActionProcessor().questionAnswered(question);\n \n }\n question.getForm().internalQuestionAnswered(question);\n }\n catch (EJApplicationException e)\n {\n handleException(e);\n }\n return close;\n }\n\n };\n dialog.setBlockOnOpen(false);\n\n dialog.open();\n \n }", "private void setAnswer() {\n DbHelper dbhelper = new DbHelper(context);\n questionNo = questionNo + 1;\n QuizAnswer answer = new QuizAnswer();\n answer.setQuizId(quizId);\n answer.setQuestionId(questionId);\n int optionId = shareprefs.getInt(\"optionId\", 0);\n answer.setOptionId(optionId);\n int correctAns = shareprefs.getInt(\"correctAns\", 0);\n answer.setAnswer(correctAns);\n answer.setContentId(contentId);\n boolean flage = dbhelper.upsertQuizAnswerEntity(answer);\n if (flage) {\n shareprefs.edit().clear().commit();//clear select OptionPreferences\n setValue();\n }\n }", "private void createIQuestionInterface(final Environment result,\n\t\t\tEnvironment extEnv)\n\t{\n\n\t\tList<String> genericArguments = new LinkedList<String>();\n\t\tgenericArguments.add(\"Q\");\n\t\tString name = \"Question\";\n\t\tString tag = result.TAG_IQuestion;\n\t\tMethodFactory extMf = new MethodFactory()\n\t\t{\n\n\t\t\t// @Override\n\t\t\t// public void updateApplyMethod(IClassDefinition cdef,\n\t\t\t// String newAnalysisName)\n\t\t\t// {\n\t\t\t// // QuestionAcceptMethod qam = findMethodType(QuestionAcceptMethod.class, cdef);\n\t\t\t// // if (qam != null)\n\t\t\t// // qam.setPrivilegedBody(\"\\t\\t((\"\n\t\t\t// // + newAnalysisName\n\t\t\t// // + \"<Q>)caller).case\"\n\t\t\t// // + AnalysisUtil.getCaseClass(result, cdef).getName().getName()\n\t\t\t// // + \"(this, question);\");\n\t\t\t// }\n\n\t\t\t@Override\n\t\t\tpublic Method createCaseMethod(IClassDefinition cdef)\n\t\t\t{\n\t\t\t\tQuestionAdaptorCaseMethod caseM = new QuestionAdaptorCaseMethod();\n\t\t\t\tcaseM.setClassDefinition(cdef);\n\t\t\t\treturn caseM;\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic Method createDefaultCaseMethod(IClassDefinition cdef)\n\t\t\t{\n\t\t\t\tQuestionAdaptorDefaultMethod qadm = new QuestionAdaptorDefaultMethod();\n\t\t\t\tqadm.setClassDefinition(cdef);\n\t\t\t\treturn qadm;\n\t\t\t}\n\t\t};\n\t\tcreateAnalysisInterface(genericArguments, name, tag, extMf, extEnv, result, base);\n\t}", "public void answer(Properties answers) {\n/* 56 */ setAnswer(answers);\n/* 57 */ QuestionParser.parseManageAllianceQuestion(this);\n/* */ }", "@Override\n\tpublic Questions addQuestion(BigInteger testId, Questions question) throws UserException {\n\t\treturn null;\n\t}", "public void setQuestion(String newQuestion) {\n question = newQuestion;\n }", "@Test\n void addAnswersToQuestionWhenQuestionIsGettingAdded(){\n quiz = new Quiz(69L, \"weeb quiz\", new ArrayList<>(), new User(),\"1\", new ArrayList<>());\n question = new Question(96L, new ArrayList<>(), new Quiz(), \"what's the monster inside of Yuji Itadori called?\");\n answer = new Answer(1L, \"Sukuna\", true, question);\n\n quizService.addQuiz(quiz, new User(42L, \"potato-san\", \"[email protected]\", \"iLovePotatoes420\", new ArrayList<>()));\n questionService.addQuestion(question, quiz);\n answerService.addAnswer(answer, question);\n\n String questionAnswer = \"Sukuna\";\n Optional<Question> questionNinetySix = questionService.getAllQuestions()\n .stream()\n .filter(q -> q.getQuestionId() == 96L)\n .findAny();\n\n if(questionNinetySix.isPresent()){\n String actualAnswer = questionNinetySix.get().getAnswers()\n .stream().findFirst().get().getAnswerContent();\n\n assertEquals(questionAnswer, actualAnswer);\n }\n }", "public void setQuestions(){\r\n question.setTestname(test.getText().toString());\r\n question.setQuestion(ques.getText().toString());\r\n question.setOption1(opt1.getText().toString());\r\n question.setOption2(opt2.getText().toString());\r\n question.setOption3(opt3.getText().toString());\r\n int num = Integer.parseInt(correct.getText().toString());\r\n question.setAnswerNumber(num);\r\n long check = db.addToDb(question);\r\n if(check == -1){\r\n Toast.makeText(getBaseContext(), \"Question already exists\", Toast.LENGTH_LONG).show();\r\n }else{\r\n Toast.makeText(getBaseContext(), \"Question added\", Toast.LENGTH_LONG).show();\r\n }\r\n }", "public interface QuestionInterface {\n\t/**\n\t * Sets the question.\n\t * @param question to be asked\n\t */\n\tpublic void setQuestion(String question);\n\t\n\t/**\n\t * Add options to the question\n\t * @param opiton The text for the option\n\t * @param correct is this option a correct answer.\n\t */\n\tpublic void addOption(String opiton, boolean correct);\n\t\n\tpublic List<String> getOptions();\n\t\n\tpublic List<Boolean> getCorrectA();\n}", "public FAQ(String question, String answer){\n\t\tthis.question = question;\n\t\tthis.answer = answer;\n\t}", "public void addAnswer(Answer answer) {\n \t\tanswer.setId(answerIdCounter);\n \t\tanswers.add(answer);\n \t\tanswerIdCounter++;\n \t}", "public void setQuestionType(int questionType) {\r\n\t\tthis.questionType = questionType;\r\n\t}", "public void setQuestionType(Integer questionType) {\n this.questionType = questionType;\n }", "@Override\n public void setQuestion(Question question) {\n super.setQuestion(question);\n\n options = ((MultipleChoiceQuestionResponse) question.getCorrectAnswer()).getChoices();\n for (int i = 0; i < options.size(); i ++) {\n String option = options.get(i);\n RadioButton button = new RadioButton(option);\n button.setToggleGroup(group);\n\n button.setLayoutY(i * 30);\n choices.getChildren().add(button);\n }\n }", "public void setAnswer(String answer) {\r\n this.answer = answer;\r\n }", "public void answerQuestion(){\n for (int i = 0; i < questionList.size(); i++){\r\n if (questionList.get(i).question.startsWith(\"How\")){\r\n howQuestions.add(new Question(questionList.get(i).id, questionList.get(i).question, questionList.get(i).answer));\r\n }\r\n }\r\n\r\n // Print All When Questions\r\n System.out.println(\"How Questions\");\r\n for (int i = 0; i < howQuestions.size(); i++){\r\n System.out.println(howQuestions.get(i).question);\r\n }\r\n\r\n //==== Question Entities ====\r\n // Split All When Question to only questions that have the entities\r\n if (!howQuestions.isEmpty()){\r\n if (!questionEntities.isEmpty()){\r\n for (int c = 0; c < questionEntities.size(); c++){\r\n for (int i = 0; i < howQuestions.size(); i++){\r\n if (howQuestions.get(i).question.contains(questionEntities.get(c))){\r\n answers.add(new Question(howQuestions.get(i).id, howQuestions.get(i).question, howQuestions.get(i).answer));\r\n }\r\n }\r\n }\r\n }\r\n else{\r\n if (!questionTags.isEmpty()){\r\n for (int c = 0; c < questionTags.size(); c++){\r\n for (int i = 0; i < howQuestions.size(); i++){\r\n if (howQuestions.get(i).question.contains(questionTags.get(c))){\r\n answers.add(new Question(howQuestions.get(i).id, howQuestions.get(i).question, howQuestions.get(i).answer));\r\n }\r\n }\r\n }\r\n }\r\n else{\r\n System.out.println(\"There no answer for your question !\");\r\n System.exit(0);\r\n }\r\n }\r\n }\r\n\r\n // Print All Entities Questions\r\n System.out.println(\"Questions of 'How' that have entities and tags :\");\r\n for (int i = 0; i < answers.size(); i++){\r\n for (int j = 1; j < answers.size(); j++){\r\n if (answers.get(i).id == answers.get(j).id){\r\n answers.remove(j);\r\n }\r\n }\r\n }\r\n \r\n for (int i = 0; i < answers.size(); i++){\r\n System.out.println(answers.get(i).question);\r\n }\r\n\r\n\r\n //==== Question Tags ====\r\n for (int i = 0; i < questionTags.size(); i++){\r\n for (int k = 0; k < answers.size(); k++){\r\n if (answers.get(k).question.contains(questionTags.get(i))){\r\n continue;\r\n }\r\n else{\r\n answers.remove(k);\r\n }\r\n }\r\n }\r\n }", "public void setAnswer(String newAnswer){\n this.answer = newAnswer; \n }", "private void addOtherQuestion(Question q)\n\t{\n\t\tQuestion q_other = new Question(q);\n\t\tq_other.setQid(q_other.getQid().concat(\"other\"));\n\t\tq_other.setQuestion(q_other.getQuestion().concat(\" other\"));\n\t\tq_other.setType(\"T\");\n\t\tsurvey.addQuestion(q_other);\n\t\t/*\tCond: SE-StudyEventOID/F-FormOID[RepeatKey]/IG-ItemGroupOID/I-ItemOID == \"-oth-\"\n\t\t *\n\t\t */\n\t\tString cond_oid = q.getQid().concat(prop.getProperty(\"ext.cond\"));\n\t\tlog.debug(\"Added cond_oid\");\n\t\tString cond_str = \"$(SE-\" + prop.getProperty(\"dummy.study_event_oid\") + \"/F-\" + survey.getId() + \"/IG-\" + q.getGid() + \"/I-\" + q.getQid() + \")!=\\\"-oth-\\\"\";\n\t\tlog.debug(\"added cond_str\");\n\t\tsurvey.addCondition(new Condition(prop.getProperty(\"imi.syntax_name\"), cond_oid, cond_str));\n\t\tq_other.setCond(cond_oid);\n\t}", "public void setQuestionContent(String questionContent) {\n this.questionContent = questionContent;\n }", "public MultipleChoiceQuestion(String question, String answer) {\n super(question, answer);\n }", "private void addSubquestionsWithCL(Question q, String oid, HashMap<String, String> ans, String t, boolean b, String qid_append)\n\t{\n\t\tList<String> sqids = getSqIds(q.getQid());\n\t\tfor (String sqid : sqids) {\n\t\t\tString question = q_l10ns_node.selectSingleNode(\"row[qid=\" + sqid + \"]/question\").getText();\n\t\t\tString sq_title = sq_node.selectSingleNode(\"row[qid=\" + sqid + \"]/title\").getText();\n\t\t\tQuestion sq = new Question(q.qid + sq_title + qid_append,\n\t\t\t\t\tq.gid,\n\t\t\t\t\t\"A\",\n\t\t\t\t\tq.question + \" \" + question,\n\t\t\t\t\tsqid,\n\t\t\t\t\tq.mandatory,\n\t\t\t\t\tq.language);\n\t\t\tsq.setHelp(q.help);\n\t\t\tsq.setAnswers(new AnswersList(oid, ans, t, b));\n\n\t\t\tsurvey.addQuestion(sq);\n\n\t\t\t// If the type is \"Multiple Choice with Comments\"\n\t\t\tif (q.getType().equals(\"P\")) {\n\t\t\t\t// Add comment question\n\t\t\t\taddComment(sq);\n\t\t\t}\n\t\t}\n\t}", "@Override\r\n\tpublic void add(AssesmentQuestion assesmentQuestion) {\r\n\r\n\t\tSession session = sessionFactory.getCurrentSession();\r\n\t\tTransaction tx = session.beginTransaction();\r\n\t\ttry {\r\n\t\t\tsession.save(assesmentQuestion);\r\n\t\t\ttx.commit();\r\n\t\t} catch (HibernateException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "public QResponse(String questionType, String questionId) {\r\n\t\tsuper(questionType, questionId);\r\n\t}", "public QueryQuestions saveQuestion(String question) {\n String uniqueId = UUID.randomUUID().toString();\n QueryQuestions queryQuestions1 = new QueryQuestions(uniqueId,question);\n QueryQuestions savedQueryQuestions = questionRepository.save(queryQuestions1);\n return savedQueryQuestions;\n }", "public void createEssay() {\n Question q = new Essay(this.in,this.o);\n this.o.setDisplay(\"Enter the prompt for your Essay question:\\n\");\n this.o.getDisplay();\n\n q.setPrompt(this.in.getUserInput());\n\n int numAns = 0;\n while (numAns == 0) {\n this.o.setDisplay(\"How many answers does this question have?\\n\");\n this.o.getDisplay();\n\n try {\n numAns = Integer.parseInt(this.in.getUserInput());\n if (numAns > numChoices || numAns < 1) {\n numAns = 0;\n } else {\n q.setMaxResponses(numAns);\n }\n } catch (NumberFormatException e) {\n numAns = 0;\n }\n }\n\n if (isTest) {\n RCA ca = new RCA(this.in,this.o);\n Test t = (Test)this.survey;\n String ans;\n\n this.o.setDisplay(\"Enter correct answer(s)\\n\");\n this.o.getDisplay();\n\n for (int j=0; j < q.getMaxResponses(); j++){\n\n ans = this.in.getUserInput();\n\n ca.addResponse(ans);\n }\n t.addAnswer(ca);\n }\n\n this.survey.addQuestion(q);\n }", "public void addQuestionNote(int qId){\r\n SQLiteDatabase db = this.getWritableDatabase();\r\n\r\n ContentValues values = new ContentValues();\r\n values.put(KEY_QID, qId);\r\n\r\n db.insert(TABLE_QUESTION_NOTES, null, values);\r\n\r\n db.close();\r\n }", "public MultipleAnswerQuestion(String question ,boolean isSingleAnswered)\r\n {\r\n super(question,isSingleAnswered);\r\n this.answers = new ArrayList<>(); //Initializing the HashSet\r\n }", "public void AddQuestionToBank(ActionEvent actionEvent) throws IOException {\n QuestionModel questionModel = new QuestionModel();\n ArrayList<QuestionModel> questionBank = DBObject.getInstance().getQuestionBank();\n if(questionName.getText() != null && question.getText() != null && subjects.getValue() != null){\n if(className.getValue() != null && answer.getText() != null){\n if (easy.isSelected() || medium.isSelected() || hard.isSelected()) {\n questionModel.setQuestionName(questionName.getText());\n questionModel.setPointsPossible(Integer.parseInt(points.getText()));\n questionModel.setClassNumber(className.getValue().toString());\n questionModel.setSubject(subjects.getValue().toString());\n questionModel.setQuestion(question.getText());\n questionModel.getQuestionHelper().setAnswer(answer.getText());\n questionModel.setHint(hint.getText());\n if(easy.isSelected()){\n questionModel.setDifficulty(1);\n }\n else if(medium.isSelected()){\n questionModel.setDifficulty(2);\n }\n else if(hard.isSelected()){\n questionModel.setDifficulty(3);\n }\n SetUpNewView(questionBank, questionModel);\n }\n }\n }\n }", "public void addQuestion(View view) {\n startActivity(new Intent(MainActivity.this, DicebreakerQuestions.class));\n\n }", "private List<String> answerType(Question currentQuestion) {\n List<String> answers = new ArrayList<String>();\n\n if (currentQuestion.getTypeOfQuestion() == QuestionTypes.ESSAY || currentQuestion.getTypeOfQuestion() == QuestionTypes.MULTI_CHOICE) {\n System.out.println(\"Single Answer :\" + singleAnswer);\n answers.add(singleAnswer);\n } else {\n System.out.println(\"Multi Answer :\" + multiAnswers);\n answers = multiAnswers;\n }\n return answers;\n }", "public abstract void editQuestion();", "@Override\n\tpublic void addChoice(String choice) {\n\t}", "@SuppressLint(\"NewApi\")\n\t@Override\n\tpublic void questionReceivedFromDoctor(QuestionData question) {\n\t\tlogger.info(\"questionReceivedFromDoctor(): prompting participant for question: '\" + question.getQuestion()\n\t\t\t\t+ \"'\");\n\n\t\t// TODO Expand this to include responses other than yes / no.\n\t\tAlertDialog.Builder builder = new AlertDialog.Builder(WorkoutActivity.this);\n\t\tfinal Boolean[] answer = new Boolean[1];\n\t\tanswer[0] = null;\n\t\tbuilder.setTitle(\"question\").setMessage(question.getQuestion())\n\t\t\t\t.setPositiveButton(QuestionData.RESPONSE_YES, new DialogInterface.OnClickListener() {\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\tanswer[0] = Boolean.TRUE;\n\t\t\t\t\t}\n\n\t\t\t\t}).setNegativeButton(QuestionData.RESPONSE_NO, new DialogInterface.OnClickListener() {\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\tanswer[0] = Boolean.FALSE;\n\t\t\t\t\t}\n\n\t\t\t\t}).setOnDismissListener(new DialogInterface.OnDismissListener() {\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onDismiss(DialogInterface dialog) {\n\t\t\t\t\t\tAnswerData answerData = new AnswerData();\n\t\t\t\t\t\tif (answer[0] == Boolean.TRUE) {\n\t\t\t\t\t\t\tanswerData.setAnswer(QuestionData.RESPONSE_YES);\n\t\t\t\t\t\t} else if (answer[0] == Boolean.FALSE) {\n\t\t\t\t\t\t\tanswerData.setAnswer(QuestionData.RESPONSE_NO);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tanswerData.setAnswer(QuestionData.DID_NOT_RESPOND);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tworkoutService.getService().replyToQuestion(answerData);\n\t\t\t\t\t}\n\t\t\t\t});\n\t}", "public void saveQuestion(){\n\n\t\tint numAnswers = testGenerator.getNumAnswers(questionNo);\n\t\tString setAnswerBox = Integer.toString(numAnswers);\n\n\t\ttestGenerator.setQuestionText(questionNo, ques.getText());\n\t\ttestGenerator.setAnswerText(questionNo, 1, ans1.getText());\n\t\ttestGenerator.setAnswerText(questionNo, 2, ans2.getText());\n\n\t\ttestGenerator.setIsAnswerCorrect(questionNo, 1, answer1.isSelected());\n\t\ttestGenerator.setIsAnswerCorrect(questionNo, 2, answer2.isSelected());\n\n\t\tif((setAnswerBox.equals(\"3\")) || setAnswerBox.equals(\"4\")) {\n\t\t\ttestGenerator.setAnswerText(questionNo, 3, ans3.getText()); \t\n\t\t\ttestGenerator.setIsAnswerCorrect(questionNo, 3, answer3.isSelected());\n\t\t}\n\n\t\tif(setAnswerBox.equals(\"4\")) {\n\t\t\ttestGenerator.setAnswerText(questionNo, 4, ans4.getText()); \t\n\t\t\ttestGenerator.setIsAnswerCorrect(questionNo, 4, answer4.isSelected());\n\t\t}\n\t}", "public void addQue(String test_name,String que_type,String que,ArrayList<String> options,String ans,String points)\n\t{\n\t\t \n\t Entity xyz=new Entity(\"question\");\n\t xyz.setProperty(\"test_name\",test_name);\n\t xyz.setProperty(\"que_type\",que_type);\n\t xyz.setProperty(\"que\",que);\n\t xyz.setProperty(\"options\",options);\n\t xyz.setProperty(\"ans\",ans);\n\t xyz.setProperty(\"points\",points);\n\t ds.put(xyz);\n\t \n //For question_count and total points. Added in Test entity\t \n\t \n\t long count=0;\n\t double total=0;\n\t Filter test_nameFilter = new FilterPredicate(\"test_name\", FilterOperator.EQUAL,test_name);\n\n\t Query q = new Query(\"Test\").setFilter(test_nameFilter);\n\t\t PreparedQuery pq = ds.prepare(q);\n\t\t Entity abc=pq.asSingleEntity();\n\t\t if(abc!=null)\n\t\t {\n\t\t\t count=(long)abc.getProperty(\"que_count\")+1;\n\t\t\t total=(double)abc.getProperty(\"total_points\")+Double.parseDouble(points);\n\t\t\t abc.setProperty(\"que_count\",count);\n\t\t\t abc.setProperty(\"total_points\",total);\n\t\t ds.put(abc);\n\t\t }\n\t\t \n\t}", "public int getOpenQuestion(){\n\t\t\treturn openQuestion;\n\t\t}", "public void setAnswer(MCQChoice answer)\n\t{\n\t\tmcqAnswer = answer;\n\t}", "public void addQuestion(String questionText, String correctChoice,\n String incorrectChoice1, String incorrectChoice2, String incorrectChoice3,\n String explanation, String user) {\n Question question = new Question();\n question.setQuestionText(questionText);\n question.setCorrectChoice(correctChoice);\n question.setIncorrectChoice1(incorrectChoice1);\n question.setIncorrectChoice2(incorrectChoice2);\n question.setIncorrectChoice3(incorrectChoice3);\n question.setExplanation(explanation);\n question.setCreatedBy(user);\n questionDao.create(question);\n\n }", "@Override\n public void submitAnswer(PlayerAnswer playerAnswer) {\n\n\n }", "public void addQuestion(Question a) {\n quesCollec.add(a);\n }", "@Override\r\n\tpublic String getType() {\r\n\t\treturn \"QuestionInExam\";\r\n\t}", "private void detectQuestionType(String userMessage) {\n String firstWord = firstWord(userMessage).toLowerCase();\n List<String> answer;\n if (firstWord.equals(\"where\")) {\n answer = additionalDB.get(\"where\");\n } else if (firstWord.equals(\"when\")) {\n answer = additionalDB.get(\"when\");\n }else {\n \tanswer = additionalDB.get(\"ques\");\n }\n responsesList.add(new Response(getRandomElementFromList(answer)));\n }", "@Override\n public String ask(String question) {\n return answers[position++];\n }", "public void setQuestion(){\n\n\n triggerReport(); //Check if max questions are displayed, if yes then show report\n\n MyDatabase db = new MyDatabase(QuizCorner.this);\n Cursor words = db.getQuizQuestion();\n TextView question_text = (TextView) findViewById(R.id.question_text);\n RadioButton rb;\n resetOptions();\n disableCheck();\n enableRadioButtons();\n hideAnswer();\n words.moveToFirst();\n word = words.getString(words.getColumnIndex(\"word\"));\n correct_answer = words.getString(words.getColumnIndex(\"meaning\"));\n question_text.setText(word + \" means:\");\n for (int i = 0; i < 4; i++){\n answers[i] = words.getString(words.getColumnIndex(\"meaning\"));\n words.moveToNext();\n }\n answers = randomizeArray(answers);\n for (int i = 0; i < 4; i++){\n rb = (RadioButton) findViewById(options[i]);\n rb.setText(answers[i]);\n }\n question_displayed_count++;\n }", "public void addQuestion()\r\n\t{\r\n\t\tScanner in = new Scanner (System.in);\r\n\t\tString question, a1, a2, a3, a4, correctAnswer;\r\n\r\n\t\tSystem.out.println(\"Please enter a question: \");\r\n\t\tquestion = in.nextLine();\r\n\t\t\r\n\t\tSystem.out.println(\"Please enter answer choice #1: \");\r\n\t\ta1 = in.nextLine();\r\n\t\t\r\n\t\tSystem.out.println(\"Please enter answer choice #2: \");\r\n\t\ta2 = in.nextLine();\r\n\t\t\r\n\t\tSystem.out.println(\"Please enter answer choice #3: \");\r\n\t\ta3 = in.nextLine();\r\n\t\t\r\n\t\tSystem.out.println(\"Please enter answer choice #4: \");\r\n\t\ta4 = in.nextLine();\r\n\t\t\r\n\t\tSystem.out.println(\"Please enter the correct answer (number): \");\r\n\t\tcorrectAnswer = in.nextLine();\r\n\t\t\r\n\t\t//checks input\r\n\t\twhile( !( correctAnswer.equalsIgnoreCase(\"1\") || correctAnswer.equalsIgnoreCase(\"2\") || correctAnswer.equalsIgnoreCase(\"3\") || correctAnswer.equalsIgnoreCase(\"4\") ) )\r\n\t\t{\r\n\t\t\tSystem.out.println(\"Invalid entry. Enter again:\");\r\n\t\t\tcorrectAnswer = in.nextLine();\r\n\t\t}\r\n\t\tQuestion q = new Question ( question, a1, a2, a3, a4, correctAnswer );\r\n\t\t\r\n\t\tquestions.add(q);\r\n\t}", "private void retrainMappingsAfterAddingNewQuestions(\r\n String description,\r\n String qType ) throws Exception {\r\n\r\n String number = driver.getTimestamp();\r\n String surveyName = number + \"retaingMappingsAfterAdding\" + qType + \"Questions\";\r\n String statusOption1 = \"Sent\";\r\n String statusOption2 = \"Responded\";\r\n\r\n log.startTest( \"LeadEnable: Verify that questions retrain their mappings if you add new \"\r\n + description + \" questions without pressing Save.\" );\r\n try {\r\n // Log And Go to Survey Page\r\n loginToSend().goToSurveyPage().sfdcSurvey.createSurveyAndTypeSurveyName( surveyName )\r\n .checkLogResponseInCRM()\r\n .selectSurveyFolders( surveyType3, sfdcCampaign3 );\r\n // Editing free text question\r\n send.sfdcSurvey.sfdcQuestion.editQuestionType( \"A free text question\" )\r\n .enterQuestion( FTcontactField.LASTNAME.question )\r\n .mapFTQuestionToContactField( FTcontactField.LASTNAME.conntactFiled );\r\n send.sfdcSurvey.sfdcQuestion.addFTQAndMapItToEmail( false )\r\n .editQuestionType( FTcontactField.LASTNAME.question );\r\n\r\n log.startStep( \"Verify the Contact drop down '\" + FTcontactField.LASTNAME.question\r\n + \"' is still retain 'Last Name' value\" );\r\n log.endStep( driver.isValueSelected( \"#qTypetextSalesforceContactsField span\",\r\n FTcontactField.LASTNAME.conntactFiled ) );\r\n\r\n log.startStep( \"Verify the Lead drop down '\" + FTcontactField.LASTNAME.question\r\n + \"' is still retain 'Last Name' value\" );\r\n log.endStep( driver.isValueSelected( \"#qTypetextSalesforceLeadField span\",\r\n FTcontactField.LASTNAME.conntactFiled ) );\r\n\r\n // Edit the Default MCQ \r\n send.sfdcSurvey.sfdcQuestion.addOrUpdateMCQuestionBy( MCcontactFiled.LEADSOURCE.question,\r\n QuestionStatus.EDIT )\r\n .fillinMCQAnswers( MCcontactFiled.LEADSOURCE.option_1,\r\n MCcontactFiled.LEADSOURCE.option_2 );\r\n send.sfdcSurvey.sfdcQuestion.addMCQStatusOptions()\r\n .mapMCQuestionToContactField( MCcontactFiled.LEADSOURCE.name,\r\n MCcontactFiled.LEADSOURCE.option_1,\r\n MCcontactFiled.LEADSOURCE.option_2 );\r\n\r\n // Add new MCQ\r\n if( qType == \"dragAndDrop\" ) {\r\n send.sfdcSurvey.sfdcQuestion.dragAndDropMCquestionAndMapItToSalutation( true );\r\n } else {\r\n send.sfdcSurvey.sfdcQuestion.addMCquestionAndMapItToSalutation( true );\r\n }\r\n\r\n // Verify the default MCQ retained it's mappings\r\n send.sfdcSurvey.sfdcQuestion.editQuestionType( MCcontactFiled.LEADSOURCE.question );\r\n\r\n log.resultStep( \"Verify the Contact Field retained it's value \" + MCcontactFiled.LEADSOURCE.name );\r\n log.endStep( driver.isValueSelected( \"#qTypemcSalesforceContactsField span\",\r\n MCcontactFiled.LEADSOURCE.name ) );\r\n\r\n log.resultStep( \"Verify the Lead Field retained it's value \" + MCcontactFiled.LEADSOURCE.name );\r\n log.endStep( driver.isValueSelected( \"#qTypemcSalesforceLeadField span\",\r\n MCcontactFiled.LEADSOURCE.name ) );\r\n\r\n // Verify drop down values for status\r\n log.resultStep( \"Verify that the 1st status option is \" + statusOption1 );\r\n log.endStep( driver.isSelected( \"//ul[@id='qAnswerList']/li[1]//select[@id[starts-with(.,'answerStatus')]]\",\r\n statusOption1 ) );\r\n\r\n log.resultStep( \"Verify that the 2nd status option is \" + statusOption2 );\r\n log.endStep( driver.isSelected( \"//ul[@id='qAnswerList']/li[2]//select[@id[starts-with(.,'answerStatus')]]\",\r\n statusOption2 ) );\r\n\r\n // Verify drop down values for Contacts \r\n log.resultStep( \"Verify that the 1st contact option is \" + MCcontactFiled.LEADSOURCE.option_1 );\r\n log.endStep( driver.isSelected( \"//ul[@id='qAnswerList']/li[1]//select[@id[starts-with(.,'answerContact')]]\",\r\n MCcontactFiled.LEADSOURCE.option_1 ) );\r\n\r\n log.resultStep( \"Verify that the 2nd contact option is \" + MCcontactFiled.LEADSOURCE.option_2 );\r\n log.endStep( driver.isSelected( \"//ul[@id='qAnswerList']/li[2]//select[@id[starts-with(.,'answerContact')]]\",\r\n MCcontactFiled.LEADSOURCE.option_2 ) );\r\n // Verify drop down values for Leads\r\n log.resultStep( \"Verify that the 1st lead option is \" + MCcontactFiled.LEADSOURCE.option_1 );\r\n log.endStep( driver.isSelected( \"//ul[@id='qAnswerList']/li[1]//select[@id[starts-with(.,'answerLead')]]\",\r\n MCcontactFiled.LEADSOURCE.option_1 ) );\r\n\r\n log.resultStep( \"Verify that the 1st lead option is \" + MCcontactFiled.LEADSOURCE.option_2 );\r\n log.endStep( driver.isSelected( \"//ul[@id='qAnswerList']/li[2]//select[@id[starts-with(.,'answerLead')]]\",\r\n MCcontactFiled.LEADSOURCE.option_2 ) );\r\n\r\n log.resultStep( \"Verify that the text field of the 1st answer is\"\r\n + MCcontactFiled.LEADSOURCE.option_1 );\r\n log.endStep( driver.isTextPresent( \"//input[@id='29374']\",\r\n MCcontactFiled.LEADSOURCE.option_1,\r\n driver.timeOut ) );\r\n\r\n log.resultStep( \"Verify that the text field of the 2nd answer is\"\r\n + MCcontactFiled.LEADSOURCE.option_2 );\r\n log.endStep( driver.isTextPresent( \"//input[@id='54119']\",\r\n MCcontactFiled.LEADSOURCE.option_2,\r\n driver.timeOut ) );\r\n\r\n } catch( Exception e ) {\r\n log.endStep( false );\r\n throw e;\r\n }\r\n log.endTest();\r\n }", "private void setquestion() {\n qinit();\n question_count++;\n\n if (modeflag == 3) {\n modetag = (int) (Math.random() * 3);\n } else {\n modetag = modeflag;\n }\n\n WordingIO trueword = new WordingIO(vocabulary);\n\n if (modetag == 0) {\n\n MCmode(trueword);\n }\n\n if (modetag == 1) {\n BFmode(trueword);\n }\n\n if (modetag == 2) {\n TLmode(trueword);\n }\n\n if (time_limit != 0) {\n timingtoanswer(time_limit, jLabel2, answer_temp, jLabel5, jLabel6, jButton1);\n }\n }", "com.exacttarget.wsdl.partnerapi.QueryRequestMsgDocument.QueryRequestMsg addNewQueryRequestMsg();", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tif(edit_add.getText().toString().length()>0){\n\t\t\t\t\taddQuestion(UrlUtils.USERQUESTIONADD, edit_add.getText().toString());\n\t\t\t\t}\n\t\t\t}", "public Question(String text, String type, String[] answers, int crrAnswer)\n {\n this.type = type;\n this.text = text;\n this.answers = answers;\n this.mcCrrAnswer = crrAnswer;\n\n this.id = Utility.generateUUID();\n }", "com.exacttarget.wsdl.partnerapi.QueryRequest addNewQueryRequest();", "public static void main(){\n \n \n String question = \"There are 10 types of people in this world, those who understand binary and those who don't.\";\n String answer = \"true\";\n \n Question tfQuest = new Question (question, answer);\n tfQuest.getAnswer();\n \n }", "public Question(String text, String type, String crrAnswer)\n {\n this.type = type;\n this.text = text;\n this.textCrrAnswer = crrAnswer;\n\n this.mcCrrAnswer = -1;\n this.id = Utility.generateUUID();\n }", "void acceptQueAnswersClicked();", "public void setQuestionText(String questionText) {\n this.questionText = questionText;\n }", "public void modifyQuestion(String text) {\n // TODO implement here\n }", "@Override\n public int UpdataQuestion(QuestionBean question) {\n return 0;\n }", "public Integer addQuestionToSurvey(String questionDesc, String option, Boolean status) { \n\t\tInteger val = null;\n\t\ttry {\n\t\t\tval = myQuestions.addQuestionToSurvey(questionDesc, option, status);\n\t\t} catch (RemoteException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn val; \n\t}", "public DnsMessage addQuestion(DnsQuestion question) {\n if (questions == null) {\n questions = new LinkedList<DnsQuestion>();\n }\n questions.add(question);\n return this;\n }" ]
[ "0.68903697", "0.672988", "0.6682896", "0.63964206", "0.63924915", "0.6350318", "0.63387215", "0.63274086", "0.63026625", "0.620407", "0.6110532", "0.6105348", "0.6083593", "0.6049199", "0.6031816", "0.6018094", "0.60038257", "0.59935325", "0.5958619", "0.59576595", "0.5953055", "0.5937019", "0.5925974", "0.59255195", "0.5907762", "0.5903031", "0.5883859", "0.58736354", "0.58678967", "0.58323425", "0.582668", "0.5825253", "0.5805067", "0.5782372", "0.5766811", "0.57657385", "0.5758801", "0.57561356", "0.57512385", "0.5747812", "0.57474476", "0.5736652", "0.573448", "0.57257277", "0.5720803", "0.56987107", "0.56879455", "0.5683761", "0.56809264", "0.567575", "0.5649402", "0.5643383", "0.56198233", "0.56190723", "0.5605096", "0.5585295", "0.5583854", "0.5569981", "0.5562862", "0.5561154", "0.55556136", "0.5538087", "0.55342156", "0.55276686", "0.55131006", "0.5512075", "0.550944", "0.55033207", "0.54980505", "0.5494541", "0.54890895", "0.5485497", "0.5480354", "0.5475349", "0.5474491", "0.54677045", "0.54659086", "0.54604894", "0.54506063", "0.5449557", "0.5448547", "0.54469633", "0.5441845", "0.54411525", "0.5439368", "0.5439181", "0.54378664", "0.5437623", "0.5436002", "0.5419722", "0.5416028", "0.54100376", "0.5358208", "0.53546363", "0.53513336", "0.5350249", "0.53484464", "0.53453755", "0.5344946", "0.53419334" ]
0.78198135
0
Click veteran service all radiobutton.
public void clickVeteranServiceAll() { rbVeteranServiceAll.click(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Then(\"^I click general radio button$\")\n public void i_click_general_radio_button() {\n onViewWithId(R.id.general).click();\n }", "@Then(\"^I click by Park radio button$\")\n public void i_click_by_Park_radio_button() {\n onViewWithId(R.id.byPark).click();\n }", "@Override\r\n public void onClick(View arg0) {\n StatService.onEvent(IllegalQueryActivity.this,\r\n \"clickChoiceVehicleType\", \"点击选择车类型\");\r\n final Dialog dialog = new Dialog(IllegalQueryActivity.this,\r\n R.style.myDialogTheme);\r\n LayoutInflater inflater = LayoutInflater\r\n .from(IllegalQueryActivity.this);\r\n final LinearLayout layout = (LinearLayout) inflater.inflate(\r\n R.layout.choose_vehicle_type_ac, null);\r\n dialog.setContentView(layout);\r\n dialog.show();\r\n RadioGroup mGroup = (RadioGroup) layout\r\n .findViewById(R.id.vehicle_type_group);\r\n mGroup.setOnCheckedChangeListener(new OnCheckedChangeListener() {\r\n\r\n @Override\r\n public void onCheckedChanged(RadioGroup group, int checkedId) {\r\n // TODO Auto-generated method stub\r\n dialog.dismiss();\r\n MyLog.i(\"YUY\",\r\n String.valueOf(checkedId) + \" \"\r\n + group.getCheckedRadioButtonId());\r\n mVehicleTypeTV.setText(((RadioButton) layout\r\n .findViewById(checkedId)).getText().toString());\r\n }\r\n });\r\n }", "public void checkBtn(View v){\n int id = radioGroup.getCheckedRadioButtonId();\n\n radioButton= findViewById(id);\n estatSTR=radioButton.getText().toString();\n //Toast.makeText(this, \"select: \"+ radioButton.getText(),Toast.LENGTH_SHORT).show();\n txtEstat.setText(\"Estat com a \"+estatSTR);\n }", "public void setRadioButtons() throws InterruptedException {\n\t\tList<HtmlRadioButton> radioButtons = getMainWindow().getDocument().getControls().getRadioButtons();\n\t\t\n\t\tfor (HtmlRadioButton rb : radioButtons){\n\t\t\trb.setChecked(true);\n\t\t\t\n\t\t\tThread.sleep(2000);\n\t\t}\n\t}", "@Test\n public void radioTest() throws InterruptedException {\n driver.get(\"http://practice.cybertekschool.com/radio_buttons\");\n List<WebElement> list = driver.findElements(By.name(\"sport\"));\n\n System.out.println(\"verify none of them selected by default\");\n System.out.println(list.size());\n //checking all the sport checkboxes are not checked\n for (int i = 0; i < list.size(); i++) {\n Assert.assertFalse(list.get(i).isSelected());\n }\n\n System.out.println(\"Start randomly selecting radio buttons\");\n\n //randomly clicking and verifying\n\n for (int q = 0; q < 5; q++) {\n\n Thread.sleep(5000);\n Random ran = new Random();\n int num = ran.nextInt(4);\n list.get(num).click();\n System.out.println(\"Selecting button number: \" + (num + 1));\n\n for (int i = 0; i < list.size(); i++) {\n if (i == num) {\n Assert.assertTrue(list.get(num).isSelected());\n } else {\n Assert.assertFalse(list.get(i).isSelected());\n }\n }\n\n }\n }", "@Override\n public void onClick(View v) {\n RadioGroup rg = (RadioGroup) view.findViewById(R.id.choicesGroup);\n View rb = rg.findViewById(rg.getCheckedRadioButtonId());\n quizActivity.showAnswer(rg.indexOfChild(rb));\n }", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tradioOptionGrp = (RadioGroup) findViewById(R.id.radioOpt);\n\t\t\t\t\n\t\t\t\t//Get id of selected radioButton\n\t\t\t\tint selectOptId = radioOptionGrp.getCheckedRadioButtonId();\n\t\t\t\t\n\t\t\t\t//Get Reference to the Selected RadioButton\n\t\t\t\tradioOptBtn = (RadioButton) findViewById(selectOptId);\n\t\t\t\t\n\t\t\t\t//Display value of the selected RadioButton\n\t\t\t\tToast.makeText(getApplicationContext(), radioOptBtn.getText(), Toast.LENGTH_SHORT).show();\n\t\t\t\t\n\t\t\t}", "@Override\n public void onClick(View arg0) {\n\n // get selected radio button from radioGroup\n int selectedId = RadioType.getCheckedRadioButtonId();\n\n // find the radiobutton by returned id\n RadioButton radioButton = (RadioButton) findViewById(selectedId);\n rdButtonSelectedText = radioButton.getText().toString();\n //Call method to get Adjustment List\n if (common.isConnected()) {\n AsyncStockReturnListWSCall task = new AsyncStockReturnListWSCall();\n task.execute();\n }\n }", "private void onClickRadioButton() {\n radioGroupChoice.setOnCheckedChangeListener(this);\n }", "public void obtener_radiobuttons() {\n\n\t\tint selectedId = radioSexGroup.getCheckedRadioButtonId();\n\t\tradioSexButton = (RadioButton) findViewById(selectedId);\n\t\tselectedId = radioTipoGroup.getCheckedRadioButtonId();\n\t\tradioTipoButton = (RadioButton) findViewById(selectedId);\n\t}", "private void RadioButton_Click(RadioGroup rGroup, int checkedId) {\n // Reset everything\n if (this.micClient != null) {\n this.micClient.endMicAndRecognition();\n try {\n this.micClient.finalize();\n } catch (Throwable throwable) {\n throwable.printStackTrace();\n }\n this.micClient = null;\n }\n\n if (this.dataClient != null) {\n try {\n this.dataClient.finalize();\n } catch (Throwable throwable) {\n throwable.printStackTrace();\n }\n this.dataClient = null;\n }\n\n //this.ShowMenu(false);\n this._startButton.setEnabled(true);\n }", "public void clickRegistrationaccounttyperadiobutton(String option){\r\n\r\n\t\tString Acctype = getValue(option);\r\n\t\tString countrygroup_accounttype =\"Spain,France,BernardFrance,BernardBelgium,PresselAustria\";\r\n\t\tclass Local {};\r\n\t\tReporter.log(\"TestStepComponent\"+Local.class.getEnclosingMethod().getName());\r\n\t\tReporter.log(\"TestStepInput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepOutput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepExpectedResult:- Account type Radio button clicked\");\r\n\t\ttry{\r\n\t\t\tif(!(countrygroup_accounttype).contains(countries.get(countrycount))){\r\n\t\t\t\twaitforElementVisible(locator_split(\"rdbRegistrationAccounttype\"));\r\n\t\t\t\tclickSpecificElementByProperty(locator_split(\"rdbRegistrationAccounttype\"),\"value\",Acctype);\r\n\t\t\t\tSystem.out.println(\"Account type Radio button clicked for \"+Acctype);\r\n\t\t\t\tReporter.log(\"PASS_MESSAGE:- Account type Radio button clicked for \"+Acctype);\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tReporter.log(\"PASS_MESSAGE:- Account type Radio button is not applicable to \" + country);\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- Account type Radio button is not clicked \"+elementProperties.getProperty(\"rdbRegistrationAccounttype\"));\r\n\t\t\tthrow new NoSuchElementException(\"The element with \"\r\n\t\t\t\t\t+ elementProperties.getProperty(\"rdbRegistrationAccounttype\").toString().replace(\"By.\", \" \")\r\n\t\t\t\t\t+ \" not found\");\r\n\r\n\t\t}\r\n\r\n\t}", "@Override\n\n // The flow will come here when\n // any of the radio buttons in the radioGroup\n // has been clicked\n\n // Check which radio button has been clicked\n public void onCheckedChanged(RadioGroup group,\n int checkedId) {\n RadioButton\n radioButton\n = (RadioButton) group\n .findViewById(checkedId);\n }", "@Override\n public void onClick(View v) {\n radio = \"남자\";\n Toast.makeText(getApplicationContext(), radio + \"선택\", Toast.LENGTH_SHORT).show();\n }", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tint selectedId = musicCriteriaRadioGroup.getCheckedRadioButtonId();\n\t\t\t\t// find the radiobutton by returned id\n\t\t\t musicManiaRadioButton = (RadioButton) findViewById(selectedId);\n\t\t\t musicCriteriaSelected = musicManiaRadioButton.getText().toString();\t\t\t \t\t\t \n\t\t\t Intent showMusicRecommendation = new Intent(context,ShowMusicRecommendation.class);\n\t\t\t showMusicRecommendation.putExtra(Constants.MUSIC_CATEGORY_SEARCHED, musicCriteriaSelected);\n\t\t\t startActivity(showMusicRecommendation);\n\t\t\t}", "public void onRadioButtonClicked(View view) {\n boolean checked = ((RadioButton) view).isChecked();\n\n // Check which radio button was clicked\n switch (view.getId()) {\n case R.id.exercise:\n if (checked)\n // all of exercise\n break;\n case R.id.repose:\n if (checked)\n // all of repose\n break;\n case R.id.work:\n if (checked)\n // all of work\n break;\n }\n }", "public void onRadioClick(View view)\n {\n boolean checked = ((RadioButton) view).isChecked();\n switch (view.getId())\n {\n case R.id.piscesRadio:\n if(checked) {\n\n body.setText(info.pisBody());\n water.setImageResource(R.mipmap.pisces_sign);\n\n\n\n cancerButton.setChecked(false);\n scorpioButton.setChecked(false);\n\n Toast.makeText(WaterActivity.this,\n \"Erm\", Toast.LENGTH_SHORT).show();\n\n\n\n\n }\n else\n {\n\n body.setEnabled(false);\n\n\n }\n break;\n\n case R.id.cancerRadio:\n if(checked) {\n\n body.setText(info.cancerBody());\n water.setImageResource(R.mipmap.cancer_sign);\n\n\n\n piscesButton.setChecked(false);\n scorpioButton.setChecked(false);\n\n Toast.makeText(WaterActivity.this,\n \"Meh\", Toast.LENGTH_SHORT).show();\n\n }\n else\n {\n\n body.setEnabled(false);\n\n\n }\n break;\n case R.id.scorpioRadio:\n if(checked) {\n\n body.setText(info.scorpioBody());\n water.setImageResource(R.mipmap.scorpio_sign);\n\n\n\n piscesButton.setChecked(false);\n cancerButton.setChecked(false);\n\n Toast.makeText(WaterActivity.this,\n \"Yikes\", Toast.LENGTH_SHORT).show();\n\n }\n else\n {\n\n body.setEnabled(false);\n\n\n }\n break;\n\n\n\n\n }\n\n\n }", "private void addListenerRadioGroup() {\n int selectedID = radioGroupJenisKel.getCheckedRadioButtonId();\n\n //Mencari radio Button\n radioButtonJenisKel = (RadioButton) findViewById(selectedID);\n }", "public static void main(String[] args) {\n\t\t\t\tWebDriverManager.chromedriver().setup();\r\n\t\t\t\tChromeDriver dr=new ChromeDriver();\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\tdr.get(\"https://www.spicejet.com/\");\r\n\t\t\t\t\r\n\t\t\t\tList<WebElement> radio=dr.findElements(By.xpath(\"//input[@type='radio']\"));\r\n\t\t\t\tSystem.out.println(\"total radio button on the page\"+radio.size()); //total count of the radio buttons on the page\r\n\t\t\t\tint vradio=0, hiddenradio=0;\r\n\t\t\t\tfor(WebElement e:radio)\r\n\t\t\t\t{\r\n\t\t\t\t\tif(e.isDisplayed())\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tvradio++;\r\n\t\t\t\t\t\tif(vradio==3)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\te.click();\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t\r\n\r\n\t}", "public static void main(String[] args) throws InterruptedException {\n System.setProperty(\"webdriver.chrome.driver\", \"C:\\\\Users\\\\Mohamed.Nheri\\\\eclipse-workspace\\\\Recap\\\\chromedriver.exe\"); \n\t\tChromeDriver driver = new ChromeDriver(); //driver have a reference in the memory == not null\n\t\t\n\n \n //navigate to a url\n driver.manage().window().maximize();\n driver.get(\"https://demoqa.com/radio-button\");\n Thread.sleep(2000);\n //driver.findElement(By.xpath(\"//label[contains(text(),'Yes')]\")).click();\n \n WebElement yesRadioButton = driver.findElement(By.xpath(\"//input[@type='radio' and @id='yesRadio']\"));\n System.out.println(yesRadioButton.isSelected());\n \n \n driver.findElement(By.xpath(\"//label[contains(text(),'Yes')]\")).click();\n System.out.println(yesRadioButton.isSelected());\n \n \n\n \n// WebElement impRadioButton = driver.findElement(By.xpath(\"//input[@type='radio' and @id='impressiveRadio']\"));\n// impRadioButton.click();\n// System.out.println(impRadioButton.isEnabled());\n// \n// \n// WebElement noRadioButton = driver.findElement(By.xpath(\"//input[@type='radio' and @id='noRadio']\"));\n// System.out.println(noRadioButton.isEnabled());\n \n \n// Thread.sleep(1000);\n// driver.findElement(By.xpath(\"//label[contains(text(),'Impressive')]\")).click();\n \t\t\n \n\n \n \n Thread.sleep(5000);\n driver.quit();\n\t}", "public void onRadioButtonClick(View view) {\n\n boolean checked = ((RadioButton) view).isChecked();\n\n // hacemos un case con lo que ocurre cada vez que pulsemos un botón\n\n switch(view.getId()) {\n case R.id.rb_Physical:\n if (checked)\n jobMode = \"Physical\";\n rbVirtual.setChecked(false);\n break;\n case R.id.rb_Virtual:\n if (checked)\n jobMode = \"Virtual\";\n rbPhysical.setChecked(false);\n break;\n }\n }", "public void onRadioButtonClicked(View view) {\n boolean checked = ((RadioButton) view).isChecked();\n\n // Check which radio button was clicked\n switch(view.getId()) {\n case R.id.radio_sat:\n if (checked) {\n LinearLayout time_options;\n time_options = (LinearLayout) findViewById(R.id.choose_time);\n time_options.setVisibility(View.VISIBLE);\n }\n\n break;\n case R.id.radio_fri:\n if (checked)\n // Ninjas rule\n break;\n case R.id.radio_eleven:\n if (checked) {\n Button offerHelp;\n offerHelp = (Button) findViewById(R.id.offer_help);\n offerHelp.setEnabled(true);\n offerHelp.setBackgroundResource(R.drawable.primary_button);\n }\n break;\n case R.id.radio_five:\n if (checked)\n // Ninjas rule\n break;\n }\n }", "@Override\n public void onClick(View v) {\n radio = \"여자\";\n Toast.makeText(getApplicationContext(), radio + \"선택\", Toast.LENGTH_SHORT).show();\n }", "public void pesanNow(View view) {\n GRUP = (RadioGroup) findViewById(R.id.radioGroup);\n // bila radio button terpilih pada radio untuk dine in :\n if (GRUP.getCheckedRadioButtonId()== R.id.rbDineIn){\n Toast.makeText(this, \"Dine In terpilih\", Toast.LENGTH_SHORT).show();\n // pindah ke activity DineIn\n startActivity(new Intent(this, DineIn.class));\n\n }\n // bila terpilih selain dine in\n else {\n Toast.makeText(this, \"Take Away terpilih\", Toast.LENGTH_SHORT).show();\n // pindah ke activity Take Away\n startActivity(new Intent(this, TakeAway.class));\n }\n\n }", "void playRadio();", "private void checkSingleChoice(){\n \t\t\t\n \t\t\t// get selected radio button from radioGroup\n \t\t\tint selectedId = radioGroup.getCheckedRadioButtonId();\n \t\t\t\n \t\t\tRadioButton selectedButton = (RadioButton)getView().findViewById(selectedId);\n \t\t\t\n \t\t\tif(selectedButton!=null){\n \t\t\t\t\n \t\t\t\tString choice = selectedButton.getTag().toString();\n \t\t\t\tString choiceText = selectedButton.getText().toString();\n \t\t\t\t\n \t\t\t\t// TESTING ONLY\n \t\t\t\tint qid = eventbean.getQid();\n \t\t\t\tLog.v(\"schoice\",\"QID=\"+qid+\"/Choice=\"+choice);\n \t\t\t\t\n \t\t\t\t//setting the response for that survey question\n \t\t\t\teventbean.setChoiceResponse(choice+\".\"+choiceText);\n \t\t\t\t\n \t\t\t}\n \t\t\t\n \t\t}", "public void clickCardradiobutton(){\r\n\r\n\r\n\t\tclass Local {};\r\n\t\tReporter.log(\"TestStepComponent\"+Local.class.getEnclosingMethod().getName());\r\n\t\tReporter.log(\"TestStepInput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepOutput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepExpectedResult:- Cashondelivery Radio button clicked\");\r\n\t\ttry{\r\n\r\n\t\t\twaitforElementVisible(locator_split(\"Cashondelivery_Spain\"));\r\n\t\t\tclick(locator_split(\"Cashondelivery_Spain\"));\r\n\t\t\tThread.sleep(3000);\r\n\t\t\twaitforElementVisible(locator_split(\"Submitorder_Spain\"));\r\n\t\t\tclick(locator_split(\"Submitorder_Spain\"));\r\n\t\t\tReporter.log(\"PASS_MESSAGE:- Cashondelivery radio button clicked \");\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- Cashondelivery Radio button is not clicked \"+elementProperties.getProperty(\"Cashondelivery_Spain\"));\r\n\t\t\tthrow new NoSuchElementException(\"The element with \"\r\n\t\t\t\t\t+ elementProperties.getProperty(\"Cashondelivery_Spain\").toString().replace(\"By.\", \" \")\r\n\t\t\t\t\t+ \" not found\");\r\n\r\n\t\t}\r\n\r\n\t}", "public static void main(String[] args) {\n\r\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"C:\\\\\\\\Users\\\\\\\\Ganesh\\\\\\\\Downloads\\\\\\\\chromedriver_win32\\\\\\\\chromedriver.exe\");\r\n ChromeDriver D=new ChromeDriver();\r\n D.manage().window().maximize();\r\n \r\n D.get(\"https://letskodeit.teachable.com/p/practice\");\r\n \r\n WebElement RadioElement=D.findElementById(\"bmwradio\");\r\n RadioElement.click();\r\n \r\n boolean SelectedOrNot=RadioElement.isSelected();\r\n \r\n if (SelectedOrNot==true)\r\n \tSystem.out.println(\"Radio button got selected after clicking..Passed\");\r\n else\r\n \tSystem.out.println(\"Radio button did got selected after clicking..Failed\");\r\n\r\n WebElement HondaRadio=D.findElementById(\"hondaradio\");\r\n HondaRadio.click();\r\n \r\n if(HondaRadio.isSelected())\r\n \tSystem.out.println(\"Honda radio got selected after clicking..Passed\");\r\n else\r\n \tSystem.out.println(\"Honda radio did not get selected after clicking..failed \");\r\n\t}", "@Override\n public void onClick(View v) {\n int selectedId = radioGroup.getCheckedRadioButtonId();\n\n\n int selectedRadioButtonID = radioGroup.getCheckedRadioButtonId();\n checkedStateExperience = tvExpYrs.getText().toString();\n\n switch (selectedRadioButtonID) {\n case R.id.radioButton1:\n checkStatesButton = \"1\";\n\n\n\n String str = checkedStateExperience;\n String strNew = str.replace(\"+\", \"\");\n getFullData(mlat, mlng, prefManager.getApikey(), query, rad, strNew);\n\n break;\n case R.id.radioButton2:\n checkStatesButton = \"2\";\n String ast = checkedStateExperience;\n String nnew = ast.replace(\"+\", \"\");\n\n getData(mlat, mlng, prefManager.getApikey(), query, rad, nnew);\n\n break;\n\n }\n\n\n bts.dismiss();\n\n }", "public void onRadioButtonClicked(View view) {\n boolean checked = ((RadioButton) view).isChecked();\n\n // Check which radio button was clicked\n switch(view.getId()) {\n case R.id.developer:\n if (checked)\n changeSpinnerOptions(\"Developer\");\n break;\n case R.id.tester:\n if (checked)\n changeSpinnerOptions(\"Tester\");\n break;\n }\n }", "@Override\n public void onClick(View view) {\n int radioId = radioGroup.getCheckedRadioButtonId();\n radioButton = findViewById(radioId);\n if(radioButton.getText().equals(\"Egg\")){\n appConstant.modeEgg();\n }else if(radioButton.getText().equals(\"Duckling\")){\n appConstant.modeDuckling();\n }else if(radioButton.getText().equals(\"Adult\")){\n appConstant.modeAdult();\n }\n startActivity(new Intent(StartActivity.this, GameActivity.class));\n }", "public void onRadioButtonClicked7(View view) {\n boolean checked = ((RadioButton) view).isChecked();\n\n // Check which radio button was clicked\n switch(view.getId()) {\n case R.id.R_button13:\n if (checked)\n\n weeklyInformation.radiobutton13(radioButton13.getText().toString());\n\n break;\n case R.id.R_button14:\n if (checked)\n\n weeklyInformation.radiobutton14(radioButton14.getText().toString());\n\n break;\n }\n }", "public void onRadioButtonClicked1(View view) {\n boolean checked = ((RadioButton) view).isChecked();\n\n // Check which radio button was clicked\n switch(view.getId()) {\n case R.id.R_button1:\n if (checked)\n\n weeklyInformation.radiobutton1(radioButton1.getText().toString());\n\n break;\n case R.id.R_button2:\n if (checked)\n\n weeklyInformation.radiobutton2(radioButton2.getText().toString());\n\n break;\n }\n }", "private void addListenerOnButton() {\n\t\tradioSex = (RadioGroup) findViewById(R.id.radioSex);\n\t\tbtnDisplay = (Button) findViewById(R.id.btnDisplay);\n\t\n\t\tbtnDisplay.setOnClickListener(new OnClickListener() {\n\t\t\t\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tint seledtedId = radioSex.getCheckedRadioButtonId();\n\t\t\t\tRadioButton radioMale = (RadioButton) findViewById(seledtedId);\n\t\t\t\tToast.makeText(ExampleRadio.this, radioMale.getText(), Toast.LENGTH_LONG).show();\n\t\t\t}\n\t\t});\n\t}", "public void checkSingleButtons() throws com.sun.star.uno.Exception, java.lang.Exception\n {\n prepareTestStep( false );\n\n insertRadio( 20, 30, \"group 1\", \"group 1\", \"\" );\n insertRadio( 20, 38, \"group 2\", \"group 2\", \"\" );\n insertRadio( 20, 46, \"group 3\", \"group 3\", \"\" );\n insertRadio( 20, 54, \"group 4\", \"group 4\", \"\" );\n\n // switch to alive mode\n m_document.getCurrentView( ).toggleFormDesignMode( );\n\n checkRadio( \"group 1\", \"\" );\n verifySingleRadios( 1, 0, 0, 0 );\n\n checkRadio( \"group 4\", \"\" );\n verifySingleRadios( 1, 0, 0, 1 );\n\n checkRadio( \"group 2\", \"\" );\n verifySingleRadios( 1, 1, 0, 1 );\n\n checkRadio( \"group 3\", \"\" );\n verifySingleRadios( 1, 1, 1, 1 );\n\n cleanupTestStep();\n }", "public void selectNCDProtectedRadio ()\r\n\t{\r\n\t\tList<WebElement> ncdradiobuttons = orPolicyVehicleHub.rdoVehicleNCDProtected;\r\n\t\tfor (WebElement ncdradiobutton : ncdradiobuttons)\r\n\t\t{\r\n\t\t\tif (ncdradiobutton.getAttribute (\"value\").equals (\"Y\"))\r\n\t\t\t{\r\n\t\t\t\tncdradiobutton.click ();\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void loopColors() {\n\n List<WebElement> we = WDUtil.getWebDriver().findElements(By.xpath(\"//input[@type='radio']\"));\n String[] names = new String[we.size()];\n for (int i = 0; i < we.size(); i++) {\n names[i] = we.get(i).getAttribute(\"id\").toString();\n }\n for (int i = 0; i < we.size(); i++) {\n WebElement label = WDUtil.getWebDriver().findElement(By.xpath(\"//input[@id='\" + names[i] + \"']/../label\"));\n System.out.print(names[i] + \" \" + label.getText() + \", \");\n label.click();\n withFullModelButton.click();\n new PriceEstimationResultPageObject().printPrices();\n //label = WDUtil.getWebDriver().findElement(By.xpath(\"//input[@name='\" + names[i] + \"']/../label\"));\n //label.click();\n }\n\n }", "@When(\"I click on checkboxradio\")\n public void i_click_on_checkboxradio() {\n System.out.println(\"checkbox\");\n }", "public void onRadioButtonClicked(View view) {\n boolean checked = ((RadioButton) view).isChecked();\n\n showProgress(true);\n // Check which radio button was clicked\n switch(view.getId()) {\n case R.id.personal:\n if (checked)\n reporttpye=1;\n break;\n case R.id.firstcntr:\n if (checked)\n reporttpye=2;\n break;\n case R.id.finalcntr:\n if (checked)\n reporttpye=3;\n break;\n }\n mAuthTask = new FilterActivity.FilterInitTask(reporttpye);\n mAuthTask.execute((Matter[]) null);\n }", "public void onCheckedChanged(RadioGroup group, int checkedId) {\n\n if (checkedId == R.id.sport) {\n mychoice = (RadioButton) findViewById(R.id.sport);\n text=\"sport\";\n Toast.makeText(getApplicationContext(), \"choice: sport\",\n\n Toast.LENGTH_SHORT).show();\n\n } else if (checkedId == R.id.school) {\n mychoice = (RadioButton) findViewById(R.id.school);\n text=\"school\";\n Toast.makeText(getApplicationContext(), \"choice: school\",\n\n Toast.LENGTH_SHORT).show();\n\n } else if (checkedId == R.id.work) {\n mychoice = (RadioButton) findViewById(R.id.work);\n text=\"work\";\n Toast.makeText(getApplicationContext(), \"choice: work\",\n\n Toast.LENGTH_SHORT).show();\n\n } else if (checkedId == R.id.other) {\n text=\"other\";\n Toast.makeText(getApplicationContext(), \"choice: other\",\n\n Toast.LENGTH_SHORT).show();\n\n }\n\n\n }", "public void onLoadMenuRadioSelected();", "public void onRadioButtonClicked6(View view) {\n boolean checked = ((RadioButton) view).isChecked();\n\n // Check which radio button was clicked\n switch(view.getId()) {\n case R.id.R_button11:\n if (checked)\n\n weeklyInformation.radiobutton11(radioButton11.getText().toString());\n\n break;\n case R.id.R_button12:\n if (checked)\n\n weeklyInformation.radiobutton12(radioButton12.getText().toString());\n\n break;\n }\n }", "@Test\n public void listOfRadioButtons() throws InterruptedException {\n driver.get(\"http://practice.cybertekschool.com/radio_buttons\");\n\n // driver.findElements --> returns a LIST of element\n // returns all the elements that match the given locator\n // if the locator does not match anhytihg, it does not throw exception, it just returns empty list\n\n List<WebElement> sports = driver.findElements(By.name(\"sport\"));\n\n System.out.println(sports.size());\n\n for (WebElement radioButton : sports) {\n Assert.assertFalse(radioButton.isSelected());\n }\n }", "public void onRadioButtonClicked(View view) {\n boolean checked = ((RadioButton) view).isChecked();\n\n // Check which radio button was clicked\n switch(view.getId()) {\n case R.id.radio_facturacion:\n if (checked)\n // Pirates are the best\n esGarantia=false;\n break;\n case R.id.radio_garantias:\n if (checked)\n // Ninjas rule\n esGarantia=true;\n break;\n }\n }", "private void selectRadioButton(String locator, String option) throws Exception {\n\t\ttry {\n\t\t\tList<WebElement> buttonOptions = driver.findElements(By.cssSelector(locator));\n\n\t\t\tfor (int i = 0; i < buttonOptions.size(); i++) {\n\t\t\t\tradio_button_value = buttonOptions.get(i).getText();\n\t\t\t\tif (radio_button_value.contains(option)) {\n\t\t\t\t\tbuttonOptions.get(i).findElement(By.cssSelector(\"input\")).click();\n\t\t\t\t\tradio_button_value = null;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tthrow new Exception(\"Error in Selecting radio button : \" + option + e);\n\t\t}\n\t}", "public void onRadioButtonClicked(View view) {\n boolean checked = ((RadioButton) view).isChecked();\n\n // Check which radio button was clicked\n switch (view.getId()) {\n case R.id.coh_RadioButton:\n if (checked)\n paymentmode = \"coh\";\n flage =1;\n break;\n case R.id.netBank_RadioButton:\n if (checked)\n paymentmode = \"netbanking\";\n flage =1;\n break;\n case R.id.card_RadioButton:\n if (checked)\n paymentmode = \"card\";\n flage =1;\n break;\n }\n }", "public void onRadioButtonClicked2(View view) {\n boolean checked = ((RadioButton) view).isChecked();\n\n // Check which radio button was clicked\n switch(view.getId()) {\n case R.id.R_button3:\n if (checked)\n\n weeklyInformation.radiobutton3(radioButton3.getText().toString());\n\n break;\n case R.id.R_button4:\n if (checked)\n\n weeklyInformation.radiobutton4(radioButton4.getText().toString());\n\n break;\n }\n }", "public void doClickOnUseAllCondSetsRBtn() {\n\t\tuseAllCondSetsRBtn.doClick();\n\t}", "public void acceptTenderButton() {\n\t\tBy elem = By.cssSelector(\"button\");\n\t\tList<WebElement> elements = driver.findElements(elem);\n\t\t\n\t\tfor (WebElement item : elements) {\n\t\t\tString test = item.getAttribute(\"innerHTML\");\n\t\t\tif (test.contains(\"ACCEPT TENDER\")) {\n\t\t\t\titem.click();\n\t\t\t}\n\t\t}\n\t}", "void pauseRadio();", "@Override\n public void setQuestion(Question question) {\n super.setQuestion(question);\n\n options = ((MultipleChoiceQuestionResponse) question.getCorrectAnswer()).getChoices();\n for (int i = 0; i < options.size(); i ++) {\n String option = options.get(i);\n RadioButton button = new RadioButton(option);\n button.setToggleGroup(group);\n\n button.setLayoutY(i * 30);\n choices.getChildren().add(button);\n }\n }", "public void onClick(View v) {\n\t\t\t\tint selectedId = radioGroup.getCheckedRadioButtonId();\n\t \n\t\t\t\t// find the radiobutton by returned id\n\t\t\t radioButton = (RadioButton) findViewById(selectedId);\n\t\t\t if(selectedId ==R.id.radio3){\n\t\t\t \t\n\t\t\t \tint myNum = Integer.parseInt(MainActivity.points);\n\t\t\t \tmyNum += 5;\n\t\t\t \tMainActivity.points = String.valueOf(myNum);\n\t\t\t \tIntent intent=new Intent(Test.this,Star.class);\n\t\t\t \tstartActivity(intent);\n\t\t\t \t\n\t\t\t \t\tToast.makeText(Test.this,\n\t\t\t \t\t\"Correct Answer\", Toast.LENGTH_SHORT).show();\n\t\t\t \t\t}\n\t\t\t else{\n\t\t\t \tToast.makeText(Test.this,\n\t\t\t\t \t\t\"Try Again\", Toast.LENGTH_SHORT).show();\n\t\t\t }\n\t\t\t }", "public void onRadioButtonClicked(View view) {\n boolean checked = ((RadioButton) view).isChecked();\n\n // Check which radio button was clicked\n switch(view.getId()) {\n case R.id.radioButton12:\n if (checked) {\n\n bloodgroup = \"A+\";\n blood_group_Button.setText(bloodgroup);\n blood_group_selector.dismiss();\n break;\n }\n case R.id.radioButton13:\n if (checked) {\n\n bloodgroup = \"B+\";\n blood_group_Button.setText(bloodgroup);\n blood_group_selector.dismiss();\n break;\n }\n case R.id.radioButton14:\n if (checked) {\n\n bloodgroup = \"AB+\";\n blood_group_Button.setText(bloodgroup);\n blood_group_selector.dismiss();\n break;\n }\n case R.id.radioButton15:\n if (checked) {\n\n bloodgroup = \"O+\";\n blood_group_Button.setText(bloodgroup);\n blood_group_selector.dismiss();\n break;\n }\n\n case R.id.radioButton20:\n if (checked) {\n\n bloodgroup = \"A-\";\n blood_group_Button.setText(bloodgroup);\n blood_group_selector.dismiss();\n break;\n }\n case R.id.radioButton21:\n if (checked) {\n\n bloodgroup = \"B-\";\n blood_group_Button.setText(bloodgroup);\n blood_group_selector.dismiss();\n break;\n }\n case R.id.radioButton22:\n if (checked) {\n\n bloodgroup = \"AB-\";\n blood_group_Button.setText(bloodgroup);\n blood_group_selector.dismiss();\n break;\n }\n case R.id.radioButton23:\n if (checked) {\n\n bloodgroup = \"O-\";\n blood_group_Button.setText(bloodgroup);\n blood_group_selector.dismiss();\n break;\n }\n }\n }", "public void onRadioButtonClicked(View view) {\n\t boolean checked = ((RadioButton) view).isChecked();\n\t \n\t switch(view.getId()) {\n\t case R.id.continous:\n\t if (checked)\n\t \tusecase = 1; \n\t break;\n\t case R.id.segmented:\n\t if (checked)\n\t \tusecase = 0;\n\t break;\n\t }\n\t}", "public void onRadioButtonClicked(View view) {\n boolean checked = ((RadioButton) view).isChecked();\n\n // Check which radio button was clicked\n switch(view.getId()) {\n case R.id.radio_administrative:\n if (checked)\n KeyID=0;\n break;\n case R.id.radio_guest:\n if (checked)\n KeyID=1;\n break;\n }\n }", "public void clickCashondeliveryradiobutton(){\r\n\r\n\r\n\t\tclass Local {};\r\n\t\tReporter.log(\"TestStepComponent\"+Local.class.getEnclosingMethod().getName());\r\n\t\tReporter.log(\"TestStepInput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepOutput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepExpectedResult:- Cashondelivery Radio button clicked\");\r\n\t\ttry{\r\n\r\n\t\t\twaitforElementVisible(locator_split(\"Cashondelivery_Spain\"));\r\n\t\t\tclick(locator_split(\"Cashondelivery_Spain\"));\r\n\t\t\tThread.sleep(3000);\r\n\t\t\twaitforElementVisible(locator_split(\"Submitorder_Spain\"));\r\n\t\t\tclick(locator_split(\"Submitorder_Spain\"));\r\n\t\t\tReporter.log(\"PASS_MESSAGE:- Cashondelivery radio button clicked \");\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- Cashondelivery Radio button is not clicked \"+elementProperties.getProperty(\"Cashondelivery_Spain\"));\r\n\t\t\tthrow new NoSuchElementException(\"The element with \"\r\n\t\t\t\t\t+ elementProperties.getProperty(\"Cashondelivery_Spain\").toString().replace(\"By.\", \" \")\r\n\t\t\t\t\t+ \" not found\");\r\n\r\n\t\t}\r\n\r\n\t}", "@FXML public void initialize() {\r\n // Add initialization code you need in here\r\n radioButtonlabel.setText(\" \");\t\t//label null for radio buttons\r\n radioButtons = new ToggleGroup(); //creating toggleGroup class\r\n\r\n //assigning the button to toggleGroup\r\n this.btn1.setToggleGroup(radioButtons);\r\n this.btn2.setToggleGroup(radioButtons);\r\n this.btn3.setToggleGroup(radioButtons);\r\n this.btn4.setToggleGroup(radioButtons);\r\n this.btn5.setToggleGroup(radioButtons);\r\n this.btn6.setToggleGroup(radioButtons);\r\n this.btn7.setToggleGroup(radioButtons);\r\n this.btn8.setToggleGroup(radioButtons);\r\n\r\n //on each radio button selection, it calls the radioButton method\r\n btn1.setOnAction(new EventHandler<ActionEvent>() {\r\n public void handle(ActionEvent e) {\r\n radioButtonChenged();\r\n }\r\n });\r\n\r\n btn2.setOnAction(new EventHandler<ActionEvent>() {\r\n public void handle(ActionEvent e) {\r\n radioButtonChenged();\r\n }\r\n });\r\n\r\n btn3.setOnAction(new EventHandler<ActionEvent>() {\r\n public void handle(ActionEvent e) {\r\n radioButtonChenged();\r\n }\r\n });\r\n\r\n btn4.setOnAction(new EventHandler<ActionEvent>() {\r\n public void handle(ActionEvent e) {\r\n radioButtonChenged();\r\n }\r\n });\r\n\r\n btn5.setOnAction(new EventHandler<ActionEvent>() {\r\n public void handle(ActionEvent e) {\r\n radioButtonChenged();\r\n }\r\n });\r\n\r\n btn6.setOnAction(new EventHandler<ActionEvent>() {\r\n public void handle(ActionEvent e) {\r\n radioButtonChenged();\r\n }\r\n });\r\n btn7.setOnAction(new EventHandler<ActionEvent>() {\r\n public void handle(ActionEvent e) {\r\n radioButtonChenged();\r\n }\r\n });\r\n btn8.setOnAction(new EventHandler<ActionEvent>() {\r\n public void handle(ActionEvent e) {\r\n radioButtonChenged();\r\n }\r\n });\r\n\r\n btncontinue.setOnAction(new EventHandler<ActionEvent>() {\r\n public void handle(ActionEvent e) {\r\n buttonChange();\r\n }\r\n\r\n });\r\n\r\n btnEnter.setOnAction(new EventHandler<ActionEvent>() {\r\n public void handle(ActionEvent e) {\r\n EnterChange();\r\n }\r\n });\r\n\r\n btnGoBack.setOnAction(new EventHandler<ActionEvent>() {\r\n public void handle(ActionEvent event) {\r\n onGoBackClicked();\r\n }\r\n });\r\n\r\n btnCancel.setOnAction(new EventHandler<ActionEvent>() {\r\n public void handle(ActionEvent event) {\r\n System.out.print(\"working?\");\r\n onCancelClicked();\r\n }\r\n });\r\n }", "public void onRadioButtonClicked(View view) {\n boolean checked = ((RadioButton) view).isChecked();\n\n // Check which radio button was clicked\n switch(view.getId()) {\n case R.id.decimal1:\n if (checked)\n selected1=\"decimal1\";\n toDecimal();\n Log.i(\"check\",\"checking decimal1\");\n break;\n case R.id.binary1:\n if (checked)\n selected1=\"binary1\";\n toDecimal();\n break;\n case R.id.useless1:\n if (checked)\n selected1=\"none\";\n toDecimal();\n break;\n }\n }", "public void clickOnReturnRadioButton()\n\t{\n\t\tif(departureRadioButton.isDisplayed())\n\t\t{\n\t\t\twaitForSeconds(5);\n\t\t\treturnFlightRadioButton.click();\n\t\t}\n\t\telse\n\t\t{\n\t\t\twaitForSeconds(10);\n\t\t\tUserdefinedFunctions.scrollusingCordinate();\n\t\t\twaitForSeconds(10);\n\t\t\treturnFlightRadioButton.click();\n\t\t}\n\n\t}", "@Override\n\tprotected void setOnClickForButtons() {\n\t\tthis.buttons[0].setOnClickListener(new OnClickListener() {\n\t\t\t@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tIntent i = new Intent(getActivity(), MainScreenActivity.class);\n\t\t\t\tstartActivity(i);\n\t\t\t\tMainFunctions.selectedOption = 1;\n\t\t\t\tdestroyServices();\n\t\t\t\tfinish();\n\t\t\t}\n\t\t});\n\n\t\t/* message box - onclick event */\n\t\tthis.buttons[1].setOnClickListener(new OnClickListener() {\n\t\t\t@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tdestroyServices();\n\t\t\t\tMainFunctions.selectedOption = 2;\n\t\t\t\tfinish();\n\t\t\t}\n\t\t});\n\t\t\n\t\t/* one tick sound */\n\t\tfor (int i = 0; i < this.totalButtons; i++){\n\t\t\tfinal String desc = buttons[i].getTag().toString();\n\t\t\tbuttons[i].setOnFocusChangeListener(new View.OnFocusChangeListener() {\n\t\t\t\tpublic void onFocusChange(View v, boolean hasFocus) {\n\t\t\t\t\tif (hasFocus) {\n\t\t\t\t\t\tLog.i(TAG, \"Button \" + desc + \" was selected\");\n\t\t\t\t\t\tlogFunctions.logTextFile(\"Button \" + desc + \" was selected\");\n\t\t\t\t\t\tspeakButton(desc, 1.0f, 1.0f);\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t}", "public void onRadioButtonClicked5(View view) {\n boolean checked = ((RadioButton) view).isChecked();\n\n // Check which radio button was clicked\n switch(view.getId()) {\n case R.id.R_button9:\n if (checked)\n\n weeklyInformation.radiobutton9(radioButton9.getText().toString());\n\n break;\n case R.id.R_button10:\n if (checked)\n\n weeklyInformation.radiobutton10(radioButton10.getText().toString());\n\n break;\n }\n }", "public void onRadioButtonClicked(View view) {\n boolean checked = ((RadioButton) view).isChecked();\n\n // Check which radio button was clicked\n switch(view.getId()) {\n case R.id.radio_male:\n if (checked)\n break;\n case R.id.radio_female:\n if (checked)\n break;\n }\n }", "public String selectRadio(String object, String data) {\n logger.debug(\"Selecting a radio button\");\n WebElement slectRadio =null;\n try {\n\n String temp[] = object.split(Constants.DATA_SPLIT);\n slectRadio = driver.findElement(By.xpath(OR.getProperty(temp[0]) + data + OR.getProperty(temp[1])));\n slectRadio.click();\n \n }\ncatch(TimeoutException ex)\n\t\t\n\t\t{\n\t\t\treturn Constants.KEYWORD_FAIL +\"Cause: \"+ ex.getCause();\n\t\t}\n catch(WebDriverException ex)\n\t\t{\n\t\t\ttry{\n\t\t\t\tString exceptionMessage=ex.getMessage();\n\t\t\t\t\tif(exceptionMessage.contains(\"Element is not clickable at point\"))\n\t\t\t\t\t{\n\t\t\t\tif(new ApplicationSpecificKeywordEventsUtil().clickJs(slectRadio).equals(Constants.KEYWORD_PASS))\n\t\t\t\t\t\t\treturn Constants.KEYWORD_PASS;\n\t\t\t\t\telse\n\t\t\t\t\t\t\treturn Constants.KEYWORD_FAIL;\n\t\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\t\treturn Constants.KEYWORD_FAIL+\"not able to Click\"+ex.getMessage();\n\t\t\t\t}\n\t\t\t\tcatch(Exception e){\n\t\t\t\t\treturn Constants.KEYWORD_FAIL+e.getMessage();\n\t\t\t\t}\n\t\t\t\t\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\treturn Constants.KEYWORD_FAIL + \" -- Not able to click on Button\" + e.getMessage();\n\t\t}\n\n\t\treturn Constants.KEYWORD_PASS;\n\t}", "public static void clickRadioButton(String xpath) {\r\n\t\tcheckElementNotInteractableExceptionByXPath(xpath, \"\\\"Check right answer\\\" radio button\");\r\n\t}", "public void onRadioButtonClicked4(View view) {\n boolean checked = ((RadioButton) view).isChecked();\n\n // Check which radio button was clicked\n switch(view.getId()) {\n case R.id.R_button7:\n if (checked)\n\n weeklyInformation.radiobutton7(radioButton7.getText().toString());\n\n break;\n case R.id.R_button8:\n if (checked)\n\n weeklyInformation.radiobutton8(radioButton8.getText().toString());\n\n break;\n }\n }", "public void clickOnDepartureRadioButton()\n\t{\n\t\tif(departureRadioButton.isDisplayed())\n\t\t{\n\t\t\twaitForSeconds(10);\n\t\t\tUserdefinedFunctions.scrollusingCordinate();\n\t\t\twaitForSeconds(10);\n\t\t\tdepartureRadioButton.click();\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.println(\"Consider the first selected depature flight\");\n\t\t}\n\t}", "@Override\n\tpublic void startRadio() {\n\t\tSystem.out.println(\"Radio started...\");\t\t\n\t}", "public static void clickRadioButtonTriviaMode(String xpath) {\r\n\t\tcheckElementNotInteractableExceptionByXPath(xpath, \"\\\"Right answer\\\" radio button\");\r\n\t}", "public void onRadioButtonClicked(View view) {\n boolean checked = ((RadioButton) view).isChecked();\n\n // Check which radio button was clicked\n switch (view.getId()) {\n case R.id.radioButton2:\n if (checked)\n cause = \"struct_fire\";\n break;\n case R.id.radioButton3:\n if (checked)\n\n cause = \"hazmat\";\n break;\n case R.id.radioButton4:\n if (checked)\n // Ninjas rule\n cause = \"grass_fire\";\n break;\n case R.id.radioButton5:\n if (checked)\n // Ninjas rule\n cause = \"trash_fire\";\n break;\n case R.id.radioButton6:\n if (checked)\n // Ninjas rule\n cause = \"false_alarm\";\n break;\n case R.id.radioButton7:\n if (checked)\n // Ninjas rule\n cause = \"other_fire\";\n break;\n\n\n\n\n\n }\n }", "public static void main(String[] args) throws InterruptedException {\n\t\tSystem.setProperty(\"webdriver.chrome.driver\",\"C:\\\\Selenium WebDrivers\\\\chromedriver.exe\");\n\t\tWebDriver driver=new ChromeDriver();\n\t\t\n\t\tdriver.get(\"https://www.html.am/html-codes/forms/\");\n\t\t\n\t\t\n\t\tList<WebElement> radiobutton=driver.findElements(By.name(\"color\"));// in all radio button name is common\n\n\t\tSystem.out.println(\"Number of Radio Buttons Are: \"+radiobutton.size());//printing of number of buttons\n\t\t\n\t\tSystem.out.println(radiobutton.get(1).getAttribute(\"value\")); //op== GREEN-> Values are differents\n\t\t\n\t\tfor(int i=0;i<radiobutton.size();i++)\n\t\t{\n\t\t\tSystem.out.println(radiobutton.get(i).getAttribute(\"value\"));\n\t\t}\n\t\t\n\t\t// Checking whether radio button is checked or not\n\t\t\n\t\tSystem.out.println(\"==============================================================\");\n\t\t\n\t\tSystem.out.println(\"Checking whether radio button is checked or not...\");\n\t\t\n\t\tSystem.out.println(radiobutton.get(0).getAttribute(\"checked\"));// return null because not checked\n\t\tradiobutton.get(0).click();// actual checked or click on the button\n\t\tSystem.out.println(radiobutton.get(0).getAttribute(\"checked\"));// return true\n\t\t\n\t\tThread.sleep(3000);\n\t\t//driver.close();\n\t\t\n\t}", "public void clickOnGenderRadioButton() {\n waitUntilElementToBeClickable(_genderField, 20);\n Reporter.addStepLog(\" Click to tick Gender Male \" + _genderField.toString());\n clickOnElement(_genderField);\n log.info(\" Click to tick Gender Male \" + _genderField.toString());\n }", "void clickOnSelectDaysButton() {\n\t\tSeleniumUtility.clickOnElement(driver, homepageVehiclePlanning.buttonTagDaysArrowHomepageVehiclePlanning);\n\t}", "public void acceptAndProceed()\r\n {\r\n\t driver.findElement(By.id(\"PCNChecked\")).click();\r\n\t driver.findElement(By.xpath(\"/html/body/div[1]/div/div/main/div/main/div/div/div[1]/div/div/form/fieldset/div[3]/div[2]/button\")).click();\r\n }", "private void when_clickButtonVoice() {\n onView(withId(R.id.buttonVoice))\n .perform(click());\n }", "public void onRadioButtonClicked3(View view) {\n boolean checked = ((RadioButton) view).isChecked();\n\n // Check which radio button was clicked\n switch(view.getId()) {\n case R.id.R_button5:\n if (checked)\n\n weeklyInformation.radiobutton5(radioButton5.getText().toString());\n\n break;\n case R.id.R_button6:\n if (checked)\n\n weeklyInformation.radiobutton6(radioButton6.getText().toString());\n\n break;\n }\n }", "public void clickSurvey() {\n driver.get(\"https://\"+MainClass.site);\n driver.findElement(survey).click();\n //Home.waitObjectLoad(3000); //forced timeout to load the survey\n }", "public void onRadioButtonClicked(View v) {\n boolean checked = ((RadioButton) v).isChecked();\n\n // Check which radio button was clicked\n switch(v.getId()) {\n case R.id.radioSexoF:\n if (checked)\n sexo = Animal.SEXO_FEMEA;\n break;\n case R.id.radioSexoM:\n if (checked)\n sexo = Animal.SEXO_MACHO;\n break;\n }\n }", "@Test\n public void onMaleRBTNClicked(){\n onView(withId(R.id.maleRBTN)).perform(click()).check(matches(isChecked()));\n onView(withId(R.id.femaleRBTN)).check(matches(isNotChecked()));\n }", "@Override\n public void actionPerformed(ActionEvent e) {\n AbstractButton selectedButton = null;\n for (Enumeration<AbstractButton> buttons = buttonGroup.getElements(); buttons.hasMoreElements(); ) {\n AbstractButton button = buttons.nextElement();\n if (button.isSelected()) {\n selectedButton = button;\n }\n }\n\n //Model um das hinzufügen von Zeilen zu ermöglichen\n DefaultListModel<String> list = ((DefaultListModel<String>) listResults.getModel());\n //Jedes mal zuerst die Liste Leeren\n list.clear();\n if (selectedButton == radioButtonAllStyles) {\n /*\n * Erzeugt Guiausgabe der Bierarten.\n * Die id wird mit \"::\" vor dem Bierart Namen ausgeben.\n * */\n beerService.getBeerStyles()\n .forEach((k, v) -> list.addElement(k + \"::\" + v));\n } else if (selectedButton == radioButtonStyle) {\n /*\n * Erzeugt Guiausgabe der Bierarten, welche die Zeichenfolge ″search″ im Namen enthalten.\n * Die id wird mit \"::\" vor dem Bierart Namen ausgeben.\n *\n * @param searchString Zeichenfolge die enthalten sein soll\n * */\n beerService.getBeerStylesBySearchStr(textFieldArgs.getText())\n .forEach((k, v) -> list.addElement(k + \"::\" + v));\n } else if (selectedButton == radioButtonAllBeers) {\n /*\n * Gibt zeilenweise ID und Name mit \"::\" getrennt der Biere aus.\n * */\n beerService.getBeers()\n .forEach(x -> list.addElement((x.getId() + \"::\" + x.getName())));\n } else if (selectedButton == radioButtonBeerWithId) {\n /*\n * Gibt in einer Zeile ID und Namen und in einer zweiten Zeile die Beschreibung\n * des entsprechenden Bieres aus.\n *\n * @param id id nach der gesucht werden soll\n * */\n Beer beer = beerService.getBeerById(textFieldArgs.getText());\n if (beer != null) {\n list.addElement(beer.getId() + \"::\" + beer.getName());\n }\n }\n }", "private void checkRadio( String groupName, String refValue, XPropertySet form ) throws com.sun.star.uno.Exception, java.lang.Exception\n {\n XPropertySet xRadio = getRadioModel( groupName, refValue, form );\n\n\t\tXRadioButton radioButton = (XRadioButton)UnoRuntime.queryInterface(\n\t\t\tXRadioButton.class, m_document.getCurrentView().getControl( xRadio ) );\n\t\tradioButton.setState( true );\n }", "public void clickcreditcardradiobutton(){\t\r\n\r\n\t\tclass Local {};\r\n\t\tReporter.log(\"TestStepComponent\"+Local.class.getEnclosingMethod().getName());\r\n\t\tReporter.log(\"TestStepInput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepOutput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepExpectedResult:- Item should be searched in the search box\");\r\n\t\ttry{\r\n\t\t\t//editSubmit(locator_split(\"txtSearch\"));\r\n\t\t\twaitforElementVisible(locator_split(\"creditcardradiobuton\"));\r\n\t\t\tclick(locator_split(\"creditcardradiobuton\"));\r\n\t\t\tThread.sleep(2000);\r\n\t\t\tReporter.log(\"PASS_MESSAGE:- Item is searched in the search box\");\r\n\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- Item is not entered in the search box \"+elementProperties.getProperty(\"creditcardradiobuton\"));\r\n\t\t\tthrow new NoSuchElementException(\"The element with \"\r\n\t\t\t\t\t+ elementProperties.getProperty(\"creditcardradiobuton\").toString().replace(\"By.\", \" \")\r\n\t\t\t\t\t+ \" not found\");\r\n\r\n\t\t}\r\n\t}", "public void onRadioButtonClicked(View view) {\n\n boolean checked = ((RadioButton) view).isChecked();\n\n // Check which radio button was clicked\n switch (view.getId()) {\n case R.id.morning:\n if (checked)\n hourOfDay = 7;\n break;\n case R.id.afternoon:\n if (checked)\n hourOfDay = 15;\n break;\n case R.id.night:\n if (checked)\n hourOfDay = 23;\n break;\n }\n }", "public void CheckoutRegisterradiobutton(){\r\n\t\tclass Local {};\r\n\t\tReporter.log(\"TestStepComponent\"+Local.class.getEnclosingMethod().getName());\r\n\t\tReporter.log(\"TestStepInput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepOutput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepExpectedResult:- Registration radio button in checkout should be clicked\");\r\n\t\ttry{\r\n\r\n\t\t\tclick(locator_split(\"rdcheckoutregistrationradio\"));\r\n\t\t\twaitForPageToLoad(20);\r\n\t\t\tSystem.out.println(\"Registration radio button is clicked\");\r\n\t\t\tReporter.log(\"PASS_MESSAGE:- Registration radio button in checkout is clicked\");\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- Registration radio button in checkout is not clicked\");\r\n\t\t\tthrow new NoSuchElementException(\"The element with \"\r\n\t\t\t\t\t+ elementProperties.getProperty(\"rdcheckoutregistrationradio\").toString().replace(\"By.\", \" \")\r\n\t\t\t\t\t+ \" not found\");\r\n\t\t}\r\n\r\n\t}", "public void ButtonStatusToOneWay() throws InterruptedException {\n\n Thread.sleep(10000);\n //action=new Actions(this.driver);\n if (oneWayButton.isSelected()) {\n System.out.println(\"One way Button is already selected\");\n } else {\n wait.until(ExpectedConditions.elementSelectionStateToBe(oneWayButton,false));\n oneWayButton.click();\n System.out.println(\"one way button is clicked\");\n }\n\n\n }", "public void clickMyServices() {\n driver.findElement(myServices).click();\n }", "private void enableRadioButtons(){\n\n this.acOffRadioButton.setEnabled(true);\n\n this.heatOffRadioButton.setEnabled(true);\n\n this.lightsOnRadioButton.setEnabled(true);\n this.lightsOffRadioButton.setEnabled(true);\n\n this.leftDoorsOpenRadioButton.setEnabled(true);\n this.leftDoorsCloseRadioButton.setEnabled(true);\n\n this.rightDoorsOpenRadioButton.setEnabled(true);\n this.rightDoorsCloseRadioButton.setEnabled(true);\n }", "@Override\n public void onClick(View v) {\n if(Interwebs.isConnectedToInternet(getApplicationContext())){ // If internet access...\n //Submit response\n if(answers[0].isChecked() || answers[1].isChecked() || answers[2].isChecked() || answers[3].isChecked()){\n new POSTTask().execute(\"http://padzonline.com/classbuzz/receiveresponse.php\");\n }\n else{ //If no RadioButton has been checked...\n Toast toast = Toast.makeText(getBaseContext(), \"Please select an answer!\", Toast.LENGTH_SHORT);\n toast.show();\n }\n }\n else{\n Toast toast = Toast.makeText(getBaseContext(), \"No internet connection\", Toast.LENGTH_SHORT);\n toast.show();\n finish(); // Finish this activity to return to the Menu\n }\n }", "private void setupRadioList() {\r\n // setup the \r\n final ExpandableListView listViewRadioList = (ExpandableListView) findViewById(android.R.id.list);\r\n listViewRadioList.setAdapter(mRadioCategoryAdapter);\r\n listViewRadioList.setOnChildClickListener(new OnChildClickListener() {\r\n\r\n @Override\r\n public boolean onChildClick(final ExpandableListView parent, final View v,\r\n final int groupPosition,\r\n final int childPosition, final long id) {\r\n Radio radio = mRadioCategoryAdapter.getChild(groupPosition, childPosition);\r\n\r\n mRadioPlayer.playRadio(RadioType.RADIO, radio.getId());\r\n setPlayerVisible(true);\r\n return true;\r\n }\r\n });\r\n }", "private List<JRadioButton> setupWeaponButtons() {\n\t List<JRadioButton> btns = new ArrayList<JRadioButton>();\n\t // select top button\n\t JRadioButton candlestickBtn = new JRadioButton(frame.makeDave(GameOfCluedo.CANDLESTICK));\n\t candlestickBtn.setSelected(true);\n\t // add buttons to list\n\t\tbtns.add(candlestickBtn);\n\t\tbtns.add(new JRadioButton(frame.makeDave(GameOfCluedo.DAGGER)));\n\t\tbtns.add(new JRadioButton(frame.makeDave(GameOfCluedo.LEAD_PIPE))); \n\t\tbtns.add(new JRadioButton(frame.makeDave(GameOfCluedo.REVOLVER))); \n\t\tbtns.add(new JRadioButton(frame.makeDave(GameOfCluedo.ROPE))); \n\t\tbtns.add(new JRadioButton(frame.makeDave(GameOfCluedo.SPANNER)));\n\t\t\n\t\treturn btns;\n\t}", "public static void main(String[] args) {\n\t\t\tSystem.setProperty(\"webdriver.gecko.driver\", \"/Users/patrickvaras/Downloads/geckodriver\");\n\t\t\tWebDriver driver=new FirefoxDriver();\n\t\t\tdriver.get(\"http://echoecho.com/htmlforms10.htm\");\n\t\t\tdriver.manage().window().maximize();\n\t\t\tSystem.out.println(\"Test site invoked - Radio Buttons\");\n\t\t\tSystem.out.println(\" \");\n\t\t\t\n\t\t\t\n\t\t\t//NOTE - Click arg. does NOT work with Chromedriver due to excessive DIV's in statement. Works\n\t\t\t//fine with Safari and FF. Chromedriver can be used but with other methods that need to be researched.\n\t\t\t//Chromedriver will sort of work with sendkeys arg with \\n\n\t\t\t\n\t\t\t\n\t\t\t//Selecting radio buttons\t\n\t\t\tdriver.findElement(By.xpath(\"//input[@value='Milk']\")).click();\n\t\t\t//driver.findElement(By.xpath(\"//input[@name='group1']\")).getSize();\n\t\t\t\n\t\t\tSystem.out.println(\"Milk Selected\");\n\t\t\t\n\t\t\t//Count number of checkboxes in a group\n\t\t\tSystem.out.println(driver.findElement(By.xpath(\"//input[@name='group1']\")).getSize());\n\t\t\t\n\n\t}", "public void questionThreeRadioButtons(View view){\n // Is the button now checked?\n boolean checked = ((RadioButton) view).isChecked();\n // Check which radio button was clicked\n switch(view.getId()) {\n case R.id.question_3_radio_button_1:\n if (checked)\n break;\n case R.id.question_3_radio_button_2:\n if (checked)\n break;\n case R.id.question_3_radio_button_3:\n if (checked)\n break;\n case R.id.question_3_radio_button_4:\n if (checked)\n break;\n }\n }", "@Override\n\tpublic void callButton(TrafficSignal TS) {\n\t\t\n\t}", "@Override\n public void onPageSelected(int arg0) {\n if(arg0 == 0){\n radioBtns.check(R.id.radioLogin);\n } else {\n radioBtns.check(R.id.radioJoin);\n }\n }", "private void reloadAccountTypeRadioButtons() {\n accountTypeStandardJRadioButton.setSelected(true);\n }", "private void RadioButtonAgregarActionPerformed(java.awt.event.ActionEvent evt) {\n }", "public static void main(String[] args) {\n\t\t\r\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"C:\\\\Pooja\\\\Selenium\\\\ChromeDriver\\\\chromedriver.exe\");\r\n\t\t\r\n\t\tWebDriver driver = new ChromeDriver();\r\n\t\tdriver.get(\"http://newtours.demoaut.com/\");\r\n\t\t\r\n\t\tWebElement editboxname = driver.findElement(By.name(\"userName\"));\r\n\t\teditboxname.sendKeys(\"batman\");\r\n\t\t\r\n\t\tWebElement editboxpassword = driver.findElement(By.name(\"password\"));\r\n\t\teditboxpassword.sendKeys(\"batman\");\r\n\t\t\r\n\t\tWebElement signin = driver.findElement(By.name(\"login\"));\r\n\t\tsignin.click();\r\n\r\n\t\t\r\n\t\t//Radios\r\n\t\tList<WebElement> radios = driver.findElements(By.name(\"tripType\"));\r\n\t\tSystem.out.println(\"Size of Radios :\" +radios.size());\r\n\t\t\r\n\t\t//Names\r\n\t\tfor(int i=0;i<radios.size();i++)\r\n\t\t{\r\n\t\t\tSystem.out.println(radios.get(i).getAttribute(\"value\"));\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\t//Data-parameterization\r\n\t\t\r\n\t\tfor(int i=0;i<radios.size();i++)\r\n\t\t{\r\n\t\t\tif(radios.get(i).getAttribute(\"value\").equals(\"oneway\"))\r\n\t\t\t{\r\n\t\t\t\tradios.get(i).click();\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t//Either\r\n\t\tfor(int i=0;i<radios.size();i++)\r\n\t\t{\r\n\t\t\tif(radios.get(i).isSelected())\r\n\t\t\t{\r\n\t\t\t\tSystem.out.println(radios.get(i).getAttribute(\"value\")+ \" is Selected \");\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tGenericRadioButton r = new GenericRadioButton();\r\n\t\tr.getRadios(driver, \"servClass\", \"Business\");\r\n\t\t\r\n\t\t\r\n\t\t}", "@Test\n public void onLbsRBTNClicked(){\n onView(withId(R.id.lbsRBTN)).perform(click()).check(matches(isChecked()));\n onView(withId(R.id.kgsRBTN)).check(matches(isNotChecked()));\n }", "public void onRadioButtonClicked(View v) {\n RadioButton rb353 = (RadioButton) findViewById(R.id.ramo503_01);\n RadioButton rb354 = (RadioButton) findViewById(R.id.ramo503_02);\n\n //is the current radio button now checked?\n boolean checked = ((RadioButton) v).isChecked();\n\n //now check which radio button is selected\n //android switch statement\n switch (v.getId()) {\n\n case R.id.ramo503_01:\n if (checked)\n //if windows phone programming book is selected\n //set the checked radio button's text style bold italic\n rb353.setTypeface(null, Typeface.BOLD_ITALIC);\n //set the other two radio buttons text style to default\n rb354.setTypeface(null, Typeface.NORMAL);\n //Starting new intent\n Intent intent353 = new Intent(Mtramo503Activity.this,\n MainActivity.class);\n startActivity(intent353);\n\n\n Toast toast353 =\n Toast.makeText(Mtramo503Activity.this, \"Código Falla: RA106 - Criticidad: 1\", Toast.LENGTH_LONG);\n toast353.show();\n break;\n\n case R.id.ramo503_02:\n if (checked)\n //if windows phone programming book is selected\n //set the checked radio button's text style bold italic\n rb354.setTypeface(null, Typeface.BOLD_ITALIC);\n //set the other two radio buttons text style to default\n rb353.setTypeface(null, Typeface.NORMAL);\n //Starting new intent\n Intent intent354 = new Intent(Mtramo503Activity.this,\n MainActivity.class);\n startActivity(intent354);\n\n\n Toast toast354 =\n Toast.makeText(Mtramo503Activity.this, \"Código Falla: RA107 - Criticidad: 2\", Toast.LENGTH_LONG);\n toast354.show();\n break;\n\n }\n\n }", "public void radioButtonChenged() {\n if (this.radioButtons.getSelectedToggle().equals(this.btn1))\r\n radioButtonlabel.setText(\"You selected table 1\");\r\n\r\n if (this.radioButtons.getSelectedToggle().equals(this.btn2))\r\n radioButtonlabel.setText(\"You selected table 2\");\r\n\r\n if (this.radioButtons.getSelectedToggle().equals(this.btn3))\r\n radioButtonlabel.setText(\"You selected table 3\");\r\n\r\n if (this.radioButtons.getSelectedToggle().equals(this.btn4))\r\n radioButtonlabel.setText(\"You selected table 4\");\r\n\r\n if (this.radioButtons.getSelectedToggle().equals(this.btn5))\r\n radioButtonlabel.setText(\"You selected table 5\");\r\n\r\n if (this.radioButtons.getSelectedToggle().equals(this.btn6))\r\n radioButtonlabel.setText(\"You selected table 6\");\r\n\r\n if (this.radioButtons.getSelectedToggle().equals(this.btn7))\r\n radioButtonlabel.setText(\"You selected table 7\");\r\n\r\n if (this.radioButtons.getSelectedToggle().equals(this.btn8))\r\n radioButtonlabel.setText(\"You selected table 8\");\r\n\r\n }" ]
[ "0.6587465", "0.6539562", "0.63887596", "0.63153577", "0.6280658", "0.62078816", "0.6189619", "0.61744225", "0.6163522", "0.6140117", "0.60719204", "0.60598505", "0.6053304", "0.6044411", "0.60142875", "0.6010316", "0.60089266", "0.6007977", "0.5997021", "0.5973275", "0.5962841", "0.5961635", "0.5958648", "0.5941562", "0.593813", "0.5929637", "0.59208196", "0.5917551", "0.59003985", "0.5880984", "0.5871894", "0.58674294", "0.5862478", "0.5859285", "0.58523846", "0.58469075", "0.5839118", "0.5837849", "0.5837368", "0.58315516", "0.5818234", "0.5804947", "0.5804864", "0.580471", "0.58013856", "0.5780067", "0.5777199", "0.5772685", "0.57724625", "0.57604736", "0.57525647", "0.5722494", "0.5720234", "0.5681043", "0.56803674", "0.5675693", "0.56723994", "0.5669583", "0.56685513", "0.5666753", "0.56560725", "0.56450987", "0.56354564", "0.5632355", "0.56313264", "0.5628567", "0.5625616", "0.5622627", "0.56219476", "0.5614454", "0.56108385", "0.5607495", "0.5604505", "0.55988485", "0.5577345", "0.5562902", "0.55545527", "0.5549169", "0.55446476", "0.5541035", "0.55405587", "0.55393106", "0.55351216", "0.55109495", "0.55105007", "0.5507684", "0.55046993", "0.54924273", "0.54921174", "0.54885226", "0.54817533", "0.54807216", "0.5477118", "0.54733866", "0.54729366", "0.5466463", "0.54616565", "0.5461359", "0.5459655", "0.5458393" ]
0.74209815
0
Select reset exit date yes or no.
public void selectResetExitDate(Boolean resetExitDate) { if (resetExitDate) { rbResetExitDateYes.click(); } else { rbResetExitDateNo.click(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void clickCalendarCheckOutDate() {\n\t\tcalendarCheckOutButton.click();\n\t}", "boolean isSetDate();", "public void setExit(Boolean exit) {\r\n this.exit = exit;\r\n }", "public void setExit(boolean exit) {\r\n this.exit = exit;\r\n }", "protected void setReturnDate(Date d){ this.returnDate = d; }", "private void scanCurrentDay(){\n month.getMyCalendar().setDate(dp.getYear(), dp.getMonth(), dp.getDayOfMonth());\n month.setSelectDay(dp.getDayOfMonth());\n month.invalidate();\n this.dismiss();\n }", "if (exitDateTime == adhocTicket.getExitDateTime()) {\n System.out.println(\"Exit Date Time is passed\");\n }", "@Override\r\n\tpublic long getExitDateTime() {\n\t\treturn 0;\r\n\t}", "public void setExit(boolean exit) {\n this.exit = exit;\n }", "Date getCheckedOut();", "@When(\"^I click on Return day for after (\\\\d+) days$\")\n\tpublic void i_click_on_Return_day_for_after_days(int arg1) throws Throwable {\n\t\tlp.chooseReturnDate();\n\t}", "public void setReturnDate(String returnDate) {\n\t\treturnDateElement.click();\n\t\treturnDateElement.sendKeys(returnDate);\n\t\tboolean validdate = Utilities.checkDateValidAndGreaterThanToday(returnDate);\n\t\tif (validdate) {\n\t\t\tString selectMonth = Month.of(Integer.parseInt(returnDate.split(\"/\")[0])).toString().toLowerCase();\n\t\t\tCalendar.findElement(By.id(\"calendar-\" + selectMonth + \"-\" + returnDate.split(\"/\")[1])).click();\n\t\t}\n\t}", "public void clickCalendarCheckInDate() {\n\t\tcalendarCheckInButton.click();\n\t}", "public void resetSelectedDate() {\r\n selectedDate = null;\r\n }", "void setCheckedOutDate(Date checkedOutDate);", "public void resetDates() {\r\n selectedDate = null;\r\n currentDate = Calendar.getInstance();\r\n }", "@Override\n public void onClick(View v) {\n DatePickerDialog datePickerDialog = new DatePickerDialog(getActivity(), new DatePickerDialog.OnDateSetListener() {\n @Override\n public void onDateSet(android.widget.DatePicker view, int year, int month, int dayOfMonth) {\n month = month + 1;\n String date =String.format(\"%02d/%02d/%d\", dayOfMonth,month, year);\n TextViewCheckOut.setText(date);\n long today = Calendar.getTimeInMillis();\n view.setMinDate(today);\n }\n },year,month,day);\n long today = Calendar.getTimeInMillis();\n datePickerDialog.getDatePicker().setMinDate(today);\n //memunculkan pilihan pada UI\n datePickerDialog.show();\n }", "@Override\n\tpublic void askReset() {\n\t}", "@Override\r\n\tpublic void exit(long dateTime) {\n\t\t\r\n\t}", "public void enterNCDConfirmationDate (String strRegion)\r\n\t{\r\n\t\tWebDriverWait wait = new WebDriverWait (driver, GlobalWaitTime.getIntWaitTime ());\r\n\t\twait.until (ExpectedConditions.elementToBeClickable (orPolicyVehicleHub.dtpNCDConirmedDate));\r\n\t\torPolicyVehicleHub.dtpNCDConirmedDate.click ();\r\n\t\torPolicyVehicleHub.dtpNCDConirmedDate.sendKeys (CalenderDate.returnDesiredDate (strRegion, 1, 1, 5));\r\n\r\n\t}", "@Then(\"^select the onward date$\")\n\tpublic void select_the_onward_date() throws Throwable {\n\t\tdriver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);\n\t\tdriver.findElement(By.xpath(\"//*[@id='search']/div/div[3]/div/label\")).click();\n\t\tdriver.findElement(By.xpath(\"//*[@id='rb-calendar_onward_cal']/table/tbody/tr[6]/td[5]\")).click();\n\t\t//driver.findElement(By.xpath(\"//label[text()='Onward Date']\")).sendKeys(Keys.TAB);\n\t\t//driver.findElementByXPath(\"//label[text()='Return Date']\").sendKeys(Keys.TAB);\n\t\t\n\t}", "boolean isSetFoundingDate();", "public void resetForm(){\n\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"dd/MM/yyyy\");\n\t\tDate currentDate = new Date();\n\t\tsetNxSelect(\"r1\");\n\t\tresetFormB4135 = \"\";\n\t\tthoigian_thang=String.valueOf(currentDate.getMonth() +1); \n\t\tthoigian_nam=String.valueOf(currentDate.getYear()+1900);\n\t\ttungay = sdf.format(currentDate);\n\t\tdenngay = sdf.format(currentDate);\n\t\tmathang_maso=null;\n\t\thangSX_maso=null;\n\t\tnuocSX_maso=null;\n\t\tnct_maso=null;\n\t\tnkp_maso=null;\n\t\tmathang_ma=null;\n\t\tdmtTen = \"\";\n\t\thangSX_ma=\"\";\n\t\tnuocSX_ma=\"\";\n\t\tnct_ma=\"\";\n\t\tnkp_ma=\"\";\n\t\tlthuoc_ma=\"\";\n\t\tplthuoc_ma=\"\";\n\t\tdonvi_ma=\"\";\n\t\trefreshDmLoaiThuoc();\n\t\trefreshDmPhanLoaiThuoc();\n\t\trefreshDmThuoc();\n\t}", "private void clearReminderForm() {\n income_Rad.isSelected();\n dueDate_date.setDate(null);\n ToFrom_Txt.setText(\"\");\n Amount_Txt.setText(\"\");\n category_comb.setSelectedItem(\"other\");\n frequency_comb.setSelectedItem(\"one time\");\n endBy_date.setDate(null);\n }", "public boolean DefaultEffectiveDate() throws Exception {\n\t\tboolean status = false;\n\t\tString sCurrentDate = SCRCommon.ReturnCurrentDate();\n\t\tstatus = common.SafeAction(Common.o.getObject(\"edtAutoIdCardEndorsementEffDate\"), sCurrentDate, \"edt\");\n\t\treturn status;\n\t}", "private void selectDate() {\n Calendar calendar = Calendar.getInstance();\n int year = calendar.get(Calendar.YEAR);\n int month = calendar.get(Calendar.MONTH);\n int day = calendar.get(Calendar.DAY_OF_MONTH);\n DatePickerDialog datePickerDialog = new DatePickerDialog(this, new DatePickerDialog.OnDateSetListener() {\n @Override\n public void onDateSet(DatePicker datePicker, int year, int month, int day) {\n mDatebtn.setText(day + \"-\" + (month + 1) + \"-\" + year); //sets the selected date as test for button\n }\n }, year, month, day);\n datePickerDialog.show();\n }", "Date getCheckedOutDate();", "boolean hasSettlementDate();", "public void setDoReset(boolean doReset) {\n this.doReset = doReset;\n }", "@Override\n public void onDateSet(DatePicker view, int year, int monthOfYear,\n int dayOfMonth) {\n myCalendar.set(Calendar.YEAR, year);\n myCalendar.set(Calendar.MONTH, monthOfYear);\n myCalendar.set(Calendar.DAY_OF_MONTH, dayOfMonth);\n updateLabel(btnEndDate, myCalendar);\n\n //set hasCheckDate to true\n hasCheckDate = true;\n }", "public void promptDate(String date)\n {\n this.date = date;\n }", "public void setExitCounselorTime( Date exitCounselorTime ) {\n this.exitCounselorTime = exitCounselorTime;\n }", "public void selectDate(){\r\n\t\tcloseDateText.sendKeys(ConvertDate());\r\n\t}", "private void scheduleNextReset() {\n alarmManager.cancel(createResetIntent(this));\n final SharedPreferences sharedPreferences = getSharedPreferences(getString(R.string.pref_daily_do), Context.MODE_PRIVATE);\n final boolean isDailyResetEnabled = sharedPreferences.getBoolean(getString(R.string.pref_daily_reset_enabled), true);\n if (isDailyResetEnabled) {\n final int hourOfReset = sharedPreferences.getInt(getString(R.string.pref_daily_reset_hour), 0);\n final int minuteOfReset = sharedPreferences.getInt(getString(R.string.pref_daily_reset_minute), 0);\n final Calendar calendarToRepeat = Calendar.getInstance();\n calendarToRepeat.set(Calendar.HOUR_OF_DAY, hourOfReset);\n calendarToRepeat.set(Calendar.MINUTE, minuteOfReset);\n calendarToRepeat.set(Calendar.SECOND, 0);\n if (calendarToRepeat.before(Calendar.getInstance())) {\n calendarToRepeat.add(Calendar.DAY_OF_WEEK, 1);\n }\n alarmManager.setRepeating(AlarmManager.RTC_WAKEUP,\n calendarToRepeat.getTimeInMillis(),\n AlarmManager.INTERVAL_DAY,\n createResetIntent(this));\n Log.d(CLASS_NAME, String.format(\"Next reset scheduled on Calendar=%s\", calendarToRepeat.toString()));\n } else {\n Log.d(CLASS_NAME, String.format(\"Resets cancelled.\"));\n }\n }", "public void confirmExit() {\n boolean confirmOnExit = getIntent().getExtras().getBoolean(MapsActivity.PARAMETERS.CONFIRM_ON_EXIT, true);\n if (confirmOnExit) {\n new AlertDialog.Builder(this).setTitle(R.string.button_confirm_exit_title)\n .setMessage(R.string.button_confirm_exit)\n .setPositiveButton(android.R.string.yes, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n finish();\n return;\n }\n }).setNegativeButton(android.R.string.no, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n // do nothing\n }\n }).show();\n } else {\n finish();\n }\n }", "@Override\n public void setReturnDate(LocalDate date) {\n this.returnDate = date;\n }", "public void onClick(DialogInterface dialog, int which) {\n msgBox.Show(\"Warning\", \"DayEnd operation has been cancelled, Transaction date remains same\");\n }", "public boolean exit()\n {\n if(select == 0)\n {\n return true;\n }\n else\n return false;\n }", "public boolean isSetExam_date() {\n return this.exam_date != null;\n }", "@Override\n public void onClick(View v) {\n\n dp.updateDate(2020, 6, 1);\n tp.setCurrentHour(19);\n tp.setCurrentMinute(30);\n edName.setText(\" \");\n edMobile.setText(\" \");\n edSize.setText(\" \");\n\n Toast.makeText(MainActivity.this, \"You have Reset your reservation\", Toast.LENGTH_LONG).show();\n //Toast.makeText(MainActivity.this, \"Button Reset is clicked\", Toast.LENGTH_SHORT).show();\n }", "public boolean checkDatePickerChangeMonth(String actionLink, boolean isNextMonth, boolean isNewToDoPage) {\n boolean result = true;\n String beforeTitle = \"\";\n String afterTitle = \"\";\n try {\n // If isNewToDoPage = true :verify in add new to-do page | isNewToDoPage = false, verify in to-do list page\n if (isNewToDoPage) {\n waitForClickableOfElement(eleIdDueDate, \"Due date text box\");\n eleIdDueDate.click();\n } else {\n waitForClickableOfElement(eleToDoNewRowDueDateText.get(0), \"Select due date text box\");\n eleToDoNewRowDueDateText.get(0).click();\n }\n\n waitForVisibleElement(eleDataPickerTitle, \"Date picker title\");\n //Get tile date picker before click next or previous link\n beforeTitle = eleDataPickerTitle.getText();\n\n // If isNextMonth = true : click on Next link in date picker |\n // isNextMonth = false, click on Prev link in date picker\n if (!isNextMonth) {\n waitForClickableOfElement(elePrevDataPickerLink, \"Previous date picker link\");\n elePrevDataPickerLink.click();\n } else {\n waitForClickableOfElement(eleNextDataPickerLink, \"Next date picker link\");\n eleNextDataPickerLink.click();\n }\n\n //Get tile date picker after click next or previous link\n afterTitle = eleDataPickerTitle.getText();\n result = beforeTitle.equals(afterTitle);\n\n //If result = true : before and after value as same --> data picker not work\n if (result) {\n NXGReports.addStep(\"TestScript Failed: Date picker is change \" + actionLink + \" month\", LogAs.FAILED,\n new CaptureScreen(CaptureScreen.ScreenshotOf.BROWSER_PAGE));\n return false;\n }\n\n NXGReports.addStep(\"Date picker is change \" + actionLink + \" month\", LogAs.PASSED, null);\n } catch (AssertionError e) {\n AbstractService.sStatusCnt++;\n NXGReports.addStep(\"TestScript Failed: Date picker is change \" + actionLink + \" month\", LogAs.FAILED,\n new CaptureScreen(CaptureScreen.ScreenshotOf.BROWSER_PAGE));\n return false;\n }\n return true;\n }", "public void selectNCDConfirmed ()\r\n\t{\r\n\r\n\t\tList<WebElement> ncdconfirmedradiobuttons = orPolicyVehicleHub.rdoVehicleNCDConfirmed;\r\n\t\tfor (WebElement ncdconfirmedradiobutton : ncdconfirmedradiobuttons)\r\n\t\t{\r\n\t\t\tif (ncdconfirmedradiobutton.getAttribute (\"value\").equals (\"Y\"))\r\n\t\t\t{\r\n\t\t\t\tncdconfirmedradiobutton.click ();\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t}", "@Override\n public void onClick(View v) {\n DatePickerDialog datePickerDialog = new DatePickerDialog(getActivity(), new DatePickerDialog.OnDateSetListener() {\n @Override\n public void onDateSet(android.widget.DatePicker view, int year, int month, int dayOfMonth) {\n month = month + 1;\n String date =String.format(\"%02d/%02d/%d\", dayOfMonth,month, year);\n TextViewCheckIn.setText(date);\n\n }\n },year,month,day);\n long today = Calendar.getTimeInMillis();\n datePickerDialog.getDatePicker().setMinDate(today);\n datePickerDialog.show();\n }", "boolean isSetAppliesDateTime();", "public boolean getExit() {\r\n return exit;\r\n }", "void resetConfirm(){\n\t\tconfirmed = false;\n\t}", "@Test\n public void shouldSeeZeroValueWhenResetButtonIsSelected() {\n\n\n //1. Select the Reset button.\n //2. Verify Interest rate= 0.0\n //3. Verify Price= 0\n //4. Verify Down Payment= 0\n //5. Verify Trade-In Value= 0\n //6. Verify Amount Owed in Trade=0\n }", "private void AlertUserToReset() {\n Builder builder = new AlertDialog.Builder(this);\n View titleView = LayoutInflater.from(CheckResultActivity.this)\n .inflate(R.layout.custom_alert_dialog, null);\n TextView title = (TextView) titleView.findViewById(R.id.title);\n title.setText(getString(R.string.alert_restore_title));\n builder.setCustomTitle(titleView);\n builder.setMessage(getString(R.string.alert_restore_note));\n builder.setPositiveButton(R.string.alert_dialog_ok, null);\n builder.create().show();\n }", "private void dialogExit() {\n\t\tint result = showConfirmDialog(frmRentCalc, \"Вы действительно ходите выйти?\", \"Окно подтверждения\", YES_NO_OPTION, QUESTION_MESSAGE);\r\n\t\tif (result == YES_OPTION) {\r\n\t\t\tSystem.exit(0);\r\n\t\t} else {\r\n\t\t\tif (result == NO_OPTION) {\r\n\t\t\t}\r\n\t\t}\r\n\t}", "private void setCurrentDateOnButton() {\n\t\t\tfinal Calendar c = Calendar.getInstance();\n\t\t\tyear = c.get(Calendar.YEAR);\n\t\t\tmonth = c.get(Calendar.MONTH);\n\t\t\tday = c.get(Calendar.DAY_OF_MONTH);\n\t\t\t//set current date to registration button\n\t\t\tbtnRegDate.setText(new StringBuilder()\n\t\t\t// Month is 0 based, just add 1\n\t\t\t.append(day).append(\"-\").append(month + 1).append(\"-\")\n\t\t\t.append(year));\n\t\t\t//set current date to FCRA registration button\n\t\t\tbtnFcraDate.setText(new StringBuilder()\n\t\t\t// Month is 0 based, just add 1\n\t\t\t.append(day).append(\"-\").append(month + 1).append(\"-\")\n\t\t\t.append(year));\n\t\t}", "public void set_value_to_default() {\n this.selectionListStrike.setText(\"\");\n this.selectionListCal_iv.setText(\"\");\n this.selectionListUlast.setText(\"\");\n String format = new SimpleDateFormat(\"dd/MM/yyyy\").format(new Date());\n int parseInt = Integer.parseInt(format.substring(6, 10));\n int parseInt2 = Integer.parseInt(format.substring(3, 5));\n int parseInt3 = Integer.parseInt(format.substring(0, 2));\n this.selectedDate = parseInt + \"-\" + parseInt2 + \"-\" + parseInt3;\n this.selectionListExpiry.setSelectedText(format);\n this.selectionListExpiry.initItems(R.string.set_date, SelectionList.PopTypes.DATE, parseInt, parseInt2, parseInt3);\n if (!this.wtype.equals(\"C\")) {\n this.callputbutton.callOnClick();\n }\n }", "public void setExitUserTime( Date exitUserTime ) {\n this.exitUserTime = exitUserTime;\n }", "public boolean isSetDateClose()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(DATECLOSE$4) != 0;\n }\n }", "LocalDate getCheckInDate();", "@Override\n public void onDateSet(DatePicker view, int year, int monthOfYear,\n int dayOfMonth) {\n myCalendar.set(Calendar.YEAR, year);\n myCalendar.set(Calendar.MONTH, monthOfYear);\n myCalendar.set(Calendar.DAY_OF_MONTH, dayOfMonth);\n updateLabel(btnStartDate, myCalendar);\n\n //set hasCheckDate to true\n hasCheckDate = true;\n }", "private void DateSelection(final TextView tv_inv_date ) {\n try {\n AlertDialog.Builder dlgReportDate = new AlertDialog.Builder(this);\n final DatePicker dateReportDate = new DatePicker(this);\n String date_str = tvDate.getText().toString();\n String dd = date_str.substring(6,10)+\"-\"+date_str.substring(3,5)+\"-\"+date_str.substring(0,2);\n DateTime objDate = new DateTime(dd);\n dateReportDate.updateDate(objDate.getYear(), objDate.getMonth(), objDate.getDay());\n String strMessage = \"\";\n\n\n dlgReportDate\n .setIcon(R.drawable.ic_launcher)\n .setTitle(\"Date Selection\")\n .setMessage(strMessage)\n .setView(dateReportDate)\n .setPositiveButton(\"OK\", new DialogInterface.OnClickListener() {\n String strDd = \"\";\n public void onClick(DialogInterface dialog, int which) {\n if (dateReportDate.getDayOfMonth() < 10) {\n strDd = \"0\" + String.valueOf(dateReportDate.getDayOfMonth())+\"-\";\n } else {\n strDd = String.valueOf(dateReportDate.getDayOfMonth())+\"-\";\n }\n if (dateReportDate.getMonth() < 9) {\n strDd += \"0\" + String.valueOf(dateReportDate.getMonth() + 1) + \"-\";\n } else {\n strDd += String.valueOf(dateReportDate.getMonth() + 1) + \"-\";\n }\n\n strDd += String.valueOf(dateReportDate.getYear());\n tv_inv_date.setText(strDd);\n Log.d(\"ReprintDate\", \"Selected Date:\" + strDd);\n }\n })\n .setNegativeButton(\"Cancel\", new DialogInterface.OnClickListener() {\n\n public void onClick(DialogInterface dialog, int which) {\n // TODO Auto-generated method stub\n\n }\n })\n .show();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "public void Checkout_button() {\n\t\tthis.endUser.checkOut();\n\t\tthis.defaultSetup();\n\t}", "private void DateSelection(final TextView tv_inv_date) {\n try {\r\n AlertDialog.Builder dlgReportDate = new AlertDialog.Builder(myContext);\r\n final DatePicker dateReportDate = new DatePicker(myContext);\r\n String date_str = tvDate.getText().toString();\r\n String dd = date_str.substring(6,10)+\"-\"+date_str.substring(3,5)+\"-\"+date_str.substring(0,2);\r\n DateTime objDate = new DateTime(dd);\r\n dateReportDate.updateDate(objDate.getYear(), objDate.getMonth(), objDate.getDay());\r\n String strMessage = \"\";\r\n\r\n\r\n\r\n dlgReportDate\r\n .setIcon(R.drawable.ic_launcher)\r\n .setTitle(\"Date Selection\")\r\n .setMessage(strMessage)\r\n .setView(dateReportDate)\r\n .setPositiveButton(\"OK\", new DialogInterface.OnClickListener() {\r\n String strDd = \"\";\r\n public void onClick(DialogInterface dialog, int which) {\r\n if (dateReportDate.getDayOfMonth() < 10) {\r\n strDd = \"0\" + String.valueOf(dateReportDate.getDayOfMonth())+\"-\";\r\n } else {\r\n strDd = String.valueOf(dateReportDate.getDayOfMonth())+\"-\";\r\n }\r\n if (dateReportDate.getMonth() < 9) {\r\n strDd += \"0\" + String.valueOf(dateReportDate.getMonth() + 1) + \"-\";\r\n } else {\r\n strDd += String.valueOf(dateReportDate.getMonth() + 1) + \"-\";\r\n }\r\n\r\n strDd += String.valueOf(dateReportDate.getYear());\r\n tv_inv_date.setText(strDd);\r\n Log.d(\"ReprintDate\", \"Selected Date:\" + strDd);\r\n }\r\n })\r\n .setNegativeButton(\"Cancel\", new DialogInterface.OnClickListener() {\r\n\r\n public void onClick(DialogInterface dialog, int which) {\r\n // TODO Auto-generated method stub\r\n\r\n }\r\n })\r\n .show();\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n }", "private boolean askToLeave(){\n\t\tint ask_leave_prompt = JOptionPane.YES_NO_OPTION;\n\t\tint ask_leave_result = JOptionPane.showConfirmDialog(this, \"Would you like to return to main menu?\\nYou will lose all progress\", \"Return To Main Menu\", ask_leave_prompt);\n\t\tif (ask_leave_result == JOptionPane.YES_OPTION){\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "public boolean isReset()\n\t{\n\t\treturn m_justReset;\n\t}", "public void setExitAllGuis(boolean yes) {\n \tif(yes)\n \t\ttrnMdl.exitAll();\n }", "public boolean canSaveCalendarDayOff(CalendarDayOff calendarDayOff,Calendar calendar) {\nreturn true;\n}", "private void setDateButtonActionPerformed(java.awt.event.ActionEvent evt) {\n Date newDate = calendario.getDate();\n if(newDate != null) {\n java.sql.Date date = new java.sql.Date(newDate.getTime());\n control.setDate(date);\n control.crearAlerta(\"Informacion\", \"La fecha \" + date + \" ha sido agregada\" , this);\n } else {\n control.crearAlerta(\"Advertencia\", \"Debe escoger una fecha\", this);\n }\n }", "@Override\n\tpublic void proceedNewDay(int p_date) \n\t\t\tthrows RemoteException \n\t{\n\t\t// TODO Auto-generated method stub\n\t\t\n\t}", "public boolean completeReset() {\n Alert resetConfirmationAlert = new Alert(Alert.AlertType.WARNING,\n \"Do you really wish to reset the database to its default state?\",\n ButtonType.OK,\n ButtonType.CANCEL);\n resetConfirmationAlert.setTitle(\"Database Reset\");\n Optional<ButtonType> result = resetConfirmationAlert.showAndWait();\n\n if (result.get() == ButtonType.OK) {\n if (!dbAccess.testCon()) {\n showAlertResetFail(\"Could not establish a connection to the database. Please visit the database settings to verify your connection.\");\n return false;\n }\n if (!dbAccess.completeReset()) {\n showAlertResetFail(\"The current user you specified in the database settings has insufficient rights to reset the database.\");\n return false;\n } else {\n Alert resetSuccessAlert = new Alert(Alert.AlertType.NONE,\n \"Success! Database was reset.\",\n ButtonType.OK);\n resetSuccessAlert.setTitle(\"Database Reset\");\n resetComboBoxes();\n resetLabels();\n resetPieChart();\n resetSuccessAlert.showAndWait();\n return true;\n }\n }\n return true;\n }", "public void toExit() {\n int sure=JOptionPane.showConfirmDialog(rootPane,\"Are you sure to Exit?\");\n if(sure==JOptionPane.YES_OPTION)\n { \n System.exit(0);\n } \n }", "public void setSentinel () {\n try {\n sentinel = new DateSentinel(this);\n }\n catch (CGException e) {\n System.out.println(e.getMessage());\n }\n }", "void unsetDate();", "private void setDay() {\n Boolean result = false;\n for (int i = 0; i < 7; ++i) {\n if(mAlarmDetails.getRepeatingDay(i))\n result = true;\n mAlarmDetails.setRepeatingDay(i, mAlarmDetails.getRepeatingDay(i));\n }\n if(!result)\n mAlarmDetails.setRepeatingDay((Calendar.getInstance().get(Calendar.DAY_OF_WEEK) - 1), true);\n }", "public void selectNonstopForReturn() {\n\t\tif (!nonStopButtonForReturnTrip.isSelected()) {\n\t\t\tnonStopButtonForReturnTrip.click();\n\t\n\t\t}\n\t}", "public boolean isSetDate() {\n return EncodingUtils.testBit(__isset_bitfield, __DATE_ISSET_ID);\n }", "public boolean checkDefaultDueDateValue() {\n waitForVisibleElement(eleDueDateValue, \"Engagement Due date\");\n waitForVisibleElement(eleIdDueDate, \"Default Due date\");\n String engagementDueDate = eleDueDateValue.getText().substring(5, eleDueDateValue.getText().length());\n String defaultDueDate = eleIdDueDate.getText();\n getLogger().info(engagementDueDate);\n getLogger().info(defaultDueDate);\n return engagementDueDate.equals(defaultDueDate);\n }", "public void onClickReset(View view) {\n AlertDialog.Builder dialog = new AlertDialog.Builder(this)\n .setTitle(\"Confirm Reset\")\n .setMessage(\"Are you sure you want to reset?\")\n .setPositiveButton(\"Yes\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n spEntree.setSelection(0);\n spDrink.setSelection(0);\n spDessert.setSelection(0);\n\n edtTxtEntreePrice.setText(\"$0.00\");\n edtTxtDrinkPrice.setText(\"$0.00\");\n edtTxtDessertPrice.setText(\"$0.00\");\n }\n })\n .setNegativeButton(\"No\", null);\n\n dialog.show();\n }", "public void setExited() {\n this.exited = true;\n }", "public static void monthSelect(WebDriver driver, String munth, String dey) {\n\tdriver.findElement(By.id(\"travel_date\")).click();// opens up calender\n\t\n\t\n\t\t\n\t\tString month = driver.findElement(By.cssSelector(\"[class='datepicker-days'] [class='datepicker-switch']\")).getText();\n\t\tSystem.out.println(month);\n\t\t// prints out the first visible month\n\t\t\n\t\t\n\t\twhile(!\tdriver.findElement(By.cssSelector(\"[class='datepicker-days'] [class='datepicker-switch']\")).getText().contains(munth)) {\n\t\t\t\tdriver.findElement(By.cssSelector(\"[class=' table-condensed'] [class='next']\")).click();\n\t\t\t\t// clicks on the next button\n\t\t\t\n\t\t\t\t\n\t\t\t}\n\t\tList <WebElement> dates = driver.findElements(By.cssSelector(\".day\"));\n\t\t//42\n\t\t// select all calenders\n\t\t\n\t\tint count = dates.size();\n\t\t// returns the size as 0\n\t\t\n\t\t\n\t\tfor(int i =0; i<count;i++) {\n\t\t\t//String Day = \"24\";\n\t\t\tString text = driver.findElements(By.cssSelector(\".day\")).get(i).getText();\n\t\t\tSystem.out.println(text);\n\t\t\t\n\t\t\tif(text.equalsIgnoreCase(dey)){\n\t\t\t\tdriver.findElements(By.cssSelector(\".day\")).get(i).click();\n\t\t\t\t// clicks on the 24\n\t\t\t}\n\t\t}\n\t\t\n\t}", "public boolean canUpdateCalendarDayOff(CalendarDayOff calendarDayOff) {\nreturn true;\n}", "public void confirmExit() {\n int resposta = JOptionPane.showConfirmDialog(this,\n \"Really exit?\", \"Exit\",\n JOptionPane.YES_NO_OPTION,\n JOptionPane.QUESTION_MESSAGE);\n if (resposta == JOptionPane.YES_OPTION) {\n System.exit(0);\n }\n }", "public void setTodayDate() {\r\n int oldMonthValue = getMonth();\r\n int oldYearValue = getYear();\r\n calendarTable.getCalendarModel().setTodayDate();\r\n updateControlsFromTable();\r\n // fire property change\r\n int newMonthValue = getMonth();\r\n if (oldMonthValue != newMonthValue) {\r\n firePropertyChange(MONTH_PROPERTY, oldMonthValue, newMonthValue);\r\n }\r\n int newYearValue = getYear();\r\n if (oldYearValue != newYearValue) {\r\n firePropertyChange(YEAR_PROPERTY, oldYearValue, newYearValue);\r\n }\r\n // clear selection when changing the month in view\r\n if (oldMonthValue != newMonthValue && oldYearValue != newYearValue) {\r\n calendarTable.getSelectionModel().clearSelection();\r\n }\r\n }", "public void verifyDuedateTable() {\n try {\n DropdownDuedateBtn.click();\n waitForCssValueChanged(datePicker, \"Date Picker Table\", \"display\", \"block\");\n getLogger().info(\"Current Month is: \" + Month.getText());\n Thread.sleep(largeTimeOut);\n // tableDatePicker.pickADate(\"12\",\"5\",\"2017\");\n\n\n // verifyPrevFunction();\n // verifyNextFunction();\n\n } catch (Exception e) {\n\n\n }\n }", "public void selectDate(String d){\n\t\tDate current = new Date();\n\t\tSimpleDateFormat sd = new SimpleDateFormat(\"d-MM-yyyy\");\n\t\ttry {\n\t\t\tDate selected = sd.parse(d);\n\t\t\tString day = new SimpleDateFormat(\"d\").format(selected);\n\t\t\tString month = new SimpleDateFormat(\"MMMM\").format(selected);\n\t\t\tString year = new SimpleDateFormat(\"yyyy\").format(selected);\n\t\t\tSystem.out.println(day+\" --- \"+month+\" --- \"+ year);\n\t\t\tString desiredMonthYear=month+\" \"+year;\n\t\t\t\n\t\t\twhile(true){\n\t\t\t\tString displayedMonthYear=driver.findElement(By.cssSelector(\".dpTitleText\")).getText();\n\t\t\t\tif(desiredMonthYear.equals(displayedMonthYear)){\n\t\t\t\t\t// select the day\n\t\t\t\t\tdriver.findElement(By.xpath(\"//td[text()='\"+day+\"']\")).click();\n\t\t\t\t\tbreak;\n\t\t\t\t}else{\n\t\t\t\t\t\n\t\t\t\t\tif(selected.compareTo(current) > 0)\n\t\t\t\t\t\tdriver.findElement(By.xpath(\"//*[@id='datepicker']/table/tbody/tr[1]/td[4]/button\")).click();\n\t\t\t\t\telse if(selected.compareTo(current) < 0)\n\t\t\t\t\t\tdriver.findElement(By.xpath(\"//*[@id='datepicker']/table/tbody/tr[1]/td[2]/button\")).click();\n\n\t\t\t\t}\n\t\t\t}\n\n\t\t} catch (ParseException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t}", "private void doExit() {\n\n AlertDialog.Builder alertDialog = new AlertDialog.Builder(\n BookingActivity.this);\n\n alertDialog.setPositiveButton(\"Yes\", new DialogInterface.OnClickListener() {\n\n @Override\n public void onClick(DialogInterface dialog, int which) {\n //finish();\n //System.exit(0);\n goBack();\n }\n });\n\n alertDialog.setNegativeButton(\"No\", null);\n\n alertDialog.setMessage(\"Do you want to exit?\");\n alertDialog.setTitle(\" \");\n alertDialog.show();\n }", "public static void dateDue() {\n Date date = new Date();\r\n SimpleDateFormat formatter = new SimpleDateFormat(\"dd/MM/yyyy\");\r\n String strDate = formatter.format(date);\r\n NewProject.due_date = getInput(\"Please enter the due date for this project(dd/mm/yyyy): \");\r\n\r\n UpdateData.updateDueDate();\r\n updateMenu();\t//Return back to previous menu.\r\n }", "public boolean isSetRepayDate() {\n return this.repayDate != null;\n }", "abstract boolean isExit();", "public abstract boolean isExit();", "public void SelectReturnDate(String Amonth,String Ayear) throws InterruptedException{\n\n WebElement retrnmonth=returnjourneydate.findElement(By.xpath(Configuration.returnMonth));\n action.moveToElement(retrnmonth).click();\n select=new Select(retrnmonth);\n select.selectByValue(Amonth);\n WebElement retrnyear=returnjourneydate.findElement(By.xpath(Configuration.returnYear));\n action.moveToElement(retrnyear).click();\n select=new Select(retrnyear);\n select.selectByValue(Ayear);\n retrnDate.click();\n }", "void reset(){\n\t\tstatsRB.setSelected(true);\n\t\tcustTypeCB.setSelectedIndex(0);\n\t\tcustIdTF.setText(\"\");\n\t\toutputTA.setText(\"\");\n\t\t\n\t\tLong currentTime = System.currentTimeMillis();\n\t\t\n\t\t//THE TIME IN TIME SPINNERS ARE SET TO THE MAX POSSIBLE TIME WINDOW THAT IS \n\t\t//FROM THE TIME THAT THE SHOP STARTED TO THE CURRENT TIME.\n\t\t\n\t\t//THE STARTING DATE AND TIME OF SHOP OS CONSIDERED AS -- 1 JAN 2010 00:00\n\t\tstartDateS.setModel(new SpinnerDateModel(new Date(1262284200000L), new Date(1262284200000L), new Date(currentTime), Calendar.DAY_OF_MONTH));\n\t\t//AND END DATE AND TIME WILL THE THE CURRENT SYSTEM DATE AND TIME.\n\t\tendDateS.setModel(new SpinnerDateModel(new Date(currentTime), new Date(1262284200000L), new Date(currentTime), Calendar.DAY_OF_MONTH));\n\t\n\t}", "public Date getSelectDate();", "public Date getDateSelected() {\n Date dateSelected = availDay.getDate();\n return dateSelected;\n }", "public Date getSelectedDate();", "public boolean getResetTimeOnStop() { return _resetTimeOnStop; }", "public void selectEnddate() {\n\r\n\t\tSeleniumUtil.getVisibileWebElement(d, \"selectEnddate1_T\", \"CashFlow\", null).click();\r\n\t\t\r\n\t\t//webDriver.findElement(By.xpath(\"//input[contains(@class,'end-date')]\")).click();\r\n\t\t// SeleniumUtil.waitForPageToLoad();\r\n\t\t// webDriver.findElement(By.xpath(\"//div[contains(@class,'end-date')]//div[@id='prev-year']\")).click();\r\n\t\t\r\n\t\tSeleniumUtil.fluentWait(d);\r\n\t\t\r\n\t\t// webDriver.findElement(By.xpath(\"(//div[@class='custom-end-dateCnr']//div[@class='js-row']/div[\"+tableCol+\"])[\"+selectNumber+\"]\")).click();\r\n\t\t//webDriver.findElement(By.xpath(\"//div[@class='custom-end-dateCnr']//div[@class='js-row']//div[contains(@class,'today')]\")).click();\r\n\t\r\n\t\tSeleniumUtil.getVisibileWebElement(d, \"selectEnddate2_T\", \"CashFlow\", null).click();\r\n\t}", "public void setDateResponsed(Date dateResponsed);", "public void clickCalendarDone() {\n\t\tcalendarDoneButton.click();\n\t}", "private static boolean backToMenu() {\n boolean exit = false;\n System.out.println(\"Return to Main Menu? Type Yes / No\");\n Scanner sc2 = new Scanner(System.in);\n if (sc2.next().equalsIgnoreCase(\"no\"))\n exit = true;\n return exit;\n }", "@Override\n\tpublic void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {\n\t\tHandheldAuthorization.getInstance().setWarningState(isChecked, TimeManager.getInstance().getMonth());\n\t}", "@Override\n\tprotected void setDate() {\n\n\t}", "public void unsetReset() {\n\t\twasReset=false;\n\t}", "public void onDateSet(DatePicker view, int selectedYear,\n int selectedMonth, int selectedDay) {\n Calendar calendarNow = Calendar.getInstance();\n calendarNow.set(selectedYear, selectedMonth, selectedDay);\n if (calendarNow.getTimeInMillis() < view.getMinDate()) {\n begdaShowDatePickerDialog();\n Toast.makeText(getActivity(), getResources().getString(R.string.createOrder_datePicker_selectFutureDate), Toast.LENGTH_SHORT).show();\n view.updateDate(begCalendar.get(Calendar.YEAR), begCalendar.get(Calendar.MONTH), begCalendar.get(Calendar.DAY_OF_MONTH));\n }\n\n begYear = selectedYear;\n begMonth = selectedMonth;\n begDay = selectedDay;\n begCalendar.set(selectedYear, selectedMonth, selectedDay);\n tvBegda.setText(new StringBuilder().append(char2(begDay))\n .append(\".\").append(char2(begMonth + 1)).append(\".\").append(begYear));\n if (tvEndda.getText().toString().equals(getResources().getString(R.string.leave_dmy))) {\n endYear = selectedYear;\n endMonth = selectedMonth;\n endDay = selectedDay;\n endCalendar.set(selectedYear, selectedMonth, selectedDay);\n tvEndda.setText(new StringBuilder().append(char2(endDay))\n .append(\".\").append(char2(endMonth + 1)).append(\".\").append(endYear));\n }\n }", "public void resetVotes(int resetYes, int resetNo) {\n mYesCount = resetYes;\n mNoCount = resetNo;\n }" ]
[ "0.5824597", "0.5508281", "0.54080147", "0.5352209", "0.53309035", "0.5313379", "0.52875197", "0.5271623", "0.52710223", "0.5246963", "0.5174445", "0.5161927", "0.51512855", "0.5147043", "0.513927", "0.5129034", "0.5126436", "0.5110794", "0.50971824", "0.5063225", "0.5049578", "0.50429463", "0.5042568", "0.5028613", "0.5019248", "0.50187886", "0.5007588", "0.49877653", "0.4986614", "0.49833125", "0.49778154", "0.4934633", "0.493233", "0.49289724", "0.49267593", "0.4925345", "0.49210095", "0.49138868", "0.49133325", "0.4902668", "0.48983988", "0.4887876", "0.48876405", "0.4883697", "0.48813656", "0.48713002", "0.48663113", "0.48651862", "0.486442", "0.48616093", "0.48539037", "0.48529223", "0.48514387", "0.4839695", "0.48307768", "0.4825086", "0.48184744", "0.48092553", "0.47997013", "0.47982332", "0.47968665", "0.4793367", "0.47884", "0.4786917", "0.4784522", "0.47844538", "0.47733232", "0.47725534", "0.47716743", "0.47637144", "0.47614908", "0.47585094", "0.47513014", "0.47476533", "0.47382608", "0.47355616", "0.4735138", "0.4733686", "0.47318134", "0.47254062", "0.47218174", "0.4715069", "0.47148055", "0.47118512", "0.47087383", "0.47077215", "0.47073632", "0.47053158", "0.4698961", "0.46988803", "0.46979028", "0.4697606", "0.4694285", "0.46933", "0.46913096", "0.4691182", "0.46862578", "0.46821678", "0.46816897", "0.4679688" ]
0.81584483
0
Click No fee radio button.
public void clickNoFee() { rbNoFee.click(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void clickOnNOButton() {\r\n\t\tsafeJavaScriptClick(manageVehiclesSideBar.replace(\"Manage Vehicles\", \"No\"));\r\n\t}", "public void noReceipt() {\n\t\tpause(1000);\n\t\tWebElement temp = (new WebDriverWait(driver, waitTime))\n\t\t\t\t .until(ExpectedConditions.presenceOfElementLocated(By.id(\"salescompleteBtn\")));\n\t\ttemp.click();\n\t}", "public void clickCashondeliveryradiobutton(){\r\n\r\n\r\n\t\tclass Local {};\r\n\t\tReporter.log(\"TestStepComponent\"+Local.class.getEnclosingMethod().getName());\r\n\t\tReporter.log(\"TestStepInput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepOutput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepExpectedResult:- Cashondelivery Radio button clicked\");\r\n\t\ttry{\r\n\r\n\t\t\twaitforElementVisible(locator_split(\"Cashondelivery_Spain\"));\r\n\t\t\tclick(locator_split(\"Cashondelivery_Spain\"));\r\n\t\t\tThread.sleep(3000);\r\n\t\t\twaitforElementVisible(locator_split(\"Submitorder_Spain\"));\r\n\t\t\tclick(locator_split(\"Submitorder_Spain\"));\r\n\t\t\tReporter.log(\"PASS_MESSAGE:- Cashondelivery radio button clicked \");\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- Cashondelivery Radio button is not clicked \"+elementProperties.getProperty(\"Cashondelivery_Spain\"));\r\n\t\t\tthrow new NoSuchElementException(\"The element with \"\r\n\t\t\t\t\t+ elementProperties.getProperty(\"Cashondelivery_Spain\").toString().replace(\"By.\", \" \")\r\n\t\t\t\t\t+ \" not found\");\r\n\r\n\t\t}\r\n\r\n\t}", "@Override\n public void onSureClick(String value) {\n tenPayPopWindow.dismiss();\n checkPresenterImpl.addTenPayPayment(cashierResult.bill.unpaid, value);\n }", "@Test\n public void onFemaleRBTNClicked(){\n onView(withId(R.id.femaleRBTN)).perform(click()).check(matches(isChecked()));\n onView(withId(R.id.maleRBTN)).check(matches(isNotChecked()));\n }", "@Override\n\tpublic void onNoButtonDialogToConfirmDuiClicked() {\n\n\t}", "public void acceptAndProceed()\r\n {\r\n\t driver.findElement(By.id(\"PCNChecked\")).click();\r\n\t driver.findElement(By.xpath(\"/html/body/div[1]/div/div/main/div/main/div/div/div[1]/div/div/form/fieldset/div[3]/div[2]/button\")).click();\r\n }", "public void clickCardradiobutton(){\r\n\r\n\r\n\t\tclass Local {};\r\n\t\tReporter.log(\"TestStepComponent\"+Local.class.getEnclosingMethod().getName());\r\n\t\tReporter.log(\"TestStepInput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepOutput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepExpectedResult:- Cashondelivery Radio button clicked\");\r\n\t\ttry{\r\n\r\n\t\t\twaitforElementVisible(locator_split(\"Cashondelivery_Spain\"));\r\n\t\t\tclick(locator_split(\"Cashondelivery_Spain\"));\r\n\t\t\tThread.sleep(3000);\r\n\t\t\twaitforElementVisible(locator_split(\"Submitorder_Spain\"));\r\n\t\t\tclick(locator_split(\"Submitorder_Spain\"));\r\n\t\t\tReporter.log(\"PASS_MESSAGE:- Cashondelivery radio button clicked \");\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- Cashondelivery Radio button is not clicked \"+elementProperties.getProperty(\"Cashondelivery_Spain\"));\r\n\t\t\tthrow new NoSuchElementException(\"The element with \"\r\n\t\t\t\t\t+ elementProperties.getProperty(\"Cashondelivery_Spain\").toString().replace(\"By.\", \" \")\r\n\t\t\t\t\t+ \" not found\");\r\n\r\n\t\t}\r\n\r\n\t}", "@Test\n public void onMaleRBTNClicked(){\n onView(withId(R.id.maleRBTN)).perform(click()).check(matches(isChecked()));\n onView(withId(R.id.femaleRBTN)).check(matches(isNotChecked()));\n }", "public void clickOnDepartureRadioButton()\n\t{\n\t\tif(departureRadioButton.isDisplayed())\n\t\t{\n\t\t\twaitForSeconds(10);\n\t\t\tUserdefinedFunctions.scrollusingCordinate();\n\t\t\twaitForSeconds(10);\n\t\t\tdepartureRadioButton.click();\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.println(\"Consider the first selected depature flight\");\n\t\t}\n\t}", "public void CheckoutRegisterradiobutton(){\r\n\t\tclass Local {};\r\n\t\tReporter.log(\"TestStepComponent\"+Local.class.getEnclosingMethod().getName());\r\n\t\tReporter.log(\"TestStepInput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepOutput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepExpectedResult:- Registration radio button in checkout should be clicked\");\r\n\t\ttry{\r\n\r\n\t\t\tclick(locator_split(\"rdcheckoutregistrationradio\"));\r\n\t\t\twaitForPageToLoad(20);\r\n\t\t\tSystem.out.println(\"Registration radio button is clicked\");\r\n\t\t\tReporter.log(\"PASS_MESSAGE:- Registration radio button in checkout is clicked\");\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- Registration radio button in checkout is not clicked\");\r\n\t\t\tthrow new NoSuchElementException(\"The element with \"\r\n\t\t\t\t\t+ elementProperties.getProperty(\"rdcheckoutregistrationradio\").toString().replace(\"By.\", \" \")\r\n\t\t\t\t\t+ \" not found\");\r\n\t\t}\r\n\r\n\t}", "public void selectNCDConfirmed ()\r\n\t{\r\n\r\n\t\tList<WebElement> ncdconfirmedradiobuttons = orPolicyVehicleHub.rdoVehicleNCDConfirmed;\r\n\t\tfor (WebElement ncdconfirmedradiobutton : ncdconfirmedradiobuttons)\r\n\t\t{\r\n\t\t\tif (ncdconfirmedradiobutton.getAttribute (\"value\").equals (\"Y\"))\r\n\t\t\t{\r\n\t\t\t\tncdconfirmedradiobutton.click ();\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t}", "public void clickOnNotNowBtn() throws Exception {\n\t\tgetHomepagenotnowbtn().waitForVisible();\n\t\tJavascriptExecutor executor = (JavascriptExecutor) driver;\n\t\texecutor.executeScript(\"arguments[0].click()\",homepagenotnowbtn);\n\t\tSystem.out.println(\"alert is closed\" + homepagenotnowbtn);\n\t\twaitForPageToLoad();\n\t}", "@Test\n public void onLbsRBTNClicked(){\n onView(withId(R.id.lbsRBTN)).perform(click()).check(matches(isChecked()));\n onView(withId(R.id.kgsRBTN)).check(matches(isNotChecked()));\n }", "public void clickOnWithoutNotificationTemplate() {\r\n\r\n\t\treportStep(\"About to click on With out Notification Template\", \"INFO\");\r\n\r\n\t\tif(clickAfterWait(withOutTemplateNotification)) {\r\n\r\n\t\t\treportStep(\"Successfully clicked on the Without Notification template \", \"PASS\");\r\n\r\n\t\t}else {\r\n\t\t\treportStep(\"Failed to click on the Without Notification template \", \"FAIL\");\r\n\t\t}\r\n\t}", "public void clickCreditCardradio(){\t\t\r\n\t\tString countrygroup_cc = \"PresselAustria\";\r\n\t\tclass Local {};\r\n\t\tReporter.log(\"TestStepComponent\"+Local.class.getEnclosingMethod().getName());\r\n\t\tReporter.log(\"TestStepInput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepOutput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepExpectedResult:- The CreditCard radio button should be clicked\");\r\n\t\ttry{\r\n\t\t\tif(!(countrygroup_cc).contains(countries.get(countrycount))){\r\n\t\t\t\tclick(locator_split(\"rdcreditcardradiobuton\"));\r\n\t\t\t\tReporter.log(\"FAIL_MESSAGE:- The CreditCard radio button is clicked\");\r\n\t\t\t}else{\r\n\t\t\t\tReporter.log(\"FAIL_MESSAGE:- The CreditCard radio button is not clicked\");\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- The CreditCard radio button is not clicked\");\r\n\t\t\tthrow new NoSuchElementException(\"The element with \"\r\n\t\t\t\t\t+ elementProperties.getProperty(\"rdcreditcardradiobuton\").toString().replace(\"By.\", \" \")\r\n\t\t\t\t\t+ \" not found\");\r\n\r\n\t\t}\r\n\t}", "@Test(priority=2)\n\tpublic void verifyMaleRadioBtn() {\n\t\tboolean radioBtn = driver.findElement(By.xpath(\"(//input[contains(@type,'radio')])[2]\")).isSelected();\n\t\tAssert.assertFalse(radioBtn);\n\t}", "@Test\n public void onKgsRBTNClicked(){\n onView(withId(R.id.kgsRBTN)).perform(click()).check(matches(isChecked()));\n onView(withId(R.id.lbsRBTN)).check(matches(isNotChecked()));\n }", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tcheckAnswer(false);\n\t\t\t\t\n\t\t\t}", "public void selectNCDProtectedRadio ()\r\n\t{\r\n\t\tList<WebElement> ncdradiobuttons = orPolicyVehicleHub.rdoVehicleNCDProtected;\r\n\t\tfor (WebElement ncdradiobutton : ncdradiobuttons)\r\n\t\t{\r\n\t\t\tif (ncdradiobutton.getAttribute (\"value\").equals (\"Y\"))\r\n\t\t\t{\r\n\t\t\t\tncdradiobutton.click ();\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "@Override\n public void onClick(View v) {\n if(!applicationWithdrawalFragment.financialCardCheck) {\n holder.radioButton.setVisibility(View.GONE);\n if (holder.ll_card_detail_view.getVisibility() != View.VISIBLE)\n holder.ll_card_detail_view.setVisibility(View.VISIBLE);\n else\n holder.ll_card_detail_view.setVisibility(View.GONE);\n }\n }", "public void clickRegistrationaccounttyperadiobutton(String option){\r\n\r\n\t\tString Acctype = getValue(option);\r\n\t\tString countrygroup_accounttype =\"Spain,France,BernardFrance,BernardBelgium,PresselAustria\";\r\n\t\tclass Local {};\r\n\t\tReporter.log(\"TestStepComponent\"+Local.class.getEnclosingMethod().getName());\r\n\t\tReporter.log(\"TestStepInput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepOutput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepExpectedResult:- Account type Radio button clicked\");\r\n\t\ttry{\r\n\t\t\tif(!(countrygroup_accounttype).contains(countries.get(countrycount))){\r\n\t\t\t\twaitforElementVisible(locator_split(\"rdbRegistrationAccounttype\"));\r\n\t\t\t\tclickSpecificElementByProperty(locator_split(\"rdbRegistrationAccounttype\"),\"value\",Acctype);\r\n\t\t\t\tSystem.out.println(\"Account type Radio button clicked for \"+Acctype);\r\n\t\t\t\tReporter.log(\"PASS_MESSAGE:- Account type Radio button clicked for \"+Acctype);\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tReporter.log(\"PASS_MESSAGE:- Account type Radio button is not applicable to \" + country);\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- Account type Radio button is not clicked \"+elementProperties.getProperty(\"rdbRegistrationAccounttype\"));\r\n\t\t\tthrow new NoSuchElementException(\"The element with \"\r\n\t\t\t\t\t+ elementProperties.getProperty(\"rdbRegistrationAccounttype\").toString().replace(\"By.\", \" \")\r\n\t\t\t\t\t+ \" not found\");\r\n\r\n\t\t}\r\n\r\n\t}", "public void click_NoofAlert_msg() throws InterruptedException {\r\n\t\tWebElement alrtmsg = driver.findElementByName(\"You are about to lose your changes.Do you want to continue ?\");\r\n\r\n\t\tif (IsElementVisibleStatus(alrtmsg)) {\r\n\t\t\tWebElement alrtmsg_NoBtn = driver.findElementByName(\"No\");\r\n\t\t\tclickOn(alrtmsg_NoBtn);\r\n\t\t} else {\r\n\t\t\tSystem.out.println(\"No Alert message displayed\");\r\n\t\t}\r\n\r\n\t}", "public void clickYes ();", "public void clickcreditcardradiobutton(){\t\r\n\r\n\t\tclass Local {};\r\n\t\tReporter.log(\"TestStepComponent\"+Local.class.getEnclosingMethod().getName());\r\n\t\tReporter.log(\"TestStepInput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepOutput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepExpectedResult:- Item should be searched in the search box\");\r\n\t\ttry{\r\n\t\t\t//editSubmit(locator_split(\"txtSearch\"));\r\n\t\t\twaitforElementVisible(locator_split(\"creditcardradiobuton\"));\r\n\t\t\tclick(locator_split(\"creditcardradiobuton\"));\r\n\t\t\tThread.sleep(2000);\r\n\t\t\tReporter.log(\"PASS_MESSAGE:- Item is searched in the search box\");\r\n\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- Item is not entered in the search box \"+elementProperties.getProperty(\"creditcardradiobuton\"));\r\n\t\t\tthrow new NoSuchElementException(\"The element with \"\r\n\t\t\t\t\t+ elementProperties.getProperty(\"creditcardradiobuton\").toString().replace(\"By.\", \" \")\r\n\t\t\t\t\t+ \" not found\");\r\n\r\n\t\t}\r\n\t}", "public void Click_Done()\r\n\t{\r\n\t\tExplicitWait(Specialdone);\r\n\t\tif (Specialdone.isDisplayed()) \r\n\t\t{\r\n\t\t\tJavascriptexecutor(Specialdone);\r\n\t\t\tExplicitWait(Checkavailability);\r\n\t\t\t//System.out.println(\"Clicked on Special Rate plan done button \");\r\n\t\t\tlogger.info(\"Clicked on Special Rate plan done button\");\r\n\t\t\ttest.log(Status.INFO, \"Clicked on Special Rate plan done button\");\r\n\r\n\t\t} else {\r\n\t\t\t//System.out.println(\"Special Rate plan done button not found\");\r\n\t\t\tlogger.error(\"Special Rate plan done button not found\");\r\n\t\t\ttest.log(Status.FAIL, \"Special Rate plan done button not found\");\r\n\r\n\t\t}\r\n\t}", "public void areYouAAAmemberRadioButtonTest() {\r\n\t\tif(Step.Wait.forElementVisible(QuoteForm_ComponentObject.yesRadioButtonLocator, \"Yes radio button\", 5) &&\r\n\t\t\t\tStep.Wait.forElementVisible(QuoteForm_ComponentObject.noRadioButtonLocator, \"No radio button\", 5)){\r\n\t\t\tStep.Wait.forElementVisible(QuoteForm_ComponentObject.yesButtonInvalidLocator, \"Yes button invalid (your quote button has already been pressed before)\", 5);\r\n\t\t\tStep.Wait.forElementVisible(QuoteForm_ComponentObject.noButtonInvalidLocator, \"No button invalid (your quote button has already been pressed before)\", 5);\r\n\t\t\t\r\n\t\t\tStep.Action.click(QuoteForm_ComponentObject.yesRadioButtonLocator, \"AAA member (yes radio button)\");\r\n\t\t\tStep.Wait.forElementVisible(QuoteForm_ComponentObject.yesButtonValidLocator, \"Yes button is now valid\", 5);\r\n\t\t\tStep.Wait.forElementVisible(QuoteForm_ComponentObject.noButtonValidLocator, \"No button is now valid\", 5);\r\n\t\t}\r\n\t}", "public void clickNonStopFlights(WebDriver driver) throws Throwable {\n\t\tnonStopflights.click();\n\t\tThread.sleep(3000l);\n//\t\tSelect se = new Select(driver.findElement(By.xpath(\"//select[@id='listings-sort']\")));\n//\t\tse.selectByVisibleText(\"Price (Highest)\");\n//\t\tThread.sleep(15000);\n\n\t}", "@Override\n public void onSureClick(Double value, Double change) {\n checkPresenterImpl.addMemberPayment(value, null);\n }", "public void selectNonstopForDeparture() {\n\t\tif (!nonStopButtonForDepartureTrip.isSelected()) {\n\t\t\tnonStopButtonForDepartureTrip.click();\n\t\t}\n\t}", "@Override\n public void onSureClick(final String pwd) {\n final NumPadPopWindow numPadPopWindow = new NumPadPopWindow(v, getActivity(), cashierResult, paymentMode, new NumPadPopWindow.OnSureListener() {\n\n @Override\n public void onSureClick(Double value, Double change) {\n // TODO Auto-generated method stub\n checkPresenterImpl.addMemberPayment(value, pwd);\n }\n });\n numPadPopWindow.show();\n\n\n }", "public void useOfNicotineRadioButtonTest() {\r\n\t\tif(Step.Wait.forElementVisible(QuoteForm_ComponentObject.nicotineUseYesLocator, \"Nicotine use YES button\", 5) &&\r\n\t\t\t\tStep.Wait.forElementVisible(QuoteForm_ComponentObject.nicotineUseNoLocator, \"Nicotine use NO button\", 5)){\r\n\t\t\tStep.Wait.forElementVisible(QuoteForm_ComponentObject.nicotineUseYesInvalidInputLocator, \"Nicotine YES button is not selected by default\", 5);\r\n\t\t\tStep.Wait.forElementVisible(QuoteForm_ComponentObject.nicotineUseNoInvalidInputLocator, \"Nicotine NO button is not selected by default\", 5);\r\n\t\t\t\r\n\t\t\tStep.Action.click(QuoteForm_ComponentObject.nicotineUseYesLocator, \"Nicotine use YES button\");\r\n\t\t\tStep.Wait.forElementVisible(QuoteForm_ComponentObject.nicotineUseYesValidInputLocator, \"Nicotine YES button appears selected\", 5);\r\n\t\t\tStep.Wait.forElementVisible(QuoteForm_ComponentObject.nicotineUseNoValidInputLocator, \"Nicotine NO button no longer shows an error\", 5);\r\n\t\t}\r\n\t}", "public void onClick(View v) {\n\t\t\t\t if (tbtn.isChecked()) {\r\n\t\t\t\t\t Toast.makeText(getApplicationContext(), \"Turn off Send To Sequencing\", Toast.LENGTH_LONG).show();\r\n\t\t\t\t }\r\n\t\t\t\t else{\r\n\t\t\t\tshowDialog(DATE_DIALOG1_ID);\r\n\t\t\t\t }\r\n\t\t\t}", "@Override\n\tpublic void onClick(View v) {\n\t\tswitch (v.getId()) {\n\t\tcase R.id.rl_back_otherfee:\n\t\t\tfinish();\n\t\t\tbreak;\n\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\t}", "@Override\n\tpublic void Control() {\n\t\trl_back_otherfee.setOnClickListener(this);\n\t}", "@Override\n public void onSureClick(Double value, Double change) {\n checkPresenterImpl.addMemberPayment(value, pwd);\n }", "public void pending()\n\t{\n\t\tdriver.findElementByName(OR.getProperty(\"Pending\")).click();\n\t}", "public void ClickYes()\n\t{\n\t\tdriver.findElementByName(OR.getProperty(\"Yes\")).click();\n\t}", "public void makeAnotherPayment() {\n btnMakeAnotherPayment().click();\n }", "public void clickFreeDaysHistoryMenu() {\r\n\t\tfreeDaysHistoryButton.click();\r\n\t}", "public void clickbtnReject() {\n\t\twaitForElementClickable(10,btnReject);\n\t\tdriver.findElement(btnReject).click();\n\t\tsleep(1);\n\t}", "@Test\n public void testNoOpenDaysCheck() {\n window.textBox(\"storeNameTFld\").setText(\"store1\");\n window.textBox(\"numOfSeatsTFld\").setText(\"155\");\n window.textBox(\"storeAddressTFld\").setText(\"address\");\n window.textBox(\"storeCityTFld\").setText(\"city\");\n window.textBox(\"storePhoneTFld\").setText(\"123123\");\n window.textBox(\"emailTFld\").setText(\"hlias.karasyahoo.gr\");\n window.textBox(\"fromOpenHoursTFld\").setText(\"18:00\");\n window.textBox(\"toOpenHoursTFld\").setText(\"23:00\");\n window.button(\"addStoreBtn\").click();\n window.optionPane().okButton().click();\n window.label(\"openDaysFalseLbl\").requireVisible();\n }", "@Then(\"^I click general radio button$\")\n public void i_click_general_radio_button() {\n onViewWithId(R.id.general).click();\n }", "public void clickOnReturnRadioButton()\n\t{\n\t\tif(departureRadioButton.isDisplayed())\n\t\t{\n\t\t\twaitForSeconds(5);\n\t\t\treturnFlightRadioButton.click();\n\t\t}\n\t\telse\n\t\t{\n\t\t\twaitForSeconds(10);\n\t\t\tUserdefinedFunctions.scrollusingCordinate();\n\t\t\twaitForSeconds(10);\n\t\t\treturnFlightRadioButton.click();\n\t\t}\n\n\t}", "@Override\n protected void negativeClick() {\n\n }", "public void clickSetDiscount() {\n waitFor(20);\n if (isElementVisible(\"set_diskon_menu_lainnya\", 10)) {\n tapElement(\"set_diskon_menu_lainnya\");\n } else {\n deleteDiscount();\n editWithMenuLainnya();\n clickSetDiscount();\n }\n }", "public void SpecialRateplan_selection(String Rateplan) throws InterruptedException\r\n\t{\r\n\t\tif(SeleniumRepo.driver.findElement(By.xpath(\"//label[text()='\"+Rateplan+\"']\")).isDisplayed())\r\n\t\t{\r\n\t\t\tSeleniumRepo.driver.findElement(By.xpath(\"//label[text()='\"+Rateplan+\"']\")).click();\r\n\t\t\t//System.out.println(\"Rateplan selected successfully\");\r\n\t\t\ttest.log(Status.INFO, \"Rateplan selected successfully\");\r\n\r\n\t\t\tThread.sleep(2000);\t\r\n\t\t\tif (Specialdone.isDisplayed()) \r\n\t\t\t{\r\n\t\t\t\tSpecialdone.click();\r\n\t\t\t\tSeleniumRepo.waitForPageLoaded();\r\n\t\t\t\t//System.out.println(\"Clicked on done\");\r\n\t\t\t\tlogger.info(\"Clicked on done\");\r\n\t\t\t\ttest.log(Status.INFO, \"Clicked on done\");\r\n\r\n\t\t\t}\r\n\t\t\telse \r\n\t\t\t{\r\n\t\t\t\t//System.out.println(\"not Clicked on done\");\r\n\t\t\t\tlogger.error(\"not Clicked on done\");\r\n\t\t\t\ttest.log(Status.FAIL, \"not Clicked on done\");\r\n\r\n\t\t\t}\r\n\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\ttest.log(Status.FAIL, \"Element is not present\");\r\n\r\n\t\t}\t\r\n\t}", "public void selectNonstopForReturn() {\n\t\tif (!nonStopButtonForReturnTrip.isSelected()) {\n\t\t\tnonStopButtonForReturnTrip.click();\n\t\n\t\t}\n\t}", "public void selectTotalLossIndicator (String strTotalLoss)\r\n\t{\r\n\t\tif (strTotalLoss.equalsIgnoreCase (\"Yes\") || strTotalLoss.equalsIgnoreCase (\"Y\"))\r\n\t\t{\r\n\t\t\tList<WebElement> radiobuttons = orClaimEstimateSummary.rdoTotalLossIndicator;\r\n\t\t\tfor (WebElement radiobutton : radiobuttons)\r\n\t\t\t{\r\n\t\t\t\tif (radiobutton.getAttribute (\"value\").equals (\"1\"))\r\n\t\t\t\t{\r\n\t\t\t\t\tradiobutton.click ();\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\telse if (strTotalLoss.equalsIgnoreCase (\"No\") || strTotalLoss.equalsIgnoreCase (\"N\"))\r\n\t\t{\r\n\t\t\tList<WebElement> radiobuttons = orClaimEstimateSummary.rdoTotalLossIndicator;\r\n\t\t\tfor (WebElement radiobutton : radiobuttons)\r\n\t\t\t{\r\n\t\t\t\tif (radiobutton.getAttribute (\"value\").equals (\"0\"))\r\n\t\t\t\t{\r\n\t\t\t\t\tradiobutton.click ();\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "@Test\r\n\tpublic void testButtonPressedNotEnoughCred() {\r\n\t\tvend.getSelectionButton(0).press();\r\n\t\tassertTrue(vend.getDeliveryChute().removeItems().length==0);\t\t\r\n\t}", "public void onClick(DialogInterface dialog, int id) {\n dialog.cancel();\n Toast.makeText(getApplicationContext(), \"payment not confirmed\",\n Toast.LENGTH_SHORT).show();\n }", "public void onClick(DialogInterface dialog, int which) {\n\n dialog.cancel();\n\n\n edtMerchantAmount.setText(\"\");\n// edtMerchantAlternateMobileNumber.setText(\"\");\n// edtMerchantAlternateName.setText(\"\");\n// edtMerchantRemarks.setText(\"\");\n edtMpin.setText(\"\");\n chkFavMerchant.setChecked(false);\n\n\n }", "@Test(description = \"Test to validate price reminder when no price is entered\", priority = 0)\n\tpublic void UserStory1() throws HeadlessException, AWTException, IOException, InterruptedException\n\t{\n\t\tLoanCalculatorPage loan_cal = new LoanCalculatorPage();\t\t\n\t\tloan_cal.validateCalHomePage();\n\t\t//testLog.log(Status.INFO, \"Loan calculator page launched\");\n\t\tint testCaseID = 1;\n\t\t\n\t\t\n\t\t//Validate the error message when no amount is input\t\t\n\t\tloan_cal.validateNoPrice(testCaseID);\n\t}", "public void clickCalendarCheckOutDate() {\n\t\tcalendarCheckOutButton.click();\n\t}", "public void checkAlert() {\n try {\n wait(1000);\n driver.switchTo().alert();\n driver.findElement(By.xpath(\"//*[@title='No, thanks']\")).click();\n } catch (Exception e) {\n // Do nothing\n }\n }", "public void clickTaxExemptLink()\n\t{\n \telementUtils.performElementClick(wbTaxExemptLink);\n\t}", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\toptd=btnoptd.getText().toString();\n\t\t\t\tCheckAns(optd,currentPosition);\n\t\t\t\t//Log.e(\"ans\", optd);\n\t\t\t}", "public static void clickRadioButton(String xpath) {\r\n\t\tcheckElementNotInteractableExceptionByXPath(xpath, \"\\\"Check right answer\\\" radio button\");\r\n\t}", "@Test //Test to see you are able to buy policy and confirmation page is displayed\n public void policyConfirmationTest() throws InterruptedException {\n \t WebElement submitPolicy=driver.findElement(By.xpath(\"/html/body/center/form/center[3]/pre/input[3]\"));\n \t submitPolicy.click();\n \t assertTrue(driver.findElement(By.xpath(\"/html/body/center[2]/h3\")).isDisplayed()); \n\t Thread.sleep(3000);\n\t driver.close();\n\n}", "public void checkOutFlight() {\n confirmationPage.checkButton();\n }", "public void no() {\n\n\t\tno = new JButton(\"No\");\n\n\t\tno.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tprevious = current;\n\t\t\t\tcurrent = current.getRight();\n\n\t\t\t\t// if current is not a leaf\n\t\t\t\tif (current != null) {\n\t\t\t\t\tquestion.setText(current.getData().toString());\n\t\t\t\t\tvalidate();\n\t\t\t\t}\n\n\t\t\t\t// Once you hit a leaf, set a final message\n\t\t\t\telse {\n\t\t\t\t\t// Call the function that creates an option panel\n\t\t\t\t\toptionPane();\n\n\t\t\t\t\t// Save changes user made\n\t\t\t\t\tCommutativeExpressionWriter.writeCommutativeExpr(\n\t\t\t\t\t\t\tcontroller.tree, \"food.xml\");\n\n\t\t\t\t\t// add a restart button that restores the game\n\t\t\t\t\trestartGame();\n\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t\t// add No button to right\n\t\tsouth.add(no, BorderLayout.EAST);\n\t\tvalidate();\n\t}", "@Override\r\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tif (number != 0) {\r\n\t\t\t\t\tgetnumber_three_direct_sum_xuan_clear();\r\n\t\t\t\t\t// getnumber_three_direct_sum_qian_clear();\r\n\t\t\t\t\t// getnumber_three_direct_sum_bai_clear();\r\n\t\t\t\t\t// getnumber_three_direct_sum_shi_clear();\r\n\t\t\t\t\t// getnumber_three_direct_sum_ge_clear();\r\n\t\t\t\t}\r\n\t\t\t\tmMainActivity.LinearLayout_ischooseonclick();\r\n\t\t\t\tmMainActivity.getresultint(getresultint());\r\n\t\t\t\tmMainActivity.showresult(getresult());\r\n\r\n\t\t\t}", "public void selectNegativeCrossMatchCheckbox() throws InterruptedException {\n setLocatorByXpathAndClick(negativeCrossMatchLocator);\n Thread.sleep(500);\n }", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tClickFineModulation();\n\t\t\t}", "@Test\r\n\tpublic void testButtonPressedSafety() {\r\n\t\tSelectionButton button = vend.getSelectionButton(0);\r\n\t\tvend.enableSafety();\r\n\t\tbutton.press();\r\n\t\tassertTrue(vend.getDeliveryChute().removeItems().length==0);\r\n\t}", "public void ClickPrivacyPolicycheckbox(){\r\n\t\tclass Local {};\r\n\t\tReporter.log(\"TestStepComponent\"+Local.class.getEnclosingMethod().getName());\r\n\t\tReporter.log(\"TestStepInput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepOutput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepExpectedResult:- Privacy Policy checkbox should be checked\");\r\n\t\ttry{\r\n\r\n\t\t\tclick(locator_split(\"rdcheckoutprivacypolicy\"));\r\n\t\t\tSystem.out.println(\"Privacy Policy checkbox is checked\");\r\n\t\t\tReporter.log(\"PASS_MESSAGE:- Privacy Policy checkbox is checked\");\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- Privacy Policy checkbox is not checked\");\r\n\t\t\tthrow new NoSuchElementException(\"The element with \"\r\n\t\t\t\t\t+ elementProperties.getProperty(\"rdcheckoutprivacypolicy\").toString().replace(\"By.\", \" \")\r\n\t\t\t\t\t+ \" not found\");\r\n\t\t}\r\n\r\n\t}", "@Override\n\t\t\tpublic void onClick(View v) {\n\n\t\t\t\toptb=btnoptb.getText().toString();\n\t\t\t\tCheckAns(optb,currentPosition);\n\t\t\t\t//Log.e(\"ans\", optb);\n\n\t\t\t}", "@Override\r\n\t\t\t public void onClick(View v) {\n\t\t\t\t bFlagZhaopin = !bFlagZhaopin;\r\n\t\t\t\t zhaopin_btn.setChecked(bFlagZhaopin);\r\n\t\t\t }", "public ArchivePage clickUnBlockNumberFrmMoreOptn(){\n\t\t\t\t\ttry {\n\t\t\t\t\t\tThread.sleep(5000);\n\t\t\t\t\t\tUtils.uBase.clickByImage(\"threeDots\");\n\t\t\t\t\t\tAdvanceReporting.addLogs(\"pass\", \"Click Three Dots BtnImg\");\n\t\t\t\t\t\tThread.sleep(4000);\n\t\t\t\t\t\tUtils.uBase.clickByImage(\"UnblockNumber\");\n\t\t\t\t\t\tAdvanceReporting.addLogs(\"info\", \"UnBlock number clicked\");\n\t\t\t\t\t\tAdvanceReporting.addLogs(\"pass\", \"UnBlock number clicked\");\n\t\t\t\t\t\tThread.sleep(4000);\n\t\t\t\t\t\tUtils.uBase.clickByImage(\"UnblockButton\");\n\t\t\t\t\t\tAdvanceReporting.addLogs(\"info\", \"UnBlock number clicked\");\n\t\t\t\t\t\tAdvanceReporting.addLogs(\"pass\", \"UnBlock number clicked\");\n\t\t\t\t\t\tThread.sleep(2000);\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tAdvanceReporting.addLogs(\"info\", \"UnBlock number not clicked\");\n\t\t\t\t\t\tAdvanceReporting.addLogs(\"fail\", \"Error Message: \" + e.getMessage());\n\t\t\t\t\t\te.printStackTrace(); Assert.fail();\n\t\t\t\t\t}\n\t\t\t\t\treturn this;\n\t\t\t\t}", "public void clickOnVolumeDiscount()\n\t{\n\t\twaitForVisibility(volumeDiscount);\n\t\tvolumeDiscount.click();\n\t}", "public void clickbtnApprove() {\n\t\twaitForElementClickable(10,btnApprove);\n\t\tclickByJavaScript(btnApprove);\n\t\tsleep(1);\n\t}", "public void onClick(DialogInterface dialog, int id) {\n dialog.cancel();\n //Toast.makeText(getApplicationContext(), \"you clicked NO\",\n // Toast.LENGTH_SHORT).show();\n }", "@Override\r\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tif (number != 0) {\r\n\t\t\t\t\tgetnumber_Fourgroup6_xuan_clear();\r\n\t\t\t\t\t// getnumber_Fourgroup6_qian_clear();\r\n\t\t\t\t\t// getnumber_Fourgroup6_bai_clear();\r\n\t\t\t\t\t// getnumber_Fourgroup6_shi_clear();\r\n\t\t\t\t\t// getnumber_Fourgroup6_ge_clear();\r\n\t\t\t\t}\r\n\t\t\t\tmMainActivity.LinearLayout_ischooseonclick();\r\n\t\t\t\tmMainActivity.getresultint(getresultint());\r\n\t\t\t\tmMainActivity.showresult(getresult());\r\n\t\t\t\tmMainActivity.getmoney();\r\n\t\t\t}", "private void clickAndCheckDateButton ( final String viewDate ) {\n final List<WebElement> radioList = driver.findElements( By.name( \"date\" ) );\n\n for ( final WebElement element : radioList ) {\n final String v = element.getAttribute( \"value\" );\n final ZonedDateTime datetimeLabor = ZonedDateTime.parse( v );\n String g = \"\";\n if ( datetimeLabor.getMonthValue() < 10 ) {\n g += \"0\" + datetimeLabor.getMonthValue() + \"/\";\n }\n else {\n g += datetimeLabor.getMonthValue() + \"/\";\n }\n if ( datetimeLabor.getDayOfMonth() < 10 ) {\n g += \"0\" + datetimeLabor.getDayOfMonth() + \"/\";\n }\n else {\n g += datetimeLabor.getDayOfMonth() + \"/\";\n }\n g += datetimeLabor.getYear();\n if ( g.equals( viewDate ) ) {\n element.click();\n // assertTextPresent( \"Labor and Delivery Reports for: \" +\n // viewDate );\n return;\n }\n }\n\n fail( \"The date isn't in the radio list.\" );\n }", "public void onRadioButtonClicked(View view) {\n boolean checked = ((RadioButton) view).isChecked();\n\n // Check which radio button was clicked\n switch(view.getId()) {\n case R.id.radio_facturacion:\n if (checked)\n // Pirates are the best\n esGarantia=false;\n break;\n case R.id.radio_garantias:\n if (checked)\n // Ninjas rule\n esGarantia=true;\n break;\n }\n }", "@Override\r\n\t\t\t public void onClick(View v) {\n\t\t\t\t bFlagLianxiren = !bFlagLianxiren;\r\n\t\t\t\t lianxiren_btn.setChecked(bFlagLianxiren);\r\n\t\t\t }", "@Test\n public void shouldSeeZeroValueWhenResetButtonIsSelected() {\n\n\n //1. Select the Reset button.\n //2. Verify Interest rate= 0.0\n //3. Verify Price= 0\n //4. Verify Down Payment= 0\n //5. Verify Trade-In Value= 0\n //6. Verify Amount Owed in Trade=0\n }", "public void actionPerformed(ActionEvent e)\n {\n if (yesRadio.isSelected())\n {\n parent.unlockNextButton();\n }\n else\n {\n parent.lockNextButton();\n }\n }", "@FXML\r\n void samePaymentMethod(ActionEvent event) {\r\n \trbChangeCreditNumber.setSelected(false);\r\n \trbtnPreviousCreditCard.setSelected(true);\r\n \tsetCreditCardBooleanBinding();\r\n \ttfIDNumber.setDisable(true);\r\n \tdpCreditCardExpiryDate.setDisable(true);\r\n \ttfCreditCard1.setDisable(true);\r\n \ttfCreditCard2.setDisable(true);\r\n \ttfCreditCard3.setDisable(true);\r\n \ttfCreditCard4.setDisable(true);\r\n }", "@Then(\"^My Account button is not present$\")\r\n public void my_Account_button_is_not_present() throws Throwable {\n throw new PendingException();\r\n }", "@Test\r\n\tpublic void testButtonPressedDisabled() {\r\n\t\tSelectionButton button = vend.getSelectionButton(0);\r\n\t\tbutton.disable();\r\n\t\tbutton.press();\r\n\t\tassertTrue(vend.getDeliveryChute().removeItems().length==0);\r\n\t}", "@Override\n public void onClick(View v) {\n if (TextUtils.isEmpty(totalBillEditText.getText().toString().trim())) {\n\n totalBillEditText.setError(\"Can't leave field empty.\");\n return;\n }\n\n if (tipPercent == 0)\n return;\n\n tipPercent -= 1;\n updateFields();\n populateUI();\n\n }", "public void clickOnEnrollNowButton() {\n\t\tif(enrollNowButton.isEnabled()) {\n\t\twaitAndClick(enrollNowButton);\n\t\t}\n\t}", "public void clickFirstQviewbutton(){\r\n\t\tclass Local {};\r\n\t\tReporter.log(\"TestStepComponent\"+Local.class.getEnclosingMethod().getName());\r\n\t\tReporter.log(\"TestStepInput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepOutput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepExpectedResult:- Qview First Buy button should be clicked\");\r\n\t\ttry{\r\n\r\n\t\t\t/*List<WebElement> eles=driver.findElements((locator_split(\"btnQview\")));\r\n\t\t\tSystem.out.println(eles.size());\r\n\t\t\teles.get(0).click();*/\r\n\r\n\t\t\tclick(locator_split(\"btnQview\"));\t\t\t\t\r\n\t\t\tSystem.out.println(\"Clicked on the First Buy button\");\r\n\t\t\tReporter.log(\"PASS_MESSAGE:- First Buy Button is clicked\");\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- Qview First Buy button is not clicked or Not Available\");\r\n\t\t\tthrow new NoSuchElementException(\"The element with\"\r\n\t\t\t\t\t+ elementProperties.getProperty(\"btnQview\")\r\n\t\t\t\t\t+ \" not found\");\r\n\r\n\t\t}\r\n\r\n\t}", "public void onClick(View v) {\n\t\t\t\tint selectedId = radioGroup.getCheckedRadioButtonId();\n\t \n\t\t\t\t// find the radiobutton by returned id\n\t\t\t radioButton = (RadioButton) findViewById(selectedId);\n\t\t\t if(selectedId ==R.id.radio3){\n\t\t\t \t\n\t\t\t \tint myNum = Integer.parseInt(MainActivity.points);\n\t\t\t \tmyNum += 5;\n\t\t\t \tMainActivity.points = String.valueOf(myNum);\n\t\t\t \tIntent intent=new Intent(Test.this,Star.class);\n\t\t\t \tstartActivity(intent);\n\t\t\t \t\n\t\t\t \t\tToast.makeText(Test.this,\n\t\t\t \t\t\"Correct Answer\", Toast.LENGTH_SHORT).show();\n\t\t\t \t\t}\n\t\t\t else{\n\t\t\t \tToast.makeText(Test.this,\n\t\t\t\t \t\t\"Try Again\", Toast.LENGTH_SHORT).show();\n\t\t\t }\n\t\t\t }", "public void clickSubmitOnly() {\r\n\t\tutilities.clickOnElement(btnSubmit);\r\n\t}", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tcheckAnswer(true);\n\t\t\t\t\n\t\t\t}", "public void doNegativeClick() {\n\t\tToast.makeText(this, \"Заполните все нужные поля\", Toast.LENGTH_SHORT)\n\t\t\t\t.show();\n\t}", "public void onNo();", "public void ClickCommissionRatesPage() {\r\n\t\tcommissionrates.click();\r\n\t\t\tLog(\"Clicked the \\\"Commission Rates\\\" button on the Birthdays page\");\r\n\t}", "public void clickIfExists() {\n try {\n\n waitTillElementVisible(5000);\n mouse.click(driver, locator);\n\n } catch (Exception e) {\n log.error(\"exception :\", e);\n }\n }", "@Override\n public void onClick(DialogInterface dialog, int which, boolean isChecked) {\n\n }", "@Override\n public void onClick(DialogInterface dialog, int which, boolean isChecked) {\n\n }", "public static WebElement btn_clickInqNowForUnvPdtAtPdtListing() throws Exception{\r\n \ttry{\r\n \t\telement = driver.findElement(\r\n \t\t\t\tBy.xpath(\"(//*[@id='unverifpparea']//a[contains(text(),'Inquire Now')])[position()=1]\"));\r\n \t\tAdd_Log.info(\"Inquire Now button for Unverified Product is click on the page.\");\r\n \t\t\r\n \t}catch(Exception e){\r\n \t\tAdd_Log.error(\"Inquire Now button for Unverified Product is NOT found on the page.\");\r\n \t\tthrow(e);\r\n \t}\r\n \treturn element;\r\n }", "public void uncheck () {\n // declaring local variables\n WebElement webElement;\n\n if (isStubbed()) {\n log(\"=== This checkbox's locator is currently stubbed out. ===\");\n } else {\n // getting the web element of the check box with the default timeout\n // and then check its status\n if (this.isChecked()) {\n // need to give a second for the browser to catch up with the web driver\n //sleep(1, TimeUnit.SECONDS);\n\n // Directly get the web element since we know that it exists and is displayed\n webElement = getWebElement ();\n webElement.click();\n\n\n\n }\n }\n }", "@When(\"user clicks on checkoutbutton\")\r\n\tpublic void usert_clicks_on_checkoutbutton() {\n\t\tdriver.findElement(By.xpath(\"//*[@id=\\\"cart\\\"]/tfoot/tr[2]/td[5]/a\")).click();\r\n\t}", "@Override\r\n\t\t\tpublic void onClick(View v) {\n\r\n\t\t\t\tpayment_type = \"0\";\r\n\r\n\t\t\t}", "private void clearReminderForm() {\n income_Rad.isSelected();\n dueDate_date.setDate(null);\n ToFrom_Txt.setText(\"\");\n Amount_Txt.setText(\"\");\n category_comb.setSelectedItem(\"other\");\n frequency_comb.setSelectedItem(\"one time\");\n endBy_date.setDate(null);\n }", "public void click_Continue_ShippingSummary()\n\t{\n\t\twaitForVisibility(continueShippingSummary);\n\t\tcontinueShippingSummary.click();\n\t}", "public void manageCashDrawerBtn() {\n\t\tpause(1000);\n\t\tWebElement temp = (new WebDriverWait(driver, waitTime))\n\t\t\t\t .until(ExpectedConditions.presenceOfElementLocated(By.id(\"managePrtBtn\")));\n\t\ttemp.click();\n\t\tpause(1000);\n\t}" ]
[ "0.67374706", "0.64485586", "0.6399603", "0.6332137", "0.6118977", "0.6075209", "0.5921444", "0.58660907", "0.5823887", "0.581575", "0.5778554", "0.57553786", "0.5750075", "0.5743438", "0.5742938", "0.5729414", "0.5710401", "0.5701184", "0.5687777", "0.5614791", "0.5593771", "0.55870163", "0.55852395", "0.55832386", "0.5563709", "0.5556332", "0.55483866", "0.5543515", "0.55431277", "0.55315685", "0.55268675", "0.55211943", "0.55080473", "0.55016065", "0.5494299", "0.5485465", "0.54711777", "0.54675454", "0.546639", "0.5465741", "0.5463258", "0.5462348", "0.5449845", "0.54475915", "0.5445946", "0.54395694", "0.54319096", "0.5424572", "0.54147786", "0.54131496", "0.54125905", "0.541127", "0.5409438", "0.54084754", "0.5375006", "0.53632283", "0.5349195", "0.5339172", "0.5339086", "0.53265524", "0.53150755", "0.5314869", "0.5301581", "0.5297555", "0.5285284", "0.528382", "0.5266085", "0.52624476", "0.5250785", "0.524893", "0.52450734", "0.5244777", "0.5243634", "0.52249914", "0.5224527", "0.52232736", "0.52195644", "0.52072656", "0.5205971", "0.5200435", "0.5197781", "0.51977324", "0.51925576", "0.51902765", "0.51827323", "0.5177866", "0.5175402", "0.51740557", "0.517077", "0.5166972", "0.51661944", "0.5164643", "0.5164643", "0.51607746", "0.5160517", "0.515995", "0.51567507", "0.5156266", "0.5156226", "0.5152625" ]
0.87659854
0
Integer x = Integer.parseInt("128"); Integer y = Integer.parseInt("128"); System.out.println(x==y); String str1 = "DD"; String str2 = "DD"; String str3 = "D"+"D"; String str4 = new String("DD"); System.out.println(str1 == str2); System.out.println(str2 == str3); System.out.println(str3 == str4); String str4 = new String("DD"); str4 = str4.intern(); String str2 = "DD"; System.out.println(str4 == str2); int a = 000001; byte i = 01; byte s = 127; s+= 1; System.out.println(s);
public static void main(String[] args) { System.out.println(Runtime.getRuntime().availableProcessors()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) {\n\t\tString s = new String(\"abc\");\r\n\t\tSystem.out.println(s.hashCode());\r\n\t\tCharacter a = 'a';\r\n\t\tCharacter b = 'b';\r\n\t\tCharacter c = 'c';\r\n\t\tint i = a;\r\n\t\tSystem.out.println(i);\r\n\t\tSystem.out.println(new Integer(b));\r\n\t\tSystem.out.println(new Integer(c));\r\n\t\tSystem.out.println(97*31*31 + 98*31 + 99);\r\n\t\t\r\n\t\tSystem.out.println(\"---------------------------\");\r\n\t\t\r\n\t\tString s3=s1+s2;\r\n\t\tString s4=\"abcdef\";\r\n\t\tSystem.out.println(s3==s4);\r\n\t\t\r\n\t\tSystem.out.println(\"---------------------------\");\r\n\t\t\r\n\t\tString sa = \"a\";\r\n\t\tString sb = \"b\";\r\n\t\tsb = sa + sb;\r\n\t\tString ab = \"a\" + \"b\";\r\n\t\tString ss = \"ab\";\r\n\t\tSystem.out.println(ab == sb);\r\n\t\tSystem.out.println(ab == ss);\r\n\t\t\r\n\t\tSystem.out.println(String.class.getSimpleName());\r\n\t\t\r\n\t\tString k0=\"kvill\";\r\n\t\tString k1=\"kvill\";\r\n\t\tString k2=\"kv\" + \"ill\";\r\n\t\tSystem.out.println( k0==k1 );\r\n\t\tSystem.out.println( k0==k2 );\r\n\t\t\r\n\t}", "public static void main(String[] args) {\n\t\tString a = \"Programming\";\n\t\tString b = new String(\"Programming\");\n\t\tString c = \"Program\" + \"ming\";\n\t\t\n\t\tSystem.out.println(a == b);\n\t\tSystem.out.println(a == c);\n\t\tSystem.out.println(a.equals(b));\n\t\tSystem.out.println(a.equals(c));\n\t\tSystem.out.println(a.intern() == b.intern());\n\t\t\n\t}", "public static void main( String[] args )\n {\n String a = new String(\"as\");\n String b = \"as\";\n System.out.println(a == \"as\");\n System.out.println(b == \"as\");\n\n }", "public static void main(String[] args) throws InterruptedException {\n String str = new String(\"String\");\n String str2 = new String(\"String\");\n\n System.out.println(str.intern() == str2.intern());\n System.out.println(str == str2);\n\n String[] strings = new String[1024*1024];\n for (int i = 0; ;i++){\n if (i <0){\n i = 0;\n\n strings[i % strings.length] = new String();\n\n Thread.sleep(10);\n }\n }\n}", "public static void main(String[] args) {\nString s1= \"adya\";\nString s2= \"adyass\"+\"a\";\nString s3= \"adyassa\";\nSystem.out.println(s3==s2);\n\t}", "public static void main(String[] args) {\n\n\n String str1 = new String(\"abc\");\n String str2 = new String(\"abc\");\n\n System.out.println(str1 == str2);\n System.out.println(str1.equals(str2));\n\n }", "public static void main(String[] args) {\n String str2 = new String(\"a\") + new String(\"bc\");\n\n str2.intern();\n String str3 = \"abc\";\n\n System.out.println(str2 == str3);\n\n Thread t = new Thread();\n System.out.println(t.getState());\n t.start();\n System.out.println(t.getState());\n }", "public static void main(String[] args) {\n String s = \"aaa\";\n String b = new String(\"aaa\");\n System.out.println(b==\"aaa\");\n\n }", "public static void main(String[] args) {\n String s1 = new String(\"aa\") + new String(\"a\");\n s1.intern();\n String s2 = \"aaa\";\n System.out.println(s1 == s2);\n ConcurrentHashMap map;\n HashMap map1;\n }", "public static void main(String[] args) {\n int i=0;\n Integer j = new Integer(0);\n System.out.println(i==j);\n System.out.println(j.equals(i));\n }", "@Test\n public void testAtomString_7() {\n LOGGER.info(\"testAtomString_7\");\n final String s = \"Hello\";\n final byte[] b = s.getBytes(US_ASCII);\n AtomString atomString1 = new AtomString(b);\n AtomString atomString2 = new AtomString(s);\n assertEquals(atomString1, atomString2);\n }", "public static void main(String[] args) {\n\t\tString test=\"hello\";\r\n\t\tString test1=new String(\"hello\");\r\n\t\t\r\n\t\tboolean t=test==test1;\r\n\t\tSystem.out.println(t);\r\n\t\t\r\n\t\tboolean t1 =test.equals(test1);\r\n\t\t\r\n\t\tSystem.out.println(t1);\r\n\t}", "public static void main(String[] args) {\n\t\tString a = \"aaa\";\n\t\tString b = new String(\"bbb\");\n\t\tchar[] c = { 'a', 'b', 'c' };\n\t\tString d = new String(c);\n\n\t\tSystem.out.println(a);\n\t\tSystem.out.println(b);\n\t\tSystem.out.println(c);\n\t\tSystem.out.println(d);\n\n\t\tString a1 = \"aaa\";\n\t\tString b1 = \"aaa\";\n\t\tString c1 = new String(\"aaa\");\n\n\t\tSystem.out.println(\"a1 == b1: \" + (a1 == b1));\n\t\tSystem.out.println(\"a1 == c1: \" + (a1 == c1));\n\t\tSystem.out.println(\"a1.equals(b1): \" + a1.equals(b1));\n\t\tSystem.out.println(\"a1.equals(c1): \" + a1.equals(c1));\n\t}", "public void testCompareIntegerStrings() {\n\t\tString one = 1+\"\";\n\t\tString two = 2+\"\";\n\t\t//1 ist kleiner 2\n\t\tassertTrue(comp.compareInteger(one, two) == -1);\n\t\tassertTrue(comp.compareInteger(one, one) == 0);\n\t\tassertTrue(comp.compareInteger(two, one) == 1);\n\t}", "public static void main(String[] args) {\r\n\t\t \r\n\t\t String obj1 = \"geeks\"; \r\n\t\t String obj2 = new String(\"geeks\");\r\n\t\t \r\n\t\t if(obj1.hashCode() == obj2.hashCode()) \r\n\t\t System.out.println(\"hashCode of object1 is equal to object2\"); \r\n\t\t \r\n\t\t if(obj1 == obj2) \r\n\t\t System.out.println(\"memory address of object1 is same as object2\"); \r\n\t\t \r\n\t\t if(obj1.equals(obj2)) \r\n\t\t System.out.println(\"value of object1 is equal to object2\"); \r\n\t\t }", "public static void main(String[] args) {\n\t\tString s =\"abc\";\n\t\tString s1 = new String(\"abc\");\n\t\tString s3 = new String(\"abc\");\n\t\tString s2 = \"abc\";\nif(s1.equals(s3))\n\t\t\tSystem.out.println(\"true\");\n\t\telse\n\t\t\tSystem.out.println(\"false\");\n\t}", "private static boolean equalityTest5(String a, String b)\n {\n return a.hashCode() == b.hashCode();\n }", "private static final PyObject testEqual(PyString string, PyObject other) {\n\t\tif (other instanceof PyShadowString) {\n\t\t\treturn ((PyShadowString) other).shadowstr___eq__(string);\n\t\t} else {\n\t\t\treturn string.__eq__(other);\n\t\t}\n\t}", "public static void main(String[] args) {\n\t\t\n\t\tString s1 = \"akshay\";\n\t\tString s2 = \"akshay\";\n\t\tString s3 = new String(\"cherry\");\n\t\tString s4 = new String(\"cherry\");\n\t\tSystem.out.println(s1==s2);\n\t\tSystem.out.println(s1.equals(s2));\n\t\tSystem.out.println(s1==s3);\n\t\tSystem.out.println(s1.equals(s3));\n\t\tSystem.out.println(s3==s4);\n\t\tSystem.out.println(s3.contentEquals(s4));\n\t}", "private static boolean equalityTest3(String a, String b)\n {\n return System.identityHashCode(a) == System.identityHashCode(b);\n }", "public static void main(String[] args) {\n\t\tStringBuffer sb = new StringBuffer( \"abc\" ); \n\t\t\n\t\t// value[ 3 ] = 'x' ; value[ 4 ] = 'y' ; value[ 5 ] = 'z' ;\n\t\tsb.append( \"xyz\" );\n\t\t\n\t\tString x = sb.toString() ; \n\t\tSystem.out.println( x );\n\t\t//返回字符串对象的规范化表示形式。\n\t\tString y = x.intern();\n\t\t\n\t\tSystem.out.println( x == y );\n\t\t\n\t\tSystem.out.println( \"~~~~~~~~~~~~~~~~~~~~~~~~\" );\n\t\t\n\t\t// 池中有几个串\n\t\t// \"a\"\n\t\t// \"ab\"\n\t\t// \"abc\"\n\t\t// \"abcd\"\n\t\t// \"abcde\"\n\t\tString str = \"a\" + \"b\" + \"c\" + \"d\" + \"e\" ;\n\t\tSystem.out.println( str );\n\t\t\n\t\tStringBuffer buffer = new StringBuffer();\n\t\tbuffer.append( \"a\" );\n\t\tbuffer.append( \"b\" );\n\t\tbuffer.append( \"c\" );\n\t\tbuffer.append( \"d\" );\n\t\tbuffer.append( \"e\" );\n\t\t\n\t\tString r = buffer.toString();\n\t\tSystem.out.println( r );\n\n\t}", "public static void main(String[] args) {\n\t\t\r\n\t\tString s1= new String(\"Nikita\");\r\n\t\tString s2=\"Nikita\";\r\n\t\t\r\n\t\tboolean s = s1.equals(s2);\r\n\t\tSystem.out.println(s);\r\n\t\tSystem.out.println(s1.hashCode());\r\n\t\tSystem.out.println(s2.hashCode());\r\n\t\t\r\n\t\t\r\n\t\tif(s1==s2) {\r\n\t\t\tSystem.out.println(\"they are equal\");\r\n\t\t}\r\n\t\telse {\r\n\t\t\tSystem.out.println(\"they are unequal\");\r\n\t\t}\r\n\r\n\t}", "private static boolean equalityTest1(String a, String b)\n {\n return a == b;\n }", "public static void main(String[] args) {\n String str1=\"abc\";\r\n String s=new String(\"abc\");\r\n //Integer i=new Integer(110);\r\n //Integer j=new Integer(120);\r\n Sortstring sortstring=new Sortstring();\r\n Scanner sc = new Scanner(System.in);\r\n // sortstring.s=sc.next();\r\n //char[] string =sortstring.s.toCharArray();\r\n // Arrays.sort(string);\r\n System.out.println(Objects.equals(s,str1));\r\n //System.out.println(str1.equals(str));\r\n //System.out.println(i.equals(j));\r\n //System.out.println(str.equals(s));\r\n // System.out.println(Arrays.toString(string));\r\n // System.out.println(String.valueOf(string));\r\n //System.out.println(Objects.equals());\r\n\r\n }", "public static void main(String[] args){\n\t\tString s1=\"mohan\";\r\n\t\tString s2=\"mohan\";\r\n\t\t\r\n\t\tif(s1.equals(s2)) System.out.println(\"Two string objects has same hash value\");\r\n\t\telse System.out.println(\"Two Strings objects has different hash value\");\r\n\t\t\r\n\t\tif(s1==s2) System.out.println(\"s1 and s2 point to same Objects\");\r\n\t\telse System.out.println(\"s1 and s2 point to different Objects\");\r\n\t\t\r\n\t\tString a1 = new String(\"krish\");\r\n\t\tString a2 = new String(\"krish\");\r\n\t\t\r\n\t\tif(a1==a2 && a1.equals(a2)) \r\n\t\t\tSystem.out.println(\"a1 and a2 point to same strings object and has same value\");\r\n\t\telse if(a1!=a2 && a1.equals(a2))\r\n\t\t\tSystem.out.println(\"a1 and a2 point to different strings objects but have same value\");\r\n\t\telse if(a1!=a2 && !a1.equals(a2))\r\n\t\t\tSystem.out.println(\"a1 and a2 point to different strings objects and have different values\");\r\n\r\n\t\tint i1=10;\r\n\t\tint i2=10;\r\n\t\t\r\n\t\tif(i1==i2) System.out.println(\"Two variable have same value w.r.t ==\");\r\n\t\telse System.out.println(\"values different\");\r\n\r\n\t\tif(new Integer(i1).equals(new Integer(i1))) {\r\n\t\t\tSystem.out.println(\"Two Integer vars pointing to same object\");\r\n\t\t}\r\n\t\tInteger I1 = new Integer(i1);\r\n\t\tInteger I2 = new Integer(i2);\r\n\t\t//For integer Objects \"values\" are compared instead of references. Integer class overrides equals() method from Object class\r\n\t\tif(I1.equals(I2)) {\r\n\t\t\tSystem.out.println(\"Two Integer Objects are same\");\r\n\t\t} else System.out.println(\"Not Same Objects\");\r\n\t\t\r\n\t\tif(I1==I2) System.out.println(\"Two Objects same(referencing same w.r.t == operator\");\r\n\t\telse System.out.println(\"Two Objects Different w.r.t == operator\");\r\n\t}", "public boolean isIsomorphic(String str1, String str2) {\r\n if(str1.length() != str2.length()) return false;\r\n \r\n int[] arr1 = new int[256];\r\n int[] arr2 = new int[256];\r\n \r\n Arrays.fill(arr1, -1);\r\n Arrays.fill(arr2, -1);\r\n \r\n for(int i=0;i<str1.length();i++){\r\n int value1 = str1.charAt(i);\r\n int value2 = str2.charAt(i);\r\n if(arr1[value1]== -1){\r\n arr1[value1] = value2;\r\n } else {\r\n if(arr1[value1] != value2) return false;\r\n }\r\n \r\n if(arr2[value2]== -1){\r\n arr2[value2] = value1;\r\n } else {\r\n if(arr2[value2] != value1) return false;\r\n }\r\n \r\n }\r\n return true;\r\n \r\n}", "public static void main(String args[])\n {\n String s2 = \"Welcome\"; //new String (\"Welcome\"); // new operator\n \n \n String s1= new String(\"Welcome\");\n // String s2= new String(\"Welcome\");\n \n \n if(s1.equals(s2))\n {\n System.out.println(\"contents same\");\n }\n else\n {\n System.out.println(\"contents not same\");\n }\n \n if(s1==s2)\n {\n System.out.println(\"address same\");\n }\n else\n {\n System.out.println(\"address not same\");\n }\n \n \n \n }", "public static void main(String[] args) \r\n\t{\n\t\tSystem.out.println('A'==65); //true, char is checked with ASCII value.\r\n\t\tSystem.out.println(5==6); //false\r\n\t\tSystem.out.println(5!=6);\t\t //true\r\n\t\tSystem.out.println(5.0==5); //true\r\n\t\tSystem.out.println(5.0f==5L); //true\r\n\t\t\r\n\t\t//\"==\" check the reference in following case.\r\n\t\tJButton b1 = new JButton();\r\n\t\tJButton b2 = new JButton();\r\n\t\tJButton b3 = b1;\r\n\t\tSystem.out.println(b1==b2); //false\r\n\t\tSystem.out.println(b1==b3); //true\r\n\t\t\r\n\t\t//\"==\" check the reference in following case.\r\n\t\tString s1 = \"hello\";\r\n\t\tString s2 = \"hello\";\r\n\t\tSystem.out.println(s1==s2); //true\r\n\t\t\r\n\t\tString s3 = new String(\"java\");\r\n\t\tString s4 = new String(\"java\");\r\n\t\tSystem.out.println(s3==s4); //false\r\n\t\t\r\n\t\tSystem.out.println(s3.equals(s4)); //equals() checks the values, for same values it gives true.\r\n\t\t\r\n\t\t\r\n\t\t}", "public boolean equals(String obj2) {\n/* 168 */ return this.m_str.equals(obj2);\n/* */ }", "@Test\n public void testAtomString_8() {\n LOGGER.info(\"testAtomString_8\");\n final CharSequence s = \"Hello\";\n AtomString atomString1 = new AtomString(\"Hello\");\n AtomString atomString2 = new AtomString(s);\n assertEquals(atomString1, atomString2);\n }", "@Test\n public void testAtomString_4() {\n LOGGER.info(\"testAtomString_4\");\n AtomString atomString1 = new AtomString(\"Hello\");\n AtomString atomString2 = new AtomString(\"Hej\");\n assertNotEquals(atomString1, atomString2);\n }", "@Test\n public void testComp2()\n {\n System.out.println(\"comp\");\n String compString = \"D+M\";\n assertEquals(\"1000010\", N2TCode.comp(compString));\n }", "public static void main(String[] args) {\n \n String s1 = new String(\"abc\"); // new address space created\n String s2 = new String(\"xyz\");\n String s3 = new String(\"xyz\");\n String s4 = \"xyz\";\n String s5 = \"xyz\";\n System.out.println(\"s1 == s2 \" + s1 == s2);\n System.out.println(\"s1.equals(s2) \" + s1.equals(s2));\n System.out.println(\"s2.equals(s3) \" + s2.equals(s3));\n System.out.println(\"s2 == s3 \" + s2 == s3);\n System.out.println(\"s4 == s5 \" + s4 == s5);\n System.out.println(\"s4.equals(s5) \" + s4.equals(s5));\n \n // == operator comparison with null is always false\n \n System.out.println(\"s1 == null \" + (s1 == null));\n \n // null == null comparison results in always true\n System.out.println( \"null == null \" + (null == null));\n \n // equality operators can be applied everywhere \n // boolean\n // primitives\n // objects conditions [ there should be some relation \n // between reference type else it will result in compile time error]\n \n \n //******************************************************************\n // EQUALS METHOD\n //******************************************************************\n //Equals method present in the object class is meant for reference comparison \n // if we want to content comparison then we need to over-ride the method in the child class.\n \n \n // When do we need to override equals method?\n // It is when a class has a\n // notion of logical equality that differs from mere object identity and a\n // superclass has not already overridden equals.\n \n // What is a value classes\n // Value classes are classes which represent some values such as Integer or String.\n // Over here when we want to check\n \n // A programmer who compares references to value\n // objects using the equals method expects to find out whether they are\n // logically equivalent, not whether they refer to the same object\n \n //******************************************************************\n // EQUALS METHOD RELATION WITH REFERENCE OPERATOR\n //******************************************************************\n \n // CASE 1: IF R1 == R2 is TRUE then R1.equals(R2) is always TRUE\n // CASE 2: IF R1 == R2 is FALSE then R1.equals(R2) maybe true(when equals method has been overridden) and \n // FALSE when equals method has not been overridden\n // CASE 3: IF R1.equals(R2) is TRUE then R1 == R2 maybe true (if equals method had not been overridden) and \n // false if not overridden\n // CASE 4: IF R1.equals(R2) false then R1 == R2 is always FALSE\n \n StringBuffer sb1 = new StringBuffer(\"1\");\n StringBuffer sb2 = new StringBuffer(\"1\");\n String str1 = new String (\"1\");\n System.out.println(\"str1.equals(sb1) \" + str1.equals(sb1)); \n \n //INTERESTING CONCLUSION WHEN COMPARED WITH NULL BOTH == operator and equals method will return null\n System.out.println(\"sb1 == null \" + (sb1 == null));\n System.out.println(\"sb1.equals(null) \" + sb1.equals(null));\n \n //When we want to use == operator then the reference type must have some sort of relation \n // either R1 or R2 must be of same type\n // either R1 must be parent of R2\n // either R1 must be child of R2 \n // else it will result in compilation error ie incomparable types.\n \n String s11 = new String(\"amitabh\");\n String s21 = new String(\"amitabh\");\n \n System.out.println( \"s11.equals(s21) \" + s11.equals(s21) );\n System.out.println( \"s11.hashCode() == s21.hashCode() \" + (s11.hashCode() == s21.hashCode() ));\n \n //Thus from the above we can conclude that the equals and hashcode methods have been overridden in the case\n //of string for content comparison\n \n StringBuffer sb11 = new StringBuffer(\"amitabh\");\n StringBuffer sb21 = new StringBuffer(\"amitabh\");\n \n System.out.println( \"sb11.equals(s21) \" + sb11.equals(sb21) );\n System.out.println( \"sb11.hashCode() == sb21.hashCode() \" + (sb11.hashCode() == sb21.hashCode() ));\n \n // Thus from the above we can conclude that the equals method is not overridden for content comparison \n // and hashcode methods has also not been overridden in the case\n // of string for content comparison\n }", "@Test(timeout = 4000)\n public void test017() throws Throwable {\n String string0 = JSONObject.quote(\"e(h'R;/n&72HYkju\");\n Short short0 = new Short((short)69);\n String string1 = JSONObject.valueToString(short0, (short)69, (short)69);\n assertFalse(string1.equals((Object)string0));\n }", "@Override\n\tpublic PyObject __eq__(PyObject other) {\n\t\treturn shadowstr___eq__(other);\n\t}", "public static void main(String[] args) { \r\n MyInteger n1 = new MyInteger(5); \r\n System.out.println(\"n1 is even? \" + n1.isEven());\r\n System.out.println(\"n1 is prime? \" + n1.isPrime());\r\n System.out.println(\"15 is prime? \" + MyInteger.isPrime(15));\r\n char[] chars = {'3', '5', '3', '9'};\r\n System.out.println(MyInteger.parseInt(chars));\r\n String s = \"3539\";\r\n System.out.println(MyInteger.parseInt(s));\r\n MyInteger n2 = new MyInteger(24); \r\n System.out.println(\"n2 is odd? \" + n2.isOdd());\r\n System.out.println(\"45 is odd? \" + MyInteger.isOdd(45));\r\n System.out.println(\"n1 is equal to n2? \" + n1.equals(n2));\r\n System.out.println(\"n1 is equal to 5? \" + n1.equals(5));\r\n }", "public static void main(String[] args) {\n\t\tInteger integer1;\n\t\tInteger integer2;\n\n\t\tinteger1 = new Integer(10);\n\t\tinteger2 = new Integer(10);\n\t\t//第一次比较\n\t\tSystem.out.println(\"第一次比较:\"+(integer1==integer2));\n\n\t\t//第二次比较\n\t\tSystem.out.println(\"第二次比较:\"+(integer1==10));\n\n\t\tinteger1 = 127;\n\t\tinteger2 = 127;\n\t\t//第三次比较\n\t\tSystem.out.println(\"第三次比较:\"+(integer1==integer2));\n\n\t\tinteger1 = 128;\n\t\tinteger2 = 128;\n\t\t//第四次比较\n\t\tSystem.out.println(\"第四次比较:\"+(integer1==integer2));\n\n\t}", "@Test\n public void testEquals_2() {\n LOGGER.info(\"testEquals_2\");\n final AtomString atomString = new AtomString(\"Hello\");\n final Atom atom = new AtomString(\"Hej\");\n final boolean actual = atomString.equals(atom);\n assertFalse(actual);\n }", "static void method_9231() {\r\n boolean var10000 = true;\r\n char[] var10003 = \"¯W!BÔK)Ý/HG\".toCharArray();\r\n Object var10004 = var10003.length;\r\n Object var4 = true;\r\n char[] var10002 = var10003;\r\n char[] var10001 = (char[])var10004;\r\n int var0 = 0;\r\n\r\n while(true) {\r\n var10003 = var10002;\r\n var10002 = var10001;\r\n var10001 = var10003;\r\n char[] var5 = var10002;\r\n var10002 = var10003;\r\n if(var10003 <= var0) {\r\n field_8734 = (new String((char[])var4)).intern();\r\n String var2 = field_8734;\r\n return;\r\n }\r\n\r\n char var10007 = (char)((Object[])var4)[var0];\r\n short var10009;\r\n switch(var0 % 7) {\r\n case 0:\r\n var10009 = 179;\r\n break;\r\n case 1:\r\n var10009 = 68;\r\n break;\r\n case 2:\r\n var10009 = 33;\r\n break;\r\n case 3:\r\n var10009 = 45;\r\n break;\r\n case 4:\r\n var10009 = 187;\r\n break;\r\n case 5:\r\n var10009 = 36;\r\n break;\r\n default:\r\n var10009 = 70;\r\n }\r\n\r\n ((Object[])var4)[var0] = (char)(var10007 ^ var5 ^ var10009);\r\n ++var0;\r\n }\r\n }", "public boolean codepointEquals(StringValue other) {\r\n // avoid conversion of CharSequence to String if values are different lengths\r\n return value.length() == other.value.length() &&\r\n value.toString().equals(other.value.toString());\r\n // It might be better to do character-by-character comparison in all cases; or it might not.\r\n // We do it this way in the hope that string comparison compiles to native code.\r\n }", "public static boolean timingSafeEquals(String first, String second) {\n if (first == null) {\n return second == null;\n } else if (second == null) {\n return false;\n } else if (second.length() <= 0) {\n return first.length() <= 0;\n }\n char[] firstChars = first.toCharArray();\n char[] secondChars = second.toCharArray();\n char result = (char) ((firstChars.length == secondChars.length) ? 0 : 1);\n int j = 0;\n for (int i = 0; i < firstChars.length; ++i) {\n result |= firstChars[i] ^ secondChars[j];\n j = (j + 1) % secondChars.length;\n }\n return result == 0;\n }", "public boolean isEqual(StringNum a, StringNum b) {\n\t\tif(a.getNumber().equalsIgnoreCase(b.getNumber())) {\n\t\t\treturn true;\n\t\t}\n\t\telse {\n\t\t\treturn false;\n\t\t}\n\t}", "@Test\n public void testComp1()\n {\n System.out.println(\"comp\");\n String compString = \"A+1\";\n assertEquals(\"0110111\", N2TCode.comp(compString));\n }", "@Test\n public void testEqualChars2() {\n char a = 'a';\n char b = 'b';\n char c = '1';\n char d = '2';\n\n boolean result1 = offByOne.equalChars(a, b);\n boolean result2 = offByOne.equalChars(c, d);\n\n assertTrue(result1);\n assertTrue(result2);\n }", "public static void main(String[] args) {\n String name = new String(\"String one\");\n String name2 = name;\n\n System.out.println(name);\n System.out.println(name2);\n\n System.out.println(name.hashCode());\n System.out.println(name2.hashCode());\n\n name2 = \"String two\";\n\n System.out.println(name);\n System.out.println(name2);\n\n System.out.println(name.hashCode());\n System.out.println(name2.hashCode());\n\n\n }", "static void method_1458() {\r\n boolean var10000 = true;\r\n char[] var10003 = \"Â\u0002;\u0017sIȰ{T\u001e\".toCharArray();\r\n Object var10004 = var10003.length;\r\n Object var4 = true;\r\n char[] var10002 = var10003;\r\n char[] var10001 = (char[])var10004;\r\n int var0 = 0;\r\n\r\n while(true) {\r\n var10003 = var10002;\r\n var10002 = var10001;\r\n var10001 = var10003;\r\n char[] var5 = var10002;\r\n var10002 = var10003;\r\n if(var10003 <= var0) {\r\n field_1791 = (new String((char[])var4)).intern();\r\n String var2 = field_1791;\r\n return;\r\n }\r\n\r\n char var10007 = (char)((Object[])var4)[var0];\r\n short var10009;\r\n switch(var0 % 7) {\r\n case 0:\r\n var10009 = 220;\r\n break;\r\n case 1:\r\n var10009 = 19;\r\n break;\r\n case 2:\r\n var10009 = 57;\r\n break;\r\n case 3:\r\n var10009 = 122;\r\n break;\r\n case 4:\r\n var10009 = 30;\r\n break;\r\n case 5:\r\n var10009 = 36;\r\n break;\r\n default:\r\n var10009 = 165;\r\n }\r\n\r\n ((Object[])var4)[var0] = (char)(var10007 ^ var5 ^ var10009);\r\n ++var0;\r\n }\r\n }", "@Test\n public void testEncode() {\n LOGGER.info(\"testEncode\");\n final String actual = new AtomString().encode();\n final String expected = \"0:\";\n assertEquals(expected, actual);\n }", "public static void main (String[] args) {\n\t\tString s = \"Hello\";\r\n\t\tString t = new String(s);\r\n\t\tif(\"Hello\".equals(s)) System.out.println(\"one\");\r\n\t\tif(t== s) System.out.println(\"two\");\r\n\t\tif (t.equals(s))System.out.println(\"three\");\r\n\t\tif(\"Hello\" == s) System.out.println(\"four\");\r\n\t\tif(\"Hello\" == t) System.out.println(\"five\");\r\n\t\tStringBuilder sb = new StringBuilder();\r\n\t\tsb.append(\"aaa\").insert(1,\"bb\").insert(4, \"ccc\");\r\n\t\tSystem.out.println(sb);\r\n\t\tString s1 =\"java\";\r\n\t\tStringBuilder s2 = new StringBuilder(\"java\");\r\n\t\tif (s1 == s2)\r\n\t\t\tSystem.out.print(\"1\");\r\n\t\tif (s1.contentEquals(s2))\r\n\t\t\tSystem.out.print(\"2\");\r\n\t\t\r\n\t}", "private static boolean equalityTest2(String a, String b)\n {\n return a.equals(b);\n }", "public static void testComparing() {\n System.out.println(\"\\nTEST ASSIGNING\");\n System.out.println(\"==============\");\n int i = 20;\n int j = 20;\n\n if(i == j) {\n System.out.println(\"i and j are equal\");\n }\n\n String JPY = new String(\"JPY\");\n String YEN = new String(\"JPY\");\n\n if(JPY == YEN) {\n System.out.println(\"JPY and YEN are same\"); //This line is not printed\n }\n\n if(JPY.equals(YEN)) {\n //you should always use equals() method to compare reference types.\n System.out.println(\"JPY and YEN are equal by equals()\");\n }\n }", "@Test\n public void testHashCode() {\n LOGGER.info(\"testHashCode\");\n final String value = \"Hello\";\n final int actual = new AtomString(value).hashCode();\n final int expected = 61 * 7 + Objects.hashCode(value);\n assertEquals(expected, actual);\n }", "public static void main(String argv[]){\n\t\tString a=\"My field1\";\n\t\tString b=\"My field1\";\n\t\tString c=new String(\"My field1\");\n\t\tString d=new String(\"My field1\");\n\t\tSystem.out.println(a == b);\n\t\tSystem.out.println(a==c);\n\t\tSystem.out.println(c==d);\n\t\tSystem.out.println(a.equals(b));\n\t\tSystem.out.println(a.equals(c));\n\t\tSystem.out.println(c.equals(d));\n\t\ttry {\n\t\t\tString sss = \"123\";\n\t\t\tInteger.parseInt(sss);\n\t\t} catch (Exception e) {\n\t\t\tthrow new IllegalArgumentException();\n\t\t} finally {\n\n\t\t}\n\t}", "public static void main(String[] args) {\n D objD = new D();\n D other = objD;\n\n System.out.println(objD.equals(other));\n String var = new String(\"hello\");\n String val = new String(\"hello\");\n System.out.println(var.equals(val));\n\n System.out.println(objD);\n }", "public static void main(String[] args) {\n\t\t\n\t\tString str1 =\"amol\";\n\t\tString str2 =\"amol\";\n\t\tString str3 =\"Amol\";\n\t\tString str4 =\"raj\";\n\t\tString str5 = new String(\"amol\");\n\t\t\n\t\tSystem.out.println(str1.equals(str2)); // true\n\t\tSystem.out.println(str1.equals(str3));\n\t\tSystem.out.println(str1.equalsIgnoreCase(str3));\n\t\tSystem.out.println(str1.equals(str4));\n\t\tSystem.out.println(str1.equals(str5)); // true\n\t\t\n\t\tSystem.out.println(str1==str2); // true\n\t\n\t\tSystem.out.println(str1==str5); // false\n\t\t\n\t\t\n\n\t}", "@Test\n public void testAtomString_5() {\n LOGGER.info(\"testAtomString_5\");\n final AtomString hej = new AtomString(\"Hej\");\n final AtomString actual = new AtomString(hej);\n final AtomString expected = new AtomString(\"Hej\");\n assertEquals(expected, actual);\n }", "boolean equal(String s1, String s2) {\n return compareStrings(s1, s2) == 0;\n }", "@Test\n public void testInterpretor() {\n String str1 = \"28 in Binary\"; \n String str2 = \"28 in Hexadecimal\"; \n \n InterpreterClient ec = new InterpreterClient(new InterpreterContext()); \n System.out.println(str1+\"= \"+ec.interpret(str1)); \n System.out.println(str2+\"= \"+ec.interpret(str2)); \n }", "@Test\n public void testEquals_1() {\n LOGGER.info(\"testEquals_1\");\n final AtomString atomString = new AtomString(\"Hello\");\n final Atom atom = new AtomString(\"Hello\");\n final boolean actual = atomString.equals(atom);\n assertTrue(actual);\n }", "@Test\n public void testEqualChars1() {\n char a = 'a';\n char b = 'a';\n char c = 'z';\n char d = 'B';\n\n boolean result1 = offByOne.equalChars(a, b);\n boolean result2 = offByOne.equalChars(a, c);\n boolean result3 = offByOne.equalChars(a, d);\n\n assertFalse(result1);\n assertFalse(result2);\n assertFalse(result3);\n }", "static void method_1458() {\r\n boolean var10000 = true;\r\n char[] var10003 = \"/\\fë%mwH]s,\".toCharArray();\r\n Object var10004 = var10003.length;\r\n Object var4 = true;\r\n char[] var10002 = var10003;\r\n char[] var10001 = (char[])var10004;\r\n int var0 = 0;\r\n\r\n while(true) {\r\n var10003 = var10002;\r\n var10002 = var10001;\r\n var10001 = var10003;\r\n char[] var5 = var10002;\r\n var10002 = var10003;\r\n if(var10003 <= var0) {\r\n field_1436 = (new String((char[])var4)).intern();\r\n String var2 = field_1436;\r\n return;\r\n }\r\n\r\n char var10007 = (char)((Object[])var4)[var0];\r\n short var10009;\r\n switch(var0 % 7) {\r\n case 0:\r\n var10009 = 220;\r\n break;\r\n case 1:\r\n var10009 = 240;\r\n break;\r\n case 2:\r\n var10009 = 4;\r\n break;\r\n case 3:\r\n var10009 = 165;\r\n break;\r\n case 4:\r\n var10009 = 237;\r\n break;\r\n case 5:\r\n var10009 = 247;\r\n break;\r\n default:\r\n var10009 = 200;\r\n }\r\n\r\n ((Object[])var4)[var0] = (char)(var10007 ^ var5 ^ var10009);\r\n ++var0;\r\n }\r\n }", "public static void main(String[] args) {\n String name = new String(\"String one\");\n String name2 = name;\n\n System.out.println(name);\n System.out.println(name2);\n\n System.out.println(name.hashCode());\n System.out.println(name2.hashCode());\n\n name2 = \"String two\";\n\n System.out.println(name);\n System.out.println(name2);\n\n System.out.println(name.hashCode());\n System.out.println(name2.hashCode());\n\n\n //////////////////////////////////////////////\n System.out.println(\"****************************\");\n\n StringBuilder str1 = new StringBuilder(\"Sachin\");\n// str1 = str1 + new StringBuilder(\"fsf\");\n System.out.println(str1.hashCode());\n str1 = new StringBuilder(\"Schin tendulkar\");\n\n System.out.println(str1);\n System.out.println(str1.hashCode());\n\n str1.append(\"12334\");\n System.out.println(str1);\n System.out.println(str1.hashCode());\n\n }", "static void method_5904() {\r\n boolean var10000 = true;\r\n char[] var10003 = \"š¡,´\u001a\u000b›éÜG°\".toCharArray();\r\n Object var10004 = var10003.length;\r\n Object var4 = true;\r\n char[] var10002 = var10003;\r\n char[] var10001 = (char[])var10004;\r\n int var0 = 0;\r\n\r\n while(true) {\r\n var10003 = var10002;\r\n var10002 = var10001;\r\n var10001 = var10003;\r\n char[] var5 = var10002;\r\n var10002 = var10003;\r\n if(var10003 <= var0) {\r\n field_5515 = (new String((char[])var4)).intern();\r\n String var2 = field_5515;\r\n return;\r\n }\r\n\r\n char var10007 = (char)((Object[])var4)[var0];\r\n short var10009;\r\n switch(var0 % 7) {\r\n case 0:\r\n var10009 = 91;\r\n break;\r\n case 1:\r\n var10009 = 111;\r\n break;\r\n case 2:\r\n var10009 = 241;\r\n break;\r\n case 3:\r\n var10009 = 6;\r\n break;\r\n case 4:\r\n var10009 = 168;\r\n break;\r\n case 5:\r\n var10009 = 185;\r\n break;\r\n default:\r\n var10009 = 41;\r\n }\r\n\r\n ((Object[])var4)[var0] = (char)(var10007 ^ var5 ^ var10009);\r\n ++var0;\r\n }\r\n }", "@Test\r\n\tpublic void test01() {\n\t\tInteger x = -128;\r\n\t\tInteger y = -128;\r\n\t\tassertSame(x, y);\r\n\t\tInteger u = 1000;\r\n\t\tInteger v = 1000;\r\n\t\tassertNotSame(u, v);\r\n\t}", "static void method_6617() {\r\n boolean var10000 = true;\r\n char[] var10003 = \"3\u0012qêXI}@k\u0017ê\".toCharArray();\r\n Object var10004 = var10003.length;\r\n Object var4 = true;\r\n char[] var10002 = var10003;\r\n char[] var10001 = (char[])var10004;\r\n int var0 = 0;\r\n\r\n while(true) {\r\n var10003 = var10002;\r\n var10002 = var10001;\r\n var10001 = var10003;\r\n char[] var5 = var10002;\r\n var10002 = var10003;\r\n if(var10003 <= var0) {\r\n field_6523 = (new String((char[])var4)).intern();\r\n String var2 = field_6523;\r\n return;\r\n }\r\n\r\n char var10007 = (char)((Object[])var4)[var0];\r\n short var10009;\r\n switch(var0 % 7) {\r\n case 0:\r\n var10009 = 162;\r\n break;\r\n case 1:\r\n var10009 = 140;\r\n break;\r\n case 2:\r\n var10009 = 252;\r\n break;\r\n case 3:\r\n var10009 = 8;\r\n break;\r\n case 4:\r\n var10009 = 186;\r\n break;\r\n case 5:\r\n var10009 = 171;\r\n break;\r\n default:\r\n var10009 = 159;\r\n }\r\n\r\n ((Object[])var4)[var0] = (char)(var10007 ^ var5 ^ var10009);\r\n ++var0;\r\n }\r\n }", "public static boolean isEqual(String s1, String s2) {\r\tif(s1.length() != s2.length()){\r\t return false;\r\t}\r\tfor(int i = 0; i< s1.length();i++){\r\t if (s1.charAt(i) != s2.charAt(i)){\r\t\treturn false;\r\t }\r\t}\r\treturn true;\r }", "public static void main(String[] args) {\n\n testUnicode();\n\n String str = \"1024\";\n // int num = Integer.parseInt(str);\n int num = Integer.valueOf(str, 16);// ??str?��????????16????????????????int\n System.out.println(num);\n\n String s1 = \"???\";\n try {\n String s2 = new String(s1.getBytes(\"GB2312\"), \"ISO-8859-1\");\n } catch (UnsupportedEncodingException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n\n System.out.println(str.substring(1));\n\n System.out.println(reverse(str));\n }", "@Test\n public void testAtomString_9() {\n LOGGER.info(\"testAtomString_9\");\n final StringBuilder s = new StringBuilder(\"Hello\");\n AtomString atomString1 = new AtomString(\"Hello\");\n AtomString atomString2 = new AtomString(s);\n assertEquals(atomString1, atomString2);\n final StringBuilder ss = new StringBuilder(atomString1);\n assertEquals(s.toString(), ss.toString());\n }", "public boolean equals(Object anObject) {\n/* 205 */ return this.m_str.equals(anObject);\n/* */ }", "int mo23349e(String str, String str2);", "void mo1329d(String str, String str2);", "@Test\n public void stringFromLong() {\n assertEquals(\n \"784dd132\",\n JdkHashTools.getStringFromLong(2018365746)\n );\n }", "public boolean isIsomorphic(String s, String t) {\r\n\r\n Map<Character, Character> map = new HashMap<>();\r\n Set<Character> assignedValues = new HashSet<>();\r\n for (int i = 0; i < s.length(); i++) {\r\n if (map.containsKey(s.charAt(i)) && map.get(s.charAt(i)) != t.charAt(i)) {\r\n return false;\r\n }\r\n if (!map.containsKey(s.charAt(i)) && assignedValues.contains(t.charAt(i))) {\r\n return false;\r\n }\r\n map.put(s.charAt(i), t.charAt(i));\r\n assignedValues.add(t.charAt(i));\r\n }\r\n return true;\r\n }", "static void method_8299() {\r\n boolean var10000 = true;\r\n char[] var10003 = \"Ò˜œÛ¢ï¬ó\".toCharArray();\r\n Object var10004 = var10003.length;\r\n Object var4 = true;\r\n char[] var10002 = var10003;\r\n char[] var10001 = (char[])var10004;\r\n int var0 = 0;\r\n\r\n while(true) {\r\n var10003 = var10002;\r\n var10002 = var10001;\r\n var10001 = var10003;\r\n char[] var5 = var10002;\r\n var10002 = var10003;\r\n if(var10003 <= var0) {\r\n field_8034 = (new String((char[])var4)).intern();\r\n String var2 = field_8034;\r\n return;\r\n }\r\n\r\n char var10007 = (char)((Object[])var4)[var0];\r\n short var10009;\r\n switch(var0 % 7) {\r\n case 0:\r\n var10009 = 198;\r\n break;\r\n case 1:\r\n var10009 = 134;\r\n break;\r\n case 2:\r\n var10009 = 223;\r\n break;\r\n case 3:\r\n var10009 = 180;\r\n break;\r\n case 4:\r\n var10009 = 243;\r\n break;\r\n case 5:\r\n var10009 = 181;\r\n break;\r\n default:\r\n var10009 = 138;\r\n }\r\n\r\n ((Object[])var4)[var0] = (char)(var10007 ^ var5 ^ var10009);\r\n ++var0;\r\n }\r\n }", "public boolean equals(XMLString anObject) {\n/* 186 */ return this.m_str.equals(anObject.toString());\n/* */ }", "static void method_1458() {\r\n boolean var10000 = true;\r\n char[] var10003 = \"Azy;\u001ftQF\".toCharArray();\r\n Object var10004 = var10003.length;\r\n Object var3 = true;\r\n char[] var10002 = var10003;\r\n char[] var10001 = (char[])var10004;\r\n int var0 = 0;\r\n\r\n while(true) {\r\n var10003 = var10002;\r\n var10002 = var10001;\r\n var10001 = var10003;\r\n char[] var4 = var10002;\r\n var10002 = var10003;\r\n if(var10003 <= var0) {\r\n field_1678 = (new String((char[])var3)).intern();\r\n return;\r\n }\r\n\r\n char var10007 = (char)((Object[])var3)[var0];\r\n short var10009;\r\n switch(var0 % 7) {\r\n case 0:\r\n var10009 = 229;\r\n break;\r\n case 1:\r\n var10009 = 210;\r\n break;\r\n case 2:\r\n var10009 = 203;\r\n break;\r\n case 3:\r\n var10009 = 146;\r\n break;\r\n case 4:\r\n var10009 = 172;\r\n break;\r\n case 5:\r\n var10009 = 142;\r\n break;\r\n default:\r\n var10009 = 179;\r\n }\r\n\r\n ((Object[])var3)[var0] = (char)(var10007 ^ var4 ^ var10009);\r\n ++var0;\r\n }\r\n }", "public boolean stringEquals(String str1, String str2) {\n \tif (Resources.isNull(str1) && Resources.isNull(str2)) {\n \t\treturn true;\n \t} else {\n \t\tif(null != str1){\n \t\t\t//str1 = null 空指针\n \t\t\treturn str1.equals(str2);\n \t\t}else{\n \t\t\treturn str2.equals(str1);\n \t\t}\n\t\t}\n\t}", "@Test\n public void testEncodingNegative()\n {\n byte[] orginalBytes = sensitiveString.getBytes();\n byte[] encoded = StateUtils.encode(orginalBytes);\n encoded[1] = (byte) 9;\n try\n {\n byte[] decoded = StateUtils.decode(encoded);\n Assertions.assertFalse(Arrays.equals(decoded, orginalBytes));\n }\n catch (Exception e)\n {\n // do nothing\n }\n }", "public static void main( String[] args )\r\n {\n String s1 = new String( \"hello\" ); // s1 is a copy of \"hello\"\r\n String s2 = \"goodbye\";\r\n String s3 = \"Happy Birthday\";\r\n String s4 = \"happy birthday\";\r\n\r\n System.out.printf(\"s1 = %s\\ns2 = %s\\ns3 = %s\\ns4 = %s\\n\\n\", s1, s2, s3, s4 );\r\n\r\n // test for equality with equals() method\r\n if ( s1.equals( \"hello\" ) ) // true\r\n System.out.println( \"s1 equals \\\"hello\\\"\" );\r\n else\r\n System.out.println( \"s1 does not equal \\\"hello\\\"\" );\r\n\r\n // test for equality with ==\r\n if ( s1 == \"hello\" ) // false; they are not the same object\r\n System.out.println( \"s1 is the same object as \\\"hello\\\"\" );\r\n else\r\n System.out.println( \"s1 is not the same object as \\\"hello\\\"\" );\r\n\r\n // test for equality (ignore case)\r\n if ( s3.equalsIgnoreCase( s4 ) ) // true\r\n System.out.printf( \"%s equals %s with case ignored\\n\", s3, s4 );\r\n else\r\n System.out.println( \"s3 does not equal s4\" );\r\n\r\n // test compareTo\r\n // the compareTo() method comparison is based on the Unicode value of each character in the string\r\n // if the strings are equal, the method returns 0\r\n\r\n System.out.printf(\"\\ns1.compareTo( s2 ) is %d\", s1.compareTo( s2 ) );\r\n System.out.printf(\"\\ns2.compareTo( s1 ) is %d\", s2.compareTo( s1 ) );\r\n System.out.printf(\"\\ns1.compareTo( s1 ) is %d\", s1.compareTo( s1 ) );\r\n System.out.printf(\"\\ns3.compareTo( s4 ) is %d\", s3.compareTo( s4 ) );\r\n System.out.printf(\"\\ns4.compareTo( s3 ) is %d\\n\\n\", s4.compareTo( s3 ) );\r\n\r\n // test regionMatches (case sensitive)\r\n if ( s3.regionMatches( 0, s4, 0, 5 ) )\r\n System.out.println(\"First 5 characters of s3 and s4 match\" );\r\n else\r\n System.out.println(\"First 5 characters of s3 and s4 do not match\" );\r\n\r\n // test regionMatches (ignore case)\r\n if ( s3.regionMatches( true, 0, s4, 0, 5 ) )\r\n System.out.println(\"First 5 characters of s3 and s4 match with case ignored\" );\r\n else\r\n System.out.println(\"First 5 characters of s3 and s4 do not match\" );\r\n }", "public boolean isEqual(StringNum a) {\n\t\tif(this.getNumber().equalsIgnoreCase(a.getNumber())) {\n\t\t\treturn true;\n\t\t}\n\t\telse {\n\t\t\treturn false;\n\t\t}\n\t}", "@Test\n public void testCopy_2() {\n LOGGER.info(\"testCopy_2\");\n final String value = \"Hej\";\n final AtomString atomString1 = new AtomString(value);\n final AtomString atomString2 = atomString1.copy();\n assertTrue(atomString1 != atomString2);\n assertEquals(atomString1, atomString2);\n final String actual = atomString2.toString();\n final String expected = value;\n assertEquals(expected, actual);\n }", "int mo23347d(String str, String str2);", "@Test\n public void decodeString()\n {\n final BinaryEncoder encoder = new BinaryEncoder(16);\n assertThat(encoder.decode(\"0011\"), is(3.0));\n }", "public void testToString()\n {\n // An empty board\n assertEquals(b1.toString(), \"EEEEEEEEE\");\n\n // A more complex case\n b1.fromString(\"RRRBEEBBE\");\n assertEquals(b1.toString(), \"RRRBEEBBE\");\n }", "public boolean equals(Object other) {\r\n \tthrow new ClassCastException(\"equals on StringValue is not allowed\");\r\n }", "@Test\n public void testAtomString_2() {\n LOGGER.info(\"testAtomString_2\");\n AtomString atomString1 = new AtomString();\n Atom atom = new AtomString();\n assertEquals(atomString1, atom);\n }", "private int stringSwap(int num, int i, int j) {\n String intString = String.valueOf(num);\n char[] charArr = intString.toCharArray();\n char c = charArr[i];\n charArr[i] = charArr[j];\n charArr[j] = c;\n return Integer.valueOf(new String(charArr));\n }", "private boolean m81840a(String str, String str2) {\n boolean isEmpty = TextUtils.isEmpty(str);\n boolean isEmpty2 = TextUtils.isEmpty(str2);\n if (isEmpty && isEmpty2) {\n return true;\n }\n if (!isEmpty && isEmpty2) {\n return false;\n }\n if (!isEmpty || isEmpty2) {\n return str.equals(str2);\n }\n return false;\n }", "public static void main(String[] args) {\n\t\tString s1=\"abc\";\r\n\t\tString s2=\"edf\";\r\n\t\tboolean b1=true;\r\n\t\tboolean b2=false;\r\n\t\tint t1=10;\r\n\t\tint t2=20;\r\n\t\t//System.out.println(s1>s2);\r\n\t\tSystem.out.println(s1==s2);\r\n\t\t//System.out.println(b1>b2);\r\n\t\tSystem.out.println(b1==b2);\r\n\t\t//System.out.println(t1>b2);\r\n\t\tSystem.out.println(t1==t2);\r\n\t\t\r\n\t}", "public boolean checkEquals(DomString other) {\n return other.checkEquals(str, (short) 0, len);\n }", "public static void main(String[] args) {\n\t\tString s2 = \"Gowda\";\n\t\tString s3 = \"Gowda\";\n//\t\t\n//\t\tSystem.out.println(s.equals(s2));\n\t\t\n\t\tSystem.out.println(s2.equals(s3));\n\t\t\n\t\tSystem.out.println(s2 == s3); //\n\t\t\n\t}", "static void method_2892() {\r\n boolean var10000 = true;\r\n char[] var10003 = \"Plf æ¤Ý\\\"\u0017\\f¢\".toCharArray();\r\n Object var10004 = var10003.length;\r\n Object var4 = true;\r\n char[] var10002 = var10003;\r\n char[] var10001 = (char[])var10004;\r\n int var0 = 0;\r\n\r\n while(true) {\r\n var10003 = var10002;\r\n var10002 = var10001;\r\n var10001 = var10003;\r\n char[] var5 = var10002;\r\n var10002 = var10003;\r\n if(var10003 <= var0) {\r\n field_2300 = (new String((char[])var4)).intern();\r\n String var2 = field_2300;\r\n return;\r\n }\r\n\r\n char var10007 = (char)((Object[])var4)[var0];\r\n short var10009;\r\n switch(var0 % 7) {\r\n case 0:\r\n var10009 = 87;\r\n break;\r\n case 1:\r\n var10009 = 100;\r\n break;\r\n case 2:\r\n var10009 = 125;\r\n break;\r\n case 3:\r\n var10009 = 212;\r\n break;\r\n case 4:\r\n var10009 = 146;\r\n break;\r\n case 5:\r\n var10009 = 208;\r\n break;\r\n default:\r\n var10009 = 169;\r\n }\r\n\r\n ((Object[])var4)[var0] = (char)(var10007 ^ var5 ^ var10009);\r\n ++var0;\r\n }\r\n }", "void mo1334i(String str, String str2);", "static boolean areSame(String expr1, String expr2)\n\t{\n\n\t\t// Create a vector for all operands and\n\t\t// initialize the vector as 0.\n\t\tint[] v = new int[MAX_CHAR];\n\n\t\t// Put signs of all operands in expr1\n\t\teval(expr1, v, true);\n\n\t\t// Subtract signs of operands in expr2\n\t\teval(expr2, v, false);\n\n\t\t// If expressions are same, vector must\n\t\t// be 0.\n\t\tfor (int i = 0; i < MAX_CHAR; i++)\n\t\t\tif (v[i] != 0)\n\t\t\t\treturn false;\n\n\t\treturn true;\n\t}", "@Test(timeout = 4000)\n public void test116() throws Throwable {\n int int0 = JavaCharStream.hexval('8');\n assertEquals(8, int0);\n }", "private boolean equals(String str1, String str2)\n\t{\n\t\tif (str1.length() != str2.length()) // Easiest to check is if they are the same to potentially avoid running remaining code\n\t\t\treturn false;\n\t\tfor(int i = 0; i < str1.length(); i++)\n\t\t{\n\t\t\tif (str1.charAt(i) != str2.charAt(i)) // If at any point one char is not equal to the same char at a given index then they are disimilar\n\t\t\t\treturn false;\n\t\t}\n\t\treturn true; // If no discrepancies are found then the strings must be equal\n\t}", "public boolean isIsomorphic(String s, String t) {\n Map<Character, Integer> maps = new HashMap<>();\n Map<Character, Integer> mapt = new HashMap<>();\n for (Integer i = 0; i < s.length(); i++) {\n if (maps.put(s.charAt(i), i) != mapt.put(t.charAt(i), i)) {\n return false;\n }\n }\n return true;\n }", "public static void main(String args[]) {\n\n\tchar c1 = 'S';\n\tSystem.out.println(c1 + 2);\n\tSystem.out.println(c1 - 2);\n\tSystem.out.println(c1 * 2);\n\tSystem.out.println(c1 / 2);\n\tSystem.out.println(c1 << 2);\n\tSystem.out.println(c1 >>> 2);\n\tSystem.out.println(c1 >> 2);\n\tSystem.out.println(c1 | 2);\n\tSystem.out.println(c1 & 2);\n\tSystem.out.println(c1 ^ 2);\n\n\tbyte b1 = 127;\n\tSystem.out.println(b1 + 2);\n\tSystem.out.println(b1 - 2);\n\tSystem.out.println(b1 * 2);\n\tSystem.out.println(b1 / 2);\n\tSystem.out.println(b1 << 2);\n\tSystem.out.println(b1 >>> 2);\n\tSystem.out.println(b1 >> 2);\n\tSystem.out.println(b1 | 2);\n\tSystem.out.println(b1 & 2);\n\tSystem.out.println(b1 ^ 2);\n\n\n\tshort s1 = 127;\n\tSystem.out.println(s1 + 2);\n\tSystem.out.println(s1 - 2);\n\tSystem.out.println(s1 * 2);\n\tSystem.out.println(s1 / 2);\n\tSystem.out.println(s1 << 2);\n\tSystem.out.println(s1 >>> 2);\n\tSystem.out.println(s1 >> 2);\n\tSystem.out.println(s1 | 2);\n\tSystem.out.println(s1 & 2);\n\tSystem.out.println(s1 ^ 2);\n\n\tint i1 = 127;\n\tSystem.out.println(i1 + 2);\n\tSystem.out.println(i1 - 2);\n\tSystem.out.println(i1 * 2);\n\tSystem.out.println(i1 / 2);\n\tSystem.out.println(i1 << 2);\n\tSystem.out.println(i1 >>> 2);\n\tSystem.out.println(i1 >> 2);\n\tSystem.out.println(s1 | 2);\n\tSystem.out.println(s1 & 2);\n\tSystem.out.println(s1 ^ 2);\n\n\tlong l1 = 12345678910L;\n\tSystem.out.println(l1 + 2);\n\tSystem.out.println(l1 - 2);\n\tSystem.out.println(l1 * 2);\n\tSystem.out.println(l1 / 2);\n\tSystem.out.println(l1 << 2);\n\tSystem.out.println(l1 >>> 2);\n\tSystem.out.println(l1 >> 2);\n\tSystem.out.println(s1 | 2);\n\tSystem.out.println(s1 & 2);\n\tSystem.out.println(s1 ^ 2);\n\n\tfloat f1 = 667.123476F;\n\tSystem.out.println(f1 + 2);\n\tSystem.out.println(f1 - 2);\n\tSystem.out.println(f1 * 2);\n\tSystem.out.println(f1 / 2);\n\n\tdouble d1 = 32383.2345769172340;\n\tSystem.out.println(f1 + d1);\n\tSystem.out.println(f1 - d1);\n\tSystem.out.println(f1 * d1);\n\tSystem.out.println(f1 / d1);\n\n\n\n\tByte b2 = 127;\n\tSystem.out.println(b2 + 2);\n\tSystem.out.println(b2 - 2);\n\tSystem.out.println(b2 * 2);\n\tSystem.out.println(b2 / 2);\n\tSystem.out.println(b2 << 2);\n\tSystem.out.println(b2 >>> 2);\n\tSystem.out.println(b2 >> 2);\n\n\tShort s2 = 13245;\n\tSystem.out.println(s2 + 2);\n\tSystem.out.println(s2 - 2);\n\tSystem.out.println(s2 * 2);\n\tSystem.out.println(s2 / 2);\n\tSystem.out.println(s2 << 2);\n\tSystem.out.println(s2 >>> 2);\n\tSystem.out.println(s2 >> 2);\n\n\tCharacter c2 = 'C';\n\tSystem.out.println(c2 + 2);\n\tSystem.out.println(c2 - 2);\n\tSystem.out.println(c2 * 2);\n\tSystem.out.println(c2 / 2);\n\tSystem.out.println(c2 << 2);\n\tSystem.out.println(c2 >>> 2);\n\tSystem.out.println(c2 >> 2);\n\n\tInteger i2 = 127;\n\tSystem.out.println(i2 + 2);\n\tSystem.out.println(i2 - 2);\n\tSystem.out.println(i2 * 2);\n\tSystem.out.println(i2 / 2);\n\tSystem.out.println(i2 << 2);\n\tSystem.out.println(i2 >>> 2);\n\tSystem.out.println(i2 >> 2);\n\n\tLong l2 = 122273757L;\n\tSystem.out.println(l2 + 2);\n\tSystem.out.println(l2 - 2);\n\tSystem.out.println(l2 * 2);\n\tSystem.out.println(l2 / 2);\n\tSystem.out.println(l2 << 2);\n\tSystem.out.println(l2 >>> 2);\n\tSystem.out.println(l2 >> 2);\n\n\tFloat f2 = 123.44765896F;\n\tSystem.out.println(f2 + 2);\n\tSystem.out.println(f2 - 2);\n\tSystem.out.println(f2 * 2);\n\tSystem.out.println(f2 / 2);\n\n\tDouble d2 = 12322387.44765896;\n\tSystem.out.println(d2 + 2);\n\tSystem.out.println(d2 - 2);\n\tSystem.out.println(d2 * 2);\n\tSystem.out.println(d2 / 2);\n }", "public static void main(String[] args) {\n\t\tString john = \"john\";\n\t\tString jon = new String(\"john\");\n\n\t\tSystem.out.println((john == jon) + \" \" + (john.equals(jon)));\n\t}", "public static boolean timingSafeEquals(CharSequence first, CharSequence second) {\n if (first == null) {\n return second == null;\n } else if (second == null) {\n return false;\n } else if (second.length() <= 0) {\n return first.length() <= 0;\n }\n int firstLength = first.length();\n int secondLength = second.length();\n char result = (char) ((firstLength == secondLength) ? 0 : 1);\n int j = 0;\n for (int i = 0; i < firstLength; ++i) {\n result |= first.charAt(i) ^ second.charAt(j);\n j = (j + 1) % secondLength;\n }\n return result == 0;\n }", "public void test() {\n String b = new String(\"111\");\n b = null;\n String c = b;\n }", "@Test\n public void testEqualChar3() {\n char a = '%';\n char b = '!';\n char c = '\\t';\n char d = '\\n';\n\n boolean result1 = offByOne.equalChars(a, b);\n boolean result2 = offByOne.equalChars(c, d);\n\n assertFalse(result1);\n assertTrue(result2);\n }" ]
[ "0.75254697", "0.6682278", "0.66577643", "0.6597049", "0.65849745", "0.6577356", "0.6552811", "0.65019417", "0.6400576", "0.63192976", "0.6278916", "0.62620604", "0.6223514", "0.6223138", "0.6192142", "0.61495376", "0.613928", "0.6133405", "0.6127187", "0.60811156", "0.6078207", "0.5961313", "0.5954948", "0.59397197", "0.59138143", "0.59093237", "0.58819497", "0.58741033", "0.5837718", "0.58046263", "0.5802566", "0.5785856", "0.5771979", "0.5769909", "0.57690084", "0.57559663", "0.57529974", "0.5720055", "0.57183915", "0.5714661", "0.5708711", "0.57077676", "0.5705288", "0.5698955", "0.5686229", "0.5676773", "0.567247", "0.5653836", "0.5649302", "0.5643905", "0.56379324", "0.56361187", "0.5631564", "0.56113833", "0.5609812", "0.56072795", "0.5603411", "0.5592622", "0.55890226", "0.5587016", "0.5554105", "0.55510324", "0.5543292", "0.55138093", "0.54925126", "0.5474086", "0.5454395", "0.545117", "0.54452467", "0.5424907", "0.53952557", "0.5395122", "0.5385464", "0.5380523", "0.5372661", "0.53705823", "0.5369146", "0.5365532", "0.5364726", "0.53620887", "0.5349968", "0.534747", "0.5346304", "0.534401", "0.5340539", "0.53364044", "0.53276473", "0.5319124", "0.53184676", "0.5314143", "0.53129154", "0.5312552", "0.5296507", "0.52948904", "0.5293179", "0.5288616", "0.5288214", "0.5277795", "0.5273664", "0.52640253", "0.5261103" ]
0.0
-1
Si el usuario ya esta registrado no se le muestra la actividad de login
private void ComprobarCredenciales(SharedPreferences preferencias){ if(preferencias.getBoolean("autenticado", false)){ //Toast.makeText(this, "Autenticado", Toast.LENGTH_SHORT).show(); startActivity(new Intent(this, ContentActivity.class)); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void checkUser() {\n\t\tloginUser = mySessionInfo.getCurrentUser();\n\t}", "private boolean correctUser() {\n // TODO mirar si l'usuari es unic a la base de dades\n return true;\n }", "public boolean verificarUsuario(){\n boolean estado = false;\n try{\n this.usuarioBean = (Dr_siseg_usuarioBean) this.manejoFacesContext.obtenerObjetoSession(\"usuario\");\n if(this.usuarioBean != null){\n estado = true;\n if (this.usuarioBean.getRoll().equals(\"GRP_SERVAGTMII_ADMIN\")){\n modoAdministrador=true;\n// this.usuarioRoll=\"ADMIN\";\n// this.disableBotonFinalizar=\"false\";\n// this.visibleImprimirComprobanteEncargado=\"true\";\n// this.visibleImprimirComprobanteEstudiante=\"true\";\n \n\n }else{\n if (this.usuarioBean.getRoll().equals(\"GRP_SERVAGTMII_PF1\")){\n modoAdministrador=true;\n// this.usuarioRoll=\"PF1\";\n// this.disableBotonFinalizar=\"true\";\n// this.visibleImprimirComprobanteEncargado=\"false\";\n// this.visibleImprimirComprobanteEstudiante=\"true\";\n \n }\n }\n\n }else{\n this.manejoFacesContext.redireccionarFlujoWeb(\"/WebAppSLATE/LogoutServlet\" );\n }\n }catch(Exception ex){\n this.manejoFacesContext.redireccionarFlujoWeb(\"/WebAppSLATE/LogoutServlet\" );\n // this.manejoFacesContext.redireccionarFlujoWeb(\"/WebAppMADEB/cr.ac.una.reg.info.contenido/moduloFuncionario/estudiante/e_editarDireccion.jspx\");\n }//\n return estado;\n }", "boolean registrarUsuario(Usuario usuario) throws Exception;", "@Then(\"^o usuario se loga no aplicativo cetelem$\")\n\tpublic void verificaSeUsuarioLogadoComSucesso() throws Throwable {\n\t\tAssert.assertTrue(login.validaSeLoginSucesso());\n\n\t}", "private void loguearUsuario() {\n\n final FirebaseAuth auth = FirebaseAuth.getInstance();\n FirebaseUser user = auth.getCurrentUser();\n // consigue el usuario\n final String email = editTextEmail.getText().toString().trim();\n String password = editTextPassword.getText().toString().trim();\n\n\n if (TextUtils.isEmpty(email)) {\n Toast.makeText(this, \"Se debe ingresar un email\", Toast.LENGTH_LONG).show();\n return;\n }\n if (TextUtils.isEmpty(password)) {\n Toast.makeText(this, \"Falta ingresar la contraseña\", Toast.LENGTH_LONG).show();\n return;\n }\n\n progressDialog.setMessage(\"Realizando consulta en linea...\");\n progressDialog.show();\n\n firebaseAuth.signInWithEmailAndPassword(email, password)\n .addOnCompleteListener(this, new OnCompleteListener<AuthResult>() {\n // la misma funcion que en el caso anterior pero para poder ingresar\n @Override\n public void onComplete(@NonNull Task<AuthResult> task) { //el oncomplete es para tener la comprobacion sea del campo del login o el singup\n\n if (task.isSuccessful()) {\n // si el usuario se encontraba creado entonces la tarea es exitosa\n\n int pos = email.indexOf(\"@\");\n userstring = email.substring(0, pos); //consigue el nombre del usuario\n Toast.makeText(Login.this, \"Bienvenido: \" + editTextEmail.getText(), Toast.LENGTH_LONG).show(); // consigue el email que habia sido asignado a la variable TextEmail\n Intent intencion = new Intent(getApplication(), UserView.class); // nueva actividad\n intencion.putExtra(\"user\", email); // le pasa como dato al usuario ingresado a la proxima actividad\n startActivity(intencion); //hay que hacer el get del usuario en la parte principal\n // userapasar = user;\n loged = true;\n\n } else {\n loged = false;\n\n if (task.getException() instanceof FirebaseAuthUserCollisionException) {//si se presenta una colisiÛn\n\n Toast.makeText(Login.this, \"Procesando\", Toast.LENGTH_SHORT).show();\n } else {\n Toast.makeText(Login.this, \"\", Toast.LENGTH_LONG).show();\n }\n }\n progressDialog.dismiss();\n }\n });\n }", "public boolean logInDatosCorrectos(){\n if (txtNombreUsuario.getText().equals(\"\") || txtContraseña.getText().equals(\"\")){\n return false;\n }\n return true;\n }", "private void registerUser()\n {\n /*AuthService.createAccount takes a Consumer<Boolean> where the result will be true if the user successfully logged in, or false otherwise*/\n authService.createAccount(entryService.extractText(namedFields), result -> {\n if (result.isEmpty()) {\n startActivity(new Intent(this, DashboardActivity.class));\n } else {\n makeToast(result);\n formContainer.setAlpha(1f);\n progressContainer.setVisibility(View.GONE);\n progressContainer.setOnClickListener(null);\n }\n });\n }", "public boolean loginUser();", "private void checkUser() {\n\t\tlog.info(\"___________checkUser\");\n\t\tList<User> adminUser = userRepository.getByAuthority(AuthorityType.ROLE_ADMIN.toString());\n\t\tif (adminUser == null || adminUser.isEmpty()) {\n\t\t\tgenerateDefaultAdmin();\n\t\t}\n\t}", "boolean verificarLogin(FichaDocente regDcnt);", "@Override\r\n\tpublic boolean checkLogin() {\n\t\treturn false;\r\n\t}", "@Override\r\n\tpublic boolean checkLogin() {\n\t\treturn false;\r\n\t}", "@Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n if(task.isSuccessful()){\n\n Toast.makeText(RegistroActivity.this,\"Se ha registrado el usuario con el email: \"+ TextEmail.getText(),Toast.LENGTH_LONG).show();\n Intent intent = new Intent(RegistroActivity.this, LoginActivity.class);\n startActivity(intent);\n }\n else{\n if (task.getException() instanceof FirebaseAuthUserCollisionException) {//si se presenta una colisión\n Toast.makeText(RegistroActivity.this, \"Ese usuario ya existe \", Toast.LENGTH_SHORT).show();\n } else {\n Toast.makeText(RegistroActivity.this, \"No se pudo registrar el usuario \", Toast.LENGTH_LONG).show();\n }\n }\n progressDialog.dismiss();\n }", "public boolean validarUsuario(String correo, String contrasena) {\n\n usuario = usuarioDAO.login(correo, contrasena);\n if (usuario != null) {\n\n return true;\n\n } else {\n\n return false;\n\n }\n\n }", "protected void accionUsuario() {\n\t\t\r\n\t}", "public void registrar() {\n try {\r\n do {\r\n //totalUsuarios = this.registraUnUsuario(totalUsuarios);\r\n this.registraUnUsuario();\r\n } while (!this.salir());\r\n } catch (IOException e) {\r\n flujoSalida.println(\"Error de entrada/salida, finalizará la aplicación.\");\r\n }\r\n flujoSalida.println(\"Total usuarios registrados: \"+totalUsuarios);\r\n }", "public static void tener_Usuario_activo() {\n\t\t\t\tdesktop.<DomTextField>find(\"//BrowserApplication//BrowserWindow//input[@id='username']\").typeKeys(\"ocastro\");\n\t\t\t\tdesktop.<DomTextField>find(\"//BrowserApplication//BrowserWindow//input[@id='password']\").setText(\"bogota2016\");\n\t\t\t\tdesktop.<DomButton>find(\"//BrowserApplication//BrowserWindow//input[@id='loginbtn']\").click();\n\t\t\t\t//end recording\n\t\t\t\tSerenity.takeScreenshot();\n\t}", "@Override\n public void login(String nome, String email, int senha) {\n if (getNome() == nome && this.getEmail() == email && this.getSenha() == senha){\n System.out.println(\"Login efetuado com sucesso\");\n } else {\n System.out.println(\"0 - Sair\");\n System.out.println(\"Saiu do usuario\");\n }\n\n }", "@Then(\"^o usuario sera direcionado para tela de login$\")\n\tpublic void verificaSeTelaLogin() throws Throwable {\n\t\tAssert.assertTrue(menu.verificaTextoNaTela(\"ACESSAR\"));\n\t\t\n\t\t// finaliza gravação\n\t\tgravaTest.finishRecorder();\n\t\t\n\t\t// fecha driver\n\t\tgetDriver().quit();\n\n\t}", "@Override\n\tpublic boolean existe(Usuario usuarioLogado) {\n\t\treturn false;\n\t}", "public void cadastrarUsuario(final Usuario usuario){\n mAuth = ConfiguracaoFirebase.getFirebaseAuth();\n mAuth.createUserWithEmailAndPassword(\n usuario.getEmail(),usuario.getSenha()\n ).addOnCompleteListener(\n this, new OnCompleteListener<AuthResult>() {\n //Verifica exceções e se o usuário se cadastrou\n @Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n if(task.isSuccessful()){\n Toast.makeText(getApplicationContext(),\"Usuário cadastrado com sucesso!\",Toast.LENGTH_SHORT).show();\n finish();\n //Convertendo email em base 64 para ser usado como uidPessoa\n try {\n String identificadorUsuario = Base64Custom.codificarBase64(FirebaseAuth.getInstance().getCurrentUser().getEmail());\n usuario.setUidPessoa(identificadorUsuario);\n usuario.setNome(FirebaseAuth.getInstance().getCurrentUser().getDisplayName());\n usuario.setEmail(FirebaseAuth.getInstance().getCurrentUser().getEmail());\n usuario.setPontos(1);\n usuario.salvar();\n cadastrarUsuario(usuario);\n logarUsuario(usuario);\n abrirTelaPrincipal();\n }catch (Exception e){\n e.printStackTrace();\n }\n }else {String excecao = \"\";\n try{\n throw task.getException();\n\n }catch (FirebaseAuthWeakPasswordException e){\n excecao = \"Digite uma senha forte!\";\n }catch (FirebaseAuthInvalidCredentialsException e){\n excecao = \"Por favor, digite um e-mail válido\";\n }catch (FirebaseAuthUserCollisionException e){\n excecao = \"esta conta já está cadastrada\";\n }catch (Exception e){\n excecao = \"Erro ao cadastrar usuário\" + e.getMessage();\n e.printStackTrace();\n }\n Toast.makeText(getApplicationContext(),excecao,Toast.LENGTH_SHORT).show();\n }\n }\n });\n }", "boolean hasLogin();", "boolean hasLogin();", "public boolean verificarSesion(){\n boolean sesionValida = false;\r\n if(FacesContext.getCurrentInstance().getExternalContext().getSessionMap().get(\"usuarioValidado\")!=null){\r\n sesionValida=true;\r\n }\r\n return sesionValida;\r\n }", "private boolean isLoginUnique(int currentUserId){\n\t\tUser user = Main.getMMUser().getUserForLogin(userLoginField.getText());\n\t\tif (user == null) return true;\n\t\telse {\n\t\t\tif (user.getId() == currentUserId) return true;\n\t\t}\t\n\t\tlackUserLoginLabel.setText(\"taki login istnieje w bazie\");\n\t\tlackUserLoginLabel.setVisible(true);\n\t\treturn false;\n\t}", "private boolean AlreadyLogin() {\n\t\tString usn = uPreferences.getString(\"username\", null);\n\t\tString pwd = uPreferences.getString(\"password\", null);\n\t\tif((usn == null) || ((pwd == null))){\n\t\t\treturn false;\n\t\t}\n\t\telse \n\t\t\treturn true;\n\t}", "public boolean checkUniqueLoginOnRegister(String login) {\n User user = userRepository.findByUsername(login);\n if (user == null) {\n return true;\n }\n return false;\n }", "@Listen(\"onChange = #txtUsuario; onOK = #txtUsuario\")\r\n\tpublic void buscarPorLogin() {\r\n\t\tUsuario usuario = servicioUsuario.buscarPorLogin(txtUsuario.getValue());\r\n\t\tif (usuario != null)\r\n\t\t\tllenarCamposUser(usuario);\r\n\t\telse {\r\n\t\t\tmsj.mensajeAlerta(Mensaje.noHayRegistros);\r\n\t\t\tidUser = \"TODOS\";\r\n\t\t\ttxtUsuario.setValue(\"TODOS\");\r\n\t\t\tlblUsuario.setValue(\"TODOS\");\r\n\t\t\ttxtUsuario.setFocus(true);\r\n\t\t}\r\n\t}", "public void salir() {\n LoginManager.getInstance().logOut();\n irInicio();\n }", "public String validarUsuario(){\n String resultado = null;\r\n IUsuarioDAO usuarioDAO = new UsuarioDAOImp();\r\n Usuario usuario = usuarioDAO.validarUsuario(nombreUsuario, password);\r\n \r\n if(usuario!=null){\r\n \r\n FacesMessage facesMessage = new FacesMessage(FacesMessage.SEVERITY_INFO, \"Usuario válido\", \"Usuario válido\");\r\n FacesContext.getCurrentInstance().addMessage(null, facesMessage);\r\n \r\n FacesContext.getCurrentInstance().getExternalContext().getSessionMap().put(\"usuarioValidado\", usuario);\r\n \r\n if(usuario.getTipoUsuario().equals(\"admin\"))\r\n resultado = \"admin?faces-redirect=true\";\r\n else\r\n {\r\n if(usuario.getTipoUsuario().equals(\"final\"))\r\n resultado = \"final?faces-redirect=true\";\r\n else\r\n {\r\n if(usuario.getTipoUsuario().equals(\"supervisor\"))\r\n resultado= \"menu\";\r\n else\r\n resultado = \"login\";\r\n \r\n }\r\n \r\n }\r\n \r\n \r\n }else{\r\n FacesMessage facesMessage = new FacesMessage(FacesMessage.SEVERITY_ERROR, \"Credenciales Inválidas\", \"Credenciales Inválidas\");\r\n FacesContext.getCurrentInstance().addMessage(null, facesMessage);\r\n }\r\n return resultado;\r\n }", "public String guardarUsuario() {\n\t\terror=\"\";\n\t\tUsuario nuevoUsuario = new Usuario();\n\t\tnuevoUsuario.setPassword(password);\n\t\tnuevoUsuario.setEmail(email);\n\t\tTokenGenerator miToken = new TokenGenerator();\n\t\tnuevoUsuario.setToken(miToken.generateToken());\n\t\t\n\t\tif(usuarioService.validaUsuarioEmail(nuevoUsuario)==true && usuarioService.validaUsuarioPassword(nuevoUsuario)==true && usuarioService.contraseñasComunes(nuevoUsuario)==true) {\n\t\t\terror=null;\n\t\t\tusuarioService.guardarUsuario(nuevoUsuario);//se guarda usuairo\n\t\t\tUsuario usuarioDb = usuarioService.buscarUsuarioPorEmailyContraseña(nuevoUsuario.getEmail(), nuevoUsuario.getPassword());\n\t\t\tif (usuarioDb != null) {\n\t\t\t\tString accion = \"Usuario \"+ usuarioDb.getEmail() + \" registrado.\";\n\t\t\t\tauditoriaService.registrarAuditoria(usuarioDb,accion);\n\t\t\t}\n\t\t\terror=\"Se envio un correo a su cuenta.\";\n\t\t\treturn \"index\";\n\t\t}\n\t\tUsuario usuarioDb = usuarioService.buscarUsuarioPorEmailyContraseña(nuevoUsuario.getEmail(), nuevoUsuario.getPassword());\n\t\tif(usuarioDb==null) {\n\t\t\tString accion = \"Error al registrar usuario \"+email;\n\t\t\tauditoriaService.registrarAuditoria(usuarioDb,accion);\n\t\t}\n\t\terror=\"Email o Contraseña no validos\";\n\t\treturn \"registro\";\n\t}", "private boolean IsUserExist(){\n SignupUser user =roomDB.dao().GetUserData(et_user.getText().toString());\n if(user!=null){\n if(!user.getEmail().isEmpty()){\n Toast.makeText(this, \"User is already registered!\", Toast.LENGTH_SHORT).show();\n return true;\n }\n\n }\n return false;\n }", "@Override\n public void onResume() {\n if(currentUser != null){\n btnEnviar.setEnabled(false);\n DatabaseReference referenciaTipo = FirebaseDatabase.getInstance().getReference().child(\"usuarios\").child(currentUser);\n referenciaTipo.addListenerForSingleValueEvent(new ValueEventListener() {\n @Override\n public void onDataChange(@NonNull DataSnapshot dataSnapshot) {\n Usuarios usuarios = dataSnapshot.getValue(Usuarios.class);\n nombreUsuarioLog = usuarios.getNombre();\n textNombre.setText(nombreUsuarioLog);\n btnEnviar.setEnabled(true);\n }\n\n @Override\n public void onCancelled(@NonNull DatabaseError databaseError) {\n\n }\n });\n }else{\n returnLogin();\n }\n super.onResume();\n }", "@Override\n public void onComplete(@NonNull Task<AuthResult> task) { //el oncomplete es para tener la comprobacion sea del campo del login o el singup\n\n if (task.isSuccessful()) {\n // si el usuario se encontraba creado entonces la tarea es exitosa\n\n int pos = email.indexOf(\"@\");\n userstring = email.substring(0, pos); //consigue el nombre del usuario\n Toast.makeText(Login.this, \"Bienvenido: \" + editTextEmail.getText(), Toast.LENGTH_LONG).show(); // consigue el email que habia sido asignado a la variable TextEmail\n Intent intencion = new Intent(getApplication(), UserView.class); // nueva actividad\n intencion.putExtra(\"user\", email); // le pasa como dato al usuario ingresado a la proxima actividad\n startActivity(intencion); //hay que hacer el get del usuario en la parte principal\n // userapasar = user;\n loged = true;\n\n } else {\n loged = false;\n\n if (task.getException() instanceof FirebaseAuthUserCollisionException) {//si se presenta una colisiÛn\n\n Toast.makeText(Login.this, \"Procesando\", Toast.LENGTH_SHORT).show();\n } else {\n Toast.makeText(Login.this, \"\", Toast.LENGTH_LONG).show();\n }\n }\n progressDialog.dismiss();\n }", "private boolean SecuenciaValidacion() {\n String cuenta = jTextFieldUser.getText().trim();\n String contrasenia = new String(jPasswordFieldPswd.getPassword());\n\n JDialogSplash jDialogSplash = new JDialogSplash(this, ModalityType.APPLICATION_MODAL);\n jDialogSplash.setLocationRelativeTo(this);\n jDialogSplash.setVisible(true);\n\n if (cuenta.equals(id) && contrasenia.equals(pass)) {\n LOG.info(\"Logging successful\");\n return true;\n } else {\n LOG.info(\"Logging failed\");\n return false;\n }\n }", "public int validarUsuario(Login l){\n\t\tcx.con();\n\t\tString com = \"SELECT * FROM usuario \"+ \n\t\t\t\t\"WHERE usuario='\"+l.getUsuario()+\"' \"+\n\t\t\t\t\"AND password='\"+l.getPassword()+\"' \"+\n\t\t\t\t\"AND estado=true\";\n\t\tint res = cx.contarFilas(com);\n\t\tcx.desconectar();\n\t\treturn res;\n\t}", "private void entrar() {\n\n Connection con = Conexao.abrirConexao();\n UsuarioDAO ud = new UsuarioDAO(con);\n String login = txtLOGIN.getText();\n String senha = txtSENHA.getText();\n String nome;\n\n if (txtLOGIN.getText().equals(\"admin\")) {\n nome = \"Administrador\";\n } else {\n nome = ud.retornarUsuario(login);\n }\n\n if (/*ud.logar(login, senha) == 0 ||*/ login.equals(\"admin\") && senha.equals(\"admin\")) {\n lblERRO.setText(\"\");\n JFrame principal = new frm_PRINCIPAL(login, nome);\n this.dispose();\n principal.setVisible(true);\n\n } else {\n\n lblERRO.setText(\"Usuário e/ou Senha Inválidos!\");\n }\n Conexao.fecharConexao(con);\n }", "private boolean loggedIn() {\n boolean exist = false;\n UsuarioBean u = (UsuarioBean) FacesUtil.getBean(\"usuarioBean\");\n if (u.getLoggedIn() != null) {\n exist = u.getLoggedIn().booleanValue();\n }\n return exist;\n }", "public String registration() {\n if (name != null) {\n int createdUsers = DBUtils.addUser(name, password, email);\n if (createdUsers > 0) {\n try {\n HttpServletRequest request = (HttpServletRequest) FacesContext.getCurrentInstance().getExternalContext().getRequest();\n request.login(name, password);\n initUser();\n request.getSession().setAttribute(\"current_user\", this);\n } catch (ServletException e) {\n FacesContext context = FacesContext.getCurrentInstance();\n FacesMessage message = new FacesMessage(\"Wrong login or password\");\n message.setSeverity(FacesMessage.SEVERITY_ERROR);\n context.addMessage(\"login\", message);\n }\n return \"/index?faces-redirect=true\";\n }\n }\n return \"/pages/register.xhtml?faces-redirect=true\";\n }", "public String verificarCredenciales() {\n String resultado = \"\";\n \n Usuario usuario = usuarioBean.verificarCredenciales(this.usuario, this.password);\n \n if (usuario != null) {\n FacesContext.getCurrentInstance().getExternalContext().getSessionMap().put(\"usuario\", usuario);\n resultado = \"home?faces-redirect=true\";\n \n \n } else {\n FacesContext fc = FacesContext.getCurrentInstance();\n fc.addMessage(\"\", new FacesMessage(FacesMessage.SEVERITY_ERROR, \"Acceso Denegado\", \"Las credenciales son incorrectas\"));\n }\n return resultado;\n }", "public Boolean seguir(UsuarioRegistrado usuario) {\n\t\tif (usuario != null) {\n\t\t\tseguidos.add(usuario);\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "protected boolean performLoginAfterRegister(P params) {\n return !commonService.getProperty(RegistrationSettings.FORCE_LOGIN_AFTER_REGISTER);\n }", "public void registrarUsuarioFinal(){\r\n Usuario nuevoUsuario= new Usuario();\r\n nuevoUsuario.setNombreUsuario(nuevoNombreUsuario);\r\n nuevoUsuario.setPassword(nuevoPasswordUsuario);\r\n nuevoUsuario.setTipoUsuario(\"final\");\r\n \r\n IUsuarioDAO iusuarioDAO = new UsuarioDAOImp();\r\n iusuarioDAO.agregarUsuario(nuevoUsuario);\r\n FacesMessage facesMessage = new FacesMessage(FacesMessage.SEVERITY_INFO, \"Usuario registrado\", \"Usuario registrado exitosamente\");\r\n FacesContext.getCurrentInstance().addMessage(null, facesMessage);\r\n\r\n }", "public boolean registrar(usuario usr) {\n\n PreparedStatement ps = null;\n Conectar ct = new Conectar();\n Connection con = ct.conexion();\n //INSEERTAR DENTRO DE LA TABLA TRABAJO LOS DATOS DE REGISTRO\n String sql = \"INSERT INTO trabajo (usuario, password, Email, id_tipo, Nombre) VALUES(?,?,?,?,?)\";\n\n try {\n ps = con.prepareStatement(sql);\n\n ps.setString(1, usr.getUsuario());\n\n ps.setString(2, usr.getPassword());\n\n ps.setString(3, usr.getEmail());\n\n ps.setInt(4, usr.getId_tipo());\n\n ps.setString(5, usr.getNombre());\n\n ps.execute();\n return true;\n\n } catch (SQLException ex) {\n Logger.getLogger(sqlUsuario.class.getName()).log(Level.SEVERE, null, ex);\n return false;\n }\n }", "private Boolean loginUserToAccount() {\n String email = userEmail.getText().toString();\n String password = userPassword.getText().toString();\n // perform validations\n if(email.isEmpty()){\n Toast.makeText(this,\"Please Enter Email\",Toast.LENGTH_SHORT).show();\n }\n else if(password.isEmpty()){\n Toast.makeText(this,\"Please Enter Password\",Toast.LENGTH_SHORT).show();\n }\n else{\n\n loadingBar.setTitle(\"Login\");\n loadingBar.setMessage(\"Please wait, while we log into your account\");\n loadingBar.show();\n loadingBar.setCanceledOnTouchOutside(true);\n\n // Create user at firebase using email\n mAuth.signInWithEmailAndPassword(email,password)\n .addOnCompleteListener(new OnCompleteListener<AuthResult>() {\n @Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n loadingBar.dismiss();\n if(task.isSuccessful()){\n sendUserToMainActivity();\n Toast.makeText(LoginActivity.this, \"Login succesfully\", Toast.LENGTH_SHORT).show();\n }\n else{\n String errMessage = task.getException().getMessage();\n Toast.makeText(LoginActivity.this, \"Error in login: \"+errMessage, Toast.LENGTH_SHORT).show();\n }\n }\n });\n }\n return true;\n }", "public boolean checkLogin() {\n // Check login status\n if (!this.usuarioConectado()) {\n\n // user is not logged in redirect him to Login Activity\n Intent i = new Intent(contexto, LoginActivity.class);\n\n // Closing all the Activities from stack\n i.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n\n // Add new Flag to start new Activity\n i.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n\n // Staring Login Activity\n contexto.startActivity(i);\n\n return true;\n }\n return false;\n }", "@Override\n public boolean validacionLogin(UsuarioDto usuarioDto) {\n HashMap<String, Object> params = new HashMap<>();\n params.put(\"NOMBRE_USUARIO\", usuarioDto.getNombre());\n params.put(\"PASS\", usuarioDto.getContracena());\n IntegerDto data = (IntegerDto) executeList(IntegerDto.class, \"PRC_VALIDAR_LOGIN\", params).get(0);\n return data.getData() != 0;\n }", "@Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n if (task.isSuccessful()) {\n FirebaseUser user = FirebaseAuth.getInstance().getCurrentUser();\n //delete user just created\n user.delete();\n //prompt user to create account\n Toast.makeText(MainActivity.this, \"No Email Exist \", Toast.LENGTH_SHORT).show();\n Toast.makeText(MainActivity.this, \"Create New Account \", Toast.LENGTH_SHORT).show();\n } else {\n // if failed, email already exist and move on to verify passoword\n //Toast.makeText(MainActivity.this, \"Loggin In\", Toast.LENGTH_SHORT).show();\n signUserIn(emailX);\n }\n\n }", "public boolean registeredUser(String email, String password)\n {\n for (User user : users) {\n if(user.email.equals(email) && user.password.equals(password)) {\n Log.v(\"DonationApp\", \"Logging in as: \" + user.firstName + \" \" + user.lastName);\n return true;\n }\n }\n return false;\n }", "private boolean checkLogin() {\n firebaseAuth = FirebaseAuth.getInstance();\n currentUser = firebaseAuth.getCurrentUser();\n if(currentUser == null) {\n //show login activity\n Intent intent = new Intent(this, LoginActivity.class);\n startActivity(intent);\n return false;\n } else {\n verifyUserPII(currentUser);\n return true;\n }\n }", "private boolean comprobarUsuario(String nombre, String contrasenia, String grupo) {\n\n return true;\n }", "@Override\n public void onClick(View v) {\n String cnpj_email = campo_CNPJ_email.getText().toString();\n String senhaLogim = campoSenha.getText().toString();\n\n //testar se nao estao vazios\n if (!cnpj_email.isEmpty()){\n\n //if para o campo senha\n if (!senhaLogim.isEmpty()){\n\n usuarioCliente = new UsuarioCliente();\n usuarioCliente.setEmail(cnpj_email);\n usuarioCliente.setSenha(senhaLogim);\n //metodo que valida login\n validarLogin(usuarioCliente);\n\n }else{\n Toast.makeText(AutentinticacaoActivity.this,\"Preencha o campo CNPJ/Email\",\n Toast.LENGTH_SHORT).show();\n }\n }else{\n\n Toast.makeText(AutentinticacaoActivity.this,\"Preencha o campo Senha\",\n Toast.LENGTH_SHORT).show();\n }\n }", "@Override\n public void onAuthStateChanged(@NonNull FirebaseAuth firebaseAuth) {\n user = firebaseAuth.getCurrentUser(); // con esto traemos el estado\n\n if(user!=null){\n Log.d(\"TAG\",\"Esta logueado: con el id: \" + user.getUid());\n\n Toast.makeText(MainActivity.this, \"esta logueado\", Toast.LENGTH_SHORT).show();\n\n finish();\n\n //and open profile activity\n startActivity(new Intent(getApplicationContext(), Ingreso.class));\n\n\n }else{\n Log.d(\"TAG\",\"NO Esta logueado\");\n\n }\n\n }", "@Override\n public void onRegistrationSuccess() {\n listener.onUsernameAvailabilityChecked(false);\n }", "void register() {\n if (registerView.getFirstName().length() == 0 || registerView.getLastName().length() == 0 || registerView.getUsername().length() == 0 || registerView.getPassword().length() == 0) {\n IDialog invalidRegistrationDialog\n = dialogFactory.createDialog(DialogFactoryOptions.dialogNames.MESSAGE, new HashMap<String, Object>() {\n {\n put(\"message\", \"Unable to register: Fields must be non-empty!\");\n put(\"title\", \"Authentication Error\");\n put(\"messageType\", DialogFactoryOptions.dialogType.ERROR);\n }\n });\n\n invalidRegistrationDialog.run();\n } else {\n if (userController.registerUser(registerView.getFirstName(), registerView.getLastName(), registerView.getUsername(), registerView.getPassword()) != null) {\n mainFrame.setPanel(panelFactory.createPanel(PanelFactoryOptions.panelNames.MAIN_MENU));\n } else {\n IDialog invalidRegistrationDialog = dialogFactory.createDialog(DialogFactoryOptions.dialogNames.MESSAGE, new HashMap<String, Object>() {\n {\n put(\"message\", \"Unable to register: Username is already taken\");\n put(\"title\", \"Authentication Error\");\n put(\"messageType\", DialogFactoryOptions.dialogType.ERROR);\n }\n });\n\n invalidRegistrationDialog.run();\n }\n }\n }", "@Override\r\n\tpublic boolean checkLogin(int accNo) throws EwalletException {\n\t\ttemp =dao.loginuser(accNo);\r\n\t\tif(temp!=null)\r\n\t\treturn true;\r\n\t\telse \r\n\t\t\treturn false;\r\n\t}", "@Override\n\tpublic void loginUser() {\n\t\t\n\t}", "public boolean login() {\n\t\tview.setVisible(true);\r\n\t\treturn resultado;\r\n\t}", "public boolean existeUser(String usuario) {\n Conexion c = new Conexion();\n PreparedStatement ps = null;\n ResultSet rs = null;\n String sql = \"SELECT email FROM usuario WHERE usuario.usuario = ?\";\n try {\n ps = c.getConexion().prepareStatement(sql);\n ps.setString(1, usuario);\n rs = ps.executeQuery();\n if (rs.next()) {\n return true;\n }\n } catch (SQLException ex) {\n System.out.println(ex.getMessage());\n } catch (Exception ex) {\n System.out.println(ex.getMessage());\n } finally {\n try {\n ps.close();\n rs.close();\n c.cerrarConexion();\n } catch (Exception ex) {\n }\n }\n return false;\n }", "public void recogerUsuarioFirebase() {\n //if user is not valid\n FirebaseUser currentUser = FirebaseAuth.getInstance().getCurrentUser();\n if (currentUser == null) {\n startActivity(StartActivity.createIntent(this));\n finish();\n return;\n } else {\n uniqueID = currentUser.getUid();\n }\n }", "@Override\n public boolean check() {\n return GlobalParams.isLogin();\n }", "public static boolean login() {\n\t\t// DB\n\t\tString[] usr = { \"NICOLAS\", \"CELESTE\" };\n\t\tString[] pass = { \"cerveza\", \"fernet\" };\n\t\tString usrAuth = \"\";\n\t\tboolean auth = false;\n\t\tint intentos = 1;\n\n\t\tdo {\n\t\t\tJTextField usuario = new JTextField();\n\t\t\tJTextField password = new JPasswordField();\n\t\t\tObject[] ingresarUsuarioPassword = { \"Usuario: \", usuario, \"Password\", password };\n\t\t\tint ingresarLogin = JOptionPane.showConfirmDialog(null, ingresarUsuarioPassword,\n\t\t\t\t\t\"Ingrese credenciales de usuario\", JOptionPane.OK_CANCEL_OPTION);\n\t\t\tif (ingresarLogin == JOptionPane.OK_OPTION) {\n\t\t\t\t// Busca el usuario en un bucle For\n\t\t\t\tfor (int i = 0; i < usr.length; i++) {\n\t\t\t\t\t// Si encuentra el usuario, verifica si el usuario y la contraseña coinciden\n\t\t\t\t\tif (usr[i].equals(usuario.getText().toUpperCase()) && pass[i].equals(password.getText())) {\n\t\t\t\t\t\tusrAuth = usr[i];\n\t\t\t\t\t\tauth = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t// Si no coincide, muestra los intentos restantes y vuelve a pedir credenciales\n\t\t\t\tif (!auth) {\n\t\t\t\t\tif (intentos < 3) {\n\t\t\t\t\t\tJOptionPane.showMessageDialog(null,\n\t\t\t\t\t\t\t\t\"Usuario y/o Password incorrecto\\n\" + (3 - intentos) + \" Intentos restantes\",\n\t\t\t\t\t\t\t\t\"Usuario y/o Password incorrecto\", JOptionPane.WARNING_MESSAGE);\n\t\t\t\t\t\tintentos++;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tJOptionPane.showMessageDialog(null,\n\t\t\t\t\t\t\t\t\"Usuario y/o Password incorrecto\\n\" + \"Se supero en numero de intentos\",\n\t\t\t\t\t\t\t\t\"Usuario y/o Password incorrecto\", JOptionPane.WARNING_MESSAGE);\n\t\t\t\t\t\tintentos++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t// Cierra si no se selecciona OK\n\t\t\t\tbreak;\n\t\t\t}\n\t\t} while (!auth & (intentos <= 3));\n\t\t// Si autentica, muestra mensaje de bienvenida\n\t\tif (auth)\n\t\t\tJOptionPane.showMessageDialog(null, \"Bienvenido \" + usrAuth, \"Bienvenido\", JOptionPane.INFORMATION_MESSAGE);\n\t\treturn auth;\n\t}", "@Override\n\tpublic boolean isLogin() {\n\t\treturn false;\n\t}", "private void isUserExist() {\n\n if (firebaseAuth.getCurrentUser() != null) {\n\n final String user_id = firebaseAuth.getCurrentUser().getUid();\n users_database_reference.addValueEventListener(new ValueEventListener() {\n @Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n\n if (dataSnapshot.hasChild(user_id)) {\n // sign in the user and go to main activity\n // Intent intent = new Intent(StartActivity.this, MainActivity.class);\n // intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n // startActivity(intent);\n } else {\n // go to profile page\n Intent intent = new Intent(MainActivity.this, Profile.class);\n intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n startActivity(intent);\n\n }\n }\n\n @Override\n public void onCancelled(DatabaseError databaseError) {\n\n }\n });\n\n }\n }", "public boolean inicioSession(String usuario, String password, String aplicacion){\n Session session = obtenerConexion().authenticate( aplicacion, usuario, password);\n if(session != null){\n setSesion(session);\n return true;\n }else{\n return false;\n }\n }", "public boolean checkRegister() {\n\n\t\tif (!email.getText().equals(\"\") && !username.getText().equals(\"\") && !psw.getText().equals(\"\")) {\n\t\t\tResultSet test = Database.getInstance().query(\"SELECT * FROM utilisateur\");\n\t\t\ttry {\n\t\t\t\twhile (test.next()) {\n\t\t\t\t\tif (test.getString(2).equals(username.getText()) && test.getString(4).equals(email.getText())\n\t\t\t\t\t\t\t&& test.getString(3).equals(psw.getText())) {\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\treturn false;\n\n\t\t\t} catch (SQLException e) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "private void attemptRegister() {\n\n // Reinicia los errores de los EditText\n mEditEmail.setError(null);\n mEditFirstName.setError(null);\n mEditLastName.setError(null);\n mEditPassword.setError(null);\n mEditPasswordConfirm.setError(null);\n\n // Obtiene los valores ingresados por el usuario\n String email = Utils.checkEditTextForEmpty(getContext(),mEditEmail);\n String firstName = Utils.checkEditTextForEmpty(getContext(),mEditFirstName);\n String lastName = Utils.checkEditTextForEmpty(getContext(),mEditLastName);\n String password = Utils.checkEditTextForEmpty(getContext(),mEditPassword);\n String passwordConfirm = Utils.checkEditTextForEmpty(getContext(),mEditPasswordConfirm);\n\n //Revisa si hay valor vacío\n if (email == null || firstName == null || lastName == null || password == null || passwordConfirm == null) {\n return;\n }\n\n // Valida el correo\n if (!email.contains(\"@\")) {\n mEditEmail.setError(getString(R.string.error_invalid_email));\n mEditEmail.requestFocus();\n return;\n }\n\n // Valida la contraseña\n if (password.length() < 3) {\n mEditPassword.setError(getString(R.string.error_invalid_password));\n mEditPassword.requestFocus();\n return;\n }\n\n //Valida que las contraseñas hagan match\n if (!password.equals(passwordConfirm)) {\n mEditPasswordConfirm.setError(getString(R.string.error_invalid_password_confirmation));\n mEditPasswordConfirm.requestFocus();\n return;\n }\n\n // Intenta crear la cuenta\n Toast.makeText(getContext(), \"Bienvenido\", Toast.LENGTH_LONG).show();\n }", "public Boolean validarRegistro(Usuario u) {\r\n\t\tif(!this.modoAdmin) return false ;\r\n\t\tu.aprobar();\r\n\t\treturn true;\r\n\t}", "private void metodoSalvarUsuarioFirebase(final Usuarios variavelClasseUsuarios) {\n\n refAutenticacaofb = ConfiguracaoFirebase.metodoAutenticacaoFirebase();\n refAutenticacaofb.createUserWithEmailAndPassword(variavelClasseUsuarios.getEmail(),\n variavelClasseUsuarios.getSenha()).addOnCompleteListener(new OnCompleteListener<AuthResult>() {\n @Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n\n if(task.isSuccessful()){\n\n idUsuario = task.getResult().getUser().getUid();\n variavelClasseUsuarios.setId(idUsuario);\n variavelClasseUsuarios.salvarUsuario();\n\n if(pegarTipoUsuarioSwitch() == \"Cliente\"){\n\n startActivity(new Intent(CadastroUsuario.this, Home.class));\n finish();\n Toast.makeText(CadastroUsuario.this, \"Usuário salvo com sucesso\", Toast.LENGTH_LONG).show();\n }else{\n\n startActivity(new Intent(CadastroUsuario.this, PainelEmpresa.class));\n finish();\n Toast.makeText(CadastroUsuario.this, \"Empresa inserida com sucesso!\", Toast.LENGTH_LONG).show();\n }\n\n\n }\n\n\n\n }\n });\n\n }", "public boolean hasRegisteredUser() {\n return registeredUser_ != null;\n }", "private void LoginOwner() {\n Transaksi.setEnabled(false);\n Transaksi.setVisible(false);\n }", "public void login() {\n\t\tUser user = new User(\"admin\", \"12345678\", Role.ADMIN);\n\t\tuser.setEmail(\"[email protected]\");\n\t\t\n\t\tif(user != null) {\n\t\t\tuserBean.setLoggedInUser(user);\n\t\t\tFacesContext context = FacesContext.getCurrentInstance();\n\t\t\tHttpServletRequest req = (HttpServletRequest)context.getExternalContext().getRequest();\n\t\t\treq.getSession().setAttribute(ATTR_USER, user);\n\t\t}else{\n\t\t\tkeepDialogOpen();\n\t\t\tdisplayErrorMessageToUser(\"Wrong Username/Password. Try again\");\n\t\t}\n\t\t\n\t}", "public Boolean login(String nome, String senha) {\n try {\n if (metodos.logar(nome, senha)) {\n this.nome = nome;\n return true;\n }\n } catch (RemoteException ex) {\n Logger.getLogger(Controller.class.getName()).log(Level.SEVERE, null, ex);\n }\n\n return false;\n }", "@Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n //caso sucesso ao fazer login usuario\n if (task.isSuccessful()){\n progressBarLogin.setVisibility(View.GONE);\n //instancio a activity de destino\n startActivity(new Intent(getApplicationContext(),SolicitacaoAreaActivity.class));\n finish();//fecha a activity atual\n }else{\n Toast.makeText(AutentinticacaoActivity.this,\n \"Erro ao fazer login\",\n Toast.LENGTH_SHORT).show();\n progressBarLogin.setVisibility(View.GONE);\n }\n\n\n }", "@Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n if (task.isSuccessful()) {\n FirebaseUser user = FirebaseAuth.getInstance().getCurrentUser();\n //delete user just created\n user.delete();\n //prompt user to create account\n Toast.makeText(MainActivity.this, \"No Email Exist \", Toast.LENGTH_SHORT).show();\n Toast.makeText(MainActivity.this, \"Create New Account \", Toast.LENGTH_SHORT).show();\n } else {\n // if failed, email already exist and move on to verify passoword\n //Toast.makeText(MainActivity.this, \"Loggin In\", Toast.LENGTH_SHORT).show();\n sentReset(finalInputUsername);\n }\n }", "private void serchUser() {\n if (!userNameTextField.getText().isEmpty() && !passwordPasswordField.getText().isEmpty()) {\n try {\n User user = UserController.searchUserByUserName(userNameTextField.getText());\n if (user != null) {\n if (passwordPasswordField.getText().equals(user.getPassword())) {\n closeFadeOut();\n Hi hi = new Hi();\n hi.setUser(user);\n hi.setVisible(true);\n dispose();\n } else {\n JOptionPane.showMessageDialog(this, \"Incorrect username or password !\");\n passwordPasswordField.setText(\"\");\n userNameTextField.requestFocus();\n userNameTextField.selectAll();\n }\n } else {\n JOptionPane.showMessageDialog(this, \"Incorrect username or password !\");\n passwordPasswordField.setText(\"\");\n userNameTextField.requestFocus();\n userNameTextField.selectAll();\n }\n\n } catch (ClassNotFoundException ex) {\n ex.printStackTrace();\n } catch (SQLException ex) {\n ex.printStackTrace();\n }\n } else {\n JOptionPane.showMessageDialog(this, \"Please enter username and password\");\n passwordPasswordField.setText(\"\");\n userNameTextField.requestFocus();\n userNameTextField.selectAll();\n }\n\n }", "public login() {\n\n initComponents();\n \n usuarios.add(new usuarios(\"claudio\", \"claudioben10\"));\n usuarios.get(0).setAdminOno(true);\n \n }", "@Override\n\tpublic boolean register(User user) {\n\t\tboolean flag = false;\n\t\tList<User> list = this.userDao.findAll(\"and userName = ?\", user.getUserName());\n\t\t//System.out.println(list.size());\n\t\tif(list.size() <= 0){\n\t\t\tthis.userDao.register(user);\n\t\t\tflag = true;\n\t\t}\n\t\treturn flag;\n\t}", "protected boolean login() {\n\t\tString Id = id.getText();\n\t\tif (id.equals(\"\")){\n\t\t\tJOptionPane.showMessageDialog(null, \"请输入用户名!\",\"\", JOptionPane.ERROR_MESSAGE);\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\tUserVO user = bl.findUser(Id);\n\t\tif (user == null){\n\t\t\tJOptionPane.showMessageDialog(null, \"该用户不存在!\",\"\", JOptionPane.ERROR_MESSAGE);\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\tif (! user.getPassword().equals(String.valueOf(key.getPassword()))){\n\t\t\tSystem.out.println(user.getPassword());\n\t\t\tJOptionPane.showMessageDialog(null, \"密码错误!\",\"\", JOptionPane.ERROR_MESSAGE);\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\tsimpleLoginPanel.this.setVisible(false);\n\t\tUserblService user2 = new Userbl(Id);\n\t\tReceiptsblService bl = new Receiptsbl(user2);\n\t\tClient.frame.add(new simpleMainPanel(user2,bl));\n\t\tClient.frame.repaint();\n\t\t\n\t\treturn true;\n\t\t\n\t}", "public boolean login(String X_Username, String X_Password){\n return true;\n //call the function to get_role;\n //return false;\n \n \n }", "public void menu(){\n System.out.println(\"---------------------------Login------------------------------------\");\n \n System.out.println(\"Usuario:\");\n respuesta = scanner.nextLine();\n System.out.println(\"Contraseña:\");\n respuesta2 = scanner.nextLine();\n Usuario user = new Usuario();\n user.setNombre(respuesta);\n user.setPassword(respuesta2);\n idUser=modelo.validarUsuario(user);\n if(idUser<0){\n System.err.println(\"Usuario invalido\");\n \n }else{\n \n menuInterno();\n \n }\n//\n// menuInterno();\n// \n }", "@Override\n\tpublic boolean autentica(String senha) {\n\t\treturn false;\n\t}", "@Given(\"^El usuario quiere acceder al sistema$\")\n\tpublic void El_usuario_quiere_acceder_al_sistema() throws Throwable {\n\t\tdao = new DAOPersona();\n\t p=new Persona(\"Carlos\", \"Delgado\", \"carlitos93\", \"[email protected]\", \"a1Zs7s2DM\", \"Calle Jane Doe\", \"0\", \"photo\", false, null, null, null);\n\t assert(true);\n\t}", "@Override\n\tprotected void checkLoginRequired() {\n\t\treturn;\n\t}", "@Override\n public void onAuthStateChanged(@NonNull FirebaseAuth firebaseAuth) {\n FirebaseUser currentUser = firebaseAuth.getCurrentUser();\n if (currentUser != null) {\n Log.w(TAG, \"Usuario Logeado\" + currentUser.getEmail());\n } else {\n Log.w(TAG, \"Usuario NO Logeado\");\n }\n }", "public void validacionDatos() {\n if (!this.interfazLogin.txtUsuario().getText().isEmpty()) {\n if (this.interfazLogin.txtPassword().getText().length() > 7) {\n\n String[] usuario = modeloLogin.getAcceso(\n this.interfazLogin.txtUsuario().getText(),\n this.interfazLogin.txtPassword().getText());\n\n if (usuario[0].isEmpty()) {\n JOptionPane.showMessageDialog(null, \"Usuario o Contraseña Invalidos\");\n } else {\n controlInterfazPrincipal();\n\n if (usuario[2].equals(\"Administrador\")) {\n interfazPrincipal.btnUsuario().setVisible(true);\n pintarPanelPrincipal(panelUsuarios);\n\n } else {\n interfazPrincipal.btnUsuario().setVisible(false);\n pintarPanelPrincipal(panelClientes);\n }\n }\n this.interfazLogin.txtPassword().setText(\"\");\n } else {\n JOptionPane.showMessageDialog(null, \"El campo de password debe tener como minino 8 caracteres\");\n }\n } else {\n JOptionPane.showMessageDialog(null, \"El campo de usurario no puede ir vacio\");\n }\n }", "private boolean isLoggedInUser(){\n return true;\n }", "private void checkUserExist() {\n\n final DatabaseReference mUseRef;\n\n\n if (mAuth.getCurrentUser() != null) {\n final String valid_user_id = mAuth.getCurrentUser().getUid();\n mDatabase.addValueEventListener(new ValueEventListener() {\n @Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n if (dataSnapshot.hasChild(valid_user_id)) {\n Intent singinIntent = new Intent(JoinActivity.this, MainActivity.class);\n singinIntent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n startActivity(singinIntent);\n finish();\n } else {\n Toast.makeText(JoinActivity.this, \"You have to first setup your account!\", Toast.LENGTH_SHORT).show();\n }\n }\n\n @Override\n public void onCancelled(DatabaseError databaseError) {\n\n }\n });\n\n }\n }", "public boolean hasLogin() {\n return login_ != null;\n }", "@Override\n public boolean checkLoginExist(String login) {\n logger.info(\"check if login exists\");\n if (userDao.get(login) != null) {\n logger.info(\"Such login does't existing\");\n }\n return userDao.get(login) != null;\n }", "@Override\r\n public void registrarUsuario(User u) {\r\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\r\n }", "@Override\n public void onClick(View v) {\n try {\n Login login = new Login();\n login.setSalt(new Date());\n login.setUsername(mUsernameInput.getText().toString());\n login.setPassword(login.hashedPassword(mPasswordInput.getText().toString()));\n\n if (mLoginDb.getLogin(login.getUsername()) == null && mPasswordInput.getText().toString().length() != 0) {\n mLoginDb.addLogin(login);\n mUserId = login.getId().toString();\n //Log.d(TAG, \"register \" + mUserId);\n Bundle bundle = new Bundle();\n Intent intent = PasswordListActivity.newIntent(getActivity());\n setBundles(bundle, intent);\n\n startActivity(intent, bundle);\n\n Toast.makeText(getActivity(),\n R.string.register_successful,\n Toast.LENGTH_SHORT).show();\n } else if (mUsernameInput.getText().toString().length() == 0) {\n Toast.makeText(getActivity(),\n R.string.register_username_length,\n Toast.LENGTH_SHORT).show();\n }\n else if (mPasswordInput.getText().toString().length() == 0) {\n Toast.makeText(getActivity(),\n R.string.register_password_length,\n Toast.LENGTH_SHORT).show();\n } else if (mLoginDb.getLogin(login.getUsername()).getUsername() != null) {\n Toast.makeText(getActivity(),\n R.string.register_exists,\n Toast.LENGTH_SHORT).show();\n } else {\n throw new Exception();\n }\n } catch (Exception e) {\n e.printStackTrace();\n Toast.makeText(getActivity(),\n R.string.register_error,\n Toast.LENGTH_SHORT).show();\n }\n }", "@Override\r\n\tpublic boolean insertUsuario(Usuario user) {\n\t\treturn false;\r\n\t}", "public AuthToken loginUser(){\n return null;\n }", "public Login() {\n inicializarUsuarios();\n }", "public boolean autenticar(String userid, String pwd) throws SQLException {\r\n\r\n PreparedStatement ps = conn.prepareStatement(\"select * from usuario where login=? and senha=? and ativo=1\");\r\n ps.setString(1, userid);\r\n ps.setString(2, pwd);\r\n ResultSet rs = ps.executeQuery();\r\n\r\n if (rs.next()) {\r\n return true;\r\n } else {\r\n System.out.println(\"Senha e/ou Usuário incorreto! <a href='index.jsp'>Tente Novamente</a>\");\r\n }\r\n return false;\r\n }", "private void registerUser() {\n\n // Get register name\n EditText mRegisterNameField = (EditText) findViewById(R.id.register_name_field);\n String nickname = mRegisterNameField.getText().toString();\n\n // Get register email\n EditText mRegisterEmailField = (EditText) findViewById(R.id.register_email_field);\n String email = mRegisterEmailField.getText().toString();\n\n // Get register password\n EditText mRegisterPasswordField = (EditText) findViewById(R.id.register_password_field);\n String password = mRegisterPasswordField.getText().toString();\n\n AccountCredentials credentials = new AccountCredentials(email, password);\n credentials.setNickname(nickname);\n\n if (DataHolder.getInstance().isAnonymous()) {\n credentials.setOldUsername(DataHolder.getInstance().getUser().getUsername());\n }\n\n sendRegistrationRequest(credentials);\n }", "@Override\n\t/*Método que va a ser utilizado en el momento en el que se vaya a registrar un usuario*/\n\tpublic String registrarusuario(String nombreusuario, String clave, String nombre, String apellidos, String email, float saldo, Boolean premium) {\n\t\tDBConnection con = new DBConnection();\n\t\tString mensaje=\"\"; //mensaje que se va a devolver al final de la funcion\n\t\tString sqlcomprobacionusuario=\"SELECT * from usuarios\"; //Se cojen todos los datos de los usuarios\n\t\tBoolean valido=true; //para ver si el usuario es válido\n\t\ttry {\n\t\t\tStatement st = con.getConnection().createStatement(); \n\t\t\tResultSet rscomprobacionusuario = st.executeQuery(sqlcomprobacionusuario);\n\t\t\twhile(rscomprobacionusuario.next()) {\n\t\t\t\tString nombre_usu= rscomprobacionusuario.getString(\"nombreusuario\");\n\t\t\t\tString correo= rscomprobacionusuario.getString(\"email\");\n\t\t\t\tif(nombre_usu.equals(nombreusuario) || correo.equals(email)) {\n\t\t\t\t\tvalido=false;\n\t\t\t\t}\n\t\t\t}\n\t\t\t/*En caso de que el usuario sea válido se procederá a insertarlo en la BD como un nuevo usuario de la aplicación*/\n\t\t\tif(valido) {\n\t\t\t\tString sql =\"Insert into usuarios(nombreusuario,clave,nombre,apellidos,email,saldo,premium) VALUES('\" +nombreusuario+\"','\" +clave+\"','\" +nombre+\"','\"+apellidos+\"','\"+email+\"',\"+saldo+\",'\"+premium+\"')\";\n\t\t\t\tst.executeQuery(sql);\n\t\t\t\tst.close();\n\t\t\t\tmensaje=\"ok\"; //se establece el mensaje que se va a devolver como ok\n\t\t\t}else{\n\t\t\t\tmensaje=\"not ok\"; //mensaje pasa a ser not ok ya que el usuario no era valido\n\t\t\t\t}\n\t\t\t\n\t\t\treturn mensaje;\n\t\t\t}\n\t\t\tcatch(Exception e) {\n\t\t\t\treturn e.getMessage();\n\t\t\t}finally {\n\t\t\t\tcon.desconectar();\n\t\t\t}\n\t }", "@Override\r\n\tpublic User checkUserLogin(String userName, String password) {\n\t\treturn objUserRegistrationDao.checkUserLogin(userName, password);\r\n\t}", "@Override\r\n\tpublic boolean createUser(Utilisateur u) {\n\t\treturn false;\r\n\t}" ]
[ "0.69845843", "0.69826484", "0.69538355", "0.6952017", "0.691195", "0.6804284", "0.6704292", "0.6684788", "0.6676072", "0.6663844", "0.6660367", "0.66194147", "0.66194147", "0.6591555", "0.65778196", "0.65461075", "0.65432787", "0.6542578", "0.6536946", "0.6517396", "0.6514037", "0.649844", "0.6495119", "0.6495119", "0.6488604", "0.64876384", "0.64601827", "0.6453718", "0.64493126", "0.6428326", "0.6422203", "0.6421373", "0.64206403", "0.6417643", "0.64065343", "0.64047325", "0.6399055", "0.6380276", "0.6372148", "0.6347487", "0.63453317", "0.6339708", "0.6336538", "0.63343036", "0.6315293", "0.63048315", "0.63042367", "0.63021034", "0.6299077", "0.62936336", "0.6292668", "0.6285053", "0.62817234", "0.6273207", "0.62728226", "0.6256604", "0.62562895", "0.6251954", "0.62499225", "0.62394214", "0.6238883", "0.6238694", "0.623447", "0.62344337", "0.62286687", "0.6214174", "0.62082493", "0.62075496", "0.61973083", "0.6171099", "0.61664695", "0.61628646", "0.6155767", "0.6149613", "0.6148248", "0.61432356", "0.614201", "0.6141633", "0.6136829", "0.6134983", "0.61341405", "0.61314195", "0.6129192", "0.6126407", "0.6123996", "0.6116091", "0.61134565", "0.6111438", "0.6107716", "0.6107319", "0.6107045", "0.6106765", "0.6106742", "0.6099615", "0.60989296", "0.6097787", "0.60937756", "0.609235", "0.6082407", "0.60821086", "0.6081091" ]
0.0
-1
Toast.makeText(this, "Presionando The Button", Toast.LENGTH_SHORT).show();
@Override public void onClick(View view) { if(etName.getText().toString().isEmpty()){ nameWrapper.setError(getResources().getString(R.string.nameEmpty)); }else{ if (etPass.getText().toString().matches(PASSWORD)){ SharedPreferences preferencias = getSharedPreferences(FILE_NAME, Context.MODE_PRIVATE); SharedPreferences.Editor editor = preferencias.edit(); editor.putString("userName", etName.getText().toString()); editor.putBoolean("autenticado", !preferencias.getBoolean("autenticado", false)); editor.commit(); ComprobarCredenciales(preferencias); }else{ etPass.setText(""); passwordWrapper.setError(getResources().getString(R.string.passError)); } } getCurrentFocus().clearFocus(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onClick(View v) {\n\n Toast toast = Toast.makeText(getApplicationContext(), \"Coming soon.\", Toast.LENGTH_SHORT);\n toast.show();\n\n }", "@Override\n public void onClick(View v) {\n Toast.makeText(MainActivity.this, \"Hello World\", Toast.LENGTH_LONG).show();\n }", "@Override\n public void onClick(View v) {\n String toastText = \"Hello World\";\n\n // This is how long we want to show the toast\n int duration = Toast.LENGTH_SHORT;\n\n // Get the context\n Context context = getApplicationContext();\n\n // Create the toast\n Toast toast = Toast.makeText(context, toastText, duration);\n\n // Show the toast\n toast.show();\n }", "@Override\n public void onClick(View v) {\n Toast.makeText(MainActivity.this, \"Goodbye!\", Toast.LENGTH_SHORT).show();\n }", "public void onClick(View v) {\n Toast toast = Toast.makeText(getApplicationContext(), \"This button will launch my Capstone app!\", Toast.LENGTH_SHORT);\n toast.show();\n }", "public void showToast(View clickedButton) {\n String greetingText = getString(R.string.greeting_text);\n Toast tempMessage\n = Toast.makeText(this, greetingText,\n Toast.LENGTH_SHORT);\n tempMessage.show();\n }", "public void onClick(View v) {\n Toast toast = Toast.makeText(getApplicationContext(), \"This button will launch my Build It Bigger app!\", Toast.LENGTH_SHORT);\n toast.show();\n }", "public void onClick(View v) {\n Toast toast = Toast.makeText(getApplicationContext(), \"This button will launch my XYZ Reader app!\", Toast.LENGTH_SHORT);\n toast.show();\n }", "public void onClick(View v) {\n Toast toast = Toast.makeText(getApplicationContext(), \"This button will launch my Scores app!\", Toast.LENGTH_SHORT);\n toast.show();\n }", "public void onClick(View v) {\n Toast toast = Toast.makeText(getApplicationContext(), \"This button will launch my Library app!\", Toast.LENGTH_SHORT);\n toast.show();\n }", "public void onClick(View v) {\n Toast toast = Toast.makeText(getApplicationContext(), \"This button will launch my Spotify Streamer app!\", Toast.LENGTH_SHORT);\n toast.show();\n }", "public void onClick(DialogInterface arg0, int arg1) {\n // the button was clicked\n Toast.makeText(getApplicationContext(), \"Professional backhand-Male Video\", Toast.LENGTH_LONG).show();\n }", "@Override\n public void onClick(View v) {\n Toast.makeText(getContext(), \"Not Ready Yet :(\", Toast.LENGTH_SHORT).show();\n }", "@Override\n public void onClick(View v) {\n Toast tst = Toast.makeText(MainActivity.this, \"test\", Toast.LENGTH_SHORT);\n tst.show();\n Test();\n }", "@Override\n public void onClick(View v) {\n Toast.makeText(getContext(),\"hey uuuu clicked me \",Toast.LENGTH_SHORT).show();\n }", "public void onClick(DialogInterface dialog, int id) {\n\r\n Context context = getApplicationContext();\r\n CharSequence text = \"Welcome \" + name + \"! Signing up...\";\r\n int duration = Toast.LENGTH_SHORT;\r\n\r\n Toast toast = Toast.makeText(context, text, duration);\r\n toast.show();\r\n }", "void showToast(String message);", "void showToast(String message);", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tToast.makeText(getApplicationContext(), \"Button 1\", Toast.LENGTH_SHORT).show();\n\t\t\t}", "private void showToast(String message){\n\n Toast.makeText(this, message, Toast.LENGTH_SHORT).show();\n }", "protected void showToast(String message) {\n\tToast.makeText(this, message, Toast.LENGTH_SHORT).show();\n}", "@Override\n public void onClick(View v) {\n Context context = getApplicationContext();\n // When the Hello button on the app is pressed this line of code will show *Hello, how are you?!\"\n Toast toast = Toast.makeText(context,\n \"Contact details for the college are - \" +\n \"\\n\\t CSN College, Tramore Road, Co.Cork\" +\n \"\\n\\t Phone number: 021-4961020\" +\n \"\\n\\t Email: [email protected]\", Toast.LENGTH_LONG);\n // This is for the toast message to show.\n toast.show();\n\n }", "@Override\n public void onClick(View v) {\n\n\n Toast.makeText(MainSOSActivity.this, \"Stay Safe and Confirm the Message! Your emergnecy conctacts will be notified!\", Toast.LENGTH_SHORT).show();\n\n }", "@Override\r\n\t\t\tpublic void onClick(View v) {\n\t\r\n\t\t\r\n\t\t\t\tToast.makeText(getApplicationContext(), \"등록완료\", Toast.LENGTH_SHORT).show();\r\n\t\t\t\r\n\t\t\t\t\t \r\n\t\t\t}", "private void mostrarToast () {\n Toast.makeText(this, \"Imagen guardada en la galería.\", Toast.LENGTH_SHORT).show();\n }", "private void displayToast(String message) {\n Toast.makeText(getApplicationContext(), message, Toast.LENGTH_SHORT).show();\n }", "public void showToast(View view) {\n // Switch based on button ID\n switch (view.getId()) {\n case R.id.popular_movies:\n case R.id.stock_hawk:\n case R.id.build_it_bigger:\n case R.id.make_your_app_material:\n case R.id.go_ubiquitous:\n case R.id.capstone:\n displayToast(\"This button will launch \" +\n ((Button) view).getText().toString()\n + \" app!\");\n break;\n\n default:\n break;\n }\n }", "public void showToast(String text){\n Toast.makeText(this,text,Toast.LENGTH_SHORT).show();\n }", "@Override\n public void onButtonClick(int nButtonIndex) {\n Toast.makeText(this, \"onButtonClick:\" + nButtonIndex, Toast.LENGTH_SHORT).show();\n }", "@Override\n public void onClick(View v) {\n CustomToast.show(getContext(),\"Service will be available Soon\");\n }", "void toast(int resId);", "private void toastMessage (String message){\n Toast.makeText(this, message, Toast.LENGTH_SHORT).show();\n }", "private void toastMessage(String message){\n Toast.makeText(this,message, Toast.LENGTH_SHORT).show();\n }", "private void toastMessage(String message){\n Toast.makeText(this,message, Toast.LENGTH_SHORT).show();\n }", "public void onClick(View btn) {\n String paintingDescription = (String) btn.getContentDescription();\n\n // MAKE A METHOD CALL TO DISPLAY THE INFORMATION\n displayToast(paintingDescription);\n }", "public void showToast(String msg){\n Toast.makeText(this, msg, Toast.LENGTH_SHORT).show();\n }", "@Override\n public void onClick(View v) {\n\n\n Toast.makeText(MainSOSActivity.this, \"Stay Safe and Confirm the Message!\", Toast.LENGTH_SHORT).show();\n\n }", "private void showToast(String msg) {\r\n Toast.makeText(Imprimir.this, msg, Toast.LENGTH_LONG).show();\r\n }", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tstartThread();\n\t\t\t Toast.makeText(getContext(), \"Êղسɹ¦\", 1).show();\n\t\t\t}", "public void onToast (View view)\r\n\t{\r\n\t\t// Respond to the button click\r\n\t\tdoToast ();\r\n\t}", "public void displayMessage(View view) {\n // I got the following line of code from StackOverflow: http://stackoverflow.com/questions/5620772/get-text-from-pressed-button\n String s = (String) ((Button)view).getText();\n CharSequence msg = new StringBuilder().append(\"This button will launch my \").append(s.toString()).append(\" app\").toString();\n Toast.makeText(view.getContext(),msg, Toast.LENGTH_SHORT).show();\n }", "public void displayToast(String message) {\n Toast.makeText(getApplicationContext(), message,\n Toast.LENGTH_SHORT).show();\n }", "@Override\n public void onClick(View v) {\n\n String s = v.getTag().toString();\n int duration = Toast.LENGTH_SHORT;\n Toast toast = Toast.makeText(context, s, duration);\n toast.show();\n }", "private void toast(String aToast) {\n Toast.makeText(getApplicationContext(), aToast, Toast.LENGTH_LONG).show();\n }", "private void toast(String string){\n Toast.makeText(this, string, Toast.LENGTH_SHORT).show();\n }", "@Override\n public void toastText(String s){\n Toast.makeText(getApplicationContext(), s, Toast.LENGTH_SHORT).show();\n }", "protected void toastshow() {\n \n\t\tToast toast=new Toast(getApplicationContext());\n\t\tImageView imageView=new ImageView(getApplicationContext());\n\t\timageView.setImageResource(R.drawable.icon);\n\t\ttoast.setView(imageView);\n\t\ttoast.show();\t\n\t}", "protected void toast() {\n }", "@Override\n public void onClick(View v) {\n\n\n Toast.makeText( LoginActivity.this, \"Saved\", Toast.LENGTH_SHORT ).show();\n }", "private void displayToast(String message) {\n Toast.makeText(OptionActivity.this, message, Toast.LENGTH_SHORT).show();\n }", "private void toastMessage(String message) {\n Toast.makeText(this, message, Toast.LENGTH_SHORT).show();\n\n }", "private void makeToast(String message){\n Toast.makeText(SettingsActivity.this, message, Toast.LENGTH_LONG).show();\n }", "protected void toastshow1() {\n \n\t\tToast toast=Toast.makeText(this, \"image and text\", Toast.LENGTH_LONG);\n\t\t\n\t\tLinearLayout linearLayout=new LinearLayout(this);\n\t\tlinearLayout.setOrientation(LinearLayout.VERTICAL);\n\t\tImageView imageView=new ImageView(this);\n\t\timageView.setImageResource(R.drawable.icon);\n\t\tButton button=new Button(this);\n\t\tbutton.setText(\"progress over\");\n\t\tView toastView=toast.getView();\n\t\tlinearLayout.addView(imageView);\n\t\tlinearLayout.addView(button);\n\t\tlinearLayout.addView(toastView);\n\t\t\n\t\ttoast.setView(linearLayout);\n\t\ttoast.show();\n\t\t\n\t}", "void showToast(String value);", "private void doToast() {\n\t\tEditText editText = (EditText) findViewById(R.id.edit_message);\r\n\t\tString message = editText.getText().toString();\r\n\t\t\r\n\t\t// Create and send toast\r\n\t\tContext context = getApplicationContext();\r\n\t\tint duration = Toast.LENGTH_SHORT;\r\n\t\tToast toast = Toast.makeText(context, message, duration);\r\n\t\ttoast.show();\r\n\t}", "public void showMessage(String text)\n {\n Toast.makeText(this, text, Toast.LENGTH_SHORT).show();\n }", "public void yell(String message){\n Toast.makeText(getApplicationContext(), message, Toast.LENGTH_SHORT).show();\n }", "public void onClickShowAlert(View view) {\n AlertDialog.Builder myAlertBuilder = new\n AlertDialog.Builder(MainActivity.this);\n // Set the dialog title and message.\n myAlertBuilder.setTitle(\"Alert\");\n myAlertBuilder.setMessage(\"Click OK to continue, or Cancel to stop:\");\n // Add the dialog buttons.\n myAlertBuilder.setPositiveButton(\"OK\", new\n DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n // User clicked OK button.\n Toast.makeText(getApplicationContext(), \"Pressed OK\",\n Toast.LENGTH_SHORT).show();\n }\n });\n myAlertBuilder.setNegativeButton(\"Cancel\", new\n DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n // User cancelled the dialog.\n Toast.makeText(getApplicationContext(), \"Pressed Cancel\",\n Toast.LENGTH_SHORT).show();\n }\n });\n // Create and show the AlertDialog.\n myAlertBuilder.show();\n }", "protected void showToast(String string)\r\n\t{\n\t\tToast.makeText(MainActivity.this, string, Toast.LENGTH_SHORT).show();\r\n\t}", "private void showMessage(String message) {\n Toast.makeText(getApplicationContext(),message, Toast.LENGTH_LONG).show();\n }", "private void showToast(String msg) {\n Toast.makeText(getBaseContext(), msg, Toast.LENGTH_LONG).show();\n }", "public void toastMsg(View v){\n String msg = \"Message Sent!\";\n Toast toast = Toast.makeText(this,msg,Toast.LENGTH_SHORT);\n toast.show();\n }", "@Override\n public void onClick(View v) {\n ((TextView) findViewById(R.id.text)).setText(\"Android is AWESOME!!\");\n }", "public void toast (String msg)\n\t{\n\t\tToast.makeText (getApplicationContext(), msg, Toast.LENGTH_SHORT).show ();\n\t}", "@Override\r\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tToast.makeText(getApplication(), \"right\", 1).show();\r\n\t\t\t}", "public void notificacionToast(String mensaje){\n Toast toast = Toast.makeText(getApplicationContext(),mensaje,Toast.LENGTH_LONG);\n toast.setGravity(Gravity.CENTER_HORIZONTAL, 0, 0);\n toast.show();\n }", "private void toastmessage(String message){\n Toast.makeText(Accountinfo.this,message,Toast.LENGTH_SHORT).show();\n }", "public void showMessage(String msg){\n Toast.makeText(getApplicationContext(), msg, Toast.LENGTH_SHORT).show();\n }", "public void DisplayToast(String msg) {\n Toast.makeText(getBaseContext(), msg, Toast.LENGTH_SHORT).show();\n }", "private void displayToast(CharSequence text){\n Context context = getApplicationContext();\n int duration = Toast.LENGTH_SHORT;\n Toast toast = Toast.makeText(context, text, duration);\n toast.show();\n }", "@Override\n\t\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\t\tToast.makeText(getContext(), \"告辞!\",\n\t\t\t\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\t\t\t\t\t\t}", "public void showComingSoonMessage() {\n showToastMessage(\"Coming soon!\");\n }", "private void makeToast(String string) {\n\t\tToast.makeText(this, string, Toast.LENGTH_SHORT).show();\r\n\r\n\t}", "public void ToastPopper(String t){\n Context context = getApplicationContext();\n CharSequence text = t;\n int duration = Toast.LENGTH_LONG;\n\n Toast toast = Toast.makeText(context, text, duration);\n toast.show();\n try {\n Thread.sleep(3000);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tToast.makeText(mContext, \"购物\", Toast.LENGTH_SHORT).show();\n\t\t\t}", "@Override\n public void onClick(View v) {\n if (SHOW_DEBUG)\n Toast.makeText(v.getContext(), \"Yep, this all action \", Toast.LENGTH_SHORT)\n .show();\n fab.startAnimation(fab_show);\n }", "@Override\n public void run() {\n Toast.makeText(getApplicationContext(), \"I'm a toast!\", Toast.LENGTH_SHORT).show();\n }", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tToast.makeText(Test.this, Boolean.toString(tagButton.getStatus()), Toast.LENGTH_SHORT).show();\n\t\t\t}", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tToast.makeText(CanvasActivity.this, \"HIHIHI\", Toast.LENGTH_SHORT).show();\n\t\t\t}", "private void showErrorToast() {\n }", "public void showToast(View view) {\n // Initialize an object named 'toast' using the 'Toast' class\n Toast toast = Toast.makeText(this, R.string.toast_message, Toast.LENGTH_SHORT);\n\n // Use the method 'show()' under the 'Toast' class to show a message\n toast.show();\n }", "@Override\n public void onClick(View v) {\n Toast.makeText(mContext, \"You Clicked \" + position, Toast.LENGTH_LONG).show();\n }", "private void showToast(final String message) {\n main.runOnUiThread(new Runnable() {\n @Override\n public void run() {\n Toast.makeText(main.getApplicationContext(), message, Toast.LENGTH_LONG).show();\n }\n });\n }", "public void buttonOnClick(View v) {\n\n }", "@Override\r\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tToast.makeText(getApplicationContext(), \"模块开发中,敬请期待\", Toast.LENGTH_SHORT).show();\r\n\t\t\t}", "private void showToast(String message) {\n\t\tToast toast = Toast.makeText(getApplicationContext(), message,\n\t\t\t\tToast.LENGTH_SHORT);\n\n\t\ttoast.setGravity(Gravity.CENTER | Gravity.CENTER_HORIZONTAL, 0, 0);\n\t\ttoast.show();\n\t}", "public void onClick(View v) {\n Toast.makeText( getActivity(),\"Voice Recognition\", Toast.LENGTH_SHORT).show();\n }", "public void ting(String msg) {\r\n\t\tToast.makeText(this, msg, Toast.LENGTH_SHORT).show();\r\n\t}", "public void ToastMessage() {\n\n // create toast message object\n final Toast toast = Toast.makeText(Product_Details_Page_Type_4.this,\n \"Product added to cart\",Toast.LENGTH_LONG);\n // show method call to show Toast message\n toast.show();\n\n // create handler to set duration for toast message\n Handler handler = new Handler() {\n\n @Override\n public void close() {\n // set duration for toast message\n toast.setDuration(100);\n // cancel toast message\n toast.cancel();\n }\n @Override\n public void flush() {}\n\n @Override\n public void publish(LogRecord record) {}\n };\n }", "protected void showToast(CharSequence text) {\r\n\t Context context = getApplicationContext();\r\n\t int duration = Toast.LENGTH_SHORT;\r\n\t \r\n\t Toast toast = Toast.makeText(context, text, duration);\r\n\t toast.show();\r\n\t}", "public void makeToast(String string) {\n Toast.makeText(this, string, Toast.LENGTH_LONG).show();\n }", "public void showToast(final String message){\n\t runOnUiThread(new Runnable() {\n\t public void run()\n\t {\n\t Toast.makeText(VisitMultiplayerGame.this, message, Toast.LENGTH_SHORT).show();\n\t }\n\t });\n\t}", "@Override\n public void toastSemEnderecos() {\n Toast.makeText(MainActivity.this, R.string.semEndereco, Toast.LENGTH_SHORT).show();\n }", "@Override\r\n\t\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\tToast.makeText(getApplicationContext(), \"个人中心\", Toast.LENGTH_LONG).show();\r\n\t\t\t\t}", "static void makeToast(Context ctx, String s){\n Toast.makeText(ctx, s, Toast.LENGTH_SHORT).show();\n }", "public void run() {\n Toast.makeText(context, toast, Toast.LENGTH_SHORT).show(); // toast for whatever reason\n }", "public void onClickMethodFromXml(View v)\n\t{\n\t\tToast.makeText(getApplicationContext(), \"You Clicked Button 4\", Toast.LENGTH_SHORT).show();\n\t}", "@Test\n public void checkButtonClickToast1() {\n onView(withText(\"Nutella Pie\")).perform(click());\n onView(withText(\"Ensure data connectivity\")).inRoot(new ToastMatcher())\n .check(matches(isDisplayed()));\n }", "@Override\n public void onClick(View view) {\n Toast msg = Toast.makeText(NicogetActivity.this, \"Je confirme !\", Toast.LENGTH_LONG);\n msg.setGravity(Gravity.CENTER, msg.getXOffset()/2, msg.getYOffset()/2);\n msg.show();\n }", "@Override\n public void onClick(View v) {\n Toast.makeText(LoginActivity.this, \"Reset Password\", Toast.LENGTH_SHORT).show();\n }", "public void showMessage(String message){\n Toast.makeText(getContext(), message, Toast.LENGTH_LONG).show();\n }" ]
[ "0.785982", "0.78091156", "0.77475953", "0.7702846", "0.762899", "0.76065624", "0.75510013", "0.7533762", "0.75028163", "0.7431545", "0.74155784", "0.7382321", "0.73441464", "0.7335299", "0.7318649", "0.7296208", "0.72752386", "0.72752386", "0.7247057", "0.7221353", "0.7213091", "0.7164772", "0.715854", "0.71401566", "0.7096192", "0.7089949", "0.708494", "0.7052198", "0.70410436", "0.70311654", "0.7026788", "0.70141983", "0.69732237", "0.69732237", "0.69590735", "0.6929651", "0.6929313", "0.6913597", "0.6909259", "0.6900345", "0.6884441", "0.6844699", "0.68377584", "0.68362784", "0.6835387", "0.683466", "0.6796602", "0.67877424", "0.67829055", "0.6776235", "0.6775361", "0.67661613", "0.67616343", "0.6757477", "0.67557317", "0.67535084", "0.67487633", "0.6746358", "0.67320806", "0.67088354", "0.6704793", "0.670092", "0.6695781", "0.6687506", "0.66820216", "0.66806173", "0.66398835", "0.66392964", "0.6637371", "0.6634597", "0.6614555", "0.661296", "0.6612071", "0.6609201", "0.6595705", "0.65902764", "0.6588466", "0.6584433", "0.658251", "0.657376", "0.65714496", "0.65655243", "0.6565205", "0.65470535", "0.6546905", "0.6538733", "0.6530997", "0.6528973", "0.6518038", "0.64977074", "0.64918464", "0.64907545", "0.6488365", "0.6488047", "0.6481058", "0.64773273", "0.6470935", "0.6468642", "0.646498", "0.64604", "0.6458188" ]
0.0
-1
Wait a little less this time out.
@Test public void testRetry() throws Exception { factory.setSecondsToWait(5L); CountDownLatch oneWorkerCreated = factory.getRunCountLatch(1); CountDownLatch secondWorkerCreated = factory.getRunCountLatch(2); LogFile logFile = tracker.open("foo", "/biz/baz/%s.log", DateTime.now()); manager.start(); //start manager first so it can register to receive notifications tracker.written(logFile); awaitLatch(oneWorkerCreated); logFile.setState(LogFileState.PREP_ERROR); //simulate failure of first prep attempt awaitLatch(secondWorkerCreated); //wait for retry }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void longWait(){\r\n\t\ttry {\r\n\t\t\tTimeUnit.SECONDS.sleep(15);\r\n\t\t} catch (InterruptedException e) {\r\n\t\t\tSystem.out.println(\"Interruption happened due to sleep() method\");\r\n\t\t}\r\n\t}", "public static void shortWait(){\r\n\t\ttry {\r\n\t\t\tTimeUnit.SECONDS.sleep(5);\r\n\t\t} catch (InterruptedException e) {\r\n\t\t\tSystem.out.println(\"Interruption happened due to sleep() method\");\r\n\t\t}\r\n\t}", "public void wait(int time) {\r\n\t\t\tsuper.sleep(time);\r\n\t\t}", "void await(long timeout, TimeUnit timeUnit) throws InterruptedException;", "void await(long timeout, TimeUnit unit) throws InterruptedException;", "private static void waiting(int time) {\r\n\t\ttry {\r\n\t\t\tThread.sleep(time);\r\n\t\t} catch (InterruptedException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t}", "void await(long timeout, TimeUnit timeUnit)\n throws InterruptedException;", "public void delay(long waitAmount){\r\n long time = System.currentTimeMillis();\r\n while ((time+waitAmount)>=System.currentTimeMillis()){ \r\n //nothing\r\n }\r\n }", "public static void wait(int ms){\n try\n {\n Thread.sleep(ms);\n }\n catch(InterruptedException ex)\n {\n Thread.currentThread().interrupt();\n }\n}", "public void doWait(){\n\t\tsynchronized(m){\n\t\t\ttry{\n\t\t\t\tm.wait(32000,0);\n\t\t\t} catch(InterruptedException e){}\n\t\t}\n\t}", "private void webDriverTimeout(){\n try {\n Thread.sleep(TIMEOUT_SHORT);\n } catch (InterruptedException e){\n e.printStackTrace();\n }\n }", "private void waitMs(final long toWait) {\n synchronized (this) {\n try {\n if (toWait > 0) {\n wait(toWait);\n }\n } catch (InterruptedException ex) {\n Log.e(TAG, ex.getMessage(), ex);\n }\n }\n }", "public static void waitForAI(){\n try {\n Thread.sleep(2000);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }", "void awaitNanos(final long timeout) throws InterruptedException;", "private void _wait() {\n\t\tfor (int i = 1000; i > 0; i--)\n\t\t\t;\n\t}", "@Override\n\tpublic void waitTimedOut() {\n\t\t\n\t\tif( busylinetimer == null )\n\t\t\treturn;\n\t\t\n\t\tbusylinetimer.stop();\n\t\tbusylinetimer = null;\n\t\t\n\t\tlog.info(\"linea ocupada por mas de 120 segundos, iniciando proceso para colgar llamada.......\");\n\t\t\n\t\tnew CellPhoneHandUpCall(modem,false);\n\t}", "public void wait(int milliseconds)\r\n {\r\n try\r\n {\r\n Thread.sleep(milliseconds);\r\n }\r\n catch (Exception e)\r\n {\r\n // ignoring exception at the moment\r\n }\r\n }", "public int explicitWait(){\n\t\tString time_out = null;\n\t\ttry {\n\t\t\ttime_out = new AutomationConfigurator().getTimeOut();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\tif (time_out == null){\n\t\t\treturn default_timeout;\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn Integer.parseInt(time_out);\n\t\t}\n\t}", "public void waitToFinish()\n {\n while(!this.finished)\n {\n try\n {\n Thread.sleep(1);\n }\n catch (InterruptedException e)\n {\n e.printStackTrace();\n return;\n }\n }\n }", "public static void wait(int miliseconds){\n\t\ttry {\n\t\t\tThread.sleep(miliseconds);\n\t\t} catch (InterruptedException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public static void wait(int ms) {\n try {\n Thread.sleep(ms);\n } catch (InterruptedException ex) {\n Thread.currentThread().interrupt();\n }\n }", "private void await() {\n try {\n Thread.sleep(10 * 1000L);\n } catch (InterruptedException e) {\n // ignore\n }\n }", "public long timeout(long timeout);", "public void setTimeout(int timeout);", "public void waitSleep(int pTime)\n{\n\n try {Thread.sleep(pTime);} catch (InterruptedException e) { }\n\n}", "private void customWait() throws InterruptedException {\n while (!finished) {\n Thread.sleep(1);\n }\n finished = false;\n }", "private void sleep() {\n try {\n Thread.sleep(500);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }", "public void Wait(double time) {\n\n\t\t\t\tdouble Time = time * 10000000;\n\t\t\t\tdouble t = 0;\n\t\t\t\twhile (t < Time)\n\t\t\t\t\tt++;\n\t\t\t}", "private void sleep() {\n try {\n Thread.sleep(3000L);\n }\n catch (Exception ignored) {\n Log.trace(\"Sleep got interrupted.\");\n }\n }", "private void sleep(long ms) throws InterruptedException {\n Thread.sleep(ms);\n }", "private void sleep()\n {\n try {\n Thread.sleep(Driver.sleepTimeMs);\n }\n catch (InterruptedException ex)\n {\n\n }\n }", "int timeout();", "private void waitToRetry()\n {\n final int sleepTime = 2000000;\n\n if (keepTrying)\n {\n try\n {\n Thread.sleep(sleepTime);\n }\n catch (Exception error)\n {\n log.error(\"Ignored exception from sleep - probably ok\", error);\n }\n }\n }", "private void waitFor(long nanos) throws TimeoutException {\n if (done) {\n return;\n }\n\n synchronized (waitObj) {\n long waitTo = System.nanoTime() + nanos;\n while (!done) {\n nanos = waitTo - System.nanoTime();\n if (nanos <= 0) {\n throw new TimeoutException();\n }\n try {\n waitObj.wait(nanos / 1000000, (int) (nanos % 1000000));\n } catch (InterruptedException ex) {\n ex.printStackTrace(System.err);\n }\n }\n }\n if (excpetion != null) {\n throw excpetion;\n }\n }", "boolean awaitMessages(long timeout) throws InterruptedException;", "void timedOut();", "public static void waitTime(long s) {\n long l = System.currentTimeMillis() + s;\n while (System.currentTimeMillis() < l) {\n\n }\n }", "public abstract boolean await(long timeout, TimeUnit unit)\n\t\t\tthrows InterruptedException;", "private void delay() {\n\ttry {\n\t\tThread.sleep(500);\n\t} catch (InterruptedException e) {\n\t\t// TODO Auto-generated catch block\n\t\te.printStackTrace();\n\t}\t\n\t}", "public void waitTime(double time){\n double startTime = System.currentTimeMillis() + time *1000 ;\n while (opMode.opModeIsActive()){\n if (System.currentTimeMillis() > startTime) break;\n }\n }", "private static void wait(int seconds) {\n try {\n Thread.sleep(seconds * 1000);\n }\n catch(InterruptedException ie) {\n System.out.println(\"ERROR WAITING: Failed to generate a Thread to wait.\");\n ie.printStackTrace();\n }\n }", "private static void wait(int seconds) {\n try {\n Thread.sleep(seconds * 1000);\n }\n catch(InterruptedException ie) {\n System.out.println(\"ERROR WAITING: Failed to generate a Thread to wait.\");\n ie.printStackTrace();\n }\n }", "long getTimeout();", "private void sleepForChannelJoin() {\r\n\t\t\r\n\t\ttry {\r\n\t\t\tThread.sleep(config.getChannelJoinTimeout());\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "protected int getWait() \t\t\t\t{\treturn wait;\t\t}", "public static void waitFor(int timeSecond) {\n try {\n Thread.sleep(timeSecond * 1000L);\n } catch (Exception e) {\n log.error(e.toString());\n }\n }", "void await( long millis ) throws UnavailableException;", "int hardTimeout();", "protected abstract long waitToTravel();", "public void wait(final int delay) {\n try {\n Thread.sleep(delay);\n } catch (InterruptedException e) {\n LOGGER.error(\"Wait interrupted: \" + e.getMessage(), e);\n }\n }", "int getWaitTime();", "public synchronized void waitForUpdate(\n final long timeout) throws InterruptedException {\n this.wait(timeout);\n }", "private void sleepFor(long t) {\n\t\ttry {\n\t\t\tThread.sleep(t);\n\t\t} catch (InterruptedException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private void checkTimeout() {\n/* 169 */ if (this.socket != null) {\n/* */ \n/* 171 */ long i = this.keepaliveTimeoutMs;\n/* */ \n/* 173 */ if (this.listRequests.size() > 0)\n/* */ {\n/* 175 */ i = 5000L;\n/* */ }\n/* */ \n/* 178 */ long j = System.currentTimeMillis();\n/* */ \n/* 180 */ if (j > this.timeLastActivityMs + i)\n/* */ {\n/* 182 */ terminate(new InterruptedException(\"Timeout \" + i));\n/* */ }\n/* */ } \n/* */ }", "public void delayTestFinish() {\r\n\t\ttry {\r\n\t\t\tlatch.await();\r\n\t\t} catch (InterruptedException e) {\r\n\t\t\tthrow new RuntimeException(e);\t// don't expose InterruptedException to users\r\n\t\t} finally {\r\n\t\t\tlatch.reset();\r\n\t\t}\r\n\t}", "public void WaitTime(long miliseconds)\r\n {\r\n long startTime = System.currentTimeMillis();\r\n \r\n long estimatedTime = System.currentTimeMillis() - startTime;\r\n try {\r\n //driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);\r\n Thread.sleep(miliseconds);\r\n } catch (InterruptedException ex) {\r\n Logger.getLogger(MainDemoClass.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }", "protected abstract void afterWait();", "private void waitFor() {\n if (done) {\n return;\n }\n\n synchronized (waitObj) {\n while (!done) {\n try {\n waitObj.wait();\n } catch (InterruptedException ex) {\n ex.printStackTrace(System.err);\n }\n }\n }\n if (excpetion != null) {\n throw excpetion;\n }\n }", "public void setTimeout(double timeout){\n this.timeout = timeout;\n }", "private void waitForStateChange(int maxTTW) throws MqttException {\n synchronized (caller) {\n if (!donext) {\n try {\n caller.wait(maxTTW);\n } catch (InterruptedException e) {\n Debug.logError(\"Timed out.\" + e.getMessage(), MODULE);\n }\n\n if (ex != null) {\n throw (MqttException) ex;\n }\n }\n donext = false;\n }\n }", "void setTimeout(long timeoutInNanos);", "public final void waitFor() {\r\n for (;;) {\r\n synchronized (this) {\r\n if (this.m_b)\r\n return;\r\n try {\r\n this.wait();\r\n } catch (Throwable tt) {\r\n tt.printStackTrace();\r\n }\r\n }\r\n }\r\n }", "int getTimeout();", "public void implicitTime() {\n\n try {\n driver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);\n } catch (Exception e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n }", "public void implicitWait(){\r\n\t\tdriver.manage().timeouts().implicitlyWait(Integer.parseInt(FilesAndFolders.getPropValue(\"implicitWaitTime\")), TimeUnit.SECONDS);\r\n\t}", "public void warte( int ms )\n {\n try\n {\n Thread.sleep( ms );\n }\n catch ( InterruptedException e )\n {\n e.printStackTrace();\n }\n }", "public boolean await(long timeout, TimeUnit unit)\r\n/* 235: */ throws InterruptedException\r\n/* 236: */ {\r\n/* 237:267 */ return await0(unit.toNanos(timeout), true);\r\n/* 238: */ }", "public void waitToFinish()\n/* */ {\n/* 473 */ synchronized (this) {\n/* 474 */ while (getIterationsToGo() > 0) {\n/* */ try {\n/* 476 */ wait();\n/* */ }\n/* */ catch (InterruptedException e) {\n/* 479 */ e.printStackTrace();\n/* */ }\n/* */ }\n/* */ }\n/* */ }", "public void setTimeout(final long timeout);", "@Override\n protected void sleep(int milliseconds) {\n super.sleep(milliseconds);\n }", "@Override\n public Duration getWait() {\n return duration;\n }", "private void wait(long lastLoopTime, final long OPTIMAL_TIME) {\n try {\n Thread.sleep( (lastLoopTime - System.nanoTime() + OPTIMAL_TIME)/1000000);\n } catch (Exception e) {}\n }", "public synchronized void waitForDone() {\n\twhile (!done) myWait();\n }", "private static void timeout(String user, int time) { sendMessage(\"/timeout \" + user + \" \" + time); }", "private void delay( int n )\n {\n try {\n Thread.sleep(n);\n } catch( InterruptedException e ) {\n System.exit(0);\n }\n }", "void sleep();", "void sleep();", "public void sleep() throws InterruptedException, IllegalArgumentException, Time.Ex_TimeNotAvailable, Time.Ex_TooLate\n {\n // The current time.\n AbsTime now;\n // The duration to wait.\n RelTime duration;\n\n // Make error if NEVER.\n if (isNEVER()) {\n throw new IllegalArgumentException(\"this == NEVER\");\n }\n\n // Don't do anything if ASAP.\n if (!isASAP()) {\n\n // Calculate the time now.\n now = new AbsTime();\n\n // Figure out how long to wait for.\n duration = Time.diff(this, now);\n\n // If duration is negative, throw the Ex_TooLate exception.\n if (duration.getValue() < 0L) {\n throw new Time.Ex_TooLate();\n }\n\n // Do the wait.\n duration.sleep();\n }\n }", "public static void delay() throws InterruptedException {\n // This is the sleep thread method that makes the program sleep\n // for a program amount of milliseconds to slow down the program\n Thread.sleep(1500);\n }", "public static void delay() {\n\n long ONE_SECOND = 1_000;\n\n try {\n Thread.sleep(ONE_SECOND);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }", "public boolean delayTestFinish(int timeout) {\r\n\t\ttry {\r\n\t\t\treturn latch.await(timeout);\r\n\t\t} catch (InterruptedException e) {\r\n\t\t\tthrow new RuntimeException(e);\t// don't expose InterruptedException to users\r\n\t\t} finally {\r\n\t\t\tlatch.reset();\r\n\t\t}\r\n\t}", "public void waitForNextTick() throws InterruptedException {\n Thread.sleep(timeoutPeriod);\n }", "public Status waitUntilFinished();", "public void doWait() {\n\t\tsynchronized(lock) {\n\t\t\twhile(!wasSignalled) {\n\t\t\t\ttry {\n\t\t\t\t\tlock.wait();\n\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\twasSignalled = false;\n\t\t}\n\t}", "public static void threadWait(long millis) {\r\n\t\ttry {\r\n\t\t\tThread.sleep(millis);\r\n\t\t} catch (Exception e) {\r\n\t\t\tthrow new RuntimeException(e);\r\n\t\t}\r\n\t}", "@Override\n\tpublic void sleep() {\n\t\t\n\t}", "public static void sleepFor(long duration) {\n try {\n Thread.sleep(duration);\n } catch (InterruptedException e) {\n // There is nothing to be done here\n }\n }", "protected void setTimeout() {\r\n\t\tTimeout timeout = new Timeout();\r\n\t\tt.schedule(timeout, TIMEOUT);\r\n\t}", "public final void sleepBetweenActions()\n {\n long numOfMillis = Long\n .parseLong(getProperty(\"wait.between.user.actions.in.millis\"));\n if (numOfMillis > 10000)\n {\n numOfMillis = 10000;\n } else if (numOfMillis < 0)\n {\n numOfMillis = 0;\n }\n try\n {\n Thread.sleep(numOfMillis);\n } catch (InterruptedException e)\n {\n e.printStackTrace();\n }\n }", "private static void sleep(int n) {\n try {\n TimeUnit.MILLISECONDS.sleep(n);\n } catch (InterruptedException e) {\n System.out.print(\"\\ndelay failed\");\n }\n }", "protected void pause() {\n sleep(300);\n }", "private long sleepForRandomAmountOfTime() throws InterruptedException {\n final long backOffMillis = zeroTo(MAX_BACK_OFF_MILLIS);\n if (LOGGER.isTraceEnabled()) {\n LOGGER.trace(\"Backing off for \" + backOffMillis + \"ms\");\n }\n Thread.sleep(backOffMillis);\n return backOffMillis;\n }", "private void delay (int milliSec)\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\tThread.sleep (milliSec);\r\n\t\t}\r\n\t\tcatch (InterruptedException e)\r\n\t\t{\r\n\t\t}\r\n\t}", "Future timeoutIn(long timeout, TimeUnit timeUnit);", "public void waitForData() {\n waitForData(1);\n }", "public void setTimeout(long timeout)\r\n\t{\r\n\t\tthis.timeout = timeout;\r\n\t}", "private void waitOnFabric(int additional) {\n try {\n out(\"Wait %d milliseconds for peers to sync with each other\", gossipWaitTime + additional);\n TimeUnit.MILLISECONDS.sleep(gossipWaitTime + additional);\n } catch (InterruptedException e) {\n fail(\"should not have jumped out of sleep mode. No other threads should be running\");\n }\n }", "public void sleep()\n\t{\n\t\ttry\n\t\t{\n\t\t\tThread.sleep(getMilliseconds());\n\t\t}\n\t\tcatch (InterruptedException e)\n\t\t{\n\t\t\t// ignore but return\n\t\t}\n\t}", "private void doWaitDueToLongResponse(BaseRequest request, long responseTime, String uri) {\n try {\n AgentConfig config = request.getLogUtil().getAgentConfig();\n long maxAgentResponseTime = config.getMaxAgentResponseTime();\n if (maxAgentResponseTime < responseTime) {\n long waitTime = Math.min(config.getMaxAgentWaitTime(), responseTime);\n LOG.warn(request.getLogUtil().getLogMessage(\"Response time to slow | delaying \" + waitTime + \" ms | url --> \" + uri, LogEventType.Script));\n Thread.sleep(waitTime);\n }\n } catch (InterruptedException e) {\n LOG.warn(\"Interrupted\", e);\n }\n }", "public void waitForSeconds(int i){\r\n\t\ttry {\r\n\t\t\tThread.sleep(1000*i);\r\n\t\t} catch (InterruptedException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "public void waitForConnection(long time2wait) throws IOException {\n this.setWaitPeriod(time2wait);\n this.waitForConnection();\n }" ]
[ "0.76730585", "0.7419586", "0.7277367", "0.72037715", "0.7184567", "0.7130555", "0.71114564", "0.70432305", "0.70295054", "0.70025915", "0.6964294", "0.69623005", "0.6948799", "0.6928617", "0.6887953", "0.687538", "0.68650705", "0.6837165", "0.68278867", "0.6792952", "0.6774061", "0.67540646", "0.67465174", "0.6738066", "0.67181504", "0.6681501", "0.66764647", "0.6661993", "0.66613114", "0.66487247", "0.66447794", "0.66342574", "0.6596311", "0.6593297", "0.65928006", "0.65709394", "0.65663457", "0.65463156", "0.65310293", "0.65305245", "0.6500971", "0.6500971", "0.6485507", "0.6481274", "0.6472029", "0.6469174", "0.6466154", "0.6456452", "0.644651", "0.6446235", "0.6433533", "0.6430973", "0.6425652", "0.641659", "0.64083666", "0.6405739", "0.6396373", "0.6369885", "0.63470435", "0.6338294", "0.6321031", "0.63197345", "0.6315091", "0.63145643", "0.62999463", "0.6298434", "0.62943846", "0.62911963", "0.6284052", "0.62743074", "0.6265954", "0.6249813", "0.6243644", "0.62323827", "0.6230135", "0.6229248", "0.6229248", "0.6228954", "0.62257916", "0.61930287", "0.6187669", "0.61751", "0.6172148", "0.616809", "0.6163382", "0.6158097", "0.61559004", "0.61539704", "0.6152502", "0.6150277", "0.6149787", "0.61456096", "0.61433613", "0.6126082", "0.6117977", "0.6116384", "0.61160976", "0.61125326", "0.6107323", "0.6098526", "0.6089926" ]
0.0
-1
The retryOneThenRetryAll scans the database for rows that are ready for prep but haven't completed prep and are not currently being prepared. Async processing is then scheduled. But the retry should not be scheduled if work is already inflight (either actively or pending) See
@Test public void testDoNotRetryInFlightWork() throws Exception { CountDownLatch oneWorkerCreated = factory.getRunCountLatch(1); CountDownLatch twoWorkersCreated = factory.getRunCountLatch(2); LogFile logFile = tracker.open("foo", "/biz/baz/%s.log", DateTime.now()); manager.start(); //start manager first so it can register to receive notifications tracker.written(logFile); awaitLatch(oneWorkerCreated); //wait initial worker //sigh. This is a slow test because we have to wait for the retry job to get not get scheduled. if (twoWorkersCreated.await(2 * RETRY_INTERVAL_SECONDS, TimeUnit.SECONDS)) { fail("Retry was scheduled for in-flight task!"); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void retryRequired(){\n startFetching(query);\n }", "public ExecuteResult<T> doRetry() throws SQLException {\n int tries = 0;\n SQLException sqle = null;\n while (tries < RETRY_LIMIT) {\n try {\n return execute();\n } catch (SQLException e) {\n if (retryException(e)) {\n sqle = e;\n tries++;\n ZmailLog.dbconn.warn(\"retrying connection attempt:\"+tries+\" due to possibly recoverable exception: \",e);\n incrementTotalRetries();\n try {\n Thread.sleep(RETRY_DELAY);\n } catch (InterruptedException ie) {\n }\n } else {\n throw e;\n }\n }\n }\n throw new SQLException(\"DB retry gave up after \"+tries+\" attempts.\",sqle);\n }", "@Override\n\t\tpublic boolean isRetry() { return true; }", "void doRetry();", "@Override\n\t\tpublic boolean isRetry() { return false; }", "private void tryDoingTasksInQueue() {\n var list = queue.exceptionsList;\n var t2 = new Thread(() -> {\n Retry.Operation op = (list1) -> {\n if (!list1.isEmpty()) {\n LOG.warn(\"Error in accessing queue db to do tasks, trying again..\");\n throw list1.remove(0);\n }\n doTasksInQueue();\n };\n Retry.HandleErrorIssue<QueueTask> handleError = (o, err) -> {\n };\n var r = new Retry<>(op, handleError, numOfRetries, retryDuration,\n e -> DatabaseUnavailableException.class.isAssignableFrom(e.getClass()));\n try {\n r.perform(list, null);\n } catch (Exception e1) {\n e1.printStackTrace();\n }\n });\n t2.start();\n }", "public void sleepUntilNextRetry() throws InterruptedException {\n\t\tint attempts = getAttemptTimes();\n\t\tlong sleepTime = (long) (retryIntervalMillis * Math.pow(2, attempts));\n\t\tLOG.info(\"Sleeping \" + sleepTime + \"ms before retry #\" + attempts\n\t\t\t\t+ \"...\");\n\t\ttimeUnit.sleep(sleepTime);\n\t}", "public void resetForExecutionForRetry() {\n assertInvariants(ItemProcessingState.WAIT_FOR_MAPPING_UPDATE, ItemProcessingState.EXECUTED);\n currentItemState = ItemProcessingState.INITIAL;\n requestToExecute = null;\n executionResult = null;\n assertInvariants(ItemProcessingState.INITIAL);\n }", "boolean allowRetry(int retry, long startTimeOfExecution);", "public long runScheduledPendingTasks() {\n/* */ try {\n/* 597 */ return this.loop.runScheduledTasks();\n/* 598 */ } catch (Exception e) {\n/* 599 */ recordException(e);\n/* 600 */ return this.loop.nextScheduledTask();\n/* */ } \n/* */ }", "public void runPendingTasks() {\n/* */ try {\n/* 578 */ this.loop.runTasks();\n/* 579 */ } catch (Exception e) {\n/* 580 */ recordException(e);\n/* */ } \n/* */ \n/* */ try {\n/* 584 */ this.loop.runScheduledTasks();\n/* 585 */ } catch (Exception e) {\n/* 586 */ recordException(e);\n/* */ } \n/* */ }", "@Override\n public void onRetry(int retryNo) {\n }", "public void waitJobPrepareSuccess(final String distSQL) {\n for (int i = 0; i < 5; i++) {\n List<Map<String, Object>> jobStatus = queryForListWithLog(distSQL);\n Set<String> statusSet = jobStatus.stream().map(each -> String.valueOf(each.get(\"status\"))).collect(Collectors.toSet());\n if (statusSet.contains(JobStatus.PREPARING.name()) || statusSet.contains(JobStatus.RUNNING.name())) {\n Awaitility.await().pollDelay(2L, TimeUnit.SECONDS).until(() -> true);\n }\n }\n }", "public boolean isAllowPartialRetryRequests() {\n\t\treturn false;\n\t}", "@Test\n public void testTransientProcessInstanceWithMultipleRetry() throws Exception\n {\n enableTxPropagation();\n enableOneSystemQueueConsumerRetry();\n enableTransientProcessesSupport();\n\n final ProcessInstance pi = sf.getWorkflowService().startProcess(PROCESS_DEF_ID_MULTIPLE_RETRY, null, true);\n ProcessInstanceStateBarrier.instance().await(pi.getOID(), ProcessInstanceState.Completed);\n\n DatabaseOperationMonitoring.instance().assertExactly(SELECT_WFUSER_REALM.times(1),\n SELECT_WORKFLOWUSER.times(1),\n SELECT_USER_PARTICIPANT.times(1),\n SELECT_PREFERENCE.times(7));\n }", "@Override\r\n public void onRetry(int retryNo) {\n }", "@Override\r\n public void onRetry(int retryNo) {\n }", "public void manualConnectionRetry()\r\n {\r\n if ( statusObj.value != STATUS_CANDIDATE_BUSY &&\r\n statusObj.value != STATUS_CANDIDATE_CONNECTION_FAILED &&\r\n statusObj.value != STATUS_CANDIDATE_RANGE_UNAVAILABLE &&\r\n statusObj.value != STATUS_CANDIDATE_BAD &&\r\n statusObj.value != STATUS_CANDIDATE_IGNORED )\r\n {\r\n return;\r\n }\r\n setStatus( STATUS_CANDIDATE_WAITING );\r\n SwarmingManager.getInstance().notifyWaitingWorkers();\r\n }", "@Override\r\n public void onRetry(int retryNo) {\n }", "@Override\r\n public void onRetry(int retryNo) {\n }", "@Override\r\n public void onRetry(int retryNo) {\n }", "int getSleepBeforeRetry();", "public boolean requiresImmediateRetry() {\n return currentItemState == ItemProcessingState.IMMEDIATE_RETRY;\n }", "@Override\n public void onRetry(int retryNo) {\n }", "@Override\n public void onRetry(int retryNo) {\n }", "@Override\n public void onRetry(int retryNo) {\n }", "@Override\n public void onRetry(int retryNo) {\n }", "@Override\n public void onRetry(int retryNo) {\n }", "@Override\n public void onRetry(int retryNo) {\n }", "@Override\n public void onRetry(int retryNo) {\n }", "@Override\n public void onRetry(int retryNo) {\n }", "@Override\n public void onRetry(int retryNo) {\n }", "private void waitToRetry()\n {\n final int sleepTime = 2000000;\n\n if (keepTrying)\n {\n try\n {\n Thread.sleep(sleepTime);\n }\n catch (Exception error)\n {\n log.error(\"Ignored exception from sleep - probably ok\", error);\n }\n }\n }", "boolean doRetry() {\n synchronized (mHandler) {\n boolean doRetry = currentRetry < MAX_RETRIES;\n boolean futureSync = mHandler.hasMessages(0);\n\n if (doRetry && !futureSync) {\n currentRetry++;\n mHandler.postDelayed(getNewRunnable(), currentRetry * 15_000);\n }\n\n return mHandler.hasMessages(0);\n }\n }", "@Override\n\tpublic boolean retry(ITestResult result) \n\t{\n\t\treturn false;\n\t}", "@Override\n void setRetry() {\n if (mNextReqTime > 32 * 60 * 1000 || mController.isStop()) {\n if (DEBUG)\n Log.d(TAG, \"################ setRetry timeout, cancel retry : \" + mController.isStop());\n cancelRetry();\n return;\n }\n if (mCurRetryState == RetryState.IDLE) {\n mCurRetryState = RetryState.RUNNING;\n if (mReceiver == null) {\n IntentFilter filter = new IntentFilter(INTENT_ACTION_RETRY);\n mReceiver = new stateReceiver();\n mContext.registerReceiver(mReceiver, filter);\n }\n\n }\n Intent intent = new Intent(INTENT_ACTION_RETRY);\n PendingIntent sender = PendingIntent.getBroadcast(mContext, 0, intent, PendingIntent.FLAG_CANCEL_CURRENT);\n long nextReq = SystemClock.elapsedRealtime() + mNextReqTime;\n Calendar cal = Calendar.getInstance();\n cal.setTimeInMillis(nextReq);\n if(DEBUG) Log.i(TAG, \"start to get location after: \" + mNextReqTime + \"ms\");\n mAlarmMgr.set(AlarmManager.ELAPSED_REALTIME_WAKEUP, nextReq, sender);\n mNextReqTime = mNextReqTime * 2;\n }", "@Override\n public void onRetry ( int retryNo){\n }", "@Override\n public void onRetry ( int retryNo){\n }", "@Override\n public void onRetry ( int retryNo){\n }", "public void execute() {\r\n\r\n\t\t// Fetch the 10 records from DB\r\n\t\t// Iterate over them\r\n\t\t// Fetch the ImageActionObject\r\n\t\t// Get the first task to work on\r\n\t\t// Inastantiate the task by ImageActionTaskFactory.getImageActionTask\r\n\t\t// Set the ImageActionObject\r\n\t\t// Submit the task to the executor\r\n\t\tSimpleDateFormat dateFormat = new SimpleDateFormat(\r\n\t\t\t\t\"dd/MM/yyyy HH:mm:ss\");\r\n\t\tlog.info(\"*** Executing poller at : \" + dateFormat.format(new Date()));\r\n\t\tList<ImageActionObject> incompleteImageActionObjects = new ArrayList<ImageActionObject>();\r\n\t\t// Fetching the 10 records from DB\r\n\t\ttry {\r\n\t\t\tincompleteImageActionObjects = imageActionImpl\r\n\t\t\t\t\t.searchIncompleteImageAction(5);\r\n\t\t\tlog.debug(\"*** Got \" + incompleteImageActionObjects.size()\r\n\t\t\t\t\t+ \" to process\");\r\n\t\t} catch (DbException e) {\r\n\t\t\t// TODO Handle Error\r\n\t\t\tlog.error(\"searchIncompleteImageAction failed\", e);\r\n\t\t}\r\n\t\t// iterate over list of image action objects\r\n\t\tlog.debug(\"incompleteImageActionObjects::\"\r\n\t\t\t\t+ incompleteImageActionObjects);\r\n\r\n\t\tfor (ImageActionObject imageActionObj : incompleteImageActionObjects) {\r\n\t\t\tlog.info(\"ImageAction Object in poller (\" + imageActionObj.getId()\r\n\t\t\t\t\t+ \"): Number of tasks: \"\r\n\t\t\t\t\t+ imageActionObj.getActions().size());\r\n\t\t\tlog.info(\"Current status of image action object:\"\r\n\t\t\t\t\t+ imageActionObj.getCurrent_task_status());\r\n\t\t\t\r\n\t\t\tif(imageActionToRunCountMap.containsKey(imageActionObj.getId())){\r\n\t\t\t\tInteger currentCount = imageActionToRunCountMap.get(imageActionObj.getId());\r\n\t\t\t\tif(currentCount < 10){\r\n\t\t\t\t\taddEntryFromImageActionCountMap(imageActionObj.getId(), ++currentCount);\r\n\t\t\t\t}else{\r\n\t\t\t\t\t//mark error\r\n\t\t\t\t\tlog.info(\"mark image action {} to error after 10 tries\", imageActionObj.getId());\r\n\t\t\t\t\timageIdsInProcess.remove(imageActionObj.getImage_id());\r\n\t\t\t\t\timageActionObj.setCurrent_task_status(Constants.ERROR);\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tpersistService.updateImageAction(imageActionObj);\r\n\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t} catch (DbException e) {\r\n\t\t\t\t\t\tlog.error(\"Error in Poller\",e);\r\n\t\t\t\t\t}\t\r\n\t\t\t\t\tfinally{\r\n\t\t\t\t\t\tremoveEntryFromImageActionCountMap(imageActionObj.getId());\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}else{\t\t\t\t\r\n\t\t\t\taddEntryFromImageActionCountMap(imageActionObj.getId(), 1);\r\n\t\t\t}\r\n\r\n\t\t\tif (imageIdsInProcess.contains(imageActionObj.getImage_id())) {\r\n\t\t\t\tlog.info(\"Image already in process. Skipping\");\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\r\n\t\t\timageIdsInProcess.add(imageActionObj.getImage_id());\r\n\r\n\t\t\tif (imageActionObj.getCurrent_task_status() != null\r\n\t\t\t\t\t&& imageActionObj.getCurrent_task_status().equals(\r\n\t\t\t\t\t\t\tConstants.INCOMPLETE)) {\r\n\t\t\t\tExecuteActions task = new ExecuteActions(imageActionObj);\r\n\t\t\t\tImageActionExecutor.submitTask(task);\r\n\t\t\t\tlog.info(\"Submitted task for ExecuteActions for id: \"\r\n\t\t\t\t\t\t+ imageActionObj.getId());\r\n\t\t\t}\r\n\r\n\t\t}\r\n\r\n\t}", "private void awaitItems() throws IgniteInterruptedCheckedException {\n U.await(takeLatch);\n }", "@Override\npublic boolean retry(ITestResult result) {\n\tif(minretryCount<=maxretryCount){\n\t\t\n\t\tSystem.out.println(\"Following test is failing====\"+result.getName());\n\t\t\n\t\tSystem.out.println(\"Retrying the test Count is=== \"+ (minretryCount+1));\n\t\t\n\t\t//increment counter each time by 1  \n\t\tminretryCount++;\n\n\t\treturn true;\n\t}\n\treturn false;\n}", "private void retryCall() {\n MyViewModel factory = new MyViewModel(this.getApplication(), Integer.toString(ids));\n weatherViewModel = new ViewModelProvider(this, factory).get(WeatherViewModel.class);\n weatherViewModel.init();\n weatherViewModel.getWeatherRepo().observe(this, this::getResponsFromLiveData);\n }", "@Override\n public void onRetry(int retryNo) {\n Log.d(\"AsyncAndro\", \"AsyncAndroid retryNo:\" + retryNo);\n }", "@Override\n public void onRetry(int retryNo) {\n Log.d(\"AsyncAndro\", \"AsyncAndroid retryNo:\" + retryNo);\n }", "@Override\n public void onRetry(int retryNo) {\n Log.d(\"AsyncAndro\", \"AsyncAndroid retryNo:\" + retryNo);\n }", "@Test\n public void testRetry() throws Exception {\n factory.setSecondsToWait(5L);\n CountDownLatch oneWorkerCreated = factory.getRunCountLatch(1);\n CountDownLatch secondWorkerCreated = factory.getRunCountLatch(2);\n LogFile logFile = tracker.open(\"foo\", \"/biz/baz/%s.log\", DateTime.now());\n manager.start(); //start manager first so it can register to receive notifications\n tracker.written(logFile);\n awaitLatch(oneWorkerCreated);\n logFile.setState(LogFileState.PREP_ERROR); //simulate failure of first prep attempt\n awaitLatch(secondWorkerCreated); //wait for retry\n }", "@Override\r\n\t\tpublic Boolean call() throws Exception {\n\t\t\tint count = 10;\r\n\t\t\tint deadlockCount = 0;\r\n\t\t\twhile (count > 0) {\r\n\t\t\t\tassertTrue(\"Too many deadlock exceptions\", deadlockCount < 10);\r\n\t\t\t\ttry {\r\n\t\t\t\t\t// Replace the annotations\r\n\t\t\t\t\tdboAnnotationsDao.replaceAnnotations(annos);\r\n\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\t// Deadlock is the only acceptable exception here, just retry\r\n\t\t\t\t\tif (e.getMessage().indexOf(\"Deadlock found when trying to get lock\") > -1) {\r\n\t\t\t\t\t\tdeadlockCount++;\r\n\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tthrow e;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tcount--;\r\n\t\t\t}\r\n\t\t\treturn true;\r\n\t\t}", "public boolean isRetry();", "public void testSaveTableByTimeAllTransactional() throws Exception {\n\t\tfailed = false;\n\t\tlogger.info(\"loop test 1\");\n\n\t\tExecutorService executor = Executors.newFixedThreadPool(nThreads * 2);\n\t\tList<Callable<Object>> tasks1 = insertTasks();\n\n\t\tList<Callable<Object>> tasks2 = updateTasksPassing();\n\n\t\tCollection<Callable<Object>> tasks = new ArrayList<>();\n\t\ttasks.addAll(tasks1);\n\t\ttasks.addAll(tasks2);\n\n\t\trunTasks(executor, tasks);\n\n\t\tshutdownExecutor(executor);\n\n\t\tlogger.info(\"I have {} Tables saved\", getCountTablePassing());\n\t}", "@Test\n public void repairMultipleTables()\n {\n long startTime = System.currentTimeMillis();\n\n TableReference tableReference = myTableReferenceFactory.forTable(\"test\", \"table1\");\n TableReference tableReference2 = myTableReferenceFactory.forTable(\"test\", \"table2\");\n\n injectRepairHistory(tableReference, System.currentTimeMillis() - TimeUnit.HOURS.toMillis(2));\n injectRepairHistory(tableReference2, System.currentTimeMillis() - TimeUnit.HOURS.toMillis(4));\n\n schedule(tableReference);\n schedule(tableReference2);\n\n await().pollInterval(1, TimeUnit.SECONDS).atMost(90, TimeUnit.SECONDS)\n .until(() -> isRepairedSince(tableReference, startTime));\n await().pollInterval(1, TimeUnit.SECONDS).atMost(90, TimeUnit.SECONDS)\n .until(() -> isRepairedSince(tableReference2, startTime));\n\n verifyTableRepairedSince(tableReference, startTime);\n verifyTableRepairedSince(tableReference2, startTime);\n verify(mockFaultReporter, never())\n .raise(any(RepairFaultReporter.FaultCode.class), anyMap());\n }", "public abstract void prepareTasks() throws JobException;", "@Test\n public void testNoSkipDelayedBy()\n throws Exception\n {\n workflowConfig.getNestedOrSetEmpty(\"schedule\")\n .set(\"daily>\", \"12:00:00\");\n\n // Indicate that there is no active attempt for this workflow\n when(sessionStore.getActiveAttemptsOfWorkflow(eq(PROJECT_ID), eq(WORKFLOW_NAME), anyInt(), any(Optional.class)))\n .thenReturn(ImmutableList.of());\n\n // Run the schedule executor at now + 1\n scheduleExecutor.runScheduleOnce(now.plusSeconds(1));\n\n // Verify the task was started.\n verify(scheduleExecutor).startSchedule(any(StoredSchedule.class), any(Scheduler.class), any(StoredWorkflowDefinitionWithProject.class));\n\n // Verify that the schedule progressed to the next time\n verify(scs).updateNextScheduleTimeAndLastSessionTime(SCHEDULE_ID, nextScheduleTime, now);\n }", "@Test\n public void repairSingleTable()\n {\n long startTime = System.currentTimeMillis();\n\n TableReference tableReference = myTableReferenceFactory.forTable(\"test\", \"table1\");\n\n injectRepairHistory(tableReference, System.currentTimeMillis() - TimeUnit.HOURS.toMillis(2));\n\n schedule(tableReference);\n\n await().pollInterval(1, TimeUnit.SECONDS).atMost(90, TimeUnit.SECONDS)\n .until(() -> isRepairedSince(tableReference, startTime));\n\n verifyTableRepairedSince(tableReference, startTime);\n verify(mockFaultReporter, never())\n .raise(any(RepairFaultReporter.FaultCode.class), anyMap());\n }", "public void testSaveTableByTimeWithTxTemplateInService() throws Exception {\n\t\tfailed = false;\n\t\tlogger.info(\"loop test 3\");\n\n\t\tExecutorService executor = Executors.newFixedThreadPool(nThreads * 2);\n\t\tList<Callable<Object>> tasks1 = insertTasks();\n\n\t\tList<Callable<Object>> tasks2 = updateTasksFailing2();\n\n\t\tCollection<Callable<Object>> tasks = new ArrayList<>();\n\t\ttasks.addAll(tasks1);\n\t\ttasks.addAll(tasks2);\n\n\t\trunTasks(executor, tasks);\n\n\t\tshutdownExecutor(executor);\n\t\tlogger.info(\"I have {} Tables saved\", getCountTableServiceFailing());\n\t}", "public static void prepopulateBookingData() {\n // Write to the database on a worker thread (so as not to clog up the main thread)\n databaseExecutor.execute(() -> {\n BookingDao dao = dbInstance.bookingDao();\n\n // Start with a fresh database each load\n dao.deleteAllBookings();\n\n Booking stretchBooking = new Booking.BookingBuilder()\n .withType(\"Stretch Tent\")\n .withFirstName(\"Joe\")\n .withLastName(\"Copping\")\n .withAddress(\"1 Pleasant Drive GT53DP\")\n .withCost(800)\n .withDate(LocalDate.of(2021, 8, 1))\n .withNumDays(5)\n .build();\n dao.insertBooking(stretchBooking);\n\n Booking tipiBooking = new Booking.BookingBuilder()\n .withType(\"Tipi\")\n .withFirstName(\"Jason\")\n .withLastName(\"Hitching\")\n .withAddress(\"76 Inway Drive KL25TP\")\n .withCost(233)\n .withDate(LocalDate.of(2021, 6, 3))\n .withNumDays(10)\n .build();\n dao.insertBooking(tipiBooking);\n\n Booking marqueeBooking = new Booking.BookingBuilder()\n .withType(\"Marquee\")\n .withFirstName(\"Daniel\")\n .withLastName(\"Rose\")\n .withAddress(\"26 Flyway Drive TY5YYH\")\n .withCost(500)\n .withDate(LocalDate.of(2022, 1, 22))\n .withNumDays(2)\n .build();\n dao.insertBooking(marqueeBooking);\n\n Booking marqueeBooking2 = new Booking.BookingBuilder()\n .withType(\"Marquee\")\n .withFirstName(\"Daniel\")\n .withLastName(\"Rose\")\n .withAddress(\"26 Flyway Drive TY5YYH\")\n .withCost(500)\n .withDate(LocalDate.of(2022, 1, 22))\n .withNumDays(2)\n .build();\n dao.insertBooking(marqueeBooking2);\n\n Booking tipiBooking2 = new Booking.BookingBuilder()\n .withType(\"Tipi\")\n .withFirstName(\"Jason\")\n .withLastName(\"Hitching\")\n .withAddress(\"76 Inway Drive KL25TP\")\n .withCost(233)\n .withDate(LocalDate.of(2021, 6, 3))\n .withNumDays(10)\n .build();\n dao.insertBooking(tipiBooking2);\n\n Booking tipiBooking3 = new Booking.BookingBuilder()\n .withType(\"Tipi\")\n .withFirstName(\"Jason\")\n .withLastName(\"Hitching\")\n .withAddress(\"76 Inway Drive KL25TP\")\n .withCost(233)\n .withDate(LocalDate.of(2021, 6, 3))\n .withNumDays(10)\n .build();\n dao.insertBooking(tipiBooking3);\n\n Booking tipiBooking4 = new Booking.BookingBuilder()\n .withType(\"Tipi\")\n .withFirstName(\"Jason\")\n .withLastName(\"Hitching\")\n .withAddress(\"76 Inway Drive KL25TP\")\n .withCost(233)\n .withDate(LocalDate.of(2021, 6, 3))\n .withNumDays(10)\n .build();\n dao.insertBooking(tipiBooking4);\n\n Booking stretchBooking2 = new Booking.BookingBuilder()\n .withType(\"Stretch Tent\")\n .withFirstName(\"Joe\")\n .withLastName(\"Copping\")\n .withAddress(\"1 Pleasant Drive GT53DP\")\n .withCost(800)\n .withDate(LocalDate.of(2021, 8, 1))\n .withNumDays(5)\n .build();\n dao.insertBooking(stretchBooking2);\n\n Booking stretchBooking3 = new Booking.BookingBuilder()\n .withType(\"Stretch Tent\")\n .withFirstName(\"Joe\")\n .withLastName(\"Copping\")\n .withAddress(\"1 Pleasant Drive GT53DP\")\n .withCost(800)\n .withDate(LocalDate.of(2021, 8, 1))\n .withNumDays(5)\n .build();\n dao.insertBooking(stretchBooking3);\n\n });\n }", "private void retry() {\n if (catalog == null) {\n if (--retries < 0) {\n inactive = true;\n pendingRequests.clear();\n log.error(\"Maximum retries exceeded while attempting to load catalog for endpoint \" + discoveryEndpoint\n + \".\\nThis service will be unavailabe.\");\n } else {\n try {\n sleep(RETRY_INTERVAL * 1000);\n _loadCatalog();\n } catch (InterruptedException e) {\n log.warn(\"Thread for loading CDS Hooks catalog for \" + discoveryEndpoint + \"has been interrupted\"\n + \".\\nThis service will be unavailable.\");\n }\n }\n }\n }", "@Test\n public void testCanRetry() {\n assertEquals(0, rc.getAttempts());\n assertTrue(rc.attempt());\n assertEquals(1, rc.getAttempts());\n assertTrue(rc.attempt());\n assertEquals(2, rc.getAttempts());\n assertTrue(rc.attempt());\n assertEquals(3, rc.getAttempts());\n assertFalse(rc.attempt());\n assertEquals(3, rc.getAttempts());\n assertFalse(rc.attempt());\n assertEquals(3, rc.getAttempts());\n assertFalse(rc.attempt());\n assertEquals(3, rc.getAttempts());\n }", "@Test\n\tpublic void addNormalConcurrentTP10_1000() throws Exception {\n\t\tExecutorService exec = Executors.newFixedThreadPool(10);\n\t\tfinal AtomicInteger count = new AtomicInteger(0);\n\t\t\n\t\tretryManager.registerCallback(new RetryCallback() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic boolean onEvent(RetryHolder retry) throws Exception {\n\t\t\t\t\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}, TYPE);\n\t\t\n\t\tfor (int i=0;i<1000;i++) {\n\t\t\texec.submit(new Runnable() {\n\t\t\t\t\n\t\t\t\t@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\tRetryHolder holder = new RetryHolder(\"id-local\"+ count.getAndIncrement(), TYPE,new Exception(),\"Object\");\n\t\t\t\t\t\n\t\t\t\t\tretryManager.addRetry(holder);\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t\texec.shutdown();\n\t\texec.awaitTermination(10, TimeUnit.SECONDS);\n\t\tint localQueueSize = retryManager.getLocalQueuer().size(TYPE);\n\t\tAssert.assertEquals(0,localQueueSize);\n\t\tAssert.assertEquals(1000, retryManager.getH1().getMap(TYPE).size() );\n\t\t\t\t\n\t\t//synchronous add, check immediately\t\t\n\t\tfor (int i=0;i<1000;i++ ) {\n\t\t\tAssert.assertNotNull(\n\t\t\t\t\tretryManager.getH1().getMap(TYPE).get(\"id-local\"+i)\n\t\t\t\t\t);\n\t\t\tretryManager.removeRetry(\"id-local\"+i, TYPE);\n\t\t}\n\t\t\n\t}", "void retry(Task task);", "public void prepareUpdateAll() {\n setCallFromStatement();// Will build an SQLUpdateAllStatement\n clearStatement();// The statement is no longer require so can be released.\n super.prepareUpdateAll();\n }", "public void beforeFirst() throws SQLException {\n\n try {\n debugCodeCall(\"beforeFirst\");\n checkClosed();\n if (result.getRowId() >= 0) {\n resetResult();\n }\n }\n catch (Exception e) {\n throw logAndConvert(e);\n }\n }", "@Test\n public void partialTableRepair()\n {\n long startTime = System.currentTimeMillis();\n long expectedRepairedInterval = startTime - TimeUnit.HOURS.toMillis(1);\n\n TableReference tableReference = myTableReferenceFactory.forTable(\"test\", \"table1\");\n\n injectRepairHistory(tableReference, System.currentTimeMillis() - TimeUnit.HOURS.toMillis(2));\n\n Set<TokenRange> expectedRepairedBefore = halfOfTokenRanges(tableReference);\n injectRepairHistory(tableReference, System.currentTimeMillis() - TimeUnit.MINUTES.toMillis(30),\n expectedRepairedBefore);\n\n Set<TokenRange> allTokenRanges = myMetadata.getTokenRanges(tableReference.getKeyspace(), myLocalHost);\n Set<LongTokenRange> expectedRepairedRanges = Sets.difference(convertTokenRanges(allTokenRanges),\n convertTokenRanges(expectedRepairedBefore));\n\n schedule(tableReference);\n\n await().pollInterval(1, TimeUnit.SECONDS).atMost(90, TimeUnit.SECONDS)\n .until(() -> isRepairedSince(tableReference, startTime, expectedRepairedRanges));\n\n verifyTableRepairedSince(tableReference, expectedRepairedInterval, expectedRepairedRanges);\n verify(mockFaultReporter, never())\n .raise(any(RepairFaultReporter.FaultCode.class), anyMap());\n }", "public int retry() {\r\n\t\treturn ++retryCount;\r\n\t}", "public boolean willRetry() {\n return willRetry;\n }", "public void incrementRetryCount() {\n this.retryCount++;\n }", "public void testSaveTableByTimeWithTxTemplateInTest() throws Exception {\n\t\tfailed = false;\n\t\tlogger.info(\"loop test 2\");\n\n\t\tExecutorService executor = Executors.newFixedThreadPool(nThreads * 2);\n\t\tList<Callable<Object>> tasks1 = insertTasks();\n\n\t\tList<Callable<Object>> tasks2 = updateTasksFailing();\n\n\t\tCollection<Callable<Object>> tasks = new ArrayList<>();\n\t\ttasks.addAll(tasks1);\n\t\ttasks.addAll(tasks2);\n\n\t\trunTasks(executor, tasks);\n\n\t\tshutdownExecutor(executor);\n\t\tlogger.info(\"I have {} Tables saved\", getCountTableFailing());\n\t}", "private void reset(){\r\n\t\tScheduleDao dao = new ScheduleDaoImpl();\r\n\t\tfinal List<Schedule> result = dao.queryAll();\r\n\t\tif (result != null && result.size() > 0) {\r\n\t\t\tfor (Schedule schedule : result) {\r\n\t\t\t\tif(schedule.getStatus() == Schedule.STATUS_PENDING||schedule.getStatus()==Schedule.STATUS_INPROGRESS){\r\n\t\t\t\t\treset(schedule);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "private boolean doRetries(int start,\n int end,\n ReplicatedEnvironment env, \n EntityIndex<Integer, RepTestData> index) {\n boolean success = false;\n boolean noData = false;\n int maxTries = 100;\n\n for (int tries = 0; !success && tries < maxTries; tries++) {\n try {\n Transaction txn = env.beginTransaction(null, null);\n int realStart = 0;\n EntityCursor<RepTestData> cursor = null;\n try {\n cursor = index.entities(txn, null);\n realStart = cursor.first(null).getKey();\n cursor.close();\n cursor = \n index.entities(txn, start, true, end, true, null);\n noData = addRecordsToList(cursor);\n success = true;\n } finally {\n if (cursor != null) {\n cursor.close();\n }\n\n if (success) {\n if (noData) {\n checkNoDataCorrectness(start, realStart, tries);\n } else {\n checkCorrectness(tries);\n }\n txn.commit();\n } else {\n txn.abort();\n }\n list.clear();\n }\n } catch (LockConflictException e) {\n success = false;\n }\n }\n\n return noData;\n }", "@Scheduled(fixedDelay = 15000)\n\tpublic void scheduleFixedDelayTask() {\n\t\t\n\t\tList<Tx> listaTx = txRepo.findAll();\n\t\t\n\t\tfor (Tx tx : listaTx) {\n\t\t\tif(tx.getStatus().equals(TxStatus.PENDING)) {\n\t\t\t\tSystem.out.println(\n\t\t\t\t\t \"Fixed delay task - \" + System.currentTimeMillis() / 20000);\n\t\t\t\t//to be implemented\n\t\t\t\t\n\t\t\t\tString auth = \"Bearer \" + tx.getSbi().getBitcoinAddress();\n\t\t\t\tHttpHeaders headers = new HttpHeaders();\n\t\t\t\theaders.add(\"Authorization\", auth);\n\t\t\t\t\n\t\t\t\tInteger orderId = tx.getorder_id();\n\t\t\t\t\n\t\t\t\tGetOrderResponseDTO getOrderDTO = new GetOrderResponseDTO();\n\t\t\t\t\n\t\t\t ResponseEntity<Object> responseEntity = new RestTemplate().exchange(\"https://api-sandbox.coingate.com/v2/orders/\" + orderId, HttpMethod.GET,\n\t\t\t\t\t\tnew HttpEntity<Object>(getOrderDTO, headers), Object.class);\n\t\t\t \n\t\t\t \n\t\t\t ObjectMapper mapper = new ObjectMapper();\n\t\t\t\tmapper.configure(Feature.ALLOW_UNQUOTED_FIELD_NAMES, true);\n\t\t\t\tGetOrderResponseDTO gorResponse = new GetOrderResponseDTO();\n\t\t\n\t\t\t\tgorResponse = mapper.convertValue(responseEntity.getBody(), GetOrderResponseDTO.class);\n\t\t\n\t\t\t \n\t\t\t System.out.println(\"Order status: \" + gorResponse.getStatus());\n\t\t\t\t\n\t\t\t if(gorResponse.getStatus().equals(\"paid\") || \n\t\t\t \t\tgorResponse.getStatus().equals(\"invalid\") || \n\t\t\t \t\tgorResponse.getStatus().equals(\"expired\") || \n\t\t\t \t\tgorResponse.getStatus().equals(\"canceled\")) {\n\t\t\t \t\n\t\t\t \t//naredne tri linije mi nisu nista jasne zasto sam ovo radio pre mesec dana\n\t\t\t \tTx tx2 = new Tx();\n\t\t \t\ttx2 = txRepo.findByusername(gorResponse.getId());\n\t\t \t\tSystem.out.println(\"TX: \" + tx2.getorder_id());\n\t\t \t\t\n\t\t \t\tRestTemplate restTemplate = new RestTemplate();\n\t\t \t\t\n\t\t \t\tTxInfoDto txInfo;\n\t\t\t \t\n\t\t\t \tif(gorResponse.getStatus().equals(\"paid\")) {\n\t\t\t \t\t\n\t\t\t \t\ttx.setStatus(TxStatus.PAID);\n\t\t\t \t\ttxInfo = new TxInfoDto(tx.getorder_id(), TxStatusReqHandler.SUCCESS, \"https://localhost:8764/bitCoin\");\n\t\t\t \t\t\t\n\t\t\t \t} else if(gorResponse.getStatus().equals(\"invalid\")) {\n\t\t\t \t\ttx.setStatus(TxStatus.FAILED);\n\t\t\t \t\ttxInfo = new TxInfoDto(tx.getorder_id(), TxStatusReqHandler.FAILED, \"https://localhost:8764/bitCoin\");\n\t\t\t \t} else if(gorResponse.getStatus().equals(\"expired\")){\n\t\t\t \t\ttx.setStatus(TxStatus.EXPIRED);\n\t\t\t \t\ttxInfo = new TxInfoDto(tx.getorder_id(), TxStatusReqHandler.FAILED, \"https://localhost:8764/bitCoin\");\n\t\t\t \t} else {\n\t\t\t \t\ttx.setStatus(TxStatus.CANCELED);\n\t\t\t \t\ttxInfo = new TxInfoDto(tx.getorder_id(), TxStatusReqHandler.ERROR, \"https://localhost:8764/bitCoin\");\n\t\t\t \t}\n\t\t\t \t\n\t\t\t \ttxRepo.save(tx);\n\t\t \t\tResponseEntity<TxInfoDto> r = restTemplate.postForEntity(\"https://localhost:8111/request/updateTxAfterPaymentIsFinished\", txInfo, TxInfoDto.class);\n\t\t \t\n\t\t\t \t\n\t\t\t \t\n\t\t\t \t\n\t\t\t \t\n\t\t\t }\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"Nikom nista\");\n\t\t\t\tlogger.info(\"Scheduled is working...\");\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(\"Nema transakcija :(\");\n\t\t\n\t/*\tif(IS_CREATE) {\n\t\t\tSystem.out.println(\n\t\t\t\t \"Fixed delay task - \" + System.currentTimeMillis() / 20000);\n\t\t\t\t\t\t \t\n\t\t String authToken = STATIC_TOKEN;\n\t\t \n\t\t\tHttpHeaders headers = new HttpHeaders();\n\t\t\theaders.add(\"Authorization\", authToken);\n\t\t\t\n\t\t\tSystem.out.println(\"authtoken : \" + authToken);\n\t\t \n\t\t\tGetOrderResponseDTO getOrderDTO = new GetOrderResponseDTO();\n\t\t\t\n\t\t ResponseEntity<Object> responseEntity = new RestTemplate().exchange(\"https://api-sandbox.coingate.com/v2/orders/\" + STATIC_ID, HttpMethod.GET,\n\t\t\t\t\tnew HttpEntity<Object>(getOrderDTO, headers), Object.class);\n\t\t \n\t\t \n\t\t ObjectMapper mapper = new ObjectMapper();\n\t\t\tmapper.configure(Feature.ALLOW_UNQUOTED_FIELD_NAMES, true);\n\t\t\tGetOrderResponseDTO gorResponse = new GetOrderResponseDTO();\n\t\n\t\t\tgorResponse = mapper.convertValue(responseEntity.getBody(), GetOrderResponseDTO.class);\n\t\n\t\t \n\t\t System.out.println(\"Order status: \" + gorResponse.getStatus());\n\t\t \n\t\t if(gorResponse.getStatus().equals(\"paid\") || gorResponse.getStatus().equals(\"invalid\") || gorResponse.getStatus().equals(\"expired\")) {\n\t\t \t\n\t\t \t/*Tx tx = new Tx();\n\t \t\ttx = txRepo.findByOrder_Id(gorResponse.getId());\n\t \t\tSystem.out.println(\"TX: \" + tx.getorder_id());\n\t\t \t\n\t\t \tif(gorResponse.getStatus().equals(\"paid\")) {\n\t\t \t\t//promenimo u bazi\n\t\t \t\t//txRepo.getOne((Integer)gorResponse.getId());\n\t\t \t\ttx.setStatus(TxStatus.PAID);\n\t\t \t\t\n\t\t \t} else if(gorResponse.getStatus().equals(\"invalid\")) {\n\t\t \t\ttx.setStatus(TxStatus.FAILED);\n\t\t \t} else {\n\t\t \t\ttx.setStatus(TxStatus.EXPIRED);\n\t\t \t}\n\t\t \t\n\t\t \ttxRepo.save(tx);*/\n\t\t /*\t\n\t\t \tIS_CREATE = false;\n\t\t }\n\t\t\t\t\t \n\t\t\t\t \n\t\t} else {\n\t\t\tSystem.out.println(\"Nikom nista\");\n\t\t\tlogger.info(\"Scheduled is working...\");\n\t\t}*/\n\t\t\n\t \n\t \n\t}", "private void scheduleRecurringTasks() {\n\t\t//created directories expected by the system to exist\n\t\tUtil.initializeDataDirectories();\n\n\t\tTestManager.initializeTests();\n\n\t\t// Gets all the periodic tasks and runs them.\n\t\t// If you need to create a new periodic task, add another enum instance to PeriodicTasks.PeriodicTask\n\t\tSet<PeriodicTasks.PeriodicTask> periodicTasks = EnumSet.allOf(PeriodicTasks.PeriodicTask.class);\n\t\tfor (PeriodicTasks.PeriodicTask task : periodicTasks) {\n\t\t\tif (R.IS_FULL_STAREXEC_INSTANCE || !task.fullInstanceOnly) {\n\t\t\t\ttaskScheduler.scheduleWithFixedDelay(task.task, task.delay, task.period.get(), task.unit);\n\t\t\t}\n\t\t}\n\n\t\ttry {\n\t\t\tPaginationQueries.loadPaginationQueries();\n\t\t} catch (Exception e) {\n\t\t\tlog.error(\"unable to correctly load pagination queries\");\n\t\t\tlog.error(e.getMessage(), e);\n\t\t}\n\t}", "default boolean pollOnExecutionFailed() {\n return false;\n }", "public void await() {\n for (final Future<Void> future : futures) {\n try {\n future.get();\n } catch (final Throwable e) {\n LOGGER.error(\"Scheduled blob storage job threw an exception.\", e);\n }\n }\n futures.clear();\n }", "@Override\n public void doExecute() throws KeeperException, InterruptedException {\n final int currentIteration = context.getCurrentIteration();\n final int workers = context.getWorkers();\n final String appCurrentWorkersNode = getWorkerBaseNode(context.getAppId(), currentIteration).toString();\n\n long start = System.nanoTime();\n new RetryCoordinatorCommand(isFixedTime(), getSleepTime()) {\n @Override\n public boolean retryExecution() throws KeeperException, InterruptedException {\n try {\n List<String> workerChildern = getZooKeeper().getChildrenExt(appCurrentWorkersNode, false,\n false, false);\n int workersCompleted = workerChildern.size();\n // to avoid log flood\n if(System.nanoTime() % 20 == 0) {\n LOG.info(\"iteration {}, workers compelted: {}, still {} workers are not synced.\",\n currentIteration, workersCompleted, (workers - workersCompleted));\n LOG.info(\"DEBUG: left workers:{}\", notInList(workerChildern, context.getWorkers()));\n }\n\n return isTerminated(workersCompleted, workers, context.getMinWorkersRatio(),\n context.getMinWorkersTimeOut());\n } catch (KeeperException.NoNodeException e) {\n // to avoid log flood\n if(System.nanoTime() % 10 == 0) {\n LOG.warn(\"No such node:{}\", appCurrentWorkersNode);\n }\n return false;\n }\n }\n }.execute();\n\n LOG.info(\"Application {} container {} iteration {} waiting ends with {}ms execution time.\",\n context.getAppId(), context.getContainerId(), context.getCurrentIteration(),\n TimeUnit.NANOSECONDS.toMillis(System.nanoTime() - start));\n\n setWorkerResults(context, appCurrentWorkersNode, context.getAppId(), currentIteration);\n }", "@Test\n public void testLrpTasks() throws Exception {\n\n TaskKey lLRPTask = new TaskKey( \"4650:700\" );\n\n // assert that the query returns 4 rows\n execute( DateUtils.parseDateTimeString( \"15-MAY-2007 01:00\" ), 5, 4650, 100 );\n assertEquals( 4, iDataSet.getRowCount() );\n\n // make the LRP task as non LRP.\n SchedStaskTable lTable = SchedStaskTable.findByPrimaryKey( lLRPTask );\n assertEquals( true, lTable.isLRPBool() );\n lTable.setLRPBool( false );\n lTable.update();\n\n // assert that the count gets incremented, indicating that the updated LRP task is being\n // returned\n execute( DateUtils.parseDateTimeString( \"15-MAY-2007 01:00\" ), 5, 4650, 100 );\n assertEquals( 5, iDataSet.getRowCount() );\n\n // reset the data back to it's original state\n lTable = SchedStaskTable.findByPrimaryKey( lLRPTask );\n lTable.setLRPBool( true );\n lTable.update();\n }", "private void runLater(String table, String id, Operation r) {\n\t\tif (captureHitRatio)\n\t\t\trequestsIn.increment();\n\t\tRowInTable element = new RowInTable(table, id);\n\t\twhile(true) {\n\t\t\tStoreRequest req = new StoreRequest(element);\n\t\t\tStoreRequest tmp = writesByRows.putIfAbsent(element, req);\n\t\t\ttry {\n\t\t\t\tif (tmp == null) {\n\t\t\t\t\t// req was added ; should also be put in the delay queue\n\t\t\t\t\treq.plan();\n\t\t\t\t\tlogger.fine(\"Request planned for \" + table + ':' + id + \" on \" + System.currentTimeMillis() + \" by \" + req);\n\t\t\t\t} else {\n\t\t\t\t\t// Another thread added request for this element before us\n\t\t\t\t\treq = tmp;\n\t\t\t\t}\n\t\t\t\tr.run(req);\n\t\t\t\t// Request is planned and merged ; leaving the infinite loop\n\t\t\t\tbreak;\n\t\t\t} catch (RequestIsOutException x) {\n\t\t\t\t// We've tried to update a request that went out meanwhile\n\t\t\t}\n\t\t\t// retrying eventually\n\t\t\tThread.yield();\n\t\t}\n\t}", "private void scheduleStartStreamWithBackoff() {\n if (attemptCounter >= backoffAttempts) {\n throw new ProcessException(String.format(\"Connection failed after maximum attempts [%d]\", attemptCounter));\n }\n attemptCounter += 1;\n long delay = calculateBackoffDelay();\n backoffMultiplier *= 2;\n logger.info(\"Scheduling new stream connection after delay [{} s]\", delay);\n executorService.schedule(new TweetStreamStarter(), delay, TimeUnit.SECONDS);\n }", "private synchronized void handleActionResumeAllUpload() {\n Log.d(TAG, \"handle resume all action\");\n // For sync, we stop upload thread first\n // 1. Pause mTask\n pauseUploadThread();\n // 2. Update all pause state record to wait\n ArrayList<UploadFile> tmp_datas = uploadFileDataSource.getAllUploadFileByState(UploadFileState.PAUSE_UPLOAD);\n for (int i = 0; i < tmp_datas.size(); i++) {\n UploadFile file = tmp_datas.get(i);\n file.setState(UploadFileState.WAIT_UPLOAD);\n uploadFileDataSource.updateUploadFile(file);\n }\n // 3. Refresh mWaitDataList from local table upload_table\n refreshWaitData();\n // 4. Start mTask again\n startUploadThread();\n // 5. Send broadcast\n sendChangedBroadcast(EVENT_RESUME_ALL_UPLOAD_SUCCESS);\n }", "@Test\n public void testDefaultConcurrentOvertimeExecution()\n throws Exception\n {\n workflowConfig.getNestedOrSetEmpty(\"schedule\")\n .set(\"daily>\", \"12:00:00\");\n\n // Indicate that there is an active attempt for this workflow\n when(sessionStore.getActiveAttemptsOfWorkflow(eq(PROJECT_ID), eq(WORKFLOW_NAME), anyInt(), any(Optional.class)))\n .thenReturn(ImmutableList.of(attempt));\n\n // Run the schedule executor...\n scheduleExecutor.runScheduleOnce(now);\n\n // Verify that another attempt was started\n verify(scheduleExecutor).startSchedule(any(StoredSchedule.class), any(Scheduler.class), any(StoredWorkflowDefinitionWithProject.class));\n\n // Verify that the schedule progressed to the next time\n verify(scs).updateNextScheduleTimeAndLastSessionTime(SCHEDULE_ID, nextScheduleTime, now);\n }", "@Test\n public void trackingEnabled_reliabilityTrigger_repeatedFailures() throws Exception {\n // Set up device configuration.\n configureTrackingEnabled();\n\n int retriesAllowed = 3;\n int checkDelayMillis = 5 * 60 * 1000;\n configureReliabilityConfigSettings(retriesAllowed, checkDelayMillis);\n\n PackageVersions oldPackageVersions = new PackageVersions(1, 1);\n PackageVersions currentPackageVersions = new PackageVersions(2, 2);\n\n // Simulate there being a newer version installed than the one recorded in storage.\n configureValidApplications(currentPackageVersions);\n\n // Force the storage into a state we want.\n mPackageStatusStorage.forceCheckStateForTests(\n PackageStatus.CHECK_COMPLETED_FAILURE, oldPackageVersions);\n\n // Initialize the package tracker.\n assertTrue(mPackageTracker.start());\n\n // Check the intent helper is properly configured.\n checkIntentHelperInitializedAndReliabilityTrackingEnabled();\n\n // Check the initial storage state.\n checkPackageStorageStatus(PackageStatus.CHECK_COMPLETED_FAILURE, oldPackageVersions);\n\n for (int i = 0; i < retriesAllowed + 1; i++) {\n // Simulate a reliability trigger.\n mPackageTracker.triggerUpdateIfNeeded(false /* packageChanged */);\n\n // Assert the PackageTracker did trigger an update.\n checkUpdateCheckTriggered(currentPackageVersions);\n\n // Check the PackageTracker failure count before calling recordCheckResult.\n assertEquals(i, mPackageTracker.getCheckFailureCountForTests());\n\n // Simulate a check failure.\n CheckToken checkToken = mFakeIntentHelper.captureAndResetLastToken();\n mPackageTracker.recordCheckResult(checkToken, false /* success */);\n\n // Peek inside the package tracker to make sure it is tracking failure counts properly.\n assertEquals(i + 1, mPackageTracker.getCheckFailureCountForTests());\n\n // Confirm nothing has changed.\n mFakeIntentHelper.assertUpdateNotTriggered();\n checkPackageStorageStatus(PackageStatus.CHECK_COMPLETED_FAILURE,\n currentPackageVersions);\n\n // Check reliability triggering is in the correct state.\n if (i <= retriesAllowed) {\n mFakeIntentHelper.assertReliabilityTriggerScheduled();\n } else {\n mFakeIntentHelper.assertReliabilityTriggerNotScheduled();\n }\n }\n }", "public boolean retry() {\n return tries++ < MAX_TRY;\n }", "void restartEventsWithDelay(final boolean longDelay, final boolean alsoRescan, final boolean unblockEventsRun,\n final int logType)\n {\n if (longDelay) {\n\n Data workData = new Data.Builder()\n .putBoolean(PhoneProfilesService.EXTRA_ALSO_RESCAN, alsoRescan)\n .putBoolean(PhoneProfilesService.EXTRA_UNBLOCK_EVENTS_RUN, unblockEventsRun)\n .putInt(PhoneProfilesService.EXTRA_LOG_TYPE, logType)\n .build();\n\n OneTimeWorkRequest restartEventsWithDelayWorker;\n restartEventsWithDelayWorker =\n new OneTimeWorkRequest.Builder(RestartEventsWithDelayWorker.class)\n .addTag(RestartEventsWithDelayWorker.WORK_TAG_2)\n .setInputData(workData)\n .setInitialDelay(15, TimeUnit.SECONDS)\n .build();\n try {\n if (PPApplicationStatic.getApplicationStarted(true, true)) {\n WorkManager workManager = PPApplication.getWorkManagerInstance();\n if (workManager != null) {\n\n// //if (PPApplicationStatic.logEnabled()) {\n// ListenableFuture<List<WorkInfo>> statuses;\n// statuses = workManager.getWorkInfosForUniqueWork(RestartEventsWithDelayWorker.WORK_TAG);\n// try {\n// List<WorkInfo> workInfoList = statuses.get();\n// } catch (Exception ignored) {\n// }\n// //}\n\n// PPApplicationStatic.logE(\"[WORKER_CALL] DataWrapper.restartEventsWithDelay\", \"xxx\");\n //workManager.enqueue(restartEventsWithDelayWorker);\n //if (replace)\n workManager.enqueueUniqueWork(RestartEventsWithDelayWorker.WORK_TAG_2, ExistingWorkPolicy.REPLACE, restartEventsWithDelayWorker);\n //else\n // workManager.enqueueUniqueWork(RestartEventsWithDelayWorker.WORK_TAG_APPEND, ExistingWorkPolicy.APPEND_OR_REPLACE, restartEventsWithDelayWorker);\n }\n }\n } catch (Exception e) {\n PPApplicationStatic.recordException(e);\n }\n } else {\n// PPApplicationStatic.logE(\"[EXECUTOR_CALL] ***** DataWrapper.restartEventsWithDelay\", \"schedule\");\n\n final Context appContext = context.getApplicationContext();\n //final ScheduledExecutorService worker = Executors.newSingleThreadScheduledExecutor();\n Runnable runnable = () -> {\n// long start = System.currentTimeMillis();\n// PPApplicationStatic.logE(\"[IN_EXECUTOR] ***** DataWrapper.restartEventsWithDelay\", \"--------------- START\");\n\n PowerManager powerManager = (PowerManager) appContext.getSystemService(Context.POWER_SERVICE);\n PowerManager.WakeLock wakeLock = null;\n try {\n if (powerManager != null) {\n wakeLock = powerManager.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, PPApplication.PACKAGE_NAME + \":DataWrapper_restartEventsWithDelay\");\n wakeLock.acquire(10 * 60 * 1000);\n }\n\n //PPExecutors.doRestartEventsWithDelay(alsoRescan, unblockEventsRun, logType, context);\n\n DataWrapper dataWrapper = new DataWrapper(appContext, false, 0, false, 0, 0, 0f);\n if (logType != PPApplication.ALTYPE_UNDEFINED)\n PPApplicationStatic.addActivityLog(appContext, logType, null, null, \"\");\n //dataWrapper.restartEvents(unblockEventsRun, true, true, false);\n dataWrapper.restartEventsWithRescan(alsoRescan, unblockEventsRun, false, false, true, false);\n //dataWrapper.invalidateDataWrapper();\n\n\n// long finish = System.currentTimeMillis();\n// long timeElapsed = finish - start;\n// PPApplicationStatic.logE(\"[IN_EXECUTOR] ***** DataWrapper.restartEventsWithDelay\", \"--------------- END - timeElapsed=\"+timeElapsed);\n } catch (Exception e) {\n// PPApplicationStatic.logE(\"[IN_EXECUTOR] PPApplication.startHandlerThread\", Log.getStackTraceString(e));\n PPApplicationStatic.recordException(e);\n } finally {\n if ((wakeLock != null) && wakeLock.isHeld()) {\n try {\n wakeLock.release();\n } catch (Exception ignored) {\n }\n }\n //worker.shutdown();\n }\n };\n PPApplicationStatic.createDelayedEventsHandlerExecutor();\n PPApplication.delayedEventsHandlerExecutor.schedule(runnable, 5, TimeUnit.SECONDS);\n }\n }", "public boolean retry(ITestResult result) {\n\t\tif (counter < retryMaxLimit) {\n\t\t\tcounter++;\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "@Override\n public void run() {\n addDelay();\n\n AppDatabase appDatabase = AppDatabase.getInstance(appContext, executors);\n\n List<WeatherEntry> weathers = DataGenerator.generateWeathers();\n\n Log.d(TAG, \"Codelab AppDatabase insertAll - begin\");\n\n insertAll(appDatabase, weathers);\n\n // notify that the database was created and it's ready to be used\n appDatabase.setDatabaseCreated();\n }", "private void runPeriodic() {\n boolean ok = ScheduledFutureTask.super.runAndReset();\n boolean down = isShutdown();\n // Reschedule if not cancelled and not shutdown or policy allows\n if (ok && !down) {\n updateNextExecutionTime();\n MeasurableScheduler.super.getQueue().add(this);\n }\n // This might have been the final executed delayed\n // task. Wake up threads to check.\n else if (down)\n interruptIdleWorkers();\n }", "public void retrySending()\n {\n try\n {\n EmailConfig emailConfig = getEmailConfig();\n int maxRetries = emailConfig.getMaxRetries().intValue();\n boolean saveFailedMails = emailConfig.getSaveFailedEmails();\n List messageFileList = getMessagesInFolder(IEmailConfiguration.EMAIL_RETRY_PATH);\n \n if (maxRetries > 0 && messageFileList.size()>0)\n {\n Session session = getMailSession(true);\n for (Iterator i = messageFileList.iterator(); i.hasNext();)\n {\n resendMail(session, (File)i.next(), maxRetries, saveFailedMails);\n }\n }\n }\n catch (Throwable th)\n {\n AlertLogger.warnLog(CLASSNAME,\"retrySending\",\"Error in retrySending\",th);\n }\n }", "public void onTryFails(int currentRetryCount, Exception e) {}", "@Override\n\tpublic boolean retry(ITestResult result) {\n\n if (!result.isSuccess()) { //Check if test not succeed\n if (count < maxTry) { //Check if maxtry count is reached\n count++; //Increase the maxTry count by 1\n System.out.println(\"is this working?\"); \n result.setStatus(ITestResult.FAILURE); //Mark test as failed\n return true; //Tells TestNG to re-run the test\n } else {\n result.setStatus(ITestResult.FAILURE); //If maxCount reached,test marked as failed\n }\n }\n else {\n result.setStatus(ITestResult.SUCCESS); //If test passes, TestNG marks it as passed\n }\n return false;\n\t}", "public boolean shouldRetryOnTimeout() {\r\n return configuration.shouldRetryOnTimeout();\r\n }", "@Test\n public void testDelay() {\n long future = System.currentTimeMillis() + (rc.getRetryDelay() * 1000L);\n\n rc.delay();\n\n assertTrue(System.currentTimeMillis() >= future);\n }", "@SneakyThrows\n @Override\n public void prepare() {\n final String orderId = order.getId();\n final BlockingQueue<Order> queue = new LinkedBlockingDeque<>();\n if (preparedOrderMap.containsKey(orderId)) {\n throw new SimulatorException(\"Encounter repeated order id!\");\n }\n preparedOrderMap.put(orderId, queue);\n\n Thread.sleep(order.getPrepTime() * SCALE_MILLI_SECOND);\n order.setOrderPreparedTime(new Date());\n preparedOrderMap.get(orderId).put(order);\n log.info(String.format(\"Order prepared: %s\", order.getId()));\n }", "public void doAllTasks() throws Exception {\n final GenericInitializer<E,T> initializer = config.getInitializer();\n final TaskFactory<E,T,GenericInitializer<E,T>> initTaskFac = config.getInitFactory();\n final ObjectCache<GenericInitializer<E,T>> initCache = new ObjectCache<>(2*threads,initializer);\n \n final long sT = System.currentTimeMillis();\n List<Task<T>> initTasks = comm.getInitialTasks(maxTasks,myID);\n final long mT = System.currentTimeMillis();\n initFetchTimeMS += mT-sT;\n initChunksGotten++;\n \n do{\n noInits = initTasks.size();\n if(noInits == 0){\n // nothing to be done, kinda weird.\n System.out.println(\"WARNING: No tasks gotten for threading backend \" + myID + \" continuing but wondering...\");\n break;\n }\n // kind of subptimal but we need to get the ID offset\n currIDStart = (int) initTasks.get(0).getDummyAnswer(myID).getResult().getID();\n \n if(DEBUG){System.out.println(\"DEBUG: Starting with ID \" + currIDStart + \" we have \" + initTasks.size() + \" tasks to init.\");}\n\n final long tOff = System.currentTimeMillis();\n doXXX(threads, initTaskFac, initCache, initTasks);\n final long tMid = System.currentTimeMillis();\n initWorkTimeMS += (tMid-tOff);\n \n final boolean doneYet = synchronizePools(true);\n if(!doneYet){\n initTasks = comm.getInitialTasks(maxTasks,myID);\n initChunksGotten++;\n } else {\n initTasks.clear(); // not strictly necessary, I think\n }\n final long tEnd = System.currentTimeMillis();\n initFetchTimeMS += (tEnd-tMid);\n \n } while(!initTasks.isEmpty());\n \n // merge pools, technically this should have happened before already. However, this does not hurt and synchronizes even further.\n synchronizePools(false);\n \n ISINIT = false;\n \n // then do globopt tasks (setup task factory and cachers)\n final GenericGlobalOptimization<E,T> globopt = config.getGlobalOptimization();\n final ObjectCache<GenericGlobalOptimization<E,T>> globCache = new ObjectCache<>(2*threads,globopt);\n TaskFactory<E,T,GenericGlobalOptimization<E,T>> globTasks = new GlobTaskFactory<>();\n\n while(!comm.isEverythingDone()){\n \n final long tOff = System.currentTimeMillis();\n doXXX(threads, globTasks, globCache, (int) currIDStart, (int) tasksGotten);\n final long tMid = System.currentTimeMillis();\n optWorkTimeMS += (tMid-tOff);\n \n final boolean done = synchronizePools(false);\n final long tEnd = System.currentTimeMillis();\n optFetchTimeMS += (tEnd-tMid);\n \n if(done) {break;}\n }\n }", "private boolean shouldRetryGetMaster(int tries, Exception e) {\n if (tries == numRetries - 1) {\n // This was our last chance - don't bother sleeping\n LOG.info(\"getMaster attempt \" + tries + \" of \" + numRetries +\n \" failed; no more retrying.\", e);\n return false;\n }\n LOG.info(\"getMaster attempt \" + tries + \" of \" + numRetries +\n \" failed; retrying after sleep of \" +\n ConnectionUtils.getPauseTime(this.pause, tries), e);\n return true;\n }", "public void prepareSelectAllRows() {\n setCallFromStatement();\n // The statement is no longer require so can be released.\n clearStatement();\n\n super.prepareSelectAllRows();\n }", "private void doDBProcessing() throws InterruptedException {\n\t\tThread.sleep(5000);\r\n\t\t\r\n\t}", "private void batchExecution(List<String[]> rowBatch, int columnCount, int[] mapcols, String chunkId, int noOfChunks,\n int maxRetryCount, int retryTimeout) throws SQLException {\n int k = 0; //retry count\n boolean retry = false;\n int rowBatchSize = rowBatch.size();\n do {\n k++;\n try {\n if (connection == null || connection.isClosed()) {\n getJdbcConnection(maxRetryCount, retryTimeout);\n }\n if (preparedStatement == null || preparedStatement.isClosed()) {\n preparedStatement = connection.prepareStatement(jdbcConfig.getJdbcQuery(),\n ResultSet.TYPE_FORWARD_ONLY, ResultSet.CONCUR_READ_ONLY);\n }\n for (int i = 0; i < rowBatchSize; i++) {\n psLineEndWithSeparator(mapcols, columnCount, rowBatch.get(i));\n preparedStatement.addBatch();\n }\n // ++batch_no;\n executeBatch(rowBatchSize, maxRetryCount, retryTimeout);\n batch_records = 0;\n k = 0;\n retry = false;\n datarowstransferred = datarowstransferred + update;\n update = 0;\n not_update = 0;\n } catch (AnaplanRetryableException ae) {\n retry = true;\n }\n } while (k < maxRetryCount && retry);\n // not successful\n if (retry) {\n throw new AnaplanAPIException(\"Could not connect to the database after \" + maxRetryCount + \" retries\");\n }\n }", "public void prepare() {\n long millis, nanos;\n TestCaseImpl tc = _testCase;\n \n nanos = Util.currentTimeNanos();\n prepare(tc);\n nanos = Util.currentTimeNanos() - nanos;\n tc.setDoubleParam(Constants.ACTUAL_PREPARE_TIME, \n Util.nanosToMillis(nanos));\n }", "protected void doProcess() throws Exception {\n boolean continueProcessing = true;\n while (continueProcessing) {\n continueProcessing = processFollowUpsRecords();\n }\n commitRecords();\n }", "private void restartPullingTask() {\n try {\n Thread.sleep(15000);\n ensureOpenSubscription.apply();\n } catch (Exception ex) {\n if (ex instanceof SubscriptionInUseException || ex instanceof SubscriptionDoesNotExistExeption) {\n // another client has connected to the subscription or it has been deleted meanwhile - we cannot open it so we need to finish\n onCompletedNotification();\n return;\n }\n\n restartPullingTask();\n return;\n }\n//TODO: startPullingTask = startPullingDocs();\n startPullingDocs(); //TODO: delete me!\n }", "@Test\n public void repairSingleTableRepairedInSubRanges()\n {\n long startTime = System.currentTimeMillis();\n\n TableReference tableReference = myTableReferenceFactory.forTable(\"test\", \"table1\");\n\n injectRepairHistory(tableReference, System.currentTimeMillis() - TimeUnit.HOURS.toMillis(2), true);\n\n schedule(tableReference);\n\n await().pollInterval(1, TimeUnit.SECONDS).atMost(90, TimeUnit.SECONDS)\n .until(() -> isRepairedSince(tableReference, startTime));\n\n verifyTableRepairedSince(tableReference, startTime);\n verify(mockFaultReporter, never())\n .raise(any(RepairFaultReporter.FaultCode.class), anyMap());\n }" ]
[ "0.6383609", "0.5930885", "0.57377666", "0.57042146", "0.5637687", "0.5452581", "0.54326165", "0.5358176", "0.5351033", "0.5335186", "0.5330315", "0.53226286", "0.5306535", "0.5301694", "0.5281591", "0.52665097", "0.52625793", "0.5236853", "0.5215597", "0.5215597", "0.5215597", "0.51940805", "0.5181988", "0.51572543", "0.51572543", "0.51572543", "0.51572543", "0.51572543", "0.51572543", "0.51572543", "0.51572543", "0.51572543", "0.515452", "0.5111855", "0.5084513", "0.5035485", "0.5033961", "0.5033961", "0.5033961", "0.50216496", "0.5011243", "0.50096434", "0.49770847", "0.49709514", "0.49709514", "0.49709514", "0.49466062", "0.4917935", "0.49118692", "0.49045372", "0.48950642", "0.48863378", "0.487413", "0.4865127", "0.48636878", "0.48596364", "0.48565125", "0.48563898", "0.48482543", "0.48367697", "0.48235676", "0.4806429", "0.4801489", "0.48012853", "0.47803533", "0.47603732", "0.47514993", "0.47388944", "0.47381335", "0.47266984", "0.47209787", "0.47149393", "0.47012174", "0.46806812", "0.46803322", "0.46775928", "0.46756738", "0.46677268", "0.46658605", "0.4663095", "0.46608296", "0.46606222", "0.465558", "0.46488038", "0.46437526", "0.46282947", "0.4617711", "0.46161777", "0.46137094", "0.46131498", "0.46111202", "0.46084258", "0.460367", "0.46018687", "0.4600977", "0.459992", "0.4591093", "0.45859537", "0.45840925", "0.45817524" ]
0.47748223
65
Creates new form DiscountManagePanel
public DiscountManagePanel() throws ServiceNotFoundException { discountService=(DiscountService)ServiceManager.getService("Discount"); initComponents(); initDatas(); setActionListener(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Panel designPanel() {\n Panel panel = new Panel();\n contentLayout = new FormLayout();\n wrapperLayout = new VerticalLayout();\n numberOfDatasetsBox = new ComboBox<>();\n numberOfReplicatesBox = new ComboBox<>(\"Select number of Replicates\");\n\n\n List<Integer> possibleDatasetNumber =\n IntStream.rangeClosed(1, 100).boxed().collect(Collectors.toList());\n numberOfDatasetsBox.setItems(possibleDatasetNumber);\n\n List<Integer> possibleReplicateNumber =\n IntStream.rangeClosed(1, 100).boxed().collect(Collectors.toList());\n numberOfReplicatesBox.setItems(possibleReplicateNumber);\n\n datasetAccordion = new Accordion();\n datasetAccordion.setWidth(\"100%\");\n\n panel.setContent(wrapperLayout);\n return panel;\n }", "private void btnNewActionPerformed(java.awt.event.ActionEvent evt) {\n\n initPanel();\n }", "public DCrearDisco( InterfazDiscotienda id ){\r\n super( id, true );\r\n principal = id;\r\n\r\n panelDatos = new PanelCrearDisco( );\r\n panelBotones = new PanelBotonesDisco( this );\r\n\r\n getContentPane( ).add( panelDatos, BorderLayout.CENTER );\r\n getContentPane( ).add( panelBotones, BorderLayout.SOUTH );\r\n\r\n setTitle( \"Crear Disco\" );\r\n pack();\r\n }", "public Deposit_WithdrawPanel() {\n initComponents();\n }", "public CreateAccountPanel() {\n initComponents();\n initializeDateChooser();\n }", "public AddExpensesForm() {\n initComponents();\n }", "public ControladorPanel() { }", "private void butDeleteActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_butDeleteActionPerformed\n AddBorrower db = new AddBorrower();\n db.setVisiblePanel(2);\n db.setVisible(true);\n }", "@PostMapping(\"/add\")\n public EmptyResponse create(@Valid @RequestBody DiscountAddRequest request){\n discountAddService.createNewDiscount(request);\n\n return new EmptyResponse();\n }", "public BankPanel() {\r\n\t super();\r\n\t}", "public SalesPanel() {\n initComponents();\n tblSalesDetail.setAutoCreateColumnsFromModel(false);\n jdcTransaction.setDate(new Date());\n enableForm(false);\n btnDelete.setEnabled(false);\n btnAdd.setEnabled(true);\n btnCancel.setEnabled(false);\n btnEdit.setEnabled(false);\n btnSave.setEnabled(false);\n }", "public void createGestionnaireMeubles(){\n this.gestionaireMeubles = new GestionaireMeubles(panneaux.cuisine);\n this.panneaux.leftPanel.getCtrl().bindTotalPrice(this.gestionaireMeubles.totalPricePanierProperty());\n }", "public void crearPanel(){\n\n panel = new JPanel();\n this.getContentPane().add(panel);\n panel.setBackground(Color.CYAN);\n panel.setLayout(null);\n }", "public void crearDisco( ){\r\n boolean parameter = true;\r\n String artista = panelDatos.darArtista( );\r\n String titulo = panelDatos.darTitulo( );\r\n String genero = panelDatos.darGenero( );\r\n String imagen = panelDatos.darImagen( );\r\n\r\n if( ( artista.equals( \"\" ) || titulo.equals( \"\" ) ) || ( genero.equals( \"\" ) || imagen.equals( \"\" ) ) ) {\r\n parameter = false;\r\n JOptionPane.showMessageDialog( this, \"Todos los campos deben ser llenados para crear el disco\" );\r\n }\r\n if( parameter){\r\n boolean ok = principal.crearDisco( titulo, artista, genero, imagen );\r\n if( ok )\r\n dispose( );\r\n }\r\n }", "public JPanel getNewClientAccountPanel() {\n clientAccountView = new ClientAccountView();\n clientAccountView.setAccNum(smCntr.getID());\n clientAccountView.setFormToAdd();\n return clientAccountView;\n }", "private void addToPanel(){\n getContentPane().add(jdpFondo);\n jtpcContenedor.add(jtpPanel);\n\tjtpcContenedor.add(jtpPanel2);\n jdpFondo.add(jtpcContenedor, BorderLayout.CENTER);\n jdpFondo.add(jpnlPanelPrincilal);\n }", "public studentsPanel() {\n initComponents();\n String no = String.valueOf(sNum.studentID);\n String name = String.valueOf(sNum.studentName);\n lblStudentID.setText(name);\n delivery();\n lblTakeBookLimit.setText(new texts().bookLimit() + takeBookLimit + \" )\");\n List();\n }", "public Menu_deleted_panel() {\n initComponents();\n MenuList();\n show_product();\n }", "@Override\n\tpublic void create(CreateCoinForm form) throws Exception {\n\t}", "void create(Discount discount) throws ServiceException;", "public EOProductPanel2() {\n initComponents();\n }", "public VariableDiscountPopUp(DiscountManagement _parent) {\n initComponents();\n Parent = _parent;\n discountArray = new ArrayList<>();\n }", "@Override\n public void newPanelModel() {\n\n }", "@Override\n public void newPanelModel() {\n\n }", "public CrearPedidos() {\n initComponents();\n }", "public DiscountRegister() {\n\t\tthis.connection = Connection.ONLINE;\n\t\tthis.serverTyp = ServerTyp.DISCOUNT;\n\t\tDiscountDTO typ1 = new DiscountDTO(Category.ITEM, \"104\", 10, \"Campaing product\");\n\t\tDiscountDTO typ2 = new DiscountDTO(Category.CUSTOMER, \"456\", 12, \"12% discount \");\n\t\tDiscountDTO typ3 = new DiscountDTO(Category.CUSTOMER, \"111\", 25, \"Loyality Discount\");\n\t\tDiscountDTO typ4 = new DiscountDTO(Category.CUSTOMER, \"123\", 1, \"New member discount\");\n\t\tDiscountDTO typ5 = new DiscountDTO(Category.QUANTITY, \"101\", 3, 11, \"Buy 3 pay for 2\");\n\t\tdiscountRegister.add(typ1);\n\t\tdiscountRegister.add(typ2);\n\t\tdiscountRegister.add(typ3);\n\t\tdiscountRegister.add(typ4);\n\t\tdiscountRegister.add(typ5);\n\t}", "public DetailsPanel( )\n {\n initComponents();\n }", "public CadastroProdutoNew() {\n initComponents();\n }", "public JPanelCreateClient() {\r\n\t\tsuper(new BorderLayout());\r\n\t\tthis.title = new CustomLabel(ConstantView.TITLE_CREATE_CLIENT, null, Color.decode(\"#2E5569\"));\r\n\t\tthis.okButton = new JButton(\"REGISTRAR CLIENTE\");\r\n\t\tthis.returnButton = new JButton(ConstantView.BUTTON_RETURN_SIGNIN);\r\n\t\tthis.jPanelFormClient = new JPanelFormClient();\r\n\t\tControlClient.getInstance().setjPanelCreateClient(this);\r\n\t\tthis.init();\r\n\t}", "public void onNew() {\t\t\n\t\tdesignWidget.addNewForm();\n\t}", "public String addNew() throws Exception {\r\n\t\tgetNavigationPanel(2);\r\n\t\tExpensesCategoryModel model = new ExpensesCategoryModel();\r\n\t\tmodel.initiate(context, session);\r\n\t\tmodel.getData(expenses, request);\r\n\t\texpenses.setLoadFlag(true);\r\n\t\treset();\r\n\t\t//\texpenses.setFlag(true);\r\n\r\n\t\texpenses.setPanelFlag(\"2\");\r\n\t\texpenses.setRetrnFlag(\"success\");\r\n\r\n\t\tmodel.terminate();\r\n\t\treturn \"success\";\r\n\r\n\t}", "public ComandaPanel() {\n\n initComponents();\n // comanda = new Comanda();\n }", "public ProductCreate() {\n initComponents();\n }", "public DashBoardPanel() {\n initComponents();\n }", "public void CrearNew(ActionEvent e) {\n List<Pensum> R = ejbFacade.existePensumID(super.getSelected().getIdpensum());\n if(R.isEmpty()){\n super.saveNew(e);\n }else{\n new Auxiliares().setMsj(3,\"PENSUM ID YA EXISTE\");\n }\n }", "@RequestMapping(value = \"/report.create\", method = RequestMethod.GET)\n @ResponseBody public ModelAndView newreportForm(HttpSession session) throws Exception {\n ModelAndView mav = new ModelAndView();\n mav.setViewName(\"/sysAdmin/reports/details\");\n\n //Create a new blank provider.\n reports report = new reports();\n \n mav.addObject(\"btnValue\", \"Create\");\n mav.addObject(\"reportdetails\", report);\n\n return mav;\n }", "public void clickCreate() {\n\t\tbtnCreate.click();\n\t}", "protected void doNew() {\n\t\tgetRegisterView().clearTableSelection();\n\t\tclear();\n\t\tenableForm(true);\n\t\tgetForm().getButton(EDIT).setEnabled(false);\n\t\tgetForm().getField(CHECK_NUMBER).requestFocus();\n\t}", "private void butAddActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_butAddActionPerformed\n AddBorrower ab = new AddBorrower();\n ab.setVisiblePanel(0);\n ab.setVisible(true);\n }", "public PnNewCustomer() {\n initComponents();\n }", "public Panel() {\n }", "public NewJPanel() {\n initComponents();\n }", "public NewJPanel() {\n initComponents();\n }", "public static AddNewScheduleDialog createInstance(int quantity){\n AddNewScheduleDialog frag = new AddNewScheduleDialog();\n frag.quantity = quantity;\n return frag;\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n Title = new javax.swing.JLabel();\n NAME = new javax.swing.JLabel();\n txt_name = new javax.swing.JTextField();\n PROVIDER = new javax.swing.JLabel();\n ComboBox_provider = new javax.swing.JComboBox<>();\n CATEGORY = new javax.swing.JLabel();\n ComboBox_category = new javax.swing.JComboBox<>();\n Trademark = new javax.swing.JLabel();\n ComboBox_trademark = new javax.swing.JComboBox<>();\n COLOR = new javax.swing.JLabel();\n ComboBox_color = new javax.swing.JComboBox<>();\n SIZE = new javax.swing.JLabel();\n ComboBox_size = new javax.swing.JComboBox<>();\n MATERIAL = new javax.swing.JLabel();\n ComboBox_material = new javax.swing.JComboBox<>();\n PRICE = new javax.swing.JLabel();\n txt_price = new javax.swing.JTextField();\n SAVE = new javax.swing.JButton();\n CANCEL = new javax.swing.JButton();\n Background = new javax.swing.JLabel();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n getContentPane().setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n Title.setFont(new java.awt.Font(\"Dialog\", 1, 24)); // NOI18N\n Title.setForeground(new java.awt.Color(255, 255, 255));\n Title.setText(\"NEW PRODUCT\");\n getContentPane().add(Title, new org.netbeans.lib.awtextra.AbsoluteConstraints(200, 33, -1, -1));\n\n NAME.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n NAME.setForeground(new java.awt.Color(255, 255, 255));\n NAME.setText(\"Name\");\n getContentPane().add(NAME, new org.netbeans.lib.awtextra.AbsoluteConstraints(40, 150, 70, 30));\n\n txt_name.setBackground(new java.awt.Color(51, 51, 51));\n txt_name.setForeground(new java.awt.Color(255, 255, 255));\n getContentPane().add(txt_name, new org.netbeans.lib.awtextra.AbsoluteConstraints(120, 150, 100, 30));\n\n PROVIDER.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n PROVIDER.setForeground(new java.awt.Color(255, 255, 255));\n PROVIDER.setText(\"Provider\");\n getContentPane().add(PROVIDER, new org.netbeans.lib.awtextra.AbsoluteConstraints(30, 200, 70, 30));\n\n ComboBox_provider.setBackground(new java.awt.Color(51, 51, 51));\n ComboBox_provider.setForeground(new java.awt.Color(255, 255, 255));\n ComboBox_provider.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Item 1\", \"Item 2\", \"Item 3\", \"Item 4\" }));\n getContentPane().add(ComboBox_provider, new org.netbeans.lib.awtextra.AbsoluteConstraints(120, 200, 100, 30));\n\n CATEGORY.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n CATEGORY.setForeground(new java.awt.Color(255, 255, 255));\n CATEGORY.setText(\"Category\");\n getContentPane().add(CATEGORY, new org.netbeans.lib.awtextra.AbsoluteConstraints(30, 250, 70, 30));\n\n ComboBox_category.setBackground(new java.awt.Color(51, 51, 51));\n ComboBox_category.setForeground(new java.awt.Color(255, 255, 255));\n ComboBox_category.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Item 1\", \"Item 2\", \"Item 3\", \"Item 4\" }));\n getContentPane().add(ComboBox_category, new org.netbeans.lib.awtextra.AbsoluteConstraints(120, 250, 100, 30));\n\n Trademark.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n Trademark.setForeground(new java.awt.Color(255, 255, 255));\n Trademark.setText(\"Trademark\");\n getContentPane().add(Trademark, new org.netbeans.lib.awtextra.AbsoluteConstraints(30, 300, 70, 30));\n\n ComboBox_trademark.setBackground(new java.awt.Color(51, 51, 51));\n ComboBox_trademark.setForeground(new java.awt.Color(255, 255, 255));\n ComboBox_trademark.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Item 1\", \"Item 2\", \"Item 3\", \"Item 4\" }));\n ComboBox_trademark.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n ComboBox_trademarkActionPerformed(evt);\n }\n });\n getContentPane().add(ComboBox_trademark, new org.netbeans.lib.awtextra.AbsoluteConstraints(120, 300, 100, 30));\n\n COLOR.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n COLOR.setForeground(new java.awt.Color(255, 255, 255));\n COLOR.setText(\"Color\");\n getContentPane().add(COLOR, new org.netbeans.lib.awtextra.AbsoluteConstraints(300, 150, 70, 30));\n\n ComboBox_color.setBackground(new java.awt.Color(51, 51, 51));\n ComboBox_color.setForeground(new java.awt.Color(255, 255, 255));\n ComboBox_color.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Item 1\", \"Item 2\", \"Item 3\", \"Item 4\" }));\n getContentPane().add(ComboBox_color, new org.netbeans.lib.awtextra.AbsoluteConstraints(400, 150, 100, 30));\n\n SIZE.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n SIZE.setForeground(new java.awt.Color(255, 255, 255));\n SIZE.setText(\"Size\");\n getContentPane().add(SIZE, new org.netbeans.lib.awtextra.AbsoluteConstraints(300, 200, 70, 30));\n\n ComboBox_size.setBackground(new java.awt.Color(51, 51, 51));\n ComboBox_size.setForeground(new java.awt.Color(255, 255, 255));\n ComboBox_size.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Item 1\", \"Item 2\", \"Item 3\", \"Item 4\" }));\n getContentPane().add(ComboBox_size, new org.netbeans.lib.awtextra.AbsoluteConstraints(400, 200, 100, 30));\n\n MATERIAL.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n MATERIAL.setForeground(new java.awt.Color(255, 255, 255));\n MATERIAL.setText(\"Material\");\n getContentPane().add(MATERIAL, new org.netbeans.lib.awtextra.AbsoluteConstraints(300, 250, 70, 30));\n\n ComboBox_material.setBackground(new java.awt.Color(51, 51, 51));\n ComboBox_material.setForeground(new java.awt.Color(255, 255, 255));\n ComboBox_material.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Item 1\", \"Item 2\", \"Item 3\", \"Item 4\" }));\n getContentPane().add(ComboBox_material, new org.netbeans.lib.awtextra.AbsoluteConstraints(400, 250, 100, 30));\n\n PRICE.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n PRICE.setForeground(new java.awt.Color(255, 255, 255));\n PRICE.setText(\"Price\");\n getContentPane().add(PRICE, new org.netbeans.lib.awtextra.AbsoluteConstraints(300, 300, 70, 30));\n\n txt_price.setBackground(new java.awt.Color(51, 51, 51));\n txt_price.setForeground(new java.awt.Color(255, 255, 255));\n txt_price.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n txt_priceActionPerformed(evt);\n }\n });\n getContentPane().add(txt_price, new org.netbeans.lib.awtextra.AbsoluteConstraints(400, 300, 100, 30));\n\n SAVE.setBackground(new java.awt.Color(25, 25, 25));\n SAVE.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/img/icono_guardar-A.png\"))); // NOI18N\n SAVE.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));\n SAVE.setPressedIcon(new javax.swing.ImageIcon(getClass().getResource(\"/img/icono_guardar-B.png\"))); // NOI18N\n SAVE.setRolloverIcon(new javax.swing.ImageIcon(getClass().getResource(\"/img/icono_guardar.png\"))); // NOI18N\n SAVE.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n SAVEActionPerformed(evt);\n }\n });\n getContentPane().add(SAVE, new org.netbeans.lib.awtextra.AbsoluteConstraints(210, 480, 50, 50));\n\n CANCEL.setBackground(new java.awt.Color(25, 25, 25));\n CANCEL.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/img/icono_no-A.png\"))); // NOI18N\n CANCEL.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));\n CANCEL.setPressedIcon(new javax.swing.ImageIcon(getClass().getResource(\"/img/icono_no-B.png\"))); // NOI18N\n CANCEL.setRolloverIcon(new javax.swing.ImageIcon(getClass().getResource(\"/img/icono_no.png\"))); // NOI18N\n CANCEL.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n CANCELActionPerformed(evt);\n }\n });\n getContentPane().add(CANCEL, new org.netbeans.lib.awtextra.AbsoluteConstraints(280, 480, 50, 50));\n\n Background.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/img/fondo_windows2.jpg\"))); // NOI18N\n getContentPane().add(Background, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, -1, -1));\n\n pack();\n }", "public DisponibilidadEntity create(DisponibilidadEntity entity) {\r\n\r\n em.persist(entity);\r\n\r\n return entity;\r\n }", "public DynamicDelete() {\n initComponents();\n }", "@Override\r\n public void actionPerformed(ActionEvent actionEvent) {\r\n createManualJPanel();\r\n }", "public ControlPanel() {\n\t\tpanelName = null;\n\t}", "public ProcedureFormPanel() {\n initComponents();\n }", "GridPanel create(GridDataModel model);", "private JPanel getPanelCrearCuenta() {\r\n\t\tif (PanelCrearCuenta == null) {\r\n\t\t\tGridBagConstraints gridBagConstraints51 = new GridBagConstraints();\r\n\t\t\tgridBagConstraints51.gridx = 1;\r\n\t\t\tgridBagConstraints51.insets = new Insets(20, 0, 0, 0);\r\n\t\t\tgridBagConstraints51.ipadx = 60;\r\n\t\t\tgridBagConstraints51.ipady = 20;\r\n\t\t\tgridBagConstraints51.gridy = 13;\r\n\t\t\tGridBagConstraints gridBagConstraints31 = new GridBagConstraints();\r\n\t\t\tgridBagConstraints31.gridx = 1;\r\n\t\t\tgridBagConstraints31.insets = new Insets(20, 0, 0, 0);\r\n\t\t\tgridBagConstraints31.ipadx = 60;\r\n\t\t\tgridBagConstraints31.ipady = 20;\r\n\t\t\tgridBagConstraints31.gridy = 14;\r\n\t\t\tGridBagConstraints gridBagConstraints21 = new GridBagConstraints();\r\n\t\t\tgridBagConstraints21.gridx = 1;\r\n\t\t\tgridBagConstraints21.ipadx = 60;\r\n\t\t\tgridBagConstraints21.insets = new Insets(35, 0, 0, 0);\r\n\t\t\tgridBagConstraints21.ipady = 20;\r\n\t\t\tgridBagConstraints21.gridy = 12;\r\n\t\t\tGridBagConstraints gridBagConstraints9 = new GridBagConstraints();\r\n\t\t\tgridBagConstraints9.fill = GridBagConstraints.VERTICAL;\r\n\t\t\tgridBagConstraints9.gridy = 9;\r\n\t\t\tgridBagConstraints9.weightx = 1.0;\r\n\t\t\tgridBagConstraints9.ipadx = 100;\r\n\t\t\tgridBagConstraints9.gridwidth = 2;\r\n\t\t\tgridBagConstraints9.gridx = 0;\r\n\t\t\tGridBagConstraints gridBagConstraints7 = new GridBagConstraints();\r\n\t\t\tgridBagConstraints7.fill = GridBagConstraints.VERTICAL;\r\n\t\t\tgridBagConstraints7.gridy = 7;\r\n\t\t\tgridBagConstraints7.weightx = 1.0;\r\n\t\t\tgridBagConstraints7.ipadx = 100;\r\n\t\t\tgridBagConstraints7.gridwidth = 2;\r\n\t\t\tgridBagConstraints7.gridx = 0;\r\n\t\t\tGridBagConstraints gridBagConstraints11 = new GridBagConstraints();\r\n\t\t\tgridBagConstraints11.fill = GridBagConstraints.VERTICAL;\r\n\t\t\tgridBagConstraints11.gridy = 11;\r\n\t\t\tgridBagConstraints11.weightx = 1.0;\r\n\t\t\tgridBagConstraints11.ipadx = 100;\r\n\t\t\tgridBagConstraints11.gridwidth = 2;\r\n\t\t\tgridBagConstraints11.gridx = 0;\r\n\t\t\tGridBagConstraints gridBagConstraints10 = new GridBagConstraints();\r\n\t\t\tgridBagConstraints10.gridx = 0;\r\n\t\t\tgridBagConstraints10.gridwidth = 2;\r\n\t\t\tgridBagConstraints10.gridy = 10;\r\n\t\t\tjLabelPais = new JLabel();\r\n\t\t\tjLabelPais.setText(PAIS);\r\n\t\t\tGridBagConstraints gridBagConstraints8 = new GridBagConstraints();\r\n\t\t\tgridBagConstraints8.gridx = 0;\r\n\t\t\tgridBagConstraints8.gridwidth = 2;\r\n\t\t\tgridBagConstraints8.gridy = 8;\r\n\t\t\tjLabelConfirmacion = new JLabel();\r\n\t\t\tjLabelConfirmacion.setText(CONFIRMACION);\r\n\t\t\tGridBagConstraints gridBagConstraints6 = new GridBagConstraints();\r\n\t\t\tgridBagConstraints6.gridx = 0;\r\n\t\t\tgridBagConstraints6.gridwidth = 2;\r\n\t\t\tgridBagConstraints6.gridy = 6;\r\n\t\t\tjLabelPassword = new JLabel();\r\n\t\t\tjLabelPassword.setText(PASSWORD);\r\n\t\t\tGridBagConstraints gridBagConstraints5 = new GridBagConstraints();\r\n\t\t\tgridBagConstraints5.fill = GridBagConstraints.VERTICAL;\r\n\t\t\tgridBagConstraints5.gridy = 5;\r\n\t\t\tgridBagConstraints5.weightx = 1.0;\r\n\t\t\tgridBagConstraints5.ipadx = 100;\r\n\t\t\tgridBagConstraints5.gridwidth = 2;\r\n\t\t\tgridBagConstraints5.gridx = 0;\r\n\t\t\tGridBagConstraints gridBagConstraints4 = new GridBagConstraints();\r\n\t\t\tgridBagConstraints4.gridx = 0;\r\n\t\t\tgridBagConstraints4.gridwidth = 2;\r\n\t\t\tgridBagConstraints4.gridy = 4;\r\n\t\t\tjLabelApellido = new JLabel();\r\n\t\t\tjLabelApellido.setText(APELLIDO);\r\n\t\t\tGridBagConstraints gridBagConstraints3 = new GridBagConstraints();\r\n\t\t\tgridBagConstraints3.fill = GridBagConstraints.VERTICAL;\r\n\t\t\tgridBagConstraints3.gridy = 3;\r\n\t\t\tgridBagConstraints3.weightx = 1.0;\r\n\t\t\tgridBagConstraints3.ipadx = 100;\r\n\t\t\tgridBagConstraints3.gridwidth = 2;\r\n\t\t\tgridBagConstraints3.gridx = 0;\r\n\t\t\tGridBagConstraints gridBagConstraints2 = new GridBagConstraints();\r\n\t\t\tgridBagConstraints2.gridx = 0;\r\n\t\t\tgridBagConstraints2.gridwidth = 2;\r\n\t\t\tgridBagConstraints2.gridy = 2;\r\n\t\t\tjLabelNombre = new JLabel();\r\n\t\t\tjLabelNombre.setText(NOMBRE);\r\n\t\t\tGridBagConstraints gridBagConstraints1 = new GridBagConstraints();\r\n\t\t\tgridBagConstraints1.fill = GridBagConstraints.VERTICAL;\r\n\t\t\tgridBagConstraints1.gridy = 1;\r\n\t\t\tgridBagConstraints1.weightx = 1.0;\r\n\t\t\tgridBagConstraints1.ipadx = 100;\r\n\t\t\tgridBagConstraints1.gridwidth = 2;\r\n\t\t\tgridBagConstraints1.gridx = 0;\r\n\t\t\tGridBagConstraints gridBagConstraints = new GridBagConstraints();\r\n\t\t\tgridBagConstraints.gridx = 0;\r\n\t\t\tgridBagConstraints.gridwidth = 2;\r\n\t\t\tgridBagConstraints.gridy = 0;\r\n\t\t\tjLabelNick = new JLabel();\r\n\t\t\tjLabelNick.setText(NICK);\r\n\t\t\tPanelCrearCuenta = new JPanel();\r\n\t\t\tPanelCrearCuenta.setLayout(new GridBagLayout());\r\n\t\t\tPanelCrearCuenta.add(jLabelNick, gridBagConstraints);\r\n\t\t\tPanelCrearCuenta.add(getJTextFieldNick(), gridBagConstraints1);\r\n\t\t\tPanelCrearCuenta.add(jLabelNombre, gridBagConstraints2);\r\n\t\t\tPanelCrearCuenta.add(getJTextFieldNombre(), gridBagConstraints3);\r\n\t\t\tPanelCrearCuenta.add(jLabelApellido, gridBagConstraints4);\r\n\t\t\tPanelCrearCuenta.add(getJTextFieldApellido(), gridBagConstraints5);\r\n\t\t\tPanelCrearCuenta.add(jLabelPassword, gridBagConstraints6);\r\n\t\t\tPanelCrearCuenta.add(jLabelConfirmacion, gridBagConstraints8);\r\n\t\t\tPanelCrearCuenta.add(jLabelPais, gridBagConstraints10);\r\n\t\t\tPanelCrearCuenta.add(getJTextFieldPais(), gridBagConstraints11);\r\n\t\t\tPanelCrearCuenta.add(getJPasswordFieldPWD(), gridBagConstraints7);\r\n\t\t\tPanelCrearCuenta.add(getJPasswordFieldConfirmacion(),\r\n\t\t\t\t\tgridBagConstraints9);\r\n\t\t\tPanelCrearCuenta.add(getJButtonCrear(), gridBagConstraints21);\r\n\t\t\tPanelCrearCuenta.add(getJButtonSalir(), gridBagConstraints31);\r\n\t\t\tPanelCrearCuenta.add(getJButtonCrearCuentaAdmin(),\r\n\t\t\t\t\tgridBagConstraints51);\r\n\t\t}\r\n\t\treturn PanelCrearCuenta;\r\n\t}", "public frmDecisionInvestigationCom_Dec() {\n initComponents();\n }", "void setNewCollectionPanel();", "public AmountReleasedCommentsForm() {\r\n initComponents();\r\n }", "public CreateJPanel(ProfileInfo profileInfo) {\n initComponents();\n \n this.profileInfo = profileInfo;\n btnSave.setEnabled(false);\n \n }", "private void crearPanel() {\r\n\t\tJLabel lbl_Empresa = new JLabel(\"Empresa:\");\r\n\t\tlbl_Empresa.setBounds(10, 52, 72, 14);\r\n\t\tadd(lbl_Empresa);\r\n\r\n\t\ttxField_Empresa = new JTextField();\r\n\t\ttxField_Empresa.setBounds(116, 49, 204, 20);\r\n\t\tadd(txField_Empresa);\r\n\t\ttxField_Empresa.setColumns(10);\r\n\r\n\t\tlbl_Oferta = new JLabel(\" \");\r\n\t\tlbl_Oferta.setFont(new Font(\"Tahoma\", Font.PLAIN, 20));\r\n\t\tlbl_Oferta.setBounds(10, 11, 742, 20);\r\n\t\tadd(lbl_Oferta);\r\n\r\n\t\tJLabel lbl_sueldoMin = new JLabel(\"Sueldo Minimo:\");\r\n\t\tlbl_sueldoMin.setBounds(10, 83, 96, 14);\r\n\t\tadd(lbl_sueldoMin);\r\n\r\n\t\ttxField_sueldoMin = new JTextField();\r\n\t\ttxField_sueldoMin.setColumns(10);\r\n\t\ttxField_sueldoMin.setBounds(116, 80, 93, 20);\r\n\t\tadd(txField_sueldoMin);\r\n\r\n\t\tJLabel lbl_sueldoMax = new JLabel(\"Sueldo Maximo:\");\r\n\t\tlbl_sueldoMax.setBounds(10, 115, 96, 14);\r\n\t\tadd(lbl_sueldoMax);\r\n\r\n\t\ttxField_sueldoMax = new JTextField();\r\n\t\ttxField_sueldoMax.setColumns(10);\r\n\t\ttxField_sueldoMax.setBounds(116, 112, 93, 20);\r\n\t\tadd(txField_sueldoMax);\r\n\r\n\t\tJLabel lbl_experiencia = new JLabel(\"A\\u00F1os de experiencia minimos:\");\r\n\t\tlbl_experiencia.setBounds(10, 143, 185, 14);\r\n\t\tadd(lbl_experiencia);\r\n\r\n\t\ttxField_experiencia = new JTextField();\r\n\t\ttxField_experiencia.setColumns(10);\r\n\t\ttxField_experiencia.setBounds(205, 140, 93, 20);\r\n\t\tadd(txField_experiencia);\r\n\r\n\t\tJLabel lbl_aspectosValorar = new JLabel(\"Aspectos a valorar:\");\r\n\t\tlbl_aspectosValorar.setBounds(10, 178, 137, 14);\r\n\t\tadd(lbl_aspectosValorar);\r\n\r\n\t\ttxArea_aspectosValorar = new JTextArea();\r\n\t\ttxArea_aspectosValorar.setBorder(UIManager.getBorder(\"TextField.border\"));\r\n\t\ttxArea_aspectosValorar.setBounds(157, 172, 253, 41);\r\n\t\tadd(txArea_aspectosValorar);\r\n\r\n\t\tJLabel lbl_aspectosImpres = new JLabel(\"Aspectos imprescindibles:\");\r\n\t\tlbl_aspectosImpres.setBounds(10, 238, 133, 14);\r\n\t\tadd(lbl_aspectosImpres);\r\n\r\n\t\ttxArea_aspectosImpres = new JTextArea();\r\n\t\ttxArea_aspectosImpres.setBorder(UIManager.getBorder(\"TextField.border\"));\r\n\t\ttxArea_aspectosImpres.setBounds(157, 232, 253, 41);\r\n\t\tadd(txArea_aspectosImpres);\r\n\r\n\t\tJLabel lbl_descripcion = new JLabel(\"Descripcion:\");\r\n\t\tlbl_descripcion.setBounds(10, 302, 107, 14);\r\n\t\tadd(lbl_descripcion);\r\n\r\n\t\ttxArea_descripcion = new JTextArea();\r\n\t\ttxArea_descripcion.setBorder(UIManager.getBorder(\"TextField.border\"));\r\n\t\ttxArea_descripcion.setBounds(10, 328, 465, 149);\r\n\t\tadd(txArea_descripcion);\r\n\r\n\t\tJLabel lbl_conocimientos = new JLabel(\"Conocimientos requeridos:\");\r\n\t\tlbl_conocimientos.setBounds(537, 125, 169, 14);\r\n\t\tadd(lbl_conocimientos);\r\n\r\n\t\tpa_conocimientos = new PanelListaDoble(Usuario.getConocimientosTotales(), miOferta.getConocimientos());\r\n\t\tpa_conocimientos.setBounds(537, 174, 215, 180);\r\n\t\tadd(pa_conocimientos);\r\n\r\n\t\ttxField_buscarCono = new JTextField();\r\n\t\ttxField_buscarCono.setBounds(537, 140, 135, 20);\r\n\t\tadd(txField_buscarCono);\r\n\t\ttxField_buscarCono.setColumns(10);\r\n\r\n\t\tJButton btn_buscar = new JButton(\"\");\r\n\t\tbtn_buscar.setBounds(682, 138, 24, 23);\r\n\t\tadd(btn_buscar);\r\n\r\n\t\tbtn_crear = new JButton(\"\");\r\n\t\tbtn_crear.setBounds(716, 138, 24, 23);\r\n\t\tadd(btn_crear);\r\n\r\n\t\ttxField_lugar = new JTextField();\r\n\t\ttxField_lugar.setEditable(false);\r\n\t\ttxField_lugar.setColumns(10);\r\n\t\ttxField_lugar.setBounds(506, 49, 234, 20);\r\n\t\tadd(txField_lugar);\r\n\r\n\t\tJLabel lbl_lugar = new JLabel(\"Lugar de trabajo:\");\r\n\t\tlbl_lugar.setBounds(392, 52, 104, 14);\r\n\t\tadd(lbl_lugar);\r\n\r\n\t\tJLabel lbl_contrato = new JLabel(\"Tipo de contrato:\");\r\n\t\tlbl_contrato.setBounds(392, 83, 104, 14);\r\n\t\tadd(lbl_contrato);\r\n\r\n\t\tcombo_contrato = new JComboBox<Contrato>();\r\n\t\tcombo_contrato.addItem(Contrato.INDEFINIDO_TIEMPO_COMPLETO);\r\n\t\tcombo_contrato.addItem(Contrato.INDEFINIDO_TIEMPO_PARCIAL);\r\n\t\tcombo_contrato.addItem(Contrato.TEMPORAL_TIEMPO_COMPLETO);\r\n\t\tcombo_contrato.addItem(Contrato.TEMPORTAL_TIEMPO_PARCIAL);\r\n\t\tcombo_contrato.setBounds(506, 83, 159, 20);\r\n\t\tadd(combo_contrato);\r\n\t\t// d\r\n\t\tinicializar(miOferta);\r\n\t\tdesHabCampos(false);\r\n\t\tif (miOferta.getEmpresa().getNumID().compareToIgnoreCase(Aplicacion.getUsuario().getNumID()) == 0) {\r\n\t\t\tbtnEliminar = new JButton(\"Eliminar\");\r\n\t\t\tbtnEliminar.setToolTipText(\"Eliminar\");\r\n\t\t\tbtnEliminar.setBounds(492, 384, 125, 41);\r\n\t\t\tadd(btnEliminar);\r\n\r\n\t\t\tbtnRetirar = new JButton(\"\\uD83D\\uDC40\");\r\n\t\t\tbtnRetirar.setToolTipText(\"Retirar Oferta\");\r\n\t\t\tbtnRetirar.setBounds(627, 384, 125, 41);\r\n\t\t\tadd(btnRetirar);\r\n\r\n\t\t\tbutton_Editar = new JButton(\"Editar\");\r\n\t\t\tbutton_Editar.setToolTipText(\"Editar\");\r\n\t\t\tbutton_Editar.setBounds(627, 436, 125, 41);\r\n\t\t\tadd(button_Editar);\r\n\r\n\t\t\tbutton_Editar.addMouseListener(new MouseAdapter() {\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic void mouseClicked(MouseEvent e) {\r\n\t\t\t\t\tdesHabCampos(true);\r\n\t\t\t\t\tbutton_Editar.setVisible(false);\r\n\t\t\t\t\tbtnEliminar.setVisible(false);\r\n\t\t\t\t\tbtnRetirar.setVisible(false);\r\n\t\t\t\t\tbtn_crear.setVisible(false);\r\n\r\n\t\t\t\t\tbtn_guardar = new JButton(\"Guardar\");\r\n\t\t\t\t\tbtn_guardar.setToolTipText(\"Guardar\");\r\n\t\t\t\t\tbtn_guardar.setBounds(627, 436, 125, 41);\r\n\t\t\t\t\tadd(btn_guardar);\r\n\r\n\t\t\t\t\tbtn_cancelar = new JButton(\"Cancelar\");\r\n\t\t\t\t\tbtn_cancelar.setToolTipText(\"Cancelar\");\r\n\t\t\t\t\tbtn_cancelar.setBounds(492, 436, 125, 41);\r\n\t\t\t\t\tadd(btn_cancelar);\r\n\r\n\t\t\t\t\tbtn_cancelar.addMouseListener(new MouseAdapter() {\r\n\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\tpublic void mouseClicked(MouseEvent e) {\r\n\t\t\t\t\t\t\tbtn_guardar.removeAll();\r\n\t\t\t\t\t\t\tbtn_cancelar.removeAll();\r\n\t\t\t\t\t\t\tbtn_cancelar.setVisible(false);\r\n\t\t\t\t\t\t\tbtn_guardar.setVisible(false);\r\n\t\t\t\t\t\t\tbtnEliminar.setVisible(true);\r\n\t\t\t\t\t\t\tbutton_Editar.setVisible(true);\r\n\t\t\t\t\t\t\tbtnRetirar.setVisible(true);\r\n\t\t\t\t\t\t\tbtn_crear.setVisible(true);\r\n\t\t\t\t\t\t\tinicializar(miOferta);\r\n\t\t\t\t\t\t\tdesHabCampos(false);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t});\r\n\r\n\t\t\t\t\tbtn_guardar.addMouseListener(new MouseAdapter() {\r\n\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\tpublic void mouseClicked(MouseEvent e) {\r\n\t\t\t\t\t\t\tEmergenteCambios.createWindow(\"┐Desea guardar los cambios?\", (TieneEmergente) padre);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t});\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t}\r\n\t}", "private void initPanel() {\r\n panel = new JDialog(mdiForm);\r\n panel.setTitle(\"Groups\");\r\n panel.setSize(325, 290);\r\n panel.getContentPane().add(groupsController.getControlledUI());\r\n Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();\r\n java.awt.Dimension dlgSize = panel.getSize();\r\n int x = screenSize.width/1 - ((dlgSize.width/1)+20);\r\n int y = screenSize.height/1 - ((dlgSize.height/1)+60);\r\n panel.setLocation(x, y);\r\n panel.setFocusable(false);\r\n panel.show();\r\n panel.setDefaultCloseOperation(JDialog.DO_NOTHING_ON_CLOSE);\r\n panel.addWindowListener(new java.awt.event.WindowAdapter() {\r\n public void windowClosing(java.awt.event.WindowEvent event) {\r\n panel.dispose();\r\n maintainSponsorHierarchyBaseWindow.mnuItmPanel.setSelected(false);\r\n maintainSponsorHierarchyBaseWindow.btnPanel.setSelected(false);\r\n }\r\n });\r\n }", "private void initPanelDeck() {\r\n\t\tgsp.panelDeck = gsp.createPanel(100, 50, 50, 50, 0, 0, 400, 350);\r\n\t\t\r\n\t\tgsp.buttonDeck = new JButton();\r\n\t\tgsp.setImageIcon(\"Deck\", gsp.buttonDeck);\r\n\t\t\r\n\t\tgsp.labelLastCard = new JLabel();\r\n\t\tgsp.updateLastCardView();\r\n\t\t\r\n\t\tgsp.panelDeck.add(gsp.buttonDeck);\r\n\t\tgsp.panelDeck.add(gsp.labelLastCard);\r\n\t}", "public static Result newForm() {\n return ok(newForm.render(palletForm, setOfArticleForm));\n }", "private void getDeleteLinkPanel() {\n\t\ttry{\n\t\t\tDeleteLinkPanel deleteLinkPanel = new DeleteLinkPanel(newsItem);\n\t\t\toptionPanel.add(deleteLinkPanel);\n\t\t}catch(Exception e){\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t}", "void createGebruikersBeheerPanel() {\n frame.add(gebruikersBeheerView.createGebruikersBeheerPanel());\n frame.setTitle(gebruikersBeheerModel.getTitle());\n }", "private void buildAmountPanel1() // buildAmountPanel1 method start\n\t\t{\n\t\t\t// creating panel objects\n\t\t\tamountLabel1 = new JLabel(\"Amount: $\");\n\t\t\tamountField1 = new JTextField(\"0.00\", 10);\n\t\t\tamountField1.setEditable(false);\n\t\t\t\n\t\t\t// adding objects to panel\n\t\t\tamountPanel1.add(amountLabel1);\n\t\t\tamountPanel1.add(amountField1);\n\t\t}", "@GetMapping(value = \"/create\") // https://localhost:8080/etiquetasTipoDisenio/create\n\tpublic String create(Model model) {\n\t\tetiquetasTipoDisenio etiquetasTipoDisenio = new etiquetasTipoDisenio();\n\t\tmodel.addAttribute(\"title\", \"Registro de una nuev entrega\");\n\t\tmodel.addAttribute(\"etiquetasTipoDisenio\", etiquetasTipoDisenio); // similar al ViewBag\n\t\treturn \"etiquetasTipoDisenio/form\"; // la ubicacion de la vista\n\t}", "@DISPID(1611005968) //= 0x60060010. The runtime will prefer the VTID if present\n @VTID(43)\n boolean newWithPanel();", "@Override\r\n protected void createDbContentCreateEdit() {\n DbContentCreateEdit dbContentCreateEdit = new DbContentCreateEdit();\r\n dbContentCreateEdit.init(null);\r\n form.getModelObject().setDbContentCreateEdit(dbContentCreateEdit);\r\n dbContentCreateEdit.setParent(form.getModelObject());\r\n ruServiceHelper.updateDbEntity(form.getModelObject()); \r\n }", "private void modificarComponentesPanelPadre() {\n panelCrearArticuloClienteDistribuidor_labelTitulo.setText(panelCrearArticuloClienteDistribuidor_labelTitulo.getText() + \"Distribuidor\");\n }", "public static JPanel newPanel() {\n\t\treturn null;\n\t}", "private void buildAmountPanel1() // buildAmountPanel1 method start\n\t\t{\n\t\t\t// creating panel objects\n\t\t\tamountLabel1 = new JLabel(\"Amount: $\");\n\t\t\tamountField1 = new JTextField(\"0.00\", 10);\n\t\t\tamountField1.setEditable(false);\n\n\t\t\t// adding objects to panel\n\t\t\tamountPanel1.add(amountLabel1);\n\t\t\tamountPanel1.add(amountField1);\n\t\t}", "@RequestMapping(params = \"new\", method = RequestMethod.GET)\n\t@PreAuthorize(\"hasRole('ADMIN')\")\n\tpublic String createProductForm(Model model) { \t\n \t\n\t\t//Security information\n\t\tmodel.addAttribute(\"admin\",security.isAdmin()); \n\t\tmodel.addAttribute(\"loggedUser\", security.getLoggedInUser());\n\t\t\n\t model.addAttribute(\"product\", new Product());\n\t return \"products/newProduct\";\n\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tADMLE.Admin_DDL_Create();\n\t\t\t\tADML.setVisible(false);\n\t\t\t}", "public void preparePanelPoder(){\n\t\tpanelNombrePoder = new JPanel();\n\t\tpanelNombrePoder.setLayout( new GridLayout(3,1,0,0 ));\n\t\t\n\t\tString name = ( game.getCurrentSorpresa() == null )?\" No hay sorpresa\":\" \"+game.getCurrentSorpresa().getClass().getName();\n\t\tn1 = new JLabel(\"Sorpresa actual:\"); \n\t\tn1.setForeground(Color.WHITE);\n\t\t\n\t\tn2 = new JLabel();\n\t\tn2.setText(name.replace(\"aplicacion.\",\"\"));\n\t\tn2.setForeground(Color.WHITE);\n\t\t\n\t\tpanelNombrePoder.add(n1);\n\t\tpanelNombrePoder.add(n2);\n\t\tpanelNombrePoder.setBounds( 34,200 ,110,50);\n\t\tpanelNombrePoder.setOpaque(false);\n\t\tthis.add( panelNombrePoder);\n\t\t\n\t\t\n\t\t\n\t\t\n\t}", "public loanform() {\n assets = 0;\n initComponents();\n assettypeinputs = new ArrayList();\n assetvalueinputs = new ArrayList();\n assetassesedinputs = new ArrayList();\n assettypelabels = new ArrayList();\n assetvaluelabels = new ArrayList();\n assetassesedlabels = new ArrayList();\n //jPanel6.setLayout(new FlowLayout());\n jPanel6.setLayout(new GridLayout(0,2));\n }", "public New_shipment() {\n initComponents();\n init();\n \n }", "public JComponent createContentPanel() {\n\t\t// Separating the component initialization and configuration\n\t\t// from the layout code makes both parts easier to read.\n\t\tinitControls();\n\t\t//TODO set minimum size\n\t\tFormLayout layout = new FormLayout(\"default, 3dlu, 120dlu:grow\", // cols //$NON-NLS-1$\n\t\t\t\t\"p, 3dlu,p,3dlu,p\"); // rows //$NON-NLS-1$\n\n\t\t// Create a builder that assists in adding components to the container.\n\t\t// Wrap the panel with a standardized border.\n\t\tDefaultFormBuilder builder = new DefaultFormBuilder(layout);\n\t\tbuilder.setDefaultDialogBorder();\n\t\tbuilder.append(Messages.getString(\"RenameDialog.CurrentName\"), oldName); //$NON-NLS-1$\n\t\tbuilder.nextLine(2);\n\t\tbuilder.append(Messages.getString(\"RenameDialog.NewName\"), newName); //$NON-NLS-1$\n\t\treturn builder.getPanel();\n\t}", "public PanelControl() {\r\n initComponents();\r\n VersionEImageIcon versionEImageIcon = new VersionEImageIcon();\r\n versionEImageIcon.newColorFromPanel(panelColor);\r\n jLabel1.setText(INFO_LABEL);\r\n Usuario usuarioTipo = Login.getUsuario();\r\n this.administrador = usuarioTipo.isAdmin();\r\n if (!administrador)\r\n {\r\n rangos.setEnabled(false);\r\n controles.setEnabled(false);\r\n alta_usuarios.setEnabled(false);\r\n verificacion.setEnabled(false);\r\n }\r\n }", "private void createpanel2() {\r\n\t\tpanels[1].setLayout(new GridLayout(1, 2));\r\n\r\n\t\tdescription[0] = new JLabel(\"Accountname: \");\r\n\t\tdescription[0].setFont(smallfont);\r\n\t\tdescription[0].setHorizontalAlignment(JLabel.CENTER);\r\n\t\tuserinfo = new JTextField() {\r\n\t\t\tprivate static final long serialVersionUID = 1L;\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void paint(Graphics g) {\r\n\t\t\t\tg.drawImage(ImageLoader.getImage(\"black_0.4\"), 0, 0, null);\r\n\t\t\t\tsuper.paint(g);\r\n\t\t\t}\r\n\t\t};\r\n\t\tif (System.getProperty(\"os.name\").startsWith(\"Windows\")) {\r\n\t\t\tuserinfo.setForeground(Color.WHITE);\r\n\t\t} else {\r\n\t\t\tuserinfo.setForeground(Color.BLACK);\r\n\t\t}\r\n\t\tuserinfo.setOpaque(false);\r\n\t\tuserinfo.setFont(smallfont);\r\n\t\tpanels[1].add(description[0]);\r\n\t\tpanels[1].add(userinfo);\r\n\t\tpanels[1].setOpaque(false);\r\n\t\tallComponents.add(panels[1]);\r\n\t\tpanels[0].revalidate();\r\n\t}", "public DemoPanel() {\n }", "public panelApproveRejectChanges() {\n super();\n initComponents();\n }", "public MostraVenta(String idtrasp, Object[][] clienteM1, Object[][] vendedorM1, String idmarc, String responsable,ListaTraspaso panel)\n{\n this.padre = panel;\n this.clienteM = clienteM1;\n this.vendedorM = vendedorM1;\n this.idtraspaso= idtrasp;\n this.idmarca=idmarc;\n//this.tipoenvioM = new String[]{\"INGRESO\", \"TRASPASO\"};\n String tituloTabla =\"Detalle Venta\";\n // padre=panel;\n String nombreBoton1 = \"Registrar\";\n String nombreBoton2 = \"Cancelar\";\n // String nombreBoton3 = \"Eliminar Empresa\";\n\n setId(\"win-NuevaEmpresaForm1\");\n setTitle(tituloTabla);\n setWidth(400);\n setMinWidth(ANCHO);\n setHeight(250);\n setLayout(new FitLayout());\n setPaddings(WINDOW_PADDING);\n setButtonAlign(Position.CENTER);\n setCloseAction(Window.CLOSE);\n setPlain(true);\n\n but_aceptar = new Button(nombreBoton1);\n but_cancelar = new Button(nombreBoton2);\n // addButton(but_aceptarv);\n addButton(but_aceptar);\n addButton(but_cancelar);\n\n formPanelCliente = new FormPanel();\n formPanelCliente.setBaseCls(\"x-plain\");\n //formPanelCliente.setLabelWidth(130);\n formPanelCliente.setUrl(\"save-form.php\");\n formPanelCliente.setWidth(ANCHO);\n formPanelCliente.setHeight(ALTO);\n formPanelCliente.setLabelAlign(Position.LEFT);\n\n formPanelCliente.setAutoWidth(true);\n\n\ndat_fecha1 = new DateField(\"Fecha\", \"d-m-Y\");\n fechahoy = new Date();\n dat_fecha1.setValue(fechahoy);\n dat_fecha1.setReadOnly(true);\n\ncom_vendedor = new ComboBox(\"Vendedor al que enviamos\", \"idempleado\");\ncom_cliente = new ComboBox(\"Clientes\", \"idcliente\");\n//com_tipo = new ComboBox(\"Tipo Envio\", \"idtipo\");\n initValues1();\n\n\n\n formPanelCliente.add(dat_fecha1);\n// formPanelCliente.add(com_tipo);\n// formPanelCliente.add(tex_nombreC);\n// formPanelCliente.add(tex_codigoBarra);\n // formPanelCliente.add(tex_codigoC);\nformPanelCliente.add(com_vendedor);\n formPanelCliente.add(com_cliente);\n add(formPanelCliente);\nanadirListenersTexfield();\n addListeners();\n\n }", "@Override\r\n\t\tpublic void onClick(ClickEvent event) {\n\t\t\tRootPanel.get(\"details\").clear();\r\n\t\t\thome = new AdminDashboardForm();\r\n\t\t\tRootPanel.get(\"details\").add(home);\r\n\t\t}", "private void creaPannelli() {\n /* variabili e costanti locali di lavoro */\n Pannello pan;\n\n try { // prova ad eseguire il codice\n\n /* pannello date */\n pan = this.creaPanDate();\n this.addPannello(pan);\n\n /* pannello coperti */\n PanCoperti panCoperti = new PanCoperti();\n this.setPanCoperti(panCoperti);\n this.addPannello(panCoperti);\n\n\n /* pannello placeholder per il Navigatore risultati */\n /* il navigatore vi viene inserito in fase di inizializzazione */\n pan = new PannelloFlusso(Layout.ORIENTAMENTO_ORIZZONTALE);\n this.setPanNavigatore(pan);\n this.addPannello(pan);\n\n\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n } // fine del blocco try-catch\n\n }", "private JPanel makeControlPanel() {\n\n final JPanel panel = new JPanel(new FlowLayout(3));\n final JButton refreshButton = new JButton(new ImageIcon(iconMaker(\"refreshREAL.png\")));\n refreshButton.setFocusPainted(false);\n refreshButton.addActionListener(this::refreshButtonClicked);\n refreshButton.setToolTipText(\"Refresh Item Price(s)\");\n //checkButton.setPreferredSize(new Dimension(25,25));\n JButton viewLink = new JButton(new ImageIcon(iconMaker(\"visitSite.png\")));\n viewLink.setToolTipText(\"Visit Item Website\");\n JButton deleteItem = new JButton(new ImageIcon(iconMaker(\"delete.png\")));\n deleteItem.setToolTipText(\"Remove Item\");\n JButton addItem = buttonMaker(\"additem.png\");\n addItem.setToolTipText(\"Add Item to Price Watcher\");\n JButton editItem = buttonMaker(\"edititem.png\");\n editItem.setToolTipText(\"Edit Item Details\");\n\n\n viewLink.setFocusPainted(false);\n deleteItem.setFocusPainted(false);\n\n viewLink.addActionListener(this::viewPageClicked);\n panel.add(refreshButton);\n panel.add(viewLink);\n panel.add(deleteItem);\n panel.add(addItem);\n panel.add(editItem);\n\n return panel;\n }", "@Override\r\n\t\tpublic void onClick(ClickEvent event) {\n\t\t\tdropdown.clear();\r\n\t\t\tRootPanel.get(\"details\").clear();\r\n\t\t\tSpielplanErstellenForm erstellen = new SpielplanErstellenForm();\r\n\r\n\t\t\tRootPanel.get(\"details\").add(erstellen);\r\n\t\t}", "public PanelMethodSEDN(){}", "public AdminProfile_panel() {\n initComponents();\n \n }", "public Donation() {\n initComponents();\n }", "private void buildAmountPanel2() // buildAmountPanel2 method start\n\t\t{\n\t\t\t// creating panel objects\n\t\t\tamountLabel2 = new JLabel(\"Amount: $\");\n\t\t\tamountField2 = new JTextField(\"0.00\", 10);\n\t\t\tamountField2.setEditable(false);\n\n\t\t\t// adding objects to panel\n\t\t\tamountPanel2.add(amountLabel2);\n\t\t\tamountPanel2.add(amountField2);\n\t\t}", "private void buildAmountPanel2() // buildAmountPanel2 method start\n\t\t{\n\t\t\t// creating panel objects\n\t\t\tamountLabel2 = new JLabel(\"Amount: $\");\n\t\t\tamountField2 = new JTextField(\"0.00\", 10);\n\t\t\tamountField2.setEditable(false);\n\n\t\t\t// adding objects to panel\n\t\t\tamountPanel2.add(amountLabel2);\n\t\t\tamountPanel2.add(amountField2);\n\t\t}", "public MaintenancePanel(Frame fr, MaintenanceController mc) {\n\t\tsuper(fr, TITLE, false);\n\n\t\tmctrl = mc;\n\n\t\t// north part\n\t\tLabel lb = new Label(TITLE);\n\t\tlb.setFont(new Font(\"Helvetica\", Font.BOLD, 24));\n\t\tPanel tp1 = new Panel();\n\t\ttp1.add(lb);\n\n\t\tPanel tpn = new Panel();\n\t\ttpn.setLayout(new GridLayout(0, 1));\n\n\t\tpassword = new LabelledDisplay(\"Password:\", 30, LabelledDisplay.FLOW);\n\t\tPasswordListener pl = new PasswordListener(mc.getAccessManager());\n\t\tpassword.addListener(pl);\n\n\t\tPanel tp3 = new Panel();\n\t\tvalidPswd = new WarningDisplay(\"Valid Password\");\n\t\tinvalidPswd = new WarningDisplay(\"Invalid Password\");\n\t\ttp3.add(validPswd);\n\t\ttp3.add(invalidPswd);\n\t\ttpn.add(tp1);\n\t\ttpn.add(password);\n\t\ttpn.add(tp3);\n\n\t\t// center part\n\t\tPanel tpc = new Panel();\n\t\ttpc.setLayout(new GridLayout(0, 1));\n\n\t\tcDisplay = new CoinDisplay(mctrl);\n\t\tdDisplay = new ItemDisplay(mctrl, Store.DRINK);\n\t\tsDisplay = new ItemDisplay(mctrl, Store.SNACK);\n\n\t\tPanel tp5 = new Panel();\n\t\ttp5.setLayout(new GridLayout(0, 1));\n\n\t\ttotalCash = new ButtonItem(\"Show Total Cash Held\", 5, ButtonItem.FLOW);\n\t\tTotalCashButtonListener tl;\n\n\t\ttl = new TotalCashButtonListener(mctrl);\n\t\ttotalCash.addListener(tl);\n\n\t\ttransferCash = new Button(\"Press to Collect All Cash\");\n\t\ttransferCash.addActionListener(new TransferCashButtonListener(mctrl));\n\n\t\tPanel tp6 = new Panel();\n\t\ttp6.setLayout(new FlowLayout());\n\t\ttp6.add(transferCash);\n\n\t\tcollectCash =\n\t\t\tnew LabelledDisplay(\"Collect Cash:\", 5, LabelledDisplay.FLOW);\n\t\texitBtn = new Button(\"Press Here when Finished\");\n\t\texitBtn.addActionListener(new ExitButtonListener(mctrl));\n\n\t\ttp5.add(totalCash);\n\t\ttp5.add(tp6);\n\t\ttp5.add(collectCash);\n\t\ttp5.add(exitBtn);\n\t\ttpc.setLayout(new BorderLayout());\n\t\tPanel pp = new Panel();\n\t\tpp.setLayout(new GridLayout(1, 2));\n\t\tpp.add(cDisplay);\n\t\tif (!dDisplay.isEmpty())\n\t\t\tpp.add(dDisplay);\n\t\tif (!sDisplay.isEmpty())\n\t\t\tpp.add(sDisplay);\n\t\ttpc.add(\"Center\", pp);\n\t\ttpc.add(\"South\", tp5);\n\n\t\tthis.setLayout(new BorderLayout());\n\t\tthis.add(\"North\", tpn);\n\t\tthis.add(\"Center\", tpc);\n\n\t\tpack();\n\t\tframeWidth=this.getWidth();\n frameHeight=this.getHeight();\n frameX=(screenWidth-frameWidth);\n frameY=0;\n setBounds(frameX,frameY,frameWidth, frameHeight);\n\t}", "public void createPartyPanel()\n {\n setPartyLabel(game.getPartyPane(), 0);\n //setPartyLabel(\"EMPTY\", 1);\n //setPartyLabel(\"EMPTY\", 2);\n //setPartyLabel(\"EMPTY\", 3);\n reloadPartyPanel();\n }", "public JPanel getJPanelDatosIdentificacion()\r\n {\r\n if (jPanelIdentificacion == null)\r\n { \r\n \tjPanelIdentificacion = new JPanel(new GridBagLayout());\r\n jPanelIdentificacion.setBorder(BorderFactory.createTitledBorder\r\n (null, I18N.get(\"LocalGISEIEL\", \"localgiseiel.panels.identity\"), TitledBorder.LEADING, TitledBorder.TOP, new Font(null, Font.BOLD, 12))); \r\n \t\r\n jLabelClave = new JLabel(\"\", JLabel.CENTER); \r\n jLabelClave.setText(UtilRegistroExp.getLabelConAsterisco(I18N.get(\"LocalGISEIEL\", \"localgiseiel.panels.label.clave\"))); \r\n \r\n jLabelCodProv = new JLabel(\"\", JLabel.CENTER); \r\n jLabelCodProv.setText(UtilRegistroExp.getLabelConAsterisco(I18N.get(\"LocalGISEIEL\", \"localgiseiel.panels.label.codprov\"))); \r\n \r\n jLabelCodMunic = new JLabel(\"\", JLabel.CENTER); \r\n jLabelCodMunic.setText(UtilRegistroExp.getLabelConAsterisco(I18N.get(\"LocalGISEIEL\", \"localgiseiel.panels.label.codmunic\"))); \r\n\r\n jLabelEntSing = new JLabel(\"\", JLabel.CENTER);\r\n jLabelEntSing.setText(UtilRegistroExp.getLabelConAsterisco(I18N.get(\"LocalGISEIEL\", \"localgiseiel.panels.label.entsing\")));\r\n \r\n jLabelNucleo = new JLabel(\"\", JLabel.CENTER);\r\n jLabelNucleo.setText(UtilRegistroExp.getLabelConAsterisco(I18N.get(\"LocalGISEIEL\", \"localgiseiel.panels.label.nucleo\")));\r\n \r\n jLabelOrden = new JLabel(\"\", JLabel.CENTER);\r\n jLabelOrden.setText(UtilRegistroExp.getLabelConAsterisco(I18N.get(\"LocalGISEIEL\", \"localgiseiel.panels.label.orden\")));\r\n \r\n \r\n jPanelIdentificacion.add(jLabelCodProv, \r\n new GridBagConstraints(0, 0, 1, 1, 0.1, 0.1,\r\n GridBagConstraints.CENTER, GridBagConstraints.HORIZONTAL,\r\n new Insets(5, 5, 5, 5), 0, 0)); \r\n \r\n jPanelIdentificacion.add(getJComboBoxProvincia(), \r\n new GridBagConstraints(1, 0, 1, 1, 0.1, 0.1,\r\n GridBagConstraints.CENTER, GridBagConstraints.HORIZONTAL,\r\n new Insets(5, 5, 5, 5), 0, 0));\r\n \r\n jPanelIdentificacion.add(jLabelCodMunic, \r\n new GridBagConstraints(2, 0, 1, 1, 0.1, 0.1,\r\n GridBagConstraints.CENTER, GridBagConstraints.HORIZONTAL,\r\n new Insets(5, 5, 5, 5), 0, 0)); \r\n \r\n jPanelIdentificacion.add(getJComboBoxMunicipio(), \r\n new GridBagConstraints(3, 0, 1, 1, 0.1, 0.1,\r\n GridBagConstraints.CENTER, GridBagConstraints.HORIZONTAL,\r\n new Insets(5, 5, 5, 5), 0, 0));\r\n \r\n jPanelIdentificacion.add(jLabelEntSing, \r\n new GridBagConstraints(0, 1, 1, 1, 0.1, 0.1,\r\n GridBagConstraints.CENTER, GridBagConstraints.HORIZONTAL,\r\n new Insets(5, 5, 5, 5), 0, 0));\r\n \r\n \r\n jPanelIdentificacion.add(getJComboBoxEntidad(), \r\n new GridBagConstraints(1, 1, 1, 1, 0.1, 0.1,\r\n GridBagConstraints.CENTER, GridBagConstraints.HORIZONTAL,\r\n new Insets(5, 5, 5, 5), 0, 0));\r\n \r\n jPanelIdentificacion.add(jLabelNucleo, \r\n new GridBagConstraints(2, 1, 1, 1, 0.1, 0.1,\r\n GridBagConstraints.CENTER, GridBagConstraints.HORIZONTAL,\r\n new Insets(5, 5, 5, 5), 0, 0));\r\n \r\n \r\n jPanelIdentificacion.add(getJComboBoxNucleo(), \r\n new GridBagConstraints(3, 1, 1, 1, 0.1, 0.1,\r\n GridBagConstraints.CENTER, GridBagConstraints.HORIZONTAL,\r\n new Insets(5, 5, 5, 5), 0, 0));\r\n \r\n jPanelIdentificacion.add(jLabelClave,\r\n new GridBagConstraints(0, 2, 1, 1, 0.1, 0.1,\r\n GridBagConstraints.CENTER, GridBagConstraints.HORIZONTAL,\r\n new Insets(5, 5, 5, 5), 0, 0));\r\n \r\n jPanelIdentificacion.add(getjTextFieldClave(), \r\n new GridBagConstraints(1, 2, 1, 1, 0.1, 0.1,\r\n GridBagConstraints.CENTER, GridBagConstraints.HORIZONTAL,\r\n new Insets(5, 5, 5, 5), 0, 0));\r\n \r\n jPanelIdentificacion.add(jLabelOrden,\r\n new GridBagConstraints(2, 2, 1, 1, 0.1, 0.1,\r\n GridBagConstraints.CENTER, GridBagConstraints.HORIZONTAL,\r\n new Insets(5, 5, 5, 5), 0, 0));\r\n \r\n jPanelIdentificacion.add(getJTextFieldOrden(), \r\n new GridBagConstraints(3, 2, 1, 1, 0.1, 0.1,\r\n GridBagConstraints.CENTER, GridBagConstraints.HORIZONTAL,\r\n new Insets(5, 5, 5, 5), 0, 0));\r\n \r\n for (int i=0; i < jPanelIdentificacion.getComponentCount(); i++){\r\n \tjPanelIdentificacion.getComponent(i).setEnabled(false);\r\n }\r\n \r\n \r\n }\r\n return jPanelIdentificacion;\r\n }", "public ManageSupplier() {\n initComponents();\n }", "public NewJFrame() {\n initComponents();\n \n \n //combo box\n comboCompet.addItem(\"Séléction officielle\");\n comboCompet.addItem(\"Un certain regard\");\n comboCompet.addItem(\"Cannes Courts métrages\");\n comboCompet.addItem(\"Hors compétitions\");\n comboCompet.addItem(\"Cannes Classics\");\n \n \n //redimension\n this.setResizable(false);\n \n planning = new Planning();\n \n \n }", "public PanelAdministrarMarcas() {\n initComponents();\n cargarTabla();\n }", "public DndFrame() {\n initComponents();\n try {\n conn = DriverManager.getConnection(\"jdbc:mysql://localhost:3306/dnd\", \"root\", \"1234\");\n } catch (SQLException ex) {\n JOptionPane.showMessageDialog(rootPane, \"A kapcsolodás az adatbázishoz nem sikerült, emiatt a program kilép.\", \"Adatbázis hiba!\", JOptionPane.ERROR_MESSAGE);\n System.exit(1);\n }\n \n campaignPanel = new CampaignPanel();\n characterPanel = new CharacterPanel();\n diceThrowPanel = new DiceThrowPanel();\n this.add(campaignPanel);\n this.add(characterPanel);\n this.add(diceThrowPanel);\n }", "public ViewCostumeManagerPanel(JPanel card,Movie movie,Employee employee,Enterprise enterprise) {\n initComponents();\n this.card=card;\n this.movie=movie;\n this.employee=employee;\n this.enterprise=enterprise;\n displayCostumeManagerInfo();\n }", "Dashboard createDashboard();", "@DISPID(1611005968) //= 0x60060010. The runtime will prefer the VTID if present\n @VTID(44)\n void newWithPanel(\n boolean oNewPartPanelDisplayed);", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jPanel1 = new javax.swing.JPanel();\n jPanel2 = new javax.swing.JPanel();\n btnSave = new javax.swing.JButton();\n btnCancel = new javax.swing.JButton();\n jPanel3 = new javax.swing.JPanel();\n jLabel1 = new javax.swing.JLabel();\n txtNationalityID = new javax.swing.JTextField();\n jLabel2 = new javax.swing.JLabel();\n txtNationaltyName = new javax.swing.JTextField();\n jScrollPane1 = new javax.swing.JScrollPane();\n txtNote = new javax.swing.JTextArea();\n jLabel3 = new javax.swing.JLabel();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n setTitle(\"New Nationality\");\n setResizable(false);\n\n jPanel2.setBorder(javax.swing.BorderFactory.createEtchedBorder());\n jPanel2.setLayout(new javax.swing.BoxLayout(jPanel2, javax.swing.BoxLayout.LINE_AXIS));\n\n btnSave.setFont(new java.awt.Font(\"Saysettha OT\", 0, 12)); // NOI18N\n btnSave.setText(\"ບັນທຶກ\");\n jPanel2.add(btnSave);\n\n btnCancel.setFont(new java.awt.Font(\"Saysettha OT\", 0, 12)); // NOI18N\n btnCancel.setText(\"ຍົກເລີກ\");\n jPanel2.add(btnCancel);\n\n jPanel3.setBorder(javax.swing.BorderFactory.createEtchedBorder());\n\n jLabel1.setFont(new java.awt.Font(\"Saysettha OT\", 0, 12)); // NOI18N\n jLabel1.setText(\"ລະຫັດ\");\n\n txtNationalityID.setFont(new java.awt.Font(\"Saysettha OT\", 0, 12)); // NOI18N\n txtNationalityID.setText(\"New\");\n txtNationalityID.setEnabled(false);\n\n jLabel2.setFont(new java.awt.Font(\"Saysettha OT\", 0, 12)); // NOI18N\n jLabel2.setText(\"ສັນຊາດ\");\n\n txtNationaltyName.setFont(new java.awt.Font(\"Saysettha OT\", 0, 12)); // NOI18N\n\n txtNote.setColumns(20);\n txtNote.setRows(5);\n jScrollPane1.setViewportView(txtNote);\n\n jLabel3.setFont(new java.awt.Font(\"Saysettha OT\", 0, 12)); // NOI18N\n jLabel3.setText(\"ໝາຍເຫດ\");\n\n javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);\n jPanel3.setLayout(jPanel3Layout);\n jPanel3Layout.setHorizontalGroup(\n jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel3Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel3Layout.createSequentialGroup()\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 63, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(jPanel3Layout.createSequentialGroup()\n .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 63, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(txtNationalityID, javax.swing.GroupLayout.PREFERRED_SIZE, 96, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGap(20, 20, 20))\n .addGroup(jPanel3Layout.createSequentialGroup()\n .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 63, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 283, Short.MAX_VALUE)\n .addComponent(txtNationaltyName))\n .addContainerGap())))\n );\n jPanel3Layout.setVerticalGroup(\n jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel3Layout.createSequentialGroup()\n .addGap(10, 10, 10)\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel1)\n .addComponent(txtNationalityID, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(2, 2, 2)\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel2)\n .addComponent(txtNationaltyName, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(2, 2, 2)\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addGroup(jPanel3Layout.createSequentialGroup()\n .addComponent(jLabel3)\n .addGap(100, 100, 100))\n .addGroup(jPanel3Layout.createSequentialGroup()\n .addComponent(jScrollPane1)\n .addGap(20, 20, 20))))\n );\n\n jPanel3Layout.linkSize(javax.swing.SwingConstants.VERTICAL, new java.awt.Component[] {jLabel1, jLabel2, txtNationalityID, txtNationaltyName});\n\n javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);\n jPanel1.setLayout(jPanel1Layout);\n jPanel1Layout.setHorizontalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(10, 10, 10)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jPanel3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGap(10, 10, 10))\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(10, 10, 10)\n .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(2, 2, 2)\n .addComponent(jPanel3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addContainerGap())\n );\n\n getContentPane().add(jPanel1, java.awt.BorderLayout.CENTER);\n\n pack();\n setLocationRelativeTo(null);\n }" ]
[ "0.5822289", "0.58144104", "0.58003676", "0.577574", "0.5771208", "0.5719918", "0.5700512", "0.5687178", "0.5626159", "0.5625277", "0.5606719", "0.5546302", "0.54961586", "0.5493893", "0.548978", "0.5488955", "0.5483526", "0.5475228", "0.54040927", "0.5375532", "0.5365325", "0.5342818", "0.5341269", "0.5341269", "0.5341211", "0.5339801", "0.53295416", "0.5329146", "0.53278905", "0.53174937", "0.5316561", "0.53072155", "0.5299771", "0.52935195", "0.5280714", "0.52594584", "0.5258177", "0.5252692", "0.52521867", "0.5240537", "0.52387935", "0.52371454", "0.52371454", "0.52277136", "0.5226442", "0.5222782", "0.52193195", "0.5216345", "0.5210031", "0.52070695", "0.5206403", "0.5206207", "0.52058494", "0.5203648", "0.5203237", "0.51992804", "0.5196836", "0.5177977", "0.517416", "0.51726604", "0.5171182", "0.5161205", "0.51579607", "0.5151564", "0.51474816", "0.5146295", "0.51390666", "0.5138611", "0.51380193", "0.51363283", "0.5124468", "0.512408", "0.512135", "0.5112244", "0.5111593", "0.510411", "0.5103664", "0.5103199", "0.5102115", "0.5098901", "0.5091685", "0.5085207", "0.50843537", "0.50737095", "0.50728047", "0.50673664", "0.50578356", "0.5053626", "0.5053626", "0.5052249", "0.5048506", "0.50458914", "0.50455135", "0.50439596", "0.5043717", "0.5042303", "0.5040964", "0.5037536", "0.5036891", "0.50305223" ]
0.67601156
0
Method name: initDatas Description: Put The Discount Datas Into The Table Remark: void
private void initDatas(){ jTable1.setModel(ViewUtil.transferBeanList2DefaultTableModel(discountService.getAllDiscountInfo(),"Discount")); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void initData() {\n\t}", "private void initData() {\n }", "public void initData() {\n }", "public void initData() {\n }", "private void initData() {\n\n }", "private void InitData() {\n\t}", "private void initData(){\n\n }", "private void initDataset(){\n dataSet.add(\"Karin\");\n dataSet.add(\"Ingrid\");\n dataSet.add(\"Helga\");\n dataSet.add(\"Renate\");\n dataSet.add(\"Elke\");\n dataSet.add(\"Ursula\");\n dataSet.add(\"Erika\");\n dataSet.add(\"Christa\");\n dataSet.add(\"Gisela\");\n dataSet.add(\"Monika\");\n\n addDataSet.add(\"Anna\");\n addDataSet.add(\"Sofia\");\n addDataSet.add(\"Emilia\");\n addDataSet.add(\"Emma\");\n addDataSet.add(\"Neele\");\n addDataSet.add(\"Franziska\");\n addDataSet.add(\"Heike\");\n addDataSet.add(\"Katrin\");\n addDataSet.add(\"Katharina\");\n addDataSet.add(\"Liselotte\");\n }", "void initData() {\r\n\t\tthis.daVinci = new Artist(\"da Vinci\");\r\n\t\tthis.mona = new Painting(daVinci, \"Mona Lisa\");\r\n\t\t//this.lastSupper = new Painting(this.daVinci, \"Last Supper\");\r\n\t}", "public void initializeData() {\n _currentDataAll = _purityReportData.getAll();\n }", "@Override\n\tpublic void initData() {\n\n\n\n\t}", "public Data() {\n initComponents();\n koneksi_db();\n tampil_data();\n }", "public void initData(){\r\n \r\n }", "public void InitData() {\n }", "private void initData() {\n\t\tnamesInfo = new NameSurferDataBase(fileName);\n\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private void fillData() {\n table.setRowList(data);\n }", "@Override\n\tpublic void initData() {\n\n\t}", "@Override\n\tpublic void initData() {\n\n\t}", "@Override\n\tpublic void initData() {\n\n\t}", "private void initDataset() {\r\n CollGestDBHelper collGestDBHelper = new CollGestDBHelper(activityContext);\r\n List<CollGestItem> listAllItems = collGestDBHelper.getAllGestItem();\r\n\r\n mDataset = new String[listAllItems.size()][7];\r\n System.out.println(\"+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +++++++++++++++++++++++++++++++++++++++++++++++++++++++++\");\r\n System.out.println(listAllItems.size());\r\n System.out.println(listAllItems.toString());\r\n System.out.println(\"+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +++++++++++++++++++++++++++++++++++++++++++++++++++++++++\");\r\n for (int i = 0; i < listAllItems.size(); i++) {\r\n mDataset[i][0] = listAllItems.get(i).getItemName();\r\n mDataset[i][1] = Integer.toString(listAllItems.get(i).getItemMinJoueurs());\r\n mDataset[i][2] = Integer.toString(listAllItems.get(i).getItemMaxJoueurs());\r\n mDataset[i][3] = Integer.toString(listAllItems.get(i).getItemDuration());\r\n mDataset[i][4] = listAllItems.get(i).getItemTypes();\r\n mDataset[i][5] = listAllItems.get(i).getItemCheckedOut();\r\n mDataset[i][6] = listAllItems.get(i).getItemLastPlayed();\r\n }\r\n System.out.println(mDataset);\r\n }", "private void initializeData() {\n String[] storeTitles = getResources().getStringArray(R.array.store_titles);\n String[] storeDescriptions = getResources().getStringArray(R.array.store_descriptions);\n TypedArray storeImages = getResources().obtainTypedArray(R.array.stores_images);\n\n //Clear existing data to avoid duplication\n storeData.clear();\n\n //Create an array list of dessert recipes with title, description and images\n for(int i = 0; i < storeTitles.length; i++){\n storeData.add(new Store(storeImages.getResourceId(i,0), storeTitles[i],storeDescriptions[i]));\n }\n\n //Clear up data in the typed array\n storeImages.recycle();\n\n //Notify the adapter of the change in the data set\n storeAdapter.notifyDataSetChanged();\n }", "void initData(){\n }", "protected @Override\r\n abstract void initData();", "@Override\r\n\tpublic void initData() {\n\t}", "public void initData() {\n\t\tnotes = new ArrayList<>();\n\t\t//place to read notes e.g from file\n\t}", "@Override\n\tpublic void initData() {\n\t\t\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "private void initData() {\n\t\tSetTopBarTitle(getString(R.string.os_jsh_wdj_add_ldss));\r\n\t\tregFliter();\r\n\t}", "private void initData() {\n\t\tcomboBoxInit();\n\t\tinitList();\n\t}", "public void init(){\n List<Order> orders=DA.getAll();\n ordersList.setPageFactory((Integer pageIndex)->pageController.createPage(pageIndex));\n ordersList.setPageCount(orders.size()/10);\n pageController.setOrders(orders);\n //dataController=new DataController(DA);\n dataController.setDA(DA);\n dataController.setDataBox(data);\n dataController.setInfoList(DA.getData());\n dataController.initBarChart();\n\n }", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "private void initializeData() {\n ListaOfertas.removeAll(ListaOfertas);\n for(Articulo listaJuegos: ArticuloRepository.getListArticulo()){\n if(listaJuegos.getOferta().contains(\"S\")){\n listaJuegos.setValorDescuento(String.valueOf(listaJuegos.getPrecioArticulo()-(listaJuegos.getPrecioArticulo()*listaJuegos.getPorcentajeDescuento()/100)));\n ListaOfertas.add(listaJuegos);\n }\n\n }\n }", "private void initData() {\n Author steinbeck = new Author(\"John\", \"Steinbeck\");\n Publisher p1 = new Publisher(\"Covici Friede\", \"111 Main Street\", \"Santa Cruz\", \"CA\", \"95034\");\n Book omam = new Book(\"Of Mice And Men\", \"11234\", p1);\n \n publisherRepository.save(p1);\n\n steinbeck.getBooks().add(omam);\n omam.getAuthors().add(steinbeck);\n authorRepository.save(steinbeck);\n bookRepository.save(omam);\n\n // Create Crime & Punishment\n Author a2 = new Author(\"Fyodor\", \"Dostoevsky\");\n Publisher p2 = new Publisher( \"The Russian Messenger\", \"303 Stazysky Rao\", \"Rustovia\", \"OAL\", \"00933434-3943\");\n Book b2 = new Book(\"Crime and Punishment\", \"22334\", p2);\n a2.getBooks().add(b2);\n b2.getAuthors().add(a2);\n\n publisherRepository.save(p2);\n authorRepository.save(a2);\n bookRepository.save(b2);\n }", "@Override\n\tprotected void initdata() {\n\n\t}", "public void init() {\n for (int i = 1; i <= 20; i++) {\n List<Data> dataList = new ArrayList<Data>();\n if (i % 2 == 0 || (1 + i % 10) == _siteIndex) {\n dataList.add(new Data(i, 10 * i));\n _dataMap.put(i, dataList);\n }\n }\n }", "@Override\n\tprotected void initData(){\n\t\tsuper.initData();\n\t}", "@Override\n\tpublic void initData() {\n\n\t\tsuper.initData();\n\t\tinitLsitData();\n\n\t\tviewpager.setAdapter(new MyPagerAdapter());\n\t\tindicator.setViewPager(viewpager);\n\n\t}", "@SuppressWarnings(\"static-access\")\n\tprivate void initData() {\n\t\tstartDate = startDate.now();\n\t\tendDate = endDate.now();\n\t}", "private void fillData()\n {\n\n }", "public void initData() {\n nameDetailOrder.setText(\"-\");\n tourDetailOrder.setText(\"-\");\n packDetailOrder.setText(\"-\");\n statusDetailOrder.setText(\"-\");\n }", "public void InitData() {\n this.mItemTitleIds = new int[]{R.string.can_rvs_camera, R.string.can_ccaqyxfz};\n this.mItemTypes = new CanScrollCarInfoView.Item[]{CanScrollCarInfoView.Item.POP, CanScrollCarInfoView.Item.SWITCH};\n this.mPopValueIds[0] = new int[]{R.string.can_hjyxfzxt, R.string.can_dccsyxfzxt};\n this.mCarData = new CanDataInfo.LuxgenOd_SetData();\n }", "@Override\n protected void initData() {\n }", "@Override\n protected void initData() {\n }", "@Override\n public void initData() {\n customerResponses = distributorController.getAllDistributorResponseObject();\n Object[] obj = new Object[]{\"STT\", \"Mã Nhà phân phối\", \"Tên nhà phân phối\", \"Địa chỉ\", \"Số điện thoại\", \"Email\", \"Ghi chú\"};\n tableModel = new DefaultTableModel(obj, 0);\n tableRowSorter = new TableRowSorter<>(tableModel);\n tblDistribute.setModel(tableModel);\n tblDistribute.setRowSorter(tableRowSorter);\n count = 0;\n tableModel.setRowCount(0);\n try {\n customerResponses.forEach((Object[] item) -> {\n item[0] = ++count;\n tableModel.addRow(item);\n\n });\n } catch (Exception exception) {\n log.error(\"Can't add row to table model \");\n exception.printStackTrace();\n\n }\n setButtonsEnable(btnUpdate, false, btnAdd, true, btnEdit, false, btnDelete, false, btnCancel, true);\n }", "abstract void initializeNeededData();", "public void InitData() {\n this.mItemTitleIds = new int[]{R.string.can_volvo_cysjysz, R.string.can_volvo_zdsm, R.string.can_door_unlock, R.string.can_volvo_zdhsj, R.string.can_volvo_qxzchsj, R.string.can_volvo_qxychsj, R.string.can_volvo_fxplsz, R.string.can_volvo_dstc, R.string.can_volvo_csaq, R.string.can_volvo_hfqcsz};\n this.mItemTypes = new CanScrollCarInfoView.Item[]{CanScrollCarInfoView.Item.SWITCH, CanScrollCarInfoView.Item.SWITCH, CanScrollCarInfoView.Item.POP, CanScrollCarInfoView.Item.SWITCH, CanScrollCarInfoView.Item.SWITCH, CanScrollCarInfoView.Item.SWITCH, CanScrollCarInfoView.Item.POP, CanScrollCarInfoView.Item.SWITCH, CanScrollCarInfoView.Item.SWITCH, CanScrollCarInfoView.Item.TITLE};\n this.mPopValueIds[2] = new int[]{R.string.can_door_unlock_key2, R.string.can_door_unlock_key1};\n this.mPopValueIds[6] = new int[]{R.string.can_ac_low, R.string.can_ac_mid, R.string.can_ac_high};\n this.mSetData = new CanDataInfo.VolvoXc60_CarSet();\n }", "private void initdata() {\n\t\tProgressDialogUtil.showProgressDlg(this, \"加载数据\");\n\t\tProdDetailRequest req = new ProdDetailRequest();\n\t\treq.id = prodInfo.id+\"\";\n\t\tRequestParams params = new RequestParams();\n\t\ttry {\n\t\t\tparams.setBodyEntity(new StringEntity(req.toJson()));\n\t\t} catch (UnsupportedEncodingException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tnew HttpUtils().send(HttpMethod.POST, Api.GETGOODSDETAIL, params, new RequestCallBack<String>() {\n\t\t\t@Override\n\t\t\tpublic void onFailure(HttpException arg0, String arg1) {\n\t\t\t\tProgressDialogUtil.dismissProgressDlg();\n\t\t\t\tT.showNetworkError(CommodityInfosActivity.this);\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void onSuccess(ResponseInfo<String> resp) {\n\t\t\t\tProgressDialogUtil.dismissProgressDlg();\n\t\t\t\tProdDetailResponse bean = new Gson().fromJson(resp.result, ProdDetailResponse.class);\n\t\t\t\tLog.e(\"\", \"\"+resp.result);\n\t\t\t\tif(Api.SUCCEED == bean.result_code && bean.data != null) {\n\t\t\t\t\tupview(bean.data);\n\t\t\t\t\tdatas = bean.data;\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}", "@SuppressWarnings(\"unchecked\")\n\tprivate void initDatas() {\n\t\tisCharacterChecked = CustomApplication.app.preferencesUtil\n\t\t\t\t.getValuesBoolean(\"isCharacterChecked\");\n\t\tisSentenceChecked = CustomApplication.app.preferencesUtil\n\t\t\t\t.getValuesBoolean(\"isSentenceChecked\");\n\t\tisWordChecked = CustomApplication.app.preferencesUtil\n\t\t\t\t.getValuesBoolean(\"isWordChecked\");\n\t\tisAutoPlay = CustomApplication.app.preferencesUtil\n\t\t\t\t.getValuesBoolean(\"isAutoPlay\");\n\t\ttry {\n\t\t\ttbMyCharacterList = (ArrayList<TbMyCharacter>) MyDao.getDaoMy(\n\t\t\t\t\tTbMyCharacter.class).queryForAll();\n\n\t\t\ttbMyWordList = (ArrayList<TbMyWord>) MyDao.getDaoMy(TbMyWord.class)\n\t\t\t\t\t.queryForAll();\n\n\t\t\ttbMySentenceList = (ArrayList<TbMySentence>) MyDao.getDaoMy(\n\t\t\t\t\tTbMySentence.class).queryForAll();\n\n\t\t\tcharacterCount = tbMyCharacterList.size();\n\t\t\twordsCount = tbMyWordList.size();\n\t\t\tsentenceCount = tbMySentenceList.size();\n\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\tif (isCharacterChecked) {\n\t\t\tfor (int i = 0; i < tbMyCharacterList.size(); i++) {\n\n\t\t\t\tTbMyCharacter model = tbMyCharacterList.get(i);\n\t\t\t\tif (model == null) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tLGModelFlashCard lGModelFlashCard = new LGModelFlashCard();\n\t\t\t\tint id = model.getCharId();\n\t\t\t\tlGModelFlashCard.setMyCharacter(model);\n\t\t\t\tlGModelFlashCard.setMySentence(null);\n\t\t\t\tlGModelFlashCard.setMyWord(null);\n\n\t\t\t\ttry {\n\t\t\t\t\t@SuppressWarnings(\"unchecked\")\n\t\t\t\t\tLGCharacter character = (LGCharacter) MyDao.getDao(\n\t\t\t\t\t\t\tLGCharacter.class).queryForId(id);\n\n\t\t\t\t\tif (character == null) {\n\t\t\t\t\t\tLog.e(TAG, \"character==null\");\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\tString chinese = character.getCharacter();\n\t\t\t\t\tString pinyin = character.getPinyin();\n\t\t\t\t\tString english = character.getTranslation();\n\t\t\t\t\tString dirCode = character.getDirCode();\n\t\t\t\t\tString voicePath = \"c-\" + id + \"-\" + dirCode + \".mp3\";\n\n\t\t\t\t\tlGModelFlashCard.setId(id);\n\t\t\t\t\tlGModelFlashCard.setChinese(chinese);\n\t\t\t\t\tlGModelFlashCard.setPinyin(pinyin);\n\t\t\t\t\tlGModelFlashCard.setEnglish(english);\n\t\t\t\t\tlGModelFlashCard.setVoicePath(voicePath);\n\n\t\t\t\t\tdatas.add(lGModelFlashCard);\n\n\t\t\t\t} catch (SQLException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\n\t\t\t}\n\t\t}\n\n\t\tif (isSentenceChecked) {\n\t\t\tfor (int i = 0; i < tbMySentenceList.size(); i++) {\n\n\t\t\t\tTbMySentence model = tbMySentenceList.get(i);\n\t\t\t\tif (model == null) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tLGModelFlashCard lGModelFlashCard = new LGModelFlashCard();\n\t\t\t\tint id = model.getSentenceId();\n\t\t\t\tlGModelFlashCard.setMySentence(model);\n\t\t\t\tlGModelFlashCard.setMyCharacter(null);\n\t\t\t\tlGModelFlashCard.setMyWord(null);\n\n\t\t\t\ttry {\n\t\t\t\t\t@SuppressWarnings(\"unchecked\")\n\t\t\t\t\tLGSentence sentence = (LGSentence) MyDao.getDao(\n\t\t\t\t\t\t\tLGSentence.class).queryForId(id);\n\n\t\t\t\t\tif (sentence == null) {\n\t\t\t\t\t\tLog.e(TAG, \"sentence==null\");\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\tString chinese = sentence.getSentence();\n\t\t\t\t\tString pinyin = \"\";\n\t\t\t\t\tString english = sentence.getTranslations();\n\t\t\t\t\tString dirCode = sentence.getDirCode();\n\t\t\t\t\tString voicePath = \"s-\" + id + \"-\" + dirCode + \".mp3\";\n\n\t\t\t\t\tlGModelFlashCard.setId(id);\n\t\t\t\t\tlGModelFlashCard.setChinese(chinese);\n\t\t\t\t\tlGModelFlashCard.setPinyin(pinyin);\n\t\t\t\t\tlGModelFlashCard.setEnglish(english);\n\t\t\t\t\tlGModelFlashCard.setVoicePath(voicePath);\n\n\t\t\t\t\tdatas.add(lGModelFlashCard);\n\n\t\t\t\t} catch (SQLException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\n\t\t\t}\n\t\t}\n\t\tif (isWordChecked) {\n\t\t\tfor (int i = 0; i < tbMyWordList.size(); i++) {\n\n\t\t\t\tTbMyWord model = tbMyWordList.get(i);\n\t\t\t\tif (model == null) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tLGModelFlashCard lGModelFlashCard = new LGModelFlashCard();\n\t\t\t\tint id = model.getWordId();\n\t\t\t\tlGModelFlashCard.setMyWord(model);\n\t\t\t\tlGModelFlashCard.setMySentence(null);\n\t\t\t\tlGModelFlashCard.setMyCharacter(null);\n\t\t\t\ttry {\n\t\t\t\t\t@SuppressWarnings(\"unchecked\")\n\t\t\t\t\tLGWord word = (LGWord) MyDao.getDao(LGWord.class)\n\t\t\t\t\t\t\t.queryForId(id);\n\n\t\t\t\t\tif (word == null) {\n\t\t\t\t\t\tLog.e(TAG, \"sentence==null\");\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\tString chinese = word.getWord();\n\t\t\t\t\tString pinyin = word.getPinyin();\n\t\t\t\t\tString english = word.getTranslations();\n\t\t\t\t\tString dirCode = word.getDirCode();\n\t\t\t\t\tString voicePath = \"w-\" + id + \"-\" + dirCode + \".mp3\";\n\n\t\t\t\t\tlGModelFlashCard.setId(id);\n\t\t\t\t\tlGModelFlashCard.setChinese(chinese);\n\t\t\t\t\tlGModelFlashCard.setPinyin(pinyin);\n\t\t\t\t\tlGModelFlashCard.setEnglish(english);\n\t\t\t\t\tlGModelFlashCard.setVoicePath(voicePath);\n\n\t\t\t\t\tdatas.add(lGModelFlashCard);\n\n\t\t\t\t} catch (SQLException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tchooseCount = 0;\n\t\tif (isCharacterChecked) {\n\t\t\tchooseCount = chooseCount + characterCount;\n\t\t}\n\t\tif (isSentenceChecked) {\n\t\t\tchooseCount = chooseCount + sentenceCount;\n\t\t}\n\t\tif (isWordChecked) {\n\t\t\tchooseCount = chooseCount + wordsCount;\n\t\t}\n\t\tdefaultNumber = chooseCount;\n\t\tif (adapter == null) {\n\t\t\tadapter = new FlashCardOpGalleryAdapter(this, datas, datas.size());\n\t\t}\n\t\tadapter.notifyDataSetChanged();\n\t\tgallery = (FancyCoverFlow) findViewById(R.id.flash_gallery);\n\t\tgallery.setAdapter(adapter);\n\t\tgallery.setOnItemSelectedListener(this);\n\t\tgallery.setAnimationDuration(1500);\n\t\t// gallery.setSpacing(screenWidth / 10 * 1);\n\t\tgallery.setSelection(index);\n\t\tgallery.setFocusable(false);\n\t\tgallery.setGravity(Gravity.CENTER);\n\t\tgallery.setIsTouchMove(false);\n\t\tLinearLayout.LayoutParams param = new LinearLayout.LayoutParams(screenWidth, screenHeight * 6 / 10);\n\t\tgallery.setLayoutParams(param);\n\n\t}", "public void InitData() {\n this.mItemTypes = new CanScrollCarInfoView.Item[]{CanScrollCarInfoView.Item.VALUE, CanScrollCarInfoView.Item.VALUE, CanScrollCarInfoView.Item.VALUE, CanScrollCarInfoView.Item.VALUE, CanScrollCarInfoView.Item.VALUE, CanScrollCarInfoView.Item.VALUE, CanScrollCarInfoView.Item.VALUE, CanScrollCarInfoView.Item.VALUE, CanScrollCarInfoView.Item.VALUE, CanScrollCarInfoView.Item.VALUE, CanScrollCarInfoView.Item.VALUE, CanScrollCarInfoView.Item.VALUE, CanScrollCarInfoView.Item.VALUE};\n this.mItemTitleIds = new int[]{R.string.can_dlxdcgz, R.string.can_gybjd, R.string.can_dczjysxgz, R.string.can_zcbjd, R.string.can_djgzzsd, R.string.can_djxtgr, R.string.can_igbt_wdzt, R.string.can_zkbgz, R.string.can_zbzt, R.string.can_cdszzt, R.string.can_dcdc, R.string.can_dlxdcqd, R.string.can_fzdcdl};\n this.mWarn = new CanDataInfo.DT_V80_BMS_WARN();\n }", "public DataSet(){\r\n\t\tdocs = Lists.newArrayList();\r\n//\t\t_docs = Lists.newArrayList();\r\n\t\t\r\n\t\tnewId2trnId = HashBiMap.create();\r\n\t\t\r\n\t\tM = 0;\r\n\t\tV = 0;\r\n\t}", "public DataSet() {\n this.bars = new ArrayList<Bar>();\n this.reviews = new ArrayList<Review>();\n }", "public void initTable(){\n if(counter == 0){\n getDataSemua();\n }else if(counter == 1){\n getDataMakan();\n }else if(counter == 2){\n getDataMinum();\n }else if(counter == 3){\n getDataPaket();\n }\n id.setCellValueFactory(new PropertyValueFactory<casher, String>(\"Id\"));\n nama.setCellValueFactory(new PropertyValueFactory<casher, String>(\"Nama\"));\n kategori.setCellValueFactory(new PropertyValueFactory<casher, String>(\"Kategori\"));\n harga.setCellValueFactory(new PropertyValueFactory<casher, Integer>(\"Harga\"));\n status.setCellValueFactory(new PropertyValueFactory<casher, String>(\"Status\"));\n tambah.setCellValueFactory(new PropertyValueFactory<casher,Button>(\"Tambah\"));\n\n table.setItems(list);\n\n }", "private void initData() {\n ContractList conl = new ContractList();\n String iCard = txtindentify.getText().trim();\n if (conl.getacc(iCard) == 0) {\n txtAcc.setText(\"NEW CUSTOMER\");\n\n } else {\n Customer cus = new Customer();\n CustomerList cl = new CustomerList();\n cus = cl.getcus(iCard);\n txtAcc.setText(Integer.toString(cus.acc));\n\n }\n }", "@PostConstruct\n public void init() {\n this.facts.addAll(checkExtractor.obtainFactList());\n this.facts.addAll(facebookExtractor.obtainFactList());\n this.facts.addAll(googleExtractor.obtainFactList());\n this.facts.addAll(linkedinExtractor.obtainFactList());\n this.facts.addAll(twitterExtractor.obtainFactList());\n\n this.checkHeader = this.utils.generateDatasetHeader(this.checkExtractor.obtainFactList());\n this.facebookHeader = this.utils.generateDatasetHeader(this.facebookExtractor.obtainFactList());\n this.googleHeader = this.utils.generateDatasetHeader(this.googleExtractor.obtainFactList());\n this.linkedinHeader = this.utils.generateDatasetHeader(this.linkedinExtractor.obtainFactList());\n this.twitterHeader = this.utils.generateDatasetHeader(this.twitterExtractor.obtainFactList());\n }", "private void fillObservationsData() {\n\n // retrieve all oindex records\n// List<Oindex> oindexList = this.servicioApp.getMeasurementOindexListByStudy(workbookStudy.getStudy().getStudyid(), effectid);\n\n Integer studyId = this.workbookStudy.getStudy().getStudyid();\n\n int variateCount = this.workbookStudy.getVariates().size();\n\n List<Measurement> measurementList = new ArrayList<Measurement>();\n //todo quitar no se usa\n// int observationsCount = this.servicioApp.getObservationsCount(studyId);\n log.info(\"Getting Data Trial ...\");\n List<Object> dataList = this.servicioApp.getObservationsDataMeasurementEffect(studyId, effectid);\n log.info(\"Getting Data Trial Done...\");\n \n log.info(\"Getting List of Obsunit ...\");\n List<Obsunit> obsunits = this.servicioApp.getObsunitListByEffectid(studyId, effectid);\n log.info(\"Getting List of Obsunit...\");\n for (Obsunit obsUnit : obsunits){\n Measurement measurement = new Measurement();\n\n measurement.initMeasurementData(variateCount);\n\n assignMeasurementData(measurement, obsUnit, dataList);\n\n measurementList.add(measurement);\n }\n\n\n workbookStudy.setMeasurements(measurementList);\n\n List<String> factorsReturn = getFactoresReturnList();\n log.info(\"Getting Trial Randomization ...\");\n ResultSet rst = servicioApp.getTrialRandomization(studyId, 0, getFactoresKeyList(), factorsReturn, factorTrial.getFname());\n log.info(\"Getting Trial Randomization done\");\n fillFactorLabelData(rst, factorsReturn);\n }", "private void initData() {\n getCourse();\n// getMessage();\n\n }", "private void initializeData() {\n lblItem.setText(product.getName());\n txtReference.setText(product.getTransaction().getReferenceNumber());\n txtItem.setText(product.getName());\n txtDescription.setText(product.getDescription());\n txtBrand.setText(product.getBrand());\n txtModel.setText(product.getModel());\n txtQuantity.setText(String.valueOf(product.getQuantity()));\n txtUnit.setText(product.getUnit());\n txtProductDate.setDate(product.getProduct_date());\n txtOrigPrice.setText(String.valueOf(product.getOriginalPrice()));\n txtAgent.setText(product.getAgent());\n txtContactPerson.setText(product.getContactPerson());\n try { \n txtSupplier.setText(((Supplier)product.getSuppliers().toArray()[0]).getName());\n } catch(ArrayIndexOutOfBoundsException ex) {\n System.out.println(ex.toString());\n }\n }", "@Override\n protected void initData()\n {\n super.initData();\n\n entityProps = getFormSession().getAssemblingMessageEntityProperties();\n\n refreshDataTable(entityProps);\n }", "public void initCommentData() {\n\t\tif (aid <= 0)\n\t\t\treturn;\n\t\tList<AvComment> list = avCommentService.getCommnetList(aid, pageSize,\n\t\t\t\tpageNum);\n\t\tif (list==null||list.size()<=0)\n\t\t\tdataFinish=true;\n\t\ttry {\n\n\t\t\tmainHandler.sendMessage(MessageHelper.obtainCustomMessage(\n\t\t\t\t\tGlobalConstants.MSG_AVCOMMENT_MAIN_INIT_DATA, list));\n\t\t\tthreadHandler.sendMessage(MessageHelper.obtainCustomMessage(\n\t\t\t\t\tGlobalConstants.MSG_AVCOMMENT_THREAD_INIT_COVER, list));\n\t\t} catch (Exception e) {\n\t\t\t// TODO: handle exception\n\t\t}\n\n\t}", "private void fillObservationsDataFast() {\n\n Integer studyId = this.workbookStudy.getStudy().getStudyid();\n// int variateCount = this.workbookStudy.getVariates().size();\n \n List<String> factorsReturn = getFactoresReturnList();\n \n fillFactorLabelDataOptimized(studyId, 0, getFactoresKeyList(), factorsReturn, factorTrial.getFname());\n \n// List<Measurement> measurementList = workbookStudy.getMeasurements();\n \n// log.info(\"Getting Data Trial ...\");\n// List<Object> dataList;\n// if(! workbookStudy.getVariates().isEmpty()){\n// dataList = this.servicioApp.getObservationsDataMeasurementEffect(studyId, effectid);\n// }else{\n// dataList = new ArrayList<Object>();\n// }\n// log.info(\"Getting Data Trial Done...\");\n// \n// \n// log.info(\"Getting List of Obsunit ...\");\n// List<Obsunit> obsunits = this.servicioApp.getObsunitListByEffectid(studyId, effectid);\n// log.info(\"Getting List of Obsunit...\");\n// int rowIndex = 0;\n// for (Obsunit obsUnit : obsunits) {\n// Measurement measurement = measurementList.get(rowIndex);\n// measurement.initMeasurementData(variateCount);\n//\n// assignMeasurementData(measurement, obsUnit, dataList);\n// rowIndex++;\n// }\n }", "private synchronized void initializeData() {\n\n System.out.println(\"En inicializar datos\");\n // Only perform initialization once per app lifetime. If initialization has already been\n // performed, we have nothing to do in this method.\n if (mInitialized) return;\n mInitialized = true;\n\n mExecutors.diskIO().execute(() -> {\n if (isFetchNeeded()) {\n System.out.println(\"Se necesita actualizar, fetch is needed\");\n startFetchPublicacionService();\n }\n });\n }", "private void initData() {\n requestServerToGetInformation();\n }", "void populateData();", "public static void populateData() {\n\n }", "public void initTable();", "@Override\n\tprotected void setupData() {\n\t\tisFirst = getIntent().getExtras().getBoolean(\"IS_FIRST\");\n\t\tcid = getIntent().getExtras().getString(FirstCategoryAct.class.getName());\n\t\tString title;\n\t\tif(isFirst){\n\t\t\ttitle = getIntent().getExtras().getString(\"TITLE_BAR\") + getResources().getString(R.string.tv_article_all);\n\t\t}else{\n\t\t\ttitle = getResources().getString(R.string.tv_article_all2);\n\t\t}\n\t\t\n\t\tsetGCenter(true, title);\n\t\tsetGLeft(true, R.drawable.back_selector);\n\n\t\tgetData(NET_ARTICLE, false);\n\t}", "void init(Dataset ds, Session sess);", "private void initDataLoader() {\n\t}", "public void prepareData(){\n\tAssert.pre( data!=null, \"data must be aquired first\");\n\t//post: creates a vector of items with a maximum size, nullifies the original data. This prevents us from having to loop through the table each time we need a random charecter (only once to prepare the table). this saves us more time if certain seeds are used very often.\n\n\t//alternate post: changes frequencies in data vector to the sum of all the frequencies so far. would have to change getrandomchar method\n\n\n\t //if the array is small, we can write out all of the Strings\n\t \n\ttable = new Vector(MAX_SIZE);\n\n\tif (total < MAX_SIZE){\n\t\t\n\t\n\t\t//steps through data, creating a new vector\n\t\tfor(int i = 0; i<data.size(); i++){\n\n\t\t count = data.get(i);\n\n\t\t Integer fr = count.getValue();\n\t\t int f = fr.intValue();\n\n\t\t if(total<MAX_SIZE){\n\t\t\tf = (f*MAX_SIZE)/total;\n\t\t }\n\t\t\t\n\t\t //ensures all are represented (biased towards small values)\n\t\t //if (f == 0){ f == 1;}\n\n\n\t\t String word = (String)count.getKey();\n\t \n\t\t for (int x = 0; x< f; x++){\n\t\t\ttable.add( word);\n\t\t }\n\n\t\t}\n\t }\n\n\t//because of division with ints, the total might not add up 100.\n\t//so we redefine the total at the end of this process\n\ttotal = table.size();\n\n\t //we've now prepared the data\n\t dataprepared = true;\n\n\t //removes data ascociations to clear memory\n\t data = null;\n\t}", "private void initializeData() {\n String[] sportsList = getResources().getStringArray(R.array.track_title);\n String[] sportsInfo = getResources().getStringArray(R.array.track_category);\n\n // Clear the existing data (to avoid duplication).\n mSportsData.clear();\n\n TypedArray trackImageResources =\n getResources().obtainTypedArray(R.array.track_image);\n\n // Create the ArrayList of Sports objects with titles and\n // information about each sport.\n for (int i = 0; i < sportsList.length; i++) {\n for (int j = 0; j < workout.size(); j++) {\n if (workout.get(j).equals(sportsList[i])) {\n mSportsData.add(new Track(sportsList[i], sportsInfo[i], trackImageResources.getResourceId(i, 0)));\n }\n }\n }\n\n // Notify the adapter of the change.\n mAdapter.notifyDataSetChanged();\n\n trackImageResources.recycle();\n }", "private void initTable() {\n\t\tDefaultTableModel dtm = (DefaultTableModel)table.getModel();\n\t\tdtm.setRowCount(0);\t\t\n\t\tfor(int i=0;i<MainUi.controller.sale.items.size();i++){\n\t\t\tVector v1 = new Vector();\n\t\t\tv1.add(MainUi.controller.sale.items.get(i).getProdSpec().getTitle());\n\t\t\tv1.add(MainUi.controller.sale.items.get(i).getCopies());\n\t\t\tdtm.addRow(v1);\n\t\t}\n\t\tlblNewLabel.setText(\"\"+MainUi.controller.sale.getTotal());\n\t}", "public void loadData() {\n String[] header = {\"Tên Cty\", \"Mã Cty\", \"Cty mẹ\", \"Giám đốc\", \"Logo\", \"Slogan\"};\n model = new DefaultTableModel(header, 0);\n List<Enterprise> list = new ArrayList<Enterprise>();\n list = enterpriseBN.getAllEnterprise();\n for (Enterprise bean : list) {\n Enterprise enterprise = enterpriseBN.getEnterpriseByID(bean.getEnterpriseParent()); // Lấy ra 1 Enterprise theo mã\n Person person1 = personBN.getPersonByID(bean.getDirector());\n Object[] rows = {bean.getEnterpriseName(), bean.getEnterpriseID(), enterprise, person1, bean.getPicture(), bean.getSlogan()};\n model.addRow(rows);\n }\n listEnterprisePanel.getTableListE().setModel(model);\n setupTable();\n }", "private void initializeData() {\n posts = new ArrayList<>();\n posts.add(new Posts(\"Emma Wilson\", \"23 years old\", R.drawable.logo));\n posts.add(new Posts(\"Lavery Maiss\", \"25 years old\", R.drawable.star));\n posts.add(new Posts(\"Lillie Watts\", \"35 years old\", R.drawable.profile));\n }", "private void fetchData() {\n mFirstNameLabel = \"First name:\";\n mFirstNameValue = \"Taylor\";\n mSurnameLabel = \"Surname:\";\n mSurnameValue = \"Swift\";\n\n initFields();\n }", "@Override\n public void initData() {\n super.initData();\n\n RetrofitService.getInstance()\n .getApiCacheRetryService()\n .getDetail(appContext.getWenDang(Const.Detail, wendangid))\n .enqueue(new SimpleCallBack<WenDangMode>() {\n @Override\n public void onSuccess(Call<WenDangMode> call, Response<WenDangMode> response) {\n if (response.body() == null) return;\n WenDangMode data = response.body();\n title_text.setText(data.getPost().getPost_title());\n String s = data.getPost().getPost_excerpt();\n excerpt_text.setText(s.replaceAll(\"[&hellip;]\", \"\"));\n wendang_text.setText(stripHtml(data.getPost().getPost_content()));\n url = data.getPost().getDownload_page();\n list.clear();\n\n list = quChu(getImgStr(data.getPost().getPost_content()));\n\n adapter.bindData(true, list);\n//\t\t\t\t\t\trecyclerView.notifyMoreFinish(true);\n rootAdapter.notifyDataSetChanged();\n beautifulRefreshLayout.finishRefreshing();\n }\n });\n }", "private void Initialized_Data() {\n\t\t\r\n\t}", "private void initShowData() {\n /*\n 测试数据\n */\n todayClass.add(new ClassBean(\"操作系统\",\"思源208\",\"邢薇薇\",\"10:00-12:00\"));\n todayClass.add(new ClassBean(\"数据库\",\"逸夫708\",\"王方石\",\"14:00-16:00\"));\n\n nowClass.add(new ClassBean(\"移动应用开发\",\"逸夫513\",\"曾立刚\",\"10:00-12:00\"));\n\n\n\n// if(showList!=null) {\n// showList.clear();\n//// showList.addAll(DBManager.getInstance().getInfoList());\n// }\n }", "public Biodata() {\n initComponents();\n //pemanggilan fungsi koneksi database yang sudah kita buat pada class koneksi.java\n ConnectionDB DB = new ConnectionDB();\n DB.config();\n con = DB.con;\n stat = DB.stm;\n pst = DB.pst;\n data_table_mahasiswa();\n }", "void initTable();", "public void loadData() {\n\t\tbookingRequestList = bookingRequestDAO.getAllBookingRequests();\n\t\tcabDetailList = cabDAO.getAllCabs();\n\t}", "private boolean initializeDataset(){\n this.dataset = new Dataset(this.users.size(),this.recipes.size());\n //1. Read Dataset\n boolean succesReadDataset = this.dataset.read(this.userMap,this.recipeMap);\n if (!succesReadDataset) return false;\n return true;\n }", "private static void initDataTypeList()\n\t{\n\t\tfor(String numberType : DATA_TYPE_ARRAY)\n\t\t{\n\t\t\tdataTypeList.add(numberType);\n\t\t}\n\t\tlogger.info(\" --|*|-- All Data types are initialized! --|*|--\");\n\t}", "private void loadData()\n\t{\n\t\tVector<String> columnNames = new Vector<String>();\n\t\tcolumnNames.add(\"Item Name\");\n\t\tcolumnNames.add(\"Item ID\");\n\t\tcolumnNames.add(\"Current Stock\");\n\t\tcolumnNames.add(\"Unit Price\");\n\t\tcolumnNames.add(\"Section\");\n\t\t\n\t\tVector<Vector<Object>> data= new Vector<Vector<Object>>();\n\t\t\n\t\tResultSet rs = null;\n\t\ttry \n\t\t{\n\t\t\tConnection con = Connector.DBcon();\n\t\t\tString query=\"select * from items natural join sections order by sections.s_name\";\n\t\t\tPreparedStatement pst = con.prepareStatement(query);\n\t\t\trs = pst.executeQuery();\n\t\t\t\n\t\t\twhile(rs.next())\n\t\t\t{\n\t\t\t\tVector<Object> vector = new Vector<Object>();\n\t\t for (int columnIndex = 1; columnIndex <= 9; columnIndex++)\n\t\t {\n\t\t \t\n\t\t \tvector.add(rs.getObject(1));\n\t\t \tvector.add(rs.getObject(2));\n\t\t vector.add(rs.getObject(3));\n\t\t vector.add(rs.getObject(4));\n\t\t vector.add(rs.getObject(6));\n\t\t \n\t\t }\n\t\t data.add(vector);\n\t\t\t}\n\t\t\t\n\t\t\t tableModel.setDataVector(data, columnNames);\n\t\t\t \n\t\t\t rs.close();\n\t\t\t pst.close();\n\t\t\t con.close();\n\t\t} \n\t\tcatch (Exception e) \n\t\t{\n\t\t\tJOptionPane.showMessageDialog(null, e);\n\t\t}\n\t\t\n\t\t\n\t}", "private Data initialise() {\n \r\n getRoomsData();\r\n getMeetingTimesData();\r\n setLabMeetingTimes();\r\n getInstructorsData();\r\n getCoursesData();\r\n getDepartmentsData();\r\n getInstructorFixData();\r\n \r\n for (int i=0;i<departments.size(); i++){\r\n numberOfClasses += departments.get(i).getCourses().size();\r\n }\r\n return this;\r\n }", "private void initialData() {\n\n }", "public void initData(){\n\n String birdname,birdscientificname,birdfamily,birdecosystem;\n Bundle extras = getActivity().getIntent().getExtras();\n if(extras == null) {\n birdname=null;\n birdscientificname=null;\n birdfamily=null;\n birdecosystem=null;\n } else {\n birdname=extras.getString(\"birdname\");\n birdscientificname=extras.getString(\"birdscientificname\");\n birdfamily=extras.getString(\"birdfamily\");\n birdecosystem=extras.getString(\"birdecosystem\");\n }\n\n presenter.initData(birdname,birdscientificname,birdfamily,birdecosystem,imageView1,imageView2,imageView3);\n }", "public void initialize() {\n setThisFacility(null);\n loadData();\n initCols();\n\n }", "public DataTableModel() {\n super();\n LanguageObservable.getInstance().attach(this);\n setLocalizedResourceBundle(\"ch.ethz.origo.jerpa.jerpalang.perspective.ededb.EDEDB\");\n initColumns();\n data = new LinkedList<DataRowModel>();\n }", "public void init()\n\t{\n\t\ttry\n\t\t{\n\t\t\t// if we are auto-creating our schema, check and create\n\t\t\tif (m_autoDdl)\n\t\t\t{\n\t\t\t\tm_sqlService.ddl(this.getClass().getClassLoader(), \"ctools_dissertation\");\n\t\t\t}\n\n\t\t\tsuper.init();\n\t\t}\n\t\tcatch (Throwable t)\n\t\t{\n\t\t\tm_logger.warn(this +\".init(): \", t);\n\t\t}\n\t}", "public CreateData() {\n\t\t\n\t\t// TODO Auto-generated constructor stub\n\t}", "private void initData2() {\n generateValues(); //设置四条线的值数据\n generateData(); //设置数据\n\n // Disable viewport recalculations, see toggleCubic() method for more info.\n chart2.setViewportCalculationEnabled(false);\n\n chart2.setZoomType(ZoomType.HORIZONTAL);//设置线条可以水平方向收缩\n resetViewport(); //设置折线图的显示大小\n }" ]
[ "0.7178875", "0.71200925", "0.7099064", "0.7099064", "0.70814466", "0.69962496", "0.6914833", "0.6789598", "0.67683965", "0.67675775", "0.6762777", "0.6740726", "0.6694122", "0.66932034", "0.666396", "0.66355526", "0.66355526", "0.66355526", "0.66355526", "0.66355526", "0.66355526", "0.66210836", "0.66006446", "0.66006446", "0.66006446", "0.6592184", "0.6588602", "0.65869594", "0.65849024", "0.6530806", "0.65239054", "0.65126395", "0.6507535", "0.6507535", "0.6496618", "0.64532137", "0.64326966", "0.6415744", "0.64114356", "0.64026755", "0.6400471", "0.63902694", "0.6387311", "0.63816375", "0.637993", "0.6360968", "0.6336919", "0.63292456", "0.631781", "0.63167423", "0.62893236", "0.62893236", "0.62522495", "0.624571", "0.6239108", "0.6235381", "0.6198922", "0.6197015", "0.61963624", "0.6180452", "0.6173184", "0.6171982", "0.6171247", "0.6166326", "0.6147614", "0.6139444", "0.6135463", "0.6130938", "0.61073595", "0.6075012", "0.60724986", "0.6044449", "0.6042726", "0.6037596", "0.60259044", "0.6022462", "0.6019083", "0.6015464", "0.6014616", "0.6014311", "0.5987758", "0.598701", "0.5982094", "0.59772295", "0.597451", "0.59717107", "0.59619045", "0.5956257", "0.59429973", "0.5924699", "0.5921179", "0.58966976", "0.5883426", "0.58803207", "0.5880205", "0.5879606", "0.58578086", "0.5848787", "0.5845807", "0.58377" ]
0.81030065
0
Method name: setActionListener Description: Set ActionListener Remark: void
private void setActionListener(){ this.addPropertyChangeListener("Refresh", this); deleteButton.addActionListener(this); addNewButton.addActionListener(this); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void setActionListener() {\r\n\t\tactListener = new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tactController.handleMenuAction(e);\r\n\t\t\t}\r\n\t\t};\r\n\t}", "public void setAction(ActionListener actionListener){\n this.actionListener = actionListener;\n }", "void addActionListener(ActionListener listener);", "void addActionListener(IActionListener actionListener);", "public void addActionListener(ActionListener al)\n {\n _tf.addActionListener(al);\n }", "public void addActionListener (ActionListener l)\r\n {\r\n editor.addActionListener (l);\r\n }", "void setActionListener(\n final JXMapKitModule2Instance instance,\n final ActionListener listener) {\n actionListener = listener;\n }", "void controlador(ActionListener ctr);", "public void actionPerformed(ActionEvent arg0) {\r\n\t\t\t}", "public void actionPerformed(ActionEvent arg0) {\n }", "protected abstract ActionListener getActionListener();", "public void actionPerformed(ActionEvent arg0) {\n\t\t\t}", "public void actionPerformed(ActionEvent arg0) {\n\t\t\t}", "public void actionPerformed(ActionEvent arg0) {\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t}", "public void setController(ActionListener c) {\n\t\tthis.create.addActionListener(c);\n\t\tthis.cancel.addActionListener(c);\n\t}", "public void actionPerformed(ActionEvent arg0)\n {\n\t \n }", "public void setListeners(ActionListener l) {\n buttonListener = l;\n }", "private void setActionListener() {\n\n\t\tlnrPlayVoice.setOnClickListener(new OnClickListener() {\n\n\t\t\t@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tif (audioListener != null) {\n\t\t\t\t\taudioListener.onPlayClicked(isPlaying);\n\t\t\t\t}\n\t\t\t\tlnrReportVoice.setVisibility(View.GONE);\n\t\t\t\tplayVoice();\n\t\t\t}\n\t\t});\n\n\t\tlnrReportVoice.setOnClickListener(new OnClickListener() {\n\n\t\t\t@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tif (audioListener != null) {\n\t\t\t\t\taudioListener.onReportClicked();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}", "public void actionPerformed(ActionEvent arg0) {\n\t\t\n\t}", "public void actionPerformed(ActionEvent arg0) {\n\t\t\n\t}", "public void actionPerformed(ActionEvent arg0) {\n\t\t\n\t}", "public void actionPerformed(ActionEvent arg0) {\n\t\t\n\t}", "public void actionPerformed(ActionEvent arg0) {\n\t\t\n\t}", "public void actionPerformed(ActionEvent arg0) {\n\t\t\n\t}", "@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\t\t\tSystem.out.println(\"My Listener 1\");\n\t}", "public void actionPerformed(ActionEvent arg0) {\n\t}", "public void actionPerformed(ActionEvent e)\r\n\t\t{\n\t\t}", "public void actionPerformed(ActionEvent e)\r\n\t\t{\n\t\t}", "@Override\n\t\tpublic void actionPerformed(ActionEvent arg0) \n\t\t{\n\t\t\t\n\t\t}", "public void actionPerformed(ActionEvent e)\n {\n }", "@Override\n\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\n\t\t}", "@Override\n\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\r\n\t}", "public void actionPerformed(ActionEvent e) {\n }", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\n\t\t\t}", "@Override\n\tpublic void actionPerformed(ActionEvent arg0)\n\t{\n\t\t\n\t}", "@Override\n\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\n\t\t\n\t}", "public void actionPerformed(ActionEvent e) {\r\n\t\t\t}", "public void actionPerformed(ActionEvent e)\n {\n }", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\t\n\t\t\t}", "@Override\n\tpublic void actionPerformed(ActionEvent arg0) {\n\n\t}", "@Override\n\tpublic void actionPerformed(ActionEvent arg0) {\n\n\t}", "@Override\n\tpublic void actionPerformed(ActionEvent arg0) {\n\n\t}", "@Override\r\n\tpublic void actionPerformed(ActionEvent arg0) {\r\n\t\t// TODO Auto-generated method stub\r\n\r\n\t}", "public void setActionListeners(ActionListener actionListener) {\n setRegisterButtonListener(actionListener);\n setMenuButtonListener(actionListener);\n }", "void setActionListener(ActionListener listener) {\n goButton.addActionListener(listener);\n for (JRadioButton rb : buttons) {\n rb.addActionListener(listener);\n }\n }", "@Override //se repita\r\n public void actionPerformed(ActionEvent ae) {\r\n \r\n }", "@Override\n\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\n\t}", "@Override\n\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\n\t}", "@Override\n\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\n\t}", "@Override\n\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\n\t}", "@Override\n\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\n\t}", "@Override\n\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\n\t}", "@Override\n\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\n\t}", "@Override\n\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\n\t}", "@Override\n\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\n\t}", "public void actionPerformed(ActionEvent e){\n\t}", "public void actionPerformed(ActionEvent e) {\n\t}", "@Override\r\n\tpublic void actionPerformed(ActionEvent arg0) {\n\r\n\t}", "@Override\n\t public void actionPerformed(ActionEvent e){\n\t }", "public void addListener(ActionListener listener){\n\t\tbtn.addActionListener(listener);\n\t}", "@Override\r\n \t\tpublic void actionPerformed(ActionEvent e) {\n \t\t}", "public void actionPerformed(ActionEvent e) {\n\t\t\r\n\t}", "public void actionPerformed(ActionEvent e) {\n\n\t}", "public void actionPerformed(ActionEvent e){}", "public void actionPerformed(ActionEvent event)\n\t{\n\t}", "@Override\n\t\tpublic void actionPerformed(ActionEvent e) \n\t\t{\n\t\t\t\n\t\t}", "public void addActionListener(ActionListener listener) {\n\t\tthis.home.addActionListener(listener);\n\t}", "public void actionPerformed(ActionEvent e){\n\n }", "public void actionPerformed(ActionEvent e) {\n\r\n\t\t\t}", "@Override\n\tpublic void actionPerformed(\n\t\t\tActionEvent e)\n\t\t{\n\t\t\t\n\t\t}", "public void actionPerformed(ActionEvent e) {\n\t\t\t}", "public void actionPerformed(ActionEvent e) {\n\t\t\t}", "public void actionPerformed(ActionEvent e) {\n\t\t\t}", "public void actionPerformed(ActionEvent e) {\n\t\t\t}", "public void actionPerformed(ActionEvent e) {\n\t\t\t}", "public void actionPerformed(ActionEvent e) {\n\t\t\t}", "public void actionPerformed(ActionEvent e) {\n\t\t\t}", "public void actionPerformed(ActionEvent e) {\n\t\t\t}", "public void actionPerformed(ActionEvent e);", "public void actionPerformed(ActionEvent e) {\n\t\t\t\t}", "public void actionPerformed(ActionEvent e) {\n\t\tadaptee.boton1Jugador_actionPerformed(e);\n\t}", "@Override\n\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t}", "public Action setActionListener(ActionListener listener) {\n mListener = listener;\n return this;\n }", "public void actionPerformed(ActionEvent e) {\n\t\tadaptee.botonDemo_actionPerformed(e);\n\t}", "@Override\r\n public void actionPerformed(ActionEvent nomeDoEvento) {\n }", "@Override\n\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tSystem.out.println(\"My Listener 2\");\n\t\t}", "@Override\r\n\tpublic void actionPerformed(ActionEvent e) {\n\t}", "public void addActionListener(final ActionListener l) {\r\n\r\n this.button.addActionListener(l);\r\n\r\n }", "@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\t}", "@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\t}", "private void setActionListener() {\n btn_login.addActionListener(new ActionListener() {\n \n @Override\n public void actionPerformed(ActionEvent e) {\n if(tf_user.getText().equals(\"admin\") && tf_password.getText().equals(\"utpal\")){\n PatientTable table = new PatientTable();\n table.setVisible(true);\n dispose();\n }\n else\n JOptionPane.showMessageDialog(null, \"Sorry Username and Password didn't match!!\");\n \n }\n });\n \n \n btn_clear.addActionListener(new ActionListener() {\n // ActionListener for \"Clear\" button\n @Override\n public void actionPerformed(ActionEvent e) {\n tf_user.setText(\"\");\n tf_password.setText(\"\");\n }\n });\n \n btn_back.addActionListener(new ActionListener() {\n\n @Override\n public void actionPerformed(ActionEvent e) {\n dispose();\n }\n });\n\n }", "@Override\n public void actionPerformed(ActionEvent arg0)\n {\n\n }", "public @Override void actionPerformed(ActionEvent ev) {\n }" ]
[ "0.77548313", "0.7562277", "0.738041", "0.7267979", "0.72011334", "0.70771176", "0.70609605", "0.6938373", "0.6852094", "0.68204165", "0.67916006", "0.6771506", "0.6771506", "0.67659247", "0.6729435", "0.6717239", "0.6715643", "0.6703126", "0.668882", "0.668882", "0.668882", "0.668882", "0.668882", "0.668882", "0.6661284", "0.66555834", "0.6652077", "0.6652077", "0.6651122", "0.66383445", "0.66232795", "0.66232795", "0.66043884", "0.66043884", "0.66043884", "0.66043884", "0.66043884", "0.66043884", "0.65987885", "0.6597073", "0.6597073", "0.6595273", "0.6590671", "0.6574992", "0.6565448", "0.6564384", "0.6559996", "0.6559996", "0.6559996", "0.6556498", "0.6554628", "0.65515196", "0.6548725", "0.6539636", "0.6539636", "0.6539636", "0.6539636", "0.6539636", "0.6539636", "0.6539636", "0.6539636", "0.6539636", "0.6532688", "0.65252763", "0.6524848", "0.64926493", "0.6491534", "0.6481569", "0.6478919", "0.6477368", "0.64753515", "0.6472849", "0.6470328", "0.6469971", "0.64695007", "0.646905", "0.64665073", "0.6457214", "0.6457214", "0.6457214", "0.6457214", "0.6457214", "0.6457214", "0.6457214", "0.6457214", "0.6452819", "0.6448559", "0.6432992", "0.64309514", "0.6426519", "0.6420425", "0.6415703", "0.6414716", "0.6403372", "0.6403314", "0.64016795", "0.64016795", "0.63982093", "0.63906556", "0.6385778" ]
0.74099183
2
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor.
private void initComponents() { goHomeButton = ViewManager.createGoHomeButton(); jScrollPane1 = new javax.swing.JScrollPane(); jTable1 = ViewUtil.createUneditableTable(); addNewButton = new javax.swing.JButton(); deleteButton = new javax.swing.JButton(); modifyButton = new javax.swing.JButton(); searchButton = new javax.swing.JButton(); searchTxtArea = new javax.swing.JTextField(); jComboBox1 = new javax.swing.JComboBox<>(); jScrollPane1.setViewportView(jTable1); addNewButton.setText("Add"); deleteButton.setText("Delete"); modifyButton.setText("Modify"); modifyButton.addActionListener(this); searchButton.setText("Search"); searchButton.addActionListener(this); searchTxtArea.setText(""); jComboBox1.setModel(new javax.swing.DefaultComboBoxModel<>(NameConverter.getTitleArr("Discount"))); javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this); this.setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addContainerGap(70, Short.MAX_VALUE) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup() .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 664, javax.swing.GroupLayout.PREFERRED_SIZE) .addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup() .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addComponent(searchTxtArea, javax.swing.GroupLayout.PREFERRED_SIZE, 109, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jComboBox1, javax.swing.GroupLayout.PREFERRED_SIZE, 80, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGroup(layout.createSequentialGroup() .addComponent(addNewButton) .addGap(33, 33, 33) .addComponent(deleteButton))) .addGap(37, 37, 37) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(modifyButton, javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(searchButton, javax.swing.GroupLayout.Alignment.TRAILING)))) .addGap(66, 66, 66)) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup() .addComponent(goHomeButton, javax.swing.GroupLayout.PREFERRED_SIZE, 43, javax.swing.GroupLayout.PREFERRED_SIZE) .addContainerGap()))) ); layout.setVerticalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addContainerGap() .addComponent(goHomeButton, javax.swing.GroupLayout.PREFERRED_SIZE, 43, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(30,30,30) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(searchTxtArea, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(searchButton) .addComponent(jComboBox1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(29, 29, 29) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(addNewButton) .addComponent(deleteButton) .addComponent(modifyButton)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 339, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(49, 49, 49)) ); searchButton.getAccessibleContext().setAccessibleName("searchButton"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Form() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public frmRectangulo() {\n initComponents();\n }", "public form() {\n initComponents();\n }", "public AdjointForm() {\n initComponents();\n setDefaultCloseOperation(HIDE_ON_CLOSE);\n }", "public FormListRemarking() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n \n }", "public FormPemilihan() {\n initComponents();\n }", "public GUIForm() { \n initComponents();\n }", "public FrameForm() {\n initComponents();\n }", "public TorneoForm() {\n initComponents();\n }", "public FormCompra() {\n initComponents();\n }", "public muveletek() {\n initComponents();\n }", "public Interfax_D() {\n initComponents();\n }", "public quanlixe_form() {\n initComponents();\n }", "public SettingsForm() {\n initComponents();\n }", "public RegistrationForm() {\n initComponents();\n this.setLocationRelativeTo(null);\n }", "public Soru1() {\n initComponents();\n }", "public FMainForm() {\n initComponents();\n this.setResizable(false);\n setLocationRelativeTo(null);\n }", "public soal2GUI() {\n initComponents();\n }", "public EindopdrachtGUI() {\n initComponents();\n }", "public MechanicForm() {\n initComponents();\n }", "public AddDocumentLineForm(java.awt.Frame parent) {\n super(parent);\n initComponents();\n myInit();\n }", "public quotaGUI() {\n initComponents();\n }", "public BloodDonationGUI() {\n initComponents();\n }", "public Customer_Form() {\n initComponents();\n setSize(890,740);\n \n \n }", "public PatientUI() {\n initComponents();\n }", "public Oddeven() {\n initComponents();\n }", "public myForm() {\n\t\t\tinitComponents();\n\t\t}", "public Magasin() {\n initComponents();\n }", "public intrebarea() {\n initComponents();\n }", "public RadioUI()\n {\n initComponents();\n }", "public NewCustomerGUI() {\n initComponents();\n }", "public ZobrazUdalost() {\n initComponents();\n }", "public FormUtama() {\n initComponents();\n }", "public p0() {\n initComponents();\n }", "public INFORMACION() {\n initComponents();\n this.setLocationRelativeTo(null); \n }", "public ProgramForm() {\n setLookAndFeel();\n initComponents();\n }", "public AmountReleasedCommentsForm() {\r\n initComponents();\r\n }", "public form2() {\n initComponents();\n }", "public MainForm() {\n\t\tsuper(\"Hospital\", List.IMPLICIT);\n\n\t\tstartComponents();\n\t}", "public LixeiraForm() {\n initComponents();\n setLocationRelativeTo(null);\n }", "public kunde() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setName(\"Form\"); // NOI18N\n setRequestFocusEnabled(false);\n setVerifyInputWhenFocusTarget(false);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 465, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 357, Short.MAX_VALUE)\n );\n }", "public MusteriEkle() {\n initComponents();\n }", "public frmMain() {\n initComponents();\n }", "public frmMain() {\n initComponents();\n }", "public DESHBORDPANAL() {\n initComponents();\n }", "public frmVenda() {\n initComponents();\n }", "public GUIForm() {\n initComponents();\n inputField.setText(NO_FILE_SELECTED);\n outputField.setText(NO_FILE_SELECTED);\n progressLabel.setBackground(INFO);\n progressLabel.setText(SELECT_FILE);\n }", "public Botonera() {\n initComponents();\n }", "public FrmMenu() {\n initComponents();\n }", "public OffertoryGUI() {\n initComponents();\n setTypes();\n }", "public JFFornecedores() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents()\n {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setBackground(new java.awt.Color(255, 255, 255));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 983, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 769, Short.MAX_VALUE)\n );\n\n pack();\n }", "public EnterDetailsGUI() {\n initComponents();\n }", "public vpemesanan1() {\n initComponents();\n }", "public Kost() {\n initComponents();\n }", "public FormHorarioSSE() {\n initComponents();\n }", "public UploadForm() {\n initComponents();\n }", "public frmacceso() {\n initComponents();\n }", "public HW3() {\n initComponents();\n }", "public Managing_Staff_Main_Form() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents()\n {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n getContentPane().setLayout(null);\n\n pack();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setName(\"Form\"); // NOI18N\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 300, Short.MAX_VALUE)\n );\n }", "public sinavlar2() {\n initComponents();\n }", "public P0405() {\n initComponents();\n }", "public MiFrame2() {\n initComponents();\n }", "public IssueBookForm() {\n initComponents();\n }", "public Choose1() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n\n String oldAuthor = prefs.get(\"AUTHOR\", \"\");\n if(oldAuthor != null) {\n this.authorTextField.setText(oldAuthor);\n }\n String oldBook = prefs.get(\"BOOK\", \"\");\n if(oldBook != null) {\n this.bookTextField.setText(oldBook);\n }\n String oldDisc = prefs.get(\"DISC\", \"\");\n if(oldDisc != null) {\n try {\n int oldDiscNum = Integer.parseInt(oldDisc);\n oldDiscNum++;\n this.discNumberTextField.setText(Integer.toString(oldDiscNum));\n } catch (Exception ex) {\n this.discNumberTextField.setText(oldDisc);\n }\n this.bookTextField.setText(oldBook);\n }\n\n\n }", "public GUI_StudentInfo() {\n initComponents();\n }", "public Lihat_Dokter_Keseluruhan() {\n initComponents();\n }", "public JFrmPrincipal() {\n initComponents();\n }", "public bt526() {\n initComponents();\n }", "public Pemilihan_Dokter() {\n initComponents();\n }", "public Ablak() {\n initComponents();\n }", "@Override\n\tprotected void initUi() {\n\t\t\n\t}", "@SuppressWarnings(\"unchecked\")\n\t// <editor-fold defaultstate=\"collapsed\" desc=\"Generated\n\t// Code\">//GEN-BEGIN:initComponents\n\tprivate void initComponents() {\n\n\t\tlabel1 = new java.awt.Label();\n\t\tlabel2 = new java.awt.Label();\n\t\tlabel3 = new java.awt.Label();\n\t\tlabel4 = new java.awt.Label();\n\t\tlabel5 = new java.awt.Label();\n\t\tlabel6 = new java.awt.Label();\n\t\tlabel7 = new java.awt.Label();\n\t\tlabel8 = new java.awt.Label();\n\t\tlabel9 = new java.awt.Label();\n\t\tlabel10 = new java.awt.Label();\n\t\ttextField1 = new java.awt.TextField();\n\t\ttextField2 = new java.awt.TextField();\n\t\tlabel14 = new java.awt.Label();\n\t\tlabel15 = new java.awt.Label();\n\t\tlabel16 = new java.awt.Label();\n\t\ttextField3 = new java.awt.TextField();\n\t\ttextField4 = new java.awt.TextField();\n\t\ttextField5 = new java.awt.TextField();\n\t\tlabel17 = new java.awt.Label();\n\t\tlabel18 = new java.awt.Label();\n\t\tlabel19 = new java.awt.Label();\n\t\tlabel20 = new java.awt.Label();\n\t\tlabel21 = new java.awt.Label();\n\t\tlabel22 = new java.awt.Label();\n\t\ttextField6 = new java.awt.TextField();\n\t\ttextField7 = new java.awt.TextField();\n\t\ttextField8 = new java.awt.TextField();\n\t\tlabel23 = new java.awt.Label();\n\t\ttextField9 = new java.awt.TextField();\n\t\ttextField10 = new java.awt.TextField();\n\t\ttextField11 = new java.awt.TextField();\n\t\ttextField12 = new java.awt.TextField();\n\t\tlabel24 = new java.awt.Label();\n\t\tlabel25 = new java.awt.Label();\n\t\tlabel26 = new java.awt.Label();\n\t\tlabel27 = new java.awt.Label();\n\t\tlabel28 = new java.awt.Label();\n\t\tlabel30 = new java.awt.Label();\n\t\tlabel31 = new java.awt.Label();\n\t\tlabel32 = new java.awt.Label();\n\t\tjButton1 = new javax.swing.JButton();\n\n\t\tlabel1.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel1.setText(\"It seems that some of the buttons on the ATM machine are not working!\");\n\n\t\tlabel2.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel2.setText(\"Unfortunately these numbers are exactly what Professor has to use to type in his password.\");\n\n\t\tlabel3.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel3.setText(\n\t\t\t\t\"If you want to eat tonight, you have to help him out and construct the numbers of the password with the working buttons and math operators.\");\n\n\t\tlabel4.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 14)); // NOI18N\n\t\tlabel4.setText(\"Denver's Password: 2792\");\n\n\t\tlabel5.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel5.setText(\"import java.util.Scanner;\\n\");\n\n\t\tlabel6.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel6.setText(\"public class ATM{\");\n\n\t\tlabel7.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel7.setText(\"public static void main(String[] args){\");\n\n\t\tlabel8.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel8.setText(\"System.out.print(\");\n\n\t\tlabel9.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel9.setText(\" -\");\n\n\t\tlabel10.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel10.setText(\");\");\n\n\t\ttextField1.addActionListener(new java.awt.event.ActionListener() {\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\t\ttextField1ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tlabel14.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel14.setText(\"System.out.print( (\");\n\n\t\tlabel15.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel15.setText(\"System.out.print(\");\n\n\t\tlabel16.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel16.setText(\"System.out.print( ( (\");\n\n\t\tlabel17.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel17.setText(\")\");\n\n\t\tlabel18.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel18.setText(\" +\");\n\n\t\tlabel19.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel19.setText(\");\");\n\n\t\tlabel20.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel20.setText(\" /\");\n\n\t\tlabel21.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel21.setText(\" %\");\n\n\t\tlabel22.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel22.setText(\" +\");\n\n\t\tlabel23.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel23.setText(\");\");\n\n\t\tlabel24.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel24.setText(\" +\");\n\n\t\tlabel25.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel25.setText(\" /\");\n\n\t\tlabel26.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel26.setText(\" *\");\n\n\t\tlabel27.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n\t\tlabel27.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel27.setText(\")\");\n\n\t\tlabel28.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel28.setText(\")\");\n\n\t\tlabel30.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel30.setText(\"}\");\n\n\t\tlabel31.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel31.setText(\"}\");\n\n\t\tlabel32.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel32.setText(\");\");\n\n\t\tjButton1.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 14)); // NOI18N\n\t\tjButton1.setText(\"Check\");\n\t\tjButton1.addActionListener(new java.awt.event.ActionListener() {\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\t\tjButton1ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tjavax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n\t\tlayout.setHorizontalGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(28).addGroup(layout\n\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING).addComponent(getDoneButton()).addComponent(jButton1)\n\t\t\t\t\t\t.addComponent(label7, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label6, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label5, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label4, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addComponent(label1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t\t\t.addComponent(label2, GroupLayout.PREFERRED_SIZE, 774, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addGap(92).addGroup(layout.createParallelGroup(Alignment.LEADING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING, false)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label15, GroupLayout.PREFERRED_SIZE, 145,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField8, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(2)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label21, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField7, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label8, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField1, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label9, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED).addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttextField2, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label31, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label14, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(37))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(174)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField5, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label18, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(7)))\n\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING, false).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField4, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label17, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label22, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField9, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(20)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label23, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label20, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField3, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(20).addComponent(label19, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(23).addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tlabel10, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label16, GroupLayout.PREFERRED_SIZE, 177,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField12, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label24, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField6, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label27, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label25, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField11, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label28, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label26, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField10, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED).addComponent(label32,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t.addComponent(label30, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addContainerGap(GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));\n\t\tlayout.setVerticalGroup(\n\t\t\t\tlayout.createParallelGroup(Alignment.LEADING).addGroup(layout.createSequentialGroup().addContainerGap()\n\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t.addComponent(label1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addComponent(label2, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t.addComponent(label3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label4, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label5, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label6, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label7, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\tlayout.createSequentialGroup().addGroup(layout.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label9,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label8,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField1,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttextField2, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label10,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(3)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(19)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField5,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label14,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label18,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label17,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField4,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1))))\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label20, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label19, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField3, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(78)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label27, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(76)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField11, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(75)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label32,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField10,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tShort.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING, false)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label15,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField8,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label21,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField7,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(27))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField9,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label22,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlayout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(3)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlabel23,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(29)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label16,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField12,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label24,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField6,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1))))))\n\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label25, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label28, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label26, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t.addGap(30)\n\t\t\t\t\t\t.addComponent(label31, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGap(25)\n\t\t\t\t\t\t.addComponent(label30, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGap(26).addComponent(jButton1).addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(getDoneButton()).addContainerGap(23, Short.MAX_VALUE)));\n\t\tthis.setLayout(layout);\n\n\t\tlabel16.getAccessibleContext().setAccessibleName(\"System.out.print( ( (\");\n\t\tlabel17.getAccessibleContext().setAccessibleName(\"\");\n\t\tlabel18.getAccessibleContext().setAccessibleName(\" +\");\n\t}", "public Pregunta23() {\n initComponents();\n }", "public FormMenuUser() {\n super(\"Form Menu User\");\n initComponents();\n }", "public AvtekOkno() {\n initComponents();\n }", "public busdet() {\n initComponents();\n }", "public ViewPrescriptionForm() {\n initComponents();\n }", "public Ventaform() {\n initComponents();\n }", "public Kuis2() {\n initComponents();\n }", "public POS1() {\n initComponents();\n }", "public CreateAccount_GUI() {\n initComponents();\n }", "public Carrera() {\n initComponents();\n }", "public EqGUI() {\n initComponents();\n }", "public JFriau() {\n initComponents();\n this.setLocationRelativeTo(null);\n this.setTitle(\"BuNus - Budaya Nusantara\");\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setBackground(new java.awt.Color(204, 204, 204));\n setMinimumSize(new java.awt.Dimension(1, 1));\n setPreferredSize(new java.awt.Dimension(760, 402));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 750, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n }", "public nokno() {\n initComponents();\n }", "public dokter() {\n initComponents();\n }", "public ConverterGUI() {\n initComponents();\n }", "public hitungan() {\n initComponents();\n }", "public Modify() {\n initComponents();\n }", "public frmAddIncidencias() {\n initComponents();\n }", "public FP_Calculator_GUI() {\n initComponents();\n \n setVisible(true);\n }" ]
[ "0.7319396", "0.7290941", "0.7290941", "0.7290941", "0.7285927", "0.7248002", "0.72139066", "0.72086275", "0.71958303", "0.718997", "0.7184516", "0.7159095", "0.71481097", "0.709288", "0.70806605", "0.70578784", "0.6986726", "0.6977067", "0.6955257", "0.6954392", "0.6945326", "0.69436216", "0.6935779", "0.69320637", "0.6928225", "0.6924907", "0.69248605", "0.6911609", "0.6911109", "0.6892906", "0.6892066", "0.68918383", "0.6891177", "0.6889087", "0.6883209", "0.6882372", "0.6880651", "0.68782973", "0.6876634", "0.6874696", "0.68711734", "0.6859314", "0.68565166", "0.6855607", "0.68552643", "0.6854565", "0.68534696", "0.68530536", "0.68530536", "0.6843682", "0.6836637", "0.6836613", "0.6829145", "0.68281287", "0.682634", "0.6824281", "0.68238854", "0.681735", "0.6816949", "0.6811127", "0.68091583", "0.6808792", "0.680855", "0.6808137", "0.6802665", "0.67954504", "0.67941535", "0.6793186", "0.6791855", "0.67899567", "0.67891306", "0.678766", "0.67817825", "0.67669976", "0.67660517", "0.6764966", "0.67571455", "0.6755968", "0.6752885", "0.6751322", "0.6742087", "0.6739845", "0.673701", "0.6736383", "0.67338026", "0.6727401", "0.67262983", "0.67209303", "0.67158926", "0.6715857", "0.67147917", "0.67091477", "0.6708007", "0.6704485", "0.6701657", "0.67003953", "0.6699588", "0.6698673", "0.66944015", "0.6690715", "0.6689867" ]
0.0
-1
End of variables declaration
@Override public void actionPerformed(ActionEvent arg0) { Object source=arg0.getSource(); if(source==deleteButton){ deleteExec(); }else if(source==addNewButton){ try { ViewManager.goToSubFunctionScreen(new AddDiscountPanel()); } catch (ServiceNotFoundException e) { e.printStackTrace(); } }else if(source==searchButton){ searchExec(); }else if(source==modifyButton){ modifyExec(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void initVariables() {\n\t\t\r\n\t}", "private zzfl$zzg$zzc() {\n void var3_1;\n void var2_-1;\n void var1_-1;\n this.value = var3_1;\n }", "protected void initVars() {}", "private void assignment() {\n\n\t\t\t}", "private void declareLocals() {\r\n\t\t// declare locals\r\n\t\tfor(Local local: method.retrieveActiveBody().getLocals()) {\r\n\t\t\tString cType = null;\r\n\t\t\t// null types need special treatment, we don't output them\r\n\t\t\t// we also won't generate statements that use a nullType\r\n\t\t\t// as a target.\r\n\t\t\tif(local.getType() instanceof NullType) {\r\n\t\t\t\tcType = \"java_lang_Object*\";\r\n\t\t\t} else {\r\n\t\t\t\tcType = CTypes.toCType(local.getType());\r\n\t\t\t}\r\n\t\t\twriter.wl(cType + \" \" + local.getName() + \" = 0;\");\r\n\t\t}\r\n\t\twriter.wl(\"java_lang_Object* _exception = 0;\");\r\n\t}", "public void lavar() {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t}", "Variables createVariables();", "void compileVarDec() {\n tagBracketPrinter(VAR_DEC_TAG, OPEN_TAG_BRACKET);\n try {\n compileVarDecHelper();\n } catch (IOException e) {\n e.printStackTrace();\n }\n tagBracketPrinter(VAR_DEC_TAG, CLOSE_TAG_BRACKET);\n }", "private void updateVars()\n {\n\n }", "String getVarDeclare();", "public TradeVariables() { /*gets default values*/ }", "public Variables() {\n this.numCliente = 0;\n this.tiempoSalida = 999;\n }", "private void declareArray() {\n\t\twriter.println();\n\t\twriter.println(\"; array of 52 for variables:\");\n\t\twriter.print(variables + \" dw\");\n\t\tfor (int i = 0; i < 51; i++) {\n\t\t\twriter.print(\" 0,\");\n\t\t}\n\t\twriter.println(\" 0\");\n\t}", "@Override\r\n\tpublic void visit(VariableDeclaration variableDeclaration) {\n\r\n\t}", "private void initVars(){\n this.sOut = new StringBuilder();\n this.curPos = this.frameCount = 0;\n this.heldKeys = new int[257];\n this.showCursor = false;\n this.fontId = DAGGER40;\n Arrays.fill(this.heldKeys,-1);\n }", "public final void mo51373a() {\n }", "private void variableDeclaratorRest(VariableType x, Scope scope, Vector queue)\r\n {\r\n x.type.dim += bracketsOpt();\r\n if (nextSymbol == Keyword.ASSIGNSY)\r\n {\r\n Operation node, root = new Operation();\r\n root.operator = (x.modify & Keyword.FINALSY.value) == 0?Keyword.ASSIGNSY:Keyword.FINALASSIGNSY;\r\n\r\n node = root.left = new Operation();\r\n\r\n node.operator = Keyword.LEAFSY;\r\n node = node.left = new Operation();\r\n node = node.left = new Operation();\r\n node = node.left = new Operation();\r\n\r\n node.name = x.name;\r\n node.type = x.type;\r\n\r\n lookAhead();\r\n\r\n root.right = variableIntitializer(x.type, x.type.dim, scope, queue);\r\n\r\n queue.add(root);\r\n\r\n root = new Operation();\r\n root.operator = Keyword.CLEARSY;\r\n queue.add(root);\r\n }\r\n }", "int realnVars();", "final public void varcall() throws ParseException {\n jj_consume_token(VARIABLE);\n if(userVals.get(token.image)==null) {\n {if (true) throw new ParseException(\"La variable no ha sido definida.\");}\n }\n }", "@AnyLogicInternalCodegenAPI\n private void setupPlainVariables_Main_xjal() {\n }", "public void mo38117a() {\n }", "public void resetLocals()\n {\n maxLocalSize = 0;\n localCnt = localIntCnt = localDoubleCnt = localStringCnt = localItemCnt = 0;\n locals = lastLocal = new LocalVariable(null, null, null);\n }", "private void kk12() {\n\n\t}", "public void afficherVariables() {\n System.out.println\r\n (\"Objet de type GrillePain avec variables d'instance année = \" +\r\n annee + \" et nbTranches = \" + nbTranches);\r\n }", "public void mo12930a() {\n }", "protected void visitVariableDeclInfoAfterAddedToScope(VariableDeclInfo declInfo) {\n // Deliberately empty - to be optionally overridden by subclasses.\n }", "void compileClassVarDec() {\n tagBracketPrinter(CLASS_VAR_DEC_TAG, OPEN_TAG_BRACKET);\n try {\n compileClassVarDecHelper();\n } catch (IOException e) {\n e.printStackTrace();\n }\n tagBracketPrinter(CLASS_VAR_DEC_TAG, CLOSE_TAG_BRACKET);\n\n\n }", "public final void mo91715d() {\n }", "public void fixupVariables(List<QName> vars, int globalsSize)\n {\n // no-op\n }", "private void setUp() {\r\n\tvariables = new Vector();\r\n\tstatements = new Vector();\r\n\tconstraints = new Vector();\r\n\tvariableGenerator = new SimpleVariableGenerator(\"v_\");\r\n }", "@Override\n public List<String> getVariables()\n {\n return null;\n }", "void initFunDecl() {\n\t\t_localVarID = 0;\r\n\t\t_labelID = 0;\r\n\t\t_tempVarID = 32;\r\n\t\t_lsymtable.clear();\r\n\t}", "public void mo1327d(ac acVar) {\n }", "public static void initialisations() {\n\t\tit = 0;\r\n\t\tbc = 1;\r\n\r\n\t\t// pile des reprises pour compilation des branchements en avant\r\n\t\tpileRep = new TPileRep(); \r\n\t\t// programme objet = code Mapile de l'unite en cours de compilation\r\n\t\tpo = new ProgObjet();\r\n\t\t// COMPILATION SEPAREE: desripteur de l'unite en cours de compilation\r\n\t\tdesc = new Descripteur();\r\n\r\n\t\t// initialisation necessaire aux attributs lexicaux\r\n\t\tUtilLex.initialisation();\r\n\r\n\t\t// initialisation du type de l'expression courante\r\n\t\ttCour = NEUTRE;\r\n\r\n\t\t//Initialisation de la variable qui compte le nombre de param�tres de chaque proc�dure \r\n\t\tnbParamProc = 0;\r\n\r\n\t\t//Initialisation de la variable qui compte le nombre de variables d�clar�es\r\n\t\tnbVar++;\r\n\r\n\t\t//Initialisation vTmp\r\n\t\tvTmp = 0;\r\n\t\t\r\n\t\tdesc.setUnite(\"programme\");\r\n\t\t\r\n\t}", "private void decls() throws IOException\n {\n type();\n match(Tag.ID);\n match(';');\n }", "void _smem_close_vars() throws SQLException\n {\n smem_variable_set(smem_variable_key.var_max_cycle, this.smem_max_cycle);\n \n // store num nodes/edges for future use of the smem database\n smem_variable_set(smem_variable_key.var_num_nodes, stats.nodes.get());\n smem_variable_set(smem_variable_key.var_num_edges, stats.edges.get());\n }", "public void masterDeclaration();", "private final void m28007e(JsonParser jVar) throws IOException {\n Object Q = jVar.mo29771Q();\n this.f20615n = Q;\n if (Q != null) {\n this.f20617p = true;\n }\n Object P = jVar.mo29770P();\n this.f20616o = P;\n if (P != null) {\n this.f20617p = true;\n }\n }", "private B() {\n void var2_-1;\n void var1_-1;\n }", "private void initVariables(){\n int counter = 1;\n for (int vCount = 0; vCount < vertexCount; vCount++){\n for (int pCount = 0; pCount < positionCount; pCount++){\n variables[vCount][pCount] = counter++;\n }\n }\n }", "public void mo4359a() {\n }", "public void setTotalVariables( int totalVars ) ;", "public static String _globals() throws Exception{\nmostCurrent._pnloverlay = new anywheresoftware.b4a.objects.PanelWrapper();\n //BA.debugLineNum = 21;BA.debugLine=\"Private txtval As EditText\";\nmostCurrent._txtval = new anywheresoftware.b4a.objects.EditTextWrapper();\n //BA.debugLineNum = 22;BA.debugLine=\"Private btnlogin As Button\";\nmostCurrent._btnlogin = new anywheresoftware.b4a.objects.ButtonWrapper();\n //BA.debugLineNum = 23;BA.debugLine=\"Private btndelete As Button\";\nmostCurrent._btndelete = new anywheresoftware.b4a.objects.ButtonWrapper();\n //BA.debugLineNum = 24;BA.debugLine=\"End Sub\";\nreturn \"\";\n}", "public abstract int nVars();", "void method_9229(int var1, int var2, int var3) {\r\n this.field_8735 = var1;\r\n this.field_8736 = var2;\r\n this.field_8737 = var3;\r\n super();\r\n }", "public void mo2198g(C0317d dVar) {\n }", "public String _class_globals() throws Exception{\n_abm = new com.ab.abmaterial.ABMaterial();\r\n //BA.debugLineNum = 4;BA.debugLine=\"End Sub\";\r\nreturn \"\";\r\n}", "public void clearVars() {\n setLatitude (FLOATNULL);\n setLongitude (FLOATNULL);\n setDepth (FLOATNULL);\n setTemperatureMin (FLOATNULL);\n setTemperatureMax (FLOATNULL);\n setSalinityMin (FLOATNULL);\n setSalinityMax (FLOATNULL);\n setOxygenMin (FLOATNULL);\n setOxygenMax (FLOATNULL);\n setNitrateMin (FLOATNULL);\n setNitrateMax (FLOATNULL);\n setPhosphateMin (FLOATNULL);\n setPhosphateMax (FLOATNULL);\n setSilicateMin (FLOATNULL);\n setSilicateMax (FLOATNULL);\n setChlorophyllMin (FLOATNULL);\n setChlorophyllMax (FLOATNULL);\n }", "public static void main(String[] args) {\nint b;\n\t\tint a;\n\t}", "public void mo115190b() {\n }", "double defendre();", "private Constants$CounterNames() {\n void var3_1;\n void var2_-1;\n void var1_-1;\n this.mName = var3_1;\n }", "private final void zzR(Object var1_1, zzha var2_2) {\n block94: {\n var3_3 = this;\n var4_4 = var1_1;\n var5_5 = var2_2;\n var6_6 = this.zzh;\n if (var6_6 != 0) break block94;\n var7_7 = this.zzc;\n var6_6 = ((int[])var7_7).length;\n var8_8 = zzja.zzb;\n var9_9 = 1048575;\n var10_10 = 1.469367E-39f;\n var11_11 = var9_9;\n var13_13 = 0;\n for (var12_12 = 0; var12_12 < var6_6; var12_12 += 3) {\n block95: {\n var14_14 = var3_3.zzA(var12_12);\n var15_15 = var3_3.zzc;\n var16_16 = var15_15[var12_12];\n var17_17 = zzja.zzC(var14_14);\n var18_18 = 17;\n var19_19 = 1;\n if (var17_17 <= var18_18) {\n var20_20 = var3_3.zzc;\n var21_21 = var12_12 + 2;\n var18_18 = var20_20[var21_21];\n if ((var21_21 = var18_18 & var9_9) != var11_11) {\n var22_22 = var21_21;\n var13_13 = var8_8.getInt(var4_4, var22_22);\n var11_11 = var21_21;\n }\n var18_18 >>>= 20;\n var18_18 = var19_19 << var18_18;\n } else {\n var18_18 = 0;\n var20_20 = null;\n }\n var24_23 = var14_14 &= var9_9;\n switch (var17_17) lbl-1000:\n // 56 sources\n\n {\n default: {\n var17_17 = 0;\n break block95;\n }\n case 68: {\n var14_14 = (int)var3_3.zzM(var4_4, var16_16, var12_12);\n if (var14_14 == 0) ** GOTO lbl-1000\n var26_24 = var8_8.getObject(var4_4, var24_23);\n var27_25 = var3_3.zzv(var12_12);\n var5_5.zzs(var16_16, var26_24, var27_25);\n ** GOTO lbl-1000\n }\n case 67: {\n var14_14 = (int)var3_3.zzM(var4_4, var16_16, var12_12);\n if (var14_14 == 0) ** GOTO lbl-1000\n var24_23 = zzja.zzG(var4_4, var24_23);\n var5_5.zzq(var16_16, var24_23);\n ** GOTO lbl-1000\n }\n case 66: {\n var14_14 = (int)var3_3.zzM(var4_4, var16_16, var12_12);\n if (var14_14 == 0) ** GOTO lbl-1000\n var9_9 = zzja.zzF(var4_4, var24_23);\n var5_5.zzp(var16_16, var9_9);\n ** GOTO lbl-1000\n }\n case 65: {\n var14_14 = (int)var3_3.zzM(var4_4, var16_16, var12_12);\n if (var14_14 == 0) ** GOTO lbl-1000\n var24_23 = zzja.zzG(var4_4, var24_23);\n var5_5.zzd(var16_16, var24_23);\n ** GOTO lbl-1000\n }\n case 64: {\n var14_14 = (int)var3_3.zzM(var4_4, var16_16, var12_12);\n if (var14_14 == 0) ** GOTO lbl-1000\n var9_9 = zzja.zzF(var4_4, var24_23);\n var5_5.zzb(var16_16, var9_9);\n ** GOTO lbl-1000\n }\n case 63: {\n var14_14 = (int)var3_3.zzM(var4_4, var16_16, var12_12);\n if (var14_14 == 0) ** GOTO lbl-1000\n var9_9 = zzja.zzF(var4_4, var24_23);\n var5_5.zzg(var16_16, var9_9);\n ** GOTO lbl-1000\n }\n case 62: {\n var14_14 = (int)var3_3.zzM(var4_4, var16_16, var12_12);\n if (var14_14 == 0) ** GOTO lbl-1000\n var9_9 = zzja.zzF(var4_4, var24_23);\n var5_5.zzo(var16_16, var9_9);\n ** GOTO lbl-1000\n }\n case 61: {\n var14_14 = (int)var3_3.zzM(var4_4, var16_16, var12_12);\n if (var14_14 == 0) ** GOTO lbl-1000\n var26_24 = (zzgs)var8_8.getObject(var4_4, var24_23);\n var5_5.zzn(var16_16, (zzgs)var26_24);\n ** GOTO lbl-1000\n }\n case 60: {\n var14_14 = (int)var3_3.zzM(var4_4, var16_16, var12_12);\n if (var14_14 == 0) ** GOTO lbl-1000\n var26_24 = var8_8.getObject(var4_4, var24_23);\n var27_25 = var3_3.zzv(var12_12);\n var5_5.zzr(var16_16, var26_24, var27_25);\n ** GOTO lbl-1000\n }\n case 59: {\n var14_14 = (int)var3_3.zzM(var4_4, var16_16, var12_12);\n if (var14_14 == 0) ** GOTO lbl-1000\n var26_24 = var8_8.getObject(var4_4, var24_23);\n zzja.zzT(var16_16, var26_24, var5_5);\n ** GOTO lbl-1000\n }\n case 58: {\n var14_14 = (int)var3_3.zzM(var4_4, var16_16, var12_12);\n if (var14_14 == 0) ** GOTO lbl-1000\n var9_9 = (int)zzja.zzH(var4_4, var24_23);\n var5_5.zzl(var16_16, (boolean)var9_9);\n ** GOTO lbl-1000\n }\n case 57: {\n var14_14 = (int)var3_3.zzM(var4_4, var16_16, var12_12);\n if (var14_14 == 0) ** GOTO lbl-1000\n var9_9 = zzja.zzF(var4_4, var24_23);\n var5_5.zzk(var16_16, var9_9);\n ** GOTO lbl-1000\n }\n case 56: {\n var14_14 = (int)var3_3.zzM(var4_4, var16_16, var12_12);\n if (var14_14 == 0) ** GOTO lbl-1000\n var24_23 = zzja.zzG(var4_4, var24_23);\n var5_5.zzj(var16_16, var24_23);\n ** GOTO lbl-1000\n }\n case 55: {\n var14_14 = (int)var3_3.zzM(var4_4, var16_16, var12_12);\n if (var14_14 == 0) ** GOTO lbl-1000\n var9_9 = zzja.zzF(var4_4, var24_23);\n var5_5.zzi(var16_16, var9_9);\n ** GOTO lbl-1000\n }\n case 54: {\n var14_14 = (int)var3_3.zzM(var4_4, var16_16, var12_12);\n if (var14_14 == 0) ** GOTO lbl-1000\n var24_23 = zzja.zzG(var4_4, var24_23);\n var5_5.zzh(var16_16, var24_23);\n ** GOTO lbl-1000\n }\n case 53: {\n var14_14 = (int)var3_3.zzM(var4_4, var16_16, var12_12);\n if (var14_14 == 0) ** GOTO lbl-1000\n var24_23 = zzja.zzG(var4_4, var24_23);\n var5_5.zzc(var16_16, var24_23);\n ** GOTO lbl-1000\n }\n case 52: {\n var14_14 = (int)var3_3.zzM(var4_4, var16_16, var12_12);\n if (var14_14 == 0) ** GOTO lbl-1000\n var10_10 = zzja.zzE(var4_4, var24_23);\n var5_5.zze(var16_16, var10_10);\n ** GOTO lbl-1000\n }\n case 51: {\n var14_14 = (int)var3_3.zzM(var4_4, var16_16, var12_12);\n if (var14_14 == 0) ** GOTO lbl-1000\n var28_26 = zzja.zzD(var4_4, var24_23);\n var5_5.zzf(var16_16, var28_26);\n ** GOTO lbl-1000\n }\n case 50: {\n var26_24 = var8_8.getObject(var4_4, var24_23);\n var3_3.zzS(var5_5, var16_16, var26_24, var12_12);\n ** GOTO lbl-1000\n }\n case 49: {\n var30_27 = var3_3.zzc;\n var14_14 = var30_27[var12_12];\n var26_24 = (List)var8_8.getObject(var4_4, var24_23);\n var27_25 = var3_3.zzv(var12_12);\n zzjk.zzaa(var14_14, (List)var26_24, var5_5, var27_25);\n ** GOTO lbl-1000\n }\n case 48: {\n var30_27 = var3_3.zzc;\n var14_14 = var30_27[var12_12];\n var26_24 = (List)var8_8.getObject(var4_4, var24_23);\n zzjk.zzN(var14_14, (List)var26_24, var5_5, (boolean)var19_19);\n ** GOTO lbl-1000\n }\n case 47: {\n var30_27 = var3_3.zzc;\n var14_14 = var30_27[var12_12];\n var26_24 = (List)var8_8.getObject(var4_4, var24_23);\n zzjk.zzS(var14_14, (List)var26_24, var5_5, (boolean)var19_19);\n ** GOTO lbl-1000\n }\n case 46: {\n var30_27 = var3_3.zzc;\n var14_14 = var30_27[var12_12];\n var26_24 = (List)var8_8.getObject(var4_4, var24_23);\n zzjk.zzP(var14_14, (List)var26_24, var5_5, (boolean)var19_19);\n ** GOTO lbl-1000\n }\n case 45: {\n var30_27 = var3_3.zzc;\n var14_14 = var30_27[var12_12];\n var26_24 = (List)var8_8.getObject(var4_4, var24_23);\n zzjk.zzU(var14_14, (List)var26_24, var5_5, (boolean)var19_19);\n ** GOTO lbl-1000\n }\n case 44: {\n var30_27 = var3_3.zzc;\n var14_14 = var30_27[var12_12];\n var26_24 = (List)var8_8.getObject(var4_4, var24_23);\n zzjk.zzV(var14_14, (List)var26_24, var5_5, (boolean)var19_19);\n ** GOTO lbl-1000\n }\n case 43: {\n var30_27 = var3_3.zzc;\n var14_14 = var30_27[var12_12];\n var26_24 = (List)var8_8.getObject(var4_4, var24_23);\n zzjk.zzR(var14_14, (List)var26_24, var5_5, (boolean)var19_19);\n ** GOTO lbl-1000\n }\n case 42: {\n var30_27 = var3_3.zzc;\n var14_14 = var30_27[var12_12];\n var26_24 = (List)var8_8.getObject(var4_4, var24_23);\n zzjk.zzW(var14_14, (List)var26_24, var5_5, (boolean)var19_19);\n ** GOTO lbl-1000\n }\n case 41: {\n var30_27 = var3_3.zzc;\n var14_14 = var30_27[var12_12];\n var26_24 = (List)var8_8.getObject(var4_4, var24_23);\n zzjk.zzT(var14_14, (List)var26_24, var5_5, (boolean)var19_19);\n ** GOTO lbl-1000\n }\n case 40: {\n var30_27 = var3_3.zzc;\n var14_14 = var30_27[var12_12];\n var26_24 = (List)var8_8.getObject(var4_4, var24_23);\n zzjk.zzO(var14_14, (List)var26_24, var5_5, (boolean)var19_19);\n ** GOTO lbl-1000\n }\n case 39: {\n var30_27 = var3_3.zzc;\n var14_14 = var30_27[var12_12];\n var26_24 = (List)var8_8.getObject(var4_4, var24_23);\n zzjk.zzQ(var14_14, (List)var26_24, var5_5, (boolean)var19_19);\n ** GOTO lbl-1000\n }\n case 38: {\n var30_27 = var3_3.zzc;\n var14_14 = var30_27[var12_12];\n var26_24 = (List)var8_8.getObject(var4_4, var24_23);\n zzjk.zzM(var14_14, (List)var26_24, var5_5, (boolean)var19_19);\n ** GOTO lbl-1000\n }\n case 37: {\n var30_27 = var3_3.zzc;\n var14_14 = var30_27[var12_12];\n var26_24 = (List)var8_8.getObject(var4_4, var24_23);\n zzjk.zzL(var14_14, (List)var26_24, var5_5, (boolean)var19_19);\n ** GOTO lbl-1000\n }\n case 36: {\n var30_27 = var3_3.zzc;\n var14_14 = var30_27[var12_12];\n var26_24 = (List)var8_8.getObject(var4_4, var24_23);\n zzjk.zzK(var14_14, (List)var26_24, var5_5, (boolean)var19_19);\n ** GOTO lbl-1000\n }\n case 35: {\n var30_27 = var3_3.zzc;\n var14_14 = var30_27[var12_12];\n var26_24 = (List)var8_8.getObject(var4_4, var24_23);\n zzjk.zzJ(var14_14, (List)var26_24, var5_5, (boolean)var19_19);\n ** GOTO lbl-1000\n }\n case 34: {\n var30_27 = var3_3.zzc;\n var14_14 = var30_27[var12_12];\n var26_24 = (List)var8_8.getObject(var4_4, var24_23);\n var16_16 = 0;\n var15_15 = null;\n zzjk.zzN(var14_14, (List)var26_24, var5_5, false);\n ** GOTO lbl290\n }\n case 33: {\n var16_16 = 0;\n var15_15 = null;\n var30_27 = var3_3.zzc;\n var14_14 = var30_27[var12_12];\n var26_24 = (List)var8_8.getObject(var4_4, var24_23);\n zzjk.zzS(var14_14, (List)var26_24, var5_5, false);\n ** GOTO lbl290\n }\n case 32: {\n var16_16 = 0;\n var15_15 = null;\n var30_27 = var3_3.zzc;\n var14_14 = var30_27[var12_12];\n var26_24 = (List)var8_8.getObject(var4_4, var24_23);\n zzjk.zzP(var14_14, (List)var26_24, var5_5, false);\n ** GOTO lbl290\n }\n case 31: {\n var16_16 = 0;\n var15_15 = null;\n var30_27 = var3_3.zzc;\n var14_14 = var30_27[var12_12];\n var26_24 = (List)var8_8.getObject(var4_4, var24_23);\n zzjk.zzU(var14_14, (List)var26_24, var5_5, false);\n ** GOTO lbl290\n }\n case 30: {\n var16_16 = 0;\n var15_15 = null;\n var30_27 = var3_3.zzc;\n var14_14 = var30_27[var12_12];\n var26_24 = (List)var8_8.getObject(var4_4, var24_23);\n zzjk.zzV(var14_14, (List)var26_24, var5_5, false);\n ** GOTO lbl290\n }\n case 29: {\n var16_16 = 0;\n var15_15 = null;\n var30_27 = var3_3.zzc;\n var14_14 = var30_27[var12_12];\n var26_24 = (List)var8_8.getObject(var4_4, var24_23);\n zzjk.zzR(var14_14, (List)var26_24, var5_5, false);\nlbl290:\n // 6 sources\n\n var17_17 = 0;\n break block95;\n }\n case 28: {\n var30_27 = var3_3.zzc;\n var14_14 = var30_27[var12_12];\n var26_24 = (List)var8_8.getObject(var4_4, var24_23);\n zzjk.zzY(var14_14, (List)var26_24, var5_5);\n ** GOTO lbl-1000\n }\n case 27: {\n var30_27 = var3_3.zzc;\n var14_14 = var30_27[var12_12];\n var26_24 = (List)var8_8.getObject(var4_4, var24_23);\n var27_25 = var3_3.zzv(var12_12);\n zzjk.zzZ(var14_14, (List)var26_24, var5_5, var27_25);\n ** GOTO lbl-1000\n }\n case 26: {\n var30_27 = var3_3.zzc;\n var14_14 = var30_27[var12_12];\n var26_24 = (List)var8_8.getObject(var4_4, var24_23);\n zzjk.zzX(var14_14, (List)var26_24, var5_5);\n ** GOTO lbl-1000\n }\n case 25: {\n var30_27 = var3_3.zzc;\n var14_14 = var30_27[var12_12];\n var26_24 = (List)var8_8.getObject(var4_4, var24_23);\n var17_17 = 0;\n zzjk.zzW(var14_14, (List)var26_24, var5_5, false);\n break block95;\n }\n case 24: {\n var17_17 = 0;\n var30_27 = var3_3.zzc;\n var14_14 = var30_27[var12_12];\n var26_24 = (List)var8_8.getObject(var4_4, var24_23);\n zzjk.zzT(var14_14, (List)var26_24, var5_5, false);\n break block95;\n }\n case 23: {\n var17_17 = 0;\n var30_27 = var3_3.zzc;\n var14_14 = var30_27[var12_12];\n var26_24 = (List)var8_8.getObject(var4_4, var24_23);\n zzjk.zzO(var14_14, (List)var26_24, var5_5, false);\n break block95;\n }\n case 22: {\n var17_17 = 0;\n var30_27 = var3_3.zzc;\n var14_14 = var30_27[var12_12];\n var26_24 = (List)var8_8.getObject(var4_4, var24_23);\n zzjk.zzQ(var14_14, (List)var26_24, var5_5, false);\n break block95;\n }\n case 21: {\n var17_17 = 0;\n var30_27 = var3_3.zzc;\n var14_14 = var30_27[var12_12];\n var26_24 = (List)var8_8.getObject(var4_4, var24_23);\n zzjk.zzM(var14_14, (List)var26_24, var5_5, false);\n break block95;\n }\n case 20: {\n var17_17 = 0;\n var30_27 = var3_3.zzc;\n var14_14 = var30_27[var12_12];\n var26_24 = (List)var8_8.getObject(var4_4, var24_23);\n zzjk.zzL(var14_14, (List)var26_24, var5_5, false);\n break block95;\n }\n case 19: {\n var17_17 = 0;\n var30_27 = var3_3.zzc;\n var14_14 = var30_27[var12_12];\n var26_24 = (List)var8_8.getObject(var4_4, var24_23);\n zzjk.zzK(var14_14, (List)var26_24, var5_5, false);\n break block95;\n }\n case 18: {\n var17_17 = 0;\n var30_27 = var3_3.zzc;\n var14_14 = var30_27[var12_12];\n var26_24 = (List)var8_8.getObject(var4_4, var24_23);\n zzjk.zzJ(var14_14, (List)var26_24, var5_5, false);\n break block95;\n }\n case 17: {\n var17_17 = 0;\n var14_14 = var13_13 & var18_18;\n if (var14_14 != 0) {\n var26_24 = var8_8.getObject(var4_4, var24_23);\n var27_25 = var3_3.zzv(var12_12);\n var5_5.zzs(var16_16, var26_24, var27_25);\n }\n break block95;\n }\n case 16: {\n var17_17 = 0;\n var14_14 = var13_13 & var18_18;\n if (var14_14 != 0) {\n var24_23 = var8_8.getLong(var4_4, var24_23);\n var5_5.zzq(var16_16, var24_23);\n }\n break block95;\n }\n case 15: {\n var17_17 = 0;\n var14_14 = var13_13 & var18_18;\n if (var14_14 != 0) {\n var9_9 = var8_8.getInt(var4_4, var24_23);\n var5_5.zzp(var16_16, var9_9);\n }\n break block95;\n }\n case 14: {\n var17_17 = 0;\n var14_14 = var13_13 & var18_18;\n if (var14_14 != 0) {\n var24_23 = var8_8.getLong(var4_4, var24_23);\n var5_5.zzd(var16_16, var24_23);\n }\n break block95;\n }\n case 13: {\n var17_17 = 0;\n var14_14 = var13_13 & var18_18;\n if (var14_14 != 0) {\n var9_9 = var8_8.getInt(var4_4, var24_23);\n var5_5.zzb(var16_16, var9_9);\n }\n break block95;\n }\n case 12: {\n var17_17 = 0;\n var14_14 = var13_13 & var18_18;\n if (var14_14 != 0) {\n var9_9 = var8_8.getInt(var4_4, var24_23);\n var5_5.zzg(var16_16, var9_9);\n }\n break block95;\n }\n case 11: {\n var17_17 = 0;\n var14_14 = var13_13 & var18_18;\n if (var14_14 != 0) {\n var9_9 = var8_8.getInt(var4_4, var24_23);\n var5_5.zzo(var16_16, var9_9);\n }\n break block95;\n }\n case 10: {\n var17_17 = 0;\n var14_14 = var13_13 & var18_18;\n if (var14_14 != 0) {\n var26_24 = (zzgs)var8_8.getObject(var4_4, var24_23);\n var5_5.zzn(var16_16, (zzgs)var26_24);\n }\n break block95;\n }\n case 9: {\n var17_17 = 0;\n var14_14 = var13_13 & var18_18;\n if (var14_14 != 0) {\n var26_24 = var8_8.getObject(var4_4, var24_23);\n var27_25 = var3_3.zzv(var12_12);\n var5_5.zzr(var16_16, var26_24, var27_25);\n }\n break block95;\n }\n case 8: {\n var17_17 = 0;\n var14_14 = var13_13 & var18_18;\n if (var14_14 != 0) {\n var26_24 = var8_8.getObject(var4_4, var24_23);\n zzja.zzT(var16_16, var26_24, var5_5);\n }\n break block95;\n }\n case 7: {\n var17_17 = 0;\n var14_14 = var13_13 & var18_18;\n if (var14_14 != 0) {\n var9_9 = (int)zzkh.zzh(var4_4, var24_23);\n var5_5.zzl(var16_16, (boolean)var9_9);\n }\n break block95;\n }\n case 6: {\n var17_17 = 0;\n var14_14 = var13_13 & var18_18;\n if (var14_14 != 0) {\n var9_9 = var8_8.getInt(var4_4, var24_23);\n var5_5.zzk(var16_16, var9_9);\n }\n break block95;\n }\n case 5: {\n var17_17 = 0;\n var14_14 = var13_13 & var18_18;\n if (var14_14 != 0) {\n var24_23 = var8_8.getLong(var4_4, var24_23);\n var5_5.zzj(var16_16, var24_23);\n }\n break block95;\n }\n case 4: {\n var17_17 = 0;\n var14_14 = var13_13 & var18_18;\n if (var14_14 != 0) {\n var9_9 = var8_8.getInt(var4_4, var24_23);\n var5_5.zzi(var16_16, var9_9);\n }\n break block95;\n }\n case 3: {\n var17_17 = 0;\n var14_14 = var13_13 & var18_18;\n if (var14_14 != 0) {\n var24_23 = var8_8.getLong(var4_4, var24_23);\n var5_5.zzh(var16_16, var24_23);\n }\n break block95;\n }\n case 2: {\n var17_17 = 0;\n var14_14 = var13_13 & var18_18;\n if (var14_14 != 0) {\n var24_23 = var8_8.getLong(var4_4, var24_23);\n var5_5.zzc(var16_16, var24_23);\n }\n break block95;\n }\n case 1: {\n var17_17 = 0;\n var14_14 = var13_13 & var18_18;\n if (var14_14 != 0) {\n var10_10 = zzkh.zzj(var4_4, var24_23);\n var5_5.zze(var16_16, var10_10);\n }\n break block95;\n }\n case 0: \n }\n var17_17 = 0;\n var14_14 = var13_13 & var18_18;\n if (var14_14 != 0) {\n var28_26 = zzkh.zzl(var4_4, var24_23);\n var5_5.zzf(var16_16, var28_26);\n }\n }\n var9_9 = 1048575;\n var10_10 = 1.469367E-39f;\n }\n var7_7 = var3_3.zzn;\n var4_4 = var7_7.zzd(var4_4);\n var7_7.zzi(var4_4, var5_5);\n return;\n }\n this.zzo.zzb(var1_1);\n throw null;\n }", "public int getTotalVariables() ;", "private void createClassVariables(){ \n //--------------------------------------------------------------------------- \n Hashtable table=sqlTagsGeneratorTable.getImportedForeignKeyHash();\n Enumeration enum=table.keys();\n buffer=new StringBuffer();\n //buffer.append(\" private Connection connection;\\n\"); \n //buffer.append(\" private ConnectionTag connectionObject;\\n\"); \n //buffer.append(\" private Vector primaryKeyVector=new Vector();\\n\"); \n buffer.append(\" private String tableName=\\\"\"+tableName+\"\\\";\\n\"); \n\n for(;enum.hasMoreElements();){\n String foreignKeyName=(String)enum.nextElement();\n SQLTagsGeneratorForeignKey object=(SQLTagsGeneratorForeignKey)\n table.get(foreignKeyName);\n String importTable=object.getImportTableName();\n String exportTable=object.getExportTableName();\n String fkName=object.getFkName();\n buffer.append(\" private \"+exportTable+\" \"+fkName+\"_PARENT;\\n\");\n }\n\n table=sqlTagsGeneratorTable.getExportedForeignKeyHash();\n enum=table.keys();\n\n for(;enum.hasMoreElements();){\n String foreignKeyName=(String)enum.nextElement();\n SQLTagsGeneratorForeignKey object=(SQLTagsGeneratorForeignKey)\n table.get(foreignKeyName);\n String exportTable=object.getImportTableName();\n String fkName=object.getFkName();\n buffer.append(\" private \"+exportTable+\" \"+fkName+\"_CHILD;\\n\");\n }\n }", "public void mo21779D() {\n }", "private void yy() {\n\n\t}", "private void ResetVarC() {\n anchura = true;\n iterator = 0;\n Yencoding = new ArrayList<Integer>();\n Cbencoding = new ArrayList<Integer>();\n Crencoding = new ArrayList<Integer>();\n FY = new StringBuilder();\n FCB = new StringBuilder();\n FCR = new StringBuilder();\n }", "protected Double[] allocateVariables() {\n\t\tDouble[] _variables = new Double[size];\n\t\treturn _variables;\n\t}", "public Vector freeVars() {\r\n\t\tVector v = new Vector(2, 2);\r\n\t\tVector temp = ((SimpleNode) jjtGetChild(0)).freeVars();\r\n\t\ttemp.remove(\"\");\r\n\t\tVector temp2 = ((SimpleNode) jjtGetChild(1)).freeVars();\r\n\t\ttemp2.remove(\"\");\r\n\t\tfor (Object obj : temp2) {\r\n\t\t\tif (!temp.contains(obj)) {\r\n\t\t\t\tv.add(obj);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn v;\r\n\t}", "private void m3417d(C0933b bVar) {\n m3422v(bVar);\n }", "private void m50366E() {\n }", "void declaration() {\n\t\tString theToken = currentToken();\r\n\r\n\t\tif (theToken.equals(\"int\") || theToken.equals(\"void\")) {\r\n\t\t\ttypeSpeci();\r\n\t\t\taccept(\"ID\");\r\n\t\t\ttheToken = currentToken();\r\n\t\t\tif (theToken.equals(\";\") || theToken.equals(\"[\"))\r\n\t\t\t\tvarDec();\r\n\r\n\t\t\t// if int ID ( param ) compoundStatment\r\n\t\t\telse if (theToken.equals(\"(\"))\r\n\t\t\t\tfunDec();\r\n\r\n\t\t}\r\n\r\n\t\telse\r\n\t\t\treturn;\r\n\t}", "public void resetVariables() {\n this.name = \"\";\n this.equipLevel = 0;\n this.cpuCost = 0;\n this.bankDamageModifier = 1.0f;\n this.redirectDamageModifier = 1.0f;\n this.attackDamageModifier = 1.0f;\n this.ftpDamageModifier = 1.0f;\n this.httpDamageModifier = 1.0f;\n this.attackDamage = 0.0f;\n this.pettyCashReducePct = 1.0f;\n this.pettyCashFailPct = 1.0f;\n this.dailyPayChangeFailPct = 1.0f;\n this.dailyPayChangeReducePct = 1.0f;\n this.stealFileFailPct = 1.0f;\n this.installScriptFailPct = 1.0f;\n }", "@Override\n public void func_104112_b() {\n \n }", "void reset(){\n if (vars!=null){\n vars.clear();\n }\n if (gVars!=null){\n gVars.clear();\n }\n }", "private synchronized void updateVariables() throws DebugException {\n\t\tif (lastUpdated == target.getSuspendCount()\n\t\t\t\t|| (variables != null && oldLineNumber == lineNumber))\n\t\t\treturn;\n\t\t\n\t\tSynchronizer frontend = target.getFrontend();\n\t\tif (frontend != null) {\n\t\t\t// get local variables\n\t\t\tString localsSausage = frontend.GetLocals(thread.getID(),frameNumber);\n\t\t\tString[] locals;\n\t\t\tif (localsSausage == null || localsSausage.equals(\"--\")\n\t\t\t\t\t|| localsSausage.equals(\"\"))\n\t\t\t\tlocals = new String[0];\n\t\t\telse\n\t\t\t\tlocals = localsSausage.split(\" \");\n\t\t\t// get parameters\n\t\t\tString paramsSausage = frontend.GetParameters(thread.getID(),frameNumber);\n\t\t\tString[] params;\n\t\t\tif (paramsSausage == null || paramsSausage.equals(\"--\")\n\t\t\t\t\t|| paramsSausage.equals(\"\"))\n\t\t\t\tparams = new String[0];\n\t\t\telse\n\t\t\t\tparams = paramsSausage.split(\" \");\n\t\t\t// get static fields of the current class\n\t\t\tString className;\n\t\t\ttry {\n\t\t\t\tclassName = methodName.substring(0, methodName.lastIndexOf('.'));\n\t\t\t} catch (StringIndexOutOfBoundsException e) {\n\t\t\t\tclassName = \"\";\n\t\t\t}\n\t\t\tString staticsSausage = frontend.PtypeFieldsOnly(thread.getID(),frameNumber,\n\t\t\t\t\tclassName,true);\n\t\t\tString[] statics;\n\t\t\tif (staticsSausage == null || staticsSausage.equals(\"--\")\n\t\t\t\t\t|| staticsSausage.equals(\"\"))\n\t\t\t\tstatics = new String[0];\n\t\t\telse\n\t\t\t\tstatics = staticsSausage.split(\" \");\n\t\t\t// determine if \"this\" is valid\n\t\t\tboolean _this = true;\n\t\t\tif (frontend.PtypeFieldsOnly(thread.getID(),frameNumber,\"this\",false).equals(\"--\"))\n\t\t\t\t_this = false;\n\t\t\t\n\t\t\t// create variable objects\n\t\t\tIVariable[] tempVariables = new EmonicVariable[locals.length + params.length\n\t\t\t + statics.length + (_this ? 1 : 0)];\n\n\t\t\tif (variables == null || variables.length != tempVariables.length) {\n\t\t\t\t// something changed\n\t\t\t\tint index = 0;\n\t\t\t\tif (_this) {\n\t\t\t\t\ttempVariables[0] = new EmonicVariable(this,\"this\",null);\n\t\t\t\t\tindex++;\n\t\t\t\t}\n\t\t\t\tArrays.sort(locals);\n\t\t\t\tfor (int i=0; i<locals.length; i++) {\n\t\t\t\t\ttempVariables[i+index] = new EmonicVariable(this,locals[i],null);\n\t\t\t\t}\n\t\t\t\tindex+=locals.length;\n\t\t\t\tArrays.sort(params);\n\t\t\t\tfor (int i=0; i<params.length; i++) {\n\t\t\t\t\ttempVariables[i+index] = new EmonicVariable(this,params[i],null);\n\t\t\t\t}\n\t\t\t\tindex+=params.length;\n\t\t\t\tArrays.sort(statics);\n\t\t\t\tfor (int i=0; i<statics.length; i++) {\n\t\t\t\t\ttempVariables[i+index] = new EmonicVariable(this,statics[i],null);\n\t\t\t\t}\n\t\t\t\tvariables = tempVariables;\n\t\t\t} \n\t\t}\n\t\tlastUpdated = target.getSuspendCount();\n//\t\toldLineNumber = lineNumber;\n\t}", "String getDefiningEnd();", "d(l lVar, m mVar, b bVar) {\n super(mVar);\n this.f11484d = lVar;\n this.f11483c = bVar;\n }", "private void localVariableDeclaration(Modifier modify, Scope scope, Vector queue)\r\n {\r\n if (nextSymbol == Keyword.FINALSY)\r\n {\r\n modify.add(nextSymbol.value);\r\n lookAhead();\r\n }\r\n\r\n modify.check(modify.fields | modify.access);\r\n Type t = type();\r\n\r\n variableDeclarators(modify, t, scope, queue);\r\n }", "void m1864a() {\r\n }", "public Variable(){\n name = \"\";\n initialValue = 0;\n }", "public void resetVariables() {\n\t\tArrays.fill(variables, 0.0);\n\t}", "public void mo1403c() {\n }", "@Override\n public int[] getRequiredTokens() {\n return new int[] {\n TokenTypes.VARIABLE_DEF,\n };\n }", "static void feladat4() {\n\t}", "public DetachedVarSymbol(long flags, Name name, Type type, Symbol owner) {\n super(flags, name, type, owner);\n this.decl = null;\n }", "public void mo38031a(C13262e eVar) {\n }", "public static void main(String[] args) {\n\t\t\n\n\tchar singleLetter='c';\n\t\n\t//boolean new=true; do not use keyword to name your variables \n\t\n\t//int 1num=100; //error\n\t int num1=100;\n\t \n\t boolean boo_=true;\n\t double $price=2.99;\n\t //byte <b=1; --> error\n\t \n\t //Preferences\n\t /*\n\t * Follow camel casing\n\t * Java Classes should start with upper case and follow camel casing\n\t * Variables and methods in Java should start with lowercase and follow camel casing \n\t */\n\t \n\t short ThisIsMyShortNumber=10;\n\t System.out.println(ThisIsMyShortNumber);\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t}", "public static void main(String[] args)\n {\n int varInt1 = 10;\n int varInt2 = 20;\n int varInt3;\n\n varInt3 = 30;\n\n System.out.println(\"varInt1=\" + varInt1);\n System.out.println();\n System.out.println(\"varInt2=\" + varInt2);\n System.out.println();\n System.out.println(\"varInt3=\" + varInt3);\n\n varInt1 = 5;\n varInt2 = 55;\n varInt3 = 555;\n\n System.out.println(\"varInt1=\" + varInt1);\n System.out.println();\n System.out.println(\"varInt2=\" + varInt2);\n System.out.println();\n System.out.println(\"varInt3=\" + varInt3);\n\n {\n double varDouble1;\n varDouble1 = 10.5;\n double varDouble2;\n varDouble2 = 21.5;\n System.out.println(\"varInt1=\" + varInt1);\n System.out.println();\n System.out.println(\"varInt2=\" + varInt2);\n System.out.println();\n System.out.println(\"varInt3=\" + varInt3);\n System.out.println();\n System.out.println(\"varDouble1=\" + varDouble1);\n System.out.println();\n System.out.println(\"varDouble2=\" + varDouble2);\n System.out.println();\n }\n }", "public void mo12628c() {\n }", "public void m23075a() {\n }", "public void mo3749d() {\n }", "private void initVars(){\n this.dice = new Dice();\n this.playing = true;\n this.currentPlayer = 0;\n this.turn = 0;\n this.xPlayers=new ArrayList<>(); \n this.players = new Player[4];\n this.diceRoller=true;\n this.xTokens=new ArrayList<>();\n this.winners=new ArrayList<>();\n this.computerPlayer= new Autoplay();\n this.gameResults = \"\";\n this.debug = false;\n }", "public void mo23813b() {\n }", "public int getNotaFinal()\r\n {\n return 4;\r\n }", "public int getNotaFinal()\r\n {\n return 4;\r\n }", "private Constants$TraceNames() {\n void var3_1;\n void var2_-1;\n void var1_-1;\n this.mName = var3_1;\n }", "public void exit()\n {\n m_doc = null;\n m_stylesheet = null;\n\n // m_defaultParaProperties = null;\n\n m_paragraph = null;\n m_paraProperties = null;\n m_charProperties = null;\n m_charPropertiesStack = null;\n m_container = null;\n m_containerStack = null;\n }", "public void method_4231() {\r\n String[] var1;\r\n float var2;\r\n float var3;\r\n float var4;\r\n int var10000;\r\n float var10001;\r\n float var31;\r\n label281: {\r\n var1 = class_752.method_4253();\r\n var10000 = this.field_2990.field_1832;\r\n if(var1 != null) {\r\n label282: {\r\n if(this.field_2990.field_1832) {\r\n var2 = class_1715.method_9556(this.field_3412 * 3.1415927F * 2.0F);\r\n var3 = class_1715.method_9556(this.field_3411 * 3.1415927F * 2.0F);\r\n float var46;\r\n var10000 = (var46 = var3 - -0.3F) == 0.0F?0:(var46 < 0.0F?-1:1);\r\n if(var1 == null) {\r\n break label282;\r\n }\r\n\r\n if(var10000 <= 0) {\r\n float var47;\r\n var10000 = (var47 = var2 - -0.3F) == 0.0F?0:(var47 < 0.0F?-1:1);\r\n if(var1 == null) {\r\n break label282;\r\n }\r\n\r\n if(var10000 >= 0) {\r\n String[] var29 = field_3418;\r\n this.field_2990.method_2085(this.field_2994, this.field_2995, this.field_2996, \"mob.enderdragon.wings\", 5.0F, 0.8F + this.field_3028.nextFloat() * 0.3F, false);\r\n }\r\n }\r\n }\r\n\r\n this.field_3411 = this.field_3412;\r\n var31 = this.method_406();\r\n var10001 = 0.0F;\r\n if(var1 == null) {\r\n break label281;\r\n }\r\n\r\n float var48;\r\n var10000 = (var48 = var31 - 0.0F) == 0.0F?0:(var48 < 0.0F?-1:1);\r\n }\r\n }\r\n\r\n if(var10000 <= 0) {\r\n var2 = (this.field_3028.nextFloat() - 0.5F) * 8.0F;\r\n var3 = (this.field_3028.nextFloat() - 0.5F) * 4.0F;\r\n var4 = (this.field_3028.nextFloat() - 0.5F) * 8.0F;\r\n String[] var32 = field_3418;\r\n this.field_2990.method_2087(\"largeexplode\", this.field_2994 + (double)var2, this.field_2995 + 2.0D + (double)var3, this.field_2996 + (double)var4, 0.0D, 0.0D, 0.0D);\r\n if(var1 != null) {\r\n return;\r\n }\r\n }\r\n\r\n this.method_4318();\r\n var31 = 0.2F;\r\n var10001 = class_1715.method_9558(this.field_2997 * this.field_2997 + this.field_2999 * this.field_2999) * 10.0F + 1.0F;\r\n }\r\n\r\n class_758 var34;\r\n label259: {\r\n var2 = var31 / var10001;\r\n var2 *= (float)Math.pow(2.0D, this.field_2998);\r\n var34 = this;\r\n if(var1 != null) {\r\n if(this.field_3414) {\r\n this.field_3412 += var2 * 0.5F;\r\n if(var1 != null) {\r\n break label259;\r\n }\r\n }\r\n\r\n var34 = this;\r\n }\r\n\r\n var34.field_3412 += var2;\r\n }\r\n\r\n float var11;\r\n float var12;\r\n float var13;\r\n float var14;\r\n float var17;\r\n label252: {\r\n label283: {\r\n double var7;\r\n double var9;\r\n double var15;\r\n double var30;\r\n label284: {\r\n label285: {\r\n label286: {\r\n this.field_3000 = class_1715.method_9579(this.field_3000);\r\n var10000 = this.field_3402;\r\n if(var1 != null) {\r\n if(this.field_3402 < 0) {\r\n int var5 = 0;\r\n\r\n while(var5 < this.field_3401.length) {\r\n this.field_3401[var5][0] = (double)this.field_3000;\r\n this.field_3401[var5][1] = this.field_2995;\r\n ++var5;\r\n if(var1 == null) {\r\n break label286;\r\n }\r\n\r\n if(var1 == null) {\r\n break;\r\n }\r\n }\r\n }\r\n\r\n var10000 = ++this.field_3402;\r\n }\r\n\r\n if(var1 == null) {\r\n break label285;\r\n }\r\n\r\n if(var10000 == this.field_3401.length) {\r\n this.field_3402 = 0;\r\n }\r\n\r\n this.field_3401[this.field_3402][0] = (double)this.field_3000;\r\n this.field_3401[this.field_3402][1] = this.field_2995;\r\n }\r\n\r\n var34 = this;\r\n if(var1 == null) {\r\n break label284;\r\n }\r\n\r\n var10000 = this.field_2990.field_1832;\r\n }\r\n\r\n if(var10000 != 0) {\r\n var34 = this;\r\n if(var1 == null) {\r\n break label252;\r\n }\r\n\r\n if(this.field_3350 <= 0) {\r\n break label283;\r\n }\r\n\r\n var9 = this.field_2994 + (this.field_3351 - this.field_2994) / (double)this.field_3350;\r\n var15 = this.field_2995 + (this.field_3352 - this.field_2995) / (double)this.field_3350;\r\n var30 = this.field_2996 + (this.field_3353 - this.field_2996) / (double)this.field_3350;\r\n var7 = class_1715.method_9580(this.field_3354 - (double)this.field_3000);\r\n this.field_3000 = (float)((double)this.field_3000 + var7 / (double)this.field_3350);\r\n this.field_3001 = (float)((double)this.field_3001 + (this.field_3355 - (double)this.field_3001) / (double)this.field_3350);\r\n --this.field_3350;\r\n this.method_3854(var9, var15, var30);\r\n this.method_3853(this.field_3000, this.field_3001);\r\n if(var1 != null) {\r\n break label283;\r\n }\r\n }\r\n\r\n var34 = this;\r\n }\r\n\r\n double var18;\r\n double var20;\r\n label219: {\r\n var9 = var34.field_3398 - this.field_2994;\r\n var15 = this.field_3399 - this.field_2995;\r\n var30 = this.field_3400 - this.field_2996;\r\n var7 = var9 * var9 + var15 * var15 + var30 * var30;\r\n var34 = this;\r\n if(var1 != null) {\r\n if(this.field_3415 != null) {\r\n this.field_3398 = this.field_3415.field_2994;\r\n this.field_3400 = this.field_3415.field_2996;\r\n var18 = this.field_3398 - this.field_2994;\r\n var20 = this.field_3400 - this.field_2996;\r\n double var22 = Math.sqrt(var18 * var18 + var20 * var20);\r\n double var24 = 0.4000000059604645D + var22 / 80.0D - 1.0D;\r\n if(var1 != null) {\r\n if(var24 > 10.0D) {\r\n var24 = 10.0D;\r\n }\r\n\r\n this.field_3399 = this.field_3415.field_3004.field_6910 + var24;\r\n }\r\n\r\n if(var1 != null) {\r\n break label219;\r\n }\r\n }\r\n\r\n this.field_3398 += this.field_3028.nextGaussian() * 2.0D;\r\n var34 = this;\r\n }\r\n\r\n var34.field_3400 += this.field_3028.nextGaussian() * 2.0D;\r\n }\r\n\r\n label211: {\r\n var34 = this;\r\n if(var1 != null) {\r\n label209: {\r\n if(!this.field_3413) {\r\n label289: {\r\n double var49;\r\n var10000 = (var49 = var7 - 100.0D) == 0.0D?0:(var49 < 0.0D?-1:1);\r\n if(var1 != null) {\r\n if(var10000 < 0) {\r\n break label289;\r\n }\r\n\r\n double var50;\r\n var10000 = (var50 = var7 - 22500.0D) == 0.0D?0:(var50 < 0.0D?-1:1);\r\n }\r\n\r\n if(var1 != null) {\r\n if(var10000 > 0) {\r\n break label289;\r\n }\r\n\r\n var34 = this;\r\n if(var1 == null) {\r\n break label209;\r\n }\r\n\r\n var10000 = this.field_3006;\r\n }\r\n\r\n if(var10000 == 0) {\r\n var34 = this;\r\n if(var1 == null) {\r\n break label209;\r\n }\r\n\r\n if(!this.field_3007) {\r\n break label211;\r\n }\r\n }\r\n }\r\n }\r\n\r\n var34 = this;\r\n }\r\n }\r\n\r\n var34.method_4321();\r\n }\r\n\r\n double var33;\r\n double var44;\r\n label291: {\r\n var15 /= (double)class_1715.method_9558(var9 * var9 + var30 * var30);\r\n var11 = 0.6F;\r\n double var51;\r\n var10000 = (var51 = var15 - (double)(-var11)) == 0.0D?0:(var51 < 0.0D?-1:1);\r\n if(var1 != null) {\r\n if(var10000 < 0) {\r\n var15 = (double)(-var11);\r\n }\r\n\r\n var44 = var15;\r\n var33 = (double)var11;\r\n if(var1 == null) {\r\n break label291;\r\n }\r\n\r\n double var52;\r\n var10000 = (var52 = var15 - var33) == 0.0D?0:(var52 < 0.0D?-1:1);\r\n }\r\n\r\n if(var10000 > 0) {\r\n var15 = (double)var11;\r\n }\r\n\r\n this.field_2998 += var15 * 0.10000000149011612D;\r\n this.field_3000 = class_1715.method_9579(this.field_3000);\r\n var44 = 180.0D;\r\n var33 = Math.atan2(var9, var30) * 180.0D / 3.141592653589793D;\r\n }\r\n\r\n label293: {\r\n var18 = var44 - var33;\r\n var20 = class_1715.method_9580(var18 - (double)this.field_3000);\r\n double var53;\r\n var10000 = (var53 = var20 - 50.0D) == 0.0D?0:(var53 < 0.0D?-1:1);\r\n if(var1 != null) {\r\n if(var10000 > 0) {\r\n var20 = 50.0D;\r\n }\r\n\r\n var44 = var20;\r\n var33 = -50.0D;\r\n if(var1 == null) {\r\n break label293;\r\n }\r\n\r\n double var54;\r\n var10000 = (var54 = var20 - -50.0D) == 0.0D?0:(var54 < 0.0D?-1:1);\r\n }\r\n\r\n if(var10000 < 0) {\r\n var20 = -50.0D;\r\n }\r\n\r\n var44 = this.field_3398 - this.field_2994;\r\n var33 = this.field_3399 - this.field_2995;\r\n }\r\n\r\n azw var38 = azw.method_5086(var44, var33, this.field_3400 - this.field_2996).method_5090();\r\n azw var23 = azw.method_5086((double)class_1715.method_9555(this.field_3000 * 3.1415927F / 180.0F), this.field_2998, (double)(-class_1715.method_9556(this.field_3000 * 3.1415927F / 180.0F))).method_5090();\r\n var17 = (float)(var23.method_5091(var38) + 0.5D) / 1.5F;\r\n var31 = var17;\r\n var10001 = 0.0F;\r\n if(var1 != null) {\r\n if(var17 < 0.0F) {\r\n var17 = 0.0F;\r\n }\r\n\r\n this.field_3349 *= 0.8F;\r\n var31 = class_1715.method_9558(this.field_2997 * this.field_2997 + this.field_2999 * this.field_2999) * 1.0F;\r\n var10001 = 1.0F;\r\n }\r\n\r\n float var41 = var31 + var10001;\r\n double var25 = Math.sqrt(this.field_2997 * this.field_2997 + this.field_2999 * this.field_2999) * 1.0D + 1.0D;\r\n var44 = var25;\r\n var33 = 40.0D;\r\n if(var1 != null) {\r\n if(var25 > 40.0D) {\r\n var25 = 40.0D;\r\n }\r\n\r\n this.field_3349 = (float)((double)this.field_3349 + var20 * (0.699999988079071D / var25 / (double)var41));\r\n this.field_3000 += this.field_3349 * 0.1F;\r\n var44 = 2.0D;\r\n var33 = var25 + 1.0D;\r\n }\r\n\r\n label171: {\r\n var12 = (float)(var44 / var33);\r\n var13 = 0.06F;\r\n this.method_3882(0.0F, -1.0F, var13 * (var17 * var12 + (1.0F - var12)));\r\n var34 = this;\r\n if(var1 != null) {\r\n if(this.field_3414) {\r\n this.method_3864(this.field_2997 * 0.800000011920929D, this.field_2998 * 0.800000011920929D, this.field_2999 * 0.800000011920929D);\r\n if(var1 != null) {\r\n break label171;\r\n }\r\n }\r\n\r\n var34 = this;\r\n }\r\n\r\n var34.method_3864(this.field_2997, this.field_2998, this.field_2999);\r\n }\r\n\r\n azw var27 = azw.method_5086(this.field_2997, this.field_2998, this.field_2999).method_5090();\r\n var14 = (float)(var27.method_5091(var23) + 1.0D) / 2.0F;\r\n var14 = 0.8F + 0.15F * var14;\r\n this.field_2997 *= (double)var14;\r\n this.field_2999 *= (double)var14;\r\n this.field_2998 *= 0.9100000262260437D;\r\n }\r\n\r\n this.field_3330 = this.field_3000;\r\n this.field_3404.field_3014 = this.field_3404.field_3015 = 3.0F;\r\n this.field_3406.field_3014 = this.field_3406.field_3015 = 2.0F;\r\n this.field_3407.field_3014 = this.field_3407.field_3015 = 2.0F;\r\n this.field_3408.field_3014 = this.field_3408.field_3015 = 2.0F;\r\n this.field_3405.field_3015 = 3.0F;\r\n this.field_3405.field_3014 = 5.0F;\r\n this.field_3409.field_3015 = 2.0F;\r\n this.field_3409.field_3014 = 4.0F;\r\n this.field_3410.field_3015 = 3.0F;\r\n this.field_3410.field_3014 = 4.0F;\r\n var34 = this;\r\n }\r\n\r\n var3 = (float)(var34.method_4317(5, 1.0F)[1] - this.method_4317(10, 1.0F)[1]) * 10.0F / 180.0F * 3.1415927F;\r\n var4 = class_1715.method_9556(var3);\r\n float var35 = -class_1715.method_9555(var3);\r\n float var19 = this.field_3000 * 3.1415927F / 180.0F;\r\n float var36 = class_1715.method_9555(var19);\r\n float var21 = class_1715.method_9556(var19);\r\n this.field_3405.method_3856();\r\n this.field_3405.method_3887(this.field_2994 + (double)(var36 * 0.5F), this.field_2995, this.field_2996 - (double)(var21 * 0.5F), 0.0F, 0.0F);\r\n this.field_3409.method_3856();\r\n this.field_3409.method_3887(this.field_2994 + (double)(var21 * 4.5F), this.field_2995 + 2.0D, this.field_2996 + (double)(var36 * 4.5F), 0.0F, 0.0F);\r\n this.field_3410.method_3856();\r\n this.field_3410.method_3887(this.field_2994 - (double)(var21 * 4.5F), this.field_2995 + 2.0D, this.field_2996 - (double)(var36 * 4.5F), 0.0F, 0.0F);\r\n var34 = this;\r\n if(var1 != null) {\r\n label163: {\r\n if(!this.field_2990.field_1832) {\r\n var34 = this;\r\n if(var1 == null) {\r\n break label163;\r\n }\r\n\r\n if(this.field_3315 == 0) {\r\n this.method_4319(this.field_2990.method_2155(this, this.field_3409.field_3004.method_7097(4.0D, 2.0D, 4.0D).method_7104(0.0D, -2.0D, 0.0D)));\r\n this.method_4319(this.field_2990.method_2155(this, this.field_3410.field_3004.method_7097(4.0D, 2.0D, 4.0D).method_7104(0.0D, -2.0D, 0.0D)));\r\n this.method_4320(this.field_2990.method_2155(this, this.field_3404.field_3004.method_7097(1.0D, 1.0D, 1.0D)));\r\n }\r\n }\r\n\r\n var34 = this;\r\n }\r\n }\r\n\r\n double[] var39 = var34.method_4317(5, 1.0F);\r\n double[] var40 = this.method_4317(0, 1.0F);\r\n var11 = class_1715.method_9555(this.field_3000 * 3.1415927F / 180.0F - this.field_3349 * 0.01F);\r\n var17 = class_1715.method_9556(this.field_3000 * 3.1415927F / 180.0F - this.field_3349 * 0.01F);\r\n this.field_3404.method_3856();\r\n this.field_3404.method_3887(this.field_2994 + (double)(var11 * 5.5F * var4), this.field_2995 + (var40[1] - var39[1]) * 1.0D + (double)(var35 * 5.5F), this.field_2996 - (double)(var17 * 5.5F * var4), 0.0F, 0.0F);\r\n int var42 = 0;\r\n\r\n label295: {\r\n while(true) {\r\n if(var42 < 3) {\r\n class_706 var43 = null;\r\n var10000 = var42;\r\n if(var1 == null) {\r\n break;\r\n }\r\n\r\n if(var42 == 0) {\r\n var43 = this.field_3406;\r\n }\r\n\r\n var10000 = var42;\r\n byte var37 = 1;\r\n if(var1 != null) {\r\n if(var42 == 1) {\r\n var43 = this.field_3407;\r\n }\r\n\r\n var10000 = var42;\r\n var37 = 2;\r\n }\r\n\r\n if(var10000 == var37) {\r\n var43 = this.field_3408;\r\n }\r\n\r\n double[] var26 = this.method_4317(12 + var42 * 2, 1.0F);\r\n var12 = this.field_3000 * 3.1415927F / 180.0F + this.method_4322(var26[0] - var39[0]) * 3.1415927F / 180.0F * 1.0F;\r\n var13 = class_1715.method_9555(var12);\r\n float var45 = class_1715.method_9556(var12);\r\n var14 = 1.5F;\r\n float var28 = (float)(var42 + 1) * 2.0F;\r\n var43.method_3856();\r\n var43.method_3887(this.field_2994 - (double)((var36 * var14 + var13 * var28) * var4), this.field_2995 + (var26[1] - var39[1]) * 1.0D - (double)((var28 + var14) * var35) + 1.5D, this.field_2996 + (double)((var21 * var14 + var45 * var28) * var4), 0.0F, 0.0F);\r\n ++var42;\r\n if(var1 != null) {\r\n continue;\r\n }\r\n }\r\n\r\n var34 = this;\r\n if(var1 == null) {\r\n break label295;\r\n }\r\n\r\n var10000 = this.field_2990.field_1832;\r\n break;\r\n }\r\n\r\n if(var10000 != 0) {\r\n return;\r\n }\r\n\r\n var34 = this;\r\n }\r\n\r\n var34.field_3414 = this.method_4323(this.field_3404.field_3004) | this.method_4323(this.field_3405.field_3004);\r\n }", "private void Initialized_Data() {\n\t\t\r\n\t}", "@Test\n\tpublic void testMakeSureVarVariablesCanShadowLetVariables()\n\t{\n\t\tString[] code = {\n\t\t\t\"let a = 1;\",\n\t\t \"let b = 2;\",\n\t\t \"var c = 3;\",\n\n\t\t \"function sup(a) {\",\n\t\t \"var b = 4;\",\n\t\t \"let c = 5;\",\n\t\t \"let d = 6;\",\n\t\t \"if (false) {\",\n\t\t \"var d = 7;\",\n\t\t \"}\",\n\t\t \"return b + c + a + d;\",\n\t\t \"}\",\n\n\t\t \"sup();\"\n\t\t};\n\t\t\n\t\tth.addError(1, 5, \"'a' is defined but never used.\");\n\t th.addError(2, 5, \"'b' is defined but never used.\");\n\t th.addError(3, 5, \"'c' is defined but never used.\");\n\t th.addError(9, 5, \"'d' has already been declared.\");\n\t\tth.test(code, new LinterOptions().set(\"esnext\", true).set(\"unused\", true).set(\"undef\", true).set(\"funcscope\", true));\n\t}", "private Stmt varDeclaration() {\n Token name = consume(IDENTIFIER, \"Expect variable name.\");\n Expr initializer = null;\n // Parse the initializer if an '=' is present. This branching allows initialization without declaration.\n if(match(EQUAL)) {\n initializer = expression();\n }\n\n consumeSemi(\"Expect ';' after variable declaration.\");\n return new Stmt.Var(name, initializer);\n }", "@Modified(author=\"Phil Brown\", summary=\"Added Method\")\n public void setupEndValues() {\n }", "public void method_1142(bdw var1) {\r\n super.method_651();\r\n this.field_987 = -16;\r\n this.field_971 = var1;\r\n }", "public void resetVariables(){\n\t\tthis.queryTriplets.clear();\n\t\tthis.variableList.clear();\n\t\tthis.prefixMap.clear();\n\t}", "public static void main(String[] args) {\n int static2 = 22;\n int _static = 22;\n int $tatic = 45;\n int staticVar = 23;\n\n int salary$ = 55;\n // int 1stMonthSalary = 55; --- ERROR, cannot start with number\n int $ = 10;\n int _ = 3;\n System.out.println(\"salary $ = \" + $); // these variable work....but not recommended\n System.out.println(\"weekly _ = \" + _);// these variable work....but not recommended\n // int number-of-friends = 400; --- cannot use dashes ----> ERROR\n\n //int number_of_friends = 500; ---- NOT CONVENTION\n int numberOfFriends = 500; // use this camel case\n\n\n\n\n\n\n\n\n\n }", "@AfterAll\n public static void afterEverything() {\n //Set all instance variable to null\n oneHalf = null;\n oneFourth = null;\n twoThirds = null;\n negOneHalf = null;\n negOneFourth = null;\n negThreeNinths = null;\n negEightTwelfths = null;\n zeroTenth = null;\n zero = null;\n one = null;\n negOne = null;\n }", "private void extractVariables(String codeString) {\n // Remove array initializations\n codeString = arrayInitializer.matcher(codeString).replaceAll(\"\");\n \n // Merge multi declarations and instantiations\n codeString = codeString.replace(\" = \", \"=\").replace(\" , \", \",\");\n \n // Keep only declaration and initialization part\n String[] tmp = codeString.split(\" \");\n if (tmp.length > 1) {\n codeString = tmp[tmp.length - 2];\n \n // Split per declaration\n String[] declarations = codeString.split(\",\");\n for (String declaration : declarations) {\n int endIndex = declaration.indexOf('=');\n if (endIndex != -1) {\n declaration = declaration.substring(0, endIndex);\n }\n declaration = declaration.trim();\n \n // Check that we did not accidentally extracted a keyword, parenthesis or other language elements.\n if (!KEYWORDS.contains(declaration)) {\n addResult(new GlobalVariable(currentFile, declaration));\n }\n }\n }\n }", "public void mo97908d() {\n }", "public void mo6944a() {\n }" ]
[ "0.6759361", "0.6568837", "0.62458223", "0.61133546", "0.60982347", "0.6087512", "0.60586846", "0.5882926", "0.5873854", "0.5771458", "0.5769804", "0.57594293", "0.57517105", "0.57495594", "0.5749265", "0.5725298", "0.57189494", "0.5666249", "0.5654246", "0.5628506", "0.5626967", "0.56191045", "0.56091386", "0.5567616", "0.55607074", "0.55529606", "0.55490804", "0.5538598", "0.55365247", "0.5529146", "0.5518556", "0.5514004", "0.5513467", "0.55110264", "0.55010474", "0.5498994", "0.5495076", "0.54937106", "0.54838836", "0.5474374", "0.5459003", "0.5441168", "0.5438627", "0.54246694", "0.5419703", "0.54133976", "0.54094774", "0.5409039", "0.5399774", "0.5398901", "0.5392156", "0.53920305", "0.5364239", "0.53492737", "0.53465533", "0.53422683", "0.53402853", "0.5336927", "0.5335425", "0.5334371", "0.53304267", "0.5329041", "0.53212464", "0.53177804", "0.53096867", "0.53052056", "0.53024346", "0.52943337", "0.52930695", "0.52907306", "0.5287984", "0.52876025", "0.52872366", "0.52839994", "0.52818817", "0.5273854", "0.52727395", "0.52692044", "0.5266803", "0.5264341", "0.52640367", "0.5263732", "0.5248241", "0.5242", "0.524104", "0.5240399", "0.5240399", "0.52325314", "0.52293205", "0.52283555", "0.5227368", "0.52226347", "0.52196854", "0.5219551", "0.52147174", "0.521445", "0.5211866", "0.52117723", "0.5207038", "0.520446", "0.52021974" ]
0.0
-1
Method name: modifyExec Description: Modify Execute Remark: void
private void modifyExec(){ try { List<HashMap<String,String>> selectedDatas=ViewUtil.getSelectedData(jTable1); if(selectedDatas.size()!=1){ JOptionPane.showMessageDialog(null, "Please select 1 item to Modify", "Error", JOptionPane.ERROR_MESSAGE); return; } Map<String,String>selectedMap=NameConverter.convertViewMap2PhysicMap(selectedDatas.get(0), "Discount"); DiscountBean selectedDiscountBean=new DiscountBean(); BeanUtil.transMap2Bean(selectedMap, selectedDiscountBean); ViewManager.goToSubFunctionScreen(new AddDiscountPanel(selectedDiscountBean,AddDiscountPanel.MODIFY_DISCOUNT)); } catch (ServiceNotFoundException e) { e.printStackTrace(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract void exec();", "public void exec();", "public abstract void compute(String execID, boolean recompute);", "protected void execute() {\n\t\t\n\t}", "public void execute(){\n\t\t\n\t}", "protected void execute() {}", "@Override\n\tprotected void doExecute() throws InstructionExecutionException {\n\t\n\t}", "public void Execute() {\n\n }", "void exec(Env e, AST[] args) { throw H2O.unimpl(\"No exec method for `\" + this.opStr() + \"` during `apply` call\"); }", "protected abstract String executeCommandAndModifyOutput(List<String> args, String originalInput);", "protected void execute() {\n\n\t}", "protected void execute()\n\t{\n\t}", "@Override\n public void Execute() {\n\n }", "public void setExecMethod(final String execMethod)\n {\n this.execMethod = execMethod.toUpperCase();\n }", "void excuteCommand(Command commandToExecute, String [] params);", "public void execute() {\n\t\t\n\t}", "@Override\r\n\tprotected void processExecute() {\n\r\n\t}", "protected void execute() {\n\t}", "protected abstract void execute();", "public void execute() {\r\n\t\r\n\t}", "protected void executeVmCommand() {\n }", "protected void execute() {\n \t\n }", "protected void execute() {\n \t\n }", "protected final boolean exec() {\n/* 94 */ this.result = compute();\n/* 95 */ return true;\n/* */ }", "@Override\n public void restart_execute(final RestartMethod method) {\n String _hostname = this.compute.getHostname();\n String _plus = (\"EXECUTE COMMAND: machine restart \" + _hostname);\n InputOutput.<String>println(_plus);\n }", "protected void execute() {\r\n }", "@Override\n\tprotected void run() {\n\t\tUtils.executeAndWaitForCommand(this.getHMetisExec());\n\t}", "abstract protected void execute();", "public void execute() {\n\n\t}", "protected void execute() {\n }", "protected void execute() {\n }", "protected void execute() {\n }", "protected void execute() {\n }", "protected void execute() {\n }", "protected void execute() {\n }", "protected void execute() {\n }", "protected void execute() {\n }", "protected void execute() {\n }", "protected void execute() {\n }", "protected void execute() {\n }", "protected void execute() {\n }", "@Override\r\n public void syncExecute(String script)\r\n {\n\r\n }", "protected void setExec(String execID, int numCalls, int numSt,\r\n\t\t\t\t\t\t\tint numThrows, int numCaught, int covCalls,\r\n\t\t\t\t\t\t\tint covSt, int covThrows, int covCaught) {\r\n\r\n\t\tExecInfo ei = (ExecInfo) execInfos.get(execID);\r\n\t\tif (ei == null)\r\n\t\t\tei = new ExecInfo();\r\n\t\tei.numSt = numSt;\r\n\t\tei.numCalls = numCalls;\r\n\t\tei.numThrows = numThrows;\r\n\t\tei.numCaught = numCaught;\r\n\t\tei.covSt = covSt;\r\n\t\tei.covCalls = covCalls;\r\n\t\tei.covThrows = covThrows;\r\n\t\tei.covCaught = covCaught;\r\n\t}", "private void changeExecPermission(String permission, String filePath) {\n\t\t// TODO Auto-generated method stub\n\t\t// change permission to the uploaded science app for execute\n\t\t//String command = \"sudo chmod +\" + permission + \" \" + filePath;\n\t\tString command = \"chmod +\" + permission + \" \" + filePath;\n\t\ttry {\n\t\t\t// Create a Runtime instance.\n\t\t\tRuntime rt = Runtime.getRuntime();\n\t\t\t// Execute the command.\n\t\t\tProcess p1 = rt.exec(command);\n\t\t\tSystem.out.println(command);\n\t\t\t// Read the input stream.\n\t\t\tInputStream instd = p1.getInputStream();\n\t\t\t// Create a buffered reader\n\t\t\tBufferedReader buf_reader = new BufferedReader(\n\t\t\t\t\tnew InputStreamReader(instd));\n\t\t\t// Declare a temporary variable to contain a line.\n\t\t\tString line = \"\";\n\t\t\t// Declare a temporary variable to store a line count.\n\t\t\t// Begin to read each line from given output (or given file).\n\t\t\twhile ((line = buf_reader.readLine()) != null) {\n\t\t\t\t// Increment line count.\n\t\t\t\t// System.out.println(line);\n\t\t\t}\n\t\t\t// Close the buffered reader instance.\n\t\t\tbuf_reader.close();\n\t\t\t// Let's wait for the Runtime instance to be done.\n\t\t\tp1.waitFor();\n\n\t\t\tInputStream errstd = p1.getErrorStream();\n\t\t\tBufferedReader buf_err_reader = new BufferedReader(\n\t\t\t\t\tnew InputStreamReader(errstd));\n\t\t\twhile ((line = buf_err_reader.readLine()) != null) {\n\t\t\t\tSystem.err.println(line);\n\t\t\t}\n\t\t\tbuf_err_reader.close();\n\t\t} catch (Exception ex) {\n\t\t\t// ex.printStackTrace();\n\t\t\t// Print out any message when an error(s) occurs.\n\t\t\tSystem.err.println(ex.getMessage());\n\t\t}\n\t}", "protected void execute()\n {\n }", "public abstract void execute();", "public abstract void execute();", "public abstract void execute();", "public abstract int execUpdate(String query) ;", "@Override\n\tpublic void execute() {\n\t\trecevier.doSomething();\n\t}", "protected final boolean exec()\n/* */ {\n/* 731 */ compute();\n/* 732 */ return false;\n/* */ }", "@Override\n\tpublic void exec() {\n\t\tauto.changerEtat(\"trS\");\n\t}", "protected void execute() {\n\n\n \n }", "public void exec(String s) {\n }", "public void execute();", "public void execute();", "public void execute();", "public void execute();", "@Override\n public void execute() throws BuildException {\n if (!isValidOs()) {\n return;\n }\n\n checkConfiguration();\n runExec(prepareExec());\n }", "void execute();", "void execute();", "void execute();", "void execute();", "void execute();", "void execute();", "void execute();", "public void execute() {\n\t\t\r\n\t}", "public void execute() {\n\t\t\r\n\t}", "public void execute() {\n\t\t\r\n\t}", "@Override\n\tpublic void setExecute(long execute) {\n\t\t_scienceApp.setExecute(execute);\n\t}", "void execute() throws CommandExecutionException;", "void execute(Executable executable);", "protected void execute() {\n\t\t//execution handled by pid thread\n\t}", "public void setExecute(ValueExpression execute) {\n this.execute = execute;\n }", "public void execute(){\n\n }", "protected abstract void executeHelper();", "private void executeCommand() {\n\t\texpression += operand;\n\t\tdouble execute = command.execute(expression);\n\t\toperand = new StringBuilder(Double.toString(execute));\n\t\tfirstOperand = true;\n\t}", "@Override\r\n\tprotected void execute() {\r\n\t}", "public void execute() {\n\t\t/* Create a new thread and kick it off */\n\t\tThread tempThread = new Thread(exec, \"ROSpec Executer\");\n\t\ttempThread.start();\n\t}", "protected void execute() {\n \t// literally still do nothing\n }", "public void execute() {\n }", "@Override\n\tpublic void execute() {\n\t\t\n\t}", "@Override\n public void execute(String[] args) {\n\n }", "public abstract String initExecute() throws Exception;", "public abstract void recompileRun(int opcode);", "@Override\r\n\tpublic void execute() {\n }", "abstract /*package*/ IValue executeRVMProgram(String moduleName, String uid_main, IValue[] posArgs, Map<String,IValue> kwArgs);", "@Override\n\tpublic String execute() throws Exception {\n\t\tResfun rol=new Resfun();\n\t\trol.setCaction(caction);\n\t\trol.setCname(cname);\n\t\trol.setPname(pname);\n\t\trol.setResfunid(resfunid);\n\t\tuserService.upResfun(rol);\n\t\taddActionMessage(\"数据修改成功!\");\n\t\treturn SUCCESS;\n\t}", "@Override\n public void execute(RuntimeStep exe, RuntimePlan plan) {\n }", "public void setExecEnable(Boolean value) {\n this.execEnable = value;\n }", "public void execute() throws MissingDescriptionException, InvalidCommandException {\n }", "@Override\r\n public void execute()\r\n {\r\n printInvalidCommandMessage();\r\n }", "public void exec(PyObject code) {\n }", "public abstract int execute();", "public void executeUpdate();", "public void execute() {\n setExecuted(true);\n }", "public void exec(OxProgram pgm) {\n }", "void executeUpdate();", "private void cmdExec(String line, boolean verbose) throws NoSystemException {\n \t\n \tif (line.length() == 0) {\n \t\tLog.error(\"ERROR: Statement expected.\");\n \t\treturn;\n \t}\n \t\n \tMSystem system = system();\n \tMStatement statement = ShellCommandCompiler.compileShellCommand(\n \t\t\tsystem.model(),\n \t\t\tsystem.state(),\n \t\t\tsystem.getVariableEnvironment(),\n \t\t\tline,\n \t\t\t\"<input>\",\n \t\t\tnew PrintWriter(System.err),\n \t\t\tverbose);\n \t\n \tif (statement == null) {\n \t\treturn;\n \t}\n \t\n\t\tLog.trace(this, \"--- Executing shell command: \" + statement.getShellCommand());\n\t\t\n \n\t\ttry {\n\t\t\tif ((statement instanceof MEnterOperationStatement)\n\t\t\t\t\t|| (statement instanceof MExitOperationStatement)) {\n\t\t\t\t\n\t\t\t\tsystem.evaluateStatement(statement, false, true);\n\t\t\t} else {\n\t\t\t\tsystem.evaluateStatement(statement);\n\t\t\t}\n\t\t} catch (MSystemException e) {\n\t\t\tString message = e.getMessage();\n\t\t\t\n\t\t\tif ((e.getCause() != null) && \n\t\t\t\t\t(e.getCause() instanceof EvaluationFailedException)) {\n\t\t\t\t\n\t\t\t\tEvaluationFailedException exception = \n\t\t\t\t\t(EvaluationFailedException)e.getCause();\n\t\t\t\n\t\t\t\tmessage = exception.getMessage(statement);\n\t\t\t}\n\t\t\t\n\t\t\tLog.error(message);\n\t\t} finally {\n\t\t\tfSession.evaluatedStatement(statement);\n\t\t}\n }", "void execute()\n\t{\n\t\tVM.top++;\n\t\tVM.opStack[VM.top] = arg();\n\t\tVM.pc++;\n\t}" ]
[ "0.6755796", "0.66413003", "0.65969986", "0.62165964", "0.6193379", "0.61513627", "0.6147141", "0.6087982", "0.607596", "0.6056086", "0.60530955", "0.60229796", "0.6021431", "0.60175", "0.60101324", "0.60063833", "0.59797627", "0.5972809", "0.5958239", "0.5954217", "0.5928432", "0.58736897", "0.58736897", "0.58671373", "0.5859319", "0.58581686", "0.5849595", "0.58359957", "0.5833417", "0.58148086", "0.58148086", "0.58148086", "0.58148086", "0.58148086", "0.58148086", "0.58148086", "0.58148086", "0.58148086", "0.58148086", "0.58148086", "0.58148086", "0.5797166", "0.5794435", "0.57850075", "0.5768797", "0.57495445", "0.57495445", "0.57495445", "0.5729535", "0.57237804", "0.5702214", "0.56986135", "0.5697983", "0.56967795", "0.5693375", "0.5693375", "0.5693375", "0.5693375", "0.5691114", "0.56854385", "0.56854385", "0.56854385", "0.56854385", "0.56854385", "0.56854385", "0.56854385", "0.5675668", "0.5675668", "0.5675668", "0.5675558", "0.5653522", "0.56466854", "0.56438994", "0.56434524", "0.5627048", "0.5624833", "0.56243426", "0.56182796", "0.5588599", "0.5580952", "0.55775464", "0.55710155", "0.55675006", "0.5560534", "0.5553772", "0.55360204", "0.5514117", "0.5509884", "0.55078584", "0.5503224", "0.55005306", "0.54916525", "0.54863775", "0.5485854", "0.54842925", "0.54730415", "0.5469638", "0.5467174", "0.54649824", "0.54644877" ]
0.55894274
78
Method name: deleteExec Description: Delete Execute Remark: void
private void deleteExec(){ List<HashMap<String,String>> selectedDatas=ViewUtil.getSelectedData(jTable1); if(selectedDatas.size()<1){ JOptionPane.showMessageDialog(null, "Please select at least 1 item to delete", "Error", JOptionPane.ERROR_MESSAGE); return; } int options = 1; if(selectedDatas.size() ==1 ){ options = JOptionPane.showConfirmDialog(null, "Are you sure to delete this Item ?", "Info",JOptionPane.YES_NO_OPTION); }else{ options = JOptionPane.showConfirmDialog(null, "Are you sure to delete these "+selectedDatas.size()+" Items ?", "Info",JOptionPane.YES_NO_OPTION); } if(options==1){ return; } for(HashMap<String,String> map:selectedDatas){ discountService.deleteDiscountByMap(NameConverter.convertViewMap2PhysicMap(map, "Discount")); } this.initDatas(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void execute() {\n deleteNextEntry();\n }", "public void delete()\n {\n call(\"Delete\");\n }", "private CommandResult executeDeleteCommand(Command userCommand) {\n int taskNumber;\n String deletedTask;\n try {\n taskNumber = Integer.parseInt(userCommand.getCommandDescription());\n deletedTask = tasks.get(taskNumber - 1).toString();\n tasks.remove(taskNumber - 1);\n } catch (NumberFormatException | IndexOutOfBoundsException e) {\n return new CommandResult(userCommand, CommandResult.EXECUTION_FAIL, CommandResult.INVALID_NUMBER);\n }\n return new CommandResult(userCommand, CommandResult.EXECUTION_SUCCESS, deletedTask);\n }", "@Override\n\tpublic long execute() {\n\t\treturn database.createCommand()\n\t\t\t\t.appendRaw(\"DELETE FROM \")\n\t\t\t\t.appendName(aspect.schemaName)\n\t\t\t\t.appendWhere(this.filter)\n\t\t\t\t.executeNonQuery();\n\t}", "@Override\r\n\t\r\n\tpublic void execute() {\n\t\r\n\t\teventsCalendar.delete();\r\n\t}", "public void execute() {\n if (DeleteTableCommand.confirmDeletion()) {\n\n TopsoilTabPane topsoilTabPane = (TopsoilTabPane) topsoilTab.getTabPane();\n topsoilTabPane.getTabs().remove(topsoilTabPane.getSelectedTab());\n }\n\n }", "void deleteCommand(String commandID);", "@Override\n public String execute(TaskManager tm, Ui ui, Storage storage) throws DukeException {\n String[] commandDetails = command.split(\" \", 2);\n // Handles empty delete command\n if (commandDetails.length == 1) {\n throw new DukeException(\"Delete Index not provided!\");\n }\n\n assert commandDetails.length == 2;\n try {\n int delIndex = Integer.parseInt(commandDetails[1]) - 1;\n Task delTask = tm.getTask(delIndex);\n tm.deleteTask(delIndex);\n postCommandSave(tm, storage);\n return (\"Task deleted: \" + delTask);\n } catch (NumberFormatException e) {\n throw new DukeException(\"Index is not a number!\");\n }\n }", "@Override\n\tpublic void delete(String... args) throws SQLException {\n\t\t\n\t}", "protected abstract void doDelete();", "private void delete() {\n\n\t}", "@Override\n public void run() {\n\n String filename = \"PurgeTable\";\n\n PreparedStatement stmt1 = null;\n try {\n stmt1 = conn.prepareStatement(\"delete from \" + filename);\n stmt1.executeUpdate();\n System.out.println(\"Deletion successful\");\n } catch (SQLException e) {\n e.printStackTrace();\n }\n\n }", "@Override\r\n\tpublic void delete(TQssql sql) {\n\r\n\t}", "public abstract void delete() throws ArchEException;", "public void delete() {\n\n\t}", "@Override\n public String execute(TaskList tasks, AccessHardDisk storage) throws IOException {\n return tasks.delete(index, storage);\n }", "@Override\n public CommandResult execute(String[] inputs, ExerciseList exerciseList,\n String filePath, WorkoutSessionStorage workoutSessionStorage,\n boolean[] hasEndedWorkoutSessions) {\n assert (inputs != null && exerciseList != null && filePath != null\n && workoutSessionStorage != null && hasEndedWorkoutSessions != null) : \"File Corrupted\";\n String result = \"\";\n try {\n int removeIndex = WorkoutSessionParser.deleteParser(inputs);\n Exercise deletedExercise = exerciseList.exerciseList.get(removeIndex - 1);\n exerciseList.exerciseList.remove(removeIndex - 1);\n workoutSessionStorage.writeToStorage(filePath, exerciseList);\n result = WorkoutSessionUi.deleteExerciseSuccess(deletedExercise);\n } catch (IOException e) {\n return new CommandResult(WorkoutSessionUi.PRINT_ERROR);\n } catch (ArrayIndexOutOfBoundsException e) {\n return new CommandResult(WorkoutSessionUi.DELETE_FORMAT_ERROR);\n } catch (IndexOutOfBoundsException e) {\n return new CommandResult(WorkoutSessionUi.DELETE_INDEX_ERROR);\n } catch (SchwarzeneggerException e) {\n return new CommandResult(WorkoutSessionUi.DELETE_FORMAT_ERROR);\n }\n return new CommandResult(result, ExecutionResult.OK);\n }", "@Override\r\n\tpublic void deleteByTask(int taskId) {\n\t\tString sql = \"DELETE FROM executetask WHERE et_task_id = ?\";\r\n\t\tupdate(sql,taskId);\r\n\t}", "@Override\n public void execute(TaskList tasks, Ui ui, Storage storage) throws DukeException {\n Task taskDeleted = tasks.deleteTask(index - 1);\n ui.showTaskDeleted(taskDeleted, tasks.size());\n storage.saveTaskList(tasks);\n }", "@Override\n\tpublic String execute() throws Exception {\n\t\tUserDao userDao = DaoFactory.getUserDao();\n\t\tboolean i = userDao.delete(id);\n\t\tif(i)\n\t\t\treturn \"success\";\n\t\telse\n\t\t\treturn \"input\";\n\t}", "@Override\r\n\tpublic void delete(int memberId,int taskId) {\n\t\tString sql = \"DELETE FROM executetask WHERE et_member_id = ? and et_task_id = ?\";\r\n\t\tupdate(sql,memberId,taskId);\r\n\t}", "public boolean eliminarRegistro(int codigoCiclo, int codigoPlan, int codigoMeta) {\n/* */ try {\n/* 484 */ String s = \"delete from cal_plan_metas\";\n/* 485 */ s = s + \" where codigo_ciclo=\" + codigoCiclo;\n/* 486 */ s = s + \" and codigo_plan=\" + codigoPlan;\n/* 487 */ s = s + \" codigo_meta=\" + codigoMeta;\n/* 488 */ return this.dat.executeUpdate(s);\n/* */ \n/* */ }\n/* 491 */ catch (Exception e) {\n/* 492 */ e.printStackTrace();\n/* 493 */ Utilidades.writeError(\"CalPlanMetasFactory:eliminarRegistro\", e);\n/* */ \n/* 495 */ return false;\n/* */ } \n/* */ }", "@Override\n\tpublic void delete(String code) {\n\n\t}", "public void delete(){\r\n\r\n }", "public static void execute(String inputTask, ArrayList<Task> list) {\n String deleteIndex = inputTask.substring(DELETE_REMOVAL);\n TaskList.printDelete(list.get((Integer.parseInt(deleteIndex)-1)), list.size()-1);\n list.remove((Integer.parseInt(deleteIndex)-1));\n }", "@Override\n public String execute(TaskList taskList, Ui ui, DukeStorage storage) {\n int taskNo = Integer.parseInt(afterCommand) - 1;\n if (taskNo >= taskList.getTasksSize() || taskNo < 0) {\n return ui.throwDukeException(new DukeException(\"Please enter a valid task no!\"));\n }\n\n Task deletedTask = taskList.get(taskNo);\n taskList.delete(taskNo, true);\n return ui.displayDeletedTask(deletedTask, taskList.getTasksSize(), false);\n }", "public String eliminar()\r\n/* 121: */ {\r\n/* 122: */ try\r\n/* 123: */ {\r\n/* 124:149 */ this.servicioDimensionContable.eliminar(this.dimensionContable);\r\n/* 125:150 */ addInfoMessage(getLanguageController().getMensaje(\"msg_info_eliminar\"));\r\n/* 126:151 */ cargarDatos();\r\n/* 127: */ }\r\n/* 128: */ catch (Exception e)\r\n/* 129: */ {\r\n/* 130:153 */ addErrorMessage(getLanguageController().getMensaje(\"msg_error_eliminar\"));\r\n/* 131:154 */ LOG.error(\"ERROR AL ELIMINAR DATOS\", e);\r\n/* 132: */ }\r\n/* 133:156 */ return \"\";\r\n/* 134: */ }", "@Override\n\t\tpublic void delete() {\n\t\t\tSystem.out.println(\"새로운 삭제\");\n\t\t}", "@Override\r\n\tpublic int delete() throws Exception {\n\t\treturn 0;\r\n\t}", "private Delete() {}", "private Delete() {}", "public void delete(String so_cd);", "public void execute() throws XMLBuildException {\r\n\t\tResultSet r = null;\r\n\t\tQuery query = (Query) getParent();\r\n\t\tconnection = query.findConnection(connectionString);\r\n\t\t//log.debug(\"connection = \" + this.connection);\r\n\t\tif (connection == null) {\r\n\t\t\tthrow new XMLBuildException(\"connection not found\", this);\r\n\t\t}\r\n\t\t\r\n\t\ttry {\r\n\t\t\tc = connection.getConnection();\r\n\t\t\tstmt = c.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE,\r\n ResultSet.CONCUR_UPDATABLE);\r\n\t\t}\r\n\t\tcatch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\tthrow new XMLBuildException(e.getMessage(), this);\r\n\t\t}\r\n\t\t// Prepare delete query -- don't actually delete anything yet\r\n\r\n\t\tif (printCreateTable)\r\n\t\t\tprintCreateTable();\r\n\t\t//\r\n\t\t// Delete First stuff goes here\r\n\t\t//\r\n\t\tif (deleteFirst != null) {\r\n\t\t\tlog.debug(\"fields = \" + fields);\r\n\t\t\tStringBuffer deleteFirstSelect = new StringBuffer(\"\");\r\n\t\t\tStringBuffer deleteFirstSQL = new StringBuffer(\"delete from \" + table + \" where \");\r\n\t\t\tfor (int i = 0; i < deleteFirst.length; i++) {\r\n\t\t\t\tField f = fields.get(deleteFirst[i]);\r\n\t\t\t\tif (f == null) {\r\n\t\t\t\t\tthrow new XMLBuildException(\"field \" + deleteFirst[i] +\r\n\t\t\t\t\t\t\t\" from deleteFirst does not exist\", this);\r\n\t\t\t\t}\r\n\t\t\t\tdeleteFirstSQL.append(\"[\" + f.getFieldName() + \"] = ? and \");\r\n\t\t\t\tdeleteFirstSelect.append(\", [\" + f.getFieldName() + \"]\");\r\n\t\t\t}\r\n\t\t\tdeleteFirstSQL.setLength(deleteFirstSQL.length()-4);\r\n\t\t\tthis.deleteFirstSQL = deleteFirstSQL.toString();\r\n\t\t\tlog.debug(\"Delete first SQL = \" + this.deleteFirstSQL);\t\r\n\r\n\t\t\tString delFirstQuery = \"select \" + deleteFirstSelect.substring(2) + \r\n\t\t\t\t\" from \" + table + \" where 1=0\";\r\n\t\t\t\r\n\t\t\ttry {\r\n\t\t\t\tr = stmt.executeQuery(delFirstQuery);\r\n\t\t\t\tResultSetMetaData m = r.getMetaData();\r\n\t\t\t\tfor (int i = 0; i < deleteFirst.length; i++) {\r\n\t\t\t\t\tdeleteFirstTypes.put(m.getColumnName(i+1).toUpperCase(), \r\n\t\t\t\t\t\t\tnew LoadParameter(i+1, m.getColumnType(i+1)));\r\n\t\t\t\t}\r\n\t\t\t\tr.close();\r\n\t\t\t\tlog.debug(\"del first sql = \" + deleteFirstSQL);\r\n\t\t\t\tpstmt = c.prepareStatement(deleteFirstSQL.toString());\r\n\t\t\t}\r\n\t\t\tcatch (SQLException s) {\r\n\t\t\t\tlog.debug(\"query = \" + delFirstQuery);\r\n\t\t\t\tthrow new XMLBuildException(\"deleteFirst does not look like a valid comma separated list of fields in \" + table, this);\r\n\t\t\t}\r\n\t\t}\r\n\t\tlog.debug(\"deleteFirstTypes = \" + deleteFirstTypes);\r\n\t\tif (truncate)\r\n\t\t\ttruncateTable(stmt);\r\n\t\t//parse.execute();\r\n\t\ttry {\r\n\t\t\tr.close();\r\n\t\t} catch (SQLException e1) {\r\n\t\t\te1.printStackTrace();\r\n\t\t}\r\n\t\ttry {\r\n\t\t\tstmt.close();\r\n\t\t} catch (SQLException e1) {\r\n\t\t\te1.printStackTrace();\r\n\t\t}\r\n\t\ttry {\r\n\t\t\tc.close();\r\n\t\t}\r\n\t\tcatch (Exception e) {\r\n\t\t\tthrow new XMLBuildException(e.getMessage(), this);\r\n\t\t}\r\n\t}", "public abstract void delete();", "public abstract void delete();", "private void executeDelete(Object key, String query) {\r\n\t\tlogger.entering(CLASSNAME, \"executeDelete\", new Object[] {key, query});\r\n\t\tConnection conn = null;\r\n\t\tPreparedStatement statement = null;\r\n\t\ttry {\r\n\t\t\tconn = getConnection();\r\n\t\t\tstatement = conn.prepareStatement(query);\r\n\t\t\tstatement.setObject(1, key);\r\n\t\t\tstatement.executeUpdate();\r\n\r\n\t\t} catch (SQLException e) {\r\n\t\t\tthrow new PersistenceException(e);\r\n\t\t} finally {\r\n\r\n\t\t\tcleanupConnection(conn, null, statement);\r\n\t\t}\r\n\t\tlogger.exiting(CLASSNAME, \"executeDelete\");\r\n\t}", "@Override\n\tpublic String deleteStatement() throws Exception {\n\t\treturn null;\n\t}", "public void operationDelete() {\n\r\n\t\tstatusFeldDelete();\r\n\t}", "void removeExecution(ExecutionContext context, int exeId) throws ExecutorException;", "public void delete() {\n\t\tcmd = new DeleteCommand(editor);\n\t\tinvoker = new MiniEditorInvoker(cmd);\n\t\tinvoker.action();\n\t}", "void deleteTask( org.openxdata.server.admin.model.TaskDef task, AsyncCallback<Void> callback );", "@Override\n\tpublic String Delete(String[] args) throws RemoteException {\n\t\tSystem.out.println(\"Trying to Delete with args: \" + args[2]);\n\t\treturn null;\n\t}", "@Override\r\n\tpublic void deleteByMember(int memberId) {\n\t\tString sql = \"DELETE FROM executetask WHERE et_member_id = ?\";\r\n\t\tupdate(sql,memberId);\r\n\t}", "@Test\r\n\tpublic void testExecuteCommandsDeleteAdl() throws Exception {\r\n\t\t\r\n\t\tadvertising.executeCommand(advertising, \"adl delete --Name L1-r-medical\");\r\n\t\tassertTrue(\"adc all\", true);\r\n\t\t\r\n\t}", "public void delete() {\n\n }", "int deleteByPrimaryKey(String depCode);", "public static void main_delete(String args[]){\n\t//public static void main(String args[]){\n\t\tQueryResponse solr_response = null;\n\n\t\tSolrConnection tmp_conn = new SolrConnection();\n\t\ttmp_conn.setSolrURL(\"http://localhost:8983/solr/Test1\");\n\t\t\n\t\tHashMap<String,String> params = new HashMap<String,String>();\n\t\tparams.put(\"rows\", \"16\");\n\t\t//tmp_conn.resetQueryParams();\n\t\ttmp_conn.setQueryParams(params);\n\t\t//tmp_conn.setQueryParams(\"q\",\"id:\"+QueryParser.escape(\"com.xinhuanet.js.www:http/2013-10/14/c_117706867_16.htm\"));\n\t\t\n\t\ttry {\n\t\t\tsolr_response = tmp_conn.getContent();\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(e);\n\t\t}\n\t\tfor (SolrDocument doc:solr_response.getResults()){\n\t\t\t//String id = doc.getFieldValue(\"id\").toString();\n\t\t\n\t\tList<String> ids = new ArrayList<String>();\n\t\t//ids.add(\"3\");\n\t\t//ids.add(\"8\");\n\t\t//ids.add(\"7\");\n\t\tids.add(doc.getFieldValue(\"id\").toString());\n\t\ttmp_conn.deleteContentById(ids);\n\t\t}\n\t}", "void excuteCommand(Command commandToExecute, String [] params);", "public void exec();", "public void delete();", "public void delete();", "public void delete();", "public void delete();", "public void delete();", "public void delete();", "public void delete(String arg0) {\n\t\t\n\t}", "@Override\r\n\tpublic GlobalResult deleteEquipt(String machineno,String fstarttime) {\n\t\t\r\n\t\tint deleteByPrimaryKey = faultymachine.deleteByPrimaryKey(machineno,fstarttime);\r\n\t\tif(deleteByPrimaryKey==0) {\r\n\t\t\treturn new GlobalResult(200, \"删除失败\", null);\r\n\t\t}else {\r\n\t\t\treturn new GlobalResult(200, \"删除成功\", null);\r\n\t\t}\r\n\t}", "public String execute() throws SQLException {\n\t\t/*conn = DataBase.getConnection();\n\t\tst = conn.createStatement();\n\t\tString sql=\"drop table user\";\n\t\tst.execute(sql);*/\n\t\treturn \"SUCCESS\";\n\n\t}", "private CommandResult deleteLesson() throws KolinuxException {\n timetable.executeDelete(parsedArguments);\n logger.log(Level.INFO, \"User has deleted\" + parsedArguments[0].toUpperCase()\n +\n \" from the timetable.\");\n return new CommandResult(parsedArguments[0].toUpperCase()\n +\n \" \" + parsedArguments[1].toUpperCase() + \" \" + parsedArguments[3] + \" \"\n +\n parsedArguments[2].toLowerCase()\n +\n \" has been deleted from timetable\");\n }", "int deleteByExample(CodeBuildProcedureExample example);", "@Override\n\tpublic void delete(String arg0) {\n\t\t\n\t}", "public void delete( int nIdSuggestSubmit, Plugin plugin )\n {\n DAOUtil daoUtil = new DAOUtil( SQL_QUERY_DELETE, plugin );\n daoUtil.setInt( 1, nIdSuggestSubmit );\n daoUtil.executeUpdate( );\n daoUtil.free( );\n }", "public void delete(String arg0) {\n\n\t}", "public static void scriptDelete() {\n List<BeverageEntity> beverages = (List<BeverageEntity>) adminFacade.getAllBeverages();\n for (int i = 0; i < beverages.size(); i++) {\n System.out.println(\"delete : \" + beverages.get(i));\n adminFacade.removeBeverage(beverages.get(i));\n }\n List<DecorationEntity> decos = (List<DecorationEntity>) adminFacade.getAllDecorations();\n for (int i = 0; i < decos.size(); i++) {\n System.out.println(\"delete : \" + decos.get(i));\n adminFacade.removeDecoration(decos.get(i));\n }\n\n /* Check that there isn't any other cocktails, and delete remaining */\n List<CocktailEntity> cocktails = (List<CocktailEntity>) adminFacade.getAllCocktails();\n if (cocktails.size() > 0) {\n System.err.println(\"Les cocktails n'ont pas été tous supprimés... \"\n + cocktails.size() + \" cocktails restants :\");\n }\n for (int i = 0; i < cocktails.size(); i++) {\n CocktailEntity cocktail = adminFacade.getCocktailFull(cocktails.get(i));\n System.err.println(cocktail.getName() + \" : \"\n + cocktail.getDeliverables());\n adminFacade.removeCocktail(cocktail);\n }\n\n /* Remove client accounts */\n List<ClientAccountEntity> clients = (List<ClientAccountEntity>) adminFacade.getAllClients();\n for (int i = 0; i < clients.size(); i++) {\n adminFacade.removeClient(clients.get(i));\n }\n\n /* Remove addresses */\n List<AddressEntity> addresses = (List<AddressEntity>) adminFacade.getAllAddresses();\n for (int i = 0; i < addresses.size(); i++) {\n adminFacade.removeAddress(addresses.get(i));\n }\n\n /* TODO :\n * * Remove orders\n */\n }", "@Override\n public String deleteStatement() throws Exception {\n return null;\n }", "@Override\n\tpublic String execute() throws Exception {\n\n\t\tProfilingHelper p_helper = new ProfilingHelper();\n\t\ttry {\n\t\t\tp_helper.deleteResearches(rModel);\n\t\t\treturn SUCCESS;\n\t\t} catch (Exception e) {\n\t\t\treturn INPUT;\n\t\t}\n\t}", "@Override\n\tpublic int delete(PrestationCDI obj) throws DAOException {\n\t\treturn 0;\n\t}", "public void deleteResult(String hw) {\n IDatabase database = new MySqlDatabase();\n Connection connection = database.getConnection();\n db.deleteResult(hw);\n }", "private void deletion(String pids) {\n\t\tDeletions(pids);\n\t\t\n\t}", "public static void executeDelete(String query) {\n\t\tSession session = HibernateConfig.getSessionFactory().getCurrentSession();\n\t\tTransaction txn = session.beginTransaction();\n\t\tsession.createSQLQuery(query).executeUpdate();\n\t\ttxn.commit();\n\t}", "@Override\r\n\tpublic void delete(int r_idx) throws Exception {\n\r\n\t}", "int deleteByPrimaryKey(Integer buildProcedureId);", "@Override\n\tpublic void delete(String[] ids) throws Exception {\n\t\t\n\t}", "public void eliminar(String sentencia){\n try {\n Statement stmt = Conexion.getInstancia().createStatement();\n stmt.executeUpdate(sentencia);\n }\n catch (Exception ex){\n ex.printStackTrace();\n }\n }", "public void eliminar(){\n conexion = base.GetConnection();\n try{\n PreparedStatement borrar = conexion.prepareStatement(\"DELETE from usuarios where Cedula='\"+this.Cedula+\"'\" );\n \n borrar.executeUpdate();\n // JOptionPane.showMessageDialog(null,\"borrado\");\n }catch(SQLException ex){\n System.err.println(\"Ocurrió un error al borrar: \"+ex.getMessage());\n \n }\n }", "@Override\r\n\tpublic void eliminar() {\n\t\ttab_nivel_funcion_programa.eliminar();\r\n\t\t\r\n\t}", "@Override\n public ArrayList<String> execute(TaskList tasks, Ui ui, Storage storage) throws DukeException {\n ArrayList<String> returnMsg = new ArrayList<>();\n int currentTasksSize = tasks.size();\n if (index < 0 || index >= tasks.size()) {\n throw new DukeException(\"The task number does not exist, try again?\");\n }\n Task deleteTask = tasks.find(index);\n tasks.delete(deleteTask);\n assert(tasks.size() == currentTasksSize - 1) : \"Task has not been deleted, count is not updated\";\n returnMsg.add(ui.speak(\"Aww yes! I've removed this task: \" + deleteTask));\n returnMsg.add(ui.speak(\"Now you have \" + tasks.size() + \" tasks left.\"));\n storage.writeToFile(tasks);\n return returnMsg;\n }", "private void excluir(String text) { \n try{\n //Variaveis de sessao\n Session s = HibernateUtil.getSessionFactory().openSession();\n s.beginTransaction();\n //sql \n Query q = s.createSQLQuery(\"delete from estacionamento where placa = \"+text);\n //execulta e grava\n q.executeUpdate();\n s.getTransaction().commit();\n \n //exeção //nao conectou // erro\n }catch(HibernateException e){\n JOptionPane.showConfirmDialog(null, \"erro :\"+e );\n }\n \n \n \n \n }", "@Override\n\tpublic boolean delete(String sql) {\n\t\treturn false;\n\t}", "@Override\n\tprotected String deleteStatement() {\n\t\treturn null;\n\t}", "@Override\n\tpublic void delete(Integer rno) throws Exception {\n\t\tSystem.out.println(\"gogog\");\n\t\tsession.delete(namespace+\".delete4\",rno);\n\t}", "public abstract boolean delete(long arg, Connection conn) throws DeleteException;", "protected void cmdRemove() throws Exception{\n\t\t//Determinamos los elementos a eliminar. De cada uno sacamos el id y el timestamp\n\t\tVector entities = new Vector();\n\t\tStringTokenizer claves = new StringTokenizer(conectorParametro(\"idSelection\"), \"|\");\n\t\tStringTokenizer timestamps = new StringTokenizer(conectorParametro(\"timestamp\"), \"|\");\n\t\ttraza(\"MMG::Se van a borrar \" + claves.countTokens() + \" y son \" + conectorParametro(\"idSelection\"));\n\t\twhile(claves.hasMoreTokens() && timestamps.hasMoreTokens()){\n\t\t\tZonSecciData zonSecci = new ZonSecciData();\n\t\t\tzonSecci.setId(new Integer(claves.nextToken()));\n\t\t\t//zonSecci.jdoSetTimeStamp(Long.parseLong(timestamps.nextToken()));\n\t\t\tentities.addElement(zonSecci);\n\t\t}\n\t\t\n\t\t//Construimos el DTO para realizar la llamada\n\t\tVector datos = new Vector();\n\t\tMareDTO dto = new MareDTO();\n\t\tdto.addProperty(\"entities\", entities);\n\t\tdatos.add(dto);\n\t\tdatos.add(new MareBusinessID(BUSINESSID_REMOVE));\n\t\t\n\t\t\n\t\t\n\t\t//Invocamos la lógica de negocio\n\t\ttraza(\"MMG:: Iniciada ejecución Remove de entidad ZonSecci\");\n\t\tDruidaConector conectorCreate = conectar(CONECTOR_REMOVE, datos);\n\t\ttraza(\"MMG:: Finalizada ejecución Remove de entidad ZonSecci\");\n\t\t\n\t\t\n\n\t\t//metemos en la sesión las query para realizar la requery\n\t\tconectorParametroSesion(SESSION_ATTRIBUTE_LAST_QUERY, conectorParametro(VAR_LAST_QUERY_TO_SESSION));\n\t\t\n\t\t//Redirigimos a la LP de StartUp con la acción de StartUp y requery\n\t\tconectorAction(\"ZonSecciLPStartUp\");\n\t\tconectorActionParametro(PARAMETRO_GENERICO_ORIGEN, \"menu\");\n\t\tconectorActionParametro(PARAMETRO_GENERICO_ACCION, ACCION_REMOVE);\n\t\tconectorActionParametro(VAR_PERFORM_REQUERY, \"true\");\n\t}", "@Override\n\tpublic ScienceAppExecute remove(Serializable primaryKey)\n\t\tthrows NoSuchScienceAppExecuteException, SystemException {\n\t\tSession session = null;\n\n\t\ttry {\n\t\t\tsession = openSession();\n\n\t\t\tScienceAppExecute scienceAppExecute = (ScienceAppExecute)session.get(ScienceAppExecuteImpl.class,\n\t\t\t\t\tprimaryKey);\n\n\t\t\tif (scienceAppExecute == null) {\n\t\t\t\tif (_log.isWarnEnabled()) {\n\t\t\t\t\t_log.warn(_NO_SUCH_ENTITY_WITH_PRIMARY_KEY + primaryKey);\n\t\t\t\t}\n\n\t\t\t\tthrow new NoSuchScienceAppExecuteException(_NO_SUCH_ENTITY_WITH_PRIMARY_KEY +\n\t\t\t\t\tprimaryKey);\n\t\t\t}\n\n\t\t\treturn remove(scienceAppExecute);\n\t\t}\n\t\tcatch (NoSuchScienceAppExecuteException nsee) {\n\t\t\tthrow nsee;\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\tthrow processException(e);\n\t\t}\n\t\tfinally {\n\t\t\tcloseSession(session);\n\t\t}\n\t}", "@Override\r\n\tpublic String delete() {\n\t\treturn \"delete\";\r\n\t}", "@Override\n\tpublic void delete(Pessoa arg0) {\n\t\t\n\t}", "public void processEliminar() {\n }", "public void delete() {\n\t\ttry {\n\t\t\tStatement stmt = m_db.m_conn.createStatement();\n\t\t\tString sqlString;\n\t\t\tString ret;\n\n\t\t\tsqlString = \"DELETE from country WHERE countryid=\" + m_country_id;\n\t\t\tm_db.runSQL(sqlString, stmt);\n\t\t\tstmt.close();\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\">>>>>>>> EXCEPTION <<<<<<<<\");\n\t\t\tSystem.out.println(\"An Exception occured in delete().\");\n\t\t\tSystem.out.println(\"MESSAGE: \" + e.getMessage());\n\t\t\tSystem.out.println(\"LOCALIZED MESSAGE: \" + e.getLocalizedMessage());\n\t\t\tSystem.out.println(\"CLASS.TOSTRING: \" + e.toString());\n\t\t\tSystem.out.println(\">>>>>>>>>>>>>-<<<<<<<<<<<<<\");\n\t\t}\n\t}", "@Override\n\tpublic int process(String[] args) throws ArgumentException {\n\t\tint result = 0;\n\t\tint[] iArgs = super.validate(args);\n\n\t\tswitch (iArgs.length) {\n\t\tcase 0:\n\t\t\tresult = deleteAll();\n\t\t\tbreak;\n\t\tcase 1:\n\t\t\tresult = delete(iArgs[0]);\n\t\t\tbreak;\n\t\tcase 2:\n\t\t\tresult = delete(iArgs[0] , iArgs[1]);\n\t\t\tbreak;\n\t\tcase 3:\n\t\t\tresult = delete(iArgs[0] , iArgs[1] , iArgs[2]);\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tthrow new ArgumentException(args.length);\n\t\t}\n\t\treturn result;\n\t}", "@Override\r\n\tpublic void delete(int no) {\n\t\tsqlSession.delete(namespace + \".delete\", no);\r\n\t}", "@Override\r\n\tpublic void delete(int no) {\n\t\tsqlSession.delete(namespace + \".delete\", no);\r\n\t}", "@Override\r\n\tpublic int delete(ActionContext arg0) throws Exception {\n\t\treturn 0;\r\n\t}", "public void onClick(View v) {\n String cod = txtCodigo.getText().toString();\n\n //Alternativa 1: método sqlExec()\n //String sql = \"DELETE FROM Usuarios WHERE codigo=\" + cod;\n //db.execSQL(sql);\n\n //Alternativa 2: método delete()\n db.delete(\"Usuarios\", \"codigo=\" + cod, null);\n }", "public void executeDeleteUsers(String uName) {\r\n\t\ttry {\r\n\t\t\t/**\r\n\t\t\t*\tCreate a connection temporarily\r\n\t\t\t*/\r\n\t\t\tnew DbConnection();\r\n\r\n\t\t\tpstmt = conn.prepareStatement(DELETE_USERS_QUERY);\r\n\r\n\t\t\tpstmt.setString(1, uName);\r\n\r\n\t\t\tpstmt.executeUpdate();\r\n\r\n\t\t} catch(SQLException SqlExcep) {\r\n\t\t\tSqlExcep.printStackTrace();\r\n\t\t} catch (ClassNotFoundException cnfExecp) {\r\n\t\t\tcnfExecp.printStackTrace();\r\n\t\t} finally {\r\n\t\t\t/*try {\r\n\t\t\t\tthis.closeDbConnection();\r\n\t\t\t} catch(SQLException SqlExcep) {\r\n\t\t\t\tSqlExcep.printStackTrace();\r\n\t\t\t}*/\r\n\t\t}\r\n\t}", "@Override\n public void onClick(View v) {\n\n CouSyncDb.getInstance(getApplicationContext()).deleteSync(bean1, new OnOperateFinish() {\n @Override\n public void onFinish(int operateType, Object result) {\n text.setText(\"delete row ID = \" + result.toString());\n }\n });\n }", "void execute() throws CommandExecutionException;", "@DELETE\n public void delete() {\n }", "@DELETE\n public void delete() {\n }", "@Override\n public int delete(String arg0) {\n return 0;\n }", "public CmdDelete(String description, List<Task> taskList, Storage storage)\n throws IOException {\n String output = \"\";\n try {\n if (description.equals(\"\") || description == null) {\n throw new DukeException(\"Entered index empty..\");\n } else {\n int index = Integer.valueOf(description) - 1;\n output += storage.removeTask(output, taskList, index);\n }\n } catch (TaskListEmptyException e) {\n output += e;\n } catch (DukeException e) {\n output += e;\n }\n this.setMsg(output);\n }" ]
[ "0.6530594", "0.6357978", "0.6340188", "0.6314758", "0.62530816", "0.62518007", "0.62306947", "0.62059593", "0.61739296", "0.61338335", "0.6122396", "0.61023295", "0.6023833", "0.6011215", "0.5991173", "0.5972434", "0.5970257", "0.5944577", "0.5943339", "0.5932217", "0.5912642", "0.5909261", "0.590041", "0.58729213", "0.58697873", "0.5864115", "0.581697", "0.5815019", "0.5809487", "0.5803954", "0.5803954", "0.5791457", "0.5780715", "0.5769594", "0.5769594", "0.57674485", "0.57561225", "0.57552916", "0.5750683", "0.57442", "0.5740684", "0.5727031", "0.5726822", "0.57250684", "0.5723391", "0.5720488", "0.57189727", "0.5717739", "0.57116264", "0.5703175", "0.5703175", "0.5703175", "0.5703175", "0.5703175", "0.5703175", "0.5699641", "0.5698756", "0.56932086", "0.56843513", "0.56803036", "0.56770086", "0.567648", "0.5676096", "0.56684154", "0.5665632", "0.56609106", "0.5651567", "0.5634142", "0.5632965", "0.56276256", "0.5624259", "0.56215554", "0.5612468", "0.5612046", "0.5606743", "0.56058466", "0.5599167", "0.5595968", "0.55957884", "0.5587181", "0.55813515", "0.55669916", "0.5565684", "0.5560699", "0.5558207", "0.55504984", "0.5548928", "0.5545291", "0.55446273", "0.55414337", "0.55414337", "0.55408686", "0.55403775", "0.5538922", "0.5537598", "0.55328953", "0.55311334", "0.55311334", "0.5516259", "0.55151266" ]
0.63304836
3
Method name: searchExec Description: Search Execute Remark: void
private void searchExec(){ String key=jComboBox1.getSelectedItem().toString(); key=NameConverter.convertViewName2PhysicName("Discount", key); String valueLike=searchTxtArea.getText(); List<DiscountBean>searchResult=discountService.searchDiscountByKey(key, valueLike); jTable1.setModel(ViewUtil.transferBeanList2DefaultTableModel(searchResult,"Discount")); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tprotected void executeSearch(String term) {\n\t\t\n\t}", "public void search() {\r\n \t\r\n }", "public void search() {\n }", "public void doSearch(String searchText){\n }", "private void executeSearch() {\n if (!view.getSearchContent().getText().isEmpty()) {\n SearchModuleDataHolder filter = SearchModuleDataHolder.getSearchModuleDataHolder();\n //set search content text for full text search\n filter.setSearchText(view.getSearchContent().getText());\n forwardToCurrentView(filter);\n } else {\n eventBus.showPopupNoSearchCriteria();\n }\n }", "public void performSearch()\r\n {\r\n setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR) );\r\n\r\n try\r\n {\r\n // Create the search pattern.\r\n String SearchPatternString = SearchPatternField.getText();\r\n if ( SearchPatternString == null\r\n || SearchPatternString.equals(\"\") )\r\n throw new ScreenInputException(\"No search pattern entered\",\r\n SearchPatternField);\r\n SearchPattern = new Regex(SearchPatternString);\r\n SearchPattern.optimize();\r\n\r\n // Build the definition of the root directory to search.\r\n String FilePatternString = FilePatternField.getText();\r\n if ( FilePatternString == null\r\n || FilePatternString.equals(\"\") )\r\n throw new ScreenInputException(\"No file pattern entered\",\r\n FilePatternField);\r\n\r\n String DirPathString = DirPatternField.getText();\r\n if ( DirPathString == null\r\n || DirPathString.equals(\"\") )\r\n throw new ScreenInputException(\"No directory specified\",\r\n DirPatternField);\r\n File DirectoryFile = new File(DirPathString);\r\n if (!DirectoryFile.exists() )\r\n throw new ScreenInputException(\"Directory '\" + DirPathString + \"'does not exist\",\r\n DirPatternField);\r\n\r\n // Prepare the walker that performs the grep on each directory.\r\n GrepSubDirWalker.prepareSearch(SearchPattern,\r\n FilePatternString,\r\n DirPathString,\r\n ResultsDocument);\r\n\r\n if (SubDirsTooCheckBox.isSelected() )\r\n {\r\n // Process named directory and its sub-directories.\r\n Directory RootDirectory = new Directory(DirPathString);\r\n RootDirectory.walk(GrepSubDirWalker);\r\n }\r\n else\r\n // Process just the named directory.\r\n GrepSubDirWalker.processDirectory(DirPathString);\r\n\r\n GrepSubDirWalker.appendStatistics(); // Show statistics\r\n }\r\n catch (NoClassDefFoundError InputException)\r\n {\r\n showPatMissingDialog();\r\n }\r\n catch (ScreenInputException InputException)\r\n {\r\n InputException.requestComponentFocus();\r\n showExceptionDialog(InputException);\r\n }\r\n catch (Exception InputException)\r\n {\r\n showExceptionDialog(InputException);\r\n }\r\n setCursor(Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR) );\r\n }", "abstract public boolean performSearch();", "private void searchFunction() {\n\t\t\r\n\t}", "private void search(){\n solo.waitForView(R.id.search_action_button);\n solo.clickOnView(solo.getView(R.id.search_action_button));\n\n //Click on search bar\n SearchView searchBar = (SearchView) solo.getView(R.id.search_experiment_query);\n solo.clickOnView(searchBar);\n solo.sleep(500);\n\n //Type in a word from the description\n solo.clearEditText(0);\n solo.typeText(0, searchTerm);\n }", "public CommandResult execute() {\n int i = 0;\n int found = 0;\n for (Task task : Duke.taskList) {\n i++;\n if (task.description.contains(keyword)) {\n System.out.println(i + \".[\" + task.getTaskID() + \"]\" +\n \"[\" + task.getStatusIcon() +\n \"] \" + task.description + \" \" + task.getDate());\n found++;\n }\n }\n if (found == 0) {\n return new CommandResult(\"No results found :(\");\n } else {\n return new CommandResult(System.lineSeparator() + found + \" results found!\");\n }\n }", "abstract public void search();", "void search();", "void search();", "void searchProbed (Search search);", "@Override\n\tpublic void search() {\n\t}", "public void search() {\n try {\n for(int i = 0; i < this.queries.size(); i++){\n search(i);\n // in case of error stop\n if(!this.searchOK(i)){\n System.out.println(\"\\t\" + new Date().toString() + \" \" + db + \" Search for rest queries cancelled, because failed for query \" + i + \" : \" + this.queries.get(i));\n break;\n }\n }\n } catch (UnsupportedEncodingException ex) {\n Logger.getLogger(EntrezSearcher.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "@Override\r\n\tpublic void search() {\n\r\n\t}", "@ActionTrigger(action=\"KEY-ENTQRY\", function=KeyFunction.SEARCH)\n\t\tpublic void spriden_Search()\n\t\t{\n\t\t\t\n\t\t\t\texecuteAction(\"QUERY\");\n\t\t\t\tgetTask().getGoqrpls().gCheckFailure();\n\t\t\t}", "private void performSearch() {\n String text = txtSearch.getText();\n String haystack = field.getText();\n \n // Is this case sensitive?\n if (!chkMatchCase.isSelected()) {\n text = text.toLowerCase();\n haystack = haystack.toLowerCase();\n }\n \n // Check if it is a new string that the user is searching for.\n if (!text.equals(needle)) {\n needle = text;\n curr_index = 0;\n }\n \n // Grab the list of places where we found it.\n populateFoundList(haystack);\n \n // Nothing was found.\n if (found.isEmpty()) {\n Debug.println(\"FINDING\", \"No occurrences of \" + needle + \" found.\");\n JOptionPane.showMessageDialog(null, \"No occurrences of \" + needle + \" found.\",\n \"Nothing found\", JOptionPane.INFORMATION_MESSAGE);\n \n return;\n }\n \n // Loop back the indexes if we have reached the end.\n if (curr_index == found.size()) {\n curr_index = 0;\n }\n \n // Go through the findings one at a time.\n int indexes[] = found.get(curr_index);\n field.select(indexes[0], indexes[1]);\n curr_index++;\n }", "public void performSearch() {\n History.newItem(MyWebApp.SEARCH_RESULTS);\n getMessagePanel().clear();\n if (keywordsTextBox.getValue().isEmpty()) {\n getMessagePanel().displayMessage(\"Search term is required.\");\n return;\n }\n mywebapp.getResultsPanel().resetSearchParameters();\n //keyword search does not restrict to spots\n mywebapp.addCurrentLocation();\n if (markFilterCheckbox != null) {\n mywebapp.getResultsPanel().getSearchParameters().setLicensePlate(markFilterCheckbox.getValue());\n }\n if (contestFilterCheckbox != null) {\n mywebapp.getResultsPanel().getSearchParameters().setContests(contestFilterCheckbox.getValue());\n }\n if (geoFilterCheckbox != null) {\n mywebapp.getResultsPanel().getSearchParameters().setGeospatialOff(!geoFilterCheckbox.getValue());\n }\n if (plateFilterCheckbox != null) {\n mywebapp.getResultsPanel().getSearchParameters().setLicensePlate(plateFilterCheckbox.getValue());\n }\n if (spotFilterCheckbox != null) {\n mywebapp.getResultsPanel().getSearchParameters().setSpots(spotFilterCheckbox.getValue());\n }\n String color = getValue(colorsListBox);\n mywebapp.getResultsPanel().getSearchParameters().setColor(color);\n String manufacturer = getValue(manufacturersListBox);\n if (manufacturer != null) {\n Long id = new Long(manufacturer);\n mywebapp.getResultsPanel().getSearchParameters().setManufacturerId(id);\n }\n String vehicleType = getValue(vehicleTypeListBox);\n mywebapp.getResultsPanel().getSearchParameters().setVehicleType(vehicleType);\n// for (TagHolder tagHolder : tagHolders) {\n// mywebapp.getResultsPanel().getSearchParameters().getTags().add(tagHolder);\n// }\n mywebapp.getResultsPanel().getSearchParameters().setKeywords(keywordsTextBox.getValue());\n mywebapp.getMessagePanel().clear();\n mywebapp.getResultsPanel().performSearch();\n mywebapp.getTopMenuPanel().setTitleBar(\"Search\");\n //mywebapp.getResultsPanel().setImageResources(resources.search(), resources.searchMobile());\n }", "protected final void searchForText() {\n Logger.debug(\" - search for text\");\n final String searchText = theSearchEdit.getText().toString();\n\n MultiDaoSearchTask task = new MultiDaoSearchTask() {\n @Override\n protected void onSearchCompleted(List<Object> results) {\n adapter.setData(results);\n }\n\n @Override\n protected int getMinSearchTextLength() {\n return 0;\n }\n };\n task.readDaos.add(crDao);\n task.readDaos.add(monsterDao);\n task.readDaos.add(customMonsterDao);\n task.execute(searchText.toUpperCase());\n }", "public void doSearch(String query)\n \t{\n \t\tlistener.onQueryTextSubmit(query);\n \t}", "private void invoke(String searchStr) {\n String userInput = concatWithNewLineFeed(searchStr,replacementStr,srcFile.getAbsolutePath(),destFile.getAbsolutePath());\n System.setIn(new ByteArrayInputStream(userInput.getBytes()));\n FindAndReplace.main(null);\n }", "private void search() {\n \t\tString searchString = m_searchEditText.getText().toString();\n \n \t\t// Remove the refresh if it's scheduled\n \t\tm_handler.removeCallbacks(m_refreshRunnable);\n \t\t\n\t\tif ((searchString != null) && (!searchString.equals(\"\"))) {\n \t\t\tLog.d(TAG, \"Searching string: \\\"\" + searchString + \"\\\"\");\n \n \t\t\t// Save the search string\n \t\t\tm_lastSearch = searchString;\n \n \t\t\t// Disable the Go button to show that the search is in progress\n \t\t\tm_goButton.setEnabled(false);\n \n \t\t\t// Remove the keyboard to better show results\n \t\t\t((InputMethodManager) this\n \t\t\t\t\t.getSystemService(Service.INPUT_METHOD_SERVICE))\n \t\t\t\t\t.hideSoftInputFromWindow(m_searchEditText.getWindowToken(),\n \t\t\t\t\t\t\t0);\n \n \t\t\t// Start the search task\n \t\t\tnew HTTPTask().execute(searchString);\n \t\t\t\n \t\t\t// Schedule the refresh\n \t\t\tm_handler.postDelayed(m_refreshRunnable, REFRESH_DELAY);\n \t\t} else {\n \t\t\tLog.d(TAG, \"Ignoring null or empty search string.\");\n \t\t}\n \t}", "private void performSearch() {\n try {\n final String searchVal = mSearchField.getText().toString().trim();\n\n if (searchVal.trim().equals(\"\")) {\n showNoStocksFoundDialog();\n }\n else {\n showProgressDialog();\n sendSearchResultIntent(searchVal);\n }\n }\n catch (final Exception e) {\n showSearchErrorDialog();\n logError(e);\n }\n }", "@Override\n\tString search(String text) throws Exception {\n\t\tString result = null;\n\t\tthis.text = text;\n\t\tthis.connection = this.getConnection();\n\n\t\tresult = searchRes();\n\t\tif (result != null)\n\t\t\treturn result;\n\n\t\tresult = searchTour();\n\t\tif (result != null)\n\t\t\treturn result;\n\n\t\tconnection.close();\n\t\tthrow new Exception(\"NOT FOUND\");\n\t}", "@Override\n public CommandResult execute(TaskList tasks, Storage storage) throws NoActionException {\n assert tasks != null;\n assert storage != null;\n if (this.searchTerms.length() == 0) {\n throw new NoActionException(\"Command 'find' requires search terms to be provided.\");\n }\n ArrayList<Task> matchList = new ArrayList<>();\n for (int i = 0; i < tasks.size(); i++) {\n Task currTask = tasks.get(i);\n if (currTask.contains(searchTerms)) {\n matchList.add(currTask);\n continue;\n }\n if (currTask.getTag().contains(searchTerms)) {\n matchList.add(currTask);\n }\n }\n return new CommandResult(Reply.showMatchingTasks(new TaskList(matchList)),\n true, super.isExit());\n }", "public void runTestSearch() throws TorqueException {\r\n\t}", "public void performSearch() {\n OASelect<QueryInfo> sel = getQueryInfoSearch().getSelect();\n sel.setSearchHub(getSearchFromHub());\n sel.setFinder(getFinder());\n getHub().select(sel);\n }", "public String execute() throws SQLException {\n try { \n results = postDBSearcher.searchSpecific(title, class_num, class_name, school);\n\n //If the search does not find any results tries the partial search\n if (results.isEmpty()){\n results = postDBSearcher.searchPartiallyGeneral(title, class_num, class_name, school);\n }\n\n //If the partial search did not find anything, then it tries to make a general search\n if (results.isEmpty()){\n results = postDBSearcher.searchGeneral(title, class_num, class_name, school);\n }\n }\n catch (SQLException e) {\n e.printStackTrace();\n }\n return SUCCESS;\n }", "public void searchTest() {\n\t\ttry {\n\t\t\tString keyword = \"操作道具\";\n\t\t\t// 使用IKQueryParser查询分析器构造Query对象\n\t\t\tQuery query = IKQueryParser.parse(LogsEntry.INDEX_FILED_CONTENT, keyword);\n\n\t\t\t// 搜索相似度最高的5条记录\n\t\t\tint querySize = 5;\n\t\t\tTopDocs topDocs = isearcher.search(query, null, querySize, sort);\n\t\t\tlogger.info(\"命中:{}\", topDocs.totalHits);\n\t\t\t// 输出结果\n\t\t\tScoreDoc[] scoreDocs = topDocs.scoreDocs;\n\t\t\tfor (int i = 0; i < scoreDocs.length; i++) {\n\t\t\t\tDocument targetDoc = isearcher.doc(scoreDocs[i].doc);\n\t\t\t\tlogger.info(\"内容:{}\", targetDoc.toString());\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\tlogger.error(e.getMessage(), e);\n\t\t}\n\t}", "public void search() {\n String q = this.query.getText();\n String cat = this.category.getValue();\n if(cat.equals(\"Book\")) {\n searchBook(q);\n } else {\n searchCharacter(q);\n }\n }", "private String executeSearch(String search, int beginResult) {\n\n\t\tHttpClient httpClient = new DefaultHttpClient();\n\t\tString request = null;\n\t\ttry {\n\t\t\trequest = SERVER_URL + \"yacysearch.json?query=\"\n\t\t\t\t\t+ URLEncoder.encode(search, \"UTF-8\") + \"&startRecord=\" + beginResult;\n\t\t} catch (UnsupportedEncodingException e1) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te1.printStackTrace();\n\t\t}\n\t\tHttpGet getRequest = new HttpGet(request);\n\n\t\tHttpResponse response = null;\n\t\ttry {\n\t\t\tresponse = httpClient.execute(getRequest);\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\t// if (null != httpClient) {\n\t\t// httpClient.;\n\t\t// }\n\n\t\tString result = parseHttpResponse(response);\n\n\t\treturn result;\n\t}", "public void performSearch() {\n final String url = String.format(BING_SEARCH_URL, Words.getRandomWord(), Words.getRandomWord());\n\n //open page with custom data\n openWebPage(url, \"Search url: \" + url);\n }", "@Override\n\t\t\tpublic void run() {\n\t\t\t\tdoSearch(name, count);\n\t\t\t}", "public abstract void performSearch(SearchCaller caller, SearchManager manager, Connection connection, MediaSearch mediaSearch);", "@Test\n\tpublic void GlobalSearch_28668_execute() throws Exception {\n\t\tVoodooUtils.voodoo.log.info(\"Running \" + testName + \"...\");\n\n\t\tFieldSet customFS = testData.get(testName).get(0);\n\n\t\t// Define Controls\n\t\tVoodooControl globalSearchCtrl = sugar().navbar.getControl(\"globalSearch\");\n\t\tVoodooControl searchResultsCtrl = sugar().navbar.search.getControl(\"searchResults\");\n\n\t\t// Type one character in the quick search bar\n\t\tglobalSearchCtrl.click();\n\t\tglobalSearchCtrl.set(sugar().accounts.getDefaultData().get(\"name\").substring(0, 1));\n\n\t\t// Type second character in the quick search bar\n\t\tglobalSearchCtrl.set(sugar().accounts.getDefaultData().get(\"name\").substring(0, 2));\n\n\t\t// The quick search results displays \"Searching...\" before results are retrieved\n\t\tsearchResultsCtrl.assertContains(customFS.get(\"searching\"), true);\n\n\t\t// Make sure it does NOT display \"No results were found.\" before results are retrieved\n\t\tsearchResultsCtrl.assertContains(customFS.get(\"noResult\"), false);\n\n\t\tVoodooUtils.voodoo.log.info(testName + \" complete.\");\n\t}", "private void Searchdata() {\r\n Connection con;\r\n String searchby;\r\n String sortby;\r\n String keyword;\r\n \r\n searchby = (String)cboSearchby.getSelectedItem();\r\n sortby = (String)cboSortby.getSelectedItem();\r\n keyword = txfSearch.getText();\r\n try {\r\n con = ClassSQL.getConnect();\r\n Statement stmt = con.createStatement();\r\n String sql = Searchstmt(searchby,sortby,keyword);\r\n // System.out.println(sql); //for testing purposes\r\n stmt.executeQuery(sql);\r\n con.close();\r\n } catch (SQLException ex) {\r\n ex.printStackTrace();\r\n } finally {\r\n // Place code in here that will always be run.\r\n }\r\n }", "public CommandResult execute(TaskList tasks) {\n TaskList filteredTasks = new TaskList();\n for (int i = 0; i < tasks.size(); i++) {\n if (tasks.get(i).getDescription().toLowerCase().contains(keyword.toLowerCase())) {\n filteredTasks.add(tasks.get(i));\n }\n }\n return new CommandResult(FIND_MESSAGE, filteredTasks);\n }", "private void searchCode() {\n }", "public void performSearch() throws IOException {\n configuration();\n\n File fileDir = new File(queryFilePath);\n if (fileDir.isDirectory()) {\n File[] files = fileDir.listFiles();\n Arrays.stream(files).forEach(file -> performSearchUsingFileContents(file));\n }\n }", "@In String search();", "public SearchResult search(String text, String subText);", "private void searchforResults() {\n\n List<String> queryList = new SavePreferences(this).getStringSetPref();\n if(queryList != null && queryList.size() > 0){\n Log.i(TAG, \"Searching for results \" + queryList.get(0));\n Intent searchIntent = new Intent(Intent.ACTION_WEB_SEARCH);\n searchIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n searchIntent.putExtra(SearchManager.QUERY, queryList.get(0));\n this.startActivity(searchIntent);\n }\n }", "public static void main(String args[]) throws Exception{\n\t\tString path_to_index;\r\n\t\ttry{\r\n\t\t\tpath_to_index = args[0];\r\n\t\t\tSearching_query search = new Searching_query(path_to_index);\r\n\t\t\tString query;\r\n\t\t\tboolean flag = true;\r\n\t\t\twhile(flag==true){\r\n\t\t\t input_query = new Scanner(System.in);\r\n\t\t\t System.out.println(\"ENTER QUERY : \");\r\n\t\t\t query = input_query.nextLine();\r\n\t\t\t System.out.println(\"YOUR QUERY IS: \" + query);\r\n\t\t\t /*calculating the start time*/\r\n\t\t\tdouble start_time_of_query = System.currentTimeMillis();\r\n\t\t\t\tsearch.searching_query(query);\r\n\t\t\t\t/*calculating the end time*/\r\n\t\t\tdouble end_time_of_query = System.currentTimeMillis();\r\n\t\t\tdouble timetaken = end_time_of_query - start_time_of_query;\r\n\t\t\tSystem.out.println(\"SEARCH TIME : \"+ timetaken/1000 + \" sec\");\r\n\t\t\t\r\n\t\t\t System.out.print(\"Want next Query (1 for YES,0 for NO)? : \");\r\n\t\t\t if(!(input_query.nextLine()).equalsIgnoreCase(\"1\")){\r\n\t\t\t\t flag = false;\r\n\t\t\t\t System.out.println();\r\n\t\t\t }\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\t}\r\n\t\tcatch(ArrayIndexOutOfBoundsException e){\r\n\t\t\te.printStackTrace();\r\n\t\t\tSystem.out.println(\"EXCEPTION : Enter path of the index folder.\");\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t}", "private void search()\n {\n JTextField searchField = (currentSearchView.equals(SEARCH_PANE_VIEW))? searchBar : resultsSearchBar;\n String searchTerm = searchField.getText();\n \n showTransition(2000);\n \n currentPage = 1;\n showResultsView(true);\n paginate(1, getResultsPerPage());\n\n if(searchWeb) showResultsTableView(WEB_RESULTS_PANE);\n else showResultsTableView(IMAGE_RESULTS_PANE);\n\n \n showSearchView(RESULTS_PANE_VIEW);\n resultsSearchBar.setText(searchTerm);\n }", "public void search() throws SQLException;", "public String executeSearch(final String uid) \n\t\t\tthrows Exception {\n\t\tbuildQuerySubject(this.termsList);\n\t\tbuildQueryAuthor(this.termsList); \n\t\tbuildQueryTaxon(this.termsList);\n\t\tbuildQueryIdentifier(this.termsList);\n\t\tbuildQueryGeographicDescription(this.locationName, this.termsList);\n\t\tbuildQueryFilterTemporal(this.dateField, this.startDate,\n\t\t this.endDate, this.isDatesContainedChecked, this.namedTimescale,\n\t\t this.namedTimescaleQueryType, this.termsList);\n\t\tbuildQueryFilterSite(this.termsList);\n\t\tbuildQueryFilterSpatial(this.northBound, this.southBound, this.eastBound,\n\t\t\t\t this.westBound, this.isBoundaryContainedChecked);\n\t\n\t\tqueryString = String.format(\n\t\t\t\t\"defType=%s&q=%s&%s&fl=%s&debug=%s\",\n\t\t\t\tDEFAULT_DEFTYPE, this.qString.trim(), this.fqString.trim(),\n\t\t\t\tDEFAULT_FIELDS, DEFAULT_DEBUG\n\t\t);\n\n\t\tDataPackageManagerClient dpmClient = new DataPackageManagerClient(uid);\n\t\tString extendedQueryString = String.format(\"%s&start=%d&rows=%d&sort=%s\", queryString, DEFAULT_START, DEFAULT_ROWS, DEFAULT_SORT);\n\t\tString resultsetXML = dpmClient.searchDataPackages(extendedQueryString);\n\t\tlogger.warn(String.format(\"query:\\n%s\", extendedQueryString));\n\n\t\treturn resultsetXML;\n\t}", "void searchFinished (Search search);", "private void goSearch() {\n\t\tThread t = new Thread(this);\n\t\tt.start();\n\t}", "void searchStarted (Search search);", "public void search(String searchText) {\n\tsearchFrame.setVisible(false);\n\tsearchPApplet.searchText=\"\";\n\tSystem.out.println(\"Searching...\");\n\tsearchedCells.clear();\n\t\n\tif(searchText==null || searchText.length()==0)\t{redraw(); return;}\n\t\n\tfor(Cell c:cells)\n\t\tsearchedCells.addAll(recursiveSearch(c, searchText, 0));\n\tSystem.out.println(\"Found \"+searchedCells.size()+\" occurrences\");\n\tredraw();\n\treturn;\n}", "public void actionPerformed(ActionEvent InputEvent)\r\n {\r\n performSearch();\r\n }", "@Override\n\tpublic void searchByName() {\n\t\tcount = 0;\n\t\tif (UtilityClinic.patFile == null) {\n\t\t\ttry {\n\t\t\t\tutil.accessExistingPatJson();\n\t\t\t} catch (FileNotFoundException e) {\n\t\t\t\tSystem.out.println(\"File not found\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\tutil.readFromPatJson(UtilityClinic.patFile);\n\t\tSystem.out.println(\"Enter search.....\");\n\t\tString search = UtilityClinic.readString();\n\t\tSystem.out.println(\"Showing search result(s).......\");\n\t\tfor (int i = 0; i < UtilityClinic.patJson.size(); i++) {\n\t\t\tJSONObject jsnobj = (JSONObject) UtilityClinic.patJson.get(i);\n\t\t\tif (jsnobj.get(\"Patient's name\").toString().equals(search))\n\t\t\t\tSystem.out.print(\n\t\t\t\t\t\t++count + \" Name:\" + jsnobj.get(\"Patient's name\") + \" ID:\" + jsnobj.get(\"Patient's ID\")\n\t\t\t\t\t\t\t\t+ \" Mobile:\" + jsnobj.get(\"Mobile\") + \" Age:\" + jsnobj.get(\"Age\"));\n\t\t}\n\t\tif (count == 0) {\n\t\t\tSystem.out.println(\"No results found.....\");\n\t\t}\n\t}", "@Test\n\tpublic void GlobalSearch_28766_execute() throws Exception {\n\t\tVoodooUtils.voodoo.log.info(\"Running \" + testName + \"...\");\n\n\t\t// Inserting a single char 'A' in the Global Search bar\n\t\tVoodooControl searchBox = sugar().navbar.getControl(\"globalSearch\");\n\t\tsearchBox.set(sugar().accounts.getDefaultData().get(\"name\").substring(0,1));\n\t\tVoodooUtils.waitForReady();\n\n\t\t// Clicking on 'View All Results' in Quick Search bar\n\t\tVoodooControl viewAllResults = sugar().navbar.search.getControl(\"viewAllResults\");\n\t\tviewAllResults.click();\n\n\t\t// Verifying the user is navigated to Global search page \n\t\tFieldSet fs = testData.get(testName).get(0);\n\t\tsugar().globalSearch.getControl(\"headerpaneTitle\").assertContains(fs.get(\"searchResultPage\"), true);\n\n\t\t// Inserting a single char 'r' in the Global Search bar\n\t\tsearchBox.set(sugar().accounts.getDefaultData().get(\"name\").substring(6,7));\n\t\tVoodooUtils.waitForReady();\n\n\t\t// Clicking on 'View All Results' in Quick Search bar\n\t\tviewAllResults.click();\n\n\t\t// Verify the Quick Search pane dismiss after clicking on 'View All Results'\n\t\tsugar().navbar.search.getControl(\"searchResults\").assertVisible(false);\n\n\t\tVoodooUtils.voodoo.log.info(testName + \" complete.\");\n\t}", "private ScoreDoc[] searchExec (Query query) {\n\n ScoreDoc[] hits = null;\n\n try {\n IndexReader reader = DirectoryReader.open(indexDir);\n IndexSearcher searcher = new IndexSearcher(reader);\n TopDocs docs = searcher.search(query, hitsPerPage, new Sort(SortField.FIELD_SCORE)); //search(query, docs);\n hits = docs.scoreDocs;\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n return hits;\n }", "void searchUI();", "private void search(String product) {\n // ..\n }", "@Override\n public String execute(String request) {\n String author = request.substring(request.indexOf(separator) + 1);\n\n ServiceFactory service = ServiceFactory.getInstance();\n NewsService newsService = service.getNewsService();\n\n String response;\n try {\n newsService.findByAuthor(author);\n response = \"It is search results.\"; ///look it\n } catch (ServiceException e) {\n response = \"News not found.\";\n }\n return response;\n }", "private void search(String[] searchItem)\n {\n }", "@Override\n public void onSearchConfirmed(CharSequence text) {\n startSearch(text);\n\n }", "SearchResultCompany search(String keywords);", "@Action\r\n public String search() {\n ServiceFunctions.clearCache();\r\n\r\n if (isAdmin()) {\r\n return adminSearch();\r\n }\r\n\r\n return publicSearch();\r\n }", "@Override\n public void onSearchConfirmed(CharSequence text) {\n startSearch(text);\n }", "List<SearchResult> search(SearchQuery searchQuery);", "public void executeDisplaySearch(String indexfile, String queryString) {\n\t\tif (queryString.trim().length() < 1) {\n\t\t\tJOptionPane.showMessageDialog(this, \"No text given to seach!\", \"Search issues\", JOptionPane.ERROR_MESSAGE);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t//System.out.println(\"going to open: \" + indexfile);\n\n\t\t\n\t\t\n\t\t//lets see if it exists at all:\n\t\tFile test = new File(indexfile);\n\t\tif (!test.exists()) {\n\t\t\tJOptionPane.showMessageDialog(this,\n\t\t\t\t\t\"No such index file present\\nAre you sure you have created an index file?\", \"Missing Index\",\n\t\t\t\t\tJOptionPane.ERROR_MESSAGE);\n\t\t\treturn;\n\t\t}\n\n\t\tString minDate = new String(\"2020-11-11\");\n\t\tString MaxDate = new String(\"0000-00-00\");\n\t\tBusyWindow bw = new BusyWindow(\"Setup\", \"Adding results\",true);\n\t\ttry {\n\t\t\tSearcher searcher = new IndexSearcher(indexfile);\n\t\t\t//standardanalyser\n\t\t\tQueryParser qp = new QueryParser(\"contents\", analyzer);\n\t\t\tQuery query = qp.parse(queryString);\n\t\t\tSystem.out.println(\"Searching for: \" + query.toString(\"contents\"));\n\t\t\tdatecal.clear();\n\t\t\tresultHits = searcher.search(query);\n\t\t\tSystem.out.println(resultHits.length() + \" total matching documents\");\n\n\t\t\tbw.setMax(resultHits.length());\n\t\t\tbw.setVisible(true);\n\t\t\t// reset the table length\n\n\t\t\tresultTableModel.setRowCount(0);\n\n\t\t\tfor (int i = 0; i < resultHits.length(); i++) {\n\t\t\t\tbw.progress(i);\n\t\t\t\tVector rowvalue = new Vector();\n\t\t\t\tDocument doc = resultHits.doc(i);\n\t\t\t\tfloat score = resultHits.score(i);\n\t\t\t\tString path = doc.get(\"path\");\n\t\t\t\tString curDate = doc.get(\"Date\");\n\t\t\t\tdatecal.addDate(curDate);\n\t\t\t\tif (path != null) {\n\t\t\t\t\trowvalue.add(\"\" + score);\n\n\t\t\t\t\t// we need to get the date and subject from the db\n\t\t\t\t\t// based on the mailref encode in the path with a space\n\t\t\t\t\t// afterwards\n\t\t\t\t\tString mailref = doc.get(\"Mailref\");\n\t\t\t\t\trowvalue.add(curDate);\n\t\t\t\t\tif (compareDatesString(MaxDate, curDate) < 0) {\n\t\t\t\t\t\tMaxDate = curDate;\n\t\t\t\t\t} else if (compareDatesString(minDate, curDate) > 0) {\n\t\t\t\t\t\tminDate = curDate;\n\t\t\t\t\t}\n\n\t\t\t\t\ttry {\n\n\t\t\t\t\t\tString data[][] = DBConnect.getSQLData(\"select subject from email where mailref = '\" + mailref\n\t\t\t\t\t\t\t\t+ \"'\");\n\n\t\t\t\t\t\tif (data.length > 0) {\n\t\t\t\t\t\t\trowvalue.add(data[0][0]);\n\n\t\t\t\t\t\t} else {\n\n\t\t\t\t\t\t\trowvalue.add(\"subject\");\n\t\t\t\t\t\t}\n\n\t\t\t\t\t} catch (SQLException see) {\n\t\t\t\t\t\tsee.printStackTrace();\n\n\t\t\t\t\t\trowvalue.add(\"subject\");\n\t\t\t\t\t}\n\n\t\t\t\t\trowvalue.add(mailref);\n\t\t\t\t\t// System.out.println(i + \". =\"+score+\"= \" +\n\t\t\t\t\t// doc.get(\"contents\").substring(0,20));//path );\n\t\t\t\t} else {\n\t\t\t\t\tString url = doc.get(\"url\");\n\t\t\t\t\tif (url != null) {\n\t\t\t\t\t\tSystem.out.println(i + \". \" + url);\n\t\t\t\t\t\tSystem.out.println(\" - \" + doc.get(\"title\"));\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.out.println(i + \". \" + \"No path nor URL for this document\");\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\trowvalue.add(-1);\n\t\t\t\trowvalue.add(i);\n\t\t\t\tresultTableModel.addRow(rowvalue);\n\t\t\t}\n\n\t\t} catch (ParseException pe) {\n\t\t\tJOptionPane.showMessageDialog(SearchEMT.this, \"Problem with query \" + queryString);\n\t\t\tpe.printStackTrace();\n\t\t} catch (IOException ioe) {\n\t\t\tJOptionPane.showMessageDialog(SearchEMT.this, \"Problem opening \" + indexfile);\n\t\t\tioe.printStackTrace();\n\n\t\t}\n\t\tbw.setVisible(false);\n\t\t// System.out.println(\"Max:\" + MaxDate + \" Min:\"+ minDate);\n\n\t\tm_status.setText(\"Number of results: \" + resultHits.length() + \" From \" + minDate + \" to \" + MaxDate);\n\n\t\tdatecal.setDateRange(minDate, MaxDate);\n\t\tdatecal.paintComponent(datecal.getGraphics());\n\n\t}", "public void performSearch() {\n OASelect<CorpToStore> sel = getCorpToStoreSearch().getSelect();\n sel.setSearchHub(getSearchFromHub());\n sel.setFinder(getFinder());\n getHub().select(sel);\n }", "public void searchKeyword() throws Exception {\n\t\t\n\t\tString keyword = dataHelper.getData(DataColumn.Keyword);\n\n\t\twh.sendKeys(CommonElements.searchTxtBox, keyword);\n\t\twh.clickElement(CommonElements.searchBtn);\n\n\t\tif (wh.isElementPresent(PLPUI.VerifyPLPPage, 4)\n\t\t\t\t&& wh.getText(CommonElements.breadCumb).contains(\n\t\t\t\t\t\tkeyword)) {\n\n\t\t\treport.addReportStep(\"Type '\" + keyword\n\t\t\t\t\t+ \"' in search text box and click on search button\",\n\t\t\t\t\t\"User navigated to search plp page.\", StepResult.PASS);\n\t\t} else {\n\n\t\t\treport.addReportStep(\"Type '\" + keyword\n\t\t\t\t\t+ \"' in search text box and click on search button\",\n\t\t\t\t\t\"User is not navigated to search plp page.\",\n\t\t\t\t\tStepResult.FAIL);\n\n\t\t\tterminateTestCase(\"search plp page\");\n\t\t}\n\t\t\n\t}", "public void runSearch(View view) {\n\n InputMethodManager imm = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE);\n imm.hideSoftInputFromWindow(word.getWindowToken(), 0);\n\n String searchTerm = word.getText().toString();\n final Search search = new Search(dictionary);\n Search.Option option;\n if (searchTerm.length() > 0) {\n if (full.isChecked()) {\n option = Search.Option.FULL;\n } else if (start.isChecked()) {\n option = Search.Option.BEGINNING;\n } else if (end.isChecked()) {\n option = Search.Option.END;\n } else {\n option = Search.Option.NORMAL;\n }\n results.setText(search.findWord(option, searchTerm));\n }\n }", "@Override\n public void onSearchConfirmed(CharSequence text) {\n startSearch(text);\n\n }", "@Override\n public void onSearchConfirmed(CharSequence text) {\n startSearch(text);\n\n }", "public void execFuzzySearchCustomWordFunc(){\n Map map = new HashMap();\n\n if(this.searchParam != null && this.searchParam.length()> 0 ){\n map.put(\"searchParam\",this.searchParam);\n }\n\n int idenfilter = 0 ;\n if(this.searchSpecies!= null && this.searchSpecies.equals(\"all\") == false){\n idenfilter = 1;\n map.put(\"species\",this.searchSpecies.trim());\n }\n\n\n if(this.searchTrait != null && this.searchTrait.equals(\"null\")==false && this.searchTrait.length()>0){\n idenfilter =1;\n List traitlist = new ArrayList();\n if(this.searchTrait.indexOf(\",\")>-1){\n String [] traits = this.searchTrait.split(\",\");\n if(traits != null && traits.length>0){\n for(String tr:traits){\n traitlist.add(tr);\n }\n }\n }else{\n traitlist.add(this.searchTrait);\n }\n map.put(\"traitlist\", traitlist) ;\n }\n\n if(this.pvalue != null && this.pvalue.equals(\"null\")==false && this.pvalue.length()>0 ){\n idenfilter =1;\n map.put(\"psitu\", this.psitu);\n map.put(\"pval\", this.pvalue) ;\n }\n\n //this is search customword\n List<SearchItemBean> searchlist = (List<SearchItemBean>) baseService.findResultList(\"cn.big.gvk.dm.Search.selectCustomWordBySearch\",map);\n if( searchlist != null ){\n gwasAssociationList = new ArrayList<GwasAssociationBean>() ;\n mapGeneBeanList = new ArrayList<MapGeneBean>();\n for(SearchItemBean tmpbean : searchlist){\n if(tmpbean != null ){\n if(tmpbean.getItemType() == 1){\n //selecTraitByFuzzySearch\n Map cmp = new HashMap();\n cmp.put(\"traitId\", tmpbean.getItemId());\n GwasAssociationBean tmpgwas = (GwasAssociationBean) baseService.findObjectByObject(\"cn.big.gvk.dm.GwasAssociation.selecTraitByFuzzySearch\",cmp);\n if(tmpgwas != null ){\n //trait count\n Map cmap = new HashMap();\n cmap.put(\"traitId\",tmpgwas.getTraitId()) ;\n if(this.searchSpecies!= null && this.searchSpecies.equals(\"all\") == false){\n cmap.put(\"species\",this.searchSpecies);\n\n }\n GwasAssociationBean tg_bean = (GwasAssociationBean)baseService.findObjectByObject(\"cn.big.gvk.dm.GwasAssociation.selectAssociationCountByTraitId\",cmap);\n if(tg_bean != null ){\n tmpgwas.setTraitCount(tg_bean.getGwasCount());\n }\n\n List<TermInformationBean> tilist = (List<TermInformationBean>)baseService.findResultList(\"cn.big.gvk.dm.Term.selectTermDefinition\",tmpgwas.getTraitId());\n String s=\"\";\n if(tilist != null && tilist.size()>0 ){\n for(TermInformationBean tb:tilist ){\n if(tb!= null && tb.getTermDefinition() != null ){\n s+= tb.getTermDefinition() +\";\";\n }\n\n }\n }\n if(s.length()>0){\n s= s.substring(0, s.length()-1) ;\n }\n tmpgwas.setTermDefinition(s);\n\n //study count\n GwasAssociationBean tg_bean1 = (GwasAssociationBean)baseService.findObjectByObject(\"cn.big.gvk.dm.GwasAssociation.selectStudyCountByTraitid\",cmap);\n if(tg_bean1 != null ){\n tmpgwas.setGwasCount(tg_bean1.getGwasCount());\n }\n gwasAssociationList.add(tmpgwas) ;\n }\n }else if(tmpbean.getItemType() == 2){\n Map cmp = new HashMap();\n cmp.put(\"gid\",tmpbean.getItemId()) ;\n MapGeneBean mgb = (MapGeneBean) baseService.findObjectByObject(\"cn.big.gvk.dm.MapGene.selectMapGeneCount\",cmp);\n if(mgb != null ){\n Map t = new HashMap();\n t.put(\"gId\",mgb.getGid()) ;\n t.put(\"count\",\"count\");\n\n //trait count\n GwasAssociationView gwas = (GwasAssociationView) baseService.findObjectByObject(\"cn.big.gvk.dm.GwasAssociation.selectGwasViewByGeneInfo\",t);\n if(gwas != null){\n mgb.setTraitCount(gwas.getTraitCount());\n }\n\n //study count\n StudyBean study = (StudyBean) baseService.findObjectByObject(\"cn.big.gvk.dm.study.selectStudyByMapGeneId\",t);\n if(study != null ){\n mgb.setStudyCount(study.getStudyCount());\n }\n\n //publication count\n PublicationBean publication = (PublicationBean)baseService.findObjectByObject(\"cn.big.gvk.dm.publication.selectPubByGeneId\",t);\n if (publication != null ){\n mgb.setPublicationCount(publication.getPublicationCount());\n }\n mapGeneBeanList.add(mgb) ;\n\n }\n\n }\n }\n }\n }\n\n StringBuffer sb = new StringBuffer();\n //generate hidden html table and then use tableExport.js export\n if(gwasAssociationList != null && gwasAssociationList.size()>0){\n for(GwasAssociationBean gwas : gwasAssociationList){\n sb.append(gwas.getTraitName()).append(\"\\t\").append(gwas.getTermDefinition()).append(\"\\t\").append(gwas.getTraitCount()).append(\"\\t\").append(gwas.getGwasCount()).append(\"\\n\");\n }\n }\n\n if(mapGeneBeanList != null && mapGeneBeanList.size()>0){\n for(MapGeneBean mapgene: mapGeneBeanList){\n sb.append(mapgene.getMapGeneId()).append(\"\\t\").append(mapgene.getMapGeneChrom()).append(\":\")\n .append(mapgene.getMapGeneStart()).append(\"-\").append(mapgene.getMapGeneEnd()).append(\"\\t\").append(mapgene.getTraitCount()).append(\"\\t\")\n .append(mapgene.getStudyCount()).append(\"\\n\");\n }\n }\n\n if(format == 1 ){ //export txt\n this.response.reset();\n this.response.setHeader(\"Content-Disposition\",\n \"attachment;filename=export.txt\");\n this.response.setContentType(\"application/ms-txt\");\n try {\n PrintWriter pr = this.response.getWriter();\n pr.print(sb.toString());\n pr.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n\n\n\n }", "private void executeSearchQuery(JsonObject json, HttpServerResponse response) {\n database.searchQuery(json, handler -> {\n if (handler.succeeded()) {\n LOGGER.info(\"Success: Search Success\");\n handleSuccessResponse(response, ResponseType.Ok.getCode(),\n handler.result().toString());\n } else if (handler.failed()) {\n LOGGER.error(\"Fail: Search Fail\");\n processBackendResponse(response, handler.cause().getMessage());\n }\n });\n }", "public void SearchPhrase(Object_Ord temp) {\n\tif (!Doneloading) {\r\n\t return;\r\n\t}\r\n\tif (temp == null) {\r\n\t return;\r\n\t} else if (temp.Ordet.equals(\"\")) {\r\n\t return;\r\n\t}\r\n\ttemp.Set_Searched();\r\n\t//PrintAction( this.getClass().toString() + \" Searching for phrase \" + temp.Ordet );\r\n\tThread thread = new Thread_PhraseSearcher(this, temp);\r\n\tThreadsRunning++;\r\n\tThreadsStarted++;\r\n }", "@Override\n\tpublic boolean onSearchRequested()\n\t{\n \tstartSearch(getCurSearch(), true, null, false);\n \treturn true;\n\t}", "private void enterSearchMode(String resultContent) {\n\n\t\tthis.removeAll();\n\n\t\tJLabel welcomeLabel = new JLabel(\"Search the word you want to modify.\");\n\t\twelcomeLabel.setFont(new Font(Font.SANS_SERIF, Font.PLAIN, 17));\n\t\tGridBagConstraints welcomeC = new GridBagConstraints();\n\t\twelcomeC.anchor = GridBagConstraints.CENTER;\n\t\twelcomeC.gridwidth = 2;\n\t\twelcomeC.weighty = 5;\n\t\twelcomeC.gridy = 0;\n\t\tthis.add(welcomeLabel, welcomeC);\n\n\t\tAction submit = new AbstractAction() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tsubmitSearch(searchBox.getText());\n\t\t\t}\n\t\t};\n\n\t\tsearchBox = new JTextField();\n\t\tsearchBox.addActionListener(submit);\n\t\tGridBagConstraints sboxC = new GridBagConstraints();\n\t\tsboxC.fill = GridBagConstraints.HORIZONTAL;\n\t\tsboxC.weightx = 4;\n\t\tsboxC.weighty = 1;\n\t\tsboxC.gridx = 0;\n\t\tsboxC.gridy = 1;\n\t\tsboxC.insets = new Insets(0, 20, 0, 10);\n\t\tthis.add(searchBox, sboxC);\n\n\t\tJButton submitButton = new JButton(\"Search\");\n\t\tsubmitButton.addActionListener(submit);\n\t\tGridBagConstraints submitC = new GridBagConstraints();\n\t\tsubmitC.weightx = 0;\n\t\tsubmitC.gridx = 1;\n\t\tsubmitC.gridy = 1;\n\t\tsubmitC.anchor = GridBagConstraints.EAST;\n\t\tsubmitC.insets = new Insets(0, 0, 0, 30);\n\t\tthis.add(submitButton, submitC);\n\n\t\tresult = new JLabel(resultContent);\n\t\tresult.setFont(new Font(\"\", Font.ITALIC, 14));\n\t\tGridBagConstraints resultC = new GridBagConstraints();\n\t\tresultC.fill = GridBagConstraints.BOTH;\n\t\tresultC.weighty = 5;\n\t\tresultC.gridy = 8;\n\t\tresultC.gridwidth = 3;\n\t\tresultC.anchor = GridBagConstraints.WEST;\n\t\tresultC.insets = new Insets(0, 40, 0, 0);\n\t\tthis.add(result, resultC);\n\n\t\tthis.repaint();\n\n\t}", "public abstract S getSearch();", "public FindCommand(String searchTerms) {\n super(false);\n this.searchTerms = searchTerms;\n }", "private void run()\n {\n searchLexDb(\"^providing_\", true);\n }", "public abstract int search(String[] words, String wordToFind) throws ItemNotFoundException;", "public void inputSearchText(String searchValue) {\n try {\n clickElement(eleToDoSearchInput, \"click to eleToDoSearchInput\");\n sendKeyTextBox(eleToDoSearchInput, searchValue, \"send key to searchTextToDoListPage\");\n Thread.sleep(smallerTimeOut);\n NXGReports.addStep(\"Ending Input Search.\", LogAs.PASSED, null);\n } catch (Exception e) {\n AbstractService.sStatusCnt++;\n NXGReports.addStep(\"Ending Input Search.\", LogAs.FAILED, new CaptureScreen(CaptureScreen.ScreenshotOf.BROWSER_PAGE));\n }\n }", "public void run(){\n\t\tif(searchHow==0){\n\t\t\tint isbnCount = 0;\n\t\t\tfor(int i=0; i<db.size(); i++){\n\t\t\t\t\tSearchRequest requestIsbn = new SearchRequest(db, searchForThis, isbnCount, db.size());\n\t\t\t\t\tdb.searchByISBN(requestIsbn);\n\t\t\t\t\tisbnCount = requestIsbn.foundPos;\n\t\t\t\t\tif (requestIsbn.foundPos >= 0) {\n\t\t\t\t\t\tisbnCount++;\n\t\t\t\t\t\tString formatThis = \"Matched ISBN at position: \" + requestIsbn.foundPos;\n\t\t\t\t\t\tSystem.out.printf(\"%-35s || Title: \"+db.getBook(requestIsbn.foundPos)+\"\\n\",formatThis);\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t\ti=db.size();\n\t\t\t}\n\t\t}\n\t\tif(searchHow==1){\n\t\t\tint titleCount = 0;\n\t\t\tfor(int i=0; i<db.size(); i++){\n\t\t\t\t\tSearchRequest requestTitle = new SearchRequest(db, searchForThis, titleCount, db.size());\n\t\t\t\t\tdb.searchByTitle(requestTitle);\n\t\t\t\t\ttitleCount = requestTitle.foundPos;\n\t\t\t\t\tif (requestTitle.foundPos >= 0) {\n\t\t\t\t\t\ttitleCount++;\n\t\t\t\t\t\tString formatThis = \"Matched title at position: \" + requestTitle.foundPos;\n\t\t\t\t\t\tSystem.out.printf(\"%-35s || Title: \"+db.getBook(requestTitle.foundPos)+\"\\n\",formatThis);\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t\ti=db.size();\n\t\t\t}\n\t\t}\n\t\tif(searchHow==2){\n\t\t\tint authorCount = 0;\n\t\t\tfor(int i=0; i<db.size(); i++){\n\t\t\t\t\tSearchRequest requestAuthor = new SearchRequest(db, searchForThis, authorCount, db.size());\n\t\t\t\t\tdb.searchByAuthor(requestAuthor);\n\t\t\t\t\tauthorCount = requestAuthor.foundPos;\n\t\t\t\t\tif (requestAuthor.foundPos >= 0) {\n\t\t\t\t\t\tauthorCount++;\n\t\t\t\t\t\tString formatThis = \"Matched author at position: \" + requestAuthor.foundPos;\n\t\t\t\t\t\tSystem.out.printf(\"%-35s || Title: \"+db.getBook(requestAuthor.foundPos)+\"\\n\",formatThis);\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t\ti=db.size();\n\t\t\t}\n\t\t}\n\t\tif(searchHow==3){\n\t\t\tint pageCount = 0;\n\t\t\tfor(int i=0; i<db.size(); i++){\n\t\t\t\t\tSearchRequest requestPage = new SearchRequest(db, searchForThis, pageCount, db.size());\n\t\t\t\t\tdb.searchByNumPages(requestPage);\n\t\t\t\t\tpageCount = requestPage.foundPos;\n\t\t\t\t\tif (requestPage.foundPos >= 0) {\n\t\t\t\t\t\tpageCount++;\n\t\t\t\t\t\tString formatThis = \"Matched pages at position: \" + requestPage.foundPos;\n\t\t\t\t\t\tSystem.out.printf(\"%-35s || Title: \"+db.getBook(requestPage.foundPos)+\"\\n\",formatThis);\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t\ti=db.size();\n\t\t\t}\n\t\t}\n\t\tif(searchHow==4){\n\t\t\tint yearCount = 0;\n\t\t\tfor(int i=0; i<db.size(); i++){\n\t\t\t\t\tSearchRequest requestYear = new SearchRequest(db, searchForThis, yearCount, db.size());\n\t\t\t\t\tdb.searchByYear(requestYear);\n\t\t\t\t\tyearCount = requestYear.foundPos;\n\t\t\t\t\tif (requestYear.foundPos >= 0) {\n\t\t\t\t\t\tyearCount++;\n\t\t\t\t\t\tString formatThis = \"Matched year at position: \" + requestYear.foundPos;\n\t\t\t\t\t\tSystem.out.printf(\"%-35s || Title: \"+db.getBook(requestYear.foundPos)+\"\\n\",formatThis);\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t\ti=db.size();\n\t\t\t}\n\t\t}\n\t}", "public String search() {\r\n\t\tgetNavigationPanel(3);\r\n\t\treturn SUCCESS;\r\n\t}", "@Override\n\tpublic void searchByMobile() {\n\t\tcount = 0;\n\t\tif (UtilityClinic.patFile == null) {\n\t\t\ttry {\n\t\t\t\tutil.accessExistingPatJson();\n\t\t\t} catch (FileNotFoundException e) {\n\t\t\t\tSystem.out.println(\"File not found\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\tutil.readFromPatJson(UtilityClinic.patFile);\n\t\tSystem.out.println(\"Enter search.....\");\n\t\tString search = UtilityClinic.readString();\n\t\tSystem.out.println(\"Showing search result(s).......\");\n\t\tfor (int i = 0; i < UtilityClinic.patJson.size(); i++) {\n\t\t\tJSONObject jsnobj = (JSONObject) UtilityClinic.patJson.get(i);\n\t\t\tif (jsnobj.get(\"Mobile\").toString().equals(search)) {\n\t\t\t\tpMob = jsnobj.get(\"Mobile\").toString();\n\t\t\t\tpName = jsnobj.get(\"Patient's name\").toString();\n\t\t\t\tpId = jsnobj.get(\"Patient's ID\").toString();\n\t\t\t\tSystem.out.print(++count + \" Name:\" + pName + \" ID:\" + pId + \" Mobile:\" + pMob + \" Age:\"\n\t\t\t\t\t\t+ jsnobj.get(\"Age\") + \"\\n\\n\");\n\t\t\t}\n\t\t}\n\t\tif (count == 0) {\n\t\t\tSystem.out.println(\"No results found.....\");\n\t\t}\n\t\tSystem.out.println();\n\t}", "public static void main(String args[]){\n\t\tString uri;\r\n\t\ttry{\r\n\t\t\turi = args[0];\r\n\t\t\tSystem.out.print(\"LOADING....\");\r\n\t\t\tPhase2Search search = new Phase2Search(uri);\r\n\t\t\tSystem.out.println(\"COMPLETED\\n\");\r\n\t\t\t\r\n\t\t\tString query;\r\n\t\t\tboolean flag = false;\r\n\t\t\tdo{\r\n\t\t\t in = new Scanner(System.in);\r\n\t\t\t System.out.print(\"ENTER QUERY : \");\r\n\t\t\t query = in.nextLine();\r\n\t\t\t//query = \"roann indiana\";\r\n\t\t\t//query = \"imdb\";\r\n\t\t\t //query = \"aalburg\";\r\n\t\t\t System.out.println(\"QUERY: \" + query);\r\n\t\t\tdouble startTime = System.currentTimeMillis();\r\n\t\t\t\tsearch.searchFunc(query);\r\n\t\t\tdouble endTime = System.currentTimeMillis();\r\n\t\t\tdouble totalTime = endTime - startTime;\r\n\t\t\tSystem.out.println(\"SEARCH TIME : \"+ totalTime/1000 + \" sec\");\r\n\t\t\t\r\n\t\t\t System.out.print(\"Want another Query (1 for YES) : \");\r\n\t\t\t if(!(in.nextLine()).equalsIgnoreCase(\"1\")){\r\n\t\t\t\t flag = true;\r\n\t\t\t }\r\n\t\t\t}while(flag == false);\r\n//\t\t\t\r\n\t\t\tSystem.out.println();\r\n\t\t\t}\r\n\t\tcatch(ArrayIndexOutOfBoundsException e){\r\n\t\t\tSystem.out.println(\"EXCEPTION : Command Line Arguments are Missing.\");\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tSystem.out.println(\"EXCEPTION : Exception Occur.\");\r\n\t\t}\r\n\t\t\r\n\t}", "private void doSearch(String queryStr) {\n\t\t\n\t\t\n\t\tdbHelper = new DatabaseHelper(getApplicationContext());\n\t\tall_Item = Items.getSearchResults(dbHelper, queryStr);\n\t\t\n\n\t\tsearch_list = (ListView) findViewById(R.id.search_list);\n\t\tadapter = new SearchResultListAdaptor(this, R.layout.search_list_display, all_Item);\n\t\tfor(int i=0;i<all_Item.size();i++)\n\t\t adapter.add(all_Item.get(i));\n\t\t\n\t\tsearch_list.setAdapter(adapter);\n\t\t\n\t\t\n\t}", "private void search(ActionEvent x) {\n\t\tString text = this.searchText.getText();\n\t\tif (text.equals(\"\")) {\n\t\t\tupdate();\n\t\t\treturn;\n\t\t}\n\t\tboolean flag = false;\n\t\tfor (Project p : INSTANCE.getProjects()) {\n\t\t\tif (p.getName().indexOf(text) != -1) {\n\t\t\t\tif (!flag) {\n\t\t\t\t\tthis.projects.clear();\n\t\t\t\t\tflag = true;\n\t\t\t\t}\n\t\t\t\tthis.projects.addElement(p);\n\t\t\t}\n\t\t}\n\n\t\tif (!flag) {\n\t\t\tINSTANCE.getCurrentUser().sendNotification(new Notification((Object) INSTANCE, \"No results\"));\n\t\t\tthis.searchText.setText(\"\");\n\t\t}\n\t}", "private Search() {}", "@Override\n public void onSearchConfirmed(CharSequence text) {\n startSearchResults(text);\n }", "public void research() throws Exception\r\n\t{\r\n\t\tresult = ((CLibraryManager)AUser.getInstance()).searchUser(jTextField_UserName.getText(),jTextField_UserID.getText(),jTextField_FirstName.getText(),jTextField_LastName.getText());\r\n\t}", "public interface Searcher {\r\n\t\r\n\t/**\r\n\t * Performs a search.\r\n\t * \r\n\t * @param searchComp reference to the text search component\r\n\t * @param forward tells if search is to be performed forward\r\n\t * @param searchLastMatch tells if last search match must be searched/included\r\n\t */\r\n\tvoid performSearch( TextSearchComp searchComp, boolean forward, boolean searchLastMatch );\r\n\t\r\n}", "public search() {\n }", "@Override\n public Data3DPlastic search() {\n return super.search();\n }", "public void searchSystem( Integer option, String buff ) {\n\t\tswitch ( option ) {\n\t\t case 1:\n\t\t \tarchive.searchTitle( buff );\n\t\t \tbreak;\n\t\t case 2:\n\t\t \tarchive.searchAuthor( buff );\n\t\t \tbreak;\n\t\t case 3:\n\t\t \tarchive.searchPublisher( buff );\n\t\t \tbreak;\n\t\t default:\n\t\t \tbreak;\n\t\t}\n\t}", "Search getSearch();", "public void searchProd(){\n\t\t\n\t\t// STEP 4:-\n\t\t// Enter 'mobile' in search bar.\n\t\tWebElement search = driver.findElement(By.name(\"q\"));\n\t\tsearch.sendKeys(\"mobiles\");\n\t\tsearch.sendKeys(Keys.ENTER);\n\t\tSystem.out.println(\"Enter name successfully\");\n\t\t\t\t\t\n\t\t// Click on search icon.\n\t\t//WebElement searchClick = driver.findElement(By.className(\"L0Z3Pu\"));\n\t\t//searchClick.click();\n\t\t//System.out.println(\"clicked search button successfully\");\n\t}", "public interface NotifySearch {\n\n public void search(String searchString);\n\n public void endSearchMode();\n}", "public static void main(String[] args) {\n\t\tString[] words = {\"at\",\"\",\"\",\"\",\"ball\",\"\",\"\",\"\",\"car\",\"\",\"\",\"\"};\n\t\tString searchWord = \"at\";\n\n\t\tsearch(words,searchWord,0,words.length-1);\n\n\t}", "private void searchWeb()\n {\n searchWeb = true;\n search();\n }", "@Test\n\tpublic void testSearchCommand3() {\n\t\tString label = \"TEST\";\n\t\ttestData.getTaskMap().put(label, new ArrayList<Task>());\n\t\ttestData.addTask(new Task(1, label , \"Task 1\",\n\t\t\t\tnew TDTDateAndTime(), false));\n\t\ttestData.addTask(new Task(2, label, \"Task 2\",\n\t\t\t\tnew TDTDateAndTime(), false));\n\t\ttestData.addTask(new Task(3, label, \"Task 3\",\n\t\t\t\tnew TDTDateAndTime(\"12/12/2014\", \"null\", \"null\", \"null\"), false));\n\t\ttestData.addTask(new Task(3, label, \"This is task 4\",\n\t\t\t\tnew TDTDateAndTime(\"12/12/2014\", \"null\", \"null\", \"null\"), false));\n\n\t\tSearchCommand comd = new SearchCommand(\"@12/12/2014\");\n\t\tassertEquals(String.format(SearchCommand.SEARCH_FEEDBACK, 2), comd.execute(testData));\n\t\tassertEquals(\"Task 3\", comd.getSearchedResult().get(0).getDetails());\n\t\tassertEquals(\"This is task 4\", comd.getSearchedResult().get(1).getDetails());\n\n\t\tcomd = new SearchCommand(\"this @12/12/2014\");\n\t\tassertEquals(String.format(SearchCommand.SEARCH_FEEDBACK, 1), comd.execute(testData));\n\t\tassertEquals(\"This is task 4\", comd.getSearchedResult().get(0).getDetails());\n\t}" ]
[ "0.73142415", "0.71437496", "0.7052247", "0.7016159", "0.6994201", "0.6901024", "0.68921626", "0.6881376", "0.6828895", "0.6757713", "0.67431676", "0.67276394", "0.67276394", "0.6723618", "0.66716146", "0.6641148", "0.6640919", "0.65828156", "0.6514463", "0.64875287", "0.6455517", "0.64364177", "0.64034873", "0.6320273", "0.6296647", "0.62579906", "0.6249116", "0.6207154", "0.6190585", "0.61467665", "0.61453027", "0.61350554", "0.61053365", "0.6102492", "0.6096906", "0.6085209", "0.60816514", "0.60726446", "0.6056503", "0.6041632", "0.60147303", "0.6002208", "0.59923065", "0.5986256", "0.59852767", "0.5961804", "0.59503233", "0.5949361", "0.59395933", "0.59389955", "0.5920661", "0.5918648", "0.59050393", "0.5882028", "0.58694017", "0.58514535", "0.58405066", "0.5838148", "0.58267224", "0.58050394", "0.5795023", "0.57947016", "0.57867384", "0.5770833", "0.57682025", "0.57674646", "0.5755817", "0.57528794", "0.5741609", "0.57406", "0.57406", "0.57386553", "0.57364905", "0.5732045", "0.57308704", "0.57297", "0.5725814", "0.5698009", "0.56911826", "0.56890744", "0.5686618", "0.56539977", "0.56468123", "0.56455934", "0.56348574", "0.56297636", "0.56238586", "0.5606183", "0.5597485", "0.55912095", "0.55904967", "0.55847657", "0.5579347", "0.55775523", "0.55771697", "0.55716395", "0.5566922", "0.5564204", "0.5551642", "0.55455655" ]
0.6174944
29
Inflate the menu; this adds items to the action bar if it is present.
@Override public boolean onCreateOptionsMenu(Menu menu) { getMenuInflater().inflate(R.menu.menu_recipe, menu); return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tMenuInflater inflater = getMenuInflater();\n \tinflater.inflate(R.menu.main_activity_actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.actions, menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tgetMenuInflater().inflate(R.menu.actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.actions_bar, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main_actions, menu);\n\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\r\n\t\tinflater.inflate(R.menu.action_bar_menu, menu);\r\n\t\tmMenu = menu;\r\n\t\treturn super.onCreateOptionsMenu(menu);\r\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.act_bar_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\r\n inflater.inflate(R.menu.main_actions, menu);\r\n\t\treturn true;\r\n //return super.onCreateOptionsMenu(menu);\r\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\r\n\t inflater.inflate(R.menu.action_bar_all, menu);\r\n\t return super.onCreateOptionsMenu(menu);\r\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(android.view.Menu menu) {\n\t\t super.onCreateOptionsMenu(menu);\n\t\tMenuInflater muu= getMenuInflater();\n\t\tmuu.inflate(R.menu.cool_menu, menu);\n\t\treturn true;\n\t\t\n\t\t\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.adventure_archive, menu);\r\n\t\treturn true;\r\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.archive_menu, menu);\r\n\t\treturn true;\r\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n \tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n \t\tinflater.inflate(R.menu.main, menu);\n \t\tsuper.onCreateOptionsMenu(menu, inflater);\n \t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.action_menu, menu);\n\t return super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater bow=getMenuInflater();\n\t\tbow.inflate(R.menu.menu, menu);\n\t\treturn true;\n\t\t}", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.action_menu, menu);\n super.onCreateOptionsMenu(menu, inflater);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\t\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\t\t\n\t\t/* Inflate the menu; this adds items to the action bar if it is present */\n\t\tgetMenuInflater().inflate(R.menu.act_main, menu);\t\t\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflate = getMenuInflater();\n inflate.inflate(R.menu.menu, ApplicationData.amvMenu.getMenu());\n return true;\n }", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.menu, menu);\n\t\t\treturn true; \n\t\t\t\t\t\n\t\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tinflater.inflate(R.menu.main, menu);\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);//Menu Resource, Menu\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);//Menu Resource, Menu\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) \n {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_bar, menu);\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_item, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tinflater.inflate(R.menu.menu, menu);\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.menu, menu);\n\t return super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.menu, menu);\n\t \n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t\t//menu.clear();\n\t\tinflater.inflate(R.menu.soon_to_be, menu);\n\t\t//getActivity().getActionBar().show();\n\t\t//getActivity().getActionBar().setBackgroundDrawable(\n\t\t\t\t//new ColorDrawable(Color.rgb(223, 160, 23)));\n\t\t//return true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n this.getMenuInflater().inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.main, menu);\n }", "@Override\n\tpublic void onCreateOptionsMenu( Menu menu, MenuInflater inflater )\n\t{\n\t\tsuper.onCreateOptionsMenu( menu, inflater );\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\r\n\t\treturn super.onCreateOptionsMenu(menu);\r\n\t}", "@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\r\n \t// We must call through to the base implementation.\r\n \tsuper.onCreateOptionsMenu(menu);\r\n \t\r\n MenuInflater inflater = getMenuInflater();\r\n inflater.inflate(R.menu.main_menu, menu);\r\n\r\n return true;\r\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main, menu);//Menu Resource, Menu\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main, menu);//Menu Resource, Menu\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater= getMenuInflater();\n inflater.inflate(R.menu.menu_main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.inter_main, menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.action, menu);\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu (Menu menu){\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.custom_action_bar, menu);\n\t\treturn true;\n\t}", "public void initMenubar() {\n\t\tremoveAll();\n\n\t\t// \"File\"\n\t\tfileMenu = new FileMenuD(app);\n\t\tadd(fileMenu);\n\n\t\t// \"Edit\"\n\t\teditMenu = new EditMenuD(app);\n\t\tadd(editMenu);\n\n\t\t// \"View\"\n\t\t// #3711 viewMenu = app.isApplet()? new ViewMenu(app, layout) : new\n\t\t// ViewMenuApplicationD(app, layout);\n\t\tviewMenu = new ViewMenuApplicationD(app, layout);\n\t\tadd(viewMenu);\n\n\t\t// \"Perspectives\"\n\t\t// if(!app.isApplet()) {\n\t\t// perspectivesMenu = new PerspectivesMenu(app, layout);\n\t\t// add(perspectivesMenu);\n\t\t// }\n\n\t\t// \"Options\"\n\t\toptionsMenu = new OptionsMenuD(app);\n\t\tadd(optionsMenu);\n\n\t\t// \"Tools\"\n\t\ttoolsMenu = new ToolsMenuD(app);\n\t\tadd(toolsMenu);\n\n\t\t// \"Window\"\n\t\twindowMenu = new WindowMenuD(app);\n\n\t\tadd(windowMenu);\n\n\t\t// \"Help\"\n\t\thelpMenu = new HelpMenuD(app);\n\t\tadd(helpMenu);\n\n\t\t// support for right-to-left languages\n\t\tapp.setComponentOrientation(this);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater blowUp=getMenuInflater();\n\t\tblowUp.inflate(R.menu.welcome_menu, menu);\n\t\treturn true;\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.listing, menu);\r\n\t\treturn true;\r\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.item, menu);\n return true;\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.resource, menu);\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater= getMenuInflater();\n inflater.inflate(R.menu.menu,menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.home_action_bar, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.template, menu);\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n Log.d(\"onCreateOptionsMenu\", \"create menu\");\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.socket_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main_menu, menu);//Menu Resource, Menu\n\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.actionbar, menu);\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(toolbar_res, menu);\n updateMenuItemsVisibility(menu);\n return true;\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t// \n\t\tMenuInflater mi = getMenuInflater();\n\t\tmi.inflate(R.menu.thumb_actv_menu, menu);\n\t\t\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n }", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t\t}", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t\t}", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.swag_list_activity_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(android.view.Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\n\t\treturn true;\n\t}", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.jarvi, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "public void onCreateOptionsMenu(Menu menu, MenuInflater inflater){\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater menuInflater) {\n menuInflater.inflate(R.menu.main, menu);\n\n }", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.add__listing, menu);\r\n\t\treturn true;\r\n\t}", "@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.actmain, menu);\r\n return true;\r\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.buat_menu, menu);\n\t\treturn true;\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.layout.menu, menu);\n\t\treturn true;\n\t}", "@Override\npublic boolean onCreateOptionsMenu(Menu menu) {\n\n\t\n\t\n\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\n\treturn super.onCreateOptionsMenu(menu);\n}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.ichat, menu);\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater)\n\t{\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t\tinflater.inflate(R.menu.expenses_menu, menu);\n\t}", "@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}", "@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}", "@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.action_bar, menu);\n return true;\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater blowUp = getMenuInflater();\n\t\tblowUp.inflate(R.menu.status, menu);\n\t\treturn true;\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.menu, menu);\r\n\t\treturn true;\r\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn true;\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.ui_main, menu);\r\n\t\treturn true;\r\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main_activity_actions, menu);\n return true;\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.menu_main, menu);\n super.onCreateOptionsMenu(menu, inflater);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.menu_main, menu);\n super.onCreateOptionsMenu(menu, inflater);\n }" ]
[ "0.7246102", "0.7201358", "0.7194834", "0.7176498", "0.71066517", "0.7039537", "0.7037961", "0.70112145", "0.70094734", "0.69807225", "0.6944953", "0.69389373", "0.6933199", "0.6916928", "0.6916928", "0.6891486", "0.68831646", "0.68754137", "0.68745375", "0.68621665", "0.68621665", "0.68621665", "0.68621665", "0.68515885", "0.68467957", "0.68194443", "0.6817494", "0.6813087", "0.6813087", "0.6812847", "0.6805774", "0.6801204", "0.6797914", "0.6791314", "0.6789091", "0.67883503", "0.6783642", "0.6759701", "0.6757412", "0.67478645", "0.6744127", "0.6744127", "0.67411774", "0.6740183", "0.6726017", "0.6723245", "0.67226785", "0.67226785", "0.67208904", "0.67113477", "0.67079866", "0.6704564", "0.6699229", "0.66989094", "0.6696622", "0.66952467", "0.66865396", "0.6683476", "0.6683476", "0.6682188", "0.6681209", "0.6678941", "0.66772443", "0.6667702", "0.66673946", "0.666246", "0.6657578", "0.6657578", "0.6657578", "0.6656586", "0.66544783", "0.66544783", "0.66544783", "0.66524047", "0.6651954", "0.6650132", "0.66487855", "0.6647077", "0.66467404", "0.6646615", "0.66464466", "0.66449624", "0.6644209", "0.6643461", "0.6643005", "0.66421187", "0.6638628", "0.6634786", "0.6633529", "0.6632049", "0.6632049", "0.6632049", "0.66315657", "0.6628954", "0.66281766", "0.6627182", "0.6626297", "0.6624309", "0.6619582", "0.6618876", "0.6618876" ]
0.0
-1
Handle action bar item clicks here. The action bar will automatically handle clicks on the Home/Up button, so long as you specify a parent activity in AndroidManifest.xml.
@Override public boolean onOptionsItemSelected(MenuItem item) { int id = item.getItemId(); //noinspection SimplifiableIfStatement if (id == R.id.action_settings) { return true; } return super.onOptionsItemSelected(item); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean onOptionsItemSelected(MenuItem item) { Handle action bar item clicks here. The action bar will\n // automatically handle clicks on the Home/Up button, so long\n // as you specify a parent activity in AndroidManifest.xml.\n\n //\n // HANDLE BACK BUTTON\n //\n int id = item.getItemId();\n if (id == android.R.id.home) {\n // Back button clicked\n this.finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n // app icon in action bar clicked; goto parent activity.\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n // Respond to the action bar's Up/Home button\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n switch (id) {\r\n case android.R.id.home:\r\n // app icon in action bar clicked; go home\r\n this.finish();\r\n return true;\r\n default:\r\n return super.onOptionsItemSelected(item);\r\n }\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n // app icon in action bar clicked; go home\n finish();\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n Log.e(\"clik\", \"action bar clicked\");\n finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n\t public boolean onOptionsItemSelected(MenuItem item) {\n\t int id = item.getItemId();\n\t \n\t\t\tif (id == android.R.id.home) {\n\t\t\t\t// Respond to the action bar's Up/Home button\n\t\t\t\t// NavUtils.navigateUpFromSameTask(this);\n\t\t\t\tonBackPressed();\n\t\t\t\treturn true;\n\t\t\t}\n\t \n\t \n\t return super.onOptionsItemSelected(item);\n\t }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\r\n switch (item.getItemId()) {\r\n // Respond to the action bar's Up/Home button\r\n case android.R.id.home:\r\n finish();\r\n return true;\r\n }\r\n return super.onOptionsItemSelected(item);\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n // Respond to the action bar's Up/Home button\n case android.R.id.home:\n finish();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n\n switch (item.getItemId()) {\n case android.R.id.home:\n\n // app icon in action bar clicked; goto parent activity.\n this.finish();\n return true;\n default:\n\n return super.onOptionsItemSelected(item);\n\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n\n switch (item.getItemId()) {\n case android.R.id.home:\n\n // app icon in action bar clicked; goto parent activity.\n this.finish();\n return true;\n default:\n\n return super.onOptionsItemSelected(item);\n\n }\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tonBackPressed();\n\t\t\treturn true;\n\t\tdefault:\n\t\t\treturn super.onOptionsItemSelected(item);\n\t\t}\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n // Handle presses on the action bar items\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n case R.id.action_clear:\n return true;\n case R.id.action_done:\n\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n switch (id) {\n case android.R.id.home:\n onActionHomePressed();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id) {\n case android.R.id.home:\n onBackPressed();\n break;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n switch (id) {\n case android.R.id.home:\n onBackPressed();\n break;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n switch (item.getItemId())\n {\n case android.R.id.home :\n super.onBackPressed();\n break;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId ()) {\n case android.R.id.home:\n onBackPressed ();\n return true;\n\n default:\n break;\n }\n return super.onOptionsItemSelected ( item );\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t switch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\t// app icon in action bar clicked; go home \n\t\t\tIntent intent = new Intent(this, Kelutral.class); \n\t\t\tintent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP); \n\t\t\tstartActivity(intent); \n\t\t\treturn true;\t\t\n\t case R.id.Search:\n\t \treturn onSearchRequested();\n\t\tcase R.id.AppInfo:\n\t\t\t// Place holder menu item\n\t\t\tIntent newIntent = new Intent(Intent.ACTION_VIEW,\n\t\t\t\t\tUri.parse(\"http://forum.learnnavi.org/mobile-apps/\"));\n\t\t\tstartActivity(newIntent);\n\t\t\treturn true;\n\t\tcase R.id.Preferences:\n\t\t\tnewIntent = new Intent(getBaseContext(), Preferences.class);\n\t\t\tstartActivity(newIntent);\n\t\t\treturn true;\t\n\t }\n\t return false;\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n\n case android.R.id.home:\n onBackPressed();\n return true;\n\n }\n return super.onOptionsItemSelected(item);\n\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n\n default:\n return super.onOptionsItemSelected(item);\n }\n\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n // Intent homeIntent = new Intent(this, MainActivity.class);\n // homeIntent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n // startActivity(homeIntent);\n finish();\n return true;\n default:\n return (super.onOptionsItemSelected(item));\n }\n\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n // setResult and close the activity when Action Bar Up Button clicked.\n if (item.getItemId() == android.R.id.home) {\n setResult(RESULT_CANCELED);\n finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n // This ID represents the Home or Up button. In the case of this\n // activity, the Up button is shown. Use NavUtils to allow users\n // to navigate up one level in the application structure. For\n // more details, see the Navigation pattern on Android Design:\n //\n // http://developer.android.com/design/patterns/navigation.html#up-vs-back\n //\n \tgetActionBar().setDisplayHomeAsUpEnabled(false);\n \tgetFragmentManager().popBackStack();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n switch (item.getItemId()) {\n case android.R.id.home:\n super.onBackPressed();\n return true;\n\n default:\n // If we got here, the user's action was not recognized.\n // Invoke the superclass to handle it.\n return super.onOptionsItemSelected(item);\n\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if(id == android.R.id.home){\n onBackPressed();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n\n }\n\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@RequiresApi(api = Build.VERSION_CODES.M)\n @Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n break;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\r\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tif(item.getItemId()==android.R.id.home)\r\n\t\t{\r\n\t\t\tgetActivity().onBackPressed();\r\n\t\t}\r\n\t\treturn super.onOptionsItemSelected(item);\r\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n if(item.getItemId()==android.R.id.home){\n super.onBackPressed();\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id) {\n case android.R.id.home:\n onBackPressed();\n return false;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n //Back arrow\n case android.R.id.home:\n onBackPressed();\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n // android.R.id.home是Android内置home按钮的id\n finish();\n break;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n super.onBackPressed();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n this.onBackPressed();\n return false;\n }\n return false;\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n // Handle action bar item clicks here. The action bar will\n // automatically handle clicks on the Home/Up button, so long\n // as you specify a parent activity in AndroidManifest.xml.\n int id = item.getItemId();\n\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\r\n switch (item.getItemId()) {\r\n\r\n case android.R.id.home:\r\n /*Intent i= new Intent(getApplication(), MainActivity.class);\r\n i.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TOP);\r\n startActivity(i);*/\r\n onBackPressed();\r\n finish();\r\n return true;\r\n default:\r\n return super.onOptionsItemSelected(item);\r\n }\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id){\n case android.R.id.home:\n this.finish();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n // Pass the event to ActionBarDrawerToggle, if it returns\n // true, then it has handled the app icon touch event\n if (mDrawerToggle.onOptionsItemSelected(item)) {\n return true;\n }\n\n // Handle your other action bar items...\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n // Respond to the action bar's Up/Home button\n case android.R.id.home:\n NavUtils.navigateUpFromSameTask(getActivity());\n return true;\n case R.id.action_settings:\n Intent i = new Intent(getActivity(), SettingsActivity.class);\n startActivity(i);\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n //Fixes the Up Button\n if(id == android.R.id.home) {\n BuildRoute.this.finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()){\n case android.R.id.home:\n onBackPressed();\n break;\n }\n return true;\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n\n if (id == android.R.id.home) {\n NavUtils.navigateUpFromSameTask(this);\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\r\n case android.R.id.home:\r\n onBackPressed();\r\n break;\r\n }\r\n return true;\r\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tif (item.getItemId() == android.R.id.home) {\n\t\t\tfinish();\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n onBackPressed();\n\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n if ( id == android.R.id.home ) {\r\n finish();\r\n return true;\r\n }\r\n return super.onOptionsItemSelected(item);\r\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == R.id.home) {\r\n NavUtils.navigateUpFromSameTask(this);\r\n return true;\r\n }\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == R.id.action_about) {\r\n AboutDialog();\r\n return true;\r\n }\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == R.id.action_exit) {\r\n finish();\r\n return true;\r\n }\r\n\r\n\r\n return super.onOptionsItemSelected(item);\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n\n this.finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n\n this.finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n//noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n// finish the activity\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item)\n {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if( id == android.R.id.home ) // Back button of the actionbar\n {\n finish();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n\t\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\t\tswitch (item.getItemId()) {\r\n\t\t\tcase android.R.id.home:\r\n\t\t\t\tfinish();\r\n\t\t\t\tbreak;\r\n\t\t\tdefault:\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\treturn super.onOptionsItemSelected(item);\r\n\t\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n\n this.finish();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n if (item.getItemId() == android.R.id.home) {\n onBackPressed();\n return true;\n }\n return false;\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n\n if(id == android.R.id.home){\n finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n if (item.getItemId() == android.R.id.home) {\n finish();\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\r\n\t\tcase android.R.id.home:\r\n\t\t\tsetResult(RESULT_OK, getIntent());\r\n\t\t\tfinish();\r\n\t\t\tbreak;\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n finish();\n return true;\n default:\n // If we got here, the user's action was not recognized.\n // Invoke the superclass to handle it.\n return super.onOptionsItemSelected(item);\n\n }\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tfinish();\n\t\t\tbreak;\n\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id) {\n\n case android.R.id.home:\n this.finish();\n return true;\n }\n return true;\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tfinish();\n\t\t\tbreak;\n\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tint id = item.getItemId();\n\t\tif (id == android.R.id.home) {\n\t\t\tfinish();\n\t\t\treturn true;\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n if (id == android.R.id.home) {\r\n finish();\r\n return true;\r\n }\r\n return super.onOptionsItemSelected(item);\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n //NavUtils.navigateUpFromSameTask(this);\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n // todo: goto back activity from here\n finish();\n return true;\n\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\r\n // Handle item selection\r\n switch (item.getItemId()) {\r\n case android.R.id.home:\r\n onBackPressed();\r\n return true;\r\n\r\n case me.cchiang.lookforthings.R.id.action_sample:\r\n// Snackbar.make(parent_view, item.getTitle() + \" Clicked \", Snackbar.LENGTH_SHORT).show();\r\n return true;\r\n default:\r\n return super.onOptionsItemSelected(item);\r\n }\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n finish();\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n finish();\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n finish();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n\n\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tonBackPressed();\n\t\t\treturn true;\n\t\tcase R.id.scan_menu:\n\t\t\tonScan();\n\t\t\tbreak;\n\t\tcase R.id.opt_about:\n\t\t\t//onAbout();\n\t\t\tbreak;\n\t\tcase R.id.opt_exit:\n\t\t\tfinish();\n\t\t\tbreak;\n\t\tdefault:\n\t\t\treturn super.onOptionsItemSelected(item);\n\t\t}\n\t\treturn true;\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n super.onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id) {\n case android.R.id.home:\n this.finish();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(@NonNull MenuItem item) {\n if (item.getItemId() == android.R.id.home) {\n onBackPressed();\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n switch (id) {\n case android.R.id.home:\n finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n\n case android.R.id.home:\n finish();\n return true;\n\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if(id==android.R.id.home){\n finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\r\n\t switch (item.getItemId()) {\r\n\t \t// back to previous page\r\n\t case android.R.id.home:\r\n\t finish();\r\n\t return true;\r\n\t }\r\n\t return super.onOptionsItemSelected(item);\r\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == android.R.id.home) {\r\n // finish the activity\r\n onBackPressed();\r\n return true;\r\n }\r\n\r\n return super.onOptionsItemSelected(item);\r\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == android.R.id.home) {\r\n // finish the activity\r\n onBackPressed();\r\n return true;\r\n }\r\n\r\n return super.onOptionsItemSelected(item);\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId())\n {\n case android.R.id.home:\n this.finish();\n return (true);\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id){\n case R.id.home:{\n NavUtils.navigateUpFromSameTask(this);\n return true;\n }\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n switch(item.getItemId())\n {\n case android.R.id.home:\n super.onBackPressed();\n break;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tfinish();\n\t\t\treturn true;\n\n\t\tdefault:\n\t\t\treturn super.onOptionsItemSelected(item);\n\t\t}\n\t}", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n\r\n int id = item.getItemId();\r\n if(id==android.R.id.home){\r\n finish();\r\n return true;\r\n }\r\n return super.onOptionsItemSelected(item);\r\n }" ]
[ "0.79041183", "0.7805934", "0.77659106", "0.7727251", "0.7631684", "0.7621701", "0.75839096", "0.75300384", "0.74873656", "0.7458051", "0.7458051", "0.7438486", "0.742157", "0.7403794", "0.7391802", "0.73870087", "0.7379108", "0.7370295", "0.7362194", "0.7355759", "0.73454577", "0.734109", "0.73295504", "0.7327726", "0.73259085", "0.73188347", "0.731648", "0.73134047", "0.7303978", "0.7303978", "0.7301588", "0.7298084", "0.72932935", "0.7286338", "0.7283324", "0.72808945", "0.72785115", "0.72597474", "0.72597474", "0.72597474", "0.725962", "0.7259136", "0.7249966", "0.7224023", "0.721937", "0.7216621", "0.72045326", "0.7200649", "0.71991026", "0.71923256", "0.71851367", "0.7176769", "0.7168457", "0.71675026", "0.7153402", "0.71533287", "0.71352696", "0.71350807", "0.71350807", "0.7129153", "0.7128639", "0.7124181", "0.7123387", "0.7122983", "0.71220255", "0.711715", "0.711715", "0.711715", "0.711715", "0.7117043", "0.71169263", "0.7116624", "0.71149373", "0.71123946", "0.7109806", "0.7108778", "0.710536", "0.7098968", "0.70981944", "0.7095771", "0.7093572", "0.7093572", "0.70862055", "0.7082207", "0.70808214", "0.7080366", "0.7073644", "0.7068183", "0.706161", "0.7060019", "0.70598614", "0.7051272", "0.70374316", "0.70374316", "0.7035865", "0.70352185", "0.70352185", "0.7031749", "0.703084", "0.7029517", "0.7018633" ]
0.0
-1
Set last visited date, if the existing last visit was earlier.
public void setLastVisitIfBefore(Date flightDate) { if (flightDate == null) { return; } if (lastVisit == null || lastVisit.before(flightDate)) { lastVisit = flightDate; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setLast_seen(Date last_seen) {\n this.last_seen = last_seen;\n }", "void setLastAccessDate();", "public void setLastLogin() {\r\n game.settings.setLastSeen(strDate);\r\n }", "public void setLastActivityDate(Date lastActivityDate) {\n this.lastActivityDate = lastActivityDate;\n }", "public void setLastSaved(Date lastSaved)\r\n {\r\n m_lastSaved = lastSaved;\r\n }", "public void setLastAccess(Date lastAccess) {\n this.lastAccess = lastAccess;\n }", "public void setFirst_seen(Date first_seen) {\n this.first_seen = first_seen;\n }", "void setLastLogin(Date lastLogin);", "public void updateLastSeenTime() {\n\t\tsetLastSeenDate(new Date());\n\t}", "public void setVisited(boolean visited) {\n isVisited = visited;\n }", "public void setVisited(Boolean visited) {\n this.visited = visited;\n }", "public void setLastUsed(Date lastUsed) {\r\n\t\tthis.lastUsed = lastUsed;\r\n\t}", "public void setVisited(boolean visited) {\n this.visited = visited;\n }", "public void setVisited(boolean visited) {\r\n\t\t\tthis.visited = visited;\r\n\t\t}", "private void setCurrentDate(Date date)\n {\n date.setTime(System.currentTimeMillis());\n }", "public void setLastUpdated(final Date date) {\n this.lastUpdated = date;\n }", "public void setVisited(boolean visited)\n\t{\n\t\tthis.visited = visited;\n\t}", "public void setLastUpdated(Date lastUpdated) {\n this.lastUpdated = lastUpdated;\n }", "public void setLastUpdated(Date lastUpdated) {\n this.lastUpdated = lastUpdated;\n }", "public void setLastUpdated(Date lastUpdated) {\n this.lastUpdated = lastUpdated;\n }", "@Override\n\tpublic void setCreatedDate(java.util.Date CreatedDate) {\n\t\t_locMstLocation.setCreatedDate(CreatedDate);\n\t}", "public void setVisited(boolean value){this.visited = value;}", "@Override\n\tpublic void setCheckpoint(java.util.Date checkpoint) {\n\t\t_userSync.setCheckpoint(checkpoint);\n\t}", "private void refreshLastSeenDate() {\r\n\r\n if (friendFeed == null)\r\n return;\r\n\r\n Date lastMessageDate = friendFeed.getLastMessageTime();\r\n lastMessageSentDateTextView.setText(StringUtils\r\n .normalizeDifferenceDate(lastMessageDate));\r\n }", "public void setLastUpdateDate(Date value)\n {\n setAttributeInternal(LASTUPDATEDATE, value);\n }", "public void setVisited()\n {\n visited = true;\n }", "public void setDatasetLastAddedToNow() {\n this.datasetLastAdded = new Date();\n }", "private void setToday() {\r\n\t\tmTime = new Date().getTime();\r\n\t}", "public void setLastStatusChangeDate(java.util.Date value);", "public final void updateAccessDateTime() {\n \tm_accessDate = System.currentTimeMillis();\n }", "public void setDate(Date date) {\n if (date != null) {\n this.mDate = (Date) date.clone();\n } else {\n Logger.d(TAG, \"The date is null\");\n }\n }", "public void setLastUsedDate(java.util.Date lastUsedDate) {\n\t\tthis.lastUsedDate = lastUsedDate;\n\t}", "public void setToDate(Date toDate)\r\n/* 33: */ {\r\n/* 34:39 */ this.toDate = toDate;\r\n/* 35: */ }", "public void setDate(Date date) {\n if (date != null) {\n this.mDate = (Date) date.clone();\n } else {\n this.mDate = null;\n }\n }", "public void setLastUpdate( Date lastUpdate ) {\r\n this.lastUpdate = lastUpdate;\r\n }", "public void setVisited(Boolean b){\n visited = b;\n }", "public void setLastUpDateDate(Date lastUpDateDate) {\n this.lastUpDateDate = lastUpDateDate;\n }", "public void setLastupdatedate(Date lastupdatedate) {\n this.lastupdatedate = lastupdatedate;\n }", "protected void setDatelastmaint(Date datelastmaint) {\n\t\tthis.datelastmaint = datelastmaint;\n\t}", "public void setDate() {\n this.date = new Date();\n }", "public void setTodayDate() {\n\t\tfinal Calendar c = Calendar.getInstance();\r\n\t\tmYear = c.get(Calendar.YEAR);\r\n\t\tmMonth = c.get(Calendar.MONTH);\r\n\t\tmDay = c.get(Calendar.DAY_OF_MONTH);\r\n\r\n\t\tmaxYear = mYear - 10;\r\n\t\tmaxMonth = mMonth;\r\n\t\tmaxDay = mDay;\r\n\r\n\t\tminYear = mYear - 110;\r\n\t\tminMonth = mMonth;\r\n\t\tminDay = mDay;\r\n\t\t// display the current date (this method is below)\r\n\t\t// updateDisplay();\r\n\t\t updateDisplay(maxYear, maxMonth, maxDay);\r\n\t}", "public static void setLastTimeRun(Context c, Date date) {\n\t\tSharedPreferences sp = c.getSharedPreferences(Defines.SHARED_PREF_LAST_RUN_DATE, Context.MODE_PRIVATE);\n\t\tEditor edit = sp.edit();\n\t\tlong currentDateMill = date.getTime();\n\t\tedit.putLong(Defines.SHARED_PREF_LAST_RUN_DATE, currentDateMill);\n\t\tedit.commit();\n\t}", "public void setVisited(boolean b) {\n\t\t_visited = b;\n\t}", "@Override\n\tpublic void setLastServiced(Date lastServiced) {\n\t\tthis.lastServiced = lastServiced;\n\t}", "public void setLastUpdateDate(Date lastUpdateDate) {\r\n this.lastUpdateDate = lastUpdateDate;\r\n }", "public void setLastUpdatedDate(Date value) {\r\n setAttributeInternal(LASTUPDATEDDATE, value);\r\n }", "public void setLastUpdateDate(Date value) {\n setAttributeInternal(LASTUPDATEDATE, value);\n }", "public void setLastUpdateDate(Date value) {\n setAttributeInternal(LASTUPDATEDATE, value);\n }", "public void setLastUpdateDate(Date value) {\n setAttributeInternal(LASTUPDATEDATE, value);\n }", "public void setLastUpdateDate(Date value) {\n setAttributeInternal(LASTUPDATEDATE, value);\n }", "public void setLastUpdateDate(Date value) {\n setAttributeInternal(LASTUPDATEDATE, value);\n }", "public void setLastUpdateDate(Date value) {\n setAttributeInternal(LASTUPDATEDATE, value);\n }", "public void setLastUpdateDate(Date value) {\n setAttributeInternal(LASTUPDATEDATE, value);\n }", "public void setLastUpdateDate(Date value) {\n setAttributeInternal(LASTUPDATEDATE, value);\n }", "public void setLastContactsUpdate() {\n long time = new Date().getTime();\n preferences.edit()\n .putLong(LAST_CONTACTS_UPDATE, time)\n .apply();\n }", "public Date getLast_seen() {\n return last_seen;\n }", "public void setCreateDate(java.util.Date newVal) {\n if ((newVal != null && this.createDate != null && (newVal.compareTo(this.createDate) == 0)) || \n (newVal == null && this.createDate == null && createDate_is_initialized)) {\n return; \n } \n try {\n this.createDate = (java.util.Date)newVal.clone();\n } catch (Exception e) {\n // do nothing\n }\n\n createDate_is_modified = true; \n createDate_is_initialized = true; \n }", "public void setLastUpdTime(LocalDateTime value) {\n set(7, value);\n }", "@Override\n\tprotected void setNextSiegeDate()\n\t{\n\t\tif(_siegeDate.getTimeInMillis() < Calendar.getInstance().getTimeInMillis())\n\t\t{\n\t\t\t_siegeDate = Calendar.getInstance();\n\t\t\t// Осада не чаще, чем каждые 4 часа + 1 час на подготовку.\n\t\t\tif(Calendar.getInstance().getTimeInMillis() - getSiegeUnit().getLastSiegeDate() * 1000L > 14400000)\n\t\t\t\t_siegeDate.add(Calendar.HOUR_OF_DAY, 1);\n\t\t\telse\n\t\t\t{\n\t\t\t\t_siegeDate.setTimeInMillis(getSiegeUnit().getLastSiegeDate() * 1000L);\n\t\t\t\t_siegeDate.add(Calendar.HOUR_OF_DAY, 5);\n\t\t\t}\n\t\t\t_database.saveSiegeDate();\n\t\t}\n\t}", "@Override\n\tpublic void setLastUpdatedTime(Date lastUpdated) {\n\n\t}", "public void setDate(Date newDate) {\n this.currentDate = newDate;\n }", "@Override\n\tpublic void setModifiedDate(Date modifiedDate) {\n\t\t_userTracker.setModifiedDate(modifiedDate);\n\t}", "@Override\n\tprotected void setDate() {\n\n\t}", "public void setLastUpdateDate(Date lastUpdateDate) {\n this.lastUpdateDate = lastUpdateDate;\n }", "@Override\n\tpublic void setLastSavePoint(java.util.Date lastSavePoint) {\n\t\t_keHoachKiemDemNuoc.setLastSavePoint(lastSavePoint);\n\t}", "public void setLastAccessedTime(long lastAccessTime) {\r\n \t\tthis.lastAccessTime= lastAccessTime;\r\n \t}", "public void setDate(Date date) {\n setDate(date, null);\n }", "public void setUpdatedAt(final Date value)\n\t{\n\t\tsetUpdatedAt( getSession().getSessionContext(), value );\n\t}", "public void setVisitTime(Long visitTime) {\n this.visitTime = visitTime;\n }", "public void setRegdate(java.sql.Timestamp newVal) {\n if ((newVal != null && this.regdate != null && (newVal.compareTo(this.regdate) == 0)) || \n (newVal == null && this.regdate == null && regdate_is_initialized)) {\n return; \n } \n this.regdate = newVal; \n regdate_is_modified = true; \n regdate_is_initialized = true; \n }", "public void setLastTime(Date lastTime) {\n this.lastTime = lastTime;\n }", "public void setLastOnlineTime(Date lastOnlineTime) {\n this.lastOnlineTime = lastOnlineTime;\n }", "void changeVisited(){\n\t \t\tthis.isVisited = true;}", "public void setCurrentDate(Date currentDate)\r\n {\r\n m_currentDate = currentDate;\r\n }", "public void setLastUpdTime(Date lastUpdTime) {\n this.lastUpdTime = lastUpdTime;\n }", "public void setLastUpdated(long lastUpdated) {\n\t\tassert lastUpdated > this.lastUpdated; \n\t\tthis.lastUpdated = lastUpdated;\n\t}", "public void setLastlogintime(Date lastlogintime) {\n this.lastlogintime = lastlogintime;\n }", "void setLastUpdatedTime();", "private void setExpiresDate(Date date, long offset)\n {\n date.setTime(System.currentTimeMillis() + offset);\n }", "public void setLastUpdateTime(Date lastUpdateTime) {\r\n this.lastUpdateTime = lastUpdateTime;\r\n }", "public void setDate(Date date) {\r\n\t\tthis.date = date;\r\n\t}", "public void setDate(Date date) {\r\n\t\tthis.date = date;\r\n\t}", "public void setDate(Date date) {\r\n\t\tthis.date = date;\r\n\t}", "public void setLastmodifieddate(Date lastmodifieddate) {\n this.lastmodifieddate = lastmodifieddate;\n }", "@JsonProperty(\"last_used\")\n public void setLastUsed(Date lastUsed) {\n this.lastUsed = lastUsed;\n }", "public void setLastUpdatedAt(java.util.Date lastUpdatedAt) {\n this.lastUpdatedAt = lastUpdatedAt;\n }", "public void setDEPARTURE_FROM_LOC_DATE(java.sql.Date value)\n {\n if ((__DEPARTURE_FROM_LOC_DATE == null) != (value == null) || (value != null && ! value.equals(__DEPARTURE_FROM_LOC_DATE)))\n {\n _isDirty = true;\n }\n __DEPARTURE_FROM_LOC_DATE = value;\n }", "public void setDate(Date date) {\n\t\n\t\tthis.date = date;\n\t\n\t}", "public void saveCalenderDate() {\r\n\t\tdate = getDateToDisplay(null);\r\n\t}", "public void setLastChangedDate(java.util.Date lastChangedDate) {\n\t\tthis.lastChangedDate = lastChangedDate;\n\t}", "public void setLstLastOrderDate(Date lstLastOrderDate) {\n this.lstLastOrderDate = lstLastOrderDate;\n }", "public void setLastUpdateDate(long lastUpdateDate) {\n content.put(LAST_UPDATE_DATE, lastUpdateDate);\n }", "public void setFlastupdatetime(Date flastupdatetime) {\n this.flastupdatetime = flastupdatetime;\n }", "public void setARRIVAL_AT_LOC_DATE(java.sql.Date value)\n {\n if ((__ARRIVAL_AT_LOC_DATE == null) != (value == null) || (value != null && ! value.equals(__ARRIVAL_AT_LOC_DATE)))\n {\n _isDirty = true;\n }\n __ARRIVAL_AT_LOC_DATE = value;\n }", "public void SetDate(Date date);", "public void setDate(Date date) {\n mDate = date;\n }", "public void setDate(Date date) {\r\n this.date = date;\r\n }", "public void setLastUpdateTime(Date lastUpdateTime) {\n this.lastUpdateTime = lastUpdateTime;\n }", "public void setLastUpdateTime(Date lastUpdateTime) {\n this.lastUpdateTime = lastUpdateTime;\n }", "public void setJlastTime(Date jlastTime) {\n this.jlastTime = jlastTime;\n }" ]
[ "0.71425414", "0.6425476", "0.6371481", "0.6285544", "0.6252094", "0.62390924", "0.62105894", "0.6177004", "0.6163717", "0.5956353", "0.59193385", "0.5891429", "0.58670384", "0.5849621", "0.58366656", "0.5820257", "0.58035487", "0.5734035", "0.5734035", "0.5734035", "0.564469", "0.5631494", "0.56202614", "0.56075585", "0.56059206", "0.55968714", "0.5563839", "0.5534987", "0.5534663", "0.5526251", "0.5518707", "0.5515483", "0.55101866", "0.55077577", "0.5497078", "0.5486875", "0.5485889", "0.5484999", "0.5481394", "0.5451999", "0.5449473", "0.5444351", "0.54380655", "0.5425052", "0.54150426", "0.5409297", "0.54061615", "0.54061615", "0.54061615", "0.54061615", "0.54061615", "0.54061615", "0.54061615", "0.54061615", "0.5392673", "0.53856605", "0.53848636", "0.5381995", "0.53781235", "0.53700155", "0.5359451", "0.53444386", "0.5343062", "0.5338193", "0.53373504", "0.5334838", "0.5334094", "0.53277636", "0.5322926", "0.53127706", "0.5311369", "0.52873933", "0.52862746", "0.5275197", "0.52673244", "0.52611333", "0.5257673", "0.525534", "0.5253206", "0.52386767", "0.5237709", "0.5237709", "0.5237709", "0.5232623", "0.5228661", "0.52208215", "0.521945", "0.5212302", "0.5202751", "0.5202186", "0.5194653", "0.51921356", "0.5191202", "0.51870775", "0.5184323", "0.5183598", "0.51710737", "0.5156057", "0.5156057", "0.51546913" ]
0.68032944
1
Add 1 to number of departures from this airport.
public void incrementDepartures() { numDepartures++; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void incrementArrivals() {\n numArrivals++;\n }", "private static void incrementFlightTakeOffCounter()\r\n\t{\r\n\t\tflightTakeOffCounter++;\r\n\t}", "private int getNextAirportID(){\n\t\treturn this.airportIDCounter++;\n\t}", "public void getDepartureFlightcount()\n\t{\n\t\tUserdefinedFunctions.scrollTillBottomPage();\n\t\twaitForSeconds(5);\n\t\tUserdefinedFunctions.scrollTillBottomPage();\n\t\twaitForSeconds(5);\n\t\tUserdefinedFunctions.scrollTillBottomPage();\n\t\twaitForSeconds(5);\n\t\tUserdefinedFunctions.scrollTillBottomPage();\n\t\twaitForSeconds(5);\n\t\tUserdefinedFunctions.scrollTillBottomPage();\n\t\twaitForSeconds(5);\n\t\t//List<WebElement> depatureFlight = driver.findElements(By.xpath(\"//div[@class='fli-list splitVw-listing']/input[@name='splitowJourney']\"));\n\t\tint count = depatureFlight.size();\n\t\tSystem.out.println(\"Total number of departure Flight records: \"+count);\n\t}", "public int getDepartmentCount() {\n\t\treturn depCount;\n\t}", "public int getNumFlights() {\n return itinerary.size();\n }", "public void addOccupants(int numOfOccupants)\n { occupants+= numOfOccupants;\n }", "public void numOfFlights(int numOfFlights);", "public void setNumDeparting() {\n if (isStopped() && !embarkingPassengersSet){\n \tRandom rand = new Random();\n \tint n = rand.nextInt(this.numPassengers+1);\n \tif (this.numPassengers - n <= 0) {\n \t\tthis.numPassengers = 0;\n n = this.numPassengers;\n \t} else {\n this.numPassengers = this.numPassengers - n;\n }\n trkMdl.passengersUnboarded(trainID, n);\n }\n \t//return 0;\n }", "public void addCount()\n {\n \tcount++;\n }", "public void increase()\n {\n setCount(getCount() + 1);\n }", "int getTransitFlightsCount();", "public void zugInsDepot() {\n depot++;\n }", "public void incrementNumberOfRooms() {\n\t\t\n\t\tnumberOfRooms++;\n\t}", "public void addCount() {\n \t\tdupCount++;\n \t}", "public void updateNumberOfVehicles() {\r\n numberOfVehicles = getVehicles().size();\r\n }", "public void incrementDeaths() {\n stats.put(deathsKey, (Integer)stats.get(deathsKey)+1);\n }", "private void addAllDepartments() {\n\t\tfinal BillingPeriod bp = (BillingPeriod) this.getBean().getContainer()\n\t\t\t\t.findBean(\"org.rapidbeans.clubadmin.domain.BillingPeriod\", this.getBillingPeriod().getIdString());\n\t\tfor (RapidBean bean : this.getBean().getContainer()\n\t\t\t\t.findBeansByType(\"org.rapidbeans.clubadmin.domain.Department\")) {\n\t\t\tfinal Department dep = (Department) bean;\n\t\t\tif (bp.getDepartments() == null || !bp.getDepartments().contains(dep)) {\n\t\t\t\tbp.addDepartment(dep);\n\t\t\t}\n\t\t}\n\t}", "public int totalParties() {\n return numParties;\n }", "public void addDeActiveness(){\n deActiveInARow +=1;\n }", "public void addPassenger() {\n\t\t\n\t\tsynchronized(this) {\n\t\t\tcurrentOccup++;\n\t\t}\n\t\t\n\t\tSystem.out.println(\"Elevator \" + elevatorNum + \" total passenger count: \" + currentOccup);\n\t}", "private void grow(){\n\t\tberries.replaceAll((p, v) -> v + 1);\n\t\tapples.replaceAll((p, v) -> v + 1);\n\t}", "public void incrementPoints(){\n nbPointsMap++;\n if(getNbPointsMap()==getNbPointsMapMax()){\n ConclusionPacman conclusion = new ConclusionPacman(stage,true,nbPoints.get(), this);\n }\n }", "public int getDepartedPassengerCount() {\n\t\tint total = 0;\n\t\tfor (Taxi taxi : taxis) {\n\t\t\ttotal += taxi.getTotalNrOfPassengers();\n\t\t}\n\t\treturn total;\n\t}", "public final int getDeponentCount() {\r\n synchronized (f_seaLock) {\r\n return f_deponents.size();\r\n }\r\n }", "public void increase() {\r\n\r\n\t\tincrease(1);\r\n\r\n\t}", "public int addDeath() {\n\t\treturn ++this.numDeaths;\n\t}", "public static void incrementGuestRoomCount() {numGuestRooms++;}", "public int size() {\n return trips.size();\n }", "public void counterAddup(){\n\t\tfor (int i=0; i<window.size(); i++){\n\t\t\tif ( window.get(i).acked == false ){\n\t\t\t\twindow.get(i).counter = window.get(i).counter+1;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\treturn ;\n\t}", "private static int getFlightTakeOffCount()\r\n\t{\r\n\t\treturn flightTakeOffCounter;\r\n\t}", "public void sumarUnidad() {\r\n\t\tcantidad++;\r\n\t}", "public int getNumFlights() {\n return numFlights;\n }", "public int getTransitFlightsCount() {\n return transitFlights_.size();\n }", "public Builder clearDepartureAirport() {\n \n departureAirport_ = getDefaultInstance().getDepartureAirport();\n onChanged();\n return this;\n }", "public int addToBasket (Airport one, Airport two) {\n\t\tFlightReservation r3 = new FlightReservation(name, one, two);\n\t\tcustomerResos.add(r3);\n\t\treturn customerResos.getNumOfReservations();\n\t}", "public void incrementNumAttacked( ){\n this.numAttacked++;\n }", "public int getDEALERCount() {\r\n\t\treturn _DEALERList.size();\r\n\t}", "public void addPoint() {\n points += 1;\n }", "public void increaseRepDegree() {\r\n\t\tactualRepDegree++;\r\n\r\n\t}", "@JsonIgnore public Collection<Airport> getDepartureAirports() {\n final Object current = myData.get(\"departureAirport\");\n if (current == null) return Collections.emptyList();\n if (current instanceof Collection) {\n return (Collection<Airport>) current;\n }\n return Arrays.asList((Airport) current);\n }", "public void incPieceCount () {\n m_PieceCount++;\n\t}", "public void Increase()\n {\n Increase(1);\n }", "public int incNummerOfMissing() {\n\t\t\treturn numberOfMissings++;\n\t\t}", "public void increaseFeatureCount() {\n this.featureCount++;\n }", "public int incrementAges() {\n int deadGuppyCount = 0;\n Iterator<Guppy> it = guppiesInPool.iterator();\n\n while (it.hasNext()) {\n Guppy currentGuppy = it.next();\n currentGuppy.incrementAge();\n if (!currentGuppy.getIsAlive()) {\n deadGuppyCount++;\n }\n }\n return deadGuppyCount;\n }", "public void vampireAdd(){\n //Will permit to know if every vampires are different\n Set<Being> swap = new HashSet();\n\n //Iterate till the set is equal to the number of vampire we need\n while(swap.size() != this.vampires){\n //Create a new vampire\n Vampire vamp = vampireSet();\n //Test if the vampire is unique\n if(swap.add(vamp)){\n //Add the vampire to the real list if it's unique\n this.beings.add(vamp);\n }\n }\n //Clear the set, I guess it's optional\n swap.clear();\n }", "void incrementAddedCount() {\n addedCount.incrementAndGet();\n }", "private void updateExpectedTotalOffices() {\n mExpectedTotalOffices++;\n }", "public void setDepartureTime (int departs)\n {\n departureTime = departs;\n }", "int getNoOfParties();", "@Override\r\n\tpublic int getNumberOfAircraft() {\r\n\t\treturn airCrafts.size();\r\n\t}", "public void increaseCourseCount(){}", "public void venceuRodada () {\n this.pontuacaoPartida++;\n }", "public int getDeliveriesCount() {\n return deliveries_.size();\n }", "int getDeliveriesCount();", "public int addAirport(Vector location, Vector heading){\n\t\t//get the parameters needed for airport generation\n\t\tMap<Integer, WorldAirport> airports = this.getAirportMap();\n\t\t//first check if the width and length are already defined, if not define them now\n\t\tint newID = this.getNextAirportID();\n\t\t//generate the airport\n\t\tWorldAirport airport = new WorldAirport(location, heading, this.getRunwayWidth(), this.getRunwayLength(), newID);\n\t\tairports.put(newID, airport);\n\t\treturn newID;\n\t}", "public void plusFoulTeamA (View view) {\r\n foulsA++;\r\n displayFoulsForTeamA(foulsA);\r\n }", "public void incrementNumOfBoats() {\n\t\tnumOfBoats++;\n\t}", "public void setTotalPassengers(int value) {\n this.totalPassengers = value;\n }", "public void increaseHour() {\n\t\tthis.total++;\n\t}", "public void increase() {\r\n\t\t\tsynchronized (activity.getTaskTracker()) {\r\n\t\t\t\tactivity.getTaskTracker().count++;\r\n\t\t\t\tLog.d(LOGTAG, \"Incremented task count to \" + count);\r\n\t\t\t}\r\n\t\t}", "public void addOccurence() {\n\t\tcount = count + 1;\n\t}", "public void incrementNumberOfShips(int value) {\r\n\t\tnumberOfShips = numberOfShips + value;\r\n\t}", "public static void main(String[] args) throws CantAdd, CoronaWarn {\n\t\tTravelAgency TravelAgency = new TravelAgency();\r\n\r\n\t\tPlane p=new Plane(200,2,\"first plane max travelers\");\r\n\t\tPlane p1=new Plane(100,1,\"second plan min traelers\");\r\n\r\n\t\tTrip i=new Trip(p,Country.Australia,Country.Canada);\r\n\t\tTrip io=new Trip(p1,Country.Australia,Country.Canada);\r\n\t\t \r\n\t\tDate date=new Date(1,2,5);\r\n\t\tPassport passprt1=new Passport(\"anton\",44,date);\r\n\t\tPassport passprt2=new Passport(\"abdo\",44,date);\r\n\t\tPassport passprt3=new Passport(\"julie\",44,date);\r\n\t\tPassport passprt4=new Passport(\"juliana\",44,date);\r\n\t\tPassport passprt5=new Passport(\"bella\",44,date);\r\n\t\tPassport passprt6=new Passport(\"geris\",44,date);\r\n\t\tTraveler t1=new Traveler(passprt1,true,true);\r\n\t\tTraveler t2=new Traveler(passprt2,true,true);\r\n\t\tTraveler t3=new Traveler(passprt3,true,true);\r\n\t\tTraveler t4=new Traveler(passprt4,true,true);\r\n\t\tTraveler t5=new Traveler(passprt5,true,true);\r\n\t\tTraveler t6=new Traveler(passprt6,true,true);\r\n\t\t\r\n\t\t\r\n\t\tio.addTraveler(t1);\r\n\t\tio.addTraveler(t2);\r\n\t\tio.addTraveler(t3);\r\n\t\tio.addTraveler(t6);\r\n\t\tio.addTraveler(t5);\r\n\t\tio.addTraveler(t4);\r\n\t\tio.addTraveler(t6);\r\n \r\n\t\ti.addTraveler(t1);\r\n\t\ti.addTraveler(t2);\r\n\t\ti.addTraveler(t3);\r\n\t\ti.addTraveler(t4);\r\n\t\r\n\t\ti.addTraveler(t6);\r\n\t\t\r\n\t\tTravelAgency.addTrip(i);\t\r\n\t\tTravelAgency.addTrip(io);\r\n\t\tSystem.out.print(TravelAgency.findUnsafeTrips());\r\n\r\n\t\t\r\n\t\tTravelAgency.AddTraveler(t1);\r\n\t\tTravelAgency.AddTraveler(t2);\r\n\t\tTravelAgency.AddTraveler(t3);\r\n\t\tTravelAgency.AddTraveler(t4);\r\n\t\tTravelAgency.AddTraveler(t5);\r\n\t\tTravelAgency.AddTraveler(t6);\r\n\t\t\r\n\t}", "public void aumentarAciertos() {\r\n this.aciertos += 1;\r\n this.intentos += 1; \r\n }", "public void increment() {\n items++;\n }", "public void gagne()\r\n\t{\r\n\t\tthis.nbVictoires++;\r\n\t}", "public void incrementCount() {\n count++;\n }", "public void increseHitCount() {\n\r\n\t}", "public int numberOfItems()\n {\n return dessertList.size();\n }", "public void diminueVies() {\n\n nbVies_restantes.set(nbVies_restantes.get()-1);\n\n }", "public void increment() {\r\n\t\tcurrentSheeps++;\r\n\t}", "@Override\n\tpublic int getTotalCount(String departureId, String destintionId) {\n\t\treturn flightMapper.getTotalCount(departureId, destintionId);\n\t}", "public void incrementTotal() {\n\t\t\ttotal++;\n\t\t}", "public void addPenaltiTeamA(View view) {\n penaltiTeamA = penaltiTeamA + 1;\n displayPenaltiTeamA(penaltiTeamA);\n }", "public void incrementCount() {\n\t\tcount++;\n\t}", "public void setNumberOfPolygons(int aCount)\r\n {\r\n theNumberOfPolygons = aCount;\r\n if (theNumberOfPolygonsField != null)\r\n {\r\n theNumberOfPolygonsField.setValue(theNumberOfPolygons);\r\n theNumberOfPolygonsField.updateUI();\r\n }\r\n }", "public void addP1Set() {\n assert (p1Sets < 3) : \"Player 1 should not have already reached 3 sets\";\n p1Sets +=1;\n }", "public int getnumeroDePacientes() {\n\t\treturn numeroDePacientes;\n\t}", "@Override\n\tpublic void resetTripCount() {\n\t\tthis.tripCount = 0;\n\t}", "@Override\n\tpublic void resetTripCount() {\n\t\tthis.tripCount = 0;\n\n\t}", "public void incrementNumDisconnects() {\n this.numDisconnects.incrementAndGet();\n }", "@Override\n\tpublic int numElements() {\n\t\treturn stencil.holes.length;\n\t}", "public void addVertices(int num){ \n this.nrVertices += num;\n }", "public void addCollision(){\n if (collisionCounter == 4){\n return;\n }\n this.collisionCounter++;\n }", "public void incrementNumAbandonRequests() {\n this.numAbandonRequests.incrementAndGet();\n }", "public void incrementRefusals() {\n\t}", "public void ball_counter()\n {\n ballot_count=0;\n for (HashMap.Entry<String,Ballot> set : allBallots.entrySet())\n {\n ballot_count++;\n }\n }", "public void incCount() { }", "int airportConnections (List<String> airports, List<List<String>> routes, String startAirport) {\n // create the graph\n Map<String, AirportNode> airportGraph = createAirportGraph(airports, routes);\n // get all unreachable airports starting from the starting airport\n List<AirportNode> unreachableAirportNodes =\n getUnreachableAirportNodes(airportGraph,airports,startAirport);\n // assign scores to each unreachable airport(find all airports reachable from unreachable airport)\n markUnreachableConnections(airportGraph,unreachableAirportNodes);\n // get the min number of connections\n return getMinNumberofNewConnections(airportGraph, unreachableAirportNodes);\n }", "public void incTotalOfQueueEntries() {\n totalOfQueueEntries++;\n }", "private void nourrireLePeuple() {\n\t\t\tint totalDepense = (int)((population * 1) + (populationColoniale * 0.8) + ((armee + armeeDeployee()) * nourritureParArmee));\r\n\t\t\tnourriture -= totalDepense;\r\n\t\t\tenFamine = (nourriture > 0) ? false : true;\r\n\t\t}", "public void incrementD_CurrentNumberOfTurns() {\n d_CurrentNumberOfTurns++;\n }", "@Override\r\n\tpublic int getPegCount() {\r\n\t\tint shipSize = 3;\r\n\t\treturn shipSize;\r\n\t}", "public void updatAttackArmies(){\n\t\t\n\t\tfinal String s = attackToComboBox.getSelectedItem().toString();\n\t\tCountry country = MainPlayScreen.this.game.getBoard().getCountryByName(s);\n\t\t\t\n\t\tfinal int armies = MainPlayScreen.this.game.countryArmies.get(country);\n\t\tSystem.out.println(s + \" Defender Armies: \" + armies);\n\t\t\n\t\tif( armies == 1){\n\t\t\tnumberOfArmies[5].removeAllItems();\n\t\t\tnumberOfArmies[5].addItem(1);\n\t\t}// end of if statement\n\t\t\n\t\telse if( armies == 2){\n\t\t\tnumberOfArmies[5].removeAllItems();\n\t\t\tnumberOfArmies[5].addItem(1);\n\t\t\tnumberOfArmies[5].addItem(2);\n\t\t\t\n\t\t} // end of else if statement\n\t\t\n\t\telse{\n\t\t\tnumberOfArmies[5].removeAllItems();\n\t\t\tnumberOfArmies[5].addItem(1);\n\t\t\tnumberOfArmies[5].addItem(2);\n\t\t\tnumberOfArmies[5].addItem(3);\n\t\t\t\n\t\t}// end of else statement\n\t\tnumberOfArmies[5].repaint();\n\t}", "public void incA() {\n this.countA++;\n }", "public void finishDiary() {\n DiaryElement stay;\n if (this.activities.size() == 1) {\n stay = this.activities.get(0);\n stay.start_min = 0;\n stay.end_min = ONE_DAY;\n stay.purpose = 0;\n stay.purposeDetailed = 0;\n stay.purposeDescription = \"At home\";\n stay.home = true;\n stay.stay = true;\n //this.addDiaryElement(stay);\n } else {\n\n //check if the last trip was going home!\n DiaryElement pre = this.activities.get(this.activities.size() - 1);\n if (!pre.home) {// && !pre.isRoundTrip()){\n numOfDiariesNotEndingAtHome++;\n//\t\t\t\t\tif(purposeNonHomeEndTrip.get(pre.purpose)==null){\n//\t\t\t\t\t\tpurposeNonHomeEndTrip.put(pre.purpose,1);\n//\t\t\t\t\t}\n//\t\t\t\t\telse{\n//\t\t\t\t\t\tpurposeNonHomeEndTrip.put(pre.purpose,purposeNonHomeEndTrip.get(pre.purpose)+1);\n//\t\t\t\t\t}\n //System.out.println(\"Purp: \"+pre.purpose+\"/\"+pre.purposeDetailed+\" Dest: \"+pre.tripDestination);\n //oops fit it: Insert a stay (5min) and a trip back home\n DiaryElement auxStay = new DiaryElement();\n auxStay.start_min = pre.end_min;\n auxStay.end_min = auxStay.start_min + 5;\n auxStay.purpose = pre.purpose;\n auxStay.purposeDetailed = pre.purposeDetailed;\n auxStay.purposeDescription = pre.purposeDescription;\n auxStay.home = false;\n auxStay.stay = true;\n this.addDiaryElement(auxStay);\n // now insert a trip home.\n //Only problem: how long should it be?\n //Assumption: look back for the last trip from home and take this time!\n pre = new DiaryElement(); //this will be the preceeding trip for the rest of the code!\n pre.start_min = auxStay.end_min;\n //now look for the duration of the last trip from home\n int duration = 5; //safety value\n for (int i = this.activities.size() - 2; i >= 0; --i) {\n DiaryElement lastStayHome = this.activities.get(i);\n if (lastStayHome.home && lastStayHome.stay) {\n duration = this.activities.get(i + 1).getDurtation();\n break;\n }\n }\n\n\n pre.end_min = pre.start_min + duration;\n pre.purpose = 8;\n pre.purposeDetailed = 3307;\n pre.purposeDescription = \" Automatic trip back home\";\n pre.home = true;\n pre.stay = false;\n this.addDiaryElement(pre);\n\n }\n\n stay = new DiaryElement();\n\n stay.start_min = pre.end_min;\n stay.end_min = Math.max(ONE_DAY, pre.end_min + 1);\n stay.purpose = pre.home ? 0 : pre.purpose;\n stay.purposeDetailed = pre.home ? 0 : pre.purposeDetailed;\n stay.purposeDescription = \"At home\";\n stay.home = true;\n stay.stay = true;\n this.addDiaryElement(stay);\n\n //Collections.sort(this.activities);\n\n //now update the tournumbers\n pre = this.activities.get(0);\n int actTourNumber;\n DiaryElement act = null;\n List<Integer> toursWithWork = new LinkedList<>();\n //first home stays are always tour 0 trips are 1...\n actTourNumber = 1; // start with the first tour\n for (int i = 1; i < this.activities.size(); ++i) {\n act = this.activities.get(i);\n if (act.stay) { //a stay allways gets the tournumber of its last trip\n if (act.home) act.tourNumber = 0;\n else act.tourNumber = pre.tourNumber;\n } else {\n act.tourNumber = actTourNumber; //update the tour number\n }\n\n if (act.purpose == 1 || act.purpose == 2) {\n toursWithWork.add(actTourNumber);\n }\n if (!act.stay && act.home) // a tour ending at home: all succeding trips are a new tour\n {\n actTourNumber++;\n }\n pre = act;\n }\n //now fix all trips within a workchain\n if (toursWithWork.size() > 0) {\n for (int i = 1; i < this.activities.size() - 1; ++i) {\n act = this.activities.get(i);\n if (!(act.home && act.stay) && toursWithWork.contains(act.tourNumber)) {\n act.workchain = true;\n }\n }\n }\n\n //now fix 0-min stays:\n this.totalTravelTime = 0;\n int addTime;\n for (int i = 1; i < this.activities.size(); ++i) {\n act = this.activities.get(i);\n pre = this.activities.get(i - 1);\n //fix starts at midnight\n if (act.start_min == 0) {\n pre.end_min = act.start_min = 1;\n }\n addTime = 1 - act.getDurtation();\n if (act.getDurtation() <= 0) {\n act.end_min += addTime;\n for (int j = i + 1; j < this.activities.size(); ++j) {\n this.activities.get(j).start_min += addTime;\n this.activities.get(j).end_min += addTime;\n }\n }\n if (!act.stay) {\n this.totalTravelTime += act.getDurtation();\n }\n }\n for (int i = 1; i < this.activities.size(); ++i) {\n act = this.activities.get(i);\n pre = this.activities.get(i - 1);\n if (act.start_min == pre.start_min) System.out.println(\"argh!\");\n }\n\n }\n\n\n }", "public void addLife() {lives++;}", "public void addPoint(int points){\n\t\tthis.fidelityCard.point += points;\t\t\n\t}" ]
[ "0.57684416", "0.57003313", "0.5573595", "0.55435026", "0.5417495", "0.529882", "0.52965045", "0.5295808", "0.5272619", "0.5268943", "0.5268167", "0.52591103", "0.52474356", "0.520514", "0.5186585", "0.5186163", "0.5120373", "0.5118911", "0.51018316", "0.50660217", "0.50567716", "0.50481427", "0.5011434", "0.5005886", "0.50052416", "0.50045997", "0.49879113", "0.4986737", "0.49741927", "0.4952065", "0.49461213", "0.4934559", "0.4926283", "0.49192402", "0.4906083", "0.49055272", "0.4896564", "0.48872516", "0.48789033", "0.48769894", "0.48733443", "0.48541987", "0.48478407", "0.4838178", "0.48373443", "0.4818663", "0.48068324", "0.48048422", "0.48024294", "0.47957364", "0.47938508", "0.47877714", "0.47848895", "0.47816193", "0.4780954", "0.47807625", "0.47800407", "0.4769769", "0.47697142", "0.47564387", "0.47533318", "0.47530457", "0.47471556", "0.4735896", "0.47331592", "0.4731631", "0.4730535", "0.47266683", "0.4724365", "0.4717236", "0.47160655", "0.47152746", "0.47146574", "0.47142044", "0.47089007", "0.47030067", "0.4697961", "0.46926397", "0.46919885", "0.4687388", "0.4677416", "0.46759972", "0.4674001", "0.46735892", "0.4670807", "0.4668193", "0.4666324", "0.4665447", "0.4654737", "0.46498117", "0.46455127", "0.4638573", "0.46359664", "0.46274385", "0.4625677", "0.46253994", "0.4622244", "0.46183282", "0.46129775", "0.4610873" ]
0.80586135
0
Add 1 to number of arrivals to this airport.
public void incrementArrivals() { numArrivals++; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void incrementDepartures() {\n numDepartures++; \n }", "public int getNumFlights() {\n return itinerary.size();\n }", "private int getNextAirportID(){\n\t\treturn this.airportIDCounter++;\n\t}", "public int getTransitFlightsCount() {\n return transitFlights_.size();\n }", "int getTransitFlightsCount();", "public void numOfFlights(int numOfFlights);", "public void increment() {\n mNewNotificationCount.setValue(mNewNotificationCount.getValue() + 1);\n }", "public void increase()\n {\n setCount(getCount() + 1);\n }", "private static void incrementFlightTakeOffCounter()\r\n\t{\r\n\t\tflightTakeOffCounter++;\r\n\t}", "public int getDeliveriesCount() {\n return deliveries_.size();\n }", "public void incrementNumberOfShips(int value) {\r\n\t\tnumberOfShips = numberOfShips + value;\r\n\t}", "public void increase() {\r\n\t\t\tsynchronized (activity.getTaskTracker()) {\r\n\t\t\t\tactivity.getTaskTracker().count++;\r\n\t\t\t\tLog.d(LOGTAG, \"Incremented task count to \" + count);\r\n\t\t\t}\r\n\t\t}", "public int getNumFlights() {\n return numFlights;\n }", "public void increase() {\r\n\r\n\t\tincrease(1);\r\n\r\n\t}", "public void incrementNumOfBoats() {\n\t\tnumOfBoats++;\n\t}", "public int incrementHopCount() {\n return ++this.hopCount;\n }", "private void grow(){\n\t\tberries.replaceAll((p, v) -> v + 1);\n\t\tapples.replaceAll((p, v) -> v + 1);\n\t}", "public void aumentarAciertos() {\r\n this.aciertos += 1;\r\n this.intentos += 1; \r\n }", "public int addToBasket (Airport one, Airport two) {\n\t\tFlightReservation r3 = new FlightReservation(name, one, two);\n\t\tcustomerResos.add(r3);\n\t\treturn customerResos.getNumOfReservations();\n\t}", "public void addCount()\n {\n \tcount++;\n }", "public int getTransitFlightsCount() {\n if (transitFlightsBuilder_ == null) {\n return transitFlights_.size();\n } else {\n return transitFlightsBuilder_.getCount();\n }\n }", "public void incrementOrder(View view) {\n final int numberOfCoffees = getNumberOfCoffees();\n if (numberOfCoffees == Constants.MAX_NUM_COFFEES_IN_ORDER) {\n Toast.makeText(getApplicationContext(),\n \"Maximum number of coffees in one order reached\",\n Toast.LENGTH_SHORT).show();\n return;\n }\n displayQuantity(numberOfCoffees+1);\n }", "@Override\n\tpublic void resetTripCount() {\n\t\tthis.tripCount = 0;\n\n\t}", "@Override\n\tpublic void resetTripCount() {\n\t\tthis.tripCount = 0;\n\t}", "int getDeliveriesCount();", "public void incrMine() {\r\n\t\tthis.mineCount++;\r\n\t}", "public void addCount() {\n \t\tdupCount++;\n \t}", "public void addOccupants(int numOfOccupants)\n { occupants+= numOfOccupants;\n }", "public void incrementRefusals() {\n\t}", "public void incrementNumAbandonRequests() {\n this.numAbandonRequests.incrementAndGet();\n }", "int airportConnections (List<String> airports, List<List<String>> routes, String startAirport) {\n // create the graph\n Map<String, AirportNode> airportGraph = createAirportGraph(airports, routes);\n // get all unreachable airports starting from the starting airport\n List<AirportNode> unreachableAirportNodes =\n getUnreachableAirportNodes(airportGraph,airports,startAirport);\n // assign scores to each unreachable airport(find all airports reachable from unreachable airport)\n markUnreachableConnections(airportGraph,unreachableAirportNodes);\n // get the min number of connections\n return getMinNumberofNewConnections(airportGraph, unreachableAirportNodes);\n }", "public void addPassenger() {\n\t\t\n\t\tsynchronized(this) {\n\t\t\tcurrentOccup++;\n\t\t}\n\t\t\n\t\tSystem.out.println(\"Elevator \" + elevatorNum + \" total passenger count: \" + currentOccup);\n\t}", "public void incrementTotal() {\n\t\t\ttotal++;\n\t\t}", "@Override\n\tpublic int getTripCount() {\n\t\treturn this.tripCount;\n\t}", "@Schema(description = \"The number of people that intend to travel, including the customer.\")\n \n @Min(1) public Integer getNrOfTravelers() {\n return nrOfTravelers;\n }", "public int getNbDeliveries() {\n\t\treturn nbDeliveries;\n\t}", "public void Increase()\n {\n Increase(1);\n }", "@Override\n public void addNew(int latency) {\n count.getAndIncrement();\n }", "public void increment() {\n items++;\n }", "@Override\n\tpublic int getTripCount() {\n\t\treturn tripCount;\n\t}", "public void increaseHour() {\n\t\tthis.total++;\n\t}", "public void increaseEntered() {\n numTimesEntered++;\n }", "@Override\r\n\tpublic int getNumberOfAircraft() {\r\n\t\treturn airCrafts.size();\r\n\t}", "public void incrementNumberOfRooms() {\n\t\t\n\t\tnumberOfRooms++;\n\t}", "public void aumentarIntentos() {\r\n this.intentos += 1;\r\n }", "public void incrementCount() {\n count++;\n }", "public void setOneNewWanted () {\r\n numWanted ++;\r\n }", "public void incrementNumConnects() {\n this.numConnects.incrementAndGet();\n }", "public void addPoint() {\n points += 1;\n }", "public int getDeliveriesCount() {\n if (deliveriesBuilder_ == null) {\n return deliveries_.size();\n } else {\n return deliveriesBuilder_.getCount();\n }\n }", "private void arrivedAdd(Passenger in) {\n\t\tif(counter >= capacity) {\n\t\t\tcapacity *= 2;\n\t\t\tPassenger[] temp = new Passenger[capacity];\n\t\t\tfor(int i = 0; i < arrivedOrder.length; i++) {\n\t\t\t\ttemp[i] = arrivedOrder[i];\n\t\t\t}\n\t\t\tarrivedOrder = temp;\n\t\t}\n\t\tarrivedOrder[counter] = in;\n\t}", "public void incrementNumAddRequests() {\n this.numAddRequests.incrementAndGet();\n }", "public Aircraft() {\n id = ++nextId;\n }", "public void incrementNumDisconnects() {\n this.numDisconnects.incrementAndGet();\n }", "public void incrementCount() {\n\t\tcount++;\n\t}", "public int getDeliveredCount() {\n return delivered_.size();\n }", "public void setNumDeparting() {\n if (isStopped() && !embarkingPassengersSet){\n \tRandom rand = new Random();\n \tint n = rand.nextInt(this.numPassengers+1);\n \tif (this.numPassengers - n <= 0) {\n \t\tthis.numPassengers = 0;\n n = this.numPassengers;\n \t} else {\n this.numPassengers = this.numPassengers - n;\n }\n trkMdl.passengersUnboarded(trainID, n);\n }\n \t//return 0;\n }", "public void increment() {\r\n\t\tcurrentSheeps++;\r\n\t}", "public void updateNumberOfVehicles() {\r\n numberOfVehicles = getVehicles().size();\r\n }", "@Override\n public int fillCount(){\n return fillCount;\n }", "public int increase()\n {\n return this.increase(1);\n }", "public void arrive(Port port) {\n ShipArrived event = new ShipArrived(\"id\", port, new Date());\n // apply change du to the event\n // it should require only current state and\n apply(event);\n list.add(event);\n // events will be published to the rest of the system\n // from there.. This is where further side effect will\n // occure\n }", "void incrementAddedCount() {\n addedCount.incrementAndGet();\n }", "public void increment() {\n increment(1);\n }", "@NonNull\n public BasketItemBuilder incrementQuantity() {\n this.quantity++;\n return this;\n }", "public Customer (int arrives)\n {\n arrivalTime = arrives;\n departureTime = 0;\n }", "private void incrPositiveCount(){\n m_PositiveCount++;\n }", "public void addOccurence() {\n\t\tcount = count + 1;\n\t}", "public void setNumberShips(int numberShips);", "public void GanharPokemons(int x)\n {\n this.numPokemons = this.numPokemons + x;\n }", "public void incrementCount(){\n count+=1;\n }", "public void add()\n {\n set(++ current);\n }", "private int plusOne(int i) {\n return (i + 1) % capacity;\n }", "private void increaseOneToQuantity() {\n String previousValueString = mQuantityEditText.getText().toString();\n int previousValue;\n if (previousValueString.isEmpty() || previousValueString.equals(\"0\")) {\n return;\n }\n else {\n previousValue = Integer.parseInt(previousValueString);\n mQuantityEditText.setText(String.valueOf(previousValue + 1));\n }\n }", "public void addAircrafts(Aircraft A) {\n\t\t\r\n\t\tfor (int y = 0; y < getServiceLineSize(); y++) {\r\n\t\t\tfor (int x = 0; x < getServiceStations(); x++) {\r\n\t\t\t\tif (!(SD[y][x].flag)) {\r\n\t\t\t\t\tSD[y][x] = A;\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tSystem.out.println(\"\");\r\n\t\t}\r\n\t}", "public void addflight(Flight f)\n {\n \t this.mLegs.add(f);\n \t caltotaltraveltime();\n \t caltotalprice();\n }", "public void setTotalPassengers(int value) {\n this.totalPassengers = value;\n }", "public void counterAddup(){\n\t\tfor (int i=0; i<window.size(); i++){\n\t\t\tif ( window.get(i).acked == false ){\n\t\t\t\twindow.get(i).counter = window.get(i).counter+1;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\treturn ;\n\t}", "void increaseStarsBy(final int amount);", "@java.lang.Override\n public int getGoalsCount() {\n return goals_.size();\n }", "public void incrementTotal(){\n total++;\n }", "@Override\n public void announceArrival() {\n this.lock.lock();\n try {\n // update pilot state\n this.repository.updatePilotState(PilotState.DEBOARDING);\n\n // call passengers\n this.endOfFlight = true;\n while (!this.passengers.isEmpty()) {\n // wake up passengers\n this.passengerLeavePlane = this.passengers.poll();\n this.passengersWaitForEndOfFlight.signal();\n this.passengersWaitForEndOfFlight.signalAll();\n\n // wait for all passengers\n this.pilotWaitForDeboarding.await();\n }\n this.endOfFlight = false;\n\n // update pilot state\n this.repository.updatePilotState(PilotState.FLYING_BACK);\n } catch (InterruptedException e) {\n e.printStackTrace();\n } finally {\n this.lock.unlock();\n }\n }", "@Override\n public synchronized void increment() {\n count++;\n }", "public void setArrivalTime(int arrivalTime)\n\t{\n\t\tthis.arrivalTime = arrivalTime;\n\t}", "public int addAirport(Vector location, Vector heading){\n\t\t//get the parameters needed for airport generation\n\t\tMap<Integer, WorldAirport> airports = this.getAirportMap();\n\t\t//first check if the width and length are already defined, if not define them now\n\t\tint newID = this.getNextAirportID();\n\t\t//generate the airport\n\t\tWorldAirport airport = new WorldAirport(location, heading, this.getRunwayWidth(), this.getRunwayLength(), newID);\n\t\tairports.put(newID, airport);\n\t\treturn newID;\n\t}", "public void incrementFitness()\n {\n this.fitness++;\n }", "public void incTotalOfQueueEntries() {\n totalOfQueueEntries++;\n }", "public Airline(String title) {\r\n\t\tthis.title = title;\r\n\t\tflights = new Flight[size];\r\n\t\tthis.size = 2;\r\n\t}", "public void incrementNumAttacked( ){\n this.numAttacked++;\n }", "@Override\r\n\tpublic int getPegCount() {\r\n\t\tint shipSize = 3;\r\n\t\treturn shipSize;\r\n\t}", "public void add(WeatherNow newWeatherNow){\n weatherNow.add(0, newWeatherNow);\n\n // cant be larger than 5\n if(weatherNow.size() > 5){\n weatherNow.remove(5);\n }\n }", "public void addP1Set() {\n assert (p1Sets < 3) : \"Player 1 should not have already reached 3 sets\";\n p1Sets +=1;\n }", "public static void main(String[] args) throws CantAdd, CoronaWarn {\n\t\tTravelAgency TravelAgency = new TravelAgency();\r\n\r\n\t\tPlane p=new Plane(200,2,\"first plane max travelers\");\r\n\t\tPlane p1=new Plane(100,1,\"second plan min traelers\");\r\n\r\n\t\tTrip i=new Trip(p,Country.Australia,Country.Canada);\r\n\t\tTrip io=new Trip(p1,Country.Australia,Country.Canada);\r\n\t\t \r\n\t\tDate date=new Date(1,2,5);\r\n\t\tPassport passprt1=new Passport(\"anton\",44,date);\r\n\t\tPassport passprt2=new Passport(\"abdo\",44,date);\r\n\t\tPassport passprt3=new Passport(\"julie\",44,date);\r\n\t\tPassport passprt4=new Passport(\"juliana\",44,date);\r\n\t\tPassport passprt5=new Passport(\"bella\",44,date);\r\n\t\tPassport passprt6=new Passport(\"geris\",44,date);\r\n\t\tTraveler t1=new Traveler(passprt1,true,true);\r\n\t\tTraveler t2=new Traveler(passprt2,true,true);\r\n\t\tTraveler t3=new Traveler(passprt3,true,true);\r\n\t\tTraveler t4=new Traveler(passprt4,true,true);\r\n\t\tTraveler t5=new Traveler(passprt5,true,true);\r\n\t\tTraveler t6=new Traveler(passprt6,true,true);\r\n\t\t\r\n\t\t\r\n\t\tio.addTraveler(t1);\r\n\t\tio.addTraveler(t2);\r\n\t\tio.addTraveler(t3);\r\n\t\tio.addTraveler(t6);\r\n\t\tio.addTraveler(t5);\r\n\t\tio.addTraveler(t4);\r\n\t\tio.addTraveler(t6);\r\n \r\n\t\ti.addTraveler(t1);\r\n\t\ti.addTraveler(t2);\r\n\t\ti.addTraveler(t3);\r\n\t\ti.addTraveler(t4);\r\n\t\r\n\t\ti.addTraveler(t6);\r\n\t\t\r\n\t\tTravelAgency.addTrip(i);\t\r\n\t\tTravelAgency.addTrip(io);\r\n\t\tSystem.out.print(TravelAgency.findUnsafeTrips());\r\n\r\n\t\t\r\n\t\tTravelAgency.AddTraveler(t1);\r\n\t\tTravelAgency.AddTraveler(t2);\r\n\t\tTravelAgency.AddTraveler(t3);\r\n\t\tTravelAgency.AddTraveler(t4);\r\n\t\tTravelAgency.AddTraveler(t5);\r\n\t\tTravelAgency.AddTraveler(t6);\r\n\t\t\r\n\t}", "public void addReceived() {\n this.indexExpected++;\n }", "public Builder clearArrivalAirport() {\n \n arrivalAirport_ = getDefaultInstance().getArrivalAirport();\n onChanged();\n return this;\n }", "@Override\n public void fill(ArrayList<Package> warehousePackages) {\n int diffCounter = 0;\n int checkOnce = -1;\n boolean checkTwice = false;\n boolean sameI = false;\n int overWeight = 0;\n while (!isFull() && (warehousePackages.size() - overWeight) > 0) {\n for (int i = 0; i < warehousePackages.size(); i++) {\n sameI = false;\n int destination = warehousePackages.get(i).getDestination().getZipCode();\n int difference = Math.abs(destination - this.getZipDest());\n if (difference <= diffCounter + 10 && difference >= diffCounter) {\n if (!(warehousePackages.get(i).getWeight() +\n getCurrentWeight() > getMaxWeight())) {\n addPackage(warehousePackages.get(i));\n setCurrentWeight(getCurrentWeight() + warehousePackages.get(i).getWeight());\n warehousePackages.remove(i);\n sameI = true;\n break;\n } else {\n overWeight += 1;\n }\n }\n }\n if (!sameI) {\n diffCounter += 10;\n }\n }\n\n\n }", "public int getFlightsScheduled() {\n return flightsScheduled;\n }", "public void zugInsDepot() {\n depot++;\n }", "public Itinerary(Flight flight) {\n \n // Initializes other instance variables for this Itinerary based\n // on the given first flight.\n this.departDateTime = flight.getDepartDateTime();\n this.arrivalDateTime = flight.getArrivalDateTime();\n this.origin = flight.getOrigin();\n this.destination = flight.getDestination();\n this.price = flight.getCost();\n this.travelTime = this.arrivalDateTime.timeDiff(this.departDateTime);\n \n // Initializes first flight for this Itinerary,\n this.itinerary = new ArrayList<Flight>();\n this.itinerary.add(flight);\n \n // Initializes places (stop over points) for this Itinerary.\n this.places = new ArrayList<String>();\n this.places.add(origin);\n this.places.add(destination);\n }", "public void add(Itinerary other) { \n List<Flight> otherItinerary = other.itinerary;\n if (validAdd(otherItinerary.get(0))) {\n for (Flight flight: otherItinerary) {\n addFlight(flight);\n }\n }\n }" ]
[ "0.6172502", "0.57189906", "0.57083833", "0.55764455", "0.55406654", "0.54508257", "0.54500836", "0.5424756", "0.535695", "0.53256136", "0.5319141", "0.5317314", "0.527391", "0.5252104", "0.52336437", "0.5214742", "0.5212533", "0.5200734", "0.5197607", "0.51919085", "0.5179178", "0.5167581", "0.5139248", "0.512648", "0.5072655", "0.5059138", "0.5051339", "0.5047809", "0.5032847", "0.50171965", "0.49980798", "0.49972063", "0.49869406", "0.49825642", "0.4969759", "0.49683848", "0.49574697", "0.49509513", "0.49394566", "0.4937573", "0.49348348", "0.4922307", "0.49149916", "0.49148706", "0.49136913", "0.49044403", "0.48976228", "0.48897284", "0.48892054", "0.4880782", "0.487629", "0.48755884", "0.48751098", "0.48731807", "0.48579064", "0.484119", "0.4825525", "0.48040113", "0.48002362", "0.4795444", "0.47946388", "0.4783468", "0.47704464", "0.47674575", "0.4765538", "0.4754286", "0.4753926", "0.47537053", "0.4751646", "0.47384644", "0.47298533", "0.47137067", "0.4708479", "0.47078988", "0.46989986", "0.46904036", "0.46853518", "0.46833163", "0.46802306", "0.46777567", "0.4673265", "0.46720046", "0.46628067", "0.4661688", "0.46566212", "0.46544302", "0.46541587", "0.46524996", "0.46501794", "0.46485025", "0.46428317", "0.46419424", "0.46407938", "0.46404603", "0.46257353", "0.4623317", "0.46226966", "0.46213922", "0.46134502", "0.4610616" ]
0.6064821
1
TODO: Warning this method won't work in the case the id fields are not set
@Override public boolean equals(Object object) { if (!(object instanceof Grammar)) { return false; } Grammar other = (Grammar) object; if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) { return false; } return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void setId(Integer id) { this.id = id; }", "private Integer getId() { return this.id; }", "public void setId(int id){ this.id = id; }", "public void setId(Long id) {this.id = id;}", "public void setId(Long id) {this.id = id;}", "public void setID(String idIn) {this.id = idIn;}", "public void setId(int id) { this.id = id; }", "public void setId(int id) { this.id = id; }", "public int getId() { return id; }", "public int getId() { return id; }", "public int getId() { return id; }", "public int getId() { return id; }", "public int getId() { return id; }", "public int getId() { return id; }", "public void setId(long id) { this.id = id; }", "public void setId(long id) { this.id = id; }", "public int getId(){ return id; }", "public int getId() {return id;}", "public int getId() {return Id;}", "public int getId(){return id;}", "public void setId(long id) {\n id_ = id;\n }", "private int getId() {\r\n\t\treturn id;\r\n\t}", "public Integer getId(){return id;}", "public int id() {return id;}", "public long getId(){return this.id;}", "public int getId(){\r\n return this.id;\r\n }", "@Override public String getID() { return id;}", "public Long id() { return this.id; }", "public Integer getId() { return id; }", "@Override\n\tpublic Integer getId() {\n return id;\n }", "@Override\n public Long getId () {\n return id;\n }", "@Override\n public long getId() {\n return id;\n }", "public Long getId() {return id;}", "public Long getId() {return id;}", "public String getId(){return id;}", "@Override\r\n\tpublic Long getId() {\n\t\treturn null;\r\n\t}", "public Integer getId() { return this.id; }", "@Override\r\n public int getId() {\n return id;\r\n }", "@Override\n\t\tpublic long getId() {\n\t\t\treturn 0;\n\t\t}", "public int getId() {\n return id;\n }", "public long getId() { return _id; }", "public int getId() {\n/* 35 */ return this.id;\n/* */ }", "public long getId() { return id; }", "public long getId() { return id; }", "public void setId(Long id) \n {\n this.id = id;\n }", "@Override\n\tpublic Long getId() {\n\t\treturn null;\n\t}", "@Override\n\tpublic Long getId() {\n\t\treturn null;\n\t}", "public void setId(String id) {\n this.id = id;\n }", "@Override\n\tpublic void setId(Long id) {\n\t}", "public Long getId() {\n return id;\n }", "public long getId() { return this.id; }", "public int getId()\n {\n return id;\n }", "public void setId(int id){\r\n this.id = id;\r\n }", "@Test\r\n\tpublic void testSetId() {\r\n\t\tbreaku1.setId(5);\r\n\t\texternu1.setId(6);\r\n\t\tmeetingu1.setId(7);\r\n\t\tteachu1.setId(8);\r\n\r\n\t\tassertEquals(5, breaku1.getId());\r\n\t\tassertEquals(6, externu1.getId());\r\n\t\tassertEquals(7, meetingu1.getId());\r\n\t\tassertEquals(8, teachu1.getId());\r\n\t}", "protected abstract String getId();", "@Override\n\tpublic int getId(){\n\t\treturn id;\n\t}", "public int getID() {return id;}", "public int getID() {return id;}", "public String getId() { return id; }", "public String getId() { return id; }", "public String getId() { return id; }", "public int getId ()\r\n {\r\n return id;\r\n }", "@Override\n public int getField(int id) {\n return 0;\n }", "public void setId(Long id)\n/* */ {\n/* 66 */ this.id = id;\n/* */ }", "public int getId(){\r\n return localId;\r\n }", "void setId(int id) {\n this.id = id;\n }", "@Override\n public Integer getId() {\n return id;\n }", "@Override\n\tpublic Object selectById(Object id) {\n\t\treturn null;\n\t}", "private void clearId() {\n \n id_ = 0;\n }", "private void clearId() {\n \n id_ = 0;\n }", "private void clearId() {\n \n id_ = 0;\n }", "private void clearId() {\n \n id_ = 0;\n }", "private void clearId() {\n \n id_ = 0;\n }", "private void clearId() {\n \n id_ = 0;\n }", "private void clearId() {\n \n id_ = 0;\n }", "@Override\n public int getId() {\n return id;\n }", "@Override\n public int getId() {\n return id;\n }", "public void setId(int id)\n {\n this.id=id;\n }", "@Override\r\n public int getID()\r\n {\r\n\treturn id;\r\n }", "@Override\n\tpublic Integer getId() {\n\t\treturn null;\n\t}", "public int getId()\r\n {\r\n return id;\r\n }", "public void setId(Long id){\n this.id = id;\n }", "@java.lang.Override\n public int getId() {\n return id_;\n }", "@java.lang.Override\n public int getId() {\n return id_;\n }", "private void clearId() {\n \n id_ = 0;\n }", "final protected int getId() {\n\t\treturn id;\n\t}", "public abstract Long getId();", "public void setId(Long id) \r\n {\r\n this.id = id;\r\n }", "@Override\n public long getId() {\n return this.id;\n }", "public String getId(){ return id.get(); }", "@SuppressWarnings ( \"unused\" )\n private void setId ( final Long id ) {\n this.id = id;\n }", "public void setId(long id){\n this.id = id;\n }", "public void setId(long id){\n this.id = id;\n }", "public void setId(Integer id)\r\n/* */ {\r\n/* 122 */ this.id = id;\r\n/* */ }", "public Long getId() \n {\n return id;\n }", "@Override\n\tpublic void setId(int id) {\n\n\t}", "public void test_getId() {\n assertEquals(\"'id' value should be properly retrieved.\", id, instance.getId());\n }", "@Override\r\n\tpublic Object getId() {\n\t\treturn null;\r\n\t}", "public int getID(){\n return id;\n }", "public int getId()\n {\n return id;\n }", "public String getID(){\n return Id;\n }" ]
[ "0.6896886", "0.6838461", "0.67056817", "0.66419715", "0.66419715", "0.6592331", "0.6579151", "0.6579151", "0.6574321", "0.6574321", "0.6574321", "0.6574321", "0.6574321", "0.6574321", "0.65624106", "0.65624106", "0.65441847", "0.65243006", "0.65154546", "0.6487427", "0.6477893", "0.6426692", "0.6418966", "0.6416817", "0.6401561", "0.63664836", "0.63549376", "0.63515353", "0.6347672", "0.6324549", "0.6319196", "0.6301484", "0.62935394", "0.62935394", "0.62832105", "0.62710917", "0.62661785", "0.6265274", "0.6261401", "0.6259253", "0.62559646", "0.6251244", "0.6247282", "0.6247282", "0.6245526", "0.6238957", "0.6238957", "0.6232451", "0.62247443", "0.6220427", "0.6219304", "0.6211484", "0.620991", "0.62023336", "0.62010616", "0.6192621", "0.61895776", "0.61895776", "0.61893976", "0.61893976", "0.61893976", "0.6184292", "0.618331", "0.61754644", "0.6173718", "0.6168409", "0.6166131", "0.6161708", "0.6157667", "0.6157667", "0.6157667", "0.6157667", "0.6157667", "0.6157667", "0.6157667", "0.61556244", "0.61556244", "0.61430943", "0.61340135", "0.6128617", "0.6127841", "0.61065215", "0.61043483", "0.61043483", "0.6103568", "0.61028486", "0.61017346", "0.6101399", "0.6098963", "0.6094214", "0.6094", "0.6093529", "0.6093529", "0.6091623", "0.60896", "0.6076881", "0.60723215", "0.6071593", "0.6070138", "0.6069936", "0.6069529" ]
0.0
-1
No args constructor for use in serialization
public Person() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "MyEncodeableWithoutPublicNoArgConstructor() {}", "public ObjectSerializationEncoder() {\n // Do nothing\n }", "@SuppressWarnings(\"unused\")\n public NoConstructor() {\n // Empty\n }", "defaultConstructor(){}", "public Data() {}", "private SerializerFactory() {\n // do nothing\n }", "public JsonFactory() { this(null); }", "private SingleObject(){}", "public CompactSerializable() {\n }", "public Data() {\n \n }", "public Payload() {}", "void DefaultConstructor(){}", "public Data() {\n }", "public Data() {\n }", "private SingleObject()\r\n {\r\n }", "public CustomDateSerializer() {\n this(null);\n }", "public ClassOne(){\n\t\tthis.age = 55;\t\t// this value won't come while de-serialization.\n\t\tSystem.out.println (\"Default Constructor Running\");\n\t}", "private Instantiation(){}", "public Payload() {\n\t}", "O() { super(null); }", "protected abstract T _createEmpty(DeserializationContext ctxt);", "private SerializationUtils() {\n\n }", "Reproducible newInstance();", "private JsonUtils()\r\n {\r\n // Private constructor to prevent instantiation\r\n }", "public MinecraftJson() {\n }", "public Constructor(){\n\t\t\n\t}", "public \n PipedObjectReader() \n {}", "private JsonUtils() {\n\t\tsuper();\n\t}", "private void __sep__Constructors__() {}", "public Pleasure() {\r\n\t\t}", "public AvroPerson() {}", "private SingleObject(){\n }", "public Pojo1110110(){\r\n\t}", "public NetworkData() {\n }", "public JSONBuilder() {\n\t\tthis(null, null);\n\t}", "public Member() {}", "@SuppressWarnings(\"unchecked\")\n\tpublic UserSerializer() {\n\t\tsuper();\n\t\tmapSerializer.putAll(BeanRetriever.getBean(\"mapSerializerStrategy\", Map.class));\n\t}", "public JSONLoader() {}", "private SerializationUtils() {\n\t\tthrow new AssertionError();\n\t}", "public WCSResponseSerializer()\r\n {\r\n }", "public Clade() {}", "public ClaseJson() {\n }", "private Sequence() {\n this(\"<Sequence>\", null, null);\n }", "public Item() {}", "protected AbstractReadablePacket() {\n this.constructor = createConstructor();\n }", "public Generic(){\n\t\tthis(null);\n\t}", "public MetaDataContract()\n {\n }", "public JobPayload()\n {\n \n }", "public SpeakerSerivceImpl() {\n\t\tSystem.out.println(\"No args in constructor\");\n\t}", "public Person() {}", "public Item(){}", "private Converter()\n\t{\n\t\tsuper();\n\t}", "public JSONUtils() {\n\t\tsuper();\n\t}", "public Value() {}", "private Message(){\n // default constructor\n }", "@objid (\"d5a0862c-6231-11e1-b31a-001ec947ccaf\")\n private ObjIdCollectionSerializer() {\n }", "private NaturePackage() {}", "public ParamJson() {\n\t\n\t}", "public InitialData(){}", "public PersonRecord() {}", "public LargeObjectAvro() {}", "protected abstract void construct();", "public D() {}", "@SuppressWarnings(\"unused\")\n public Item() {\n }", "private Item(){}", "private JSONHelper() {\r\n\t\tsuper();\r\n\t}", "public JAXBConverter() {\n\t}", "public Member() {\n //Empty constructor!\n }", "public AbstractBinaryInteraction() {\n\n\t}", "public FileObject() {\n\t}", "public BabbleValue() {}", "public StringData() {\n\n }", "private AggregDayLogSerializer() {\n\t throw new UnsupportedOperationException(\n\t \"This class can't be instantiated\");\n\t }", "public Mapping() { this(null); }", "public Postoj() {}", "public Node() {}", "public Node() {}", "public Node() {}", "public Node() {}", "public StudentRecord() {}", "@Override\n\tpublic Response construct() {\n\t\treturn null;\n\t}", "public Person()\n {\n //intentionally left empty\n }", "public XObject(){\r\n }", "public XObject(){\n }", "public TeeWriter() {\r\n ; // nothing to do\r\n }", "public ObjectUtils() {\n super();\n }", "public Value() {\n }", "public JsonField() {\n }", "public Identity()\n {\n super( Fields.ARGS );\n }", "MessageSerializer<T> create();", "public CSSTidier() {\n\t}", "public Value(){}", "private NewsWriter() {\n }", "public UE2_0_3Serializer(){\n\t\txstream = new XStream(/*new DomDriver()*/);\n\t}", "public SensorData() {\n\n\t}", "public Pasien() {\r\n }", "public Node() {\n\t}", "@SuppressWarnings(\"unused\")\r\n\tprivate Person() {\r\n\t}", "public LocalObject() {}", "public Book() {}", "public Item() {\n\t}" ]
[ "0.74629474", "0.73877233", "0.7210467", "0.7029977", "0.70192736", "0.6977907", "0.693466", "0.68820065", "0.6741203", "0.6727858", "0.6718401", "0.6717094", "0.6696575", "0.6696575", "0.667549", "0.6626276", "0.6603967", "0.653331", "0.65240335", "0.6500367", "0.6465912", "0.6432499", "0.64209294", "0.6334252", "0.6331861", "0.63086796", "0.6304436", "0.6298517", "0.62894803", "0.62796146", "0.6271835", "0.6246738", "0.62382746", "0.62372124", "0.6235041", "0.62179476", "0.62085605", "0.62062913", "0.62037057", "0.6194519", "0.61918825", "0.61911124", "0.61883265", "0.61866236", "0.6181471", "0.61718994", "0.61694163", "0.6162272", "0.6159487", "0.6151498", "0.6150932", "0.6145702", "0.6138604", "0.61364734", "0.613475", "0.6125079", "0.6123127", "0.6115455", "0.6113804", "0.61037314", "0.6094557", "0.6088176", "0.60868406", "0.6084844", "0.608068", "0.6077398", "0.60681957", "0.6050285", "0.6050035", "0.60492903", "0.6048603", "0.6046449", "0.60452205", "0.60420406", "0.6039936", "0.6038607", "0.6038607", "0.6038607", "0.6038607", "0.6037735", "0.6032717", "0.60310376", "0.6025734", "0.6019018", "0.6016227", "0.6013543", "0.6012656", "0.6011899", "0.6009021", "0.6006062", "0.60047555", "0.6000372", "0.59991956", "0.59982765", "0.59933084", "0.5992256", "0.5991533", "0.59901565", "0.5989964", "0.59897566", "0.5988814" ]
0.0
-1
Default Empty Constructor for class AppUser
public AppUser() { super(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public AppUser() {\n super();\n }", "protected ApplicationUser(){}", "@Constructor(name = \"users\")\n public AppUser(String username, String password, String email, String firstName, String lastName, String dob) {\n this.id = 0;\n this.username = username;\n this.password = password;\n this.email = email;\n this.firstName = firstName;\n this.lastName = lastName;\n this.dob = dob;\n }", "public User() {\n\t\tsuper(AppEntityCodes.USER);\n\t}", "public User() {\r\n this(\"\", \"\");\r\n }", "public AdminAppUser() {\n this(DSL.name(\"admin_app_user\"), null);\n }", "public AppUser(Long uin) {\n super(uin);\n }", "public User(){\n this(null, null);\n }", "public User() {\n /**\n * default Cto'r\n */\n }", "User()\n\t{\n\n\t}", "public User() {\n\t\tsuper();\n\t}", "public User() {\n\t\tsuper();\n\t}", "public User() {\n\t\tsuper();\n\t}", "public User() {\n super();\n }", "public User() {\n super();\n }", "protected User() {}", "protected User() {}", "public User() {\n\t}", "public TUser() {\n this(\"t_user\", null);\n }", "public User() {\r\n\r\n\t}", "public User() {\n\n\t}", "public User() {\r\n\t}", "public AppUser(String email, String firstName, String lastName, String password) {\n \tthis.email = email;\n \tthis.firstName = firstName;\n \tthis.lastName = lastName;\n \tthis.password = password;\n }", "public User() {\n }", "public User() {}", "public User() {}", "public User() {}", "public User() {\r\n \r\n }", "public User() { }", "public User(){}", "public User(){}", "public User(){}", "public AppUser(String email, String firstName, String lastName) {\n \tthis.email = email;\n \tthis.firstName = firstName;\n \tthis.lastName = lastName;\n \tthis.password = \"password\";\n }", "private User() {}", "protected User() {\n }", "private User() {\n }", "public User() {\n\t\tsuper(\"User\", models.DefaultSchema.DEFAULT_SCHEMA);\n\t}", "public User() {\r\n }", "public DbUser() {\r\n\t}", "public AppUserResource() {\r\n }", "public User()\n\t{\n\t}", "public User(){\n }", "public User() {\n }", "public User() {\n }", "public User() {\n }", "public User() {\n }", "public User() {\n }", "public User() {\n }", "public User() {\n }", "public User() {\n }", "public User() {\n }", "public User() {\n }", "public User() {\n }", "public User() {\n }", "public User() {\n }", "protected User(){\n this.username = null;\n this.password = null;\n this.accessLevel = null;\n this.name = DEFAULT_NAME;\n this.telephone = DEFAULT_TELEPHONE;\n this.email = DEFAULT_EMAIL;\n }", "public Users() {}", "public User() {\n\tsuper();\n}", "public User(){\n\n }", "public User() {\n\n }", "public User() {\n this.id = 0;\n this.username = \"gfisher\";\n this.password = \"password\";\n this.email = \"[email protected]\";\n this.firstname = \"Gene\";\n this.lastname = \"Fisher\";\n this.type = new UserPermission(true, true, true, true);\n }", "public User() {\r\n // TODO - implement User.User\r\n throw new UnsupportedOperationException();\r\n }", "public User() {\n log.debug(\"Create a User object\");\n }", "public UserModel()\n\t{}", "public User()\n\t{\n\t\tfirstName = \"\";\n\t\tlastName = \"\";\n\t\tusername = \"\";\n\t\tpassword = \"\";\n\t}", "public userBean() {\r\n }", "public UserRecord() {\n super(User.USER);\n }", "public UserRecord() {\n super(User.USER);\n }", "public UserRecord() {\n super(User.USER);\n }", "public UserRecord() {\n super(User.USER);\n }", "public TestUser() {//NOPMD\n }", "public UserRole() {\n // all persisted classes must define a no-arg constructor with at least package visibility\n }", "public GameUser() {\n\t}", "public User() {\n username = null;\n password = null;\n email = null;\n firstName = null;\n lastName = null;\n gender = null;\n personID = null;\n }", "private User(){\n\n }", "public User()\r\n\t{\r\n\t\tthis.userId = 0;\r\n\t\tthis.userName = \"\";\r\n\t\tthis.role = \"\";\r\n\t\tthis.firstName = \"\";\r\n\t\tthis.lastName = \"\";\r\n\t\tthis.emailAddress = \"\";\r\n\t\tthis.streetAddress = \"\";\r\n\t\tthis.city = \"\";\r\n\t\tthis.state = \"\";\r\n\t\tthis.zip = 0;\r\n\t\tthis.country = \"\";\r\n\t}", "public AppUser(Long in_userId) {\r\n\t\tthis.setUserId(in_userId);\r\n\t}", "public User() {\r\n\t\tuName = null;\r\n\t\tpassword = null;\r\n\t\tfullName = null;\r\n\t\tphone = null;\r\n\t\temail = null;\r\n\t}", "public UserData() {\n }", "public Usuario() {\r\n }", "public Usuario() {\r\n }", "public Usuario () {\r\n\t\t\r\n\t\t\r\n\t}", "public UserInfo() {\n }", "public User() {\n name = \"\";\n }", "public User(Long id) {\n\t\tsuper(id, AppEntityCodes.USER);\n\t}", "public User(){\n\t username = \"Anonymous\";\n\t}", "public JpaUser() {\n }", "public UserAccount() {\n\n\t}", "public User() {\n this.username = \"test\";\n }", "public SecurityUser() {\n\t\tsuper();\n\t}", "public OmsUsuario() {\n\t}", "public UserManager() {\n allUsers = new ArrayList<>();\n allUsers.add(new RegularUser(\"Bob\", \"user\",\"pass\", new int[0] , \"email\"));\n allUserNames = new ArrayList<>();\n allUserNames.add(\"user\");\n allPasswords = new ArrayList<>();\n allPasswords.add(\"pass\");\n allEmails = new ArrayList<>();\n }", "private Appuser newUser() {\n //TODO: get logged user from security context\n String createdBy = \"REST\";\n Appuser au = new Appuser();\n Userdetails ud = new Userdetails();\n boolean idOK = false;\n Long id = 0L;\n while (!idOK) {\n id = EntityIdGenerator.random();\n idOK = !userRepository.exists(id);\n }\n //notNull\n ud.setNotes(\"none\");\n au.setPasswdHash(\"*\");\n au.setCreatedBy(createdBy);\n au.setUserId(id);\n ud.setUserId(id);\n au.setUserdetails(ud);\n return au;\n }", "public UserBean() {\n }", "public UserBean() {\n }", "public UserDao() {\n super(User.USER, com.ims.dataAccess.tables.pojos.User.class);\n }", "public UserModel()\r\n\t{\r\n\t}", "public UserProfile() {}", "public QUser() {\n super(User.class);\n }", "public UserModel() {\n }" ]
[ "0.89732075", "0.8048405", "0.7870132", "0.78664225", "0.7856189", "0.77888006", "0.7757634", "0.7755568", "0.76424843", "0.7563134", "0.7527744", "0.7527744", "0.7527744", "0.747449", "0.747449", "0.7445228", "0.7445228", "0.7444645", "0.7444449", "0.7437427", "0.7434684", "0.7432863", "0.74156094", "0.74114025", "0.7406247", "0.7406247", "0.7406247", "0.7401326", "0.7391899", "0.7391614", "0.7391614", "0.7391614", "0.7357393", "0.73443556", "0.7338259", "0.7337693", "0.73332715", "0.7328064", "0.7324904", "0.7287691", "0.72737014", "0.72709066", "0.7255776", "0.7255776", "0.7255776", "0.7255776", "0.7255776", "0.7255776", "0.7255776", "0.7255776", "0.7255776", "0.7255776", "0.7255776", "0.7255776", "0.7255776", "0.7233455", "0.7194364", "0.719189", "0.718677", "0.7170402", "0.7156105", "0.71535504", "0.71529335", "0.7127267", "0.70802104", "0.70663935", "0.70600295", "0.70600295", "0.70600295", "0.70600295", "0.70127034", "0.70019394", "0.69844925", "0.6965254", "0.69592893", "0.69522786", "0.695099", "0.6948117", "0.6946902", "0.6934658", "0.6934658", "0.6922028", "0.6913568", "0.69135356", "0.6899424", "0.6899204", "0.68871415", "0.6883412", "0.686634", "0.6843111", "0.6841822", "0.68294436", "0.68249923", "0.68224347", "0.68224347", "0.681313", "0.68097585", "0.6808042", "0.67957526", "0.679377" ]
0.90669626
0
Default Key Fields Constructor for class AppUser
public AppUser(Long in_userId) { this.setUserId(in_userId); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public AppUser() {\r\n\t\tsuper();\r\n\t}", "public AppUser() {\n super();\n }", "public User() {\n\t\tsuper(AppEntityCodes.USER);\n\t}", "public AppUser(Long uin) {\n super(uin);\n }", "@Constructor(name = \"users\")\n public AppUser(String username, String password, String email, String firstName, String lastName, String dob) {\n this.id = 0;\n this.username = username;\n this.password = password;\n this.email = email;\n this.firstName = firstName;\n this.lastName = lastName;\n this.dob = dob;\n }", "protected ApplicationUser(){}", "public UserRecord() {\n super(User.USER);\n }", "public UserRecord() {\n super(User.USER);\n }", "public UserRecord() {\n super(User.USER);\n }", "public UserRecord() {\n super(User.USER);\n }", "public UserRecord(Integer id, String phonenum, String username, String password, String email, String corporation, Integer industry, String sites, String keyword, String salt, Integer vip, LocalDateTime loginTime, LocalDateTime signupTime, LocalDateTime vipEndTime, String friend) {\n super(User.USER);\n\n set(0, id);\n set(1, phonenum);\n set(2, username);\n set(3, password);\n set(4, email);\n set(5, corporation);\n set(6, industry);\n set(7, sites);\n set(8, keyword);\n set(9, salt);\n set(10, vip);\n set(11, loginTime);\n set(12, signupTime);\n set(13, vipEndTime);\n set(14, friend);\n }", "public User() {\n\t\tsuper(\"User\", models.DefaultSchema.DEFAULT_SCHEMA);\n\t}", "public AdminAppUser() {\n this(DSL.name(\"admin_app_user\"), null);\n }", "public Key()\n {\n name = \"\";\n fields = new Vector<String>();\n options = new Vector<String>();\n isPrimary = false;\n isUnique = false;\n }", "public User() {\r\n this(\"\", \"\");\r\n }", "public User() {\n /**\n * default Cto'r\n */\n }", "public AppUser(String email, String firstName, String lastName) {\n \tthis.email = email;\n \tthis.firstName = firstName;\n \tthis.lastName = lastName;\n \tthis.password = \"password\";\n }", "private UserPrefernce(){\r\n\t\t\r\n\t}", "protected User(){\n this.username = null;\n this.password = null;\n this.accessLevel = null;\n this.name = DEFAULT_NAME;\n this.telephone = DEFAULT_TELEPHONE;\n this.email = DEFAULT_EMAIL;\n }", "public TUser() {\n this(\"t_user\", null);\n }", "protected User() {}", "protected User() {}", "User()\n\t{\n\n\t}", "public AppUser(String email, String firstName, String lastName, String password) {\n \tthis.email = email;\n \tthis.firstName = firstName;\n \tthis.lastName = lastName;\n \tthis.password = password;\n }", "public User(){\n this(null, null);\n }", "public DbUser() {\r\n\t}", "public UserModel(){\n ID = 0; // The user's ID, largely used in conjuction with a database\n firstName = \"fname\"; //User's first name\n lastName = \"lname\"; // User's last name\n password= \"pass\"; ///User password\n username = \"testuser\"; //Valid email for user\n role = 0; //Whether the user is a typical user or administrator\n status = 0; //Whether the user is active or disabled\n }", "public BankAccountKey() {\n\tsuper();\n}", "public User()\r\n\t{\r\n\t\tthis.userId = 0;\r\n\t\tthis.userName = \"\";\r\n\t\tthis.role = \"\";\r\n\t\tthis.firstName = \"\";\r\n\t\tthis.lastName = \"\";\r\n\t\tthis.emailAddress = \"\";\r\n\t\tthis.streetAddress = \"\";\r\n\t\tthis.city = \"\";\r\n\t\tthis.state = \"\";\r\n\t\tthis.zip = 0;\r\n\t\tthis.country = \"\";\r\n\t}", "private User() {}", "protected User() {\n }", "public UsersRecord() {\n super(Users.USERS);\n }", "public User() {\n username = null;\n password = null;\n email = null;\n firstName = null;\n lastName = null;\n gender = null;\n personID = null;\n }", "public User() {\n\t\tsuper();\n\t}", "public User() {\n\t\tsuper();\n\t}", "public User() {\n\t\tsuper();\n\t}", "public AppUserResource() {\r\n }", "public User() {\n this.id = 0;\n this.username = \"gfisher\";\n this.password = \"password\";\n this.email = \"[email protected]\";\n this.firstname = \"Gene\";\n this.lastname = \"Fisher\";\n this.type = new UserPermission(true, true, true, true);\n }", "public User() {\n super();\n }", "public User() {\n super();\n }", "private User() {\n }", "public PaymentRecordKey() {\n super();\n }", "public Users(String username, String password, String email, String phone)\r\n/* 53: */ {\r\n/* 54:67 */ this.username = username;\r\n/* 55:68 */ this.password = password;\r\n/* 56:69 */ this.email = email;\r\n/* 57:70 */ this.phone = phone;\r\n/* 58: */ }", "public CommonSenseAuthUserData() {\n \n }", "public User() {\r\n \r\n }", "public User() {\n\n\t}", "public User() {\r\n\r\n\t}", "public UserModel()\n\t{}", "public ChatUserRecord() {\n super(ChatUser.CHAT_USER);\n }", "public User() {\n this.username = \"test\";\n }", "public AuthRecord(String email, String salt, String password, OffsetDateTime createdAt, String createdBy, OffsetDateTime lastModifiedAt, String lastModifiedBy) {\n super(Auth.AUTH);\n\n set(0, email);\n set(1, salt);\n set(2, password);\n set(3, createdAt);\n set(4, createdBy);\n set(5, lastModifiedAt);\n set(6, lastModifiedBy);\n }", "public User(long id, String username, String email, String password) {\n this.id = id;\n this.username = username;\n this.email = email;\n this.password = password;\n}", "public User() {\r\n\t\temployee=new HashMap<Integer, Employee>();\r\n\t\tperformance=new HashMap<Employee,String>();\r\n\t}", "public UserRecord(BigInteger userid, String username, String email) {\n super(User.USER);\n\n set(0, userid);\n set(1, username);\n set(2, email);\n }", "public GameUser() {\n\t}", "public User()\n\t{\n\t\tfirstName = \"\";\n\t\tlastName = \"\";\n\t\tusername = \"\";\n\t\tpassword = \"\";\n\t}", "public User() {\n\t}", "public UsertestRecord() {\n super(Usertest.USERTEST);\n }", "public User() {\r\n\t}", "public HashUserRealm()\n {}", "public User() {\n }", "public UserData() {\n }", "public UserLangRecord() {\n super(UserLang.USER_LANG);\n }", "public User() { }", "public User() {}", "public User() {}", "public User() {}", "public int getUserKey() {\r\n\t\tif(email!=null&&password!=null) {\r\n\t\t\treturn (email.hashCode()+password.hashCode())/2;\r\n\t\t}else if(email!=null||password!=null) {\r\n\t\t\tif(email!=null) {\r\n\t\t\t\treturn email.hashCode();\r\n\t\t\t}else {\r\n\t\t\t\treturn password.hashCode();\r\n\t\t\t}\r\n\t\t}else {\r\n\t\t\treturn 0;\r\n\t\t}\r\n\t}", "private com.hps.july.persistence.SuperRegionAccKey keyFromFields ( int f0 ) {\n com.hps.july.persistence.SuperRegionAccKey keyClass = new com.hps.july.persistence.SuperRegionAccKey();\n keyClass.accessid = f0;\n return keyClass;\n }", "public Identity()\n {\n super( Fields.ARGS );\n }", "protected UserWordData() {\n\n\t}", "public User() {\r\n }", "public UserRecord(Integer idUser, String name, String surname, String title, LocalDateTime dateBirth, LocalDateTime dateCreate, LocalDateTime dateUpdate, LocalDateTime dateDelete, String govId, String username, String password, String email, String gender, String status) {\n super(User.USER);\n\n set(0, idUser);\n set(1, name);\n set(2, surname);\n set(3, title);\n set(4, dateBirth);\n set(5, dateCreate);\n set(6, dateUpdate);\n set(7, dateDelete);\n set(8, govId);\n set(9, username);\n set(10, password);\n set(11, email);\n set(12, gender);\n set(13, status);\n }", "public User() {\n this.firstName = \"Lorenzo\";\n this.lastName = \"Malferrari\";\n this.username = \"[email protected]\";\n this.email = \"[email protected]\";\n this.password = \"123456\";\n this.city = \"Bologna\";\n this.country = \"Italia\";\n this.gender = \"Maschio\";\n this.birthdate = new Date();\n this.age = 21;\n this.imgUser = 1;\n this.last_access = new Date();\n this.registration_date = new Date();\n }", "public UserAccount() {\n\n\t}", "private AppAuth() {\n }", "public User() {\n\tsuper();\n}", "public Users() {}", "public UserEntity() {\n\t\tsuper();\n\t}", "public User()\n\t{\n\t}", "@Test\n public void userCustomConstructor_isCorrect() throws Exception {\n\n int id = 123456;\n int pin_hash = 98745;\n int pin = 9876;\n String salt = \"test salt\";\n String username = \"testUsername\";\n int firstTime = 0;\n String budget = \"test\";\n int hasPin = 1;\n\n //Create empty user\n User user = new User(id, username, pin_hash, pin, salt, firstTime, budget, hasPin);\n\n // Verify Values\n assertEquals(id, user.getId());\n assertEquals(pin_hash, user.getPin_hash());\n assertEquals(pin, user.getPin());\n assertEquals(salt, user.getSalt());\n assertEquals(username, user.getUsername());\n assertEquals(firstTime, user.getFirstTime());\n assertEquals(budget, user.getBudget());\n assertEquals(hasPin, user.getHasPin());\n }", "public User(){}", "public User(){}", "public User(){}", "public UserInfo() {\n }", "public User(){\n }", "public User(){\n\t username = \"Anonymous\";\n\t}", "public User(){\n\n }", "public LoginService() {\n users.put(\"johndoe\", \"John Doe\");\n users.put(\"janedoe\", \"Jane Doe\");\n users.put(\"jguru\", \"Java Guru\");\n }", "public User() {\n uid= 0;\n username = \"\";\n password = \"\";\n role = \"user\";\n status = false;\n updatedTime = new Timestamp(0);\n }", "private ConfigurationKeys() {\n // empty constructor.\n }", "public User(){\r\n this.id = 0;\r\n this.firstName = null;\r\n this.lastName = null;\r\n }", "public User() {\n }", "public User() {\n }", "public User() {\n }", "public User() {\n }", "public User() {\n }", "public User() {\n }", "public User() {\n }", "public User() {\n }" ]
[ "0.7290511", "0.7198481", "0.676537", "0.66866386", "0.66363275", "0.6482687", "0.6460784", "0.6460784", "0.6460784", "0.6460784", "0.64551944", "0.6444825", "0.6443054", "0.6427076", "0.63874733", "0.63754094", "0.6337634", "0.63119507", "0.62870795", "0.62577397", "0.6255986", "0.6255986", "0.62062335", "0.62056375", "0.61784774", "0.6177586", "0.61524445", "0.6146059", "0.61165714", "0.60854197", "0.60815215", "0.60744894", "0.6042069", "0.60415506", "0.60415506", "0.60415506", "0.6027005", "0.6014561", "0.60055983", "0.60055983", "0.600549", "0.6001963", "0.5998057", "0.5996694", "0.59959626", "0.5994598", "0.59862363", "0.5982763", "0.59770113", "0.59592545", "0.5945296", "0.59441984", "0.5937909", "0.5936982", "0.59327054", "0.59250283", "0.5924485", "0.5918196", "0.59073097", "0.59033", "0.590241", "0.5898944", "0.58926314", "0.58912253", "0.5878012", "0.5878012", "0.5878012", "0.5876643", "0.58718735", "0.58675206", "0.5854572", "0.5851683", "0.58510804", "0.5849849", "0.5840186", "0.5832057", "0.5826568", "0.5824325", "0.5818264", "0.5815002", "0.5794701", "0.5794486", "0.5794486", "0.5794486", "0.579443", "0.57884747", "0.578704", "0.57846254", "0.57829547", "0.5778317", "0.57740813", "0.5768544", "0.5763181", "0.5763181", "0.5763181", "0.5763181", "0.5763181", "0.5763181", "0.5763181", "0.5763181" ]
0.60813606
31
Return the name of the first key column
public String getFirstKeyColumnName() { return "userId"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getFirstKeyColumnName() \n\t{\n\t\treturn \"cSid\";\n\t}", "String getColumnName();", "public String getFirstKeyColumnName() {\n\t\treturn \"wishlistItemId\";\n\t}", "public String getColumnKey(int col){\n return keys.get(col);\n }", "public String[] getKeyColumns()\n {\n return KEY_COLUMNS;\n }", "public String getColumnName();", "public String getFirstKeyColumnName() {\n\t\treturn \"orderPickListId\";\n\t}", "public String getPkColumnName() {\n return featureDao.getPkColumnName();\n }", "public String getColumnNameOne(){\n return columnNameOneLbl.getText();\n }", "public String getColumnName() {\r\n return dataBinder.getColumnName();\r\n }", "public String getColumnForPrimaryKey() {\n return null;\n }", "protected String getColumnHeader(Integer index){\n for (Map.Entry<String, Integer> entry: headerMap.entrySet()){\n if (index.equals(entry.getValue())) return entry.getKey();\n }\n return null;\n }", "@Override\n\tpublic String findParentKeyColumnName()\n\t{\n\t\treturn null;\n\t}", "public Comparable getColumnKey(int column) { return this.underlying.getColumnKey(column + this.firstCategoryIndex); }", "@Override\n public String getName() {\n return columnInfo.getName();\n }", "public void testGetColumnKey() {\n TaskSeriesCollection c = createCollection1();\n assertEquals(\"Task 1\", c.getColumnKey(0));\n assertEquals(\"Task 2\", c.getColumnKey(1));\n assertEquals(\"Task 3\", c.getColumnKey(2));\n }", "@Override\n public String getColumnName(int column) { return columnnames[column]; }", "KijiColumnName getAttachedColumn();", "public String getPropertyName(){\n return SimpleTableField.mapPropName(this.columnName);\n }", "public String getColumnName(int col) { return columnNames[col]; }", "@Override\npublic String findParentKeyColumnName()\n{\n\treturn null;\n}", "protected static Object getColumnKey(XmlElement xmlColumn)\n {\n XmlValue xmlTemp = xmlColumn.getAttribute(\"id\");\n if (xmlTemp == null)\n {\n return xmlColumn;\n }\n return xmlTemp.getString();\n }", "public String getColumnName() {\r\n return navBinder.getColumnName();\r\n }", "@Override\r\n public String getColumnName(int col) {\r\n return title[col];\r\n }", "public String[] getKeyNames() \n {\n DBField f[] = this.getKeyFields();\n String kn[] = new String[f.length];\n for (int i = 0; i < f.length; i++) {\n kn[i] = f[i].getName();\n }\n return kn;\n }", "@Override\n public String getColumnName(int aColumn) {\n return model.getColumnName(aColumn); \n }", "public String naturalKeyName() {\n return idName();\n }", "public String getColumnone() {\n return columnone;\n }", "@Override\n public String getColumnName(int column) {\n return colName[column];\n }", "public String getColumnName() {\n return this.columnName;\n }", "@Override\n\tpublic String getColumnName(int arg0) throws SQLException {\n\t\treturn columns[arg0-1];\n\t}", "private Object _getRowKey()\n {\n Object data = getRowData();\n \n assert (_rowKeyProperty != null);\n return __resolveProperty(data, _rowKeyProperty);\n }", "@Override\n public String getColumnName(int column) {\n return columnNames[column];\n }", "@Override\n public String getColumnName(int column) {\n return columnNames[column];\n }", "java.lang.String getSourceColumnName();", "private String getColumnName( String propertyName ) {\r\n String[] s = StringExtend.toArray( propertyName, \".\", false );\r\n return s[s.length - 1];\r\n }", "public String getColumnName() {\n return columnName; \n }", "public java.lang.String getColumnName() {\r\n return columnName;\r\n }", "@Override\n public String getColumnName(int columnIndex) {\n return columnNames[columnIndex];\n }", "java.lang.String getColumn();", "public Schema getKeySchema() {\n\n\t\tint num_keys = pkColumnNames.size();\n\t\tif (num_keys == 0){\n\t\t\tthrow new DataException(\"Empty primary key\");\n\t\t}\n\t\t//TODO: we always create Struct for the pKey - is there a point to just have a field if it's a single pKey?\n\t SchemaBuilder pkBuilder = SchemaBuilder.struct().name(this.pkSchemaName());\n\n\t for (String pk : this.pkColumnNames) {\n\t \t Field field = schema.field(pk);\n\t \t pkBuilder.field(field.name(), field.schema());\n\t }\n\t return pkBuilder.build();\n\t}", "@Override\n\tpublic String getColumnName(int arg0) {\n\t\treturn null;\n\t}", "@Override\n\tpublic String getColumnName(int arg0) {\n\t\treturn null;\n\t}", "public String getColumnName(int columnIndex){\n return COLUMN_NAMES[columnIndex];\n }", "protected String getTableColumn()\n\t\t{\n\t\t\treturn Column ;\n\t\t}", "public String getColumnName(int c) {\n\treturn columnNames[c];\n}", "@KeepForSdk\n public abstract String getPrimaryDataMarkerColumn();", "@Override\n public String getColumnName(int columnIndex) {\n return nomeColunas[columnIndex];\n }", "@Override\n public String getColumnName(int columnIndex) {\n return nomeColunas[columnIndex];\n }", "public TableKey getKey() {\n \treturn key;\n }", "public String getColumnName(int column) {\r\n if (_debugTable != null) {\r\n return _debugTable.getColumnTitle(column) ;\r\n } else {\r\n return \"\" ;\r\n }\r\n }", "public String getName() {\n return columnName;\n }", "@Override\n public String getColumnName(int iCol) {\n return ARR_STR_HEADERS[iCol];\n }", "@Override\n public String getColumnName(int column) {\n return cabecera[column];\n }", "@Override\n public String getColumnName(final int column) {\n return _columns.get(column);\n }", "public String getColumnName(int index)\n {\n return header[index];\n }", "public List getColumnKeys() {\n/* 204 */ List result = new ArrayList();\n/* 205 */ int last = lastCategoryIndex();\n/* 206 */ for (int i = this.firstCategoryIndex; i <= last; i++) {\n/* 207 */ result.add(this.underlying.getColumnKey(i));\n/* */ }\n/* 209 */ return Collections.unmodifiableList(result);\n/* */ }", "@Override\r\n\tpublic String getColumnName(int column) {\n\t\treturn columnName[column];\r\n\t}", "@Override\r\n\tpublic String getColumnName(int column) {\n\t\treturn columnName[column];\r\n\t}", "String getShortNameKey();", "@Override\n\tpublic String getColumnName(int col)\n\t{\n\t\treturn nomColonnes[col];\n\t}", "private static String [] getColumnName(){\r\n\t\tString [] columnNames = { DBSAResourceBundle.res.getString(\"no\"), DBSAResourceBundle.res.getString(\"title\"), \r\n\t\t\t\tDBSAResourceBundle.res.getString(\"authors\"), DBSAResourceBundle.res.getString(\"link\"),\r\n\t\t\t\tDBSAResourceBundle.res.getString(\"year\"),DBSAResourceBundle.res.getString(\"abstract\"), \r\n\t\t\t\tDBSAResourceBundle.res.getString(\"publisher\"),(\"X\"), \r\n\t\t\t\t(\"duplicate\"), \"id\"};\r\n\t\t\t\r\n\t\treturn columnNames;\r\n\t}", "public boolean isSetKey_column_name() {\n return this.key_column_name != null;\n }", "public String getColumnName(int columnIndex){\r\n\t\t\tif (Person.getFieldColumn(columnIndex) != null)\r\n\t\t\t\treturn Person.getFieldColumn(columnIndex);\r\n\t\t\treturn \"\";\r\n\t\t}", "@Override\n public String getColumnName(int column) {\n if (column == COL_ID) {\n return \"Código\";\n } else if (column == COL_NAME) {\n return \"Nome\";\n }\n return \"\";\n }", "protected String getDatabasePkColumnName() {\n return this.pkColumn == null ? getPlan().getDocIdField() : this.pkColumn;\n }", "protected abstract String getFavoriteColumnName();", "public String getColumnName(int col) {\n return columns[col] ;\n }", "public String getKeyName(){\n\n //returns the value of the keyName field\n return this.keyName;\n }", "public String getName(){\n\t\t\treturn columnName;\n\t\t}", "String getColumn();", "private String getAllColumnName() {\n\t\t\n\t\tStringBuilder builder = new StringBuilder();\n\t\t// .append(COLUMN_id).append(\"=?,\").\n\t\tbuilder.append(\"user_id\").append(\"=?,\");\n\t\tbuilder.append(\"lib_book_id\").append(\"=?,\");\n\t\tbuilder.append(\"lending_date\").append(\"=?,\");\n\t\tbuilder.append(\"return_date\").append(\"=?,\");\n\t\tbuilder.append(\"returned_date\").append(\"=?,\");\n\t\tbuilder.append(\"status\").append(\"=?\");\n\t\t\n\t\treturn builder.toString();\n\t}", "@Override\n\tpublic String getColumnName(int column) {\n\t\treturn this.colunas[column];\n\t}", "private String getStringKey(int rawKey) {\n // Specialize single group-by column case\n if (_numGroupByExpressions == 1) {\n return _dictionaries[0].getStringValue(rawKey);\n } else {\n int cardinality = _cardinalities[0];\n StringBuilder groupKeyBuilder = new StringBuilder(_dictionaries[0].getStringValue(rawKey % cardinality));\n rawKey /= cardinality;\n for (int i = 1; i < _numGroupByExpressions; i++) {\n groupKeyBuilder.append(GroupKeyGenerator.DELIMITER);\n cardinality = _cardinalities[i];\n groupKeyBuilder.append(_dictionaries[i].getStringValue(rawKey % cardinality));\n rawKey /= cardinality;\n }\n return groupKeyBuilder.toString();\n }\n }", "public String getColumnName(int column) {\n return columnNames[column];\n }", "public String getColumnName(int col) {\r\n if (columns[col] instanceof StratmasObject) {\r\n return ((StratmasObject)columns[col]).getReference().getIdentifier().trim();\r\n }\r\n else {\r\n return (String)columns[col];\r\n }\r\n }", "private static String getColumnName(String windowName2) {\n\t\tString col = \"{\";\r\n\t\tVector<WindowTableModelMapping> maps = getMapColumns(windowName2);\r\n\t\tfor (int i = 0; i < maps.size(); i++) {\r\n\t\t\tWindowTableModelMapping mp = maps.get(i);\r\n\t\t\tcol = col + \"\\\"\" + mp.getColumnName() + \"\\\"\" + \",\";\r\n\t\t}\r\n\r\n\t\tcol = col.substring(0, col.length() - 1) + \"}\";\r\n\t\treturn col;\r\n\t}", "java.lang.String getHeaderTableId();", "public String getColumnName(int theCol) {\n return columnNameList[theCol];\n }", "public String getColumnName(int col) {\n\t return columnNames[col];\n }", "@Override\n\tpublic String getColumnName(int column) {\n\t\tswitch (column) {\n\t\tcase 0:\n\t\t\treturn \"Expression\";\n\t\tcase 1:\n\t\t\treturn \"Value\";\n\t\t}\n\t\treturn null;\n\t}", "public Key getFirst() {\n\t\treturn firstNode.key;\n\t}", "@Override\n\tpublic String getColumnName(int column) {\n\t\treturn names[column];\n\t}", "public Object getKey() { return name; }", "@Override\n public String getColumnName(int column) {\n if (column > colunas.length || column < 0) {\n return null;\n }\n return colunas[column];\n\n }", "@Override\r\n public String getColumnName(int column) {\n return (String)this.columnNames.get(column);\r\n }", "public String getColumnNameThree(){\n return columnNameThreeLbl.getText();\n }", "public String getColumnName(int c){\r\n\t\treturn (new Integer(c).toString());\r\n\t}", "@Override\n public String joinKeyColumnName(\n String joinedColumn, String joinedTable\n ) {\n return super.joinKeyColumnName(joinedColumn, joinedTable);\n }", "@Transient\n public String getCacheKey() {\n return this.getTableName();\n }", "public String getPrimaryKeyColumnName(String tableName) throws SQLException {\n\t\tString primaryKeyColumnName = null;\n\t\tDatabaseMetaData meta = con.getMetaData();\n\n\t\t// The Oracle database stores its table names as Upper-Case,\n\t\t// if you pass a table name in lowercase characters, it will not work.\n\t\t// MySQL database does not care if table name is uppercase/lowercase.\n\n\t\trs = meta.getPrimaryKeys(null, null, tableName);\n\t\twhile (rs.next()) {\n\t\t\tprimaryKeyColumnName = rs.getString(\"COLUMN_NAME\");\n\t\t\tSystem.out.println(\"getPrimaryKeys(): columnName=\" + primaryKeyColumnName);\n\t\t}\n\t\treturn primaryKeyColumnName;\n\t}", "public String getColumnName(int theCol) {\n return this.model.getColumnName(theCol);\n }", "public String getName() {\n return ctTableColumn.getName();\n }", "public String getColumnName(int col) {\r\n return columnNames[col];\r\n }", "public String getColumnName(int column)throws IllegalStateException{\n if(!connectedToDatabase)\n throw new IllegalStateException(\"Not Connected to datsbase\");\n \n //determine col name\n try{\n return metaData.getColumnName(column+1);\n }catch(SQLException sQLException){\n sQLException.printStackTrace();\n }\n return \"\"; //if problems occur above, return 0 for number of columns\n \n }", "public String getColName() {\r\n\t\treturn colName;\r\n\t}", "com.google.protobuf.ByteString\n getSourceColumnNameBytes();", "public String getColumnName(int columnIdx)\r\n\t{\r\n\t\treturn columnName[columnIdx];\r\n\t}", "public String getKeyType() \n {\n return DBFactory.getKeyTypeName(this.keyType);\n }", "public String getNameKey() {\n return getName();\n }" ]
[ "0.79581845", "0.7155391", "0.71338135", "0.71091", "0.7079154", "0.7007162", "0.6960315", "0.6947225", "0.6813326", "0.6731486", "0.6658869", "0.6584529", "0.6557676", "0.6554628", "0.6536347", "0.651999", "0.6489629", "0.64563", "0.6431523", "0.6428926", "0.64151645", "0.6396914", "0.63889444", "0.6380521", "0.6380247", "0.63704574", "0.63681996", "0.63567156", "0.63505924", "0.63348734", "0.6332255", "0.6316516", "0.6309553", "0.6309553", "0.6290413", "0.62895024", "0.6288823", "0.6268121", "0.625449", "0.6254069", "0.62267023", "0.62220216", "0.62220216", "0.6219794", "0.62181896", "0.6216199", "0.6210714", "0.6210095", "0.6210095", "0.6207225", "0.6205192", "0.6203947", "0.6194069", "0.61859745", "0.61851406", "0.6184676", "0.6172438", "0.61723435", "0.61723435", "0.61696017", "0.61679876", "0.61659473", "0.6141954", "0.6140709", "0.613728", "0.61250436", "0.61214584", "0.61181504", "0.6107801", "0.6096475", "0.60882056", "0.6087091", "0.6085131", "0.6084378", "0.607858", "0.6076847", "0.6076743", "0.6072868", "0.60653263", "0.6057134", "0.60524404", "0.60514814", "0.6050467", "0.6045477", "0.60428464", "0.60407865", "0.6035447", "0.6033004", "0.60283303", "0.6022022", "0.6013202", "0.5999033", "0.5995615", "0.5991641", "0.5990539", "0.5979533", "0.5977839", "0.5973216", "0.5972847", "0.5972293" ]
0.75966316
1
overwrite for Return the Id (pk) of the entity
public String getId() { return userId.toString(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public long getEntityId();", "Long getId();", "Long getId();", "Long getId();", "public abstract Long getId();", "public java.lang.Long getId();", "public long getId();", "public long getId();", "public long getId();", "public long getId();", "public long getId();", "public long getId();", "Integer getId();", "Integer getId();", "Integer getId();", "public abstract long getId();", "public abstract long getId();", "long getId();", "long getId();", "long getId();", "long getId();", "long getId();", "long getId();", "long getId();", "long getId();", "long getId();", "long getId();", "long getId();", "long getId();", "long getId();", "long getId();", "long getId();", "long getId();", "long getId();", "long getId();", "long getId();", "@Override\n\tpublic Object getEntityId() {\n\t\treturn null;\n\t}", "public int getId();", "public int getId();", "public int getId();", "public int getId();", "public int getId();", "public int getId();", "public int getId();", "public Long getId() {\n return super.getId();\n }", "public int getEntityId ( ) {\n\t\treturn invokeSafe ( \"getEntityId\" );\n\t}", "Object getId();", "@Public\n @Stable\n public abstract int getId();", "public IEntityPK getPK() {\r\n\treturn this.pk;\r\n }", "@SuppressWarnings(\"unchecked\") @Override public K getIdByEntity(E entity) {\n K id = (K) session.getIdentifier(entity);\n LOG.info(String.format(\"Found id %d for entity %s.\",id, entity));\n return id;\n }", "@Override\n\tpublic long getPrimaryKey() {\n\t\treturn model.getPrimaryKey();\n\t}", "@Override\n\tpublic long getPrimaryKey() {\n\t\treturn model.getPrimaryKey();\n\t}", "@Override\n\tpublic long getPrimaryKey() {\n\t\treturn model.getPrimaryKey();\n\t}", "public Integer getId() {\n return Id;\n }", "public Long getId() \n {\n return id;\n }", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "@Override\n\tpublic Object getPrimaryKey() {\n\t\treturn id;\n\t}", "public long getId() {\n return Id;\n }", "int getId();", "int getId();", "int getId();", "int getId();", "int getId();", "int getId();", "int getId();", "int getId();", "int getId();", "int getId();", "int getId();", "int getId();", "int getId();", "int getId();", "int getId();", "int getId();", "int getId();", "int getId();", "int getId();", "int getId();", "int getId();", "int getId();", "int getId();", "int getId();", "int getId();" ]
[ "0.79980505", "0.7847954", "0.7847954", "0.7847954", "0.7812224", "0.7702673", "0.770118", "0.770118", "0.770118", "0.770118", "0.770118", "0.770118", "0.7638281", "0.7638281", "0.7638281", "0.7633189", "0.7633189", "0.76027155", "0.76027155", "0.76027155", "0.76027155", "0.76027155", "0.76027155", "0.76027155", "0.76027155", "0.76027155", "0.76027155", "0.76027155", "0.76027155", "0.76027155", "0.76027155", "0.76027155", "0.76027155", "0.76027155", "0.76027155", "0.76027155", "0.75734526", "0.75570583", "0.75570583", "0.75570583", "0.75570583", "0.75570583", "0.75570583", "0.75570583", "0.75340855", "0.7487985", "0.7481202", "0.74745846", "0.7466537", "0.7444177", "0.7421335", "0.7421335", "0.7421335", "0.7387183", "0.73802215", "0.73786736", "0.73786736", "0.73786736", "0.73786736", "0.73786736", "0.73786736", "0.73786736", "0.73786736", "0.73786736", "0.73786736", "0.73786736", "0.73786736", "0.73786736", "0.73786736", "0.73786736", "0.73786736", "0.73786736", "0.73786736", "0.73786736", "0.734805", "0.73220205", "0.7318273", "0.7318273", "0.7318273", "0.7318273", "0.7318273", "0.7318273", "0.7318273", "0.7318273", "0.7318273", "0.7318273", "0.7318273", "0.7318273", "0.7318273", "0.7318273", "0.7318273", "0.7318273", "0.7318273", "0.7318273", "0.7318273", "0.7318273", "0.7318273", "0.7318273", "0.7318273", "0.7318273", "0.7318273" ]
0.0
-1
TODO Autogenerated method stub
@Override public void mouseEntered(MouseEvent arg0) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public void mouseExited(MouseEvent arg0) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public void mousePressed(MouseEvent arg0) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public void mouseReleased(MouseEvent arg0) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "private stendhal() {\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.66708666", "0.65675074", "0.65229905", "0.6481001", "0.64770633", "0.64584893", "0.6413091", "0.63764185", "0.6275735", "0.62541914", "0.6236919", "0.6223816", "0.62017626", "0.61944294", "0.61944294", "0.61920846", "0.61867654", "0.6173323", "0.61328775", "0.61276996", "0.6080555", "0.6076938", "0.6041293", "0.6024541", "0.6019185", "0.5998426", "0.5967487", "0.5967487", "0.5964935", "0.59489644", "0.59404725", "0.5922823", "0.5908894", "0.5903041", "0.5893847", "0.5885641", "0.5883141", "0.586924", "0.5856793", "0.58503157", "0.58464456", "0.5823378", "0.5809384", "0.58089525", "0.58065355", "0.58065355", "0.5800514", "0.57912874", "0.57912874", "0.57912874", "0.57912874", "0.57912874", "0.57912874", "0.57896614", "0.5789486", "0.5786597", "0.5783299", "0.5783299", "0.5773351", "0.5773351", "0.5773351", "0.5773351", "0.5773351", "0.5760369", "0.5758614", "0.5758614", "0.574912", "0.574912", "0.574912", "0.57482654", "0.5732775", "0.5732775", "0.5732775", "0.57207066", "0.57149917", "0.5714821", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57115865", "0.57045746", "0.5699", "0.5696016", "0.5687285", "0.5677473", "0.5673346", "0.56716853", "0.56688815", "0.5661065", "0.5657898", "0.5654782", "0.5654782", "0.5654782", "0.5654563", "0.56536144", "0.5652585", "0.5649566" ]
0.0
-1