Relative Content

Tag Archive for behavior

Is there an established pattern for associating a database entry with a Java class that executes on that data?

I have a behavior tree with different leaf nodes that execute tasks. When building out the tree relationship in the database I need an association between the leaf node entry and the Java class that will actually perform the task execution. I’ve seen some examples that store the canonical name of the Java task class with the leaf node data, and then instantiate the class at runtime using reflection. I’m not sure I like that approach, but I’m looking for all of the alternatives so I can make an informed decision.

Is there an established pattern for associating a database entry with a Java class that executes on that data?

I have a behavior tree with different leaf nodes that execute tasks. When building out the tree relationship in the database I need an association between the leaf node entry and the Java class that will actually perform the task execution. I’ve seen some examples that store the canonical name of the Java task class with the leaf node data, and then instantiate the class at runtime using reflection. I’m not sure I like that approach, but I’m looking for all of the alternatives so I can make an informed decision.

Is there an established pattern for associating a database entry with a Java class that executes on that data?

I have a behavior tree with different leaf nodes that execute tasks. When building out the tree relationship in the database I need an association between the leaf node entry and the Java class that will actually perform the task execution. I’ve seen some examples that store the canonical name of the Java task class with the leaf node data, and then instantiate the class at runtime using reflection. I’m not sure I like that approach, but I’m looking for all of the alternatives so I can make an informed decision.

Is there an established pattern for associating a database entry with a Java class that executes on that data?

I have a behavior tree with different leaf nodes that execute tasks. When building out the tree relationship in the database I need an association between the leaf node entry and the Java class that will actually perform the task execution. I’ve seen some examples that store the canonical name of the Java task class with the leaf node data, and then instantiate the class at runtime using reflection. I’m not sure I like that approach, but I’m looking for all of the alternatives so I can make an informed decision.

Is there an established pattern for associating a database entry with a Java class that executes on that data?

I have a behavior tree with different leaf nodes that execute tasks. When building out the tree relationship in the database I need an association between the leaf node entry and the Java class that will actually perform the task execution. I’ve seen some examples that store the canonical name of the Java task class with the leaf node data, and then instantiate the class at runtime using reflection. I’m not sure I like that approach, but I’m looking for all of the alternatives so I can make an informed decision.