Skip to content

Commit

Permalink
Merge pull request #22 from scaleoutsoftware/br-dev
Browse files Browse the repository at this point in the history
Br dev
  • Loading branch information
ripleyb authored Jul 10, 2024
2 parents 6190388 + ec8238c commit 5d629ad
Show file tree
Hide file tree
Showing 14 changed files with 334 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Core/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ plugins {
}

group 'com.scaleoutsoftware.digitaltwin'
version '3.0.7'
version '3.0.8'

sourceCompatibility = JavaVersion.VERSION_12

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,23 @@
/*
Copyright (c) 2024 by ScaleOut Software, Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
package com.scaleoutsoftware.digitaltwin.core;

/**
* Status of a cache operation.
*/
public enum CacheOperationStatus {

/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
/*
Copyright (c) 2024 by ScaleOut Software, Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
package com.scaleoutsoftware.digitaltwin.core;

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,11 @@ public abstract class DigitalTwinBase {
*/
public long NextSimulationTime = 0L;

/**
* Default constructor.
*/
public DigitalTwinBase() {}

/**
* Retrieve the next simulation time in milliseconds.
* @return the next simulation time in milliseconds.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
/*
Copyright (c) 2024 by ScaleOut Software, Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
package com.scaleoutsoftware.digitaltwin.core;

import java.time.Duration;
Expand All @@ -7,6 +22,12 @@
* digital twin.
*/
public abstract class InitContext {

/**
* Default constructor.
*/
public InitContext() {}

/**
* Starts a new timer for the digital twin
* @param timerName the timer name
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,12 @@
* @param <V> the type of messages processed by the real-time digital twin
*/
public abstract class MessageProcessor<T extends DigitalTwinBase, V> extends MessageProcessorBase<T> implements Serializable {

/**
* Default constructor.
*/
public MessageProcessor() {}

/**
* Processes a set of incoming messages and determines whether to update the real-time digital twin.
* @param context optional context for processing.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,12 @@
* @param <T> the type of the DigitalTwin
*/
public abstract class MessageProcessorBase<T extends DigitalTwinBase> {

/**
* Default constructor.
*/
public MessageProcessorBase() {}

/**
* Helper method to ensure proper typing for the user methods.
* @param context the processing context
Expand Down
Loading

0 comments on commit 5d629ad

Please sign in to comment.