Tissue Forge C 0.2.1
Interactive, particle-based physics, chemistry and biology modeling and simulation environment
Loading...
Searching...
No Matches
tfCSpecies.h
Go to the documentation of this file.
1/*******************************************************************************
2 * This file is part of Tissue Forge.
3 * Copyright (c) 2022-2024 T.J. Sego
4 *
5 * This program is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU Lesser General Public License as published
7 * by the Free Software Foundation, either version 3 of the License, or
8 * (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU Lesser General Public License
16 * along with this program. If not, see <http://www.gnu.org/licenses/>.
17 *
18 ******************************************************************************/
19
25#ifndef _WRAPS_C_TFCSPECIES_H_
26#define _WRAPS_C_TFCSPECIES_H_
27
28#include "tf_port_c.h"
29
30#include "tfCStateVector.h"
31#include "tfCParticle.h"
32
33// Handles
34
39struct CAPI_EXPORT tfStateSpeciesHandle {
40 void *tfObj;
41};
42
47struct CAPI_EXPORT tfStateSpeciesListHandle {
48 void *tfObj;
49};
50
55struct CAPI_EXPORT tfStateSpeciesValueHandle {
56 void *tfObj;
57};
58
59
61// state::Species //
63
64
71CAPI_FUNC(HRESULT) tfStateSpecies_init(struct tfStateSpeciesHandle *handle);
72
80CAPI_FUNC(HRESULT) tfStateSpecies_initS(struct tfStateSpeciesHandle *handle, const char *s);
81
89CAPI_FUNC(HRESULT) tfStateSpecies_copy(struct tfStateSpeciesHandle *source, struct tfStateSpeciesHandle *destination);
90
97CAPI_FUNC(HRESULT) tfStateSpecies_destroy(struct tfStateSpeciesHandle *handle);
98
107CAPI_FUNC(HRESULT) tfStateSpecies_getId(struct tfStateSpeciesHandle *handle, char **str, unsigned int *numChars);
108
116CAPI_FUNC(HRESULT) tfStateSpecies_setId(struct tfStateSpeciesHandle *handle, const char *sid);
117
126CAPI_FUNC(HRESULT) tfStateSpecies_getName(struct tfStateSpeciesHandle *handle, char **str, unsigned int *numChars);
127
135CAPI_FUNC(HRESULT) tfStateSpecies_setName(struct tfStateSpeciesHandle *handle, const char *name);
136
145CAPI_FUNC(HRESULT) tfStateSpecies_getSpeciesType(struct tfStateSpeciesHandle *handle, char **str, unsigned int *numChars);
146
154CAPI_FUNC(HRESULT) tfStateSpecies_setSpeciesType(struct tfStateSpeciesHandle *handle, const char *sid);
155
164CAPI_FUNC(HRESULT) tfStateSpecies_getCompartment(struct tfStateSpeciesHandle *handle, char **str, unsigned int *numChars);
165
173CAPI_FUNC(HRESULT) tfStateSpecies_setCompartment(struct tfStateSpeciesHandle *handle, const char *sid);
174
182CAPI_FUNC(HRESULT) tfStateSpecies_getInitialAmount(struct tfStateSpeciesHandle *handle, tfFloatP_t *value);
183
191CAPI_FUNC(HRESULT) tfStateSpecies_setInitialAmount(struct tfStateSpeciesHandle *handle, tfFloatP_t value);
192
200CAPI_FUNC(HRESULT) tfStateSpecies_getInitialConcentration(struct tfStateSpeciesHandle *handle, tfFloatP_t *value);
201
209CAPI_FUNC(HRESULT) tfStateSpecies_setInitialConcentration(struct tfStateSpeciesHandle *handle, tfFloatP_t value);
210
219CAPI_FUNC(HRESULT) tfStateSpecies_getSubstanceUnits(struct tfStateSpeciesHandle *handle, char **str, unsigned int *numChars);
220
228CAPI_FUNC(HRESULT) tfStateSpecies_setSubstanceUnits(struct tfStateSpeciesHandle *handle, const char *sid);
229
238CAPI_FUNC(HRESULT) tfStateSpecies_getSpatialSizeUnits(struct tfStateSpeciesHandle *handle, char **str, unsigned int *numChars);
239
247CAPI_FUNC(HRESULT) tfStateSpecies_setSpatialSizeUnits(struct tfStateSpeciesHandle *handle, const char *sid);
248
257CAPI_FUNC(HRESULT) tfStateSpecies_getUnits(struct tfStateSpeciesHandle *handle, char **str, unsigned int *numChars);
258
266CAPI_FUNC(HRESULT) tfStateSpecies_setUnits(struct tfStateSpeciesHandle *handle, const char *sname);
267
275CAPI_FUNC(HRESULT) tfStateSpecies_getHasOnlySubstanceUnits(struct tfStateSpeciesHandle *handle, bool *value);
276
284CAPI_FUNC(HRESULT) tfStateSpecies_setHasOnlySubstanceUnits(struct tfStateSpeciesHandle *handle, bool value);
285
293CAPI_FUNC(HRESULT) tfStateSpecies_getBoundaryCondition(struct tfStateSpeciesHandle *handle, bool *value);
294
302CAPI_FUNC(HRESULT) tfStateSpecies_setBoundaryCondition(struct tfStateSpeciesHandle *handle, bool value);
303
311CAPI_FUNC(HRESULT) tfStateSpecies_getCharge(struct tfStateSpeciesHandle *handle, int *charge);
312
320CAPI_FUNC(HRESULT) tfStateSpecies_setCharge(struct tfStateSpeciesHandle *handle, int value);
321
329CAPI_FUNC(HRESULT) tfStateSpecies_getConstant(struct tfStateSpeciesHandle *handle, bool *value);
330
338CAPI_FUNC(HRESULT) tfStateSpecies_setConstant(struct tfStateSpeciesHandle *handle, int value);
339
348CAPI_FUNC(HRESULT) tfStateSpecies_getConversionFactor(struct tfStateSpeciesHandle *handle, char **str, unsigned int *numChars);
349
357CAPI_FUNC(HRESULT) tfStateSpecies_setConversionFactor(struct tfStateSpeciesHandle *handle, const char *sid);
358
366CAPI_FUNC(HRESULT) tfStateSpecies_isSetId(struct tfStateSpeciesHandle *handle, bool *value);
367
375CAPI_FUNC(HRESULT) tfStateSpecies_isSetName(struct tfStateSpeciesHandle *handle, bool *value);
376
384CAPI_FUNC(HRESULT) tfStateSpecies_isSetSpeciesType(struct tfStateSpeciesHandle *handle, bool *value);
385
393CAPI_FUNC(HRESULT) tfStateSpecies_isSetCompartment(struct tfStateSpeciesHandle *handle, bool *value);
394
402CAPI_FUNC(HRESULT) tfStateSpecies_isSetInitialAmount(struct tfStateSpeciesHandle *handle, bool *value);
403
411CAPI_FUNC(HRESULT) tfStateSpecies_isSetInitialConcentration(struct tfStateSpeciesHandle *handle, bool *value);
412
420CAPI_FUNC(HRESULT) tfStateSpecies_isSetSubstanceUnits(struct tfStateSpeciesHandle *handle, bool *value);
421
429CAPI_FUNC(HRESULT) tfStateSpecies_isSetSpatialSizeUnits(struct tfStateSpeciesHandle *handle, bool *value);
430
438CAPI_FUNC(HRESULT) tfStateSpecies_isSetUnits(struct tfStateSpeciesHandle *handle, bool *value);
439
447CAPI_FUNC(HRESULT) tfStateSpecies_isSetCharge(struct tfStateSpeciesHandle *handle, bool *value);
448
456CAPI_FUNC(HRESULT) tfStateSpecies_isSetConversionFactor(struct tfStateSpeciesHandle *handle, bool *value);
457
465CAPI_FUNC(HRESULT) tfStateSpecies_isSetConstant(struct tfStateSpeciesHandle *handle, bool *value);
466
474CAPI_FUNC(HRESULT) tfStateSpecies_isSetBoundaryCondition(struct tfStateSpeciesHandle *handle, bool *value);
475
483CAPI_FUNC(HRESULT) tfStateSpecies_isSetHasOnlySubstanceUnits(struct tfStateSpeciesHandle *handle, bool *value);
484
491CAPI_FUNC(HRESULT) tfStateSpecies_unsetId(struct tfStateSpeciesHandle *handle);
492
499CAPI_FUNC(HRESULT) tfStateSpecies_unsetName(struct tfStateSpeciesHandle *handle);
500
507CAPI_FUNC(HRESULT) tfStateSpecies_unsetConstant(struct tfStateSpeciesHandle *handle);
508
515CAPI_FUNC(HRESULT) tfStateSpecies_unsetSpeciesType(struct tfStateSpeciesHandle *handle);
516
524
532
540
548
555CAPI_FUNC(HRESULT) tfStateSpecies_unsetUnits(struct tfStateSpeciesHandle *handle);
556
563CAPI_FUNC(HRESULT) tfStateSpecies_unsetCharge(struct tfStateSpeciesHandle *handle);
564
572
579CAPI_FUNC(HRESULT) tfStateSpecies_unsetCompartment(struct tfStateSpeciesHandle *handle);
580
588
596
604CAPI_FUNC(HRESULT) tfStateSpecies_hasRequiredAttributes(struct tfStateSpeciesHandle *handle, bool *value);
605
614CAPI_FUNC(HRESULT) tfStateSpecies_toString(struct tfStateSpeciesHandle *handle, char **str, unsigned int *numChars);
615
621CAPI_FUNC(HRESULT) tfStateSpecies_fromString(struct tfStateSpeciesHandle *handle, const char *str);
622
623
625// state::SpeciesList //
627
628
635CAPI_FUNC(HRESULT) tfStateSpeciesList_init(struct tfStateSpeciesListHandle *handle);
636
643CAPI_FUNC(HRESULT) tfStateSpeciesList_destroy(struct tfStateSpeciesListHandle *handle);
644
653CAPI_FUNC(HRESULT) tfStateSpeciesList_getStr(struct tfStateSpeciesListHandle *handle, char **str, unsigned int *numChars);
654
663CAPI_FUNC(HRESULT) tfStateSpeciesList_indexOf(struct tfStateSpeciesListHandle *handle, const char *s, unsigned int *i);
664
672CAPI_FUNC(HRESULT) tfStateSpeciesList_getSize(struct tfStateSpeciesListHandle *handle, unsigned int *size);
673
682CAPI_FUNC(HRESULT) tfStateSpeciesList_getItem(struct tfStateSpeciesListHandle *handle, unsigned int index, struct tfStateSpeciesHandle *species);
683
692CAPI_FUNC(HRESULT) tfStateSpeciesList_getItemS(struct tfStateSpeciesListHandle *handle, const char *s, struct tfStateSpeciesHandle *species);
693
701CAPI_FUNC(HRESULT) tfStateSpeciesList_insert(struct tfStateSpeciesListHandle *handle, struct tfStateSpeciesHandle *species);
702
710CAPI_FUNC(HRESULT) tfStateSpeciesList_insertS(struct tfStateSpeciesListHandle *handle, const char *s);
711
720CAPI_FUNC(HRESULT) tfStateSpeciesList_toString(struct tfStateSpeciesListHandle *handle, char **str, unsigned int *numChars);
721
727CAPI_FUNC(HRESULT) tfStateSpeciesList_fromString(struct tfStateSpeciesListHandle *handle, const char *str);
728
729
731// state::SpeciesValue //
733
734
744CAPI_FUNC(HRESULT) tfStateSpeciesValue_init(struct tfStateSpeciesValueHandle *handle, struct tfStateStateVectorHandle *state_vector, unsigned int index);
745
753CAPI_FUNC(HRESULT) tfStateSpeciesValue_getValue(struct tfStateSpeciesValueHandle *handle, tfFloatP_t *value);
754
762CAPI_FUNC(HRESULT) tfStateSpeciesValue_setValue(struct tfStateSpeciesValueHandle *handle, tfFloatP_t value);
763
771CAPI_FUNC(HRESULT) tfStateSpeciesValue_getStateVector(struct tfStateSpeciesValueHandle *handle, struct tfStateStateVectorHandle *state_vector);
772
780CAPI_FUNC(HRESULT) tfStateSpeciesValue_getIndex(struct tfStateSpeciesValueHandle *handle, unsigned int *index);
781
789CAPI_FUNC(HRESULT) tfStateSpeciesValue_getSpecies(struct tfStateSpeciesValueHandle *handle, struct tfStateSpeciesHandle *species);
790
798CAPI_FUNC(HRESULT) tfStateSpeciesValue_getBoundaryCondition(struct tfStateSpeciesValueHandle *handle, bool *value);
799
807CAPI_FUNC(HRESULT) tfStateSpeciesValue_setBoundaryCondition(struct tfStateSpeciesValueHandle *handle, bool value);
808
816CAPI_FUNC(HRESULT) tfStateSpeciesValue_getInitialAmount(struct tfStateSpeciesValueHandle *handle, tfFloatP_t *value);
817
825CAPI_FUNC(HRESULT) tfStateSpeciesValue_setInitialAmount(struct tfStateSpeciesValueHandle *handle, tfFloatP_t value);
826
834CAPI_FUNC(HRESULT) tfStateSpeciesValue_getInitialConcentration(struct tfStateSpeciesValueHandle *handle, tfFloatP_t *value);
835
843CAPI_FUNC(HRESULT) tfStateSpeciesValue_setInitialConcentration(struct tfStateSpeciesValueHandle *handle, tfFloatP_t value);
844
852CAPI_FUNC(HRESULT) tfStateSpeciesValue_getConstant(struct tfStateSpeciesValueHandle *handle, bool *value);
853
861CAPI_FUNC(HRESULT) tfStateSpeciesValue_setConstant(struct tfStateSpeciesValueHandle *handle, int value);
862
872CAPI_FUNC(HRESULT) tfStateSpeciesValue_secreteL(struct tfStateSpeciesValueHandle *handle, tfFloatP_t amount, struct tfParticleListHandle *to, tfFloatP_t *secreted);
873
883CAPI_FUNC(HRESULT) tfStateSpeciesValue_secreteD(struct tfStateSpeciesValueHandle *handle, tfFloatP_t amount, tfFloatP_t distance, tfFloatP_t *secreted);
884
885#endif // _WRAPS_C_TFCSPECIES_H_
Handle to a ParticleList instance.
Definition tfCParticle.h:127
Handle to a state::Species instance.
Definition tfCSpecies.h:39
Handle to a state::SpeciesList instance.
Definition tfCSpecies.h:47
Handle to a state::SpeciesValue instance.
Definition tfCSpecies.h:55
Handle to a state::StateVector instance.
Definition tfCStateVector.h:36
HRESULT tfStateSpecies_getUnits(struct tfStateSpeciesHandle *handle, char **str, unsigned int *numChars)
Get the units.
HRESULT tfStateSpecies_unsetCompartment(struct tfStateSpeciesHandle *handle)
Unset the species compartment.
HRESULT tfStateSpecies_isSetName(struct tfStateSpeciesHandle *handle, bool *value)
Test whether the species name is set.
HRESULT tfStateSpeciesValue_getValue(struct tfStateSpeciesValueHandle *handle, tfFloatP_t *value)
Get the value.
HRESULT tfStateSpecies_initS(struct tfStateSpeciesHandle *handle, const char *s)
Initialize an instance.
HRESULT tfStateSpeciesList_getStr(struct tfStateSpeciesListHandle *handle, char **str, unsigned int *numChars)
Get a string representation.
HRESULT tfStateSpecies_setSpatialSizeUnits(struct tfStateSpeciesHandle *handle, const char *sid)
Set the spatial size units.
HRESULT tfStateSpecies_isSetCompartment(struct tfStateSpeciesHandle *handle, bool *value)
Test whether the species compartment is set.
HRESULT tfStateSpecies_getCompartment(struct tfStateSpeciesHandle *handle, char **str, unsigned int *numChars)
Get the species compartment.
HRESULT tfStateSpecies_unsetHasOnlySubstanceUnits(struct tfStateSpeciesHandle *handle)
Unset the species has only substance units flag.
HRESULT tfStateSpecies_setInitialConcentration(struct tfStateSpeciesHandle *handle, tfFloatP_t value)
Set the initial concentration.
HRESULT tfStateSpecies_setCharge(struct tfStateSpeciesHandle *handle, int value)
Set the species charge.
HRESULT tfStateSpecies_isSetConversionFactor(struct tfStateSpeciesHandle *handle, bool *value)
Test whether the species conversion factor is set.
HRESULT tfStateSpecies_unsetBoundaryCondition(struct tfStateSpeciesHandle *handle)
Unset the species boundary condition.
HRESULT tfStateSpecies_getSpeciesType(struct tfStateSpeciesHandle *handle, char **str, unsigned int *numChars)
Get the species type.
HRESULT tfStateSpecies_getConversionFactor(struct tfStateSpeciesHandle *handle, char **str, unsigned int *numChars)
Get the species conversion factor.
HRESULT tfStateSpecies_unsetId(struct tfStateSpeciesHandle *handle)
Unset the species id.
HRESULT tfStateSpecies_isSetInitialConcentration(struct tfStateSpeciesHandle *handle, bool *value)
Test whether the species initial concentration is set.
HRESULT tfStateSpecies_isSetConstant(struct tfStateSpeciesHandle *handle, bool *value)
Test whether the species is constant.
HRESULT tfStateSpecies_getInitialAmount(struct tfStateSpeciesHandle *handle, tfFloatP_t *value)
Get the initial amount.
HRESULT tfStateSpecies_isSetSpatialSizeUnits(struct tfStateSpeciesHandle *handle, bool *value)
Test whether the species spatial size units are set.
HRESULT tfStateSpeciesValue_setValue(struct tfStateSpeciesValueHandle *handle, tfFloatP_t value)
Set the value.
HRESULT tfStateSpeciesList_toString(struct tfStateSpeciesListHandle *handle, char **str, unsigned int *numChars)
Get a JSON string representation.
HRESULT tfStateSpeciesValue_getConstant(struct tfStateSpeciesValueHandle *handle, bool *value)
Test whether the species is constant.
HRESULT tfStateSpeciesList_init(struct tfStateSpeciesListHandle *handle)
Initialize an instance.
HRESULT tfStateSpeciesList_getItem(struct tfStateSpeciesListHandle *handle, unsigned int index, struct tfStateSpeciesHandle *species)
Get a species by index.
HRESULT tfStateSpecies_isSetUnits(struct tfStateSpeciesHandle *handle, bool *value)
Test whether the species units are set.
HRESULT tfStateSpeciesValue_setInitialAmount(struct tfStateSpeciesValueHandle *handle, tfFloatP_t value)
Set the species initial amount.
HRESULT tfStateSpecies_getBoundaryCondition(struct tfStateSpeciesHandle *handle, bool *value)
Get whether a species has a boundary condition.
HRESULT tfStateSpecies_isSetSubstanceUnits(struct tfStateSpeciesHandle *handle, bool *value)
Test whether the species substance units are set.
HRESULT tfStateSpecies_destroy(struct tfStateSpeciesHandle *handle)
Destroy an instance.
HRESULT tfStateSpecies_isSetHasOnlySubstanceUnits(struct tfStateSpeciesHandle *handle, bool *value)
Test whether a species has only substance units.
HRESULT tfStateSpeciesList_getItemS(struct tfStateSpeciesListHandle *handle, const char *s, struct tfStateSpeciesHandle *species)
Get a species by name.
HRESULT tfStateSpecies_getInitialConcentration(struct tfStateSpeciesHandle *handle, tfFloatP_t *value)
Get the initial concentration.
HRESULT tfStateSpecies_getId(struct tfStateSpeciesHandle *handle, char **str, unsigned int *numChars)
Get the species id.
HRESULT tfStateSpecies_isSetId(struct tfStateSpeciesHandle *handle, bool *value)
Test whether the species id is set.
HRESULT tfStateSpecies_unsetName(struct tfStateSpeciesHandle *handle)
Unset the species name.
HRESULT tfStateSpecies_getConstant(struct tfStateSpeciesHandle *handle, bool *value)
Get whether a species is constnat.
HRESULT tfStateSpecies_setConversionFactor(struct tfStateSpeciesHandle *handle, const char *sid)
Set the species conversion factor.
HRESULT tfStateSpecies_unsetInitialAmount(struct tfStateSpeciesHandle *handle)
Unset the species initial amount.
HRESULT tfStateSpecies_copy(struct tfStateSpeciesHandle *source, struct tfStateSpeciesHandle *destination)
Copy an instance.
HRESULT tfStateSpeciesList_getSize(struct tfStateSpeciesListHandle *handle, unsigned int *size)
Get the size of a list.
HRESULT tfStateSpecies_setId(struct tfStateSpeciesHandle *handle, const char *sid)
Set the species id.
HRESULT tfStateSpeciesValue_getStateVector(struct tfStateSpeciesValueHandle *handle, struct tfStateStateVectorHandle *state_vector)
Get the state vector.
HRESULT tfStateSpeciesList_destroy(struct tfStateSpeciesListHandle *handle)
Destroy an instance.
HRESULT tfStateSpecies_isSetCharge(struct tfStateSpeciesHandle *handle, bool *value)
Test whether the species charge is set.
HRESULT tfStateSpecies_setName(struct tfStateSpeciesHandle *handle, const char *name)
Set the species name.
HRESULT tfStateSpecies_isSetInitialAmount(struct tfStateSpeciesHandle *handle, bool *value)
Test whether the species initial amount is set.
HRESULT tfStateSpecies_setBoundaryCondition(struct tfStateSpeciesHandle *handle, bool value)
Set whether a species has a boundary condition.
HRESULT tfStateSpeciesValue_secreteL(struct tfStateSpeciesValueHandle *handle, tfFloatP_t amount, struct tfParticleListHandle *to, tfFloatP_t *secreted)
Secrete this species into a neighborhood.
HRESULT tfStateSpecies_init(struct tfStateSpeciesHandle *handle)
Initialize an instance.
HRESULT tfStateSpeciesValue_setBoundaryCondition(struct tfStateSpeciesValueHandle *handle, bool value)
Set whether the species has a boundary condition.
HRESULT tfStateSpeciesList_fromString(struct tfStateSpeciesListHandle *handle, const char *str)
Create from a JSON string representation.
HRESULT tfStateSpecies_unsetCharge(struct tfStateSpeciesHandle *handle)
Unset the species charge.
HRESULT tfStateSpeciesList_indexOf(struct tfStateSpeciesListHandle *handle, const char *s, unsigned int *i)
Get the index of a species name.
HRESULT tfStateSpecies_getCharge(struct tfStateSpeciesHandle *handle, int *charge)
Get the species charge.
HRESULT tfStateSpeciesValue_setInitialConcentration(struct tfStateSpeciesValueHandle *handle, tfFloatP_t value)
Set the species initial concentration.
HRESULT tfStateSpecies_setInitialAmount(struct tfStateSpeciesHandle *handle, tfFloatP_t value)
Set the initial amount.
HRESULT tfStateSpecies_setCompartment(struct tfStateSpeciesHandle *handle, const char *sid)
Set the species compartment.
HRESULT tfStateSpeciesList_insertS(struct tfStateSpeciesListHandle *handle, const char *s)
Insert a species by name.
HRESULT tfStateSpeciesList_insert(struct tfStateSpeciesListHandle *handle, struct tfStateSpeciesHandle *species)
Insert a species.
HRESULT tfStateSpeciesValue_secreteD(struct tfStateSpeciesValueHandle *handle, tfFloatP_t amount, tfFloatP_t distance, tfFloatP_t *secreted)
Secrete this species into a neighborhood.
HRESULT tfStateSpeciesValue_getBoundaryCondition(struct tfStateSpeciesValueHandle *handle, bool *value)
Test whether the species has a boundary condition.
HRESULT tfStateSpecies_isSetBoundaryCondition(struct tfStateSpeciesHandle *handle, bool *value)
Test whether the species boundary condition is set.
HRESULT tfStateSpeciesValue_getSpecies(struct tfStateSpeciesValueHandle *handle, struct tfStateSpeciesHandle *species)
Get the species.
HRESULT tfStateSpecies_getName(struct tfStateSpeciesHandle *handle, char **str, unsigned int *numChars)
Get the species name.
HRESULT tfStateSpecies_unsetSpatialSizeUnits(struct tfStateSpeciesHandle *handle)
Unset the species spatial size units.
HRESULT tfStateSpecies_fromString(struct tfStateSpeciesHandle *handle, const char *str)
Create from a JSON string representation.
HRESULT tfStateSpecies_setSpeciesType(struct tfStateSpeciesHandle *handle, const char *sid)
Set the species type.
HRESULT tfStateSpecies_setSubstanceUnits(struct tfStateSpeciesHandle *handle, const char *sid)
Set the substance units.
HRESULT tfStateSpecies_unsetSubstanceUnits(struct tfStateSpeciesHandle *handle)
Unset the species substance units.
HRESULT tfStateSpeciesValue_setConstant(struct tfStateSpeciesValueHandle *handle, int value)
Set whether the species is constant.
HRESULT tfStateSpecies_getSubstanceUnits(struct tfStateSpeciesHandle *handle, char **str, unsigned int *numChars)
Get the substance units.
HRESULT tfStateSpecies_getSpatialSizeUnits(struct tfStateSpeciesHandle *handle, char **str, unsigned int *numChars)
Get the spatial size units.
HRESULT tfStateSpeciesValue_getIndex(struct tfStateSpeciesValueHandle *handle, unsigned int *index)
Get the species index.
HRESULT tfStateSpecies_hasRequiredAttributes(struct tfStateSpeciesHandle *handle, bool *value)
Test whether a species has required attributes.
HRESULT tfStateSpecies_setHasOnlySubstanceUnits(struct tfStateSpeciesHandle *handle, bool value)
Set whether a species has only substance units.
HRESULT tfStateSpeciesValue_init(struct tfStateSpeciesValueHandle *handle, struct tfStateStateVectorHandle *state_vector, unsigned int index)
Initialize an instance.
HRESULT tfStateSpeciesValue_getInitialConcentration(struct tfStateSpeciesValueHandle *handle, tfFloatP_t *value)
Get the species initial concentration.
HRESULT tfStateSpecies_getHasOnlySubstanceUnits(struct tfStateSpeciesHandle *handle, bool *value)
Get whether a species has only substance units.
HRESULT tfStateSpeciesValue_getInitialAmount(struct tfStateSpeciesValueHandle *handle, tfFloatP_t *value)
Get the species initial amount.
HRESULT tfStateSpecies_toString(struct tfStateSpeciesHandle *handle, char **str, unsigned int *numChars)
Get a JSON string representation.
HRESULT tfStateSpecies_unsetConstant(struct tfStateSpeciesHandle *handle)
Unset the species constant flag.
HRESULT tfStateSpecies_unsetConversionFactor(struct tfStateSpeciesHandle *handle)
Unset the species conversion factor.
HRESULT tfStateSpecies_unsetInitialConcentration(struct tfStateSpeciesHandle *handle)
Unset the species initial concentration.
HRESULT tfStateSpecies_setUnits(struct tfStateSpeciesHandle *handle, const char *sname)
Set the units.
HRESULT tfStateSpecies_setConstant(struct tfStateSpeciesHandle *handle, int value)
Set whether a species is constnat.
HRESULT tfStateSpecies_unsetSpeciesType(struct tfStateSpeciesHandle *handle)
Unset the species type.
HRESULT tfStateSpecies_isSetSpeciesType(struct tfStateSpeciesHandle *handle, bool *value)
Test whether the species type is set.
HRESULT tfStateSpecies_unsetUnits(struct tfStateSpeciesHandle *handle)
Unset the species units.