An instance is a specific realization of any object.
Questions tagged [instances]
516 questions
0
votes
1 answer
Nservicebus configuration in WPF
Using the pub/sub sample i managed to get multiple instances of the same console app to read all messages sent from the publisher. What I did whas this:
namespace Subscriber1
{
public class EndpointConfig : IConfigureThisEndpoint, AsA_Server
…

Johan Zell
- 263
- 1
- 4
- 12
0
votes
2 answers
JavaScript: get object instances to contain extended variables
So, say I had the following script:
var hey = {
foo: 1,
bar: 2,
baz: 3,
init: function(newFoo){
this.foo = newFoo;
return this;
}
}
hey.check = function(){
alert('yeah, new function');
}
Basically, I can call…

Azmisov
- 6,493
- 7
- 53
- 70
0
votes
2 answers
Java, use correct constructor based on instance
I need my Class C to choose correct constructor based on instance variable. I have basic code shown below. Whenever I create instance of an class B and store it as reference to A. 'Wrong' constructor is used on class C. What are my options to change…

Mazmart
- 2,703
- 4
- 17
- 20
0
votes
0 answers
Is it possible to add individual from CSV file into ontology in rapidminer?
I made an ontology and add instances or individuals manually,however if I want to add the data from CSV file into ontology, Is it possible in rapid miner?I know how to load CSV file in rapid miner.But how to add data in ontology using rapid miner?

Ree
- 59
- 11
0
votes
1 answer
Type Variables in Instance Decelerations (Aeson)
I have JSON data that may either look like this
{
"items": [Day],
"pageCount": Int,
"totalCount": Int
}
or this
{
"items": [Order],
"pageCount": Int,
"totalCount": Int
}
I've been trying to create a data type for the unvaried fields for use with…

IDon'tUnderstandOOP
- 424
- 1
- 5
- 9
0
votes
2 answers
Restricting a class to a certain amount of objects in Java
I would like to ask if there is a way to restrict a certain class to make more than a certain amount of instances. And if it is possible to make the compiler ("Eclipse") underline that line, when you try to make another instance (like it is an error…

Poyr23
- 123
- 1
- 9
0
votes
0 answers
How do I delete all instances of a iterable class in python?
I have created this form of a simple iterable class, this specific example I have found on stackoverflow. After creating the instances of the class and iterating several times over it and calling functions. I aim to cleanup the complete class and…

Philipp Schwarz
- 18,050
- 5
- 32
- 36
0
votes
2 answers
Calling & comparing multiple instance methods
I'm very new to programming and this is my first course. I'm having a very hard time understanding the whole concept and hope I could get some tips on how to proceed.
Essentially I need to write a simple Address Book program which lets the user…

Chris
- 3
- 2
0
votes
1 answer
chef node is not executing the chef-client command
I have created two aws ubuntu instances. One will be worked as a workstation and another as a node. I have bootstrapped the node and it is working fine. When I type knife node list it shows the node which I have created.
After creating recipe…

Harpreet
- 1
0
votes
2 answers
Unity3D: Script variables inconsistences using OnTriggerEnter2D
I have the object that have the script component.
public class TeleportReference : MonoBehaviour {
private GameObject reference;
void Start () {
reference = null;
}
public void SetReference(GameObject other){
…

Alex
- 189
- 1
- 1
- 10
0
votes
0 answers
one instance of an object is taking over every instance
I'm trying to create a lotto, where you have to read in a data file and match the numbers read in to winning numbers given through the console, my problem is that in the for loop where i read in the players numbers, it reads in fine, i even did a
…

Burus
- 11
- 5
0
votes
2 answers
Google Cloud SQL: Can't add authorized application
I know how to authorize an application for a cloud sql instance, and I've even already done it, but I had to delete the instance and create a new one because I had chosen the wrong version of MySQL.
So when I go to this screen:
And then click…

user1513171
- 1,912
- 6
- 32
- 54
0
votes
1 answer
How do I create a usable form instance?
I have tried making instances of forms, but none of them have worked.
This code works and turns the "lamp" on and off:
Public Class Lamp
' declare field
Private lampColor As Color
Public Sub New()
' initialize field
…

Logan
- 926
- 1
- 10
- 18
0
votes
2 answers
how to assign string to a file attribute after saving the file instance?
I am trying to save my uploaded file with a new name, so I must update the file attribute again to give it the new name to avoid the mismatching between the file name in the db and the name of the real file in my directory.
But the file attribute…

Mohammad
- 3,449
- 6
- 48
- 75
0
votes
1 answer
update java swing component from different class
I am working on a crawler project using crawler4j and on top of it, I have a swing interface. I have 2 different cases, namely the controller.java (also containing the SWING components) and crawler.java. I am attempting to append output processed by…

kenAu89
- 101
- 1
- 11