public Service(ServiceType serviceType, ServiceId serviceId, Action<S>[] actions, StateVariable<S>[] stateVariables) throws ValidationException { this.serviceType = serviceType; this.serviceId = serviceId; if (actions != null) { for (Action action : actions) { this.actions.put(action.getName(), action); action.setService(this); } } if (stateVariables != null) { for (StateVariable stateVariable : stateVariables) { this.stateVariables.put(stateVariable.getName(), stateVariable); stateVariable.setService(this); } } }
public Service(ServiceType serviceType, ServiceId serviceId, Action<S>[] actions, StateVariable<S>[] stateVariables) throws ValidationException { this.serviceType = serviceType; this.serviceId = serviceId; if (actions != null) { for (Action action : actions) { this.actions.put(action.getName(), action); action.setService(this); } } if (stateVariables != null) { for (StateVariable stateVariable : stateVariables) { this.stateVariables.put(stateVariable.getName(), stateVariable); stateVariable.setService(this); } } }
public Service(ServiceType serviceType, ServiceId serviceId, Action<S>[] actions, StateVariable<S>[] stateVariables) throws ValidationException { this.serviceType = serviceType; this.serviceId = serviceId; if (actions != null) { for (Action action : actions) { this.actions.put(action.getName(), action); action.setService(this); } } if (stateVariables != null) { for (StateVariable stateVariable : stateVariables) { this.stateVariables.put(stateVariable.getName(), stateVariable); stateVariable.setService(this); } } }