'''
   Copyright 2015 University of Auckland

   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.
'''
import json

from opencmiss.neon.core.problems.base import BaseProblem

BOUNDARY_CONDITIONS = ['Type 1', 'Type 2', 'Type 3', 'Type 4', 'Type 5']


class Biomeng321Lab1(BaseProblem):

    def __init__(self):
        super(Biomeng321Lab1, self).__init__()
        self.setName('Biomeng321 Lab1')
        self._boundary_condition = None

    def setBoundaryCondition(self, boundary_condition):
        self._boundary_condition = boundary_condition

    def getBoundaryCondition(self):
        return self._boundary_condition

    def serialise(self):
        d = {}
        d['boundary_condition'] = self._boundary_condition

        return json.dumps(d)

    def deserialise(self, string):
        d = json.loads(string)
        self._boundary_condition = d['boundary_condition'] if 'boundary_condition' in d else None

    def validate(self):
        return True

'''
   Copyright 2015 University of Auckland

   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.
'''
import json

from opencmiss.neon.core.problems.base import BaseProblem

BOUNDARY_CONDITIONS = ['Model 1', 'Model 2', 'Model 3', 'Model 4', 'Model 5']


class Biomeng321Lab1(BaseProblem):

    def __init__(self):
        super(Biomeng321Lab1, self).__init__()
        self.setName('Biomeng321 Lab1')
        self._boundary_condition = None

    def setBoundaryCondition(self, boundary_condition):
        self._boundary_condition = boundary_condition

    def getBoundaryCondition(self):
        return self._boundary_condition

    def serialise(self):
        d = {}
        d['boundary_condition'] = self._boundary_condition

        return json.dumps(d)

    def deserialise(self, string):
        d = json.loads(string)
        self._boundary_condition = d['boundary_condition'] if 'boundary_condition' in d else None

    def validate(self):
        return True

Change name of boundary conditions for Biomeng321 Lab1.
Change name of boundary conditions for Biomeng321 Lab1.

  '''
     Copyright 2015 University of Auckland
  
     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.
  '''
  import json
  
  from opencmiss.neon.core.problems.base import BaseProblem
  
- BOUNDARY_CONDITIONS = ['Type 1', 'Type 2', 'Type 3', 'Type 4', 'Type 5']
+ BOUNDARY_CONDITIONS = ['Model 1', 'Model 2', 'Model 3', 'Model 4', 'Model 5']
  
  
  class Biomeng321Lab1(BaseProblem):
  
      def __init__(self):
          super(Biomeng321Lab1, self).__init__()
          self.setName('Biomeng321 Lab1')
          self._boundary_condition = None
  
      def setBoundaryCondition(self, boundary_condition):
          self._boundary_condition = boundary_condition
  
      def getBoundaryCondition(self):
          return self._boundary_condition
  
      def serialise(self):
          d = {}
          d['boundary_condition'] = self._boundary_condition
  
          return json.dumps(d)
  
      def deserialise(self, string):
          d = json.loads(string)
          self._boundary_condition = d['boundary_condition'] if 'boundary_condition' in d else None
  
      def validate(self):
          return True
  
Change name of boundary conditions for Biomeng321 Lab1.
## Code Before:
'''
   Copyright 2015 University of Auckland

   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.
'''
import json

from opencmiss.neon.core.problems.base import BaseProblem

BOUNDARY_CONDITIONS = ['Type 1', 'Type 2', 'Type 3', 'Type 4', 'Type 5']


class Biomeng321Lab1(BaseProblem):

    def __init__(self):
        super(Biomeng321Lab1, self).__init__()
        self.setName('Biomeng321 Lab1')
        self._boundary_condition = None

    def setBoundaryCondition(self, boundary_condition):
        self._boundary_condition = boundary_condition

    def getBoundaryCondition(self):
        return self._boundary_condition

    def serialise(self):
        d = {}
        d['boundary_condition'] = self._boundary_condition

        return json.dumps(d)

    def deserialise(self, string):
        d = json.loads(string)
        self._boundary_condition = d['boundary_condition'] if 'boundary_condition' in d else None

    def validate(self):
        return True

## Instruction:
Change name of boundary conditions for Biomeng321 Lab1.
## Code After:
'''
   Copyright 2015 University of Auckland

   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.
'''
import json

from opencmiss.neon.core.problems.base import BaseProblem

BOUNDARY_CONDITIONS = ['Model 1', 'Model 2', 'Model 3', 'Model 4', 'Model 5']


class Biomeng321Lab1(BaseProblem):

    def __init__(self):
        super(Biomeng321Lab1, self).__init__()
        self.setName('Biomeng321 Lab1')
        self._boundary_condition = None

    def setBoundaryCondition(self, boundary_condition):
        self._boundary_condition = boundary_condition

    def getBoundaryCondition(self):
        return self._boundary_condition

    def serialise(self):
        d = {}
        d['boundary_condition'] = self._boundary_condition

        return json.dumps(d)

    def deserialise(self, string):
        d = json.loads(string)
        self._boundary_condition = d['boundary_condition'] if 'boundary_condition' in d else None

    def validate(self):
        return True
